@ukpc-lib/react 0.13.1-dev.2 → 0.13.1-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +1 -0
- package/dist/components/GlobalMenu/data.json.d.ts +2627 -2582
- package/dist/components/Notification/NotificationList/components/NotitficationItem.d.ts +5 -2
- package/dist/components/Notification/NotificationList/components/query.d.ts +1 -1
- package/dist/components/Notification/models/NotiticationDto.d.ts +2 -2
- package/dist/components/PopUp/types.d.ts +1 -1
- package/dist/components/Topbar/index.d.ts +2 -0
- package/dist/components/index.cjs +21 -21
- package/dist/components/index.js +3282 -3303
- package/dist/components/main.d.ts +1 -0
- package/dist/index.esm2017-C_B_8-Rt.cjs +1078 -0
- package/dist/{index.esm2017-gn4YavpL.js → index.esm2017-DVluJw-p.js} +16555 -16215
- package/dist/share/AuthProvider/index.d.ts +4 -1
- package/dist/share/helpers/index.d.ts +1 -0
- package/dist/share/hooks/index.d.ts +1 -0
- package/dist/share/hooks/useSyncBackdrop.d.ts +4 -0
- package/dist/share/hooks/useSyncRouter.d.ts +1 -1
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +86 -63
- package/package.json +1 -1
- package/web-components-bundle/SaasThemeProvider-8W2MaSUF.js +242 -0
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +4 -3
- package/web-components-bundle/favorite-menu/index.js +7 -6
- package/web-components-bundle/global-menu/index.js +6 -5
- package/web-components-bundle/global-topbar/index.js +9 -8
- package/web-components-bundle/has-permission/index.js +3 -3
- package/web-components-bundle/helpers/index.js +14 -0
- package/web-components-bundle/{index-Cx0zTfOC.js → index-BtUzqnTK.js} +11 -9
- package/web-components-bundle/{index-B8-7QZsi.js → index-CAmMT_XN.js} +1748 -1980
- package/web-components-bundle/{index-BbpYFIqc.js → index-CNRqfpBd.js} +25005 -24314
- package/web-components-bundle/{index-B2-j-GrO.js → index-DSTem_oO.js} +5 -4
- package/web-components-bundle/index.css +1 -0
- package/web-components-bundle/index2.css +1 -0
- package/web-components-bundle/page-not-found/index.js +4 -4
- package/web-components-bundle/{react-to-web-component-D7SoYMky.js → react-to-web-component-CXwKHjZr.js} +1527 -1535
- package/web-components-bundle/{react-toastify.esm-Y1WvK90L.js → react-toastify.esm-CrTD7cpE.js} +1 -1
- package/web-components-bundle/{setPrototypeOf-BVKdEITT.js → setPrototypeOf-CP0c5ut2.js} +2 -2
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
- package/dist/index.esm2017-D_jfQoO6.cjs +0 -1078
|
@@ -1,1078 +0,0 @@
|
|
|
1
|
-
var TY=require("./index.css");const Me=require("react/jsx-runtime"),q=require("react"),lI=require("axios"),uI=require("moment"),sa=require("@mui/material"),Dd=require("react-query"),xp=require("react-router-dom");require("@r2wc/react-to-web-component");const Iv=require("react-dom");function cI(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}function fI(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const kn=cI(q),dI=".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 G1({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&e()}return Me.jsxs(Me.Fragment,{children:[Me.jsx("style",{type:"text/css",children:dI}),Me.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:Me.jsxs("div",{className:"modal-container",children:[Me.jsx("h3",{className:"modal-title",children:"Log out"}),Me.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),Me.jsxs("div",{className:"modal-footer",children:[Me.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:"Cancel"}),Me.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const ki={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 Jo(t){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(t)}function ts(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hI(t,e){if(Jo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function q1(t){var e=hI(t,"string");return Jo(e)=="symbol"?e:e+""}function s0(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,q1(r.key),r)}}function ns(t,e,n){return e&&s0(t.prototype,e),n&&s0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function xl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qh(t,e){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qh(t,e)}function Sp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qh(t,e)}function Ud(t,e){if(e&&(Jo(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xl(t)}function Va(t){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Va(t)}function Ha(t,e,n){return(e=q1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X1(t){if(Array.isArray(t))return t}function pI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function a0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function K1(t,e){if(t){if(typeof t=="string")return a0(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a0(t,e):void 0}}function Z1(){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 gI(t){return X1(t)||pI(t)||K1(t)||Z1()}function l0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function u0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?l0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var mI={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},vI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ts(this,t),this.init(e,n)}return ns(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||mI,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,u0(u0({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),Fa=new vI,gu=function(){function t(){ts(this,t),this.observers={}}return ns(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(d){d.apply(void 0,i)})}if(this.observers["*"]){var c=[].concat(this.observers["*"]);c.forEach(function(d){d.apply(d,[n].concat(i))})}}}]),t}();function Qf(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function c0(t){return t==null?"":""+t}function yI(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function Mv(t,e,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(/###/g,"."):c}function i(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={}}return i()?{}:{obj:t,k:r(o.shift())}}function f0(t,e,n){var r=Mv(t,e,Object),i=r.obj,o=r.k;i[o]=n}function bI(t,e,n,r){var i=Mv(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}function Xh(t,e){var n=Mv(t,e),r=n.obj,i=n.k;if(r)return r[i]}function wI(t,e,n){var r=Xh(t,n);return r!==void 0?r:Xh(e,n)}function J1(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):J1(t[r],e[r],n):t[r]=e[r]);return t}function af(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var xI={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function SI(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return xI[e]}):t}var Tp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,TI=[" ",",","?","!",";"];function CI(t,e,n){e=e||"",n=n||"";var r=TI.filter(function(c){return e.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(t);if(!o){var a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o}function Kh(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,c=r.slice(o,o+a).join(n),d=i[c];d===void 0&&r.length>o+a;)a++,c=r.slice(o,o+a).join(n),d=i[c];if(d===void 0)return;if(d===null)return null;if(e.endsWith(c)){if(typeof d=="string")return d;if(c&&typeof d[c]=="string")return d[c]}var p=r.slice(o+a).join(n);return p?Kh(d,p,n):void 0}i=i[r[o]]}return i}}function d0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?d0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function EI(t){var e=kI();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function kI(){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 DI=function(t){Sp(n,t);var e=EI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ts(this,n),i=e.call(this),Tp&&gu.call(xl(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 ns(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,w=[i,o];a&&typeof a!="string"&&(w=w.concat(a)),a&&typeof a=="string"&&(w=w.concat(d?a.split(d):a)),i.indexOf(".")>-1&&(w=i.split("."));var m=Xh(this.data,w);return m||!p||typeof a!="string"?m:Kh(this.data&&this.data[i]&&this.data[i][o],a,d)}},{key:"addResource",value:function(i,o,a,c){var d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,w=[i,o];a&&(w=w.concat(p?a.split(p):a)),i.indexOf(".")>-1&&(w=i.split("."),c=o,o=w[1]),this.addNamespaces(o),f0(this.data,w,c),d.silent||this.emit("added",i,o,a,c)}},{key:"addResources",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var d in a)(typeof a[d]=="string"||Object.prototype.toString.apply(a[d])==="[object Array]")&&this.addResource(i,o,d,a[d],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,d){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},w=[i,o];i.indexOf(".")>-1&&(w=i.split("."),c=a,a=o,o=w[1]),this.addNamespaces(o);var m=Xh(this.data,w)||{};c?J1(m,a,d):m=dh(dh({},m),a),f0(this.data,w,m),p.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?dh(dh({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(gu),Q1={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var a=this;return e.forEach(function(c){a.processors[c]&&(n=a.processors[c].process(n,r,i,o))}),n}};function h0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Li(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?h0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function PI(t){var e=OI();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function OI(){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 p0={},g0=function(t){Sp(n,t);var e=PI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ts(this,n),i=e.call(this),Tp&&gu.call(xl(i)),yI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,xl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Fa.create("translator"),i}return ns(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=o.ns||this.options.defaultNS||[],p=a&&i.indexOf(a)>-1,w=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!CI(i,a,c);if(p&&!w){var m=i.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:i,namespaces:d};var T=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(T[0])>-1)&&(d=T.shift()),i=T.join(c)}return typeof d=="string"&&(d=[d]),{key:i,namespaces:d}}},{key:"translate",value:function(i,o,a){var c=this;if(Jo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Jo(o)==="object"&&(o=Li({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,w=this.extractFromKey(i[i.length-1],o),m=w.key,T=w.namespaces,E=T[T.length-1],I=o.lng||this.language,A=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(I&&I.toLowerCase()==="cimode"){if(A){var L=o.nsSeparator||this.options.nsSeparator;return d?{res:"".concat(E).concat(L).concat(m),usedKey:m,exactUsedKey:m,usedLng:I,usedNS:E}:"".concat(E).concat(L).concat(m)}return d?{res:m,usedKey:m,exactUsedKey:m,usedLng:I,usedNS:E}:m}var _=this.resolve(i,o),U=_&&_.res,G=_&&_.usedKey||m,re=_&&_.exactUsedKey||m,Z=Object.prototype.toString.apply(U),ue=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ae=!this.i18nFormat||this.i18nFormat.handleAsObject,ce=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(ae&&U&&ce&&ue.indexOf(Z)<0&&!(typeof S=="string"&&Z==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(G,U,Li(Li({},o),{},{ns:T})):"key '".concat(m," (").concat(this.language,")' returned an object instead of string.");return d?(_.res=Ue,_):Ue}if(p){var _e=Z==="[object Array]",Le=_e?[]:{},Ve=_e?re:G;for(var We in U)if(Object.prototype.hasOwnProperty.call(U,We)){var he="".concat(Ve).concat(p).concat(We);Le[We]=this.translate(he,Li(Li({},o),{joinArrays:!1,ns:T})),Le[We]===he&&(Le[We]=U[We])}U=Le}}else if(ae&&typeof S=="string"&&Z==="[object Array]")U=U.join(S),U&&(U=this.extendTranslation(U,i,o,a));else{var Ee=!1,Oe=!1,Ne=o.count!==void 0&&typeof o.count!="string",tt=n.hasDefaultValue(o),me=Ne?this.pluralResolver.getSuffix(I,o.count,o):"",ke=o["defaultValue".concat(me)]||o.defaultValue;!this.isValidLookup(U)&&tt&&(Ee=!0,U=ke),this.isValidLookup(U)||(Oe=!0,U=m);var ze=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,et=ze&&Oe?void 0:U,qe=tt&&ke!==U&&this.options.updateMissing;if(Oe||Ee||qe){if(this.logger.log(qe?"updateKey":"missingKey",I,E,m,qe?ke:U),p){var Je=this.resolve(m,Li(Li({},o),{},{keySeparator:!1}));Je&&Je.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 Ke=[],ot=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ot&&ot[0])for(var ct=0;ct<ot.length;ct++)Ke.push(ot[ct]);else this.options.saveMissingTo==="all"?Ke=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ke.push(o.lng||this.language);var pt=function(yt,Qe,At){var Mt=tt&&At!==U?At:et;c.options.missingKeyHandler?c.options.missingKeyHandler(yt,E,Qe,Mt,qe,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(yt,E,Qe,Mt,qe,o),c.emit("missingKey",yt,E,Qe,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ne?Ke.forEach(function(ft){c.pluralResolver.getSuffixes(ft,o).forEach(function(yt){pt([ft],m+yt,o["defaultValue".concat(yt)]||ke)})}):pt(Ke,m,ke))}U=this.extendTranslation(U,i,o,_,a),Oe&&U===m&&this.options.appendNamespaceToMissingKey&&(U="".concat(E,":").concat(m)),(Oe||Ee)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(m):m,Ee?U:void 0):U=this.options.parseMissingKeyHandler(U))}return d?(_.res=U,_):U}},{key:"extendTranslation",value:function(i,o,a,c,d){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Li(Li({},this.options.interpolation.defaultVariables),a),c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Li(Li({},a),{interpolation:Li(Li({},this.options.interpolation),a.interpolation)}));var w=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(w){var T=i.match(this.interpolator.nestingRegexp);m=T&&T.length}var E=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(E=Li(Li({},this.options.interpolation.defaultVariables),E)),i=this.interpolator.interpolate(i,E,a.lng||this.language,a),w){var I=i.match(this.interpolator.nestingRegexp),A=I&&I.length;m<A&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&c&&c.res&&(a.lng=c.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var U=arguments.length,G=new Array(U),re=0;re<U;re++)G[re]=arguments[re];return d&&d[0]===G[0]&&!a.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(G[0]," in key: ").concat(o[0])),null):p.translate.apply(p,G.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var L=a.postProcess||this.options.postProcess,_=typeof L=="string"?[L]:L;return i!=null&&_&&_.length&&a.applyPostProcessor!==!1&&(i=Q1.handle(_,i,o,this.options&&this.options.postProcessPassResolved?Li({i18nResolved:c},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,d,p,w,m;return typeof i=="string"&&(i=[i]),i.forEach(function(T){if(!o.isValidLookup(c)){var E=o.extractFromKey(T,a),I=E.key;d=I;var A=E.namespaces;o.options.fallbackNS&&(A=A.concat(o.options.fallbackNS));var L=a.count!==void 0&&typeof a.count!="string",_=L&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),U=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",G=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);A.forEach(function(re){o.isValidLookup(c)||(m=re,!p0["".concat(G[0],"-").concat(re)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(m)&&(p0["".concat(G[0],"-").concat(re)]=!0,o.logger.warn('key "'.concat(d,'" for languages "').concat(G.join(", "),`" won't get resolved as namespace "`).concat(m,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),G.forEach(function(Z){if(!o.isValidLookup(c)){w=Z;var ue=[I];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(ue,I,Z,re,a);else{var S;L&&(S=o.pluralResolver.getSuffix(Z,a.count,a));var ae="".concat(o.options.pluralSeparator,"zero");if(L&&(ue.push(I+S),_&&ue.push(I+ae)),U){var ce="".concat(I).concat(o.options.contextSeparator).concat(a.context);ue.push(ce),L&&(ue.push(ce+S),_&&ue.push(ce+ae))}}for(var Ue;Ue=ue.pop();)o.isValidLookup(c)||(p=Ue,c=o.getResource(Z,re,Ue,a))}}))})}}),{res:c,usedKey:d,exactUsedKey:p,usedLng:w,usedNS:m}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,c):this.resourceStore.getResource(i,o,a,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(gu);function xg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var m0=function(){function t(e){ts(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fa.create("languageUtils")}return ns(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=xg(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]=xg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=xg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(c){if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&c.indexOf(a)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],c=function(p){p&&(i.isSupportedCode(p)?a.push(p):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(d){a.indexOf(d)<0&&c(i.formatLanguageCode(d))}),a}}]),t}(),_I=[{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}],RI={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},AI=["v1","v2","v3"],v0={zero:0,one:1,two:2,few:3,many:4,other:5};function II(){var t={};return _I.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:RI[e.fc]}})}),t}var MI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ts(this,t),this.languageUtils=e,this.options=n,this.logger=Fa.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=II()}return ns(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,c){return v0[a]-v0[c]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var c=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!AI.includes(this.options.compatibilityJSON)}}]),t}();function y0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ia(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?y0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b0(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=wI(t,e,n);return!o&&i&&typeof n=="string"&&(o=Kh(t,n,r),o===void 0&&(o=Kh(e,n,r))),o}var LI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ts(this,t),this.logger=Fa.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return ns(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:SI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?af(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?af(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?af(r.nestingPrefix):r.nestingPrefixEscaped||af("$t("),this.nestingSuffix=r.nestingSuffix?af(r.nestingSuffix):r.nestingSuffixEscaped||af(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,c,d,p,w=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(L){return L.replace(/\$/g,"$$$$")}var T=function(_){if(_.indexOf(a.formatSeparator)<0){var U=b0(r,w,_,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(U,void 0,i,ia(ia(ia({},o),r),{},{interpolationkey:_})):U}var G=_.split(a.formatSeparator),re=G.shift().trim(),Z=G.join(a.formatSeparator).trim();return a.format(b0(r,w,re,a.options.keySeparator,a.options.ignoreJSONStructure),Z,i,ia(ia(ia({},o),r),{},{interpolationkey:re}))};this.resetRegExp();var E=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,I=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,A=[{regex:this.regexpUnescape,safeValue:function(_){return m(_)}},{regex:this.regexp,safeValue:function(_){return a.escapeValue?m(a.escape(_)):m(_)}}];return A.forEach(function(L){for(p=0;c=L.regex.exec(n);){var _=c[1].trim();if(d=T(_),d===void 0)if(typeof E=="function"){var U=E(n,c,o);d=typeof U=="string"?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,_))d="";else if(I){d=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(_," for interpolating ").concat(n)),d="";else typeof d!="string"&&!a.useRawValueToEscape&&(d=c0(d));var G=L.safeValue(d);if(n=n.replace(c[0],G),I?(L.regex.lastIndex+=d.length,L.regex.lastIndex-=c[0].length):L.regex.lastIndex=0,p++,p>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,c,d;function p(E,I){var A=this.nestingOptionsSeparator;if(E.indexOf(A)<0)return E;var L=E.split(new RegExp("".concat(A,"[ ]*{"))),_="{".concat(L[1]);E=L[0],_=this.interpolate(_,d);var U=_.match(/'/g),G=_.match(/"/g);(U&&U.length%2===0&&!G||G.length%2!==0)&&(_=_.replace(/'/g,'"'));try{d=JSON.parse(_),I&&(d=ia(ia({},I),d))}catch(re){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),re),"".concat(E).concat(A).concat(_)}return delete d.defaultValue,E}for(;a=this.nestingRegexp.exec(n);){var w=[];d=ia({},o),d=d.replace&&typeof d.replace!="string"?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;var m=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var T=a[1].split(this.formatSeparator).map(function(E){return E.trim()});a[1]=T.shift(),w=T,m=!0}if(c=r(p.call(this,a[1].trim(),d),d),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=c0(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),m&&(c=w.reduce(function(E,I){return i.format(E,I,o.lng,ia(ia({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),t}();function w0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ml(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?w0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function FI(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var c=a.split(":"),d=gI(c),p=d[0],w=d.slice(1),m=w.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=m),m==="false"&&(n[p.trim()]=!1),m==="true"&&(n[p.trim()]=!0),isNaN(m)||(n[p.trim()]=parseInt(m,10))}})}}return{formatName:e,formatOptions:n}}function lf(t){var e={};return function(r,i,o){var a=i+JSON.stringify(o),c=e[a];return c||(c=t(i,o),e[a]=c),c(r)}}var NI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ts(this,t),this.logger=Fa.create("formatter"),this.options=e,this.formats={number:lf(function(n,r){var i=new Intl.NumberFormat(n,ml({},r));return function(o){return i.format(o)}}),currency:lf(function(n,r){var i=new Intl.NumberFormat(n,ml(ml({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:lf(function(n,r){var i=new Intl.DateTimeFormat(n,ml({},r));return function(o){return i.format(o)}}),relativetime:lf(function(n,r){var i=new Intl.RelativeTimeFormat(n,ml({},r));return function(o){return i.format(o,r.range||"day")}}),list:lf(function(n,r){var i=new Intl.ListFormat(n,ml({},r));return function(o){return i.format(o)}})},this.init(e)}return ns(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=lf(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),d=c.reduce(function(p,w){var m=FI(w),T=m.formatName,E=m.formatOptions;if(o.formats[T]){var I=p;try{var A=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},L=A.locale||A.lng||a.locale||a.lng||i;I=o.formats[T](p,L,ml(ml(ml({},E),a),A))}catch(_){o.logger.warn(_)}return I}else o.logger.warn("there was no format function for ".concat(T));return p},n);return d}}]),t}();function x0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function S0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?x0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jI(t){var e=BI();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function BI(){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 $I(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var VI=function(t){Sp(n,t);var e=jI(n);function n(r,i,o){var a,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ts(this,n),a=e.call(this),Tp&&gu.call(xl(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=Fa.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=c.maxParallelReads||10,a.readingCalls=0,a.maxRetries=c.maxRetries>=0?c.maxRetries:5,a.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,c.backend,c),a}return ns(n,[{key:"queueLoad",value:function(i,o,a,c){var d=this,p={},w={},m={},T={};return i.forEach(function(E){var I=!0;o.forEach(function(A){var L="".concat(E,"|").concat(A);!a.reload&&d.store.hasResourceBundle(E,A)?d.state[L]=2:d.state[L]<0||(d.state[L]===1?w[L]===void 0&&(w[L]=!0):(d.state[L]=1,I=!1,w[L]===void 0&&(w[L]=!0),p[L]===void 0&&(p[L]=!0),T[A]===void 0&&(T[A]=!0)))}),I||(m[E]=!0)}),(Object.keys(p).length||Object.keys(w).length)&&this.queue.push({pending:w,pendingCount:Object.keys(w).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(p),pending:Object.keys(w),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(T)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),d=c[0],p=c[1];o&&this.emit("failedLoading",d,p,o),a&&this.store.addResourceBundle(d,p,a),this.state[i]=o?-1:2;var w={};this.queue.forEach(function(m){bI(m.loaded,[d],p),$I(m,i),o&&m.errors.push(o),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(function(T){w[T]||(w[T]={});var E=m.loaded[T];E.length&&E.forEach(function(I){w[T][I]===void 0&&(w[T][I]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",w),this.queue=this.queue.filter(function(m){return!m.done})}},{key:"read",value:function(i,o,a){var c=this,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,w=arguments.length>5?arguments[5]:void 0;if(!i.length)return w(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:d,wait:p,callback:w});return}this.readingCalls++;var m=function(A,L){if(c.readingCalls--,c.waitingReads.length>0){var _=c.waitingReads.shift();c.read(_.lng,_.ns,_.fcName,_.tried,_.wait,_.callback)}if(A&&L&&d<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,a,d+1,p*2,w)},p);return}w(A,L)},T=this.backend[a].bind(this.backend);if(T.length===2){try{var E=T(i,o);E&&typeof E.then=="function"?E.then(function(I){return m(null,I)}).catch(m):m(null,E)}catch(I){m(I)}return}return T(i,o,m)}},{key:"prepareLoading",value:function(i,o){var a=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=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."),d&&d();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,c,d);if(!p.toLoad.length)return p.pending.length||d(),null;p.toLoad.forEach(function(w){a.loadOne(w)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=i.split("|"),d=c[0],p=c[1];this.read(d,p,"read",void 0,void 0,function(w,m){w&&o.logger.warn("".concat(a,"loading namespace ").concat(p," for language ").concat(d," failed"),w),!w&&m&&o.logger.log("".concat(a,"loaded namespace ").concat(p," for language ").concat(d),m),o.loaded(i,w,m)})}},{key:"saveMissing",value:function(i,o,a,c,d){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},w=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var m=S0(S0({},p),{},{isUpdate:d}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var E;T.length===5?E=T(i,o,a,c,m):E=T(i,o,a,c),E&&typeof E.then=="function"?E.then(function(I){return w(null,I)}).catch(w):w(null,E)}catch(I){w(I)}else T(i,o,a,c,w,m)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(gu);function T0(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Jo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Jo(e[2])==="object"||Jo(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function C0(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function E0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ia(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?E0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HI(t){var e=UI();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function UI(){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 hh(){}function WI(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var Zh=function(t){Sp(n,t);var e=HI(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ts(this,n),r=e.call(this),Tp&&gu.call(xl(r)),r.options=C0(i),r.services={},r.logger=Fa,r.modules={external:[]},WI(xl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Ud(r,xl(r));setTimeout(function(){r.init(i,o)},0)}return r}return ns(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=T0();this.options=Ia(Ia(Ia({},c),this.options),C0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ia(Ia({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function d(_){return _?typeof _=="function"?new _:_:null}if(!this.options.isClone){this.modules.logger?Fa.init(d(this.modules.logger),this.options):Fa.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=NI);var w=new m0(this.options);this.store=new DI(this.options.resources,this.options);var m=this.services;m.logger=Fa,m.resourceStore=this.store,m.languageUtils=w,m.pluralResolver=new MI(w,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(m.formatter=d(p),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new LI(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new VI(d(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(_){for(var U=arguments.length,G=new Array(U>1?U-1:0),re=1;re<U;re++)G[re-1]=arguments[re];i.emit.apply(i,[_].concat(G))}),this.modules.languageDetector&&(m.languageDetector=d(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=d(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new g0(this.services,this.options),this.translator.on("*",function(_){for(var U=arguments.length,G=new Array(U>1?U-1:0),re=1;re<U;re++)G[re-1]=arguments[re];i.emit.apply(i,[_].concat(G))}),this.modules.external.forEach(function(_){_.init&&_.init(i)})}if(this.format=this.options.interpolation.format,a||(a=hh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var E=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];E.forEach(function(_){i[_]=function(){var U;return(U=i.store)[_].apply(U,arguments)}});var I=["addResource","addResources","addResourceBundle","removeResourceBundle"];I.forEach(function(_){i[_]=function(){var U;return(U=i.store)[_].apply(U,arguments),i}});var A=Qf(),L=function(){var U=function(re,Z){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),A.resolve(Z),a(re,Z)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return U(null,i.t.bind(i));i.changeLanguage(i.options.lng,U)};return this.options.resources||!this.options.initImmediate?L():setTimeout(L,0),A}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hh,c=a,d=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(d&&d.toLowerCase()==="cimode")return c();var p=[],w=function(E){if(E){var I=o.services.languageUtils.toResolveHierarchy(E);I.forEach(function(A){p.indexOf(A)<0&&p.push(A)})}};if(d)w(d);else{var m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.forEach(function(T){return w(T)})}this.options.preload&&this.options.preload.forEach(function(T){return w(T)}),this.services.backendConnector.load(p,this.options.ns,function(T){!T&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(T)})}else c(null)}},{key:"reloadResources",value:function(i,o,a){var c=Qf();return i||(i=this.languages),o||(o=this.options.ns),a||(a=hh),this.services.backendConnector.reload(i,o,function(d){c.resolve(),a(d)}),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"&&Q1.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var c=Qf();this.emit("languageChanging",i);var d=function(T){a.language=T,a.languages=a.services.languageUtils.toResolveHierarchy(T),a.resolvedLanguage=void 0,a.setResolvedLanguage(T)},p=function(T,E){E?(d(E),a.translator.changeLanguage(E),a.isLanguageChangingTo=void 0,a.emit("languageChanged",E),a.logger.log("languageChanged",E)):a.isLanguageChangingTo=void 0,c.resolve(function(){return a.t.apply(a,arguments)}),o&&o(T,function(){return a.t.apply(a,arguments)})},w=function(T){!i&&!T&&a.services.languageDetector&&(T=[]);var E=typeof T=="string"?T:a.services.languageUtils.getBestMatchFromCodes(T);E&&(a.language||d(E),a.translator.language||a.translator.changeLanguage(E),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(E)),a.loadResources(E,function(I){p(I,E)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?w(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(w):this.services.languageDetector.detect(w):w(i),c}},{key:"getFixedT",value:function(i,o,a){var c=this,d=function p(w,m){var T;if(Jo(m)!=="object"){for(var E=arguments.length,I=new Array(E>2?E-2:0),A=2;A<E;A++)I[A-2]=arguments[A];T=c.options.overloadTranslationOptionHandler([w,m].concat(I))}else T=Ia({},m);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||a||p.keyPrefix;var L=c.options.keySeparator||".",_;return T.keyPrefix&&Array.isArray(w)?_=w.map(function(U){return"".concat(T.keyPrefix).concat(L).concat(U)}):_=T.keyPrefix?"".concat(T.keyPrefix).concat(L).concat(w):w,c.t(_,T)};return typeof i=="string"?d.lng=i:d.lngs=i,d.ns=o,d.keyPrefix=a,d}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=a.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var w=function(E,I){var A=o.services.backendConnector.state["".concat(E,"|").concat(I)];return A===-1||A===2};if(a.precheck){var m=a.precheck(this,w);if(m!==void 0)return m}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||w(c,i)&&(!d||w(p,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=Qf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(d){a.options.ns.indexOf(d)<0&&a.options.ns.push(d)}),this.loadResources(function(d){c.resolve(),o&&o(d)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Qf();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],d=i.filter(function(p){return c.indexOf(p)<0});return d.length?(this.options.preload=c.concat(d),this.loadResources(function(p){a.resolve(),o&&o(p)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new m0(T0());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hh,c=Ia(Ia(Ia({},this.options),o),{isClone:!0}),d=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(d.logger=d.logger.clone(o));var p=["store","services","language"];return p.forEach(function(w){d[w]=i[w]}),d.services=Ia({},this.services),d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d.translator=new g0(d.services,d.options),d.translator.on("*",function(w){for(var m=arguments.length,T=new Array(m>1?m-1:0),E=1;E<m;E++)T[E-1]=arguments[E];d.emit.apply(d,[w].concat(T))}),d.init(c,a),d.translator.options=d.options,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(gu);Ha(Zh,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Zh(t,e)});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 eT=ii.t;ii.exists;ii.setDefaultNamespace;ii.hasLoadedNamespace;ii.loadNamespaces;ii.loadLanguages;const tT={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},nT=t=>{window.location.href=`${t}/authentication/login`},rT=t=>{window.location.href=`${t}/authentication/logout`},As=lI.create({withCredentials:!0});let Sg=!1,km=[];const k0=t=>{km.forEach(e=>{t?e.reject(t):e.resolve()}),km=[]};function iT(t,e){var o,a,c,d,p,w,m,T,E;const n=t.config,r=((a=(o=t.response)==null?void 0:o.data)==null?void 0:a.errorMessage)||((d=(c=t.response)==null?void 0:c.data)==null?void 0:d.message),i=r===tT.TOKEN_EXPIRED;if(((p=t.response)==null?void 0:p.status)===401&&i&&!n._retry)return Sg?new Promise((I,A)=>{km.push({resolve:I,reject:A})}).then(()=>As(n)).catch(I=>Promise.reject(I)):(n._retry=!0,Sg=!0,As.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(k0(null),As(n))).catch(I=>(k0(I),Promise.reject(I))).finally(()=>{Sg=!1}));if(((w=t.response)==null?void 0:w.status)===401&&!i){if(window.self!==window.top&&window.top){console.log("401 - IFRAME");const I=`${window.env.AUTHEN_DOMAIN||window.top.origin}/authentication/login`;window.top.location.href=I;return}return nT(window.env.AUTHEN_DOMAIN)}return((m=t.response)==null?void 0:m.status)===403?(T=e==null?void 0:e.handle403)==null||T.call(e,t):(!(e!=null&&e.disabledPushNotify)&&Wd(eT(`${r||"Something went wrong!"}`)),(E=e==null?void 0:e.handleOtherError)==null||E.call(e,t)),r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t)}const zI=As.interceptors.response.use(t=>t,async t=>iT(t)),oT=q.createContext({}),YI=({children:t})=>{const[e,n]=q.useState(!1),[r,i]=q.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return Me.jsx(oT.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};var sT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},D0=q.createContext&&q.createContext(sT),GI=["attr","size","title"];function qI(t,e){if(t==null)return{};var n=XI(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function XI(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Jh(){return Jh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jh.apply(this,arguments)}function P0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?P0(Object(n),!0).forEach(function(r){KI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function KI(t,e,n){return e=ZI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZI(t){var e=JI(t,"string");return typeof e=="symbol"?e:e+""}function JI(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function aT(t){return t&&t.map((e,n)=>q.createElement(e.tag,Qh({key:n},e.attr),aT(e.child)))}function Cp(t){return e=>q.createElement(QI,Jh({attr:Qh({},t.attr)},e),aT(t.child))}function QI(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=qI(t,GI),c=i||n.size||"1em",d;return n.className&&(d=n.className),t.className&&(d=(d?d+" ":"")+t.className),q.createElement("svg",Jh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:d,style:Qh(Qh({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&q.createElement("title",null,o),t.children)};return D0!==void 0?q.createElement(D0.Consumer,null,n=>e(n)):e(sT)}function eM(t){return Cp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function tM(t){return Cp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const lT={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 Tg(t){return t+" !important"}const uT=t=>{const e={...t.colors};return sa.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:lT,components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Tg(e.primary200),"&:hover":{backgroundColor:Tg(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:eM,next:tM}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Tg(e.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function O0(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||ki[i]})}),n}function cT(t){if(!t)return;let e=document.querySelector("link[rel*='icon']");e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=t}function nM(t){var c,d,p;const{data:e,isFetching:n}=Dd.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(w=>w.json()).then(w=>(["image","favicon","icon"].forEach(m=>{var T;(T=w==null?void 0:w.theme)!=null&&T[m]&&(w.theme[m]+=`?v=${Date.now()}`)}),w)):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(w){var T,E;cT((T=w==null?void 0:w.theme)==null?void 0:T.favicon);const m=O0(ki,(E=w==null?void 0:w.theme)==null?void 0:E.keyColor);Object.keys(m).forEach(I=>{document.documentElement.style.setProperty(`--${I}`,m[I])}),document.documentElement.style.setProperty("font-family",lT.fontFamily)}}),r=O0(ki,(c=e==null?void 0:e.theme)==null?void 0:c.keyColor),i=uT({colors:r}),o=(d=e==null?void 0:e.theme)==null?void 0:d.image,a=(p=e==null?void 0:e.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:a,isFetching:n,themeDto:e==null?void 0:e.theme}}const fT=q.createContext({}),rM=()=>q.useContext(fT),iM=t=>{var o;const{children:e,brandTheme:n}=t,r=nM(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return Me.jsx(fT.Provider,{value:r,children:Me.jsx(sa.ThemeProvider,{theme:i,children:e})})},oM=t=>{const e=Dd.useQueryClient(),n=q.useMemo(()=>t.axiosInstance||As,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Dd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},sM=t=>{const e=Dd.useQueryClient(),n=q.useMemo(()=>t.axiosInstance||As,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Dd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},Lv=q.createContext({}),aM=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,o=oM({axiosInstance:r,baseUrl:n}),a=sM({axiosInstance:r,baseUrl:n});function c(){window.location.href=`${i}/authentication/login`}function d(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?Me.jsx(sa.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Me.jsx(sa.CircularProgress,{})}):Me.jsx(Lv.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:d,isFetching:o.isFetching,permissions:a==null?void 0:a.data},children:e})},lM=()=>q.useContext(Lv);function uM(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}var dT=[],cM=dT.forEach,fM=dT.slice;function dM(t){return cM.call(fM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var _0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,hM=function(e,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(e,"=").concat(o);if(i.maxAge>0){var c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!_0.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!_0.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var d=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(d){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},R0={create:function(e,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=hM(e,encodeURIComponent(n),o)},read:function(e){for(var n="".concat(e,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(e){this.create(e,"",-1)}},pM={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var r=R0.read(e.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&R0.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},gM={name:"querystring",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a<o.length;a++){var c=o[a].indexOf("=");if(c>0){var d=o[a].substring(0,c);d===e.lookupQuerystring&&(n=o[a].substring(c+1))}}}return n}},ed=null,A0=function(){if(ed!==null)return ed;try{ed=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ed=!1}return ed},mM={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&A0()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&A0()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},td=null,I0=function(){if(td!==null)return td;try{td=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{td=!1}return td},vM={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&I0()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&I0()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},yM={name:"navigator",lookup:function(e){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},bM={name:"htmlTag",lookup:function(e){var n,r=e.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},wM={name:"path",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;n=r[e.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},xM={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},hT=!1;try{document.cookie,hT=!0}catch{}var pT=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];hT||pT.splice(1,1);function SM(){return{order:pT,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var gT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ts(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return ns(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=dM(r,this.options||{},SM()),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(pM),this.addDetector(gM),this.addDetector(mM),this.addDetector(vM),this.addDetector(yM),this.addDetector(bM),this.addDetector(wM),this.addDetector(xM)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}])}();gT.type="languageDetector";function Fv(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}const TM=Object.freeze(Object.defineProperty({__proto__:null,default:Fv},Symbol.toStringTag,{value:"Module"}));var Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function CM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}function EM(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var M0={};function Dm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&M0[e[0]]||(typeof e[0]=="string"&&(M0[e[0]]=new Date),EM.apply(void 0,e))}var mT=function(e,n){return function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}}};function L0(t,e,n){t.loadNamespaces(e,mT(t,n))}function F0(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,mT(t,r))}function kM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(d,p){var w=e.services.backendConnector.state["".concat(d,"|").concat(p)];return w===-1||w===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}function DM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Dm("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{lng:n.lng,precheck:function(o,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,t))return!1}}):kM(t,e,n)}var PM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,OM={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},_M=function(e){return OM[e]},RM=function(e){return e.replace(PM,_M)};function N0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function j0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?N0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Pm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:RM};function AM(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pm=j0(j0({},Pm),t)}function IM(){return Pm}var vT;function MM(t){vT=t}function LM(){return vT}var FM={type:"3rdParty",init:function(e){AM(e.options.react),MM(e)}},yT=q.createContext(),NM=function(){function t(){ts(this,t),this.usedNamespaces={}}return ns(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function jM(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,c=[],d=!0,p=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);d=!0);}catch(w){p=!0,i=w}finally{try{if(!d&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(p)throw i}}return c}}function BM(t,e){return X1(t)||jM(t,e)||K1(t,e)||Z1()}function B0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Cg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?B0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var $M=function(e,n){var r=q.useRef();return q.useEffect(function(){r.current=e},[e,n]),r.current};function bT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=q.useContext(yT)||{},i=r.i18n,o=r.defaultNS,a=n||i||LM();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new NM),!a){Dm("You will need to pass in an i18next instance by using initReactI18next");var c=function(ce,Ue){return typeof Ue=="string"?Ue:Ue&&Jo(Ue)==="object"&&typeof Ue.defaultValue=="string"?Ue.defaultValue:Array.isArray(ce)?ce[ce.length-1]:ce},d=[c,{},!1];return d.t=c,d.i18n={},d.ready=!1,d}a.options.react&&a.options.react.wait!==void 0&&Dm("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Cg(Cg(Cg({},IM()),a.options.react),e),w=p.useSuspense,m=p.keyPrefix,T=t||o||a.options&&a.options.defaultNS;T=typeof T=="string"?[T]:T||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(T);var E=(a.isInitialized||a.initializedStoreOnce)&&T.every(function(ae){return DM(ae,a,p)});function I(){return a.getFixedT(e.lng||null,p.nsMode==="fallback"?T:T[0],m)}var A=q.useState(I),L=BM(A,2),_=L[0],U=L[1],G=T.join();e.lng&&(G="".concat(e.lng).concat(G));var re=$M(G),Z=q.useRef(!0);q.useEffect(function(){var ae=p.bindI18n,ce=p.bindI18nStore;Z.current=!0,!E&&!w&&(e.lng?F0(a,e.lng,T,function(){Z.current&&U(I)}):L0(a,T,function(){Z.current&&U(I)})),E&&re&&re!==G&&Z.current&&U(I);function Ue(){Z.current&&U(I)}return ae&&a&&a.on(ae,Ue),ce&&a&&a.store.on(ce,Ue),function(){Z.current=!1,ae&&a&&ae.split(" ").forEach(function(_e){return a.off(_e,Ue)}),ce&&a&&ce.split(" ").forEach(function(_e){return a.store.off(_e,Ue)})}},[a,G]);var ue=q.useRef(!0);q.useEffect(function(){Z.current&&!ue.current&&U(I),ue.current=!1},[a,m]);var S=[_,a,E];if(S.t=_,S.i18n=a,S.ready=E,E||!E&&!w)return S;throw new Promise(function(ae){e.lng?F0(a,e.lng,T,function(){return ae()}):L0(a,T,function(){return ae()})})}function VM(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=q.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return q.createElement(yT.Provider,{value:i},r)}var wT=[],HM=wT.forEach,UM=wT.slice;function WM(t){return HM.call(UM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function zM(t){return t?typeof t=="function"?new t:t:null}function YM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function $0(t,e,n,r){var i=t.read.bind(t);if(i.length===2){try{var o=i(e,n);o&&typeof o.then=="function"?o.then(function(a){return r(null,a)}).catch(r):r(null,o)}catch(a){r(a)}return}i(e,n,r)}var xT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ts(this,t),this.backends=[],this.type="backend",this.allOptions=r,this.init(e,n)}return ns(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=WM(i,this.options||{},YM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(a,c){r.backends[c]=r.backends[c]||zM(a),r.backends[c].init(n,r.options.backendOptions&&r.options.backendOptions[c]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,a=this.backends.length,c=function p(w){if(w>=a)return i(new Error("non of the backend loaded data",!0));var m=w===a-1,T=o.options.handleEmptyResourcesAsFailed&&!m?0:-1,E=o.backends[w];E.read?$0(E,n,r,function(I,A,L){if(!I&&A&&Object.keys(A).length>T){if(i(null,A,w),d(w-1,A),E.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(L&&o.options.refreshExpirationTime&&L+o.options.refreshExpirationTime>Date.now())return;var _=o.backends[w+1];_&&_.read&&$0(_,n,r,function(U,G){U||G&&(Object.keys(G).length<=T||(d(w,G),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,G)))})}}else p(w+1)}):p(w+1)},d=function p(w,m){if(!(w<0)){var T=o.backends[w];T.save&&T.save(n,r,m),p(w-1,m)}};c(0)}},{key:"create",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(d){if(d.create){var p=d.create.bind(d);if(p.length<6){try{var w;p.length===5?w=p(n,r,i,o,c):w=p(n,r,i,o),w&&typeof w.then=="function"?w.then(function(m){return a(null,m)}).catch(a):a(null,w)}catch(m){a(m)}return}p(n,r,i,o,a,c)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var d=[],p=function(m){var T=o.toResolveHierarchy(m);T.forEach(function(E){d.indexOf(E)<0&&d.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(w){return p(w)}),d.forEach(function(w){n.allOptions.ns.forEach(function(m){i.read(w,m,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(m," for language ").concat(w," failed"),T),!T&&E&&a.log("loaded namespace ".concat(m," for language ").concat(w),E),i.loaded("".concat(w,"|").concat(m),T,E)})})})}}}]),t}();xT.type="backend";function Om(t){"@babel/helpers - typeof";return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Om(t)}function ST(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Om(XMLHttpRequest))==="object"}function GM(t){return!!t&&typeof t.then=="function"}function qM(t){return GM(t)?t:Promise.resolve(t)}function XM(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var _m={exports:{}},ph={exports:{}},V0;function KM(){return V0||(V0=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ei<"u"&&Ei,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var c=typeof o<"u"&&o||typeof self<"u"&&self||typeof c<"u"&&c,d={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(he){return he&&DataView.prototype.isPrototypeOf(he)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(he){return he&&w.indexOf(Object.prototype.toString.call(he))>-1};function T(he){if(typeof he!="string"&&(he=String(he)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(he)||he==="")throw new TypeError('Invalid character in header field name: "'+he+'"');return he.toLowerCase()}function E(he){return typeof he!="string"&&(he=String(he)),he}function I(he){var Ee={next:function(){var Oe=he.shift();return{done:Oe===void 0,value:Oe}}};return d.iterable&&(Ee[Symbol.iterator]=function(){return Ee}),Ee}function A(he){this.map={},he instanceof A?he.forEach(function(Ee,Oe){this.append(Oe,Ee)},this):Array.isArray(he)?he.forEach(function(Ee){this.append(Ee[0],Ee[1])},this):he&&Object.getOwnPropertyNames(he).forEach(function(Ee){this.append(Ee,he[Ee])},this)}A.prototype.append=function(he,Ee){he=T(he),Ee=E(Ee);var Oe=this.map[he];this.map[he]=Oe?Oe+", "+Ee:Ee},A.prototype.delete=function(he){delete this.map[T(he)]},A.prototype.get=function(he){return he=T(he),this.has(he)?this.map[he]:null},A.prototype.has=function(he){return this.map.hasOwnProperty(T(he))},A.prototype.set=function(he,Ee){this.map[T(he)]=E(Ee)},A.prototype.forEach=function(he,Ee){for(var Oe in this.map)this.map.hasOwnProperty(Oe)&&he.call(Ee,this.map[Oe],Oe,this)},A.prototype.keys=function(){var he=[];return this.forEach(function(Ee,Oe){he.push(Oe)}),I(he)},A.prototype.values=function(){var he=[];return this.forEach(function(Ee){he.push(Ee)}),I(he)},A.prototype.entries=function(){var he=[];return this.forEach(function(Ee,Oe){he.push([Oe,Ee])}),I(he)},d.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function L(he){if(he.bodyUsed)return Promise.reject(new TypeError("Already read"));he.bodyUsed=!0}function _(he){return new Promise(function(Ee,Oe){he.onload=function(){Ee(he.result)},he.onerror=function(){Oe(he.error)}})}function U(he){var Ee=new FileReader,Oe=_(Ee);return Ee.readAsArrayBuffer(he),Oe}function G(he){var Ee=new FileReader,Oe=_(Ee);return Ee.readAsText(he),Oe}function re(he){for(var Ee=new Uint8Array(he),Oe=new Array(Ee.length),Ne=0;Ne<Ee.length;Ne++)Oe[Ne]=String.fromCharCode(Ee[Ne]);return Oe.join("")}function Z(he){if(he.slice)return he.slice(0);var Ee=new Uint8Array(he.byteLength);return Ee.set(new Uint8Array(he)),Ee.buffer}function ue(){return this.bodyUsed=!1,this._initBody=function(he){this.bodyUsed=this.bodyUsed,this._bodyInit=he,he?typeof he=="string"?this._bodyText=he:d.blob&&Blob.prototype.isPrototypeOf(he)?this._bodyBlob=he:d.formData&&FormData.prototype.isPrototypeOf(he)?this._bodyFormData=he:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(he)?this._bodyText=he.toString():d.arrayBuffer&&d.blob&&p(he)?(this._bodyArrayBuffer=Z(he.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(he)||m(he))?this._bodyArrayBuffer=Z(he):this._bodyText=he=Object.prototype.toString.call(he):this._bodyText="",this.headers.get("content-type")||(typeof he=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(he)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var he=L(this);if(he)return he;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 he=L(this);return he||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(U)}),this.text=function(){var he=L(this);if(he)return he;if(this._bodyBlob)return G(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(re(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(Ue)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ae(he){var Ee=he.toUpperCase();return S.indexOf(Ee)>-1?Ee:he}function ce(he,Ee){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Ee=Ee||{};var Oe=Ee.body;if(he instanceof ce){if(he.bodyUsed)throw new TypeError("Already read");this.url=he.url,this.credentials=he.credentials,Ee.headers||(this.headers=new A(he.headers)),this.method=he.method,this.mode=he.mode,this.signal=he.signal,!Oe&&he._bodyInit!=null&&(Oe=he._bodyInit,he.bodyUsed=!0)}else this.url=String(he);if(this.credentials=Ee.credentials||this.credentials||"same-origin",(Ee.headers||!this.headers)&&(this.headers=new A(Ee.headers)),this.method=ae(Ee.method||this.method||"GET"),this.mode=Ee.mode||this.mode||null,this.signal=Ee.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Oe)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Oe),(this.method==="GET"||this.method==="HEAD")&&(Ee.cache==="no-store"||Ee.cache==="no-cache")){var Ne=/([?&])_=[^&]*/;if(Ne.test(this.url))this.url=this.url.replace(Ne,"$1_="+new Date().getTime());else{var tt=/\?/;this.url+=(tt.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function Ue(he){var Ee=new FormData;return he.trim().split("&").forEach(function(Oe){if(Oe){var Ne=Oe.split("="),tt=Ne.shift().replace(/\+/g," "),me=Ne.join("=").replace(/\+/g," ");Ee.append(decodeURIComponent(tt),decodeURIComponent(me))}}),Ee}function _e(he){var Ee=new A,Oe=he.replace(/\r?\n[\t ]+/g," ");return Oe.split("\r").map(function(Ne){return Ne.indexOf(`
|
|
3
|
-
`)===0?Ne.substr(1,Ne.length):Ne}).forEach(function(Ne){var tt=Ne.split(":"),me=tt.shift().trim();if(me){var ke=tt.join(":").trim();Ee.append(me,ke)}}),Ee}ue.call(ce.prototype);function Le(he,Ee){if(!(this instanceof Le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Ee||(Ee={}),this.type="default",this.status=Ee.status===void 0?200:Ee.status,this.ok=this.status>=200&&this.status<300,this.statusText=Ee.statusText===void 0?"":""+Ee.statusText,this.headers=new A(Ee.headers),this.url=Ee.url||"",this._initBody(he)}ue.call(Le.prototype),Le.prototype.clone=function(){return new Le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},Le.error=function(){var he=new Le(null,{status:0,statusText:""});return he.type="error",he};var Ve=[301,302,303,307,308];Le.redirect=function(he,Ee){if(Ve.indexOf(Ee)===-1)throw new RangeError("Invalid status code");return new Le(null,{status:Ee,headers:{location:he}})},a.DOMException=c.DOMException;try{new a.DOMException}catch{a.DOMException=function(Ee,Oe){this.message=Ee,this.name=Oe;var Ne=Error(Ee);this.stack=Ne.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function We(he,Ee){return new Promise(function(Oe,Ne){var tt=new ce(he,Ee);if(tt.signal&&tt.signal.aborted)return Ne(new a.DOMException("Aborted","AbortError"));var me=new XMLHttpRequest;function ke(){me.abort()}me.onload=function(){var et={status:me.status,statusText:me.statusText,headers:_e(me.getAllResponseHeaders()||"")};et.url="responseURL"in me?me.responseURL:et.headers.get("X-Request-URL");var qe="response"in me?me.response:me.responseText;setTimeout(function(){Oe(new Le(qe,et))},0)},me.onerror=function(){setTimeout(function(){Ne(new TypeError("Network request failed"))},0)},me.ontimeout=function(){setTimeout(function(){Ne(new TypeError("Network request failed"))},0)},me.onabort=function(){setTimeout(function(){Ne(new a.DOMException("Aborted","AbortError"))},0)};function ze(et){try{return et===""&&c.location.href?c.location.href:et}catch{return et}}me.open(tt.method,ze(tt.url),!0),tt.credentials==="include"?me.withCredentials=!0:tt.credentials==="omit"&&(me.withCredentials=!1),"responseType"in me&&(d.blob?me.responseType="blob":d.arrayBuffer&&tt.headers.get("Content-Type")&&tt.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(me.responseType="arraybuffer")),Ee&&typeof Ee.headers=="object"&&!(Ee.headers instanceof A)?Object.getOwnPropertyNames(Ee.headers).forEach(function(et){me.setRequestHeader(et,E(Ee.headers[et]))}):tt.headers.forEach(function(et,qe){me.setRequestHeader(qe,et)}),tt.signal&&(tt.signal.addEventListener("abort",ke),me.onreadystatechange=function(){me.readyState===4&&tt.signal.removeEventListener("abort",ke)}),me.send(typeof tt._bodyInit>"u"?null:tt._bodyInit)})}return We.polyfill=!0,c.fetch||(c.fetch=We,c.Headers=A,c.Request=ce,c.Response=Le),a.Headers=A,a.Request=ce,a.Response=Le,a.fetch=We,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(ph,ph.exports)),ph.exports}(function(t,e){var n=typeof fetch=="function"?fetch:void 0;if(typeof Ei<"u"&&Ei.fetch?n=Ei.fetch:typeof window<"u"&&window.fetch&&(n=window.fetch),typeof XM<"u"&&typeof window>"u"){var r=n||KM();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(_m,_m.exports);var TT=_m.exports;const CT=Oc(TT),H0=fI({__proto__:null,default:CT},[TT]);function U0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function W0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U0(Object(n),!0).forEach(function(r){ZM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ZM(t,e,n){return(e=JM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JM(t){var e=QM(t,"string");return Tc(e)=="symbol"?e:e+""}function QM(t,e){if(Tc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tc(t){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tc(t)}var mu=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?mu=global.fetch:typeof window<"u"&&window.fetch&&(mu=window.fetch);var Pd;ST()&&(typeof global<"u"&&global.XMLHttpRequest?Pd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Pd=window.XMLHttpRequest));var ep;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ep=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ep=window.ActiveXObject));!mu&&H0&&!Pd&&!ep&&(mu=CT||H0);typeof mu!="function"&&(mu=void 0);var Rm=function(e,n){if(n&&Tc(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},z0=function(e,n,r,i){var o=function(d){if(!d.ok)return r(d.statusText||"Error",{status:d.status});d.text().then(function(p){r(null,{status:d.status,data:p})}).catch(r)};if(i){var a=i(e,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(o).catch(r):mu(e,n).then(o).catch(r)},Y0=!1,eL=function(e,n,r,i){e.queryStringParams&&(n=Rm(n,e.queryStringParams));var o=W0({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,c=W0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},Y0?{}:a),d=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{z0(n,c,i,d)}catch(p){if(!a||Object.keys(a).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(a).forEach(function(w){delete c[w]}),z0(n,c,i,d),Y0=!0}catch(w){i(w)}}},tL=function(e,n,r,i){r&&Tc(r)==="object"&&(r=Rm("",r).slice(1)),e.queryStringParams&&(n=Rm(n,e.queryStringParams));try{var o;Pd?o=new Pd:o=new ep("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(d){console&&console.log(d)}},nL=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},mu&&n.indexOf("file:")!==0)return eL(e,n,r,i);if(ST()||typeof ActiveXObject=="function")return tL(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Ef(t){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ef(t)}function G0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Eg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G0(Object(n),!0).forEach(function(r){ET(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kT(r.key),r)}}function oL(t,e,n){return e&&iL(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ET(t,e,n){return(e=kT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kT(t){var e=sL(t,"string");return Ef(e)=="symbol"?e:e+""}function sL(t,e){if(Ef(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var aL=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 ET({},r,i||"")},parseLoadPayload:function(n,r){},request:nL,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},DT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};rL(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return oL(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Eg(Eg(Eg({},aL()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);Ef(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,d=this.options.loadPath;typeof this.options.loadPath=="function"&&(d=this.options.loadPath(n,i)),d=qM(d),d.then(function(p){if(!p)return a(null,{});var w=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(w,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,d=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,d);this.options.request(this.options,n,p,function(w,m){if(m&&(m.status>=500&&m.status<600||!m.status))return r("failed loading "+n+"; status code: "+m.status,!0);if(m&&m.status>=400&&m.status<500)return r("failed loading "+n+"; status code: "+m.status,!1);if(!m&&w&&w.message){var T=w.message.toLowerCase(),E=["failed","fetch","network","load"].find(function(L){return T.indexOf(L)>-1});if(E)return r("failed loading "+n+": "+w.message,!0)}if(w)return r(w,!1);var I,A;try{typeof m.data=="string"?I=a.options.parse(m.data,i,o):I=m.data}catch{A="failed parsing "+n+" to json"}if(A)return r(A,!1);r(null,I)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var d=this.options.parsePayload(r,i,o),p=0,w=[],m=[];n.forEach(function(T){var E=c.options.addPath;typeof c.options.addPath=="function"&&(E=c.options.addPath(T,r));var I=c.services.interpolator.interpolate(E,{lng:T,ns:r});c.options.request(c.options,I,d,function(A,L){p+=1,w.push(A),m.push(L),p===n.length&&typeof a=="function"&&a(w,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var d=[],p=function(m){var T=o.toResolveHierarchy(m);T.forEach(function(E){d.indexOf(E)<0&&d.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(w){return p(w)}),d.forEach(function(w){n.allOptions.ns.forEach(function(m){i.read(w,m,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(m," for language ").concat(w," failed"),T),!T&&E&&a.log("loaded namespace ".concat(m," for language ").concat(w),E),i.loaded("".concat(w,"|").concat(m),T,E)})})})}}}])}();DT.type="backend";var Nv=(t=>(t.en="en",t.de="de",t))(Nv||{});const lL={en:"English",de:"German"};ii.use(xT).use(FM).use(gT).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(lL),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[DT],backendOptions:[{loadPath:()=>{var e,n,r;if((e=window==null?void 0:window.env)!=null&&e.TRANSLATION_URL)return`${window.env.TRANSLATION_URL}/{{lng}}`;const t=((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",t),`${t}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function uL(){const[t,e]=q.useState();return q.useEffect(()=>{const n=localStorage.getItem("language");e(n||Nv.en)},[]),{language:t,setLanguage:e}}const PT=q.createContext({}),cL=()=>q.useContext(PT),fL=ii,dL=eT,hL=()=>bT(),pL=({children:t})=>{const e=uL();return Me.jsx(PT.Provider,{value:e,children:Me.jsx(VM,{i18n:ii,children:t})})},gL="*,: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 jv({children:t,styles:e=[],...n}){return Me.jsxs("div",{...n,children:[[gL,...e].map((r,i)=>Me.jsx("style",{type:"text/css",children:r},i)),t]})}function mL(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Bv=mL,vL=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,yL=vL,bL=yL,wL=typeof self=="object"&&self&&self.Object===Object&&self,xL=bL||wL||Function("return this")(),OT=xL,SL=OT,TL=function(){return SL.Date.now()},CL=TL,EL=/\s/;function kL(t){for(var e=t.length;e--&&EL.test(t.charAt(e)););return e}var DL=kL,PL=DL,OL=/^\s+/;function _L(t){return t&&t.slice(0,PL(t)+1).replace(OL,"")}var RL=_L,AL=OT,IL=AL.Symbol,_T=IL,q0=_T,RT=Object.prototype,ML=RT.hasOwnProperty,LL=RT.toString,nd=q0?q0.toStringTag:void 0;function FL(t){var e=ML.call(t,nd),n=t[nd];try{t[nd]=void 0;var r=!0}catch{}var i=LL.call(t);return r&&(e?t[nd]=n:delete t[nd]),i}var NL=FL,jL=Object.prototype,BL=jL.toString;function $L(t){return BL.call(t)}var VL=$L,X0=_T,HL=NL,UL=VL,WL="[object Null]",zL="[object Undefined]",K0=X0?X0.toStringTag:void 0;function YL(t){return t==null?t===void 0?zL:WL:K0&&K0 in Object(t)?HL(t):UL(t)}var GL=YL;function qL(t){return t!=null&&typeof t=="object"}var XL=qL,KL=GL,ZL=XL,JL="[object Symbol]";function QL(t){return typeof t=="symbol"||ZL(t)&&KL(t)==JL}var e2=QL,t2=RL,Z0=Bv,n2=e2,J0=NaN,r2=/^[-+]0x[0-9a-f]+$/i,i2=/^0b[01]+$/i,o2=/^0o[0-7]+$/i,s2=parseInt;function a2(t){if(typeof t=="number")return t;if(n2(t))return J0;if(Z0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Z0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t2(t);var n=i2.test(t);return n||o2.test(t)?s2(t.slice(2),n?2:8):r2.test(t)?J0:+t}var l2=a2,u2=Bv,kg=CL,Q0=l2,c2="Expected a function",f2=Math.max,d2=Math.min;function h2(t,e,n){var r,i,o,a,c,d,p=0,w=!1,m=!1,T=!0;if(typeof t!="function")throw new TypeError(c2);e=Q0(e)||0,u2(n)&&(w=!!n.leading,m="maxWait"in n,o=m?f2(Q0(n.maxWait)||0,e):o,T="trailing"in n?!!n.trailing:T);function E(ue){var S=r,ae=i;return r=i=void 0,p=ue,a=t.apply(ae,S),a}function I(ue){return p=ue,c=setTimeout(_,e),w?E(ue):a}function A(ue){var S=ue-d,ae=ue-p,ce=e-S;return m?d2(ce,o-ae):ce}function L(ue){var S=ue-d,ae=ue-p;return d===void 0||S>=e||S<0||m&&ae>=o}function _(){var ue=kg();if(L(ue))return U(ue);c=setTimeout(_,A(ue))}function U(ue){return c=void 0,T&&r?E(ue):(r=i=void 0,a)}function G(){c!==void 0&&clearTimeout(c),p=0,r=d=i=c=void 0}function re(){return c===void 0?a:U(kg())}function Z(){var ue=kg(),S=L(ue);if(r=arguments,i=this,d=ue,S){if(c===void 0)return I(d);if(m)return clearTimeout(c),c=setTimeout(_,e),E(d)}return c===void 0&&(c=setTimeout(_,e)),a}return Z.cancel=G,Z.flush=re,Z}var AT=h2;const Dg=Oc(AT);var p2=AT,g2=Bv,m2="Expected a function";function v2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(m2);return g2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),p2(t,e,{leading:r,maxWait:e,trailing:i})}var y2=v2;const b2=Oc(y2);var hf=function(){return hf=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hf.apply(this,arguments)};function IT(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function MT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var LT=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(c,d){return d.toUpperCase()});switch(i.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=i.value}}return r},e);return n};function FT(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function NT(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function jT(t){return".".concat(t.split(" ").join("."))}var $v=!!(typeof window<"u"&&window.document&&window.document.createElement),w2=Object.freeze({__proto__:null,addClasses:FT,canUseDOM:$v,classNamesToQuery:jT,getElementDocument:MT,getElementWindow:IT,getOptions:LT,removeClasses:NT}),ff=null,ew=null;$v&&window.addEventListener("resize",function(){ew!==window.devicePixelRatio&&(ew=window.devicePixelRatio,ff=null)});function tw(){if(ff===null){if(typeof document>"u")return ff=0,ff;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),ff=n}return ff}var nu=IT,Pg=MT,x2=LT,ru=FT,iu=NT,Oo=jT,rd=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=nu(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,ru(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(){iu(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ru(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){iu(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,c,d,p,w,m,T,E,I,A;if(!(!r.draggedAxis||!r.contentWrapperEl)){var L,_=r.axis[r.draggedAxis].track,U=(a=(o=_.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,G=r.axis[r.draggedAxis].scrollbar,re=(d=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&d!==void 0?d:0,Z=parseInt((w=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&w!==void 0?w:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?L=i.pageY:L=i.pageX;var ue=L-((T=(m=_.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;ue=r.draggedAxis==="x"&&r.isRtl?((I=(E=_.rect)===null||E===void 0?void 0:E[r.axis[r.draggedAxis].sizeAttr])!==null&&I!==void 0?I:0)-G.size-ue:ue;var S=ue/(U-G.size),ae=S*(re-Z);r.draggedAxis==="x"&&r.isRtl&&(ae=!((A=t.getRtlHelpers())===null||A===void 0)&&A.isScrollingToNegative?-ae:ae),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ae}},this.onEndDrag=function(i){r.isDragging=!1;var o=Pg(r.el),a=nu(r.el);i.preventDefault(),i.stopPropagation(),iu(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=hf(hf({},t.defaultOptions),n),this.classNames=hf(hf({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=b2(this._onMouseMove,64),this.onWindowResize=Dg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Dg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Dg(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var a=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:tw()}catch{return tw()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=Pg(e),i=nu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){$v&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(Oo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Oo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Oo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Oo(this.classNames.offset)),this.maskEl=this.el.querySelector(Oo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Oo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(Oo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Oo(this.classNames.scrollbar)))||null,this.options.autoHide||(ru(this.axis.x.scrollbar.el,this.classNames.visible),ru(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=nu(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=nu(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var d=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(d,"px");var w=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=d>w,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var m=this.axis.x.isOverflowing?this.scrollbarWidth:0,T=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-T,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>w-m,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,a=o/i,c;return c=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[e].scrollSizeAttr],c=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[e].sizeAttr],10),p=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];p=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,e==="x"&&this.isRtl&&(p=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var w=p/(a-d),m=~~((c-o.size)*w);m=e==="x"&&this.isRtl?-m+(c-o.size):m,o.el.style.transform=e==="x"?"translate3d(".concat(m,"px, 0, 0)"):"translate3d(0, ".concat(m,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(ru(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(iu(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),ru(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ru(n.scrollbar.el,this.classNames.hover):iu(n.scrollbar.el,this.classNames.hover)):(iu(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),iu(this.axis[e].track.el,this.classNames.hover),iu(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Pg(this.el),o=nu(this.el),a=this.axis[n].scrollbar,c=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ru(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,a,c;n===void 0&&(n="y");var d=this.axis[n];if(!(!this.options.clickOnTrack||!d.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var p=nu(this.el);this.axis[n].scrollbar.rect=d.scrollbar.el.getBoundingClientRect();var w=this.axis[n].scrollbar,m=(o=(i=w.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,T=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],I=n==="y"?this.mouseY-m:this.mouseX-m,A=I<0?-1:1,L=A===-1?E-T:E+T,_=40,U=function(){r.contentWrapperEl&&(A===-1?E>L&&(E-=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)):E<L&&(E+=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)))};U()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=nu(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=x2,t.helpers=w2,t}(),Ko=function(){return Ko=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ko.apply(this,arguments)};function S2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Vv=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=S2(t,["children","scrollableNodeProps"]),a=kn.useRef(),c=kn.useRef(),d=kn.useRef(),p={},w={};Object.keys(o).forEach(function(E){Object.prototype.hasOwnProperty.call(rd.defaultOptions,E)?p[E]=o[E]:w[E]=o[E]});var m=Ko(Ko({},rd.defaultOptions.classNames),p.classNames),T=Ko(Ko({},i),{className:"".concat(m.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||rd.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||rd.defaultOptions.ariaLabel});return kn.useEffect(function(){var E;return c.current=T.ref?T.ref.current:c.current,a.current&&(E=new rd(a.current,Ko(Ko(Ko({},p),c.current&&{scrollableNode:c.current}),d.current&&{contentNode:d.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),kn.createElement("div",Ko({"data-simplebar":"init",ref:a},w),kn.createElement("div",{className:m.wrapper},kn.createElement("div",{className:m.heightAutoObserverWrapperEl},kn.createElement("div",{className:m.heightAutoObserverEl})),kn.createElement("div",{className:m.mask},kn.createElement("div",{className:m.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Ko(Ko({},T),{ref:c}),contentNodeRef:d,contentNodeProps:{className:m.contentEl,ref:d}}):kn.createElement("div",Ko({},T),kn.createElement("div",{className:m.contentEl},n)))),kn.createElement("div",{className:m.placeholder})),kn.createElement("div",{className:"".concat(m.track," simplebar-horizontal")},kn.createElement("div",{className:m.scrollbar})),kn.createElement("div",{className:"".concat(m.track," simplebar-vertical")},kn.createElement("div",{className:m.scrollbar})))});Vv.displayName="SimpleBar";const BT='[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 $T(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=$T(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function bl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=$T(t))&&(r&&(r+=" "),r+=e);return r}const Od=t=>typeof t=="number"&&!isNaN(t),bc=t=>typeof t=="string",Zo=t=>typeof t=="function",Lh=t=>bc(t)||Zo(t)?t:null,Am=t=>q.isValidElement(t)||bc(t)||Zo(t)||Od(t);function T2(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function Ep(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:c,position:d,preventExitTransition:p,done:w,nodeRef:m,isIn:T,playToast:E}=a;const I=r?`${e}--${d}`:e,A=r?`${n}--${d}`:n,L=q.useRef(0);return q.useLayoutEffect(()=>{const _=m.current,U=I.split(" "),G=re=>{re.target===m.current&&(E(),_.removeEventListener("animationend",G),_.removeEventListener("animationcancel",G),L.current===0&&re.type!=="animationcancel"&&_.classList.remove(...U))};_.classList.add(...U),_.addEventListener("animationend",G),_.addEventListener("animationcancel",G)},[]),q.useEffect(()=>{const _=m.current,U=()=>{_.removeEventListener("animationend",U),i?T2(_,w,o):w()};T||(p?U():(L.current=1,_.className+=` ${A}`,_.addEventListener("animationend",U)))},[T]),q.createElement(q.Fragment,null,c)}}function nw(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const oo=new Map;let _d=[];const Im=new Set,C2=t=>Im.forEach(e=>e(t)),VT=()=>oo.size>0;function HT(t,e){var n;if(e)return!((n=oo.get(e))==null||!n.isToastActive(t));let r=!1;return oo.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function UT(t,e){Am(t)&&(VT()||_d.push({content:t,options:e}),oo.forEach(n=>{n.buildToast(t,e)}))}function rw(t,e){oo.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function E2(t){const{subscribe:e,getSnapshot:n,setProps:r}=q.useRef(function(o){const a=o.containerId||1;return{subscribe(c){const d=function(w,m,T){let E=1,I=0,A=[],L=[],_=[],U=m;const G=new Map,re=new Set,Z=()=>{_=Array.from(G.values()),re.forEach(ae=>ae())},ue=ae=>{L=ae==null?[]:L.filter(ce=>ce!==ae),Z()},S=ae=>{const{toastId:ce,onOpen:Ue,updateId:_e,children:Le}=ae.props,Ve=_e==null;ae.staleId&&G.delete(ae.staleId),G.set(ce,ae),L=[...L,ae.props.toastId].filter(We=>We!==ae.staleId),Z(),T(nw(ae,Ve?"added":"updated")),Ve&&Zo(Ue)&&Ue(q.isValidElement(Le)&&Le.props)};return{id:w,props:U,observe:ae=>(re.add(ae),()=>re.delete(ae)),toggle:(ae,ce)=>{G.forEach(Ue=>{ce!=null&&ce!==Ue.props.toastId||Zo(Ue.toggle)&&Ue.toggle(ae)})},removeToast:ue,toasts:G,clearQueue:()=>{I-=A.length,A=[]},buildToast:(ae,ce)=>{if((ze=>{let{containerId:et,toastId:qe,updateId:Je}=ze;const Ke=et?et!==w:w!==1,ot=G.has(qe)&&Je==null;return Ke||ot})(ce))return;const{toastId:Ue,updateId:_e,data:Le,staleId:Ve,delay:We}=ce,he=()=>{ue(Ue)},Ee=_e==null;Ee&&I++;const Oe={...U,style:U.toastStyle,key:E++,...Object.fromEntries(Object.entries(ce).filter(ze=>{let[et,qe]=ze;return qe!=null})),toastId:Ue,updateId:_e,data:Le,closeToast:he,isIn:!1,className:Lh(ce.className||U.toastClassName),bodyClassName:Lh(ce.bodyClassName||U.bodyClassName),progressClassName:Lh(ce.progressClassName||U.progressClassName),autoClose:!ce.isLoading&&(Ne=ce.autoClose,tt=U.autoClose,Ne===!1||Od(Ne)&&Ne>0?Ne:tt),deleteToast(){const ze=G.get(Ue),{onClose:et,children:qe}=ze.props;Zo(et)&&et(q.isValidElement(qe)&&qe.props),T(nw(ze,"removed")),G.delete(Ue),I--,I<0&&(I=0),A.length>0?S(A.shift()):Z()}};var Ne,tt;Oe.closeButton=U.closeButton,ce.closeButton===!1||Am(ce.closeButton)?Oe.closeButton=ce.closeButton:ce.closeButton===!0&&(Oe.closeButton=!Am(U.closeButton)||U.closeButton);let me=ae;q.isValidElement(ae)&&!bc(ae.type)?me=q.cloneElement(ae,{closeToast:he,toastProps:Oe,data:Le}):Zo(ae)&&(me=ae({closeToast:he,toastProps:Oe,data:Le}));const ke={content:me,props:Oe,staleId:Ve};U.limit&&U.limit>0&&I>U.limit&&Ee?A.push(ke):Od(We)?setTimeout(()=>{S(ke)},We):S(ke)},setProps(ae){U=ae},setToggle:(ae,ce)=>{G.get(ae).toggle=ce},isToastActive:ae=>L.some(ce=>ce===ae),getSnapshot:()=>_}}(a,o,C2);oo.set(a,d);const p=d.observe(c);return _d.forEach(w=>UT(w.content,w.options)),_d=[],()=>{p(),oo.delete(a)}},setProps(c){var d;(d=oo.get(a))==null||d.setProps(c)},getSnapshot(){var c;return(c=oo.get(a))==null?void 0:c.getSnapshot()}}}(t)).current;r(t);const i=q.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(c=>{const{position:d}=c.props;a.has(d)||a.set(d,[]),a.get(d).push(c)}),Array.from(a,c=>o(c[0],c[1]))},isToastActive:HT,count:i==null?void 0:i.length}}function k2(t){const[e,n]=q.useState(!1),[r,i]=q.useState(!1),o=q.useRef(null),a=q.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:p,onClick:w,closeOnClick:m}=t;var T,E;function I(){n(!0)}function A(){n(!1)}function L(G){const re=o.current;a.canDrag&&re&&(a.didMove=!0,e&&A(),a.delta=t.draggableDirection==="x"?G.clientX-a.start:G.clientY-a.start,a.start!==G.clientX&&(a.canCloseOnClick=!1),re.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,re.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function _(){document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",_);const G=o.current;if(a.canDrag&&a.didMove&&G){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();G.style.transition="transform 0.2s, opacity 0.2s",G.style.removeProperty("transform"),G.style.removeProperty("opacity")}}(E=oo.get((T={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(T.id,T.fn),q.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||A(),window.addEventListener("focus",I),window.addEventListener("blur",A),()=>{window.removeEventListener("focus",I),window.removeEventListener("blur",A)}},[t.pauseOnFocusLoss]);const U={onPointerDown:function(G){if(t.draggable===!0||t.draggable===G.pointerType){a.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",_);const re=o.current;a.canCloseOnClick=!0,a.canDrag=!0,re.style.transition="none",t.draggableDirection==="x"?(a.start=G.clientX,a.removalDistance=re.offsetWidth*(t.draggablePercent/100)):(a.start=G.clientY,a.removalDistance=re.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(G){const{top:re,bottom:Z,left:ue,right:S}=o.current.getBoundingClientRect();G.nativeEvent.type!=="touchend"&&t.pauseOnHover&&G.clientX>=ue&&G.clientX<=S&&G.clientY>=re&&G.clientY<=Z?A():I()}};return c&&d&&(U.onMouseEnter=A,t.stacked||(U.onMouseLeave=I)),m&&(U.onClick=G=>{w&&w(G),a.canCloseOnClick&&p()}),{playToast:I,pauseToast:A,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:U}}function D2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:c,controlledProgress:d,progress:p,rtl:w,isIn:m,theme:T}=t;const E=o||d&&p===0,I={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};d&&(I.transform=`scaleX(${p})`);const A=bl("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${T}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":w}),L=Zo(a)?a({rtl:w,type:i,defaultClassName:A}):bl(A,a),_={[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{m&&r()}};return q.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},q.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),q.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:L,style:I,..._}))}let P2=1;const WT=()=>""+P2++;function O2(t){return t&&(bc(t.toastId)||Od(t.toastId))?t.toastId:WT()}function gd(t,e){return UT(t,e),e.toastId}function tp(t,e){return{...e,type:e&&e.type||t,toastId:O2(e)}}function gh(t){return(e,n)=>gd(e,tp(t,n))}function xn(t,e){return gd(t,tp("default",e))}xn.loading=(t,e)=>gd(t,tp("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),xn.promise=function(t,e,n){let r,{pending:i,error:o,success:a}=e;i&&(r=bc(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(w,m,T)=>{if(m==null)return void xn.dismiss(r);const E={type:w,...c,...n,data:T},I=bc(m)?{render:m}:m;return r?xn.update(r,{...E,...I}):xn(I.render,{...E,...I}),T},p=Zo(t)?t():t;return p.then(w=>d("success",a,w)).catch(w=>d("error",o,w)),p},xn.success=gh("success"),xn.info=gh("info"),xn.error=gh("error"),xn.warning=gh("warning"),xn.warn=xn.warning,xn.dark=(t,e)=>gd(t,tp("default",{theme:"dark",...e})),xn.dismiss=function(t){(function(e){var n;if(VT()){if(e==null||bc(n=e)||Od(n))oo.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=oo.get(e.containerId);r?r.removeToast(e.id):oo.forEach(i=>{i.removeToast(e.id)})}}else _d=_d.filter(r=>e!=null&&r.options.toastId!==e)})(t)},xn.clearWaitingQueue=function(t){t===void 0&&(t={}),oo.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},xn.isActive=HT,xn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=oo.get(a||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:WT()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,gd(a,o)}},xn.done=t=>{xn.update(t,{progress:1})},xn.onChange=function(t){return Im.add(t),()=>{Im.delete(t)}},xn.play=t=>rw(!0,t),xn.pause=t=>rw(!1,t);const _2=typeof window<"u"?q.useLayoutEffect:q.useEffect,mh=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Og={info:function(t){return q.createElement(mh,{...t},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(t){return q.createElement(mh,{...t},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(t){return q.createElement(mh,{...t},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(t){return q.createElement(mh,{...t},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"})}},R2=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=k2(t),{closeButton:a,children:c,autoClose:d,onClick:p,type:w,hideProgressBar:m,closeToast:T,transition:E,position:I,className:A,style:L,bodyClassName:_,bodyStyle:U,progressClassName:G,progressStyle:re,updateId:Z,role:ue,progress:S,rtl:ae,toastId:ce,deleteToast:Ue,isIn:_e,isLoading:Le,closeOnClick:Ve,theme:We}=t,he=bl("Toastify__toast",`Toastify__toast-theme--${We}`,`Toastify__toast--${w}`,{"Toastify__toast--rtl":ae},{"Toastify__toast--close-on-click":Ve}),Ee=Zo(A)?A({rtl:ae,position:I,type:w,defaultClassName:he}):bl(he,A),Oe=function(ke){let{theme:ze,type:et,isLoading:qe,icon:Je}=ke,Ke=null;const ot={theme:ze,type:et};return Je===!1||(Zo(Je)?Ke=Je({...ot,isLoading:qe}):q.isValidElement(Je)?Ke=q.cloneElement(Je,ot):qe?Ke=Og.spinner():(ct=>ct in Og)(et)&&(Ke=Og[et](ot))),Ke}(t),Ne=!!S||!d,tt={closeToast:T,type:w,theme:We};let me=null;return a===!1||(me=Zo(a)?a(tt):q.isValidElement(a)?q.cloneElement(a,tt):function(ke){let{closeToast:ze,theme:et,ariaLabel:qe="close"}=ke;return q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${et}`,type:"button",onClick:Je=>{Je.stopPropagation(),ze(Je)},"aria-label":qe},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(E,{isIn:_e,done:Ue,position:I,preventExitTransition:n,nodeRef:r,playToast:o},q.createElement("div",{id:ce,onClick:p,"data-in":_e,className:Ee,...i,style:L,ref:r},q.createElement("div",{..._e&&{role:ue},className:Zo(_)?_({type:w}):bl("Toastify__toast-body",_),style:U},Oe!=null&&q.createElement("div",{className:bl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Le})},Oe),q.createElement("div",null,c)),me,q.createElement(D2,{...Z&&!Ne?{key:`pb-${Z}`}:{},rtl:ae,theme:We,delay:d,isRunning:e,isIn:_e,closeToast:T,hide:m,type:w,style:re,className:G,controlledProgress:Ne,progress:S||0})))},kp=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},A2=Ep(kp("bounce",!0));Ep(kp("slide",!0));Ep(kp("zoom"));Ep(kp("flip"));const I2={position:"top-right",transition:A2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function M2(t){let e={...I2,...t};const n=t.stacked,[r,i]=q.useState(!0),o=q.useRef(null),{getToastToRender:a,isToastActive:c,count:d}=E2(e),{className:p,style:w,rtl:m,containerId:T}=e;function E(A){const L=bl("Toastify__toast-container",`Toastify__toast-container--${A}`,{"Toastify__toast-container--rtl":m});return Zo(p)?p({position:A,rtl:m,defaultClassName:L}):bl(L,Lh(p))}function I(){n&&(i(!0),xn.play())}return _2(()=>{if(n){var A;const L=o.current.querySelectorAll('[data-in="true"]'),_=12,U=(A=e.position)==null?void 0:A.includes("top");let G=0,re=0;Array.from(L).reverse().forEach((Z,ue)=>{const S=Z;S.classList.add("Toastify__toast--stacked"),ue>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=U?"top":"bot");const ae=G*(r?.2:1)+(r?0:_*ue);S.style.setProperty("--y",`${U?ae:-1*ae}px`),S.style.setProperty("--g",`${_}`),S.style.setProperty("--s",""+(1-(r?re:0))),G+=S.offsetHeight,re+=.025})}},[r,d,n]),q.createElement("div",{ref:o,className:"Toastify",id:T,onMouseEnter:()=>{n&&(i(!1),xn.pause())},onMouseLeave:I},a((A,L)=>{const _=L.length?{...w}:{...w,pointerEvents:"none"};return q.createElement("div",{className:E(A),style:_,key:`container-${A}`},L.map(U=>{let{content:G,props:re}=U;return q.createElement(R2,{...re,stacked:n,collapseAll:I,isIn:c(re.toastId,re.containerId),style:re.style,key:`toast-${re.key}`},G)}))}))}function L2(){return Me.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Me.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"}),Me.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Me.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function F2(){return Me.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Me.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Me.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function N2(){return Me.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Me.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"}),Me.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 Hv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},j2=({closeToast:t})=>Me.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:Me.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Me.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"})})}),Uv=(t,e)=>{xn.success(t,{icon:Me.jsx(F2,{}),bodyStyle:{},position:"bottom-right",style:{...Hv,background:ki.successLight,borderColor:ki.success,color:ki.success},...e})},Wd=(t,e)=>{xn.error(t,{icon:Me.jsx(L2,{}),position:"bottom-right",style:{...Hv,background:ki.dangerLight,borderColor:ki.danger,color:ki.danger},...e})},B2=(t,e)=>{xn.error(t,{icon:Me.jsx(N2,{}),position:"bottom-right",style:{...Hv,background:ki.warningLight,borderColor:ki.warning,color:ki.warning},...e})},$2=t=>{xn(t,{closeButton:j2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:ki.textPrimary}})};function zT(t){let e=null;return()=>(e==null&&(e=t()),e)}function V2(t,e){return t.filter(n=>n!==e)}function H2(t,e){const n=new Set,r=o=>n.add(o);t.forEach(r),e.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class U2{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=H2(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=V2(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class W2{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const YT="__NATIVE_FILE__",GT="__NATIVE_URL__",qT="__NATIVE_TEXT__",XT="__NATIVE_HTML__",iw=Object.freeze(Object.defineProperty({__proto__:null,FILE:YT,HTML:XT,TEXT:qT,URL:GT},Symbol.toStringTag,{value:"Module"}));function _g(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Mm={[YT]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[XT]:{exposeProperties:{html:(t,e)=>_g(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[GT]:{exposeProperties:{urls:(t,e)=>_g(t,e,"").split(`
|
|
4
|
-
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[qT]:{exposeProperties:{text:(t,e)=>_g(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function z2(t,e){const n=Mm[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new W2(n);return r.loadDataTransfer(e),r}function Rg(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Mm).filter(n=>{const r=Mm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const Y2=zT(()=>/firefox/i.test(navigator.userAgent)),KT=zT(()=>!!window.safari);class ow{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let c=n.length-1;if(e===n[c])return r[c];let d=0,p=a.length-1,w;for(;d<=p;){w=Math.floor(.5*(d+p));const E=n[w];if(E<e)d=w+1;else if(E>e)p=w-1;else return r[w]}c=Math.max(0,p);const m=e-n[c],T=m*m;return r[c]+i[c]*m+o[c]*T+a[c]*m*T}constructor(e,n){const{length:r}=e,i=[];for(let E=0;E<r;E++)i.push(E);i.sort((E,I)=>e[E]<e[I]?-1:1);const o=[],a=[];let c,d;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],d=n[E+1]-n[E],o.push(c),a.push(d/c);const p=[a[0]];for(let E=0;E<o.length-1;E++){const I=a[E],A=a[E+1];if(I*A<=0)p.push(0);else{c=o[E];const L=o[E+1],_=c+L;p.push(3*_/((_+L)/I+(_+c)/A))}}p.push(a[a.length-1]);const w=[],m=[];let T;for(let E=0;E<p.length-1;E++){T=a[E];const I=p[E],A=1/o[E],L=I+p[E+1]-T-T;w.push((T-I-L)*A),m.push(L*A*A)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=w,this.c3s=m}}const G2=1;function ZT(t){const e=t.nodeType===G2?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function vh(t){return{x:t.clientX,y:t.clientY}}function q2(t){var e;return t.nodeName==="IMG"&&(Y2()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function X2(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return KT()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function K2(t,e,n,r,i){const o=q2(e),c=ZT(o?t:e),d={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:w}=t,{anchorX:m,anchorY:T}=r,{dragPreviewWidth:E,dragPreviewHeight:I}=X2(o,e,p,w),A=()=>{let ue=new ow([0,.5,1],[d.y,d.y/w*I,d.y+I-w]).interpolate(T);return KT()&&o&&(ue+=(window.devicePixelRatio-1)*I),ue},L=()=>new ow([0,.5,1],[d.x,d.x/p*E,d.x+E-p]).interpolate(m),{offsetX:_,offsetY:U}=i,G=_===0||_,re=U===0||U;return{x:G?_:L(),y:re?U:A()}}let Z2=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function J2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){J2(t,i,n[i])})}return t}class Q2{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=a=>this.handleDragStart(a,e),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=a=>this.handleDragEnter(a,e),i=a=>this.handleDragOver(a,e),o=a=>this.handleDrop(a,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return sw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return sw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(iw).some(n=>iw[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=z2(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&ZT(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=vh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,d=Rg(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const w=this.monitor.getSourceId(),m=this.sourceNodes.get(w),T=this.sourcePreviewNodes.get(w)||m;if(T){const{anchorX:E,anchorY:I,offsetX:A,offsetY:L}=this.getCurrentSourcePreviewNodeOptions(),G=K2(m,T,a,{anchorX:E,anchorY:I},{offsetX:A,offsetY:L});c.setDragImage(T,G.x,G.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(d)this.beginDragNativeItem(d);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,d=Rg(c);d&&this.beginDragNativeItem(d,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:vh(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=vh(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 Rg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:vh(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 Z2(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new U2(this.isNodeInDocument)}}let yh;function eF(){return yh||(yh=new Image,yh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),yh}const JT=function(e,n,r){return new Q2(e,n,r)};var wc=[],tF=function(){return wc.some(function(t){return t.activeTargets.length>0})},nF=function(){return wc.some(function(t){return t.skippedTargets.length>0})},aw="ResizeObserver loop completed with undelivered notifications.",rF=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:aw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=aw),window.dispatchEvent(t)},Rd;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Rd||(Rd={}));var xc=function(t){return Object.freeze(t)},iF=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,xc(this)}return t}(),QT=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,xc(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,c=e.left,d=e.width,p=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:c,width:d,height:p}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Wv=function(t){return t instanceof SVGElement&&"getBBox"in t},eC=function(t){if(Wv(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},lw=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},oF=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},md=typeof window<"u"?window:{},bh=new WeakMap,uw=/auto|scroll/,sF=/^tb|vertical/,aF=/msie|trident/i.test(md.navigator&&md.navigator.userAgent),Ma=function(t){return parseFloat(t||"0")},Cf=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new iF((n?e:t)||0,(n?t:e)||0)},cw=xc({devicePixelContentBoxSize:Cf(),borderBoxSize:Cf(),contentBoxSize:Cf(),contentRect:new QT(0,0,0,0)}),tC=function(t,e){if(e===void 0&&(e=!1),bh.has(t)&&!e)return bh.get(t);if(eC(t))return bh.set(t,cw),cw;var n=getComputedStyle(t),r=Wv(t)&&t.ownerSVGElement&&t.getBBox(),i=!aF&&n.boxSizing==="border-box",o=sF.test(n.writingMode||""),a=!r&&uw.test(n.overflowY||""),c=!r&&uw.test(n.overflowX||""),d=r?0:Ma(n.paddingTop),p=r?0:Ma(n.paddingRight),w=r?0:Ma(n.paddingBottom),m=r?0:Ma(n.paddingLeft),T=r?0:Ma(n.borderTopWidth),E=r?0:Ma(n.borderRightWidth),I=r?0:Ma(n.borderBottomWidth),A=r?0:Ma(n.borderLeftWidth),L=m+p,_=d+w,U=A+E,G=T+I,re=c?t.offsetHeight-G-t.clientHeight:0,Z=a?t.offsetWidth-U-t.clientWidth:0,ue=i?L+U:0,S=i?_+G:0,ae=r?r.width:Ma(n.width)-ue-Z,ce=r?r.height:Ma(n.height)-S-re,Ue=ae+L+Z+U,_e=ce+_+re+G,Le=xc({devicePixelContentBoxSize:Cf(Math.round(ae*devicePixelRatio),Math.round(ce*devicePixelRatio),o),borderBoxSize:Cf(Ue,_e,o),contentBoxSize:Cf(ae,ce,o),contentRect:new QT(m,d,ae,ce)});return bh.set(t,Le),Le},nC=function(t,e,n){var r=tC(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Rd.DEVICE_PIXEL_CONTENT_BOX:return a;case Rd.BORDER_BOX:return i;default:return o}},lF=function(){function t(e){var n=tC(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=xc([n.borderBoxSize]),this.contentBoxSize=xc([n.contentBoxSize]),this.devicePixelContentBoxSize=xc([n.devicePixelContentBoxSize])}return t}(),rC=function(t){if(eC(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},uF=function(){var t=1/0,e=[];wc.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(p){var w=new lF(p.target),m=rC(p.target);c.push(w),p.lastReportedSize=nC(p.target,p.observedBox),m<t&&(t=m)}),e.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},fw=function(t){wc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(rC(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},cF=function(){var t=0;for(fw(t);tF();)t=uF(),fw(t);return nF()&&rF(),t>0},Ag,iC=[],fF=function(){return iC.splice(0).forEach(function(t){return t()})},dF=function(t){if(!Ag){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return fF()}).observe(n,r),Ag=function(){n.textContent="".concat(e?e--:e++)}}iC.push(t),Ag()},hF=function(t){dF(function(){requestAnimationFrame(t)})},Fh=0,pF=function(){return!!Fh},gF=250,mF={attributes:!0,characterData:!0,childList:!0,subtree:!0},dw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],hw=function(t){return t===void 0&&(t=0),Date.now()+t},Ig=!1,vF=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=gF),!Ig){Ig=!0;var r=hw(e);hF(function(){var i=!1;try{i=cF()}finally{if(Ig=!1,e=r-hw(),!pF())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,mF)};document.body?n():md.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),dw.forEach(function(n){return md.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),dw.forEach(function(n){return md.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Lm=new vF,pw=function(t){!Fh&&t>0&&Lm.start(),Fh+=t,!Fh&&Lm.stop()},yF=function(t){return!Wv(t)&&!oF(t)&&getComputedStyle(t).display==="inline"},bF=function(){function t(e,n){this.target=e,this.observedBox=n||Rd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=nC(this.target,this.observedBox,!0);return yF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),wF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),wh=new WeakMap,gw=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},xh=function(){function t(){}return t.connect=function(e,n){var r=new wF(e,n);wh.set(e,r)},t.observe=function(e,n,r){var i=wh.get(e),o=i.observationTargets.length===0;gw(i.observationTargets,n)<0&&(o&&wc.push(i),i.observationTargets.push(new bF(n,r&&r.box)),pw(1),Lm.schedule())},t.unobserve=function(e,n){var r=wh.get(e),i=gw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&wc.splice(wc.indexOf(r),1),r.observationTargets.splice(i,1),pw(-1))},t.disconnect=function(e){var n=this,r=wh.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),xF=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");xh.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!lw(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");xh.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!lw(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");xh.unobserve(this,e)},t.prototype.disconnect=function(){xh.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const oC=q.createContext({});function SF(t){const e=q.useRef(null);return e.current===null&&(e.current=t()),e.current}const zv=q.createContext(null),sC=q.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function TF(t=!0){const e=q.useContext(zv);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=q.useId();q.useEffect(()=>{t&&i(o)},[t]);const a=q.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const Yv=typeof window<"u",CF=Yv?q.useLayoutEffect:q.useEffect,_o=t=>t;let Mf=_o,vu=_o;process.env.NODE_ENV!=="production"&&(Mf=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},vu=(t,e)=>{if(!t)throw new Error(e)});function Gv(t){let e;return()=>(e===void 0&&(e=t()),e)}const kf=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},Na=t=>t*1e3,Sl=t=>t/1e3,EF={useManualTiming:!1};function kF(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(p){o.has(p)&&(d.schedule(p),t()),p(a)}const d={schedule:(p,w=!1,m=!1)=>{const E=m&&r?e:n;return w&&o.add(p),E.has(p)||E.add(p),p},cancel:p=>{n.delete(p),o.delete(p)},process:p=>{if(a=p,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(c),e.clear(),r=!1,i&&(i=!1,d.process(p))}};return d}const Sh=["read","resolveKeyframes","update","preRender","render","postRender"],DF=40;function aC(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Sh.reduce((_,U)=>(_[U]=kF(o),_),{}),{read:c,resolveKeyframes:d,update:p,preRender:w,render:m,postRender:T}=a,E=()=>{const _=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(_-i.timestamp,DF),1),i.timestamp=_,i.isProcessing=!0,c.process(i),d.process(i),p.process(i),w.process(i),m.process(i),T.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},I=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:Sh.reduce((_,U)=>{const G=a[U];return _[U]=(re,Z=!1,ue=!1)=>(n||I(),G.schedule(re,Z,ue)),_},{}),cancel:_=>{for(let U=0;U<Sh.length;U++)a[Sh[U]].cancel(_)},state:i,steps:a}}const{schedule:Fn,cancel:yu,state:Ci,steps:Mg}=aC(typeof requestAnimationFrame<"u"?requestAnimationFrame:_o,!0),lC=q.createContext({strict:!1}),mw={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"]},Df={};for(const t in mw)Df[t]={isEnabled:e=>mw[t].some(n=>!!e[n])};function PF(t){for(const e in t)Df[e]={...Df[e],...t[e]}}const OF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function np(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||OF.has(t)}let uC=t=>!np(t);function _F(t){t&&(uC=e=>e.startsWith("on")?!np(e):t(e))}try{_F(require("@emotion/is-prop-valid").default)}catch{}function RF(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(uC(i)||n===!0&&np(i)||!e&&!np(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const vw=new Set;function Dp(t,e,n){t||vw.has(e)||(console.warn(e),vw.add(e))}function AF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Dp(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Pp=q.createContext({});function Ad(t){return typeof t=="string"||Array.isArray(t)}function Op(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const qv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xv=["initial",...qv];function _p(t){return Op(t.animate)||Xv.some(e=>Ad(t[e]))}function cC(t){return!!(_p(t)||t.variants)}function IF(t,e){if(_p(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Ad(n)?n:void 0,animate:Ad(r)?r:void 0}}return t.inherit!==!1?e:{}}function MF(t){const{initial:e,animate:n}=IF(t,q.useContext(Pp));return q.useMemo(()=>({initial:e,animate:n}),[yw(e),yw(n)])}function yw(t){return Array.isArray(t)?t.join(" "):t}const LF=Symbol.for("motionComponentSymbol");function pf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function FF(t,e,n){return q.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):pf(n)&&(n.current=r))},[e])}const Kv=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),NF="framerAppearId",fC="data-"+Kv(NF),{schedule:Zv}=aC(queueMicrotask,!1),dC=q.createContext({});function jF(t,e,n,r,i){var o,a;const{visualElement:c}=q.useContext(Pp),d=q.useContext(lC),p=q.useContext(zv),w=q.useContext(sC).reducedMotion,m=q.useRef(null);r=r||d.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:w}));const T=m.current,E=q.useContext(dC);T&&!T.projection&&i&&(T.type==="html"||T.type==="svg")&&BF(m.current,n,i,E);const I=q.useRef(!1);q.useInsertionEffect(()=>{T&&I.current&&T.update(n,p)});const A=n[fC],L=q.useRef(!!A&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,A))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,A)));return CF(()=>{T&&(I.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),Zv.render(T.render),L.current&&T.animationState&&T.animationState.animateChanges())}),q.useEffect(()=>{T&&(!L.current&&T.animationState&&T.animationState.animateChanges(),L.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)===null||_===void 0||_.call(window,A)}),L.current=!1))}),T}function BF(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:d,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:hC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&pf(c),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:d,layoutRoot:p})}function hC(t){if(t)return t.options.allowProjection!==!1?t.projection:hC(t.parent)}function $F({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&PF(t);function c(p,w){let m;const T={...q.useContext(sC),...p,layoutId:VF(p)},{isStatic:E}=T,I=MF(p),A=r(p,E);if(!E&&Yv){HF(T,t);const L=UF(T);m=L.MeasureLayout,I.visualElement=jF(i,A,T,e,L.ProjectionNode)}return Me.jsxs(Pp.Provider,{value:I,children:[m&&I.visualElement?Me.jsx(m,{visualElement:I.visualElement,...T}):null,n(i,p,FF(A,I.visualElement,w),A,E,I.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const d=q.forwardRef(c);return d[LF]=i,d}function VF({layoutId:t}){const e=q.useContext(oC).id;return e&&t!==void 0?e+"-"+t:t}function HF(t,e){const n=q.useContext(lC).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Mf(!1,r):vu(!1,r)}}function UF(t){const{drag:e,layout:n}=Df;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const WF=["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 Jv(t){return typeof t!="string"||t.includes("-")?!1:!!(WF.indexOf(t)>-1||/[A-Z]/u.test(t))}function bw(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Qv(t,e,n,r){if(typeof e=="function"){const[i,o]=bw(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=bw(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const Fm=t=>Array.isArray(t),zF=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),YF=t=>Fm(t)?t[t.length-1]||0:t,ji=t=>!!(t&&t.getVelocity);function Nh(t){const e=ji(t)?t.get():t;return zF(e)?e.toValue():e}function GF({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:qF(r,i,o,t),renderState:e()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const pC=t=>(e,n)=>{const r=q.useContext(Pp),i=q.useContext(zv),o=()=>GF(t,e,r,i);return n?o():SF(o)};function qF(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Nh(o[T]);let{initial:a,animate:c}=t;const d=_p(t),p=cC(t);e&&p&&!d&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let w=n?n.initial===!1:!1;w=w||a===!1;const m=w?c:a;if(m&&typeof m!="boolean"&&!Op(m)){const T=Array.isArray(m)?m:[m];for(let E=0;E<T.length;E++){const I=Qv(t,T[E]);if(I){const{transitionEnd:A,transition:L,..._}=I;for(const U in _){let G=_[U];if(Array.isArray(G)){const re=w?G.length-1:0;G=G[re]}G!==null&&(i[U]=G)}for(const U in A)i[U]=A[U]}}}return i}const Lf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_c=new Set(Lf),gC=t=>e=>typeof e=="string"&&e.startsWith(t),mC=gC("--"),XF=gC("var(--"),ey=t=>XF(t)?KF.test(t.split("/*")[0].trim()):!1,KF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,vC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,kl=(t,e,n)=>n>e?e:n<t?t:n,Ff={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Id={...Ff,transform:t=>kl(0,1,t)},Th={...Ff,default:1},zd=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ou=zd("deg"),ja=zd("%"),Ot=zd("px"),ZF=zd("vh"),JF=zd("vw"),ww={...ja,parse:t=>ja.parse(t)/100,transform:t=>ja.transform(t*100)},QF={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},eN={rotate:ou,rotateX:ou,rotateY:ou,rotateZ:ou,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:ou,skewX:ou,skewY:ou,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:Id,originX:ww,originY:ww,originZ:Ot},xw={...Ff,transform:Math.round},ty={...QF,...eN,zIndex:xw,size:Ot,fillOpacity:Id,strokeOpacity:Id,numOctaves:xw},tN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nN=Lf.length;function rN(t,e,n){let r="",i=!0;for(let o=0;o<nN;o++){const a=Lf[o],c=t[a];if(c===void 0)continue;let d=!0;if(typeof c=="number"?d=c===(a.startsWith("scale")?1:0):d=parseFloat(c)===0,!d||n){const p=vC(c,ty[a]);if(!d){i=!1;const w=tN[a]||a;r+=`${w}(${p}) `}n&&(e[a]=p)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function ny(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,c=!1;for(const d in e){const p=e[d];if(_c.has(d)){a=!0;continue}else if(mC(d)){i[d]=p;continue}else{const w=vC(p,ty[d]);d.startsWith("origin")?(c=!0,o[d]=w):r[d]=w}}if(e.transform||(a||n?r.transform=rN(e,t.transform,n):r.transform&&(r.transform="none")),c){const{originX:d="50%",originY:p="50%",originZ:w=0}=o;r.transformOrigin=`${d} ${p} ${w}`}}const iN={offset:"stroke-dashoffset",array:"stroke-dasharray"},oN={offset:"strokeDashoffset",array:"strokeDasharray"};function sN(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?iN:oN;t[o.offset]=Ot.transform(-r);const a=Ot.transform(e),c=Ot.transform(n);t[o.array]=`${a} ${c}`}function Sw(t,e,n){return typeof t=="string"?t:Ot.transform(e+n*t)}function aN(t,e,n){const r=Sw(e,t.x,t.width),i=Sw(n,t.y,t.height);return`${r} ${i}`}function ry(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:d=0,...p},w,m){if(ny(t,p,m),w){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:T,style:E,dimensions:I}=t;T.transform&&(I&&(E.transform=T.transform),delete T.transform),I&&(i!==void 0||o!==void 0||E.transform)&&(E.transformOrigin=aN(I,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(T.x=e),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),a!==void 0&&sN(T,a,c,d,!1)}const iy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),yC=()=>({...iy(),attrs:{}}),oy=t=>typeof t=="string"&&t.toLowerCase()==="svg";function bC(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const wC=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 xC(t,e,n,r){bC(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(wC.has(i)?i:Kv(i),e.attrs[i])}const rp={};function lN(t){Object.assign(rp,t)}function SC(t,{layout:e,layoutId:n}){return _c.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!rp[t]||t==="opacity")}function sy(t,e,n){var r;const{style:i}=t,o={};for(const a in i)(ji(i[a])||e.style&&ji(e.style[a])||SC(a,t)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function TC(t,e,n){const r=sy(t,e,n);for(const i in t)if(ji(t[i])||ji(e[i])){const o=Lf.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function uN(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Tw=["x","y","width","height","cx","cy","r"],cN={useVisualState:pC({scrapeMotionValuesFromProps:TC,createRenderState:yC,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const c in i)if(_c.has(c)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let c=0;c<Tw.length;c++){const d=Tw[c];t[d]!==e[d]&&(a=!0)}a&&Fn.read(()=>{uN(n,r),Fn.render(()=>{ry(r,i,oy(n.tagName),t.transformTemplate),xC(n,r)})})}})},fN={useVisualState:pC({scrapeMotionValuesFromProps:sy,createRenderState:iy})};function CC(t,e,n){for(const r in e)!ji(e[r])&&!SC(r,n)&&(t[r]=e[r])}function dN({transformTemplate:t},e){return q.useMemo(()=>{const n=iy();return ny(n,e,t),Object.assign({},n.vars,n.style)},[e])}function hN(t,e){const n=t.style||{},r={};return CC(r,n,t),Object.assign(r,dN(t,e)),r}function pN(t,e){const n={},r=hN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function gN(t,e,n,r){const i=q.useMemo(()=>{const o=yC();return ry(o,e,oy(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};CC(o,t.style,t),i.style={...o,...i.style}}return i}function mN(t=!1){return(n,r,i,{latestValues:o},a)=>{const d=(Jv(n)?gN:pN)(r,o,a,n),p=RF(r,typeof n=="string",t),w=n!==q.Fragment?{...p,...d,ref:i}:{},{children:m}=r,T=q.useMemo(()=>ji(m)?m.get():m,[m]);return q.createElement(n,{...w,children:T})}}function vN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Jv(r)?cN:fN,preloadedFeatures:t,useRender:mN(i),createVisualElement:e,Component:r};return $F(a)}}function EC(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Rp(t,e,n){const r=t.getProps();return Qv(r,e,n!==void 0?n:r.custom,t)}const yN=Gv(()=>window.ScrollTimeline!==void 0);class bN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(yN()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class wN extends bN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function ay(t,e){return t?t[e]||t.default||t:void 0}const Nm=2e4;function kC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Nm;)e+=n,r=t.next(e);return e>=Nm?1/0:e}function ly(t){return typeof t=="function"}function Cw(t,e){t.timeline=e,t.onfinish=null}const uy=t=>Array.isArray(t)&&typeof t[0]=="number",xN={linearEasing:void 0};function SN(t,e){const n=Gv(t);return()=>{var r;return(r=xN[e])!==null&&r!==void 0?r:n()}}const ip=SN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),DC=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(kf(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function PC(t){return!!(typeof t=="function"&&ip()||!t||typeof t=="string"&&(t in jm||ip())||uy(t)||Array.isArray(t)&&t.every(PC))}const ud=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,jm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ud([0,.65,.55,1]),circOut:ud([.55,0,1,.45]),backIn:ud([.31,.01,.66,-.59]),backOut:ud([.33,1.53,.69,.99])};function OC(t,e){if(t)return typeof t=="function"&&ip()?DC(t,e):uy(t)?ud(t):Array.isArray(t)?t.map(n=>OC(n,e)||jm.easeOut):jm[t]}const oa={x:!1,y:!1};function _C(){return oa.x||oa.y}function TN(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function RC(t,e){const n=TN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Ew(t){return e=>{e.pointerType==="touch"||_C()||t(e)}}function CN(t,e,n={}){const[r,i,o]=RC(t,n),a=Ew(c=>{const{target:d}=c,p=e(c);if(typeof p!="function"||!d)return;const w=Ew(m=>{p(m),d.removeEventListener("pointerleave",w)});d.addEventListener("pointerleave",w,i)});return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const AC=(t,e)=>e?t===e?!0:AC(t,e.parentElement):!1,cy=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,EN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function kN(t){return EN.has(t.tagName)||t.tabIndex!==-1}const cd=new WeakSet;function kw(t){return e=>{e.key==="Enter"&&t(e)}}function Lg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const DN=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=kw(()=>{if(cd.has(n))return;Lg(n,"down");const i=kw(()=>{Lg(n,"up")}),o=()=>Lg(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Dw(t){return cy(t)&&!_C()}function PN(t,e,n={}){const[r,i,o]=RC(t,n),a=c=>{const d=c.currentTarget;if(!Dw(c)||cd.has(d))return;cd.add(d);const p=e(c),w=(E,I)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",T),!(!Dw(E)||!cd.has(d))&&(cd.delete(d),typeof p=="function"&&p(E,{success:I}))},m=E=>{w(E,n.useGlobalTarget||AC(d,E.target))},T=E=>{w(E,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",T,i)};return r.forEach(c=>{!kN(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c.addEventListener("focus",p=>DN(p,i),i)}),o}function ON(t){return t==="x"||t==="y"?oa[t]?null:(oa[t]=!0,()=>{oa[t]=!1}):oa.x||oa.y?null:(oa.x=oa.y=!0,()=>{oa.x=oa.y=!1})}const IC=new Set(["width","height","top","left","right","bottom",...Lf]);let jh;function _N(){jh=void 0}const Ba={now:()=>(jh===void 0&&Ba.set(Ci.isProcessing||EF.useManualTiming?Ci.timestamp:performance.now()),jh),set:t=>{jh=t,queueMicrotask(_N)}};function fy(t,e){t.indexOf(e)===-1&&t.push(e)}function dy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let hy=class{constructor(){this.subscriptions=[]}add(e){return fy(this.subscriptions,e),()=>dy(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function MC(t,e){return e?t*(1e3/e):0}const Pw=30,RN=t=>!isNaN(parseFloat(t));let AN=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ba.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Ba.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=RN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Dp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new hy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Fn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ba.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Pw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pw);return MC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Md(t,e){return new AN(t,e)}function IN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Md(n))}function MN(t,e){const n=Rp(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=YF(o[a]);IN(t,a,c)}}function LN(t){return!!(ji(t)&&t.add)}function Bm(t,e){const n=t.getValue("willChange");if(LN(n))return n.add(e)}function LC(t){return t.props[fC]}const FC=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,FN=1e-7,NN=12;function jN(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=FC(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>FN&&++c<NN);return a}function Yd(t,e,n,r){if(t===e&&n===r)return _o;const i=o=>jN(o,0,1,t,n);return o=>o===0||o===1?o:FC(i(o),e,r)}const NC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,jC=t=>e=>1-t(1-e),BC=Yd(.33,1.53,.69,.99),py=jC(BC),$C=NC(py),VC=t=>(t*=2)<1?.5*py(t):.5*(2-Math.pow(2,-10*(t-1))),gy=t=>1-Math.sin(Math.acos(t)),HC=jC(gy),UC=NC(gy),WC=t=>/^0[^.\s]+$/u.test(t);function BN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||WC(t):!0}const vd=t=>Math.round(t*1e5)/1e5,my=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $N(t){return t==null}const VN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vy=(t,e)=>n=>!!(typeof n=="string"&&VN.test(n)&&n.startsWith(t)||e&&!$N(n)&&Object.prototype.hasOwnProperty.call(n,e)),zC=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(my);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},HN=t=>kl(0,255,t),Fg={...Ff,transform:t=>Math.round(HN(t))},mc={test:vy("rgb","red"),parse:zC("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Fg.transform(t)+", "+Fg.transform(e)+", "+Fg.transform(n)+", "+vd(Id.transform(r))+")"};function UN(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const $m={test:vy("#"),parse:UN,transform:mc.transform},gf={test:vy("hsl","hue"),parse:zC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ja.transform(vd(e))+", "+ja.transform(vd(n))+", "+vd(Id.transform(r))+")"},Ni={test:t=>mc.test(t)||$m.test(t)||gf.test(t),parse:t=>mc.test(t)?mc.parse(t):gf.test(t)?gf.parse(t):$m.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?mc.transform(t):gf.transform(t)},WN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(my))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(WN))===null||n===void 0?void 0:n.length)||0)>0}const YC="number",GC="color",YN="var",GN="var(",Ow="${}",qN=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ld(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=e.replace(qN,d=>(Ni.test(d)?(r.color.push(o),i.push(GC),n.push(Ni.parse(d))):d.startsWith(GN)?(r.var.push(o),i.push(YN),n.push(d)):(r.number.push(o),i.push(YC),n.push(parseFloat(d))),++o,Ow)).split(Ow);return{values:n,split:c,indexes:r,types:i}}function qC(t){return Ld(t).values}function XC(t){const{split:e,types:n}=Ld(t),r=e.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=e[a],i[a]!==void 0){const c=n[a];c===YC?o+=vd(i[a]):c===GC?o+=Ni.transform(i[a]):o+=i[a]}return o}}const XN=t=>typeof t=="number"?0:t;function KN(t){const e=qC(t);return XC(t)(e.map(XN))}const bu={test:zN,parse:qC,createTransformer:XC,getAnimatableNone:KN},ZN=new Set(["brightness","contrast","saturate","opacity"]);function JN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(my)||[];if(!r)return t;const i=n.replace(r,"");let o=ZN.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const QN=/\b([a-z-]*)\(.*?\)/gu,Vm={...bu,getAnimatableNone:t=>{const e=t.match(QN);return e?e.map(JN).join(" "):t}},ej={...ty,color:Ni,backgroundColor:Ni,outlineColor:Ni,fill:Ni,stroke:Ni,borderColor:Ni,borderTopColor:Ni,borderRightColor:Ni,borderBottomColor:Ni,borderLeftColor:Ni,filter:Vm,WebkitFilter:Vm},yy=t=>ej[t];function KC(t,e){let n=yy(t);return n!==Vm&&(n=bu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const tj=new Set(["auto","none","0"]);function nj(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!tj.has(o)&&Ld(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=KC(n,i)}const _w=t=>t===Ff||t===Ot,Rw=(t,e)=>parseFloat(t.split(", ")[e]),Aw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Rw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?Rw(o[1],t):0}},rj=new Set(["x","y","z"]),ij=Lf.filter(t=>!rj.has(t));function oj(t){const e=[];return ij.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Pf={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Aw(4,13),y:Aw(5,14)};Pf.translateX=Pf.x;Pf.translateY=Pf.y;const Sc=new Set;let Hm=!1,Um=!1;function ZC(){if(Um){const t=Array.from(Sc).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=oj(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Um=!1,Hm=!1,Sc.forEach(t=>t.complete()),Sc.clear()}function JC(){Sc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Um=!0)})}function sj(){JC(),ZC()}class by{constructor(e,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Sc.add(this),Hm||(Hm=!0,Fn.read(JC),Fn.resolveKeyframes(ZC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const d=r.readValue(n,c);d!=null&&(e[0]=d)}e[0]===void 0&&(e[0]=c),i&&a===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Sc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Sc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const QC=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),aj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lj(t){const e=aj.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const uj=4;function eE(t,e,n=1){vu(n<=uj,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=lj(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return QC(a)?parseFloat(a):a}return ey(i)?eE(i,e,n+1):i}const tE=t=>e=>e.test(t),cj={test:t=>t==="auto",parse:t=>t},nE=[Ff,Ot,ja,ou,JF,ZF,cj],Iw=t=>nE.find(tE(t));class rE extends by{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let p=e[d];if(typeof p=="string"&&(p=p.trim(),ey(p))){const w=eE(p,n.current);w!==void 0&&(e[d]=w),d===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!IC.has(r)||e.length!==2)return;const[i,o]=e,a=Iw(i),c=Iw(o);if(a!==c)if(_w(a)&&_w(c))for(let d=0;d<e.length;d++){const p=e[d];typeof p=="string"&&(e[d]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)BN(e[i])&&r.push(i);r.length&&nj(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pf[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Pf[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([d,p])=>{n.getValue(d).set(p)}),this.resolveNoneKeyframes()}}const Mw=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(bu.test(t)||t==="0")&&!t.startsWith("url("));function fj(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function dj(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],a=Mw(i,e),c=Mw(o,e);return Mf(a===c,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:fj(t)||(n==="spring"||ly(n))&&r}const hj=t=>t!==null;function Ap(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(hj),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const pj=40;class iE{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ba.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>pj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&sj(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Ba.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:d,isGenerator:p}=this.options;if(!p&&!dj(e,r,i,o))if(a)this.options.duration=0;else{d&&d(Ap(e,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const w=this.initPlayback(e,n);w!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...w},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Kn=(t,e,n)=>t+(e-t)*n;function Ng(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function gj({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,d=2*n-c;i=Ng(d,c,t+1/3),o=Ng(d,c,t),a=Ng(d,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function op(t,e){return n=>n>0?e:t}const jg=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},mj=[$m,mc,gf],vj=t=>mj.find(e=>e.test(t));function Lw(t){const e=vj(t);if(Mf(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===gf&&(n=gj(n)),n}const Fw=(t,e)=>{const n=Lw(t),r=Lw(e);if(!n||!r)return op(t,e);const i={...n};return o=>(i.red=jg(n.red,r.red,o),i.green=jg(n.green,r.green,o),i.blue=jg(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),mc.transform(i))},yj=(t,e)=>n=>e(t(n)),Gd=(...t)=>t.reduce(yj),Wm=new Set(["none","hidden"]);function bj(t,e){return Wm.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function wj(t,e){return n=>Kn(t,e,n)}function wy(t){return typeof t=="number"?wj:typeof t=="string"?ey(t)?op:Ni.test(t)?Fw:Tj:Array.isArray(t)?oE:typeof t=="object"?Ni.test(t)?Fw:xj:op}function oE(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>wy(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function xj(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=wy(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Sj(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const a=e.types[o],c=t.indexes[a][i[a]],d=(n=t.values[c])!==null&&n!==void 0?n:0;r[o]=d,i[a]++}return r}const Tj=(t,e)=>{const n=bu.createTransformer(e),r=Ld(t),i=Ld(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Wm.has(t)&&!i.values.length||Wm.has(e)&&!r.values.length?bj(t,e):Gd(oE(Sj(r,i),i.values),n):(Mf(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),op(t,e))};function sE(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):wy(t)(t,e)}const Cj=5;function aE(t,e,n){const r=Math.max(e-Cj,0);return MC(n-t(r),e-r)}const Xn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Nw=.001;function Ej({duration:t=Xn.duration,bounce:e=Xn.bounce,velocity:n=Xn.velocity,mass:r=Xn.mass}){let i,o;Mf(t<=Na(Xn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=kl(Xn.minDamping,Xn.maxDamping,a),t=kl(Xn.minDuration,Xn.maxDuration,Sl(t)),a<1?(i=p=>{const w=p*a,m=w*t,T=w-n,E=zm(p,a),I=Math.exp(-m);return Nw-T/E*I},o=p=>{const m=p*a*t,T=m*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,I=Math.exp(-m),A=zm(Math.pow(p,2),a);return(-i(p)+Nw>0?-1:1)*((T-E)*I)/A}):(i=p=>{const w=Math.exp(-p*t),m=(p-n)*t+1;return-.001+w*m},o=p=>{const w=Math.exp(-p*t),m=(n-p)*(t*t);return w*m});const c=5/t,d=Dj(i,o,c);if(t=Na(t),isNaN(d))return{stiffness:Xn.stiffness,damping:Xn.damping,duration:t};{const p=Math.pow(d,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const kj=12;function Dj(t,e,n){let r=n;for(let i=1;i<kj;i++)r=r-t(r)/e(r);return r}function zm(t,e){return t*Math.sqrt(1-e*e)}const Pj=["duration","bounce"],Oj=["stiffness","damping","mass"];function jw(t,e){return e.some(n=>t[n]!==void 0)}function _j(t){let e={velocity:Xn.velocity,stiffness:Xn.stiffness,damping:Xn.damping,mass:Xn.mass,isResolvedFromDuration:!1,...t};if(!jw(t,Oj)&&jw(t,Pj))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*kl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Xn.mass,stiffness:i,damping:o}}else{const n=Ej(t);e={...e,...n,mass:Xn.mass},e.isResolvedFromDuration=!0}return e}function lE(t=Xn.visualDuration,e=Xn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:d,damping:p,mass:w,duration:m,velocity:T,isResolvedFromDuration:E}=_j({...n,velocity:-Sl(n.velocity||0)}),I=T||0,A=p/(2*Math.sqrt(d*w)),L=a-o,_=Sl(Math.sqrt(d/w)),U=Math.abs(L)<5;r||(r=U?Xn.restSpeed.granular:Xn.restSpeed.default),i||(i=U?Xn.restDelta.granular:Xn.restDelta.default);let G;if(A<1){const Z=zm(_,A);G=ue=>{const S=Math.exp(-A*_*ue);return a-S*((I+A*_*L)/Z*Math.sin(Z*ue)+L*Math.cos(Z*ue))}}else if(A===1)G=Z=>a-Math.exp(-_*Z)*(L+(I+_*L)*Z);else{const Z=_*Math.sqrt(A*A-1);G=ue=>{const S=Math.exp(-A*_*ue),ae=Math.min(Z*ue,300);return a-S*((I+A*_*L)*Math.sinh(ae)+Z*L*Math.cosh(ae))/Z}}const re={calculatedDuration:E&&m||null,next:Z=>{const ue=G(Z);if(E)c.done=Z>=m;else{let S=0;A<1&&(S=Z===0?Na(I):aE(G,Z,ue));const ae=Math.abs(S)<=r,ce=Math.abs(a-ue)<=i;c.done=ae&&ce}return c.value=c.done?a:ue,c},toString:()=>{const Z=Math.min(kC(re),Nm),ue=DC(S=>re.next(Z*S).value,Z,30);return Z+"ms "+ue}};return re}function Bw({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:d,restDelta:p=.5,restSpeed:w}){const m=t[0],T={done:!1,value:m},E=ae=>c!==void 0&&ae<c||d!==void 0&&ae>d,I=ae=>c===void 0?d:d===void 0||Math.abs(c-ae)<Math.abs(d-ae)?c:d;let A=n*e;const L=m+A,_=a===void 0?L:a(L);_!==L&&(A=_-m);const U=ae=>-A*Math.exp(-ae/r),G=ae=>_+U(ae),re=ae=>{const ce=U(ae),Ue=G(ae);T.done=Math.abs(ce)<=p,T.value=T.done?_:Ue};let Z,ue;const S=ae=>{E(T.value)&&(Z=ae,ue=lE({keyframes:[T.value,I(T.value)],velocity:aE(G,ae,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:w}))};return S(0),{calculatedDuration:null,next:ae=>{let ce=!1;return!ue&&Z===void 0&&(ce=!0,re(ae),S(ae)),Z!==void 0&&ae>=Z?ue.next(ae-Z):(!ce&&re(ae),T)}}}const Rj=Yd(.42,0,1,1),Aj=Yd(0,0,.58,1),uE=Yd(.42,0,.58,1),Ij=t=>Array.isArray(t)&&typeof t[0]!="number",$w={linear:_o,easeIn:Rj,easeInOut:uE,easeOut:Aj,circIn:gy,circInOut:UC,circOut:HC,backIn:py,backInOut:$C,backOut:BC,anticipate:VC},Vw=t=>{if(uy(t)){vu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Yd(e,n,r,i)}else if(typeof t=="string")return vu($w[t]!==void 0,`Invalid easing type '${t}'`),$w[t];return t};function Mj(t,e,n){const r=[],i=n||sE,o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const d=Array.isArray(e)?e[a]||_o:e;c=Gd(d,c)}r.push(c)}return r}function Lj(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(vu(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const c=Mj(e,r,i),d=c.length,p=w=>{if(a&&w<t[0])return e[0];let m=0;if(d>1)for(;m<t.length-2&&!(w<t[m+1]);m++);const T=kf(t[m],t[m+1],w);return c[m](T)};return n?w=>p(kl(t[0],t[o-1],w)):p}function Fj(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=kf(0,e,r);t.push(Kn(n,1,i))}}function Nj(t){const e=[0];return Fj(e,t.length-1),e}function jj(t,e){return t.map(n=>n*e)}function Bj(t,e){return t.map(()=>e||uE).splice(0,t.length-1)}function sp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Ij(r)?r.map(Vw):Vw(r),o={done:!1,value:e[0]},a=jj(n&&n.length===e.length?n:Nj(e),t),c=Lj(a,e,{ease:Array.isArray(i)?i:Bj(e,i)});return{calculatedDuration:t,next:d=>(o.value=c(d),o.done=d>=t,o)}}const $j=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Fn.update(e,!0),stop:()=>yu(e),now:()=>Ci.isProcessing?Ci.timestamp:Ba.now()}},Vj={decay:Bw,inertia:Bw,tween:sp,keyframes:sp,spring:lE},Hj=t=>t/100;class xy extends iE{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||by,c=(d,p)=>this.onKeyframesResolved(d,p);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=ly(n)?n:Vj[n]||sp;let d,p;c!==sp&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&vu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),d=Gd(Hj,sE(e[0],e[1])),e=[0,100]);const w=c({...this.options,keyframes:e});o==="mirror"&&(p=c({...this.options,keyframes:[...e].reverse(),velocity:-a})),w.calculatedDuration===null&&(w.calculatedDuration=kC(w));const{calculatedDuration:m}=w,T=m+i,E=T*(r+1)-i;return{generator:w,mirroredGenerator:p,mapPercentToKeyframes:d,calculatedDuration:m,resolvedDuration:T,totalDuration:E}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:ae}=this.options;return{done:!0,value:ae[ae.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:d,calculatedDuration:p,totalDuration:w,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:T,repeat:E,repeatType:I,repeatDelay:A,onUpdate:L}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-w/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const _=this.currentTime-T*(this.speed>=0?1:-1),U=this.speed>=0?_<0:_>w;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=w);let G=this.currentTime,re=o;if(E){const ae=Math.min(this.currentTime,w)/m;let ce=Math.floor(ae),Ue=ae%1;!Ue&&ae>=1&&(Ue=1),Ue===1&&ce--,ce=Math.min(ce,E+1),!!(ce%2)&&(I==="reverse"?(Ue=1-Ue,A&&(Ue-=A/m)):I==="mirror"&&(re=a)),G=kl(0,1,Ue)*m}const Z=U?{done:!1,value:d[0]}:re.next(G);c&&(Z.value=c(Z.value));let{done:ue}=Z;!U&&p!==null&&(ue=this.speed>=0?this.currentTime>=w:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ue);return S&&i!==void 0&&(Z.value=Ap(d,this.options,i)),L&&L(Z.value),S&&this.finish(),Z}get duration(){const{resolved:e}=this;return e?Sl(e.calculatedDuration):0}get time(){return Sl(this.currentTime)}set time(e){e=Na(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Sl(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=$j,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Uj=new Set(["opacity","clipPath","filter","transform"]);function Wj(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:d}={}){const p={[e]:n};d&&(p.offset=d);const w=OC(c,i);return Array.isArray(w)&&(p.easing=w),t.animate(p,{delay:r,duration:i,easing:Array.isArray(w)?"linear":w,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const zj=Gv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ap=10,Yj=2e4;function Gj(t){return ly(t.type)||t.type==="spring"||!PC(t.ease)}function qj(t,e){const n=new xy({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<Yj;)r=n.sample(o),i.push(r.value),o+=ap;return{times:void 0,keyframes:i,duration:o-ap,ease:"linear"}}const cE={anticipate:VC,backInOut:$C,circInOut:UC};function Xj(t){return t in cE}class Hw extends iE{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new rE(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:d,startTime:p}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ip()&&Xj(o)&&(o=cE[o]),Gj(this.options)){const{onComplete:m,onUpdate:T,motionValue:E,element:I,...A}=this.options,L=qj(e,A);e=L.keyframes,e.length===1&&(e[1]=e[0]),r=L.duration,i=L.times,o=L.ease,a="keyframes"}const w=Wj(c.owner.current,d,e,{...this.options,duration:r,times:i,ease:o});return w.startTime=p??this.calcStartTime(),this.pendingTimeline?(Cw(w,this.pendingTimeline),this.pendingTimeline=void 0):w.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ap(e,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:w,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Sl(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Sl(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Na(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return _o;const{animation:r}=n;Cw(r,e)}return _o}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:w,onComplete:m,element:T,...E}=this.options,I=new xy({...E,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),A=Na(this.time);p.setWithVelocity(I.sample(A-ap).value,I.sample(A).value,ap)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:p}=n.owner.getProps();return zj()&&r&&Uj.has(r)&&!d&&!p&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const Kj={type:"spring",stiffness:500,damping:25,restSpeed:10},Zj=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Jj={type:"keyframes",duration:.8},Qj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eB=(t,{keyframes:e})=>e.length>2?Jj:_c.has(t)?t.startsWith("scale")?Zj(e[1]):Kj:Qj;function tB({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:d,elapsed:p,...w}){return!!Object.keys(w).length}const Sy=(t,e,n,r={},i,o)=>a=>{const c=ay(r,t)||{},d=c.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Na(d);let w={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-p,onUpdate:T=>{e.set(T),c.onUpdate&&c.onUpdate(T)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:o?void 0:i};tB(c)||(w={...w,...eB(t,w)}),w.duration&&(w.duration=Na(w.duration)),w.repeatDelay&&(w.repeatDelay=Na(w.repeatDelay)),w.from!==void 0&&(w.keyframes[0]=w.from);let m=!1;if((w.type===!1||w.duration===0&&!w.repeatDelay)&&(w.duration=0,w.delay===0&&(m=!0)),m&&!o&&e.get()!==void 0){const T=Ap(w.keyframes,c);if(T!==void 0)return Fn.update(()=>{w.onUpdate(T),w.onComplete()}),new wN([])}return!o&&Hw.supports(w)?new Hw(w):new xy(w)};function nB({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function fE(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:c,...d}=e;r&&(a=r);const p=[],w=i&&t.animationState&&t.animationState.getState()[i];for(const m in d){const T=t.getValue(m,(o=t.latestValues[m])!==null&&o!==void 0?o:null),E=d[m];if(E===void 0||w&&nB(w,m))continue;const I={delay:n,...ay(a||{},m)};let A=!1;if(window.MotionHandoffAnimation){const _=LC(t);if(_){const U=window.MotionHandoffAnimation(_,m,Fn);U!==null&&(I.startTime=U,A=!0)}}Bm(t,m),T.start(Sy(m,T,E,t.shouldReduceMotion&&IC.has(m)?{type:!1}:I,t,A));const L=T.animation;L&&p.push(L)}return c&&Promise.all(p).then(()=>{Fn.update(()=>{c&&MN(t,c)})}),p}function Ym(t,e,n={}){var r;const i=Rp(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(fE(t,i,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:w=0,staggerChildren:m,staggerDirection:T}=o;return rB(t,e,w+p,m,T,n)}:()=>Promise.resolve(),{when:d}=o;if(d){const[p,w]=d==="beforeChildren"?[a,c]:[c,a];return p().then(()=>w())}else return Promise.all([a(),c(n.delay)])}function rB(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,d=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(iB).forEach((p,w)=>{p.notify("AnimationStart",e),a.push(Ym(p,e,{...o,delay:n+d(w)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function iB(t,e){return t.sortNodePosition(e)}function oB(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Ym(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Ym(t,e,n);else{const i=typeof e=="function"?Rp(t,e,n.custom):e;r=Promise.all(fE(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const sB=Xv.length;function dE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?dE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<sB;n++){const r=Xv[n],i=t.props[r];(Ad(i)||i===!1)&&(e[r]=i)}return e}const aB=[...qv].reverse(),lB=qv.length;function uB(t){return e=>Promise.all(e.map(({animation:n,options:r})=>oB(t,n,r)))}function cB(t){let e=uB(t),n=Uw(),r=!0;const i=d=>(p,w)=>{var m;const T=Rp(t,w,d==="exit"?(m=t.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(T){const{transition:E,transitionEnd:I,...A}=T;p={...p,...A,...I}}return p};function o(d){e=d(t)}function a(d){const{props:p}=t,w=dE(t.parent)||{},m=[],T=new Set;let E={},I=1/0;for(let L=0;L<lB;L++){const _=aB[L],U=n[_],G=p[_]!==void 0?p[_]:w[_],re=Ad(G),Z=_===d?U.isActive:null;Z===!1&&(I=L);let ue=G===w[_]&&G!==p[_]&&re;if(ue&&r&&t.manuallyAnimateOnMount&&(ue=!1),U.protectedKeys={...E},!U.isActive&&Z===null||!G&&!U.prevProp||Op(G)||typeof G=="boolean")continue;const S=fB(U.prevProp,G);let ae=S||_===d&&U.isActive&&!ue&&re||L>I&&re,ce=!1;const Ue=Array.isArray(G)?G:[G];let _e=Ue.reduce(i(_),{});Z===!1&&(_e={});const{prevResolvedValues:Le={}}=U,Ve={...Le,..._e},We=Oe=>{ae=!0,T.has(Oe)&&(ce=!0,T.delete(Oe)),U.needsAnimating[Oe]=!0;const Ne=t.getValue(Oe);Ne&&(Ne.liveStyle=!1)};for(const Oe in Ve){const Ne=_e[Oe],tt=Le[Oe];if(E.hasOwnProperty(Oe))continue;let me=!1;Fm(Ne)&&Fm(tt)?me=!EC(Ne,tt):me=Ne!==tt,me?Ne!=null?We(Oe):T.add(Oe):Ne!==void 0&&T.has(Oe)?We(Oe):U.protectedKeys[Oe]=!0}U.prevProp=G,U.prevResolvedValues=_e,U.isActive&&(E={...E,..._e}),r&&t.blockInitialAnimation&&(ae=!1),ae&&(!(ue&&S)||ce)&&m.push(...Ue.map(Oe=>({animation:Oe,options:{type:_}})))}if(T.size){const L={};T.forEach(_=>{const U=t.getBaseTarget(_),G=t.getValue(_);G&&(G.liveStyle=!0),L[_]=U??null}),m.push({animation:L})}let A=!!m.length;return r&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(A=!1),r=!1,A?e(m):Promise.resolve()}function c(d,p){var w;if(n[d].isActive===p)return Promise.resolve();(w=t.variantChildren)===null||w===void 0||w.forEach(T=>{var E;return(E=T.animationState)===null||E===void 0?void 0:E.setActive(d,p)}),n[d].isActive=p;const m=a(d);for(const T in n)n[T].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Uw(),r=!0}}}function fB(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!EC(e,t):!1}function oc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Uw(){return{animate:oc(!0),whileInView:oc(),whileHover:oc(),whileTap:oc(),whileDrag:oc(),whileFocus:oc(),exit:oc()}}let Cu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},dB=class extends Cu{constructor(e){super(e),e.animationState||(e.animationState=cB(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Op(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}},hB=0,pB=class extends Cu{constructor(){super(...arguments),this.id=hB++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};const gB={animation:{Feature:dB},exit:{Feature:pB}};function Fd(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function qd(t){return{point:{x:t.pageX,y:t.pageY}}}const mB=t=>e=>cy(e)&&t(e,qd(e));function yd(t,e,n,r){return Fd(t,e,mB(n),r)}const Ww=(t,e)=>Math.abs(t-e);function vB(t,e){const n=Ww(t.x,e.x),r=Ww(t.y,e.y);return Math.sqrt(n**2+r**2)}let hE=class{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=$g(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=vB(m.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:I}=m,{timestamp:A}=Ci;this.history.push({...I,timestamp:A});const{onStart:L,onMove:_}=this.handlers;T||(L&&L(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,m)},this.handlePointerMove=(m,T)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Bg(T,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(m,T)=>{this.end();const{onEnd:E,onSessionEnd:I,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=$g(m.type==="pointercancel"?this.lastMoveEventInfo:Bg(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(m,L),I&&I(m,L)},!cy(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=qd(e),c=Bg(a,this.transformPagePoint),{point:d}=c,{timestamp:p}=Ci;this.history=[{...d,timestamp:p}];const{onSessionStart:w}=n;w&&w(e,$g(c,this.history)),this.removeListeners=Gd(yd(this.contextWindow,"pointermove",this.handlePointerMove),yd(this.contextWindow,"pointerup",this.handlePointerUp),yd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),yu(this.updatePoint)}};function Bg(t,e){return e?{point:e(t.point)}:t}function zw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $g({point:t},e){return{point:t,delta:zw(t,pE(e)),offset:zw(t,yB(e)),velocity:bB(e,.1)}}function yB(t){return t[0]}function pE(t){return t[t.length-1]}function bB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=pE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Na(e)));)n--;if(!r)return{x:0,y:0};const o=Sl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const gE=1e-4,wB=1-gE,xB=1+gE,mE=.01,SB=0-mE,TB=0+mE;function Qo(t){return t.max-t.min}function CB(t,e,n){return Math.abs(t-e)<=n}function Yw(t,e,n,r=.5){t.origin=r,t.originPoint=Kn(e.min,e.max,t.origin),t.scale=Qo(n)/Qo(e),t.translate=Kn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=wB&&t.scale<=xB||isNaN(t.scale))&&(t.scale=1),(t.translate>=SB&&t.translate<=TB||isNaN(t.translate))&&(t.translate=0)}function bd(t,e,n,r){Yw(t.x,e.x,n.x,r?r.originX:void 0),Yw(t.y,e.y,n.y,r?r.originY:void 0)}function Gw(t,e,n){t.min=n.min+e.min,t.max=t.min+Qo(e)}function EB(t,e,n){Gw(t.x,e.x,n.x),Gw(t.y,e.y,n.y)}function qw(t,e,n){t.min=e.min-n.min,t.max=t.min+Qo(e)}function wd(t,e,n){qw(t.x,e.x,n.x),qw(t.y,e.y,n.y)}function kB(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Kn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Kn(n,t,r.max):Math.min(t,n)),t}function Xw(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function DB(t,{top:e,left:n,bottom:r,right:i}){return{x:Xw(t.x,n,i),y:Xw(t.y,e,r)}}function Kw(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function PB(t,e){return{x:Kw(t.x,e.x),y:Kw(t.y,e.y)}}function OB(t,e){let n=.5;const r=Qo(t),i=Qo(e);return i>r?n=kf(e.min,e.max-r,t.min):r>i&&(n=kf(t.min,t.max-i,e.min)),kl(0,1,n)}function _B(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Gm=.35;function RB(t=Gm){return t===!1?t=0:t===!0&&(t=Gm),{x:Zw(t,"left","right"),y:Zw(t,"top","bottom")}}function Zw(t,e,n){return{min:Jw(t,e),max:Jw(t,n)}}function Jw(t,e){return typeof t=="number"?t:t[e]||0}const Qw=()=>({translate:0,scale:1,origin:0,originPoint:0}),mf=()=>({x:Qw(),y:Qw()}),ex=()=>({min:0,max:0}),gr=()=>({x:ex(),y:ex()});function Ds(t){return[t("x"),t("y")]}function vE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function AB({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function IB(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Vg(t){return t===void 0||t===1}function qm({scale:t,scaleX:e,scaleY:n}){return!Vg(t)||!Vg(e)||!Vg(n)}function uc(t){return qm(t)||yE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function yE(t){return tx(t.x)||tx(t.y)}function tx(t){return t&&t!=="0%"}function lp(t,e,n){const r=t-n,i=e*r;return n+i}function nx(t,e,n,r,i){return i!==void 0&&(t=lp(t,i,r)),lp(t,n,r)+e}function Xm(t,e=0,n=1,r,i){t.min=nx(t.min,e,n,r,i),t.max=nx(t.max,e,n,r,i)}function bE(t,{x:e,y:n}){Xm(t.x,e.translate,e.scale,e.originPoint),Xm(t.y,n.translate,n.scale,n.originPoint)}const rx=.999999999999,ix=1.0000000000001;function MB(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:d}=o.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&yf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,bE(t,a)),r&&uc(o.latestValues)&&yf(t,o.latestValues))}e.x<ix&&e.x>rx&&(e.x=1),e.y<ix&&e.y>rx&&(e.y=1)}function vf(t,e){t.min=t.min+e,t.max=t.max+e}function ox(t,e,n,r,i=.5){const o=Kn(t.min,t.max,i);Xm(t,e,n,o,r)}function yf(t,e){ox(t.x,e.x,e.scaleX,e.scale,e.originX),ox(t.y,e.y,e.scaleY,e.scale,e.originY)}function wE(t,e){return vE(IB(t.getBoundingClientRect(),e))}function LB(t,e,n){const r=wE(t,n),{scroll:i}=e;return i&&(vf(r.x,i.offset.x),vf(r.y,i.offset.y)),r}const xE=({current:t})=>t?t.ownerDocument.defaultView:null,FB=new WeakMap;let NB=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=w=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qd(w).point)},o=(w,m)=>{const{drag:T,dragPropagation:E,onDragStart:I}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ON(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ds(L=>{let _=this.getAxisMotionValue(L).get()||0;if(ja.test(_)){const{projection:U}=this.visualElement;if(U&&U.layout){const G=U.layout.layoutBox[L];G&&(_=Qo(G)*(parseFloat(_)/100))}}this.originPoint[L]=_}),I&&Fn.postRender(()=>I(w,m)),Bm(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},a=(w,m)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:I,onDrag:A}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:L}=m;if(E&&this.currentDirection===null){this.currentDirection=jB(L),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",m.point,L),this.updateAxis("y",m.point,L),this.visualElement.render(),A&&A(w,m)},c=(w,m)=>this.stop(w,m),d=()=>Ds(w=>{var m;return this.getAnimationState(w)==="paused"&&((m=this.getAxisMotionValue(w).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new hE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:xE(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Fn.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ch(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=kB(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&pf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=DB(i.layoutBox,n):this.constraints=!1,this.elastic=RB(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ds(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=_B(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!pf(e))return!1;const r=e.current;vu(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=LB(r,i.root,this.visualElement.getTransformPagePoint());let a=PB(i.layout.layoutBox,o);if(n){const c=n(AB(a));this.hasMutatedConstraints=!!c,c&&(a=vE(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},p=Ds(w=>{if(!Ch(w,n,this.currentDirection))return;let m=d&&d[w]||{};a&&(m={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,I={type:"inertia",velocity:r?e[w]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(w,I)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Bm(this.visualElement,e),r.start(Sy(e,r,0,n,this.visualElement,!1))}stopAnimation(){Ds(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ds(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Ds(n=>{const{drag:r}=this.getProps();if(!Ch(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Kn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!pf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ds(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const d=c.get();i[a]=OB({min:d,max:d},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ds(a=>{if(!Ch(a,e,null))return;const c=this.getAxisMotionValue(a),{min:d,max:p}=this.constraints[a];c.set(Kn(d,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;FB.set(this.visualElement,this);const e=this.visualElement.current,n=yd(e,"pointerdown",d=>{const{drag:p,dragListener:w=!0}=this.getProps();p&&w&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();pf(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fn.read(r);const a=Fd(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ds(w=>{const m=this.getAxisMotionValue(w);m&&(this.originPoint[w]+=d[w].translate,m.set(m.get()+d[w].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Gm,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Ch(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function jB(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let BB=class extends Cu{constructor(e){super(e),this.removeGroupControls=_o,this.removeListeners=_o,this.controls=new NB(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_o}unmount(){this.removeGroupControls(),this.removeListeners()}};const sx=t=>(e,n)=>{t&&Fn.postRender(()=>t(e,n))};let $B=class extends Cu{constructor(){super(...arguments),this.removePointerDownListener=_o}onPointerDown(e){this.session=new hE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:sx(e),onStart:sx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Fn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=yd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Bh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ax(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const id={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ot.test(t))t=parseFloat(t);else return t;const n=ax(t,e.target.x),r=ax(t,e.target.y);return`${n}% ${r}%`}},VB={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=bu.parse(t);if(i.length>5)return r;const o=bu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,d=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=d;const p=Kn(c,d,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};let HB=class extends q.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;lN(UB),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()})),Bh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Fn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Zv.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function SE(t){const[e,n]=TF(),r=q.useContext(oC);return Me.jsx(HB,{...t,layoutGroup:r,switchLayoutGroup:q.useContext(dC),isPresent:e,safeToRemove:n})}const UB={borderRadius:{...id,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:id,borderTopRightRadius:id,borderBottomLeftRadius:id,borderBottomRightRadius:id,boxShadow:VB};function WB(t,e,n){const r=ji(t)?t:Md(t);return r.start(Sy("",r,e,n)),r.animation}function zB(t){return t instanceof SVGElement&&t.tagName!=="svg"}const YB=(t,e)=>t.depth-e.depth;let GB=class{constructor(){this.children=[],this.isDirty=!1}add(e){fy(this.children,e),this.isDirty=!0}remove(e){dy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(YB),this.isDirty=!1,this.children.forEach(e)}};function qB(t,e){const n=Ba.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(yu(r),t(o-e))};return Fn.read(r,!0),()=>yu(r)}const TE=["TopLeft","TopRight","BottomLeft","BottomRight"],XB=TE.length,lx=t=>typeof t=="string"?parseFloat(t):t,ux=t=>typeof t=="number"||Ot.test(t);function KB(t,e,n,r,i,o){i?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,ZB(r)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,JB(r))):o&&(t.opacity=Kn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<XB;a++){const c=`border${TE[a]}Radius`;let d=cx(e,c),p=cx(n,c);if(d===void 0&&p===void 0)continue;d||(d=0),p||(p=0),d===0||p===0||ux(d)===ux(p)?(t[c]=Math.max(Kn(lx(d),lx(p),r),0),(ja.test(p)||ja.test(d))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,r))}function cx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ZB=CE(0,.5,HC),JB=CE(.5,.95,_o);function CE(t,e,n){return r=>r<t?0:r>e?1:n(kf(t,e,r))}function fx(t,e){t.min=e.min,t.max=e.max}function Ts(t,e){fx(t.x,e.x),fx(t.y,e.y)}function dx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function hx(t,e,n,r,i){return t-=e,t=lp(t,1/n,r),i!==void 0&&(t=lp(t,1/i,r)),t}function QB(t,e=0,n=1,r=.5,i,o=t,a=t){if(ja.test(e)&&(e=parseFloat(e),e=Kn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Kn(o.min,o.max,r);t===o&&(c-=e),t.min=hx(t.min,e,n,c,i),t.max=hx(t.max,e,n,c,i)}function px(t,e,[n,r,i],o,a){QB(t,e[n],e[r],e[i],e.scale,o,a)}const e$=["x","scaleX","originX"],t$=["y","scaleY","originY"];function gx(t,e,n,r){px(t.x,e,e$,n?n.x:void 0,r?r.x:void 0),px(t.y,e,t$,n?n.y:void 0,r?r.y:void 0)}function mx(t){return t.translate===0&&t.scale===1}function EE(t){return mx(t.x)&&mx(t.y)}function vx(t,e){return t.min===e.min&&t.max===e.max}function n$(t,e){return vx(t.x,e.x)&&vx(t.y,e.y)}function yx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function kE(t,e){return yx(t.x,e.x)&&yx(t.y,e.y)}function bx(t){return Qo(t.x)/Qo(t.y)}function wx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let r$=class{constructor(){this.members=[]}add(e){fy(this.members,e),e.scheduleRender()}remove(e){if(dy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function i$(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:w,rotateX:m,rotateY:T,skewX:E,skewY:I}=n;p&&(r=`perspective(${p}px) ${r}`),w&&(r+=`rotate(${w}deg) `),m&&(r+=`rotateX(${m}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),I&&(r+=`skewY(${I}deg) `)}const c=t.x.scale*e.x,d=t.y.scale*e.y;return(c!==1||d!==1)&&(r+=`scale(${c}, ${d})`),r||"none"}const cc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},fd=typeof window<"u"&&window.MotionDebug!==void 0,Hg=["","X","Y","Z"],o$={visibility:"hidden"},xx=1e3;let s$=0;function Ug(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function DE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=LC(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Fn,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&DE(r)}function PE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=s$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,fd&&(cc.totalNodes=cc.resolvedTargetDeltas=cc.recalculatedProjection=0),this.nodes.forEach(u$),this.nodes.forEach(p$),this.nodes.forEach(g$),this.nodes.forEach(c$),fd&&window.MotionDebug.record(cc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new GB)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new hy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const d=this.eventHandlers.get(a);d&&d.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=zB(a),this.instance=a;const{layoutId:d,layout:p,visualElement:w}=this.options;if(w&&!w.current&&w.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||d)&&(this.isLayoutDirty=!0),t){let m;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=qB(T,250),Bh.hasAnimatedSinceResize&&(Bh.hasAnimatedSinceResize=!1,this.nodes.forEach(Tx))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&w&&(d||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||w.getDefaultTransition()||w$,{onLayoutAnimationStart:L,onLayoutAnimationComplete:_}=w.getProps(),U=!this.targetLayout||!kE(this.targetLayout,I)||E,G=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||G||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,G);const re={...ay(A,"layout"),onPlay:L,onComplete:_};(w.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else T||Tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,yu(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(m$),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&DE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let w=0;w<this.path.length;w++){const m=this.path[w];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Sx);return}this.isUpdating||this.nodes.forEach(d$),this.isUpdating=!1,this.nodes.forEach(h$),this.nodes.forEach(a$),this.nodes.forEach(l$),this.clearAllSnapshots();const c=Ba.now();Ci.delta=kl(0,1e3/60,c-Ci.timestamp),Ci.timestamp=c,Ci.isProcessing=!0,Mg.update.process(Ci),Mg.preRender.process(Ci),Mg.render.process(Ci),Ci.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(f$),this.sharedNodes.forEach(v$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!EE(this.projectionDelta),d=this.getTransformTemplate(),p=d?d(this.latestValues,""):void 0,w=p!==this.prevTransformTemplateValue;a&&(c||uc(this.latestValues)||w)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),x$(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gr();const d=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(S$))){const{scroll:w}=this.root;w&&(vf(d.x,w.offset.x),vf(d.y,w.offset.y))}return d}removeElementScroll(a){var c;const d=gr();if(Ts(d,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return d;for(let p=0;p<this.path.length;p++){const w=this.path[p],{scroll:m,options:T}=w;w!==this.root&&m&&T.layoutScroll&&(m.wasRoot&&Ts(d,a),vf(d.x,m.offset.x),vf(d.y,m.offset.y))}return d}applyTransform(a,c=!1){const d=gr();Ts(d,a);for(let p=0;p<this.path.length;p++){const w=this.path[p];!c&&w.options.layoutScroll&&w.scroll&&w!==w.root&&yf(d,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),uc(w.latestValues)&&yf(d,w.latestValues)}return uc(this.latestValues)&&yf(d,this.latestValues),d}removeTransform(a){const c=gr();Ts(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!p.instance||!uc(p.latestValues))continue;qm(p.latestValues)&&p.updateSnapshot();const w=gr(),m=p.measurePageBox();Ts(w,m),gx(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,w)}return uc(this.latestValues)&&gx(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ci.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:T}=this.options;if(!(!this.layout||!(m||T))){if(this.resolvedRelativeTargetAt=Ci.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),wd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gr(),this.targetWithTransforms=gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),EB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ts(this.target,this.layout.layoutBox),bE(this.target,this.targetDelta)):Ts(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),wd(this.relativeTargetOrigin,this.target,E.target),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}fd&&cc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||qm(this.parent.latestValues)||yE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ci.timestamp&&(p=!1),p)return;const{layout:w,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(w||m))return;Ts(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;MB(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gr());const{target:I}=c;if(!I){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dx(this.prevProjectionDelta.x,this.projectionDelta.x),dx(this.prevProjectionDelta.y,this.projectionDelta.y)),bd(this.projectionDelta,this.layoutCorrected,I,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==E||!wx(this.projectionDelta.x,this.prevProjectionDelta.x)||!wx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I)),fd&&cc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=mf(),this.projectionDelta=mf(),this.projectionDeltaWithTransform=mf()}setAnimationOrigin(a,c=!1){const d=this.snapshot,p=d?d.latestValues:{},w={...this.latestValues},m=mf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=gr(),E=d?d.source:void 0,I=this.layout?this.layout.source:void 0,A=E!==I,L=this.getStack(),_=!L||L.members.length<=1,U=!!(A&&!_&&this.options.crossfade===!0&&!this.path.some(b$));this.animationProgress=0;let G;this.mixTargetDelta=re=>{const Z=re/1e3;Cx(m.x,a.x,Z),Cx(m.y,a.y,Z),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),y$(this.relativeTarget,this.relativeTargetOrigin,T,Z),G&&n$(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=gr()),Ts(G,this.relativeTarget)),A&&(this.animationValues=w,KB(w,p,this.latestValues,Z,U,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(yu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{Bh.hasAnimatedSinceResize=!0,this.currentAnimation=WB(0,xx,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:d,layout:p,latestValues:w}=a;if(!(!c||!d||!p)){if(this!==a&&this.layout&&p&&OE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){d=this.target||gr();const m=Qo(this.layout.layoutBox.x);d.x.min=a.target.x.min,d.x.max=d.x.min+m;const T=Qo(this.layout.layoutBox.y);d.y.min=a.target.y.min,d.y.max=d.y.min+T}Ts(c,d),yf(c,w),bd(this.projectionDeltaWithTransform,this.layoutCorrected,c,w)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new r$),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:d}={}){const p=this.getStack();p&&p.promote(this,d),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:d}=a;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const p={};d.z&&Ug("z",a,p,this.animationValues);for(let w=0;w<Hg.length;w++)Ug(`rotate${Hg[w]}`,a,p,this.animationValues),Ug(`skew${Hg[w]}`,a,p,this.animationValues);a.render();for(const w in p)a.setStaticValue(w,p[w]),this.animationValues&&(this.animationValues[w]=p[w]);a.scheduleRender()}getProjectionStyles(a){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return o$;const p={visibility:""},w=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Nh(a==null?void 0:a.pointerEvents)||"",p.transform=w?w(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const A={};return this.options.layoutId&&(A.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,A.pointerEvents=Nh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!uc(this.latestValues)&&(A.transform=w?w({},""):"none",this.hasProjected=!1),A}const T=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=i$(this.projectionDeltaWithTransform,this.treeScale,T),w&&(p.transform=w(T,p.transform));const{x:E,y:I}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${I.origin*100}% 0`,m.animationValues?p.opacity=m===this?(d=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=m===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const A in rp){if(T[A]===void 0)continue;const{correct:L,applyTo:_}=rp[A],U=p.transform==="none"?T[A]:L(T[A],m);if(_){const G=_.length;for(let re=0;re<G;re++)p[_[re]]=U}else p[A]=U}return this.options.layoutId&&(p.pointerEvents=m===this?Nh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Sx),this.root.sharedNodes.clear()}}}function a$(t){t.updateLayout()}function l$(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Ds(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=Qo(T);T.min=r[m].min,T.max=T.min+E}):OE(o,n.layoutBox,r)&&Ds(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=Qo(r[m]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+E)});const c=mf();bd(c,r,n.layoutBox);const d=mf();a?bd(d,t.applyTransform(i,!0),n.measuredBox):bd(d,r,n.layoutBox);const p=!EE(c);let w=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:T,layout:E}=m;if(T&&E){const I=gr();wd(I,n.layoutBox,T.layoutBox);const A=gr();wd(A,r,E.layoutBox),kE(I,A)||(w=!0),m.options.layoutRoot&&(t.relativeTarget=A,t.relativeTargetOrigin=I,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:w})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function u$(t){fd&&cc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function c$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function f$(t){t.clearSnapshot()}function Sx(t){t.clearMeasurements()}function d$(t){t.isLayoutDirty=!1}function h$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Tx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function p$(t){t.resolveTargetDelta()}function g$(t){t.calcProjection()}function m$(t){t.resetSkewAndRotation()}function v$(t){t.removeLeadSnapshot()}function Cx(t,e,n){t.translate=Kn(e.translate,0,n),t.scale=Kn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ex(t,e,n,r){t.min=Kn(e.min,n.min,r),t.max=Kn(e.max,n.max,r)}function y$(t,e,n,r){Ex(t.x,e.x,n.x,r),Ex(t.y,e.y,n.y,r)}function b$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const w$={duration:.45,ease:[.4,0,.1,1]},kx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Dx=kx("applewebkit/")&&!kx("chrome/")?Math.round:_o;function Px(t){t.min=Dx(t.min),t.max=Dx(t.max)}function x$(t){Px(t.x),Px(t.y)}function OE(t,e,n){return t==="position"||t==="preserve-aspect"&&!CB(bx(e),bx(n),.2)}function S$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const T$=PE({attachResizeListener:(t,e)=>Fd(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wg={current:void 0},_E=PE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Wg.current){const t=new T$({});t.mount(window),t.setOptions({layoutScroll:!0}),Wg.current=t}return Wg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),C$={pan:{Feature:$B},drag:{Feature:BB,ProjectionNode:_E,MeasureLayout:SE}};function Ox(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Fn.postRender(()=>o(e,qd(e)))}let E$=class extends Cu{mount(){const{current:e}=this.node;e&&(this.unmount=CN(e,n=>(Ox(this.node,n,"Start"),r=>Ox(this.node,r,"End"))))}unmount(){}},k$=class extends Cu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gd(Fd(this.node.current,"focus",()=>this.onFocus()),Fd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function _x(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Fn.postRender(()=>o(e,qd(e)))}let D$=class extends Cu{mount(){const{current:e}=this.node;e&&(this.unmount=PN(e,n=>(_x(this.node,n,"Start"),(r,{success:i})=>_x(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Km=new WeakMap,zg=new WeakMap,P$=t=>{const e=Km.get(t.target);e&&e(t)},O$=t=>{t.forEach(P$)};function _$({root:t,...e}){const n=t||document;zg.has(n)||zg.set(n,{});const r=zg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(O$,{root:t,...e})),r[i]}function R$(t,e,n){const r=_$(e);return Km.set(t,n),r.observe(t),()=>{Km.delete(t),r.unobserve(t)}}const A$={some:0,all:1};let I$=class extends Cu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:A$[i]},c=d=>{const{isIntersecting:p}=d;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:w,onViewportLeave:m}=this.node.getProps(),T=p?w:m;T&&T(d)};return R$(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(M$(e,n))&&this.startObserver()}unmount(){}};function M$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const L$={inView:{Feature:I$},tap:{Feature:D$},focus:{Feature:k$},hover:{Feature:E$}},F$={layout:{ProjectionNode:_E,MeasureLayout:SE}},Zm={current:null},RE={current:!1};function N$(){if(RE.current=!0,!!Yv)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Zm.current=t.matches;t.addListener(e),e()}else Zm.current=!1}const j$=[...nE,Ni,bu],B$=t=>j$.find(tE(t)),Rx=new WeakMap;function $$(t,e,n){for(const r in e){const i=e[r],o=n[r];if(ji(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Dp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(ji(o))t.addValue(r,Md(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(r);t.addValue(r,Md(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ax=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let V$=class{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=by,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const E=Ba.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Fn.render(this.render,!1,!0))};const{latestValues:d,renderState:p,onUpdate:w}=a;this.onUpdate=w,this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=_p(n),this.isVariantNode=cC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in T){const I=T[E];d[E]!==void 0&&ji(I)&&I.set(d[E],!1)}}mount(e){this.current=e,Rx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),RE.current||N$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Zm.current,process.env.NODE_ENV!=="production"&&Dp(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(){Rx.delete(this.current),this.projection&&this.projection.unmount(),yu(this.notifyUpdate),yu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=_c.has(e),i=n.on("change",c=>{this.latestValues[e]=c,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Df){const n=Df[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ax.length;r++){const i=Ax[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=e[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=$$(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Md(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(QC(i)||WC(i))?i=parseFloat(i):!B$(i)&&bu.test(n)&&(i=KC(e,n)),this.setBaseTarget(e,ji(i)?i.get():i)),ji(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Qv(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[e])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!ji(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new hy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},AE=class extends V${constructor(){super(...arguments),this.KeyframeResolver=rE}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ji(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function H$(t){return window.getComputedStyle(t)}let U$=class extends AE{constructor(){super(...arguments),this.type="html",this.renderInstance=bC}readValueFromInstance(e,n){if(_c.has(n)){const r=yy(n);return r&&r.default||0}else{const r=H$(e),i=(mC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return wE(e,n)}build(e,n,r){ny(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return sy(e,n,r)}},W$=class extends AE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(_c.has(n)){const r=yy(n);return r&&r.default||0}return n=wC.has(n)?n:Kv(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return TC(e,n,r)}build(e,n,r){ry(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){xC(e,n,r,i)}mount(e){this.isSVGTag=oy(e.tagName),super.mount(e)}};const z$=(t,e)=>Jv(t)?new W$(e):new U$(e,{allowProjection:t!==q.Fragment}),Y$=vN({...gB,...L$,...C$,...F$},z$),G$=AF(Y$);function Ix(t,e){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>t(...r),e)}}function q$({debounce:t,scroll:e,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){const i=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)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[o,a]=q.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=q.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o,orientationHandler:null}),d=t?typeof t=="number"?t:t.scroll:null,p=t?typeof t=="number"?t:t.resize:null,w=q.useRef(!1);q.useEffect(()=>(w.current=!0,()=>void(w.current=!1)));const[m,T,E]=q.useMemo(()=>{const _=()=>{if(!c.current.element)return;const{left:U,top:G,width:re,height:Z,bottom:ue,right:S,x:ae,y:ce}=c.current.element.getBoundingClientRect(),Ue={left:U,top:G,width:re,height:Z,bottom:ue,right:S,x:ae,y:ce};c.current.element instanceof HTMLElement&&r&&(Ue.height=c.current.element.offsetHeight,Ue.width=c.current.element.offsetWidth),Object.freeze(Ue),w.current&&!J$(c.current.lastBounds,Ue)&&a(c.current.lastBounds=Ue)};return[_,p?Ix(_,p):_,d?Ix(_,d):_]},[a,r,d,p]);function I(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(_=>_.removeEventListener("scroll",E,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null),c.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",c.current.orientationHandler))}function A(){c.current.element&&(c.current.resizeObserver=new i(E),c.current.resizeObserver.observe(c.current.element),e&&c.current.scrollContainers&&c.current.scrollContainers.forEach(_=>_.addEventListener("scroll",E,{capture:!0,passive:!0})),c.current.orientationHandler=()=>{E()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",c.current.orientationHandler))}const L=_=>{!_||_===c.current.element||(I(),c.current.element=_,c.current.scrollContainers=IE(_),A())};return K$(E,!!e),X$(T),q.useEffect(()=>{I(),A()},[e,E,T]),q.useEffect(()=>I,[]),[L,o,m]}function X$(t){q.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function K$(t,e){q.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function IE(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&e.push(t),[...e,...IE(t.parentElement)]}const Z$=["x","y","top","bottom","left","right","width","height"],J$=(t,e)=>Z$.every(n=>t[n]===e[n]),ME=q.createContext({dragDropManager:void 0});function Cs(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Mx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Lx=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fx={INIT:"@@redux/INIT"+Lx(),REPLACE:"@@redux/REPLACE"+Lx()};function Q$(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function eV(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(rV(t))return"date";if(nV(t))return"error";var n=tV(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function tV(t){return typeof t.constructor=="function"?t.constructor.name:null}function nV(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function rV(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function uf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=eV(t)),e}function LE(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Cs(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(1):"Expected the enhancer to be a function. Instead, received: '"+uf(n)+"'");return n(LE)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(2):"Expected the root reducer to be a function. Instead, received: '"+uf(t)+"'");var i=t,o=e,a=[],c=a,d=!1;function p(){c===a&&(c=a.slice())}function w(){if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function m(A){if(typeof A!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(4):"Expected the listener to be a function. Instead, received: '"+uf(A)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(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 L=!0;return p(),c.push(A),function(){if(L){if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(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.");L=!1,p();var U=c.indexOf(A);c.splice(U,1),a=null}}}function T(A){if(!Q$(A))throw new Error(process.env.NODE_ENV==="production"?Cs(7):"Actions must be plain objects. Instead, the actual type was: '"+uf(A)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof A.type>"u")throw new Error(process.env.NODE_ENV==="production"?Cs(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(9):"Reducers may not dispatch actions.");try{d=!0,o=i(o,A)}finally{d=!1}for(var L=a=c,_=0;_<L.length;_++){var U=L[_];U()}return A}function E(A){if(typeof A!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(10):"Expected the nextReducer to be a function. Instead, received: '"+uf(A));i=A,T({type:Fx.REPLACE})}function I(){var A,L=m;return A={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?Cs(11):"Expected the observer to be an object. Instead, received: '"+uf(U)+"'");function G(){U.next&&U.next(w())}G();var re=L(G);return{unsubscribe:re}}},A[Mx]=function(){return this},A}return T({type:Fx.INIT}),r={dispatch:T,subscribe:m,getState:w,replaceReducer:E},r[Mx]=I,r}function Ut(t,e,...n){if(iV()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function iV(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function oV(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function sV(t,e){return t.filter(n=>n!==e)}function FE(t){return typeof t=="object"}function aV(t,e){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function lV(t,e){return t.filter(n=>e.indexOf(n)>-1)}const Ty="dnd-core/INIT_COORDS",Ip="dnd-core/BEGIN_DRAG",Cy="dnd-core/PUBLISH_DRAG_SOURCE",Mp="dnd-core/HOVER",Lp="dnd-core/DROP",Fp="dnd-core/END_DRAG";function Nx(t,e){return{type:Ty,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const uV={type:Ty,payload:{clientOffset:null,sourceClientOffset:null}};function cV(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,c=t.getMonitor(),d=t.getRegistry();t.dispatch(Nx(o)),fV(n,c,d);const p=pV(n,c);if(p==null){t.dispatch(uV);return}let w=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");dV(a),w=a(p)}t.dispatch(Nx(o,w));const T=d.getSource(p).beginDrag(c,p);if(T==null)return;hV(T),d.pinSource(p);const E=d.getSourceType(p);return{type:Ip,payload:{itemType:E,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:w||null,isSourcePublic:!!i}}}}function fV(t,e,n){Ut(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Ut(n.getSource(r),"Expected sourceIds to be registered.")})}function dV(t){Ut(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function hV(t){Ut(FE(t),"Item must be an object.")}function pV(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function gV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){gV(t,i,n[i])})}return t}function vV(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();yV(r),xV(r).forEach((a,c)=>{const d=bV(a,c,i,r),p={type:Lp,payload:{dropResult:mV({},n,d)}};t.dispatch(p)})}}function yV(t){Ut(t.isDragging(),"Cannot call drop while not dragging."),Ut(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function bV(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return wV(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function wV(t){Ut(typeof t>"u"||FE(t),"Drop result must either be an object or undefined.")}function xV(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function SV(t){return function(){const n=t.getMonitor(),r=t.getRegistry();TV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Fp}}}function TV(t){Ut(t.isDragging(),"Cannot call endDrag while not dragging.")}function Jm(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function CV(t){return function(n,{clientOffset:r}={}){EV(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return DV(i,a,c),kV(i,o,a),PV(i,o,a),{type:Mp,payload:{targetIds:i,clientOffset:r||null}}}}function EV(t){Ut(Array.isArray(t),"Expected targetIds to be an array.")}function kV(t,e,n){Ut(e.isDragging(),"Cannot call hover while not dragging."),Ut(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];Ut(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Ut(o,"Expected targetIds to be registered.")}}function DV(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);Jm(o,n)||t.splice(r,1)}}function PV(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function OV(t){return function(){if(t.getMonitor().isDragging())return{type:Cy}}}function _V(t){return{beginDrag:cV(t),publishDragSource:OV(t),hover:CV(t),drop:vV(t),endDrag:SV(t)}}class RV{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&n(c)}}const i=_V(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=r(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function AV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function NE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function IV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:NE(AV(e,r),n)}function MV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:NE(e,n)}const xd=[],Ey=[];xd.__IS_NONE__=!0;Ey.__IS_ALL__=!0;function LV(t,e){return t===xd?!1:t===Ey||typeof e>"u"?!0:lV(e,t).length>0}class FV{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;Ut(typeof e=="function","listener must be a function."),Ut(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!LV(a.dirtyHandlerIds,r)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){Ut(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return Ut(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(Ut(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return Jm(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(Ut(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!Jm(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return r?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return IV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return MV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const jx=typeof global<"u"?global:self,jE=jx.MutationObserver||jx.WebKitMutationObserver;function BE(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function NV(t){let e=1;const n=new jE(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const jV=typeof jE=="function"?NV:BE;class BV{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=jV(this.flush),this.requestErrorThrow=BE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class $V{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class VV{create(e){const n=this.freeTasks,r=n.length?n.pop():new $V(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const $E=new BV,HV=new VV($E.registerPendingError);function UV(t){$E.enqueueTask(HV.create(t))}const ky="dnd-core/ADD_SOURCE",Dy="dnd-core/ADD_TARGET",Py="dnd-core/REMOVE_SOURCE",Np="dnd-core/REMOVE_TARGET";function WV(t){return{type:ky,payload:{sourceId:t}}}function zV(t){return{type:Dy,payload:{targetId:t}}}function YV(t){return{type:Py,payload:{sourceId:t}}}function GV(t){return{type:Np,payload:{targetId:t}}}function qV(t){Ut(typeof t.canDrag=="function","Expected canDrag to be a function."),Ut(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Ut(typeof t.endDrag=="function","Expected endDrag to be a function.")}function XV(t){Ut(typeof t.canDrop=="function","Expected canDrop to be a function."),Ut(typeof t.hover=="function","Expected hover to be a function."),Ut(typeof t.drop=="function","Expected beginDrag to be a function.")}function Qm(t,e){if(e&&Array.isArray(t)){t.forEach(n=>Qm(n,!1));return}Ut(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Os;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Os||(Os={}));let KV=0;function ZV(){return KV++}function JV(t){const e=ZV().toString();switch(t){case Os.SOURCE:return`S${e}`;case Os.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Bx(t){switch(t[0]){case"S":return Os.SOURCE;case"T":return Os.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function $x(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===e)return!0;r=!!i}while(!r);return!1}class QV{addSource(e,n){Qm(e),qV(n);const r=this.addHandler(Os.SOURCE,e,n);return this.store.dispatch(WV(r)),r}addTarget(e,n){Qm(e,!0),XV(n);const r=this.addHandler(Os.TARGET,e,n);return this.store.dispatch(zV(r)),r}containsHandler(e){return $x(this.dragSources,e)||$x(this.dropTargets,e)}getSource(e,n=!1){return Ut(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ut(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Bx(e)===Os.SOURCE}isTargetId(e){return Bx(e)===Os.TARGET}removeSource(e){Ut(this.getSource(e),"Expected an existing source."),this.store.dispatch(YV(e)),UV(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ut(this.getTarget(e),"Expected an existing target."),this.store.dispatch(GV(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);Ut(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){Ut(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=JV(e);return this.types.set(i,n),e===Os.SOURCE?this.dragSources.set(i,r):e===Os.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const e3=(t,e)=>t===e;function t3(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function n3(t,e,n=e3){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function r3(t=xd,e){switch(e.type){case Mp:break;case ky:case Dy:case Np:case Py:return xd;case Ip:case Cy:case Fp:case Lp:default:return Ey}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=aV(n,r);if(!(i.length>0||!n3(n,r)))return xd;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function i3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){i3(t,i,n[i])})}return t}const Vx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function s3(t=Vx,e){const{payload:n}=e;switch(e.type){case Ty:case Ip:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Mp:return t3(t.clientOffset,n.clientOffset)?t:o3({},t,{clientOffset:n.clientOffset});case Fp:case Lp:return Vx;default:return t}}function a3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){a3(t,i,n[i])})}return t}const l3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function u3(t=l3,e){const{payload:n}=e;switch(e.type){case Ip:return cf({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Cy:return cf({},t,{isSourcePublic:!0});case Mp:return cf({},t,{targetIds:n.targetIds});case Np:return t.targetIds.indexOf(n.targetId)===-1?t:cf({},t,{targetIds:sV(t.targetIds,n.targetId)});case Lp:return cf({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Fp:return cf({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function c3(t=0,e){switch(e.type){case ky:case Dy:return t+1;case Py:case Np:return t-1;default:return t}}function f3(t=0){return t+1}function d3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){d3(t,i,n[i])})}return t}function p3(t={},e){return{dirtyHandlerIds:r3(t.dirtyHandlerIds,{type:e.type,payload:h3({},e.payload,{prevTargetIds:oV(t,"dragOperation.targetIds",[])})}),dragOffset:s3(t.dragOffset,e),refCount:c3(t.refCount,e),dragOperation:u3(t.dragOperation,e),stateId:f3(t.stateId)}}function g3(t,e=void 0,n={},r=!1){const i=m3(r),o=new FV(i,new QV(i)),a=new RV(i,o),c=t(a,e,n);return a.receiveBackend(c),a}function m3(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return LE(p3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function v3(t,e){if(t==null)return{};var n=y3(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function y3(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let Hx=0;const $h=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var VE=q.memo(function(e){var{children:n}=e,r=v3(e,["children"]);const[i,o]=b3(r);return q.useEffect(()=>{if(o){const a=HE();return++Hx,()=>{--Hx===0&&(a[$h]=null)}}},[]),Me.jsx(ME.Provider,{value:i,children:n})});function b3(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=w3(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function w3(t,e=HE(),n,r){const i=e;return i[$h]||(i[$h]={dragDropManager:g3(t,e,n,r)}),i[$h]}function HE(){return typeof global<"u"?global:window}var x3=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n};const S3=Oc(x3),Cc=typeof window<"u"?q.useLayoutEffect:q.useEffect;function UE(t,e,n){const[r,i]=q.useState(()=>e(t)),o=q.useCallback(()=>{const a=e(t);S3(r,a)||(i(a),n&&n())},[r,t,n]);return Cc(o),[r,o]}function T3(t,e,n){const[r,i]=UE(t,e,n);return Cc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function WE(t,e,n){return T3(e,t||(()=>({})),()=>n.reconnect())}function zE(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),q.useMemo(()=>typeof t=="function"?t():t,n)}function C3(t){return q.useMemo(()=>t.hooks.dragSource(),[t])}function E3(t){return q.useMemo(()=>t.hooks.dragPreview(),[t])}let Yg=!1,Gg=!1;class k3{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ut(!Yg,"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 Yg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Yg=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!Gg,"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 Gg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Gg=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let qg=!1;class D3{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;Ut(!qg,"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 qg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{qg=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function P3(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function O3(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function ev(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const c=Object.prototype.hasOwnProperty.bind(e);for(let d=0;d<o.length;d++){const p=o[d];if(!c(p))return!1;const w=t[p],m=e[p];if(i=void 0,i===!1||i===void 0&&w!==m)return!1}return!0}function tv(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function _3(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function R3(t){return(e=null,n=null)=>{if(!q.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return _3(r),A3(r,n?o=>t(o,n):t)}}function YE(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=R3(r);e[n]=()=>i}}),e}function Ux(t,e){typeof t=="function"?t(e):t.current=e}function A3(t,e){const n=t.ref;return Ut(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?q.cloneElement(t,{ref:r=>{Ux(n,r),Ux(e,r)}}):q.cloneElement(t,{ref:e})}class I3{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ev(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ev(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=YE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,tv(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,tv(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class M3{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ev(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=YE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,tv(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Ol(){const{dragDropManager:t}=q.useContext(ME);return Ut(t!=null,"Expected drag drop context"),t}function L3(t,e){const n=Ol(),r=q.useMemo(()=>new I3(n.getBackend()),[n]);return Cc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),Cc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function F3(){const t=Ol();return q.useMemo(()=>new k3(t),[t])}class N3{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function j3(t,e,n){const r=q.useMemo(()=>new N3(t,e,n),[e,n]);return q.useEffect(()=>{r.spec=t},[t]),r}function B3(t){return q.useMemo(()=>{const e=t.type;return Ut(e!=null,"spec.type must be defined"),e},[t])}function $3(t,e,n){const r=Ol(),i=j3(t,e,n),o=B3(t);Cc(function(){if(o!=null){const[c,d]=O3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),d}},[r,e,n,i,o])}function GE(t,e){const n=zE(t,e);Ut(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=F3(),i=L3(n.options,n.previewOptions);return $3(n,r,i),[WE(n.collect,r,i),C3(i),E3(i)]}function V3(t){const n=Ol().getMonitor(),[r,i]=UE(n,t);return q.useEffect(()=>n.subscribeToOffsetChange(i)),q.useEffect(()=>n.subscribeToStateChange(i)),r}function H3(t){return q.useMemo(()=>t.hooks.dropTarget(),[t])}function U3(t){const e=Ol(),n=q.useMemo(()=>new M3(e.getBackend()),[e]);return Cc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function W3(){const t=Ol();return q.useMemo(()=>new D3(t),[t])}function z3(t){const{accept:e}=t;return q.useMemo(()=>(Ut(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class Y3{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function G3(t,e){const n=q.useMemo(()=>new Y3(t,e),[e]);return q.useEffect(()=>{n.spec=t},[t]),n}function q3(t,e,n){const r=Ol(),i=G3(t,e),o=z3(t);Cc(function(){const[c,d]=P3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),d},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function Oy(t,e){const n=zE(t,e),r=W3(),i=U3(n.options);return q3(n,r,i),[WE(n.collect,r,i),H3(i)]}var qE=t=>{throw TypeError(t)},XE=(t,e,n)=>e.has(t)||qE("Cannot "+n),Nt=(t,e,n)=>(XE(t,e,"read from private field"),n?n.call(t):e.get(t)),ks=(t,e,n)=>e.has(t)?qE("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),fc=(t,e,n,r)=>(XE(t,e,"write to private field"),e.set(t,n),n),su,X3=class{constructor(){ks(this,su),this.register=t=>{Nt(this,su).push(t)},this.unregister=t=>{for(;Nt(this,su).indexOf(t)!==-1;)Nt(this,su).splice(Nt(this,su).indexOf(t),1)},this.backendChanged=t=>{for(let e of Nt(this,su))e.backendChanged(t)},fc(this,su,[])}};su=new WeakMap;var qo,dd,Xo,vl,dc,nv,rv,iv,Vh,Hh,hd,KE=class Uh{constructor(e,n,r){if(ks(this,qo),ks(this,dd),ks(this,Xo),ks(this,vl),ks(this,dc),ks(this,nv,(i,o,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let c=a.backend(i,o,a.options),d=a.id,p=!a.id&&c&&c.constructor;if(p&&(d=c.constructor.name),!d)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
|
|
5
|
-
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
|
|
6
|
-
This might be unsupported in the future, please specify 'id' explicitely for every backend.`),Nt(this,Xo)[d])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
7
|
-
${JSON.stringify(a)} (conflicts with: ${JSON.stringify(Nt(this,Xo)[d])})`);return{id:d,instance:c,preview:a.preview??!1,transition:a.transition,skipDispatchOnTransition:a.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(Uh.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Uh.isSetUp=!0,Nt(this,rv).call(this,window),Nt(this,Xo)[Nt(this,qo)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(Uh.isSetUp=!1,Nt(this,iv).call(this,window),Nt(this,Xo)[Nt(this,qo)].instance.teardown())},this.connectDragSource=(i,o,a)=>Nt(this,hd).call(this,"connectDragSource",i,o,a),this.connectDragPreview=(i,o,a)=>Nt(this,hd).call(this,"connectDragPreview",i,o,a),this.connectDropTarget=(i,o,a)=>Nt(this,hd).call(this,"connectDropTarget",i,o,a),this.profile=()=>Nt(this,Xo)[Nt(this,qo)].instance.profile(),this.previewEnabled=()=>Nt(this,Xo)[Nt(this,qo)].preview,this.previewsList=()=>Nt(this,dd),this.backendsList=()=>Nt(this,vl),ks(this,rv,i=>{for(let o of Nt(this,vl))o.transition&&i.addEventListener(o.transition.event,Nt(this,Vh))}),ks(this,iv,i=>{for(let o of Nt(this,vl))o.transition&&i.removeEventListener(o.transition.event,Nt(this,Vh))}),ks(this,Vh,i=>{var a;let o=Nt(this,qo);if(Nt(this,vl).some(c=>c.id!==Nt(this,qo)&&c.transition&&c.transition.check(i)?(fc(this,qo,c.id),!0):!1),Nt(this,qo)!==o){Nt(this,Xo)[o].instance.teardown();for(let[w,m]of Object.entries(Nt(this,dc)))m.unsubscribe(),m.unsubscribe=Nt(this,Hh).call(this,m.func,...m.args);Nt(this,dd).backendChanged(this);let c=Nt(this,Xo)[Nt(this,qo)];if(c.instance.setup(),c.skipDispatchOnTransition)return;let d=i.constructor,p=new d(i.type,i);(a=i.target)==null||a.dispatchEvent(p)}}),ks(this,Hh,(i,o,a,c)=>Nt(this,Xo)[Nt(this,qo)].instance[i](o,a,c)),ks(this,hd,(i,o,a,c)=>{let d=`${i}_${o}`,p=Nt(this,Hh).call(this,i,o,a,c);return Nt(this,dc)[d]={func:i,args:[o,a,c],unsubscribe:p},()=>{Nt(this,dc)[d].unsubscribe(),delete Nt(this,dc)[d]}}),!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`);fc(this,dd,new X3),fc(this,Xo,{}),fc(this,vl,[]);for(let i of r.backends){let o=Nt(this,nv).call(this,e,n,i);Nt(this,Xo)[o.id]=o,Nt(this,vl).push(o)}fc(this,qo,Nt(this,vl)[0].id),fc(this,dc,{})}};qo=new WeakMap,dd=new WeakMap,Xo=new WeakMap,vl=new WeakMap,dc=new WeakMap,nv=new WeakMap,rv=new WeakMap,iv=new WeakMap,Vh=new WeakMap,Hh=new WeakMap,hd=new WeakMap,KE.isSetUp=!1;var K3=KE,Z3=(t,e,n)=>new K3(t,e,n),ZE=(t,e)=>({event:t,check:e}),J3=ZE("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),Q3=ZE("pointerdown",t=>t.pointerType==="mouse"),cu;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(cu||(cu={}));class eH{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function tH(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function nH(t,e,n,r,i){if(!i)return!1;const o=Math.atan2(r-e,n-t)*180/Math.PI+180;for(let a=0;a<i.length;++a){const c=i[a];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const rH={Left:1},iH={Left:0};function Xg(t){return t.button===void 0||t.button===iH.Left}function oH(t){return t.buttons===void 0||(t.buttons&rH.Left)===0}function JE(t){return!!t.targetTouches}const sH=1;function aH(t){const e=t.nodeType===sH?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function lH(t,e){if(t.targetTouches.length===1)return up(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return up(t.touches[0])}function up(t,e){return JE(t)?lH(t,e):{x:t.clientX,y:t.clientY}}const Wx=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),od={[cu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[cu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[cu.keyboard]:{keydown:"keydown"}};class Sd{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(Ut(!Sd.isSetUp,"Cannot have two Touch backends at the same time."),Sd.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(Sd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,n,r,i=!1){const o=Wx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=od[a][n];c&&e.addEventListener(c,r,o)})}removeEventListener(e,n,r,i=!1){const o=Wx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=od[a][n];c&&e.removeEventListener(c,r,o)})}connectDragSource(e,n){const r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",r)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(o.type){case od.mouse.move:a={x:o.clientX,y:o.clientY};break;case od.touch.move:var c,d;a={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((d=o.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const p=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,w=p&&n.contains(p);if(p===n||w)return this.handleMove(o,e)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&aH(o)},this.handleTopMoveStartCapture=i=>{Xg(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!Xg(i))return;const o=up(i);o&&(JE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!Xg(i))return;const o=i.type===od.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:a}=this,c=this.options.enableHoverOutsideTarget,d=up(i,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&nH(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&tH(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.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 w=(a||[]).map(I=>this.targetNodes.get(I)).filter(I=>!!I),m=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,w):this.document.elementsFromPoint(d.x,d.y),T=[];for(const I in m){if(!m.hasOwnProperty(I))continue;let A=m[I];for(A!=null&&T.push(A);A;)A=A.parentElement,A&&T.indexOf(A)===-1&&T.push(A)}const E=T.filter(I=>w.indexOf(I)>-1).map(I=>this._getDropTargetId(I)).filter(I=>!!I).filter((I,A,L)=>L.indexOf(I)===A);if(c)for(const I in this.targetNodes){const A=this.targetNodes.get(I);if(p&&A&&A.contains(p)&&E.indexOf(I)===-1){E.unshift(I);break}}E.reverse(),this.actions.hover(E,{clientOffset:d})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const c=a.value;if(i===this.targetNodes.get(c))return c;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!oH(i)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}i.cancelable&&i.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=i=>{i.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new eH(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(cu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(cu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(cu.keyboard)}}const uH=function(e,n={},r={}){return new Sd(e,n,r)};var Is=function(){return Is=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Is.apply(this,arguments)};function io(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function cH(t){var e=t.isVisible,n=t.ease,r=n===void 0?"easeIn":n,i=t.duration,o=t.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,c=t.children,d=q$({polyfill:xF}),p=d[0],w=d[1].height,m=q.useState(e),T=m[0],E=m[1],I=q.useState(e),A=I[0],L=I[1],_=q.useState(!1),U=_[0],G=_[1],re=function(){G(!1),e||E(!1)};q.useEffect(function(){G(!0),e?E(!0):L(!1)},[e]);var Z=w===0;return q.useEffect(function(){T&&L(!0)},[Z]),q.createElement(G$.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:re,initial:A?"open":"close",animate:A?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:fH(w,i)}},q.createElement("div",{ref:p},T&&c))}function fH(t,e){if(e)return e;if(!t)return 0;var n=t/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var QE=q.createContext({}),dH={isLock:!1},hH=function(t){var e=q.useState(dH.isLock),n=e[0],r=e[1];return q.createElement(QE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},Xd=q.createContext({}),Eh={dropTargetId:void 0,index:void 0},pH=function(t){var e=q.useState(Eh.dropTargetId),n=e[0],r=e[1],i=q.useState(Eh.index),o=i[0],a=i[1],c=function(p,w){r(p),a(w)},d=function(){r(Eh.dropTargetId),a(Eh.index)};return q.createElement(Xd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:d}},t.children)},gH=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},sd=function(t,e){return t.find(function(n){return n.id===e})},ek=function(t,e,n){if(n===0)return!1;var r=t.find(function(i){return i.id===n});return r===void 0?!1:r.parent===e?!0:ek(t,e,r.parent)},_y=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},wu=function(t,e,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(t===null){if(e===i)return!0;var a=r.find(function(w){return w.id===e});return!!(a&&a.droppable)}else{var c=_y(t)?t.id:null;if(o){var d=o(c,e);if(d!==void 0)return d}if(c===e)return!1;var p=r.find(function(m){return m.id===c}),a=r.find(function(m){return m.id===e});return p===void 0||c===null?e===i||!!(a!=null&&a.droppable):a===void 0?p.parent!==0:p.parent===e||!a.droppable?!1:!ek(r,c,e)}},mH=function(t,e,n){return t.map(function(r){return r.id===e?Is(Is({},r),{parent:n}):r})},tk=function(t,e,n){if(n===0)return 0;var r=t.filter(function(i){return i.parent===e});return r[n]?t.findIndex(function(i){return i.id===r[n].id}):t.findIndex(function(i){return i.id===r[n-1].id})+1},vH=function(t,e){return t.findIndex(function(n){return n.id===e})},nk=function(t,e,n,r){var i=vH(t,e),o=tk(t,n,r);return o=o>i?o-1:o,[i,o]},yH=function(t,e,n){var r=e<0?t.length+e:e;if(r>=0&&r<t.length){var i=n<0?t.length+n:n,o=t.splice(e,1)[0];t.splice(i,0,o)}},bH=function(t,e,n,r){var i=nk(t,e,n,r),o=i[0],a=i[1],c=io([],t,!0);return yH(c,o,a),c.map(function(d){return d.id===e?Is(Is({},d),{parent:n}):d})},wH=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},ov=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,c=wH(i,((a=e.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===t.length-1&&c==="down"&&(r=o+1)}),r},zx=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?ov(i,n):null},xH=function(t,e,n){var r=t.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return e>a?"lower":e<o?"upper":"middle"},sv=function(t,e,n,r){var i;if(!e)return null;if(t===null){var o=e.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:ov(o,n)}}var a=n.getItem(),c=e.querySelector('[role="list"]'),d=xH(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(d==="upper")if(wu(a,t.parent,r)){var p=zx(t,e,n);return p===null?null:{id:t.parent,index:p}}else return{id:t.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:ov(o,n)}}else{if(d==="middle")return{id:t.id,index:0};if(wu(a,t.parent,r)){var p=zx(t,e,n);return p===null?null:{id:t.parent,index:p}}return null}},SH=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:JT,options:t.html5,transition:Q3},{id:"touch",backend:uH,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:J3}]}},Wh=function(t,e){return t.some(function(n){return n.parent===e})},rk=q.createContext({}),TH=function(t){var e=_H(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,c=r.handleOpen,d=r.handleClose;q.useImperativeHandle(t.treeRef,function(){return{open:function(E){return c(E,t.onChangeOpen)},close:function(E){return d(E,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var p=Ol().getMonitor(),w=t.canDrop,m=t.canDrag,T=Is(Is({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(E,I,A){if(E){var L={dragSourceId:E.id,dropTargetId:I,dragSource:E,dropTarget:sd(t.tree,I),monitor:p},_=t.tree;if(sd(_,E.id)||(_=io(io([],_,!0),[E],!1)),t.sort===!1){var U=nk(_,E.id,I,A),G=U[1];L.destinationIndex=G,L.relativeIndex=A,t.onDrop(bH(_,E.id,I,A),L);return}t.onDrop(mH(_,E.id,I),L)}else{var L={dropTargetId:I,dropTarget:sd(t.tree,I),monitor:p};t.sort===!1&&(L.destinationIndex=tk(t.tree,I,A),L.relativeIndex=A),t.onDrop(t.tree,L)}},canDrop:w?function(E,I){return w(t.tree,{dragSourceId:E??void 0,dropTargetId:I,dragSource:p.getItem(),dropTarget:sd(t.tree,I),monitor:p})}:void 0,canDrag:m?function(E){return m(sd(t.tree,E))}:void 0,onToggle:function(E){return i(E,t.onChangeOpen)}});return q.createElement(rk.Provider,{value:T},t.children)},CH=function(t){return q.createElement(TH,Is({},t),q.createElement(hH,null,q.createElement(pH,null,t.children)))},EH=function(t){var e=q.useContext(QE);q.useEffect(function(){if(t.current){var n=t.current,r=function(w){var m=w.target;(m instanceof HTMLInputElement||m instanceof HTMLTextAreaElement)&&e.lock()},i=function(w){var m=w.target;(m instanceof HTMLInputElement||m instanceof HTMLTextAreaElement)&&e.unlock()},o=function(w){return r(w)},a=function(w){return i(w)},c=function(w){return r(w)},d=function(w){return i(w)},p=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",c),n.addEventListener("focusout",d),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",c),n.removeEventListener("focusout",d)}}},[t,e]),q.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},jp={TREE_ITEM:Symbol()},ik=null,ok=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(ik=n)}},Yx=function(t){return ok(t)},Gx=function(t){return ok(t)},kH=function(t,e){var n=Eu();q.useEffect(function(){var c=e.current;return c==null||c.addEventListener("dragstart",Yx),c==null||c.addEventListener("touchstart",Gx,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",Yx),c==null||c.removeEventListener("touchstart",Gx)}},[e]);var r=GE({type:jp.TREE_ITEM,item:function(c){var d=Is({ref:e},t);return n.onDragStart&&n.onDragStart(d,c),d},end:function(c,d){var p=c;n.onDragEnd&&n.onDragEnd(p,d)},canDrag:function(){var c=n.canDrag;return ik!==e.current?!1:c?c(t.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},DH=function(t,e,n){var r=q.useRef(0),i=q.useRef(0),o=function(){r.current+=1,r.current===1&&!e&&(i.current=window.setTimeout(function(){return n(t)},500))},a=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},c=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:a,onDrop:c}},PH=function(t){var e=Eu(),n=q.useContext(Xd),r=Oy({accept:io([jp.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(d,p){var w=e.rootId,m=e.onDrop,T=n.dropTargetId,E=n.index;p.isOver({shallow:!0})&&T!==void 0&&E!==void 0&&m(_y(d)?d:null,w,E),n.hidePlaceholder()},canDrop:function(d,p){var w=e.rootId;return p.isOver({shallow:!0})?d===void 0?!1:wu(d,w,e):!1},hover:function(d,p){if(p.isOver({shallow:!0})){var w=e.rootId,m=n.dropTargetId,T=n.index,E=n.showPlaceholder,I=n.hidePlaceholder,A=sv(null,t.current,p,e);if(A===null||!wu(d,w,e)){I();return}(A.id!==m||A.index!==T)&&E(A.id,A.index)}},collect:function(d){var p=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,a=i.dragSource,c=r[1];return[o,a,c]},OH=function(t,e){var n=Eu(),r=q.useContext(Xd),i=Oy({accept:io([jp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,w){var m=r.dropTargetId,T=r.index;w.isOver({shallow:!0})&&m!==void 0&&T!==void 0&&n.onDrop(_y(p)?p:null,m,T),r.hidePlaceholder()},canDrop:function(p,w){if(w.isOver({shallow:!0})){var m=sv(t,e.current,w,n);return m===null?!1:wu(p,m.id,n)}return!1},hover:function(p,w){if(w.isOver({shallow:!0})){var m=r.dropTargetId,T=r.index,E=r.showPlaceholder,I=r.hidePlaceholder,A=sv(t,e.current,w,n);if(A===null||!wu(p,A.id,n)){I();return}(A.id!==m||A.index!==T)&&E(A.id,A.index)}},collect:function(p){var w=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:w}}}),o=i[0],a=o.isOver,c=o.dragSource,d=i[1];return[a,c,d]},_H=function(t,e){var n=q.useMemo(function(){return e===!0?t.filter(function(m){return Wh(t,m.id)}).map(function(m){return m.id}):Array.isArray(e)?e:[]},[e]),r=q.useState(n),i=r[0],o=r[1];q.useEffect(function(){return o(n)},[n]);var a=function(m,T){var E=i.includes(m)?i.filter(function(I){return I!==m}):io(io([],i,!0),[m],!1);o(E),T&&T(E)},c=function(m){o([]),m&&m([])},d=function(m){var T=t.filter(function(E){return Wh(t,E.id)}).map(function(E){return E.id});o(T),m&&m(T)},p=function(m,T){var E=[];if(Array.isArray(m)){var I=t.filter(function(A){return m.includes(A.id)&&Wh(t,A.id)});E=io(io([],i,!0),I.map(function(A){return A.id}),!0).filter(function(A,L,_){return _.indexOf(A)===L})}else E=i.includes(m)?i:io(io([],i,!0),[m],!1);o(E),T&&T(E)},w=function(m,T){var E=i.filter(function(I){return Array.isArray(m)?!m.includes(I):I!==m});o(E),T&&T(E)};return[i,{handleToggle:a,handleCloseAll:c,handleOpenAll:d,handleOpen:p,handleClose:w}]},RH=function(){return V3(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===jp.TREE_ITEM}})},Eu=function(){var t=q.useContext(rk);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},AH=function(t,e){var n=Eu(),r=n.rootId,i=n.rootProps,o=n.classes,a=(o==null?void 0:o.container)||"";return e&&(o!=null&&o.dropTarget)&&(a="".concat(a," ").concat(o.dropTarget)),t===r&&(o!=null&&o.root)&&(a="".concat(a," ").concat(o.root)),t===r&&(i!=null&&i.className)&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},IH=function(t,e,n){e.current?n(e):n(t),q.useEffect(function(){e.current?n(e):n(t)},[e.current])},MH=function(t){var e=Eu(),n=q.useContext(Xd),r=q.useRef(null),i=q.useRef(null),o=e.tree.find(function(ae){return ae.id===t.id}),a=e.openIds,c=e.classes,d=e.enableAnimateExpand,p=a.includes(t.id),w=kH(o,r),m=w[0],T=w[1],E=w[2],I=OH(o,r),A=I[0],L=I[1],_=I[2];IH(r,i,T),wu(L,t.id,e)&&_(r),q.useEffect(function(){e.dragPreviewRender?E(eF(),{captureDraggingState:!0}):i.current&&E(r)},[E,e.dragPreviewRender]),EH(r);var U=function(){return e.onToggle(o.id)},G=e.listItemComponent,re=e.canDrag?e.canDrag(t.id):!0,Z=n.dropTargetId===t.id,ue={depth:t.depth,isOpen:p,isDragging:m,isDropTarget:Z,draggable:re,hasChild:Wh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:U},S="";return c!=null&&c.listItem&&(S=typeof c.listItem=="string"?c.listItem:c.listItem(o,ue)),A&&(c!=null&&c.dropTarget)&&(S="".concat(S," ").concat(c.dropTarget)),m&&(c!=null&&c.draggingSource)&&(S="".concat(S," ").concat(c.draggingSource)),q.createElement(G,{ref:r,className:S,role:"listitem"},e.render(o,ue),d&&ue.hasChild&&q.createElement(cH,{isVisible:p},q.createElement(av,{parentId:t.id,depth:t.depth+1})),!d&&ue.hasChild&&p&&q.createElement(av,{parentId:t.id,depth:t.depth+1}))},qx=function(t){var e=Eu(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=q.useContext(Xd),a=Ol(),c=a.getMonitor(),d=c.getItem();if(!n||!d)return null;var p=t.dropTargetId===o.dropTargetId&&(t.index===o.index||t.index===void 0&&t.listCount===o.index),w=c.getTargetIds();return!p||!w.length?null:q.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(d,{depth:t.depth}))},av=function(t){var e=Eu(),n=q.useRef(null),r=e.tree.filter(function(A){return A.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:gH;if(e.insertDroppableFirst){var a=r.filter(function(A){return A.droppable}),c=r.filter(function(A){return!A.droppable});e.sort===!1?i=io(io([],a,!0),c,!0):(a=a.sort(o),c=c.sort(o),i=io(io([],a,!0),c,!0))}else e.sort!==!1&&(i=r.sort(o));var d=PH(n),p=d[0],w=d[1],m=d[2];t.parentId===e.rootId&&wu(w,e.rootId,e)&&m(n);var T=AH(t.parentId,p),E=e.rootProps||{},I=e.listComponent;return q.createElement(I,Is({ref:n,role:"list"},E,{className:T}),i.map(function(A,L){return q.createElement(q.Fragment,{key:A.id},q.createElement(qx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:L}),q.createElement(MH,{id:A.id,depth:t.depth}))}),q.createElement(qx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},LH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},FH=function(t){var e=t.clientOffset;if(!e)return{};var n=e.x,r=e.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},NH=function(){var t=Eu(),e=RH(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:q.createElement("div",{style:LH},q.createElement("div",{style:FH(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function jH(t,e){return q.createElement(CH,Is({},t,{treeRef:e}),t.dragPreviewRender&&q.createElement(NH,null),q.createElement(av,{parentId:t.rootId,depth:0}))}var BH=q.forwardRef(jH);const sk=q.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Bp=q.createContext({}),Ry=q.createContext(null),$p=typeof document<"u",$H=$p?q.useLayoutEffect:q.useEffect,ak=q.createContext({strict:!1}),Ay=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),VH="framerAppearId",lk="data-"+Ay(VH);function HH(t,e,n,r){const{visualElement:i}=q.useContext(Bp),o=q.useContext(ak),a=q.useContext(Ry),c=q.useContext(sk).reducedMotion,d=q.useRef();r=r||o.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=d.current;q.useInsertionEffect(()=>{p&&p.update(n,a)});const w=q.useRef(!!(n[lk]&&!window.HandoffComplete));return $H(()=>{p&&(p.render(),w.current&&p.animationState&&p.animationState.animateChanges())}),q.useEffect(()=>{p&&(p.updateFeatures(),!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(w.current=!1,window.HandoffComplete=!0))}),p}function bf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function UH(t,e,n){return q.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):bf(n)&&(n.current=r))},[e])}function Nd(t){return typeof t=="string"||Array.isArray(t)}function Vp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Iy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],My=["initial",...Iy];function Hp(t){return Vp(t.animate)||My.some(e=>Nd(t[e]))}function uk(t){return!!(Hp(t)||t.variants)}function WH(t,e){if(Hp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Nd(n)?n:void 0,animate:Nd(r)?r:void 0}}return t.inherit!==!1?e:{}}function zH(t){const{initial:e,animate:n}=WH(t,q.useContext(Bp));return q.useMemo(()=>({initial:e,animate:n}),[Xx(e),Xx(n)])}function Xx(t){return Array.isArray(t)?t.join(" "):t}const Kx={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"]},jd={};for(const t in Kx)jd[t]={isEnabled:e=>Kx[t].some(n=>!!e[n])};function YH(t){for(const e in t)jd[e]={...jd[e],...t[e]}}const ck=q.createContext({}),fk=q.createContext({}),GH=Symbol.for("motionComponentSymbol");function qH({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&YH(t);function o(c,d){let p;const w={...q.useContext(sk),...c,layoutId:XH(c)},{isStatic:m}=w,T=zH(c),E=r(c,m);if(!m&&$p){T.visualElement=HH(i,E,w,e);const I=q.useContext(fk),A=q.useContext(ak).strict;T.visualElement&&(p=T.visualElement.loadFeatures(w,A,t,I))}return kn.createElement(Bp.Provider,{value:T},p&&T.visualElement?kn.createElement(p,{visualElement:T.visualElement,...w}):null,n(i,c,UH(E,T.visualElement,d),E,m,T.visualElement))}const a=q.forwardRef(o);return a[GH]=i,a}function XH({layoutId:t}){const e=q.useContext(ck).id;return e&&t!==void 0?e+"-"+t:t}function KH(t){function e(r,i={}){return qH(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const ZH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ly(t){return typeof t!="string"||t.includes("-")?!1:!!(ZH.indexOf(t)>-1||/[A-Z]/.test(t))}const cp={};function JH(t){Object.assign(cp,t)}const Kd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Kd);function dk(t,{layout:e,layoutId:n}){return Rc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!cp[t]||t==="opacity")}const Ro=t=>!!(t&&t.getVelocity),QH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eU=Kd.length;function tU(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;a<eU;a++){const c=Kd[a];if(t[c]!==void 0){const d=QH[c]||c;o+=`${d}(${t[c]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const hk=t=>e=>typeof e=="string"&&e.startsWith(t),pk=hk("--"),lv=hk("var(--"),nU=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,rU=(t,e)=>e&&typeof t=="number"?e.transform(t):t,xu=(t,e,n)=>Math.min(Math.max(n,t),e),Ac={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Td={...Ac,transform:t=>xu(0,1,t)},kh={...Ac,default:1},Cd=t=>Math.round(t*1e5)/1e5,Up=/(-)?([\d]*\.?[\d])+/g,gk=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,iU=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zd(t){return typeof t=="string"}const Jd=t=>({test:e=>Zd(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),au=Jd("deg"),$a=Jd("%"),Rt=Jd("px"),oU=Jd("vh"),sU=Jd("vw"),Zx={...$a,parse:t=>$a.parse(t)/100,transform:t=>$a.transform(t*100)},Jx={...Ac,transform:Math.round},mk={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:au,rotateX:au,rotateY:au,rotateZ:au,scale:kh,scaleX:kh,scaleY:kh,scaleZ:kh,skew:au,skewX:au,skewY:au,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:Td,originX:Zx,originY:Zx,originZ:Rt,zIndex:Jx,fillOpacity:Td,strokeOpacity:Td,numOctaves:Jx};function Fy(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:c}=t;let d=!1,p=!1,w=!0;for(const m in e){const T=e[m];if(pk(m)){o[m]=T;continue}const E=mk[m],I=rU(T,E);if(Rc.has(m)){if(d=!0,a[m]=I,!w)continue;T!==(E.default||0)&&(w=!1)}else m.startsWith("origin")?(p=!0,c[m]=I):i[m]=I}if(e.transform||(d||r?i.transform=tU(t.transform,n,w,r):i.transform&&(i.transform="none")),p){const{originX:m="50%",originY:T="50%",originZ:E=0}=c;i.transformOrigin=`${m} ${T} ${E}`}}const Ny=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vk(t,e,n){for(const r in e)!Ro(e[r])&&!dk(r,n)&&(t[r]=e[r])}function aU({transformTemplate:t},e,n){return q.useMemo(()=>{const r=Ny();return Fy(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function lU(t,e,n){const r=t.style||{},i={};return vk(i,r,t),Object.assign(i,aU(t,e,n)),t.transformValues?t.transformValues(i):i}function uU(t,e,n){const r={},i=lU(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const cU=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 fp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||cU.has(t)}let yk=t=>!fp(t);function fU(t){t&&(yk=e=>e.startsWith("on")?!fp(e):t(e))}try{fU(require("@emotion/is-prop-valid").default)}catch{}function dU(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(yk(i)||n===!0&&fp(i)||!e&&!fp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Qx(t,e,n){return typeof t=="string"?t:Rt.transform(e+n*t)}function hU(t,e,n){const r=Qx(e,t.x,t.width),i=Qx(n,t.y,t.height);return`${r} ${i}`}const pU={offset:"stroke-dashoffset",array:"stroke-dasharray"},gU={offset:"strokeDashoffset",array:"strokeDasharray"};function mU(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?pU:gU;t[o.offset]=Rt.transform(-r);const a=Rt.transform(e),c=Rt.transform(n);t[o.array]=`${a} ${c}`}function jy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:d=0,...p},w,m,T){if(Fy(t,p,w,T),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:I,dimensions:A}=t;E.transform&&(A&&(I.transform=E.transform),delete E.transform),A&&(i!==void 0||o!==void 0||I.transform)&&(I.transformOrigin=hU(A,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),a!==void 0&&mU(E,a,c,d,!1)}const bk=()=>({...Ny(),attrs:{}}),By=t=>typeof t=="string"&&t.toLowerCase()==="svg";function vU(t,e,n,r){const i=q.useMemo(()=>{const o=bk();return jy(o,e,{enableHardwareAcceleration:!1},By(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};vk(o,t.style,t),i.style={...o,...i.style}}return i}function yU(t=!1){return(n,r,i,{latestValues:o},a)=>{const d=(Ly(n)?vU:uU)(r,o,a,n),w={...dU(r,typeof n=="string",t),...d,ref:i},{children:m}=r,T=q.useMemo(()=>Ro(m)?m.get():m,[m]);return q.createElement(n,{...w,children:T})}}function wk(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const xk=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 Sk(t,e,n,r){wk(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(xk.has(i)?i:Ay(i),e.attrs[i])}function $y(t,e){const{style:n}=t,r={};for(const i in n)(Ro(n[i])||e.style&&Ro(e.style[i])||dk(i,t))&&(r[i]=n[i]);return r}function Tk(t,e){const n=$y(t,e);for(const r in t)if(Ro(t[r])||Ro(e[r])){const i=Kd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Vy(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function bU(t){const e=q.useRef(null);return e.current===null&&(e.current=t()),e.current}const dp=t=>Array.isArray(t),wU=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),xU=t=>dp(t)?t[t.length-1]||0:t;function zh(t){const e=Ro(t)?t.get():t;return wU(e)?e.toValue():e}function SU({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const a={latestValues:TU(r,i,o,t),renderState:e()};return n&&(a.mount=c=>n(r,c,a)),a}const Ck=t=>(e,n)=>{const r=q.useContext(Bp),i=q.useContext(Ry),o=()=>SU(t,e,r,i);return n?o():bU(o)};function TU(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=zh(o[T]);let{initial:a,animate:c}=t;const d=Hp(t),p=uk(t);e&&p&&!d&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let w=n?n.initial===!1:!1;w=w||a===!1;const m=w?c:a;return m&&typeof m!="boolean"&&!Vp(m)&&(Array.isArray(m)?m:[m]).forEach(E=>{const I=Vy(t,E);if(!I)return;const{transitionEnd:A,transition:L,..._}=I;for(const U in _){let G=_[U];if(Array.isArray(G)){const re=w?G.length-1:0;G=G[re]}G!==null&&(i[U]=G)}for(const U in A)i[U]=A[U]}),i}const sr=t=>t;class eS{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function CU(t){let e=new eS,n=new eS,r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(d,p=!1,w=!1)=>{const m=w&&i,T=m?e:n;return p&&a.add(d),T.add(d)&&m&&i&&(r=e.order.length),d},cancel:d=>{n.remove(d),a.delete(d)},process:d=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let p=0;p<r;p++){const w=e.order[p];w(d),a.has(w)&&(c.schedule(w),t())}i=!1,o&&(o=!1,c.process(d))}};return c}const Dh=["prepare","read","update","preRender","render","postRender"],EU=40;function kU(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Dh.reduce((m,T)=>(m[T]=CU(()=>n=!0),m),{}),a=m=>o[m].process(i),c=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,EU),1),i.timestamp=m,i.isProcessing=!0,Dh.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(c))},d=()=>{n=!0,r=!0,i.isProcessing||t(c)};return{schedule:Dh.reduce((m,T)=>{const E=o[T];return m[T]=(I,A=!1,L=!1)=>(n||d(),E.schedule(I,A,L)),m},{}),cancel:m=>Dh.forEach(T=>o[T].cancel(m)),state:i,steps:o}}const{schedule:Ln,cancel:Dl,state:Fi,steps:Kg}=kU(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),DU={useVisualState:Ck({scrapeMotionValuesFromProps:Tk,createRenderState:bk,onMount:(t,e,{renderState:n,latestValues:r})=>{Ln.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ln.render(()=>{jy(n,r,{enableHardwareAcceleration:!1},By(e.tagName),t.transformTemplate),Sk(e,n)})}})},PU={useVisualState:Ck({scrapeMotionValuesFromProps:$y,createRenderState:Ny})};function OU(t,{forwardMotionProps:e=!1},n,r){return{...Ly(t)?DU:PU,preloadedFeatures:n,useRender:yU(e),createVisualElement:r,Component:t}}function wl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Ek=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Wp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const _U=t=>e=>Ek(e)&&t(e,Wp(e));function Tl(t,e,n,r){return wl(t,e,_U(n),r)}const RU=(t,e)=>n=>e(t(n)),fu=(...t)=>t.reduce(RU);function kk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const tS=kk("dragHorizontal"),nS=kk("dragVertical");function Dk(t){let e=!1;if(t==="y")e=nS();else if(t==="x")e=tS();else{const n=tS(),r=nS();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Pk(){const t=Dk(!0);return t?(t(),!1):!0}class ku{constructor(e){this.isMounted=!1,this.node=e}update(){}}function rS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Pk())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e),c[r]&&Ln.update(()=>c[r](o,a))};return Tl(t.current,n,i,{passive:!t.getProps()[r]})}class AU extends ku{mount(){this.unmount=fu(rS(this.node,!0),rS(this.node,!1))}unmount(){}}class IU extends ku{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fu(wl(this.node.current,"focus",()=>this.onFocus()),wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ok=(t,e)=>e?t===e?!0:Ok(t,e.parentElement):!1;function Zg(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Wp(n))}class MU extends ku{constructor(){super(...arguments),this.removeStartListeners=sr,this.removeEndListeners=sr,this.removeAccessibleListeners=sr,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Tl(window,"pointerup",(c,d)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:w,globalTapTarget:m}=this.node.getProps();Ln.update(()=>{!m&&!Ok(this.node.current,c.target)?w&&w(c,d):p&&p(c,d)})},{passive:!(r.onTap||r.onPointerUp)}),a=Tl(window,"pointercancel",(c,d)=>this.cancelPress(c,d),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=fu(o,a),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Zg("up",(d,p)=>{const{onTap:w}=this.node.getProps();w&&Ln.update(()=>w(d,p))})};this.removeEndListeners(),this.removeEndListeners=wl(this.node.current,"keyup",a),Zg("down",(c,d)=>{this.startPress(c,d)})},n=wl(this.node.current,"keydown",e),r=()=>{this.isPressing&&Zg("cancel",(o,a)=>this.cancelPress(o,a))},i=wl(this.node.current,"blur",r);this.removeAccessibleListeners=fu(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ln.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pk()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ln.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=Tl(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=wl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=fu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const uv=new WeakMap,Jg=new WeakMap,LU=t=>{const e=uv.get(t.target);e&&e(t)},FU=t=>{t.forEach(LU)};function NU({root:t,...e}){const n=t||document;Jg.has(n)||Jg.set(n,{});const r=Jg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(FU,{root:t,...e})),r[i]}function jU(t,e,n){const r=NU(e);return uv.set(t,n),r.observe(t),()=>{uv.delete(t),r.unobserve(t)}}const BU={some:0,all:1};class $U extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:BU[i]},c=d=>{const{isIntersecting:p}=d;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:w,onViewportLeave:m}=this.node.getProps(),T=p?w:m;T&&T(d)};return jU(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(VU(e,n))&&this.startObserver()}unmount(){}}function VU({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const HU={inView:{Feature:$U},tap:{Feature:MU},focus:{Feature:IU},hover:{Feature:AU}};function _k(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function UU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function WU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function zp(t,e,n){const r=t.getProps();return Vy(r,e,n!==void 0?n:r.custom,UU(t),WU(t))}let Qd=sr,aa=sr;process.env.NODE_ENV!=="production"&&(Qd=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},aa=(t,e)=>{if(!t)throw new Error(e)});const du=t=>t*1e3,Cl=t=>t/1e3,zU={current:!1},Rk=t=>Array.isArray(t)&&typeof t[0]=="number";function Ak(t){return!!(!t||typeof t=="string"&&Ik[t]||Rk(t)||Array.isArray(t)&&t.every(Ak))}const pd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Ik={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pd([0,.65,.55,1]),circOut:pd([.55,0,1,.45]),backIn:pd([.31,.01,.66,-.59]),backOut:pd([.33,1.53,.69,.99])};function Mk(t){if(t)return Rk(t)?pd(t):Array.isArray(t)?t.map(Mk):Ik[t]}function YU(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:d}={}){const p={[e]:n};d&&(p.offset=d);const w=Mk(c);return Array.isArray(w)&&(p.easing=w),t.animate(p,{delay:r,duration:i,easing:Array.isArray(w)?"linear":w,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function GU(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const Lk=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,qU=1e-7,XU=12;function KU(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=Lk(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>qU&&++c<XU);return a}function eh(t,e,n,r){if(t===e&&n===r)return sr;const i=o=>KU(o,0,1,t,n);return o=>o===0||o===1?o:Lk(i(o),e,r)}const ZU=eh(.42,0,1,1),JU=eh(0,0,.58,1),Fk=eh(.42,0,.58,1),QU=t=>Array.isArray(t)&&typeof t[0]!="number",Nk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,jk=t=>e=>1-t(1-e),Hy=t=>1-Math.sin(Math.acos(t)),Bk=jk(Hy),eW=Nk(Hy),$k=eh(.33,1.53,.69,.99),Uy=jk($k),tW=Nk(Uy),nW=t=>(t*=2)<1?.5*Uy(t):.5*(2-Math.pow(2,-10*(t-1))),iS={linear:sr,easeIn:ZU,easeInOut:Fk,easeOut:JU,circIn:Hy,circInOut:eW,circOut:Bk,backIn:Uy,backInOut:tW,backOut:$k,anticipate:nW},oS=t=>{if(Array.isArray(t)){aa(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return eh(e,n,r,i)}else if(typeof t=="string")return aa(iS[t]!==void 0,`Invalid easing type '${t}'`),iS[t];return t},Wy=(t,e)=>n=>!!(Zd(n)&&iU.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Vk=(t,e,n)=>r=>{if(!Zd(r))return r;const[i,o,a,c]=r.match(Up);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},rW=t=>xu(0,255,t),Qg={...Ac,transform:t=>Math.round(rW(t))},vc={test:Wy("rgb","red"),parse:Vk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Qg.transform(t)+", "+Qg.transform(e)+", "+Qg.transform(n)+", "+Cd(Td.transform(r))+")"};function iW(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const cv={test:Wy("#"),parse:iW,transform:vc.transform},wf={test:Wy("hsl","hue"),parse:Vk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+$a.transform(Cd(e))+", "+$a.transform(Cd(n))+", "+Cd(Td.transform(r))+")"},ro={test:t=>vc.test(t)||cv.test(t)||wf.test(t),parse:t=>vc.test(t)?vc.parse(t):wf.test(t)?wf.parse(t):cv.parse(t),transform:t=>Zd(t)?t:t.hasOwnProperty("red")?vc.transform(t):wf.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;function em(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function oW({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,d=2*n-c;i=em(d,c,t+1/3),o=em(d,c,t),a=em(d,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const tm=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},sW=[cv,vc,wf],aW=t=>sW.find(e=>e.test(t));function sS(t){const e=aW(t);aa(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===wf&&(n=oW(n)),n}const Hk=(t,e)=>{const n=sS(t),r=sS(e),i={...n};return o=>(i.red=tm(n.red,r.red,o),i.green=tm(n.green,r.green,o),i.blue=tm(n.blue,r.blue,o),i.alpha=Zn(n.alpha,r.alpha,o),vc.transform(i))};function lW(t){var e,n;return isNaN(t)&&Zd(t)&&(((e=t.match(Up))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(gk))===null||n===void 0?void 0:n.length)||0)>0}const Uk={regex:nU,countKey:"Vars",token:"${v}",parse:sr},Wk={regex:gk,countKey:"Colors",token:"${c}",parse:ro.parse},zk={regex:Up,countKey:"Numbers",token:"${n}",parse:Ac.parse};function nm(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function hp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&nm(n,Uk),nm(n,Wk),nm(n,zk),n}function Yk(t){return hp(t).values}function Gk(t){const{values:e,numColors:n,numVars:r,tokenised:i}=hp(t),o=e.length;return a=>{let c=i;for(let d=0;d<o;d++)d<r?c=c.replace(Uk.token,a[d]):d<r+n?c=c.replace(Wk.token,ro.transform(a[d])):c=c.replace(zk.token,Cd(a[d]));return c}}const uW=t=>typeof t=="number"?0:t;function cW(t){const e=Yk(t);return Gk(t)(e.map(uW))}const Su={test:lW,parse:Yk,createTransformer:Gk,getAnimatableNone:cW},qk=(t,e)=>n=>`${n>0?e:t}`;function Xk(t,e){return typeof t=="number"?n=>Zn(t,e,n):ro.test(t)?Hk(t,e):t.startsWith("var(")?qk(t,e):Zk(t,e)}const Kk=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>Xk(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},fW=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Xk(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Zk=(t,e)=>{const n=Su.createTransformer(e),r=hp(t),i=hp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?fu(Kk(r.values,i.values),n):(Qd(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),qk(t,e))},Bd=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},aS=(t,e)=>n=>Zn(t,e,n);function dW(t){return typeof t=="number"?aS:typeof t=="string"?ro.test(t)?Hk:Zk:Array.isArray(t)?Kk:typeof t=="object"?fW:aS}function hW(t,e,n){const r=[],i=n||dW(t[0]),o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const d=Array.isArray(e)?e[a]||sr:e;c=fu(d,c)}r.push(c)}return r}function Jk(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(aa(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=hW(e,r,i),c=a.length,d=p=>{let w=0;if(c>1)for(;w<t.length-2&&!(p<t[w+1]);w++);const m=Bd(t[w],t[w+1],p);return a[w](m)};return n?p=>d(xu(t[0],t[o-1],p)):d}function pW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Bd(0,e,r);t.push(Zn(n,1,i))}}function gW(t){const e=[0];return pW(e,t.length-1),e}function mW(t,e){return t.map(n=>n*e)}function vW(t,e){return t.map(()=>e||Fk).splice(0,t.length-1)}function pp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=QU(r)?r.map(oS):oS(r),o={done:!1,value:e[0]},a=mW(n&&n.length===e.length?n:gW(e),t),c=Jk(a,e,{ease:Array.isArray(i)?i:vW(e,i)});return{calculatedDuration:t,next:d=>(o.value=c(d),o.done=d>=t,o)}}function Qk(t,e){return e?t*(1e3/e):0}const yW=5;function eD(t,e,n){const r=Math.max(e-yW,0);return Qk(n-t(r),e-r)}const lS=.001,bW=.01,uS=10,wW=.05,xW=1;function SW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Qd(t<=du(uS),"Spring duration must be 10 seconds or less");let a=1-e;a=xu(wW,xW,a),t=xu(bW,uS,Cl(t)),a<1?(i=p=>{const w=p*a,m=w*t,T=w-n,E=fv(p,a),I=Math.exp(-m);return lS-T/E*I},o=p=>{const m=p*a*t,T=m*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,I=Math.exp(-m),A=fv(Math.pow(p,2),a);return(-i(p)+lS>0?-1:1)*((T-E)*I)/A}):(i=p=>{const w=Math.exp(-p*t),m=(p-n)*t+1;return-.001+w*m},o=p=>{const w=Math.exp(-p*t),m=(n-p)*(t*t);return w*m});const c=5/t,d=CW(i,o,c);if(t=du(t),isNaN(d))return{stiffness:100,damping:10,duration:t};{const p=Math.pow(d,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const TW=12;function CW(t,e,n){let r=n;for(let i=1;i<TW;i++)r=r-t(r)/e(r);return r}function fv(t,e){return t*Math.sqrt(1-e*e)}const EW=["duration","bounce"],kW=["stiffness","damping","mass"];function cS(t,e){return e.some(n=>t[n]!==void 0)}function DW(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!cS(t,kW)&&cS(t,EW)){const n=SW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function tD({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:c,damping:d,mass:p,duration:w,velocity:m,isResolvedFromDuration:T}=DW({...r,velocity:-Cl(r.velocity||0)}),E=m||0,I=d/(2*Math.sqrt(c*p)),A=o-i,L=Cl(Math.sqrt(c/p)),_=Math.abs(A)<5;n||(n=_?.01:2),e||(e=_?.005:.5);let U;if(I<1){const G=fv(L,I);U=re=>{const Z=Math.exp(-I*L*re);return o-Z*((E+I*L*A)/G*Math.sin(G*re)+A*Math.cos(G*re))}}else if(I===1)U=G=>o-Math.exp(-L*G)*(A+(E+L*A)*G);else{const G=L*Math.sqrt(I*I-1);U=re=>{const Z=Math.exp(-I*L*re),ue=Math.min(G*re,300);return o-Z*((E+I*L*A)*Math.sinh(ue)+G*A*Math.cosh(ue))/G}}return{calculatedDuration:T&&w||null,next:G=>{const re=U(G);if(T)a.done=G>=w;else{let Z=E;G!==0&&(I<1?Z=eD(U,G,re):Z=0);const ue=Math.abs(Z)<=n,S=Math.abs(o-re)<=e;a.done=ue&&S}return a.value=a.done?o:re,a}}}function fS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:d,restDelta:p=.5,restSpeed:w}){const m=t[0],T={done:!1,value:m},E=ae=>c!==void 0&&ae<c||d!==void 0&&ae>d,I=ae=>c===void 0?d:d===void 0||Math.abs(c-ae)<Math.abs(d-ae)?c:d;let A=n*e;const L=m+A,_=a===void 0?L:a(L);_!==L&&(A=_-m);const U=ae=>-A*Math.exp(-ae/r),G=ae=>_+U(ae),re=ae=>{const ce=U(ae),Ue=G(ae);T.done=Math.abs(ce)<=p,T.value=T.done?_:Ue};let Z,ue;const S=ae=>{E(T.value)&&(Z=ae,ue=tD({keyframes:[T.value,I(T.value)],velocity:eD(G,ae,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:w}))};return S(0),{calculatedDuration:null,next:ae=>{let ce=!1;return!ue&&Z===void 0&&(ce=!0,re(ae),S(ae)),Z!==void 0&&ae>Z?ue.next(ae-Z):(!ce&&re(ae),T)}}}const PW=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ln.update(e,!0),stop:()=>Dl(e),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},dS=2e4;function hS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<dS;)e+=n,r=t.next(e);return e>=dS?1/0:e}const OW={decay:fS,inertia:fS,tween:pp,keyframes:pp,spring:tD};function gp({autoplay:t=!0,delay:e=0,driver:n=PW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",onPlay:d,onStop:p,onComplete:w,onUpdate:m,...T}){let E=1,I=!1,A,L;const _=()=>{L=new Promise(ke=>{A=ke})};_();let U;const G=OW[i]||pp;let re;G!==pp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&aa(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),re=Jk([0,100],r,{clamp:!1}),r=[0,100]);const Z=G({...T,keyframes:r});let ue;c==="mirror"&&(ue=G({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let S="idle",ae=null,ce=null,Ue=null;Z.calculatedDuration===null&&o&&(Z.calculatedDuration=hS(Z));const{calculatedDuration:_e}=Z;let Le=1/0,Ve=1/0;_e!==null&&(Le=_e+a,Ve=Le*(o+1)-a);let We=0;const he=ke=>{if(ce===null)return;E>0&&(ce=Math.min(ce,ke)),E<0&&(ce=Math.min(ke-Ve/E,ce)),ae!==null?We=ae:We=Math.round(ke-ce)*E;const ze=We-e*(E>=0?1:-1),et=E>=0?ze<0:ze>Ve;We=Math.max(ze,0),S==="finished"&&ae===null&&(We=Ve);let qe=We,Je=Z;if(o){const pt=Math.min(We,Ve)/Le;let ft=Math.floor(pt),yt=pt%1;!yt&&pt>=1&&(yt=1),yt===1&&ft--,ft=Math.min(ft,o+1),!!(ft%2)&&(c==="reverse"?(yt=1-yt,a&&(yt-=a/Le)):c==="mirror"&&(Je=ue)),qe=xu(0,1,yt)*Le}const Ke=et?{done:!1,value:r[0]}:Je.next(qe);re&&(Ke.value=re(Ke.value));let{done:ot}=Ke;!et&&_e!==null&&(ot=E>=0?We>=Ve:We<=0);const ct=ae===null&&(S==="finished"||S==="running"&&ot);return m&&m(Ke.value),ct&&Ne(),Ke},Ee=()=>{U&&U.stop(),U=void 0},Oe=()=>{S="idle",Ee(),A(),_(),ce=Ue=null},Ne=()=>{S="finished",w&&w(),Ee(),A()},tt=()=>{if(I)return;U||(U=n(he));const ke=U.now();d&&d(),ae!==null?ce=ke-ae:(!ce||S==="finished")&&(ce=ke),S==="finished"&&_(),Ue=ce,ae=null,S="running",U.start()};t&&tt();const me={then(ke,ze){return L.then(ke,ze)},get time(){return Cl(We)},set time(ke){ke=du(ke),We=ke,ae!==null||!U||E===0?ae=ke:ce=U.now()-ke/E},get duration(){const ke=Z.calculatedDuration===null?hS(Z):Z.calculatedDuration;return Cl(ke)},get speed(){return E},set speed(ke){ke===E||!U||(E=ke,me.time=Cl(We))},get state(){return S},play:tt,pause:()=>{S="paused",ae=We},stop:()=>{I=!0,S!=="idle"&&(S="idle",p&&p(),Oe())},cancel:()=>{Ue!==null&&he(Ue),Oe()},complete:()=>{S="finished"},sample:ke=>(ce=0,he(ke))};return me}function _W(t){let e;return()=>(e===void 0&&(e=t()),e)}const RW=_W(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),AW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ph=10,IW=2e4,MW=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Ak(e.ease);function LW(t,e,{onUpdate:n,onComplete:r,...i}){if(!(RW()&&AW.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,c,d,p=!1;const w=()=>{d=new Promise(G=>{c=G})};w();let{keyframes:m,duration:T=300,ease:E,times:I}=i;if(MW(e,i)){const G=gp({...i,repeat:0,delay:0});let re={done:!1,value:m[0]};const Z=[];let ue=0;for(;!re.done&&ue<IW;)re=G.sample(ue),Z.push(re.value),ue+=Ph;I=void 0,m=Z,T=ue-Ph,E="linear"}const A=YU(t.owner.current,e,m,{...i,duration:T,ease:E,times:I}),L=()=>{p=!1,A.cancel()},_=()=>{p=!0,Ln.update(L),c(),w()};return A.onfinish=()=>{p||(t.set(GU(m,i)),r&&r(),_())},{then(G,re){return d.then(G,re)},attachTimeline(G){return A.timeline=G,A.onfinish=null,sr},get time(){return Cl(A.currentTime||0)},set time(G){A.currentTime=du(G)},get speed(){return A.playbackRate},set speed(G){A.playbackRate=G},get duration(){return Cl(T)},play:()=>{a||(A.play(),Dl(L))},pause:()=>A.pause(),stop:()=>{if(a=!0,A.playState==="idle")return;const{currentTime:G}=A;if(G){const re=gp({...i,autoplay:!1});t.setWithVelocity(re.sample(G-Ph).value,re.sample(G).value,Ph)}_()},complete:()=>{p||A.finish()},cancel:_}}function FW({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:sr,pause:sr,stop:sr,then:o=>(o(),Promise.resolve()),cancel:sr,complete:sr});return e?gp({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const NW={type:"spring",stiffness:500,damping:25,restSpeed:10},jW=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),BW={type:"keyframes",duration:.8},$W={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},VW=(t,{keyframes:e})=>e.length>2?BW:Rc.has(t)?t.startsWith("scale")?jW(e[1]):NW:$W,dv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Su.test(e)||e==="0")&&!e.startsWith("url(")),HW=new Set(["brightness","contrast","saturate","opacity"]);function UW(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Up)||[];if(!r)return t;const i=n.replace(r,"");let o=HW.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const WW=/([a-z-]*)\(.*?\)/g,hv={...Su,getAnimatableNone:t=>{const e=t.match(WW);return e?e.map(UW).join(" "):t}},zW={...mk,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:hv,WebkitFilter:hv},zy=t=>zW[t];function nD(t,e){let n=zy(t);return n!==hv&&(n=Su),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const rD=t=>/^0[^.\s]+$/.test(t);function YW(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||rD(t)}function GW(t,e,n,r){const i=dv(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const a=r.from!==void 0?r.from:t.get();let c;const d=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?a:o[p-1]),YW(o[p])&&d.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&d.length&&c)for(let p=0;p<d.length;p++){const w=d[p];o[w]=nD(e,c)}return o}function qW({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:d,elapsed:p,...w}){return!!Object.keys(w).length}function Yy(t,e){return t[e]||t.default||t}const XW={skipAnimations:!1},Gy=(t,e,n,r={})=>i=>{const o=Yy(r,t)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-du(a);const d=GW(e,t,n,o),p=d[0],w=d[d.length-1],m=dv(t,p),T=dv(t,w);Qd(m===T,`You are trying to animate ${t} from "${p}" to "${w}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${w} via the \`style\` property.`);let E={keyframes:d,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-c,onUpdate:I=>{e.set(I),o.onUpdate&&o.onUpdate(I)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(qW(o)||(E={...E,...VW(t,E)}),E.duration&&(E.duration=du(E.duration)),E.repeatDelay&&(E.repeatDelay=du(E.repeatDelay)),!m||!T||zU.current||o.type===!1||XW.skipAnimations)return FW(E);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const I=LW(e,t,E);if(I)return I}return gp(E)};function mp(t){return!!(Ro(t)&&t.add)}const iD=t=>/^\-?\d*\.?\d+$/.test(t);function qy(t,e){t.indexOf(e)===-1&&t.push(e)}function Xy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ky{constructor(){this.subscriptions=[]}add(e){return qy(this.subscriptions,e),()=>Xy(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pS=new Set;function Zy(t,e,n){t||pS.has(e)||(console.warn(e),pS.add(e))}const KW=t=>!isNaN(parseFloat(t));class ZW{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Fi;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,Ln.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ln.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=KW(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&Zy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Ky);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ln.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Qk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Of(t,e){return new ZW(t,e)}const oD=t=>e=>e.test(t),JW={test:t=>t==="auto",parse:t=>t},sD=[Ac,Rt,$a,au,sU,oU,JW],ad=t=>sD.find(oD(t)),QW=[...sD,ro,Su],ez=t=>QW.find(oD(t));function tz(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Of(n))}function nz(t,e){const n=zp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=xU(o[a]);tz(t,a,c)}}function rz(t,e,n){var r,i;const o=Object.keys(e).filter(c=>!t.hasValue(c)),a=o.length;if(a)for(let c=0;c<a;c++){const d=o[c],p=e[d];let w=null;Array.isArray(p)&&(w=p[0]),w===null&&(w=(i=(r=n[d])!==null&&r!==void 0?r:t.readValue(d))!==null&&i!==void 0?i:e[d]),w!=null&&(typeof w=="string"&&(iD(w)||rD(w))?w=parseFloat(w):!ez(w)&&Su.test(p)&&(w=nD(d,p)),t.addValue(d,Of(w,{owner:t})),n[d]===void 0&&(n[d]=w),w!==null&&t.setBaseTarget(d,w))}}function iz(t,e){return e?(e[t]||e.default||e).from:void 0}function oz(t,e,n){const r={};for(const i in t){const o=iz(i,e);if(o!==void 0)r[i]=o;else{const a=n.getValue(i);a&&(r[i]=a.get())}}return r}function sz({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function az(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function aD(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=t.makeTargetAnimatable(e);const d=t.getValue("willChange");r&&(o=r);const p=[],w=i&&t.animationState&&t.animationState.getState()[i];for(const m in c){const T=t.getValue(m),E=c[m];if(!T||E===void 0||w&&sz(w,m))continue;const I={delay:n,elapsed:0,...Yy(o||{},m)};if(window.HandoffAppearAnimations){const _=t.getProps()[lk];if(_){const U=window.HandoffAppearAnimations(_,m,T,Ln);U!==null&&(I.elapsed=U,I.isHandoff=!0)}}let A=!I.isHandoff&&!az(T,E);if(I.type==="spring"&&(T.getVelocity()||I.velocity)&&(A=!1),T.animation&&(A=!1),A)continue;T.start(Gy(m,T,E,t.shouldReduceMotion&&Rc.has(m)?{type:!1}:I));const L=T.animation;mp(d)&&(d.add(m),L.then(()=>d.remove(m))),p.push(L)}return a&&Promise.all(p).then(()=>{a&&nz(t,a)}),p}function pv(t,e,n={}){const r=zp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(aD(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:w,staggerDirection:m}=i;return lz(t,e,p+d,w,m,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[d,p]=c==="beforeChildren"?[o,a]:[a,o];return d().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function lz(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,d=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(uz).forEach((p,w)=>{p.notify("AnimationStart",e),a.push(pv(p,e,{...o,delay:n+d(w)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function uz(t,e){return t.sortNodePosition(e)}function cz(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>pv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=pv(t,e,n);else{const i=typeof e=="function"?zp(t,e,n.custom):e;r=Promise.all(aD(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const fz=[...Iy].reverse(),dz=Iy.length;function hz(t){return e=>Promise.all(e.map(({animation:n,options:r})=>cz(t,n,r)))}function pz(t){let e=hz(t);const n=mz();let r=!0;const i=(d,p)=>{const w=zp(t,p);if(w){const{transition:m,transitionEnd:T,...E}=w;d={...d,...E,...T}}return d};function o(d){e=d(t)}function a(d,p){const w=t.getProps(),m=t.getVariantContext(!0)||{},T=[],E=new Set;let I={},A=1/0;for(let _=0;_<dz;_++){const U=fz[_],G=n[U],re=w[U]!==void 0?w[U]:m[U],Z=Nd(re),ue=U===p?G.isActive:null;ue===!1&&(A=_);let S=re===m[U]&&re!==w[U]&&Z;if(S&&r&&t.manuallyAnimateOnMount&&(S=!1),G.protectedKeys={...I},!G.isActive&&ue===null||!re&&!G.prevProp||Vp(re)||typeof re=="boolean")continue;let ce=gz(G.prevProp,re)||U===p&&G.isActive&&!S&&Z||_>A&&Z,Ue=!1;const _e=Array.isArray(re)?re:[re];let Le=_e.reduce(i,{});ue===!1&&(Le={});const{prevResolvedValues:Ve={}}=G,We={...Ve,...Le},he=Ee=>{ce=!0,E.has(Ee)&&(Ue=!0,E.delete(Ee)),G.needsAnimating[Ee]=!0};for(const Ee in We){const Oe=Le[Ee],Ne=Ve[Ee];if(I.hasOwnProperty(Ee))continue;let tt=!1;dp(Oe)&&dp(Ne)?tt=!_k(Oe,Ne):tt=Oe!==Ne,tt?Oe!==void 0?he(Ee):E.add(Ee):Oe!==void 0&&E.has(Ee)?he(Ee):G.protectedKeys[Ee]=!0}G.prevProp=re,G.prevResolvedValues=Le,G.isActive&&(I={...I,...Le}),r&&t.blockInitialAnimation&&(ce=!1),ce&&(!S||Ue)&&T.push(..._e.map(Ee=>({animation:Ee,options:{type:U,...d}})))}if(E.size){const _={};E.forEach(U=>{const G=t.getBaseTarget(U);G!==void 0&&(_[U]=G)}),T.push({animation:_})}let L=!!T.length;return r&&(w.initial===!1||w.initial===w.animate)&&!t.manuallyAnimateOnMount&&(L=!1),r=!1,L?e(T):Promise.resolve()}function c(d,p,w){var m;if(n[d].isActive===p)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(E=>{var I;return(I=E.animationState)===null||I===void 0?void 0:I.setActive(d,p)}),n[d].isActive=p;const T=a(w,d);for(const E in n)n[E].protectedKeys={};return T}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function gz(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!_k(e,t):!1}function sc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mz(){return{animate:sc(!0),whileInView:sc(),whileHover:sc(),whileTap:sc(),whileDrag:sc(),whileFocus:sc(),exit:sc()}}class vz extends ku{constructor(e){super(e),e.animationState||(e.animationState=pz(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Vp(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let yz=0;class bz extends ku{constructor(){super(...arguments),this.id=yz++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const wz={animation:{Feature:vz},exit:{Feature:bz}},gS=(t,e)=>Math.abs(t-e);function xz(t,e){const n=gS(t.x,e.x),r=gS(t.y,e.y);return Math.sqrt(n**2+r**2)}class lD{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=im(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=xz(m.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:I}=m,{timestamp:A}=Fi;this.history.push({...I,timestamp:A});const{onStart:L,onMove:_}=this.handlers;T||(L&&L(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,m)},this.handlePointerMove=(m,T)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=rm(T,this.transformPagePoint),Ln.update(this.updatePoint,!0)},this.handlePointerUp=(m,T)=>{this.end();const{onEnd:E,onSessionEnd:I,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=im(m.type==="pointercancel"?this.lastMoveEventInfo:rm(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(m,L),I&&I(m,L)},!Ek(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Wp(e),c=rm(a,this.transformPagePoint),{point:d}=c,{timestamp:p}=Fi;this.history=[{...d,timestamp:p}];const{onSessionStart:w}=n;w&&w(e,im(c,this.history)),this.removeListeners=fu(Tl(this.contextWindow,"pointermove",this.handlePointerMove),Tl(this.contextWindow,"pointerup",this.handlePointerUp),Tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Dl(this.updatePoint)}}function rm(t,e){return e?{point:e(t.point)}:t}function mS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function im({point:t},e){return{point:t,delta:mS(t,uD(e)),offset:mS(t,Sz(e)),velocity:Tz(e,.1)}}function Sz(t){return t[0]}function uD(t){return t[t.length-1]}function Tz(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=uD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>du(e)));)n--;if(!r)return{x:0,y:0};const o=Cl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function es(t){return t.max-t.min}function gv(t,e=0,n=.01){return Math.abs(t-e)<=n}function vS(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=es(n)/es(e),(gv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(gv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ed(t,e,n,r){vS(t.x,e.x,n.x,r?r.originX:void 0),vS(t.y,e.y,n.y,r?r.originY:void 0)}function yS(t,e,n){t.min=n.min+e.min,t.max=t.min+es(e)}function Cz(t,e,n){yS(t.x,e.x,n.x),yS(t.y,e.y,n.y)}function bS(t,e,n){t.min=e.min-n.min,t.max=t.min+es(e)}function kd(t,e,n){bS(t.x,e.x,n.x),bS(t.y,e.y,n.y)}function Ez(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Zn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Zn(n,t,r.max):Math.min(t,n)),t}function wS(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function kz(t,{top:e,left:n,bottom:r,right:i}){return{x:wS(t.x,n,i),y:wS(t.y,e,r)}}function xS(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Dz(t,e){return{x:xS(t.x,e.x),y:xS(t.y,e.y)}}function Pz(t,e){let n=.5;const r=es(t),i=es(e);return i>r?n=Bd(e.min,e.max-r,t.min):r>i&&(n=Bd(t.min,t.max-i,e.min)),xu(0,1,n)}function Oz(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const mv=.35;function _z(t=mv){return t===!1?t=0:t===!0&&(t=mv),{x:SS(t,"left","right"),y:SS(t,"top","bottom")}}function SS(t,e,n){return{min:TS(t,e),max:TS(t,n)}}function TS(t,e){return typeof t=="number"?t:t[e]||0}const CS=()=>({translate:0,scale:1,origin:0,originPoint:0}),xf=()=>({x:CS(),y:CS()}),ES=()=>({min:0,max:0}),Er=()=>({x:ES(),y:ES()});function Ps(t){return[t("x"),t("y")]}function cD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Rz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Az(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function om(t){return t===void 0||t===1}function vv({scale:t,scaleX:e,scaleY:n}){return!om(t)||!om(e)||!om(n)}function hc(t){return vv(t)||fD(t)||t.z||t.rotate||t.rotateX||t.rotateY}function fD(t){return kS(t.x)||kS(t.y)}function kS(t){return t&&t!=="0%"}function vp(t,e,n){const r=t-n,i=e*r;return n+i}function DS(t,e,n,r,i){return i!==void 0&&(t=vp(t,i,r)),vp(t,n,r)+e}function yv(t,e=0,n=1,r,i){t.min=DS(t.min,e,n,r,i),t.max=DS(t.max,e,n,r,i)}function dD(t,{x:e,y:n}){yv(t.x,e.translate,e.scale,e.originPoint),yv(t.y,n.translate,n.scale,n.originPoint)}function Iz(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const d=o.instance;d&&d.style&&d.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Sf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,dD(t,a)),r&&hc(o.latestValues)&&Sf(t,o.latestValues))}e.x=PS(e.x),e.y=PS(e.y)}function PS(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function lu(t,e){t.min=t.min+e,t.max=t.max+e}function OS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=Zn(t.min,t.max,o);yv(t,e[n],e[r],a,e.scale)}const Mz=["x","scaleX","originX"],Lz=["y","scaleY","originY"];function Sf(t,e){OS(t.x,e,Mz),OS(t.y,e,Lz)}function hD(t,e){return cD(Az(t.getBoundingClientRect(),e))}function Fz(t,e,n){const r=hD(t,n),{scroll:i}=e;return i&&(lu(r.x,i.offset.x),lu(r.y,i.offset.y)),r}const pD=({current:t})=>t?t.ownerDocument.defaultView:null,Nz=new WeakMap;class jz{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Er(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=w=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Wp(w,"page").point)},o=(w,m)=>{const{drag:T,dragPropagation:E,onDragStart:I}=this.getProps();if(T&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Dk(T),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ps(L=>{let _=this.getAxisMotionValue(L).get()||0;if($a.test(_)){const{projection:U}=this.visualElement;if(U&&U.layout){const G=U.layout.layoutBox[L];G&&(_=es(G)*(parseFloat(_)/100))}}this.originPoint[L]=_}),I&&Ln.update(()=>I(w,m),!1,!0);const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},a=(w,m)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:I,onDrag:A}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:L}=m;if(E&&this.currentDirection===null){this.currentDirection=Bz(L),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",m.point,L),this.updateAxis("y",m.point,L),this.visualElement.render(),A&&A(w,m)},c=(w,m)=>this.stop(w,m),d=()=>Ps(w=>{var m;return this.getAnimationState(w)==="paused"&&((m=this.getAxisMotionValue(w).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new lD(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:pD(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ln.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Oh(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=Ez(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&bf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=kz(i.layoutBox,n):this.constraints=!1,this.elastic=_z(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ps(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=Oz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!bf(e))return!1;const r=e.current;aa(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=Fz(r,i.root,this.visualElement.getTransformPagePoint());let a=Dz(i.layout.layoutBox,o);if(n){const c=n(Rz(a));this.hasMutatedConstraints=!!c,c&&(a=cD(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},p=Ps(w=>{if(!Oh(w,n,this.currentDirection))return;let m=d&&d[w]||{};a&&(m={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,I={type:"inertia",velocity:r?e[w]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(w,I)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(Gy(e,r,0,n))}stopAnimation(){Ps(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ps(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Ps(n=>{const{drag:r}=this.getProps();if(!Oh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Zn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!bf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ps(a=>{const c=this.getAxisMotionValue(a);if(c){const d=c.get();i[a]=Pz({min:d,max:d},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ps(a=>{if(!Oh(a,e,null))return;const c=this.getAxisMotionValue(a),{min:d,max:p}=this.constraints[a];c.set(Zn(d,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;Nz.set(this.visualElement,this);const e=this.visualElement.current,n=Tl(e,"pointerdown",d=>{const{drag:p,dragListener:w=!0}=this.getProps();p&&w&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();bf(d)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=wl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ps(w=>{const m=this.getAxisMotionValue(w);m&&(this.originPoint[w]+=d[w].translate,m.set(m.get()+d[w].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=mv,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Oh(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Bz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class $z extends ku{constructor(e){super(e),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new jz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sr}unmount(){this.removeGroupControls(),this.removeListeners()}}const _S=t=>(e,n)=>{t&&Ln.update(()=>t(e,n))};class Vz extends ku{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(e){this.session=new lD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_S(e),onStart:_S(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ln.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Tl(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Hz(){const t=q.useContext(Ry);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=q.useId();return q.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Yh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function RS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ld={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Rt.test(t))t=parseFloat(t);else return t;const n=RS(t,e.target.x),r=RS(t,e.target.y);return`${n}% ${r}%`}},Uz={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Su.parse(t);if(i.length>5)return r;const o=Su.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,d=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=d;const p=Zn(c,d,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};class Wz extends q.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;JH(zz),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(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Ln.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function gD(t){const[e,n]=Hz(),r=q.useContext(ck);return q.createElement(Wz,{...t,layoutGroup:r,switchLayoutGroup:q.useContext(fk),isPresent:e,safeToRemove:n})}const zz={borderRadius:{...ld,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ld,borderTopRightRadius:ld,borderBottomLeftRadius:ld,borderBottomRightRadius:ld,boxShadow:Uz},mD=["TopLeft","TopRight","BottomLeft","BottomRight"],Yz=mD.length,AS=t=>typeof t=="string"?parseFloat(t):t,IS=t=>typeof t=="number"||Rt.test(t);function Gz(t,e,n,r,i,o){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,qz(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,Xz(r))):o&&(t.opacity=Zn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Yz;a++){const c=`border${mD[a]}Radius`;let d=MS(e,c),p=MS(n,c);if(d===void 0&&p===void 0)continue;d||(d=0),p||(p=0),d===0||p===0||IS(d)===IS(p)?(t[c]=Math.max(Zn(AS(d),AS(p),r),0),($a.test(p)||$a.test(d))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function MS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const qz=vD(0,.5,Bk),Xz=vD(.5,.95,sr);function vD(t,e,n){return r=>r<t?0:r>e?1:n(Bd(t,e,r))}function LS(t,e){t.min=e.min,t.max=e.max}function Es(t,e){LS(t.x,e.x),LS(t.y,e.y)}function FS(t,e,n,r,i){return t-=e,t=vp(t,1/n,r),i!==void 0&&(t=vp(t,1/i,r)),t}function Kz(t,e=0,n=1,r=.5,i,o=t,a=t){if($a.test(e)&&(e=parseFloat(e),e=Zn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Zn(o.min,o.max,r);t===o&&(c-=e),t.min=FS(t.min,e,n,c,i),t.max=FS(t.max,e,n,c,i)}function NS(t,e,[n,r,i],o,a){Kz(t,e[n],e[r],e[i],e.scale,o,a)}const Zz=["x","scaleX","originX"],Jz=["y","scaleY","originY"];function jS(t,e,n,r){NS(t.x,e,Zz,n?n.x:void 0,r?r.x:void 0),NS(t.y,e,Jz,n?n.y:void 0,r?r.y:void 0)}function BS(t){return t.translate===0&&t.scale===1}function yD(t){return BS(t.x)&&BS(t.y)}function Qz(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function bD(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function $S(t){return es(t.x)/es(t.y)}class e5{constructor(){this.members=[]}add(e){qy(this.members,e),e.scheduleRender()}remove(e){if(Xy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function VS(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:d,rotateX:p,rotateY:w}=n;d&&(r+=`rotate(${d}deg) `),p&&(r+=`rotateX(${p}deg) `),w&&(r+=`rotateY(${w}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const t5=(t,e)=>t.depth-e.depth;class n5{constructor(){this.children=[],this.isDirty=!1}add(e){qy(this.children,e),this.isDirty=!0}remove(e){Xy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(t5),this.isDirty=!1,this.children.forEach(e)}}function r5(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Dl(r),t(o-e))};return Ln.read(r,!0),()=>Dl(r)}function i5(t){window.MotionDebug&&window.MotionDebug.record(t)}function o5(t){return t instanceof SVGElement&&t.tagName!=="svg"}function s5(t,e,n){const r=Ro(t)?t:Of(t);return r.start(Gy("",r,e,n)),r.animation}const HS=["","X","Y","Z"],a5={visibility:"hidden"},US=1e3;let l5=0;const pc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function wD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=l5++,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,pc.totalNodes=pc.resolvedTargetDeltas=pc.recalculatedProjection=0,this.nodes.forEach(f5),this.nodes.forEach(m5),this.nodes.forEach(v5),this.nodes.forEach(d5),i5(pc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new n5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Ky),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const d=this.eventHandlers.get(a);d&&d.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=o5(a),this.instance=a;const{layoutId:d,layout:p,visualElement:w}=this.options;if(w&&!w.current&&w.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||d)&&(this.isLayoutDirty=!0),t){let m;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=r5(T,250),Yh.hasAnimatedSinceResize&&(Yh.hasAnimatedSinceResize=!1,this.nodes.forEach(zS))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&w&&(d||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||w.getDefaultTransition()||S5,{onLayoutAnimationStart:L,onLayoutAnimationComplete:_}=w.getProps(),U=!this.targetLayout||!bD(this.targetLayout,I)||E,G=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||G||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,G);const re={...Yy(A,"layout"),onPlay:L,onComplete:_};(w.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else T||zS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,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(y5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let w=0;w<this.path.length;w++){const m=this.path[w];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(WS);return}this.isUpdating||this.nodes.forEach(p5),this.isUpdating=!1,this.nodes.forEach(g5),this.nodes.forEach(u5),this.nodes.forEach(c5),this.clearAllSnapshots();const c=performance.now();Fi.delta=xu(0,1e3/60,c-Fi.timestamp),Fi.timestamp=c,Fi.isProcessing=!0,Kg.update.process(Fi),Kg.preRender.process(Fi),Kg.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(h5),this.sharedNodes.forEach(b5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ln.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ln.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Er(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!yD(this.projectionDelta),d=this.getTransformTemplate(),p=d?d(this.latestValues,""):void 0,w=p!==this.prevTransformTemplateValue;a&&(c||hc(this.latestValues)||w)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),T5(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Er();const c=a.measureViewportBox(),{scroll:d}=this.root;return d&&(lu(c.x,d.offset.x),lu(c.y,d.offset.y)),c}removeElementScroll(a){const c=Er();Es(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:w,options:m}=p;if(p!==this.root&&w&&m.layoutScroll){if(w.isRoot){Es(c,a);const{scroll:T}=this.root;T&&(lu(c.x,-T.offset.x),lu(c.y,-T.offset.y))}lu(c.x,w.offset.x),lu(c.y,w.offset.y)}}return c}applyTransform(a,c=!1){const d=Er();Es(d,a);for(let p=0;p<this.path.length;p++){const w=this.path[p];!c&&w.options.layoutScroll&&w.scroll&&w!==w.root&&Sf(d,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),hc(w.latestValues)&&Sf(d,w.latestValues)}return hc(this.latestValues)&&Sf(d,this.latestValues),d}removeTransform(a){const c=Er();Es(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!p.instance||!hc(p.latestValues))continue;vv(p.latestValues)&&p.updateSnapshot();const w=Er(),m=p.measurePageBox();Es(w,m),jS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,w)}return hc(this.latestValues)&&jS(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:m,layoutId:T}=this.options;if(!(!this.layout||!(m||T))){if(this.resolvedRelativeTargetAt=Fi.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Er(),this.relativeTargetOrigin=Er(),kd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Er(),this.targetWithTransforms=Er()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Cz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Es(this.target,this.layout.layoutBox),dD(this.target,this.targetDelta)):Es(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Er(),this.relativeTargetOrigin=Er(),kd(this.relativeTargetOrigin,this.target,E.target),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||vv(this.parent.latestValues)||fD(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Fi.timestamp&&(p=!1),p)return;const{layout:w,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(w||m))return;Es(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;Iz(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:I}=c;if(!I){this.projectionTransform&&(this.projectionDelta=xf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=xf(),this.projectionDeltaWithTransform=xf());const A=this.projectionTransform;Ed(this.projectionDelta,this.layoutCorrected,I,this.latestValues),this.projectionTransform=VS(this.projectionDelta,this.treeScale),(this.projectionTransform!==A||this.treeScale.x!==T||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I)),pc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const d=this.snapshot,p=d?d.latestValues:{},w={...this.latestValues},m=xf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=Er(),E=d?d.source:void 0,I=this.layout?this.layout.source:void 0,A=E!==I,L=this.getStack(),_=!L||L.members.length<=1,U=!!(A&&!_&&this.options.crossfade===!0&&!this.path.some(x5));this.animationProgress=0;let G;this.mixTargetDelta=re=>{const Z=re/1e3;YS(m.x,a.x,Z),YS(m.y,a.y,Z),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),w5(this.relativeTarget,this.relativeTargetOrigin,T,Z),G&&Qz(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=Er()),Es(G,this.relativeTarget)),A&&(this.animationValues=w,Gz(w,p,this.latestValues,Z,U,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ln.update(()=>{Yh.hasAnimatedSinceResize=!0,this.currentAnimation=s5(0,US,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(US),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:d,layout:p,latestValues:w}=a;if(!(!c||!d||!p)){if(this!==a&&this.layout&&p&&xD(this.options.animationType,this.layout.layoutBox,p.layoutBox)){d=this.target||Er();const m=es(this.layout.layoutBox.x);d.x.min=a.target.x.min,d.x.max=d.x.min+m;const T=es(this.layout.layoutBox.y);d.y.min=a.target.y.min,d.y.max=d.y.min+T}Es(c,d),Sf(c,w),Ed(this.projectionDeltaWithTransform,this.layoutCorrected,c,w)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new e5),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:d}={}){const p=this.getStack();p&&p.promote(this,d),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:d}=a;if((d.rotate||d.rotateX||d.rotateY||d.rotateZ)&&(c=!0),!c)return;const p={};for(let w=0;w<HS.length;w++){const m="rotate"+HS[w];d[m]&&(p[m]=d[m],a.setStaticValue(m,0))}a.render();for(const w in p)a.setStaticValue(w,p[w]);a.scheduleRender()}getProjectionStyles(a){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return a5;const p={visibility:""},w=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=zh(a==null?void 0:a.pointerEvents)||"",p.transform=w?w(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const A={};return this.options.layoutId&&(A.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,A.pointerEvents=zh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hc(this.latestValues)&&(A.transform=w?w({},""):"none",this.hasProjected=!1),A}const T=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=VS(this.projectionDeltaWithTransform,this.treeScale,T),w&&(p.transform=w(T,p.transform));const{x:E,y:I}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${I.origin*100}% 0`,m.animationValues?p.opacity=m===this?(d=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=m===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const A in cp){if(T[A]===void 0)continue;const{correct:L,applyTo:_}=cp[A],U=p.transform==="none"?T[A]:L(T[A],m);if(_){const G=_.length;for(let re=0;re<G;re++)p[_[re]]=U}else p[A]=U}return this.options.layoutId&&(p.pointerEvents=m===this?zh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(WS),this.root.sharedNodes.clear()}}}function u5(t){t.updateLayout()}function c5(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Ps(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=es(T);T.min=r[m].min,T.max=T.min+E}):xD(o,n.layoutBox,r)&&Ps(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=es(r[m]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+E)});const c=xf();Ed(c,r,n.layoutBox);const d=xf();a?Ed(d,t.applyTransform(i,!0),n.measuredBox):Ed(d,r,n.layoutBox);const p=!yD(c);let w=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:T,layout:E}=m;if(T&&E){const I=Er();kd(I,n.layoutBox,T.layoutBox);const A=Er();kd(A,r,E.layoutBox),bD(I,A)||(w=!0),m.options.layoutRoot&&(t.relativeTarget=A,t.relativeTargetOrigin=I,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:w})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function f5(t){pc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function d5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function h5(t){t.clearSnapshot()}function WS(t){t.clearMeasurements()}function p5(t){t.isLayoutDirty=!1}function g5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function zS(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function m5(t){t.resolveTargetDelta()}function v5(t){t.calcProjection()}function y5(t){t.resetRotation()}function b5(t){t.removeLeadSnapshot()}function YS(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function GS(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function w5(t,e,n,r){GS(t.x,e.x,n.x,r),GS(t.y,e.y,n.y,r)}function x5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const S5={duration:.45,ease:[.4,0,.1,1]},qS=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),XS=qS("applewebkit/")&&!qS("chrome/")?Math.round:sr;function KS(t){t.min=XS(t.min),t.max=XS(t.max)}function T5(t){KS(t.x),KS(t.y)}function xD(t,e,n){return t==="position"||t==="preserve-aspect"&&!gv($S(e),$S(n),.2)}const C5=wD({attachResizeListener:(t,e)=>wl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sm={current:void 0},SD=wD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sm.current){const t=new C5({});t.mount(window),t.setOptions({layoutScroll:!0}),sm.current=t}return sm.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),E5={pan:{Feature:Vz},drag:{Feature:$z,ProjectionNode:SD,MeasureLayout:gD}},k5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function D5(t){const e=k5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const P5=4;function bv(t,e,n=1){aa(n<=P5,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=D5(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return iD(a)?parseFloat(a):a}else return lv(i)?bv(i,e,n+1):i}function O5(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!lv(o))return;const a=bv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!lv(o))continue;const a=bv(o,r);a&&(e[i]=a,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const _5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),TD=t=>_5.has(t),R5=t=>Object.keys(t).some(TD),_h=t=>t===Ac||t===Rt,ZS=(t,e)=>parseFloat(t.split(", ")[e]),JS=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return ZS(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?ZS(o[1],t):0}},A5=new Set(["x","y","z"]),I5=Kd.filter(t=>!A5.has(t));function M5(t){const e=[];return I5.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const _f={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:JS(4,13),y:JS(5,14)};_f.translateX=_f.x;_f.translateY=_f.y;const L5=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(p=>{c[p]=_f[p](r,o)}),e.render();const d=e.measureViewportBox();return n.forEach(p=>{const w=e.getValue(p);w&&w.jump(c[p]),t[p]=_f[p](d,o)}),t},F5=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(TD);let o=[],a=!1;const c=[];if(i.forEach(d=>{const p=t.getValue(d);if(!t.hasValue(d))return;let w=n[d],m=ad(w);const T=e[d];let E;if(dp(T)){const I=T.length,A=T[0]===null?1:0;w=T[A],m=ad(w);for(let L=A;L<I&&T[L]!==null;L++)E?aa(ad(T[L])===E,"All keyframes must be of the same type"):(E=ad(T[L]),aa(E===m||_h(m)&&_h(E),"Keyframes must be of the same dimension as the current value"))}else E=ad(T);if(m!==E)if(_h(m)&&_h(E)){const I=p.get();typeof I=="string"&&p.set(parseFloat(I)),typeof T=="string"?e[d]=parseFloat(T):Array.isArray(T)&&E===Rt&&(e[d]=T.map(parseFloat))}else m!=null&&m.transform&&(E!=null&&E.transform)&&(w===0||T===0)?w===0?p.set(E.transform(w)):e[d]=m.transform(T):(a||(o=M5(t),a=!0),c.push(d),r[d]=r[d]!==void 0?r[d]:e[d],p.jump(T))}),c.length){const d=c.indexOf("height")>=0?window.pageYOffset:null,p=L5(e,t,c);return o.length&&o.forEach(([w,m])=>{t.getValue(w).set(m)}),t.render(),$p&&d!==null&&window.scrollTo({top:d}),{target:p,transitionEnd:r}}else return{target:e,transitionEnd:r}};function N5(t,e,n,r){return R5(e)?F5(t,e,n,r):{target:e,transitionEnd:r}}const j5=(t,e,n,r)=>{const i=O5(t,e,r);return e=i.target,r=i.transitionEnd,N5(t,e,n,r)},wv={current:null},CD={current:!1};function B5(){if(CD.current=!0,!!$p)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>wv.current=t.matches;t.addListener(e),e()}else wv.current=!1}function $5(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],a=n[i];if(Ro(o))t.addValue(i,o),mp(r)&&r.add(i),process.env.NODE_ENV==="development"&&Zy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Ro(a))t.addValue(i,Of(o,{owner:t})),mp(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){const c=t.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=t.getStaticValue(i);t.addValue(i,Of(c!==void 0?c:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const QS=new WeakMap,ED=Object.keys(jd),V5=ED.length,e1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],H5=My.length;class U5{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ln.render(this.render,!1,!0);const{latestValues:c,renderState:d}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Hp(n),this.isVariantNode=uk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...w}=this.scrapeMotionValuesFromProps(n,{});for(const m in w){const T=w[m];c[m]!==void 0&&Ro(T)&&(T.set(c[m],!1),mp(p)&&p.add(m))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,QS.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),CD.current||B5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wv.current,process.env.NODE_ENV!=="production"&&Zy(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(){QS.delete(this.current),this.projection&&this.projection.unmount(),Dl(this.notifyUpdate),Dl(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=Rc.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ln.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let a,c;if(process.env.NODE_ENV!=="production"&&i&&r){const d="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Qd(!1,d):aa(!1,d)}for(let d=0;d<V5;d++){const p=ED[d],{isEnabled:w,Feature:m,ProjectionNode:T,MeasureLayout:E}=jd[p];T&&(a=T),w(n)&&(!this.features[p]&&m&&(this.features[p]=new m(this)),E&&(c=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:d,layout:p,drag:w,dragConstraints:m,layoutScroll:T,layoutRoot:E}=n;this.projection.setOptions({layoutId:d,layout:p,alwaysMeasureLayout:!!w||m&&bf(m),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:T,layoutRoot:E})}return c}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Er()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<e1.length;r++){const i=e1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=$5(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<H5;r++){const i=My[r],o=this.props[i];(Nd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Of(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Vy(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Ro(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ky),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class kD extends U5{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let a=oz(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){rz(this,r,a);const c=j5(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:e,transitionEnd:n,...r}}}function W5(t){return window.getComputedStyle(t)}class z5 extends kD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Rc.has(n)){const r=zy(n);return r&&r.default||0}else{const r=W5(e),i=(pk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return hD(e,n)}build(e,n,r,i){Fy(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return $y(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ro(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){wk(e,n,r,i)}}class Y5 extends kD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rc.has(n)){const r=zy(n);return r&&r.default||0}return n=xk.has(n)?n:Ay(n),e.getAttribute(n)}measureInstanceViewportBox(){return Er()}scrapeMotionValuesFromProps(e,n){return Tk(e,n)}build(e,n,r,i){jy(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){Sk(e,n,r,i)}mount(e){this.isSVGTag=By(e.tagName),super.mount(e)}}const G5=(t,e)=>Ly(t)?new Y5(e,{enableHardwareAcceleration:!1}):new z5(e,{enableHardwareAcceleration:!0}),q5={layout:{ProjectionNode:SD,MeasureLayout:gD}},X5={...wz,...HU,...E5,...q5},DD=KH((t,e)=>OU(t,e,X5,G5));function PD(t){return Cp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(t)}function OD(t){return Cp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(t)}function Jy(t,e){return e?t:void 0}function K5(t){return Me.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Me.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 Z5(t){const{renderChildren:e,parentRef:n,onlyChild:r}=t,[i,o]=q.useState({top:0,left:0}),a=q.useRef(null),[c,d]=q.useState("auto");return q.useLayoutEffect(()=>{if(n.current&&a.current){const p=n.current.getBoundingClientRect(),w=a.current.getBoundingClientRect();let m=p.top;const T=p.left+p.width,E=w.height+(window.innerHeight-p.top)>window.innerHeight;E&&(console.log("overtop"),d(window.innerHeight-p.top-50)),p.top+w.height>window.innerHeight&&!E&&(m=p.top-w.height+p.height),o({top:m,left:T})}},[n,a]),r?e({maxHeight:c}):Iv.createPortal(Me.jsx("div",{ref:a,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:e({maxHeight:c})}),n.current)}function Rf(){return Rf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Rf.apply(null,arguments)}const J5=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Rf}},Symbol.toStringTag,{value:"Module"}));function _D(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qh(t,e)}function am(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
|
|
9
|
-
* content-type
|
|
10
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
11
|
-
* MIT Licensed
|
|
12
|
-
*/var t1=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Q5=/\\([\u000b\u0020-\u00ff])/g,e4=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,t4=n4;function n4(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?r4(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),r=n!==-1?e.slice(0,n).trim():e.trim();if(!e4.test(r))throw new TypeError("invalid media type");var i=new i4(r.toLowerCase());if(n!==-1){var o,a,c;for(t1.lastIndex=n;a=t1.exec(e);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,o=a[1].toLowerCase(),c=a[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace(Q5,"$1"))),i.parameters[o]=c}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function r4(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function i4(t){this.parameters=Object.create(null),this.type=t}var df=new Map,RD=function(e){return e.cloneNode(!0)},n1=function(){return window.location.protocol==="file:"},AD=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var a=t4(o).type;if(!(a==="image/svg+xml"||a==="text/plain"))throw new Error("Invalid content type: ".concat(a))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(n1()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(i.status===200||n1()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(c){if(i.abort(),c instanceof Error)r(c,i);else throw c}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},uu={},r1=function(e,n){uu[e]=uu[e]||[],uu[e].push(n)},o4=function(e){for(var n=function(a,c){setTimeout(function(){if(Array.isArray(uu[e])){var d=df.get(e),p=uu[e][a];d instanceof SVGSVGElement&&p(null,RD(d)),d instanceof Error&&p(d),a===uu[e].length-1&&delete uu[e]}},0)},r=0,i=uu[e].length;r<i;r++)n(r)},s4=function(e,n,r){if(df.has(e)){var i=df.get(e);if(i===void 0){r1(e,r);return}if(i instanceof SVGSVGElement){r(null,RD(i));return}}df.set(e,void 0),r1(e,r),AD(e,n,function(o,a){var c;o?df.set(e,o):((c=a.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&df.set(e,a.responseXML.documentElement),o4(e)})},a4=function(e,n,r){AD(e,n,function(i,o){var a;i?r(i):((a=o.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},l4=0,u4=function(){return++l4},La=[],i1={},c4="http://www.w3.org/2000/svg",lm="http://www.w3.org/1999/xlink",o1=function(e,n,r,i,o,a,c){var d=e.getAttribute("data-src")||e.getAttribute("src");if(!d){c(new Error("Invalid data-src or src attribute"));return}if(La.indexOf(e)!==-1){La.splice(La.indexOf(e),1),e=null;return}La.push(e),e.setAttribute("src","");var p=i?s4:a4;p(d,o,function(w,m){if(!m){La.splice(La.indexOf(e),1),e=null,c(w);return}var T=e.getAttribute("id");T&&m.setAttribute("id",T);var E=e.getAttribute("title");E&&m.setAttribute("title",E);var I=e.getAttribute("width");I&&m.setAttribute("width",I);var A=e.getAttribute("height");A&&m.setAttribute("height",A);var L=Array.from(new Set(am(am(am([],(m.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();m.setAttribute("class",L);var _=e.getAttribute("style");_&&m.setAttribute("style",_),m.setAttribute("data-src",d);var U=[].filter.call(e.attributes,function(Ne){return/^data-\w[\w-]*$/.test(Ne.name)});if(Array.prototype.forEach.call(U,function(Ne){Ne.name&&Ne.value&&m.setAttribute(Ne.name,Ne.value)}),r){var G={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"]},re,Z,ue,S,ae;Object.keys(G).forEach(function(Ne){re=Ne,ue=G[Ne],Z=m.querySelectorAll(re+"[id]");for(var tt=function(et,qe){S=Z[et].id,ae=S+"-"+u4();var Je;Array.prototype.forEach.call(ue,function(At){Je=m.querySelectorAll("["+At+'*="'+S+'"]');for(var Mt=0,Vn=Je.length;Mt<Vn;Mt++){var mr=Je[Mt].getAttribute(At);mr&&!mr.match(new RegExp('url\\("?#'+S+'"?\\)'))||Je[Mt].setAttribute(At,"url(#"+ae+")")}});for(var Ke=m.querySelectorAll("[*|href]"),ot=[],ct=0,pt=Ke.length;ct<pt;ct++){var ft=Ke[ct].getAttributeNS(lm,"href");ft&&ft.toString()==="#"+Z[et].id&&ot.push(Ke[ct])}for(var yt=0,Qe=ot.length;yt<Qe;yt++)ot[yt].setAttributeNS(lm,"href","#"+ae);Z[et].id=ae},me=0,ke=Z.length;me<ke;me++)tt(me)})}m.removeAttribute("xmlns:a");for(var ce=m.querySelectorAll("script"),Ue=[],_e,Le,Ve=0,We=ce.length;Ve<We;Ve++)Le=ce[Ve].getAttribute("type"),(!Le||Le==="application/ecmascript"||Le==="application/javascript"||Le==="text/javascript")&&(_e=ce[Ve].innerText||ce[Ve].textContent,_e&&Ue.push(_e),m.removeChild(ce[Ve]));if(Ue.length>0&&(n==="always"||n==="once"&&!i1[d])){for(var he=0,Ee=Ue.length;he<Ee;he++)new Function(Ue[he])(window);i1[d]=!0}var Oe=m.querySelectorAll("style");if(Array.prototype.forEach.call(Oe,function(Ne){Ne.textContent+=""}),m.setAttribute("xmlns",c4),m.setAttribute("xmlns:xlink",lm),a(m),!e.parentNode){La.splice(La.indexOf(e),1),e=null,c(new Error("Parent node is null"));return}e.parentNode.replaceChild(m,e),La.splice(La.indexOf(e),1),e=null,c(null,m)})},f4=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,a=r.afterEach,c=a===void 0?function(){}:a,d=r.beforeEach,p=d===void 0?function(){}:d,w=r.cacheRequests,m=w===void 0?!0:w,T=r.evalScripts,E=T===void 0?"never":T,I=r.httpRequestWithCredentials,A=I===void 0?!1:I,L=r.renumerateIRIElements,_=L===void 0?!0:L;if(e&&"length"in e)for(var U=0,G=0,re=e.length;G<re;G++)o1(e[G],E,_,m,A,p,function(Z,ue){c(Z,ue),e&&"length"in e&&e.length===++U&&o(U)});else e?o1(e,E,_,m,A,p,function(Z,ue){c(Z,ue),o(1),e=null}):o(0)},xv={exports:{}},Rh={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 s1;function d4(){if(s1)return mn;s1=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,w=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,I=t?Symbol.for("react.lazy"):60116,A=t?Symbol.for("react.block"):60121,L=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function G(Z){if(typeof Z=="object"&&Z!==null){var ue=Z.$$typeof;switch(ue){case e:switch(Z=Z.type,Z){case d:case p:case r:case o:case i:case m:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case c:case w:case I:case E:case a:return Z;default:return ue}}case n:return ue}}}function re(Z){return G(Z)===p}return mn.AsyncMode=d,mn.ConcurrentMode=p,mn.ContextConsumer=c,mn.ContextProvider=a,mn.Element=e,mn.ForwardRef=w,mn.Fragment=r,mn.Lazy=I,mn.Memo=E,mn.Portal=n,mn.Profiler=o,mn.StrictMode=i,mn.Suspense=m,mn.isAsyncMode=function(Z){return re(Z)||G(Z)===d},mn.isConcurrentMode=re,mn.isContextConsumer=function(Z){return G(Z)===c},mn.isContextProvider=function(Z){return G(Z)===a},mn.isElement=function(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e},mn.isForwardRef=function(Z){return G(Z)===w},mn.isFragment=function(Z){return G(Z)===r},mn.isLazy=function(Z){return G(Z)===I},mn.isMemo=function(Z){return G(Z)===E},mn.isPortal=function(Z){return G(Z)===n},mn.isProfiler=function(Z){return G(Z)===o},mn.isStrictMode=function(Z){return G(Z)===i},mn.isSuspense=function(Z){return G(Z)===m},mn.isValidElementType=function(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===p||Z===o||Z===i||Z===m||Z===T||typeof Z=="object"&&Z!==null&&(Z.$$typeof===I||Z.$$typeof===E||Z.$$typeof===a||Z.$$typeof===c||Z.$$typeof===w||Z.$$typeof===L||Z.$$typeof===_||Z.$$typeof===U||Z.$$typeof===A)},mn.typeOf=G,mn}var vn={};/** @license React v16.13.1
|
|
20
|
-
* react-is.development.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var a1;function h4(){return a1||(a1=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,w=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,I=t?Symbol.for("react.lazy"):60116,A=t?Symbol.for("react.block"):60121,L=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function G(Qe){return typeof Qe=="string"||typeof Qe=="function"||Qe===r||Qe===p||Qe===o||Qe===i||Qe===m||Qe===T||typeof Qe=="object"&&Qe!==null&&(Qe.$$typeof===I||Qe.$$typeof===E||Qe.$$typeof===a||Qe.$$typeof===c||Qe.$$typeof===w||Qe.$$typeof===L||Qe.$$typeof===_||Qe.$$typeof===U||Qe.$$typeof===A)}function re(Qe){if(typeof Qe=="object"&&Qe!==null){var At=Qe.$$typeof;switch(At){case e:var Mt=Qe.type;switch(Mt){case d:case p:case r:case o:case i:case m:return Mt;default:var Vn=Mt&&Mt.$$typeof;switch(Vn){case c:case w:case I:case E:case a:return Vn;default:return At}}case n:return At}}}var Z=d,ue=p,S=c,ae=a,ce=e,Ue=w,_e=r,Le=I,Ve=E,We=n,he=o,Ee=i,Oe=m,Ne=!1;function tt(Qe){return Ne||(Ne=!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.")),me(Qe)||re(Qe)===d}function me(Qe){return re(Qe)===p}function ke(Qe){return re(Qe)===c}function ze(Qe){return re(Qe)===a}function et(Qe){return typeof Qe=="object"&&Qe!==null&&Qe.$$typeof===e}function qe(Qe){return re(Qe)===w}function Je(Qe){return re(Qe)===r}function Ke(Qe){return re(Qe)===I}function ot(Qe){return re(Qe)===E}function ct(Qe){return re(Qe)===n}function pt(Qe){return re(Qe)===o}function ft(Qe){return re(Qe)===i}function yt(Qe){return re(Qe)===m}vn.AsyncMode=Z,vn.ConcurrentMode=ue,vn.ContextConsumer=S,vn.ContextProvider=ae,vn.Element=ce,vn.ForwardRef=Ue,vn.Fragment=_e,vn.Lazy=Le,vn.Memo=Ve,vn.Portal=We,vn.Profiler=he,vn.StrictMode=Ee,vn.Suspense=Oe,vn.isAsyncMode=tt,vn.isConcurrentMode=me,vn.isContextConsumer=ke,vn.isContextProvider=ze,vn.isElement=et,vn.isForwardRef=qe,vn.isFragment=Je,vn.isLazy=Ke,vn.isMemo=ot,vn.isPortal=ct,vn.isProfiler=pt,vn.isStrictMode=ft,vn.isSuspense=yt,vn.isValidElementType=G,vn.typeOf=re}()),vn}var l1;function ID(){return l1||(l1=1,process.env.NODE_ENV==="production"?Rh.exports=d4():Rh.exports=h4()),Rh.exports}/*
|
|
27
|
-
object-assign
|
|
28
|
-
(c) Sindre Sorhus
|
|
29
|
-
@license MIT
|
|
30
|
-
*/var um,u1;function p4(){if(u1)return um;u1=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(w){return a[w]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(w){p[w]=w}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return um=i()?Object.assign:function(o,a){for(var c,d=r(o),p,w=1;w<arguments.length;w++){c=Object(arguments[w]);for(var m in c)e.call(c,m)&&(d[m]=c[m]);if(t){p=t(c);for(var T=0;T<p.length;T++)n.call(c,p[T])&&(d[p[T]]=c[p[T]])}}return d},um}var cm,c1;function Qy(){if(c1)return cm;c1=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cm=t,cm}var fm,f1;function MD(){return f1||(f1=1,fm=Function.call.bind(Object.prototype.hasOwnProperty)),fm}var dm,d1;function g4(){if(d1)return dm;d1=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Qy(),n={},r=MD();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,d,p){if(process.env.NODE_ENV!=="production"){for(var w in o)if(r(o,w)){var m;try{if(typeof o[w]!="function"){var T=Error((d||"React class")+": "+c+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}m=o[w](a,w,d,c,null,e)}catch(I){m=I}if(m&&!(m instanceof Error)&&t((d||"React class")+": type specification of "+c+" `"+w+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var E=p?p():"";t("Failed "+c+" type: "+m.message+(E??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},dm=i,dm}var hm,h1;function m4(){if(h1)return hm;h1=1;var t=ID(),e=p4(),n=Qy(),r=MD(),i=g4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return hm=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function m(me){var ke=me&&(p&&me[p]||me[w]);if(typeof ke=="function")return ke}var T="<<anonymous>>",E={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:U(),arrayOf:G,element:re(),elementType:Z(),instanceOf:ue,node:Ue(),objectOf:ae,oneOf:S,oneOfType:ce,shape:Le,exact:Ve};function I(me,ke){return me===ke?me!==0||1/me===1/ke:me!==me&&ke!==ke}function A(me,ke){this.message=me,this.data=ke&&typeof ke=="object"?ke:{},this.stack=""}A.prototype=Error.prototype;function L(me){if(process.env.NODE_ENV!=="production")var ke={},ze=0;function et(Je,Ke,ot,ct,pt,ft,yt){if(ct=ct||T,ft=ft||ot,yt!==n){if(d){var Qe=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 Qe.name="Invariant Violation",Qe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var At=ct+":"+ot;!ke[At]&&ze<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ft+"` prop on `"+ct+"`. 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."),ke[At]=!0,ze++)}}return Ke[ot]==null?Je?Ke[ot]===null?new A("The "+pt+" `"+ft+"` is marked as required "+("in `"+ct+"`, but its value is `null`.")):new A("The "+pt+" `"+ft+"` is marked as required in "+("`"+ct+"`, but its value is `undefined`.")):null:me(Ke,ot,ct,pt,ft)}var qe=et.bind(null,!1);return qe.isRequired=et.bind(null,!0),qe}function _(me){function ke(ze,et,qe,Je,Ke,ot){var ct=ze[et],pt=Ee(ct);if(pt!==me){var ft=Oe(ct);return new A("Invalid "+Je+" `"+Ke+"` of type "+("`"+ft+"` supplied to `"+qe+"`, expected ")+("`"+me+"`."),{expectedType:me})}return null}return L(ke)}function U(){return L(a)}function G(me){function ke(ze,et,qe,Je,Ke){if(typeof me!="function")return new A("Property `"+Ke+"` of component `"+qe+"` has invalid PropType notation inside arrayOf.");var ot=ze[et];if(!Array.isArray(ot)){var ct=Ee(ot);return new A("Invalid "+Je+" `"+Ke+"` of type "+("`"+ct+"` supplied to `"+qe+"`, expected an array."))}for(var pt=0;pt<ot.length;pt++){var ft=me(ot,pt,qe,Je,Ke+"["+pt+"]",n);if(ft instanceof Error)return ft}return null}return L(ke)}function re(){function me(ke,ze,et,qe,Je){var Ke=ke[ze];if(!c(Ke)){var ot=Ee(Ke);return new A("Invalid "+qe+" `"+Je+"` of type "+("`"+ot+"` supplied to `"+et+"`, expected a single ReactElement."))}return null}return L(me)}function Z(){function me(ke,ze,et,qe,Je){var Ke=ke[ze];if(!t.isValidElementType(Ke)){var ot=Ee(Ke);return new A("Invalid "+qe+" `"+Je+"` of type "+("`"+ot+"` supplied to `"+et+"`, expected a single ReactElement type."))}return null}return L(me)}function ue(me){function ke(ze,et,qe,Je,Ke){if(!(ze[et]instanceof me)){var ot=me.name||T,ct=tt(ze[et]);return new A("Invalid "+Je+" `"+Ke+"` of type "+("`"+ct+"` supplied to `"+qe+"`, expected ")+("instance of `"+ot+"`."))}return null}return L(ke)}function S(me){if(!Array.isArray(me))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function ke(ze,et,qe,Je,Ke){for(var ot=ze[et],ct=0;ct<me.length;ct++)if(I(ot,me[ct]))return null;var pt=JSON.stringify(me,function(yt,Qe){var At=Oe(Qe);return At==="symbol"?String(Qe):Qe});return new A("Invalid "+Je+" `"+Ke+"` of value `"+String(ot)+"` "+("supplied to `"+qe+"`, expected one of "+pt+"."))}return L(ke)}function ae(me){function ke(ze,et,qe,Je,Ke){if(typeof me!="function")return new A("Property `"+Ke+"` of component `"+qe+"` has invalid PropType notation inside objectOf.");var ot=ze[et],ct=Ee(ot);if(ct!=="object")return new A("Invalid "+Je+" `"+Ke+"` of type "+("`"+ct+"` supplied to `"+qe+"`, expected an object."));for(var pt in ot)if(r(ot,pt)){var ft=me(ot,pt,qe,Je,Ke+"."+pt,n);if(ft instanceof Error)return ft}return null}return L(ke)}function ce(me){if(!Array.isArray(me))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var ke=0;ke<me.length;ke++){var ze=me[ke];if(typeof ze!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ne(ze)+" at index "+ke+"."),a}function et(qe,Je,Ke,ot,ct){for(var pt=[],ft=0;ft<me.length;ft++){var yt=me[ft],Qe=yt(qe,Je,Ke,ot,ct,n);if(Qe==null)return null;Qe.data&&r(Qe.data,"expectedType")&&pt.push(Qe.data.expectedType)}var At=pt.length>0?", expected one of type ["+pt.join(", ")+"]":"";return new A("Invalid "+ot+" `"+ct+"` supplied to "+("`"+Ke+"`"+At+"."))}return L(et)}function Ue(){function me(ke,ze,et,qe,Je){return We(ke[ze])?null:new A("Invalid "+qe+" `"+Je+"` supplied to "+("`"+et+"`, expected a ReactNode."))}return L(me)}function _e(me,ke,ze,et,qe){return new A((me||"React class")+": "+ke+" type `"+ze+"."+et+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+qe+"`.")}function Le(me){function ke(ze,et,qe,Je,Ke){var ot=ze[et],ct=Ee(ot);if(ct!=="object")return new A("Invalid "+Je+" `"+Ke+"` of type `"+ct+"` "+("supplied to `"+qe+"`, expected `object`."));for(var pt in me){var ft=me[pt];if(typeof ft!="function")return _e(qe,Je,Ke,pt,Oe(ft));var yt=ft(ot,pt,qe,Je,Ke+"."+pt,n);if(yt)return yt}return null}return L(ke)}function Ve(me){function ke(ze,et,qe,Je,Ke){var ot=ze[et],ct=Ee(ot);if(ct!=="object")return new A("Invalid "+Je+" `"+Ke+"` of type `"+ct+"` "+("supplied to `"+qe+"`, expected `object`."));var pt=e({},ze[et],me);for(var ft in pt){var yt=me[ft];if(r(me,ft)&&typeof yt!="function")return _e(qe,Je,Ke,ft,Oe(yt));if(!yt)return new A("Invalid "+Je+" `"+Ke+"` key `"+ft+"` supplied to `"+qe+"`.\nBad object: "+JSON.stringify(ze[et],null," ")+`
|
|
31
|
-
Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Qe=yt(ot,ft,qe,Je,Ke+"."+ft,n);if(Qe)return Qe}return null}return L(ke)}function We(me){switch(typeof me){case"number":case"string":case"undefined":return!0;case"boolean":return!me;case"object":if(Array.isArray(me))return me.every(We);if(me===null||c(me))return!0;var ke=m(me);if(ke){var ze=ke.call(me),et;if(ke!==me.entries){for(;!(et=ze.next()).done;)if(!We(et.value))return!1}else for(;!(et=ze.next()).done;){var qe=et.value;if(qe&&!We(qe[1]))return!1}}else return!1;return!0;default:return!1}}function he(me,ke){return me==="symbol"?!0:ke?ke["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ke instanceof Symbol:!1}function Ee(me){var ke=typeof me;return Array.isArray(me)?"array":me instanceof RegExp?"object":he(ke,me)?"symbol":ke}function Oe(me){if(typeof me>"u"||me===null)return""+me;var ke=Ee(me);if(ke==="object"){if(me instanceof Date)return"date";if(me instanceof RegExp)return"regexp"}return ke}function Ne(me){var ke=Oe(me);switch(ke){case"array":case"object":return"an "+ke;case"boolean":case"date":case"regexp":return"a "+ke;default:return ke}}function tt(me){return!me.constructor||!me.constructor.name?T:me.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},hm}var pm,p1;function v4(){if(p1)return pm;p1=1;var t=Qy();function e(){}function n(){}return n.resetWarningCache=e,pm=function(){function r(a,c,d,p,w,m){if(m!==t){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},pm}if(process.env.NODE_ENV!=="production"){var y4=ID(),b4=!0;xv.exports=m4()(y4.isElement,b4)}else xv.exports=v4()();var Cr=xv.exports;const _s=Oc(Cr);var w4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},x4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},S4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ah="http://www.w3.org/2000/svg",g1="http://www.w3.org/1999/xlink",Yp=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(c){r.reactWrapper=c},r}_D(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof w4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,d=o.httpRequestWithCredentials,p=o.renumerateIRIElements,w=o.src,m=o.title,T=o.useRequestCache,E=this.props.onError,I=this.props.beforeInjection,A=this.props.afterInjection,L=this.props.wrapper,_,U;L==="svg"?(_=document.createElementNS(Ah,L),_.setAttribute("xmlns",Ah),_.setAttribute("xmlns:xlink",g1),U=document.createElementNS(Ah,L)):(_=document.createElement(L),U=document.createElement(L)),_.appendChild(U),U.dataset.src=w,this.nonReactWrapper=this.reactWrapper.appendChild(_);var G=function(S){if(i.removeSVG(),!i._isMounted){E(S);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(S)})},re=function(S,ae){if(S){G(S);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{A(ae)}catch(ce){G(ce)}})},Z=function(S){if(S.setAttribute("role","img"),a){var ae=S.querySelector(":scope > desc");ae&&S.removeChild(ae);var ce=document.createElement("desc");ce.innerHTML=a,S.prepend(ce)}if(m){var Ue=S.querySelector(":scope > title");Ue&&S.removeChild(Ue);var _e=document.createElement("title");_e.innerHTML=m,S.prepend(_e)}try{I(S)}catch(Le){G(Le)}};f4(U,{afterEach:re,beforeEach:Z,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:d,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;x4(Rf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,d=Fv(i,S4),p=c;return kn.createElement(p,Rf({},d,{ref:this.refCallback},c==="svg"?{xmlns:Ah,xmlnsXlink:g1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);Yp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Yp.propTypes={afterInjection:Cr.func,beforeInjection:Cr.func,desc:Cr.string,evalScripts:Cr.oneOf(["always","once","never"]),fallback:Cr.oneOfType([Cr.func,Cr.object,Cr.string]),httpRequestWithCredentials:Cr.bool,loading:Cr.oneOfType([Cr.func,Cr.object,Cr.string]),onError:Cr.func,renumerateIRIElements:Cr.bool,src:Cr.string.isRequired,title:Cr.string,useRequestCache:Cr.bool,wrapper:Cr.oneOf(["div","span","svg"])};const Af=new Map;Af.set("text",t=>{var e,n;return Me.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Af.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Me.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Me.jsx(e,{svgString:t.icon})});Af.set("svgHttp",t=>Me.jsx(Yp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Af.set("img",t=>Me.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function T4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function LD({item:t}){return(Af.get(T4(t))||Af.get("text"))(t)}function C4(t){return Me.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Me.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 E4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=q.useState({top:0,left:0}),c=q.useRef(null),[d,p]=q.useState("auto");return q.useLayoutEffect(()=>{if(n.current&&c.current){const w=n.current.getBoundingClientRect(),m=c.current.getBoundingClientRect();let T,E;if(i===1)T=w.bottom,E=w.left,m.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=w.bottom-m.height):T=w.bottom;else if(i>1){T=w.top,E=w.left+w.width;const I=m.height+(window.innerHeight-w.top)>window.innerHeight;I&&(console.log("DropDown-fav overtop"),p(window.innerHeight-w.top-50)),w.top+m.height>window.innerHeight&&!I&&(T=w.top-m.height+w.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:d}):Iv.createPortal(Me.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:d})}),n.current)}const If=new Map;If.set("text",t=>{var e,n;return Me.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});If.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Me.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Me.jsx(e,{svgString:t.icon})});If.set("svgHttp",t=>Me.jsx(Yp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));If.set("img",t=>Me.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function k4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function D4({item:t}){return(If.get(k4(t))||If.get("text"))(t)}function FD({...t}){var ae,ce,Ue;const e=t.item,n=t.level||0,r=!!((ae=t.item.children)!=null&&ae.length),i=`level-${n}`,o=(_e,Le=i)=>`${_e} ${Le} `,[a,c]=q.useState(!1),[d,p]=q.useState(e.isFavorite||!1),w=q.useRef(),m=q.useRef();m!=null&&m.current&&((ce=m==null?void 0:m.current)==null?void 0:ce.scrollWidth)>((Ue=m==null?void 0:m.current)==null?void 0:Ue.clientWidth);const T=window.location.origin,E=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},I=window.location.pathname.split("/")[1],A=E.pathname.split("/")[1],L=t.ssr||!T.includes("local")&&T!==E.origin||A!==I,_=r||n===0?"div":L?"a":xp.Link,U=e.redirectUrl||e.path||"#",G=n+1,re=r&&a&&n>0,Z=()=>{c(!0)},ue=()=>{c(!1)},S="/global-menu-config/api/v1/menu-items/user/set-favorite";return Me.jsxs("div",{ref:w,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Z,onMouseOut:ue,onDragStart:_e=>{n>1&&_e.preventDefault()},children:[Me.jsxs(_,{to:U,href:U,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:_e=>{console.log("onDragStart component",_e.target)},children:[Me.jsx(P4,{cls:o,item:e}),Me.jsx("span",{className:o("menu-item__label"),ref:m,children:e.name}),Me.jsx(O4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:d,onClick:_e=>{const Le={menuConfigId:e.id,isFavorite:_e},Ve=t.baseUrl+S;As.post(Ve,Le).then(We=>{var he;p(_e),Uv("Set favorite menu item successfully"),(he=t.onSetFavoriteSuccess)==null||he.call(t,t.item.id,_e)}).catch(We=>{var he,Ee;Wd(((Ee=(he=We.response)==null?void 0:he.data)==null?void 0:Ee.errorMessage)||"Have error when set favorite menu item")})}}),r&&Me.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:Me.jsx(C4,{className:o("menu-item__icon-arrow__icon")})})]}),re&&Me.jsx(E4,{parentRef:w,onlyChild:G<2,dropdownLevel:n,renderChildren:({maxHeight:_e})=>{var Le;return Me.jsx(DD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${G}`),style:Jy({maxHeight:_e,overflowY:"auto",paddingRight:3},_e!=="auto"&&!!G),children:(Le=e.children)==null?void 0:Le.map(Ve=>q.createElement(FD,{...t,key:Ve.id,item:Ve,level:G}))})}})]})}function P4({item:t,cls:e}){return Me.jsx("div",{className:e("menu-item__icon"),children:Me.jsx(D4,{item:t})})}function O4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:ki.warning,minWidth:16};if(t.menuLevel!==0)return Me.jsxs(Me.Fragment,{children:[t.isHovered&&!t.isFavorite&&Me.jsx(sa.Tooltip,{title:"Add to favorites",children:Me.jsx(PD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&Me.jsx(sa.Tooltip,{title:"Remove from favorites",children:Me.jsx(OD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const _4='.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}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}';var ac={};/**
|
|
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 m1;function R4(){if(m1)return ac;m1=1;var t=q;function e(k){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+k,Y=1;Y<arguments.length;Y++)N+="&args[]="+encodeURIComponent(arguments[Y]);return"Minified React error #"+k+"; visit "+N+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},o={};function a(k){return n.call(o,k)?!0:n.call(i,k)?!1:r.test(k)?o[k]=!0:(i[k]=!0,!1)}function c(k,N,Y,ee,Te,ge,Pe){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=ee,this.attributeNamespace=Te,this.mustUseProperty=Y,this.propertyName=k,this.type=N,this.sanitizeURL=ge,this.removeEmptyString=Pe}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){d[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];d[N]=new c(N,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){d[k]=new c(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){d[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){d[k]=new c(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){d[k]=new c(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){d[k]=new c(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){d[k]=new c(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){d[k]=new c(k,5,!1,k.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function w(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,w);d[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,w);d[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,w);d[N]=new c(N,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){d[k]=new c(k,1,!1,k.toLowerCase(),null,!1,!1)}),d.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){d[k]=new c(k,1,!1,k.toLowerCase(),null,!0,!0)});var m={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},T=["Webkit","ms","Moz","O"];Object.keys(m).forEach(function(k){T.forEach(function(N){N=N+k.charAt(0).toUpperCase()+k.substring(1),m[N]=m[k]})});var E=/["'&<>]/;function I(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var N=E.exec(k);if(N){var Y="",ee,Te=0;for(ee=N.index;ee<k.length;ee++){switch(k.charCodeAt(ee)){case 34:N=""";break;case 38:N="&";break;case 39:N="'";break;case 60:N="<";break;case 62:N=">";break;default:continue}Te!==ee&&(Y+=k.substring(Te,ee)),Te=ee+1,Y+=N}k=Te!==ee?Y+k.substring(Te,ee):Y}return k}var A=/([A-Z])/g,L=/^ms-/,_=Array.isArray;function U(k,N){return{insertionMode:k,selectedValue:N}}function G(k,N,Y){switch(N){case"select":return U(1,Y.value!=null?Y.value:Y.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=k.insertionMode||k.insertionMode===0?U(1,null):k}var re=new Map;function Z(k,N,Y){if(typeof Y!="object")throw Error(e(62));N=!0;for(var ee in Y)if(n.call(Y,ee)){var Te=Y[ee];if(Te!=null&&typeof Te!="boolean"&&Te!==""){if(ee.indexOf("--")===0){var ge=I(ee);Te=I((""+Te).trim())}else{ge=ee;var Pe=re.get(ge);Pe!==void 0||(Pe=I(ge.replace(A,"-$1").toLowerCase().replace(L,"-ms-")),re.set(ge,Pe)),ge=Pe,Te=typeof Te=="number"?Te===0||n.call(m,ee)?""+Te:Te+"px":I((""+Te).trim())}N?(N=!1,k.push(' style="',ge,":",Te)):k.push(";",ge,":",Te)}}N||k.push('"')}function ue(k,N,Y,ee){switch(Y){case"style":Z(k,N,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<Y.length)||Y[0]!=="o"&&Y[0]!=="O"||Y[1]!=="n"&&Y[1]!=="N"){if(N=d.hasOwnProperty(Y)?d[Y]:null,N!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}switch(Y=N.attributeName,N.type){case 3:ee&&k.push(" ",Y,'=""');break;case 4:ee===!0?k.push(" ",Y,'=""'):ee!==!1&&k.push(" ",Y,'="',I(ee),'"');break;case 5:isNaN(ee)||k.push(" ",Y,'="',I(ee),'"');break;case 6:!isNaN(ee)&&1<=ee&&k.push(" ",Y,'="',I(ee),'"');break;default:N.sanitizeURL&&(ee=""+ee),k.push(" ",Y,'="',I(ee),'"')}}else if(a(Y)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(N=Y.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")return}k.push(" ",Y,'="',I(ee),'"')}}}function S(k,N,Y){if(N!=null){if(Y!=null)throw Error(e(60));if(typeof N!="object"||!("__html"in N))throw Error(e(61));N=N.__html,N!=null&&k.push(""+N)}}function ae(k){var N="";return t.Children.forEach(k,function(Y){Y!=null&&(N+=Y)}),N}function ce(k,N,Y,ee){k.push(Le(Y));var Te=Y=null,ge;for(ge in N)if(n.call(N,ge)){var Pe=N[ge];if(Pe!=null)switch(ge){case"children":Y=Pe;break;case"dangerouslySetInnerHTML":Te=Pe;break;default:ue(k,ee,ge,Pe)}}return k.push(">"),S(k,Te,Y),typeof Y=="string"?(k.push(I(Y)),null):Y}var Ue=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_e=new Map;function Le(k){var N=_e.get(k);if(N===void 0){if(!Ue.test(k))throw Error(e(65,k));N="<"+k,_e.set(k,N)}return N}function Ve(k,N,Y,ee,Te){switch(N){case"select":k.push(Le("select"));var ge=null,Pe=null;for(dt in Y)if(n.call(Y,dt)){var Xe=Y[dt];if(Xe!=null)switch(dt){case"children":ge=Xe;break;case"dangerouslySetInnerHTML":Pe=Xe;break;case"defaultValue":case"value":break;default:ue(k,ee,dt,Xe)}}return k.push(">"),S(k,Pe,ge),ge;case"option":Pe=Te.selectedValue,k.push(Le("option"));var gt=Xe=null,mt=null,dt=null;for(ge in Y)if(n.call(Y,ge)){var Ft=Y[ge];if(Ft!=null)switch(ge){case"children":Xe=Ft;break;case"selected":mt=Ft;break;case"dangerouslySetInnerHTML":dt=Ft;break;case"value":gt=Ft;default:ue(k,ee,ge,Ft)}}if(Pe!=null)if(Y=gt!==null?""+gt:ae(Xe),_(Pe)){for(ee=0;ee<Pe.length;ee++)if(""+Pe[ee]===Y){k.push(' selected=""');break}}else""+Pe===Y&&k.push(' selected=""');else mt&&k.push(' selected=""');return k.push(">"),S(k,dt,Xe),Xe;case"textarea":k.push(Le("textarea")),dt=Pe=ge=null;for(Xe in Y)if(n.call(Y,Xe)&&(gt=Y[Xe],gt!=null))switch(Xe){case"children":dt=gt;break;case"value":ge=gt;break;case"defaultValue":Pe=gt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:ue(k,ee,Xe,gt)}if(ge===null&&Pe!==null&&(ge=Pe),k.push(">"),dt!=null){if(ge!=null)throw Error(e(92));if(_(dt)&&1<dt.length)throw Error(e(93));ge=""+dt}return typeof ge=="string"&&ge[0]===`
|
|
40
|
-
`&&k.push(`
|
|
41
|
-
`),ge!==null&&k.push(I(""+ge)),null;case"input":k.push(Le("input")),gt=dt=Xe=ge=null;for(Pe in Y)if(n.call(Y,Pe)&&(mt=Y[Pe],mt!=null))switch(Pe){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":gt=mt;break;case"defaultValue":Xe=mt;break;case"checked":dt=mt;break;case"value":ge=mt;break;default:ue(k,ee,Pe,mt)}return dt!==null?ue(k,ee,"checked",dt):gt!==null&&ue(k,ee,"checked",gt),ge!==null?ue(k,ee,"value",ge):Xe!==null&&ue(k,ee,"value",Xe),k.push("/>"),null;case"menuitem":k.push(Le("menuitem"));for(var Bn in Y)if(n.call(Y,Bn)&&(ge=Y[Bn],ge!=null))switch(Bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:ue(k,ee,Bn,ge)}return k.push(">"),null;case"title":k.push(Le("title")),ge=null;for(Ft in Y)if(n.call(Y,Ft)&&(Pe=Y[Ft],Pe!=null))switch(Ft){case"children":ge=Pe;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:ue(k,ee,Ft,Pe)}return k.push(">"),ge;case"listing":case"pre":k.push(Le(N)),Pe=ge=null;for(gt in Y)if(n.call(Y,gt)&&(Xe=Y[gt],Xe!=null))switch(gt){case"children":ge=Xe;break;case"dangerouslySetInnerHTML":Pe=Xe;break;default:ue(k,ee,gt,Xe)}if(k.push(">"),Pe!=null){if(ge!=null)throw Error(e(60));if(typeof Pe!="object"||!("__html"in Pe))throw Error(e(61));Y=Pe.__html,Y!=null&&(typeof Y=="string"&&0<Y.length&&Y[0]===`
|
|
42
|
-
`?k.push(`
|
|
43
|
-
`,Y):k.push(""+Y))}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(Le(N));for(var zn in Y)if(n.call(Y,zn)&&(ge=Y[zn],ge!=null))switch(zn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,N));default:ue(k,ee,zn,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 ce(k,Y,N,ee);case"html":return Te.insertionMode===0&&k.push("<!DOCTYPE html>"),ce(k,Y,N,ee);default:if(N.indexOf("-")===-1&&typeof Y.is!="string")return ce(k,Y,N,ee);k.push(Le(N)),Pe=ge=null;for(mt in Y)if(n.call(Y,mt)&&(Xe=Y[mt],Xe!=null))switch(mt){case"children":ge=Xe;break;case"dangerouslySetInnerHTML":Pe=Xe;break;case"style":Z(k,ee,Xe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(mt)&&typeof Xe!="function"&&typeof Xe!="symbol"&&k.push(" ",mt,'="',I(Xe),'"')}return k.push(">"),S(k,Pe,ge),ge}}function We(k,N,Y){if(k.push('<!--$?--><template id="'),Y===null)throw Error(e(395));return k.push(Y),k.push('"></template>')}function he(k,N,Y,ee){switch(Y.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 4:return k.push('<table hidden id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push(N.segmentPrefix),N=ee.toString(16),k.push(N),k.push('">');default:throw Error(e(397))}}function Ee(k,N){switch(N.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(e(397))}}var Oe=/[<\u2028\u2029]/g;function Ne(k){return JSON.stringify(k).replace(Oe,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 me(k,N,Y,ee){return Y.generateStaticMarkup?(k.push(I(N)),!1):(N===""?k=ee:(ee&&k.push("<!-- -->"),k.push(I(N)),k=!0),k)}var ke=Object.assign,ze=Symbol.for("react.element"),et=Symbol.for("react.portal"),qe=Symbol.for("react.fragment"),Je=Symbol.for("react.strict_mode"),Ke=Symbol.for("react.profiler"),ot=Symbol.for("react.provider"),ct=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),ft=Symbol.for("react.suspense"),yt=Symbol.for("react.suspense_list"),Qe=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Mt=Symbol.for("react.scope"),Vn=Symbol.for("react.debug_trace_mode"),mr=Symbol.for("react.legacy_hidden"),Hn=Symbol.for("react.default_value"),Sn=Symbol.iterator;function $i(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 qe:return"Fragment";case et:return"Portal";case Ke:return"Profiler";case Je:return"StrictMode";case ft:return"Suspense";case yt:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case ct:return(k.displayName||"Context")+".Consumer";case ot:return(k._context.displayName||"Context")+".Provider";case pt:var N=k.render;return k=k.displayName,k||(k=N.displayName||N.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case Qe:return N=k.displayName||null,N!==null?N:$i(k.type)||"Memo";case At:N=k._payload,k=k._init;try{return $i(k(N))}catch{}}return null}var kr={};function Jn(k,N){if(k=k.contextTypes,!k)return kr;var Y={},ee;for(ee in k)Y[ee]=N[ee];return Y}var sn=null;function fn(k,N){if(k!==N){k.context._currentValue2=k.parentValue,k=k.parent;var Y=N.parent;if(k===null){if(Y!==null)throw Error(e(401))}else{if(Y===null)throw Error(e(401));fn(k,Y)}N.context._currentValue2=N.value}}function dn(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&dn(k)}function ut(k){var N=k.parent;N!==null&&ut(N),k.context._currentValue2=k.value}function Dn(k,N){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===N.depth?fn(k,N):Dn(k,N)}function oi(k,N){var Y=N.parent;if(Y===null)throw Error(e(402));k.depth===Y.depth?fn(k,Y):oi(k,Y),N.context._currentValue2=N.value}function on(k){var N=sn;N!==k&&(N===null?ut(k):k===null?dn(N):N.depth===k.depth?fn(N,k):N.depth>k.depth?Dn(N,k):oi(N,k),sn=k)}var Vi={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 Hi(k,N,Y,ee){var Te=k.state!==void 0?k.state:null;k.updater=Vi,k.props=Y,k.state=Te;var ge={queue:[],replace:!1};k._reactInternals=ge;var Pe=N.contextType;if(k.context=typeof Pe=="object"&&Pe!==null?Pe._currentValue2:ee,Pe=N.getDerivedStateFromProps,typeof Pe=="function"&&(Pe=Pe(Y,Te),Te=Pe==null?Te:ke({},Te,Pe),k.state=Te),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&&Vi.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,Te=!0,Pe=Pe?1:0;Pe<N.length;Pe++){var Xe=N[Pe];Xe=typeof Xe=="function"?Xe.call(k,ge,Y,ee):Xe,Xe!=null&&(Te?(Te=!1,ge=ke({},ge,Xe)):ke(ge,Xe))}k.state=ge}else ge.queue=null}var Ui={id:1,overflow:""};function Dr(k,N,Y){var ee=k.id;k=k.overflow;var Te=32-Nn(ee)-1;ee&=~(1<<Te),Y+=1;var ge=32-Nn(N)+Te;if(30<ge){var Pe=Te-Te%5;return ge=(ee&(1<<Pe)-1).toString(32),ee>>=Pe,Te-=Pe,{id:1<<32-Nn(N)+Te|Y<<Te|ee,overflow:ge+k}}return{id:1<<ge|Y<<Te|ee,overflow:k}}var Nn=Math.clz32?Math.clz32:zr,Pr=Math.log,vr=Math.LN2;function zr(k){return k>>>=0,k===0?32:31-(Pr(k)/vr|0)|0}function Yr(k,N){return k===N&&(k!==0||1/k===1/N)||k!==k&&N!==N}var Ao=typeof Object.is=="function"?Object.is:Yr,Un=null,Gr=null,Qn=null,Wt=null,si=!1,Wi=!1,Pn=0,hn=null,ai=0;function li(){if(Un===null)throw Error(e(321));return Un}function Tn(){if(0<ai)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function so(){return Wt===null?Qn===null?(si=!1,Qn=Wt=Tn()):(si=!0,Wt=Qn):Wt.next===null?(si=!1,Wt=Wt.next=Tn()):(si=!0,Wt=Wt.next),Wt}function yr(){Gr=Un=null,Wi=!1,Qn=null,ai=0,Wt=hn=null}function ui(k,N){return typeof N=="function"?N(k):N}function an(k,N,Y){if(Un=li(),Wt=so(),si){var ee=Wt.queue;if(N=ee.dispatch,hn!==null&&(Y=hn.get(ee),Y!==void 0)){hn.delete(ee),ee=Wt.memoizedState;do ee=k(ee,Y.action),Y=Y.next;while(Y!==null);return Wt.memoizedState=ee,[ee,N]}return[Wt.memoizedState,N]}return k=k===ui?typeof N=="function"?N():N:Y!==void 0?Y(N):N,Wt.memoizedState=k,k=Wt.queue={last:null,dispatch:null},k=k.dispatch=Ms.bind(null,Un,k),[Wt.memoizedState,k]}function Di(k,N){if(Un=li(),Wt=so(),N=N===void 0?null:N,Wt!==null){var Y=Wt.memoizedState;if(Y!==null&&N!==null){var ee=Y[1];e:if(ee===null)ee=!1;else{for(var Te=0;Te<ee.length&&Te<N.length;Te++)if(!Ao(N[Te],ee[Te])){ee=!1;break e}ee=!0}if(ee)return Y[0]}}return k=k(),Wt.memoizedState=[k,N],k}function Ms(k,N,Y){if(25<=ai)throw Error(e(301));if(k===Un)if(Wi=!0,k={action:Y,next:null},hn===null&&(hn=new Map),Y=hn.get(N),Y===void 0)hn.set(N,k);else{for(N=Y;N.next!==null;)N=N.next;N.next=k}}function Ls(){throw Error(e(394))}function qr(){}var ao={readContext:function(k){return k._currentValue2},useContext:function(k){return li(),k._currentValue2},useMemo:Di,useReducer:an,useRef:function(k){Un=li(),Wt=so();var N=Wt.memoizedState;return N===null?(k={current:k},Wt.memoizedState=k):N},useState:function(k){return an(ui,k)},useInsertionEffect:qr,useLayoutEffect:function(){},useCallback:function(k,N){return Di(function(){return k},N)},useImperativeHandle:qr,useEffect:qr,useDebugValue:qr,useDeferredValue:function(k){return li(),k},useTransition:function(){return li(),[!1,Ls]},useId:function(){var k=Gr.treeContext,N=k.overflow;k=k.id,k=(k&~(1<<32-Nn(k)-1)).toString(32)+N;var Y=lo;if(Y===null)throw Error(e(404));return N=Pn++,k=":"+Y.idPrefix+"R"+k,0<N&&(k+="H"+N.toString(32)),k+":"},useMutableSource:function(k,N){return li(),N(k._source)},useSyncExternalStore:function(k,N,Y){if(Y===void 0)throw Error(e(407));return Y()}},lo=null,Pi=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function er(k){return console.error(k),null}function Or(){}function _r(k,N,Y,ee,Te,ge,Pe,Xe,gt){var mt=[],dt=new Set;return N={destination:null,responseState:N,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:dt,pingedTasks:mt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Te===void 0?er:Te,onAllReady:Or,onShellReady:Pe===void 0?Or:Pe,onShellError:Or,onFatalError:Or},Y=Xr(N,0,null,Y,!1,!1),Y.parentFlushed=!0,k=ci(N,k,null,Y,dt,kr,null,Ui),mt.push(k),N}function ci(k,N,Y,ee,Te,ge,Pe,Xe){k.allPendingTasks++,Y===null?k.pendingRootTasks++:Y.pendingTasks++;var gt={node:N,ping:function(){var mt=k.pingedTasks;mt.push(gt),mt.length===1&&Wn(k)},blockedBoundary:Y,blockedSegment:ee,abortSet:Te,legacyContext:ge,context:Pe,treeContext:Xe};return Te.add(gt),gt}function Xr(k,N,Y,ee,Te,ge){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:Y,lastPushedText:Te,textEmbedded:ge}}function br(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 Rr(k,N){var Y=k.onShellError;Y(N),Y=k.onFatalError,Y(N),k.destination!==null?(k.status=2,k.destination.destroy(N)):(k.status=1,k.fatalError=N)}function tr(k,N,Y,ee,Te){for(Un={},Gr=N,Pn=0,k=Y(ee,Te);Wi;)Wi=!1,Pn=0,ai+=1,Wt=null,k=Y(ee,Te);return yr(),k}function zi(k,N,Y,ee){var Te=Y.render(),ge=ee.childContextTypes;if(ge!=null){var Pe=N.legacyContext;if(typeof Y.getChildContext!="function")ee=Pe;else{Y=Y.getChildContext();for(var Xe in Y)if(!(Xe in ge))throw Error(e(108,$i(ee)||"Unknown",Xe));ee=ke({},Pe,Y)}N.legacyContext=ee,yn(k,N,Te),N.legacyContext=Pe}else yn(k,N,Te)}function Oi(k,N){if(k&&k.defaultProps){N=ke({},N),k=k.defaultProps;for(var Y in k)N[Y]===void 0&&(N[Y]=k[Y]);return N}return N}function ar(k,N,Y,ee,Te){if(typeof Y=="function")if(Y.prototype&&Y.prototype.isReactComponent){Te=Jn(Y,N.legacyContext);var ge=Y.contextType;ge=new Y(ee,typeof ge=="object"&&ge!==null?ge._currentValue2:Te),Hi(ge,Y,ee,Te),zi(k,N,ge,Y)}else{ge=Jn(Y,N.legacyContext),Te=tr(k,N,Y,ee,ge);var Pe=Pn!==0;if(typeof Te=="object"&&Te!==null&&typeof Te.render=="function"&&Te.$$typeof===void 0)Hi(Te,Y,ee,ge),zi(k,N,Te,Y);else if(Pe){ee=N.treeContext,N.treeContext=Dr(ee,1,0);try{yn(k,N,Te)}finally{N.treeContext=ee}}else yn(k,N,Te)}else if(typeof Y=="string"){switch(Te=N.blockedSegment,ge=Ve(Te.chunks,Y,ee,k.responseState,Te.formatContext),Te.lastPushedText=!1,Pe=Te.formatContext,Te.formatContext=G(Pe,Y,ee),Ir(k,N,ge),Te.formatContext=Pe,Y){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:Te.chunks.push("</",Y,">")}Te.lastPushedText=!1}else{switch(Y){case mr:case Vn:case Je:case Ke:case qe:yn(k,N,ee.children);return;case yt:yn(k,N,ee.children);return;case Mt:throw Error(e(343));case ft:e:{Y=N.blockedBoundary,Te=N.blockedSegment,ge=ee.fallback,ee=ee.children,Pe=new Set;var Xe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Pe,errorDigest:null},gt=Xr(k,Te.chunks.length,Xe,Te.formatContext,!1,!1);Te.children.push(gt),Te.lastPushedText=!1;var mt=Xr(k,0,null,Te.formatContext,!1,!1);mt.parentFlushed=!0,N.blockedBoundary=Xe,N.blockedSegment=mt;try{if(Ir(k,N,ee),k.responseState.generateStaticMarkup||mt.lastPushedText&&mt.textEmbedded&&mt.chunks.push("<!-- -->"),mt.status=1,wr(Xe,mt),Xe.pendingTasks===0)break e}catch(dt){mt.status=4,Xe.forceClientRender=!0,Xe.errorDigest=br(k,dt)}finally{N.blockedBoundary=Y,N.blockedSegment=Te}N=ci(k,ge,Y,gt,Pe,N.legacyContext,N.context,N.treeContext),k.pingedTasks.push(N)}return}if(typeof Y=="object"&&Y!==null)switch(Y.$$typeof){case pt:if(ee=tr(k,N,Y.render,ee,Te),Pn!==0){Y=N.treeContext,N.treeContext=Dr(Y,1,0);try{yn(k,N,ee)}finally{N.treeContext=Y}}else yn(k,N,ee);return;case Qe:Y=Y.type,ee=Oi(Y,ee),ar(k,N,Y,ee,Te);return;case ot:if(Te=ee.children,Y=Y._context,ee=ee.value,ge=Y._currentValue2,Y._currentValue2=ee,Pe=sn,sn=ee={parent:Pe,depth:Pe===null?0:Pe.depth+1,context:Y,parentValue:ge,value:ee},N.context=ee,yn(k,N,Te),k=sn,k===null)throw Error(e(403));ee=k.parentValue,k.context._currentValue2=ee===Hn?k.context._defaultValue:ee,k=sn=k.parent,N.context=k;return;case ct:ee=ee.children,ee=ee(Y._currentValue2),yn(k,N,ee);return;case At:Te=Y._init,Y=Te(Y._payload),ee=Oi(Y,ee),ar(k,N,Y,ee,void 0);return}throw Error(e(130,Y==null?Y:typeof Y,""))}}function yn(k,N,Y){if(N.node=Y,typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case ze:ar(k,N,Y.type,Y.props,Y.ref);return;case et:throw Error(e(257));case At:var ee=Y._init;Y=ee(Y._payload),yn(k,N,Y);return}if(_(Y)){Ar(k,N,Y);return}if(Y===null||typeof Y!="object"?ee=null:(ee=Sn&&Y[Sn]||Y["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(Y))){if(Y=ee.next(),!Y.done){var Te=[];do Te.push(Y.value),Y=ee.next();while(!Y.done);Ar(k,N,Te)}return}throw k=Object.prototype.toString.call(Y),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":k))}typeof Y=="string"?(ee=N.blockedSegment,ee.lastPushedText=me(N.blockedSegment.chunks,Y,k.responseState,ee.lastPushedText)):typeof Y=="number"&&(ee=N.blockedSegment,ee.lastPushedText=me(N.blockedSegment.chunks,""+Y,k.responseState,ee.lastPushedText))}function Ar(k,N,Y){for(var ee=Y.length,Te=0;Te<ee;Te++){var ge=N.treeContext;N.treeContext=Dr(ge,ee,Te);try{Ir(k,N,Y[Te])}finally{N.treeContext=ge}}}function Ir(k,N,Y){var ee=N.blockedSegment.formatContext,Te=N.legacyContext,ge=N.context;try{return yn(k,N,Y)}catch(gt){if(yr(),typeof gt=="object"&>!==null&&typeof gt.then=="function"){Y=gt;var Pe=N.blockedSegment,Xe=Xr(k,Pe.chunks.length,null,Pe.formatContext,Pe.lastPushedText,!0);Pe.children.push(Xe),Pe.lastPushedText=!1,k=ci(k,N.node,N.blockedBoundary,Xe,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,Y.then(k,k),N.blockedSegment.formatContext=ee,N.legacyContext=Te,N.context=ge,on(ge)}else throw N.blockedSegment.formatContext=ee,N.legacyContext=Te,N.context=ge,on(ge),gt}}function fi(k){var N=k.blockedBoundary;k=k.blockedSegment,k.status=3,Kr(this,N,k)}function di(k,N,Y){var ee=k.blockedBoundary;k.blockedSegment.status=3,ee===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,k=Y===void 0?Error(e(432)):Y,ee.errorDigest=N.onError(k),ee.parentFlushed&&N.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(Te){return di(Te,N,Y)}),ee.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(ee=N.onAllReady,ee()))}function wr(k,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var Y=N.children[0];Y.id=N.id,Y.parentFlushed=!0,Y.status===1&&wr(k,Y)}else k.completedSegments.push(N)}function Kr(k,N,Y){if(N===null){if(Y.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=Y}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=Or,N=k.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(Y.parentFlushed&&Y.status===1&&wr(N,Y),N.parentFlushed&&k.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(fi,k),N.fallbackAbortableTasks.clear()):Y.parentFlushed&&Y.status===1&&(wr(N,Y),N.completedSegments.length===1&&N.parentFlushed&&k.partialBoundaries.push(N)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Wn(k){if(k.status!==2){var N=sn,Y=Pi.current;Pi.current=ao;var ee=lo;lo=k.responseState;try{var Te=k.pingedTasks,ge;for(ge=0;ge<Te.length;ge++){var Pe=Te[ge],Xe=k,gt=Pe.blockedSegment;if(gt.status===0){on(Pe.context);try{yn(Xe,Pe,Pe.node),Xe.responseState.generateStaticMarkup||gt.lastPushedText&>.textEmbedded&>.chunks.push("<!-- -->"),Pe.abortSet.delete(Pe),gt.status=1,Kr(Xe,Pe.blockedBoundary,gt)}catch(En){if(yr(),typeof En=="object"&&En!==null&&typeof En.then=="function"){var mt=Pe.ping;En.then(mt,mt)}else{Pe.abortSet.delete(Pe),gt.status=4;var dt=Pe.blockedBoundary,Ft=En,Bn=br(Xe,Ft);if(dt===null?Rr(Xe,Ft):(dt.pendingTasks--,dt.forceClientRender||(dt.forceClientRender=!0,dt.errorDigest=Bn,dt.parentFlushed&&Xe.clientRenderedBoundaries.push(dt))),Xe.allPendingTasks--,Xe.allPendingTasks===0){var zn=Xe.onAllReady;zn()}}}finally{}}}Te.splice(0,ge),k.destination!==null&&Cn(k,k.destination)}catch(En){br(k,En),Rr(k,En)}finally{lo=ee,Pi.current=Y,Y===ao&&on(N)}}}function hi(k,N,Y){switch(Y.parentFlushed=!0,Y.status){case 0:var ee=Y.id=k.nextSegmentId++;return Y.lastPushedText=!1,Y.textEmbedded=!1,k=k.responseState,N.push('<template id="'),N.push(k.placeholderPrefix),k=ee.toString(16),N.push(k),N.push('"></template>');case 1:Y.status=2;var Te=!0;ee=Y.chunks;var ge=0;Y=Y.children;for(var Pe=0;Pe<Y.length;Pe++){for(Te=Y[Pe];ge<Te.index;ge++)N.push(ee[ge]);Te=pi(k,N,Te)}for(;ge<ee.length-1;ge++)N.push(ee[ge]);return ge<ee.length&&(Te=N.push(ee[ge])),Te;default:throw Error(e(390))}}function pi(k,N,Y){var ee=Y.boundary;if(ee===null)return hi(k,N,Y);if(ee.parentFlushed=!0,ee.forceClientRender)return k.responseState.generateStaticMarkup||(ee=ee.errorDigest,N.push("<!--$!-->"),N.push("<template"),ee&&(N.push(' data-dgst="'),ee=I(ee),N.push(ee),N.push('"')),N.push("></template>")),hi(k,N,Y),k=k.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),k;if(0<ee.pendingTasks){ee.rootSegmentID=k.nextSegmentId++,0<ee.completedSegments.length&&k.partialBoundaries.push(ee);var Te=k.responseState,ge=Te.nextSuspenseID++;return Te=Te.boundaryPrefix+ge.toString(16),ee=ee.id=Te,We(N,k.responseState,ee),hi(k,N,Y),N.push("<!--/$-->")}if(ee.byteSize>k.progressiveChunkSize)return ee.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ee),We(N,k.responseState,ee.id),hi(k,N,Y),N.push("<!--/$-->");if(k.responseState.generateStaticMarkup||N.push("<!--$-->"),Y=ee.completedSegments,Y.length!==1)throw Error(e(391));return pi(k,N,Y[0]),k=k.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),k}function _i(k,N,Y){return he(N,k.responseState,Y.formatContext,Y.id),pi(k,N,Y),Ee(N,Y.formatContext)}function nn(k,N,Y){for(var ee=Y.completedSegments,Te=0;Te<ee.length;Te++)jn(k,N,Y,ee[Te]);if(ee.length=0,k=k.responseState,ee=Y.id,Y=Y.rootSegmentID,N.push(k.startInlineScript),k.sentCompleteBoundaryFunction?N.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,N.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ee===null)throw Error(e(395));return Y=Y.toString(16),N.push(ee),N.push('","'),N.push(k.segmentPrefix),N.push(Y),N.push('")<\/script>')}function jn(k,N,Y,ee){if(ee.status===2)return!0;var Te=ee.id;if(Te===-1){if((ee.id=Y.rootSegmentID)===-1)throw Error(e(392));return _i(k,N,ee)}return _i(k,N,ee),k=k.responseState,N.push(k.startInlineScript),k.sentCompleteSegmentFunction?N.push('$RS("'):(k.sentCompleteSegmentFunction=!0,N.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),N.push(k.segmentPrefix),Te=Te.toString(16),N.push(Te),N.push('","'),N.push(k.placeholderPrefix),N.push(Te),N.push('")<\/script>')}function Cn(k,N){try{var Y=k.completedRootSegment;if(Y!==null&&k.pendingRootTasks===0){pi(k,N,Y),k.completedRootSegment=null;var ee=k.responseState.bootstrapChunks;for(Y=0;Y<ee.length-1;Y++)N.push(ee[Y]);Y<ee.length&&N.push(ee[Y])}var Te=k.clientRenderedBoundaries,ge;for(ge=0;ge<Te.length;ge++){var Pe=Te[ge];ee=N;var Xe=k.responseState,gt=Pe.id,mt=Pe.errorDigest,dt=Pe.errorMessage,Ft=Pe.errorComponentStack;if(ee.push(Xe.startInlineScript),Xe.sentClientRenderFunction?ee.push('$RX("'):(Xe.sentClientRenderFunction=!0,ee.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),gt===null)throw Error(e(395));if(ee.push(gt),ee.push('"'),mt||dt||Ft){ee.push(",");var Bn=Ne(mt||"");ee.push(Bn)}if(dt||Ft){ee.push(",");var zn=Ne(dt||"");ee.push(zn)}if(Ft){ee.push(",");var En=Ne(Ft);ee.push(En)}if(!ee.push(")<\/script>")){k.destination=null,ge++,Te.splice(0,ge);return}}Te.splice(0,ge);var Zr=k.completedBoundaries;for(ge=0;ge<Zr.length;ge++)if(!nn(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 Yi=lr[ge];e:{Te=k,Pe=N;var gi=Yi.completedSegments;for(Xe=0;Xe<gi.length;Xe++)if(!jn(Te,Pe,Yi,gi[Xe])){Xe++,gi.splice(0,Xe);var Gi=!1;break e}gi.splice(0,Xe),Gi=!0}if(!Gi){k.destination=null,ge++,lr.splice(0,ge);return}}lr.splice(0,ge);var Mr=k.completedBoundaries;for(ge=0;ge<Mr.length;ge++)if(!nn(k,N,Mr[ge])){k.destination=null,ge++,Mr.splice(0,ge);return}Mr.splice(0,ge)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&N.push(null)}}function uo(k,N){try{var Y=k.abortableTasks;Y.forEach(function(ee){return di(ee,k,N)}),Y.clear(),k.destination!==null&&Cn(k,k.destination)}catch(ee){br(k,ee),Rr(k,ee)}}function On(){}function _n(k,N,Y,ee){var Te=!1,ge=null,Pe="",Xe={push:function(mt){return mt!==null&&(Pe+=mt),!0},destroy:function(mt){Te=!0,ge=mt}},gt=!1;if(k=_r(k,tt(Y,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,On,void 0,function(){gt=!0}),Wn(k),uo(k,ee),k.status===1)k.status=2,Xe.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Xe;try{Cn(k,Xe)}catch(mt){br(k,mt),Rr(k,mt)}}if(Te)throw ge;if(!gt)throw Error(e(426));return Pe}return ac.renderToNodeStream=function(){throw Error(e(207))},ac.renderToStaticMarkup=function(k,N){return _n(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')},ac.renderToStaticNodeStream=function(){throw Error(e(208))},ac.renderToString=function(k,N){return _n(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')},ac.version="18.3.1",ac}var Ih={};/**
|
|
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 v1;function A4(){if(v1)return Ih;v1=1;var t=q;function e(D){for(var M="https://reactjs.org/docs/error-decoder.html?invariant="+D,H=1;H<arguments.length;H++)M+="&args[]="+encodeURIComponent(arguments[H]);return"Minified React error #"+D+"; visit "+M+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(D,M){if(M.length!==0)if(512<M.length)0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),D.enqueue(M);else{var H=n.length-r;H<M.length&&(H===0?D.enqueue(n):(n.set(M.subarray(0,H),r),D.enqueue(n),M=M.subarray(H)),n=new Uint8Array(512),r=0),n.set(M,r),r+=M.length}}function o(D,M){return i(D,M),!0}function a(D){n&&0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function d(D){return c.encode(D)}function p(D){return c.encode(D)}function w(D,M){typeof D.error=="function"?D.error(M):D.close()}var m=Object.prototype.hasOwnProperty,T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,E={},I={};function A(D){return m.call(I,D)?!0:m.call(E,D)?!1:T.test(D)?I[D]=!0:(E[D]=!0,!1)}function L(D,M,H,Q,ye,be,Ie){this.acceptsBooleans=M===2||M===3||M===4,this.attributeName=Q,this.attributeNamespace=ye,this.mustUseProperty=H,this.propertyName=D,this.type=M,this.sanitizeURL=be,this.removeEmptyString=Ie}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){_[D]=new L(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var M=D[0];_[M]=new L(M,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){_[D]=new L(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){_[D]=new L(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){_[D]=new L(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){_[D]=new L(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){_[D]=new L(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){_[D]=new L(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){_[D]=new L(D,5,!1,D.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function G(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var M=D.replace(U,G);_[M]=new L(M,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var M=D.replace(U,G);_[M]=new L(M,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var M=D.replace(U,G);_[M]=new L(M,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){_[D]=new L(D,1,!1,D.toLowerCase(),null,!1,!1)}),_.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){_[D]=new L(D,1,!1,D.toLowerCase(),null,!0,!0)});var re={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Z=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(D){Z.forEach(function(M){M=M+D.charAt(0).toUpperCase()+D.substring(1),re[M]=re[D]})});var ue=/["'&<>]/;function S(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var M=ue.exec(D);if(M){var H="",Q,ye=0;for(Q=M.index;Q<D.length;Q++){switch(D.charCodeAt(Q)){case 34:M=""";break;case 38:M="&";break;case 39:M="'";break;case 60:M="<";break;case 62:M=">";break;default:continue}ye!==Q&&(H+=D.substring(ye,Q)),ye=Q+1,H+=M}D=ye!==Q?H+D.substring(ye,Q):H}return D}var ae=/([A-Z])/g,ce=/^ms-/,Ue=Array.isArray,_e=p("<script>"),Le=p("<\/script>"),Ve=p('<script src="'),We=p('<script type="module" src="'),he=p('" async=""><\/script>'),Ee=/(<\/|<)(s)(cript)/gi;function Oe(D,M,H,Q){return""+M+(H==="s"?"\\u0073":"\\u0053")+Q}function Ne(D,M,H,Q,ye){D=D===void 0?"":D,M=M===void 0?_e:p('<script nonce="'+S(M)+'">');var be=[];if(H!==void 0&&be.push(M,d((""+H).replace(Ee,Oe)),Le),Q!==void 0)for(H=0;H<Q.length;H++)be.push(Ve,d(S(Q[H])),he);if(ye!==void 0)for(Q=0;Q<ye.length;Q++)be.push(We,d(S(ye[Q])),he);return{bootstrapChunks:be,startInlineScript:M,placeholderPrefix:p(D+"P:"),segmentPrefix:p(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function tt(D,M){return{insertionMode:D,selectedValue:M}}function me(D){return tt(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function ke(D,M,H){switch(M){case"select":return tt(1,H.value!=null?H.value:H.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<=D.insertionMode||D.insertionMode===0?tt(1,null):D}var ze=p("<!-- -->");function et(D,M,H,Q){return M===""?Q:(Q&&D.push(ze),D.push(d(S(M))),!0)}var qe=new Map,Je=p(' style="'),Ke=p(":"),ot=p(";");function ct(D,M,H){if(typeof H!="object")throw Error(e(62));M=!0;for(var Q in H)if(m.call(H,Q)){var ye=H[Q];if(ye!=null&&typeof ye!="boolean"&&ye!==""){if(Q.indexOf("--")===0){var be=d(S(Q));ye=d(S((""+ye).trim()))}else{be=Q;var Ie=qe.get(be);Ie!==void 0||(Ie=p(S(be.replace(ae,"-$1").toLowerCase().replace(ce,"-ms-"))),qe.set(be,Ie)),be=Ie,ye=typeof ye=="number"?ye===0||m.call(re,Q)?d(""+ye):d(ye+"px"):d(S((""+ye).trim()))}M?(M=!1,D.push(Je,be,Ke,ye)):D.push(ot,be,Ke,ye)}}M||D.push(yt)}var pt=p(" "),ft=p('="'),yt=p('"'),Qe=p('=""');function At(D,M,H,Q){switch(H){case"style":ct(D,M,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<H.length)||H[0]!=="o"&&H[0]!=="O"||H[1]!=="n"&&H[1]!=="N"){if(M=_.hasOwnProperty(H)?_[H]:null,M!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}switch(H=d(M.attributeName),M.type){case 3:Q&&D.push(pt,H,Qe);break;case 4:Q===!0?D.push(pt,H,Qe):Q!==!1&&D.push(pt,H,ft,d(S(Q)),yt);break;case 5:isNaN(Q)||D.push(pt,H,ft,d(S(Q)),yt);break;case 6:!isNaN(Q)&&1<=Q&&D.push(pt,H,ft,d(S(Q)),yt);break;default:M.sanitizeURL&&(Q=""+Q),D.push(pt,H,ft,d(S(Q)),yt)}}else if(A(H)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(M=H.toLowerCase().slice(0,5),M!=="data-"&&M!=="aria-")return}D.push(pt,d(H),ft,d(S(Q)),yt)}}}var Mt=p(">"),Vn=p("/>");function mr(D,M,H){if(M!=null){if(H!=null)throw Error(e(60));if(typeof M!="object"||!("__html"in M))throw Error(e(61));M=M.__html,M!=null&&D.push(d(""+M))}}function Hn(D){var M="";return t.Children.forEach(D,function(H){H!=null&&(M+=H)}),M}var Sn=p(' selected=""');function $i(D,M,H,Q){D.push(fn(H));var ye=H=null,be;for(be in M)if(m.call(M,be)){var Ie=M[be];if(Ie!=null)switch(be){case"children":H=Ie;break;case"dangerouslySetInnerHTML":ye=Ie;break;default:At(D,Q,be,Ie)}}return D.push(Mt),mr(D,ye,H),typeof H=="string"?(D.push(d(S(H))),null):H}var kr=p(`
|
|
54
|
-
`),Jn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sn=new Map;function fn(D){var M=sn.get(D);if(M===void 0){if(!Jn.test(D))throw Error(e(65,D));M=p("<"+D),sn.set(D,M)}return M}var dn=p("<!DOCTYPE html>");function ut(D,M,H,Q,ye){switch(M){case"select":D.push(fn("select"));var be=null,Ie=null;for(St in H)if(m.call(H,St)){var Ye=H[St];if(Ye!=null)switch(St){case"children":be=Ye;break;case"dangerouslySetInnerHTML":Ie=Ye;break;case"defaultValue":case"value":break;default:At(D,Q,St,Ye)}}return D.push(Mt),mr(D,Ie,be),be;case"option":Ie=ye.selectedValue,D.push(fn("option"));var ht=Ye=null,_t=null,St=null;for(be in H)if(m.call(H,be)){var vt=H[be];if(vt!=null)switch(be){case"children":Ye=vt;break;case"selected":_t=vt;break;case"dangerouslySetInnerHTML":St=vt;break;case"value":ht=vt;default:At(D,Q,be,vt)}}if(Ie!=null)if(H=ht!==null?""+ht:Hn(Ye),Ue(Ie)){for(Q=0;Q<Ie.length;Q++)if(""+Ie[Q]===H){D.push(Sn);break}}else""+Ie===H&&D.push(Sn);else _t&&D.push(Sn);return D.push(Mt),mr(D,St,Ye),Ye;case"textarea":D.push(fn("textarea")),St=Ie=be=null;for(Ye in H)if(m.call(H,Ye)&&(ht=H[Ye],ht!=null))switch(Ye){case"children":St=ht;break;case"value":be=ht;break;case"defaultValue":Ie=ht;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:At(D,Q,Ye,ht)}if(be===null&&Ie!==null&&(be=Ie),D.push(Mt),St!=null){if(be!=null)throw Error(e(92));if(Ue(St)&&1<St.length)throw Error(e(93));be=""+St}return typeof be=="string"&&be[0]===`
|
|
55
|
-
`&&D.push(kr),be!==null&&D.push(d(S(""+be))),null;case"input":D.push(fn("input")),ht=St=Ye=be=null;for(Ie in H)if(m.call(H,Ie)&&(_t=H[Ie],_t!=null))switch(Ie){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":ht=_t;break;case"defaultValue":Ye=_t;break;case"checked":St=_t;break;case"value":be=_t;break;default:At(D,Q,Ie,_t)}return St!==null?At(D,Q,"checked",St):ht!==null&&At(D,Q,"checked",ht),be!==null?At(D,Q,"value",be):Ye!==null&&At(D,Q,"value",Ye),D.push(Vn),null;case"menuitem":D.push(fn("menuitem"));for(var An in H)if(m.call(H,An)&&(be=H[An],be!=null))switch(An){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:At(D,Q,An,be)}return D.push(Mt),null;case"title":D.push(fn("title")),be=null;for(vt in H)if(m.call(H,vt)&&(Ie=H[vt],Ie!=null))switch(vt){case"children":be=Ie;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:At(D,Q,vt,Ie)}return D.push(Mt),be;case"listing":case"pre":D.push(fn(M)),Ie=be=null;for(ht in H)if(m.call(H,ht)&&(Ye=H[ht],Ye!=null))switch(ht){case"children":be=Ye;break;case"dangerouslySetInnerHTML":Ie=Ye;break;default:At(D,Q,ht,Ye)}if(D.push(Mt),Ie!=null){if(be!=null)throw Error(e(60));if(typeof Ie!="object"||!("__html"in Ie))throw Error(e(61));H=Ie.__html,H!=null&&(typeof H=="string"&&0<H.length&&H[0]===`
|
|
56
|
-
`?D.push(kr,d(H)):D.push(d(""+H)))}return typeof be=="string"&&be[0]===`
|
|
57
|
-
`&&D.push(kr),be;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":D.push(fn(M));for(var bn in H)if(m.call(H,bn)&&(be=H[bn],be!=null))switch(bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,M));default:At(D,Q,bn,be)}return D.push(Vn),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return $i(D,H,M,Q);case"html":return ye.insertionMode===0&&D.push(dn),$i(D,H,M,Q);default:if(M.indexOf("-")===-1&&typeof H.is!="string")return $i(D,H,M,Q);D.push(fn(M)),Ie=be=null;for(_t in H)if(m.call(H,_t)&&(Ye=H[_t],Ye!=null))switch(_t){case"children":be=Ye;break;case"dangerouslySetInnerHTML":Ie=Ye;break;case"style":ct(D,Q,Ye);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:A(_t)&&typeof Ye!="function"&&typeof Ye!="symbol"&&D.push(pt,d(_t),ft,d(S(Ye)),yt)}return D.push(Mt),mr(D,Ie,be),be}}var Dn=p("</"),oi=p(">"),on=p('<template id="'),Vi=p('"></template>'),Hi=p("<!--$-->"),Ui=p('<!--$?--><template id="'),Dr=p('"></template>'),Nn=p("<!--$!-->"),Pr=p("<!--/$-->"),vr=p("<template"),zr=p('"'),Yr=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var Ao=p("></template>");function Un(D,M,H){if(i(D,Ui),H===null)throw Error(e(395));return i(D,H),o(D,Dr)}var Gr=p('<div hidden id="'),Qn=p('">'),Wt=p("</div>"),si=p('<svg aria-hidden="true" style="display:none" id="'),Wi=p('">'),Pn=p("</svg>"),hn=p('<math aria-hidden="true" style="display:none" id="'),ai=p('">'),li=p("</math>"),Tn=p('<table hidden id="'),so=p('">'),yr=p("</table>"),ui=p('<table hidden><tbody id="'),an=p('">'),Di=p("</tbody></table>"),Ms=p('<table hidden><tr id="'),Ls=p('">'),qr=p("</tr></table>"),ao=p('<table hidden><colgroup id="'),lo=p('">'),Pi=p("</colgroup></table>");function er(D,M,H,Q){switch(H.insertionMode){case 0:case 1:return i(D,Gr),i(D,M.segmentPrefix),i(D,d(Q.toString(16))),o(D,Qn);case 2:return i(D,si),i(D,M.segmentPrefix),i(D,d(Q.toString(16))),o(D,Wi);case 3:return i(D,hn),i(D,M.segmentPrefix),i(D,d(Q.toString(16))),o(D,ai);case 4:return i(D,Tn),i(D,M.segmentPrefix),i(D,d(Q.toString(16))),o(D,so);case 5:return i(D,ui),i(D,M.segmentPrefix),i(D,d(Q.toString(16))),o(D,an);case 6:return i(D,Ms),i(D,M.segmentPrefix),i(D,d(Q.toString(16))),o(D,Ls);case 7:return i(D,ao),i(D,M.segmentPrefix),i(D,d(Q.toString(16))),o(D,lo);default:throw Error(e(397))}}function Or(D,M){switch(M.insertionMode){case 0:case 1:return o(D,Wt);case 2:return o(D,Pn);case 3:return o(D,li);case 4:return o(D,yr);case 5:return o(D,Di);case 6:return o(D,qr);case 7:return o(D,Pi);default:throw Error(e(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('","'),br=p('")<\/script>'),Rr=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),tr=p('$RC("'),zi=p('","'),Oi=p('")<\/script>'),ar=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),yn=p('$RX("'),Ar=p('"'),Ir=p(")<\/script>"),fi=p(","),di=/[<\u2028\u2029]/g;function wr(D){return JSON.stringify(D).replace(di,function(M){switch(M){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Kr=Object.assign,Wn=Symbol.for("react.element"),hi=Symbol.for("react.portal"),pi=Symbol.for("react.fragment"),_i=Symbol.for("react.strict_mode"),nn=Symbol.for("react.profiler"),jn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),uo=Symbol.for("react.forward_ref"),On=Symbol.for("react.suspense"),_n=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),Y=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),Te=Symbol.for("react.legacy_hidden"),ge=Symbol.for("react.default_value"),Pe=Symbol.iterator;function Xe(D){if(D==null)return null;if(typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case pi:return"Fragment";case hi:return"Portal";case nn:return"Profiler";case _i:return"StrictMode";case On:return"Suspense";case _n:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case Cn:return(D.displayName||"Context")+".Consumer";case jn:return(D._context.displayName||"Context")+".Provider";case uo:var M=D.render;return D=D.displayName,D||(D=M.displayName||M.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case k:return M=D.displayName||null,M!==null?M:Xe(D.type)||"Memo";case N:M=D._payload,D=D._init;try{return Xe(D(M))}catch{}}return null}var gt={};function mt(D,M){if(D=D.contextTypes,!D)return gt;var H={},Q;for(Q in D)H[Q]=M[Q];return H}var dt=null;function Ft(D,M){if(D!==M){D.context._currentValue=D.parentValue,D=D.parent;var H=M.parent;if(D===null){if(H!==null)throw Error(e(401))}else{if(H===null)throw Error(e(401));Ft(D,H)}M.context._currentValue=M.value}}function Bn(D){D.context._currentValue=D.parentValue,D=D.parent,D!==null&&Bn(D)}function zn(D){var M=D.parent;M!==null&&zn(M),D.context._currentValue=D.value}function En(D,M){if(D.context._currentValue=D.parentValue,D=D.parent,D===null)throw Error(e(402));D.depth===M.depth?Ft(D,M):En(D,M)}function Zr(D,M){var H=M.parent;if(H===null)throw Error(e(402));D.depth===H.depth?Ft(D,H):Zr(D,H),M.context._currentValue=M.value}function lr(D){var M=dt;M!==D&&(M===null?zn(D):D===null?Bn(M):M.depth===D.depth?Ft(M,D):M.depth>D.depth?En(M,D):Zr(M,D),dt=D)}var Yi={isMounted:function(){return!1},enqueueSetState:function(D,M){D=D._reactInternals,D.queue!==null&&D.queue.push(M)},enqueueReplaceState:function(D,M){D=D._reactInternals,D.replace=!0,D.queue=[M]},enqueueForceUpdate:function(){}};function gi(D,M,H,Q){var ye=D.state!==void 0?D.state:null;D.updater=Yi,D.props=H,D.state=ye;var be={queue:[],replace:!1};D._reactInternals=be;var Ie=M.contextType;if(D.context=typeof Ie=="object"&&Ie!==null?Ie._currentValue:Q,Ie=M.getDerivedStateFromProps,typeof Ie=="function"&&(Ie=Ie(H,ye),ye=Ie==null?ye:Kr({},ye,Ie),D.state=ye),typeof M.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function"&&(typeof D.UNSAFE_componentWillMount=="function"||typeof D.componentWillMount=="function"))if(M=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),M!==D.state&&Yi.enqueueReplaceState(D,D.state,null),be.queue!==null&&0<be.queue.length)if(M=be.queue,Ie=be.replace,be.queue=null,be.replace=!1,Ie&&M.length===1)D.state=M[0];else{for(be=Ie?M[0]:D.state,ye=!0,Ie=Ie?1:0;Ie<M.length;Ie++){var Ye=M[Ie];Ye=typeof Ye=="function"?Ye.call(D,be,H,Q):Ye,Ye!=null&&(ye?(ye=!1,be=Kr({},be,Ye)):Kr(be,Ye))}D.state=be}else be.queue=null}var Gi={id:1,overflow:""};function Mr(D,M,H){var Q=D.id;D=D.overflow;var ye=32-qi(Q)-1;Q&=~(1<<ye),H+=1;var be=32-qi(M)+ye;if(30<be){var Ie=ye-ye%5;return be=(Q&(1<<Ie)-1).toString(32),Q>>=Ie,ye-=Ie,{id:1<<32-qi(M)+ye|H<<ye|Q,overflow:be+D}}return{id:1<<be|H<<ye|Q,overflow:D}}var qi=Math.clz32?Math.clz32:rs,Ua=Math.log,Fs=Math.LN2;function rs(D){return D>>>=0,D===0?32:31-(Ua(D)/Fs|0)|0}function xr(D,M){return D===M&&(D!==0||1/D===1/M)||D!==D&&M!==M}var Wa=typeof Object.is=="function"?Object.is:xr,mi=null,Ns=null,is=null,rn=null,Gt=!1,Kt=!1,Ri=0,Jr=null,Io=0;function vi(){if(mi===null)throw Error(e(321));return mi}function ur(){if(0<Io)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function js(){return rn===null?is===null?(Gt=!1,is=rn=ur()):(Gt=!0,rn=is):rn.next===null?(Gt=!1,rn=rn.next=ur()):(Gt=!0,rn=rn.next),rn}function co(){Ns=mi=null,Kt=!1,is=null,Io=0,rn=Jr=null}function la(D,M){return typeof M=="function"?M(D):M}function ln(D,M,H){if(mi=vi(),rn=js(),Gt){var Q=rn.queue;if(M=Q.dispatch,Jr!==null&&(H=Jr.get(Q),H!==void 0)){Jr.delete(Q),Q=rn.memoizedState;do Q=D(Q,H.action),H=H.next;while(H!==null);return rn.memoizedState=Q,[Q,M]}return[rn.memoizedState,M]}return D=D===la?typeof M=="function"?M():M:H!==void 0?H(M):M,rn.memoizedState=D,D=rn.queue={last:null,dispatch:null},D=D.dispatch=yi.bind(null,mi,D),[rn.memoizedState,D]}function Mo(D,M){if(mi=vi(),rn=js(),M=M===void 0?null:M,rn!==null){var H=rn.memoizedState;if(H!==null&&M!==null){var Q=H[1];e:if(Q===null)Q=!1;else{for(var ye=0;ye<Q.length&&ye<M.length;ye++)if(!Wa(M[ye],Q[ye])){Q=!1;break e}Q=!0}if(Q)return H[0]}}return D=D(),rn.memoizedState=[D,M],D}function yi(D,M,H){if(25<=Io)throw Error(e(301));if(D===mi)if(Kt=!0,D={action:H,next:null},Jr===null&&(Jr=new Map),H=Jr.get(M),H===void 0)Jr.set(M,D);else{for(M=H;M.next!==null;)M=M.next;M.next=D}}function ua(){throw Error(e(394))}function fo(){}var cr={readContext:function(D){return D._currentValue},useContext:function(D){return vi(),D._currentValue},useMemo:Mo,useReducer:ln,useRef:function(D){mi=vi(),rn=js();var M=rn.memoizedState;return M===null?(D={current:D},rn.memoizedState=D):M},useState:function(D){return ln(la,D)},useInsertionEffect:fo,useLayoutEffect:function(){},useCallback:function(D,M){return Mo(function(){return D},M)},useImperativeHandle:fo,useEffect:fo,useDebugValue:fo,useDeferredValue:function(D){return vi(),D},useTransition:function(){return vi(),[!1,ua]},useId:function(){var D=Ns.treeContext,M=D.overflow;D=D.id,D=(D&~(1<<32-qi(D)-1)).toString(32)+M;var H=h;if(H===null)throw Error(e(404));return M=Ri++,D=":"+H.idPrefix+"R"+D,0<M&&(D+="H"+M.toString(32)),D+":"},useMutableSource:function(D,M){return vi(),M(D._source)},useSyncExternalStore:function(D,M,H){if(H===void 0)throw Error(e(407));return H()}},h=null,y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function C(D){return console.error(D),null}function P(){}function F(D,M,H,Q,ye,be,Ie,Ye,ht){var _t=[],St=new Set;return M={destination:null,responseState:M,progressiveChunkSize:Q===void 0?12800:Q,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:_t,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ye===void 0?C:ye,onAllReady:be===void 0?P:be,onShellReady:Ie===void 0?P:Ie,onShellError:Ye===void 0?P:Ye,onFatalError:ht===void 0?P:ht},H=V(M,0,null,H,!1,!1),H.parentFlushed=!0,D=j(M,D,null,H,St,gt,null,Gi),_t.push(D),M}function j(D,M,H,Q,ye,be,Ie,Ye){D.allPendingTasks++,H===null?D.pendingRootTasks++:H.pendingTasks++;var ht={node:M,ping:function(){var _t=D.pingedTasks;_t.push(ht),_t.length===1&&Fr(D)},blockedBoundary:H,blockedSegment:Q,abortSet:ye,legacyContext:be,context:Ie,treeContext:Ye};return ye.add(ht),ht}function V(D,M,H,Q,ye,be){return{status:0,id:-1,index:M,parentFlushed:!1,chunks:[],children:[],formatContext:Q,boundary:H,lastPushedText:ye,textEmbedded:be}}function oe(D,M){if(D=D.onError(M),D!=null&&typeof D!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof D+'" instead');return D}function te(D,M){var H=D.onShellError;H(M),H=D.onFatalError,H(M),D.destination!==null?(D.status=2,w(D.destination,M)):(D.status=1,D.fatalError=M)}function pe(D,M,H,Q,ye){for(mi={},Ns=M,Ri=0,D=H(Q,ye);Kt;)Kt=!1,Ri=0,Io+=1,rn=null,D=H(Q,ye);return co(),D}function De(D,M,H,Q){var ye=H.render(),be=Q.childContextTypes;if(be!=null){var Ie=M.legacyContext;if(typeof H.getChildContext!="function")Q=Ie;else{H=H.getChildContext();for(var Ye in H)if(!(Ye in be))throw Error(e(108,Xe(Q)||"Unknown",Ye));Q=Kr({},Ie,H)}M.legacyContext=Q,Be(D,M,ye),M.legacyContext=Ie}else Be(D,M,ye)}function Re(D,M){if(D&&D.defaultProps){M=Kr({},M),D=D.defaultProps;for(var H in D)M[H]===void 0&&(M[H]=D[H]);return M}return M}function xe(D,M,H,Q,ye){if(typeof H=="function")if(H.prototype&&H.prototype.isReactComponent){ye=mt(H,M.legacyContext);var be=H.contextType;be=new H(Q,typeof be=="object"&&be!==null?be._currentValue:ye),gi(be,H,Q,ye),De(D,M,be,H)}else{be=mt(H,M.legacyContext),ye=pe(D,M,H,Q,be);var Ie=Ri!==0;if(typeof ye=="object"&&ye!==null&&typeof ye.render=="function"&&ye.$$typeof===void 0)gi(ye,H,Q,be),De(D,M,ye,H);else if(Ie){Q=M.treeContext,M.treeContext=Mr(Q,1,0);try{Be(D,M,ye)}finally{M.treeContext=Q}}else Be(D,M,ye)}else if(typeof H=="string"){switch(ye=M.blockedSegment,be=ut(ye.chunks,H,Q,D.responseState,ye.formatContext),ye.lastPushedText=!1,Ie=ye.formatContext,ye.formatContext=ke(Ie,H,Q),Tt(D,M,be),ye.formatContext=Ie,H){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:ye.chunks.push(Dn,d(H),oi)}ye.lastPushedText=!1}else{switch(H){case Te:case ee:case _i:case nn:case pi:Be(D,M,Q.children);return;case _n:Be(D,M,Q.children);return;case Y:throw Error(e(343));case On:e:{H=M.blockedBoundary,ye=M.blockedSegment,be=Q.fallback,Q=Q.children,Ie=new Set;var Ye={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ie,errorDigest:null},ht=V(D,ye.chunks.length,Ye,ye.formatContext,!1,!1);ye.children.push(ht),ye.lastPushedText=!1;var _t=V(D,0,null,ye.formatContext,!1,!1);_t.parentFlushed=!0,M.blockedBoundary=Ye,M.blockedSegment=_t;try{if(Tt(D,M,Q),_t.lastPushedText&&_t.textEmbedded&&_t.chunks.push(ze),_t.status=1,un(Ye,_t),Ye.pendingTasks===0)break e}catch(St){_t.status=4,Ye.forceClientRender=!0,Ye.errorDigest=oe(D,St)}finally{M.blockedBoundary=H,M.blockedSegment=ye}M=j(D,be,H,ht,Ie,M.legacyContext,M.context,M.treeContext),D.pingedTasks.push(M)}return}if(typeof H=="object"&&H!==null)switch(H.$$typeof){case uo:if(Q=pe(D,M,H.render,Q,ye),Ri!==0){H=M.treeContext,M.treeContext=Mr(H,1,0);try{Be(D,M,Q)}finally{M.treeContext=H}}else Be(D,M,Q);return;case k:H=H.type,Q=Re(H,Q),xe(D,M,H,Q,ye);return;case jn:if(ye=Q.children,H=H._context,Q=Q.value,be=H._currentValue,H._currentValue=Q,Ie=dt,dt=Q={parent:Ie,depth:Ie===null?0:Ie.depth+1,context:H,parentValue:be,value:Q},M.context=Q,Be(D,M,ye),D=dt,D===null)throw Error(e(403));Q=D.parentValue,D.context._currentValue=Q===ge?D.context._defaultValue:Q,D=dt=D.parent,M.context=D;return;case Cn:Q=Q.children,Q=Q(H._currentValue),Be(D,M,Q);return;case N:ye=H._init,H=ye(H._payload),Q=Re(H,Q),xe(D,M,H,Q,void 0);return}throw Error(e(130,H==null?H:typeof H,""))}}function Be(D,M,H){if(M.node=H,typeof H=="object"&&H!==null){switch(H.$$typeof){case Wn:xe(D,M,H.type,H.props,H.ref);return;case hi:throw Error(e(257));case N:var Q=H._init;H=Q(H._payload),Be(D,M,H);return}if(Ue(H)){it(D,M,H);return}if(H===null||typeof H!="object"?Q=null:(Q=Pe&&H[Pe]||H["@@iterator"],Q=typeof Q=="function"?Q:null),Q&&(Q=Q.call(H))){if(H=Q.next(),!H.done){var ye=[];do ye.push(H.value),H=Q.next();while(!H.done);it(D,M,ye)}return}throw D=Object.prototype.toString.call(H),Error(e(31,D==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":D))}typeof H=="string"?(Q=M.blockedSegment,Q.lastPushedText=et(M.blockedSegment.chunks,H,D.responseState,Q.lastPushedText)):typeof H=="number"&&(Q=M.blockedSegment,Q.lastPushedText=et(M.blockedSegment.chunks,""+H,D.responseState,Q.lastPushedText))}function it(D,M,H){for(var Q=H.length,ye=0;ye<Q;ye++){var be=M.treeContext;M.treeContext=Mr(be,Q,ye);try{Tt(D,M,H[ye])}finally{M.treeContext=be}}}function Tt(D,M,H){var Q=M.blockedSegment.formatContext,ye=M.legacyContext,be=M.context;try{return Be(D,M,H)}catch(ht){if(co(),typeof ht=="object"&&ht!==null&&typeof ht.then=="function"){H=ht;var Ie=M.blockedSegment,Ye=V(D,Ie.chunks.length,null,Ie.formatContext,Ie.lastPushedText,!0);Ie.children.push(Ye),Ie.lastPushedText=!1,D=j(D,M.node,M.blockedBoundary,Ye,M.abortSet,M.legacyContext,M.context,M.treeContext).ping,H.then(D,D),M.blockedSegment.formatContext=Q,M.legacyContext=ye,M.context=be,lr(be)}else throw M.blockedSegment.formatContext=Q,M.legacyContext=ye,M.context=be,lr(be),ht}}function Et(D){var M=D.blockedBoundary;D=D.blockedSegment,D.status=3,Lr(this,M,D)}function Rn(D,M,H){var Q=D.blockedBoundary;D.blockedSegment.status=3,Q===null?(M.allPendingTasks--,M.status!==2&&(M.status=2,M.destination!==null&&M.destination.close())):(Q.pendingTasks--,Q.forceClientRender||(Q.forceClientRender=!0,D=H===void 0?Error(e(432)):H,Q.errorDigest=M.onError(D),Q.parentFlushed&&M.clientRenderedBoundaries.push(Q)),Q.fallbackAbortableTasks.forEach(function(ye){return Rn(ye,M,H)}),Q.fallbackAbortableTasks.clear(),M.allPendingTasks--,M.allPendingTasks===0&&(Q=M.onAllReady,Q()))}function un(D,M){if(M.chunks.length===0&&M.children.length===1&&M.children[0].boundary===null){var H=M.children[0];H.id=M.id,H.parentFlushed=!0,H.status===1&&un(D,H)}else D.completedSegments.push(M)}function Lr(D,M,H){if(M===null){if(H.parentFlushed){if(D.completedRootSegment!==null)throw Error(e(389));D.completedRootSegment=H}D.pendingRootTasks--,D.pendingRootTasks===0&&(D.onShellError=P,M=D.onShellReady,M())}else M.pendingTasks--,M.forceClientRender||(M.pendingTasks===0?(H.parentFlushed&&H.status===1&&un(M,H),M.parentFlushed&&D.completedBoundaries.push(M),M.fallbackAbortableTasks.forEach(Et,D),M.fallbackAbortableTasks.clear()):H.parentFlushed&&H.status===1&&(un(M,H),M.completedSegments.length===1&&M.parentFlushed&&D.partialBoundaries.push(M)));D.allPendingTasks--,D.allPendingTasks===0&&(D=D.onAllReady,D())}function Fr(D){if(D.status!==2){var M=dt,H=y.current;y.current=cr;var Q=h;h=D.responseState;try{var ye=D.pingedTasks,be;for(be=0;be<ye.length;be++){var Ie=ye[be],Ye=D,ht=Ie.blockedSegment;if(ht.status===0){lr(Ie.context);try{Be(Ye,Ie,Ie.node),ht.lastPushedText&&ht.textEmbedded&&ht.chunks.push(ze),Ie.abortSet.delete(Ie),ht.status=1,Lr(Ye,Ie.blockedBoundary,ht)}catch($n){if(co(),typeof $n=="object"&&$n!==null&&typeof $n.then=="function"){var _t=Ie.ping;$n.then(_t,_t)}else{Ie.abortSet.delete(Ie),ht.status=4;var St=Ie.blockedBoundary,vt=$n,An=oe(Ye,vt);if(St===null?te(Ye,vt):(St.pendingTasks--,St.forceClientRender||(St.forceClientRender=!0,St.errorDigest=An,St.parentFlushed&&Ye.clientRenderedBoundaries.push(St))),Ye.allPendingTasks--,Ye.allPendingTasks===0){var bn=Ye.onAllReady;bn()}}}finally{}}}ye.splice(0,be),D.destination!==null&&po(D,D.destination)}catch($n){oe(D,$n),te(D,$n)}finally{h=Q,y.current=H,H===cr&&lr(M)}}}function Lt(D,M,H){switch(H.parentFlushed=!0,H.status){case 0:var Q=H.id=D.nextSegmentId++;return H.lastPushedText=!1,H.textEmbedded=!1,D=D.responseState,i(M,on),i(M,D.placeholderPrefix),D=d(Q.toString(16)),i(M,D),o(M,Vi);case 1:H.status=2;var ye=!0;Q=H.chunks;var be=0;H=H.children;for(var Ie=0;Ie<H.length;Ie++){for(ye=H[Ie];be<ye.index;be++)i(M,Q[be]);ye=Nr(D,M,ye)}for(;be<Q.length-1;be++)i(M,Q[be]);return be<Q.length&&(ye=o(M,Q[be])),ye;default:throw Error(e(390))}}function Nr(D,M,H){var Q=H.boundary;if(Q===null)return Lt(D,M,H);if(Q.parentFlushed=!0,Q.forceClientRender)Q=Q.errorDigest,o(M,Nn),i(M,vr),Q&&(i(M,Yr),i(M,d(S(Q))),i(M,zr)),o(M,Ao),Lt(D,M,H);else if(0<Q.pendingTasks){Q.rootSegmentID=D.nextSegmentId++,0<Q.completedSegments.length&&D.partialBoundaries.push(Q);var ye=D.responseState,be=ye.nextSuspenseID++;ye=p(ye.boundaryPrefix+be.toString(16)),Q=Q.id=ye,Un(M,D.responseState,Q),Lt(D,M,H)}else if(Q.byteSize>D.progressiveChunkSize)Q.rootSegmentID=D.nextSegmentId++,D.completedBoundaries.push(Q),Un(M,D.responseState,Q.id),Lt(D,M,H);else{if(o(M,Hi),H=Q.completedSegments,H.length!==1)throw Error(e(391));Nr(D,M,H[0])}return o(M,Pr)}function jt(D,M,H){return er(M,D.responseState,H.formatContext,H.id),Nr(D,M,H),Or(M,H.formatContext)}function Qt(D,M,H){for(var Q=H.completedSegments,ye=0;ye<Q.length;ye++)ho(D,M,H,Q[ye]);if(Q.length=0,D=D.responseState,Q=H.id,H=H.rootSegmentID,i(M,D.startInlineScript),D.sentCompleteBoundaryFunction?i(M,tr):(D.sentCompleteBoundaryFunction=!0,i(M,Rr)),Q===null)throw Error(e(395));return H=d(H.toString(16)),i(M,Q),i(M,zi),i(M,D.segmentPrefix),i(M,H),o(M,Oi)}function ho(D,M,H,Q){if(Q.status===2)return!0;var ye=Q.id;if(ye===-1){if((Q.id=H.rootSegmentID)===-1)throw Error(e(392));return jt(D,M,Q)}return jt(D,M,Q),D=D.responseState,i(M,D.startInlineScript),D.sentCompleteSegmentFunction?i(M,ci):(D.sentCompleteSegmentFunction=!0,i(M,_r)),i(M,D.segmentPrefix),ye=d(ye.toString(16)),i(M,ye),i(M,Xr),i(M,D.placeholderPrefix),i(M,ye),o(M,br)}function po(D,M){n=new Uint8Array(512),r=0;try{var H=D.completedRootSegment;if(H!==null&&D.pendingRootTasks===0){Nr(D,M,H),D.completedRootSegment=null;var Q=D.responseState.bootstrapChunks;for(H=0;H<Q.length-1;H++)i(M,Q[H]);H<Q.length&&o(M,Q[H])}var ye=D.clientRenderedBoundaries,be;for(be=0;be<ye.length;be++){var Ie=ye[be];Q=M;var Ye=D.responseState,ht=Ie.id,_t=Ie.errorDigest,St=Ie.errorMessage,vt=Ie.errorComponentStack;if(i(Q,Ye.startInlineScript),Ye.sentClientRenderFunction?i(Q,yn):(Ye.sentClientRenderFunction=!0,i(Q,ar)),ht===null)throw Error(e(395));i(Q,ht),i(Q,Ar),(_t||St||vt)&&(i(Q,fi),i(Q,d(wr(_t||"")))),(St||vt)&&(i(Q,fi),i(Q,d(wr(St||"")))),vt&&(i(Q,fi),i(Q,d(wr(vt)))),o(Q,Ir)}ye.splice(0,be);var An=D.completedBoundaries;for(be=0;be<An.length;be++)Qt(D,M,An[be]);An.splice(0,be),a(M),n=new Uint8Array(512),r=0;var bn=D.partialBoundaries;for(be=0;be<bn.length;be++){var $n=bn[be];e:{ye=D,Ie=M;var os=$n.completedSegments;for(Ye=0;Ye<os.length;Ye++)if(!ho(ye,Ie,$n,os[Ye])){Ye++,os.splice(0,Ye);var ca=!1;break e}os.splice(0,Ye),ca=!0}if(!ca){D.destination=null,be++,bn.splice(0,be);return}}bn.splice(0,be);var go=D.completedBoundaries;for(be=0;be<go.length;be++)Qt(D,M,go[be]);go.splice(0,be)}finally{a(M),D.allPendingTasks===0&&D.pingedTasks.length===0&&D.clientRenderedBoundaries.length===0&&D.completedBoundaries.length===0&&M.close()}}function Sr(D,M){try{var H=D.abortableTasks;H.forEach(function(Q){return Rn(Q,D,M)}),H.clear(),D.destination!==null&&po(D,D.destination)}catch(Q){oe(D,Q),te(D,Q)}}return Ih.renderToReadableStream=function(D,M){return new Promise(function(H,Q){var ye,be,Ie=new Promise(function(St,vt){be=St,ye=vt}),Ye=F(D,Ne(M?M.identifierPrefix:void 0,M?M.nonce:void 0,M?M.bootstrapScriptContent:void 0,M?M.bootstrapScripts:void 0,M?M.bootstrapModules:void 0),me(M?M.namespaceURI:void 0),M?M.progressiveChunkSize:void 0,M?M.onError:void 0,be,function(){var St=new ReadableStream({type:"bytes",pull:function(vt){if(Ye.status===1)Ye.status=2,w(vt,Ye.fatalError);else if(Ye.status!==2&&Ye.destination===null){Ye.destination=vt;try{po(Ye,vt)}catch(An){oe(Ye,An),te(Ye,An)}}},cancel:function(){Sr(Ye)}},{highWaterMark:0});St.allReady=Ie,H(St)},function(St){Ie.catch(function(){}),Q(St)},ye);if(M&&M.signal){var ht=M.signal,_t=function(){Sr(Ye,ht.reason),ht.removeEventListener("abort",_t)};ht.addEventListener("abort",_t)}Fr(Ye)})},Ih.version="18.3.1",Ih}var lc={};/**
|
|
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 y1;function I4(){return y1||(y1=1,process.env.NODE_ENV!=="production"&&function(){var t=q,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(l){{for(var f=arguments.length,g=new Array(f>1?f-1:0),x=1;x<f;x++)g[x-1]=arguments[x];o("warn",l,g)}}function i(l){{for(var f=arguments.length,g=new Array(f>1?f-1:0),x=1;x<f;x++)g[x-1]=arguments[x];o("error",l,g)}}function o(l,f,g){{var x=n.ReactDebugCurrentFrame,R=x.getStackAddendum();R!==""&&(f+="%s",g=g.concat([R]));var B=g.map(function(z){return String(z)});B.unshift("Warning: "+f),Function.prototype.apply.call(console[l],console,B)}}function a(l){l()}function c(l){}function d(l,f){p(l,f)}function p(l,f){return l.push(f)}function w(l){}function m(l){l.push(null)}function T(l){return l}function E(l){return l}function I(l,f){l.destroy(f)}function A(l){{var f=typeof Symbol=="function"&&Symbol.toStringTag,g=f&&l[Symbol.toStringTag]||l.constructor.name||"Object";return g}}function L(l){try{return _(l),!1}catch{return!0}}function _(l){return""+l}function U(l,f){if(L(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.",f,A(l)),_(l)}function G(l,f){if(L(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.",f,A(l)),_(l)}function re(l){if(L(l))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",A(l)),_(l)}var Z=Object.prototype.hasOwnProperty,ue=0,S=1,ae=2,ce=3,Ue=4,_e=5,Le=6,Ve=":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=Ve+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",he=new RegExp("^["+Ve+"]["+We+"]*$"),Ee={},Oe={};function Ne(l){return Z.call(Oe,l)?!0:Z.call(Ee,l)?!1:he.test(l)?(Oe[l]=!0,!0):(Ee[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function tt(l,f,g,x){if(g!==null&&g.type===ue)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":{if(g!==null)return!g.acceptsBooleans;var R=l.toLowerCase().slice(0,5);return R!=="data-"&&R!=="aria-"}default:return!1}}function me(l){return ze.hasOwnProperty(l)?ze[l]:null}function ke(l,f,g,x,R,B,z){this.acceptsBooleans=f===ae||f===ce||f===Ue,this.attributeName=x,this.attributeNamespace=R,this.mustUseProperty=g,this.propertyName=l,this.type=f,this.sanitizeURL=B,this.removeEmptyString=z}var ze={},et=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];et.forEach(function(l){ze[l]=new ke(l,ue,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var f=l[0],g=l[1];ze[f]=new ke(f,S,!1,g,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){ze[l]=new ke(l,ae,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){ze[l]=new ke(l,ae,!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){ze[l]=new ke(l,ce,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){ze[l]=new ke(l,ce,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){ze[l]=new ke(l,Ue,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){ze[l]=new ke(l,Le,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){ze[l]=new ke(l,_e,!1,l.toLowerCase(),null,!1,!1)});var qe=/[\-\:]([a-z])/g,Je=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 f=l.replace(qe,Je);ze[f]=new ke(f,S,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var f=l.replace(qe,Je);ze[f]=new ke(f,S,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var f=l.replace(qe,Je);ze[f]=new ke(f,S,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){ze[l]=new ke(l,S,!1,l.toLowerCase(),null,!1,!1)});var Ke="xlinkHref";ze[Ke]=new ke("xlinkHref",S,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){ze[l]=new ke(l,S,!1,l.toLowerCase(),null,!0,!0)});var ot={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 ct(l,f){return l+f.charAt(0).toUpperCase()+f.substring(1)}var pt=["Webkit","ms","Moz","O"];Object.keys(ot).forEach(function(l){pt.forEach(function(f){ot[ct(f,l)]=ot[l]})});var ft={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function yt(l,f){ft[f.type]||f.onChange||f.onInput||f.readOnly||f.disabled||f.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`."),f.onChange||f.readOnly||f.disabled||f.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 Qe(l,f){if(l.indexOf("-")===-1)return typeof f.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},Mt={},Vn=new RegExp("^(aria)-["+We+"]*$"),mr=new RegExp("^(aria)[A-Z]["+We+"]*$");function Hn(l,f){{if(Z.call(Mt,f)&&Mt[f])return!0;if(mr.test(f)){var g="aria-"+f.slice(4).toLowerCase(),x=At.hasOwnProperty(g)?g:null;if(x==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",f),Mt[f]=!0,!0;if(f!==x)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",f,x),Mt[f]=!0,!0}if(Vn.test(f)){var R=f.toLowerCase(),B=At.hasOwnProperty(R)?R:null;if(B==null)return Mt[f]=!0,!1;if(f!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",f,B),Mt[f]=!0,!0}}return!0}function Sn(l,f){{var g=[];for(var x in f){var R=Hn(l,x);R||g.push(x)}var B=g.map(function(z){return"`"+z+"`"}).join(", ");g.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l):g.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l)}}function $i(l,f){Qe(l,f)||Sn(l,f)}var kr=!1;function Jn(l,f){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;f!=null&&f.value===null&&!kr&&(kr=!0,l==="select"&&f.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",l):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var sn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},fn=function(){};{var dn={},ut=/^on./,Dn=/^on[^A-Z]/,oi=new RegExp("^(aria)-["+We+"]*$"),on=new RegExp("^(aria)[A-Z]["+We+"]*$");fn=function(l,f,g,x){if(Z.call(dn,f)&&dn[f])return!0;var R=f.toLowerCase();if(R==="onfocusin"||R==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),dn[f]=!0,!0;if(x!=null){var B=x.registrationNameDependencies,z=x.possibleRegistrationNames;if(B.hasOwnProperty(f))return!0;var ne=z.hasOwnProperty(R)?z[R]:null;if(ne!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",f,ne),dn[f]=!0,!0;if(ut.test(f))return i("Unknown event handler property `%s`. It will be ignored.",f),dn[f]=!0,!0}else if(ut.test(f))return Dn.test(f)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",f),dn[f]=!0,!0;if(oi.test(f)||on.test(f))return!0;if(R==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dn[f]=!0,!0;if(R==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dn[f]=!0,!0;if(R==="is"&&g!==null&&g!==void 0&&typeof g!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof g),dn[f]=!0,!0;if(typeof g=="number"&&isNaN(g))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",f),dn[f]=!0,!0;var we=me(f),je=we!==null&&we.type===ue;if(sn.hasOwnProperty(R)){var Ge=sn[R];if(Ge!==f)return i("Invalid DOM property `%s`. Did you mean `%s`?",f,Ge),dn[f]=!0,!0}else if(!je&&f!==R)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.",f,R),dn[f]=!0,!0;return typeof g=="boolean"&&tt(f,g,we)?(g?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',g,f,f,g,f):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',g,f,f,g,f,f,f),dn[f]=!0,!0):je?!0:tt(f,g,we)?(dn[f]=!0,!1):((g==="false"||g==="true")&&we!==null&&we.type===ce&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",g,f,g==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',f,g),dn[f]=!0),!0)}}var Vi=function(l,f,g){{var x=[];for(var R in f){var B=fn(l,R,f[R],g);B||x.push(R)}var z=x.map(function(ne){return"`"+ne+"`"}).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 ",z,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 ",z,l)}};function Hi(l,f,g){Qe(l,f)||Vi(l,f,g)}var Ui=function(){};{var Dr=/^(?:webkit|moz|o)[A-Z]/,Nn=/^-ms-/,Pr=/-(.)/g,vr=/;\s*$/,zr={},Yr={},Ao=!1,Un=!1,Gr=function(l){return l.replace(Pr,function(f,g){return g.toUpperCase()})},Qn=function(l){zr.hasOwnProperty(l)&&zr[l]||(zr[l]=!0,i("Unsupported style property %s. Did you mean %s?",l,Gr(l.replace(Nn,"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)))},si=function(l,f){Yr.hasOwnProperty(f)&&Yr[f]||(Yr[f]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,f.replace(vr,"")))},Wi=function(l,f){Ao||(Ao=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},Pn=function(l,f){Un||(Un=!0,i("`Infinity` is an invalid value for the `%s` css style property.",l))};Ui=function(l,f){l.indexOf("-")>-1?Qn(l):Dr.test(l)?Wt(l):vr.test(f)&&si(l,f),typeof f=="number"&&(isNaN(f)?Wi(l,f):isFinite(f)||Pn(l,f))}}var hn=Ui,ai=/["'&<>]/;function li(l){re(l);var f=""+l,g=ai.exec(f);if(!g)return f;var x,R="",B,z=0;for(B=g.index;B<f.length;B++){switch(f.charCodeAt(B)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}z!==B&&(R+=f.substring(z,B)),z=B+1,R+=x}return z!==B?R+f.substring(z,B):R}function Tn(l){return typeof l=="boolean"||typeof l=="number"?""+l:li(l)}var so=/([A-Z])/g,yr=/^ms-/;function ui(l){return l.replace(so,"-$1").toLowerCase().replace(yr,"-ms-")}var an=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Di=!1;function Ms(l){!Di&&an.test(l)&&(Di=!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 Ls=Array.isArray;function qr(l){return Ls(l)}var ao="<script>";function lo(l,f,g,x,R){var B=l===void 0?"":l,z=ao,ne=[];return{bootstrapChunks:ne,startInlineScript:z,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Pi=0,er=1,Or=2,_r=3,ci=4,Xr=5,br=6,Rr=7;function tr(l,f){return{insertionMode:l,selectedValue:f}}function zi(l,f,g){switch(f){case"select":return tr(er,g.value!=null?g.value:g.defaultValue);case"svg":return tr(Or,null);case"math":return tr(_r,null);case"foreignObject":return tr(er,null);case"table":return tr(ci,null);case"thead":case"tbody":case"tfoot":return tr(Xr,null);case"colgroup":return tr(Rr,null);case"tr":return tr(br,null)}return l.insertionMode>=ci||l.insertionMode===Pi?tr(er,null):l}var Oi=null;function ar(l){var f=l.nextSuspenseID++;return l.boundaryPrefix+f.toString(16)}function yn(l,f,g){var x=l.idPrefix,R=":"+x+"R"+f;return g>0&&(R+="H"+g.toString(32)),R+":"}function Ar(l){return Tn(l)}var Ir="<!-- -->";function fi(l,f,g,x){return f===""?x:(x&&l.push(Ir),l.push(Ar(f)),!0)}function di(l,f,g,x){g&&x&&l.push(Ir)}var wr=new Map;function Kr(l){var f=wr.get(l);if(f!==void 0)return f;var g=Tn(ui(l));return wr.set(l,g),g}var Wn=' style="',hi=":",pi=";";function _i(l,f,g){if(typeof g!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var x=!0;for(var R in g)if(Z.call(g,R)){var B=g[R];if(!(B==null||typeof B=="boolean"||B==="")){var z=void 0,ne=void 0,we=R.indexOf("--")===0;we?(z=Tn(R),G(B,R),ne=Tn((""+B).trim())):(hn(R,B),z=Kr(R),typeof B=="number"?B!==0&&!Z.call(ot,R)?ne=B+"px":ne=""+B:(G(B,R),ne=Tn((""+B).trim()))),x?(x=!1,l.push(Wn,z,hi,ne)):l.push(pi,z,hi,ne)}}x||l.push(Cn)}var nn=" ",jn='="',Cn='"',uo='=""';function On(l,f,g,x){switch(g){case"style":{_i(l,f,x);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(g.length>2&&(g[0]==="o"||g[0]==="O")&&(g[1]==="n"||g[1]==="N"))){var R=me(g);if(R!==null){switch(typeof x){case"function":case"symbol":return;case"boolean":if(!R.acceptsBooleans)return}var B=R.attributeName,z=B;switch(R.type){case ce:x&&l.push(nn,z,uo);return;case Ue:x===!0?l.push(nn,z,uo):x===!1||l.push(nn,z,jn,Tn(x),Cn);return;case _e:isNaN(x)||l.push(nn,z,jn,Tn(x),Cn);break;case Le:!isNaN(x)&&x>=1&&l.push(nn,z,jn,Tn(x),Cn);break;default:R.sanitizeURL&&(U(x,B),x=""+x,Ms(x)),l.push(nn,z,jn,Tn(x),Cn)}}else if(Ne(g)){switch(typeof x){case"function":case"symbol":return;case"boolean":{var ne=g.toLowerCase().slice(0,5);if(ne!=="data-"&&ne!=="aria-")return}}l.push(nn,g,jn,Tn(x),Cn)}}}var _n=">",k="/>";function N(l,f,g){if(f!=null){if(g!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof f!="object"||!("__html"in f))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=f.__html;x!=null&&(re(x),l.push(""+x))}}var Y=!1,ee=!1,Te=!1,ge=!1,Pe=!1,Xe=!1,gt=!1;function mt(l,f){{var g=l[f];if(g!=null){var x=qr(g);l.multiple&&!x?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",f):!l.multiple&&x&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",f)}}}function dt(l,f,g){yt("select",f),mt(f,"value"),mt(f,"defaultValue"),f.value!==void 0&&f.defaultValue!==void 0&&!Te&&(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"),Te=!0),l.push(xr("select"));var x=null,R=null;for(var B in f)if(Z.call(f,B)){var z=f[B];if(z==null)continue;switch(B){case"children":x=z;break;case"dangerouslySetInnerHTML":R=z;break;case"defaultValue":case"value":break;default:On(l,g,B,z);break}}return l.push(_n),N(l,R,x),x}function Ft(l){var f="";return t.Children.forEach(l,function(g){g!=null&&(f+=g,!Pe&&typeof g!="string"&&typeof g!="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>.")))}),f}var Bn=' selected=""';function zn(l,f,g,x){var R=x.selectedValue;l.push(xr("option"));var B=null,z=null,ne=null,we=null;for(var je in f)if(Z.call(f,je)){var Ge=f[je];if(Ge==null)continue;switch(je){case"children":B=Ge;break;case"selected":ne=Ge,gt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gt=!0);break;case"dangerouslySetInnerHTML":we=Ge;break;case"value":z=Ge;default:On(l,g,je,Ge);break}}if(R!=null){var nt;if(z!==null?(U(z,"value"),nt=""+z):(we!==null&&(Xe||(Xe=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),nt=Ft(B)),qr(R))for(var xt=0;xt<R.length;xt++){U(R[xt],"value");var en=""+R[xt];if(en===nt){l.push(Bn);break}}else U(R,"select.value"),""+R===nt&&l.push(Bn)}else ne&&l.push(Bn);return l.push(_n),N(l,we,B),B}function En(l,f,g){yt("input",f),f.checked!==void 0&&f.defaultChecked!==void 0&&!ee&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",f.type),ee=!0),f.value!==void 0&&f.defaultValue!==void 0&&!Y&&(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",f.type),Y=!0),l.push(xr("input"));var x=null,R=null,B=null,z=null;for(var ne in f)if(Z.call(f,ne)){var we=f[ne];if(we==null)continue;switch(ne){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":z=we;break;case"defaultValue":R=we;break;case"checked":B=we;break;case"value":x=we;break;default:On(l,g,ne,we);break}}return B!==null?On(l,g,"checked",B):z!==null&&On(l,g,"checked",z),x!==null?On(l,g,"value",x):R!==null&&On(l,g,"value",R),l.push(k),null}function Zr(l,f,g){yt("textarea",f),f.value!==void 0&&f.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(xr("textarea"));var x=null,R=null,B=null;for(var z in f)if(Z.call(f,z)){var ne=f[z];if(ne==null)continue;switch(z){case"children":B=ne;break;case"value":x=ne;break;case"defaultValue":R=ne;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:On(l,g,z,ne);break}}if(x===null&&R!==null&&(x=R),l.push(_n),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.");re(B[0]),x=""+B[0]}re(B),x=""+B}return typeof x=="string"&&x[0]===`
|
|
66
|
-
`&&l.push(qi),x!==null&&(U(x,"value"),l.push(Ar(""+x))),null}function lr(l,f,g,x){l.push(xr(g));for(var R in f)if(Z.call(f,R)){var B=f[R];if(B==null)continue;switch(R){case"children":case"dangerouslySetInnerHTML":throw new Error(g+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:On(l,x,R,B);break}}return l.push(k),null}function Yi(l,f,g){l.push(xr("menuitem"));for(var x in f)if(Z.call(f,x)){var R=f[x];if(R==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:On(l,g,x,R);break}}return l.push(_n),null}function gi(l,f,g){l.push(xr("title"));var x=null;for(var R in f)if(Z.call(f,R)){var B=f[R];if(B==null)continue;switch(R){case"children":x=B;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:On(l,g,R,B);break}}l.push(_n);{var z=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"):z!=null&&z.$$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"):z!=null&&typeof z!="string"&&typeof z!="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 Gi(l,f,g,x){l.push(xr(g));var R=null,B=null;for(var z in f)if(Z.call(f,z)){var ne=f[z];if(ne==null)continue;switch(z){case"children":R=ne;break;case"dangerouslySetInnerHTML":B=ne;break;default:On(l,x,z,ne);break}}return l.push(_n),N(l,B,R),typeof R=="string"?(l.push(Ar(R)),null):R}function Mr(l,f,g,x){l.push(xr(g));var R=null,B=null;for(var z in f)if(Z.call(f,z)){var ne=f[z];if(ne==null)continue;switch(z){case"children":R=ne;break;case"dangerouslySetInnerHTML":B=ne;break;case"style":_i(l,x,ne);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ne(z)&&typeof ne!="function"&&typeof ne!="symbol"&&l.push(nn,z,jn,Tn(ne),Cn);break}}return l.push(_n),N(l,B,R),R}var qi=`
|
|
67
|
-
`;function Ua(l,f,g,x){l.push(xr(g));var R=null,B=null;for(var z in f)if(Z.call(f,z)){var ne=f[z];if(ne==null)continue;switch(z){case"children":R=ne;break;case"dangerouslySetInnerHTML":B=ne;break;default:On(l,x,z,ne);break}}if(l.push(_n),B!=null){if(R!=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 we=B.__html;we!=null&&(typeof we=="string"&&we.length>0&&we[0]===`
|
|
68
|
-
`?l.push(qi,we):(re(we),l.push(""+we)))}return typeof R=="string"&&R[0]===`
|
|
69
|
-
`&&l.push(qi),R}var Fs=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,rs=new Map;function xr(l){var f=rs.get(l);if(f===void 0){if(!Fs.test(l))throw new Error("Invalid tag: "+l);f="<"+l,rs.set(l,f)}return f}var Wa="<!DOCTYPE html>";function mi(l,f,g,x,R){switch($i(f,g),Jn(f,g),Hi(f,g,null),!g.suppressContentEditableWarning&&g.contentEditable&&g.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),R.insertionMode!==Or&&R.insertionMode!==_r&&f.indexOf("-")===-1&&typeof g.is!="string"&&f.toLowerCase()!==f&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",f),f){case"select":return dt(l,g,x);case"option":return zn(l,g,x,R);case"textarea":return Zr(l,g,x);case"input":return En(l,g,x);case"menuitem":return Yi(l,g,x);case"title":return gi(l,g,x);case"listing":case"pre":return Ua(l,g,f,x);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return lr(l,g,f,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 Gi(l,g,f,x);case"html":return R.insertionMode===Pi&&l.push(Wa),Gi(l,g,f,x);default:return f.indexOf("-")===-1&&typeof g.is!="string"?Gi(l,g,f,x):Mr(l,g,f,x)}}var Ns="</",is=">";function rn(l,f,g){switch(f){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(Ns,f,is)}}function Gt(l,f){for(var g=f.bootstrapChunks,x=0;x<g.length-1;x++)d(l,g[x]);return x<g.length?p(l,g[x]):!0}var Kt='<template id="',Ri='"></template>';function Jr(l,f,g){d(l,Kt),d(l,f.placeholderPrefix);var x=g.toString(16);return d(l,x),p(l,Ri)}var Io="<!--$-->",vi='<!--$?--><template id="',ur='"></template>',js="<!--$!-->",co="<!--/$-->",la="<template",ln='"',Mo=' data-dgst="',yi=' data-msg="',ua=' data-stck="',fo="></template>";function cr(l,f){return p(l,Io)}function h(l,f,g){if(d(l,vi),g===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return d(l,g),p(l,ur)}function y(l,f,g,x,R){var B;return B=p(l,js),d(l,la),g&&(d(l,Mo),d(l,Tn(g)),d(l,ln)),x&&(d(l,yi),d(l,Tn(x)),d(l,ln)),R&&(d(l,ua),d(l,Tn(R)),d(l,ln)),B=p(l,fo),B}function C(l,f){return p(l,co)}function P(l,f){return p(l,co)}function F(l,f){return p(l,co)}var j='<div hidden id="',V='">',oe="</div>",te='<svg aria-hidden="true" style="display:none" id="',pe='">',De="</svg>",Re='<math aria-hidden="true" style="display:none" id="',xe='">',Be="</math>",it='<table hidden id="',Tt='">',Et="</table>",Rn='<table hidden><tbody id="',un='">',Lr="</tbody></table>",Fr='<table hidden><tr id="',Lt='">',Nr="</tr></table>",jt='<table hidden><colgroup id="',Qt='">',ho="</colgroup></table>";function po(l,f,g,x){switch(g.insertionMode){case Pi:case er:return d(l,j),d(l,f.segmentPrefix),d(l,x.toString(16)),p(l,V);case Or:return d(l,te),d(l,f.segmentPrefix),d(l,x.toString(16)),p(l,pe);case _r:return d(l,Re),d(l,f.segmentPrefix),d(l,x.toString(16)),p(l,xe);case ci:return d(l,it),d(l,f.segmentPrefix),d(l,x.toString(16)),p(l,Tt);case Xr:return d(l,Rn),d(l,f.segmentPrefix),d(l,x.toString(16)),p(l,un);case br:return d(l,Fr),d(l,f.segmentPrefix),d(l,x.toString(16)),p(l,Lt);case Rr:return d(l,jt),d(l,f.segmentPrefix),d(l,x.toString(16)),p(l,Qt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Sr(l,f){switch(f.insertionMode){case Pi:case er:return p(l,oe);case Or:return p(l,De);case _r:return p(l,Be);case ci:return p(l,Et);case Xr:return p(l,Lr);case br:return p(l,Nr);case Rr:return p(l,ho);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var D="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",M='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',H='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Q=D+';$RS("',ye='$RS("',be='","',Ie='")<\/script>';function Ye(l,f,g){d(l,f.startInlineScript),f.sentCompleteSegmentFunction?d(l,ye):(f.sentCompleteSegmentFunction=!0,d(l,Q)),d(l,f.segmentPrefix);var x=g.toString(16);return d(l,x),d(l,be),d(l,f.placeholderPrefix),d(l,x),p(l,Ie)}var ht=M+';$RC("',_t='$RC("',St='","',vt='")<\/script>';function An(l,f,g,x){if(d(l,f.startInlineScript),f.sentCompleteBoundaryFunction?d(l,_t):(f.sentCompleteBoundaryFunction=!0,d(l,ht)),g===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var R=x.toString(16);return d(l,g),d(l,St),d(l,f.segmentPrefix),d(l,R),p(l,vt)}var bn=H+';$RX("',$n='$RX("',os='"',ca=")<\/script>",go=",";function Qr(l,f,g,x,R,B){if(d(l,f.startInlineScript),f.sentClientRenderFunction?d(l,$n):(f.sentClientRenderFunction=!0,d(l,bn)),g===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return d(l,g),d(l,os),(x||R||B)&&(d(l,go),d(l,Ai(x||""))),(R||B)&&(d(l,go),d(l,Ai(R||""))),B&&(d(l,go),d(l,Ai(B))),p(l,ca)}var za=/[<\u2028\u2029]/g;function Ai(l){var f=JSON.stringify(l);return f.replace(za,function(g){switch(g){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function fa(l,f){var g=lo(f);return{bootstrapChunks:g.bootstrapChunks,startInlineScript:g.startInlineScript,placeholderPrefix:g.placeholderPrefix,segmentPrefix:g.segmentPrefix,boundaryPrefix:g.boundaryPrefix,idPrefix:g.idPrefix,nextSuspenseID:g.nextSuspenseID,sentCompleteSegmentFunction:g.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:g.sentCompleteBoundaryFunction,sentClientRenderFunction:g.sentClientRenderFunction,generateStaticMarkup:l}}function ss(){return{insertionMode:er,selectedValue:null}}function ei(l,f,g,x){return g.generateStaticMarkup?(l.push(Tn(f)),!1):fi(l,f,g,x)}function mo(l,f,g,x){if(!f.generateStaticMarkup)return di(l,f,g,x)}function Ya(l,f){return f.generateStaticMarkup?!0:cr(l)}function Du(l,f,g,x,R){return f.generateStaticMarkup?!0:y(l,f,g,x,R)}function da(l,f){return f.generateStaticMarkup?!0:C(l)}function vo(l,f){return f.generateStaticMarkup?!0:F(l)}var cn=Object.assign,_l=Symbol.for("react.element"),ha=Symbol.for("react.portal"),Bs=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),Se=Symbol.for("react.provider"),Ce=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),Fe=Symbol.for("react.lazy"),st=Symbol.for("react.scope"),lt=Symbol.for("react.debug_trace_mode"),rt=Symbol.for("react.legacy_hidden"),It=Symbol.for("react.default_value"),wt=Symbol.iterator,Vt="@@iterator";function Yn(l){if(l===null||typeof l!="object")return null;var f=wt&&l[wt]||l[Vt];return typeof f=="function"?f:null}function nr(l,f,g){var x=l.displayName;if(x)return x;var R=f.displayName||f.name||"";return R!==""?g+"("+R+")":g}function In(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 Bs:return"Fragment";case ha: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 Ce:var f=l;return In(f)+".Consumer";case Se:var g=l;return In(g._context)+".Provider";case K:return nr(l,l.render,"ForwardRef");case Ae:var x=l.displayName||null;return x!==null?x:zt(l.type)||"Memo";case Fe:{var R=l,B=R._payload,z=R._init;try{return zt(z(B))}catch{return null}}}return null}var jr=0,kt,Pu,pn,Lo,Ou,_u,Ru;function pa(){}pa.__reactDisabledLog=!0;function Fo(){{if(jr===0){kt=console.log,Pu=console.info,pn=console.warn,Lo=console.error,Ou=console.group,_u=console.groupCollapsed,Ru=console.groupEnd;var l={configurable:!0,enumerable:!0,value:pa,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}jr++}}function Ga(){{if(jr--,jr===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:cn({},l,{value:kt}),info:cn({},l,{value:Pu}),warn:cn({},l,{value:pn}),error:cn({},l,{value:Lo}),group:cn({},l,{value:Ou}),groupCollapsed:cn({},l,{value:_u}),groupEnd:cn({},l,{value:Ru})})}jr<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qa=n.ReactCurrentDispatcher,$s;function ga(l,f,g){{if($s===void 0)try{throw Error()}catch(R){var x=R.stack.trim().match(/\n( *(at )?)/);$s=x&&x[1]||""}return`
|
|
70
|
-
`+$s+l}}var Rl=!1,No;{var Al=typeof WeakMap=="function"?WeakMap:Map;No=new Al}function Xi(l,f){if(!l||Rl)return"";{var g=No.get(l);if(g!==void 0)return g}var x;Rl=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=qa.current,qa.current=null,Fo();try{if(f){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(ir){x=ir}Reflect.construct(l,[],z)}else{try{z.call()}catch(ir){x=ir}l.call(z.prototype)}}else{try{throw Error()}catch(ir){x=ir}l()}}catch(ir){if(ir&&x&&typeof ir.stack=="string"){for(var ne=ir.stack.split(`
|
|
71
|
-
`),we=x.stack.split(`
|
|
72
|
-
`),je=ne.length-1,Ge=we.length-1;je>=1&&Ge>=0&&ne[je]!==we[Ge];)Ge--;for(;je>=1&&Ge>=0;je--,Ge--)if(ne[je]!==we[Ge]){if(je!==1||Ge!==1)do if(je--,Ge--,Ge<0||ne[je]!==we[Ge]){var nt=`
|
|
73
|
-
`+ne[je].replace(" at new "," at ");return l.displayName&&nt.includes("<anonymous>")&&(nt=nt.replace("<anonymous>",l.displayName)),typeof l=="function"&&No.set(l,nt),nt}while(je>=1&&Ge>=0);break}}}finally{Rl=!1,qa.current=B,Ga(),Error.prepareStackTrace=R}var xt=l?l.displayName||l.name:"",en=xt?ga(xt):"";return typeof l=="function"&&No.set(l,en),en}function jo(l,f,g){return Xi(l,!0)}function as(l,f,g){return Xi(l,!1)}function jf(l){var f=l.prototype;return!!(f&&f.isReactComponent)}function Xa(l,f,g){if(l==null)return"";if(typeof l=="function")return Xi(l,jf(l));if(typeof l=="string")return ga(l);switch(l){case le:return ga("Suspense");case se:return ga("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case K:return as(l.render);case Ae:return Xa(l.type,f,g);case Fe:{var x=l,R=x._payload,B=x._init;try{return Xa(B(R),f,g)}catch{}}}return""}var Ic={},ma=n.ReactDebugCurrentFrame;function Vs(l){if(l){var f=l._owner,g=Xa(l.type,l._source,f?f.type:null);ma.setExtraStackFrame(g)}else ma.setExtraStackFrame(null)}function va(l,f,g,x,R){{var B=Function.call.bind(Z);for(var z in l)if(B(l,z)){var ne=void 0;try{if(typeof l[z]!="function"){var we=Error((x||"React class")+": "+g+" type `"+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}ne=l[z](f,z,x,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(je){ne=je}ne&&!(ne instanceof Error)&&(Vs(R),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",g,z,typeof ne),Vs(null)),ne instanceof Error&&!(ne.message in Ic)&&(Ic[ne.message]=!0,Vs(R),i("Failed %s type: %s",g,ne.message),Vs(null))}}}var Il;Il={};var ya={};Object.freeze(ya);function Ka(l,f){{var g=l.contextTypes;if(!g)return ya;var x={};for(var R in g)x[R]=f[R];{var B=zt(l)||"Unknown";va(g,x,"context",B)}return x}}function Mc(l,f,g,x){{if(typeof l.getChildContext!="function"){{var R=zt(f)||"Unknown";Il[R]||(Il[R]=!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.",R,R))}return g}var B=l.getChildContext();for(var z in B)if(!(z in x))throw new Error((zt(f)||"Unknown")+'.getChildContext(): key "'+z+'" is not defined in childContextTypes.');{var ne=zt(f)||"Unknown";va(x,B,"child context",ne)}return cn({},g,B)}}var wn;wn={};var Gn=null,ls=null;function Au(l){l.context._currentValue2=l.parentValue}function us(l){l.context._currentValue2=l.value}function Ml(l,f){if(l!==f){Au(l);var g=l.parent,x=f.parent;if(g===null){if(x!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(x===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Ml(g,x)}us(f)}}function yo(l){Au(l);var f=l.parent;f!==null&&yo(f)}function cs(l){var f=l.parent;f!==null&&cs(f),us(l)}function ba(l,f){Au(l);var g=l.parent;if(g===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");g.depth===f.depth?Ml(g,f):ba(g,f)}function bo(l,f){var g=f.parent;if(g===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===g.depth?Ml(l,g):bo(l,g),us(f)}function Bo(l){var f=ls,g=l;f!==g&&(f===null?cs(g):g===null?yo(f):f.depth===g.depth?Ml(f,g):f.depth>g.depth?ba(f,g):bo(f,g),ls=g)}function wa(l,f){var g;g=l._currentValue2,l._currentValue2=f,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==wn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=wn;var x=ls,R={parent:x,depth:x===null?0:x.depth+1,context:l,parentValue:g,value:f};return ls=R,R}function Za(l){var f=ls;if(f===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");f.context!==l&&i("The parent context is not the expected context. This is probably a bug in React.");{var g=f.parentValue;g===It?f.context._currentValue2=f.context._defaultValue:f.context._currentValue2=g,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==wn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=wn}return ls=f.parent}function Hs(){return ls}function fs(l){var f=l._currentValue2;return f}function Iu(l){return l._reactInternals}function Bf(l,f){l._reactInternals=f}var Lc={},xa={},ds,Us,Ja,W,$o,Vo,Tr,$t,Ll;{ds=new Set,Us=new Set,Ja=new Set,Tr=new Set,W=new Set,$t=new Set,Ll=new Set;var Qa=new Set;Vo=function(l,f){if(!(l===null||typeof l=="function")){var g=f+"_"+l;Qa.has(g)||(Qa.add(g),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",f,l))}},$o=function(l,f){if(f===void 0){var g=zt(l)||"Component";W.has(g)||(W.add(g),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",g))}}}function Fl(l,f){{var g=l.constructor,x=g&&zt(g)||"ReactClass",R=x+"."+f;if(Lc[R])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.`,f,f,x),Lc[R]=!0}}var wo={isMounted:function(l){return!1},enqueueSetState:function(l,f,g){var x=Iu(l);x.queue===null?Fl(l,"setState"):(x.queue.push(f),g!=null&&Vo(g,"setState"))},enqueueReplaceState:function(l,f,g){var x=Iu(l);x.replace=!0,x.queue=[f],g!=null&&Vo(g,"setState")},enqueueForceUpdate:function(l,f){var g=Iu(l);g.queue===null?Fl(l,"forceUpdate"):f!=null&&Vo(f,"setState")}};function Mu(l,f,g,x,R){var B=g(R,x);$o(f,B);var z=B==null?x:cn({},x,B);return z}function Fc(l,f,g){var x=ya,R=l.contextType;if("contextType"in l){var B=R===null||R!==void 0&&R.$$typeof===Ce&&R._context===void 0;if(!B&&!Ll.has(l)){Ll.add(l);var z="";R===void 0?z=" 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 R!="object"?z=" However, it is set to a "+typeof R+".":R.$$typeof===Se?z=" Did you accidentally pass the Context.Provider instead?":R._context!==void 0?z=" Did you accidentally pass the Context.Consumer instead?":z=" However, it is set to an object with keys {"+Object.keys(R).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",zt(l)||"Component",z)}}typeof R=="object"&&R!==null?x=fs(R):x=g;var ne=new l(f,x);{if(typeof l.getDerivedStateFromProps=="function"&&(ne.state===null||ne.state===void 0)){var we=zt(l)||"Component";ds.has(we)||(ds.add(we),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.",we,ne.state===null?"null":"undefined",we))}if(typeof l.getDerivedStateFromProps=="function"||typeof ne.getSnapshotBeforeUpdate=="function"){var je=null,Ge=null,nt=null;if(typeof ne.componentWillMount=="function"&&ne.componentWillMount.__suppressDeprecationWarning!==!0?je="componentWillMount":typeof ne.UNSAFE_componentWillMount=="function"&&(je="UNSAFE_componentWillMount"),typeof ne.componentWillReceiveProps=="function"&&ne.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Ge="componentWillReceiveProps":typeof ne.UNSAFE_componentWillReceiveProps=="function"&&(Ge="UNSAFE_componentWillReceiveProps"),typeof ne.componentWillUpdate=="function"&&ne.componentWillUpdate.__suppressDeprecationWarning!==!0?nt="componentWillUpdate":typeof ne.UNSAFE_componentWillUpdate=="function"&&(nt="UNSAFE_componentWillUpdate"),je!==null||Ge!==null||nt!==null){var xt=zt(l)||"Component",en=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ja.has(xt)||(Ja.add(xt),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
76
|
-
|
|
77
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
78
|
-
|
|
79
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
80
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,xt,en,je!==null?`
|
|
81
|
-
`+je:"",Ge!==null?`
|
|
82
|
-
`+Ge:"",nt!==null?`
|
|
83
|
-
`+nt:""))}}}return ne}function Nc(l,f,g){{var x=zt(f)||"Component",R=l.render;R||(f.prototype&&typeof f.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),f.contextType&&f.contextTypes&&!$t.has(f)&&($t.add(f),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),f.prototype&&f.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(f)||"A pure component"),typeof l.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",x),typeof l.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",x),typeof l.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",x),typeof l.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",x);var B=l.props!==g;l.props!==void 0&&B&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",x,x),l.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",x,x),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!Us.has(f)&&(Us.add(f),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",zt(f))),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 f.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",x);var z=l.state;z&&(typeof z!="object"||qr(z))&&i("%s.state: must be set to an object or null",x),typeof l.getChildContext=="function"&&typeof f.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",x)}}function jc(l,f){var g=f.state;if(typeof f.componentWillMount=="function"){if(f.componentWillMount.__suppressDeprecationWarning!==!0){var x=zt(l)||"Unknown";xa[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),xa[x]=!0)}f.componentWillMount()}typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",zt(l)||"Component"),wo.enqueueReplaceState(f,f.state,null))}function $f(l,f,g,x){if(l.queue!==null&&l.queue.length>0){var R=l.queue,B=l.replace;if(l.queue=null,l.replace=!1,B&&R.length===1)f.state=R[0];else{for(var z=B?R[0]:f.state,ne=!0,we=B?1:0;we<R.length;we++){var je=R[we],Ge=typeof je=="function"?je.call(f,z,g,x):je;Ge!=null&&(ne?(ne=!1,z=cn({},z,Ge)):cn(z,Ge))}f.state=z}}else l.queue=null}function xo(l,f,g,x){Nc(l,f,g);var R=l.state!==void 0?l.state:null;l.updater=wo,l.props=g,l.state=R;var B={queue:[],replace:!1};Bf(l,B);var z=f.contextType;if(typeof z=="object"&&z!==null?l.context=fs(z):l.context=x,l.state===g){var ne=zt(f)||"Component";Tr.has(ne)||(Tr.add(ne),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.",ne))}var we=f.getDerivedStateFromProps;typeof we=="function"&&(l.state=Mu(l,f,we,R,g)),typeof f.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function"&&(typeof l.UNSAFE_componentWillMount=="function"||typeof l.componentWillMount=="function")&&(jc(f,l),$f(B,l,g,x))}var Vf={id:1,overflow:""};function Hf(l){var f=l.overflow,g=l.id,x=g&~Uf(g);return x.toString(32)+f}function Lu(l,f,g){var x=l.id,R=l.overflow,B=el(x)-1,z=x&~(1<<B),ne=g+1,we=el(f)+B;if(we>30){var je=B-B%5,Ge=(1<<je)-1,nt=(z&Ge).toString(32),xt=z>>je,en=B-je,ir=el(f)+en,Eo=ne<<en,ws=Eo|xt,eo=nt+R;return{id:1<<ir|ws,overflow:eo}}else{var Ra=ne<<B,nf=Ra|z,ta=R;return{id:1<<we|nf,overflow:ta}}}function el(l){return 32-Ho(l)}function Uf(l){return 1<<el(l)-1}var Ho=Math.clz32?Math.clz32:Wf,Fu=Math.log,Nl=Math.LN2;function Wf(l){var f=l>>>0;return f===0?32:31-(Fu(f)/Nl|0)|0}function zf(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var Yf=typeof Object.is=="function"?Object.is:zf,Br=null,Nu=null,jl=null,qt=null,bi=!1,Sa=!1,Ws=0,Zt=null,hs=0,tl=25,ti=!1,wi;function So(){if(Br===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"),Br}function ju(l,f){if(f===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!==f.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(", ")+"]","["+f.join(", ")+"]");for(var g=0;g<f.length&&g<l.length;g++)if(!Yf(l[g],f[g]))return!1;return!0}function $r(){if(hs>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Ki(){return qt===null?jl===null?(bi=!1,jl=qt=$r()):(bi=!0,qt=jl):qt.next===null?(bi=!1,qt=qt.next=$r()):(bi=!0,qt=qt.next),qt}function zs(l,f){Br=f,Nu=l,ti=!1,Ws=0}function Bc(l,f,g,x){for(;Sa;)Sa=!1,Ws=0,hs+=1,qt=null,g=l(f,x);return xi(),g}function Bu(){var l=Ws!==0;return l}function xi(){ti=!1,Br=null,Nu=null,Sa=!1,jl=null,hs=0,Zt=null,qt=null}function $u(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()."),fs(l)}function Ys(l){return wi="useContext",So(),fs(l)}function Vr(l,f){return typeof f=="function"?f(l):f}function Vu(l){return wi="useState",Hu(Vr,l)}function Hu(l,f,g){if(l!==Vr&&(wi="useReducer"),Br=So(),qt=Ki(),bi){var x=qt.queue,R=x.dispatch;if(Zt!==null){var B=Zt.get(x);if(B!==void 0){Zt.delete(x);var z=qt.memoizedState,ne=B;do{var we=ne.action;ti=!0,z=l(z,we),ti=!1,ne=ne.next}while(ne!==null);return qt.memoizedState=z,[z,R]}}return[qt.memoizedState,R]}else{ti=!0;var je;l===Vr?je=typeof f=="function"?f():f:je=g!==void 0?g(f):f,ti=!1,qt.memoizedState=je;var Ge=qt.queue={last:null,dispatch:null},nt=Ge.dispatch=Wu.bind(null,Br,Ge);return[qt.memoizedState,nt]}}function Uu(l,f){Br=So(),qt=Ki();var g=f===void 0?null:f;if(qt!==null){var x=qt.memoizedState;if(x!==null&&g!==null){var R=x[1];if(ju(g,R))return x[0]}}ti=!0;var B=l();return ti=!1,qt.memoizedState=[B,g],B}function Gs(l){Br=So(),qt=Ki();var f=qt.memoizedState;if(f===null){var g={current:l};return Object.seal(g),qt.memoizedState=g,g}else return f}function ps(l,f){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 Wu(l,f,g){if(hs>=tl)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===Br){Sa=!0;var x={action:g,next:null};Zt===null&&(Zt=new Map);var R=Zt.get(f);if(R===void 0)Zt.set(f,x);else{for(var B=R;B.next!==null;)B=B.next;B.next=x}}}function $c(l,f){return Uu(function(){return l},f)}function Bl(l,f,g){return So(),f(l._source)}function Gf(l,f,g){if(g===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return g()}function Vc(l){return So(),l}function fr(){throw new Error("startTransition cannot be called during server rendering.")}function zu(){return So(),[!1,fr]}function Hc(){var l=Nu,f=Hf(l.treeContext),g=Ta;if(g===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var x=Ws++;return yn(g,f,x)}function Si(){}var $l={readContext:$u,useContext:Ys,useMemo:Uu,useReducer:Hu,useRef:Gs,useState:Vu,useInsertionEffect:Si,useLayoutEffect:ps,useCallback:$c,useImperativeHandle:Si,useEffect:Si,useDebugValue:Si,useDeferredValue:Vc,useTransition:zu,useId:Hc,useMutableSource:Bl,useSyncExternalStore:Gf},Ta=null;function gs(l){Ta=l}function nl(l){try{var f="",g=l;do{switch(g.tag){case 0:f+=ga(g.type,null,null);break;case 1:f+=as(g.type,null,null);break;case 2:f+=jo(g.type,null,null);break}g=g.parent}while(g);return f}catch(x){return`
|
|
95
|
-
Error generating stack: `+x.message+`
|
|
96
|
-
`+x.stack}}var rr=n.ReactCurrentDispatcher,qs=n.ReactDebugCurrentFrame,Vl=0,Ca=1,Hl=2,Ea=3,Ul=4,To=0,Wl=1,Xs=2,Uc=12800;function rl(l){return console.error(l),null}function ka(){}function Da(l,f,g,x,R,B,z,ne,we){var je=[],Ge=new Set,nt={destination:null,responseState:f,progressiveChunkSize:x===void 0?Uc:x,status:To,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ge,pingedTasks:je,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:R===void 0?rl:R,onAllReady:ka,onShellReady:z===void 0?ka:z,onShellError:ka,onFatalError:ka},xt=zl(nt,0,null,g,!1,!1);xt.parentFlushed=!0;var en=Ks(nt,l,null,xt,Ge,ya,Gn,Vf);return je.push(en),nt}function Yu(l,f){var g=l.pingedTasks;g.push(f),g.length===1&&a(function(){return Ql(l)})}function Wc(l,f){return{id:Oi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:f,errorDigest:null}}function Ks(l,f,g,x,R,B,z,ne){l.allPendingTasks++,g===null?l.pendingRootTasks++:g.pendingTasks++;var we={node:f,ping:function(){return Yu(l,we)},blockedBoundary:g,blockedSegment:x,abortSet:R,legacyContext:B,context:z,treeContext:ne};return we.componentStack=null,R.add(we),we}function zl(l,f,g,x,R,B){return{status:Vl,id:-1,index:f,parentFlushed:!1,chunks:[],children:[],formatContext:x,boundary:g,lastPushedText:R,textEmbedded:B}}var Uo=null;function Yl(){return Uo===null||Uo.componentStack===null?"":nl(Uo.componentStack)}function Wo(l,f){l.componentStack={tag:0,parent:l.componentStack,type:f}}function il(l,f){l.componentStack={tag:1,parent:l.componentStack,type:f}}function Zi(l,f){l.componentStack={tag:2,parent:l.componentStack,type:f}}function Ji(l){l.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var Co=null;function ol(l,f){{var g;typeof f=="string"?g=f:f&&typeof f.message=="string"?g=f.message:g=String(f);var x=Co||Yl();Co=null,l.errorMessage=g,l.errorComponentStack=x}}function ms(l,f){var g=l.onError(f);if(g!=null&&typeof g!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof g+'" instead');return g}function Qi(l,f){var g=l.onShellError;g(f);var x=l.onFatalError;x(f),l.destination!==null?(l.status=Xs,I(l.destination,f)):(l.status=Wl,l.fatalError=f)}function Pa(l,f,g){Wo(f,"Suspense");var x=f.blockedBoundary,R=f.blockedSegment,B=g.fallback,z=g.children,ne=new Set,we=Wc(l,ne),je=R.chunks.length,Ge=zl(l,je,we,R.formatContext,!1,!1);R.children.push(Ge),R.lastPushedText=!1;var nt=zl(l,0,null,R.formatContext,!1,!1);nt.parentFlushed=!0,f.blockedBoundary=we,f.blockedSegment=nt;try{if(dr(l,f,z),mo(nt.chunks,l.responseState,nt.lastPushedText,nt.textEmbedded),nt.status=Ca,Ti(we,nt),we.pendingTasks===0){Ji(f);return}}catch(en){nt.status=Ul,we.forceClientRender=!0,we.errorDigest=ms(l,en),ol(we,en)}finally{f.blockedBoundary=x,f.blockedSegment=R}var xt=Ks(l,B,x,Ge,ne,f.legacyContext,f.context,f.treeContext);xt.componentStack=f.componentStack,l.pingedTasks.push(xt),Ji(f)}function Gl(l,f,g,x){Wo(f,g);var R=f.blockedSegment,B=mi(R.chunks,g,x,l.responseState,R.formatContext);R.lastPushedText=!1;var z=R.formatContext;R.formatContext=zi(z,g,x),dr(l,f,B),R.formatContext=z,rn(R.chunks,g),R.lastPushedText=!1,Ji(f)}function sl(l){return l.prototype&&l.prototype.isReactComponent}function Oa(l,f,g,x,R){var B={};zs(f,B);var z=g(x,R);return Bc(g,x,z,R)}function zc(l,f,g,x,R){var B=g.render();g.props!==R&&(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 z=x.childContextTypes;if(z!=null){var ne=f.legacyContext,we=Mc(g,x,ne,z);f.legacyContext=we,Ur(l,f,B),f.legacyContext=ne;return}}Ur(l,f,B)}function Gu(l,f,g,x){Zi(f,g);var R=Ka(g,f.legacyContext),B=Fc(g,x,R);xo(B,g,x,R),zc(l,f,B,g,x),Ji(f)}var qu={},Zs={},Xu={},ql={},Bt=!1,al={},Ku=!1,Js=!1,Xl=!1;function Yc(l,f,g,x){var R;if(R=Ka(g,f.legacyContext),il(f,g),g.prototype&&typeof g.prototype.render=="function"){var B=zt(g)||"Unknown";qu[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),qu[B]=!0)}var z=Oa(l,f,g,x,R),ne=Bu();if(typeof z=="object"&&z!==null&&typeof z.render=="function"&&z.$$typeof===void 0){var we=zt(g)||"Unknown";Zs[we]||(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.",we,we,we),Zs[we]=!0)}if(typeof z=="object"&&z!==null&&typeof z.render=="function"&&z.$$typeof===void 0){{var je=zt(g)||"Unknown";Zs[je]||(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.",je,je,je),Zs[je]=!0)}xo(z,g,x,R),zc(l,f,z,g,x)}else if(Gc(g),ne){var Ge=f.treeContext,nt=1,xt=0;f.treeContext=Lu(Ge,nt,xt);try{Ur(l,f,z)}finally{f.treeContext=Ge}}else Ur(l,f,z);Ji(f)}function Gc(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 f=zt(l)||"Unknown";al[f]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",f),al[f]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var g=zt(l)||"Unknown";ql[g]||(i("%s: Function components do not support getDerivedStateFromProps.",g),ql[g]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var x=zt(l)||"Unknown";Xu[x]||(i("%s: Function components do not support contextType.",x),Xu[x]=!0)}}}function ni(l,f){if(l&&l.defaultProps){var g=cn({},f),x=l.defaultProps;for(var R in x)g[R]===void 0&&(g[R]=x[R]);return g}return f}function qc(l,f,g,x,R){il(f,g.render);var B=Oa(l,f,g.render,x,R),z=Bu();if(z){var ne=f.treeContext,we=1,je=0;f.treeContext=Lu(ne,we,je);try{Ur(l,f,B)}finally{f.treeContext=ne}}else Ur(l,f,B);Ji(f)}function Kl(l,f,g,x,R){var B=g.type,z=ni(B,x);Hr(l,f,B,z,R)}function Zu(l,f,g,x){g._context===void 0?g!==g.Consumer&&(Xl||(Xl=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):g=g._context;var R=x.children;typeof R!="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=fs(g),z=R(B);Ur(l,f,z)}function Ju(l,f,g,x){var R=g._context,B=x.value,z=x.children,ne;ne=f.context,f.context=wa(R,B),Ur(l,f,z),f.context=Za(R),ne!==f.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Xc(l,f,g,x,R){Wo(f,"Lazy");var B=g._payload,z=g._init,ne=z(B),we=ni(ne,x);Hr(l,f,ne,we,R),Ji(f)}function Hr(l,f,g,x,R){if(typeof g=="function")if(sl(g)){Gu(l,f,g,x);return}else{Yc(l,f,g,x);return}if(typeof g=="string"){Gl(l,f,g,x);return}switch(g){case rt:case lt:case J:case fe:case Bs:{Ur(l,f,x.children);return}case se:{Wo(f,"SuspenseList"),Ur(l,f,x.children),Ji(f);return}case st:throw new Error("ReactDOMServer does not yet support scope components.");case le:{Pa(l,f,x);return}}if(typeof g=="object"&&g!==null)switch(g.$$typeof){case K:{qc(l,f,g,x,R);return}case Ae:{Kl(l,f,g,x,R);return}case Se:{Ju(l,f,g,x);return}case Ce:{Zu(l,f,g,x);return}case Fe:{Xc(l,f,g,x);return}}var B="";throw(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(g==null?g:typeof g)+"."+B))}function vs(l,f){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Ku||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."),Ku=!0),l.entries===f&&(Js||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Js=!0)}function Ur(l,f,g){try{return Kc(l,f,g)}catch(x){throw typeof x=="object"&&x!==null&&typeof x.then=="function"||(Co=Co!==null?Co:Yl()),x}}function Kc(l,f,g){if(f.node=g,typeof g=="object"&&g!==null){switch(g.$$typeof){case _l:{var x=g,R=x.type,B=x.props,z=x.ref;Hr(l,f,R,B,z);return}case ha: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 Fe:{var ne=g,we=ne._payload,je=ne._init,Ge;try{Ge=je(we)}catch(Ra){throw typeof Ra=="object"&&Ra!==null&&typeof Ra.then=="function"&&Wo(f,"Lazy"),Ra}Ur(l,f,Ge);return}}if(qr(g)){Qs(l,f,g);return}var nt=Yn(g);if(nt){vs(g,nt);var xt=nt.call(g);if(xt){var en=xt.next();if(!en.done){var ir=[];do ir.push(en.value),en=xt.next();while(!en.done);Qs(l,f,ir);return}return}}var Eo=Object.prototype.toString.call(g);throw new Error("Objects are not valid as a React child (found: "+(Eo==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":Eo)+"). If you meant to render a collection of children, use an array instead.")}if(typeof g=="string"){var ws=f.blockedSegment;ws.lastPushedText=ei(f.blockedSegment.chunks,g,l.responseState,ws.lastPushedText);return}if(typeof g=="number"){var eo=f.blockedSegment;eo.lastPushedText=ei(f.blockedSegment.chunks,""+g,l.responseState,eo.lastPushedText);return}typeof g=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Qs(l,f,g){for(var x=g.length,R=0;R<x;R++){var B=f.treeContext;f.treeContext=Lu(B,x,R);try{dr(l,f,g[R])}finally{f.treeContext=B}}}function Zc(l,f,g){var x=f.blockedSegment,R=x.chunks.length,B=zl(l,R,null,x.formatContext,x.lastPushedText,!0);x.children.push(B),x.lastPushedText=!1;var z=Ks(l,f.node,f.blockedBoundary,B,f.abortSet,f.legacyContext,f.context,f.treeContext);f.componentStack!==null&&(z.componentStack=f.componentStack.parent);var ne=z.ping;g.then(ne,ne)}function dr(l,f,g){var x=f.blockedSegment.formatContext,R=f.legacyContext,B=f.context,z=null;z=f.componentStack;try{return Ur(l,f,g)}catch(ne){if(xi(),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"){Zc(l,f,ne),f.blockedSegment.formatContext=x,f.legacyContext=R,f.context=B,Bo(B),f.componentStack=z;return}else throw f.blockedSegment.formatContext=x,f.legacyContext=R,f.context=B,Bo(B),f.componentStack=z,ne}}function Jc(l,f,g,x){var R=ms(l,x);if(f===null?Qi(l,x):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=R,ol(f,x),f.parentFlushed&&l.clientRenderedBoundaries.push(f))),l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function Zl(l){var f=this,g=l.blockedBoundary,x=l.blockedSegment;x.status=Ea,Qc(f,g,x)}function Jl(l,f,g){var x=l.blockedBoundary,R=l.blockedSegment;if(R.status=Ea,x===null)f.allPendingTasks--,f.status!==Xs&&(f.status=Xs,f.destination!==null&&m(f.destination));else{if(x.pendingTasks--,!x.forceClientRender){x.forceClientRender=!0;var B=g===void 0?new Error("The render was aborted by the server without a reason."):g;x.errorDigest=f.onError(B);{var z="The server did not finish this Suspense boundary: ";B&&typeof B.message=="string"?B=z+B.message:B=z+String(B);var ne=Uo;Uo=l;try{ol(x,B)}finally{Uo=ne}}x.parentFlushed&&f.clientRenderedBoundaries.push(x)}if(x.fallbackAbortableTasks.forEach(function(je){return Jl(je,f,g)}),x.fallbackAbortableTasks.clear(),f.allPendingTasks--,f.allPendingTasks===0){var we=f.onAllReady;we()}}}function Ti(l,f){if(f.chunks.length===0&&f.children.length===1&&f.children[0].boundary===null){var g=f.children[0];g.id=f.id,g.parentFlushed=!0,g.status===Ca&&Ti(l,g)}else{var x=l.completedSegments;x.push(f)}}function Qc(l,f,g){if(f===null){if(g.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=g}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=ka;var x=l.onShellReady;x()}}else if(f.pendingTasks--,!f.forceClientRender){if(f.pendingTasks===0)g.parentFlushed&&g.status===Ca&&Ti(f,g),f.parentFlushed&&l.completedBoundaries.push(f),f.fallbackAbortableTasks.forEach(Zl,l),f.fallbackAbortableTasks.clear();else if(g.parentFlushed&&g.status===Ca){Ti(f,g);var R=f.completedSegments;R.length===1&&f.parentFlushed&&l.partialBoundaries.push(f)}}if(l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function ys(l,f){var g=f.blockedSegment;if(g.status===Vl){Bo(f.context);var x=null;x=Uo,Uo=f;try{Ur(l,f,f.node),mo(g.chunks,l.responseState,g.lastPushedText,g.textEmbedded),f.abortSet.delete(f),g.status=Ca,Qc(l,f.blockedBoundary,g)}catch(B){if(xi(),typeof B=="object"&&B!==null&&typeof B.then=="function"){var R=f.ping;B.then(R,R)}else f.abortSet.delete(f),g.status=Ul,Jc(l,f.blockedBoundary,g,B)}finally{Uo=x}}}function Ql(l){if(l.status!==Xs){var f=Hs(),g=rr.current;rr.current=$l;var x;x=qs.getCurrentStack,qs.getCurrentStack=Yl;var R=Ta;gs(l.responseState);try{var B=l.pingedTasks,z;for(z=0;z<B.length;z++){var ne=B[z];ys(l,ne)}B.splice(0,z),l.destination!==null&&eu(l,l.destination)}catch(we){ms(l,we),Qi(l,we)}finally{gs(R),rr.current=g,qs.getCurrentStack=x,g===$l&&Bo(f)}}}function bs(l,f,g){switch(g.parentFlushed=!0,g.status){case Vl:{var x=g.id=l.nextSegmentId++;return g.lastPushedText=!1,g.textEmbedded=!1,Jr(f,l.responseState,x)}case Ca:{g.status=Hl;for(var R=!0,B=g.chunks,z=0,ne=g.children,we=0;we<ne.length;we++){for(var je=ne[we];z<je.index;z++)d(f,B[z]);R=ea(l,f,je)}for(;z<B.length-1;z++)d(f,B[z]);return z<B.length&&(R=p(f,B[z])),R}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ea(l,f,g){var x=g.boundary;if(x===null)return bs(l,f,g);if(x.parentFlushed=!0,x.forceClientRender)return Du(f,l.responseState,x.errorDigest,x.errorMessage,x.errorComponentStack),bs(l,f,g),vo(f,l.responseState);if(x.pendingTasks>0){x.rootSegmentID=l.nextSegmentId++,x.completedSegments.length>0&&l.partialBoundaries.push(x);var R=x.id=ar(l.responseState);return h(f,l.responseState,R),bs(l,f,g),P(f,l.responseState)}else{if(x.byteSize>l.progressiveChunkSize)return x.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(x),h(f,l.responseState,x.id),bs(l,f,g),P(f,l.responseState);Ya(f,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 z=B[0];return ea(l,f,z),da(f,l.responseState)}}function qf(l,f,g){return Qr(f,l.responseState,g.id,g.errorDigest,g.errorMessage,g.errorComponentStack)}function Qu(l,f,g){return po(f,l.responseState,g.formatContext,g.id),ea(l,f,g),Sr(f,g.formatContext)}function ll(l,f,g){for(var x=g.completedSegments,R=0;R<x.length;R++){var B=x[R];ec(l,f,g,B)}return x.length=0,An(f,l.responseState,g.id,g.rootSegmentID)}function ul(l,f,g){for(var x=g.completedSegments,R=0;R<x.length;R++){var B=x[R];if(!ec(l,f,g,B))return R++,x.splice(0,R),!1}return x.splice(0,R),!0}function ec(l,f,g,x){if(x.status===Hl)return!0;var R=x.id;if(R===-1){var B=x.id=g.rootSegmentID;if(B===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Qu(l,f,x)}else return Qu(l,f,x),Ye(f,l.responseState,R)}function eu(l,f){try{var g=l.completedRootSegment;g!==null&&l.pendingRootTasks===0&&(ea(l,f,g),l.completedRootSegment=null,Gt(f,l.responseState));var x=l.clientRenderedBoundaries,R;for(R=0;R<x.length;R++){var B=x[R];if(!qf(l,f,B)){l.destination=null,R++,x.splice(0,R);return}}x.splice(0,R);var z=l.completedBoundaries;for(R=0;R<z.length;R++){var ne=z[R];if(!ll(l,f,ne)){l.destination=null,R++,z.splice(0,R);return}}z.splice(0,R);var we=l.partialBoundaries;for(R=0;R<we.length;R++){var je=we[R];if(!ul(l,f,je)){l.destination=null,R++,we.splice(0,R);return}}we.splice(0,R);var Ge=l.completedBoundaries;for(R=0;R<Ge.length;R++){var nt=Ge[R];if(!ll(l,f,nt)){l.destination=null,R++,Ge.splice(0,R);return}}Ge.splice(0,R)}finally{l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),m(f))}}function tc(l){a(function(){return Ql(l)})}function ef(l,f){if(l.status===Wl){l.status=Xs,I(f,l.fatalError);return}if(l.status!==Xs&&l.destination===null){l.destination=f;try{eu(l,f)}catch(g){ms(l,g),Qi(l,g)}}}function Wr(l,f){try{var g=l.abortableTasks;g.forEach(function(x){return Jl(x,l,f)}),g.clear(),l.destination!==null&&eu(l,l.destination)}catch(x){ms(l,x),Qi(l,x)}}function Ii(){}function tf(l,f,g,x){var R=!1,B=null,z="",ne={push:function(nt){return nt!==null&&(z+=nt),!0},destroy:function(nt){R=!0,B=nt}},we=!1;function je(){we=!0}var Ge=Da(l,fa(g,f?f.identifierPrefix:void 0),ss(),1/0,Ii,void 0,je);if(tc(Ge),Wr(Ge,x),ef(Ge,ne),R)throw B;if(!we)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 z}function Xf(l,f){return tf(l,f,!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 cl(l,f){return tf(l,f,!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 _a(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function v(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}lc.renderToNodeStream=_a,lc.renderToStaticMarkup=cl,lc.renderToStaticNodeStream=v,lc.renderToString=Xf,lc.version=e}()),lc}var Mh={};/**
|
|
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 b1;function M4(){return b1||(b1=1,process.env.NODE_ENV!=="production"&&function(){var t=q,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(v){{for(var l=arguments.length,f=new Array(l>1?l-1:0),g=1;g<l;g++)f[g-1]=arguments[g];o("warn",v,f)}}function i(v){{for(var l=arguments.length,f=new Array(l>1?l-1:0),g=1;g<l;g++)f[g-1]=arguments[g];o("error",v,f)}}function o(v,l,f){{var g=n.ReactDebugCurrentFrame,x=g.getStackAddendum();x!==""&&(l+="%s",f=f.concat([x]));var R=f.map(function(B){return String(B)});R.unshift("Warning: "+l),Function.prototype.apply.call(console[v],console,R)}}function a(v){v()}var c=512,d=null,p=0;function w(v){d=new Uint8Array(c),p=0}function m(v,l){if(l.length!==0){if(l.length>c){p>0&&(v.enqueue(new Uint8Array(d.buffer,0,p)),d=new Uint8Array(c),p=0),v.enqueue(l);return}var f=l,g=d.length-p;g<f.length&&(g===0?v.enqueue(d):(d.set(f.subarray(0,g),p),v.enqueue(d),f=f.subarray(g)),d=new Uint8Array(c),p=0),d.set(f,p),p+=f.length}}function T(v,l){return m(v,l),!0}function E(v){d&&p>0&&(v.enqueue(new Uint8Array(d.buffer,0,p)),d=null,p=0)}function I(v){v.close()}var A=new TextEncoder;function L(v){return A.encode(v)}function _(v){return A.encode(v)}function U(v,l){typeof v.error=="function"?v.error(l):v.close()}function G(v){{var l=typeof Symbol=="function"&&Symbol.toStringTag,f=l&&v[Symbol.toStringTag]||v.constructor.name||"Object";return f}}function re(v){try{return Z(v),!1}catch{return!0}}function Z(v){return""+v}function ue(v,l){if(re(v))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,G(v)),Z(v)}function S(v,l){if(re(v))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,G(v)),Z(v)}function ae(v){if(re(v))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",G(v)),Z(v)}var ce=Object.prototype.hasOwnProperty,Ue=0,_e=1,Le=2,Ve=3,We=4,he=5,Ee=6,Oe=":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",Ne=Oe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tt=new RegExp("^["+Oe+"]["+Ne+"]*$"),me={},ke={};function ze(v){return ce.call(ke,v)?!0:ce.call(me,v)?!1:tt.test(v)?(ke[v]=!0,!0):(me[v]=!0,i("Invalid attribute name: `%s`",v),!1)}function et(v,l,f,g){if(f!==null&&f.type===Ue)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(f!==null)return!f.acceptsBooleans;var x=v.toLowerCase().slice(0,5);return x!=="data-"&&x!=="aria-"}default:return!1}}function qe(v){return Ke.hasOwnProperty(v)?Ke[v]:null}function Je(v,l,f,g,x,R,B){this.acceptsBooleans=l===Le||l===Ve||l===We,this.attributeName=g,this.attributeNamespace=x,this.mustUseProperty=f,this.propertyName=v,this.type=l,this.sanitizeURL=R,this.removeEmptyString=B}var Ke={},ot=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ot.forEach(function(v){Ke[v]=new Je(v,Ue,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var l=v[0],f=v[1];Ke[l]=new Je(l,_e,!1,f,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){Ke[v]=new Je(v,Le,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){Ke[v]=new Je(v,Le,!1,v,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(v){Ke[v]=new Je(v,Ve,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){Ke[v]=new Je(v,Ve,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){Ke[v]=new Je(v,We,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){Ke[v]=new Je(v,Ee,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){Ke[v]=new Je(v,he,!1,v.toLowerCase(),null,!1,!1)});var ct=/[\-\:]([a-z])/g,pt=function(v){return v[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(v){var l=v.replace(ct,pt);Ke[l]=new Je(l,_e,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(v){var l=v.replace(ct,pt);Ke[l]=new Je(l,_e,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var l=v.replace(ct,pt);Ke[l]=new Je(l,_e,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){Ke[v]=new Je(v,_e,!1,v.toLowerCase(),null,!1,!1)});var ft="xlinkHref";Ke[ft]=new Je("xlinkHref",_e,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){Ke[v]=new Je(v,_e,!1,v.toLowerCase(),null,!0,!0)});var yt={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 Qe(v,l){return v+l.charAt(0).toUpperCase()+l.substring(1)}var At=["Webkit","ms","Moz","O"];Object.keys(yt).forEach(function(v){At.forEach(function(l){yt[Qe(l,v)]=yt[v]})});var Mt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Vn(v,l){Mt[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),l.onChange||l.readOnly||l.disabled||l.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function mr(v,l){if(v.indexOf("-")===-1)return typeof l.is=="string";switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Sn={},$i=new RegExp("^(aria)-["+Ne+"]*$"),kr=new RegExp("^(aria)[A-Z]["+Ne+"]*$");function Jn(v,l){{if(ce.call(Sn,l)&&Sn[l])return!0;if(kr.test(l)){var f="aria-"+l.slice(4).toLowerCase(),g=Hn.hasOwnProperty(f)?f:null;if(g==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Sn[l]=!0,!0;if(l!==g)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,g),Sn[l]=!0,!0}if($i.test(l)){var x=l.toLowerCase(),R=Hn.hasOwnProperty(x)?x:null;if(R==null)return Sn[l]=!0,!1;if(l!==R)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,R),Sn[l]=!0,!0}}return!0}function sn(v,l){{var f=[];for(var g in l){var x=Jn(v,g);x||f.push(g)}var R=f.map(function(B){return"`"+B+"`"}).join(", ");f.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",R,v):f.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",R,v)}}function fn(v,l){mr(v,l)||sn(v,l)}var dn=!1;function ut(v,l){{if(v!=="input"&&v!=="textarea"&&v!=="select")return;l!=null&&l.value===null&&!dn&&(dn=!0,v==="select"&&l.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",v):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",v))}}var Dn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},oi=function(){};{var on={},Vi=/^on./,Hi=/^on[^A-Z]/,Ui=new RegExp("^(aria)-["+Ne+"]*$"),Dr=new RegExp("^(aria)[A-Z]["+Ne+"]*$");oi=function(v,l,f,g){if(ce.call(on,l)&&on[l])return!0;var x=l.toLowerCase();if(x==="onfocusin"||x==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),on[l]=!0,!0;if(g!=null){var R=g.registrationNameDependencies,B=g.possibleRegistrationNames;if(R.hasOwnProperty(l))return!0;var z=B.hasOwnProperty(x)?B[x]:null;if(z!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,z),on[l]=!0,!0;if(Vi.test(l))return i("Unknown event handler property `%s`. It will be ignored.",l),on[l]=!0,!0}else if(Vi.test(l))return Hi.test(l)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),on[l]=!0,!0;if(Ui.test(l)||Dr.test(l))return!0;if(x==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),on[l]=!0,!0;if(x==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),on[l]=!0,!0;if(x==="is"&&f!==null&&f!==void 0&&typeof f!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof f),on[l]=!0,!0;if(typeof f=="number"&&isNaN(f))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),on[l]=!0,!0;var ne=qe(l),we=ne!==null&&ne.type===Ue;if(Dn.hasOwnProperty(x)){var je=Dn[x];if(je!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,je),on[l]=!0,!0}else if(!we&&l!==x)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",l,x),on[l]=!0,!0;return typeof f=="boolean"&&et(l,f,ne)?(f?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()}.',f,l,l,f,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.',f,l,l,f,l,l,l),on[l]=!0,!0):we?!0:et(l,f,ne)?(on[l]=!0,!1):((f==="false"||f==="true")&&ne!==null&&ne.type===Ve&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",f,l,f==="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,f),on[l]=!0),!0)}}var Nn=function(v,l,f){{var g=[];for(var x in l){var R=oi(v,x,l[x],f);R||g.push(x)}var B=g.map(function(z){return"`"+z+"`"}).join(", ");g.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,v):g.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,v)}};function Pr(v,l,f){mr(v,l)||Nn(v,l,f)}var vr=function(){};{var zr=/^(?:webkit|moz|o)[A-Z]/,Yr=/^-ms-/,Ao=/-(.)/g,Un=/;\s*$/,Gr={},Qn={},Wt=!1,si=!1,Wi=function(v){return v.replace(Ao,function(l,f){return f.toUpperCase()})},Pn=function(v){Gr.hasOwnProperty(v)&&Gr[v]||(Gr[v]=!0,i("Unsupported style property %s. Did you mean %s?",v,Wi(v.replace(Yr,"ms-"))))},hn=function(v){Gr.hasOwnProperty(v)&&Gr[v]||(Gr[v]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",v,v.charAt(0).toUpperCase()+v.slice(1)))},ai=function(v,l){Qn.hasOwnProperty(l)&&Qn[l]||(Qn[l]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,v,l.replace(Un,"")))},li=function(v,l){Wt||(Wt=!0,i("`NaN` is an invalid value for the `%s` css style property.",v))},Tn=function(v,l){si||(si=!0,i("`Infinity` is an invalid value for the `%s` css style property.",v))};vr=function(v,l){v.indexOf("-")>-1?Pn(v):zr.test(v)?hn(v):Un.test(l)&&ai(v,l),typeof l=="number"&&(isNaN(l)?li(v,l):isFinite(l)||Tn(v,l))}}var so=vr,yr=/["'&<>]/;function ui(v){ae(v);var l=""+v,f=yr.exec(l);if(!f)return l;var g,x="",R,B=0;for(R=f.index;R<l.length;R++){switch(l.charCodeAt(R)){case 34:g=""";break;case 38:g="&";break;case 39:g="'";break;case 60:g="<";break;case 62:g=">";break;default:continue}B!==R&&(x+=l.substring(B,R)),B=R+1,x+=g}return B!==R?x+l.substring(B,R):x}function an(v){return typeof v=="boolean"||typeof v=="number"?""+v:ui(v)}var Di=/([A-Z])/g,Ms=/^ms-/;function Ls(v){return v.replace(Di,"-$1").toLowerCase().replace(Ms,"-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 lo(v){!ao&&qr.test(v)&&(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(v)))}var Pi=Array.isArray;function er(v){return Pi(v)}var Or=_("<script>"),_r=_("<\/script>"),ci=_('<script src="'),Xr=_('<script type="module" src="'),br=_('" async=""><\/script>');function Rr(v){return ae(v),(""+v).replace(tr,zi)}var tr=/(<\/|<)(s)(cript)/gi,zi=function(v,l,f,g){return""+l+(f==="s"?"\\u0073":"\\u0053")+g};function Oi(v,l,f,g,x){var R=v===void 0?"":v,B=l===void 0?Or:_('<script nonce="'+an(l)+'">'),z=[];if(f!==void 0&&z.push(B,L(Rr(f)),_r),g!==void 0)for(var ne=0;ne<g.length;ne++)z.push(ci,L(an(g[ne])),br);if(x!==void 0)for(var we=0;we<x.length;we++)z.push(Xr,L(an(x[we])),br);return{bootstrapChunks:z,startInlineScript:B,placeholderPrefix:_(R+"P:"),segmentPrefix:_(R+"S:"),boundaryPrefix:R+"B:",idPrefix:R,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var ar=0,yn=1,Ar=2,Ir=3,fi=4,di=5,wr=6,Kr=7;function Wn(v,l){return{insertionMode:v,selectedValue:l}}function hi(v){var l=v==="http://www.w3.org/2000/svg"?Ar:v==="http://www.w3.org/1998/Math/MathML"?Ir:ar;return Wn(l,null)}function pi(v,l,f){switch(l){case"select":return Wn(yn,f.value!=null?f.value:f.defaultValue);case"svg":return Wn(Ar,null);case"math":return Wn(Ir,null);case"foreignObject":return Wn(yn,null);case"table":return Wn(fi,null);case"thead":case"tbody":case"tfoot":return Wn(di,null);case"colgroup":return Wn(Kr,null);case"tr":return Wn(wr,null)}return v.insertionMode>=fi||v.insertionMode===ar?Wn(yn,null):v}var _i=null;function nn(v){var l=v.nextSuspenseID++;return _(v.boundaryPrefix+l.toString(16))}function jn(v,l,f){var g=v.idPrefix,x=":"+g+"R"+l;return f>0&&(x+="H"+f.toString(32)),x+":"}function Cn(v){return an(v)}var uo=_("<!-- -->");function On(v,l,f,g){return l===""?g:(g&&v.push(uo),v.push(L(Cn(l))),!0)}function _n(v,l,f,g){f&&g&&v.push(uo)}var k=new Map;function N(v){var l=k.get(v);if(l!==void 0)return l;var f=_(an(Ls(v)));return k.set(v,f),f}var Y=_(' style="'),ee=_(":"),Te=_(";");function ge(v,l,f){if(typeof f!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var g=!0;for(var x in f)if(ce.call(f,x)){var R=f[x];if(!(R==null||typeof R=="boolean"||R==="")){var B=void 0,z=void 0,ne=x.indexOf("--")===0;ne?(B=L(an(x)),S(R,x),z=L(an((""+R).trim()))):(so(x,R),B=N(x),typeof R=="number"?R!==0&&!ce.call(yt,x)?z=L(R+"px"):z=L(""+R):(S(R,x),z=L(an((""+R).trim())))),g?(g=!1,v.push(Y,B,ee,z)):v.push(Te,B,ee,z)}}g||v.push(gt)}var Pe=_(" "),Xe=_('="'),gt=_('"'),mt=_('=""');function dt(v,l,f,g){switch(f){case"style":{ge(v,l,g);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(f.length>2&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N"))){var x=qe(f);if(x!==null){switch(typeof g){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}var R=x.attributeName,B=L(R);switch(x.type){case Ve:g&&v.push(Pe,B,mt);return;case We:g===!0?v.push(Pe,B,mt):g===!1||v.push(Pe,B,Xe,L(an(g)),gt);return;case he:isNaN(g)||v.push(Pe,B,Xe,L(an(g)),gt);break;case Ee:!isNaN(g)&&g>=1&&v.push(Pe,B,Xe,L(an(g)),gt);break;default:x.sanitizeURL&&(ue(g,R),g=""+g,lo(g)),v.push(Pe,B,Xe,L(an(g)),gt)}}else if(ze(f)){switch(typeof g){case"function":case"symbol":return;case"boolean":{var z=f.toLowerCase().slice(0,5);if(z!=="data-"&&z!=="aria-")return}}v.push(Pe,L(f),Xe,L(an(g)),gt)}}}var Ft=_(">"),Bn=_("/>");function zn(v,l,f){if(l!=null){if(f!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var g=l.__html;g!=null&&(ae(g),v.push(L(""+g)))}}var En=!1,Zr=!1,lr=!1,Yi=!1,gi=!1,Gi=!1,Mr=!1;function qi(v,l){{var f=v[l];if(f!=null){var g=er(f);v.multiple&&!g?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!v.multiple&&g&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Ua(v,l,f){Vn("select",l),qi(l,"value"),qi(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!lr&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),lr=!0),v.push(ur("select"));var g=null,x=null;for(var R in l)if(ce.call(l,R)){var B=l[R];if(B==null)continue;switch(R){case"children":g=B;break;case"dangerouslySetInnerHTML":x=B;break;case"defaultValue":case"value":break;default:dt(v,f,R,B);break}}return v.push(Ft),zn(v,x,g),g}function Fs(v){var l="";return t.Children.forEach(v,function(f){f!=null&&(l+=f,!gi&&typeof f!="string"&&typeof f!="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 rs=_(' selected=""');function xr(v,l,f,g){var x=g.selectedValue;v.push(ur("option"));var R=null,B=null,z=null,ne=null;for(var we in l)if(ce.call(l,we)){var je=l[we];if(je==null)continue;switch(we){case"children":R=je;break;case"selected":z=je,Mr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Mr=!0);break;case"dangerouslySetInnerHTML":ne=je;break;case"value":B=je;default:dt(v,f,we,je);break}}if(x!=null){var Ge;if(B!==null?(ue(B,"value"),Ge=""+B):(ne!==null&&(Gi||(Gi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Ge=Fs(R)),er(x))for(var nt=0;nt<x.length;nt++){ue(x[nt],"value");var xt=""+x[nt];if(xt===Ge){v.push(rs);break}}else ue(x,"select.value"),""+x===Ge&&v.push(rs)}else z&&v.push(rs);return v.push(Ft),zn(v,ne,R),R}function Wa(v,l,f){Vn("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&&!En&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),En=!0),v.push(ur("input"));var g=null,x=null,R=null,B=null;for(var z in l)if(ce.call(l,z)){var ne=l[z];if(ne==null)continue;switch(z){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=ne;break;case"defaultValue":x=ne;break;case"checked":R=ne;break;case"value":g=ne;break;default:dt(v,f,z,ne);break}}return R!==null?dt(v,f,"checked",R):B!==null&&dt(v,f,"checked",B),g!==null?dt(v,f,"value",g):x!==null&&dt(v,f,"value",x),v.push(Bn),null}function mi(v,l,f){Vn("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Yi&&(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"),Yi=!0),v.push(ur("textarea"));var g=null,x=null,R=null;for(var B in l)if(ce.call(l,B)){var z=l[B];if(z==null)continue;switch(B){case"children":R=z;break;case"value":g=z;break;case"defaultValue":x=z;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:dt(v,f,B,z);break}}if(g===null&&x!==null&&(g=x),v.push(Ft),R!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(er(R)){if(R.length>1)throw new Error("<textarea> can only have at most one child.");ae(R[0]),g=""+R[0]}ae(R),g=""+R}return typeof g=="string"&&g[0]===`
|
|
105
|
-
`&&v.push(Ri),g!==null&&(ue(g,"value"),v.push(L(Cn(""+g)))),null}function Ns(v,l,f,g){v.push(ur(f));for(var x in l)if(ce.call(l,x)){var R=l[x];if(R==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error(f+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(v,g,x,R);break}}return v.push(Bn),null}function is(v,l,f){v.push(ur("menuitem"));for(var g in l)if(ce.call(l,g)){var x=l[g];if(x==null)continue;switch(g){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:dt(v,f,g,x);break}}return v.push(Ft),null}function rn(v,l,f){v.push(ur("title"));var g=null;for(var x in l)if(ce.call(l,x)){var R=l[x];if(R==null)continue;switch(x){case"children":g=R;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:dt(v,f,x,R);break}}v.push(Ft);{var B=Array.isArray(g)&&g.length<2?g[0]||null:g;Array.isArray(g)&&g.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):B!=null&&B.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):B!=null&&typeof B!="string"&&typeof B!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return g}function Gt(v,l,f,g){v.push(ur(f));var x=null,R=null;for(var B in l)if(ce.call(l,B)){var z=l[B];if(z==null)continue;switch(B){case"children":x=z;break;case"dangerouslySetInnerHTML":R=z;break;default:dt(v,g,B,z);break}}return v.push(Ft),zn(v,R,x),typeof x=="string"?(v.push(L(Cn(x))),null):x}function Kt(v,l,f,g){v.push(ur(f));var x=null,R=null;for(var B in l)if(ce.call(l,B)){var z=l[B];if(z==null)continue;switch(B){case"children":x=z;break;case"dangerouslySetInnerHTML":R=z;break;case"style":ge(v,g,z);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ze(B)&&typeof z!="function"&&typeof z!="symbol"&&v.push(Pe,L(B),Xe,L(an(z)),gt);break}}return v.push(Ft),zn(v,R,x),x}var Ri=_(`
|
|
106
|
-
`);function Jr(v,l,f,g){v.push(ur(f));var x=null,R=null;for(var B in l)if(ce.call(l,B)){var z=l[B];if(z==null)continue;switch(B){case"children":x=z;break;case"dangerouslySetInnerHTML":R=z;break;default:dt(v,g,B,z);break}}if(v.push(Ft),R!=null){if(x!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof R!="object"||!("__html"in R))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 ne=R.__html;ne!=null&&(typeof ne=="string"&&ne.length>0&&ne[0]===`
|
|
107
|
-
`?v.push(Ri,L(ne)):(ae(ne),v.push(L(""+ne))))}return typeof x=="string"&&x[0]===`
|
|
108
|
-
`&&v.push(Ri),x}var Io=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,vi=new Map;function ur(v){var l=vi.get(v);if(l===void 0){if(!Io.test(v))throw new Error("Invalid tag: "+v);l=_("<"+v),vi.set(v,l)}return l}var js=_("<!DOCTYPE html>");function co(v,l,f,g,x){switch(fn(l,f),ut(l,f),Pr(l,f,null),!f.suppressContentEditableWarning&&f.contentEditable&&f.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!==Ar&&x.insertionMode!==Ir&&l.indexOf("-")===-1&&typeof f.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 Ua(v,f,g);case"option":return xr(v,f,g,x);case"textarea":return mi(v,f,g);case"input":return Wa(v,f,g);case"menuitem":return is(v,f,g);case"title":return rn(v,f,g);case"listing":case"pre":return Jr(v,f,l,g);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Ns(v,f,l,g);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Gt(v,f,l,g);case"html":return x.insertionMode===ar&&v.push(js),Gt(v,f,l,g);default:return l.indexOf("-")===-1&&typeof f.is!="string"?Gt(v,f,l,g):Kt(v,f,l,g)}}var la=_("</"),ln=_(">");function Mo(v,l,f){switch(l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:v.push(la,L(l),ln)}}function yi(v,l){for(var f=l.bootstrapChunks,g=0;g<f.length-1;g++)m(v,f[g]);return g<f.length?T(v,f[g]):!0}var ua=_('<template id="'),fo=_('"></template>');function cr(v,l,f){m(v,ua),m(v,l.placeholderPrefix);var g=L(f.toString(16));return m(v,g),T(v,fo)}var h=_("<!--$-->"),y=_('<!--$?--><template id="'),C=_('"></template>'),P=_("<!--$!-->"),F=_("<!--/$-->"),j=_("<template"),V=_('"'),oe=_(' data-dgst="'),te=_(' data-msg="'),pe=_(' data-stck="'),De=_("></template>");function Re(v,l){return T(v,h)}function xe(v,l,f){if(m(v,y),f===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(v,f),T(v,C)}function Be(v,l,f,g,x){var R;return R=T(v,P),m(v,j),f&&(m(v,oe),m(v,L(an(f))),m(v,V)),g&&(m(v,te),m(v,L(an(g))),m(v,V)),x&&(m(v,pe),m(v,L(an(x))),m(v,V)),R=T(v,De),R}function it(v,l){return T(v,F)}function Tt(v,l){return T(v,F)}function Et(v,l){return T(v,F)}var Rn=_('<div hidden id="'),un=_('">'),Lr=_("</div>"),Fr=_('<svg aria-hidden="true" style="display:none" id="'),Lt=_('">'),Nr=_("</svg>"),jt=_('<math aria-hidden="true" style="display:none" id="'),Qt=_('">'),ho=_("</math>"),po=_('<table hidden id="'),Sr=_('">'),D=_("</table>"),M=_('<table hidden><tbody id="'),H=_('">'),Q=_("</tbody></table>"),ye=_('<table hidden><tr id="'),be=_('">'),Ie=_("</tr></table>"),Ye=_('<table hidden><colgroup id="'),ht=_('">'),_t=_("</colgroup></table>");function St(v,l,f,g){switch(f.insertionMode){case ar:case yn:return m(v,Rn),m(v,l.segmentPrefix),m(v,L(g.toString(16))),T(v,un);case Ar:return m(v,Fr),m(v,l.segmentPrefix),m(v,L(g.toString(16))),T(v,Lt);case Ir:return m(v,jt),m(v,l.segmentPrefix),m(v,L(g.toString(16))),T(v,Qt);case fi:return m(v,po),m(v,l.segmentPrefix),m(v,L(g.toString(16))),T(v,Sr);case di:return m(v,M),m(v,l.segmentPrefix),m(v,L(g.toString(16))),T(v,H);case wr:return m(v,ye),m(v,l.segmentPrefix),m(v,L(g.toString(16))),T(v,be);case Kr:return m(v,Ye),m(v,l.segmentPrefix),m(v,L(g.toString(16))),T(v,ht);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function vt(v,l){switch(l.insertionMode){case ar:case yn:return T(v,Lr);case Ar:return T(v,Nr);case Ir:return T(v,ho);case fi:return T(v,D);case di:return T(v,Q);case wr:return T(v,Ie);case Kr:return T(v,_t);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var An="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",bn='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',$n='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',os=_(An+';$RS("'),ca=_('$RS("'),go=_('","'),Qr=_('")<\/script>');function za(v,l,f){m(v,l.startInlineScript),l.sentCompleteSegmentFunction?m(v,ca):(l.sentCompleteSegmentFunction=!0,m(v,os)),m(v,l.segmentPrefix);var g=L(f.toString(16));return m(v,g),m(v,go),m(v,l.placeholderPrefix),m(v,g),T(v,Qr)}var Ai=_(bn+';$RC("'),fa=_('$RC("'),ss=_('","'),ei=_('")<\/script>');function mo(v,l,f,g){if(m(v,l.startInlineScript),l.sentCompleteBoundaryFunction?m(v,fa):(l.sentCompleteBoundaryFunction=!0,m(v,Ai)),f===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var x=L(g.toString(16));return m(v,f),m(v,ss),m(v,l.segmentPrefix),m(v,x),T(v,ei)}var Ya=_($n+';$RX("'),Du=_('$RX("'),da=_('"'),vo=_(")<\/script>"),cn=_(",");function _l(v,l,f,g,x,R){if(m(v,l.startInlineScript),l.sentClientRenderFunction?m(v,Du):(l.sentClientRenderFunction=!0,m(v,Ya)),f===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(v,f),m(v,da),(g||x||R)&&(m(v,cn),m(v,L(Bs(g||"")))),(x||R)&&(m(v,cn),m(v,L(Bs(x||"")))),R&&(m(v,cn),m(v,L(Bs(R)))),T(v,vo)}var ha=/[<\u2028\u2029]/g;function Bs(v){var l=JSON.stringify(v);return l.replace(ha,function(f){switch(f){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"),Ce=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),Ae=Symbol.for("react.context"),Fe=Symbol.for("react.forward_ref"),st=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),wt=Symbol.for("react.scope"),Vt=Symbol.for("react.debug_trace_mode"),Yn=Symbol.for("react.legacy_hidden"),nr=Symbol.for("react.default_value"),In=Symbol.iterator,zt="@@iterator";function jr(v){if(v===null||typeof v!="object")return null;var l=In&&v[In]||v[zt];return typeof l=="function"?l:null}function kt(v,l,f){var g=v.displayName;if(g)return g;var x=l.displayName||l.name||"";return x!==""?f+"("+x+")":f}function Pu(v){return v.displayName||"Context"}function pn(v){if(v==null)return null;if(typeof v.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case Ce:return"Fragment";case Se:return"Portal";case le:return"Profiler";case K:return"StrictMode";case st:return"Suspense";case lt:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case Ae:var l=v;return Pu(l)+".Consumer";case se:var f=v;return Pu(f._context)+".Provider";case Fe:return kt(v,v.render,"ForwardRef");case rt:var g=v.displayName||null;return g!==null?g:pn(v.type)||"Memo";case It:{var x=v,R=x._payload,B=x._init;try{return pn(B(R))}catch{return null}}}return null}var Lo=0,Ou,_u,Ru,pa,Fo,Ga,qa;function $s(){}$s.__reactDisabledLog=!0;function ga(){{if(Lo===0){Ou=console.log,_u=console.info,Ru=console.warn,pa=console.error,Fo=console.group,Ga=console.groupCollapsed,qa=console.groupEnd;var v={configurable:!0,enumerable:!0,value:$s,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}Lo++}}function Rl(){{if(Lo--,Lo===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},v,{value:Ou}),info:J({},v,{value:_u}),warn:J({},v,{value:Ru}),error:J({},v,{value:pa}),group:J({},v,{value:Fo}),groupCollapsed:J({},v,{value:Ga}),groupEnd:J({},v,{value:qa})})}Lo<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var No=n.ReactCurrentDispatcher,Al;function Xi(v,l,f){{if(Al===void 0)try{throw Error()}catch(x){var g=x.stack.trim().match(/\n( *(at )?)/);Al=g&&g[1]||""}return`
|
|
109
|
-
`+Al+v}}var jo=!1,as;{var jf=typeof WeakMap=="function"?WeakMap:Map;as=new jf}function Xa(v,l){if(!v||jo)return"";{var f=as.get(v);if(f!==void 0)return f}var g;jo=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=No.current,No.current=null,ga();try{if(l){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(en){g=en}Reflect.construct(v,[],B)}else{try{B.call()}catch(en){g=en}v.call(B.prototype)}}else{try{throw Error()}catch(en){g=en}v()}}catch(en){if(en&&g&&typeof en.stack=="string"){for(var z=en.stack.split(`
|
|
110
|
-
`),ne=g.stack.split(`
|
|
111
|
-
`),we=z.length-1,je=ne.length-1;we>=1&&je>=0&&z[we]!==ne[je];)je--;for(;we>=1&&je>=0;we--,je--)if(z[we]!==ne[je]){if(we!==1||je!==1)do if(we--,je--,je<0||z[we]!==ne[je]){var Ge=`
|
|
112
|
-
`+z[we].replace(" at new "," at ");return v.displayName&&Ge.includes("<anonymous>")&&(Ge=Ge.replace("<anonymous>",v.displayName)),typeof v=="function"&&as.set(v,Ge),Ge}while(we>=1&&je>=0);break}}}finally{jo=!1,No.current=R,Rl(),Error.prepareStackTrace=x}var nt=v?v.displayName||v.name:"",xt=nt?Xi(nt):"";return typeof v=="function"&&as.set(v,xt),xt}function Ic(v,l,f){return Xa(v,!0)}function ma(v,l,f){return Xa(v,!1)}function Vs(v){var l=v.prototype;return!!(l&&l.isReactComponent)}function va(v,l,f){if(v==null)return"";if(typeof v=="function")return Xa(v,Vs(v));if(typeof v=="string")return Xi(v);switch(v){case st:return Xi("Suspense");case lt:return Xi("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case Fe:return ma(v.render);case rt:return va(v.type,l,f);case It:{var g=v,x=g._payload,R=g._init;try{return va(R(x),l,f)}catch{}}}return""}var Il={},ya=n.ReactDebugCurrentFrame;function Ka(v){if(v){var l=v._owner,f=va(v.type,v._source,l?l.type:null);ya.setExtraStackFrame(f)}else ya.setExtraStackFrame(null)}function Mc(v,l,f,g,x){{var R=Function.call.bind(ce);for(var B in v)if(R(v,B)){var z=void 0;try{if(typeof v[B]!="function"){var ne=Error((g||"React class")+": "+f+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ne.name="Invariant Violation",ne}z=v[B](l,B,g,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){z=we}z&&!(z instanceof Error)&&(Ka(x),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",f,B,typeof z),Ka(null)),z instanceof Error&&!(z.message in Il)&&(Il[z.message]=!0,Ka(x),i("Failed %s type: %s",f,z.message),Ka(null))}}}var wn;wn={};var Gn={};Object.freeze(Gn);function ls(v,l){{var f=v.contextTypes;if(!f)return Gn;var g={};for(var x in f)g[x]=l[x];{var R=pn(v)||"Unknown";Mc(f,g,"context",R)}return g}}function Au(v,l,f,g){{if(typeof v.getChildContext!="function"){{var x=pn(l)||"Unknown";wn[x]||(wn[x]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",x,x))}return f}var R=v.getChildContext();for(var B in R)if(!(B in g))throw new Error((pn(l)||"Unknown")+'.getChildContext(): key "'+B+'" is not defined in childContextTypes.');{var z=pn(l)||"Unknown";Mc(g,R,"child context",z)}return J({},f,R)}}var us;us={};var Ml=null,yo=null;function cs(v){v.context._currentValue=v.parentValue}function ba(v){v.context._currentValue=v.value}function bo(v,l){if(v!==l){cs(v);var f=v.parent,g=l.parent;if(f===null){if(g!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(g===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");bo(f,g)}ba(l)}}function Bo(v){cs(v);var l=v.parent;l!==null&&Bo(l)}function wa(v){var l=v.parent;l!==null&&wa(l),ba(v)}function Za(v,l){cs(v);var f=v.parent;if(f===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");f.depth===l.depth?bo(f,l):Za(f,l)}function Hs(v,l){var f=l.parent;if(f===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");v.depth===f.depth?bo(v,f):Hs(v,f),ba(l)}function fs(v){var l=yo,f=v;l!==f&&(l===null?wa(f):f===null?Bo(l):l.depth===f.depth?bo(l,f):l.depth>f.depth?Za(l,f):Hs(l,f),yo=f)}function Iu(v,l){var f;f=v._currentValue,v._currentValue=l,v._currentRenderer!==void 0&&v._currentRenderer!==null&&v._currentRenderer!==us&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),v._currentRenderer=us;var g=yo,x={parent:g,depth:g===null?0:g.depth+1,context:v,parentValue:f,value:l};return yo=x,x}function Bf(v){var l=yo;if(l===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");l.context!==v&&i("The parent context is not the expected context. This is probably a bug in React.");{var f=l.parentValue;f===nr?l.context._currentValue=l.context._defaultValue:l.context._currentValue=f,v._currentRenderer!==void 0&&v._currentRenderer!==null&&v._currentRenderer!==us&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),v._currentRenderer=us}return yo=l.parent}function Lc(){return yo}function xa(v){var l=v._currentValue;return l}function ds(v){return v._reactInternals}function Us(v,l){v._reactInternals=l}var Ja={},W={},$o,Vo,Tr,$t,Ll,Qa,Fl,wo,Mu;{$o=new Set,Vo=new Set,Tr=new Set,Fl=new Set,$t=new Set,wo=new Set,Mu=new Set;var Fc=new Set;Qa=function(v,l){if(!(v===null||typeof v=="function")){var f=l+"_"+v;Fc.has(f)||(Fc.add(f),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l,v))}},Ll=function(v,l){if(l===void 0){var f=pn(v)||"Component";$t.has(f)||($t.add(f),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",f))}}}function Nc(v,l){{var f=v.constructor,g=f&&pn(f)||"ReactClass",x=g+"."+l;if(Ja[x])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
113
|
-
|
|
114
|
-
Please check the code for the %s component.`,l,l,g),Ja[x]=!0}}var jc={isMounted:function(v){return!1},enqueueSetState:function(v,l,f){var g=ds(v);g.queue===null?Nc(v,"setState"):(g.queue.push(l),f!=null&&Qa(f,"setState"))},enqueueReplaceState:function(v,l,f){var g=ds(v);g.replace=!0,g.queue=[l],f!=null&&Qa(f,"setState")},enqueueForceUpdate:function(v,l){var f=ds(v);f.queue===null?Nc(v,"forceUpdate"):l!=null&&Qa(l,"setState")}};function $f(v,l,f,g,x){var R=f(x,g);Ll(l,R);var B=R==null?g:J({},g,R);return B}function xo(v,l,f){var g=Gn,x=v.contextType;if("contextType"in v){var R=x===null||x!==void 0&&x.$$typeof===Ae&&x._context===void 0;if(!R&&!Mu.has(v)){Mu.add(v);var B="";x===void 0?B=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof x!="object"?B=" However, it is set to a "+typeof x+".":x.$$typeof===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",pn(v)||"Component",B)}}typeof x=="object"&&x!==null?g=xa(x):g=f;var z=new v(l,g);{if(typeof v.getDerivedStateFromProps=="function"&&(z.state===null||z.state===void 0)){var ne=pn(v)||"Component";$o.has(ne)||($o.add(ne),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.",ne,z.state===null?"null":"undefined",ne))}if(typeof v.getDerivedStateFromProps=="function"||typeof z.getSnapshotBeforeUpdate=="function"){var we=null,je=null,Ge=null;if(typeof z.componentWillMount=="function"&&z.componentWillMount.__suppressDeprecationWarning!==!0?we="componentWillMount":typeof z.UNSAFE_componentWillMount=="function"&&(we="UNSAFE_componentWillMount"),typeof z.componentWillReceiveProps=="function"&&z.componentWillReceiveProps.__suppressDeprecationWarning!==!0?je="componentWillReceiveProps":typeof z.UNSAFE_componentWillReceiveProps=="function"&&(je="UNSAFE_componentWillReceiveProps"),typeof z.componentWillUpdate=="function"&&z.componentWillUpdate.__suppressDeprecationWarning!==!0?Ge="componentWillUpdate":typeof z.UNSAFE_componentWillUpdate=="function"&&(Ge="UNSAFE_componentWillUpdate"),we!==null||je!==null||Ge!==null){var nt=pn(v)||"Component",xt=typeof v.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Tr.has(nt)||(Tr.add(nt),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`,nt,xt,we!==null?`
|
|
120
|
-
`+we:"",je!==null?`
|
|
121
|
-
`+je:"",Ge!==null?`
|
|
122
|
-
`+Ge:""))}}}return z}function Vf(v,l,f){{var g=pn(l)||"Component",x=v.render;x||(l.prototype&&typeof l.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",g):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",g)),v.getInitialState&&!v.getInitialState.isReactClassApproved&&!v.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",g),v.getDefaultProps&&!v.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",g),v.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",g),v.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),v.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",g),l.contextType&&l.contextTypes&&!wo.has(l)&&(wo.add(l),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",g)),typeof v.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",g),l.prototype&&l.prototype.isPureReactComponent&&typeof v.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",pn(l)||"A pure component"),typeof v.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof v.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",g),typeof v.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof v.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g);var R=v.props!==f;v.props!==void 0&&R&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g,g),v.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof v.getSnapshotBeforeUpdate=="function"&&typeof v.componentDidUpdate!="function"&&!Vo.has(l)&&(Vo.add(l),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",pn(l))),typeof v.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof v.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof l.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g);var B=v.state;B&&(typeof B!="object"||er(B))&&i("%s.state: must be set to an object or null",g),typeof v.getChildContext=="function"&&typeof l.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g)}}function Hf(v,l){var f=l.state;if(typeof l.componentWillMount=="function"){if(l.componentWillMount.__suppressDeprecationWarning!==!0){var g=pn(v)||"Unknown";W[g]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
123
|
-
|
|
124
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
125
|
-
|
|
126
|
-
Please update the following components: %s`,g),W[g]=!0)}l.componentWillMount()}typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),f!==l.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",pn(v)||"Component"),jc.enqueueReplaceState(l,l.state,null))}function Lu(v,l,f,g){if(v.queue!==null&&v.queue.length>0){var x=v.queue,R=v.replace;if(v.queue=null,v.replace=!1,R&&x.length===1)l.state=x[0];else{for(var B=R?x[0]:l.state,z=!0,ne=R?1:0;ne<x.length;ne++){var we=x[ne],je=typeof we=="function"?we.call(l,B,f,g):we;je!=null&&(z?(z=!1,B=J({},B,je)):J(B,je))}l.state=B}}else v.queue=null}function el(v,l,f,g){Vf(v,l,f);var x=v.state!==void 0?v.state:null;v.updater=jc,v.props=f,v.state=x;var R={queue:[],replace:!1};Us(v,R);var B=l.contextType;if(typeof B=="object"&&B!==null?v.context=xa(B):v.context=g,v.state===f){var z=pn(l)||"Component";Fl.has(z)||(Fl.add(z),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.",z))}var ne=l.getDerivedStateFromProps;typeof ne=="function"&&(v.state=$f(v,l,ne,x,f)),typeof l.getDerivedStateFromProps!="function"&&typeof v.getSnapshotBeforeUpdate!="function"&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(Hf(l,v),Lu(R,v,f,g))}var Uf={id:1,overflow:""};function Ho(v){var l=v.overflow,f=v.id,g=f&~Wf(f);return g.toString(32)+l}function Fu(v,l,f){var g=v.id,x=v.overflow,R=Nl(g)-1,B=g&~(1<<R),z=f+1,ne=Nl(l)+R;if(ne>30){var we=R-R%5,je=(1<<we)-1,Ge=(B&je).toString(32),nt=B>>we,xt=R-we,en=Nl(l)+xt,ir=z<<xt,Eo=ir|nt,ws=Ge+x;return{id:1<<en|Eo,overflow:ws}}else{var eo=z<<R,Ra=eo|B,nf=x;return{id:1<<ne|Ra,overflow:nf}}}function Nl(v){return 32-zf(v)}function Wf(v){return 1<<Nl(v)-1}var zf=Math.clz32?Math.clz32:Nu,Yf=Math.log,Br=Math.LN2;function Nu(v){var l=v>>>0;return l===0?32:31-(Yf(l)/Br|0)|0}function jl(v,l){return v===l&&(v!==0||1/v===1/l)||v!==v&&l!==l}var qt=typeof Object.is=="function"?Object.is:jl,bi=null,Sa=null,Ws=null,Zt=null,hs=!1,tl=!1,ti=0,wi=null,So=0,ju=25,$r=!1,Ki;function zs(){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 $r&&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 Bc(v,l){if(l===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ki),!1;v.length!==l.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
131
|
-
|
|
132
|
-
Previous: %s
|
|
133
|
-
Incoming: %s`,Ki,"["+v.join(", ")+"]","["+l.join(", ")+"]");for(var f=0;f<l.length&&f<v.length;f++)if(!qt(v[f],l[f]))return!1;return!0}function Bu(){if(So>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function xi(){return Zt===null?Ws===null?(hs=!1,Ws=Zt=Bu()):(hs=!0,Zt=Ws):Zt.next===null?(hs=!1,Zt=Zt.next=Bu()):(hs=!0,Zt=Zt.next),Zt}function $u(v,l){bi=l,Sa=v,$r=!1,ti=0}function Ys(v,l,f,g){for(;tl;)tl=!1,ti=0,So+=1,Zt=null,f=v(l,g);return Vu(),f}function Vr(){var v=ti!==0;return v}function Vu(){$r=!1,bi=null,Sa=null,tl=!1,Ws=null,So=0,wi=null,Zt=null}function Hu(v){return $r&&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()."),xa(v)}function Uu(v){return Ki="useContext",zs(),xa(v)}function Gs(v,l){return typeof l=="function"?l(v):l}function ps(v){return Ki="useState",Wu(Gs,v)}function Wu(v,l,f){if(v!==Gs&&(Ki="useReducer"),bi=zs(),Zt=xi(),hs){var g=Zt.queue,x=g.dispatch;if(wi!==null){var R=wi.get(g);if(R!==void 0){wi.delete(g);var B=Zt.memoizedState,z=R;do{var ne=z.action;$r=!0,B=v(B,ne),$r=!1,z=z.next}while(z!==null);return Zt.memoizedState=B,[B,x]}}return[Zt.memoizedState,x]}else{$r=!0;var we;v===Gs?we=typeof l=="function"?l():l:we=f!==void 0?f(l):l,$r=!1,Zt.memoizedState=we;var je=Zt.queue={last:null,dispatch:null},Ge=je.dispatch=Vc.bind(null,bi,je);return[Zt.memoizedState,Ge]}}function $c(v,l){bi=zs(),Zt=xi();var f=l===void 0?null:l;if(Zt!==null){var g=Zt.memoizedState;if(g!==null&&f!==null){var x=g[1];if(Bc(f,x))return g[0]}}$r=!0;var R=v();return $r=!1,Zt.memoizedState=[R,f],R}function Bl(v){bi=zs(),Zt=xi();var l=Zt.memoizedState;if(l===null){var f={current:v};return Object.seal(f),Zt.memoizedState=f,f}else return l}function Gf(v,l){Ki="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 Vc(v,l,f){if(So>=ju)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v===bi){tl=!0;var g={action:f,next:null};wi===null&&(wi=new Map);var x=wi.get(l);if(x===void 0)wi.set(l,g);else{for(var R=x;R.next!==null;)R=R.next;R.next=g}}}function fr(v,l){return $c(function(){return v},l)}function zu(v,l,f){return zs(),l(v._source)}function Hc(v,l,f){if(f===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return f()}function Si(v){return zs(),v}function $l(){throw new Error("startTransition cannot be called during server rendering.")}function Ta(){return zs(),[!1,$l]}function gs(){var v=Sa,l=Ho(v.treeContext),f=qs;if(f===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var g=ti++;return jn(f,l,g)}function nl(){}var rr={readContext:Hu,useContext:Uu,useMemo:$c,useReducer:Wu,useRef:Bl,useState:ps,useInsertionEffect:nl,useLayoutEffect:Gf,useCallback:fr,useImperativeHandle:nl,useEffect:nl,useDebugValue:nl,useDeferredValue:Si,useTransition:Ta,useId:gs,useMutableSource:zu,useSyncExternalStore:Hc},qs=null;function Vl(v){qs=v}function Ca(v){try{var l="",f=v;do{switch(f.tag){case 0:l+=Xi(f.type,null,null);break;case 1:l+=ma(f.type,null,null);break;case 2:l+=Ic(f.type,null,null);break}f=f.parent}while(f);return l}catch(g){return`
|
|
134
|
-
Error generating stack: `+g.message+`
|
|
135
|
-
`+g.stack}}var Hl=n.ReactCurrentDispatcher,Ea=n.ReactDebugCurrentFrame,Ul=0,To=1,Wl=2,Xs=3,Uc=4,rl=0,ka=1,Da=2,Yu=12800;function Wc(v){return console.error(v),null}function Ks(){}function zl(v,l,f,g,x,R,B,z,ne){var we=[],je=new Set,Ge={destination:null,responseState:l,progressiveChunkSize:g===void 0?Yu:g,status:rl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:je,pingedTasks:we,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:x===void 0?Wc:x,onAllReady:R===void 0?Ks:R,onShellReady:B===void 0?Ks:B,onShellError:z===void 0?Ks:z,onFatalError:ne===void 0?Ks:ne},nt=il(Ge,0,null,f,!1,!1);nt.parentFlushed=!0;var xt=Wo(Ge,v,null,nt,je,Gn,Ml,Uf);return we.push(xt),Ge}function Uo(v,l){var f=v.pingedTasks;f.push(l),f.length===1&&a(function(){return Qu(v)})}function Yl(v,l){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Wo(v,l,f,g,x,R,B,z){v.allPendingTasks++,f===null?v.pendingRootTasks++:f.pendingTasks++;var ne={node:l,ping:function(){return Uo(v,ne)},blockedBoundary:f,blockedSegment:g,abortSet:x,legacyContext:R,context:B,treeContext:z};return ne.componentStack=null,x.add(ne),ne}function il(v,l,f,g,x,R){return{status:Ul,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:g,boundary:f,lastPushedText:x,textEmbedded:R}}var Zi=null;function Ji(){return Zi===null||Zi.componentStack===null?"":Ca(Zi.componentStack)}function Co(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function ol(v,l){v.componentStack={tag:1,parent:v.componentStack,type:l}}function ms(v,l){v.componentStack={tag:2,parent:v.componentStack,type:l}}function Qi(v){v.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):v.componentStack=v.componentStack.parent}var Pa=null;function Gl(v,l){{var f;typeof l=="string"?f=l:l&&typeof l.message=="string"?f=l.message:f=String(l);var g=Pa||Ji();Pa=null,v.errorMessage=f,v.errorComponentStack=g}}function sl(v,l){var f=v.onError(l);if(f!=null&&typeof f!="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 f+'" instead');return f}function Oa(v,l){var f=v.onShellError;f(l);var g=v.onFatalError;g(l),v.destination!==null?(v.status=Da,U(v.destination,l)):(v.status=ka,v.fatalError=l)}function zc(v,l,f){Co(l,"Suspense");var g=l.blockedBoundary,x=l.blockedSegment,R=f.fallback,B=f.children,z=new Set,ne=Yl(v,z),we=x.chunks.length,je=il(v,we,ne,x.formatContext,!1,!1);x.children.push(je),x.lastPushedText=!1;var Ge=il(v,0,null,x.formatContext,!1,!1);Ge.parentFlushed=!0,l.blockedBoundary=ne,l.blockedSegment=Ge;try{if(Ti(v,l,B),_n(Ge.chunks,v.responseState,Ge.lastPushedText,Ge.textEmbedded),Ge.status=To,bs(ne,Ge),ne.pendingTasks===0){Qi(l);return}}catch(xt){Ge.status=Uc,ne.forceClientRender=!0,ne.errorDigest=sl(v,xt),Gl(ne,xt)}finally{l.blockedBoundary=g,l.blockedSegment=x}var nt=Wo(v,R,g,je,z,l.legacyContext,l.context,l.treeContext);nt.componentStack=l.componentStack,v.pingedTasks.push(nt),Qi(l)}function Gu(v,l,f,g){Co(l,f);var x=l.blockedSegment,R=co(x.chunks,f,g,v.responseState,x.formatContext);x.lastPushedText=!1;var B=x.formatContext;x.formatContext=pi(B,f,g),Ti(v,l,R),x.formatContext=B,Mo(x.chunks,f),x.lastPushedText=!1,Qi(l)}function qu(v){return v.prototype&&v.prototype.isReactComponent}function Zs(v,l,f,g,x){var R={};$u(l,R);var B=f(g,x);return Ys(f,g,B,x)}function Xu(v,l,f,g,x){var R=f.render();f.props!==x&&(Xl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(g)||"a component"),Xl=!0);{var B=g.childContextTypes;if(B!=null){var z=l.legacyContext,ne=Au(f,g,z,B);l.legacyContext=ne,dr(v,l,R),l.legacyContext=z;return}}dr(v,l,R)}function ql(v,l,f,g){ms(l,f);var x=ls(f,l.legacyContext),R=xo(f,g,x);el(R,f,g,x),Xu(v,l,R,f,g),Qi(l)}var Bt={},al={},Ku={},Js={},Xl=!1,Yc={},Gc=!1,ni=!1,qc=!1;function Kl(v,l,f,g){var x;if(x=ls(f,l.legacyContext),ol(l,f),f.prototype&&typeof f.prototype.render=="function"){var R=pn(f)||"Unknown";Bt[R]||(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.",R,R),Bt[R]=!0)}var B=Zs(v,l,f,g,x),z=Vr();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var ne=pn(f)||"Unknown";al[ne]||(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.",ne,ne,ne),al[ne]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var we=pn(f)||"Unknown";al[we]||(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.",we,we,we),al[we]=!0)}el(B,f,g,x),Xu(v,l,B,f,g)}else if(Zu(f),z){var je=l.treeContext,Ge=1,nt=0;l.treeContext=Fu(je,Ge,nt);try{dr(v,l,B)}finally{l.treeContext=je}}else dr(v,l,B);Qi(l)}function Zu(v){{if(v&&v.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",v.displayName||v.name||"Component"),v.defaultProps!==void 0){var l=pn(v)||"Unknown";Yc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Yc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var f=pn(v)||"Unknown";Js[f]||(i("%s: Function components do not support getDerivedStateFromProps.",f),Js[f]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var g=pn(v)||"Unknown";Ku[g]||(i("%s: Function components do not support contextType.",g),Ku[g]=!0)}}}function Ju(v,l){if(v&&v.defaultProps){var f=J({},l),g=v.defaultProps;for(var x in g)f[x]===void 0&&(f[x]=g[x]);return f}return l}function Xc(v,l,f,g,x){ol(l,f.render);var R=Zs(v,l,f.render,g,x),B=Vr();if(B){var z=l.treeContext,ne=1,we=0;l.treeContext=Fu(z,ne,we);try{dr(v,l,R)}finally{l.treeContext=z}}else dr(v,l,R);Qi(l)}function Hr(v,l,f,g,x){var R=f.type,B=Ju(R,g);Qs(v,l,R,B,x)}function vs(v,l,f,g){f._context===void 0?f!==f.Consumer&&(qc||(qc=!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?"))):f=f._context;var x=g.children;typeof x!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var R=xa(f),B=x(R);dr(v,l,B)}function Ur(v,l,f,g){var x=f._context,R=g.value,B=g.children,z;z=l.context,l.context=Iu(x,R),dr(v,l,B),l.context=Bf(x),z!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Kc(v,l,f,g,x){Co(l,"Lazy");var R=f._payload,B=f._init,z=B(R),ne=Ju(z,g);Qs(v,l,z,ne,x),Qi(l)}function Qs(v,l,f,g,x){if(typeof f=="function")if(qu(f)){ql(v,l,f,g);return}else{Kl(v,l,f,g);return}if(typeof f=="string"){Gu(v,l,f,g);return}switch(f){case Yn:case Vt:case K:case le:case Ce:{dr(v,l,g.children);return}case lt:{Co(l,"SuspenseList"),dr(v,l,g.children),Qi(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{zc(v,l,g);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case Fe:{Xc(v,l,f,g,x);return}case rt:{Hr(v,l,f,g,x);return}case se:{Ur(v,l,f,g);return}case Ae:{vs(v,l,f,g);return}case It:{Kc(v,l,f,g);return}}var R="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(R+=" 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: "+(f==null?f:typeof f)+"."+R))}function Zc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(Gc||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."),Gc=!0),v.entries===l&&(ni||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ni=!0)}function dr(v,l,f){try{return Jc(v,l,f)}catch(g){throw typeof g=="object"&&g!==null&&typeof g.then=="function"||(Pa=Pa!==null?Pa:Ji()),g}}function Jc(v,l,f){if(l.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case fe:{var g=f,x=g.type,R=g.props,B=g.ref;Qs(v,l,x,R,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 It:{var z=f,ne=z._payload,we=z._init,je;try{je=we(ne)}catch(eo){throw typeof eo=="object"&&eo!==null&&typeof eo.then=="function"&&Co(l,"Lazy"),eo}dr(v,l,je);return}}if(er(f)){Zl(v,l,f);return}var Ge=jr(f);if(Ge){Zc(f,Ge);var nt=Ge.call(f);if(nt){var xt=nt.next();if(!xt.done){var en=[];do en.push(xt.value),xt=nt.next();while(!xt.done);Zl(v,l,en);return}return}}var ir=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var Eo=l.blockedSegment;Eo.lastPushedText=On(l.blockedSegment.chunks,f,v.responseState,Eo.lastPushedText);return}if(typeof f=="number"){var ws=l.blockedSegment;ws.lastPushedText=On(l.blockedSegment.chunks,""+f,v.responseState,ws.lastPushedText);return}typeof f=="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 Zl(v,l,f){for(var g=f.length,x=0;x<g;x++){var R=l.treeContext;l.treeContext=Fu(R,g,x);try{Ti(v,l,f[x])}finally{l.treeContext=R}}}function Jl(v,l,f){var g=l.blockedSegment,x=g.chunks.length,R=il(v,x,null,g.formatContext,g.lastPushedText,!0);g.children.push(R),g.lastPushedText=!1;var B=Wo(v,l.node,l.blockedBoundary,R,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var z=B.ping;f.then(z,z)}function Ti(v,l,f){var g=l.blockedSegment.formatContext,x=l.legacyContext,R=l.context,B=null;B=l.componentStack;try{return dr(v,l,f)}catch(z){if(Vu(),typeof z=="object"&&z!==null&&typeof z.then=="function"){Jl(v,l,z),l.blockedSegment.formatContext=g,l.legacyContext=x,l.context=R,fs(R),l.componentStack=B;return}else throw l.blockedSegment.formatContext=g,l.legacyContext=x,l.context=R,fs(R),l.componentStack=B,z}}function Qc(v,l,f,g){var x=sl(v,g);if(l===null?Oa(v,g):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=x,Gl(l,g),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var R=v.onAllReady;R()}}function ys(v){var l=this,f=v.blockedBoundary,g=v.blockedSegment;g.status=Xs,ea(l,f,g)}function Ql(v,l,f){var g=v.blockedBoundary,x=v.blockedSegment;if(x.status=Xs,g===null)l.allPendingTasks--,l.status!==Da&&(l.status=Da,l.destination!==null&&I(l.destination));else{if(g.pendingTasks--,!g.forceClientRender){g.forceClientRender=!0;var R=f===void 0?new Error("The render was aborted by the server without a reason."):f;g.errorDigest=l.onError(R);{var B="The server did not finish this Suspense boundary: ";R&&typeof R.message=="string"?R=B+R.message:R=B+String(R);var z=Zi;Zi=v;try{Gl(g,R)}finally{Zi=z}}g.parentFlushed&&l.clientRenderedBoundaries.push(g)}if(g.fallbackAbortableTasks.forEach(function(we){return Ql(we,l,f)}),g.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var ne=l.onAllReady;ne()}}}function bs(v,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var f=l.children[0];f.id=l.id,f.parentFlushed=!0,f.status===To&&bs(v,f)}else{var g=v.completedSegments;g.push(l)}}function ea(v,l,f){if(l===null){if(f.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=f}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Ks;var g=v.onShellReady;g()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)f.parentFlushed&&f.status===To&&bs(l,f),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ys,v),l.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===To){bs(l,f);var x=l.completedSegments;x.length===1&&l.parentFlushed&&v.partialBoundaries.push(l)}}if(v.allPendingTasks--,v.allPendingTasks===0){var R=v.onAllReady;R()}}function qf(v,l){var f=l.blockedSegment;if(f.status===Ul){fs(l.context);var g=null;g=Zi,Zi=l;try{dr(v,l,l.node),_n(f.chunks,v.responseState,f.lastPushedText,f.textEmbedded),l.abortSet.delete(l),f.status=To,ea(v,l.blockedBoundary,f)}catch(R){if(Vu(),typeof R=="object"&&R!==null&&typeof R.then=="function"){var x=l.ping;R.then(x,x)}else l.abortSet.delete(l),f.status=Uc,Qc(v,l.blockedBoundary,f,R)}finally{Zi=g}}}function Qu(v){if(v.status!==Da){var l=Lc(),f=Hl.current;Hl.current=rr;var g;g=Ea.getCurrentStack,Ea.getCurrentStack=Ji;var x=qs;Vl(v.responseState);try{var R=v.pingedTasks,B;for(B=0;B<R.length;B++){var z=R[B];qf(v,z)}R.splice(0,B),v.destination!==null&&Ii(v,v.destination)}catch(ne){sl(v,ne),Oa(v,ne)}finally{Vl(x),Hl.current=f,Ea.getCurrentStack=g,f===rr&&fs(l)}}}function ll(v,l,f){switch(f.parentFlushed=!0,f.status){case Ul:{var g=f.id=v.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,cr(l,v.responseState,g)}case To:{f.status=Wl;for(var x=!0,R=f.chunks,B=0,z=f.children,ne=0;ne<z.length;ne++){for(var we=z[ne];B<we.index;B++)m(l,R[B]);x=ul(v,l,we)}for(;B<R.length-1;B++)m(l,R[B]);return B<R.length&&(x=T(l,R[B])),x}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ul(v,l,f){var g=f.boundary;if(g===null)return ll(v,l,f);if(g.parentFlushed=!0,g.forceClientRender)return Be(l,v.responseState,g.errorDigest,g.errorMessage,g.errorComponentStack),ll(v,l,f),Et(l,v.responseState);if(g.pendingTasks>0){g.rootSegmentID=v.nextSegmentId++,g.completedSegments.length>0&&v.partialBoundaries.push(g);var x=g.id=nn(v.responseState);return xe(l,v.responseState,x),ll(v,l,f),Tt(l,v.responseState)}else{if(g.byteSize>v.progressiveChunkSize)return g.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(g),xe(l,v.responseState,g.id),ll(v,l,f),Tt(l,v.responseState);Re(l,v.responseState);var R=g.completedSegments;if(R.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=R[0];return ul(v,l,B),it(l,v.responseState)}}function ec(v,l,f){return _l(l,v.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function eu(v,l,f){return St(l,v.responseState,f.formatContext,f.id),ul(v,l,f),vt(l,f.formatContext)}function tc(v,l,f){for(var g=f.completedSegments,x=0;x<g.length;x++){var R=g[x];Wr(v,l,f,R)}return g.length=0,mo(l,v.responseState,f.id,f.rootSegmentID)}function ef(v,l,f){for(var g=f.completedSegments,x=0;x<g.length;x++){var R=g[x];if(!Wr(v,l,f,R))return x++,g.splice(0,x),!1}return g.splice(0,x),!0}function Wr(v,l,f,g){if(g.status===Wl)return!0;var x=g.id;if(x===-1){var R=g.id=f.rootSegmentID;if(R===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return eu(v,l,g)}else return eu(v,l,g),za(l,v.responseState,x)}function Ii(v,l){w();try{var f=v.completedRootSegment;f!==null&&v.pendingRootTasks===0&&(ul(v,l,f),v.completedRootSegment=null,yi(l,v.responseState));var g=v.clientRenderedBoundaries,x;for(x=0;x<g.length;x++){var R=g[x];ec(v,l,R)}g.splice(0,x);var B=v.completedBoundaries;for(x=0;x<B.length;x++){var z=B[x];tc(v,l,z)}B.splice(0,x),E(l),w(l);var ne=v.partialBoundaries;for(x=0;x<ne.length;x++){var we=ne[x];if(!ef(v,l,we)){v.destination=null,x++,ne.splice(0,x);return}}ne.splice(0,x);var je=v.completedBoundaries;for(x=0;x<je.length;x++){var Ge=je[x];tc(v,l,Ge)}je.splice(0,x)}finally{E(l),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),I(l))}}function tf(v){a(function(){return Qu(v)})}function Xf(v,l){if(v.status===ka){v.status=Da,U(l,v.fatalError);return}if(v.status!==Da&&v.destination===null){v.destination=l;try{Ii(v,l)}catch(f){sl(v,f),Oa(v,f)}}}function cl(v,l){try{var f=v.abortableTasks;f.forEach(function(g){return Ql(g,v,l)}),f.clear(),v.destination!==null&&Ii(v,v.destination)}catch(g){sl(v,g),Oa(v,g)}}function _a(v,l){return new Promise(function(f,g){var x,R,B=new Promise(function(nt,xt){R=nt,x=xt});function z(){var nt=new ReadableStream({type:"bytes",pull:function(xt){Xf(we,xt)},cancel:function(xt){cl(we)}},{highWaterMark:0});nt.allReady=B,f(nt)}function ne(nt){B.catch(function(){}),g(nt)}var we=zl(v,Oi(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),hi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,R,z,ne,x);if(l&&l.signal){var je=l.signal,Ge=function(){cl(we,je.reason),je.removeEventListener("abort",Ge)};je.addEventListener("abort",Ge)}tf(we)})}Mh.renderToReadableStream=_a,Mh.version=e}()),Mh}var Ec,Sv;process.env.NODE_ENV==="production"?(Ec=R4(),Sv=A4()):(Ec=I4(),Sv=M4());Ec.version;var L4=Ec.renderToString;Ec.renderToStaticMarkup;Ec.renderToNodeStream;Ec.renderToStaticNodeStream;Sv.renderToReadableStream;var F4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ND(t,e){return t(e={exports:{}},e.exports),e.exports}var N4=ND(function(t){(function(e){var n=function(L,_,U){if(!d(_)||w(_)||m(_)||T(_)||c(_))return _;var G,re=0,Z=0;if(p(_))for(G=[],Z=_.length;re<Z;re++)G.push(n(L,_[re],U));else for(var ue in G={},_)Object.prototype.hasOwnProperty.call(_,ue)&&(G[L(ue,U)]=n(L,_[ue],U));return G},r=function(L){return E(L)?L:(L=L.replace(/[\-_\s]+(.)?/g,function(_,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+L.substr(1)},i=function(L){var _=r(L);return _.substr(0,1).toUpperCase()+_.substr(1)},o=function(L,_){return function(U,G){var re=(G=G||{}).separator||"_",Z=G.split||/(?=[A-Z])/;return U.split(Z).join(re)}(L,_).toLowerCase()},a=Object.prototype.toString,c=function(L){return typeof L=="function"},d=function(L){return L===Object(L)},p=function(L){return a.call(L)=="[object Array]"},w=function(L){return a.call(L)=="[object Date]"},m=function(L){return a.call(L)=="[object RegExp]"},T=function(L){return a.call(L)=="[object Boolean]"},E=function(L){return(L-=0)==L},I=function(L,_){var U=_&&"process"in _?_.process:_;return typeof U!="function"?L:function(G,re){return U(G,L,re)}},A={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(L,_){return n(I(r,_),L)},decamelizeKeys:function(L,_){return n(I(o,_),L,_)},pascalizeKeys:function(L,_){return n(I(i,_),L)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=A:e.humps=A})(F4)}).decamelize,j4=function(t){if(Array.isArray(t))return t},B4=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(d){i=!0,o=d}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},w1=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},$4=function(t,e){if(t){if(typeof t=="string")return w1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w1(t,e):void 0}},V4=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.`)},H4=function(t,e){return j4(t)||B4(t,e)||$4(t,e)||V4()},jD=ND(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),U4=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},BD=function(t,e){if(t==null)return{};var n,r,i=U4(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},W4=q.createContext(null);function $D(t){var e=t.children,n=e===void 0?"":e,r=BD(t,["children"]);return typeof n!="string"&&(n=L4(n)),q.createElement("template",jD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function VD(t){var e=t.root,n=t.children;return Iv.createPortal(n===void 0?null:n,e)}function z4(t){var e=q.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,d=n.delegatesFocus,p=d!==void 0&&d,w=n.styleSheets,m=w===void 0?[]:w,T=n.ssr,E=T!==void 0&&T,I=n.children,A=BD(n,["mode","delegatesFocus","styleSheets","ssr","children"]),L=(o=q.useRef((i=r)&&i.current),q.useEffect(function(){i&&(i.current=o.current)},[i]),o),_=q.useState(null),U=H4(_,2),G=U[0],re=U[1],Z="node_".concat(c).concat(p);return q.useLayoutEffect(function(){if(L.current)try{if(typeof r=="function"&&r(L.current),E){var ue=L.current.shadowRoot;return void re(ue)}var S=L.current.attachShadow({mode:c,delegatesFocus:p});m.length>0&&(S.adoptedStyleSheets=m),re(S)}catch(ae){(function(ce){var Ue=ce.error,_e=ce.styleSheets,Le=ce.root;switch(Ue.name){case"NotSupportedError":_e.length>0&&(Le.adoptedStyleSheets=_e);break;default:throw Ue}})({error:ae,styleSheets:m,root:G})}},[r,L,m]),q.createElement(q.Fragment,null,q.createElement(t.tag,jD({key:Z,ref:L},A),(G||E)&&q.createElement(W4.Provider,{value:G},E?q.createElement($D,{shadowroot:c,shadowrootmode:c},t.render({root:G,ssr:E,children:I})):q.createElement(VD,{root:G},t.render({root:G,ssr:E,children:I})))))});return e.propTypes={mode:_s.oneOf(["open","closed"]),delegatesFocus:_s.bool,styleSheets:_s.arrayOf(_s.instanceOf(globalThis.CSSStyleSheet)),ssr:_s.bool,children:_s.node},e}$D.propTypes={children:_s.oneOfType([_s.string,_s.node])},VD.propTypes={root:_s.object.isRequired,children:_s.node};var gm=new Map;function Y4(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=N4(i,{separator:"-"}),a="".concat(e,"-").concat(o);return gm.has(a)||gm.set(a,z4({tag:o,render:n})),gm.get(a)}})}var HD=Y4();const G4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",q4=".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}";var x1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(x1||(x1={}));const X4=Object.freeze({x:0,y:0});var Tf;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Tf||(Tf={}));var S1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(S1||(S1={}));var Rs;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Rs||(Rs={}));Rs.Space,Rs.Enter,Rs.Esc,Rs.Space,Rs.Enter,Rs.Tab;var T1;(function(t){t[t.RightClick=2]="RightClick"})(T1||(T1={}));var C1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(C1||(C1={}));var E1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(E1||(E1={}));Tf.Backward+"",Tf.Forward+"",Tf.Backward+"",Tf.Forward+"";var Tv;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Tv||(Tv={}));var Cv;(function(t){t.Optimized="optimized"})(Cv||(Cv={}));Tv.WhileDragging,Cv.Optimized;({...X4});var k1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(k1||(k1={}));function K4(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}Rs.Down,Rs.Right,Rs.Up,Rs.Left;function Z4(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const D1="MENU_ITEM";function J4(t){const e=xp.useLocation(),[n,r]=q.useState([]),[i,o]=q.useState(!1);console.log("isSubmit",i);const a=q.useRef(null),[c,d]=q.useState(window.location.href);q.useEffect(()=>{d(window.location.href)},[e]);const p=A=>`${A}`;function w(A,L){for(const _ of A){if(_.id===L)return _;if(_.children){const U=w(_.children,L);if(U)return U}}return null}function m(A,L){const _=w(n,A);_?(_.isFavorite=L,Z4(_),eb(A,L)):console.error(`Item with id ${A} not found`)}const T=A=>{console.log("Favorite menus changed",A);const L=A.detail.favoriteMenus||[];r(L)};q.useEffect(()=>(window.addEventListener("favoriteMenusChange",T),()=>{window.removeEventListener("favoriteMenusChange",T)}),[]);const E=(A,L)=>{n[A];const _=K4(n,A,L);r(_),o(!0);const U={menuItemIds:_.map(G=>G.id)};As.post("global-menu-config/api/v1/menu-items/user/order-favorites",U,{baseURL:t.baseUrl}).then(()=>{}).catch(G=>{console.error(G),r(n)}).finally(()=>{o(!1)})},I=({item:A,index:L})=>{const _=q.useRef(null),[{isDragging:U},G]=GE({type:D1,item:()=>({id:A.id,index:L}),collect:ae=>({isDragging:ae.isDragging()})}),[{isOver:re,isOverCurrent:Z},ue]=Oy(()=>({accept:D1,collect:ae=>({isOver:ae.isOver(),isOverCurrent:ae.isOver({shallow:!0})}),drop:ae=>{E(ae.index,L),ae.index=L}}),[]);let S="hover-off";return(Z||re)&&(S="hover-on"),G(ue(_)),Me.jsx("div",{ref:_,style:{opacity:U?.7:1,boxShadow:U?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out"},className:`item ${S}`,children:Me.jsx(FD,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:A,level:1,onSetFavoriteSuccess:m})})};return Me.jsx(Me.Fragment,{children:n.length?Me.jsx("div",{className:p("favorite-menu"),children:Me.jsx(Vv,{ref:a,className:p("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,overflow:"auto",height:"100%",overflowY:"hidden"},children:Me.jsx(VE,{backend:JT,children:Me.jsx("div",{style:{display:"inline-flex"},children:n.map((A,L)=>Me.jsx(I,{item:A,index:L},A.id))})})})}):""})}function Q4(t=32){const[e,n]=q.useState(!0),[r,i]=q.useState(0),o=()=>{const a=window.scrollY;a>r&&a>t?n(!1):a<r&&n(!0),i(a)};return q.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:e}}function e6(t){const{isFavoriteBarVisible:e}=Q4();return Me.jsxs(Me.Fragment,{children:[Me.jsx("style",{children:q4}),Me.jsx("div",{className:`favorite-bar ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:Me.jsx(HD.div,{children:Me.jsx(jv,{styles:[BT,_4,G4],children:Me.jsx(J4,{...t})})})})]})}function eb(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function UD({...t}){var ke,ze,et;const e=t.item,n=t.level||0,r=!!((ke=t.item.children)!=null&&ke.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",d=i(e.id)?"active":"",p=r?"parent":"child",w=t.params.isOpen?"isOpen":"isClose",m=t.isInternalApp?"isInternalApp":"",T=(qe,Je=a)=>`${qe} ${Je} ${c} ${d} ${p} ${w} ${m}`,[E,I]=q.useState(!1),[A,L]=q.useState(e.isFavorite||!1);q.useEffect(()=>{L(!!t.item.isFavorite)},[t.item.isFavorite]);const _=q.useRef(),U=q.useRef();U!=null&&U.current&&((ze=U==null?void 0:U.current)==null?void 0:ze.scrollWidth)>((et=U==null?void 0:U.current)==null?void 0:et.clientWidth);const G=window.location.origin,re=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},Z=window.location.pathname.split("/")[1],ue=re.pathname.split("/")[1],S=t.item.redirectUrl||t.ssr||!G.includes("local")&&G!==re.origin||ue!==Z,ae=r?"div":!t.isInternalApp&&S?"a":xp.Link,ce=e.redirectUrl||e.path||"#",Ue=n+1,_e=r&&o&&E,Le=o||n===0?void 0:`${n+.25}rem`,Ve=()=>{I(!0)},We=()=>{I(!1)},he="/global-menu-config/api/v1/menu-items/user/set-favorite",Ee=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,DH(e.id,t.params.isOpen,t.params.onToggle);const Ne=Ee||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,tt=Object.entries(t.brandColors||{}).reduce((qe,[Je,Ke])=>(Ke&&(qe[`--${Je}`]=Ke),qe),{}),me=G!==re.origin||t.item.redirectUrl?"_blank":"_self";return Me.jsxs("div",{ref:_,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...tt},onMouseOver:Ve,onMouseOut:We,onDragStart:qe=>{o&&n>1&&qe.preventDefault()},children:[Me.jsx(sa.Tooltip,{placement:"top",title:Ne,disableInteractive:!0,children:Me.jsxs(ae,{target:me,to:ce,href:ce,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:Le},onClick:qe=>{ae==="a"&&me==="_blank"||o||t.toggleExpand(qe)},children:[Me.jsx(t6,{cls:T,item:e}),Me.jsx("span",{className:T("menu-item__label"),ref:U,children:e.name}),Me.jsx(n6,{tooltipPosition:Ne?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:A,onClick:qe=>{const Je={menuConfigId:e.id,isFavorite:qe},Ke=t.baseUrl+he;As.post(Ke,Je).then(ot=>{var ct;L(qe),Uv("Set favorite menu item successfully"),(ct=t.onSetFavoriteSuccess)==null||ct.call(t,t.item.id,qe),eb(t.item.id,qe)}).catch(ot=>{var ct,pt;Wd(((pt=(ct=ot.response)==null?void 0:ct.data)==null?void 0:pt.errorMessage)||"Have error when set favorite menu item")})}}),r&&Me.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:Me.jsx(K5,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),_e&&Me.jsx(Z5,{parentRef:_,onlyChild:!o,renderChildren:({maxHeight:qe})=>{var Je;return Me.jsx(DD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${Ue}`),style:Jy({maxHeight:qe,overflowY:"auto",paddingRight:3},qe!=="auto"&&!!Ue),children:(Je=e.children)==null?void 0:Je.map(Ke=>q.createElement(UD,{...t,key:Ke.id,item:Ke,level:Ue}))})}})]})}function t6({item:t,cls:e}){return Me.jsx("div",{className:e("menu-item__icon"),children:Me.jsx(LD,{item:t})})}function n6(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:ki.warning};return Me.jsxs(Me.Fragment,{children:[t.isHovered&&!t.isFavorite&&Me.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:Me.jsx("div",{children:Me.jsx(PD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&Me.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:Me.jsx("div",{children:Me.jsx(OD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function r6(){return Me.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:Me.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 i6(){return Me.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:Me.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function o6(t){return Me.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:Me.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 s6=".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%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.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__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.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}}",a6=t=>{const e=t.isCollapsed?0:t.depth*16;return Me.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},l6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",u6=t=>{const[e,n]=q.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return q.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function WD(t){document.documentElement.style.setProperty("--global-menu-width",!t||t==="true"?"64px":"17rem")}const Gh=localStorage.getItem("isCollapsed");WD(Gh);function c6(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function f6(t){const e=xp.useLocation(),[n,r]=q.useState([]),i=n.map(_e=>_e.data),[o,a]=q.useState(!1),[c,d]=q.useState([]),[p,w]=q.useState(Gh===null?!0:Gh==="true"),[m,T]=q.useState(window.location.href),E=q.useRef(null);q.useEffect(()=>{var _e;(_e=t.handleCallback)==null||_e.call(t,i)},[i,t.handleCallback]),q.useEffect(()=>{T(window.location.href)},[e]);const I=h6(i,m),[A,L]=u6({initOpenIds:t.initOpenIds}),_=()=>{var _e,Le;if(w(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),WD(p),p)A&&((_e=E.current)==null||_e.open(A));else{const Ve=n.filter(We=>We.parent===0).map(We=>We.id);console.log("closeIds:",Ve),(Le=E.current)==null||Le.close(Ve)}},[U,G]=q.useState(!1),re=p?"collapsed":"expanded",Z=_e=>`${_e} ${re}`,ue=q.useRef(null);q.useLayoutEffect(()=>{(async()=>{var Le,Ve;try{const We=t.menuPath||"/global-menu-config/api/v1/menu-items/user",he=t.baseUrl+We,{data:Ee}=await As.get(he);let Oe=Ee.map(tt=>({...tt,parentKey:tt.parentKey||0}));Oe=YD(Oe),t.replacePath&&(Oe=zD(Oe,t.replacePath));const Ne=Oe.map(tt=>({id:tt.id,parent:tt.parentKey,text:tt.name,data:tt}));r(Ne)}catch(We){console.error("Global menu",We),Wd(((Ve=(Le=We.response)==null?void 0:Le.data)==null?void 0:Ve.errorMessage)||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]);const S=async()=>{try{const _e=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!_e.ok)throw new Error("Failed to fetch favorite items");const Le=await _e.json();d(Le)}catch(_e){console.error("Error fetching favorite items:",_e)}};q.useEffect(()=>{S()},[t.baseUrl]),q.useEffect(()=>{let _e=[];c.forEach(We=>{const he=i.find(Ee=>Ee.id===We&&Ee.isFavorite===!0);he&&(_e=[..._e,he])}),console.log(_e);function Le(We){return i.every(he=>he.parentKey!==We.id)?We:{...We,children:i.filter(he=>he.parentKey===We.id).map(he=>Le(he))}}const Ve=_e.map(We=>Le(We));c6(Ve)},[i]);function ae(_e){const Le=_e.detail.menuItem;r(Ve=>Ve.map(We=>We.id!==Le.id?We:{...We,data:Le})),S()}q.useEffect(()=>(window.addEventListener("updateFavoriteMenu",ae),()=>{window.removeEventListener("updateFavoriteMenu",ae)}),[]),q.useLayoutEffect(()=>{var We;const _e=localStorage.getItem("scrollPos");_e&&ue.current&&setTimeout(()=>{const he=ue.current.getScrollElement();he.scrollTop=parseInt(_e)},0);const Le=()=>{if(ue.current){const he=ue.current.getScrollElement();localStorage.setItem("scrollPos",he.scrollTop.toString())}},Ve=(We=ue.current)==null?void 0:We.getScrollElement();return Ve==null||Ve.addEventListener("scroll",Le),()=>{Ve==null||Ve.removeEventListener("scroll",Le)}},[i]);function ce(_e){a(!0);const Le=[...n];r(_e);const Ve=_e.map((We,he)=>({menuItemId:We.id,order:he}));As.post("/global-menu-config/api/v1/menu-items/user",Ve,{baseURL:t.baseUrl}).then(()=>{}).catch(We=>{console.error(We),r(Le)}).finally(()=>{a(!1)})}const Ue=q.useMemo(()=>Gh==="false"?A:[],[]);return console.log("nodesglobal menu",n),Me.jsxs("div",{className:Z("side-bar"),children:[Me.jsx("div",{className:Z("wrap-section side-bar__wrapper-toggle-btn"),children:Me.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:_,children:p?Me.jsx(i6,{}):Me.jsx(r6,{})})}),Me.jsx(Vv,{ref:ue,className:Z("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:Me.jsx(VE,{backend:Z3,options:SH(),children:Me.jsx(BH,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:_e=>{var Le;return((Le=_e.data)==null?void 0:Le.name)==="Home"?"isHome":""}},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:ce,render:(_e,Le)=>{function Ve(Oe){return n.every(Ne=>Ne.parent!==Oe.id)?Oe:{...Oe,children:n.filter(Ne=>Ne.parent===Oe.id).map(Ne=>Ve(Ne.data))}}const We=Ve(_e.data),he=Oe=>I.some(Ne=>Ne.id===Oe);function Ee(Oe,Ne){r(tt=>tt.map(me=>me.id===Oe?{...me,data:{...me.data,isFavorite:Ne}}:me)),S()}return Me.jsx(UD,{isInternalApp:t.isInternalApp,isActive:he,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:_e,params:Le,nodes:n,item:We,expanded:()=>!1,toggleExpand:Oe=>{var Ne;if(Oe.stopPropagation(),Le.isOpen)console.log("open toggleExpand"),Le.onToggle();else{console.log("close toggleExpand");const tt=n.filter(me=>me.parent===_e.parent&&me.id!==_e.id).map(me=>me.id);console.log(" closeIds:",tt),(Ne=E.current)==null||Ne.open(_e.id),setTimeout(()=>{var me;(me=E.current)==null||me.close(tt)},0)}},level:Le.depth,onSetFavoriteSuccess:Ee})},placeholderRender:(_e,{depth:Le})=>{var Ve;return Me.jsx(a6,{node:_e,depth:Le,color:(Ve=t.brandColors)==null?void 0:Ve.primary300,isCollapsed:p})},canDrag:_e=>{var Le;return!o&&((Le=_e==null?void 0:_e.data)==null?void 0:Le.name)!=="Home"},canDrop:(_e,{dragSource:Le,dropTargetId:Ve})=>(Le==null?void 0:Le.parent)===Ve,onDragStart:_e=>{console.log("onDragStart",_e)},onChangeOpen:_e=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",_e),L(_e))},initialOpen:Ue})})}),Me.jsxs("div",{className:Z("wrap-section side-bar__wrap-btn-logout"),children:[Me.jsxs("button",{className:Z("side-bar__logout-btn"),onClick:()=>G(!0),children:[Me.jsx(o6,{className:Z("side-bar__icon-logout")}),Me.jsx("span",{className:Z("side-bar__logout-btn__text"),children:"Logout"})]}),Me.jsx(G1,{isOpen:U,onClose:()=>G(!1),onConfirm:()=>t.logout?t.logout():rT(t.baseUrl)})]})]})}function d6(t,e){const n=new URL(t,window.location.origin),r=new URL(e,window.location.origin);return n.pathname===r.pathname&&n.search===r.search?3:n.pathname===r.pathname?2:r.pathname.startsWith(n.pathname)?1:0}function h6(t,e){const n=t.map(a=>({item:a,priority:a.path?d6(a.path,e):0})).filter(a=>a.priority>0),r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return i}function zD(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=zD(n.children,e)):n.path=e(n.path),n})}function YD(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=YD(n.children)),n))}function p6(t){return Me.jsx(HD.div,{children:Me.jsx(jv,{styles:[BT,s6,l6],style:{position:"sticky",zIndex:1300},children:Me.jsx(f6,{...t})})})}const g6={"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 yp={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
|
-
*/yp.exports;(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,w="__lodash_placeholder__",m=1,T=2,E=4,I=1,A=2,L=1,_=2,U=4,G=8,re=16,Z=32,ue=64,S=128,ae=256,ce=512,Ue=30,_e="...",Le=800,Ve=16,We=1,he=2,Ee=3,Oe=1/0,Ne=9007199254740991,tt=17976931348623157e292,me=NaN,ke=4294967295,ze=ke-1,et=ke>>>1,qe=[["ary",S],["bind",L],["bindKey",_],["curry",G],["curryRight",re],["flip",ce],["partial",Z],["partialRight",ue],["rearg",ae]],Je="[object Arguments]",Ke="[object Array]",ot="[object AsyncFunction]",ct="[object Boolean]",pt="[object Date]",ft="[object DOMException]",yt="[object Error]",Qe="[object Function]",At="[object GeneratorFunction]",Mt="[object Map]",Vn="[object Number]",mr="[object Null]",Hn="[object Object]",Sn="[object Promise]",$i="[object Proxy]",kr="[object RegExp]",Jn="[object Set]",sn="[object String]",fn="[object Symbol]",dn="[object Undefined]",ut="[object WeakMap]",Dn="[object WeakSet]",oi="[object ArrayBuffer]",on="[object DataView]",Vi="[object Float32Array]",Hi="[object Float64Array]",Ui="[object Int8Array]",Dr="[object Int16Array]",Nn="[object Int32Array]",Pr="[object Uint8Array]",vr="[object Uint8ClampedArray]",zr="[object Uint16Array]",Yr="[object Uint32Array]",Ao=/\b__p \+= '';/g,Un=/\b(__p \+=) '' \+/g,Gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qn=/&(?:amp|lt|gt|quot|#39);/g,Wt=/[&<>"']/g,si=RegExp(Qn.source),Wi=RegExp(Wt.source),Pn=/<%-([\s\S]+?)%>/g,hn=/<%([\s\S]+?)%>/g,ai=/<%=([\s\S]+?)%>/g,li=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,ui=RegExp(yr.source),an=/^\s+/,Di=/\s/,Ms=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ls=/\{\n\/\* \[wrapped with (.+)\] \*/,qr=/,? & /,ao=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lo=/[()=,{}\[\]\/\s]/,Pi=/\\(\\)?/g,er=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Or=/\w*$/,_r=/^[-+]0x[0-9a-f]+$/i,ci=/^0b[01]+$/i,Xr=/^\[object .+?Constructor\]$/,br=/^0o[0-7]+$/i,Rr=/^(?:0|[1-9]\d*)$/,tr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zi=/($^)/,Oi=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",yn="\\u0300-\\u036f",Ar="\\ufe20-\\ufe2f",Ir="\\u20d0-\\u20ff",fi=yn+Ar+Ir,di="\\u2700-\\u27bf",wr="a-z\\xdf-\\xf6\\xf8-\\xff",Kr="\\xac\\xb1\\xd7\\xf7",Wn="\\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",nn="\\ufe0e\\ufe0f",jn=Kr+Wn+hi+pi,Cn="['’]",uo="["+ar+"]",On="["+jn+"]",_n="["+fi+"]",k="\\d+",N="["+di+"]",Y="["+wr+"]",ee="[^"+ar+jn+k+di+wr+_i+"]",Te="\\ud83c[\\udffb-\\udfff]",ge="(?:"+_n+"|"+Te+")",Pe="[^"+ar+"]",Xe="(?:\\ud83c[\\udde6-\\uddff]){2}",gt="[\\ud800-\\udbff][\\udc00-\\udfff]",mt="["+_i+"]",dt="\\u200d",Ft="(?:"+Y+"|"+ee+")",Bn="(?:"+mt+"|"+ee+")",zn="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",En="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",Zr=ge+"?",lr="["+nn+"]?",Yi="(?:"+dt+"(?:"+[Pe,Xe,gt].join("|")+")"+lr+Zr+")*",gi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mr=lr+Zr+Yi,qi="(?:"+[N,Xe,gt].join("|")+")"+Mr,Ua="(?:"+[Pe+_n+"?",_n,Xe,gt,uo].join("|")+")",Fs=RegExp(Cn,"g"),rs=RegExp(_n,"g"),xr=RegExp(Te+"(?="+Te+")|"+Ua+Mr,"g"),Wa=RegExp([mt+"?"+Y+"+"+zn+"(?="+[On,mt,"$"].join("|")+")",Bn+"+"+En+"(?="+[On,mt+Ft,"$"].join("|")+")",mt+"?"+Ft+"+"+zn,mt+"+"+En,Gi,gi,k,qi].join("|"),"g"),mi=RegExp("["+dt+ar+fi+nn+"]"),Ns=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,is=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,Gt={};Gt[Vi]=Gt[Hi]=Gt[Ui]=Gt[Dr]=Gt[Nn]=Gt[Pr]=Gt[vr]=Gt[zr]=Gt[Yr]=!0,Gt[Je]=Gt[Ke]=Gt[oi]=Gt[ct]=Gt[on]=Gt[pt]=Gt[yt]=Gt[Qe]=Gt[Mt]=Gt[Vn]=Gt[Hn]=Gt[kr]=Gt[Jn]=Gt[sn]=Gt[ut]=!1;var Kt={};Kt[Je]=Kt[Ke]=Kt[oi]=Kt[on]=Kt[ct]=Kt[pt]=Kt[Vi]=Kt[Hi]=Kt[Ui]=Kt[Dr]=Kt[Nn]=Kt[Mt]=Kt[Vn]=Kt[Hn]=Kt[kr]=Kt[Jn]=Kt[sn]=Kt[fn]=Kt[Pr]=Kt[vr]=Kt[zr]=Kt[Yr]=!0,Kt[yt]=Kt[Qe]=Kt[ut]=!1;var Ri={À:"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={"&":"&","<":"<",">":">",'"':""","'":"'"},Io={"&":"&","<":"<",">":">",""":'"',"'":"'"},vi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ur=parseFloat,js=parseInt,co=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,la=typeof self=="object"&&self&&self.Object===Object&&self,ln=co||la||Function("return this")(),Mo=e&&!e.nodeType&&e,yi=Mo&&!0&&t&&!t.nodeType&&t,ua=yi&&yi.exports===Mo,fo=ua&&co.process,cr=function(){try{var K=yi&&yi.require&&yi.require("util").types;return K||fo&&fo.binding&&fo.binding("util")}catch{}}(),h=cr&&cr.isArrayBuffer,y=cr&&cr.isDate,C=cr&&cr.isMap,P=cr&&cr.isRegExp,F=cr&&cr.isSet,j=cr&&cr.isTypedArray;function V(K,le,se){switch(se.length){case 0:return K.call(le);case 1:return K.call(le,se[0]);case 2:return K.call(le,se[0],se[1]);case 3:return K.call(le,se[0],se[1],se[2])}return K.apply(le,se)}function oe(K,le,se,Ae){for(var Fe=-1,st=K==null?0:K.length;++Fe<st;){var lt=K[Fe];le(Ae,lt,se(lt),K)}return Ae}function te(K,le){for(var se=-1,Ae=K==null?0:K.length;++se<Ae&&le(K[se],se,K)!==!1;);return K}function pe(K,le){for(var se=K==null?0:K.length;se--&&le(K[se],se,K)!==!1;);return K}function De(K,le){for(var se=-1,Ae=K==null?0:K.length;++se<Ae;)if(!le(K[se],se,K))return!1;return!0}function Re(K,le){for(var se=-1,Ae=K==null?0:K.length,Fe=0,st=[];++se<Ae;){var lt=K[se];le(lt,se,K)&&(st[Fe++]=lt)}return st}function xe(K,le){var se=K==null?0:K.length;return!!se&&Qt(K,le,0)>-1}function Be(K,le,se){for(var Ae=-1,Fe=K==null?0:K.length;++Ae<Fe;)if(se(le,K[Ae]))return!0;return!1}function it(K,le){for(var se=-1,Ae=K==null?0:K.length,Fe=Array(Ae);++se<Ae;)Fe[se]=le(K[se],se,K);return Fe}function Tt(K,le){for(var se=-1,Ae=le.length,Fe=K.length;++se<Ae;)K[Fe+se]=le[se];return K}function Et(K,le,se,Ae){var Fe=-1,st=K==null?0:K.length;for(Ae&&st&&(se=K[++Fe]);++Fe<st;)se=le(se,K[Fe],Fe,K);return se}function Rn(K,le,se,Ae){var Fe=K==null?0:K.length;for(Ae&&Fe&&(se=K[--Fe]);Fe--;)se=le(se,K[Fe],Fe,K);return se}function un(K,le){for(var se=-1,Ae=K==null?0:K.length;++se<Ae;)if(le(K[se],se,K))return!0;return!1}var Lr=D("length");function Fr(K){return K.split("")}function Lt(K){return K.match(ao)||[]}function Nr(K,le,se){var Ae;return se(K,function(Fe,st,lt){if(le(Fe,st,lt))return Ae=st,!1}),Ae}function jt(K,le,se,Ae){for(var Fe=K.length,st=se+(Ae?1:-1);Ae?st--:++st<Fe;)if(le(K[st],st,K))return st;return-1}function Qt(K,le,se){return le===le?Du(K,le,se):jt(K,po,se)}function ho(K,le,se,Ae){for(var Fe=se-1,st=K.length;++Fe<st;)if(Ae(K[Fe],le))return Fe;return-1}function po(K){return K!==K}function Sr(K,le){var se=K==null?0:K.length;return se?ye(K,le)/se:me}function D(K){return function(le){return le==null?n:le[K]}}function M(K){return function(le){return K==null?n:K[le]}}function H(K,le,se,Ae,Fe){return Fe(K,function(st,lt,rt){se=Ae?(Ae=!1,st):le(se,st,lt,rt)}),se}function Q(K,le){var se=K.length;for(K.sort(le);se--;)K[se]=K[se].value;return K}function ye(K,le){for(var se,Ae=-1,Fe=K.length;++Ae<Fe;){var st=le(K[Ae]);st!==n&&(se=se===n?st:se+st)}return se}function be(K,le){for(var se=-1,Ae=Array(K);++se<K;)Ae[se]=le(se);return Ae}function Ie(K,le){return it(le,function(se){return[se,K[se]]})}function Ye(K){return K&&K.slice(0,_l(K)+1).replace(an,"")}function ht(K){return function(le){return K(le)}}function _t(K,le){return it(le,function(se){return K[se]})}function St(K,le){return K.has(le)}function vt(K,le){for(var se=-1,Ae=K.length;++se<Ae&&Qt(le,K[se],0)>-1;);return se}function An(K,le){for(var se=K.length;se--&&Qt(le,K[se],0)>-1;);return se}function bn(K,le){for(var se=K.length,Ae=0;se--;)K[se]===le&&++Ae;return Ae}var $n=M(Ri),os=M(Jr);function ca(K){return"\\"+vi[K]}function go(K,le){return K==null?n:K[le]}function Qr(K){return mi.test(K)}function za(K){return Ns.test(K)}function Ai(K){for(var le,se=[];!(le=K.next()).done;)se.push(le.value);return se}function fa(K){var le=-1,se=Array(K.size);return K.forEach(function(Ae,Fe){se[++le]=[Fe,Ae]}),se}function ss(K,le){return function(se){return K(le(se))}}function ei(K,le){for(var se=-1,Ae=K.length,Fe=0,st=[];++se<Ae;){var lt=K[se];(lt===le||lt===w)&&(K[se]=w,st[Fe++]=se)}return st}function mo(K){var le=-1,se=Array(K.size);return K.forEach(function(Ae){se[++le]=Ae}),se}function Ya(K){var le=-1,se=Array(K.size);return K.forEach(function(Ae){se[++le]=[Ae,Ae]}),se}function Du(K,le,se){for(var Ae=se-1,Fe=K.length;++Ae<Fe;)if(K[Ae]===le)return Ae;return-1}function da(K,le,se){for(var Ae=se+1;Ae--;)if(K[Ae]===le)return Ae;return Ae}function vo(K){return Qr(K)?Bs(K):Lr(K)}function cn(K){return Qr(K)?J(K):Fr(K)}function _l(K){for(var le=K.length;le--&&Di.test(K.charAt(le)););return le}var ha=M(Io);function Bs(K){for(var le=xr.lastIndex=0;xr.test(K);)++le;return le}function J(K){return K.match(xr)||[]}function fe(K){return K.match(Wa)||[]}var Se=function K(le){le=le==null?ln:Ce.defaults(ln.Object(),le,Ce.pick(ln,is));var se=le.Array,Ae=le.Date,Fe=le.Error,st=le.Function,lt=le.Math,rt=le.Object,It=le.RegExp,wt=le.String,Vt=le.TypeError,Yn=se.prototype,nr=st.prototype,In=rt.prototype,zt=le["__core-js_shared__"],jr=nr.toString,kt=In.hasOwnProperty,Pu=0,pn=function(){var s=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Lo=In.toString,Ou=jr.call(rt),_u=ln._,Ru=It("^"+jr.call(kt).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pa=ua?le.Buffer:n,Fo=le.Symbol,Ga=le.Uint8Array,qa=pa?pa.allocUnsafe:n,$s=ss(rt.getPrototypeOf,rt),ga=rt.create,Rl=In.propertyIsEnumerable,No=Yn.splice,Al=Fo?Fo.isConcatSpreadable:n,Xi=Fo?Fo.iterator:n,jo=Fo?Fo.toStringTag:n,as=function(){try{var s=nc(rt,"defineProperty");return s({},"",{}),s}catch{}}(),jf=le.clearTimeout!==ln.clearTimeout&&le.clearTimeout,Xa=Ae&&Ae.now!==ln.Date.now&&Ae.now,Ic=le.setTimeout!==ln.setTimeout&&le.setTimeout,ma=lt.ceil,Vs=lt.floor,va=rt.getOwnPropertySymbols,Il=pa?pa.isBuffer:n,ya=le.isFinite,Ka=Yn.join,Mc=ss(rt.keys,rt),wn=lt.max,Gn=lt.min,ls=Ae.now,Au=le.parseInt,us=lt.random,Ml=Yn.reverse,yo=nc(le,"DataView"),cs=nc(le,"Map"),ba=nc(le,"Promise"),bo=nc(le,"Set"),Bo=nc(le,"WeakMap"),wa=nc(rt,"create"),Za=Bo&&new Bo,Hs={},fs=rc(yo),Iu=rc(cs),Bf=rc(ba),Lc=rc(bo),xa=rc(Bo),ds=Fo?Fo.prototype:n,Us=ds?ds.valueOf:n,Ja=ds?ds.toString:n;function W(s){if(or(s)&&!Ht(s)&&!(s instanceof $t)){if(s instanceof Tr)return s;if(kt.call(s,"__wrapped__"))return Eb(s)}return new Tr(s)}var $o=function(){function s(){}return function(u){if(!qn(u))return{};if(ga)return ga(u);s.prototype=u;var b=new s;return s.prototype=n,b}}();function Vo(){}function Tr(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}W.templateSettings={escape:Pn,evaluate:hn,interpolate:ai,variable:"",imports:{_:W}},W.prototype=Vo.prototype,W.prototype.constructor=W,Tr.prototype=$o(Vo.prototype),Tr.prototype.constructor=Tr;function $t(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ke,this.__views__=[]}function Ll(){var s=new $t(this.__wrapped__);return s.__actions__=Wr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Wr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Wr(this.__views__),s}function Qa(){if(this.__filtered__){var s=new $t(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function Fl(){var s=this.__wrapped__.value(),u=this.__dir__,b=Ht(s),O=u<0,$=b?s.length:0,X=LP(0,$,this.__views__),ie=X.start,de=X.end,ve=de-ie,$e=O?de:ie-1,He=this.__iteratees__,Ze=He.length,at=0,bt=Gn(ve,this.__takeCount__);if(!b||!O&&$==ve&&bt==ve)return Zc(s,this.__actions__);var Dt=[];e:for(;ve--&&at<bt;){$e+=u;for(var Xt=-1,Pt=s[$e];++Xt<Ze;){var Jt=He[Xt],tn=Jt.iteratee,Yo=Jt.type,no=tn(Pt);if(Yo==he)Pt=no;else if(!no){if(Yo==We)continue e;break e}}Dt[at++]=Pt}return Dt}$t.prototype=$o(Vo.prototype),$t.prototype.constructor=$t;function wo(s){var u=-1,b=s==null?0:s.length;for(this.clear();++u<b;){var O=s[u];this.set(O[0],O[1])}}function Mu(){this.__data__=wa?wa(null):{},this.size=0}function Fc(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function Nc(s){var u=this.__data__;if(wa){var b=u[s];return b===d?n:b}return kt.call(u,s)?u[s]:n}function jc(s){var u=this.__data__;return wa?u[s]!==n:kt.call(u,s)}function $f(s,u){var b=this.__data__;return this.size+=this.has(s)?0:1,b[s]=wa&&u===n?d:u,this}wo.prototype.clear=Mu,wo.prototype.delete=Fc,wo.prototype.get=Nc,wo.prototype.has=jc,wo.prototype.set=$f;function xo(s){var u=-1,b=s==null?0:s.length;for(this.clear();++u<b;){var O=s[u];this.set(O[0],O[1])}}function Vf(){this.__data__=[],this.size=0}function Hf(s){var u=this.__data__,b=Ki(u,s);if(b<0)return!1;var O=u.length-1;return b==O?u.pop():No.call(u,b,1),--this.size,!0}function Lu(s){var u=this.__data__,b=Ki(u,s);return b<0?n:u[b][1]}function el(s){return Ki(this.__data__,s)>-1}function Uf(s,u){var b=this.__data__,O=Ki(b,s);return O<0?(++this.size,b.push([s,u])):b[O][1]=u,this}xo.prototype.clear=Vf,xo.prototype.delete=Hf,xo.prototype.get=Lu,xo.prototype.has=el,xo.prototype.set=Uf;function Ho(s){var u=-1,b=s==null?0:s.length;for(this.clear();++u<b;){var O=s[u];this.set(O[0],O[1])}}function Fu(){this.size=0,this.__data__={hash:new wo,map:new(cs||xo),string:new wo}}function Nl(s){var u=nh(this,s).delete(s);return this.size-=u?1:0,u}function Wf(s){return nh(this,s).get(s)}function zf(s){return nh(this,s).has(s)}function Yf(s,u){var b=nh(this,s),O=b.size;return b.set(s,u),this.size+=b.size==O?0:1,this}Ho.prototype.clear=Fu,Ho.prototype.delete=Nl,Ho.prototype.get=Wf,Ho.prototype.has=zf,Ho.prototype.set=Yf;function Br(s){var u=-1,b=s==null?0:s.length;for(this.__data__=new Ho;++u<b;)this.add(s[u])}function Nu(s){return this.__data__.set(s,d),this}function jl(s){return this.__data__.has(s)}Br.prototype.add=Br.prototype.push=Nu,Br.prototype.has=jl;function qt(s){var u=this.__data__=new xo(s);this.size=u.size}function bi(){this.__data__=new xo,this.size=0}function Sa(s){var u=this.__data__,b=u.delete(s);return this.size=u.size,b}function Ws(s){return this.__data__.get(s)}function Zt(s){return this.__data__.has(s)}function hs(s,u){var b=this.__data__;if(b instanceof xo){var O=b.__data__;if(!cs||O.length<i-1)return O.push([s,u]),this.size=++b.size,this;b=this.__data__=new Ho(O)}return b.set(s,u),this.size=b.size,this}qt.prototype.clear=bi,qt.prototype.delete=Sa,qt.prototype.get=Ws,qt.prototype.has=Zt,qt.prototype.set=hs;function tl(s,u){var b=Ht(s),O=!b&&ic(s),$=!b&&!O&&tu(s),X=!b&&!O&&!$&&of(s),ie=b||O||$||X,de=ie?be(s.length,wt):[],ve=de.length;for(var $e in s)(u||kt.call(s,$e))&&!(ie&&($e=="length"||$&&($e=="offset"||$e=="parent")||X&&($e=="buffer"||$e=="byteLength"||$e=="byteOffset")||dl($e,ve)))&&de.push($e);return de}function ti(s){var u=s.length;return u?s[Zs(0,u-1)]:n}function wi(s,u){return rh(Wr(s),Ys(u,0,s.length))}function So(s){return rh(Wr(s))}function ju(s,u,b){(b!==n&&!na(s[u],b)||b===n&&!(u in s))&&xi(s,u,b)}function $r(s,u,b){var O=s[u];(!(kt.call(s,u)&&na(O,b))||b===n&&!(u in s))&&xi(s,u,b)}function Ki(s,u){for(var b=s.length;b--;)if(na(s[b][0],u))return b;return-1}function zs(s,u,b,O){return ps(s,function($,X,ie){u(O,$,b($),ie)}),O}function Bc(s,u){return s&&Ii(u,ri(u),s)}function Bu(s,u){return s&&Ii(u,Do(u),s)}function xi(s,u,b){u=="__proto__"&&as?as(s,u,{configurable:!0,enumerable:!0,value:b,writable:!0}):s[u]=b}function $u(s,u){for(var b=-1,O=u.length,$=se(O),X=s==null;++b<O;)$[b]=X?n:dg(s,u[b]);return $}function Ys(s,u,b){return s===s&&(b!==n&&(s=s<=b?s:b),u!==n&&(s=s>=u?s:u)),s}function Vr(s,u,b,O,$,X){var ie,de=u&m,ve=u&T,$e=u&E;if(b&&(ie=$?b(s,O,$,X):b(s)),ie!==n)return ie;if(!qn(s))return s;var He=Ht(s);if(He){if(ie=NP(s),!de)return Wr(s,ie)}else{var Ze=Mi(s),at=Ze==Qe||Ze==At;if(tu(s))return bs(s,de);if(Ze==Hn||Ze==Je||at&&!$){if(ie=ve||at?{}:mb(s),!de)return ve?Xf(s,Bu(ie,s)):tf(s,Bc(ie,s))}else{if(!Kt[Ze])return $?s:{};ie=jP(s,Ze,de)}}X||(X=new qt);var bt=X.get(s);if(bt)return bt;X.set(s,ie),zb(s)?s.forEach(function(Pt){ie.add(Vr(Pt,u,b,Pt,s,X))}):Ub(s)&&s.forEach(function(Pt,Jt){ie.set(Jt,Vr(Pt,u,b,Jt,s,X))});var Dt=$e?ve?Jp:Zp:ve?Do:ri,Xt=He?n:Dt(s);return te(Xt||s,function(Pt,Jt){Xt&&(Jt=Pt,Pt=s[Jt]),$r(ie,Jt,Vr(Pt,u,b,Jt,s,X))}),ie}function Vu(s){var u=ri(s);return function(b){return Hu(b,s,u)}}function Hu(s,u,b){var O=b.length;if(s==null)return!O;for(s=rt(s);O--;){var $=b[O],X=u[$],ie=s[$];if(ie===n&&!($ in s)||!X(ie))return!1}return!0}function Uu(s,u,b){if(typeof s!="function")throw new Vt(a);return Zf(function(){s.apply(n,b)},u)}function Gs(s,u,b,O){var $=-1,X=xe,ie=!0,de=s.length,ve=[],$e=u.length;if(!de)return ve;b&&(u=it(u,ht(b))),O?(X=Be,ie=!1):u.length>=i&&(X=St,ie=!1,u=new Br(u));e:for(;++$<de;){var He=s[$],Ze=b==null?He:b(He);if(He=O||He!==0?He:0,ie&&Ze===Ze){for(var at=$e;at--;)if(u[at]===Ze)continue e;ve.push(He)}else X(u,Ze,O)||ve.push(He)}return ve}var ps=v(Si),Wu=v($l,!0);function $c(s,u){var b=!0;return ps(s,function(O,$,X){return b=!!u(O,$,X),b}),b}function Bl(s,u,b){for(var O=-1,$=s.length;++O<$;){var X=s[O],ie=u(X);if(ie!=null&&(de===n?ie===ie&&!zo(ie):b(ie,de)))var de=ie,ve=X}return ve}function Gf(s,u,b,O){var $=s.length;for(b=Yt(b),b<0&&(b=-b>$?0:$+b),O=O===n||O>$?$:Yt(O),O<0&&(O+=$),O=b>O?0:Gb(O);b<O;)s[b++]=u;return s}function Vc(s,u){var b=[];return ps(s,function(O,$,X){u(O,$,X)&&b.push(O)}),b}function fr(s,u,b,O,$){var X=-1,ie=s.length;for(b||(b=$P),$||($=[]);++X<ie;){var de=s[X];u>0&&b(de)?u>1?fr(de,u-1,b,O,$):Tt($,de):O||($[$.length]=de)}return $}var zu=l(),Hc=l(!0);function Si(s,u){return s&&zu(s,u,ri)}function $l(s,u){return s&&Hc(s,u,ri)}function Ta(s,u){return Re(u,function(b){return hl(s[b])})}function gs(s,u){u=Ti(u,s);for(var b=0,O=u.length;s!=null&&b<O;)s=s[Aa(u[b++])];return b&&b==O?s:n}function nl(s,u,b){var O=u(s);return Ht(s)?O:Tt(O,b(s))}function rr(s){return s==null?s===n?dn:mr:jo&&jo in rt(s)?MP(s):GP(s)}function qs(s,u){return s>u}function Vl(s,u){return s!=null&&kt.call(s,u)}function Ca(s,u){return s!=null&&u in rt(s)}function Hl(s,u,b){return s>=Gn(u,b)&&s<wn(u,b)}function Ea(s,u,b){for(var O=b?Be:xe,$=s[0].length,X=s.length,ie=X,de=se(X),ve=1/0,$e=[];ie--;){var He=s[ie];ie&&u&&(He=it(He,ht(u))),ve=Gn(He.length,ve),de[ie]=!b&&(u||$>=120&&He.length>=120)?new Br(ie&&He):n}He=s[0];var Ze=-1,at=de[0];e:for(;++Ze<$&&$e.length<ve;){var bt=He[Ze],Dt=u?u(bt):bt;if(bt=b||bt!==0?bt:0,!(at?St(at,Dt):O($e,Dt,b))){for(ie=X;--ie;){var Xt=de[ie];if(!(Xt?St(Xt,Dt):O(s[ie],Dt,b)))continue e}at&&at.push(Dt),$e.push(bt)}}return $e}function Ul(s,u,b,O){return Si(s,function($,X,ie){u(O,b($),X,ie)}),O}function To(s,u,b){u=Ti(u,s),s=wb(s,u);var O=s==null?s:s[Aa(xs(u))];return O==null?n:V(O,s,b)}function Wl(s){return or(s)&&rr(s)==Je}function Xs(s){return or(s)&&rr(s)==oi}function Uc(s){return or(s)&&rr(s)==pt}function rl(s,u,b,O,$){return s===u?!0:s==null||u==null||!or(s)&&!or(u)?s!==s&&u!==u:ka(s,u,b,O,rl,$)}function ka(s,u,b,O,$,X){var ie=Ht(s),de=Ht(u),ve=ie?Ke:Mi(s),$e=de?Ke:Mi(u);ve=ve==Je?Hn:ve,$e=$e==Je?Hn:$e;var He=ve==Hn,Ze=$e==Hn,at=ve==$e;if(at&&tu(s)){if(!tu(u))return!1;ie=!0,He=!1}if(at&&!He)return X||(X=new qt),ie||of(s)?hb(s,u,b,O,$,X):AP(s,u,ve,b,O,$,X);if(!(b&I)){var bt=He&&kt.call(s,"__wrapped__"),Dt=Ze&&kt.call(u,"__wrapped__");if(bt||Dt){var Xt=bt?s.value():s,Pt=Dt?u.value():u;return X||(X=new qt),$(Xt,Pt,b,O,X)}}return at?(X||(X=new qt),IP(s,u,b,O,$,X)):!1}function Da(s){return or(s)&&Mi(s)==Mt}function Yu(s,u,b,O){var $=b.length,X=$,ie=!O;if(s==null)return!X;for(s=rt(s);$--;){var de=b[$];if(ie&&de[2]?de[1]!==s[de[0]]:!(de[0]in s))return!1}for(;++$<X;){de=b[$];var ve=de[0],$e=s[ve],He=de[1];if(ie&&de[2]){if($e===n&&!(ve in s))return!1}else{var Ze=new qt;if(O)var at=O($e,He,ve,s,u,Ze);if(!(at===n?rl(He,$e,I|A,O,Ze):at))return!1}}return!0}function Wc(s){if(!qn(s)||HP(s))return!1;var u=hl(s)?Ru:Xr;return u.test(rc(s))}function Ks(s){return or(s)&&rr(s)==kr}function zl(s){return or(s)&&Mi(s)==Jn}function Uo(s){return or(s)&&uh(s.length)&&!!Gt[rr(s)]}function Yl(s){return typeof s=="function"?s:s==null?Po:typeof s=="object"?Ht(s)?ol(s[0],s[1]):Co(s):i0(s)}function Wo(s){if(!Kf(s))return Mc(s);var u=[];for(var b in rt(s))kt.call(s,b)&&b!="constructor"&&u.push(b);return u}function il(s){if(!qn(s))return YP(s);var u=Kf(s),b=[];for(var O in s)O=="constructor"&&(u||!kt.call(s,O))||b.push(O);return b}function Zi(s,u){return s<u}function Ji(s,u){var b=-1,O=ko(s)?se(s.length):[];return ps(s,function($,X,ie){O[++b]=u($,X,ie)}),O}function Co(s){var u=eg(s);return u.length==1&&u[0][2]?yb(u[0][0],u[0][1]):function(b){return b===s||Yu(b,s,u)}}function ol(s,u){return ng(s)&&vb(u)?yb(Aa(s),u):function(b){var O=dg(b,s);return O===n&&O===u?hg(b,s):rl(u,O,I|A)}}function ms(s,u,b,O,$){s!==u&&zu(u,function(X,ie){if($||($=new qt),qn(X))Qi(s,u,ie,b,ms,O,$);else{var de=O?O(ig(s,ie),X,ie+"",s,u,$):n;de===n&&(de=X),ju(s,ie,de)}},Do)}function Qi(s,u,b,O,$,X,ie){var de=ig(s,b),ve=ig(u,b),$e=ie.get(ve);if($e){ju(s,b,$e);return}var He=X?X(de,ve,b+"",s,u,ie):n,Ze=He===n;if(Ze){var at=Ht(ve),bt=!at&&tu(ve),Dt=!at&&!bt&&of(ve);He=ve,at||bt||Dt?Ht(de)?He=de:hr(de)?He=Wr(de):bt?(Ze=!1,He=bs(ve,!0)):Dt?(Ze=!1,He=ul(ve,!0)):He=[]:Jf(ve)||ic(ve)?(He=de,ic(de)?He=qb(de):(!qn(de)||hl(de))&&(He=mb(ve))):Ze=!1}Ze&&(ie.set(ve,He),$(He,ve,O,X,ie),ie.delete(ve)),ju(s,b,He)}function Pa(s,u){var b=s.length;if(b)return u+=u<0?b:0,dl(u,b)?s[u]:n}function Gl(s,u,b){u.length?u=it(u,function(X){return Ht(X)?function(ie){return gs(ie,X.length===1?X[0]:X)}:X}):u=[Po];var O=-1;u=it(u,ht(Ct()));var $=Ji(s,function(X,ie,de){var ve=it(u,function($e){return $e(X)});return{criteria:ve,index:++O,value:X}});return Q($,function(X,ie){return eu(X,ie,b)})}function sl(s,u){return Oa(s,u,function(b,O){return hg(s,O)})}function Oa(s,u,b){for(var O=-1,$=u.length,X={};++O<$;){var ie=u[O],de=gs(s,ie);b(de,ie)&&Js(X,Ti(ie,s),de)}return X}function zc(s){return function(u){return gs(u,s)}}function Gu(s,u,b,O){var $=O?ho:Qt,X=-1,ie=u.length,de=s;for(s===u&&(u=Wr(u)),b&&(de=it(s,ht(b)));++X<ie;)for(var ve=0,$e=u[X],He=b?b($e):$e;(ve=$(de,He,ve,O))>-1;)de!==s&&No.call(de,ve,1),No.call(s,ve,1);return s}function qu(s,u){for(var b=s?u.length:0,O=b-1;b--;){var $=u[b];if(b==O||$!==X){var X=$;dl($)?No.call(s,$,1):Ur(s,$)}}return s}function Zs(s,u){return s+Vs(us()*(u-s+1))}function Xu(s,u,b,O){for(var $=-1,X=wn(ma((u-s)/(b||1)),0),ie=se(X);X--;)ie[O?X:++$]=s,s+=b;return ie}function ql(s,u){var b="";if(!s||u<1||u>Ne)return b;do u%2&&(b+=s),u=Vs(u/2),u&&(s+=s);while(u);return b}function Bt(s,u){return og(bb(s,u,Po),s+"")}function al(s){return ti(sf(s))}function Ku(s,u){var b=sf(s);return rh(b,Ys(u,0,b.length))}function Js(s,u,b,O){if(!qn(s))return s;u=Ti(u,s);for(var $=-1,X=u.length,ie=X-1,de=s;de!=null&&++$<X;){var ve=Aa(u[$]),$e=b;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return s;if($!=ie){var He=de[ve];$e=O?O(He,ve,de):n,$e===n&&($e=qn(He)?He:dl(u[$+1])?[]:{})}$r(de,ve,$e),de=de[ve]}return s}var Xl=Za?function(s,u){return Za.set(s,u),s}:Po,Yc=as?function(s,u){return as(s,"toString",{configurable:!0,enumerable:!1,value:gg(u),writable:!0})}:Po;function Gc(s){return rh(sf(s))}function ni(s,u,b){var O=-1,$=s.length;u<0&&(u=-u>$?0:$+u),b=b>$?$:b,b<0&&(b+=$),$=u>b?0:b-u>>>0,u>>>=0;for(var X=se($);++O<$;)X[O]=s[O+u];return X}function qc(s,u){var b;return ps(s,function(O,$,X){return b=u(O,$,X),!b}),!!b}function Kl(s,u,b){var O=0,$=s==null?O:s.length;if(typeof u=="number"&&u===u&&$<=et){for(;O<$;){var X=O+$>>>1,ie=s[X];ie!==null&&!zo(ie)&&(b?ie<=u:ie<u)?O=X+1:$=X}return $}return Zu(s,u,Po,b)}function Zu(s,u,b,O){var $=0,X=s==null?0:s.length;if(X===0)return 0;u=b(u);for(var ie=u!==u,de=u===null,ve=zo(u),$e=u===n;$<X;){var He=Vs(($+X)/2),Ze=b(s[He]),at=Ze!==n,bt=Ze===null,Dt=Ze===Ze,Xt=zo(Ze);if(ie)var Pt=O||Dt;else $e?Pt=Dt&&(O||at):de?Pt=Dt&&at&&(O||!bt):ve?Pt=Dt&&at&&!bt&&(O||!Xt):bt||Xt?Pt=!1:Pt=O?Ze<=u:Ze<u;Pt?$=He+1:X=He}return Gn(X,ze)}function Ju(s,u){for(var b=-1,O=s.length,$=0,X=[];++b<O;){var ie=s[b],de=u?u(ie):ie;if(!b||!na(de,ve)){var ve=de;X[$++]=ie===0?0:ie}}return X}function Xc(s){return typeof s=="number"?s:zo(s)?me:+s}function Hr(s){if(typeof s=="string")return s;if(Ht(s))return it(s,Hr)+"";if(zo(s))return Ja?Ja.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function vs(s,u,b){var O=-1,$=xe,X=s.length,ie=!0,de=[],ve=de;if(b)ie=!1,$=Be;else if(X>=i){var $e=u?null:Ra(s);if($e)return mo($e);ie=!1,$=St,ve=new Br}else ve=u?[]:de;e:for(;++O<X;){var He=s[O],Ze=u?u(He):He;if(He=b||He!==0?He:0,ie&&Ze===Ze){for(var at=ve.length;at--;)if(ve[at]===Ze)continue e;u&&ve.push(Ze),de.push(He)}else $(ve,Ze,b)||(ve!==de&&ve.push(Ze),de.push(He))}return de}function Ur(s,u){return u=Ti(u,s),s=wb(s,u),s==null||delete s[Aa(xs(u))]}function Kc(s,u,b,O){return Js(s,u,b(gs(s,u)),O)}function Qs(s,u,b,O){for(var $=s.length,X=O?$:-1;(O?X--:++X<$)&&u(s[X],X,s););return b?ni(s,O?0:X,O?X+1:$):ni(s,O?X+1:0,O?$:X)}function Zc(s,u){var b=s;return b instanceof $t&&(b=b.value()),Et(u,function(O,$){return $.func.apply($.thisArg,Tt([O],$.args))},b)}function dr(s,u,b){var O=s.length;if(O<2)return O?vs(s[0]):[];for(var $=-1,X=se(O);++$<O;)for(var ie=s[$],de=-1;++de<O;)de!=$&&(X[$]=Gs(X[$]||ie,s[de],u,b));return vs(fr(X,1),u,b)}function Jc(s,u,b){for(var O=-1,$=s.length,X=u.length,ie={};++O<$;){var de=O<X?u[O]:n;b(ie,s[O],de)}return ie}function Zl(s){return hr(s)?s:[]}function Jl(s){return typeof s=="function"?s:Po}function Ti(s,u){return Ht(s)?s:ng(s,u)?[s]:Cb(gn(s))}var Qc=Bt;function ys(s,u,b){var O=s.length;return b=b===n?O:b,!u&&b>=O?s:ni(s,u,b)}var Ql=jf||function(s){return ln.clearTimeout(s)};function bs(s,u){if(u)return s.slice();var b=s.length,O=qa?qa(b):new s.constructor(b);return s.copy(O),O}function ea(s){var u=new s.constructor(s.byteLength);return new Ga(u).set(new Ga(s)),u}function qf(s,u){var b=u?ea(s.buffer):s.buffer;return new s.constructor(b,s.byteOffset,s.byteLength)}function Qu(s){var u=new s.constructor(s.source,Or.exec(s));return u.lastIndex=s.lastIndex,u}function ll(s){return Us?rt(Us.call(s)):{}}function ul(s,u){var b=u?ea(s.buffer):s.buffer;return new s.constructor(b,s.byteOffset,s.length)}function ec(s,u){if(s!==u){var b=s!==n,O=s===null,$=s===s,X=zo(s),ie=u!==n,de=u===null,ve=u===u,$e=zo(u);if(!de&&!$e&&!X&&s>u||X&&ie&&ve&&!de&&!$e||O&&ie&&ve||!b&&ve||!$)return 1;if(!O&&!X&&!$e&&s<u||$e&&b&&$&&!O&&!X||de&&b&&$||!ie&&$||!ve)return-1}return 0}function eu(s,u,b){for(var O=-1,$=s.criteria,X=u.criteria,ie=$.length,de=b.length;++O<ie;){var ve=ec($[O],X[O]);if(ve){if(O>=de)return ve;var $e=b[O];return ve*($e=="desc"?-1:1)}}return s.index-u.index}function tc(s,u,b,O){for(var $=-1,X=s.length,ie=b.length,de=-1,ve=u.length,$e=wn(X-ie,0),He=se(ve+$e),Ze=!O;++de<ve;)He[de]=u[de];for(;++$<ie;)(Ze||$<X)&&(He[b[$]]=s[$]);for(;$e--;)He[de++]=s[$++];return He}function ef(s,u,b,O){for(var $=-1,X=s.length,ie=-1,de=b.length,ve=-1,$e=u.length,He=wn(X-de,0),Ze=se(He+$e),at=!O;++$<He;)Ze[$]=s[$];for(var bt=$;++ve<$e;)Ze[bt+ve]=u[ve];for(;++ie<de;)(at||$<X)&&(Ze[bt+b[ie]]=s[$++]);return Ze}function Wr(s,u){var b=-1,O=s.length;for(u||(u=se(O));++b<O;)u[b]=s[b];return u}function Ii(s,u,b,O){var $=!b;b||(b={});for(var X=-1,ie=u.length;++X<ie;){var de=u[X],ve=O?O(b[de],s[de],de,b,s):n;ve===n&&(ve=s[de]),$?xi(b,de,ve):$r(b,de,ve)}return b}function tf(s,u){return Ii(s,tg(s),u)}function Xf(s,u){return Ii(s,pb(s),u)}function cl(s,u){return function(b,O){var $=Ht(b)?oe:zs,X=u?u():{};return $(b,s,Ct(O,2),X)}}function _a(s){return Bt(function(u,b){var O=-1,$=b.length,X=$>1?b[$-1]:n,ie=$>2?b[2]:n;for(X=s.length>3&&typeof X=="function"?($--,X):n,ie&&to(b[0],b[1],ie)&&(X=$<3?n:X,$=1),u=rt(u);++O<$;){var de=b[O];de&&s(u,de,O,X)}return u})}function v(s,u){return function(b,O){if(b==null)return b;if(!ko(b))return s(b,O);for(var $=b.length,X=u?$:-1,ie=rt(b);(u?X--:++X<$)&&O(ie[X],X,ie)!==!1;);return b}}function l(s){return function(u,b,O){for(var $=-1,X=rt(u),ie=O(u),de=ie.length;de--;){var ve=ie[s?de:++$];if(b(X[ve],ve,X)===!1)break}return u}}function f(s,u,b){var O=u&L,$=R(s);function X(){var ie=this&&this!==ln&&this instanceof X?$:s;return ie.apply(O?b:this,arguments)}return X}function g(s){return function(u){u=gn(u);var b=Qr(u)?cn(u):n,O=b?b[0]:u.charAt(0),$=b?ys(b,1).join(""):u.slice(1);return O[s]()+$}}function x(s){return function(u){return Et(n0(t0(u).replace(Fs,"")),s,"")}}function R(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var b=$o(s.prototype),O=s.apply(b,u);return qn(O)?O:b}}function B(s,u,b){var O=R(s);function $(){for(var X=arguments.length,ie=se(X),de=X,ve=rf($);de--;)ie[de]=arguments[de];var $e=X<3&&ie[0]!==ve&&ie[X-1]!==ve?[]:ei(ie,ve);if(X-=$e.length,X<b)return ws(s,u,we,$.placeholder,n,ie,$e,n,n,b-X);var He=this&&this!==ln&&this instanceof $?O:s;return V(He,this,ie)}return $}function z(s){return function(u,b,O){var $=rt(u);if(!ko(u)){var X=Ct(b,3);u=ri(u),b=function(de){return X($[de],de,$)}}var ie=s(u,b,O);return ie>-1?$[X?u[ie]:ie]:n}}function ne(s){return fl(function(u){var b=u.length,O=b,$=Tr.prototype.thru;for(s&&u.reverse();O--;){var X=u[O];if(typeof X!="function")throw new Vt(a);if($&&!ie&&th(X)=="wrapper")var ie=new Tr([],!0)}for(O=ie?O:b;++O<b;){X=u[O];var de=th(X),ve=de=="wrapper"?Qp(X):n;ve&&rg(ve[0])&&ve[1]==(S|G|Z|ae)&&!ve[4].length&&ve[9]==1?ie=ie[th(ve[0])].apply(ie,ve[3]):ie=X.length==1&&rg(X)?ie[de]():ie.thru(X)}return function(){var $e=arguments,He=$e[0];if(ie&&$e.length==1&&Ht(He))return ie.plant(He).value();for(var Ze=0,at=b?u[Ze].apply(this,$e):He;++Ze<b;)at=u[Ze].call(this,at);return at}})}function we(s,u,b,O,$,X,ie,de,ve,$e){var He=u&S,Ze=u&L,at=u&_,bt=u&(G|re),Dt=u&ce,Xt=at?n:R(s);function Pt(){for(var Jt=arguments.length,tn=se(Jt),Yo=Jt;Yo--;)tn[Yo]=arguments[Yo];if(bt)var no=rf(Pt),Go=bn(tn,no);if(O&&(tn=tc(tn,O,$,bt)),X&&(tn=ef(tn,X,ie,bt)),Jt-=Go,bt&&Jt<$e){var pr=ei(tn,no);return ws(s,u,we,Pt.placeholder,b,tn,pr,de,ve,$e-Jt)}var ra=Ze?b:this,gl=at?ra[s]:s;return Jt=tn.length,de?tn=qP(tn,de):Dt&&Jt>1&&tn.reverse(),He&&ve<Jt&&(tn.length=ve),this&&this!==ln&&this instanceof Pt&&(gl=Xt||R(gl)),gl.apply(ra,tn)}return Pt}function je(s,u){return function(b,O){return Ul(b,s,u(O),{})}}function Ge(s,u){return function(b,O){var $;if(b===n&&O===n)return u;if(b!==n&&($=b),O!==n){if($===n)return O;typeof b=="string"||typeof O=="string"?(b=Hr(b),O=Hr(O)):(b=Xc(b),O=Xc(O)),$=s(b,O)}return $}}function nt(s){return fl(function(u){return u=it(u,ht(Ct())),Bt(function(b){var O=this;return s(u,function($){return V($,O,b)})})})}function xt(s,u){u=u===n?" ":Hr(u);var b=u.length;if(b<2)return b?ql(u,s):u;var O=ql(u,ma(s/vo(u)));return Qr(u)?ys(cn(O),0,s).join(""):O.slice(0,s)}function en(s,u,b,O){var $=u&L,X=R(s);function ie(){for(var de=-1,ve=arguments.length,$e=-1,He=O.length,Ze=se(He+ve),at=this&&this!==ln&&this instanceof ie?X:s;++$e<He;)Ze[$e]=O[$e];for(;ve--;)Ze[$e++]=arguments[++de];return V(at,$?b:this,Ze)}return ie}function ir(s){return function(u,b,O){return O&&typeof O!="number"&&to(u,b,O)&&(b=O=n),u=pl(u),b===n?(b=u,u=0):b=pl(b),O=O===n?u<b?1:-1:pl(O),Xu(u,b,O,s)}}function Eo(s){return function(u,b){return typeof u=="string"&&typeof b=="string"||(u=Ss(u),b=Ss(b)),s(u,b)}}function ws(s,u,b,O,$,X,ie,de,ve,$e){var He=u&G,Ze=He?ie:n,at=He?n:ie,bt=He?X:n,Dt=He?n:X;u|=He?Z:ue,u&=~(He?ue:Z),u&U||(u&=-4);var Xt=[s,u,$,bt,Ze,Dt,at,de,ve,$e],Pt=b.apply(n,Xt);return rg(s)&&xb(Pt,Xt),Pt.placeholder=O,Sb(Pt,s,u)}function eo(s){var u=lt[s];return function(b,O){if(b=Ss(b),O=O==null?0:Gn(Yt(O),292),O&&ya(b)){var $=(gn(b)+"e").split("e"),X=u($[0]+"e"+(+$[1]+O));return $=(gn(X)+"e").split("e"),+($[0]+"e"+(+$[1]-O))}return u(b)}}var Ra=bo&&1/mo(new bo([,-0]))[1]==Oe?function(s){return new bo(s)}:yg;function nf(s){return function(u){var b=Mi(u);return b==Mt?fa(u):b==Jn?Ya(u):Ie(u,s(u))}}function ta(s,u,b,O,$,X,ie,de){var ve=u&_;if(!ve&&typeof s!="function")throw new Vt(a);var $e=O?O.length:0;if($e||(u&=-97,O=$=n),ie=ie===n?ie:wn(Yt(ie),0),de=de===n?de:Yt(de),$e-=$?$.length:0,u&ue){var He=O,Ze=$;O=$=n}var at=ve?n:Qp(s),bt=[s,u,b,O,$,He,Ze,X,ie,de];if(at&&zP(bt,at),s=bt[0],u=bt[1],b=bt[2],O=bt[3],$=bt[4],de=bt[9]=bt[9]===n?ve?0:s.length:wn(bt[9]-$e,0),!de&&u&(G|re)&&(u&=-25),!u||u==L)var Dt=f(s,u,b);else u==G||u==re?Dt=B(s,u,de):(u==Z||u==(L|Z))&&!$.length?Dt=en(s,u,b,O):Dt=we.apply(n,bt);var Xt=at?Xl:xb;return Sb(Xt(Dt,bt),s,u)}function fb(s,u,b,O){return s===n||na(s,In[b])&&!kt.call(O,b)?u:s}function db(s,u,b,O,$,X){return qn(s)&&qn(u)&&(X.set(u,s),ms(s,u,n,db,X),X.delete(u)),s}function RP(s){return Jf(s)?n:s}function hb(s,u,b,O,$,X){var ie=b&I,de=s.length,ve=u.length;if(de!=ve&&!(ie&&ve>de))return!1;var $e=X.get(s),He=X.get(u);if($e&&He)return $e==u&&He==s;var Ze=-1,at=!0,bt=b&A?new Br:n;for(X.set(s,u),X.set(u,s);++Ze<de;){var Dt=s[Ze],Xt=u[Ze];if(O)var Pt=ie?O(Xt,Dt,Ze,u,s,X):O(Dt,Xt,Ze,s,u,X);if(Pt!==n){if(Pt)continue;at=!1;break}if(bt){if(!un(u,function(Jt,tn){if(!St(bt,tn)&&(Dt===Jt||$(Dt,Jt,b,O,X)))return bt.push(tn)})){at=!1;break}}else if(!(Dt===Xt||$(Dt,Xt,b,O,X))){at=!1;break}}return X.delete(s),X.delete(u),at}function AP(s,u,b,O,$,X,ie){switch(b){case on:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case oi:return!(s.byteLength!=u.byteLength||!X(new Ga(s),new Ga(u)));case ct:case pt:case Vn:return na(+s,+u);case yt:return s.name==u.name&&s.message==u.message;case kr:case sn:return s==u+"";case Mt:var de=fa;case Jn:var ve=O&I;if(de||(de=mo),s.size!=u.size&&!ve)return!1;var $e=ie.get(s);if($e)return $e==u;O|=A,ie.set(s,u);var He=hb(de(s),de(u),O,$,X,ie);return ie.delete(s),He;case fn:if(Us)return Us.call(s)==Us.call(u)}return!1}function IP(s,u,b,O,$,X){var ie=b&I,de=Zp(s),ve=de.length,$e=Zp(u),He=$e.length;if(ve!=He&&!ie)return!1;for(var Ze=ve;Ze--;){var at=de[Ze];if(!(ie?at in u:kt.call(u,at)))return!1}var bt=X.get(s),Dt=X.get(u);if(bt&&Dt)return bt==u&&Dt==s;var Xt=!0;X.set(s,u),X.set(u,s);for(var Pt=ie;++Ze<ve;){at=de[Ze];var Jt=s[at],tn=u[at];if(O)var Yo=ie?O(tn,Jt,at,u,s,X):O(Jt,tn,at,s,u,X);if(!(Yo===n?Jt===tn||$(Jt,tn,b,O,X):Yo)){Xt=!1;break}Pt||(Pt=at=="constructor")}if(Xt&&!Pt){var no=s.constructor,Go=u.constructor;no!=Go&&"constructor"in s&&"constructor"in u&&!(typeof no=="function"&&no instanceof no&&typeof Go=="function"&&Go instanceof Go)&&(Xt=!1)}return X.delete(s),X.delete(u),Xt}function fl(s){return og(bb(s,n,Pb),s+"")}function Zp(s){return nl(s,ri,tg)}function Jp(s){return nl(s,Do,pb)}var Qp=Za?function(s){return Za.get(s)}:yg;function th(s){for(var u=s.name+"",b=Hs[u],O=kt.call(Hs,u)?b.length:0;O--;){var $=b[O],X=$.func;if(X==null||X==s)return $.name}return u}function rf(s){var u=kt.call(W,"placeholder")?W:s;return u.placeholder}function Ct(){var s=W.iteratee||mg;return s=s===mg?Yl:s,arguments.length?s(arguments[0],arguments[1]):s}function nh(s,u){var b=s.__data__;return VP(u)?b[typeof u=="string"?"string":"hash"]:b.map}function eg(s){for(var u=ri(s),b=u.length;b--;){var O=u[b],$=s[O];u[b]=[O,$,vb($)]}return u}function nc(s,u){var b=go(s,u);return Wc(b)?b:n}function MP(s){var u=kt.call(s,jo),b=s[jo];try{s[jo]=n;var O=!0}catch{}var $=Lo.call(s);return O&&(u?s[jo]=b:delete s[jo]),$}var tg=va?function(s){return s==null?[]:(s=rt(s),Re(va(s),function(u){return Rl.call(s,u)}))}:bg,pb=va?function(s){for(var u=[];s;)Tt(u,tg(s)),s=$s(s);return u}:bg,Mi=rr;(yo&&Mi(new yo(new ArrayBuffer(1)))!=on||cs&&Mi(new cs)!=Mt||ba&&Mi(ba.resolve())!=Sn||bo&&Mi(new bo)!=Jn||Bo&&Mi(new Bo)!=ut)&&(Mi=function(s){var u=rr(s),b=u==Hn?s.constructor:n,O=b?rc(b):"";if(O)switch(O){case fs:return on;case Iu:return Mt;case Bf:return Sn;case Lc:return Jn;case xa:return ut}return u});function LP(s,u,b){for(var O=-1,$=b.length;++O<$;){var X=b[O],ie=X.size;switch(X.type){case"drop":s+=ie;break;case"dropRight":u-=ie;break;case"take":u=Gn(u,s+ie);break;case"takeRight":s=wn(s,u-ie);break}}return{start:s,end:u}}function FP(s){var u=s.match(Ls);return u?u[1].split(qr):[]}function gb(s,u,b){u=Ti(u,s);for(var O=-1,$=u.length,X=!1;++O<$;){var ie=Aa(u[O]);if(!(X=s!=null&&b(s,ie)))break;s=s[ie]}return X||++O!=$?X:($=s==null?0:s.length,!!$&&uh($)&&dl(ie,$)&&(Ht(s)||ic(s)))}function NP(s){var u=s.length,b=new s.constructor(u);return u&&typeof s[0]=="string"&&kt.call(s,"index")&&(b.index=s.index,b.input=s.input),b}function mb(s){return typeof s.constructor=="function"&&!Kf(s)?$o($s(s)):{}}function jP(s,u,b){var O=s.constructor;switch(u){case oi:return ea(s);case ct:case pt:return new O(+s);case on:return qf(s,b);case Vi:case Hi:case Ui:case Dr:case Nn:case Pr:case vr:case zr:case Yr:return ul(s,b);case Mt:return new O;case Vn:case sn:return new O(s);case kr:return Qu(s);case Jn:return new O;case fn:return ll(s)}}function BP(s,u){var b=u.length;if(!b)return s;var O=b-1;return u[O]=(b>1?"& ":"")+u[O],u=u.join(b>2?", ":" "),s.replace(Ms,`{
|
|
144
|
-
/* [wrapped with `+u+`] */
|
|
145
|
-
`)}function $P(s){return Ht(s)||ic(s)||!!(Al&&s&&s[Al])}function dl(s,u){var b=typeof s;return u=u??Ne,!!u&&(b=="number"||b!="symbol"&&Rr.test(s))&&s>-1&&s%1==0&&s<u}function to(s,u,b){if(!qn(b))return!1;var O=typeof u;return(O=="number"?ko(b)&&dl(u,b.length):O=="string"&&u in b)?na(b[u],s):!1}function ng(s,u){if(Ht(s))return!1;var b=typeof s;return b=="number"||b=="symbol"||b=="boolean"||s==null||zo(s)?!0:Tn.test(s)||!li.test(s)||u!=null&&s in rt(u)}function VP(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function rg(s){var u=th(s),b=W[u];if(typeof b!="function"||!(u in $t.prototype))return!1;if(s===b)return!0;var O=Qp(b);return!!O&&s===O[0]}function HP(s){return!!pn&&pn in s}var UP=zt?hl:wg;function Kf(s){var u=s&&s.constructor,b=typeof u=="function"&&u.prototype||In;return s===b}function vb(s){return s===s&&!qn(s)}function yb(s,u){return function(b){return b==null?!1:b[s]===u&&(u!==n||s in rt(b))}}function WP(s){var u=ah(s,function(O){return b.size===p&&b.clear(),O}),b=u.cache;return u}function zP(s,u){var b=s[1],O=u[1],$=b|O,X=$<(L|_|S),ie=O==S&&b==G||O==S&&b==ae&&s[7].length<=u[8]||O==(S|ae)&&u[7].length<=u[8]&&b==G;if(!(X||ie))return s;O&L&&(s[2]=u[2],$|=b&L?0:U);var de=u[3];if(de){var ve=s[3];s[3]=ve?tc(ve,de,u[4]):de,s[4]=ve?ei(s[3],w):u[4]}return de=u[5],de&&(ve=s[5],s[5]=ve?ef(ve,de,u[6]):de,s[6]=ve?ei(s[5],w):u[6]),de=u[7],de&&(s[7]=de),O&S&&(s[8]=s[8]==null?u[8]:Gn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=$,s}function YP(s){var u=[];if(s!=null)for(var b in rt(s))u.push(b);return u}function GP(s){return Lo.call(s)}function bb(s,u,b){return u=wn(u===n?s.length-1:u,0),function(){for(var O=arguments,$=-1,X=wn(O.length-u,0),ie=se(X);++$<X;)ie[$]=O[u+$];$=-1;for(var de=se(u+1);++$<u;)de[$]=O[$];return de[u]=b(ie),V(s,this,de)}}function wb(s,u){return u.length<2?s:gs(s,ni(u,0,-1))}function qP(s,u){for(var b=s.length,O=Gn(u.length,b),$=Wr(s);O--;){var X=u[O];s[O]=dl(X,b)?$[X]:n}return s}function ig(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var xb=Tb(Xl),Zf=Ic||function(s,u){return ln.setTimeout(s,u)},og=Tb(Yc);function Sb(s,u,b){var O=u+"";return og(s,BP(O,XP(FP(O),b)))}function Tb(s){var u=0,b=0;return function(){var O=ls(),$=Ve-(O-b);if(b=O,$>0){if(++u>=Le)return arguments[0]}else u=0;return s.apply(n,arguments)}}function rh(s,u){var b=-1,O=s.length,$=O-1;for(u=u===n?O:u;++b<u;){var X=Zs(b,$),ie=s[X];s[X]=s[b],s[b]=ie}return s.length=u,s}var Cb=WP(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(so,function(b,O,$,X){u.push($?X.replace(Pi,"$1"):O||b)}),u});function Aa(s){if(typeof s=="string"||zo(s))return s;var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function rc(s){if(s!=null){try{return jr.call(s)}catch{}try{return s+""}catch{}}return""}function XP(s,u){return te(qe,function(b){var O="_."+b[0];u&b[1]&&!xe(s,O)&&s.push(O)}),s.sort()}function Eb(s){if(s instanceof $t)return s.clone();var u=new Tr(s.__wrapped__,s.__chain__);return u.__actions__=Wr(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function KP(s,u,b){(b?to(s,u,b):u===n)?u=1:u=wn(Yt(u),0);var O=s==null?0:s.length;if(!O||u<1)return[];for(var $=0,X=0,ie=se(ma(O/u));$<O;)ie[X++]=ni(s,$,$+=u);return ie}function ZP(s){for(var u=-1,b=s==null?0:s.length,O=0,$=[];++u<b;){var X=s[u];X&&($[O++]=X)}return $}function JP(){var s=arguments.length;if(!s)return[];for(var u=se(s-1),b=arguments[0],O=s;O--;)u[O-1]=arguments[O];return Tt(Ht(b)?Wr(b):[b],fr(u,1))}var QP=Bt(function(s,u){return hr(s)?Gs(s,fr(u,1,hr,!0)):[]}),eO=Bt(function(s,u){var b=xs(u);return hr(b)&&(b=n),hr(s)?Gs(s,fr(u,1,hr,!0),Ct(b,2)):[]}),tO=Bt(function(s,u){var b=xs(u);return hr(b)&&(b=n),hr(s)?Gs(s,fr(u,1,hr,!0),n,b):[]});function nO(s,u,b){var O=s==null?0:s.length;return O?(u=b||u===n?1:Yt(u),ni(s,u<0?0:u,O)):[]}function rO(s,u,b){var O=s==null?0:s.length;return O?(u=b||u===n?1:Yt(u),u=O-u,ni(s,0,u<0?0:u)):[]}function iO(s,u){return s&&s.length?Qs(s,Ct(u,3),!0,!0):[]}function oO(s,u){return s&&s.length?Qs(s,Ct(u,3),!0):[]}function sO(s,u,b,O){var $=s==null?0:s.length;return $?(b&&typeof b!="number"&&to(s,u,b)&&(b=0,O=$),Gf(s,u,b,O)):[]}function kb(s,u,b){var O=s==null?0:s.length;if(!O)return-1;var $=b==null?0:Yt(b);return $<0&&($=wn(O+$,0)),jt(s,Ct(u,3),$)}function Db(s,u,b){var O=s==null?0:s.length;if(!O)return-1;var $=O-1;return b!==n&&($=Yt(b),$=b<0?wn(O+$,0):Gn($,O-1)),jt(s,Ct(u,3),$,!0)}function Pb(s){var u=s==null?0:s.length;return u?fr(s,1):[]}function aO(s){var u=s==null?0:s.length;return u?fr(s,Oe):[]}function lO(s,u){var b=s==null?0:s.length;return b?(u=u===n?1:Yt(u),fr(s,u)):[]}function uO(s){for(var u=-1,b=s==null?0:s.length,O={};++u<b;){var $=s[u];O[$[0]]=$[1]}return O}function Ob(s){return s&&s.length?s[0]:n}function cO(s,u,b){var O=s==null?0:s.length;if(!O)return-1;var $=b==null?0:Yt(b);return $<0&&($=wn(O+$,0)),Qt(s,u,$)}function fO(s){var u=s==null?0:s.length;return u?ni(s,0,-1):[]}var dO=Bt(function(s){var u=it(s,Zl);return u.length&&u[0]===s[0]?Ea(u):[]}),hO=Bt(function(s){var u=xs(s),b=it(s,Zl);return u===xs(b)?u=n:b.pop(),b.length&&b[0]===s[0]?Ea(b,Ct(u,2)):[]}),pO=Bt(function(s){var u=xs(s),b=it(s,Zl);return u=typeof u=="function"?u:n,u&&b.pop(),b.length&&b[0]===s[0]?Ea(b,n,u):[]});function gO(s,u){return s==null?"":Ka.call(s,u)}function xs(s){var u=s==null?0:s.length;return u?s[u-1]:n}function mO(s,u,b){var O=s==null?0:s.length;if(!O)return-1;var $=O;return b!==n&&($=Yt(b),$=$<0?wn(O+$,0):Gn($,O-1)),u===u?da(s,u,$):jt(s,po,$,!0)}function vO(s,u){return s&&s.length?Pa(s,Yt(u)):n}var yO=Bt(_b);function _b(s,u){return s&&s.length&&u&&u.length?Gu(s,u):s}function bO(s,u,b){return s&&s.length&&u&&u.length?Gu(s,u,Ct(b,2)):s}function wO(s,u,b){return s&&s.length&&u&&u.length?Gu(s,u,n,b):s}var xO=fl(function(s,u){var b=s==null?0:s.length,O=$u(s,u);return qu(s,it(u,function($){return dl($,b)?+$:$}).sort(ec)),O});function SO(s,u){var b=[];if(!(s&&s.length))return b;var O=-1,$=[],X=s.length;for(u=Ct(u,3);++O<X;){var ie=s[O];u(ie,O,s)&&(b.push(ie),$.push(O))}return qu(s,$),b}function sg(s){return s==null?s:Ml.call(s)}function TO(s,u,b){var O=s==null?0:s.length;return O?(b&&typeof b!="number"&&to(s,u,b)?(u=0,b=O):(u=u==null?0:Yt(u),b=b===n?O:Yt(b)),ni(s,u,b)):[]}function CO(s,u){return Kl(s,u)}function EO(s,u,b){return Zu(s,u,Ct(b,2))}function kO(s,u){var b=s==null?0:s.length;if(b){var O=Kl(s,u);if(O<b&&na(s[O],u))return O}return-1}function DO(s,u){return Kl(s,u,!0)}function PO(s,u,b){return Zu(s,u,Ct(b,2),!0)}function OO(s,u){var b=s==null?0:s.length;if(b){var O=Kl(s,u,!0)-1;if(na(s[O],u))return O}return-1}function _O(s){return s&&s.length?Ju(s):[]}function RO(s,u){return s&&s.length?Ju(s,Ct(u,2)):[]}function AO(s){var u=s==null?0:s.length;return u?ni(s,1,u):[]}function IO(s,u,b){return s&&s.length?(u=b||u===n?1:Yt(u),ni(s,0,u<0?0:u)):[]}function MO(s,u,b){var O=s==null?0:s.length;return O?(u=b||u===n?1:Yt(u),u=O-u,ni(s,u<0?0:u,O)):[]}function LO(s,u){return s&&s.length?Qs(s,Ct(u,3),!1,!0):[]}function FO(s,u){return s&&s.length?Qs(s,Ct(u,3)):[]}var NO=Bt(function(s){return vs(fr(s,1,hr,!0))}),jO=Bt(function(s){var u=xs(s);return hr(u)&&(u=n),vs(fr(s,1,hr,!0),Ct(u,2))}),BO=Bt(function(s){var u=xs(s);return u=typeof u=="function"?u:n,vs(fr(s,1,hr,!0),n,u)});function $O(s){return s&&s.length?vs(s):[]}function VO(s,u){return s&&s.length?vs(s,Ct(u,2)):[]}function HO(s,u){return u=typeof u=="function"?u:n,s&&s.length?vs(s,n,u):[]}function ag(s){if(!(s&&s.length))return[];var u=0;return s=Re(s,function(b){if(hr(b))return u=wn(b.length,u),!0}),be(u,function(b){return it(s,D(b))})}function Rb(s,u){if(!(s&&s.length))return[];var b=ag(s);return u==null?b:it(b,function(O){return V(u,n,O)})}var UO=Bt(function(s,u){return hr(s)?Gs(s,u):[]}),WO=Bt(function(s){return dr(Re(s,hr))}),zO=Bt(function(s){var u=xs(s);return hr(u)&&(u=n),dr(Re(s,hr),Ct(u,2))}),YO=Bt(function(s){var u=xs(s);return u=typeof u=="function"?u:n,dr(Re(s,hr),n,u)}),GO=Bt(ag);function qO(s,u){return Jc(s||[],u||[],$r)}function XO(s,u){return Jc(s||[],u||[],Js)}var KO=Bt(function(s){var u=s.length,b=u>1?s[u-1]:n;return b=typeof b=="function"?(s.pop(),b):n,Rb(s,b)});function Ab(s){var u=W(s);return u.__chain__=!0,u}function ZO(s,u){return u(s),s}function ih(s,u){return u(s)}var JO=fl(function(s){var u=s.length,b=u?s[0]:0,O=this.__wrapped__,$=function(X){return $u(X,s)};return u>1||this.__actions__.length||!(O instanceof $t)||!dl(b)?this.thru($):(O=O.slice(b,+b+(u?1:0)),O.__actions__.push({func:ih,args:[$],thisArg:n}),new Tr(O,this.__chain__).thru(function(X){return u&&!X.length&&X.push(n),X}))});function QO(){return Ab(this)}function e_(){return new Tr(this.value(),this.__chain__)}function t_(){this.__values__===n&&(this.__values__=Yb(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function n_(){return this}function r_(s){for(var u,b=this;b instanceof Vo;){var O=Eb(b);O.__index__=0,O.__values__=n,u?$.__wrapped__=O:u=O;var $=O;b=b.__wrapped__}return $.__wrapped__=s,u}function i_(){var s=this.__wrapped__;if(s instanceof $t){var u=s;return this.__actions__.length&&(u=new $t(this)),u=u.reverse(),u.__actions__.push({func:ih,args:[sg],thisArg:n}),new Tr(u,this.__chain__)}return this.thru(sg)}function o_(){return Zc(this.__wrapped__,this.__actions__)}var s_=cl(function(s,u,b){kt.call(s,b)?++s[b]:xi(s,b,1)});function a_(s,u,b){var O=Ht(s)?De:$c;return b&&to(s,u,b)&&(u=n),O(s,Ct(u,3))}function l_(s,u){var b=Ht(s)?Re:Vc;return b(s,Ct(u,3))}var u_=z(kb),c_=z(Db);function f_(s,u){return fr(oh(s,u),1)}function d_(s,u){return fr(oh(s,u),Oe)}function h_(s,u,b){return b=b===n?1:Yt(b),fr(oh(s,u),b)}function Ib(s,u){var b=Ht(s)?te:ps;return b(s,Ct(u,3))}function Mb(s,u){var b=Ht(s)?pe:Wu;return b(s,Ct(u,3))}var p_=cl(function(s,u,b){kt.call(s,b)?s[b].push(u):xi(s,b,[u])});function g_(s,u,b,O){s=ko(s)?s:sf(s),b=b&&!O?Yt(b):0;var $=s.length;return b<0&&(b=wn($+b,0)),ch(s)?b<=$&&s.indexOf(u,b)>-1:!!$&&Qt(s,u,b)>-1}var m_=Bt(function(s,u,b){var O=-1,$=typeof u=="function",X=ko(s)?se(s.length):[];return ps(s,function(ie){X[++O]=$?V(u,ie,b):To(ie,u,b)}),X}),v_=cl(function(s,u,b){xi(s,b,u)});function oh(s,u){var b=Ht(s)?it:Ji;return b(s,Ct(u,3))}function y_(s,u,b,O){return s==null?[]:(Ht(u)||(u=u==null?[]:[u]),b=O?n:b,Ht(b)||(b=b==null?[]:[b]),Gl(s,u,b))}var b_=cl(function(s,u,b){s[b?0:1].push(u)},function(){return[[],[]]});function w_(s,u,b){var O=Ht(s)?Et:H,$=arguments.length<3;return O(s,Ct(u,4),b,$,ps)}function x_(s,u,b){var O=Ht(s)?Rn:H,$=arguments.length<3;return O(s,Ct(u,4),b,$,Wu)}function S_(s,u){var b=Ht(s)?Re:Vc;return b(s,lh(Ct(u,3)))}function T_(s){var u=Ht(s)?ti:al;return u(s)}function C_(s,u,b){(b?to(s,u,b):u===n)?u=1:u=Yt(u);var O=Ht(s)?wi:Ku;return O(s,u)}function E_(s){var u=Ht(s)?So:Gc;return u(s)}function k_(s){if(s==null)return 0;if(ko(s))return ch(s)?vo(s):s.length;var u=Mi(s);return u==Mt||u==Jn?s.size:Wo(s).length}function D_(s,u,b){var O=Ht(s)?un:qc;return b&&to(s,u,b)&&(u=n),O(s,Ct(u,3))}var P_=Bt(function(s,u){if(s==null)return[];var b=u.length;return b>1&&to(s,u[0],u[1])?u=[]:b>2&&to(u[0],u[1],u[2])&&(u=[u[0]]),Gl(s,fr(u,1),[])}),sh=Xa||function(){return ln.Date.now()};function O_(s,u){if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){if(--s<1)return u.apply(this,arguments)}}function Lb(s,u,b){return u=b?n:u,u=s&&u==null?s.length:u,ta(s,S,n,n,n,n,u)}function Fb(s,u){var b;if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){return--s>0&&(b=u.apply(this,arguments)),s<=1&&(u=n),b}}var lg=Bt(function(s,u,b){var O=L;if(b.length){var $=ei(b,rf(lg));O|=Z}return ta(s,O,u,b,$)}),Nb=Bt(function(s,u,b){var O=L|_;if(b.length){var $=ei(b,rf(Nb));O|=Z}return ta(u,O,s,b,$)});function jb(s,u,b){u=b?n:u;var O=ta(s,G,n,n,n,n,n,u);return O.placeholder=jb.placeholder,O}function Bb(s,u,b){u=b?n:u;var O=ta(s,re,n,n,n,n,n,u);return O.placeholder=Bb.placeholder,O}function $b(s,u,b){var O,$,X,ie,de,ve,$e=0,He=!1,Ze=!1,at=!0;if(typeof s!="function")throw new Vt(a);u=Ss(u)||0,qn(b)&&(He=!!b.leading,Ze="maxWait"in b,X=Ze?wn(Ss(b.maxWait)||0,u):X,at="trailing"in b?!!b.trailing:at);function bt(pr){var ra=O,gl=$;return O=$=n,$e=pr,ie=s.apply(gl,ra),ie}function Dt(pr){return $e=pr,de=Zf(Jt,u),He?bt(pr):ie}function Xt(pr){var ra=pr-ve,gl=pr-$e,o0=u-ra;return Ze?Gn(o0,X-gl):o0}function Pt(pr){var ra=pr-ve,gl=pr-$e;return ve===n||ra>=u||ra<0||Ze&&gl>=X}function Jt(){var pr=sh();if(Pt(pr))return tn(pr);de=Zf(Jt,Xt(pr))}function tn(pr){return de=n,at&&O?bt(pr):(O=$=n,ie)}function Yo(){de!==n&&Ql(de),$e=0,O=ve=$=de=n}function no(){return de===n?ie:tn(sh())}function Go(){var pr=sh(),ra=Pt(pr);if(O=arguments,$=this,ve=pr,ra){if(de===n)return Dt(ve);if(Ze)return Ql(de),de=Zf(Jt,u),bt(ve)}return de===n&&(de=Zf(Jt,u)),ie}return Go.cancel=Yo,Go.flush=no,Go}var __=Bt(function(s,u){return Uu(s,1,u)}),R_=Bt(function(s,u,b){return Uu(s,Ss(u)||0,b)});function A_(s){return ta(s,ce)}function ah(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Vt(a);var b=function(){var O=arguments,$=u?u.apply(this,O):O[0],X=b.cache;if(X.has($))return X.get($);var ie=s.apply(this,O);return b.cache=X.set($,ie)||X,ie};return b.cache=new(ah.Cache||Ho),b}ah.Cache=Ho;function lh(s){if(typeof s!="function")throw new Vt(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function I_(s){return Fb(2,s)}var M_=Qc(function(s,u){u=u.length==1&&Ht(u[0])?it(u[0],ht(Ct())):it(fr(u,1),ht(Ct()));var b=u.length;return Bt(function(O){for(var $=-1,X=Gn(O.length,b);++$<X;)O[$]=u[$].call(this,O[$]);return V(s,this,O)})}),ug=Bt(function(s,u){var b=ei(u,rf(ug));return ta(s,Z,n,u,b)}),Vb=Bt(function(s,u){var b=ei(u,rf(Vb));return ta(s,ue,n,u,b)}),L_=fl(function(s,u){return ta(s,ae,n,n,n,u)});function F_(s,u){if(typeof s!="function")throw new Vt(a);return u=u===n?u:Yt(u),Bt(s,u)}function N_(s,u){if(typeof s!="function")throw new Vt(a);return u=u==null?0:wn(Yt(u),0),Bt(function(b){var O=b[u],$=ys(b,0,u);return O&&Tt($,O),V(s,this,$)})}function j_(s,u,b){var O=!0,$=!0;if(typeof s!="function")throw new Vt(a);return qn(b)&&(O="leading"in b?!!b.leading:O,$="trailing"in b?!!b.trailing:$),$b(s,u,{leading:O,maxWait:u,trailing:$})}function B_(s){return Lb(s,1)}function $_(s,u){return ug(Jl(u),s)}function V_(){if(!arguments.length)return[];var s=arguments[0];return Ht(s)?s:[s]}function H_(s){return Vr(s,E)}function U_(s,u){return u=typeof u=="function"?u:n,Vr(s,E,u)}function W_(s){return Vr(s,m|E)}function z_(s,u){return u=typeof u=="function"?u:n,Vr(s,m|E,u)}function Y_(s,u){return u==null||Hu(s,u,ri(u))}function na(s,u){return s===u||s!==s&&u!==u}var G_=Eo(qs),q_=Eo(function(s,u){return s>=u}),ic=Wl(function(){return arguments}())?Wl:function(s){return or(s)&&kt.call(s,"callee")&&!Rl.call(s,"callee")},Ht=se.isArray,X_=h?ht(h):Xs;function ko(s){return s!=null&&uh(s.length)&&!hl(s)}function hr(s){return or(s)&&ko(s)}function K_(s){return s===!0||s===!1||or(s)&&rr(s)==ct}var tu=Il||wg,Z_=y?ht(y):Uc;function J_(s){return or(s)&&s.nodeType===1&&!Jf(s)}function Q_(s){if(s==null)return!0;if(ko(s)&&(Ht(s)||typeof s=="string"||typeof s.splice=="function"||tu(s)||of(s)||ic(s)))return!s.length;var u=Mi(s);if(u==Mt||u==Jn)return!s.size;if(Kf(s))return!Wo(s).length;for(var b in s)if(kt.call(s,b))return!1;return!0}function eR(s,u){return rl(s,u)}function tR(s,u,b){b=typeof b=="function"?b:n;var O=b?b(s,u):n;return O===n?rl(s,u,n,b):!!O}function cg(s){if(!or(s))return!1;var u=rr(s);return u==yt||u==ft||typeof s.message=="string"&&typeof s.name=="string"&&!Jf(s)}function nR(s){return typeof s=="number"&&ya(s)}function hl(s){if(!qn(s))return!1;var u=rr(s);return u==Qe||u==At||u==ot||u==$i}function Hb(s){return typeof s=="number"&&s==Yt(s)}function uh(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ne}function qn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function or(s){return s!=null&&typeof s=="object"}var Ub=C?ht(C):Da;function rR(s,u){return s===u||Yu(s,u,eg(u))}function iR(s,u,b){return b=typeof b=="function"?b:n,Yu(s,u,eg(u),b)}function oR(s){return Wb(s)&&s!=+s}function sR(s){if(UP(s))throw new Fe(o);return Wc(s)}function aR(s){return s===null}function lR(s){return s==null}function Wb(s){return typeof s=="number"||or(s)&&rr(s)==Vn}function Jf(s){if(!or(s)||rr(s)!=Hn)return!1;var u=$s(s);if(u===null)return!0;var b=kt.call(u,"constructor")&&u.constructor;return typeof b=="function"&&b instanceof b&&jr.call(b)==Ou}var fg=P?ht(P):Ks;function uR(s){return Hb(s)&&s>=-9007199254740991&&s<=Ne}var zb=F?ht(F):zl;function ch(s){return typeof s=="string"||!Ht(s)&&or(s)&&rr(s)==sn}function zo(s){return typeof s=="symbol"||or(s)&&rr(s)==fn}var of=j?ht(j):Uo;function cR(s){return s===n}function fR(s){return or(s)&&Mi(s)==ut}function dR(s){return or(s)&&rr(s)==Dn}var hR=Eo(Zi),pR=Eo(function(s,u){return s<=u});function Yb(s){if(!s)return[];if(ko(s))return ch(s)?cn(s):Wr(s);if(Xi&&s[Xi])return Ai(s[Xi]());var u=Mi(s),b=u==Mt?fa:u==Jn?mo:sf;return b(s)}function pl(s){if(!s)return s===0?s:0;if(s=Ss(s),s===Oe||s===-1/0){var u=s<0?-1:1;return u*tt}return s===s?s:0}function Yt(s){var u=pl(s),b=u%1;return u===u?b?u-b:u:0}function Gb(s){return s?Ys(Yt(s),0,ke):0}function Ss(s){if(typeof s=="number")return s;if(zo(s))return me;if(qn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=qn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Ye(s);var b=ci.test(s);return b||br.test(s)?js(s.slice(2),b?2:8):_r.test(s)?me:+s}function qb(s){return Ii(s,Do(s))}function gR(s){return s?Ys(Yt(s),-9007199254740991,Ne):s===0?s:0}function gn(s){return s==null?"":Hr(s)}var mR=_a(function(s,u){if(Kf(u)||ko(u)){Ii(u,ri(u),s);return}for(var b in u)kt.call(u,b)&&$r(s,b,u[b])}),Xb=_a(function(s,u){Ii(u,Do(u),s)}),fh=_a(function(s,u,b,O){Ii(u,Do(u),s,O)}),vR=_a(function(s,u,b,O){Ii(u,ri(u),s,O)}),yR=fl($u);function bR(s,u){var b=$o(s);return u==null?b:Bc(b,u)}var wR=Bt(function(s,u){s=rt(s);var b=-1,O=u.length,$=O>2?u[2]:n;for($&&to(u[0],u[1],$)&&(O=1);++b<O;)for(var X=u[b],ie=Do(X),de=-1,ve=ie.length;++de<ve;){var $e=ie[de],He=s[$e];(He===n||na(He,In[$e])&&!kt.call(s,$e))&&(s[$e]=X[$e])}return s}),xR=Bt(function(s){return s.push(n,db),V(Kb,n,s)});function SR(s,u){return Nr(s,Ct(u,3),Si)}function TR(s,u){return Nr(s,Ct(u,3),$l)}function CR(s,u){return s==null?s:zu(s,Ct(u,3),Do)}function ER(s,u){return s==null?s:Hc(s,Ct(u,3),Do)}function kR(s,u){return s&&Si(s,Ct(u,3))}function DR(s,u){return s&&$l(s,Ct(u,3))}function PR(s){return s==null?[]:Ta(s,ri(s))}function OR(s){return s==null?[]:Ta(s,Do(s))}function dg(s,u,b){var O=s==null?n:gs(s,u);return O===n?b:O}function _R(s,u){return s!=null&&gb(s,u,Vl)}function hg(s,u){return s!=null&&gb(s,u,Ca)}var RR=je(function(s,u,b){u!=null&&typeof u.toString!="function"&&(u=Lo.call(u)),s[u]=b},gg(Po)),AR=je(function(s,u,b){u!=null&&typeof u.toString!="function"&&(u=Lo.call(u)),kt.call(s,u)?s[u].push(b):s[u]=[b]},Ct),IR=Bt(To);function ri(s){return ko(s)?tl(s):Wo(s)}function Do(s){return ko(s)?tl(s,!0):il(s)}function MR(s,u){var b={};return u=Ct(u,3),Si(s,function(O,$,X){xi(b,u(O,$,X),O)}),b}function LR(s,u){var b={};return u=Ct(u,3),Si(s,function(O,$,X){xi(b,$,u(O,$,X))}),b}var FR=_a(function(s,u,b){ms(s,u,b)}),Kb=_a(function(s,u,b,O){ms(s,u,b,O)}),NR=fl(function(s,u){var b={};if(s==null)return b;var O=!1;u=it(u,function(X){return X=Ti(X,s),O||(O=X.length>1),X}),Ii(s,Jp(s),b),O&&(b=Vr(b,m|T|E,RP));for(var $=u.length;$--;)Ur(b,u[$]);return b});function jR(s,u){return Zb(s,lh(Ct(u)))}var BR=fl(function(s,u){return s==null?{}:sl(s,u)});function Zb(s,u){if(s==null)return{};var b=it(Jp(s),function(O){return[O]});return u=Ct(u),Oa(s,b,function(O,$){return u(O,$[0])})}function $R(s,u,b){u=Ti(u,s);var O=-1,$=u.length;for($||($=1,s=n);++O<$;){var X=s==null?n:s[Aa(u[O])];X===n&&(O=$,X=b),s=hl(X)?X.call(s):X}return s}function VR(s,u,b){return s==null?s:Js(s,u,b)}function HR(s,u,b,O){return O=typeof O=="function"?O:n,s==null?s:Js(s,u,b,O)}var Jb=nf(ri),Qb=nf(Do);function UR(s,u,b){var O=Ht(s),$=O||tu(s)||of(s);if(u=Ct(u,4),b==null){var X=s&&s.constructor;$?b=O?new X:[]:qn(s)?b=hl(X)?$o($s(s)):{}:b={}}return($?te:Si)(s,function(ie,de,ve){return u(b,ie,de,ve)}),b}function WR(s,u){return s==null?!0:Ur(s,u)}function zR(s,u,b){return s==null?s:Kc(s,u,Jl(b))}function YR(s,u,b,O){return O=typeof O=="function"?O:n,s==null?s:Kc(s,u,Jl(b),O)}function sf(s){return s==null?[]:_t(s,ri(s))}function GR(s){return s==null?[]:_t(s,Do(s))}function qR(s,u,b){return b===n&&(b=u,u=n),b!==n&&(b=Ss(b),b=b===b?b:0),u!==n&&(u=Ss(u),u=u===u?u:0),Ys(Ss(s),u,b)}function XR(s,u,b){return u=pl(u),b===n?(b=u,u=0):b=pl(b),s=Ss(s),Hl(s,u,b)}function KR(s,u,b){if(b&&typeof b!="boolean"&&to(s,u,b)&&(u=b=n),b===n&&(typeof u=="boolean"?(b=u,u=n):typeof s=="boolean"&&(b=s,s=n)),s===n&&u===n?(s=0,u=1):(s=pl(s),u===n?(u=s,s=0):u=pl(u)),s>u){var O=s;s=u,u=O}if(b||s%1||u%1){var $=us();return Gn(s+$*(u-s+ur("1e-"+(($+"").length-1))),u)}return Zs(s,u)}var ZR=x(function(s,u,b){return u=u.toLowerCase(),s+(b?e0(u):u)});function e0(s){return pg(gn(s).toLowerCase())}function t0(s){return s=gn(s),s&&s.replace(tr,$n).replace(rs,"")}function JR(s,u,b){s=gn(s),u=Hr(u);var O=s.length;b=b===n?O:Ys(Yt(b),0,O);var $=b;return b-=u.length,b>=0&&s.slice(b,$)==u}function QR(s){return s=gn(s),s&&Wi.test(s)?s.replace(Wt,os):s}function eA(s){return s=gn(s),s&&ui.test(s)?s.replace(yr,"\\$&"):s}var tA=x(function(s,u,b){return s+(b?"-":"")+u.toLowerCase()}),nA=x(function(s,u,b){return s+(b?" ":"")+u.toLowerCase()}),rA=g("toLowerCase");function iA(s,u,b){s=gn(s),u=Yt(u);var O=u?vo(s):0;if(!u||O>=u)return s;var $=(u-O)/2;return xt(Vs($),b)+s+xt(ma($),b)}function oA(s,u,b){s=gn(s),u=Yt(u);var O=u?vo(s):0;return u&&O<u?s+xt(u-O,b):s}function sA(s,u,b){s=gn(s),u=Yt(u);var O=u?vo(s):0;return u&&O<u?xt(u-O,b)+s:s}function aA(s,u,b){return b||u==null?u=0:u&&(u=+u),Au(gn(s).replace(an,""),u||0)}function lA(s,u,b){return(b?to(s,u,b):u===n)?u=1:u=Yt(u),ql(gn(s),u)}function uA(){var s=arguments,u=gn(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var cA=x(function(s,u,b){return s+(b?"_":"")+u.toLowerCase()});function fA(s,u,b){return b&&typeof b!="number"&&to(s,u,b)&&(u=b=n),b=b===n?ke:b>>>0,b?(s=gn(s),s&&(typeof u=="string"||u!=null&&!fg(u))&&(u=Hr(u),!u&&Qr(s))?ys(cn(s),0,b):s.split(u,b)):[]}var dA=x(function(s,u,b){return s+(b?" ":"")+pg(u)});function hA(s,u,b){return s=gn(s),b=b==null?0:Ys(Yt(b),0,s.length),u=Hr(u),s.slice(b,b+u.length)==u}function pA(s,u,b){var O=W.templateSettings;b&&to(s,u,b)&&(u=n),s=gn(s),u=fh({},u,O,fb);var $=fh({},u.imports,O.imports,fb),X=ri($),ie=_t($,X),de,ve,$e=0,He=u.interpolate||zi,Ze="__p += '",at=It((u.escape||zi).source+"|"+He.source+"|"+(He===ai?er:zi).source+"|"+(u.evaluate||zi).source+"|$","g"),bt="//# sourceURL="+(kt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rn+"]")+`
|
|
146
|
-
`;s.replace(at,function(Pt,Jt,tn,Yo,no,Go){return tn||(tn=Yo),Ze+=s.slice($e,Go).replace(Oi,ca),Jt&&(de=!0,Ze+=`' +
|
|
147
|
-
__e(`+Jt+`) +
|
|
148
|
-
'`),no&&(ve=!0,Ze+=`';
|
|
149
|
-
`+no+`;
|
|
150
|
-
__p += '`),tn&&(Ze+=`' +
|
|
151
|
-
((__t = (`+tn+`)) == null ? '' : __t) +
|
|
152
|
-
'`),$e=Go+Pt.length,Pt}),Ze+=`';
|
|
153
|
-
`;var Dt=kt.call(u,"variable")&&u.variable;if(!Dt)Ze=`with (obj) {
|
|
154
|
-
`+Ze+`
|
|
155
|
-
}
|
|
156
|
-
`;else if(lo.test(Dt))throw new Fe(c);Ze=(ve?Ze.replace(Ao,""):Ze).replace(Un,"$1").replace(Gr,"$1;"),Ze="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
|
-
`)+Ze+`return __p
|
|
162
|
-
}`;var Xt=r0(function(){return st(X,bt+"return "+Ze).apply(n,ie)});if(Xt.source=Ze,cg(Xt))throw Xt;return Xt}function gA(s){return gn(s).toLowerCase()}function mA(s){return gn(s).toUpperCase()}function vA(s,u,b){if(s=gn(s),s&&(b||u===n))return Ye(s);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=cn(u),X=vt(O,$),ie=An(O,$)+1;return ys(O,X,ie).join("")}function yA(s,u,b){if(s=gn(s),s&&(b||u===n))return s.slice(0,_l(s)+1);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=An(O,cn(u))+1;return ys(O,0,$).join("")}function bA(s,u,b){if(s=gn(s),s&&(b||u===n))return s.replace(an,"");if(!s||!(u=Hr(u)))return s;var O=cn(s),$=vt(O,cn(u));return ys(O,$).join("")}function wA(s,u){var b=Ue,O=_e;if(qn(u)){var $="separator"in u?u.separator:$;b="length"in u?Yt(u.length):b,O="omission"in u?Hr(u.omission):O}s=gn(s);var X=s.length;if(Qr(s)){var ie=cn(s);X=ie.length}if(b>=X)return s;var de=b-vo(O);if(de<1)return O;var ve=ie?ys(ie,0,de).join(""):s.slice(0,de);if($===n)return ve+O;if(ie&&(de+=ve.length-de),fg($)){if(s.slice(de).search($)){var $e,He=ve;for($.global||($=It($.source,gn(Or.exec($))+"g")),$.lastIndex=0;$e=$.exec(He);)var Ze=$e.index;ve=ve.slice(0,Ze===n?de:Ze)}}else if(s.indexOf(Hr($),de)!=de){var at=ve.lastIndexOf($);at>-1&&(ve=ve.slice(0,at))}return ve+O}function xA(s){return s=gn(s),s&&si.test(s)?s.replace(Qn,ha):s}var SA=x(function(s,u,b){return s+(b?" ":"")+u.toUpperCase()}),pg=g("toUpperCase");function n0(s,u,b){return s=gn(s),u=b?n:u,u===n?za(s)?fe(s):Lt(s):s.match(u)||[]}var r0=Bt(function(s,u){try{return V(s,n,u)}catch(b){return cg(b)?b:new Fe(b)}}),TA=fl(function(s,u){return te(u,function(b){b=Aa(b),xi(s,b,lg(s[b],s))}),s});function CA(s){var u=s==null?0:s.length,b=Ct();return s=u?it(s,function(O){if(typeof O[1]!="function")throw new Vt(a);return[b(O[0]),O[1]]}):[],Bt(function(O){for(var $=-1;++$<u;){var X=s[$];if(V(X[0],this,O))return V(X[1],this,O)}})}function EA(s){return Vu(Vr(s,m))}function gg(s){return function(){return s}}function kA(s,u){return s==null||s!==s?u:s}var DA=ne(),PA=ne(!0);function Po(s){return s}function mg(s){return Yl(typeof s=="function"?s:Vr(s,m))}function OA(s){return Co(Vr(s,m))}function _A(s,u){return ol(s,Vr(u,m))}var RA=Bt(function(s,u){return function(b){return To(b,s,u)}}),AA=Bt(function(s,u){return function(b){return To(s,b,u)}});function vg(s,u,b){var O=ri(u),$=Ta(u,O);b==null&&!(qn(u)&&($.length||!O.length))&&(b=u,u=s,s=this,$=Ta(u,ri(u)));var X=!(qn(b)&&"chain"in b)||!!b.chain,ie=hl(s);return te($,function(de){var ve=u[de];s[de]=ve,ie&&(s.prototype[de]=function(){var $e=this.__chain__;if(X||$e){var He=s(this.__wrapped__),Ze=He.__actions__=Wr(this.__actions__);return Ze.push({func:ve,args:arguments,thisArg:s}),He.__chain__=$e,He}return ve.apply(s,Tt([this.value()],arguments))})}),s}function IA(){return ln._===this&&(ln._=_u),this}function yg(){}function MA(s){return s=Yt(s),Bt(function(u){return Pa(u,s)})}var LA=nt(it),FA=nt(De),NA=nt(un);function i0(s){return ng(s)?D(Aa(s)):zc(s)}function jA(s){return function(u){return s==null?n:gs(s,u)}}var BA=ir(),$A=ir(!0);function bg(){return[]}function wg(){return!1}function VA(){return{}}function HA(){return""}function UA(){return!0}function WA(s,u){if(s=Yt(s),s<1||s>Ne)return[];var b=ke,O=Gn(s,ke);u=Ct(u),s-=ke;for(var $=be(O,u);++b<s;)u(b);return $}function zA(s){return Ht(s)?it(s,Aa):zo(s)?[s]:Wr(Cb(gn(s)))}function YA(s){var u=++Pu;return gn(s)+u}var GA=Ge(function(s,u){return s+u},0),qA=eo("ceil"),XA=Ge(function(s,u){return s/u},1),KA=eo("floor");function ZA(s){return s&&s.length?Bl(s,Po,qs):n}function JA(s,u){return s&&s.length?Bl(s,Ct(u,2),qs):n}function QA(s){return Sr(s,Po)}function eI(s,u){return Sr(s,Ct(u,2))}function tI(s){return s&&s.length?Bl(s,Po,Zi):n}function nI(s,u){return s&&s.length?Bl(s,Ct(u,2),Zi):n}var rI=Ge(function(s,u){return s*u},1),iI=eo("round"),oI=Ge(function(s,u){return s-u},0);function sI(s){return s&&s.length?ye(s,Po):0}function aI(s,u){return s&&s.length?ye(s,Ct(u,2)):0}return W.after=O_,W.ary=Lb,W.assign=mR,W.assignIn=Xb,W.assignInWith=fh,W.assignWith=vR,W.at=yR,W.before=Fb,W.bind=lg,W.bindAll=TA,W.bindKey=Nb,W.castArray=V_,W.chain=Ab,W.chunk=KP,W.compact=ZP,W.concat=JP,W.cond=CA,W.conforms=EA,W.constant=gg,W.countBy=s_,W.create=bR,W.curry=jb,W.curryRight=Bb,W.debounce=$b,W.defaults=wR,W.defaultsDeep=xR,W.defer=__,W.delay=R_,W.difference=QP,W.differenceBy=eO,W.differenceWith=tO,W.drop=nO,W.dropRight=rO,W.dropRightWhile=iO,W.dropWhile=oO,W.fill=sO,W.filter=l_,W.flatMap=f_,W.flatMapDeep=d_,W.flatMapDepth=h_,W.flatten=Pb,W.flattenDeep=aO,W.flattenDepth=lO,W.flip=A_,W.flow=DA,W.flowRight=PA,W.fromPairs=uO,W.functions=PR,W.functionsIn=OR,W.groupBy=p_,W.initial=fO,W.intersection=dO,W.intersectionBy=hO,W.intersectionWith=pO,W.invert=RR,W.invertBy=AR,W.invokeMap=m_,W.iteratee=mg,W.keyBy=v_,W.keys=ri,W.keysIn=Do,W.map=oh,W.mapKeys=MR,W.mapValues=LR,W.matches=OA,W.matchesProperty=_A,W.memoize=ah,W.merge=FR,W.mergeWith=Kb,W.method=RA,W.methodOf=AA,W.mixin=vg,W.negate=lh,W.nthArg=MA,W.omit=NR,W.omitBy=jR,W.once=I_,W.orderBy=y_,W.over=LA,W.overArgs=M_,W.overEvery=FA,W.overSome=NA,W.partial=ug,W.partialRight=Vb,W.partition=b_,W.pick=BR,W.pickBy=Zb,W.property=i0,W.propertyOf=jA,W.pull=yO,W.pullAll=_b,W.pullAllBy=bO,W.pullAllWith=wO,W.pullAt=xO,W.range=BA,W.rangeRight=$A,W.rearg=L_,W.reject=S_,W.remove=SO,W.rest=F_,W.reverse=sg,W.sampleSize=C_,W.set=VR,W.setWith=HR,W.shuffle=E_,W.slice=TO,W.sortBy=P_,W.sortedUniq=_O,W.sortedUniqBy=RO,W.split=fA,W.spread=N_,W.tail=AO,W.take=IO,W.takeRight=MO,W.takeRightWhile=LO,W.takeWhile=FO,W.tap=ZO,W.throttle=j_,W.thru=ih,W.toArray=Yb,W.toPairs=Jb,W.toPairsIn=Qb,W.toPath=zA,W.toPlainObject=qb,W.transform=UR,W.unary=B_,W.union=NO,W.unionBy=jO,W.unionWith=BO,W.uniq=$O,W.uniqBy=VO,W.uniqWith=HO,W.unset=WR,W.unzip=ag,W.unzipWith=Rb,W.update=zR,W.updateWith=YR,W.values=sf,W.valuesIn=GR,W.without=UO,W.words=n0,W.wrap=$_,W.xor=WO,W.xorBy=zO,W.xorWith=YO,W.zip=GO,W.zipObject=qO,W.zipObjectDeep=XO,W.zipWith=KO,W.entries=Jb,W.entriesIn=Qb,W.extend=Xb,W.extendWith=fh,vg(W,W),W.add=GA,W.attempt=r0,W.camelCase=ZR,W.capitalize=e0,W.ceil=qA,W.clamp=qR,W.clone=H_,W.cloneDeep=W_,W.cloneDeepWith=z_,W.cloneWith=U_,W.conformsTo=Y_,W.deburr=t0,W.defaultTo=kA,W.divide=XA,W.endsWith=JR,W.eq=na,W.escape=QR,W.escapeRegExp=eA,W.every=a_,W.find=u_,W.findIndex=kb,W.findKey=SR,W.findLast=c_,W.findLastIndex=Db,W.findLastKey=TR,W.floor=KA,W.forEach=Ib,W.forEachRight=Mb,W.forIn=CR,W.forInRight=ER,W.forOwn=kR,W.forOwnRight=DR,W.get=dg,W.gt=G_,W.gte=q_,W.has=_R,W.hasIn=hg,W.head=Ob,W.identity=Po,W.includes=g_,W.indexOf=cO,W.inRange=XR,W.invoke=IR,W.isArguments=ic,W.isArray=Ht,W.isArrayBuffer=X_,W.isArrayLike=ko,W.isArrayLikeObject=hr,W.isBoolean=K_,W.isBuffer=tu,W.isDate=Z_,W.isElement=J_,W.isEmpty=Q_,W.isEqual=eR,W.isEqualWith=tR,W.isError=cg,W.isFinite=nR,W.isFunction=hl,W.isInteger=Hb,W.isLength=uh,W.isMap=Ub,W.isMatch=rR,W.isMatchWith=iR,W.isNaN=oR,W.isNative=sR,W.isNil=lR,W.isNull=aR,W.isNumber=Wb,W.isObject=qn,W.isObjectLike=or,W.isPlainObject=Jf,W.isRegExp=fg,W.isSafeInteger=uR,W.isSet=zb,W.isString=ch,W.isSymbol=zo,W.isTypedArray=of,W.isUndefined=cR,W.isWeakMap=fR,W.isWeakSet=dR,W.join=gO,W.kebabCase=tA,W.last=xs,W.lastIndexOf=mO,W.lowerCase=nA,W.lowerFirst=rA,W.lt=hR,W.lte=pR,W.max=ZA,W.maxBy=JA,W.mean=QA,W.meanBy=eI,W.min=tI,W.minBy=nI,W.stubArray=bg,W.stubFalse=wg,W.stubObject=VA,W.stubString=HA,W.stubTrue=UA,W.multiply=rI,W.nth=vO,W.noConflict=IA,W.noop=yg,W.now=sh,W.pad=iA,W.padEnd=oA,W.padStart=sA,W.parseInt=aA,W.random=KR,W.reduce=w_,W.reduceRight=x_,W.repeat=lA,W.replace=uA,W.result=$R,W.round=iI,W.runInContext=K,W.sample=T_,W.size=k_,W.snakeCase=cA,W.some=D_,W.sortedIndex=CO,W.sortedIndexBy=EO,W.sortedIndexOf=kO,W.sortedLastIndex=DO,W.sortedLastIndexBy=PO,W.sortedLastIndexOf=OO,W.startCase=dA,W.startsWith=hA,W.subtract=oI,W.sum=sI,W.sumBy=aI,W.template=pA,W.times=WA,W.toFinite=pl,W.toInteger=Yt,W.toLength=Gb,W.toLower=gA,W.toNumber=Ss,W.toSafeInteger=gR,W.toString=gn,W.toUpper=mA,W.trim=vA,W.trimEnd=yA,W.trimStart=bA,W.truncate=wA,W.unescape=xA,W.uniqueId=YA,W.upperCase=SA,W.upperFirst=pg,W.each=Ib,W.eachRight=Mb,W.first=Ob,vg(W,function(){var s={};return Si(W,function(u,b){kt.call(W.prototype,b)||(s[b]=u)}),s}(),{chain:!1}),W.VERSION=r,te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){W[s].placeholder=W}),te(["drop","take"],function(s,u){$t.prototype[s]=function(b){b=b===n?1:wn(Yt(b),0);var O=this.__filtered__&&!u?new $t(this):this.clone();return O.__filtered__?O.__takeCount__=Gn(b,O.__takeCount__):O.__views__.push({size:Gn(b,ke),type:s+(O.__dir__<0?"Right":"")}),O},$t.prototype[s+"Right"]=function(b){return this.reverse()[s](b).reverse()}}),te(["filter","map","takeWhile"],function(s,u){var b=u+1,O=b==We||b==Ee;$t.prototype[s]=function($){var X=this.clone();return X.__iteratees__.push({iteratee:Ct($,3),type:b}),X.__filtered__=X.__filtered__||O,X}}),te(["head","last"],function(s,u){var b="take"+(u?"Right":"");$t.prototype[s]=function(){return this[b](1).value()[0]}}),te(["initial","tail"],function(s,u){var b="drop"+(u?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[b](1)}}),$t.prototype.compact=function(){return this.filter(Po)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,u){return typeof s=="function"?new $t(this):this.map(function(b){return To(b,s,u)})}),$t.prototype.reject=function(s){return this.filter(lh(Ct(s)))},$t.prototype.slice=function(s,u){s=Yt(s);var b=this;return b.__filtered__&&(s>0||u<0)?new $t(b):(s<0?b=b.takeRight(-s):s&&(b=b.drop(s)),u!==n&&(u=Yt(u),b=u<0?b.dropRight(-u):b.take(u-s)),b)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(ke)},Si($t.prototype,function(s,u){var b=/^(?:filter|find|map|reject)|While$/.test(u),O=/^(?:head|last)$/.test(u),$=W[O?"take"+(u=="last"?"Right":""):u],X=O||/^find/.test(u);$&&(W.prototype[u]=function(){var ie=this.__wrapped__,de=O?[1]:arguments,ve=ie instanceof $t,$e=de[0],He=ve||Ht(ie),Ze=function(Jt){var tn=$.apply(W,Tt([Jt],de));return O&&at?tn[0]:tn};He&&b&&typeof $e=="function"&&$e.length!=1&&(ve=He=!1);var at=this.__chain__,bt=!!this.__actions__.length,Dt=X&&!at,Xt=ve&&!bt;if(!X&&He){ie=Xt?ie:new $t(this);var Pt=s.apply(ie,de);return Pt.__actions__.push({func:ih,args:[Ze],thisArg:n}),new Tr(Pt,at)}return Dt&&Xt?s.apply(this,de):(Pt=this.thru(Ze),Dt?O?Pt.value()[0]:Pt.value():Pt)})}),te(["pop","push","shift","sort","splice","unshift"],function(s){var u=Yn[s],b=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",O=/^(?:pop|shift)$/.test(s);W.prototype[s]=function(){var $=arguments;if(O&&!this.__chain__){var X=this.value();return u.apply(Ht(X)?X:[],$)}return this[b](function(ie){return u.apply(Ht(ie)?ie:[],$)})}}),Si($t.prototype,function(s,u){var b=W[u];if(b){var O=b.name+"";kt.call(Hs,O)||(Hs[O]=[]),Hs[O].push({name:u,func:b})}}),Hs[we(n,_).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Ll,$t.prototype.reverse=Qa,$t.prototype.value=Fl,W.prototype.at=JO,W.prototype.chain=QO,W.prototype.commit=e_,W.prototype.next=t_,W.prototype.plant=r_,W.prototype.reverse=i_,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=o_,W.prototype.first=W.prototype.head,Xi&&(W.prototype[Xi]=n_),W},Ce=Se();yi?((yi.exports=Ce)._=Ce,Mo._=Ce):ln._=Ce}).call(Ei)})(yp,yp.exports);var GD=yp.exports;const m6=Oc(GD);function P1(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function v6(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function y6(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],c=null,d=null,p=i;p<=o;p++){var w=e(p);w?d!==null&&(a.push(c,d),c=d=null):(d=p,c===null&&(c=p))}if(d!==null){for(var m=Math.min(Math.max(d,c+r-1),n-1),T=d+1;T<=m&&!e(T);T++)d=T;a.push(c,d)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var E=a[0]-1;if(!e(E))a[0]=E;else break}return a}var b6=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},w6=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),x6=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},O1=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},S6=function(t){x6(e,t);function e(){var n,r,i,o;b6(this,e);for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];return o=(r=(i=O1(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(c))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var w=p.visibleStartIndex,m=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!P1(w)||!P1(m))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=w,i._lastRenderedStopIndex=m,i._ensureRowsLoaded(w,m)},i._setRef=function(p){i._listRef=p},r),O1(i,o)}return w6(e,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,c=o.itemCount,d=o.minimumBatchSize,p=d===void 0?10:d,w=o.threshold,m=w===void 0?15:w,T=y6({isItemLoaded:a,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-m),stopIndex:Math.min(c-1,i+m)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(E,I){return T[I]!==E}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(p){var w=r[p],m=r[p+1],T=o(w,m);T!=null&&T.then(function(){if(v6({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:w,stopIndex:m})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(w,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},c=0;c<r.length;c+=2)a(c)}}]),e}(q.PureComponent),qD={exports:{}};/*!
|
|
163
|
-
* jQuery JavaScript Library v3.7.1
|
|
164
|
-
* https://jquery.com/
|
|
165
|
-
*
|
|
166
|
-
* Copyright OpenJS Foundation and other contributors
|
|
167
|
-
* Released under the MIT license
|
|
168
|
-
* https://jquery.org/license
|
|
169
|
-
*
|
|
170
|
-
* Date: 2023-08-28T13:37Z
|
|
171
|
-
*/(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:Ei,function(e,n){var r=[],i=Object.getPrototypeOf,o=r.slice,a=r.flat?function(h){return r.flat.call(h)}:function(h){return r.concat.apply([],h)},c=r.push,d=r.indexOf,p={},w=p.toString,m=p.hasOwnProperty,T=m.toString,E=T.call(Object),I={},A=function(y){return typeof y=="function"&&typeof y.nodeType!="number"&&typeof y.item!="function"},L=function(y){return y!=null&&y===y.window},_=e.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function G(h,y,C){C=C||_;var P,F,j=C.createElement("script");if(j.text=h,y)for(P in U)F=y[P]||y.getAttribute&&y.getAttribute(P),F&&j.setAttribute(P,F);C.head.appendChild(j).parentNode.removeChild(j)}function re(h){return h==null?h+"":typeof h=="object"||typeof h=="function"?p[w.call(h)]||"object":typeof h}var Z="3.7.1",ue=/HTML$/i,S=function(h,y){return new S.fn.init(h,y)};S.fn=S.prototype={jquery:Z,constructor:S,length:0,toArray:function(){return o.call(this)},get:function(h){return h==null?o.call(this):h<0?this[h+this.length]:this[h]},pushStack:function(h){var y=S.merge(this.constructor(),h);return y.prevObject=this,y},each:function(h){return S.each(this,h)},map:function(h){return this.pushStack(S.map(this,function(y,C){return h.call(y,C,y)}))},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,y){return(y+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(h,y){return y%2}))},eq:function(h){var y=this.length,C=+h+(h<0?y:0);return this.pushStack(C>=0&&C<y?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},S.extend=S.fn.extend=function(){var h,y,C,P,F,j,V=arguments[0]||{},oe=1,te=arguments.length,pe=!1;for(typeof V=="boolean"&&(pe=V,V=arguments[oe]||{},oe++),typeof V!="object"&&!A(V)&&(V={}),oe===te&&(V=this,oe--);oe<te;oe++)if((h=arguments[oe])!=null)for(y in h)P=h[y],!(y==="__proto__"||V===P)&&(pe&&P&&(S.isPlainObject(P)||(F=Array.isArray(P)))?(C=V[y],F&&!Array.isArray(C)?j=[]:!F&&!S.isPlainObject(C)?j={}:j=C,F=!1,V[y]=S.extend(pe,j,P)):P!==void 0&&(V[y]=P));return V},S.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(h){throw new Error(h)},noop:function(){},isPlainObject:function(h){var y,C;return!h||w.call(h)!=="[object Object]"?!1:(y=i(h),y?(C=m.call(y,"constructor")&&y.constructor,typeof C=="function"&&T.call(C)===E):!0)},isEmptyObject:function(h){var y;for(y in h)return!1;return!0},globalEval:function(h,y,C){G(h,{nonce:y&&y.nonce},C)},each:function(h,y){var C,P=0;if(ae(h))for(C=h.length;P<C&&y.call(h[P],P,h[P])!==!1;P++);else for(P in h)if(y.call(h[P],P,h[P])===!1)break;return h},text:function(h){var y,C="",P=0,F=h.nodeType;if(!F)for(;y=h[P++];)C+=S.text(y);return F===1||F===11?h.textContent:F===9?h.documentElement.textContent:F===3||F===4?h.nodeValue:C},makeArray:function(h,y){var C=y||[];return h!=null&&(ae(Object(h))?S.merge(C,typeof h=="string"?[h]:h):c.call(C,h)),C},inArray:function(h,y,C){return y==null?-1:d.call(y,h,C)},isXMLDoc:function(h){var y=h&&h.namespaceURI,C=h&&(h.ownerDocument||h).documentElement;return!ue.test(y||C&&C.nodeName||"HTML")},merge:function(h,y){for(var C=+y.length,P=0,F=h.length;P<C;P++)h[F++]=y[P];return h.length=F,h},grep:function(h,y,C){for(var P,F=[],j=0,V=h.length,oe=!C;j<V;j++)P=!y(h[j],j),P!==oe&&F.push(h[j]);return F},map:function(h,y,C){var P,F,j=0,V=[];if(ae(h))for(P=h.length;j<P;j++)F=y(h[j],j,C),F!=null&&V.push(F);else for(j in h)F=y(h[j],j,C),F!=null&&V.push(F);return a(V)},guid:1,support:I}),typeof Symbol=="function"&&(S.fn[Symbol.iterator]=r[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(h,y){p["[object "+y+"]"]=y.toLowerCase()});function ae(h){var y=!!h&&"length"in h&&h.length,C=re(h);return A(h)||L(h)?!1:C==="array"||y===0||typeof y=="number"&&y>0&&y-1 in h}function ce(h,y){return h.nodeName&&h.nodeName.toLowerCase()===y.toLowerCase()}var Ue=r.pop,_e=r.sort,Le=r.splice,Ve="[\\x20\\t\\r\\n\\f]",We=new RegExp("^"+Ve+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ve+"+$","g");S.contains=function(h,y){var C=y&&y.parentNode;return h===C||!!(C&&C.nodeType===1&&(h.contains?h.contains(C):h.compareDocumentPosition&&h.compareDocumentPosition(C)&16))};var he=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Ee(h,y){return y?h==="\0"?"�":h.slice(0,-1)+"\\"+h.charCodeAt(h.length-1).toString(16)+" ":"\\"+h}S.escapeSelector=function(h){return(h+"").replace(he,Ee)};var Oe=_,Ne=c;(function(){var h,y,C,P,F,j=Ne,V,oe,te,pe,De,Re=S.expando,xe=0,Be=0,it=An(),Tt=An(),Et=An(),Rn=An(),un=function(J,fe){return J===fe&&(F=!0),0},Lr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Fr="(?:\\\\[\\da-fA-F]{1,6}"+Ve+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Lt="\\["+Ve+"*("+Fr+")(?:"+Ve+"*([*^$|!~]?=)"+Ve+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Fr+"))|)"+Ve+"*\\]",Nr=":("+Fr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Lt+")*)|.*)\\)|)",jt=new RegExp(Ve+"+","g"),Qt=new RegExp("^"+Ve+"*,"+Ve+"*"),ho=new RegExp("^"+Ve+"*([>+~]|"+Ve+")"+Ve+"*"),po=new RegExp(Ve+"|>"),Sr=new RegExp(Nr),D=new RegExp("^"+Fr+"$"),M={ID:new RegExp("^#("+Fr+")"),CLASS:new RegExp("^\\.("+Fr+")"),TAG:new RegExp("^("+Fr+"|[*])"),ATTR:new RegExp("^"+Lt),PSEUDO:new RegExp("^"+Nr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ve+"*(even|odd|(([+-]|)(\\d*)n|)"+Ve+"*(?:([+-]|)"+Ve+"*(\\d+)|))"+Ve+"*\\)|)","i"),bool:new RegExp("^(?:"+Lr+")$","i"),needsContext:new RegExp("^"+Ve+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ve+"*((?:-\\d)?\\d*)"+Ve+"*\\)|)(?=[^-]|$)","i")},H=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,Ie=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ve+"?|\\\\([^\\r\\n\\f])","g"),Ye=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))},ht=function(){Ai()},_t=mo(function(J){return J.disabled===!0&&ce(J,"fieldset")},{dir:"parentNode",next:"legend"});function St(){try{return V.activeElement}catch{}}try{j.apply(r=o.call(Oe.childNodes),Oe.childNodes),r[Oe.childNodes.length].nodeType}catch{j={apply:function(fe,Se){Ne.apply(fe,o.call(Se))},call:function(fe){Ne.apply(fe,o.call(arguments,1))}}}function vt(J,fe,Se,Ce){var K,le,se,Ae,Fe,st,lt,rt=fe&&fe.ownerDocument,It=fe?fe.nodeType:9;if(Se=Se||[],typeof J!="string"||!J||It!==1&&It!==9&&It!==11)return Se;if(!Ce&&(Ai(fe),fe=fe||V,te)){if(It!==11&&(Fe=ye.exec(J)))if(K=Fe[1]){if(It===9)if(se=fe.getElementById(K)){if(se.id===K)return j.call(Se,se),Se}else return Se;else if(rt&&(se=rt.getElementById(K))&&vt.contains(fe,se)&&se.id===K)return j.call(Se,se),Se}else{if(Fe[2])return j.apply(Se,fe.getElementsByTagName(J)),Se;if((K=Fe[3])&&fe.getElementsByClassName)return j.apply(Se,fe.getElementsByClassName(K)),Se}if(!Rn[J+" "]&&(!pe||!pe.test(J))){if(lt=J,rt=fe,It===1&&(po.test(J)||ho.test(J))){for(rt=be.test(J)&&za(fe.parentNode)||fe,(rt!=fe||!I.scope)&&((Ae=fe.getAttribute("id"))?Ae=S.escapeSelector(Ae):fe.setAttribute("id",Ae=Re)),st=ss(J),le=st.length;le--;)st[le]=(Ae?"#"+Ae:":scope")+" "+ei(st[le]);lt=st.join(",")}try{return j.apply(Se,rt.querySelectorAll(lt)),Se}catch{Rn(J,!0)}finally{Ae===Re&&fe.removeAttribute("id")}}}return Bs(J.replace(We,"$1"),fe,Se,Ce)}function An(){var J=[];function fe(Se,Ce){return J.push(Se+" ")>y.cacheLength&&delete fe[J.shift()],fe[Se+" "]=Ce}return fe}function bn(J){return J[Re]=!0,J}function $n(J){var fe=V.createElement("fieldset");try{return!!J(fe)}catch{return!1}finally{fe.parentNode&&fe.parentNode.removeChild(fe),fe=null}}function os(J){return function(fe){return ce(fe,"input")&&fe.type===J}}function ca(J){return function(fe){return(ce(fe,"input")||ce(fe,"button"))&&fe.type===J}}function go(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&&_t(fe)===J:fe.disabled===J:"label"in fe?fe.disabled===J:!1}}function Qr(J){return bn(function(fe){return fe=+fe,bn(function(Se,Ce){for(var K,le=J([],Se.length,fe),se=le.length;se--;)Se[K=le[se]]&&(Se[K]=!(Ce[K]=Se[K]))})})}function za(J){return J&&typeof J.getElementsByTagName<"u"&&J}function Ai(J){var fe,Se=J?J.ownerDocument||J:Oe;return Se==V||Se.nodeType!==9||!Se.documentElement||(V=Se,oe=V.documentElement,te=!S.isXMLDoc(V),De=oe.matches||oe.webkitMatchesSelector||oe.msMatchesSelector,oe.msMatchesSelector&&Oe!=V&&(fe=V.defaultView)&&fe.top!==fe&&fe.addEventListener("unload",ht),I.getById=$n(function(Ce){return oe.appendChild(Ce).id=S.expando,!V.getElementsByName||!V.getElementsByName(S.expando).length}),I.disconnectedMatch=$n(function(Ce){return De.call(Ce,"*")}),I.scope=$n(function(){return V.querySelectorAll(":scope")}),I.cssHas=$n(function(){try{return V.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),I.getById?(y.filter.ID=function(Ce){var K=Ce.replace(Ie,Ye);return function(le){return le.getAttribute("id")===K}},y.find.ID=function(Ce,K){if(typeof K.getElementById<"u"&&te){var le=K.getElementById(Ce);return le?[le]:[]}}):(y.filter.ID=function(Ce){var K=Ce.replace(Ie,Ye);return function(le){var se=typeof le.getAttributeNode<"u"&&le.getAttributeNode("id");return se&&se.value===K}},y.find.ID=function(Ce,K){if(typeof K.getElementById<"u"&&te){var le,se,Ae,Fe=K.getElementById(Ce);if(Fe){if(le=Fe.getAttributeNode("id"),le&&le.value===Ce)return[Fe];for(Ae=K.getElementsByName(Ce),se=0;Fe=Ae[se++];)if(le=Fe.getAttributeNode("id"),le&&le.value===Ce)return[Fe]}return[]}}),y.find.TAG=function(Ce,K){return typeof K.getElementsByTagName<"u"?K.getElementsByTagName(Ce):K.querySelectorAll(Ce)},y.find.CLASS=function(Ce,K){if(typeof K.getElementsByClassName<"u"&&te)return K.getElementsByClassName(Ce)},pe=[],$n(function(Ce){var K;oe.appendChild(Ce).innerHTML="<a id='"+Re+"' href='' disabled='disabled'></a><select id='"+Re+"-\r\\' disabled='disabled'><option selected=''></option></select>",Ce.querySelectorAll("[selected]").length||pe.push("\\["+Ve+"*(?:value|"+Lr+")"),Ce.querySelectorAll("[id~="+Re+"-]").length||pe.push("~="),Ce.querySelectorAll("a#"+Re+"+*").length||pe.push(".#.+[+~]"),Ce.querySelectorAll(":checked").length||pe.push(":checked"),K=V.createElement("input"),K.setAttribute("type","hidden"),Ce.appendChild(K).setAttribute("name","D"),oe.appendChild(Ce).disabled=!0,Ce.querySelectorAll(":disabled").length!==2&&pe.push(":enabled",":disabled"),K=V.createElement("input"),K.setAttribute("name",""),Ce.appendChild(K),Ce.querySelectorAll("[name='']").length||pe.push("\\["+Ve+"*name"+Ve+"*="+Ve+`*(?:''|"")`)}),I.cssHas||pe.push(":has"),pe=pe.length&&new RegExp(pe.join("|")),un=function(Ce,K){if(Ce===K)return F=!0,0;var le=!Ce.compareDocumentPosition-!K.compareDocumentPosition;return le||(le=(Ce.ownerDocument||Ce)==(K.ownerDocument||K)?Ce.compareDocumentPosition(K):1,le&1||!I.sortDetached&&K.compareDocumentPosition(Ce)===le?Ce===V||Ce.ownerDocument==Oe&&vt.contains(Oe,Ce)?-1:K===V||K.ownerDocument==Oe&&vt.contains(Oe,K)?1:P?d.call(P,Ce)-d.call(P,K):0:le&4?-1:1)}),V}vt.matches=function(J,fe){return vt(J,null,null,fe)},vt.matchesSelector=function(J,fe){if(Ai(J),te&&!Rn[fe+" "]&&(!pe||!pe.test(fe)))try{var Se=De.call(J,fe);if(Se||I.disconnectedMatch||J.document&&J.document.nodeType!==11)return Se}catch{Rn(fe,!0)}return vt(fe,V,null,[J]).length>0},vt.contains=function(J,fe){return(J.ownerDocument||J)!=V&&Ai(J),S.contains(J,fe)},vt.attr=function(J,fe){(J.ownerDocument||J)!=V&&Ai(J);var Se=y.attrHandle[fe.toLowerCase()],Ce=Se&&m.call(y.attrHandle,fe.toLowerCase())?Se(J,fe,!te):void 0;return Ce!==void 0?Ce:J.getAttribute(fe)},vt.error=function(J){throw new Error("Syntax error, unrecognized expression: "+J)},S.uniqueSort=function(J){var fe,Se=[],Ce=0,K=0;if(F=!I.sortStable,P=!I.sortStable&&o.call(J,0),_e.call(J,un),F){for(;fe=J[K++];)fe===J[K]&&(Ce=Se.push(K));for(;Ce--;)Le.call(J,Se[Ce],1)}return P=null,J},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(o.apply(this)))},y=S.expr={cacheLength:50,createPseudo:bn,match:M,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(J){return J[1]=J[1].replace(Ie,Ye),J[3]=(J[3]||J[4]||J[5]||"").replace(Ie,Ye),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]||vt.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]&&vt.error(J[0]),J},PSEUDO:function(J){var fe,Se=!J[6]&&J[2];return M.CHILD.test(J[0])?null:(J[3]?J[2]=J[4]||J[5]||"":Se&&Sr.test(Se)&&(fe=ss(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(Ie,Ye).toLowerCase();return J==="*"?function(){return!0}:function(Se){return ce(Se,fe)}},CLASS:function(J){var fe=it[J+" "];return fe||(fe=new RegExp("(^|"+Ve+")"+J+"("+Ve+"|$)"))&&it(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(Ce){var K=vt.attr(Ce,J);return K==null?fe==="!=":fe?(K+="",fe==="="?K===Se:fe==="!="?K!==Se:fe==="^="?Se&&K.indexOf(Se)===0:fe==="*="?Se&&K.indexOf(Se)>-1:fe==="$="?Se&&K.slice(-Se.length)===Se:fe==="~="?(" "+K.replace(jt," ")+" ").indexOf(Se)>-1:fe==="|="?K===Se||K.slice(0,Se.length+1)===Se+"-":!1):!0}},CHILD:function(J,fe,Se,Ce,K){var le=J.slice(0,3)!=="nth",se=J.slice(-4)!=="last",Ae=fe==="of-type";return Ce===1&&K===0?function(Fe){return!!Fe.parentNode}:function(Fe,st,lt){var rt,It,wt,Vt,Yn,nr=le!==se?"nextSibling":"previousSibling",In=Fe.parentNode,zt=Ae&&Fe.nodeName.toLowerCase(),jr=!lt&&!Ae,kt=!1;if(In){if(le){for(;nr;){for(wt=Fe;wt=wt[nr];)if(Ae?ce(wt,zt):wt.nodeType===1)return!1;Yn=nr=J==="only"&&!Yn&&"nextSibling"}return!0}if(Yn=[se?In.firstChild:In.lastChild],se&&jr){for(It=In[Re]||(In[Re]={}),rt=It[J]||[],Vt=rt[0]===xe&&rt[1],kt=Vt&&rt[2],wt=Vt&&In.childNodes[Vt];wt=++Vt&&wt&&wt[nr]||(kt=Vt=0)||Yn.pop();)if(wt.nodeType===1&&++kt&&wt===Fe){It[J]=[xe,Vt,kt];break}}else if(jr&&(It=Fe[Re]||(Fe[Re]={}),rt=It[J]||[],Vt=rt[0]===xe&&rt[1],kt=Vt),kt===!1)for(;(wt=++Vt&&wt&&wt[nr]||(kt=Vt=0)||Yn.pop())&&!((Ae?ce(wt,zt):wt.nodeType===1)&&++kt&&(jr&&(It=wt[Re]||(wt[Re]={}),It[J]=[xe,kt]),wt===Fe)););return kt-=K,kt===Ce||kt%Ce===0&&kt/Ce>=0}}},PSEUDO:function(J,fe){var Se,Ce=y.pseudos[J]||y.setFilters[J.toLowerCase()]||vt.error("unsupported pseudo: "+J);return Ce[Re]?Ce(fe):Ce.length>1?(Se=[J,J,"",fe],y.setFilters.hasOwnProperty(J.toLowerCase())?bn(function(K,le){for(var se,Ae=Ce(K,fe),Fe=Ae.length;Fe--;)se=d.call(K,Ae[Fe]),K[se]=!(le[se]=Ae[Fe])}):function(K){return Ce(K,0,Se)}):Ce}},pseudos:{not:bn(function(J){var fe=[],Se=[],Ce=ha(J.replace(We,"$1"));return Ce[Re]?bn(function(K,le,se,Ae){for(var Fe,st=Ce(K,null,Ae,[]),lt=K.length;lt--;)(Fe=st[lt])&&(K[lt]=!(le[lt]=Fe))}):function(K,le,se){return fe[0]=K,Ce(fe,null,se,Se),fe[0]=null,!Se.pop()}}),has:bn(function(J){return function(fe){return vt(J,fe).length>0}}),contains:bn(function(J){return J=J.replace(Ie,Ye),function(fe){return(fe.textContent||S.text(fe)).indexOf(J)>-1}}),lang:bn(function(J){return D.test(J||"")||vt.error("unsupported lang: "+J),J=J.replace(Ie,Ye).toLowerCase(),function(fe){var Se;do if(Se=te?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=e.location&&e.location.hash;return fe&&fe.slice(1)===J.id},root:function(J){return J===oe},focus:function(J){return J===St()&&V.hasFocus()&&!!(J.type||J.href||~J.tabIndex)},enabled:go(!1),disabled:go(!0),checked:function(J){return ce(J,"input")&&!!J.checked||ce(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!y.pseudos.empty(J)},header:function(J){return Q.test(J.nodeName)},input:function(J){return H.test(J.nodeName)},button:function(J){return ce(J,"input")&&J.type==="button"||ce(J,"button")},text:function(J){var fe;return ce(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 Ce;for(Se<0?Ce=Se+fe:Se>fe?Ce=fe:Ce=Se;--Ce>=0;)J.push(Ce);return J}),gt:Qr(function(J,fe,Se){for(var Ce=Se<0?Se+fe:Se;++Ce<fe;)J.push(Ce);return J})}},y.pseudos.nth=y.pseudos.eq;for(h in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})y.pseudos[h]=os(h);for(h in{submit:!0,reset:!0})y.pseudos[h]=ca(h);function fa(){}fa.prototype=y.filters=y.pseudos,y.setFilters=new fa;function ss(J,fe){var Se,Ce,K,le,se,Ae,Fe,st=Tt[J+" "];if(st)return fe?0:st.slice(0);for(se=J,Ae=[],Fe=y.preFilter;se;){(!Se||(Ce=Qt.exec(se)))&&(Ce&&(se=se.slice(Ce[0].length)||se),Ae.push(K=[])),Se=!1,(Ce=ho.exec(se))&&(Se=Ce.shift(),K.push({value:Se,type:Ce[0].replace(We," ")}),se=se.slice(Se.length));for(le in y.filter)(Ce=M[le].exec(se))&&(!Fe[le]||(Ce=Fe[le](Ce)))&&(Se=Ce.shift(),K.push({value:Se,type:le,matches:Ce}),se=se.slice(Se.length));if(!Se)break}return fe?se.length:se?vt.error(J):Tt(J,Ae).slice(0)}function ei(J){for(var fe=0,Se=J.length,Ce="";fe<Se;fe++)Ce+=J[fe].value;return Ce}function mo(J,fe,Se){var Ce=fe.dir,K=fe.next,le=K||Ce,se=Se&&le==="parentNode",Ae=Be++;return fe.first?function(Fe,st,lt){for(;Fe=Fe[Ce];)if(Fe.nodeType===1||se)return J(Fe,st,lt);return!1}:function(Fe,st,lt){var rt,It,wt=[xe,Ae];if(lt){for(;Fe=Fe[Ce];)if((Fe.nodeType===1||se)&&J(Fe,st,lt))return!0}else for(;Fe=Fe[Ce];)if(Fe.nodeType===1||se)if(It=Fe[Re]||(Fe[Re]={}),K&&ce(Fe,K))Fe=Fe[Ce]||Fe;else{if((rt=It[le])&&rt[0]===xe&&rt[1]===Ae)return wt[2]=rt[2];if(It[le]=wt,wt[2]=J(Fe,st,lt))return!0}return!1}}function Ya(J){return J.length>1?function(fe,Se,Ce){for(var K=J.length;K--;)if(!J[K](fe,Se,Ce))return!1;return!0}:J[0]}function Du(J,fe,Se){for(var Ce=0,K=fe.length;Ce<K;Ce++)vt(J,fe[Ce],Se);return Se}function da(J,fe,Se,Ce,K){for(var le,se=[],Ae=0,Fe=J.length,st=fe!=null;Ae<Fe;Ae++)(le=J[Ae])&&(!Se||Se(le,Ce,K))&&(se.push(le),st&&fe.push(Ae));return se}function vo(J,fe,Se,Ce,K,le){return Ce&&!Ce[Re]&&(Ce=vo(Ce)),K&&!K[Re]&&(K=vo(K,le)),bn(function(se,Ae,Fe,st){var lt,rt,It,wt,Vt=[],Yn=[],nr=Ae.length,In=se||Du(fe||"*",Fe.nodeType?[Fe]:Fe,[]),zt=J&&(se||!fe)?da(In,Vt,J,Fe,st):In;if(Se?(wt=K||(se?J:nr||Ce)?[]:Ae,Se(zt,wt,Fe,st)):wt=zt,Ce)for(lt=da(wt,Yn),Ce(lt,[],Fe,st),rt=lt.length;rt--;)(It=lt[rt])&&(wt[Yn[rt]]=!(zt[Yn[rt]]=It));if(se){if(K||J){if(K){for(lt=[],rt=wt.length;rt--;)(It=wt[rt])&<.push(zt[rt]=It);K(null,wt=[],lt,st)}for(rt=wt.length;rt--;)(It=wt[rt])&&(lt=K?d.call(se,It):Vt[rt])>-1&&(se[lt]=!(Ae[lt]=It))}}else wt=da(wt===Ae?wt.splice(nr,wt.length):wt),K?K(null,Ae,wt,st):j.apply(Ae,wt)})}function cn(J){for(var fe,Se,Ce,K=J.length,le=y.relative[J[0].type],se=le||y.relative[" "],Ae=le?1:0,Fe=mo(function(rt){return rt===fe},se,!0),st=mo(function(rt){return d.call(fe,rt)>-1},se,!0),lt=[function(rt,It,wt){var Vt=!le&&(wt||It!=C)||((fe=It).nodeType?Fe(rt,It,wt):st(rt,It,wt));return fe=null,Vt}];Ae<K;Ae++)if(Se=y.relative[J[Ae].type])lt=[mo(Ya(lt),Se)];else{if(Se=y.filter[J[Ae].type].apply(null,J[Ae].matches),Se[Re]){for(Ce=++Ae;Ce<K&&!y.relative[J[Ce].type];Ce++);return vo(Ae>1&&Ya(lt),Ae>1&&ei(J.slice(0,Ae-1).concat({value:J[Ae-2].type===" "?"*":""})).replace(We,"$1"),Se,Ae<Ce&&cn(J.slice(Ae,Ce)),Ce<K&&cn(J=J.slice(Ce)),Ce<K&&ei(J))}lt.push(Se)}return Ya(lt)}function _l(J,fe){var Se=fe.length>0,Ce=J.length>0,K=function(le,se,Ae,Fe,st){var lt,rt,It,wt=0,Vt="0",Yn=le&&[],nr=[],In=C,zt=le||Ce&&y.find.TAG("*",st),jr=xe+=In==null?1:Math.random()||.1,kt=zt.length;for(st&&(C=se==V||se||st);Vt!==kt&&(lt=zt[Vt])!=null;Vt++){if(Ce&<){for(rt=0,!se&<.ownerDocument!=V&&(Ai(lt),Ae=!te);It=J[rt++];)if(It(lt,se||V,Ae)){j.call(Fe,lt);break}st&&(xe=jr)}Se&&((lt=!It&<)&&wt--,le&&Yn.push(lt))}if(wt+=Vt,Se&&Vt!==wt){for(rt=0;It=fe[rt++];)It(Yn,nr,se,Ae);if(le){if(wt>0)for(;Vt--;)Yn[Vt]||nr[Vt]||(nr[Vt]=Ue.call(Fe));nr=da(nr)}j.apply(Fe,nr),st&&!le&&nr.length>0&&wt+fe.length>1&&S.uniqueSort(Fe)}return st&&(xe=jr,C=In),Yn};return Se?bn(K):K}function ha(J,fe){var Se,Ce=[],K=[],le=Et[J+" "];if(!le){for(fe||(fe=ss(J)),Se=fe.length;Se--;)le=cn(fe[Se]),le[Re]?Ce.push(le):K.push(le);le=Et(J,_l(K,Ce)),le.selector=J}return le}function Bs(J,fe,Se,Ce){var K,le,se,Ae,Fe,st=typeof J=="function"&&J,lt=!Ce&&ss(J=st.selector||J);if(Se=Se||[],lt.length===1){if(le=lt[0]=lt[0].slice(0),le.length>2&&(se=le[0]).type==="ID"&&fe.nodeType===9&&te&&y.relative[le[1].type]){if(fe=(y.find.ID(se.matches[0].replace(Ie,Ye),fe)||[])[0],fe)st&&(fe=fe.parentNode);else return Se;J=J.slice(le.shift().value.length)}for(K=M.needsContext.test(J)?0:le.length;K--&&(se=le[K],!y.relative[Ae=se.type]);)if((Fe=y.find[Ae])&&(Ce=Fe(se.matches[0].replace(Ie,Ye),be.test(le[0].type)&&za(fe.parentNode)||fe))){if(le.splice(K,1),J=Ce.length&&ei(le),!J)return j.apply(Se,Ce),Se;break}}return(st||ha(J,lt))(Ce,fe,!te,Se,!fe||be.test(J)&&za(fe.parentNode)||fe),Se}I.sortStable=Re.split("").sort(un).join("")===Re,Ai(),I.sortDetached=$n(function(J){return J.compareDocumentPosition(V.createElement("fieldset"))&1}),S.find=vt,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,vt.compile=ha,vt.select=Bs,vt.setDocument=Ai,vt.tokenize=ss,vt.escape=S.escapeSelector,vt.getText=S.text,vt.isXML=S.isXMLDoc,vt.selectors=S.expr,vt.support=S.support,vt.uniqueSort=S.uniqueSort})();var tt=function(h,y,C){for(var P=[],F=C!==void 0;(h=h[y])&&h.nodeType!==9;)if(h.nodeType===1){if(F&&S(h).is(C))break;P.push(h)}return P},me=function(h,y){for(var C=[];h;h=h.nextSibling)h.nodeType===1&&h!==y&&C.push(h);return C},ke=S.expr.match.needsContext,ze=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function et(h,y,C){return A(y)?S.grep(h,function(P,F){return!!y.call(P,F,P)!==C}):y.nodeType?S.grep(h,function(P){return P===y!==C}):typeof y!="string"?S.grep(h,function(P){return d.call(y,P)>-1!==C}):S.filter(y,h,C)}S.filter=function(h,y,C){var P=y[0];return C&&(h=":not("+h+")"),y.length===1&&P.nodeType===1?S.find.matchesSelector(P,h)?[P]:[]:S.find.matches(h,S.grep(y,function(F){return F.nodeType===1}))},S.fn.extend({find:function(h){var y,C,P=this.length,F=this;if(typeof h!="string")return this.pushStack(S(h).filter(function(){for(y=0;y<P;y++)if(S.contains(F[y],this))return!0}));for(C=this.pushStack([]),y=0;y<P;y++)S.find(h,F[y],C);return P>1?S.uniqueSort(C):C},filter:function(h){return this.pushStack(et(this,h||[],!1))},not:function(h){return this.pushStack(et(this,h||[],!0))},is:function(h){return!!et(this,typeof h=="string"&&ke.test(h)?S(h):h||[],!1).length}});var qe,Je=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ke=S.fn.init=function(h,y,C){var P,F;if(!h)return this;if(C=C||qe,typeof h=="string")if(h[0]==="<"&&h[h.length-1]===">"&&h.length>=3?P=[null,h,null]:P=Je.exec(h),P&&(P[1]||!y))if(P[1]){if(y=y instanceof S?y[0]:y,S.merge(this,S.parseHTML(P[1],y&&y.nodeType?y.ownerDocument||y:_,!0)),ze.test(P[1])&&S.isPlainObject(y))for(P in y)A(this[P])?this[P](y[P]):this.attr(P,y[P]);return this}else return F=_.getElementById(P[2]),F&&(this[0]=F,this.length=1),this;else return!y||y.jquery?(y||C).find(h):this.constructor(y).find(h);else{if(h.nodeType)return this[0]=h,this.length=1,this;if(A(h))return C.ready!==void 0?C.ready(h):h(S)}return S.makeArray(h,this)};Ke.prototype=S.fn,qe=S(_);var ot=/^(?:parents|prev(?:Until|All))/,ct={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(h){var y=S(h,this),C=y.length;return this.filter(function(){for(var P=0;P<C;P++)if(S.contains(this,y[P]))return!0})},closest:function(h,y){var C,P=0,F=this.length,j=[],V=typeof h!="string"&&S(h);if(!ke.test(h)){for(;P<F;P++)for(C=this[P];C&&C!==y;C=C.parentNode)if(C.nodeType<11&&(V?V.index(C)>-1:C.nodeType===1&&S.find.matchesSelector(C,h))){j.push(C);break}}return this.pushStack(j.length>1?S.uniqueSort(j):j)},index:function(h){return h?typeof h=="string"?d.call(S(h),this[0]):d.call(this,h.jquery?h[0]:h):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(h,y){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(h,y))))},addBack:function(h){return this.add(h==null?this.prevObject:this.prevObject.filter(h))}});function pt(h,y){for(;(h=h[y])&&h.nodeType!==1;);return h}S.each({parent:function(h){var y=h.parentNode;return y&&y.nodeType!==11?y:null},parents:function(h){return tt(h,"parentNode")},parentsUntil:function(h,y,C){return tt(h,"parentNode",C)},next:function(h){return pt(h,"nextSibling")},prev:function(h){return pt(h,"previousSibling")},nextAll:function(h){return tt(h,"nextSibling")},prevAll:function(h){return tt(h,"previousSibling")},nextUntil:function(h,y,C){return tt(h,"nextSibling",C)},prevUntil:function(h,y,C){return tt(h,"previousSibling",C)},siblings:function(h){return me((h.parentNode||{}).firstChild,h)},children:function(h){return me(h.firstChild)},contents:function(h){return h.contentDocument!=null&&i(h.contentDocument)?h.contentDocument:(ce(h,"template")&&(h=h.content||h),S.merge([],h.childNodes))}},function(h,y){S.fn[h]=function(C,P){var F=S.map(this,y,C);return h.slice(-5)!=="Until"&&(P=C),P&&typeof P=="string"&&(F=S.filter(P,F)),this.length>1&&(ct[h]||S.uniqueSort(F),ot.test(h)&&F.reverse()),this.pushStack(F)}});var ft=/[^\x20\t\r\n\f]+/g;function yt(h){var y={};return S.each(h.match(ft)||[],function(C,P){y[P]=!0}),y}S.Callbacks=function(h){h=typeof h=="string"?yt(h):S.extend({},h);var y,C,P,F,j=[],V=[],oe=-1,te=function(){for(F=F||h.once,P=y=!0;V.length;oe=-1)for(C=V.shift();++oe<j.length;)j[oe].apply(C[0],C[1])===!1&&h.stopOnFalse&&(oe=j.length,C=!1);h.memory||(C=!1),y=!1,F&&(C?j=[]:j="")},pe={add:function(){return j&&(C&&!y&&(oe=j.length-1,V.push(C)),function De(Re){S.each(Re,function(xe,Be){A(Be)?(!h.unique||!pe.has(Be))&&j.push(Be):Be&&Be.length&&re(Be)!=="string"&&De(Be)})}(arguments),C&&!y&&te()),this},remove:function(){return S.each(arguments,function(De,Re){for(var xe;(xe=S.inArray(Re,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=V=[],j=C="",this},disabled:function(){return!j},lock:function(){return F=V=[],!C&&!y&&(j=C=""),this},locked:function(){return!!F},fireWith:function(De,Re){return F||(Re=Re||[],Re=[De,Re.slice?Re.slice():Re],V.push(Re),y||te()),this},fire:function(){return pe.fireWith(this,arguments),this},fired:function(){return!!P}};return pe};function Qe(h){return h}function At(h){throw h}function Mt(h,y,C,P){var F;try{h&&A(F=h.promise)?F.call(h).done(y).fail(C):h&&A(F=h.then)?F.call(h,y,C):y.apply(void 0,[h].slice(P))}catch(j){C.apply(void 0,[j])}}S.extend({Deferred:function(h){var y=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],C="pending",P={state:function(){return C},always:function(){return F.done(arguments).fail(arguments),this},catch:function(j){return P.then(null,j)},pipe:function(){var j=arguments;return S.Deferred(function(V){S.each(y,function(oe,te){var pe=A(j[te[4]])&&j[te[4]];F[te[1]](function(){var De=pe&&pe.apply(this,arguments);De&&A(De.promise)?De.promise().progress(V.notify).done(V.resolve).fail(V.reject):V[te[0]+"With"](this,pe?[De]:arguments)})}),j=null}).promise()},then:function(j,V,oe){var te=0;function pe(De,Re,xe,Be){return function(){var it=this,Tt=arguments,Et=function(){var un,Lr;if(!(De<te)){if(un=xe.apply(it,Tt),un===Re.promise())throw new TypeError("Thenable self-resolution");Lr=un&&(typeof un=="object"||typeof un=="function")&&un.then,A(Lr)?Be?Lr.call(un,pe(te,Re,Qe,Be),pe(te,Re,At,Be)):(te++,Lr.call(un,pe(te,Re,Qe,Be),pe(te,Re,At,Be),pe(te,Re,Qe,Re.notifyWith))):(xe!==Qe&&(it=void 0,Tt=[un]),(Be||Re.resolveWith)(it,Tt))}},Rn=Be?Et:function(){try{Et()}catch(un){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(un,Rn.error),De+1>=te&&(xe!==At&&(it=void 0,Tt=[un]),Re.rejectWith(it,Tt))}};De?Rn():(S.Deferred.getErrorHook?Rn.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(Rn.error=S.Deferred.getStackHook()),e.setTimeout(Rn))}}return S.Deferred(function(De){y[0][3].add(pe(0,De,A(oe)?oe:Qe,De.notifyWith)),y[1][3].add(pe(0,De,A(j)?j:Qe)),y[2][3].add(pe(0,De,A(V)?V:At))}).promise()},promise:function(j){return j!=null?S.extend(j,P):P}},F={};return S.each(y,function(j,V){var oe=V[2],te=V[5];P[V[1]]=oe.add,te&&oe.add(function(){C=te},y[3-j][2].disable,y[3-j][3].disable,y[0][2].lock,y[0][3].lock),oe.add(V[3].fire),F[V[0]]=function(){return F[V[0]+"With"](this===F?void 0:this,arguments),this},F[V[0]+"With"]=oe.fireWith}),P.promise(F),h&&h.call(F,F),F},when:function(h){var y=arguments.length,C=y,P=Array(C),F=o.call(arguments),j=S.Deferred(),V=function(oe){return function(te){P[oe]=this,F[oe]=arguments.length>1?o.call(arguments):te,--y||j.resolveWith(P,F)}};if(y<=1&&(Mt(h,j.done(V(C)).resolve,j.reject,!y),j.state()==="pending"||A(F[C]&&F[C].then)))return j.then();for(;C--;)Mt(F[C],V(C),j.reject);return j.promise()}});var Vn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(h,y){e.console&&e.console.warn&&h&&Vn.test(h.name)&&e.console.warn("jQuery.Deferred exception: "+h.message,h.stack,y)},S.readyException=function(h){e.setTimeout(function(){throw h})};var mr=S.Deferred();S.fn.ready=function(h){return mr.then(h).catch(function(y){S.readyException(y)}),this},S.extend({isReady:!1,readyWait:1,ready:function(h){(h===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(h!==!0&&--S.readyWait>0)&&mr.resolveWith(_,[S]))}}),S.ready.then=mr.then;function Hn(){_.removeEventListener("DOMContentLoaded",Hn),e.removeEventListener("load",Hn),S.ready()}_.readyState==="complete"||_.readyState!=="loading"&&!_.documentElement.doScroll?e.setTimeout(S.ready):(_.addEventListener("DOMContentLoaded",Hn),e.addEventListener("load",Hn));var Sn=function(h,y,C,P,F,j,V){var oe=0,te=h.length,pe=C==null;if(re(C)==="object"){F=!0;for(oe in C)Sn(h,y,oe,C[oe],!0,j,V)}else if(P!==void 0&&(F=!0,A(P)||(V=!0),pe&&(V?(y.call(h,P),y=null):(pe=y,y=function(De,Re,xe){return pe.call(S(De),xe)})),y))for(;oe<te;oe++)y(h[oe],C,V?P:P.call(h[oe],oe,y(h[oe],C)));return F?h:pe?y.call(h):te?y(h[0],C):j},$i=/^-ms-/,kr=/-([a-z])/g;function Jn(h,y){return y.toUpperCase()}function sn(h){return h.replace($i,"ms-").replace(kr,Jn)}var fn=function(h){return h.nodeType===1||h.nodeType===9||!+h.nodeType};function dn(){this.expando=S.expando+dn.uid++}dn.uid=1,dn.prototype={cache:function(h){var y=h[this.expando];return y||(y={},fn(h)&&(h.nodeType?h[this.expando]=y:Object.defineProperty(h,this.expando,{value:y,configurable:!0}))),y},set:function(h,y,C){var P,F=this.cache(h);if(typeof y=="string")F[sn(y)]=C;else for(P in y)F[sn(P)]=y[P];return F},get:function(h,y){return y===void 0?this.cache(h):h[this.expando]&&h[this.expando][sn(y)]},access:function(h,y,C){return y===void 0||y&&typeof y=="string"&&C===void 0?this.get(h,y):(this.set(h,y,C),C!==void 0?C:y)},remove:function(h,y){var C,P=h[this.expando];if(P!==void 0){if(y!==void 0)for(Array.isArray(y)?y=y.map(sn):(y=sn(y),y=y in P?[y]:y.match(ft)||[]),C=y.length;C--;)delete P[y[C]];(y===void 0||S.isEmptyObject(P))&&(h.nodeType?h[this.expando]=void 0:delete h[this.expando])}},hasData:function(h){var y=h[this.expando];return y!==void 0&&!S.isEmptyObject(y)}};var ut=new dn,Dn=new dn,oi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,on=/[A-Z]/g;function Vi(h){return h==="true"?!0:h==="false"?!1:h==="null"?null:h===+h+""?+h:oi.test(h)?JSON.parse(h):h}function Hi(h,y,C){var P;if(C===void 0&&h.nodeType===1)if(P="data-"+y.replace(on,"-$&").toLowerCase(),C=h.getAttribute(P),typeof C=="string"){try{C=Vi(C)}catch{}Dn.set(h,y,C)}else C=void 0;return C}S.extend({hasData:function(h){return Dn.hasData(h)||ut.hasData(h)},data:function(h,y,C){return Dn.access(h,y,C)},removeData:function(h,y){Dn.remove(h,y)},_data:function(h,y,C){return ut.access(h,y,C)},_removeData:function(h,y){ut.remove(h,y)}}),S.fn.extend({data:function(h,y){var C,P,F,j=this[0],V=j&&j.attributes;if(h===void 0){if(this.length&&(F=Dn.get(j),j.nodeType===1&&!ut.get(j,"hasDataAttrs"))){for(C=V.length;C--;)V[C]&&(P=V[C].name,P.indexOf("data-")===0&&(P=sn(P.slice(5)),Hi(j,P,F[P])));ut.set(j,"hasDataAttrs",!0)}return F}return typeof h=="object"?this.each(function(){Dn.set(this,h)}):Sn(this,function(oe){var te;if(j&&oe===void 0)return te=Dn.get(j,h),te!==void 0||(te=Hi(j,h),te!==void 0)?te:void 0;this.each(function(){Dn.set(this,h,oe)})},null,y,arguments.length>1,null,!0)},removeData:function(h){return this.each(function(){Dn.remove(this,h)})}}),S.extend({queue:function(h,y,C){var P;if(h)return y=(y||"fx")+"queue",P=ut.get(h,y),C&&(!P||Array.isArray(C)?P=ut.access(h,y,S.makeArray(C)):P.push(C)),P||[]},dequeue:function(h,y){y=y||"fx";var C=S.queue(h,y),P=C.length,F=C.shift(),j=S._queueHooks(h,y),V=function(){S.dequeue(h,y)};F==="inprogress"&&(F=C.shift(),P--),F&&(y==="fx"&&C.unshift("inprogress"),delete j.stop,F.call(h,V,j)),!P&&j&&j.empty.fire()},_queueHooks:function(h,y){var C=y+"queueHooks";return ut.get(h,C)||ut.access(h,C,{empty:S.Callbacks("once memory").add(function(){ut.remove(h,[y+"queue",C])})})}}),S.fn.extend({queue:function(h,y){var C=2;return typeof h!="string"&&(y=h,h="fx",C--),arguments.length<C?S.queue(this[0],h):y===void 0?this:this.each(function(){var P=S.queue(this,h,y);S._queueHooks(this,h),h==="fx"&&P[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,y){var C,P=1,F=S.Deferred(),j=this,V=this.length,oe=function(){--P||F.resolveWith(j,[j])};for(typeof h!="string"&&(y=h,h=void 0),h=h||"fx";V--;)C=ut.get(j[V],h+"queueHooks"),C&&C.empty&&(P++,C.empty.add(oe));return oe(),F.promise(y)}});var Ui=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Dr=new RegExp("^(?:([+-])=|)("+Ui+")([a-z%]*)$","i"),Nn=["Top","Right","Bottom","Left"],Pr=_.documentElement,vr=function(h){return S.contains(h.ownerDocument,h)},zr={composed:!0};Pr.getRootNode&&(vr=function(h){return S.contains(h.ownerDocument,h)||h.getRootNode(zr)===h.ownerDocument});var Yr=function(h,y){return h=y||h,h.style.display==="none"||h.style.display===""&&vr(h)&&S.css(h,"display")==="none"};function Ao(h,y,C,P){var F,j,V=20,oe=P?function(){return P.cur()}:function(){return S.css(h,y,"")},te=oe(),pe=C&&C[3]||(S.cssNumber[y]?"":"px"),De=h.nodeType&&(S.cssNumber[y]||pe!=="px"&&+te)&&Dr.exec(S.css(h,y));if(De&&De[3]!==pe){for(te=te/2,pe=pe||De[3],De=+te||1;V--;)S.style(h,y,De+pe),(1-j)*(1-(j=oe()/te||.5))<=0&&(V=0),De=De/j;De=De*2,S.style(h,y,De+pe),C=C||[]}return C&&(De=+De||+te||0,F=C[1]?De+(C[1]+1)*C[2]:+C[2],P&&(P.unit=pe,P.start=De,P.end=F)),F}var Un={};function Gr(h){var y,C=h.ownerDocument,P=h.nodeName,F=Un[P];return F||(y=C.body.appendChild(C.createElement(P)),F=S.css(y,"display"),y.parentNode.removeChild(y),F==="none"&&(F="block"),Un[P]=F,F)}function Qn(h,y){for(var C,P,F=[],j=0,V=h.length;j<V;j++)P=h[j],P.style&&(C=P.style.display,y?(C==="none"&&(F[j]=ut.get(P,"display")||null,F[j]||(P.style.display="")),P.style.display===""&&Yr(P)&&(F[j]=Gr(P))):C!=="none"&&(F[j]="none",ut.set(P,"display",C)));for(j=0;j<V;j++)F[j]!=null&&(h[j].style.display=F[j]);return h}S.fn.extend({show:function(){return Qn(this,!0)},hide:function(){return Qn(this)},toggle:function(h){return typeof h=="boolean"?h?this.show():this.hide():this.each(function(){Yr(this)?S(this).show():S(this).hide()})}});var Wt=/^(?:checkbox|radio)$/i,si=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Wi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var h=_.createDocumentFragment(),y=h.appendChild(_.createElement("div")),C=_.createElement("input");C.setAttribute("type","radio"),C.setAttribute("checked","checked"),C.setAttribute("name","t"),y.appendChild(C),I.checkClone=y.cloneNode(!0).cloneNode(!0).lastChild.checked,y.innerHTML="<textarea>x</textarea>",I.noCloneChecked=!!y.cloneNode(!0).lastChild.defaultValue,y.innerHTML="<option></option>",I.option=!!y.lastChild})();var Pn={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,"",""]};Pn.tbody=Pn.tfoot=Pn.colgroup=Pn.caption=Pn.thead,Pn.th=Pn.td,I.option||(Pn.optgroup=Pn.option=[1,"<select multiple='multiple'>","</select>"]);function hn(h,y){var C;return typeof h.getElementsByTagName<"u"?C=h.getElementsByTagName(y||"*"):typeof h.querySelectorAll<"u"?C=h.querySelectorAll(y||"*"):C=[],y===void 0||y&&ce(h,y)?S.merge([h],C):C}function ai(h,y){for(var C=0,P=h.length;C<P;C++)ut.set(h[C],"globalEval",!y||ut.get(y[C],"globalEval"))}var li=/<|&#?\w+;/;function Tn(h,y,C,P,F){for(var j,V,oe,te,pe,De,Re=y.createDocumentFragment(),xe=[],Be=0,it=h.length;Be<it;Be++)if(j=h[Be],j||j===0)if(re(j)==="object")S.merge(xe,j.nodeType?[j]:j);else if(!li.test(j))xe.push(y.createTextNode(j));else{for(V=V||Re.appendChild(y.createElement("div")),oe=(si.exec(j)||["",""])[1].toLowerCase(),te=Pn[oe]||Pn._default,V.innerHTML=te[1]+S.htmlPrefilter(j)+te[2],De=te[0];De--;)V=V.lastChild;S.merge(xe,V.childNodes),V=Re.firstChild,V.textContent=""}for(Re.textContent="",Be=0;j=xe[Be++];){if(P&&S.inArray(j,P)>-1){F&&F.push(j);continue}if(pe=vr(j),V=hn(Re.appendChild(j),"script"),pe&&ai(V),C)for(De=0;j=V[De++];)Wi.test(j.type||"")&&C.push(j)}return Re}var so=/^([^.]*)(?:\.(.+)|)/;function yr(){return!0}function ui(){return!1}function an(h,y,C,P,F,j){var V,oe;if(typeof y=="object"){typeof C!="string"&&(P=P||C,C=void 0);for(oe in y)an(h,oe,C,P,y[oe],j);return h}if(P==null&&F==null?(F=C,P=C=void 0):F==null&&(typeof C=="string"?(F=P,P=void 0):(F=P,P=C,C=void 0)),F===!1)F=ui;else if(!F)return h;return j===1&&(V=F,F=function(te){return S().off(te),V.apply(this,arguments)},F.guid=V.guid||(V.guid=S.guid++)),h.each(function(){S.event.add(this,y,F,P,C)})}S.event={global:{},add:function(h,y,C,P,F){var j,V,oe,te,pe,De,Re,xe,Be,it,Tt,Et=ut.get(h);if(fn(h))for(C.handler&&(j=C,C=j.handler,F=j.selector),F&&S.find.matchesSelector(Pr,F),C.guid||(C.guid=S.guid++),(te=Et.events)||(te=Et.events=Object.create(null)),(V=Et.handle)||(V=Et.handle=function(Rn){return typeof S<"u"&&S.event.triggered!==Rn.type?S.event.dispatch.apply(h,arguments):void 0}),y=(y||"").match(ft)||[""],pe=y.length;pe--;)oe=so.exec(y[pe])||[],Be=Tt=oe[1],it=(oe[2]||"").split(".").sort(),Be&&(Re=S.event.special[Be]||{},Be=(F?Re.delegateType:Re.bindType)||Be,Re=S.event.special[Be]||{},De=S.extend({type:Be,origType:Tt,data:P,handler:C,guid:C.guid,selector:F,needsContext:F&&S.expr.match.needsContext.test(F),namespace:it.join(".")},j),(xe=te[Be])||(xe=te[Be]=[],xe.delegateCount=0,(!Re.setup||Re.setup.call(h,P,it,V)===!1)&&h.addEventListener&&h.addEventListener(Be,V)),Re.add&&(Re.add.call(h,De),De.handler.guid||(De.handler.guid=C.guid)),F?xe.splice(xe.delegateCount++,0,De):xe.push(De),S.event.global[Be]=!0)},remove:function(h,y,C,P,F){var j,V,oe,te,pe,De,Re,xe,Be,it,Tt,Et=ut.hasData(h)&&ut.get(h);if(!(!Et||!(te=Et.events))){for(y=(y||"").match(ft)||[""],pe=y.length;pe--;){if(oe=so.exec(y[pe])||[],Be=Tt=oe[1],it=(oe[2]||"").split(".").sort(),!Be){for(Be in te)S.event.remove(h,Be+y[pe],C,P,!0);continue}for(Re=S.event.special[Be]||{},Be=(P?Re.delegateType:Re.bindType)||Be,xe=te[Be]||[],oe=oe[2]&&new RegExp("(^|\\.)"+it.join("\\.(?:.*\\.|)")+"(\\.|$)"),V=j=xe.length;j--;)De=xe[j],(F||Tt===De.origType)&&(!C||C.guid===De.guid)&&(!oe||oe.test(De.namespace))&&(!P||P===De.selector||P==="**"&&De.selector)&&(xe.splice(j,1),De.selector&&xe.delegateCount--,Re.remove&&Re.remove.call(h,De));V&&!xe.length&&((!Re.teardown||Re.teardown.call(h,it,Et.handle)===!1)&&S.removeEvent(h,Be,Et.handle),delete te[Be])}S.isEmptyObject(te)&&ut.remove(h,"handle events")}},dispatch:function(h){var y,C,P,F,j,V,oe=new Array(arguments.length),te=S.event.fix(h),pe=(ut.get(this,"events")||Object.create(null))[te.type]||[],De=S.event.special[te.type]||{};for(oe[0]=te,y=1;y<arguments.length;y++)oe[y]=arguments[y];if(te.delegateTarget=this,!(De.preDispatch&&De.preDispatch.call(this,te)===!1)){for(V=S.event.handlers.call(this,te,pe),y=0;(F=V[y++])&&!te.isPropagationStopped();)for(te.currentTarget=F.elem,C=0;(j=F.handlers[C++])&&!te.isImmediatePropagationStopped();)(!te.rnamespace||j.namespace===!1||te.rnamespace.test(j.namespace))&&(te.handleObj=j,te.data=j.data,P=((S.event.special[j.origType]||{}).handle||j.handler).apply(F.elem,oe),P!==void 0&&(te.result=P)===!1&&(te.preventDefault(),te.stopPropagation()));return De.postDispatch&&De.postDispatch.call(this,te),te.result}},handlers:function(h,y){var C,P,F,j,V,oe=[],te=y.delegateCount,pe=h.target;if(te&&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=[],V={},C=0;C<te;C++)P=y[C],F=P.selector+" ",V[F]===void 0&&(V[F]=P.needsContext?S(F,this).index(pe)>-1:S.find(F,this,null,[pe]).length),V[F]&&j.push(P);j.length&&oe.push({elem:pe,handlers:j})}}return pe=this,te<y.length&&oe.push({elem:pe,handlers:y.slice(te)}),oe},addProp:function(h,y){Object.defineProperty(S.Event.prototype,h,{enumerable:!0,configurable:!0,get:A(y)?function(){if(this.originalEvent)return y(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[h]},set:function(C){Object.defineProperty(this,h,{enumerable:!0,configurable:!0,writable:!0,value:C})}})},fix:function(h){return h[S.expando]?h:new S.Event(h)},special:{load:{noBubble:!0},click:{setup:function(h){var y=this||h;return Wt.test(y.type)&&y.click&&ce(y,"input")&&Di(y,"click",!0),!1},trigger:function(h){var y=this||h;return Wt.test(y.type)&&y.click&&ce(y,"input")&&Di(y,"click"),!0},_default:function(h){var y=h.target;return Wt.test(y.type)&&y.click&&ce(y,"input")&&ut.get(y,"click")||ce(y,"a")}},beforeunload:{postDispatch:function(h){h.result!==void 0&&h.originalEvent&&(h.originalEvent.returnValue=h.result)}}}};function Di(h,y,C){if(!C){ut.get(h,y)===void 0&&S.event.add(h,y,yr);return}ut.set(h,y,!1),S.event.add(h,y,{namespace:!1,handler:function(P){var F,j=ut.get(this,y);if(P.isTrigger&1&&this[y]){if(j)(S.event.special[y]||{}).delegateType&&P.stopPropagation();else if(j=o.call(arguments),ut.set(this,y,j),this[y](),F=ut.get(this,y),ut.set(this,y,!1),j!==F)return P.stopImmediatePropagation(),P.preventDefault(),F}else j&&(ut.set(this,y,S.event.trigger(j[0],j.slice(1),this)),P.stopPropagation(),P.isImmediatePropagationStopped=yr)}})}S.removeEvent=function(h,y,C){h.removeEventListener&&h.removeEventListener(y,C)},S.Event=function(h,y){if(!(this instanceof S.Event))return new S.Event(h,y);h&&h.type?(this.originalEvent=h,this.type=h.type,this.isDefaultPrevented=h.defaultPrevented||h.defaultPrevented===void 0&&h.returnValue===!1?yr: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,y&&S.extend(this,y),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=yr,h&&!this.isSimulated&&h.preventDefault()},stopPropagation:function(){var h=this.originalEvent;this.isPropagationStopped=yr,h&&!this.isSimulated&&h.stopPropagation()},stopImmediatePropagation:function(){var h=this.originalEvent;this.isImmediatePropagationStopped=yr,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,y){function C(P){if(_.documentMode){var F=ut.get(this,"handle"),j=S.event.fix(P);j.type=P.type==="focusin"?"focus":"blur",j.isSimulated=!0,F(P),j.target===j.currentTarget&&F(j)}else S.event.simulate(y,P.target,S.event.fix(P))}S.event.special[h]={setup:function(){var P;if(Di(this,h,!0),_.documentMode)P=ut.get(this,y),P||this.addEventListener(y,C),ut.set(this,y,(P||0)+1);else return!1},trigger:function(){return Di(this,h),!0},teardown:function(){var P;if(_.documentMode)P=ut.get(this,y)-1,P?ut.set(this,y,P):(this.removeEventListener(y,C),ut.remove(this,y));else return!1},_default:function(P){return ut.get(P.target,h)},delegateType:y},S.event.special[y]={setup:function(){var P=this.ownerDocument||this.document||this,F=_.documentMode?this:P,j=ut.get(F,y);j||(_.documentMode?this.addEventListener(y,C):P.addEventListener(h,C,!0)),ut.set(F,y,(j||0)+1)},teardown:function(){var P=this.ownerDocument||this.document||this,F=_.documentMode?this:P,j=ut.get(F,y)-1;j?ut.set(F,y,j):(_.documentMode?this.removeEventListener(y,C):P.removeEventListener(h,C,!0),ut.remove(F,y))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(h,y){S.event.special[h]={delegateType:y,bindType:y,handle:function(C){var P,F=this,j=C.relatedTarget,V=C.handleObj;return(!j||j!==F&&!S.contains(F,j))&&(C.type=V.origType,P=V.handler.apply(this,arguments),C.type=y),P}}}),S.fn.extend({on:function(h,y,C,P){return an(this,h,y,C,P)},one:function(h,y,C,P){return an(this,h,y,C,P,1)},off:function(h,y,C){var P,F;if(h&&h.preventDefault&&h.handleObj)return P=h.handleObj,S(h.delegateTarget).off(P.namespace?P.origType+"."+P.namespace:P.origType,P.selector,P.handler),this;if(typeof h=="object"){for(F in h)this.off(F,y,h[F]);return this}return(y===!1||typeof y=="function")&&(C=y,y=void 0),C===!1&&(C=ui),this.each(function(){S.event.remove(this,h,C,y)})}});var Ms=/<script|<style|<link/i,Ls=/checked\s*(?:[^=]|=\s*.checked.)/i,qr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ao(h,y){return ce(h,"table")&&ce(y.nodeType!==11?y:y.firstChild,"tr")&&S(h).children("tbody")[0]||h}function lo(h){return h.type=(h.getAttribute("type")!==null)+"/"+h.type,h}function Pi(h){return(h.type||"").slice(0,5)==="true/"?h.type=h.type.slice(5):h.removeAttribute("type"),h}function er(h,y){var C,P,F,j,V,oe,te;if(y.nodeType===1){if(ut.hasData(h)&&(j=ut.get(h),te=j.events,te)){ut.remove(y,"handle events");for(F in te)for(C=0,P=te[F].length;C<P;C++)S.event.add(y,F,te[F][C])}Dn.hasData(h)&&(V=Dn.access(h),oe=S.extend({},V),Dn.set(y,oe))}}function Or(h,y){var C=y.nodeName.toLowerCase();C==="input"&&Wt.test(h.type)?y.checked=h.checked:(C==="input"||C==="textarea")&&(y.defaultValue=h.defaultValue)}function _r(h,y,C,P){y=a(y);var F,j,V,oe,te,pe,De=0,Re=h.length,xe=Re-1,Be=y[0],it=A(Be);if(it||Re>1&&typeof Be=="string"&&!I.checkClone&&Ls.test(Be))return h.each(function(Tt){var Et=h.eq(Tt);it&&(y[0]=Be.call(this,Tt,Et.html())),_r(Et,y,C,P)});if(Re&&(F=Tn(y,h[0].ownerDocument,!1,h,P),j=F.firstChild,F.childNodes.length===1&&(F=j),j||P)){for(V=S.map(hn(F,"script"),lo),oe=V.length;De<Re;De++)te=F,De!==xe&&(te=S.clone(te,!0,!0),oe&&S.merge(V,hn(te,"script"))),C.call(h[De],te,De);if(oe)for(pe=V[V.length-1].ownerDocument,S.map(V,Pi),De=0;De<oe;De++)te=V[De],Wi.test(te.type||"")&&!ut.access(te,"globalEval")&&S.contains(pe,te)&&(te.src&&(te.type||"").toLowerCase()!=="module"?S._evalUrl&&!te.noModule&&S._evalUrl(te.src,{nonce:te.nonce||te.getAttribute("nonce")},pe):G(te.textContent.replace(qr,""),te,pe))}return h}function ci(h,y,C){for(var P,F=y?S.filter(y,h):h,j=0;(P=F[j])!=null;j++)!C&&P.nodeType===1&&S.cleanData(hn(P)),P.parentNode&&(C&&vr(P)&&ai(hn(P,"script")),P.parentNode.removeChild(P));return h}S.extend({htmlPrefilter:function(h){return h},clone:function(h,y,C){var P,F,j,V,oe=h.cloneNode(!0),te=vr(h);if(!I.noCloneChecked&&(h.nodeType===1||h.nodeType===11)&&!S.isXMLDoc(h))for(V=hn(oe),j=hn(h),P=0,F=j.length;P<F;P++)Or(j[P],V[P]);if(y)if(C)for(j=j||hn(h),V=V||hn(oe),P=0,F=j.length;P<F;P++)er(j[P],V[P]);else er(h,oe);return V=hn(oe,"script"),V.length>0&&ai(V,!te&&hn(h,"script")),oe},cleanData:function(h){for(var y,C,P,F=S.event.special,j=0;(C=h[j])!==void 0;j++)if(fn(C)){if(y=C[ut.expando]){if(y.events)for(P in y.events)F[P]?S.event.remove(C,P):S.removeEvent(C,P,y.handle);C[ut.expando]=void 0}C[Dn.expando]&&(C[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 Sn(this,function(y){return y===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=y)})},null,h,arguments.length)},append:function(){return _r(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var y=ao(this,h);y.appendChild(h)}})},prepend:function(){return _r(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var y=ao(this,h);y.insertBefore(h,y.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,y=0;(h=this[y])!=null;y++)h.nodeType===1&&(S.cleanData(hn(h,!1)),h.textContent="");return this},clone:function(h,y){return h=h??!1,y=y??h,this.map(function(){return S.clone(this,h,y)})},html:function(h){return Sn(this,function(y){var C=this[0]||{},P=0,F=this.length;if(y===void 0&&C.nodeType===1)return C.innerHTML;if(typeof y=="string"&&!Ms.test(y)&&!Pn[(si.exec(y)||["",""])[1].toLowerCase()]){y=S.htmlPrefilter(y);try{for(;P<F;P++)C=this[P]||{},C.nodeType===1&&(S.cleanData(hn(C,!1)),C.innerHTML=y);C=0}catch{}}C&&this.empty().append(y)},null,h,arguments.length)},replaceWith:function(){var h=[];return _r(this,arguments,function(y){var C=this.parentNode;S.inArray(this,h)<0&&(S.cleanData(hn(this)),C&&C.replaceChild(y,this))},h)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(h,y){S.fn[h]=function(C){for(var P,F=[],j=S(C),V=j.length-1,oe=0;oe<=V;oe++)P=oe===V?this:this.clone(!0),S(j[oe])[y](P),c.apply(F,P.get());return this.pushStack(F)}});var Xr=new RegExp("^("+Ui+")(?!px)[a-z%]+$","i"),br=/^--/,Rr=function(h){var y=h.ownerDocument.defaultView;return(!y||!y.opener)&&(y=e),y.getComputedStyle(h)},tr=function(h,y,C){var P,F,j={};for(F in y)j[F]=h.style[F],h.style[F]=y[F];P=C.call(h);for(F in y)h.style[F]=j[F];return P},zi=new RegExp(Nn.join("|"),"i");(function(){function h(){if(pe){te.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%",Pr.appendChild(te).appendChild(pe);var De=e.getComputedStyle(pe);C=De.top!=="1%",oe=y(De.marginLeft)===12,pe.style.right="60%",j=y(De.right)===36,P=y(De.width)===36,pe.style.position="absolute",F=y(pe.offsetWidth/3)===12,Pr.removeChild(te),pe=null}}function y(De){return Math.round(parseFloat(De))}var C,P,F,j,V,oe,te=_.createElement("div"),pe=_.createElement("div");pe.style&&(pe.style.backgroundClip="content-box",pe.cloneNode(!0).style.backgroundClip="",I.clearCloneStyle=pe.style.backgroundClip==="content-box",S.extend(I,{boxSizingReliable:function(){return h(),P},pixelBoxStyles:function(){return h(),j},pixelPosition:function(){return h(),C},reliableMarginLeft:function(){return h(),oe},scrollboxSize:function(){return h(),F},reliableTrDimensions:function(){var De,Re,xe,Be;return V==null&&(De=_.createElement("table"),Re=_.createElement("tr"),xe=_.createElement("div"),De.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Re.style.cssText="box-sizing:content-box;border:1px solid",Re.style.height="1px",xe.style.height="9px",xe.style.display="block",Pr.appendChild(De).appendChild(Re).appendChild(xe),Be=e.getComputedStyle(Re),V=parseInt(Be.height,10)+parseInt(Be.borderTopWidth,10)+parseInt(Be.borderBottomWidth,10)===Re.offsetHeight,Pr.removeChild(De)),V}}))})();function Oi(h,y,C){var P,F,j,V,oe=br.test(y),te=h.style;return C=C||Rr(h),C&&(V=C.getPropertyValue(y)||C[y],oe&&V&&(V=V.replace(We,"$1")||void 0),V===""&&!vr(h)&&(V=S.style(h,y)),!I.pixelBoxStyles()&&Xr.test(V)&&zi.test(y)&&(P=te.width,F=te.minWidth,j=te.maxWidth,te.minWidth=te.maxWidth=te.width=V,V=C.width,te.width=P,te.minWidth=F,te.maxWidth=j)),V!==void 0?V+"":V}function ar(h,y){return{get:function(){if(h()){delete this.get;return}return(this.get=y).apply(this,arguments)}}}var yn=["Webkit","Moz","ms"],Ar=_.createElement("div").style,Ir={};function fi(h){for(var y=h[0].toUpperCase()+h.slice(1),C=yn.length;C--;)if(h=yn[C]+y,h in Ar)return h}function di(h){var y=S.cssProps[h]||Ir[h];return y||(h in Ar?h:Ir[h]=fi(h)||h)}var wr=/^(none|table(?!-c[ea]).+)/,Kr={position:"absolute",visibility:"hidden",display:"block"},Wn={letterSpacing:"0",fontWeight:"400"};function hi(h,y,C){var P=Dr.exec(y);return P?Math.max(0,P[2]-(C||0))+(P[3]||"px"):y}function pi(h,y,C,P,F,j){var V=y==="width"?1:0,oe=0,te=0,pe=0;if(C===(P?"border":"content"))return 0;for(;V<4;V+=2)C==="margin"&&(pe+=S.css(h,C+Nn[V],!0,F)),P?(C==="content"&&(te-=S.css(h,"padding"+Nn[V],!0,F)),C!=="margin"&&(te-=S.css(h,"border"+Nn[V]+"Width",!0,F))):(te+=S.css(h,"padding"+Nn[V],!0,F),C!=="padding"?te+=S.css(h,"border"+Nn[V]+"Width",!0,F):oe+=S.css(h,"border"+Nn[V]+"Width",!0,F));return!P&&j>=0&&(te+=Math.max(0,Math.ceil(h["offset"+y[0].toUpperCase()+y.slice(1)]-j-te-oe-.5))||0),te+pe}function _i(h,y,C){var P=Rr(h),F=!I.boxSizingReliable()||C,j=F&&S.css(h,"boxSizing",!1,P)==="border-box",V=j,oe=Oi(h,y,P),te="offset"+y[0].toUpperCase()+y.slice(1);if(Xr.test(oe)){if(!C)return oe;oe="auto"}return(!I.boxSizingReliable()&&j||!I.reliableTrDimensions()&&ce(h,"tr")||oe==="auto"||!parseFloat(oe)&&S.css(h,"display",!1,P)==="inline")&&h.getClientRects().length&&(j=S.css(h,"boxSizing",!1,P)==="border-box",V=te in h,V&&(oe=h[te])),oe=parseFloat(oe)||0,oe+pi(h,y,C||(j?"border":"content"),V,P,oe)+"px"}S.extend({cssHooks:{opacity:{get:function(h,y){if(y){var C=Oi(h,"opacity");return C===""?"1":C}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(h,y,C,P){if(!(!h||h.nodeType===3||h.nodeType===8||!h.style)){var F,j,V,oe=sn(y),te=br.test(y),pe=h.style;if(te||(y=di(oe)),V=S.cssHooks[y]||S.cssHooks[oe],C!==void 0){if(j=typeof C,j==="string"&&(F=Dr.exec(C))&&F[1]&&(C=Ao(h,y,F),j="number"),C==null||C!==C)return;j==="number"&&!te&&(C+=F&&F[3]||(S.cssNumber[oe]?"":"px")),!I.clearCloneStyle&&C===""&&y.indexOf("background")===0&&(pe[y]="inherit"),(!V||!("set"in V)||(C=V.set(h,C,P))!==void 0)&&(te?pe.setProperty(y,C):pe[y]=C)}else return V&&"get"in V&&(F=V.get(h,!1,P))!==void 0?F:pe[y]}},css:function(h,y,C,P){var F,j,V,oe=sn(y),te=br.test(y);return te||(y=di(oe)),V=S.cssHooks[y]||S.cssHooks[oe],V&&"get"in V&&(F=V.get(h,!0,C)),F===void 0&&(F=Oi(h,y,P)),F==="normal"&&y in Wn&&(F=Wn[y]),C===""||C?(j=parseFloat(F),C===!0||isFinite(j)?j||0:F):F}}),S.each(["height","width"],function(h,y){S.cssHooks[y]={get:function(C,P,F){if(P)return wr.test(S.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?tr(C,Kr,function(){return _i(C,y,F)}):_i(C,y,F)},set:function(C,P,F){var j,V=Rr(C),oe=!I.scrollboxSize()&&V.position==="absolute",te=oe||F,pe=te&&S.css(C,"boxSizing",!1,V)==="border-box",De=F?pi(C,y,F,pe,V):0;return pe&&oe&&(De-=Math.ceil(C["offset"+y[0].toUpperCase()+y.slice(1)]-parseFloat(V[y])-pi(C,y,"border",!1,V)-.5)),De&&(j=Dr.exec(P))&&(j[3]||"px")!=="px"&&(C.style[y]=P,P=S.css(C,y)),hi(C,P,De)}}}),S.cssHooks.marginLeft=ar(I.reliableMarginLeft,function(h,y){if(y)return(parseFloat(Oi(h,"marginLeft"))||h.getBoundingClientRect().left-tr(h,{marginLeft:0},function(){return h.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(h,y){S.cssHooks[h+y]={expand:function(C){for(var P=0,F={},j=typeof C=="string"?C.split(" "):[C];P<4;P++)F[h+Nn[P]+y]=j[P]||j[P-2]||j[0];return F}},h!=="margin"&&(S.cssHooks[h+y].set=hi)}),S.fn.extend({css:function(h,y){return Sn(this,function(C,P,F){var j,V,oe={},te=0;if(Array.isArray(P)){for(j=Rr(C),V=P.length;te<V;te++)oe[P[te]]=S.css(C,P[te],!1,j);return oe}return F!==void 0?S.style(C,P,F):S.css(C,P)},h,y,arguments.length>1)}});function nn(h,y,C,P,F){return new nn.prototype.init(h,y,C,P,F)}S.Tween=nn,nn.prototype={constructor:nn,init:function(h,y,C,P,F,j){this.elem=h,this.prop=C,this.easing=F||S.easing._default,this.options=y,this.start=this.now=this.cur(),this.end=P,this.unit=j||(S.cssNumber[C]?"":"px")},cur:function(){var h=nn.propHooks[this.prop];return h&&h.get?h.get(this):nn.propHooks._default.get(this)},run:function(h){var y,C=nn.propHooks[this.prop];return this.options.duration?this.pos=y=S.easing[this.easing](h,this.options.duration*h,0,1,this.options.duration):this.pos=y=h,this.now=(this.end-this.start)*y+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),C&&C.set?C.set(this):nn.propHooks._default.set(this),this}},nn.prototype.init.prototype=nn.prototype,nn.propHooks={_default:{get:function(h){var y;return h.elem.nodeType!==1||h.elem[h.prop]!=null&&h.elem.style[h.prop]==null?h.elem[h.prop]:(y=S.css(h.elem,h.prop,""),!y||y==="auto"?0:y)},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}}},nn.propHooks.scrollTop=nn.propHooks.scrollLeft={set:function(h){h.elem.nodeType&&h.elem.parentNode&&(h.elem[h.prop]=h.now)}},S.easing={linear:function(h){return h},swing:function(h){return .5-Math.cos(h*Math.PI)/2},_default:"swing"},S.fx=nn.prototype.init,S.fx.step={};var jn,Cn,uo=/^(?:toggle|show|hide)$/,On=/queueHooks$/;function _n(){Cn&&(_.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(_n):e.setTimeout(_n,S.fx.interval),S.fx.tick())}function k(){return e.setTimeout(function(){jn=void 0}),jn=Date.now()}function N(h,y){var C,P=0,F={height:h};for(y=y?1:0;P<4;P+=2-y)C=Nn[P],F["margin"+C]=F["padding"+C]=h;return y&&(F.opacity=F.width=h),F}function Y(h,y,C){for(var P,F=(ge.tweeners[y]||[]).concat(ge.tweeners["*"]),j=0,V=F.length;j<V;j++)if(P=F[j].call(C,y,h))return P}function ee(h,y,C){var P,F,j,V,oe,te,pe,De,Re="width"in y||"height"in y,xe=this,Be={},it=h.style,Tt=h.nodeType&&Yr(h),Et=ut.get(h,"fxshow");C.queue||(V=S._queueHooks(h,"fx"),V.unqueued==null&&(V.unqueued=0,oe=V.empty.fire,V.empty.fire=function(){V.unqueued||oe()}),V.unqueued++,xe.always(function(){xe.always(function(){V.unqueued--,S.queue(h,"fx").length||V.empty.fire()})}));for(P in y)if(F=y[P],uo.test(F)){if(delete y[P],j=j||F==="toggle",F===(Tt?"hide":"show"))if(F==="show"&&Et&&Et[P]!==void 0)Tt=!0;else continue;Be[P]=Et&&Et[P]||S.style(h,P)}if(te=!S.isEmptyObject(y),!(!te&&S.isEmptyObject(Be))){Re&&h.nodeType===1&&(C.overflow=[it.overflow,it.overflowX,it.overflowY],pe=Et&&Et.display,pe==null&&(pe=ut.get(h,"display")),De=S.css(h,"display"),De==="none"&&(pe?De=pe:(Qn([h],!0),pe=h.style.display||pe,De=S.css(h,"display"),Qn([h]))),(De==="inline"||De==="inline-block"&&pe!=null)&&S.css(h,"float")==="none"&&(te||(xe.done(function(){it.display=pe}),pe==null&&(De=it.display,pe=De==="none"?"":De)),it.display="inline-block")),C.overflow&&(it.overflow="hidden",xe.always(function(){it.overflow=C.overflow[0],it.overflowX=C.overflow[1],it.overflowY=C.overflow[2]})),te=!1;for(P in Be)te||(Et?"hidden"in Et&&(Tt=Et.hidden):Et=ut.access(h,"fxshow",{display:pe}),j&&(Et.hidden=!Tt),Tt&&Qn([h],!0),xe.done(function(){Tt||Qn([h]),ut.remove(h,"fxshow");for(P in Be)S.style(h,P,Be[P])})),te=Y(Tt?Et[P]:0,P,xe),P in Et||(Et[P]=te.start,Tt&&(te.end=te.start,te.start=0))}}function Te(h,y){var C,P,F,j,V;for(C in h)if(P=sn(C),F=y[P],j=h[C],Array.isArray(j)&&(F=j[1],j=h[C]=j[0]),C!==P&&(h[P]=j,delete h[C]),V=S.cssHooks[P],V&&"expand"in V){j=V.expand(j),delete h[P];for(C in j)C in h||(h[C]=j[C],y[C]=F)}else y[P]=F}function ge(h,y,C){var P,F,j=0,V=ge.prefilters.length,oe=S.Deferred().always(function(){delete te.elem}),te=function(){if(F)return!1;for(var Re=jn||k(),xe=Math.max(0,pe.startTime+pe.duration-Re),Be=xe/pe.duration||0,it=1-Be,Tt=0,Et=pe.tweens.length;Tt<Et;Tt++)pe.tweens[Tt].run(it);return oe.notifyWith(h,[pe,it,xe]),it<1&&Et?xe:(Et||oe.notifyWith(h,[pe,1,0]),oe.resolveWith(h,[pe]),!1)},pe=oe.promise({elem:h,props:S.extend({},y),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},C),originalProperties:y,originalOptions:C,startTime:jn||k(),duration:C.duration,tweens:[],createTween:function(Re,xe){var Be=S.Tween(h,pe.opts,Re,xe,pe.opts.specialEasing[Re]||pe.opts.easing);return pe.tweens.push(Be),Be},stop:function(Re){var xe=0,Be=Re?pe.tweens.length:0;if(F)return this;for(F=!0;xe<Be;xe++)pe.tweens[xe].run(1);return Re?(oe.notifyWith(h,[pe,1,0]),oe.resolveWith(h,[pe,Re])):oe.rejectWith(h,[pe,Re]),this}}),De=pe.props;for(Te(De,pe.opts.specialEasing);j<V;j++)if(P=ge.prefilters[j].call(pe,h,De,pe.opts),P)return A(P.stop)&&(S._queueHooks(pe.elem,pe.opts.queue).stop=P.stop.bind(P)),P;return S.map(De,Y,pe),A(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(te,{elem:h,anim:pe,queue:pe.opts.queue})),pe}S.Animation=S.extend(ge,{tweeners:{"*":[function(h,y){var C=this.createTween(h,y);return Ao(C.elem,h,Dr.exec(y),C),C}]},tweener:function(h,y){A(h)?(y=h,h=["*"]):h=h.match(ft);for(var C,P=0,F=h.length;P<F;P++)C=h[P],ge.tweeners[C]=ge.tweeners[C]||[],ge.tweeners[C].unshift(y)},prefilters:[ee],prefilter:function(h,y){y?ge.prefilters.unshift(h):ge.prefilters.push(h)}}),S.speed=function(h,y,C){var P=h&&typeof h=="object"?S.extend({},h):{complete:C||!C&&y||A(h)&&h,duration:h,easing:C&&y||y&&!A(y)&&y};return S.fx.off?P.duration=0:typeof P.duration!="number"&&(P.duration in S.fx.speeds?P.duration=S.fx.speeds[P.duration]:P.duration=S.fx.speeds._default),(P.queue==null||P.queue===!0)&&(P.queue="fx"),P.old=P.complete,P.complete=function(){A(P.old)&&P.old.call(this),P.queue&&S.dequeue(this,P.queue)},P},S.fn.extend({fadeTo:function(h,y,C,P){return this.filter(Yr).css("opacity",0).show().end().animate({opacity:y},h,C,P)},animate:function(h,y,C,P){var F=S.isEmptyObject(h),j=S.speed(y,C,P),V=function(){var oe=ge(this,S.extend({},h),j);(F||ut.get(this,"finish"))&&oe.stop(!0)};return V.finish=V,F||j.queue===!1?this.each(V):this.queue(j.queue,V)},stop:function(h,y,C){var P=function(F){var j=F.stop;delete F.stop,j(C)};return typeof h!="string"&&(C=y,y=h,h=void 0),y&&this.queue(h||"fx",[]),this.each(function(){var F=!0,j=h!=null&&h+"queueHooks",V=S.timers,oe=ut.get(this);if(j)oe[j]&&oe[j].stop&&P(oe[j]);else for(j in oe)oe[j]&&oe[j].stop&&On.test(j)&&P(oe[j]);for(j=V.length;j--;)V[j].elem===this&&(h==null||V[j].queue===h)&&(V[j].anim.stop(C),F=!1,V.splice(j,1));(F||!C)&&S.dequeue(this,h)})},finish:function(h){return h!==!1&&(h=h||"fx"),this.each(function(){var y,C=ut.get(this),P=C[h+"queue"],F=C[h+"queueHooks"],j=S.timers,V=P?P.length:0;for(C.finish=!0,S.queue(this,h,[]),F&&F.stop&&F.stop.call(this,!0),y=j.length;y--;)j[y].elem===this&&j[y].queue===h&&(j[y].anim.stop(!0),j.splice(y,1));for(y=0;y<V;y++)P[y]&&P[y].finish&&P[y].finish.call(this);delete C.finish})}}),S.each(["toggle","show","hide"],function(h,y){var C=S.fn[y];S.fn[y]=function(P,F,j){return P==null||typeof P=="boolean"?C.apply(this,arguments):this.animate(N(y,!0),P,F,j)}}),S.each({slideDown:N("show"),slideUp:N("hide"),slideToggle:N("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(h,y){S.fn[h]=function(C,P,F){return this.animate(y,C,P,F)}}),S.timers=[],S.fx.tick=function(){var h,y=0,C=S.timers;for(jn=Date.now();y<C.length;y++)h=C[y],!h()&&C[y]===h&&C.splice(y--,1);C.length||S.fx.stop(),jn=void 0},S.fx.timer=function(h){S.timers.push(h),S.fx.start()},S.fx.interval=13,S.fx.start=function(){Cn||(Cn=!0,_n())},S.fx.stop=function(){Cn=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(h,y){return h=S.fx&&S.fx.speeds[h]||h,y=y||"fx",this.queue(y,function(C,P){var F=e.setTimeout(C,h);P.stop=function(){e.clearTimeout(F)}})},function(){var h=_.createElement("input"),y=_.createElement("select"),C=y.appendChild(_.createElement("option"));h.type="checkbox",I.checkOn=h.value!=="",I.optSelected=C.selected,h=_.createElement("input"),h.value="t",h.type="radio",I.radioValue=h.value==="t"}();var Pe,Xe=S.expr.attrHandle;S.fn.extend({attr:function(h,y){return Sn(this,S.attr,h,y,arguments.length>1)},removeAttr:function(h){return this.each(function(){S.removeAttr(this,h)})}}),S.extend({attr:function(h,y,C){var P,F,j=h.nodeType;if(!(j===3||j===8||j===2)){if(typeof h.getAttribute>"u")return S.prop(h,y,C);if((j!==1||!S.isXMLDoc(h))&&(F=S.attrHooks[y.toLowerCase()]||(S.expr.match.bool.test(y)?Pe:void 0)),C!==void 0){if(C===null){S.removeAttr(h,y);return}return F&&"set"in F&&(P=F.set(h,C,y))!==void 0?P:(h.setAttribute(y,C+""),C)}return F&&"get"in F&&(P=F.get(h,y))!==null?P:(P=S.find.attr(h,y),P??void 0)}},attrHooks:{type:{set:function(h,y){if(!I.radioValue&&y==="radio"&&ce(h,"input")){var C=h.value;return h.setAttribute("type",y),C&&(h.value=C),y}}}},removeAttr:function(h,y){var C,P=0,F=y&&y.match(ft);if(F&&h.nodeType===1)for(;C=F[P++];)h.removeAttribute(C)}}),Pe={set:function(h,y,C){return y===!1?S.removeAttr(h,C):h.setAttribute(C,C),C}},S.each(S.expr.match.bool.source.match(/\w+/g),function(h,y){var C=Xe[y]||S.find.attr;Xe[y]=function(P,F,j){var V,oe,te=F.toLowerCase();return j||(oe=Xe[te],Xe[te]=V,V=C(P,F,j)!=null?te:null,Xe[te]=oe),V}});var gt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;S.fn.extend({prop:function(h,y){return Sn(this,S.prop,h,y,arguments.length>1)},removeProp:function(h){return this.each(function(){delete this[S.propFix[h]||h]})}}),S.extend({prop:function(h,y,C){var P,F,j=h.nodeType;if(!(j===3||j===8||j===2))return(j!==1||!S.isXMLDoc(h))&&(y=S.propFix[y]||y,F=S.propHooks[y]),C!==void 0?F&&"set"in F&&(P=F.set(h,C,y))!==void 0?P:h[y]=C:F&&"get"in F&&(P=F.get(h,y))!==null?P:h[y]},propHooks:{tabIndex:{get:function(h){var y=S.find.attr(h,"tabindex");return y?parseInt(y,10):gt.test(h.nodeName)||mt.test(h.nodeName)&&h.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),I.optSelected||(S.propHooks.selected={get:function(h){var y=h.parentNode;return y&&y.parentNode&&y.parentNode.selectedIndex,null},set:function(h){var y=h.parentNode;y&&(y.selectedIndex,y.parentNode&&y.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this});function dt(h){var y=h.match(ft)||[];return y.join(" ")}function Ft(h){return h.getAttribute&&h.getAttribute("class")||""}function Bn(h){return Array.isArray(h)?h:typeof h=="string"?h.match(ft)||[]:[]}S.fn.extend({addClass:function(h){var y,C,P,F,j,V;return A(h)?this.each(function(oe){S(this).addClass(h.call(this,oe,Ft(this)))}):(y=Bn(h),y.length?this.each(function(){if(P=Ft(this),C=this.nodeType===1&&" "+dt(P)+" ",C){for(j=0;j<y.length;j++)F=y[j],C.indexOf(" "+F+" ")<0&&(C+=F+" ");V=dt(C),P!==V&&this.setAttribute("class",V)}}):this)},removeClass:function(h){var y,C,P,F,j,V;return A(h)?this.each(function(oe){S(this).removeClass(h.call(this,oe,Ft(this)))}):arguments.length?(y=Bn(h),y.length?this.each(function(){if(P=Ft(this),C=this.nodeType===1&&" "+dt(P)+" ",C){for(j=0;j<y.length;j++)for(F=y[j];C.indexOf(" "+F+" ")>-1;)C=C.replace(" "+F+" "," ");V=dt(C),P!==V&&this.setAttribute("class",V)}}):this):this.attr("class","")},toggleClass:function(h,y){var C,P,F,j,V=typeof h,oe=V==="string"||Array.isArray(h);return A(h)?this.each(function(te){S(this).toggleClass(h.call(this,te,Ft(this),y),y)}):typeof y=="boolean"&&oe?y?this.addClass(h):this.removeClass(h):(C=Bn(h),this.each(function(){if(oe)for(j=S(this),F=0;F<C.length;F++)P=C[F],j.hasClass(P)?j.removeClass(P):j.addClass(P);else(h===void 0||V==="boolean")&&(P=Ft(this),P&&ut.set(this,"__className__",P),this.setAttribute&&this.setAttribute("class",P||h===!1?"":ut.get(this,"__className__")||""))}))},hasClass:function(h){var y,C,P=0;for(y=" "+h+" ";C=this[P++];)if(C.nodeType===1&&(" "+dt(Ft(C))+" ").indexOf(y)>-1)return!0;return!1}});var zn=/\r/g;S.fn.extend({val:function(h){var y,C,P,F=this[0];return arguments.length?(P=A(h),this.each(function(j){var V;this.nodeType===1&&(P?V=h.call(this,j,S(this).val()):V=h,V==null?V="":typeof V=="number"?V+="":Array.isArray(V)&&(V=S.map(V,function(oe){return oe==null?"":oe+""})),y=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!y||!("set"in y)||y.set(this,V,"value")===void 0)&&(this.value=V))})):F?(y=S.valHooks[F.type]||S.valHooks[F.nodeName.toLowerCase()],y&&"get"in y&&(C=y.get(F,"value"))!==void 0?C:(C=F.value,typeof C=="string"?C.replace(zn,""):C??"")):void 0}}),S.extend({valHooks:{option:{get:function(h){var y=S.find.attr(h,"value");return y??dt(S.text(h))}},select:{get:function(h){var y,C,P,F=h.options,j=h.selectedIndex,V=h.type==="select-one",oe=V?null:[],te=V?j+1:F.length;for(j<0?P=te:P=V?j:0;P<te;P++)if(C=F[P],(C.selected||P===j)&&!C.disabled&&(!C.parentNode.disabled||!ce(C.parentNode,"optgroup"))){if(y=S(C).val(),V)return y;oe.push(y)}return oe},set:function(h,y){for(var C,P,F=h.options,j=S.makeArray(y),V=F.length;V--;)P=F[V],(P.selected=S.inArray(S.valHooks.option.get(P),j)>-1)&&(C=!0);return C||(h.selectedIndex=-1),j}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(h,y){if(Array.isArray(y))return h.checked=S.inArray(S(h).val(),y)>-1}},I.checkOn||(S.valHooks[this].get=function(h){return h.getAttribute("value")===null?"on":h.value})});var En=e.location,Zr={guid:Date.now()},lr=/\?/;S.parseXML=function(h){var y,C;if(!h||typeof h!="string")return null;try{y=new e.DOMParser().parseFromString(h,"text/xml")}catch{}return C=y&&y.getElementsByTagName("parsererror")[0],(!y||C)&&S.error("Invalid XML: "+(C?S.map(C.childNodes,function(P){return P.textContent}).join(`
|
|
172
|
-
`):h)),y};var Yi=/^(?:focusinfocus|focusoutblur)$/,gi=function(h){h.stopPropagation()};S.extend(S.event,{trigger:function(h,y,C,P){var F,j,V,oe,te,pe,De,Re,xe=[C||_],Be=m.call(h,"type")?h.type:h,it=m.call(h,"namespace")?h.namespace.split("."):[];if(j=Re=V=C=C||_,!(C.nodeType===3||C.nodeType===8)&&!Yi.test(Be+S.event.triggered)&&(Be.indexOf(".")>-1&&(it=Be.split("."),Be=it.shift(),it.sort()),te=Be.indexOf(":")<0&&"on"+Be,h=h[S.expando]?h:new S.Event(Be,typeof h=="object"&&h),h.isTrigger=P?2:3,h.namespace=it.join("."),h.rnamespace=h.namespace?new RegExp("(^|\\.)"+it.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h.result=void 0,h.target||(h.target=C),y=y==null?[h]:S.makeArray(y,[h]),De=S.event.special[Be]||{},!(!P&&De.trigger&&De.trigger.apply(C,y)===!1))){if(!P&&!De.noBubble&&!L(C)){for(oe=De.delegateType||Be,Yi.test(oe+Be)||(j=j.parentNode);j;j=j.parentNode)xe.push(j),V=j;V===(C.ownerDocument||_)&&xe.push(V.defaultView||V.parentWindow||e)}for(F=0;(j=xe[F++])&&!h.isPropagationStopped();)Re=j,h.type=F>1?oe:De.bindType||Be,pe=(ut.get(j,"events")||Object.create(null))[h.type]&&ut.get(j,"handle"),pe&&pe.apply(j,y),pe=te&&j[te],pe&&pe.apply&&fn(j)&&(h.result=pe.apply(j,y),h.result===!1&&h.preventDefault());return h.type=Be,!P&&!h.isDefaultPrevented()&&(!De._default||De._default.apply(xe.pop(),y)===!1)&&fn(C)&&te&&A(C[Be])&&!L(C)&&(V=C[te],V&&(C[te]=null),S.event.triggered=Be,h.isPropagationStopped()&&Re.addEventListener(Be,gi),C[Be](),h.isPropagationStopped()&&Re.removeEventListener(Be,gi),S.event.triggered=void 0,V&&(C[te]=V)),h.result}},simulate:function(h,y,C){var P=S.extend(new S.Event,C,{type:h,isSimulated:!0});S.event.trigger(P,null,y)}}),S.fn.extend({trigger:function(h,y){return this.each(function(){S.event.trigger(h,y,this)})},triggerHandler:function(h,y){var C=this[0];if(C)return S.event.trigger(h,y,C,!0)}});var Gi=/\[\]$/,Mr=/\r?\n/g,qi=/^(?:submit|button|image|reset|file)$/i,Ua=/^(?:input|select|textarea|keygen)/i;function Fs(h,y,C,P){var F;if(Array.isArray(y))S.each(y,function(j,V){C||Gi.test(h)?P(h,V):Fs(h+"["+(typeof V=="object"&&V!=null?j:"")+"]",V,C,P)});else if(!C&&re(y)==="object")for(F in y)Fs(h+"["+F+"]",y[F],C,P);else P(h,y)}S.param=function(h,y){var C,P=[],F=function(j,V){var oe=A(V)?V():V;P[P.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(C in h)Fs(C,h[C],y,F);return P.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")&&Ua.test(this.nodeName)&&!qi.test(h)&&(this.checked||!Wt.test(h))}).map(function(h,y){var C=S(this).val();return C==null?null:Array.isArray(C)?S.map(C,function(P){return{name:y.name,value:P.replace(Mr,`\r
|
|
173
|
-
`)}}):{name:y.name,value:C.replace(Mr,`\r
|
|
174
|
-
`)}}).get()}});var rs=/%20/g,xr=/#.*$/,Wa=/([?&])_=[^&]*/,mi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ns=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,is=/^(?:GET|HEAD)$/,rn=/^\/\//,Gt={},Kt={},Ri="*/".concat("*"),Jr=_.createElement("a");Jr.href=En.href;function Io(h){return function(y,C){typeof y!="string"&&(C=y,y="*");var P,F=0,j=y.toLowerCase().match(ft)||[];if(A(C))for(;P=j[F++];)P[0]==="+"?(P=P.slice(1)||"*",(h[P]=h[P]||[]).unshift(C)):(h[P]=h[P]||[]).push(C)}}function vi(h,y,C,P){var F={},j=h===Kt;function V(oe){var te;return F[oe]=!0,S.each(h[oe]||[],function(pe,De){var Re=De(y,C,P);if(typeof Re=="string"&&!j&&!F[Re])return y.dataTypes.unshift(Re),V(Re),!1;if(j)return!(te=Re)}),te}return V(y.dataTypes[0])||!F["*"]&&V("*")}function ur(h,y){var C,P,F=S.ajaxSettings.flatOptions||{};for(C in y)y[C]!==void 0&&((F[C]?h:P||(P={}))[C]=y[C]);return P&&S.extend(!0,h,P),h}function js(h,y,C){for(var P,F,j,V,oe=h.contents,te=h.dataTypes;te[0]==="*";)te.shift(),P===void 0&&(P=h.mimeType||y.getResponseHeader("Content-Type"));if(P){for(F in oe)if(oe[F]&&oe[F].test(P)){te.unshift(F);break}}if(te[0]in C)j=te[0];else{for(F in C){if(!te[0]||h.converters[F+" "+te[0]]){j=F;break}V||(V=F)}j=j||V}if(j)return j!==te[0]&&te.unshift(j),C[j]}function co(h,y,C,P){var F,j,V,oe,te,pe={},De=h.dataTypes.slice();if(De[1])for(V in h.converters)pe[V.toLowerCase()]=h.converters[V];for(j=De.shift();j;)if(h.responseFields[j]&&(C[h.responseFields[j]]=y),!te&&P&&h.dataFilter&&(y=h.dataFilter(y,h.dataType)),te=j,j=De.shift(),j){if(j==="*")j=te;else if(te!=="*"&&te!==j){if(V=pe[te+" "+j]||pe["* "+j],!V){for(F in pe)if(oe=F.split(" "),oe[1]===j&&(V=pe[te+" "+oe[0]]||pe["* "+oe[0]],V)){V===!0?V=pe[F]:pe[F]!==!0&&(j=oe[0],De.unshift(oe[1]));break}}if(V!==!0)if(V&&h.throws)y=V(y);else try{y=V(y)}catch(Re){return{state:"parsererror",error:V?Re:"No conversion from "+te+" to "+j}}}}return{state:"success",data:y}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:En.href,type:"GET",isLocal:Ns.test(En.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ri,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,y){return y?ur(ur(h,S.ajaxSettings),y):ur(S.ajaxSettings,h)},ajaxPrefilter:Io(Gt),ajaxTransport:Io(Kt),ajax:function(h,y){typeof h=="object"&&(y=h,h=void 0),y=y||{};var C,P,F,j,V,oe,te,pe,De,Re,xe=S.ajaxSetup({},y),Be=xe.context||xe,it=xe.context&&(Be.nodeType||Be.jquery)?S(Be):S.event,Tt=S.Deferred(),Et=S.Callbacks("once memory"),Rn=xe.statusCode||{},un={},Lr={},Fr="canceled",Lt={readyState:0,getResponseHeader:function(jt){var Qt;if(te){if(!j)for(j={};Qt=mi.exec(F);)j[Qt[1].toLowerCase()+" "]=(j[Qt[1].toLowerCase()+" "]||[]).concat(Qt[2]);Qt=j[jt.toLowerCase()+" "]}return Qt==null?null:Qt.join(", ")},getAllResponseHeaders:function(){return te?F:null},setRequestHeader:function(jt,Qt){return te==null&&(jt=Lr[jt.toLowerCase()]=Lr[jt.toLowerCase()]||jt,un[jt]=Qt),this},overrideMimeType:function(jt){return te==null&&(xe.mimeType=jt),this},statusCode:function(jt){var Qt;if(jt)if(te)Lt.always(jt[Lt.status]);else for(Qt in jt)Rn[Qt]=[Rn[Qt],jt[Qt]];return this},abort:function(jt){var Qt=jt||Fr;return C&&C.abort(Qt),Nr(0,Qt),this}};if(Tt.promise(Lt),xe.url=((h||xe.url||En.href)+"").replace(rn,En.protocol+"//"),xe.type=y.method||y.type||xe.method||xe.type,xe.dataTypes=(xe.dataType||"*").toLowerCase().match(ft)||[""],xe.crossDomain==null){oe=_.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)),vi(Gt,xe,y,Lt),te)return Lt;pe=S.event&&xe.global,pe&&S.active++===0&&S.event.trigger("ajaxStart"),xe.type=xe.type.toUpperCase(),xe.hasContent=!is.test(xe.type),P=xe.url.replace(xr,""),xe.hasContent?xe.data&&xe.processData&&(xe.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(xe.data=xe.data.replace(rs,"+")):(Re=xe.url.slice(P.length),xe.data&&(xe.processData||typeof xe.data=="string")&&(P+=(lr.test(P)?"&":"?")+xe.data,delete xe.data),xe.cache===!1&&(P=P.replace(Wa,"$1"),Re=(lr.test(P)?"&":"?")+"_="+Zr.guid+++Re),xe.url=P+Re),xe.ifModified&&(S.lastModified[P]&&Lt.setRequestHeader("If-Modified-Since",S.lastModified[P]),S.etag[P]&&Lt.setRequestHeader("If-None-Match",S.etag[P])),(xe.data&&xe.hasContent&&xe.contentType!==!1||y.contentType)&&Lt.setRequestHeader("Content-Type",xe.contentType),Lt.setRequestHeader("Accept",xe.dataTypes[0]&&xe.accepts[xe.dataTypes[0]]?xe.accepts[xe.dataTypes[0]]+(xe.dataTypes[0]!=="*"?", "+Ri+"; q=0.01":""):xe.accepts["*"]);for(De in xe.headers)Lt.setRequestHeader(De,xe.headers[De]);if(xe.beforeSend&&(xe.beforeSend.call(Be,Lt,xe)===!1||te))return Lt.abort();if(Fr="abort",Et.add(xe.complete),Lt.done(xe.success),Lt.fail(xe.error),C=vi(Kt,xe,y,Lt),!C)Nr(-1,"No Transport");else{if(Lt.readyState=1,pe&&it.trigger("ajaxSend",[Lt,xe]),te)return Lt;xe.async&&xe.timeout>0&&(V=e.setTimeout(function(){Lt.abort("timeout")},xe.timeout));try{te=!1,C.send(un,Nr)}catch(jt){if(te)throw jt;Nr(-1,jt)}}function Nr(jt,Qt,ho,po){var Sr,D,M,H,Q,ye=Qt;te||(te=!0,V&&e.clearTimeout(V),C=void 0,F=po||"",Lt.readyState=jt>0?4:0,Sr=jt>=200&&jt<300||jt===304,ho&&(H=js(xe,Lt,ho)),!Sr&&S.inArray("script",xe.dataTypes)>-1&&S.inArray("json",xe.dataTypes)<0&&(xe.converters["text script"]=function(){}),H=co(xe,H,Lt,Sr),Sr?(xe.ifModified&&(Q=Lt.getResponseHeader("Last-Modified"),Q&&(S.lastModified[P]=Q),Q=Lt.getResponseHeader("etag"),Q&&(S.etag[P]=Q)),jt===204||xe.type==="HEAD"?ye="nocontent":jt===304?ye="notmodified":(ye=H.state,D=H.data,M=H.error,Sr=!M)):(M=ye,(jt||!ye)&&(ye="error",jt<0&&(jt=0))),Lt.status=jt,Lt.statusText=(Qt||ye)+"",Sr?Tt.resolveWith(Be,[D,ye,Lt]):Tt.rejectWith(Be,[Lt,ye,M]),Lt.statusCode(Rn),Rn=void 0,pe&&it.trigger(Sr?"ajaxSuccess":"ajaxError",[Lt,xe,Sr?D:M]),Et.fireWith(Be,[Lt,ye]),pe&&(it.trigger("ajaxComplete",[Lt,xe]),--S.active||S.event.trigger("ajaxStop")))}return Lt},getJSON:function(h,y,C){return S.get(h,y,C,"json")},getScript:function(h,y){return S.get(h,void 0,y,"script")}}),S.each(["get","post"],function(h,y){S[y]=function(C,P,F,j){return A(P)&&(j=j||F,F=P,P=void 0),S.ajax(S.extend({url:C,type:y,dataType:j,data:P,success:F},S.isPlainObject(C)&&C))}}),S.ajaxPrefilter(function(h){var y;for(y in h.headers)y.toLowerCase()==="content-type"&&(h.contentType=h.headers[y]||"")}),S._evalUrl=function(h,y,C){return S.ajax({url:h,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(P){S.globalEval(P,y,C)}})},S.fn.extend({wrapAll:function(h){var y;return this[0]&&(A(h)&&(h=h.call(this[0])),y=S(h,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&y.insertBefore(this[0]),y.map(function(){for(var C=this;C.firstElementChild;)C=C.firstElementChild;return C}).append(this)),this},wrapInner:function(h){return A(h)?this.each(function(y){S(this).wrapInner(h.call(this,y))}):this.each(function(){var y=S(this),C=y.contents();C.length?C.wrapAll(h):y.append(h)})},wrap:function(h){var y=A(h);return this.each(function(C){S(this).wrapAll(y?h.call(this,C):h)})},unwrap:function(h){return this.parent(h).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(h){return!S.expr.pseudos.visible(h)},S.expr.pseudos.visible=function(h){return!!(h.offsetWidth||h.offsetHeight||h.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var la={0:200,1223:204},ln=S.ajaxSettings.xhr();I.cors=!!ln&&"withCredentials"in ln,I.ajax=ln=!!ln,S.ajaxTransport(function(h){var y,C;if(I.cors||ln&&!h.crossDomain)return{send:function(P,F){var j,V=h.xhr();if(V.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(j in h.xhrFields)V[j]=h.xhrFields[j];h.mimeType&&V.overrideMimeType&&V.overrideMimeType(h.mimeType),!h.crossDomain&&!P["X-Requested-With"]&&(P["X-Requested-With"]="XMLHttpRequest");for(j in P)V.setRequestHeader(j,P[j]);y=function(oe){return function(){y&&(y=C=V.onload=V.onerror=V.onabort=V.ontimeout=V.onreadystatechange=null,oe==="abort"?V.abort():oe==="error"?typeof V.status!="number"?F(0,"error"):F(V.status,V.statusText):F(la[V.status]||V.status,V.statusText,(V.responseType||"text")!=="text"||typeof V.responseText!="string"?{binary:V.response}:{text:V.responseText},V.getAllResponseHeaders()))}},V.onload=y(),C=V.onerror=V.ontimeout=y("error"),V.onabort!==void 0?V.onabort=C:V.onreadystatechange=function(){V.readyState===4&&e.setTimeout(function(){y&&C()})},y=y("abort");try{V.send(h.hasContent&&h.data||null)}catch(oe){if(y)throw oe}},abort:function(){y&&y()}}}),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 y,C;return{send:function(P,F){y=S("<script>").attr(h.scriptAttrs||{}).prop({charset:h.scriptCharset,src:h.url}).on("load error",C=function(j){y.remove(),C=null,j&&F(j.type==="error"?404:200,j.type)}),_.head.appendChild(y[0])},abort:function(){C&&C()}}}});var Mo=[],yi=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var h=Mo.pop()||S.expando+"_"+Zr.guid++;return this[h]=!0,h}}),S.ajaxPrefilter("json jsonp",function(h,y,C){var P,F,j,V=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(V||h.dataTypes[0]==="jsonp")return P=h.jsonpCallback=A(h.jsonpCallback)?h.jsonpCallback():h.jsonpCallback,V?h[V]=h[V].replace(yi,"$1"+P):h.jsonp!==!1&&(h.url+=(lr.test(h.url)?"&":"?")+h.jsonp+"="+P),h.converters["script json"]=function(){return j||S.error(P+" was not called"),j[0]},h.dataTypes[0]="json",F=e[P],e[P]=function(){j=arguments},C.always(function(){F===void 0?S(e).removeProp(P):e[P]=F,h[P]&&(h.jsonpCallback=y.jsonpCallback,Mo.push(P)),j&&A(F)&&F(j[0]),j=F=void 0}),"script"}),I.createHTMLDocument=function(){var h=_.implementation.createHTMLDocument("").body;return h.innerHTML="<form></form><form></form>",h.childNodes.length===2}(),S.parseHTML=function(h,y,C){if(typeof h!="string")return[];typeof y=="boolean"&&(C=y,y=!1);var P,F,j;return y||(I.createHTMLDocument?(y=_.implementation.createHTMLDocument(""),P=y.createElement("base"),P.href=_.location.href,y.head.appendChild(P)):y=_),F=ze.exec(h),j=!C&&[],F?[y.createElement(F[1])]:(F=Tn([h],y,j),j&&j.length&&S(j).remove(),S.merge([],F.childNodes))},S.fn.load=function(h,y,C){var P,F,j,V=this,oe=h.indexOf(" ");return oe>-1&&(P=dt(h.slice(oe)),h=h.slice(0,oe)),A(y)?(C=y,y=void 0):y&&typeof y=="object"&&(F="POST"),V.length>0&&S.ajax({url:h,type:F||"GET",dataType:"html",data:y}).done(function(te){j=arguments,V.html(P?S("<div>").append(S.parseHTML(te)).find(P):te)}).always(C&&function(te,pe){V.each(function(){C.apply(this,j||[te.responseText,pe,te])})}),this},S.expr.pseudos.animated=function(h){return S.grep(S.timers,function(y){return h===y.elem}).length},S.offset={setOffset:function(h,y,C){var P,F,j,V,oe,te,pe,De=S.css(h,"position"),Re=S(h),xe={};De==="static"&&(h.style.position="relative"),oe=Re.offset(),j=S.css(h,"top"),te=S.css(h,"left"),pe=(De==="absolute"||De==="fixed")&&(j+te).indexOf("auto")>-1,pe?(P=Re.position(),V=P.top,F=P.left):(V=parseFloat(j)||0,F=parseFloat(te)||0),A(y)&&(y=y.call(h,C,S.extend({},oe))),y.top!=null&&(xe.top=y.top-oe.top+V),y.left!=null&&(xe.left=y.left-oe.left+F),"using"in y?y.using.call(h,xe):Re.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 y,C,P=this[0];if(P)return P.getClientRects().length?(y=P.getBoundingClientRect(),C=P.ownerDocument.defaultView,{top:y.top+C.pageYOffset,left:y.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var h,y,C,P=this[0],F={top:0,left:0};if(S.css(P,"position")==="fixed")y=P.getBoundingClientRect();else{for(y=this.offset(),C=P.ownerDocument,h=P.offsetParent||C.documentElement;h&&(h===C.body||h===C.documentElement)&&S.css(h,"position")==="static";)h=h.parentNode;h&&h!==P&&h.nodeType===1&&(F=S(h).offset(),F.top+=S.css(h,"borderTopWidth",!0),F.left+=S.css(h,"borderLeftWidth",!0))}return{top:y.top-F.top-S.css(P,"marginTop",!0),left:y.left-F.left-S.css(P,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var h=this.offsetParent;h&&S.css(h,"position")==="static";)h=h.offsetParent;return h||Pr})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(h,y){var C=y==="pageYOffset";S.fn[h]=function(P){return Sn(this,function(F,j,V){var oe;if(L(F)?oe=F:F.nodeType===9&&(oe=F.defaultView),V===void 0)return oe?oe[y]:F[j];oe?oe.scrollTo(C?oe.pageXOffset:V,C?V:oe.pageYOffset):F[j]=V},h,P,arguments.length)}}),S.each(["top","left"],function(h,y){S.cssHooks[y]=ar(I.pixelPosition,function(C,P){if(P)return P=Oi(C,y),Xr.test(P)?S(C).position()[y]+"px":P})}),S.each({Height:"height",Width:"width"},function(h,y){S.each({padding:"inner"+h,content:y,"":"outer"+h},function(C,P){S.fn[P]=function(F,j){var V=arguments.length&&(C||typeof F!="boolean"),oe=C||(F===!0||j===!0?"margin":"border");return Sn(this,function(te,pe,De){var Re;return L(te)?P.indexOf("outer")===0?te["inner"+h]:te.document.documentElement["client"+h]:te.nodeType===9?(Re=te.documentElement,Math.max(te.body["scroll"+h],Re["scroll"+h],te.body["offset"+h],Re["offset"+h],Re["client"+h])):De===void 0?S.css(te,pe,oe):S.style(te,pe,De,oe)},y,V?F:void 0,V)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(h,y){S.fn[y]=function(C){return this.on(y,C)}}),S.fn.extend({bind:function(h,y,C){return this.on(h,null,y,C)},unbind:function(h,y){return this.off(h,null,y)},delegate:function(h,y,C,P){return this.on(y,h,C,P)},undelegate:function(h,y,C){return arguments.length===1?this.off(h,"**"):this.off(y,h||"**",C)},hover:function(h,y){return this.on("mouseenter",h).on("mouseleave",y||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,y){S.fn[y]=function(C,P){return arguments.length>0?this.on(y,null,C,P):this.trigger(y)}});var ua=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(h,y){var C,P,F;if(typeof y=="string"&&(C=h[y],y=h,h=C),!!A(h))return P=o.call(arguments,2),F=function(){return h.apply(y||this,P.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=ce,S.isFunction=A,S.isWindow=L,S.camelCase=sn,S.type=re,S.now=Date.now,S.isNumeric=function(h){var y=S.type(h);return(y==="number"||y==="string")&&!isNaN(h-parseFloat(h))},S.trim=function(h){return h==null?"":(h+"").replace(ua,"$1")};var fo=e.jQuery,cr=e.$;return S.noConflict=function(h){return e.$===S&&(e.$=cr),h&&e.jQuery===S&&(e.jQuery=fo),S},typeof n>"u"&&(e.jQuery=e.$=S),S})})(qD);var XD=qD.exports;const T6=Oc(XD);var C6={exports:{}};/**
|
|
175
|
-
* @version: 3.1
|
|
176
|
-
* @author: Dan Grossman http://www.dangrossman.info/
|
|
177
|
-
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
178
|
-
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
179
|
-
* @website: http://www.daterangepicker.com/
|
|
180
|
-
*/(function(t){(function(e,n){if(t.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=XD,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:uI;t.exports=n(i,r)}else e.daterangepicker=n(e.moment,e.jQuery)})(Ei,function(e,n){var r=function(i,o,a){if(this.parentEl="body",this.element=n(i),this.startDate=e().startOf("day"),this.endDate=e().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=e().subtract(100,"year").format("YYYY"),this.maxYear=e().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:e.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:e.weekdaysMin(),monthNames:e.monthsShort(),firstDay:e.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof o!="object"||o===null)&&(o={}),o=n.extend(this.element.data(),o),typeof o.template!="string"&&!(o.template instanceof n)&&(o.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=o.parentEl&&n(o.parentEl).length?n(o.parentEl):n(this.parentEl),this.container=n(o.template).appendTo(this.parentEl),typeof o.locale=="object"&&(typeof o.locale.direction=="string"&&(this.locale.direction=o.locale.direction),typeof o.locale.format=="string"&&(this.locale.format=o.locale.format),typeof o.locale.separator=="string"&&(this.locale.separator=o.locale.separator),typeof o.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=o.locale.daysOfWeek.slice()),typeof o.locale.monthNames=="object"&&(this.locale.monthNames=o.locale.monthNames.slice()),typeof o.locale.firstDay=="number"&&(this.locale.firstDay=o.locale.firstDay),typeof o.locale.applyLabel=="string"&&(this.locale.applyLabel=o.locale.applyLabel),typeof o.locale.cancelLabel=="string"&&(this.locale.cancelLabel=o.locale.cancelLabel),typeof o.locale.weekLabel=="string"&&(this.locale.weekLabel=o.locale.weekLabel),typeof o.locale.customRangeLabel=="string")){var c=document.createElement("textarea");c.innerHTML=o.locale.customRangeLabel;var d=c.value;this.locale.customRangeLabel=d}if(this.container.addClass(this.locale.direction),typeof o.startDate=="string"&&(this.startDate=e(o.startDate,this.locale.format)),typeof o.endDate=="string"&&(this.endDate=e(o.endDate,this.locale.format)),typeof o.minDate=="string"&&(this.minDate=e(o.minDate,this.locale.format)),typeof o.maxDate=="string"&&(this.maxDate=e(o.maxDate,this.locale.format)),typeof o.startDate=="object"&&(this.startDate=e(o.startDate)),typeof o.endDate=="object"&&(this.endDate=e(o.endDate)),typeof o.minDate=="object"&&(this.minDate=e(o.minDate)),typeof o.maxDate=="object"&&(this.maxDate=e(o.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof o.applyButtonClasses=="string"&&(this.applyButtonClasses=o.applyButtonClasses),typeof o.applyClass=="string"&&(this.applyButtonClasses=o.applyClass),typeof o.cancelButtonClasses=="string"&&(this.cancelButtonClasses=o.cancelButtonClasses),typeof o.cancelClass=="string"&&(this.cancelButtonClasses=o.cancelClass),typeof o.maxSpan=="object"&&(this.maxSpan=o.maxSpan),typeof o.dateLimit=="object"&&(this.maxSpan=o.dateLimit),typeof o.opens=="string"&&(this.opens=o.opens),typeof o.drops=="string"&&(this.drops=o.drops),typeof o.showWeekNumbers=="boolean"&&(this.showWeekNumbers=o.showWeekNumbers),typeof o.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=o.showISOWeekNumbers),typeof o.buttonClasses=="string"&&(this.buttonClasses=o.buttonClasses),typeof o.buttonClasses=="object"&&(this.buttonClasses=o.buttonClasses.join(" ")),typeof o.showDropdowns=="boolean"&&(this.showDropdowns=o.showDropdowns),typeof o.minYear=="number"&&(this.minYear=o.minYear),typeof o.maxYear=="number"&&(this.maxYear=o.maxYear),typeof o.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=o.showCustomRangeLabel),typeof o.singleDatePicker=="boolean"&&(this.singleDatePicker=o.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof o.timePicker=="boolean"&&(this.timePicker=o.timePicker),typeof o.timePickerSeconds=="boolean"&&(this.timePickerSeconds=o.timePickerSeconds),typeof o.timePickerIncrement=="number"&&(this.timePickerIncrement=o.timePickerIncrement),typeof o.timePicker24Hour=="boolean"&&(this.timePicker24Hour=o.timePicker24Hour),typeof o.autoApply=="boolean"&&(this.autoApply=o.autoApply),typeof o.autoUpdateInput=="boolean"&&(this.autoUpdateInput=o.autoUpdateInput),typeof o.linkedCalendars=="boolean"&&(this.linkedCalendars=o.linkedCalendars),typeof o.isInvalidDate=="function"&&(this.isInvalidDate=o.isInvalidDate),typeof o.isCustomDate=="function"&&(this.isCustomDate=o.isCustomDate),typeof o.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=o.alwaysShowCalendars),this.locale.firstDay!=0)for(var p=this.locale.firstDay;p>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),p--;var w,m,T;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var E=n(this.element).val(),I=E.split(this.locale.separator);w=m=null,I.length==2?(w=e(I[0],this.locale.format),m=e(I[1],this.locale.format)):this.singleDatePicker&&E!==""&&(w=e(E,this.locale.format),m=e(E,this.locale.format)),w!==null&&m!==null&&(this.setStartDate(w),this.setEndDate(m))}if(typeof o.ranges=="object"){for(T in o.ranges){typeof o.ranges[T][0]=="string"?w=e(o.ranges[T][0],this.locale.format):w=e(o.ranges[T][0]),typeof o.ranges[T][1]=="string"?m=e(o.ranges[T][1],this.locale.format):m=e(o.ranges[T][1]),this.minDate&&w.isBefore(this.minDate)&&(w=this.minDate.clone());var A=this.maxDate;if(this.maxSpan&&A&&w.clone().add(this.maxSpan).isAfter(A)&&(A=w.clone().add(this.maxSpan)),A&&m.isAfter(A)&&(m=A.clone()),!(this.minDate&&m.isBefore(this.minDate,this.timepicker?"minute":"day")||A&&w.isAfter(A,this.timepicker?"minute":"day"))){var c=document.createElement("textarea");c.innerHTML=T;var d=c.value;this.ranges[d]=[w,m]}}var L="<ul>";for(T in this.ranges)L+='<li data-range-key="'+T+'">'+T+"</li>";this.showCustomRangeLabel&&(L+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),L+="</ul>",this.container.find(".ranges").prepend(L)}typeof a=="function"&&(this.callback=a),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof o.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof o.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return r.prototype={constructor:r,setStartDate:function(i){typeof i=="string"&&(this.startDate=e(i,this.locale.format)),typeof i=="object"&&(this.startDate=e(i)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(i){typeof i=="string"&&(this.endDate=e(i,this.locale.format)),typeof i=="object"&&(this.endDate=e(i)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var i,o,a;if(this.endDate){if(i=parseInt(this.container.find(".left .hourselect").val(),10),o=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".left .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}}else if(i=parseInt(this.container.find(".right .hourselect").val(),10),o=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".right .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(o).second(a),this.rightCalendar.month.hour(i).minute(o).second(a)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var _=i=="left"?this.leftCalendar:this.rightCalendar,o=_.month.month(),a=_.month.year(),c=_.month.hour(),d=_.month.minute(),p=_.month.second(),w=e([a,o]).daysInMonth(),m=e([a,o,1]),T=e([a,o,w]),E=e(m).subtract(1,"month").month(),I=e(m).subtract(1,"month").year(),A=e([I,E]).daysInMonth(),L=m.day(),_=[];_.firstDay=m,_.lastDay=T;for(var U=0;U<6;U++)_[U]=[];var G=A-L+this.locale.firstDay+1;G>A&&(G-=7),L==this.locale.firstDay&&(G=A-6);for(var re=e([I,E,G,12,d,p]),Z,ue,U=0,Z=0,ue=0;U<42;U++,Z++,re=e(re).add(24,"hour"))U>0&&Z%7===0&&(Z=0,ue++),_[ue][Z]=re.clone().hour(c).minute(d).second(p),re.hour(12),this.minDate&&_[ue][Z].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&_[ue][Z].isBefore(this.minDate)&&i=="left"&&(_[ue][Z]=this.minDate.clone()),this.maxDate&&_[ue][Z].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&_[ue][Z].isAfter(this.maxDate)&&i=="right"&&(_[ue][Z]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=_:this.rightCalendar.calendar=_;var S=i=="left"?this.minDate:this.startDate,ae=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ce='<table class="table-condensed">';ce+="<thead>",ce+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ce+="<th></th>"),(!S||S.isBefore(_.firstDay))&&(!this.linkedCalendars||i=="left")?ce+='<th class="prev available"><span></span></th>':ce+="<th></th>";var Ue=this.locale.monthNames[_[1][1].month()]+_[1][1].format(" YYYY");if(this.showDropdowns){for(var _e=_[1][1].month(),Le=_[1][1].year(),Ve=ae&&ae.year()||this.maxYear,We=S&&S.year()||this.minYear,he=Le==We,Ee=Le==Ve,Oe='<select class="monthselect">',Ne=0;Ne<12;Ne++)(!he||S&&Ne>=S.month())&&(!Ee||ae&&Ne<=ae.month())?Oe+="<option value='"+Ne+"'"+(Ne===_e?" selected='selected'":"")+">"+this.locale.monthNames[Ne]+"</option>":Oe+="<option value='"+Ne+"'"+(Ne===_e?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Ne]+"</option>";Oe+="</select>";for(var tt='<select class="yearselect">',me=We;me<=Ve;me++)tt+='<option value="'+me+'"'+(me===Le?' selected="selected"':"")+">"+me+"</option>";tt+="</select>",Ue=Oe+tt}if(ce+='<th colspan="5" class="month">'+Ue+"</th>",(!ae||ae.isAfter(_.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?ce+='<th class="next available"><span></span></th>':ce+="<th></th>",ce+="</tr>",ce+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ce+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Ke,ot){ce+="<th>"+ot+"</th>"}),ce+="</tr>",ce+="</thead>",ce+="<tbody>",this.endDate==null&&this.maxSpan){var ke=this.startDate.clone().add(this.maxSpan).endOf("day");(!ae||ke.isBefore(ae))&&(ae=ke)}for(var ue=0;ue<6;ue++){ce+="<tr>",this.showWeekNumbers?ce+='<td class="week">'+_[ue][0].week()+"</td>":this.showISOWeekNumbers&&(ce+='<td class="week">'+_[ue][0].isoWeek()+"</td>");for(var Z=0;Z<7;Z++){var ze=[];_[ue][Z].isSame(new Date,"day")&&ze.push("today"),_[ue][Z].isoWeekday()>5&&ze.push("weekend"),_[ue][Z].month()!=_[1][1].month()&&ze.push("off","ends"),this.minDate&&_[ue][Z].isBefore(this.minDate,"day")&&ze.push("off","disabled"),ae&&_[ue][Z].isAfter(ae,"day")&&ze.push("off","disabled"),this.isInvalidDate(_[ue][Z])&&ze.push("off","disabled"),_[ue][Z].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&ze.push("active","start-date"),this.endDate!=null&&_[ue][Z].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&ze.push("active","end-date"),this.endDate!=null&&_[ue][Z]>this.startDate&&_[ue][Z]<this.endDate&&ze.push("in-range");var et=this.isCustomDate(_[ue][Z]);et!==!1&&(typeof et=="string"?ze.push(et):Array.prototype.push.apply(ze,et));for(var qe="",Je=!1,U=0;U<ze.length;U++)qe+=ze[U]+" ",ze[U]=="disabled"&&(Je=!0);Je||(qe+="available"),ce+='<td class="'+qe.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ue+"c"+Z+'">'+_[ue][Z].date()+"</td>"}ce+="</tr>"}ce+="</tbody>",ce+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(ce)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,a,c,d=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(d=this.startDate.clone().add(this.maxSpan)),i=="left")a=this.startDate.clone(),c=this.minDate;else if(i=="right"){a=this.endDate.clone(),c=this.startDate;var p=this.container.find(".drp-calendar.right .calendar-time");if(p.html()!=""&&(a.hour(isNaN(a.hour())?p.find(".hourselect option:selected").val():a.hour()),a.minute(isNaN(a.minute())?p.find(".minuteselect option:selected").val():a.minute()),a.second(isNaN(a.second())?p.find(".secondselect option:selected").val():a.second()),!this.timePicker24Hour)){var w=p.find(".ampmselect option:selected").val();w==="PM"&&a.hour()<12&&a.hour(a.hour()+12),w==="AM"&&a.hour()===12&&a.hour(0)}a.isBefore(this.startDate)&&(a=this.startDate.clone()),d&&a.isAfter(d)&&(a=d.clone())}o='<select class="hourselect">';for(var m=this.timePicker24Hour?0:1,T=this.timePicker24Hour?23:12,E=m;E<=T;E++){var I=E;this.timePicker24Hour||(I=a.hour()>=12?E==12?12:E+12:E==12?0:E);var A=a.clone().hour(I),L=!1;c&&A.minute(59).isBefore(c)&&(L=!0),d&&A.minute(0).isAfter(d)&&(L=!0),I==a.hour()&&!L?o+='<option value="'+E+'" selected="selected">'+E+"</option>":L?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+E+"</option>":o+='<option value="'+E+'">'+E+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var E=0;E<60;E+=this.timePickerIncrement){var _=E<10?"0"+E:E,A=a.clone().minute(E),L=!1;c&&A.second(59).isBefore(c)&&(L=!0),d&&A.second(0).isAfter(d)&&(L=!0),a.minute()==E&&!L?o+='<option value="'+E+'" selected="selected">'+_+"</option>":L?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+_+"</option>":o+='<option value="'+E+'">'+_+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var E=0;E<60;E++){var _=E<10?"0"+E:E,A=a.clone().second(E),L=!1;c&&A.isBefore(c)&&(L=!0),d&&A.isAfter(d)&&(L=!0),a.second()==E&&!L?o+='<option value="'+E+'" selected="selected">'+_+"</option>":L?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+_+"</option>":o+='<option value="'+E+'">'+_+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var U="",G="";c&&a.clone().hour(12).minute(0).second(0).isBefore(c)&&(U=' disabled="disabled" class="disabled"'),d&&a.clone().hour(0).minute(0).second(0).isAfter(d)&&(G=' disabled="disabled" class="disabled"'),a.hour()>=12?o+='<option value="AM"'+U+'>AM</option><option value="PM" selected="selected"'+G+">PM</option>":o+='<option value="AM" selected="selected"'+U+'>AM</option><option value="PM"'+G+">PM</option>",o+="</select>"}this.container.find(".drp-calendar."+i+" .calendar-time").html(o)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var i={top:0,left:0},o,a=this.drops,c=n(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},c=this.parentEl[0].clientWidth+this.parentEl.offset().left),a){case"auto":o=this.element.offset().top+this.element.outerHeight()-i.top,o+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(o=this.element.offset().top-this.container.outerHeight()-i.top,a="up");break;case"up":o=this.element.offset().top-this.container.outerHeight()-i.top;break;default:o=this.element.offset().top+this.element.outerHeight()-i.top;break}this.container.css({top:0,left:0,right:"auto"});var d=this.container.outerWidth();if(this.container.toggleClass("drop-up",a=="up"),this.opens=="left"){var p=c-this.element.offset().left-this.element.outerWidth();d+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 w=this.element.offset().left-i.left+this.element.outerWidth()/2-d/2;w<0?this.container.css({top:o,right:"auto",left:9}):w+d>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:w,right:"auto"})}else{var w=this.element.offset().left-i.left;w+d>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:w,right:"auto"})}},show:function(i){this.isShowing||(this._outsideClickProxy=n.proxy(function(o){this.outsideClick(o)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(o){this.move(o)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(i){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(i){this.isShowing?this.hide():this.show()},outsideClick:function(i){var o=n(i.target);i.type=="focusin"||o.closest(this.element).length||o.closest(this.container).length||o.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(i){var o=i.target.getAttribute("data-range-key");if(this.chosenLabel=o,o==this.locale.customRangeLabel)this.showCalendars();else{var a=this.ranges[o];this.startDate=a[0],this.endDate=a[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),d=n(i.target).parents(".drp-calendar"),p=d.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c],w=this.leftCalendar,m=this.rightCalendar,T=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(E,I){if(!n(I).hasClass("week")){var A=n(I).attr("data-title"),L=A.substr(1,1),_=A.substr(3,1),U=n(I).parents(".drp-calendar"),G=U.hasClass("left")?w.calendar[L][_]:m.calendar[L][_];G.isAfter(T)&&G.isBefore(p)||G.isSame(p,"day")?n(I).addClass("in-range"):n(I).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),d=n(i.target).parents(".drp-calendar"),p=d.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c];if(this.endDate||p.isBefore(this.startDate,"day")){if(this.timePicker){var w=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var m=this.container.find(".left .ampmselect").val();m==="PM"&&w<12&&(w+=12),m==="AM"&&w===12&&(w=0)}var T=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;p=p.clone().hour(w).minute(T).second(E)}this.endDate=null,this.setStartDate(p.clone())}else if(!this.endDate&&p.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var w=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var m=this.container.find(".right .ampmselect").val();m==="PM"&&w<12&&(w+=12),m==="AM"&&w===12&&(w=0)}var T=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;p=p.clone().hour(w).minute(T).second(E)}this.setEndDate(p.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),i.stopPropagation()}},calculateChosenLabel:function(){var i=!0,o=0;for(var a in this.ranges){if(this.timePicker){var c=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(c)==this.ranges[a][0].format(c)&&this.endDate.format(c)==this.ranges[a][1].format(c)){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[a][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[a][1].format("YYYY-MM-DD")){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}o++}i&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(i){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(i){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(i){var o=n(i.target).closest(".drp-calendar").hasClass("left"),a=o?"left":"right",c=this.container.find(".drp-calendar."+a),d=parseInt(c.find(".monthselect").val(),10),p=c.find(".yearselect").val();o||(p<this.startDate.year()||p==this.startDate.year()&&d<this.startDate.month())&&(d=this.startDate.month(),p=this.startDate.year()),this.minDate&&(p<this.minDate.year()||p==this.minDate.year()&&d<this.minDate.month())&&(d=this.minDate.month(),p=this.minDate.year()),this.maxDate&&(p>this.maxDate.year()||p==this.maxDate.year()&&d>this.maxDate.month())&&(d=this.maxDate.month(),p=this.maxDate.year()),o?(this.leftCalendar.month.month(d).year(p),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(d).year(p),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(i){var o=n(i.target).closest(".drp-calendar"),a=o.hasClass("left"),c=parseInt(o.find(".hourselect").val(),10),d=parseInt(o.find(".minuteselect").val(),10);isNaN(d)&&(d=parseInt(o.find(".minuteselect option:last").val(),10));var p=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var w=o.find(".ampmselect").val();w==="PM"&&c<12&&(c+=12),w==="AM"&&c===12&&(c=0)}if(a){var m=this.startDate.clone();m.hour(c),m.minute(d),m.second(p),this.setStartDate(m),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==m.format("YYYY-MM-DD")&&this.endDate.isBefore(m)&&this.setEndDate(m.clone())}else if(this.endDate){var T=this.endDate.clone();T.hour(c),T.minute(d),T.second(p),this.setEndDate(T)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var i=this.element.val().split(this.locale.separator),o=null,a=null;i.length===2&&(o=e(i[0],this.locale.format),a=e(i[1],this.locale.format)),(this.singleDatePicker||o===null||a===null)&&(o=e(this.element.val(),this.locale.format),a=o),!(!o.isValid()||!a.isValid())&&(this.setStartDate(o),this.setEndDate(a),this.updateView())}},keydown:function(i){(i.keyCode===9||i.keyCode===13)&&this.hide(),i.keyCode===27&&(i.preventDefault(),i.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var i=this.startDate.format(this.locale.format);this.singleDatePicker||(i+=this.locale.separator+this.endDate.format(this.locale.format)),i!==this.element.val()&&this.element.val(i).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(i,o){var a=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var c=n(this);c.data("daterangepicker")&&c.data("daterangepicker").remove(),c.data("daterangepicker",new r(c,a,o))}),this},r})})(C6);var Ev=function(t,e){return Ev=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])},Ev(t,e)};function E6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ev(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var k6=function(t){E6(e,t);function e(n){var r=t.call(this,n)||this;return r.ref=null,r.$picker=null,r}return e.prototype.componentDidMount=function(){var n=this;this.$picker=T6(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(r){var i,o=r.charAt(0).toLowerCase()+r.slice(1);(i=n.$picker)===null||i===void 0||i.on(o+".daterangepicker",n.makeEventHandler("on"+r))})},e.prototype.componentWillUnmount=function(){var n,r;(r=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||r===void 0||r.remove()},e.prototype.handleCallback=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,r)},e.prototype.makeEventHandler=function(n){var r=this,i=this.props.onEvent;return function(o,a){typeof i=="function"&&i(o,a),typeof r.props[n]=="function"&&r.props[n](o,a)}},e.prototype.setStartDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setStartDate(n)},e.prototype.setEndDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setEndDate(n)},e.prototype.render=function(){var n=this,r=kn.Children.only(this.props.children);return kn.cloneElement(r,{ref:function(i){return n.ref=i}})},e}(kn.Component);sa.styled(t=>Me.jsx(sa.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:ki.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
|
|
181
|
-
* @license
|
|
182
|
-
* Copyright 2017 Google LLC
|
|
183
|
-
*
|
|
184
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
185
|
-
* you may not use this file except in compliance with the License.
|
|
186
|
-
* You may obtain a copy of the License at
|
|
187
|
-
*
|
|
188
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
189
|
-
*
|
|
190
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
191
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
192
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
193
|
-
* See the License for the specific language governing permissions and
|
|
194
|
-
* limitations under the License.
|
|
195
|
-
*//**
|
|
196
|
-
* @license
|
|
197
|
-
* Copyright 2017 Google LLC
|
|
198
|
-
*
|
|
199
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
200
|
-
* you may not use this file except in compliance with the License.
|
|
201
|
-
* You may obtain a copy of the License at
|
|
202
|
-
*
|
|
203
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
204
|
-
*
|
|
205
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
206
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
207
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
208
|
-
* See the License for the specific language governing permissions and
|
|
209
|
-
* limitations under the License.
|
|
210
|
-
*/const KD=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},D6=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=t[n++];e[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=t[n++],a=t[n++],c=t[n++],d=((i&7)<<18|(o&63)<<12|(a&63)<<6|c&63)-65536;e[r++]=String.fromCharCode(55296+(d>>10)),e[r++]=String.fromCharCode(56320+(d&1023))}else{const o=t[n++],a=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63)}}return e.join("")},ZD={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const o=t[i],a=i+1<t.length,c=a?t[i+1]:0,d=i+2<t.length,p=d?t[i+2]:0,w=o>>2,m=(o&3)<<4|c>>4;let T=(c&15)<<2|p>>6,E=p&63;d||(E=64,a||(T=64)),r.push(n[w],n[m],n[T],n[E])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(KD(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):D6(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const o=n[t.charAt(i++)],c=i<t.length?n[t.charAt(i)]:0;++i;const p=i<t.length?n[t.charAt(i)]:64;++i;const m=i<t.length?n[t.charAt(i)]:64;if(++i,o==null||c==null||p==null||m==null)throw new P6;const T=o<<2|c>>4;if(r.push(T),p!==64){const E=c<<4&240|p>>2;if(r.push(E),m!==64){const I=p<<6&192|m;r.push(I)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class P6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const O6=function(t){const e=KD(t);return ZD.encodeByteArray(e,!0)},JD=function(t){return O6(t).replace(/\./g,"")},_6=function(t){try{return ZD.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
|
|
211
|
-
* @license
|
|
212
|
-
* Copyright 2022 Google LLC
|
|
213
|
-
*
|
|
214
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
215
|
-
* you may not use this file except in compliance with the License.
|
|
216
|
-
* You may obtain a copy of the License at
|
|
217
|
-
*
|
|
218
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
219
|
-
*
|
|
220
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
221
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
222
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
223
|
-
* See the License for the specific language governing permissions and
|
|
224
|
-
* limitations under the License.
|
|
225
|
-
*/function R6(){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 A6=()=>R6().__FIREBASE_DEFAULTS__,I6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},M6=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&_6(t[1]);return e&&JSON.parse(e)},L6=()=>{try{return A6()||I6()||M6()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},QD=()=>{var t;return(t=L6())===null||t===void 0?void 0:t.config};/**
|
|
241
|
-
* @license
|
|
242
|
-
* Copyright 2017 Google LLC
|
|
243
|
-
*
|
|
244
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
245
|
-
* you may not use this file except in compliance with the License.
|
|
246
|
-
* You may obtain a copy of the License at
|
|
247
|
-
*
|
|
248
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
249
|
-
*
|
|
250
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
251
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
252
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
253
|
-
* See the License for the specific language governing permissions and
|
|
254
|
-
* limitations under the License.
|
|
255
|
-
*/class F6{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}function eP(){try{return typeof indexedDB=="object"}catch{return!1}}function tP(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;e(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){e(n)}})}function N6(){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 j6="FirebaseError";class Nf extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=j6,Object.setPrototypeOf(this,Nf.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Gp.prototype.create)}}class Gp{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,o=this.errors[e],a=o?B6(o,r):"Error",c=`${this.serviceName}: ${a} (${i}).`;return new Nf(i,c,r)}}function B6(t,e){return t.replace($6,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const $6=/\{\$([^}]+)}/g;function kv(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const o=t[i],a=e[i];if(_1(o)&&_1(a)){if(!kv(o,a))return!1}else if(o!==a)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function _1(t){return t!==null&&typeof t=="object"}/**
|
|
271
|
-
* @license
|
|
272
|
-
* Copyright 2021 Google LLC
|
|
273
|
-
*
|
|
274
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
275
|
-
* you may not use this file except in compliance with the License.
|
|
276
|
-
* You may obtain a copy of the License at
|
|
277
|
-
*
|
|
278
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
279
|
-
*
|
|
280
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
281
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
282
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
283
|
-
* See the License for the specific language governing permissions and
|
|
284
|
-
* limitations under the License.
|
|
285
|
-
*/function tb(t){return t&&t._delegate?t._delegate:t}class Tu{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
|
|
286
|
-
* @license
|
|
287
|
-
* Copyright 2019 Google LLC
|
|
288
|
-
*
|
|
289
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
290
|
-
* you may not use this file except in compliance with the License.
|
|
291
|
-
* You may obtain a copy of the License at
|
|
292
|
-
*
|
|
293
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
294
|
-
*
|
|
295
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
296
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
297
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
298
|
-
* See the License for the specific language governing permissions and
|
|
299
|
-
* limitations under the License.
|
|
300
|
-
*/const gc="[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 V6{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new F6;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(U6(e))try{this.getOrInitializeService({instanceIdentifier:gc})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(e=gc){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=gc){return this.instances.has(e)}getOptions(e=gc){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,a]of this.instancesDeferred.entries()){const c=this.normalizeInstanceIdentifier(o);r===c&&a.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(e),this.onInitCallbacks.set(i,o);const a=this.instances.get(i);return a&&e(a,i),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:H6(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=gc){return this.component?this.component.multipleInstances?e:gc:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function H6(t){return t===gc?void 0:t}function U6(t){return t.instantiationMode==="EAGER"}/**
|
|
316
|
-
* @license
|
|
317
|
-
* Copyright 2019 Google LLC
|
|
318
|
-
*
|
|
319
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
320
|
-
* you may not use this file except in compliance with the License.
|
|
321
|
-
* You may obtain a copy of the License at
|
|
322
|
-
*
|
|
323
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
324
|
-
*
|
|
325
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
326
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
327
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
328
|
-
* See the License for the specific language governing permissions and
|
|
329
|
-
* limitations under the License.
|
|
330
|
-
*/class W6{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new V6(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
331
|
-
* @license
|
|
332
|
-
* Copyright 2017 Google LLC
|
|
333
|
-
*
|
|
334
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
335
|
-
* you may not use this file except in compliance with the License.
|
|
336
|
-
* You may obtain a copy of the License at
|
|
337
|
-
*
|
|
338
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
339
|
-
*
|
|
340
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
341
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
342
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
343
|
-
* See the License for the specific language governing permissions and
|
|
344
|
-
* limitations under the License.
|
|
345
|
-
*/var Mn;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Mn||(Mn={}));const z6={debug:Mn.DEBUG,verbose:Mn.VERBOSE,info:Mn.INFO,warn:Mn.WARN,error:Mn.ERROR,silent:Mn.SILENT},Y6=Mn.INFO,G6={[Mn.DEBUG]:"log",[Mn.VERBOSE]:"log",[Mn.INFO]:"info",[Mn.WARN]:"warn",[Mn.ERROR]:"error"},q6=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=G6[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class X6{constructor(e){this.name=e,this._logLevel=Y6,this._logHandler=q6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Mn))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?z6[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Mn.DEBUG,...e),this._logHandler(this,Mn.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Mn.VERBOSE,...e),this._logHandler(this,Mn.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Mn.INFO,...e),this._logHandler(this,Mn.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Mn.WARN,...e),this._logHandler(this,Mn.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Mn.ERROR,...e),this._logHandler(this,Mn.ERROR,...e)}}const K6=(t,e)=>e.some(n=>t instanceof n);let R1,A1;function Z6(){return R1||(R1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function J6(){return A1||(A1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const nP=new WeakMap,Dv=new WeakMap,rP=new WeakMap,mm=new WeakMap,nb=new WeakMap;function Q6(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(El(t.result)),i()},a=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&nP.set(n,t)}).catch(()=>{}),nb.set(e,t),e}function e8(t){if(Dv.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),i()},a=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});Dv.set(t,e)}let Pv={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Dv.get(t);if(e==="objectStoreNames")return t.objectStoreNames||rP.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return El(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function t8(t){Pv=t(Pv)}function n8(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(vm(this),e,...n);return rP.set(r,e.sort?e.sort():[e]),El(r)}:J6().includes(t)?function(...e){return t.apply(vm(this),e),El(nP.get(this))}:function(...e){return El(t.apply(vm(this),e))}}function r8(t){return typeof t=="function"?n8(t):(t instanceof IDBTransaction&&e8(t),K6(t,Z6())?new Proxy(t,Pv):t)}function El(t){if(t instanceof IDBRequest)return Q6(t);if(mm.has(t))return mm.get(t);const e=r8(t);return e!==t&&(mm.set(t,e),nb.set(e,t)),e}const vm=t=>nb.get(t);function qp(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(t,e),c=El(a);return r&&a.addEventListener("upgradeneeded",d=>{r(El(a.result),d.oldVersion,d.newVersion,El(a.transaction),d)}),n&&a.addEventListener("blocked",d=>n(d.oldVersion,d.newVersion,d)),c.then(d=>{o&&d.addEventListener("close",()=>o()),i&&d.addEventListener("versionchange",p=>i(p.oldVersion,p.newVersion,p))}).catch(()=>{}),c}function ym(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",r=>e(r.oldVersion,r)),El(n).then(()=>{})}const i8=["get","getKey","getAll","getAllKeys","count"],o8=["put","add","delete","clear"],bm=new Map;function I1(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(bm.get(e))return bm.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=o8.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||i8.includes(n)))return;const o=async function(a,...c){const d=this.transaction(a,i?"readwrite":"readonly");let p=d.store;return r&&(p=p.index(c.shift())),(await Promise.all([p[n](...c),i&&d.done]))[0]};return bm.set(e,o),o}t8(t=>({...t,get:(e,n,r)=>I1(e,n)||t.get(e,n,r),has:(e,n)=>!!I1(e,n)||t.has(e,n)}));/**
|
|
346
|
-
* @license
|
|
347
|
-
* Copyright 2019 Google LLC
|
|
348
|
-
*
|
|
349
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
350
|
-
* you may not use this file except in compliance with the License.
|
|
351
|
-
* You may obtain a copy of the License at
|
|
352
|
-
*
|
|
353
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
354
|
-
*
|
|
355
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
356
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
357
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
358
|
-
* See the License for the specific language governing permissions and
|
|
359
|
-
* limitations under the License.
|
|
360
|
-
*/class s8{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(a8(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function a8(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Ov="@firebase/app",M1="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 Pl=new X6("@firebase/app"),l8="@firebase/app-compat",u8="@firebase/analytics-compat",c8="@firebase/analytics",f8="@firebase/app-check-compat",d8="@firebase/app-check",h8="@firebase/auth",p8="@firebase/auth-compat",g8="@firebase/database",m8="@firebase/data-connect",v8="@firebase/database-compat",y8="@firebase/functions",b8="@firebase/functions-compat",w8="@firebase/installations",x8="@firebase/installations-compat",S8="@firebase/messaging",T8="@firebase/messaging-compat",C8="@firebase/performance",E8="@firebase/performance-compat",k8="@firebase/remote-config",D8="@firebase/remote-config-compat",P8="@firebase/storage",O8="@firebase/storage-compat",_8="@firebase/firestore",R8="@firebase/vertexai-preview",A8="@firebase/firestore-compat",I8="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 _v="[DEFAULT]",M8={[Ov]:"fire-core",[l8]:"fire-core-compat",[c8]:"fire-analytics",[u8]:"fire-analytics-compat",[d8]:"fire-app-check",[f8]:"fire-app-check-compat",[h8]:"fire-auth",[p8]:"fire-auth-compat",[g8]:"fire-rtdb",[m8]:"fire-data-connect",[v8]:"fire-rtdb-compat",[y8]:"fire-fn",[b8]:"fire-fn-compat",[w8]:"fire-iid",[x8]:"fire-iid-compat",[S8]:"fire-fcm",[T8]:"fire-fcm-compat",[C8]:"fire-perf",[E8]:"fire-perf-compat",[k8]:"fire-rc",[D8]:"fire-rc-compat",[P8]:"fire-gcs",[O8]:"fire-gcs-compat",[_8]:"fire-fst",[A8]:"fire-fst-compat",[R8]:"fire-vertex","fire-js":"fire-js",[I8]:"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 bp=new Map,L8=new Map,Rv=new Map;function L1(t,e){try{t.container.addComponent(e)}catch(n){Pl.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function kc(t){const e=t.name;if(Rv.has(e))return Pl.debug(`There were multiple attempts to register component ${e}.`),!1;Rv.set(e,t);for(const n of bp.values())L1(n,t);for(const n of L8.values())L1(n,t);return!0}function rb(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
|
|
406
|
-
* @license
|
|
407
|
-
* Copyright 2019 Google LLC
|
|
408
|
-
*
|
|
409
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
410
|
-
* you may not use this file except in compliance with the License.
|
|
411
|
-
* You may obtain a copy of the License at
|
|
412
|
-
*
|
|
413
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
414
|
-
*
|
|
415
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
416
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
417
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
418
|
-
* See the License for the specific language governing permissions and
|
|
419
|
-
* limitations under the License.
|
|
420
|
-
*/const F8={"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."},hu=new Gp("app","Firebase",F8);/**
|
|
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 N8{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Tu("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw hu.create("app-deleted",{appName:this._name})}}function iP(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:_v,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw hu.create("bad-app-name",{appName:String(i)});if(n||(n=QD()),!n)throw hu.create("no-options");const o=bp.get(i);if(o){if(kv(n,o.options)&&kv(r,o.config))return o;throw hu.create("duplicate-app",{appName:i})}const a=new W6(i);for(const d of Rv.values())a.addComponent(d);const c=new N8(n,r,a);return bp.set(i,c),c}function j8(t=_v){const e=bp.get(t);if(!e&&t===_v&&QD())return iP();if(!e)throw hu.create("no-app",{appName:t});return e}function pu(t,e,n){var r;let i=(r=M8[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){const c=[`Unable to register library "${i}" with version "${e}":`];o&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&c.push("and"),a&&c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Pl.warn(c.join(" "));return}kc(new Tu(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
|
|
436
|
-
* @license
|
|
437
|
-
* Copyright 2021 Google LLC
|
|
438
|
-
*
|
|
439
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
440
|
-
* you may not use this file except in compliance with the License.
|
|
441
|
-
* You may obtain a copy of the License at
|
|
442
|
-
*
|
|
443
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
444
|
-
*
|
|
445
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
446
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
447
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
448
|
-
* See the License for the specific language governing permissions and
|
|
449
|
-
* limitations under the License.
|
|
450
|
-
*/const B8="firebase-heartbeat-database",$8=1,$d="firebase-heartbeat-store";let wm=null;function oP(){return wm||(wm=qp(B8,$8,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore($d)}catch(n){console.warn(n)}}}}).catch(t=>{throw hu.create("idb-open",{originalErrorMessage:t.message})})),wm}async function V8(t){try{const n=(await oP()).transaction($d),r=await n.objectStore($d).get(sP(t));return await n.done,r}catch(e){if(e instanceof Nf)Pl.warn(e.message);else{const n=hu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Pl.warn(n.message)}}}async function F1(t,e){try{const r=(await oP()).transaction($d,"readwrite");await r.objectStore($d).put(e,sP(t)),await r.done}catch(n){if(n instanceof Nf)Pl.warn(n.message);else{const r=hu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Pl.warn(r.message)}}}function sP(t){return`${t.name}!${t.options.appId}`}/**
|
|
451
|
-
* @license
|
|
452
|
-
* Copyright 2021 Google LLC
|
|
453
|
-
*
|
|
454
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
455
|
-
* you may not use this file except in compliance with the License.
|
|
456
|
-
* You may obtain a copy of the License at
|
|
457
|
-
*
|
|
458
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
459
|
-
*
|
|
460
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
461
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
462
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
463
|
-
* See the License for the specific language governing permissions and
|
|
464
|
-
* limitations under the License.
|
|
465
|
-
*/const H8=1024,U8=30*24*60*60*1e3;class W8{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new Y8(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=N1();return((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(a=>a.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(a=>{const c=new Date(a.date).valueOf();return Date.now()-c<=U8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Pl.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=N1(),{heartbeatsToSend:r,unsentEntries:i}=z8(this._heartbeatsCache.heartbeats),o=JD(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 Pl.warn(n),""}}}function N1(){return new Date().toISOString().substring(0,10)}function z8(t,e=H8){const n=[];let r=t.slice();for(const i of t){const o=n.find(a=>a.agent===i.agent);if(o){if(o.dates.push(i.date),j1(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),j1(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class Y8{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return eP()?tP().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await V8(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return F1(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return F1(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function j1(t){return JD(JSON.stringify({version:2,heartbeats:t})).length}/**
|
|
466
|
-
* @license
|
|
467
|
-
* Copyright 2019 Google LLC
|
|
468
|
-
*
|
|
469
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
470
|
-
* you may not use this file except in compliance with the License.
|
|
471
|
-
* You may obtain a copy of the License at
|
|
472
|
-
*
|
|
473
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
474
|
-
*
|
|
475
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
476
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
477
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
478
|
-
* See the License for the specific language governing permissions and
|
|
479
|
-
* limitations under the License.
|
|
480
|
-
*/function G8(t){kc(new Tu("platform-logger",e=>new s8(e),"PRIVATE")),kc(new Tu("heartbeat",e=>new W8(e),"PRIVATE")),pu(Ov,M1,t),pu(Ov,M1,"esm2017"),pu("fire-js","")}G8("");var q8="firebase",X8="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
|
-
*/pu(q8,X8,"app");const aP="@firebase/installations",ib="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 lP=1e4,uP=`w:${ib}`,cP="FIS_v2",K8="https://firebaseinstallations.googleapis.com/v1",Z8=60*60*1e3,J8="installations",Q8="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 e9={"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."},Dc=new Gp(J8,Q8,e9);function fP(t){return t instanceof Nf&&t.code.includes("request-failed")}/**
|
|
526
|
-
* @license
|
|
527
|
-
* Copyright 2019 Google LLC
|
|
528
|
-
*
|
|
529
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
530
|
-
* you may not use this file except in compliance with the License.
|
|
531
|
-
* You may obtain a copy of the License at
|
|
532
|
-
*
|
|
533
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
534
|
-
*
|
|
535
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
536
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
537
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
538
|
-
* See the License for the specific language governing permissions and
|
|
539
|
-
* limitations under the License.
|
|
540
|
-
*/function dP({projectId:t}){return`${K8}/projects/${t}/installations`}function hP(t){return{token:t.token,requestStatus:2,expiresIn:n9(t.expiresIn),creationTime:Date.now()}}async function pP(t,e){const r=(await e.json()).error;return Dc.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function gP({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function t9(t,{refreshToken:e}){const n=gP(t);return n.append("Authorization",r9(e)),n}async function mP(t){const e=await t();return e.status>=500&&e.status<600?t():e}function n9(t){return Number(t.replace("s","000"))}function r9(t){return`${cP} ${t}`}/**
|
|
541
|
-
* @license
|
|
542
|
-
* Copyright 2019 Google LLC
|
|
543
|
-
*
|
|
544
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
545
|
-
* you may not use this file except in compliance with the License.
|
|
546
|
-
* You may obtain a copy of the License at
|
|
547
|
-
*
|
|
548
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
549
|
-
*
|
|
550
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
551
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
552
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
553
|
-
* See the License for the specific language governing permissions and
|
|
554
|
-
* limitations under the License.
|
|
555
|
-
*/async function i9({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const r=dP(t),i=gP(t),o=e.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const a={fid:n,authVersion:cP,appId:t.appId,sdkVersion:uP},c={method:"POST",headers:i,body:JSON.stringify(a)},d=await mP(()=>fetch(r,c));if(d.ok){const p=await d.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:hP(p.authToken)}}else throw await pP("Create Installation",d)}/**
|
|
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 vP(t){return new Promise(e=>{setTimeout(e,t)})}/**
|
|
571
|
-
* @license
|
|
572
|
-
* Copyright 2019 Google LLC
|
|
573
|
-
*
|
|
574
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
575
|
-
* you may not use this file except in compliance with the License.
|
|
576
|
-
* You may obtain a copy of the License at
|
|
577
|
-
*
|
|
578
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
579
|
-
*
|
|
580
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
581
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
582
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
583
|
-
* See the License for the specific language governing permissions and
|
|
584
|
-
* limitations under the License.
|
|
585
|
-
*/function o9(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
586
|
-
* @license
|
|
587
|
-
* Copyright 2019 Google LLC
|
|
588
|
-
*
|
|
589
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
590
|
-
* you may not use this file except in compliance with the License.
|
|
591
|
-
* You may obtain a copy of the License at
|
|
592
|
-
*
|
|
593
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
594
|
-
*
|
|
595
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
596
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
597
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
598
|
-
* See the License for the specific language governing permissions and
|
|
599
|
-
* limitations under the License.
|
|
600
|
-
*/const s9=/^[cdef][\w-]{21}$/,Av="";function a9(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=l9(t);return s9.test(n)?n:Av}catch{return Av}}function l9(t){return o9(t).substr(0,22)}/**
|
|
601
|
-
* @license
|
|
602
|
-
* Copyright 2019 Google LLC
|
|
603
|
-
*
|
|
604
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
605
|
-
* you may not use this file except in compliance with the License.
|
|
606
|
-
* You may obtain a copy of the License at
|
|
607
|
-
*
|
|
608
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
609
|
-
*
|
|
610
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
611
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
612
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
613
|
-
* See the License for the specific language governing permissions and
|
|
614
|
-
* limitations under the License.
|
|
615
|
-
*/function Xp(t){return`${t.appName}!${t.appId}`}/**
|
|
616
|
-
* @license
|
|
617
|
-
* Copyright 2019 Google LLC
|
|
618
|
-
*
|
|
619
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
620
|
-
* you may not use this file except in compliance with the License.
|
|
621
|
-
* You may obtain a copy of the License at
|
|
622
|
-
*
|
|
623
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
624
|
-
*
|
|
625
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
626
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
627
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
628
|
-
* See the License for the specific language governing permissions and
|
|
629
|
-
* limitations under the License.
|
|
630
|
-
*/const yP=new Map;function bP(t,e){const n=Xp(t);wP(n,e),u9(n,e)}function wP(t,e){const n=yP.get(t);if(n)for(const r of n)r(e)}function u9(t,e){const n=c9();n&&n.postMessage({key:t,fid:e}),f9()}let yc=null;function c9(){return!yc&&"BroadcastChannel"in self&&(yc=new BroadcastChannel("[Firebase] FID Change"),yc.onmessage=t=>{wP(t.data.key,t.data.fid)}),yc}function f9(){yP.size===0&&yc&&(yc.close(),yc=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 d9="firebase-installations-database",h9=1,Pc="firebase-installations-store";let xm=null;function ob(){return xm||(xm=qp(d9,h9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Pc)}}})),xm}async function wp(t,e){const n=Xp(t),i=(await ob()).transaction(Pc,"readwrite"),o=i.objectStore(Pc),a=await o.get(n);return await o.put(e,n),await i.done,(!a||a.fid!==e.fid)&&bP(t,e.fid),e}async function xP(t){const e=Xp(t),r=(await ob()).transaction(Pc,"readwrite");await r.objectStore(Pc).delete(e),await r.done}async function Kp(t,e){const n=Xp(t),i=(await ob()).transaction(Pc,"readwrite"),o=i.objectStore(Pc),a=await o.get(n),c=e(a);return c===void 0?await o.delete(n):await o.put(c,n),await i.done,c&&(!a||a.fid!==c.fid)&&bP(t,c.fid),c}/**
|
|
646
|
-
* @license
|
|
647
|
-
* Copyright 2019 Google LLC
|
|
648
|
-
*
|
|
649
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
650
|
-
* you may not use this file except in compliance with the License.
|
|
651
|
-
* You may obtain a copy of the License at
|
|
652
|
-
*
|
|
653
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
654
|
-
*
|
|
655
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
656
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
657
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
658
|
-
* See the License for the specific language governing permissions and
|
|
659
|
-
* limitations under the License.
|
|
660
|
-
*/async function sb(t){let e;const n=await Kp(t.appConfig,r=>{const i=p9(r),o=g9(t,i);return e=o.registrationPromise,o.installationEntry});return n.fid===Av?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function p9(t){const e=t||{fid:a9(),registrationStatus:0};return SP(e)}function g9(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Dc.create("app-offline"));return{installationEntry:e,registrationPromise:i}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=m9(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:v9(t)}:{installationEntry:e}}async function m9(t,e){try{const n=await i9(t,e);return wp(t.appConfig,n)}catch(n){throw fP(n)&&n.customData.serverCode===409?await xP(t.appConfig):await wp(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function v9(t){let e=await B1(t.appConfig);for(;e.registrationStatus===1;)await vP(100),e=await B1(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await sb(t);return r||n}return e}function B1(t){return Kp(t,e=>{if(!e)throw Dc.create("installation-not-found");return SP(e)})}function SP(t){return y9(t)?{fid:t.fid,registrationStatus:0}:t}function y9(t){return t.registrationStatus===1&&t.registrationTime+lP<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 b9({appConfig:t,heartbeatServiceProvider:e},n){const r=w9(t,n),i=t9(t,n),o=e.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const a={installation:{sdkVersion:uP,appId:t.appId}},c={method:"POST",headers:i,body:JSON.stringify(a)},d=await mP(()=>fetch(r,c));if(d.ok){const p=await d.json();return hP(p)}else throw await pP("Generate Auth Token",d)}function w9(t,{fid:e}){return`${dP(t)}/${e}/authTokens:generate`}/**
|
|
676
|
-
* @license
|
|
677
|
-
* Copyright 2019 Google LLC
|
|
678
|
-
*
|
|
679
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
680
|
-
* you may not use this file except in compliance with the License.
|
|
681
|
-
* You may obtain a copy of the License at
|
|
682
|
-
*
|
|
683
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
684
|
-
*
|
|
685
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
686
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
687
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
688
|
-
* See the License for the specific language governing permissions and
|
|
689
|
-
* limitations under the License.
|
|
690
|
-
*/async function ab(t,e=!1){let n;const r=await Kp(t.appConfig,o=>{if(!TP(o))throw Dc.create("not-registered");const a=o.authToken;if(!e&&T9(a))return o;if(a.requestStatus===1)return n=x9(t,e),o;{if(!navigator.onLine)throw Dc.create("app-offline");const c=E9(o);return n=S9(t,c),c}});return n?await n:r.authToken}async function x9(t,e){let n=await $1(t.appConfig);for(;n.authToken.requestStatus===1;)await vP(100),n=await $1(t.appConfig);const r=n.authToken;return r.requestStatus===0?ab(t,e):r}function $1(t){return Kp(t,e=>{if(!TP(e))throw Dc.create("not-registered");const n=e.authToken;return k9(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function S9(t,e){try{const n=await b9(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await wp(t.appConfig,r),n}catch(n){if(fP(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await xP(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await wp(t.appConfig,r)}throw n}}function TP(t){return t!==void 0&&t.registrationStatus===2}function T9(t){return t.requestStatus===2&&!C9(t)}function C9(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+Z8}function E9(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function k9(t){return t.requestStatus===1&&t.requestTime+lP<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 D9(t){const e=t,{installationEntry:n,registrationPromise:r}=await sb(e);return r?r.catch(console.error):ab(e).catch(console.error),n.fid}/**
|
|
706
|
-
* @license
|
|
707
|
-
* Copyright 2019 Google LLC
|
|
708
|
-
*
|
|
709
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
710
|
-
* you may not use this file except in compliance with the License.
|
|
711
|
-
* You may obtain a copy of the License at
|
|
712
|
-
*
|
|
713
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
714
|
-
*
|
|
715
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
716
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
717
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
718
|
-
* See the License for the specific language governing permissions and
|
|
719
|
-
* limitations under the License.
|
|
720
|
-
*/async function P9(t,e=!1){const n=t;return await O9(n),(await ab(n,e)).token}async function O9(t){const{registrationPromise:e}=await sb(t);e&&await e}/**
|
|
721
|
-
* @license
|
|
722
|
-
* Copyright 2019 Google LLC
|
|
723
|
-
*
|
|
724
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
725
|
-
* you may not use this file except in compliance with the License.
|
|
726
|
-
* You may obtain a copy of the License at
|
|
727
|
-
*
|
|
728
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
729
|
-
*
|
|
730
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
731
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
732
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
733
|
-
* See the License for the specific language governing permissions and
|
|
734
|
-
* limitations under the License.
|
|
735
|
-
*/function _9(t){if(!t||!t.options)throw Sm("App Configuration");if(!t.name)throw Sm("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw Sm(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function Sm(t){return Dc.create("missing-app-config-values",{valueName:t})}/**
|
|
736
|
-
* @license
|
|
737
|
-
* Copyright 2020 Google LLC
|
|
738
|
-
*
|
|
739
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
740
|
-
* you may not use this file except in compliance with the License.
|
|
741
|
-
* You may obtain a copy of the License at
|
|
742
|
-
*
|
|
743
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
744
|
-
*
|
|
745
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
746
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
747
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
748
|
-
* See the License for the specific language governing permissions and
|
|
749
|
-
* limitations under the License.
|
|
750
|
-
*/const CP="installations",R9="installations-internal",A9=t=>{const e=t.getProvider("app").getImmediate(),n=_9(e),r=rb(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},I9=t=>{const e=t.getProvider("app").getImmediate(),n=rb(e,CP).getImmediate();return{getId:()=>D9(n),getToken:i=>P9(n,i)}};function M9(){kc(new Tu(CP,A9,"PUBLIC")),kc(new Tu(R9,I9,"PRIVATE"))}M9();pu(aP,ib);pu(aP,ib,"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 L9="/firebase-messaging-sw.js",F9="/firebase-cloud-messaging-push-scope",EP="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",N9="https://fcmregistrations.googleapis.com/v1",kP="google.c.a.c_id",j9="google.c.a.c_l",B9="google.c.a.ts",$9="google.c.a.e";var V1;(function(t){t[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(V1||(V1={}));/**
|
|
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 Vd;(function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"})(Vd||(Vd={}));/**
|
|
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 yl(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function V9(t){const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}/**
|
|
794
|
-
* @license
|
|
795
|
-
* Copyright 2019 Google LLC
|
|
796
|
-
*
|
|
797
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
798
|
-
* you may not use this file except in compliance with the License.
|
|
799
|
-
* You may obtain a copy of the License at
|
|
800
|
-
*
|
|
801
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
802
|
-
*
|
|
803
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
804
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
805
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
806
|
-
* See the License for the specific language governing permissions and
|
|
807
|
-
* limitations under the License.
|
|
808
|
-
*/const Tm="fcm_token_details_db",H9=5,H1="fcm_token_object_Store";async function U9(t){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Tm))return null;let e=null;return(await qp(Tm,H9,{upgrade:async(r,i,o,a)=>{var c;if(i<2||!r.objectStoreNames.contains(H1))return;const d=a.objectStore(H1),p=await d.index("fcmSenderId").get(t);if(await d.clear(),!!p){if(i===2){const w=p;if(!w.auth||!w.p256dh||!w.endpoint)return;e={token:w.fcmToken,createTime:(c=w.createTime)!==null&&c!==void 0?c:Date.now(),subscriptionOptions:{auth:w.auth,p256dh:w.p256dh,endpoint:w.endpoint,swScope:w.swScope,vapidKey:typeof w.vapidKey=="string"?w.vapidKey:yl(w.vapidKey)}}}else if(i===3){const w=p;e={token:w.fcmToken,createTime:w.createTime,subscriptionOptions:{auth:yl(w.auth),p256dh:yl(w.p256dh),endpoint:w.endpoint,swScope:w.swScope,vapidKey:yl(w.vapidKey)}}}else if(i===4){const w=p;e={token:w.fcmToken,createTime:w.createTime,subscriptionOptions:{auth:yl(w.auth),p256dh:yl(w.p256dh),endpoint:w.endpoint,swScope:w.swScope,vapidKey:yl(w.vapidKey)}}}}}})).close(),await ym(Tm),await ym("fcm_vapid_details_db"),await ym("undefined"),W9(e)?e:null}function W9(t){if(!t||!t.subscriptionOptions)return!1;const{subscriptionOptions:e}=t;return typeof t.createTime=="number"&&t.createTime>0&&typeof t.token=="string"&&t.token.length>0&&typeof e.auth=="string"&&e.auth.length>0&&typeof e.p256dh=="string"&&e.p256dh.length>0&&typeof e.endpoint=="string"&&e.endpoint.length>0&&typeof e.swScope=="string"&&e.swScope.length>0&&typeof e.vapidKey=="string"&&e.vapidKey.length>0}/**
|
|
809
|
-
* @license
|
|
810
|
-
* Copyright 2019 Google LLC
|
|
811
|
-
*
|
|
812
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
813
|
-
* you may not use this file except in compliance with the License.
|
|
814
|
-
* You may obtain a copy of the License at
|
|
815
|
-
*
|
|
816
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
817
|
-
*
|
|
818
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
819
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
820
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
821
|
-
* See the License for the specific language governing permissions and
|
|
822
|
-
* limitations under the License.
|
|
823
|
-
*/const z9="firebase-messaging-database",Y9=1,Hd="firebase-messaging-store";let Cm=null;function DP(){return Cm||(Cm=qp(z9,Y9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Hd)}}})),Cm}async function G9(t){const e=PP(t),r=await(await DP()).transaction(Hd).objectStore(Hd).get(e);if(r)return r;{const i=await U9(t.appConfig.senderId);if(i)return await lb(t,i),i}}async function lb(t,e){const n=PP(t),i=(await DP()).transaction(Hd,"readwrite");return await i.objectStore(Hd).put(e,n),await i.done,e}function PP({appConfig:t}){return t.appId}/**
|
|
824
|
-
* @license
|
|
825
|
-
* Copyright 2017 Google LLC
|
|
826
|
-
*
|
|
827
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
828
|
-
* you may not use this file except in compliance with the License.
|
|
829
|
-
* You may obtain a copy of the License at
|
|
830
|
-
*
|
|
831
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
832
|
-
*
|
|
833
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
834
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
835
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
836
|
-
* See the License for the specific language governing permissions and
|
|
837
|
-
* limitations under the License.
|
|
838
|
-
*/const q9={"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."},Bi=new Gp("messaging","Messaging",q9);/**
|
|
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 X9(t,e){const n=await cb(t),r=OP(e),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(ub(t.appConfig),i)).json()}catch(a){throw Bi.create("token-subscribe-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw Bi.create("token-subscribe-failed",{errorInfo:a})}if(!o.token)throw Bi.create("token-subscribe-no-token");return o.token}async function K9(t,e){const n=await cb(t),r=OP(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${ub(t.appConfig)}/${e.token}`,i)).json()}catch(a){throw Bi.create("token-update-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw Bi.create("token-update-failed",{errorInfo:a})}if(!o.token)throw Bi.create("token-update-no-token");return o.token}async function Z9(t,e){const r={method:"DELETE",headers:await cb(t)};try{const o=await(await fetch(`${ub(t.appConfig)}/${e}`,r)).json();if(o.error){const a=o.error.message;throw Bi.create("token-unsubscribe-failed",{errorInfo:a})}}catch(i){throw Bi.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function ub({projectId:t}){return`${N9}/projects/${t}/registrations`}async function cb({appConfig:t,installations:e}){const n=await e.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function OP({p256dh:t,auth:e,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:e,p256dh:t}};return r!==EP&&(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 J9=7*24*60*60*1e3;async function Q9(t){const e=await tY(t.swRegistration,t.vapidKey),n={vapidKey:t.vapidKey,swScope:t.swRegistration.scope,endpoint:e.endpoint,auth:yl(e.getKey("auth")),p256dh:yl(e.getKey("p256dh"))},r=await G9(t.firebaseDependencies);if(r){if(nY(r.subscriptionOptions,n))return Date.now()>=r.createTime+J9?eY(t,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await Z9(t.firebaseDependencies,r.token)}catch(i){console.warn(i)}return U1(t.firebaseDependencies,n)}else return U1(t.firebaseDependencies,n)}async function eY(t,e){try{const n=await K9(t.firebaseDependencies,e),r=Object.assign(Object.assign({},e),{token:n,createTime:Date.now()});return await lb(t.firebaseDependencies,r),n}catch(n){throw n}}async function U1(t,e){const r={token:await X9(t,e),createTime:Date.now(),subscriptionOptions:e};return await lb(t,r),r.token}async function tY(t,e){const n=await t.pushManager.getSubscription();return n||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:V9(e)})}function nY(t,e){const n=e.vapidKey===t.vapidKey,r=e.endpoint===t.endpoint,i=e.auth===t.auth,o=e.p256dh===t.p256dh;return n&&r&&i&&o}/**
|
|
869
|
-
* @license
|
|
870
|
-
* Copyright 2020 Google LLC
|
|
871
|
-
*
|
|
872
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
873
|
-
* you may not use this file except in compliance with the License.
|
|
874
|
-
* You may obtain a copy of the License at
|
|
875
|
-
*
|
|
876
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
877
|
-
*
|
|
878
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
879
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
880
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
881
|
-
* See the License for the specific language governing permissions and
|
|
882
|
-
* limitations under the License.
|
|
883
|
-
*/function W1(t){const e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return rY(e,t),iY(e,t),oY(e,t),e}function rY(t,e){if(!e.notification)return;t.notification={};const n=e.notification.title;n&&(t.notification.title=n);const r=e.notification.body;r&&(t.notification.body=r);const i=e.notification.image;i&&(t.notification.image=i);const o=e.notification.icon;o&&(t.notification.icon=o)}function iY(t,e){e.data&&(t.data=e.data)}function oY(t,e){var n,r,i,o,a;if(!e.fcmOptions&&!(!((n=e.notification)===null||n===void 0)&&n.click_action))return;t.fcmOptions={};const c=(i=(r=e.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=e.notification)===null||o===void 0?void 0:o.click_action;c&&(t.fcmOptions.link=c);const d=(a=e.fcmOptions)===null||a===void 0?void 0:a.analytics_label;d&&(t.fcmOptions.analyticsLabel=d)}/**
|
|
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 sY(t){return typeof t=="object"&&!!t&&kP in t}/**
|
|
899
|
-
* @license
|
|
900
|
-
* Copyright 2019 Google LLC
|
|
901
|
-
*
|
|
902
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
903
|
-
* you may not use this file except in compliance with the License.
|
|
904
|
-
* You may obtain a copy of the License at
|
|
905
|
-
*
|
|
906
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
907
|
-
*
|
|
908
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
909
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
910
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
911
|
-
* See the License for the specific language governing permissions and
|
|
912
|
-
* limitations under the License.
|
|
913
|
-
*/function aY(t){if(!t||!t.options)throw Em("App Configuration Object");if(!t.name)throw Em("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:n}=t;for(const r of e)if(!n[r])throw Em(r);return{appName:t.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Em(t){return Bi.create("missing-app-config-values",{valueName:t})}/**
|
|
914
|
-
* @license
|
|
915
|
-
* Copyright 2020 Google LLC
|
|
916
|
-
*
|
|
917
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
918
|
-
* you may not use this file except in compliance with the License.
|
|
919
|
-
* You may obtain a copy of the License at
|
|
920
|
-
*
|
|
921
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
922
|
-
*
|
|
923
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
924
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
925
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
926
|
-
* See the License for the specific language governing permissions and
|
|
927
|
-
* limitations under the License.
|
|
928
|
-
*/class lY{constructor(e,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=aY(e);this.firebaseDependencies={app:e,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
|
|
929
|
-
* @license
|
|
930
|
-
* Copyright 2020 Google LLC
|
|
931
|
-
*
|
|
932
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
933
|
-
* you may not use this file except in compliance with the License.
|
|
934
|
-
* You may obtain a copy of the License at
|
|
935
|
-
*
|
|
936
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
937
|
-
*
|
|
938
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
939
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
940
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
941
|
-
* See the License for the specific language governing permissions and
|
|
942
|
-
* limitations under the License.
|
|
943
|
-
*/async function uY(t){try{t.swRegistration=await navigator.serviceWorker.register(L9,{scope:F9}),t.swRegistration.update().catch(()=>{})}catch(e){throw Bi.create("failed-service-worker-registration",{browserErrorMessage:e==null?void 0:e.message})}}/**
|
|
944
|
-
* @license
|
|
945
|
-
* Copyright 2020 Google LLC
|
|
946
|
-
*
|
|
947
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
948
|
-
* you may not use this file except in compliance with the License.
|
|
949
|
-
* You may obtain a copy of the License at
|
|
950
|
-
*
|
|
951
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
952
|
-
*
|
|
953
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
954
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
955
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
956
|
-
* See the License for the specific language governing permissions and
|
|
957
|
-
* limitations under the License.
|
|
958
|
-
*/async function cY(t,e){if(!e&&!t.swRegistration&&await uY(t),!(!e&&t.swRegistration)){if(!(e instanceof ServiceWorkerRegistration))throw Bi.create("invalid-sw-registration");t.swRegistration=e}}/**
|
|
959
|
-
* @license
|
|
960
|
-
* Copyright 2020 Google LLC
|
|
961
|
-
*
|
|
962
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
963
|
-
* you may not use this file except in compliance with the License.
|
|
964
|
-
* You may obtain a copy of the License at
|
|
965
|
-
*
|
|
966
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
967
|
-
*
|
|
968
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
969
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
970
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
971
|
-
* See the License for the specific language governing permissions and
|
|
972
|
-
* limitations under the License.
|
|
973
|
-
*/async function fY(t,e){e?t.vapidKey=e:t.vapidKey||(t.vapidKey=EP)}/**
|
|
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 _P(t,e){if(!navigator)throw Bi.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Bi.create("permission-blocked");return await fY(t,e==null?void 0:e.vapidKey),await cY(t,e==null?void 0:e.serviceWorkerRegistration),Q9(t)}/**
|
|
989
|
-
* @license
|
|
990
|
-
* Copyright 2019 Google LLC
|
|
991
|
-
*
|
|
992
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
993
|
-
* you may not use this file except in compliance with the License.
|
|
994
|
-
* You may obtain a copy of the License at
|
|
995
|
-
*
|
|
996
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
997
|
-
*
|
|
998
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
999
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1000
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1001
|
-
* See the License for the specific language governing permissions and
|
|
1002
|
-
* limitations under the License.
|
|
1003
|
-
*/async function dY(t,e,n){const r=hY(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[kP],message_name:n[j9],message_time:n[B9],message_device_time:Math.floor(Date.now()/1e3)})}function hY(t){switch(t){case Vd.NOTIFICATION_CLICKED:return"notification_open";case Vd.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 pY(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===Vd.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(W1(n)):t.onMessageHandler.next(W1(n)));const r=n.data;sY(r)&&r[$9]==="1"&&await dY(t,n.messageType,r)}const z1="@firebase/messaging",Y1="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 gY=t=>{const e=new lY(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),t.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>pY(e,n)),e},mY=t=>{const e=t.getProvider("messaging").getImmediate();return{getToken:r=>_P(e,r)}};function vY(){kc(new Tu("messaging",gY,"PUBLIC")),kc(new Tu("messaging-internal",mY,"PRIVATE")),pu(z1,Y1),pu(z1,Y1,"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 yY(){try{await tP()}catch{return!1}return typeof window<"u"&&eP()&&N6()&&"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 bY(t,e){if(!navigator)throw Bi.create("only-available-in-window");return t.onMessageHandler=e,()=>{t.onMessageHandler=null}}/**
|
|
1064
|
-
* @license
|
|
1065
|
-
* Copyright 2017 Google LLC
|
|
1066
|
-
*
|
|
1067
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1068
|
-
* you may not use this file except in compliance with the License.
|
|
1069
|
-
* You may obtain a copy of the License at
|
|
1070
|
-
*
|
|
1071
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1072
|
-
*
|
|
1073
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1074
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1075
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1076
|
-
* See the License for the specific language governing permissions and
|
|
1077
|
-
* limitations under the License.
|
|
1078
|
-
*/function wY(t=j8()){return yY().then(e=>{if(!e)throw Bi.create("unsupported-browser")},e=>{throw Bi.create("indexed-db-unsupported")}),rb(tb(t),"messaging").getImmediate()}async function xY(t,e){return t=tb(t),_P(t,e)}function SY(t,e){return t=tb(t),bY(t,e)}vY();exports.AuthContext=Lv;exports.AuthProvider=aM;exports.CustomOpenList=oT;exports.CustomOpenListProvider=YI;exports.DateRangePicker=k6;exports.ERROR_MESSAGE=tT;exports.FavoriteMenu=e6;exports.GlobalMenu=p6;exports.IconComponent=LD;exports.InfiniteLoader=S6;exports.Language=Nv;exports.LogoutConfirmModal=G1;exports.PropTypes=_s;exports.Q=M2;exports.SaasThemeProvider=iM;exports.StyleWrapper=jv;exports.TranslationProvider=pL;exports._=m6;exports._assertThisInitialized=xl;exports._extends=Rf;exports._extends$1=J5;exports._inheritsLoose=_D;exports._objectWithoutPropertiesLoose=Fv;exports.activeStyles=Jy;exports.axiosInstance=As;exports.clsx=bl;exports.color=ki;exports.commonjsGlobal=Ei;exports.createCustomTheme=uT;exports.getAugmentedNamespace=CM;exports.getMessagingInWindow=wY;exports.getToken=xY;exports.handleErrorAxios=iT;exports.initializeApp=iP;exports.lodashExports=GD;exports.login=nT;exports.logout=rT;exports.notify=$2;exports.objectWithoutPropertiesLoose=TM;exports.onMessage=SY;exports.pushError=Wd;exports.pushSuccess=Uv;exports.pushWarning=B2;exports.responseInterceptor=zI;exports.search=uM;exports.setFavicon=cT;exports.styles=g6;exports.translate=dL;exports.translationConfig=fL;exports.updateFavoriteItems=eb;exports.useAuth=lM;exports.useCustomTranslation=cL;exports.useTheme=rM;exports.useTranslation=bT;exports.useTranslation$1=hL;
|