@ukpc-lib/react 0.8.4 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FavoriteMenu/index.d.ts +1 -0
- package/dist/components/index.cjs +28 -30
- package/dist/components/index.js +2170 -2478
- package/dist/index.module-dfee87ba.cjs +1100 -0
- package/dist/{index.module-ac25c380.js → index.module-efc61dc4.js} +14021 -13702
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +22 -22
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +1 -1
- package/web-components-bundle/favorite-menu/index.js +4 -3
- package/web-components-bundle/global-menu/index.js +2 -2
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-72ffbbfa.js → index-ef16a9d3.js} +2 -1
- package/web-components-bundle/{index-a1290462.js → index-f914dfd3.js} +4031 -4018
- package/dist/index.module-5d0f8ab4.cjs +0 -1098
|
@@ -0,0 +1,1100 @@
|
|
|
1
|
+
var I9=require("./index.css");const ze=require("react/jsx-runtime"),X=require("react"),II=require("axios"),AI=require("moment"),Il=require("@mui/material"),Cd=require("react-query");require("@r2wc/react-to-web-component");const Dp=require("react-router-dom"),qm=require("react-dom");function MI(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function LI(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Sn=MI(X),FI=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--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:#ffffff;-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}
|
|
2
|
+
`;function O1({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return ze.jsxs(ze.Fragment,{children:[ze.jsx("style",{type:"text/css",children:FI}),ze.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:ze.jsxs("div",{className:"modal-container",children:[ze.jsx("h3",{className:"modal-title",children:"Log out"}),ze.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),ze.jsxs("div",{className:"modal-footer",children:[ze.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),ze.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const ui={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(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jo(e)}function ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NI(e,t){if(Jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D1(e){var t=NI(e,"string");return Jo(t)=="symbol"?t:String(t)}function a0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D1(r.key),r)}}function na(e,t,n){return t&&a0(e.prototype,t),n&&a0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _l(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jh(e,t){return Jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jh(e,t)}function Pp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jh(e,t)}function Vd(e,t){if(t&&(Jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _l(e)}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bs(e)}function $s(e,t,n){return t=D1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P1(e){if(Array.isArray(e))return e}function jI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R1(e,t){if(e){if(typeof e=="string")return s0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s0(e,t)}}function I1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BI(e){return P1(e)||jI(e)||R1(e)||I1()}function l0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function u0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $I={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},VI=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.init(t,n)}return na(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||$I,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,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 e(this.logger,n)}}]),e}(),Ls=new VI,Ou=function(){function e(){ta(this,e),this.observers={}}return na(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(c){c.apply(void 0,i)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(c){c.apply(c,[n].concat(i))})}}}]),e}();function Jf(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function c0(e){return e==null?"":""+e}function HI(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Xm(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function f0(e,t,n){var r=Xm(e,t,Object),i=r.obj,o=r.k;i[o]=n}function UI(e,t,n,r){var i=Xm(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function Qh(e,t){var n=Xm(e,t),r=n.obj,i=n.k;if(r)return r[i]}function WI(e,t,n){var r=Qh(e,n);return r!==void 0?r:Qh(t,n)}function A1(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):A1(e[r],t[r],n):e[r]=t[r]);return e}function df(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zI={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function YI(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return zI[t]}):e}var Rp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,GI=[" ",",","?","!",";"];function qI(e,t,n){t=t||"",n=n||"";var r=GI.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),o=!i.test(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function ep(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var s=2,l=r.slice(o,o+s).join(n),c=i[l];c===void 0&&r.length>o+s;)s++,l=r.slice(o,o+s).join(n),c=i[l];if(c===void 0)return;if(c===null)return null;if(t.endsWith(l)){if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l]}var d=r.slice(o+s).join(n);return d?ep(c,d,n):void 0}i=i[r[o]]}return i}}function d0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XI(e){var t=KI();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(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 ZI=function(e){Pp(n,e);var t=XI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ta(this,n),i=t.call(this),Rp&&Ou.call(_l(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 na(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,d=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,v=[i,o];s&&typeof s!="string"&&(v=v.concat(s)),s&&typeof s=="string"&&(v=v.concat(c?s.split(c):s)),i.indexOf(".")>-1&&(v=i.split("."));var p=Qh(this.data,v);return p||!d||typeof s!="string"?p:ep(this.data&&this.data[i]&&this.data[i][o],s,c)}},{key:"addResource",value:function(i,o,s,l){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,v=[i,o];s&&(v=v.concat(d?s.split(d):s)),i.indexOf(".")>-1&&(v=i.split("."),l=o,o=v[1]),this.addNamespaces(o),f0(this.data,v,l),c.silent||this.emit("added",i,o,s,l)}},{key:"addResources",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var c in s)(typeof s[c]=="string"||Object.prototype.toString.apply(s[c])==="[object Array]")&&this.addResource(i,o,c,s[c],{silent:!0});l.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,l,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},v=[i,o];i.indexOf(".")>-1&&(v=i.split("."),l=s,s=o,o=v[1]),this.addNamespaces(o);var p=Qh(this.data,v)||{};l?A1(p,s,c):p=fh(fh({},p),s),f0(this.data,v,p),d.silent||this.emit("added",i,o,s)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?fh(fh({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),s=o&&Object.keys(o)||[];return!!s.find(function(l){return o[l]&&Object.keys(o[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Ou),M1={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(l){s.processors[l]&&(n=s.processors[l].process(n,r,i,o))}),n}};function h0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JI(e){var t=QI();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function QI(){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(e){Pp(n,e);var t=JI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ta(this,n),i=t.call(this),Rp&&Ou.call(_l(i)),HI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,_l(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Ls.create("translator"),i}return na(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ns||this.options.defaultNS||[],d=s&&i.indexOf(s)>-1,v=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!qI(i,s,l);if(d&&!v){var p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:c};var x=i.split(s);(s!==l||s===l&&this.options.ns.indexOf(x[0])>-1)&&(c=x.shift()),i=x.join(l)}return typeof c=="string"&&(c=[c]),{key:i,namespaces:c}}},{key:"translate",value:function(i,o,s){var l=this;if(Jo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Jo(o)==="object"&&(o=Mi({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var c=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,v=this.extractFromKey(i[i.length-1],o),p=v.key,x=v.namespaces,T=x[x.length-1],P=o.lng||this.language,R=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(P&&P.toLowerCase()==="cimode"){if(R){var L=o.nsSeparator||this.options.nsSeparator;return c?{res:"".concat(T).concat(L).concat(p),usedKey:p,exactUsedKey:p,usedLng:P,usedNS:T}:"".concat(T).concat(L).concat(p)}return c?{res:p,usedKey:p,exactUsedKey:p,usedLng:P,usedNS:T}:p}var I=this.resolve(i,o),U=I&&I.res,W=I&&I.usedKey||p,te=I&&I.exactUsedKey||p,J=Object.prototype.toString.apply(U),ge=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ce=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(ce&&U&&ae&&ge.indexOf(J)<0&&!(typeof S=="string"&&J==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Ne=this.options.returnedObjectHandler?this.options.returnedObjectHandler(W,U,Mi(Mi({},o),{},{ns:x})):"key '".concat(p," (").concat(this.language,")' returned an object instead of string.");return c?(I.res=Ne,I):Ne}if(d){var Je=J==="[object Array]",Ye=Je?[]:{},Qe=Je?te:W;for(var tt in U)if(Object.prototype.hasOwnProperty.call(U,tt)){var he="".concat(Qe).concat(d).concat(tt);Ye[tt]=this.translate(he,Mi(Mi({},o),{joinArrays:!1,ns:x})),Ye[tt]===he&&(Ye[tt]=U[tt])}U=Ye}}else if(ce&&typeof S=="string"&&J==="[object Array]")U=U.join(S),U&&(U=this.extendTranslation(U,i,o,s));else{var Ce=!1,He=!1,et=o.count!==void 0&&typeof o.count!="string",at=n.hasDefaultValue(o),Ee=et?this.pluralResolver.getSuffix(P,o.count,o):"",Pe=o["defaultValue".concat(Ee)]||o.defaultValue;!this.isValidLookup(U)&&at&&(Ce=!0,U=Pe),this.isValidLookup(U)||(He=!0,U=p);var Ve=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ue=Ve&&He?void 0:U,Re=at&&Pe!==U&&this.options.updateMissing;if(He||Ce||Re){if(this.logger.log(Re?"updateKey":"missingKey",P,T,p,Re?Pe:U),d){var Fe=this.resolve(p,Mi(Mi({},o),{},{keySeparator:!1}));Fe&&Fe.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 Ge=[],lt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&<&<[0])for(var mt=0;mt<lt.length;mt++)Ge.push(lt[mt]);else this.options.saveMissingTo==="all"?Ge=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ge.push(o.lng||this.language);var wt=function(Et,ot,$t){var Ht=at&&$t!==U?$t:Ue;l.options.missingKeyHandler?l.options.missingKeyHandler(Et,T,ot,Ht,Re,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(Et,T,ot,Ht,Re,o),l.emit("missingKey",Et,T,ot,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&et?Ge.forEach(function(vt){l.pluralResolver.getSuffixes(vt,o).forEach(function(Et){wt([vt],p+Et,o["defaultValue".concat(Et)]||Pe)})}):wt(Ge,p,Pe))}U=this.extendTranslation(U,i,o,I,s),He&&U===p&&this.options.appendNamespaceToMissingKey&&(U="".concat(T,":").concat(p)),(He||Ce)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(T,":").concat(p):p,Ce?U:void 0):U=this.options.parseMissingKeyHandler(U))}return c?(I.res=U,I):U}},{key:"extendTranslation",value:function(i,o,s,l,c){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Mi(Mi({},this.options.interpolation.defaultVariables),s),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Mi(Mi({},s),{interpolation:Mi(Mi({},this.options.interpolation),s.interpolation)}));var v=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(v){var x=i.match(this.interpolator.nestingRegexp);p=x&&x.length}var T=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(T=Mi(Mi({},this.options.interpolation.defaultVariables),T)),i=this.interpolator.interpolate(i,T,s.lng||this.language,s),v){var P=i.match(this.interpolator.nestingRegexp),R=P&&P.length;p<R&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(s.lng=l.usedLng),s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var U=arguments.length,W=new Array(U),te=0;te<U;te++)W[te]=arguments[te];return c&&c[0]===W[0]&&!s.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(W[0]," in key: ").concat(o[0])),null):d.translate.apply(d,W.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var L=s.postProcess||this.options.postProcess,I=typeof L=="string"?[L]:L;return i!=null&&I&&I.length&&s.applyPostProcessor!==!1&&(i=M1.handle(I,i,o,this.options&&this.options.postProcessPassResolved?Mi({i18nResolved:l},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,c,d,v,p;return typeof i=="string"&&(i=[i]),i.forEach(function(x){if(!o.isValidLookup(l)){var T=o.extractFromKey(x,s),P=T.key;c=P;var R=T.namespaces;o.options.fallbackNS&&(R=R.concat(o.options.fallbackNS));var L=s.count!==void 0&&typeof s.count!="string",I=L&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),U=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",W=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);R.forEach(function(te){o.isValidLookup(l)||(p=te,!p0["".concat(W[0],"-").concat(te)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(p)&&(p0["".concat(W[0],"-").concat(te)]=!0,o.logger.warn('key "'.concat(c,'" for languages "').concat(W.join(", "),`" won't get resolved as namespace "`).concat(p,'" 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!!!")),W.forEach(function(J){if(!o.isValidLookup(l)){v=J;var ge=[P];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(ge,P,J,te,s);else{var S;L&&(S=o.pluralResolver.getSuffix(J,s.count,s));var ce="".concat(o.options.pluralSeparator,"zero");if(L&&(ge.push(P+S),I&&ge.push(P+ce)),U){var ae="".concat(P).concat(o.options.contextSeparator).concat(s.context);ge.push(ae),L&&(ge.push(ae+S),I&&ge.push(ae+ce))}}for(var Ne;Ne=ge.pop();)o.isValidLookup(l)||(d=Ne,l=o.getResource(J,te,Ne,s))}}))})}}),{res:l,usedKey:c,exactUsedKey:d,usedLng:v,usedNS:p}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,l):this.resourceStore.getResource(i,o,s,l)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}(Ou);function Mg(e){return e.charAt(0).toUpperCase()+e.slice(1)}var v0=function(){function e(t){ta(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ls.create("languageUtils")}return na(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Mg(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]=Mg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Mg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(l){if(l===s)return l;if(!(l.indexOf("-")<0&&s.indexOf("-")<0)&&l.indexOf(s)===0)return l})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),s=[],l=function(d){d&&(i.isSupportedCode(d)?s.push(d):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),o.forEach(function(c){s.indexOf(c)<0&&l(i.formatLanguageCode(c))}),s}}]),e}(),eA=[{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}],tA={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},nA=["v1","v2","v3"],m0={zero:0,one:1,two:2,few:3,many:4,other:5};function rA(){var e={};return eA.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:tA[t.fc]}})}),e}var iA=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.languageUtils=t,this.options=n,this.logger=Ls.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=rA()}return na(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(s,l){return m0[s]-m0[l]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var l=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!nA.includes(this.options.compatibilityJSON)}}]),e}();function y0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=WI(e,t,n);return!o&&i&&typeof n=="string"&&(o=ep(e,n,r),o===void 0&&(o=ep(t,n,r))),o}var oA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=Ls.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return na(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:YI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?df(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?df(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?df(r.nestingPrefix):r.nestingPrefixEscaped||df("$t("),this.nestingSuffix=r.nestingSuffix?df(r.nestingSuffix):r.nestingSuffixEscaped||df(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var s=this,l,c,d,v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(L){return L.replace(/\$/g,"$$$$")}var x=function(I){if(I.indexOf(s.formatSeparator)<0){var U=b0(r,v,I,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(U,void 0,i,es(es(es({},o),r),{},{interpolationkey:I})):U}var W=I.split(s.formatSeparator),te=W.shift().trim(),J=W.join(s.formatSeparator).trim();return s.format(b0(r,v,te,s.options.keySeparator,s.options.ignoreJSONStructure),J,i,es(es(es({},o),r),{},{interpolationkey:te}))};this.resetRegExp();var T=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,P=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,R=[{regex:this.regexpUnescape,safeValue:function(I){return p(I)}},{regex:this.regexp,safeValue:function(I){return s.escapeValue?p(s.escape(I)):p(I)}}];return R.forEach(function(L){for(d=0;l=L.regex.exec(n);){var I=l[1].trim();if(c=x(I),c===void 0)if(typeof T=="function"){var U=T(n,l,o);c=typeof U=="string"?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,I))c="";else if(P){c=l[0];continue}else s.logger.warn("missed to pass in variable ".concat(I," for interpolating ").concat(n)),c="";else typeof c!="string"&&!s.useRawValueToEscape&&(c=c0(c));var W=L.safeValue(c);if(n=n.replace(l[0],W),P?(L.regex.lastIndex+=c.length,L.regex.lastIndex-=l[0].length):L.regex.lastIndex=0,d++,d>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,l,c;function d(T,P){var R=this.nestingOptionsSeparator;if(T.indexOf(R)<0)return T;var L=T.split(new RegExp("".concat(R,"[ ]*{"))),I="{".concat(L[1]);T=L[0],I=this.interpolate(I,c);var U=I.match(/'/g),W=I.match(/"/g);(U&&U.length%2===0&&!W||W.length%2!==0)&&(I=I.replace(/'/g,'"'));try{c=JSON.parse(I),P&&(c=es(es({},P),c))}catch(te){return this.logger.warn("failed parsing options string in nesting for key ".concat(T),te),"".concat(T).concat(R).concat(I)}return delete c.defaultValue,T}for(;s=this.nestingRegexp.exec(n);){var v=[];c=es({},o),c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;var p=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var x=s[1].split(this.formatSeparator).map(function(T){return T.trim()});s[1]=x.shift(),v=x,p=!0}if(l=r(d.call(this,s[1].trim(),c),c),l&&s[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=c0(l)),l||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),l=""),p&&(l=v.reduce(function(T,P){return i.format(T,P,o.lng,es(es({},o),{},{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n}}]),e}();function w0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aA(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(s){if(s){var l=s.split(":"),c=BI(l),d=c[0],v=c.slice(1),p=v.join(":").trim().replace(/^'+|'+$/g,"");n[d.trim()]||(n[d.trim()]=p),p==="false"&&(n[d.trim()]=!1),p==="true"&&(n[d.trim()]=!0),isNaN(p)||(n[d.trim()]=parseInt(p,10))}})}}return{formatName:t,formatOptions:n}}function hf(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),l=t[s];return l||(l=e(i,o),t[s]=l),l(r)}}var sA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=Ls.create("formatter"),this.options=t,this.formats={number:hf(function(n,r){var i=new Intl.NumberFormat(n,Sl({},r));return function(o){return i.format(o)}}),currency:hf(function(n,r){var i=new Intl.NumberFormat(n,Sl(Sl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:hf(function(n,r){var i=new Intl.DateTimeFormat(n,Sl({},r));return function(o){return i.format(o)}}),relativetime:hf(function(n,r){var i=new Intl.RelativeTimeFormat(n,Sl({},r));return function(o){return i.format(o,r.range||"day")}}),list:hf(function(n,r){var i=new Intl.ListFormat(n,Sl({},r));return function(o){return i.format(o)}})},this.init(t)}return na(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=hf(r)}},{key:"format",value:function(n,r,i){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=r.split(this.formatSeparator),c=l.reduce(function(d,v){var p=aA(v),x=p.formatName,T=p.formatOptions;if(o.formats[x]){var P=d;try{var R=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},L=R.locale||R.lng||s.locale||s.lng||i;P=o.formats[x](d,L,Sl(Sl(Sl({},T),s),R))}catch(I){o.logger.warn(I)}return P}else o.logger.warn("there was no format function for ".concat(x));return d},n);return c}}]),e}();function x0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function S0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lA(e){var t=uA();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function uA(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var fA=function(e){Pp(n,e);var t=lA(n);function n(r,i,o){var s,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ta(this,n),s=t.call(this),Rp&&Ou.call(_l(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=l,s.logger=Ls.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=l.maxParallelReads||10,s.readingCalls=0,s.maxRetries=l.maxRetries>=0?l.maxRetries:5,s.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,l.backend,l),s}return na(n,[{key:"queueLoad",value:function(i,o,s,l){var c=this,d={},v={},p={},x={};return i.forEach(function(T){var P=!0;o.forEach(function(R){var L="".concat(T,"|").concat(R);!s.reload&&c.store.hasResourceBundle(T,R)?c.state[L]=2:c.state[L]<0||(c.state[L]===1?v[L]===void 0&&(v[L]=!0):(c.state[L]=1,P=!1,v[L]===void 0&&(v[L]=!0),d[L]===void 0&&(d[L]=!0),x[R]===void 0&&(x[R]=!0)))}),P||(p[T]=!0)}),(Object.keys(d).length||Object.keys(v).length)&&this.queue.push({pending:v,pendingCount:Object.keys(v).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(v),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(x)}}},{key:"loaded",value:function(i,o,s){var l=i.split("|"),c=l[0],d=l[1];o&&this.emit("failedLoading",c,d,o),s&&this.store.addResourceBundle(c,d,s),this.state[i]=o?-1:2;var v={};this.queue.forEach(function(p){UI(p.loaded,[c],d),cA(p,i),o&&p.errors.push(o),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(function(x){v[x]||(v[x]={});var T=p.loaded[x];T.length&&T.forEach(function(P){v[x][P]===void 0&&(v[x][P]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",v),this.queue=this.queue.filter(function(p){return!p.done})}},{key:"read",value:function(i,o,s){var l=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,v=arguments.length>5?arguments[5]:void 0;if(!i.length)return v(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:s,tried:c,wait:d,callback:v});return}this.readingCalls++;var p=function(R,L){if(l.readingCalls--,l.waitingReads.length>0){var I=l.waitingReads.shift();l.read(I.lng,I.ns,I.fcName,I.tried,I.wait,I.callback)}if(R&&L&&c<l.maxRetries){setTimeout(function(){l.read.call(l,i,o,s,c+1,d*2,v)},d);return}v(R,L)},x=this.backend[s].bind(this.backend);if(x.length===2){try{var T=x(i,o);T&&typeof T.then=="function"?T.then(function(P){return p(null,P)}).catch(p):p(null,T)}catch(P){p(P)}return}return x(i,o,p)}},{key:"prepareLoading",value:function(i,o){var s=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=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."),c&&c();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var d=this.queueLoad(i,o,l,c);if(!d.toLoad.length)return d.pending.length||c(),null;d.toLoad.forEach(function(v){s.loadOne(v)})}},{key:"load",value:function(i,o,s){this.prepareLoading(i,o,{},s)}},{key:"reload",value:function(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}},{key:"loadOne",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=i.split("|"),c=l[0],d=l[1];this.read(c,d,"read",void 0,void 0,function(v,p){v&&o.logger.warn("".concat(s,"loading namespace ").concat(d," for language ").concat(c," failed"),v),!v&&p&&o.logger.log("".concat(s,"loaded namespace ").concat(d," for language ").concat(c),p),o.loaded(i,v,p)})}},{key:"saveMissing",value:function(i,o,s,l,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(s,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){var p=S0(S0({},d),{},{isUpdate:c}),x=this.backend.create.bind(this.backend);if(x.length<6)try{var T;x.length===5?T=x(i,o,s,l,p):T=x(i,o,s,l),T&&typeof T.then=="function"?T.then(function(P){return v(null,P)}).catch(v):v(null,T)}catch(P){v(P)}else x(i,o,s,l,v,p)}!i||!i[0]||this.store.addResource(i[0],o,s,l)}}}]),n}(Ou);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(t){var n={};if(Jo(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Jo(t[2])==="object"||Jo(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function C0(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function E0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dA(e){var t=hA();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function hA(){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 dh(){}function pA(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var tp=function(e){Pp(n,e);var t=dA(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ta(this,n),r=t.call(this),Rp&&Ou.call(_l(r)),r.options=C0(i),r.services={},r.logger=Ls,r.modules={external:[]},pA(_l(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Vd(r,_l(r));setTimeout(function(){r.init(i,o)},0)}return r}return na(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var l=T0();this.options=Ps(Ps(Ps({},l),this.options),C0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ps(Ps({},l.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function c(I){return I?typeof I=="function"?new I:I:null}if(!this.options.isClone){this.modules.logger?Ls.init(c(this.modules.logger),this.options):Ls.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=sA);var v=new v0(this.options);this.store=new ZI(this.options.resources,this.options);var p=this.services;p.logger=Ls,p.resourceStore=this.store,p.languageUtils=v,p.pluralResolver=new iA(v,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(p.formatter=c(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new oA(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new fA(c(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(I){for(var U=arguments.length,W=new Array(U>1?U-1:0),te=1;te<U;te++)W[te-1]=arguments[te];i.emit.apply(i,[I].concat(W))}),this.modules.languageDetector&&(p.languageDetector=c(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=c(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new g0(this.services,this.options),this.translator.on("*",function(I){for(var U=arguments.length,W=new Array(U>1?U-1:0),te=1;te<U;te++)W[te-1]=arguments[te];i.emit.apply(i,[I].concat(W))}),this.modules.external.forEach(function(I){I.init&&I.init(i)})}if(this.format=this.options.interpolation.format,s||(s=dh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var T=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];T.forEach(function(I){i[I]=function(){var U;return(U=i.store)[I].apply(U,arguments)}});var P=["addResource","addResources","addResourceBundle","removeResourceBundle"];P.forEach(function(I){i[I]=function(){var U;return(U=i.store)[I].apply(U,arguments),i}});var R=Jf(),L=function(){var U=function(te,J){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),R.resolve(J),s(te,J)};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),R}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dh,l=s,c=typeof i=="string"?i:this.language;if(typeof i=="function"&&(l=i),!this.options.resources||this.options.partialBundledLanguages){if(c&&c.toLowerCase()==="cimode")return l();var d=[],v=function(T){if(T){var P=o.services.languageUtils.toResolveHierarchy(T);P.forEach(function(R){d.indexOf(R)<0&&d.push(R)})}};if(c)v(c);else{var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.forEach(function(x){return v(x)})}this.options.preload&&this.options.preload.forEach(function(x){return v(x)}),this.services.backendConnector.load(d,this.options.ns,function(x){!x&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),l(x)})}else l(null)}},{key:"reloadResources",value:function(i,o,s){var l=Jf();return i||(i=this.languages),o||(o=this.options.ns),s||(s=dh),this.services.backendConnector.reload(i,o,function(c){l.resolve(),s(c)}),l}},{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"&&M1.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var l=Jf();this.emit("languageChanging",i);var c=function(x){s.language=x,s.languages=s.services.languageUtils.toResolveHierarchy(x),s.resolvedLanguage=void 0,s.setResolvedLanguage(x)},d=function(x,T){T?(c(T),s.translator.changeLanguage(T),s.isLanguageChangingTo=void 0,s.emit("languageChanged",T),s.logger.log("languageChanged",T)):s.isLanguageChangingTo=void 0,l.resolve(function(){return s.t.apply(s,arguments)}),o&&o(x,function(){return s.t.apply(s,arguments)})},v=function(x){!i&&!x&&s.services.languageDetector&&(x=[]);var T=typeof x=="string"?x:s.services.languageUtils.getBestMatchFromCodes(x);T&&(s.language||c(T),s.translator.language||s.translator.changeLanguage(T),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(T)),s.loadResources(T,function(P){d(P,T)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?v(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(v):this.services.languageDetector.detect(v):v(i),l}},{key:"getFixedT",value:function(i,o,s){var l=this,c=function d(v,p){var x;if(Jo(p)!=="object"){for(var T=arguments.length,P=new Array(T>2?T-2:0),R=2;R<T;R++)P[R-2]=arguments[R];x=l.options.overloadTranslationOptionHandler([v,p].concat(P))}else x=Ps({},p);x.lng=x.lng||d.lng,x.lngs=x.lngs||d.lngs,x.ns=x.ns||d.ns,x.keyPrefix=x.keyPrefix||s||d.keyPrefix;var L=l.options.keySeparator||".",I;return x.keyPrefix&&Array.isArray(v)?I=v.map(function(U){return"".concat(x.keyPrefix).concat(L).concat(U)}):I=x.keyPrefix?"".concat(x.keyPrefix).concat(L).concat(v):v,l.t(I,x)};return typeof i=="string"?c.lng=i:c.lngs=i,c.ns=o,c.keyPrefix=s,c}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var l=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var v=function(T,P){var R=o.services.backendConnector.state["".concat(T,"|").concat(P)];return R===-1||R===2};if(s.precheck){var p=s.precheck(this,v);if(p!==void 0)return p}return!!(this.hasResourceBundle(l,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||v(l,i)&&(!c||v(d,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,l=Jf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(c){s.options.ns.indexOf(c)<0&&s.options.ns.push(c)}),this.loadResources(function(c){l.resolve(),o&&o(c)}),l):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=Jf();typeof i=="string"&&(i=[i]);var l=this.options.preload||[],c=i.filter(function(d){return l.indexOf(d)<0});return c.length?(this.options.preload=l.concat(c),this.loadResources(function(d){s.resolve(),o&&o(d)}),s):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new v0(T0());return o.indexOf(s.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dh,l=Ps(Ps(Ps({},this.options),o),{isClone:!0}),c=new n(l);(o.debug!==void 0||o.prefix!==void 0)&&(c.logger=c.logger.clone(o));var d=["store","services","language"];return d.forEach(function(v){c[v]=i[v]}),c.services=Ps({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new g0(c.services,c.options),c.translator.on("*",function(v){for(var p=arguments.length,x=new Array(p>1?p-1:0),T=1;T<p;T++)x[T-1]=arguments[T];c.emit.apply(c,[v].concat(x))}),c.init(l,s),c.translator.options=c.options,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Ou);$s(tp,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new tp(e,t)});var ci=tp.createInstance();ci.createInstance=tp.createInstance;ci.createInstance;ci.dir;ci.init;ci.loadResources;ci.reloadResources;ci.use;ci.changeLanguage;ci.getFixedT;var L1=ci.t;ci.exists;ci.setDefaultNamespace;ci.hasLoadedNamespace;ci.loadNamespaces;ci.loadLanguages;const F1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},N1=e=>{window.location.href=`${e}/authentication/login`},j1=e=>{window.location.href=`${e}/authentication/logout`},is=II.create({withCredentials:!0});let Lg=!1,Vv=[];const k0=e=>{Vv.forEach(t=>{e?t.reject(e):t.resolve()}),Vv=[]};function B1(e,t){var o,s,l,c,d,v,p;const n=e.config,r=(s=(o=e.response)==null?void 0:o.data)==null?void 0:s.errorMessage,i=r===F1.TOKEN_EXPIRED;return((l=e.response)==null?void 0:l.status)===401&&i&&!n._retry?Lg?new Promise((x,T)=>{Vv.push({resolve:x,reject:T})}).then(()=>is(n)).catch(x=>Promise.reject(x)):(n._retry=!0,Lg=!0,is.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(k0(null),is(n))).catch(x=>(k0(x),Promise.reject(x))).finally(()=>{Lg=!1})):((c=e.response)==null?void 0:c.status)===401&&!i?N1(window.env.AUTHEN_DOMAIN):(((d=e.response)==null?void 0:d.status)===403?(v=t==null?void 0:t.handle403)==null||v.call(t,e):(!(t!=null&&t.disabledPushNotify)&&Hd(L1(`${r||"Something went wrong!"}`)),(p=t==null?void 0:t.handleOtherError)==null||p.call(t,e)),r&&e.response&&e.response.data&&(e.response.data.message=r),Promise.reject(e))}const gA=is.interceptors.response.use(e=>e,async e=>B1(e)),$1=X.createContext({}),vA=({children:e})=>{const[t,n]=X.useState(!0),[r,i]=X.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!t)},s=()=>{n(!0)};return ze.jsx($1.Provider,{value:{isOpen:t,toggleOpen:o,setShowModalFalse:s,notidata:r,setNotiData:i},children:e})};var V1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},_0=X.createContext&&X.createContext(V1),mA=["attr","size","title"];function yA(e,t){if(e==null)return{};var n=bA(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function np(){return np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},np.apply(this,arguments)}function O0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O0(Object(n),!0).forEach(function(r){wA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wA(e,t,n){return t=xA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xA(e){var t=SA(e,"string");return typeof t=="symbol"?t:String(t)}function SA(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H1(e){return e&&e.map((t,n)=>X.createElement(t.tag,rp({key:n},t.attr),H1(t.child)))}function Ip(e){return t=>X.createElement(TA,np({attr:rp({},e.attr)},t),H1(e.child))}function TA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=yA(e,mA),l=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),X.createElement("svg",np({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:rp(rp({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&X.createElement("title",null,o),e.children)};return _0!==void 0?X.createElement(_0.Consumer,null,n=>t(n)):t(V1)}function CA(e){return Ip({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(e)}function EA(e){return Ip({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(e)}function Fg(e){return e+" !important"}const U1=e=>{const t={...e.colors};return Il.createTheme({palette:{primary:{main:t.primary300,contrastText:t.textPrimary},secondary:{main:t.secondary,contrastText:t.textPrimary},warning:{main:t.warning,contrastText:t.textPrimary},error:{main:t.danger,contrastText:t.textPrimary}},typography:{allVariants:{lineHeight:"inherit"},fontFamily:"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"}},components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:t.primary300,color:t.buttonText,"&:hover":{backgroundColor:t.buttonHover||t.primary300},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"contained",color:"error"},style:{color:t.white}},{props:{variant:"confirm"},style:{backgroundColor:t.danger,color:t.white,"&:hover":{backgroundColor:t.dangerDark},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:t.grey300,color:t.textPrimary,"&:hover":{backgroundColor:t.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:t.primary500,border:"1px solid",borderColor:t.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:t.danger,border:"1px solid",borderColor:t.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:t.appBarBgColor,color:t.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:t.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:t.grey100},"&.Mui-selected":{backgroundColor:t.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Fg(t.primary200),"&:hover":{backgroundColor:Fg(t.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:CA,next:EA}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Fg(t.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:t.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:t.success,backgroundColor:t.successLight},colorWarning:{color:t.warning,backgroundColor:t.warningLight},colorError:{color:t.danger,backgroundColor:t.dangerLight},colorSecondary:{color:t.linkPrimary,backgroundColor:t.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:t.grey600},"& .detail-icon":{stroke:t.grey600},color:t.grey400,"&.Mui-selected":{color:t.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:t.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:t.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:t.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:t.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:t.grey600}},"& .MuiFormLabel-asterisk":{color:t.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${t.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:t.grey600,"&.Mui-checked":{color:t.success},"&.Mui-disabled":{color:t.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:t.grey600,color:t.white,"& .MuiTooltip-arrow":{color:t.grey600}}}}}})};function kA(e,t){const n={...e};return t==null||t.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||ui[i]})}),n}function _A(e){var s,l;const{data:t,isFetching:n}=Cd.useQuery(["customTheme"],()=>e!=null&&e.url?fetch(e.url).then(c=>c.json()):void 0,{enabled:!!(e!=null&&e.url)&&(e==null?void 0:e.enabled),refetchOnWindowFocus:!1,cacheTime:0}),r=kA(ui,(s=t==null?void 0:t.theme)==null?void 0:s.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const i=U1({colors:r}),o=(l=t==null?void 0:t.theme)==null?void 0:l.image;return{colors:r,theme:i,logo:o,isFetching:n}}const W1=X.createContext({}),OA=()=>X.useContext(W1),DA=e=>{var o;const{children:t,brandTheme:n}=e,r=_A(n),i=((o=e.customTheme)==null?void 0:o.call(e,r.colors))||r.theme;return ze.jsx(W1.Provider,{value:r,children:ze.jsx(Il.ThemeProvider,{theme:i,children:t})})},PA=`*,: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}
|
|
4
|
+
`;function Km({children:e,styles:t=[],...n}){return ze.jsxs("div",{...n,children:[[PA,...t].map((r,i)=>ze.jsx("style",{type:"text/css",children:r},i)),e]})}var z1=[],RA=z1.forEach,IA=z1.slice;function AA(e){return RA.call(IA.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var D0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,MA=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var l=i.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(l))}if(i.domain){if(!D0.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!D0.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var c=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},P0={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=MA(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},LA={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=P0.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&P0.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},FA={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),s=0;s<o.length;s++){var l=o[s].indexOf("=");if(l>0){var c=o[s].substring(0,l);c===t.lookupQuerystring&&(n=o[s].substring(l+1))}}}return n}},Qf=null,R0=function(){if(Qf!==null)return Qf;try{Qf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Qf=!1}return Qf},NA={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&R0()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&R0()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},ed=null,I0=function(){if(ed!==null)return ed;try{ed=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{ed=!1}return ed},jA={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&I0()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&I0()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},BA={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},$A={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},VA={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},HA={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function UA(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var Y1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return na(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=AA(r,this.options||{},UA()),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(LA),this.addDetector(FA),this.addDetector(NA),this.addDetector(jA),this.addDetector(BA),this.addDetector($A),this.addDetector(VA),this.addDetector(HA)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();Y1.type="languageDetector";function Zm(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const WA=Object.freeze(Object.defineProperty({__proto__:null,default:Zm},Symbol.toStringTag,{value:"Module"}));var Ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}function YA(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var A0={};function Hv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&A0[t[0]]||(typeof t[0]=="string"&&(A0[t[0]]=new Date),YA.apply(void 0,t))}var G1=function(t,n){return function(){if(t.isInitialized)n();else{var r=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",r)}}};function M0(e,t,n){e.loadNamespaces(t,G1(e,n))}function L0(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,G1(e,r))}function GA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var s=function(c,d){var v=t.services.backendConnector.state["".concat(c,"|").concat(d)];return v===-1||v===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!i||s(o,e)))}function qA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Hv("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(o,s){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,e))return!1}}):GA(e,t,n)}var XA=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,KA={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ZA=function(t){return KA[t]},JA=function(t){return t.replace(XA,ZA)};function F0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function N0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Uv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:JA};function QA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Uv=N0(N0({},Uv),e)}function eM(){return Uv}var q1;function tM(e){q1=e}function nM(){return q1}var rM={type:"3rdParty",init:function(t){QA(t.options.react),tM(t)}},X1=X.createContext(),iM=function(){function e(){ta(this,e),this.usedNamespaces={}}return na(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function oM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(v){d=!0,i=v}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return l}}function aM(e,t){return P1(e)||oM(e,t)||R1(e,t)||I1()}function j0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ng(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var sM=function(t,n){var r=X.useRef();return X.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function K1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=X.useContext(X1)||{},i=r.i18n,o=r.defaultNS,s=n||i||nM();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new iM),!s){Hv("You will need to pass in an i18next instance by using initReactI18next");var l=function(ae,Ne){return typeof Ne=="string"?Ne:Ne&&Jo(Ne)==="object"&&typeof Ne.defaultValue=="string"?Ne.defaultValue:Array.isArray(ae)?ae[ae.length-1]:ae},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}s.options.react&&s.options.react.wait!==void 0&&Hv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=Ng(Ng(Ng({},eM()),s.options.react),t),v=d.useSuspense,p=d.keyPrefix,x=e||o||s.options&&s.options.defaultNS;x=typeof x=="string"?[x]:x||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(x);var T=(s.isInitialized||s.initializedStoreOnce)&&x.every(function(ce){return qA(ce,s,d)});function P(){return s.getFixedT(t.lng||null,d.nsMode==="fallback"?x:x[0],p)}var R=X.useState(P),L=aM(R,2),I=L[0],U=L[1],W=x.join();t.lng&&(W="".concat(t.lng).concat(W));var te=sM(W),J=X.useRef(!0);X.useEffect(function(){var ce=d.bindI18n,ae=d.bindI18nStore;J.current=!0,!T&&!v&&(t.lng?L0(s,t.lng,x,function(){J.current&&U(P)}):M0(s,x,function(){J.current&&U(P)})),T&&te&&te!==W&&J.current&&U(P);function Ne(){J.current&&U(P)}return ce&&s&&s.on(ce,Ne),ae&&s&&s.store.on(ae,Ne),function(){J.current=!1,ce&&s&&ce.split(" ").forEach(function(Je){return s.off(Je,Ne)}),ae&&s&&ae.split(" ").forEach(function(Je){return s.store.off(Je,Ne)})}},[s,W]);var ge=X.useRef(!0);X.useEffect(function(){J.current&&!ge.current&&U(P),ge.current=!1},[s,p]);var S=[I,s,T];if(S.t=I,S.i18n=s,S.ready=T,T||!T&&!v)return S;throw new Promise(function(ce){t.lng?L0(s,t.lng,x,function(){return ce()}):M0(s,x,function(){return ce()})})}function lM(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=X.useMemo(function(){return{i18n:t,defaultNS:n}},[t,n]);return X.createElement(X1.Provider,{value:i},r)}var Z1=[],uM=Z1.forEach,cM=Z1.slice;function fM(e){return uM.call(cM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function dM(e){return e?typeof e=="function"?new e:e:null}function hM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function B0(e,t,n,r){var i=e.read.bind(e);if(i.length===2){try{var o=i(t,n);o&&typeof o.then=="function"?o.then(function(s){return r(null,s)}).catch(r):r(null,o)}catch(s){r(s)}return}i(t,n,r)}var J1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ta(this,e),this.backends=[],this.type="backend",this.allOptions=r,this.init(t,n)}return na(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=fM(i,this.options||{},hM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(s,l){r.backends[l]=r.backends[l]||dM(s),r.backends[l].init(n,r.options.backendOptions&&r.options.backendOptions[l]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,s=this.backends.length,l=function d(v){if(v>=s)return i(new Error("non of the backend loaded data",!0));var p=v===s-1,x=o.options.handleEmptyResourcesAsFailed&&!p?0:-1,T=o.backends[v];T.read?B0(T,n,r,function(P,R,L){if(!P&&R&&Object.keys(R).length>x){if(i(null,R,v),c(v-1,R),T.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(L&&o.options.refreshExpirationTime&&L+o.options.refreshExpirationTime>Date.now())return;var I=o.backends[v+1];I&&I.read&&B0(I,n,r,function(U,W){U||W&&(Object.keys(W).length<=x||(c(v,W),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,W)))})}}else d(v+1)}):d(v+1)},c=function d(v,p){if(!(v<0)){var x=o.backends[v];x.save&&x.save(n,r,p),d(v-1,p)}};l(0)}},{key:"create",value:function(n,r,i,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(c){if(c.create){var d=c.create.bind(c);if(d.length<6){try{var v;d.length===5?v=d(n,r,i,o,l):v=d(n,r,i,o),v&&typeof v.then=="function"?v.then(function(p){return s(null,p)}).catch(s):s(null,v)}catch(p){s(p)}return}d(n,r,i,o,s,l)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(p){var x=o.toResolveHierarchy(p);x.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(v){return d(v)}),c.forEach(function(v){n.allOptions.ns.forEach(function(p){i.read(v,p,"read",null,null,function(x,T){x&&s.warn("loading namespace ".concat(p," for language ").concat(v," failed"),x),!x&&T&&s.log("loaded namespace ".concat(p," for language ").concat(v),T),i.loaded("".concat(v,"|").concat(p),x,T)})})})}}}]),e}();J1.type="backend";function Wv(e){"@babel/helpers - typeof";return Wv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wv(e)}function Q1(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Wv(XMLHttpRequest))==="object"}function pM(e){return!!e&&typeof e.then=="function"}function gM(e){return pM(e)?e:Promise.resolve(e)}function vM(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zv={exports:{}},hh={exports:{}},$0;function mM(){return $0||($0=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ko<"u"&&Ko,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var l=typeof o<"u"&&o||typeof self<"u"&&self||typeof l<"u"&&l,c={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function d(he){return he&&DataView.prototype.isPrototypeOf(he)}if(c.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(he){return he&&v.indexOf(Object.prototype.toString.call(he))>-1};function x(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 T(he){return typeof he!="string"&&(he=String(he)),he}function P(he){var Ce={next:function(){var He=he.shift();return{done:He===void 0,value:He}}};return c.iterable&&(Ce[Symbol.iterator]=function(){return Ce}),Ce}function R(he){this.map={},he instanceof R?he.forEach(function(Ce,He){this.append(He,Ce)},this):Array.isArray(he)?he.forEach(function(Ce){this.append(Ce[0],Ce[1])},this):he&&Object.getOwnPropertyNames(he).forEach(function(Ce){this.append(Ce,he[Ce])},this)}R.prototype.append=function(he,Ce){he=x(he),Ce=T(Ce);var He=this.map[he];this.map[he]=He?He+", "+Ce:Ce},R.prototype.delete=function(he){delete this.map[x(he)]},R.prototype.get=function(he){return he=x(he),this.has(he)?this.map[he]:null},R.prototype.has=function(he){return this.map.hasOwnProperty(x(he))},R.prototype.set=function(he,Ce){this.map[x(he)]=T(Ce)},R.prototype.forEach=function(he,Ce){for(var He in this.map)this.map.hasOwnProperty(He)&&he.call(Ce,this.map[He],He,this)},R.prototype.keys=function(){var he=[];return this.forEach(function(Ce,He){he.push(He)}),P(he)},R.prototype.values=function(){var he=[];return this.forEach(function(Ce){he.push(Ce)}),P(he)},R.prototype.entries=function(){var he=[];return this.forEach(function(Ce,He){he.push([He,Ce])}),P(he)},c.iterable&&(R.prototype[Symbol.iterator]=R.prototype.entries);function L(he){if(he.bodyUsed)return Promise.reject(new TypeError("Already read"));he.bodyUsed=!0}function I(he){return new Promise(function(Ce,He){he.onload=function(){Ce(he.result)},he.onerror=function(){He(he.error)}})}function U(he){var Ce=new FileReader,He=I(Ce);return Ce.readAsArrayBuffer(he),He}function W(he){var Ce=new FileReader,He=I(Ce);return Ce.readAsText(he),He}function te(he){for(var Ce=new Uint8Array(he),He=new Array(Ce.length),et=0;et<Ce.length;et++)He[et]=String.fromCharCode(Ce[et]);return He.join("")}function J(he){if(he.slice)return he.slice(0);var Ce=new Uint8Array(he.byteLength);return Ce.set(new Uint8Array(he)),Ce.buffer}function ge(){return this.bodyUsed=!1,this._initBody=function(he){this.bodyUsed=this.bodyUsed,this._bodyInit=he,he?typeof he=="string"?this._bodyText=he:c.blob&&Blob.prototype.isPrototypeOf(he)?this._bodyBlob=he:c.formData&&FormData.prototype.isPrototypeOf(he)?this._bodyFormData=he:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(he)?this._bodyText=he.toString():c.arrayBuffer&&c.blob&&d(he)?(this._bodyArrayBuffer=J(he.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(he)||p(he))?this._bodyArrayBuffer=J(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):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(he)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.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 W(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(te(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(Ne)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ce(he){var Ce=he.toUpperCase();return S.indexOf(Ce)>-1?Ce:he}function ae(he,Ce){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Ce=Ce||{};var He=Ce.body;if(he instanceof ae){if(he.bodyUsed)throw new TypeError("Already read");this.url=he.url,this.credentials=he.credentials,Ce.headers||(this.headers=new R(he.headers)),this.method=he.method,this.mode=he.mode,this.signal=he.signal,!He&&he._bodyInit!=null&&(He=he._bodyInit,he.bodyUsed=!0)}else this.url=String(he);if(this.credentials=Ce.credentials||this.credentials||"same-origin",(Ce.headers||!this.headers)&&(this.headers=new R(Ce.headers)),this.method=ce(Ce.method||this.method||"GET"),this.mode=Ce.mode||this.mode||null,this.signal=Ce.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&He)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(He),(this.method==="GET"||this.method==="HEAD")&&(Ce.cache==="no-store"||Ce.cache==="no-cache")){var et=/([?&])_=[^&]*/;if(et.test(this.url))this.url=this.url.replace(et,"$1_="+new Date().getTime());else{var at=/\?/;this.url+=(at.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})};function Ne(he){var Ce=new FormData;return he.trim().split("&").forEach(function(He){if(He){var et=He.split("="),at=et.shift().replace(/\+/g," "),Ee=et.join("=").replace(/\+/g," ");Ce.append(decodeURIComponent(at),decodeURIComponent(Ee))}}),Ce}function Je(he){var Ce=new R,He=he.replace(/\r?\n[\t ]+/g," ");return He.split("\r").map(function(et){return et.indexOf(`
|
|
5
|
+
`)===0?et.substr(1,et.length):et}).forEach(function(et){var at=et.split(":"),Ee=at.shift().trim();if(Ee){var Pe=at.join(":").trim();Ce.append(Ee,Pe)}}),Ce}ge.call(ae.prototype);function Ye(he,Ce){if(!(this instanceof Ye))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Ce||(Ce={}),this.type="default",this.status=Ce.status===void 0?200:Ce.status,this.ok=this.status>=200&&this.status<300,this.statusText=Ce.statusText===void 0?"":""+Ce.statusText,this.headers=new R(Ce.headers),this.url=Ce.url||"",this._initBody(he)}ge.call(Ye.prototype),Ye.prototype.clone=function(){return new Ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new R(this.headers),url:this.url})},Ye.error=function(){var he=new Ye(null,{status:0,statusText:""});return he.type="error",he};var Qe=[301,302,303,307,308];Ye.redirect=function(he,Ce){if(Qe.indexOf(Ce)===-1)throw new RangeError("Invalid status code");return new Ye(null,{status:Ce,headers:{location:he}})},s.DOMException=l.DOMException;try{new s.DOMException}catch{s.DOMException=function(Ce,He){this.message=Ce,this.name=He;var et=Error(Ce);this.stack=et.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function tt(he,Ce){return new Promise(function(He,et){var at=new ae(he,Ce);if(at.signal&&at.signal.aborted)return et(new s.DOMException("Aborted","AbortError"));var Ee=new XMLHttpRequest;function Pe(){Ee.abort()}Ee.onload=function(){var Ue={status:Ee.status,statusText:Ee.statusText,headers:Je(Ee.getAllResponseHeaders()||"")};Ue.url="responseURL"in Ee?Ee.responseURL:Ue.headers.get("X-Request-URL");var Re="response"in Ee?Ee.response:Ee.responseText;setTimeout(function(){He(new Ye(Re,Ue))},0)},Ee.onerror=function(){setTimeout(function(){et(new TypeError("Network request failed"))},0)},Ee.ontimeout=function(){setTimeout(function(){et(new TypeError("Network request failed"))},0)},Ee.onabort=function(){setTimeout(function(){et(new s.DOMException("Aborted","AbortError"))},0)};function Ve(Ue){try{return Ue===""&&l.location.href?l.location.href:Ue}catch{return Ue}}Ee.open(at.method,Ve(at.url),!0),at.credentials==="include"?Ee.withCredentials=!0:at.credentials==="omit"&&(Ee.withCredentials=!1),"responseType"in Ee&&(c.blob?Ee.responseType="blob":c.arrayBuffer&&at.headers.get("Content-Type")&&at.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Ee.responseType="arraybuffer")),Ce&&typeof Ce.headers=="object"&&!(Ce.headers instanceof R)?Object.getOwnPropertyNames(Ce.headers).forEach(function(Ue){Ee.setRequestHeader(Ue,T(Ce.headers[Ue]))}):at.headers.forEach(function(Ue,Re){Ee.setRequestHeader(Re,Ue)}),at.signal&&(at.signal.addEventListener("abort",Pe),Ee.onreadystatechange=function(){Ee.readyState===4&&at.signal.removeEventListener("abort",Pe)}),Ee.send(typeof at._bodyInit>"u"?null:at._bodyInit)})}return tt.polyfill=!0,l.fetch||(l.fetch=tt,l.Headers=R,l.Request=ae,l.Response=Ye),s.Headers=R,s.Request=ae,s.Response=Ye,s.fetch=tt,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(hh,hh.exports)),hh.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ko<"u"&&Ko.fetch?n=Ko.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof vM<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||mM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(zv,zv.exports);var eT=zv.exports;const tT=Bc(eT),V0=LI({__proto__:null,default:tT},[eT]);function H0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function U0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H0(Object(n),!0).forEach(function(r){yM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yM(e,t,n){return t=bM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bM(e){var t=wM(e,"string");return Rc(t)=="symbol"?t:String(t)}function wM(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rc(e){"@babel/helpers - typeof";return Rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rc(e)}var Ol;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Ol=global.fetch:typeof window<"u"&&window.fetch?Ol=window.fetch:Ol=fetch);var Ed;Q1()&&(typeof global<"u"&&global.XMLHttpRequest?Ed=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Ed=window.XMLHttpRequest));var ip;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ip=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ip=window.ActiveXObject));!Ol&&V0&&!Ed&&!ip&&(Ol=tT||V0);typeof Ol!="function"&&(Ol=void 0);var Yv=function(t,n){if(n&&Rc(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},W0=function(t,n,r,i){var o=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(d){r(null,{status:c.status,data:d})}).catch(r)};if(i){var s=i(t,n);if(s instanceof Promise){s.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):Ol(t,n).then(o).catch(r)},z0=!1,xM=function(t,n,r,i){t.queryStringParams&&(n=Yv(n,t.queryStringParams));var o=U0({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=U0({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},z0?{}:s),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{W0(n,l,i,c)}catch(d){if(!s||Object.keys(s).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(s).forEach(function(v){delete l[v]}),W0(n,l,i,c),z0=!0}catch(v){i(v)}}},SM=function(t,n,r,i){r&&Rc(r)==="object"&&(r=Yv("",r).slice(1)),t.queryStringParams&&(n=Yv(n,t.queryStringParams));try{var o;Ed?o=new Ed:o=new ip("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var l in s)o.setRequestHeader(l,s[l]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},TM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Ol&&n.indexOf("file:")!==0)return xM(t,n,r,i);if(Q1()||typeof ActiveXObject=="function")return SM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function kd(e){"@babel/helpers - typeof";return kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kd(e)}function Y0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y0(Object(n),!0).forEach(function(r){nT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rT(r.key),r)}}function EM(e,t,n){return t&&G0(e.prototype,t),n&&G0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nT(e,t,n){return t=rT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rT(e){var t=kM(e,"string");return kd(t)=="symbol"?t:String(t)}function kM(e,t){if(kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _M=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 nT({},r,i||"")},parseLoadPayload:function(n,r){},request:TM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},iT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};CM(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return EM(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=jg(jg(jg({},_M()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,s){var l=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=gM(c),c.then(function(d){if(!d)return s(null,{});var v=l.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});l.loadUrl(v,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,l=typeof i=="string"?[i]:i,c=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(l,c);this.options.request(this.options,n,d,function(v,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&v&&v.message&&v.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+v.message,!0);if(v)return r(v,!1);var x,T;try{typeof p.data=="string"?x=s.options.parse(p.data,i,o):x=p.data}catch{T="failed parsing "+n+" to json"}if(T)return r(T,!1);r(null,x)})}},{key:"create",value:function(n,r,i,o,s){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,o),d=0,v=[],p=[];n.forEach(function(x){var T=l.options.addPath;typeof l.options.addPath=="function"&&(T=l.options.addPath(x,r));var P=l.services.interpolator.interpolate(T,{lng:x,ns:r});l.options.request(l.options,P,c,function(R,L){d+=1,v.push(R),p.push(L),d===n.length&&typeof s=="function"&&s(v,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(p){var x=o.toResolveHierarchy(p);x.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(v){return d(v)}),c.forEach(function(v){n.allOptions.ns.forEach(function(p){i.read(v,p,"read",null,null,function(x,T){x&&s.warn("loading namespace ".concat(p," for language ").concat(v," failed"),x),!x&&T&&s.log("loaded namespace ".concat(p," for language ").concat(v),T),i.loaded("".concat(v,"|").concat(p),x,T)})})})}}}]),e}();iT.type="backend";var Jm=(e=>(e.en="en",e.de="de",e))(Jm||{});const OM={en:"English",de:"German"};ci.use(J1).use(rM).use(Y1).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(OM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[iT],backendOptions:[{loadPath:()=>{const e=location.protocol+"//"+location.host;return console.log("url",e),`${e}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});const DM=e=>{const t=Cd.useQueryClient(),n=X.useMemo(()=>e.axiosInstance||is,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Cd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account").then(i=>i.data)});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user"])}},[t]),r},PM=e=>{const t=Cd.useQueryClient(),n=X.useMemo(()=>e.axiosInstance||is,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Cd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user-permissions"])}},[t]),r},Qm=X.createContext({}),RM=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=DM({axiosInstance:r,baseUrl:n}),s=PM({axiosInstance:r,baseUrl:n});function l(){window.location.href=`${i}/authentication/login`}function c(){window.location.href=`${i}/authentication/logout`}return ze.jsx(Qm.Provider,{value:{user:o==null?void 0:o.data,login:l,logout:c,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},IM=()=>X.useContext(Qm);function AM(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}function MM(){const[e,t]=X.useState();return X.useEffect(()=>{const n=localStorage.getItem("language");t(n||Jm.en)},[]),{language:e,setLanguage:t}}const oT=X.createContext({}),LM=()=>X.useContext(oT),FM=ci,NM=L1,jM=()=>K1(),BM=({children:e})=>{const t=MM();return ze.jsx(oT.Provider,{value:t,children:ze.jsx(lM,{i18n:ci,children:e})})};var $M=typeof global=="object"&&global&&global.Object===Object&&global;const VM=$M;var HM=typeof self=="object"&&self&&self.Object===Object&&self,UM=VM||HM||Function("return this")();const aT=UM;var WM=aT.Symbol;const op=WM;var sT=Object.prototype,zM=sT.hasOwnProperty,YM=sT.toString,td=op?op.toStringTag:void 0;function GM(e){var t=zM.call(e,td),n=e[td];try{e[td]=void 0;var r=!0}catch{}var i=YM.call(e);return r&&(t?e[td]=n:delete e[td]),i}var qM=Object.prototype,XM=qM.toString;function KM(e){return XM.call(e)}var ZM="[object Null]",JM="[object Undefined]",q0=op?op.toStringTag:void 0;function QM(e){return e==null?e===void 0?JM:ZM:q0&&q0 in Object(e)?GM(e):KM(e)}function eL(e){return e!=null&&typeof e=="object"}var tL="[object Symbol]";function nL(e){return typeof e=="symbol"||eL(e)&&QM(e)==tL}var rL=/\s/;function iL(e){for(var t=e.length;t--&&rL.test(e.charAt(t)););return t}var oL=/^\s+/;function aL(e){return e&&e.slice(0,iL(e)+1).replace(oL,"")}function ap(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var X0=0/0,sL=/^[-+]0x[0-9a-f]+$/i,lL=/^0b[01]+$/i,uL=/^0o[0-7]+$/i,cL=parseInt;function K0(e){if(typeof e=="number")return e;if(nL(e))return X0;if(ap(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ap(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=aL(e);var n=lL.test(e);return n||uL.test(e)?cL(e.slice(2),n?2:8):sL.test(e)?X0:+e}var fL=function(){return aT.Date.now()};const Bg=fL;var dL="Expected a function",hL=Math.max,pL=Math.min;function Hh(e,t,n){var r,i,o,s,l,c,d=0,v=!1,p=!1,x=!0;if(typeof e!="function")throw new TypeError(dL);t=K0(t)||0,ap(n)&&(v=!!n.leading,p="maxWait"in n,o=p?hL(K0(n.maxWait)||0,t):o,x="trailing"in n?!!n.trailing:x);function T(ge){var S=r,ce=i;return r=i=void 0,d=ge,s=e.apply(ce,S),s}function P(ge){return d=ge,l=setTimeout(I,t),v?T(ge):s}function R(ge){var S=ge-c,ce=ge-d,ae=t-S;return p?pL(ae,o-ce):ae}function L(ge){var S=ge-c,ce=ge-d;return c===void 0||S>=t||S<0||p&&ce>=o}function I(){var ge=Bg();if(L(ge))return U(ge);l=setTimeout(I,R(ge))}function U(ge){return l=void 0,x&&r?T(ge):(r=i=void 0,s)}function W(){l!==void 0&&clearTimeout(l),d=0,r=c=i=l=void 0}function te(){return l===void 0?s:U(Bg())}function J(){var ge=Bg(),S=L(ge);if(r=arguments,i=this,c=ge,S){if(l===void 0)return P(c);if(p)return clearTimeout(l),l=setTimeout(I,t),T(c)}return l===void 0&&(l=setTimeout(I,t)),s}return J.cancel=W,J.flush=te,J}var gL="Expected a function";function vL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(gL);return ap(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Hh(e,t,{leading:r,maxWait:t,trailing:i})}var mL=!!(typeof window<"u"&&window.document&&window.document.createElement),yL=mL;const lT=Bc(yL);var wf=function(){return wf=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},wf.apply(this,arguments)},yf=null,Z0=null;lT&&window.addEventListener("resize",function(){Z0!==window.devicePixelRatio&&(Z0=window.devicePixelRatio,yf=null)});function J0(){if(yf===null){if(typeof document>"u")return yf=0,yf;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),yf=n}return yf}function uT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function cT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var fT=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(l,c){return c.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function dT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function hT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function pT(e){return".".concat(e.split(" ").join("."))}var bL=Object.freeze({__proto__:null,getElementWindow:uT,getElementDocument:cT,getOptions:fT,addClasses:dT,removeClasses:hT,classNamesToQuery:pT}),fu=uT,$g=cT,wL=fT,du=dT,hu=hT,_o=pT,ph=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.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=fu(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,du(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(){hu(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(du(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){hu(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,l,c,d,v,p,x,T,P,R;if(!(!r.draggedAxis||!r.contentWrapperEl)){var L,I=r.axis[r.draggedAxis].track,U=(s=(o=I.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,W=r.axis[r.draggedAxis].scrollbar,te=(c=(l=r.contentWrapperEl)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,J=parseInt((v=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&v!==void 0?v:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?L=i.pageY:L=i.pageX;var ge=L-((x=(p=I.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].offsetAttr])!==null&&x!==void 0?x:0)-r.axis[r.draggedAxis].dragOffset;ge=r.draggedAxis==="x"&&r.isRtl?((P=(T=I.rect)===null||T===void 0?void 0:T[r.axis[r.draggedAxis].sizeAttr])!==null&&P!==void 0?P:0)-W.size-ge:ge;var S=ge/(U-W.size),ce=S*(te-J);r.draggedAxis==="x"&&r.isRtl&&(ce=!((R=e.getRtlHelpers())===null||R===void 0)&&R.isScrollingToNegative?-ce:ce),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ce}},this.onEndDrag=function(i){var o=$g(r.el),s=fu(r.el);i.preventDefault(),i.stopPropagation(),hu(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=wf(wf({},e.defaultOptions),n),this.classNames=wf(wf({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=vL(this._onMouseMove,64),this.onWindowResize=Hh(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Hh(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Hh(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:J0()}catch{return J0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=$g(t),i=fu(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){lT&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(_o(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(_o(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(_o(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(_o(this.classNames.offset)),this.maskEl=this.el.querySelector(_o(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,_o(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(_o(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(_o(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(_o(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(_o(this.classNames.scrollbar)))||null,this.options.autoHide||(du(this.axis.x.scrollbar.el,this.classNames.visible),du(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=fu(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=fu(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,l=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 c=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var v=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=c>v,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="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 p=this.axis.x.isOverflowing?this.scrollbarWidth:0,x=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>o-x,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>v-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,l;return l=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?d:-d);var v=d/(s-c),p=~~((l-o.size)*v);p=t==="x"&&this.isRtl?-p+(l-o.size):p,o.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(du(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(hu(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),du(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?du(n.scrollbar.el,this.classNames.hover):hu(n.scrollbar.el,this.classNames.hover)):(hu(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),hu(this.axis[t].track.el,this.classNames.hover),hu(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=$g(this.el),o=fu(this.el),s=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,du(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,l;n===void 0&&(n="y");var c=this.axis[n];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=fu(this.el);this.axis[n].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var v=this.axis[n].scrollbar,p=(o=(i=v.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,x=parseInt((l=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),T=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],P=n==="y"?this.mouseY-p:this.mouseX-p,R=P<0?-1:1,L=R===-1?T-x:T+x,I=40,U=function(){r.contentWrapperEl&&(R===-1?T>L&&(T-=I,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)):T<L&&(T+=I,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)))};U()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=fu(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=wL,e.helpers=bL,e}(),Xo=function(){return Xo=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Xo.apply(this,arguments)};function xL(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var gT=Sn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=xL(e,["children","scrollableNodeProps"]),s=Sn.useRef(),l=Sn.useRef(),c=Sn.useRef(),d={},v={};Object.keys(o).forEach(function(T){Object.prototype.hasOwnProperty.call(ph.defaultOptions,T)?d[T]=o[T]:v[T]=o[T]});var p=Xo(Xo({},ph.defaultOptions.classNames),d.classNames),x=Xo(Xo({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||ph.defaultOptions.ariaLabel});return Sn.useEffect(function(){var T;return l.current=x.ref?x.ref.current:l.current,s.current&&(T=new ph(s.current,Xo(Xo(Xo({},d),l.current&&{scrollableNode:l.current}),c.current&&{contentNode:c.current})),typeof t=="function"?t(T):t&&(t.current=T)),function(){T==null||T.unMount(),T=null,typeof t=="function"&&t(null)}},[]),Sn.createElement("div",Xo({"data-simplebar":"init",ref:s},v),Sn.createElement("div",{className:p.wrapper},Sn.createElement("div",{className:p.heightAutoObserverWrapperEl},Sn.createElement("div",{className:p.heightAutoObserverEl})),Sn.createElement("div",{className:p.mask},Sn.createElement("div",{className:p.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Xo(Xo({},x),{ref:l}),contentNodeRef:c,contentNodeProps:{className:p.contentEl,ref:c}}):Sn.createElement("div",Xo({},x),Sn.createElement("div",{className:p.contentEl},n)))),Sn.createElement("div",{className:p.placeholder})),Sn.createElement("div",{className:"".concat(p.track," simplebar-horizontal")},Sn.createElement("div",{className:p.scrollbar})),Sn.createElement("div",{className:"".concat(p.track," simplebar-vertical")},Sn.createElement("div",{className:p.scrollbar})))});gT.displayName="SimpleBar";const vT=`[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}
|
|
6
|
+
`;function mT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=mT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function El(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mT(e))&&(r&&(r+=" "),r+=t);return r}const _d=e=>typeof e=="number"&&!isNaN(e),Oc=e=>typeof e=="string",Zo=e=>typeof e=="function",Uh=e=>Oc(e)||Zo(e)?e:null,Gv=e=>X.isValidElement(e)||Oc(e)||Zo(e)||_d(e);function SL(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Ap(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:c,preventExitTransition:d,done:v,nodeRef:p,isIn:x,playToast:T}=s;const P=r?`${t}--${c}`:t,R=r?`${n}--${c}`:n,L=X.useRef(0);return X.useLayoutEffect(()=>{const I=p.current,U=P.split(" "),W=te=>{te.target===p.current&&(T(),I.removeEventListener("animationend",W),I.removeEventListener("animationcancel",W),L.current===0&&te.type!=="animationcancel"&&I.classList.remove(...U))};I.classList.add(...U),I.addEventListener("animationend",W),I.addEventListener("animationcancel",W)},[]),X.useEffect(()=>{const I=p.current,U=()=>{I.removeEventListener("animationend",U),i?SL(I,v,o):v()};x||(d?U():(L.current=1,I.className+=` ${R}`,I.addEventListener("animationend",U)))},[x]),X.createElement(X.Fragment,null,l)}}function Q0(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const so=new Map;let Od=[];const qv=new Set,TL=e=>qv.forEach(t=>t(e)),yT=()=>so.size>0;function bT(e,t){var n;if(t)return!((n=so.get(t))==null||!n.isToastActive(e));let r=!1;return so.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function wT(e,t){Gv(e)&&(yT()||Od.push({content:e,options:t}),so.forEach(n=>{n.buildToast(e,t)}))}function ew(e,t){so.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function CL(e){const{subscribe:t,getSnapshot:n,setProps:r}=X.useRef(function(o){const s=o.containerId||1;return{subscribe(l){const c=function(v,p,x){let T=1,P=0,R=[],L=[],I=[],U=p;const W=new Map,te=new Set,J=()=>{I=Array.from(W.values()),te.forEach(ce=>ce())},ge=ce=>{L=ce==null?[]:L.filter(ae=>ae!==ce),J()},S=ce=>{const{toastId:ae,onOpen:Ne,updateId:Je,children:Ye}=ce.props,Qe=Je==null;ce.staleId&&W.delete(ce.staleId),W.set(ae,ce),L=[...L,ce.props.toastId].filter(tt=>tt!==ce.staleId),J(),x(Q0(ce,Qe?"added":"updated")),Qe&&Zo(Ne)&&Ne(X.isValidElement(Ye)&&Ye.props)};return{id:v,props:U,observe:ce=>(te.add(ce),()=>te.delete(ce)),toggle:(ce,ae)=>{W.forEach(Ne=>{ae!=null&&ae!==Ne.props.toastId||Zo(Ne.toggle)&&Ne.toggle(ce)})},removeToast:ge,toasts:W,clearQueue:()=>{P-=R.length,R=[]},buildToast:(ce,ae)=>{if((Ve=>{let{containerId:Ue,toastId:Re,updateId:Fe}=Ve;const Ge=Ue?Ue!==v:v!==1,lt=W.has(Re)&&Fe==null;return Ge||lt})(ae))return;const{toastId:Ne,updateId:Je,data:Ye,staleId:Qe,delay:tt}=ae,he=()=>{ge(Ne)},Ce=Je==null;Ce&&P++;const He={...U,style:U.toastStyle,key:T++,...Object.fromEntries(Object.entries(ae).filter(Ve=>{let[Ue,Re]=Ve;return Re!=null})),toastId:Ne,updateId:Je,data:Ye,closeToast:he,isIn:!1,className:Uh(ae.className||U.toastClassName),bodyClassName:Uh(ae.bodyClassName||U.bodyClassName),progressClassName:Uh(ae.progressClassName||U.progressClassName),autoClose:!ae.isLoading&&(et=ae.autoClose,at=U.autoClose,et===!1||_d(et)&&et>0?et:at),deleteToast(){const Ve=W.get(Ne),{onClose:Ue,children:Re}=Ve.props;Zo(Ue)&&Ue(X.isValidElement(Re)&&Re.props),x(Q0(Ve,"removed")),W.delete(Ne),P--,P<0&&(P=0),R.length>0?S(R.shift()):J()}};var et,at;He.closeButton=U.closeButton,ae.closeButton===!1||Gv(ae.closeButton)?He.closeButton=ae.closeButton:ae.closeButton===!0&&(He.closeButton=!Gv(U.closeButton)||U.closeButton);let Ee=ce;X.isValidElement(ce)&&!Oc(ce.type)?Ee=X.cloneElement(ce,{closeToast:he,toastProps:He,data:Ye}):Zo(ce)&&(Ee=ce({closeToast:he,toastProps:He,data:Ye}));const Pe={content:Ee,props:He,staleId:Qe};U.limit&&U.limit>0&&P>U.limit&&Ce?R.push(Pe):_d(tt)?setTimeout(()=>{S(Pe)},tt):S(Pe)},setProps(ce){U=ce},setToggle:(ce,ae)=>{W.get(ce).toggle=ae},isToastActive:ce=>L.some(ae=>ae===ce),getSnapshot:()=>U.newestOnTop?I.reverse():I}}(s,o,TL);so.set(s,c);const d=c.observe(l);return Od.forEach(v=>wT(v.content,v.options)),Od=[],()=>{d(),so.delete(s)}},setProps(l){var c;(c=so.get(s))==null||c.setProps(l)},getSnapshot(){var l;return(l=so.get(s))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const i=X.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return i.forEach(l=>{const{position:c}=l.props;s.has(c)||s.set(c,[]),s.get(c).push(l)}),Array.from(s,l=>o(l[0],l[1]))},isToastActive:bT,count:i==null?void 0:i.length}}function EL(e){const[t,n]=X.useState(!1),[r,i]=X.useState(!1),o=X.useRef(null),s=X.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:d,onClick:v,closeOnClick:p}=e;var x,T;function P(){n(!0)}function R(){n(!1)}function L(W){const te=o.current;s.canDrag&&te&&(s.didMove=!0,t&&R(),s.delta=e.draggableDirection==="x"?W.clientX-s.start:W.clientY-s.start,s.start!==W.clientX&&(s.canCloseOnClick=!1),te.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,te.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function I(){document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",I);const W=o.current;if(s.canDrag&&s.didMove&&W){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();W.style.transition="transform 0.2s, opacity 0.2s",W.style.removeProperty("transform"),W.style.removeProperty("opacity")}}(T=so.get((x={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||T.setToggle(x.id,x.fn),X.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||R(),window.addEventListener("focus",P),window.addEventListener("blur",R),()=>{window.removeEventListener("focus",P),window.removeEventListener("blur",R)}},[e.pauseOnFocusLoss]);const U={onPointerDown:function(W){if(e.draggable===!0||e.draggable===W.pointerType){s.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",I);const te=o.current;s.canCloseOnClick=!0,s.canDrag=!0,te.style.transition="none",e.draggableDirection==="x"?(s.start=W.clientX,s.removalDistance=te.offsetWidth*(e.draggablePercent/100)):(s.start=W.clientY,s.removalDistance=te.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(W){const{top:te,bottom:J,left:ge,right:S}=o.current.getBoundingClientRect();W.nativeEvent.type!=="touchend"&&e.pauseOnHover&&W.clientX>=ge&&W.clientX<=S&&W.clientY>=te&&W.clientY<=J?R():P()}};return l&&c&&(U.onMouseEnter=R,e.stacked||(U.onMouseLeave=P)),p&&(U.onClick=W=>{v&&v(W),s.canCloseOnClick&&d()}),{playToast:P,pauseToast:R,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:U}}function kL(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:c,progress:d,rtl:v,isIn:p,theme:x}=e;const T=o||c&&d===0,P={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(P.transform=`scaleX(${d})`);const R=El("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${x}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":v}),L=Zo(s)?s({rtl:v,type:i,defaultClassName:R}):El(R,s),I={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{p&&r()}};return X.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":T},X.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${x} Toastify__progress-bar--${i}`}),X.createElement("div",{role:"progressbar","aria-hidden":T?"true":"false","aria-label":"notification timer",className:L,style:P,...I}))}let _L=1;const xT=()=>""+_L++;function OL(e){return e&&(Oc(e.toastId)||_d(e.toastId))?e.toastId:xT()}function ud(e,t){return wT(e,t),t.toastId}function sp(e,t){return{...t,type:t&&t.type||e,toastId:OL(t)}}function gh(e){return(t,n)=>ud(t,sp(e,n))}function En(e,t){return ud(e,sp("default",t))}En.loading=(e,t)=>ud(e,sp("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),En.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Oc(i)?En.loading(i,n):En.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(v,p,x)=>{if(p==null)return void En.dismiss(r);const T={type:v,...l,...n,data:x},P=Oc(p)?{render:p}:p;return r?En.update(r,{...T,...P}):En(P.render,{...T,...P}),x},d=Zo(e)?e():e;return d.then(v=>c("success",s,v)).catch(v=>c("error",o,v)),d},En.success=gh("success"),En.info=gh("info"),En.error=gh("error"),En.warning=gh("warning"),En.warn=En.warning,En.dark=(e,t)=>ud(e,sp("default",{theme:"dark",...t})),En.dismiss=function(e){(function(t){var n;if(yT()){if(t==null||Oc(n=t)||_d(n))so.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=so.get(t.containerId))!=null&&r.removeToast(t.id)||so.forEach(i=>{i.removeToast(t.id)})}}else Od=Od.filter(i=>t!=null&&i.options.toastId!==t)})(e)},En.clearWaitingQueue=function(e){e===void 0&&(e={}),so.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},En.isActive=bT,En.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=so.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:xT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,ud(s,o)}},En.done=e=>{En.update(e,{progress:1})},En.onChange=function(e){return qv.add(e),()=>{qv.delete(e)}},En.play=e=>ew(!0,e),En.pause=e=>ew(!1,e);const DL=typeof window<"u"?X.useLayoutEffect:X.useEffect,vh=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return X.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Vg={info:function(e){return X.createElement(vh,{...e},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return X.createElement(vh,{...e},X.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return X.createElement(vh,{...e},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return X.createElement(vh,{...e},X.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 X.createElement("div",{className:"Toastify__spinner"})}},PL=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=EL(e),{closeButton:s,children:l,autoClose:c,onClick:d,type:v,hideProgressBar:p,closeToast:x,transition:T,position:P,className:R,style:L,bodyClassName:I,bodyStyle:U,progressClassName:W,progressStyle:te,updateId:J,role:ge,progress:S,rtl:ce,toastId:ae,deleteToast:Ne,isIn:Je,isLoading:Ye,closeOnClick:Qe,theme:tt}=e,he=El("Toastify__toast",`Toastify__toast-theme--${tt}`,`Toastify__toast--${v}`,{"Toastify__toast--rtl":ce},{"Toastify__toast--close-on-click":Qe}),Ce=Zo(R)?R({rtl:ce,position:P,type:v,defaultClassName:he}):El(he,R),He=function(Pe){let{theme:Ve,type:Ue,isLoading:Re,icon:Fe}=Pe,Ge=null;const lt={theme:Ve,type:Ue};return Fe===!1||(Zo(Fe)?Ge=Fe({...lt,isLoading:Re}):X.isValidElement(Fe)?Ge=X.cloneElement(Fe,lt):Re?Ge=Vg.spinner():(mt=>mt in Vg)(Ue)&&(Ge=Vg[Ue](lt))),Ge}(e),et=!!S||!c,at={closeToast:x,type:v,theme:tt};let Ee=null;return s===!1||(Ee=Zo(s)?s(at):X.isValidElement(s)?X.cloneElement(s,at):function(Pe){let{closeToast:Ve,theme:Ue,ariaLabel:Re="close"}=Pe;return X.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ue}`,type:"button",onClick:Fe=>{Fe.stopPropagation(),Ve(Fe)},"aria-label":Re},X.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},X.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"})))}(at)),X.createElement(T,{isIn:Je,done:Ne,position:P,preventExitTransition:n,nodeRef:r,playToast:o},X.createElement("div",{id:ae,onClick:d,"data-in":Je,className:Ce,...i,style:L,ref:r},X.createElement("div",{...Je&&{role:ge},className:Zo(I)?I({type:v}):El("Toastify__toast-body",I),style:U},He!=null&&X.createElement("div",{className:El("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ye})},He),X.createElement("div",null,l)),Ee,X.createElement(kL,{...J&&!et?{key:`pb-${J}`}:{},rtl:ce,theme:tt,delay:c,isRunning:t,isIn:Je,closeToast:x,hide:p,type:v,style:te,className:W,controlledProgress:et,progress:S||0})))},Mp=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},RL=Ap(Mp("bounce",!0));Ap(Mp("slide",!0));Ap(Mp("zoom"));Ap(Mp("flip"));const IL={position:"top-right",transition:RL,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function AL(e){let t={...IL,...e};const n=e.stacked,[r,i]=X.useState(!0),o=X.useRef(null),{getToastToRender:s,isToastActive:l,count:c}=CL(t),{className:d,style:v,rtl:p,containerId:x}=t;function T(R){const L=El("Toastify__toast-container",`Toastify__toast-container--${R}`,{"Toastify__toast-container--rtl":p});return Zo(d)?d({position:R,rtl:p,defaultClassName:L}):El(L,Uh(d))}function P(){n&&(i(!0),En.play())}return DL(()=>{if(n){var R;const L=o.current.querySelectorAll('[data-in="true"]'),I=12,U=(R=t.position)==null?void 0:R.includes("top");let W=0,te=0;Array.from(L).reverse().forEach((J,ge)=>{const S=J;S.classList.add("Toastify__toast--stacked"),ge>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=U?"top":"bot");const ce=W*(r?.2:1)+(r?0:I*ge);S.style.setProperty("--y",`${U?ce:-1*ce}px`),S.style.setProperty("--g",`${I}`),S.style.setProperty("--s",""+(1-(r?te:0))),W+=S.offsetHeight,te+=.025})}},[r,c,n]),X.createElement("div",{ref:o,className:"Toastify",id:x,onMouseEnter:()=>{n&&(i(!1),En.pause())},onMouseLeave:P},s((R,L)=>{const I=L.length?{...v}:{...v,pointerEvents:"none"};return X.createElement("div",{className:T(R),style:I,key:`container-${R}`},L.map(U=>{let{content:W,props:te}=U;return X.createElement(PL,{...te,stacked:n,collapseAll:P,isIn:l(te.toastId,te.containerId),style:te.style,key:`toast-${te.key}`},W)}))}))}function ML(){return ze.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ze.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"}),ze.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),ze.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function LL(){return ze.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ze.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),ze.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function FL(){return ze.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ze.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"}),ze.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 ey={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},NL=({closeToast:e})=>ze.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:ze.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ze.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"})})}),ty=e=>{En.success(e,{icon:ze.jsx(LL,{}),bodyStyle:{},position:"bottom-right",style:{...ey,background:ui.successLight,borderColor:ui.success,color:ui.success}})},Hd=e=>{En.error(e,{icon:ze.jsx(ML,{}),position:"bottom-right",style:{...ey,background:ui.dangerLight,borderColor:ui.danger,color:ui.danger}})},jL=e=>{En.error(e,{icon:ze.jsx(FL,{}),position:"bottom-right",style:{...ey,background:ui.warningLight,borderColor:ui.warning,color:ui.warning}})},BL=e=>{En(e,{closeButton:NL,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:ui.textPrimary}})};function ST(e){let t=null;return()=>(t==null&&(t=e()),t)}function $L(e,t){return e.filter(n=>n!==t)}function VL(e,t){const n=new Set,r=o=>n.add(o);e.forEach(r),t.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class HL{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=VL(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=$L(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class UL{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const TT="__NATIVE_FILE__",CT="__NATIVE_URL__",ET="__NATIVE_TEXT__",kT="__NATIVE_HTML__",tw=Object.freeze(Object.defineProperty({__proto__:null,FILE:TT,HTML:kT,TEXT:ET,URL:CT},Symbol.toStringTag,{value:"Module"}));function Hg(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const Xv={[TT]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[kT]:{exposeProperties:{html:(e,t)=>Hg(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[CT]:{exposeProperties:{urls:(e,t)=>Hg(e,t,"").split(`
|
|
7
|
+
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[ET]:{exposeProperties:{text:(e,t)=>Hg(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function WL(e,t){const n=Xv[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new UL(n);return r.loadDataTransfer(t),r}function Ug(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Xv).filter(n=>{const r=Xv[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const zL=ST(()=>/firefox/i.test(navigator.userAgent)),_T=ST(()=>!!window.safari);class nw{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let l=n.length-1;if(t===n[l])return r[l];let c=0,d=s.length-1,v;for(;c<=d;){v=Math.floor(.5*(c+d));const T=n[v];if(T<t)c=v+1;else if(T>t)d=v-1;else return r[v]}l=Math.max(0,d);const p=t-n[l],x=p*p;return r[l]+i[l]*p+o[l]*x+s[l]*p*x}constructor(t,n){const{length:r}=t,i=[];for(let T=0;T<r;T++)i.push(T);i.sort((T,P)=>t[T]<t[P]?-1:1);const o=[],s=[];let l,c;for(let T=0;T<r-1;T++)l=t[T+1]-t[T],c=n[T+1]-n[T],o.push(l),s.push(c/l);const d=[s[0]];for(let T=0;T<o.length-1;T++){const P=s[T],R=s[T+1];if(P*R<=0)d.push(0);else{l=o[T];const L=o[T+1],I=l+L;d.push(3*I/((I+L)/P+(I+l)/R))}}d.push(s[s.length-1]);const v=[],p=[];let x;for(let T=0;T<d.length-1;T++){x=s[T];const P=d[T],R=1/o[T],L=P+d[T+1]-x-x;v.push((x-P-L)*R),p.push(L*R*R)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=p}}const YL=1;function OT(e){const t=e.nodeType===YL?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function mh(e){return{x:e.clientX,y:e.clientY}}function GL(e){var t;return e.nodeName==="IMG"&&(zL()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function qL(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return _T()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function XL(e,t,n,r,i){const o=GL(t),l=OT(o?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:d,offsetHeight:v}=e,{anchorX:p,anchorY:x}=r,{dragPreviewWidth:T,dragPreviewHeight:P}=qL(o,t,d,v),R=()=>{let ge=new nw([0,.5,1],[c.y,c.y/v*P,c.y+P-v]).interpolate(x);return _T()&&o&&(ge+=(window.devicePixelRatio-1)*P),ge},L=()=>new nw([0,.5,1],[c.x,c.x/d*T,c.x+T-d]).interpolate(p),{offsetX:I,offsetY:U}=i,W=I===0||I,te=U===0||U;return{x:W?I:L(),y:te?U:R()}}let KL=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function ZL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ZL(e,i,n[i])})}return e}class JL{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=s=>this.handleDragStart(s,t),o=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=s=>this.handleDragEnter(s,t),i=s=>this.handleDragOver(s,t),o=s=>this.handleDrop(s,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return rw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return rw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(tw).some(n=>tw[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=WL(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&OT(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const s=mh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=Ug(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const v=this.monitor.getSourceId(),p=this.sourceNodes.get(v),x=this.sourcePreviewNodes.get(v)||p;if(x){const{anchorX:T,anchorY:P,offsetX:R,offsetY:L}=this.getCurrentSourcePreviewNodeOptions(),W=XL(p,x,s,{anchorX:T,anchorY:P},{offsetX:R,offsetY:L});l.setDragImage(x,W.x,W.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.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:l}=i,c=Ug(l);c&&this.beginDragNativeItem(c,l)},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:mh(i)}),o.some(l=>this.monitor.canDropOnTarget(l))&&(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=mh(i),this.scheduleHover(o),(o||[]).some(l=>this.monitor.canDropOnTarget(l))?(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 Ug(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:mh(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 KL(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new HL(this.isNodeInDocument)}}let yh;function QL(){return yh||(yh=new Image,yh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),yh}const e2=function(t,n,r){return new JL(t,n,r)};var Dc=[],t2=function(){return Dc.some(function(e){return e.activeTargets.length>0})},n2=function(){return Dc.some(function(e){return e.skippedTargets.length>0})},iw="ResizeObserver loop completed with undelivered notifications.",r2=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:iw}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=iw),window.dispatchEvent(e)},Dd;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Dd||(Dd={}));var Pc=function(e){return Object.freeze(e)},i2=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Pc(this)}return e}(),DT=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Pc(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,s=t.bottom,l=t.left,c=t.width,d=t.height;return{x:n,y:r,top:i,right:o,bottom:s,left:l,width:c,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ny=function(e){return e instanceof SVGElement&&"getBBox"in e},PT=function(e){if(ny(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},ow=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},o2=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},cd=typeof window<"u"?window:{},bh=new WeakMap,aw=/auto|scroll/,a2=/^tb|vertical/,s2=/msie|trident/i.test(cd.navigator&&cd.navigator.userAgent),Rs=function(e){return parseFloat(e||"0")},_f=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new i2((n?t:e)||0,(n?e:t)||0)},sw=Pc({devicePixelContentBoxSize:_f(),borderBoxSize:_f(),contentBoxSize:_f(),contentRect:new DT(0,0,0,0)}),RT=function(e,t){if(t===void 0&&(t=!1),bh.has(e)&&!t)return bh.get(e);if(PT(e))return bh.set(e,sw),sw;var n=getComputedStyle(e),r=ny(e)&&e.ownerSVGElement&&e.getBBox(),i=!s2&&n.boxSizing==="border-box",o=a2.test(n.writingMode||""),s=!r&&aw.test(n.overflowY||""),l=!r&&aw.test(n.overflowX||""),c=r?0:Rs(n.paddingTop),d=r?0:Rs(n.paddingRight),v=r?0:Rs(n.paddingBottom),p=r?0:Rs(n.paddingLeft),x=r?0:Rs(n.borderTopWidth),T=r?0:Rs(n.borderRightWidth),P=r?0:Rs(n.borderBottomWidth),R=r?0:Rs(n.borderLeftWidth),L=p+d,I=c+v,U=R+T,W=x+P,te=l?e.offsetHeight-W-e.clientHeight:0,J=s?e.offsetWidth-U-e.clientWidth:0,ge=i?L+U:0,S=i?I+W:0,ce=r?r.width:Rs(n.width)-ge-J,ae=r?r.height:Rs(n.height)-S-te,Ne=ce+L+J+U,Je=ae+I+te+W,Ye=Pc({devicePixelContentBoxSize:_f(Math.round(ce*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:_f(Ne,Je,o),contentBoxSize:_f(ce,ae,o),contentRect:new DT(p,c,ce,ae)});return bh.set(e,Ye),Ye},IT=function(e,t,n){var r=RT(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Dd.DEVICE_PIXEL_CONTENT_BOX:return s;case Dd.BORDER_BOX:return i;default:return o}},l2=function(){function e(t){var n=RT(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Pc([n.borderBoxSize]),this.contentBoxSize=Pc([n.contentBoxSize]),this.devicePixelContentBoxSize=Pc([n.devicePixelContentBoxSize])}return e}(),AT=function(e){if(PT(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},u2=function(){var e=1/0,t=[];Dc.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(d){var v=new l2(d.target),p=AT(d.target);l.push(v),d.lastReportedSize=IT(d.target,d.observedBox),p<e&&(e=p)}),t.push(function(){s.callback.call(s.observer,l,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},lw=function(e){Dc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(AT(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},c2=function(){var e=0;for(lw(e);t2();)e=u2(),lw(e);return n2()&&r2(),e>0},Wg,MT=[],f2=function(){return MT.splice(0).forEach(function(e){return e()})},d2=function(e){if(!Wg){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return f2()}).observe(n,r),Wg=function(){n.textContent="".concat(t?t--:t++)}}MT.push(e),Wg()},h2=function(e){d2(function(){requestAnimationFrame(e)})},Wh=0,p2=function(){return!!Wh},g2=250,v2={attributes:!0,characterData:!0,childList:!0,subtree:!0},uw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],cw=function(e){return e===void 0&&(e=0),Date.now()+e},zg=!1,m2=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=g2),!zg){zg=!0;var r=cw(t);h2(function(){var i=!1;try{i=c2()}finally{if(zg=!1,t=r-cw(),!p2())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,v2)};document.body?n():cd.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),uw.forEach(function(n){return cd.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),uw.forEach(function(n){return cd.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Kv=new m2,fw=function(e){!Wh&&e>0&&Kv.start(),Wh+=e,!Wh&&Kv.stop()},y2=function(e){return!ny(e)&&!o2(e)&&getComputedStyle(e).display==="inline"},b2=function(){function e(t,n){this.target=t,this.observedBox=n||Dd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=IT(this.target,this.observedBox,!0);return y2(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),w2=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),wh=new WeakMap,dw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},xh=function(){function e(){}return e.connect=function(t,n){var r=new w2(t,n);wh.set(t,r)},e.observe=function(t,n,r){var i=wh.get(t),o=i.observationTargets.length===0;dw(i.observationTargets,n)<0&&(o&&Dc.push(i),i.observationTargets.push(new b2(n,r&&r.box)),fw(1),Kv.schedule())},e.unobserve=function(t,n){var r=wh.get(t),i=dw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Dc.splice(Dc.indexOf(r),1),r.observationTargets.splice(i,1),fw(-1))},e.disconnect=function(t){var n=this,r=wh.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),x2=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");xh.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ow(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");xh.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ow(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");xh.unobserve(this,t)},e.prototype.disconnect=function(){xh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Zv=function(e,t){return Zv=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])},Zv(e,t)};function LT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var st=function(){return st=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},st.apply(this,arguments)};function Pa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Gr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Qo(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var hw="production",FT=typeof process>"u"||process.env===void 0?hw:process.env.NODE_ENV||hw,Tl=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Pd={measureLayout:Tl(["layout","layoutId","drag"]),animation:Tl(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Tl(["exit"]),drag:Tl(["drag","dragControls"]),focus:Tl(["whileFocus"]),hover:Tl(["whileHover","onHoverStart","onHoverEnd"]),tap:Tl(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Tl(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Tl(["whileInView","onViewportEnter","onViewportLeave"])};function S2(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Pd.projectionNodeConstructor=e[t]:Pd[t].Component=e[t])}var Ud=function(){},Oa=function(){};process.env.NODE_ENV!=="production"&&(Ud=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Oa=function(e,t){if(!e)throw new Error(t)});var NT=X.createContext({strict:!1}),jT=Object.keys(Pd),T2=jT.length;function C2(e,t,n){var r=[],i=X.useContext(NT);if(!t)return null;FT!=="production"&&n&&i.strict&&Oa(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<T2;o++){var s=jT[o],l=Pd[s],c=l.isEnabled,d=l.Component;c(e)&&d&&r.push(Sn.createElement(d,st({key:s},e,{visualElement:t})))}return r}var ry=X.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Lp=X.createContext({});function E2(){return X.useContext(Lp).visualElement}var Fp=X.createContext(null),jf=typeof document<"u",pw=jf?X.useLayoutEffect:X.useEffect,Jv={current:null},BT=!1;function k2(){if(BT=!0,!!jf)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Jv.current=e.matches};e.addListener(t),t()}else Jv.current=!1}function _2(){!BT&&k2();var e=Gr(X.useState(Jv.current),1),t=e[0];return t}function O2(){var e=_2(),t=X.useContext(ry).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function D2(e,t,n,r){var i=X.useContext(NT),o=E2(),s=X.useContext(Fp),l=O2(),c=X.useRef(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1,shouldReduceMotion:l}));var d=c.current;return pw(function(){d==null||d.syncRender()}),X.useEffect(function(){var v;(v=d==null?void 0:d.animationState)===null||v===void 0||v.animateChanges()}),pw(function(){return function(){return d==null?void 0:d.notifyUnmount()}},[]),d}function xf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function P2(e,t,n){return X.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[t])}function $T(e){return Array.isArray(e)}function rs(e){return typeof e=="string"||$T(e)}function R2(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function I2(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function VT(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n??e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n??e.custom,r,i)),t}function Np(e,t,n){var r=e.getProps();return VT(r,t,n??r.custom,R2(e),I2(e))}function jp(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||rs(e.initial)||rs(e.animate)||rs(e.whileHover)||rs(e.whileDrag)||rs(e.whileTap)||rs(e.whileFocus)||rs(e.exit)}function HT(e){return!!(jp(e)||e.variants)}function A2(e,t){if(jp(e)){var n=e.initial,r=e.animate;return{initial:n===!1||rs(n)?n:void 0,animate:rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function M2(e){var t=A2(e,X.useContext(Lp)),n=t.initial,r=t.animate;return X.useMemo(function(){return{initial:n,animate:r}},[gw(n),gw(r)])}function gw(e){return Array.isArray(e)?e.join(" "):e}function Bp(e){var t=X.useRef(null);return t.current===null&&(t.current=e()),t.current}var fd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},L2=1;function F2(){return Bp(function(){if(fd.hasEverUpdated)return L2++})}var UT=X.createContext({}),WT=X.createContext({});function N2(e,t,n,r){var i,o=t.layoutId,s=t.layout,l=t.drag,c=t.dragConstraints,d=t.layoutScroll,v=X.useContext(WT);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||c&&xf(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:v,layoutScroll:d}))}var j2=function(e){LT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(X.Component);function B2(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&S2(t);function l(c,d){var v=$2(c);c=st(st({},c),{layoutId:v});var p=X.useContext(ry),x=null,T=M2(c),P=p.isStatic?void 0:F2(),R=o(c,p.isStatic);return!p.isStatic&&jf&&(T.visualElement=D2(s,R,st(st({},p),c),n),N2(P,c,T.visualElement,r||Pd.projectionNodeConstructor),x=C2(c,T.visualElement,t)),Sn.createElement(j2,{visualElement:T.visualElement,props:st(st({},p),c)},x,Sn.createElement(Lp.Provider,{value:T},i(s,c,P,P2(R,T.visualElement,d),R,p.isStatic,T.visualElement)))}return X.forwardRef(l)}function $2(e){var t,n=e.layoutId,r=(t=X.useContext(UT))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function V2(e){function t(r,i){return i===void 0&&(i={}),B2(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var H2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function iy(e){return typeof e!="string"||e.includes("-")?!1:!!(H2.indexOf(e)>-1||/[A-Z]/.test(e))}var lp={};function U2(e){Object.assign(lp,e)}var Qv=["","X","Y","Z"],W2=["translate","scale","rotate","skew"],Rd=["transformPerspective","x","y","z"];W2.forEach(function(e){return Qv.forEach(function(t){return Rd.push(e+t)})});function z2(e,t){return Rd.indexOf(e)-Rd.indexOf(t)}var Y2=new Set(Rd);function Wd(e){return Y2.has(e)}var G2=new Set(["originX","originY","originZ"]);function zT(e){return G2.has(e)}function YT(e,t){var n=t.layout,r=t.layoutId;return Wd(e)||zT(e)||(n||r!==void 0)&&(!!lp[e]||e==="opacity")}var Al=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},q2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function X2(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,l=s===void 0?!0:s,c=t.allowTransformNone,d=c===void 0?!0:c,v="";o.sort(z2);for(var p=!1,x=o.length,T=0;T<x;T++){var P=o[T];v+="".concat(q2[P]||P,"(").concat(i[P],") "),P==="z"&&(p=!0)}return!p&&l?v+="translateZ(0)":v=v.trim(),r?v=r(i,n?"":v):d&&n&&(v="none"),v}function K2(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,s=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(s)}function GT(e){return e.startsWith("--")}var Z2=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const qT=(e,t)=>n=>Math.max(Math.min(n,t),e),dd=e=>e%1?Number(e.toFixed(5)):e,Id=/(-)?([\d]*\.?[\d])+/g,em=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,J2=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function zd(e){return typeof e=="string"}const $c={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hd=Object.assign(Object.assign({},$c),{transform:qT(0,1)}),Sh=Object.assign(Object.assign({},$c),{default:1}),Yd=e=>({test:t=>zd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),gu=Yd("deg"),Fs=Yd("%"),jt=Yd("px"),Q2=Yd("vh"),eF=Yd("vw"),vw=Object.assign(Object.assign({},Fs),{parse:e=>Fs.parse(e)/100,transform:e=>Fs.transform(e*100)}),oy=(e,t)=>n=>!!(zd(n)&&J2.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),XT=(e,t,n)=>r=>{if(!zd(r))return r;const[i,o,s,l]=r.match(Id);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Ec={test:oy("hsl","hue"),parse:XT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fs.transform(dd(t))+", "+Fs.transform(dd(n))+", "+dd(hd.transform(r))+")"},tF=qT(0,255),Yg=Object.assign(Object.assign({},$c),{transform:e=>Math.round(tF(e))}),xu={test:oy("rgb","red"),parse:XT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yg.transform(e)+", "+Yg.transform(t)+", "+Yg.transform(n)+", "+dd(hd.transform(r))+")"};function nF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const tm={test:oy("#"),parse:nF,transform:xu.transform},io={test:e=>xu.test(e)||tm.test(e)||Ec.test(e),parse:e=>xu.test(e)?xu.parse(e):Ec.test(e)?Ec.parse(e):tm.parse(e),transform:e=>zd(e)?e:e.hasOwnProperty("red")?xu.transform(e):Ec.transform(e)},KT="${c}",ZT="${n}";function rF(e){var t,n,r,i;return isNaN(e)&&zd(e)&&((n=(t=e.match(Id))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(em))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function JT(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(em);r&&(n=r.length,e=e.replace(em,KT),t.push(...r.map(io.parse)));const i=e.match(Id);return i&&(e=e.replace(Id,ZT),t.push(...i.map($c.parse))),{values:t,numColors:n,tokenised:e}}function QT(e){return JT(e).values}function eC(e){const{values:t,numColors:n,tokenised:r}=JT(e),i=t.length;return o=>{let s=r;for(let l=0;l<i;l++)s=s.replace(l<n?KT:ZT,l<n?io.transform(o[l]):dd(o[l]));return s}}const iF=e=>typeof e=="number"?0:e;function oF(e){const t=QT(e);return eC(e)(t.map(iF))}const Ml={test:rF,parse:QT,createTransformer:eC,getAnimatableNone:oF},aF=new Set(["brightness","contrast","saturate","opacity"]);function sF(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Id)||[];if(!r)return e;const i=n.replace(r,"");let o=aF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const lF=/([a-z-]*)\(.*?\)/g,nm=Object.assign(Object.assign({},Ml),{getAnimatableNone:e=>{const t=e.match(lF);return t?t.map(sF).join(" "):e}});var mw=st(st({},$c),{transform:Math.round}),tC={borderWidth:jt,borderTopWidth:jt,borderRightWidth:jt,borderBottomWidth:jt,borderLeftWidth:jt,borderRadius:jt,radius:jt,borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomRightRadius:jt,borderBottomLeftRadius:jt,width:jt,maxWidth:jt,height:jt,maxHeight:jt,size:jt,top:jt,right:jt,bottom:jt,left:jt,padding:jt,paddingTop:jt,paddingRight:jt,paddingBottom:jt,paddingLeft:jt,margin:jt,marginTop:jt,marginRight:jt,marginBottom:jt,marginLeft:jt,rotate:gu,rotateX:gu,rotateY:gu,rotateZ:gu,scale:Sh,scaleX:Sh,scaleY:Sh,scaleZ:Sh,skew:gu,skewX:gu,skewY:gu,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:hd,originX:vw,originY:vw,originZ:jt,zIndex:mw,fillOpacity:hd,strokeOpacity:hd,numOctaves:mw};function ay(e,t,n,r){var i,o=e.style,s=e.vars,l=e.transform,c=e.transformKeys,d=e.transformOrigin;c.length=0;var v=!1,p=!1,x=!0;for(var T in t){var P=t[T];if(GT(T)){s[T]=P;continue}var R=tC[T],L=Z2(P,R);if(Wd(T)){if(v=!0,l[T]=L,c.push(T),!x)continue;P!==((i=R.default)!==null&&i!==void 0?i:0)&&(x=!1)}else zT(T)?(d[T]=L,p=!0):o[T]=L}v?o.transform=X2(e,n,x,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),p&&(o.transformOrigin=K2(d))}var sy=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function nC(e,t,n){for(var r in t)!Al(t[r])&&!YT(r,n)&&(e[r]=t[r])}function uF(e,t,n){var r=e.transformTemplate;return X.useMemo(function(){var i=sy();ay(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return st(st({},o),s)},[t])}function cF(e,t,n){var r=e.style||{},i={};return nC(i,r,e),Object.assign(i,uF(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function fF(e,t,n){var r={},i=cF(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var dF=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function up(e){return dF.has(e)}var rC=function(e){return!up(e)};function hF(e){e&&(rC=function(t){return t.startsWith("on")?!up(t):e(t)})}try{hF(require("@emotion/is-prop-valid").default)}catch{}function pF(e,t,n){var r={};for(var i in e)(rC(i)||n===!0&&up(i)||!t&&!up(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yw(e,t,n){return typeof e=="string"?e:jt.transform(t+n*e)}function gF(e,t,n){var r=yw(t,e.x,e.width),i=yw(n,e.y,e.height);return"".concat(r," ").concat(i)}var vF={offset:"stroke-dashoffset",array:"stroke-dasharray"},mF={offset:"strokeDashoffset",array:"strokeDasharray"};function yF(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?vF:mF;e[o.offset]=jt.transform(-r);var s=jt.transform(t),l=jt.transform(n);e[o.array]="".concat(s," ").concat(l)}function ly(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,l=t.originY,c=t.pathLength,d=t.pathSpacing,v=d===void 0?1:d,p=t.pathOffset,x=p===void 0?0:p,T=Pa(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);ay(e,T,n,r),e.attrs=e.style,e.style={};var P=e.attrs,R=e.style,L=e.dimensions;P.transform&&(L&&(R.transform=P.transform),delete P.transform),L&&(s!==void 0||l!==void 0||R.transform)&&(R.transformOrigin=gF(L,s!==void 0?s:.5,l!==void 0?l:.5)),i!==void 0&&(P.x=i),o!==void 0&&(P.y=o),c!==void 0&&yF(P,c,v,x,!1)}var iC=function(){return st(st({},sy()),{attrs:{}})};function bF(e,t){var n=X.useMemo(function(){var i=iC();return ly(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),st(st({},i.attrs),{style:st({},i.style)})},[t]);if(e.style){var r={};nC(r,e.style,e),n.style=st(st({},r),n.style)}return n}function wF(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,l){var c=s.latestValues,d=iy(n)?bF:fF,v=d(r,c,l),p=pF(r,typeof n=="string",e),x=st(st(st({},p),v),{ref:o});return i&&(x["data-projection-id"]=i),X.createElement(n,x)};return t}var xF=/([a-z])([A-Z])/g,SF="$1-$2",oC=function(e){return e.replace(xF,SF).toLowerCase()};function aC(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var s in o)e.style.setProperty(s,o[s])}var sC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function lC(e,t,n,r){aC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(sC.has(i)?i:oC(i),t.attrs[i])}function uy(e){var t=e.style,n={};for(var r in t)(Al(t[r])||YT(r,e))&&(n[r]=t[r]);return n}function uC(e){var t=uy(e);for(var n in e)if(Al(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function cy(e){return typeof e=="object"&&typeof e.start=="function"}var Ad=function(e){return Array.isArray(e)},TF=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},cC=function(e){return Ad(e)?e[e.length-1]||0:e};function zh(e){var t=Al(e)?e.get():e;return TF(t)?t.toValue():t}function bw(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,l={latestValues:CF(t,n,r,i),renderState:o()};return s&&(l.mount=function(c){return s(t,c,l)}),l}var fC=function(e){return function(t,n){var r=X.useContext(Lp),i=X.useContext(Fp);return n?bw(e,t,r,i):Bp(function(){return bw(e,t,r,i)})}};function CF(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var l in s)i[l]=zh(s[l]);var c=e.initial,d=e.animate,v=jp(e),p=HT(e);t&&p&&!v&&e.inherit!==!1&&(c??(c=t.initial),d??(d=t.animate));var x=o||c===!1,T=x?d:c;if(T&&typeof T!="boolean"&&!cy(T)){var P=Array.isArray(T)?T:[T];P.forEach(function(R){var L=VT(e,R);if(L){var I=L.transitionEnd;L.transition;var U=Pa(L,["transitionEnd","transition"]);for(var W in U){var te=U[W];if(Array.isArray(te)){var J=x?te.length-1:0;te=te[J]}te!==null&&(i[W]=te)}for(var W in I)i[W]=I[W]}})}return i}var EF={useVisualState:fC({scrapeMotionValuesFromProps:uC,createRenderState:iC,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}ly(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),lC(t,r)}})},kF={useVisualState:fC({scrapeMotionValuesFromProps:uy,createRenderState:sy})};function _F(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,l=iy(e)?EF:kF;return st(st({},l),{preloadedFeatures:n,useRender:wF(s),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var jn;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(jn||(jn={}));function $p(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function rm(e,t,n,r){X.useEffect(function(){var i=e.current;if(n&&i)return $p(i,t,n,r)},[e,t,n,r])}function OF(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jn.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jn.Focus,!1)};rm(n,"focus",t?r:void 0),rm(n,"blur",t?i:void 0)}function dC(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function hC(e){var t=!!e.touches;return t}function DF(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var PF={pageX:0,pageY:0};function RF(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||PF;return{x:r[t+"X"],y:r[t+"Y"]}}function IF(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function fy(e,t){return t===void 0&&(t="page"),{point:hC(e)?RF(e,t):IF(e,t)}}var pC=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,fy(r))};return t?DF(n):n},AF=function(){return jf&&window.onpointerdown===null},MF=function(){return jf&&window.ontouchstart===null},LF=function(){return jf&&window.onmousedown===null},FF={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},NF={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function gC(e){return AF()?e:MF()?NF[e]:LF()?FF[e]:e}function Of(e,t,n,r){return $p(e,gC(t),pC(n,t==="pointerdown"),r)}function cp(e,t,n,r){return rm(e,gC(t),n&&pC(n,t==="pointerdown"),r)}function vC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var ww=vC("dragHorizontal"),xw=vC("dragVertical");function mC(e){var t=!1;if(e==="y")t=xw();else if(e==="x")t=ww();else{var n=ww(),r=xw();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function yC(){var e=mC(!0);return e?(e(),!1):!0}function Sw(e,t,n){return function(r,i){var o;!dC(r)||yC()||((o=e.animationState)===null||o===void 0||o.setActive(jn.Hover,t),n==null||n(r,i))}}function jF(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;cp(i,"pointerenter",t||r?Sw(i,!0,t):void 0,{passive:!t}),cp(i,"pointerleave",n||r?Sw(i,!1,n):void 0,{passive:!n})}var bC=function(e,t){return t?e===t?!0:bC(e,t.parentElement):!1};function wC(e){return X.useEffect(function(){return function(){return e()}},[])}const fp=(e,t,n)=>Math.min(Math.max(n,e),t),Gg=.001,BF=.01,Tw=10,$F=.05,VF=1;function HF({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Ud(e<=Tw*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=fp($F,VF,s),e=fp(BF,Tw,e/1e3),s<1?(i=d=>{const v=d*s,p=v*e,x=v-n,T=im(d,s),P=Math.exp(-p);return Gg-x/T*P},o=d=>{const p=d*s*e,x=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,P=Math.exp(-p),R=im(Math.pow(d,2),s);return(-i(d)+Gg>0?-1:1)*((x-T)*P)/R}):(i=d=>{const v=Math.exp(-d*e),p=(d-n)*e+1;return-Gg+v*p},o=d=>{const v=Math.exp(-d*e),p=(n-d)*(e*e);return v*p});const l=5/e,c=WF(i,o,l);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const UF=12;function WF(e,t,n){let r=n;for(let i=1;i<UF;i++)r=r-e(r)/t(r);return r}function im(e,t){return e*Math.sqrt(1-t*t)}const zF=["duration","bounce"],YF=["stiffness","damping","mass"];function Cw(e,t){return t.some(n=>e[n]!==void 0)}function GF(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Cw(e,YF)&&Cw(e,zF)){const n=HF(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function dy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Pa(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:l,damping:c,mass:d,velocity:v,duration:p,isResolvedFromDuration:x}=GF(o),T=Ew,P=Ew;function R(){const L=v?-(v/1e3):0,I=n-t,U=c/(2*Math.sqrt(l*d)),W=Math.sqrt(l/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),U<1){const te=im(W,U);T=J=>{const ge=Math.exp(-U*W*J);return n-ge*((L+U*W*I)/te*Math.sin(te*J)+I*Math.cos(te*J))},P=J=>{const ge=Math.exp(-U*W*J);return U*W*ge*(Math.sin(te*J)*(L+U*W*I)/te+I*Math.cos(te*J))-ge*(Math.cos(te*J)*(L+U*W*I)-te*I*Math.sin(te*J))}}else if(U===1)T=te=>n-Math.exp(-W*te)*(I+(L+W*I)*te);else{const te=W*Math.sqrt(U*U-1);T=J=>{const ge=Math.exp(-U*W*J),S=Math.min(te*J,300);return n-ge*((L+U*W*I)*Math.sinh(S)+te*I*Math.cosh(S))/te}}}return R(),{next:L=>{const I=T(L);if(x)s.done=L>=p;else{const U=P(L)*1e3,W=Math.abs(U)<=r,te=Math.abs(n-I)<=i;s.done=W&&te}return s.value=s.done?n:I,s},flipTarget:()=>{v=-v,[t,n]=[n,t],R()}}}dy.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Ew=e=>0,Md=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ur=(e,t,n)=>-n*e+n*t+e;function qg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=qg(c,l,e+1/3),o=qg(c,l,e),s=qg(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const qF=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},XF=[tm,xu,Ec],_w=e=>XF.find(t=>t.test(e)),Ow=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,xC=(e,t)=>{let n=_w(e),r=_w(t);Oa(!!n,Ow(e)),Oa(!!r,Ow(t));let i=n.parse(e),o=r.parse(t);n===Ec&&(i=kw(i),n=xu),r===Ec&&(o=kw(o),r=xu);const s=Object.assign({},i);return l=>{for(const c in s)c!=="alpha"&&(s[c]=qF(i[c],o[c],l));return s.alpha=ur(i.alpha,o.alpha,l),n.transform(s)}},om=e=>typeof e=="number",KF=(e,t)=>n=>t(e(n)),Vp=(...e)=>e.reduce(KF);function SC(e,t){return om(e)?n=>ur(e,t,n):io.test(e)?xC(e,t):CC(e,t)}const TC=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>SC(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},ZF=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=SC(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function Dw(e){const t=Ml.parse(e),n=t.length;let r=0,i=0,o=0;for(let s=0;s<n;s++)r||typeof t[s]=="number"?r++:t[s].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const CC=(e,t)=>{const n=Ml.createTransformer(t),r=Dw(e),i=Dw(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Vp(TC(r.parsed,i.parsed),n):(Ud(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)},JF=(e,t)=>n=>ur(e,t,n);function QF(e){if(typeof e=="number")return JF;if(typeof e=="string")return io.test(e)?xC:CC;if(Array.isArray(e))return TC;if(typeof e=="object")return ZF}function eN(e,t,n){const r=[],i=n||QF(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]:t;l=Vp(c,l)}r.push(l)}return r}function tN([e,t],[n]){return r=>n(Md(e,t,r))}function nN(e,t){const n=e.length,r=n-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[r]&&(o=r-1,s=!0),!s){let c=1;for(;c<n&&!(e[c]>i||c===r);c++);o=c-1}const l=Md(e[o],e[o+1],i);return t[o](l)}}function EC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;Oa(o===t.length,"Both input and output ranges must be the same length"),Oa(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=eN(t,r,i),l=o===2?tN(e,s):nN(e,s);return n?c=>l(fp(e[0],e[o-1],c)):l}const Hp=e=>t=>1-e(1-t),hy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rN=e=>t=>Math.pow(t,e),kC=e=>t=>t*t*((e+1)*t-e),iN=e=>{const t=kC(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},_C=1.525,oN=4/11,aN=8/11,sN=9/10,py=e=>e,gy=rN(2),lN=Hp(gy),OC=hy(gy),DC=e=>1-Math.sin(Math.acos(e)),vy=Hp(DC),uN=hy(vy),my=kC(_C),cN=Hp(my),fN=hy(my),dN=iN(_C),hN=4356/361,pN=35442/1805,gN=16061/1805,dp=e=>{if(e===1||e===0)return e;const t=e*e;return e<oN?7.5625*t:e<aN?9.075*t-9.9*e+3.4:e<sN?hN*t-pN*e+gN:10.8*e*e-20.52*e+10.72},vN=Hp(dp),mN=e=>e<.5?.5*(1-dp(1-e*2)):.5*dp(e*2-1)+.5;function yN(e,t){return e.map(()=>t||OC).splice(0,e.length-1)}function bN(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function wN(e,t){return e.map(n=>n*t)}function Yh({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],l=wN(r&&r.length===s.length?r:bN(s),i);function c(){return EC(l,s,{ease:Array.isArray(n)?n:yN(s,n)})}let d=c();return{next:v=>(o.value=d(v),o.done=v>=i,o),flipTarget:()=>{s.reverse(),d=c()}}}function xN({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let l=n*e;const c=t+l,d=o===void 0?c:o(c);return d!==c&&(l=d-t),{next:v=>{const p=-l*Math.exp(-v/r);return s.done=!(p>i||p<-i),s.value=s.done?d:d+p,s},flipTarget:()=>{}}}const Pw={keyframes:Yh,spring:dy,decay:xN};function SN(e){if(Array.isArray(e.to))return Yh;if(Pw[e.type])return Pw[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Yh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?dy:Yh}const PC=1/60*1e3,TN=typeof performance<"u"?()=>performance.now():()=>Date.now(),RC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(TN()),PC);function CN(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,v=!1)=>{const p=v&&i,x=p?t:n;return d&&s.add(c),x.indexOf(c)===-1&&(x.push(c),p&&i&&(r=t.length)),c},cancel:c=>{const d=n.indexOf(c);d!==-1&&n.splice(d,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d<r;d++){const v=t[d];v(c),s.has(v)&&(l.schedule(v),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const EN=40;let am=!0,Ld=!1,sm=!1;const Df={delta:0,timestamp:0},Gd=["read","update","preRender","render","postRender"],Up=Gd.reduce((e,t)=>(e[t]=CN(()=>Ld=!0),e),{}),Ns=Gd.reduce((e,t)=>{const n=Up[t];return e[t]=(r,i=!1,o=!1)=>(Ld||_N(),n.schedule(r,i,o)),e},{}),Rf=Gd.reduce((e,t)=>(e[t]=Up[t].cancel,e),{}),Xg=Gd.reduce((e,t)=>(e[t]=()=>Up[t].process(Df),e),{}),kN=e=>Up[e].process(Df),IC=e=>{Ld=!1,Df.delta=am?PC:Math.max(Math.min(e-Df.timestamp,EN),1),Df.timestamp=e,sm=!0,Gd.forEach(kN),sm=!1,Ld&&(am=!1,RC(IC))},_N=()=>{Ld=!0,am=!0,sm||RC(IC)},hp=()=>Df;function AC(e,t,n=0){return e-t-n}function ON(e,t,n=0,r=!0){return r?AC(t+-e,t,n):t-(e-t)+n}function DN(e,t,n,r){return r?e>=t+n:e<=-n}const PN=e=>{const t=({delta:n})=>e(n);return{start:()=>Ns.update(t,!0),stop:()=>Rf.update(t)}};function MC(e){var t,n,{from:r,autoplay:i=!0,driver:o=PN,elapsed:s=0,repeat:l=0,repeatType:c="loop",repeatDelay:d=0,onPlay:v,onStop:p,onComplete:x,onRepeat:T,onUpdate:P}=e,R=Pa(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=R,I,U=0,W=R.duration,te,J=!1,ge=!0,S;const ce=SN(R);!((n=(t=ce).needsInterpolation)===null||n===void 0)&&n.call(t,r,L)&&(S=EC([0,100],[r,L],{clamp:!1}),r=0,L=100);const ae=ce(Object.assign(Object.assign({},R),{from:r,to:L}));function Ne(){U++,c==="reverse"?(ge=U%2===0,s=ON(s,W,d,ge)):(s=AC(s,W,d),c==="mirror"&&ae.flipTarget()),J=!1,T&&T()}function Je(){I.stop(),x&&x()}function Ye(tt){if(ge||(tt=-tt),s+=tt,!J){const he=ae.next(Math.max(0,s));te=he.value,S&&(te=S(te)),J=ge?he.done:s<=0}P==null||P(te),J&&(U===0&&(W??(W=s)),U<l?DN(s,W,d,ge)&&Ne():Je())}function Qe(){v==null||v(),I=o(Ye),I.start()}return i&&Qe(),{stop:()=>{p==null||p(),I.stop()}}}function LC(e,t){return t?e*(1e3/t):0}function RN({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:l=10,restDelta:c=1,modifyTarget:d,driver:v,onUpdate:p,onComplete:x,onStop:T}){let P;function R(W){return n!==void 0&&W<n||r!==void 0&&W>r}function L(W){return n===void 0?r:r===void 0||Math.abs(n-W)<Math.abs(r-W)?n:r}function I(W){P==null||P.stop(),P=MC(Object.assign(Object.assign({},W),{driver:v,onUpdate:te=>{var J;p==null||p(te),(J=W.onUpdate)===null||J===void 0||J.call(W,te)},onComplete:x,onStop:T}))}function U(W){I(Object.assign({type:"spring",stiffness:s,damping:l,restDelta:c},W))}if(R(e))U({from:e,velocity:t,to:L(e)});else{let W=i*t+e;typeof d<"u"&&(W=d(W));const te=L(W),J=te===n?-1:1;let ge,S;const ce=ae=>{ge=S,S=ae,t=LC(ae-ge,hp().delta),(J===1&&ae>te||J===-1&&ae<te)&&U({from:ae,to:te,velocity:t})};I({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:c,modifyTarget:d,onUpdate:R(W)?ce:void 0})}return{stop:()=>P==null?void 0:P.stop()}}const lm=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Rw=e=>lm(e)&&e.hasOwnProperty("z"),Th=(e,t)=>Math.abs(e-t);function FC(e,t){if(om(e)&&om(t))return Th(e,t);if(lm(e)&&lm(t)){const n=Th(e.x,t.x),r=Th(e.y,t.y),i=Rw(e)&&Rw(t)?Th(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const NC=(e,t)=>1-3*t+3*e,jC=(e,t)=>3*t-6*e,BC=e=>3*e,pp=(e,t,n)=>((NC(t,n)*e+jC(t,n))*e+BC(t))*e,$C=(e,t,n)=>3*NC(t,n)*e*e+2*jC(t,n)*e+BC(t),IN=1e-7,AN=10;function MN(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=pp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>IN&&++l<AN);return s}const LN=8,FN=.001;function NN(e,t,n,r){for(let i=0;i<LN;++i){const o=$C(t,n,r);if(o===0)return t;const s=pp(t,n,r)-e;t-=s/o}return t}const Gh=11,Ch=1/(Gh-1);function jN(e,t,n,r){if(e===t&&n===r)return py;const i=new Float32Array(Gh);for(let s=0;s<Gh;++s)i[s]=pp(s*Ch,e,n);function o(s){let l=0,c=1;const d=Gh-1;for(;c!==d&&i[c]<=s;++c)l+=Ch;--c;const v=(s-i[c])/(i[c+1]-i[c]),p=l+v*Ch,x=$C(p,e,n);return x>=FN?NN(s,p,e,n):x===0?p:MN(s,l,l+Ch,e,n)}return s=>s===0||s===1?s:pp(o(s),t,r)}function BN(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,l=X.useRef(!1),c=X.useRef(null),d={passive:!(n||t||r||P)};function v(){var R;(R=c.current)===null||R===void 0||R.call(c),c.current=null}function p(){var R;return v(),l.current=!1,(R=o.animationState)===null||R===void 0||R.setActive(jn.Tap,!1),!yC()}function x(R,L){p()&&(bC(o.getInstance(),R.target)?t==null||t(R,L):r==null||r(R,L))}function T(R,L){p()&&(r==null||r(R,L))}function P(R,L){var I;v(),!l.current&&(l.current=!0,c.current=Vp(Of(window,"pointerup",x,d),Of(window,"pointercancel",T,d)),(I=o.animationState)===null||I===void 0||I.setActive(jn.Tap,!0),n==null||n(R,L))}cp(o,"pointerdown",s?P:void 0,d),wC(v)}var Iw=new Set;function VC(e,t,n){e||Iw.has(t)||(console.warn(t),n&&console.warn(n),Iw.add(t))}var um=new WeakMap,Kg=new WeakMap,$N=function(e){var t;(t=um.get(e.target))===null||t===void 0||t(e)},VN=function(e){e.forEach($N)};function HN(e){var t=e.root,n=Pa(e,["root"]),r=t||document;Kg.has(r)||Kg.set(r,{});var i=Kg.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(VN,st({root:t},n))),i[o]}function UN(e,t,n){var r=HN(t);return um.set(e,n),r.observe(e),function(){um.delete(e),r.unobserve(e)}}function WN(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,l=X.useRef({hasEnteredView:!1,isInView:!1}),c=!!(n||r||i);s.once&&l.current.hasEnteredView&&(c=!1);var d=typeof IntersectionObserver>"u"?GN:YN;d(c,l.current,t,s)}var zN={some:0,all:1};function YN(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,l=s===void 0?"some":s,c=r.once;X.useEffect(function(){if(e){var d={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof l=="number"?l:zN[l]},v=function(p){var x,T=p.isIntersecting;if(t.isInView!==T&&(t.isInView=T,!(c&&!T&&t.hasEnteredView))){T&&(t.hasEnteredView=!0),(x=n.animationState)===null||x===void 0||x.setActive(jn.InView,T);var P=n.getProps(),R=T?P.onViewportEnter:P.onViewportLeave;R==null||R(p)}};return UN(n.getInstance(),d,v)}},[e,i,o,l])}function GN(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;X.useEffect(function(){!e||!o||(FT!=="production"&&VC(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var l=n.getProps().onViewportEnter;l==null||l(null),(s=n.animationState)===null||s===void 0||s.setActive(jn.InView,!0)}))},[e])}var Su=function(e){return function(t){return e(t),null}},qN={inView:Su(WN),tap:Su(BN),focus:Su(OF),hover:Su(jF)},XN=0,KN=function(){return XN++},ZN=function(){return Bp(KN)};function HC(){var e=X.useContext(Fp);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=ZN();X.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function UC(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var gp=function(e){return e*1e3},Aw={linear:py,easeIn:gy,easeInOut:OC,easeOut:lN,circIn:DC,circInOut:uN,circOut:vy,backIn:my,backInOut:fN,backOut:cN,anticipate:dN,bounceIn:vN,bounceInOut:mN,bounceOut:dp},Mw=function(e){if(Array.isArray(e)){Oa(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=Gr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return jN(n,r,i,o)}else if(typeof e=="string")return Oa(Aw[e]!==void 0,"Invalid easing type '".concat(e,"'")),Aw[e];return e},JN=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Lw=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Ml.test(t)&&!t.startsWith("url("))},vc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Eh=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Zg=function(){return{type:"keyframes",ease:"linear",duration:.3}},QN=function(e){return{type:"keyframes",duration:.8,values:e}},Fw={x:vc,y:vc,z:vc,rotate:vc,rotateX:vc,rotateY:vc,rotateZ:vc,scaleX:Eh,scaleY:Eh,scale:Eh,opacity:Zg,backgroundColor:Zg,color:Zg,default:Eh},ej=function(e,t){var n;return Ad(t)?n=QN:n=Fw[e]||Fw.default,st({to:t},n(t))},tj=st(st({},tC),{color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:nm,WebkitFilter:nm}),yy=function(e){return tj[e]};function by(e,t){var n,r=yy(e);return r!==nm&&(r=Ml),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function nj(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Pa(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var Nw=!1;function rj(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=Pa(e,["ease","times","yoyo","flip","loop"]),l=st({},s);return n&&(l.offset=n),s.duration&&(l.duration=gp(s.duration)),s.repeatDelay&&(l.repeatDelay=gp(s.repeatDelay)),t&&(l.ease=JN(t)?t.map(Mw):Mw(t)),s.type==="tween"&&(l.type="keyframes"),(r||o||i)&&(Ud(!Nw,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Nw=!0,r?l.repeatType="reverse":o?l.repeatType="loop":i&&(l.repeatType="mirror"),l.repeat=o||r||i||s.repeat),s.type!=="spring"&&(l.type="keyframes"),l}function ij(e,t){var n,r,i=wy(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function oj(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Qo([],Gr(e.to),!1),e.to[0]=e.from),e}function aj(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),oj(t),nj(e)||(e=st(st({},e),ej(n,t.to))),st(st({},t),rj(e))}function sj(e,t,n,r,i){var o,s=wy(r,e),l=(o=s.from)!==null&&o!==void 0?o:t.get(),c=Lw(e,n);l==="none"&&c&&typeof n=="string"?l=by(e,n):jw(l)&&typeof n=="string"?l=Bw(n):!Array.isArray(n)&&jw(n)&&typeof l=="string"&&(n=Bw(l));var d=Lw(e,l);Ud(d===c,"You are trying to animate ".concat(e,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property."));function v(){var x={from:l,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(T){return t.set(T)}};return s.type==="inertia"||s.type==="decay"?RN(st(st({},x),s)):MC(st(st({},aj(s,x,e)),{onUpdate:function(T){var P;x.onUpdate(T),(P=s.onUpdate)===null||P===void 0||P.call(s,T)},onComplete:function(){var T;x.onComplete(),(T=s.onComplete)===null||T===void 0||T.call(s)}}))}function p(){var x,T,P=cC(n);return t.set(P),i(),(x=s==null?void 0:s.onUpdate)===null||x===void 0||x.call(s,P),(T=s==null?void 0:s.onComplete)===null||T===void 0||T.call(s),{stop:function(){}}}return!d||!c||s.type===!1?p:v}function jw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Bw(e){return typeof e=="number"?0:by("",e)}function wy(e,t){return e[t]||e.default||e}function xy(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,l=sj(e,t,n,r,i),c=ij(r,e),d=function(){return s=l()};return c?o=window.setTimeout(d,gp(c)):d(),function(){clearTimeout(o),s==null||s.stop()}})}var lj=function(e){return/^\-?\d*\.?\d+$/.test(e)},uj=function(e){return/^0[^.\s]+$/.test(e)};function Sy(e,t){e.indexOf(t)===-1&&e.push(t)}function Ty(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var pd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return Sy(this.subscriptions,t),function(){return Ty(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var s=this.subscriptions[o];s&&s(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),cj=function(e){return!isNaN(parseFloat(e))},fj=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new pd,this.velocityUpdateSubscribers=new pd,this.renderSubscribers=new pd,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=hp(),s=o.delta,l=o.timestamp;n.lastUpdated!==l&&(n.timeDelta=s,n.lastUpdated=l,Ns.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Ns.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=cj(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?LC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function If(e){return new fj(e)}var WC=function(e){return function(t){return t.test(e)}},dj={test:function(e){return e==="auto"},parse:function(e){return e}},zC=[$c,jt,Fs,gu,eF,Q2,dj],nd=function(e){return zC.find(WC(e))},hj=Qo(Qo([],Gr(zC),!1),[io,Ml],!1),pj=function(e){return hj.find(WC(e))};function gj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,If(n))}function vj(e,t){var n=Np(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=Pa(r,["transitionEnd","transition"]);s=st(st({},s),o);for(var l in s){var c=cC(s[l]);gj(e,l,c)}}function mj(e,t,n){var r,i,o,s,l=Object.keys(t).filter(function(T){return!e.hasValue(T)}),c=l.length;if(c)for(var d=0;d<c;d++){var v=l[d],p=t[v],x=null;Array.isArray(p)&&(x=p[0]),x===null&&(x=(i=(r=n[v])!==null&&r!==void 0?r:e.readValue(v))!==null&&i!==void 0?i:t[v]),x!=null&&(typeof x=="string"&&(lj(x)||uj(x))?x=parseFloat(x):!pj(x)&&Ml.test(p)&&(x=by(v,p)),e.addValue(v,If(x)),(o=(s=n)[v])!==null&&o!==void 0||(s[v]=x),e.setBaseTarget(v,x))}}function yj(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function bj(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=yj(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function wj(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return cm(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=cm(e,t,n);else{var o=typeof t=="function"?Np(e,t,n.custom):t;r=YC(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function cm(e,t,n){var r;n===void 0&&(n={});var i=Np(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var l=i?function(){return YC(e,i,n)}:function(){return Promise.resolve()},c=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(T){T===void 0&&(T=0);var P=s.delayChildren,R=P===void 0?0:P,L=s.staggerChildren,I=s.staggerDirection;return xj(e,t,R+T,L,I,n)}:function(){return Promise.resolve()},d=s.when;if(d){var v=Gr(d==="beforeChildren"?[l,c]:[c,l],2),p=v[0],x=v[1];return p().then(x)}else return Promise.all([l(),c(n.delay)])}function YC(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,l=i.transitionOverride,c=i.type,d=e.makeTargetAnimatable(t),v=d.transition,p=v===void 0?e.getDefaultTransition():v,x=d.transitionEnd,T=Pa(d,["transition","transitionEnd"]);l&&(p=l);var P=[],R=c&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[c]);for(var L in T){var I=e.getValue(L),U=T[L];if(!(!I||U===void 0||R&&Tj(R,L))){var W=st({delay:s},p);e.shouldReduceMotion&&Wd(L)&&(W=st(st({},W),{type:!1,delay:0}));var te=xy(L,I,U,W);P.push(te)}}return Promise.all(P).then(function(){x&&vj(e,x)})}function xj(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],l=(e.variantChildren.size-1)*r,c=i===1?function(d){return d===void 0&&(d=0),d*r}:function(d){return d===void 0&&(d=0),l-d*r};return Array.from(e.variantChildren).sort(Sj).forEach(function(d,v){s.push(cm(d,t,st(st({},o),{delay:n+c(v)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(s)}function Sj(e,t){return e.sortNodePosition(t)}function Tj(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var Cy=[jn.Animate,jn.InView,jn.Focus,jn.Hover,jn.Tap,jn.Drag,jn.Exit],Cj=Qo([],Gr(Cy),!1).reverse(),Ej=Cy.length;function kj(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return wj(e,r,i)}))}}function _j(e){var t=kj(e),n=Dj(),r={},i=!0,o=function(v,p){var x=Np(e,p);if(x){x.transition;var T=x.transitionEnd,P=Pa(x,["transition","transitionEnd"]);v=st(st(st({},v),P),T)}return v};function s(v){return r[v]!==void 0}function l(v){t=v(e)}function c(v,p){for(var x,T=e.getProps(),P=e.getVariantContext(!0)||{},R=[],L=new Set,I={},U=1/0,W=function(S){var ce=Cj[S],ae=n[ce],Ne=(x=T[ce])!==null&&x!==void 0?x:P[ce],Je=rs(Ne),Ye=ce===p?ae.isActive:null;Ye===!1&&(U=S);var Qe=Ne===P[ce]&&Ne!==T[ce]&&Je;if(Qe&&i&&e.manuallyAnimateOnMount&&(Qe=!1),ae.protectedKeys=st({},I),!ae.isActive&&Ye===null||!Ne&&!ae.prevProp||cy(Ne)||typeof Ne=="boolean")return"continue";var tt=Oj(ae.prevProp,Ne),he=tt||ce===p&&ae.isActive&&!Qe&&Je||S>U&&Je,Ce=Array.isArray(Ne)?Ne:[Ne],He=Ce.reduce(o,{});Ye===!1&&(He={});var et=ae.prevResolvedValues,at=et===void 0?{}:et,Ee=st(st({},at),He),Pe=function(Fe){he=!0,L.delete(Fe),ae.needsAnimating[Fe]=!0};for(var Ve in Ee){var Ue=He[Ve],Re=at[Ve];I.hasOwnProperty(Ve)||(Ue!==Re?Ad(Ue)&&Ad(Re)?!UC(Ue,Re)||tt?Pe(Ve):ae.protectedKeys[Ve]=!0:Ue!==void 0?Pe(Ve):L.add(Ve):Ue!==void 0&&L.has(Ve)?Pe(Ve):ae.protectedKeys[Ve]=!0)}ae.prevProp=Ne,ae.prevResolvedValues=He,ae.isActive&&(I=st(st({},I),He)),i&&e.blockInitialAnimation&&(he=!1),he&&!Qe&&R.push.apply(R,Qo([],Gr(Ce.map(function(Fe){return{animation:Fe,options:st({type:ce},v)}})),!1))},te=0;te<Ej;te++)W(te);if(r=st({},I),L.size){var J={};L.forEach(function(S){var ce=e.getBaseTarget(S);ce!==void 0&&(J[S]=ce)}),R.push({animation:J})}var ge=!!R.length;return i&&T.initial===!1&&!e.manuallyAnimateOnMount&&(ge=!1),i=!1,ge?t(R):Promise.resolve()}function d(v,p,x){var T;if(n[v].isActive===p)return Promise.resolve();(T=e.variantChildren)===null||T===void 0||T.forEach(function(L){var I;return(I=L.animationState)===null||I===void 0?void 0:I.setActive(v,p)}),n[v].isActive=p;var P=c(x,v);for(var R in n)n[R].protectedKeys={};return P}return{isAnimated:s,animateChanges:c,setActive:d,setAnimateFunction:l,getState:function(){return n}}}function Oj(e,t){return typeof t=="string"?t!==e:$T(t)?!UC(t,e):!1}function mc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dj(){var e;return e={},e[jn.Animate]=mc(!0),e[jn.InView]=mc(),e[jn.Hover]=mc(),e[jn.Tap]=mc(),e[jn.Drag]=mc(),e[jn.Focus]=mc(),e[jn.Exit]=mc(),e}var Pj={animation:Su(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=_j(t)),cy(n)&&X.useEffect(function(){return n.subscribe(t)},[n])}),exit:Su(function(e){var t=e.custom,n=e.visualElement,r=Gr(HC(),2),i=r[0],o=r[1],s=X.useContext(Fp);X.useEffect(function(){var l,c;n.isPresent=i;var d=(l=n.animationState)===null||l===void 0?void 0:l.setActive(jn.Exit,!i,{custom:(c=s==null?void 0:s.custom)!==null&&c!==void 0?c:t});!i&&(d==null||d.then(o))},[i])})},GC=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,s=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var x=Qg(i.lastMoveEventInfo,i.history),T=i.startEvent!==null,P=FC(x.offset,{x:0,y:0})>=3;if(!(!T&&!P)){var R=x.point,L=hp().timestamp;i.history.push(st(st({},R),{timestamp:L}));var I=i.handlers,U=I.onStart,W=I.onMove;T||(U&&U(i.lastMoveEvent,x),i.startEvent=i.lastMoveEvent),W&&W(i.lastMoveEvent,x)}}},this.handlePointerMove=function(x,T){if(i.lastMoveEvent=x,i.lastMoveEventInfo=Jg(T,i.transformPagePoint),dC(x)&&x.buttons===0){i.handlePointerUp(x,T);return}Ns.update(i.updatePoint,!0)},this.handlePointerUp=function(x,T){i.end();var P=i.handlers,R=P.onEnd,L=P.onSessionEnd,I=Qg(Jg(T,i.transformPagePoint),i.history);i.startEvent&&R&&R(x,I),L&&L(x,I)},!(hC(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var l=fy(t),c=Jg(l,this.transformPagePoint),d=c.point,v=hp().timestamp;this.history=[st(st({},d),{timestamp:v})];var p=n.onSessionStart;p&&p(t,Qg(c,this.history)),this.removeListeners=Vp(Of(window,"pointermove",this.handlePointerMove),Of(window,"pointerup",this.handlePointerUp),Of(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Rf.update(this.updatePoint)},e}();function Jg(e,t){return t?{point:t(e.point)}:e}function $w(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qg(e,t){var n=e.point;return{point:n,delta:$w(n,qC(t)),offset:$w(n,Rj(t)),velocity:Ij(t,.1)}}function Rj(e){return e[0]}function qC(e){return e[e.length-1]}function Ij(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=qC(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>gp(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ll(e){return e.max-e.min}function Vw(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),FC(e,t)<n}function Hw(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=ur(t.min,t.max,e.origin),e.scale=Ll(n)/Ll(t),(Vw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ur(n.min,n.max,e.origin)-e.originPoint,(Vw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function gd(e,t,n,r){Hw(e.x,t.x,n.x,r==null?void 0:r.originX),Hw(e.y,t.y,n.y,r==null?void 0:r.originY)}function Uw(e,t,n){e.min=n.min+t.min,e.max=e.min+Ll(t)}function Aj(e,t,n){Uw(e.x,t.x,n.x),Uw(e.y,t.y,n.y)}function Ww(e,t,n){e.min=t.min-n.min,e.max=e.min+Ll(t)}function vd(e,t,n){Ww(e.x,t.x,n.x),Ww(e.y,t.y,n.y)}function Mj(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?ur(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?ur(i,e,n.max):Math.min(e,i)),e}function zw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Lj(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:zw(e.x,r,o),y:zw(e.y,n,i)}}function Yw(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Gr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function Fj(e,t){return{x:Yw(e.x,t.x),y:Yw(e.y,t.y)}}function Nj(e,t){var n=.5,r=Ll(e),i=Ll(t);return i>r?n=Md(t.min,t.max-r,e.min):r>i&&(n=Md(e.min,e.max-i,t.min)),fp(0,1,n)}function jj(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var fm=.35;function Bj(e){return e===void 0&&(e=fm),e===!1?e=0:e===!0&&(e=fm),{x:Gw(e,"left","right"),y:Gw(e,"top","bottom")}}function Gw(e,t,n){return{min:qw(e,t),max:qw(e,n)}}function qw(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var Xw=function(){return{translate:0,scale:1,origin:0,originPoint:0}},md=function(){return{x:Xw(),y:Xw()}},Kw=function(){return{min:0,max:0}},Li=function(){return{x:Kw(),y:Kw()}};function Ms(e){return[e("x"),e("y")]}function XC(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function $j(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function Vj(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ev(e){return e===void 0||e===1}function KC(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!ev(t)||!ev(n)||!ev(r)}function vu(e){return KC(e)||Zw(e.x)||Zw(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Zw(e){return e&&e!=="0%"}function vp(e,t,n){var r=e-n,i=t*r;return n+i}function Jw(e,t,n,r,i){return i!==void 0&&(e=vp(e,i,r)),vp(e,n,r)+t}function dm(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=Jw(e.min,t,n,r,i),e.max=Jw(e.max,t,n,r,i)}function ZC(e,t){var n=t.x,r=t.y;dm(e.x,n.translate,n.scale,n.originPoint),dm(e.y,r.translate,r.scale,r.originPoint)}function Hj(e,t,n,r){var i,o;r===void 0&&(r=!1);var s=n.length;if(s){t.x=t.y=1;for(var l,c,d=0;d<s;d++)l=n[d],c=l.projectionDelta,((o=(i=l.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Sf(e,{x:-l.scroll.x,y:-l.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,ZC(e,c)),r&&vu(l.latestValues)&&Sf(e,l.latestValues))}}function yu(e,t){e.min=e.min+t,e.max=e.max+t}function Qw(e,t,n){var r=Gr(n,3),i=r[0],o=r[1],s=r[2],l=t[s]!==void 0?t[s]:.5,c=ur(e.min,e.max,l);dm(e,t[i],t[o],c,t.scale)}var Uj=["x","scaleX","originX"],Wj=["y","scaleY","originY"];function Sf(e,t){Qw(e.x,t,Uj),Qw(e.y,t,Wj)}function JC(e,t){return XC(Vj(e.getBoundingClientRect(),t))}function zj(e,t,n){var r=JC(e,n),i=t.scroll;return i&&(yu(r.x,i.x),yu(r.y,i.y)),r}var Yj=new WeakMap,Gj=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Li(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,s=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var l=function(p){r.stopAnimation(),s&&r.snapToCursor(fy(p,"page").point)},c=function(p,x){var T,P=r.getProps(),R=P.drag,L=P.dragPropagation,I=P.onDragStart;R&&!L&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=mC(R),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Ms(function(U){var W,te,J=r.getAxisMotionValue(U).get()||0;if(Fs.test(J)){var ge=(te=(W=r.visualElement.projection)===null||W===void 0?void 0:W.layout)===null||te===void 0?void 0:te.actual[U];if(ge){var S=Ll(ge);J=S*(parseFloat(J)/100)}}r.originPoint[U]=J}),I==null||I(p,x),(T=r.visualElement.animationState)===null||T===void 0||T.setActive(jn.Drag,!0))},d=function(p,x){var T=r.getProps(),P=T.dragPropagation,R=T.dragDirectionLock,L=T.onDirectionLock,I=T.onDrag;if(!(!P&&!r.openGlobalLock)){var U=x.offset;if(R&&r.currentDirection===null){r.currentDirection=qj(U),r.currentDirection!==null&&(L==null||L(r.currentDirection));return}r.updateAxis("x",x.point,U),r.updateAxis("y",x.point,U),r.visualElement.syncRender(),I==null||I(p,x)}},v=function(p,x){return r.stop(p,x)};this.panSession=new GC(t,{onSessionStart:l,onStart:c,onMove:d,onSessionEnd:v},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(jn.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!kh(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Mj(s,this.constraints[t],this.elastic[t])),o.set(s)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,s=this.constraints;r&&xf(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=Lj(o.actual,r):this.constraints=!1,this.elastic=Bj(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ms(function(l){t.getAxisMotionValue(l)&&(t.constraints[l]=jj(o.actual[l],t.constraints[l]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!xf(n))return!1;var i=n.current;Oa(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var s=zj(i,o.root,this.visualElement.getTransformPagePoint()),l=Fj(o.layout.actual,s);if(r){var c=r($j(l));this.hasMutatedConstraints=!!c,c&&(l=XC(c))}return l},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,l=r.dragTransition,c=r.dragSnapToOrigin,d=r.onDragTransitionEnd,v=this.constraints||{},p=Ms(function(x){var T;if(kh(x,i,n.currentDirection)){var P=(T=v==null?void 0:v[x])!==null&&T!==void 0?T:{};c&&(P={min:0,max:0});var R=s?200:1e6,L=s?40:1e7,I=st(st({type:"inertia",velocity:o?t[x]:0,bounceStiffness:R,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10},l),P);return n.startAxisValueAnimation(x,I)}});return Promise.all(p).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return xy(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Ms(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;Ms(function(r){var i=n.getProps().drag;if(kh(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var l=o.layout.actual[r],c=l.min,d=l.max;s.set(t[r]-ur(c,d,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,s=this.visualElement.projection;if(!(!xf(o)||!s||!this.constraints)){this.stopAnimation();var l={x:0,y:0};Ms(function(d){var v=t.getAxisMotionValue(d);if(v){var p=v.get();l[d]=Nj({min:p,max:p},t.constraints[d])}});var c=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=c?c({},""):"none",(n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout(),this.resolveConstraints(),Ms(function(d){if(kh(d,i,null)){var v=t.getAxisMotionValue(d),p=t.constraints[d],x=p.min,T=p.max;v.set(ur(x,T,l[d]))}})}},e.prototype.addListeners=function(){var t=this,n;Yj.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=Of(r,"pointerdown",function(d){var v=t.getProps(),p=v.drag,x=v.dragListener,T=x===void 0?!0:x;p&&T&&t.start(d)}),o=function(){var d=t.getProps().dragConstraints;xf(d)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,l=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var c=$p(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(d){var v=d.delta,p=d.hasLayoutChanged;t.isDragging&&p&&(Ms(function(x){var T=t.getAxisMotionValue(x);T&&(t.originPoint[x]+=v[x].translate,T.set(T.get()+v[x].translate))}),t.visualElement.syncRender())}),function(){c(),i(),l()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,s=t.dragPropagation,l=s===void 0?!1:s,c=t.dragConstraints,d=c===void 0?!1:c,v=t.dragElastic,p=v===void 0?fm:v,x=t.dragMomentum,T=x===void 0?!0:x;return st(st({},t),{drag:r,dragDirectionLock:o,dragPropagation:l,dragConstraints:d,dragElastic:p,dragMomentum:T})},e}();function kh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function qj(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function Xj(e){var t=e.dragControls,n=e.visualElement,r=Bp(function(){return new Gj(n)});X.useEffect(function(){return t&&t.subscribe(r)},[r,t]),X.useEffect(function(){return r.addListeners()},[r])}function Kj(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,l=X.useRef(null),c=X.useContext(ry).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(p,x){l.current=null,r&&r(p,x)}};X.useEffect(function(){l.current!==null&&l.current.updateHandlers(d)});function v(p){l.current=new GC(p,d,{transformPagePoint:c})}cp(o,"pointerdown",s&&v),wC(function(){return l.current&&l.current.end()})}var Zj={pan:Su(Kj),drag:Su(Xj)},_h=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Jj(){var e=_h.map(function(){return new pd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){_h.forEach(function(i){var o,s="on"+i,l=r[s];(o=t[i])===null||o===void 0||o.call(t),l&&(t[i]=n[s](l))})}};return e.forEach(function(r,i){n["on"+_h[i]]=function(o){return r.add(o)},n["notify"+_h[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,Qo([],Gr(o),!1))}}),n}function Qj(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(Al(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&VC(o.version==="6.5.1","Attempting to mix Framer Motion versions ".concat(o.version," with 6.5.1 may not work as expected."));else if(Al(s))e.addValue(i,If(o));else if(s!==o)if(e.hasValue(i)){var l=e.getValue(i);!l.hasAnimated&&l.set(o)}else e.addValue(i,If((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var QC=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,l=e.render,c=e.readValueFromInstance,d=e.removeValueFromRenderState,v=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(x,T){var P=x.parent,R=x.props,L=x.presenceId,I=x.blockInitialAnimation,U=x.visualState,W=x.shouldReduceMotion;T===void 0&&(T={});var te=!1,J=U.latestValues,ge=U.renderState,S,ce=Jj(),ae=new Map,Ne=new Map,Je={},Ye=st({},J),Qe;function tt(){!S||!te||(he(),l(S,ge,R.style,Ue.projection))}function he(){r(Ue,ge,J,T,R)}function Ce(){ce.notifyUpdate(J)}function He(Re,Fe){var Ge=Fe.onChange(function(mt){J[Re]=mt,R.onUpdate&&Ns.update(Ce,!1,!0)}),lt=Fe.onRenderRequest(Ue.scheduleRender);Ne.set(Re,function(){Ge(),lt()})}var et=p(R);for(var at in et){var Ee=et[at];J[at]!==void 0&&Al(Ee)&&Ee.set(J[at],!1)}var Pe=jp(R),Ve=HT(R),Ue=st(st({treeType:n,current:null,depth:P?P.depth+1:0,parent:P,children:new Set,presenceId:L,shouldReduceMotion:W,variantChildren:Ve?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(P!=null&&P.isMounted()),blockInitialAnimation:I,isMounted:function(){return!!S},mount:function(Re){te=!0,S=Ue.current=Re,Ue.projection&&Ue.projection.mount(Re),Ve&&P&&!Pe&&(Qe=P==null?void 0:P.addVariantChild(Ue)),ae.forEach(function(Fe,Ge){return He(Ge,Fe)}),P==null||P.children.add(Ue),Ue.setProps(R)},unmount:function(){var Re;(Re=Ue.projection)===null||Re===void 0||Re.unmount(),Rf.update(Ce),Rf.render(tt),Ne.forEach(function(Fe){return Fe()}),Qe==null||Qe(),P==null||P.children.delete(Ue),ce.clearAllListeners(),S=void 0,te=!1},addVariantChild:function(Re){var Fe,Ge=Ue.getClosestVariantNode();if(Ge)return(Fe=Ge.variantChildren)===null||Fe===void 0||Fe.add(Re),function(){return Ge.variantChildren.delete(Re)}},sortNodePosition:function(Re){return!v||n!==Re.treeType?0:v(Ue.getInstance(),Re.getInstance())},getClosestVariantNode:function(){return Ve?Ue:P==null?void 0:P.getClosestVariantNode()},getLayoutId:function(){return R.layoutId},getInstance:function(){return S},getStaticValue:function(Re){return J[Re]},setStaticValue:function(Re,Fe){return J[Re]=Fe},getLatestValues:function(){return J},setVisibility:function(Re){Ue.isVisible!==Re&&(Ue.isVisible=Re,Ue.scheduleRender())},makeTargetAnimatable:function(Re,Fe){return Fe===void 0&&(Fe=!0),o(Ue,Re,R,Fe)},measureViewportBox:function(){return s(S,R)},addValue:function(Re,Fe){Ue.hasValue(Re)&&Ue.removeValue(Re),ae.set(Re,Fe),J[Re]=Fe.get(),He(Re,Fe)},removeValue:function(Re){var Fe;ae.delete(Re),(Fe=Ne.get(Re))===null||Fe===void 0||Fe(),Ne.delete(Re),delete J[Re],d(Re,ge)},hasValue:function(Re){return ae.has(Re)},getValue:function(Re,Fe){var Ge=ae.get(Re);return Ge===void 0&&Fe!==void 0&&(Ge=If(Fe),Ue.addValue(Re,Ge)),Ge},forEachValue:function(Re){return ae.forEach(Re)},readValue:function(Re){var Fe;return(Fe=J[Re])!==null&&Fe!==void 0?Fe:c(S,Re,T)},setBaseTarget:function(Re,Fe){Ye[Re]=Fe},getBaseTarget:function(Re){if(i){var Fe=i(R,Re);if(Fe!==void 0&&!Al(Fe))return Fe}return Ye[Re]}},ce),{build:function(){return he(),ge},scheduleRender:function(){Ns.render(tt,!1,!0)},syncRender:tt,setProps:function(Re){(Re.transformTemplate||R.transformTemplate)&&Ue.scheduleRender(),R=Re,ce.updatePropListeners(Re),Je=Qj(Ue,p(R),Je)},getProps:function(){return R},getVariant:function(Re){var Fe;return(Fe=R.variants)===null||Fe===void 0?void 0:Fe[Re]},getDefaultTransition:function(){return R.transition},getTransformPagePoint:function(){return R.transformPagePoint},getVariantContext:function(Re){if(Re===void 0&&(Re=!1),Re)return P==null?void 0:P.getVariantContext();if(!Pe){var Fe=(P==null?void 0:P.getVariantContext())||{};return R.initial!==void 0&&(Fe.initial=R.initial),Fe}for(var Ge={},lt=0;lt<eB;lt++){var mt=eE[lt],wt=R[mt];(rs(wt)||wt===!1)&&(Ge[mt]=wt)}return Ge}});return Ue}},eE=Qo(["initial"],Gr(Cy),!1),eB=eE.length;function hm(e){return typeof e=="string"&&e.startsWith("var(--")}var tE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function tB(e){var t=tE.exec(e);if(!t)return[,];var n=Gr(t,3),r=n[1],i=n[2];return[r,i]}var nB=4;function pm(e,t,n){n===void 0&&(n=1),Oa(n<=nB,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Gr(tB(e),2),i=r[0],o=r[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():hm(o)?pm(o,t,n+1):o}}function rB(e,t,n){var r,i=Pa(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=st({},n)),e.forEachValue(function(d){var v=d.get();if(hm(v)){var p=pm(v,o);p&&d.set(p)}});for(var s in i){var l=i[s];if(hm(l)){var c=pm(l,o);c&&(i[s]=c,n&&((r=n[s])!==null&&r!==void 0||(n[s]=l)))}}return{target:i,transitionEnd:n}}var iB=new Set(["width","height","top","left","right","bottom","x","y"]),nE=function(e){return iB.has(e)},oB=function(e){return Object.keys(e).some(nE)},rE=function(e,t){e.set(t,!1),e.set(t)},Oh=function(e){return e===$c||e===jt},ex;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(ex||(ex={}));var tx=function(e,t){return parseFloat(e.split(", ")[t])},nx=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return tx(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?tx(s[1],e):0}},aB=new Set(["x","y","z"]),sB=Rd.filter(function(e){return!aB.has(e)});function lB(e){var t=[];return sB.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var rx={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:nx(4,13),y:nx(5,14)},uB=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(d){l[d]=rx[d](r,o)}),t.syncRender();var c=t.measureViewportBox();return n.forEach(function(d){var v=t.getValue(d);rE(v,l[d]),e[d]=rx[d](c,o)}),e},cB=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=st({},t),r=st({},r);var i=Object.keys(t).filter(nE),o=[],s=!1,l=[];if(i.forEach(function(v){var p=e.getValue(v);if(e.hasValue(v)){var x=n[v],T=nd(x),P=t[v],R;if(Ad(P)){var L=P.length,I=P[0]===null?1:0;x=P[I],T=nd(x);for(var U=I;U<L;U++)R?Oa(nd(P[U])===R,"All keyframes must be of the same type"):(R=nd(P[U]),Oa(R===T||Oh(T)&&Oh(R),"Keyframes must be of the same dimension as the current value"))}else R=nd(P);if(T!==R)if(Oh(T)&&Oh(R)){var W=p.get();typeof W=="string"&&p.set(parseFloat(W)),typeof P=="string"?t[v]=parseFloat(P):Array.isArray(P)&&R===jt&&(t[v]=P.map(parseFloat))}else T!=null&&T.transform&&(R!=null&&R.transform)&&(x===0||P===0)?x===0?p.set(R.transform(x)):t[v]=T.transform(P):(s||(o=lB(e),s=!0),l.push(v),r[v]=r[v]!==void 0?r[v]:t[v],rE(p,P))}}),l.length){var c=l.indexOf("height")>=0?window.pageYOffset:null,d=uB(t,e,l);return o.length&&o.forEach(function(v){var p=Gr(v,2),x=p[0],T=p[1];e.getValue(x).set(T)}),e.syncRender(),c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function fB(e,t,n,r){return oB(t)?cB(e,t,n,r):{target:t,transitionEnd:r}}var dB=function(e,t,n,r){var i=rB(e,t,r);return t=i.target,r=i.transitionEnd,fB(e,t,n,r)};function hB(e){return window.getComputedStyle(e)}var iE={treeType:"dom",readValueFromInstance:function(e,t){if(Wd(t)){var n=yy(t);return n&&n.default||0}else{var r=hB(e);return(GT(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return JC(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,s=t.transitionEnd,l=Pa(t,["transition","transitionEnd"]),c=bj(l,o||{},e);if(i&&(s&&(s=i(s)),l&&(l=i(l)),c&&(c=i(c))),r){mj(e,l,c);var d=dB(e,l,c,s);s=d.transitionEnd,l=d.target}return st({transition:o,transitionEnd:s},l)},scrapeMotionValuesFromProps:uy,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),ay(t,n,r,i.transformTemplate)},render:aC},pB=QC(iE),gB=QC(st(st({},iE),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Wd(t)?((n=yy(t))===null||n===void 0?void 0:n.default)||0:(t=sC.has(t)?t:oC(t),e.getAttribute(t))},scrapeMotionValuesFromProps:uC,build:function(e,t,n,r,i){ly(t,n,r,i.transformTemplate)},render:lC})),vB=function(e,t){return iy(e)?gB(t,{enableHardwareAcceleration:!1}):pB(t,{enableHardwareAcceleration:!0})};function ix(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var rd={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(jt.test(e))e=parseFloat(e);else return e;var n=ix(e,t.target.x),r=ix(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},ox="_$css",mB={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(tE,function(R){return s.push(R),ox}));var l=Ml.parse(e);if(l.length>5)return i;var c=Ml.createTransformer(e),d=typeof l[0]!="number"?1:0,v=r.x.scale*n.x,p=r.y.scale*n.y;l[0+d]/=v,l[1+d]/=p;var x=ur(v,p,.5);typeof l[2+d]=="number"&&(l[2+d]/=x),typeof l[3+d]=="number"&&(l[3+d]/=x);var T=c(l);if(o){var P=0;T=T.replace(ox,function(){var R=s[P];return P++,R})}return T}},yB=function(e){LT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,s=r.switchLayoutGroup,l=r.layoutId,c=i.projection;U2(wB),c&&(o!=null&&o.group&&o.group.add(c),s!=null&&s.register&&l&&s.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",function(){n.safeToRemove()}),c.setOptions(st(st({},c.options),{onExitComplete:function(){return n.safeToRemove()}}))),fd.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,l=i.drag,c=i.isPresent,d=s.projection;return d&&(d.isPresent=c,l||n.layoutDependency!==o||o===void 0?d.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?d.promote():d.relegate()||Ns.postRender(function(){var v;!((v=d.getStack())===null||v===void 0)&&v.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,s=r.projection;s&&(s.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(s),o!=null&&o.deregister&&o.deregister(s))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(X.Component);function bB(e){var t=Gr(HC(),2),n=t[0],r=t[1],i=X.useContext(UT);return X.createElement(yB,st({},e,{layoutGroup:i,switchLayoutGroup:X.useContext(WT),isPresent:n,safeToRemove:r}))}var wB={borderRadius:st(st({},rd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:rd,borderTopRightRadius:rd,borderBottomLeftRadius:rd,borderBottomRightRadius:rd,boxShadow:mB},xB={measureLayout:bB};function SB(e,t,n){n===void 0&&(n={});var r=Al(e)?e:If(e);return xy("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var oE=["TopLeft","TopRight","BottomLeft","BottomRight"],TB=oE.length,ax=function(e){return typeof e=="string"?parseFloat(e):e},sx=function(e){return typeof e=="number"||jt.test(e)};function CB(e,t,n,r,i,o){var s,l,c,d;i?(e.opacity=ur(0,(s=n.opacity)!==null&&s!==void 0?s:1,EB(r)),e.opacityExit=ur((l=t.opacity)!==null&&l!==void 0?l:1,0,kB(r))):o&&(e.opacity=ur((c=t.opacity)!==null&&c!==void 0?c:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var v=0;v<TB;v++){var p="border".concat(oE[v],"Radius"),x=lx(t,p),T=lx(n,p);if(!(x===void 0&&T===void 0)){x||(x=0),T||(T=0);var P=x===0||T===0||sx(x)===sx(T);P?(e[p]=Math.max(ur(ax(x),ax(T),r),0),(Fs.test(T)||Fs.test(x))&&(e[p]+="%")):e[p]=T}}(t.rotate||n.rotate)&&(e.rotate=ur(t.rotate||0,n.rotate||0,r))}function lx(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var EB=aE(0,.5,vy),kB=aE(.5,.95,py);function aE(e,t,n){return function(r){return r<e?0:r>t?1:n(Md(e,t,r))}}function ux(e,t){e.min=t.min,e.max=t.max}function ts(e,t){ux(e.x,t.x),ux(e.y,t.y)}function cx(e,t,n,r,i){return e-=t,e=vp(e,1/n,r),i!==void 0&&(e=vp(e,1/i,r)),e}function _B(e,t,n,r,i,o,s){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),s===void 0&&(s=e),Fs.test(t)){t=parseFloat(t);var l=ur(s.min,s.max,t/100);t=l-s.min}if(typeof t=="number"){var c=ur(o.min,o.max,r);e===o&&(c-=t),e.min=cx(e.min,t,n,c,i),e.max=cx(e.max,t,n,c,i)}}function fx(e,t,n,r,i){var o=Gr(n,3),s=o[0],l=o[1],c=o[2];_B(e,t[s],t[l],t[c],t.scale,r,i)}var OB=["x","scaleX","originX"],DB=["y","scaleY","originY"];function dx(e,t,n,r){fx(e.x,t,OB,n==null?void 0:n.x,r==null?void 0:r.x),fx(e.y,t,DB,n==null?void 0:n.y,r==null?void 0:r.y)}function hx(e){return e.translate===0&&e.scale===1}function sE(e){return hx(e.x)&&hx(e.y)}function lE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var PB=function(){function e(){this.members=[]}return e.prototype.add=function(t){Sy(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(Ty(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(s){return t===s});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),RB="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function px(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var s=n.rotate,l=n.rotateX,c=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),l&&(o+="rotateX(".concat(l,"deg) ")),c&&(o+="rotateY(".concat(c,"deg) "))}var d=e.x.scale*t.x,v=e.y.scale*t.y;return o+="scale(".concat(d,", ").concat(v,")"),o===RB?"none":o}var IB=function(e,t){return e.depth-t.depth},AB=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){Sy(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){Ty(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(IB),this.isDirty=!1,this.children.forEach(t)},e}(),gx=1e3;function uE(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(l,c,d){var v=this;c===void 0&&(c={}),d===void 0&&(d=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){v.isUpdating&&(v.isUpdating=!1,v.clearAllSnapshots())},this.updateProjection=function(){v.nodes.forEach(BB),v.nodes.forEach($B)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=l,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?Qo(Qo([],Gr(d.path),!1),[d],!1):[],this.parent=d,this.depth=d?d.depth+1:0,l&&this.root.registerPotentialNode(l,this);for(var p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new AB)}return s.prototype.addEventListener=function(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new pd),this.eventHandlers.get(l).add(c)},s.prototype.notifyListeners=function(l){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];var v=this.eventHandlers.get(l);v==null||v.notify.apply(v,Qo([],Gr(c),!1))},s.prototype.hasListeners=function(l){return this.eventHandlers.has(l)},s.prototype.registerPotentialNode=function(l,c){this.potentialNodes.set(l,c)},s.prototype.mount=function(l,c){var d=this,v;if(c===void 0&&(c=!1),!this.instance){this.isSVG=l instanceof SVGElement&&l.tagName!=="svg",this.instance=l;var p=this.options,x=p.layoutId,T=p.layout,P=p.visualElement;if(P&&!P.getInstance()&&P.mount(l),this.root.nodes.add(this),(v=this.parent)===null||v===void 0||v.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),c&&(T||x)&&(this.isLayoutDirty=!0),t){var R,L=function(){return d.root.updateBlockedByResize=!1};t(l,function(){d.root.updateBlockedByResize=!0,clearTimeout(R),R=window.setTimeout(L,250),fd.hasAnimatedSinceResize&&(fd.hasAnimatedSinceResize=!1,d.nodes.forEach(jB))})}x&&this.root.registerSharedNode(x,this),this.options.animate!==!1&&P&&(x||T)&&this.addEventListener("didUpdate",function(I){var U,W,te,J,ge,S=I.delta,ce=I.hasLayoutChanged,ae=I.hasRelativeTargetChanged,Ne=I.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var Je=(W=(U=d.options.transition)!==null&&U!==void 0?U:P.getDefaultTransition())!==null&&W!==void 0?W:zB,Ye=P.getProps(),Qe=Ye.onLayoutAnimationStart,tt=Ye.onLayoutAnimationComplete,he=!d.targetLayout||!lE(d.targetLayout,Ne)||ae,Ce=!ce&&ae;if(!((te=d.resumeFrom)===null||te===void 0)&&te.instance||Ce||ce&&(he||!d.currentAnimation)){d.resumeFrom&&(d.resumingFrom=d.resumeFrom,d.resumingFrom.resumingFrom=void 0),d.setAnimationOrigin(S,Ce);var He=st(st({},wy(Je,"layout")),{onPlay:Qe,onComplete:tt});P.shouldReduceMotion&&(He.delay=0,He.type=!1),d.startAnimation(He)}else!ce&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((ge=(J=d.options).onExitComplete)===null||ge===void 0||ge.call(J));d.targetLayout=Ne})}},s.prototype.unmount=function(){var l,c;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(l=this.getStack())===null||l===void 0||l.remove(this),(c=this.parent)===null||c===void 0||c.children.delete(this),this.instance=void 0,Rf.preRender(this.updateProjection)},s.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},s.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},s.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},s.prototype.isTreeAnimationBlocked=function(){var l;return this.isAnimationBlocked||((l=this.parent)===null||l===void 0?void 0:l.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var l;this.isUpdateBlocked()||(this.isUpdating=!0,(l=this.nodes)===null||l===void 0||l.forEach(VB))},s.prototype.willUpdate=function(l){var c,d,v;if(l===void 0&&(l=!0),this.root.isUpdateBlocked()){(d=(c=this.options).onExitComplete)===null||d===void 0||d.call(c);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var p=0;p<this.path.length;p++){var x=this.path[p];x.shouldResetTransform=!0,x.updateScroll()}var T=this.options,P=T.layoutId,R=T.layout;if(!(P===void 0&&!R)){var L=(v=this.options.visualElement)===null||v===void 0?void 0:v.getProps().transformTemplate;this.prevTransformTemplateValue=L==null?void 0:L(this.latestValues,""),this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var l=this.isUpdateBlocked();if(l){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vx);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(YB),this.potentialNodes.clear()),this.nodes.forEach(NB),this.nodes.forEach(MB),this.nodes.forEach(LB),this.clearAllSnapshots(),Xg.update(),Xg.preRender(),Xg.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(FB),this.sharedNodes.forEach(HB)},s.prototype.scheduleUpdateProjection=function(){Ns.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var l=this;Ns.postRender(function(){l.isLayoutDirty?l.root.didUpdate():l.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var l=this.measure(),c=this.removeTransform(this.removeElementScroll(l));wx(c),this.snapshot={measured:l,layout:c,latestValues:{}}}},s.prototype.updateLayout=function(){var l;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var c=0;c<this.path.length;c++){var d=this.path[c];d.updateScroll()}var v=this.measure();wx(v);var p=this.layout;this.layout={measured:v,actual:this.removeElementScroll(v)},this.layoutCorrected=Li(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(l=this.options.visualElement)===null||l===void 0||l.notifyLayoutMeasure(this.layout.actual,p==null?void 0:p.actual)}},s.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},s.prototype.resetTransform=function(){var l;if(o){var c=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!sE(this.projectionDelta),v=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate,p=v==null?void 0:v(this.latestValues,""),x=p!==this.prevTransformTemplateValue;c&&(d||vu(this.latestValues)||x)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var l=this.options.visualElement;if(!l)return Li();var c=l.measureViewportBox(),d=this.root.scroll;return d&&(yu(c.x,d.x),yu(c.y,d.y)),c},s.prototype.removeElementScroll=function(l){var c=Li();ts(c,l);for(var d=0;d<this.path.length;d++){var v=this.path[d],p=v.scroll,x=v.options,T=v.isScrollRoot;if(v!==this.root&&p&&x.layoutScroll){if(T){ts(c,l);var P=this.root.scroll;P&&(yu(c.x,-P.x),yu(c.y,-P.y))}yu(c.x,p.x),yu(c.y,p.y)}}return c},s.prototype.applyTransform=function(l,c){c===void 0&&(c=!1);var d=Li();ts(d,l);for(var v=0;v<this.path.length;v++){var p=this.path[v];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Sf(d,{x:-p.scroll.x,y:-p.scroll.y}),vu(p.latestValues)&&Sf(d,p.latestValues)}return vu(this.latestValues)&&Sf(d,this.latestValues),d},s.prototype.removeTransform=function(l){var c,d=Li();ts(d,l);for(var v=0;v<this.path.length;v++){var p=this.path[v];if(p.instance&&vu(p.latestValues)){KC(p.latestValues)&&p.updateSnapshot();var x=Li(),T=p.measure();ts(x,T),dx(d,p.latestValues,(c=p.snapshot)===null||c===void 0?void 0:c.layout,x)}}return vu(this.latestValues)&&dx(d,this.latestValues),d},s.prototype.setTargetDelta=function(l){this.targetDelta=l,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(l){var c;this.options=st(st(st({},this.options),l),{crossfade:(c=l.crossfade)!==null&&c!==void 0?c:!0})},s.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},s.prototype.resolveTargetDelta=function(){var l,c=this.options,d=c.layout,v=c.layoutId;!this.layout||!(d||v)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Li(),this.relativeTargetOrigin=Li(),vd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ts(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Li(),this.targetWithTransforms=Li()),this.relativeTarget&&this.relativeTargetOrigin&&(!((l=this.relativeParent)===null||l===void 0)&&l.target)?Aj(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ts(this.target,this.layout.actual),ZC(this.target,this.targetDelta)):ts(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Li(),this.relativeTargetOrigin=Li(),vd(this.relativeTargetOrigin,this.target,this.relativeParent.target),ts(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||vu(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var l,c=this.options,d=c.layout,v=c.layoutId;if(this.isTreeAnimating=!!(!((l=this.parent)===null||l===void 0)&&l.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(d||v))){var p=this.getLead();ts(this.layoutCorrected,this.layout.actual),Hj(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==p);var x=p.target;if(x){this.projectionDelta||(this.projectionDelta=md(),this.projectionDeltaWithTransform=md());var T=this.treeScale.x,P=this.treeScale.y,R=this.projectionTransform;gd(this.projectionDelta,this.layoutCorrected,x,this.latestValues),this.projectionTransform=px(this.projectionDelta,this.treeScale),(this.projectionTransform!==R||this.treeScale.x!==T||this.treeScale.y!==P)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(l){var c,d,v;l===void 0&&(l=!0),(d=(c=this.options).scheduleRender)===null||d===void 0||d.call(c),l&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(l,c){var d=this,v;c===void 0&&(c=!1);var p=this.snapshot,x=(p==null?void 0:p.latestValues)||{},T=st({},this.latestValues),P=md();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!c;var R=Li(),L=p==null?void 0:p.isShared,I=(((v=this.getStack())===null||v===void 0?void 0:v.members.length)||0)<=1,U=!!(L&&!I&&this.options.crossfade===!0&&!this.path.some(WB));this.animationProgress=0,this.mixTargetDelta=function(W){var te,J=W/1e3;mx(P.x,l.x,J),mx(P.y,l.y,J),d.setTargetDelta(P),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((te=d.relativeParent)===null||te===void 0)&&te.layout)&&(vd(R,d.layout.actual,d.relativeParent.layout.actual),UB(d.relativeTarget,d.relativeTargetOrigin,R,J)),L&&(d.animationValues=T,CB(T,x,d.latestValues,J,U,I)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=J},this.mixTargetDelta(0)},s.prototype.startAnimation=function(l){var c=this,d,v;this.notifyListeners("animationStart"),(d=this.currentAnimation)===null||d===void 0||d.stop(),this.resumingFrom&&((v=this.resumingFrom.currentAnimation)===null||v===void 0||v.stop()),this.pendingAnimation&&(Rf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ns.update(function(){fd.hasAnimatedSinceResize=!0,c.currentAnimation=SB(0,gx,st(st({},l),{onUpdate:function(p){var x;c.mixTargetDelta(p),(x=l.onUpdate)===null||x===void 0||x.call(l,p)},onComplete:function(){var p;(p=l.onComplete)===null||p===void 0||p.call(l),c.completeAnimation()}})),c.resumingFrom&&(c.resumingFrom.currentAnimation=c.currentAnimation),c.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var l;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(l=this.getStack())===null||l===void 0||l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var l;this.currentAnimation&&((l=this.mixTargetDelta)===null||l===void 0||l.call(this,gx),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var l=this.getLead(),c=l.targetWithTransforms,d=l.target,v=l.layout,p=l.latestValues;!c||!d||!v||(ts(c,d),Sf(c,p),gd(this.projectionDeltaWithTransform,this.layoutCorrected,c,p))},s.prototype.registerSharedNode=function(l,c){var d,v,p;this.sharedNodes.has(l)||this.sharedNodes.set(l,new PB);var x=this.sharedNodes.get(l);x.add(c),c.promote({transition:(d=c.options.initialPromotionConfig)===null||d===void 0?void 0:d.transition,preserveFollowOpacity:(p=(v=c.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(v,c)})},s.prototype.isLead=function(){var l=this.getStack();return l?l.lead===this:!0},s.prototype.getLead=function(){var l,c=this.options.layoutId;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this},s.prototype.getPrevLead=function(){var l,c=this.options.layoutId;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0},s.prototype.getStack=function(){var l=this.options.layoutId;if(l)return this.root.sharedNodes.get(l)},s.prototype.promote=function(l){var c=l===void 0?{}:l,d=c.needsReset,v=c.transition,p=c.preserveFollowOpacity,x=this.getStack();x&&x.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),v&&this.setOptions({transition:v})},s.prototype.relegate=function(){var l=this.getStack();return l?l.relegate(this):!1},s.prototype.resetRotation=function(){var l=this.options.visualElement;if(l){for(var c=!1,d={},v=0;v<Qv.length;v++){var p=Qv[v],x="rotate"+p;l.getStaticValue(x)&&(c=!0,d[x]=l.getStaticValue(x),l.setStaticValue(x,0))}if(c){l==null||l.syncRender();for(var x in d)l.setStaticValue(x,d[x]);l.scheduleRender()}}},s.prototype.getProjectionStyles=function(l){var c,d,v,p,x,T;l===void 0&&(l={});var P={};if(!this.instance||this.isSVG)return P;if(this.isVisible)P.visibility="";else return{visibility:"hidden"};var R=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,P.opacity="",P.pointerEvents=zh(l.pointerEvents)||"",P.transform=R?R(this.latestValues,""):"none",P;var L=this.getLead();if(!this.projectionDelta||!this.layout||!L.target){var I={};return this.options.layoutId&&(I.opacity=(d=this.latestValues.opacity)!==null&&d!==void 0?d:1,I.pointerEvents=zh(l.pointerEvents)||""),this.hasProjected&&!vu(this.latestValues)&&(I.transform=R?R({},""):"none",this.hasProjected=!1),I}var U=L.animationValues||L.latestValues;this.applyTransformsToTarget(),P.transform=px(this.projectionDeltaWithTransform,this.treeScale,U),R&&(P.transform=R(U,P.transform));var W=this.projectionDelta,te=W.x,J=W.y;P.transformOrigin="".concat(te.origin*100,"% ").concat(J.origin*100,"% 0"),L.animationValues?P.opacity=L===this?(p=(v=U.opacity)!==null&&v!==void 0?v:this.latestValues.opacity)!==null&&p!==void 0?p:1:this.preserveOpacity?this.latestValues.opacity:U.opacityExit:P.opacity=L===this?(x=U.opacity)!==null&&x!==void 0?x:"":(T=U.opacityExit)!==null&&T!==void 0?T:0;for(var ge in lp)if(U[ge]!==void 0){var S=lp[ge],ce=S.correct,ae=S.applyTo,Ne=ce(U[ge],L);if(ae)for(var Je=ae.length,Ye=0;Ye<Je;Ye++)P[ae[Ye]]=Ne;else P[ge]=Ne}return this.options.layoutId&&(P.pointerEvents=L===this?zh(l.pointerEvents)||"":"none"),P},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(l){var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(vx),this.root.sharedNodes.clear()},s}()}function MB(e){e.updateLayout()}function LB(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var s=e.layout,l=s.actual,c=s.measured;e.options.animationType==="size"?Ms(function(U){var W=o.isShared?o.measured[U]:o.layout[U],te=Ll(W);W.min=l[U].min,W.max=W.min+te}):e.options.animationType==="position"&&Ms(function(U){var W=o.isShared?o.measured[U]:o.layout[U],te=Ll(l[U]);W.max=W.min+te});var d=md();gd(d,l,o.layout);var v=md();o.isShared?gd(v,e.applyTransform(c,!0),o.measured):gd(v,l,o.layout);var p=!sE(d),x=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var T=e.relativeParent,P=T.snapshot,R=T.layout;if(P&&R){var L=Li();vd(L,o.layout,P.layout);var I=Li();vd(I,l,R.actual),lE(L,I)||(x=!0)}}e.notifyListeners("didUpdate",{layout:l,snapshot:o,delta:v,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:x})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function FB(e){e.clearSnapshot()}function vx(e){e.clearMeasurements()}function NB(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function jB(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function BB(e){e.resolveTargetDelta()}function $B(e){e.calcProjection()}function VB(e){e.resetRotation()}function HB(e){e.removeLeadSnapshot()}function mx(e,t,n){e.translate=ur(t.translate,0,n),e.scale=ur(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function yx(e,t,n,r){e.min=ur(t.min,n.min,r),e.max=ur(t.max,n.max,r)}function UB(e,t,n,r){yx(e.x,t.x,n.x,r),yx(e.y,t.y,n.y,r)}function WB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var zB={duration:.45,ease:[.4,0,.1,1]};function YB(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function bx(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function wx(e){bx(e.x),bx(e.y)}var GB=uE({attachResizeListener:function(e,t){return $p(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),tv={current:void 0},qB=uE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!tv.current){var e=new GB(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),tv.current=e}return tv.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),XB=st(st(st(st({},Pj),qN),Zj),xB),KB=V2(function(e,t){return _F(e,t,XB,vB,qB)});function gm(e,t,n){var r,i,o,s,l;t==null&&(t=100);function c(){var v=Date.now()-s;v<t&&v>=0?r=setTimeout(c,t-v):(r=null,n||(l=e.apply(o,i),o=i=null))}var d=function(){o=this,i=arguments,s=Date.now();var v=n&&!r;return r||(r=setTimeout(c,t)),v&&(l=e.apply(o,i),o=i=null),l};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(l=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},d}gm.debounce=gm;var ZB=gm;const xx=Bc(ZB);function JB(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[s,l]=X.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=X.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),d=t?typeof t=="number"?t:t.scroll:null,v=t?typeof t=="number"?t:t.resize:null,p=X.useRef(!1);X.useEffect(()=>(p.current=!0,()=>void(p.current=!1)));const[x,T,P]=X.useMemo(()=>{const U=()=>{if(!c.current.element)return;const{left:W,top:te,width:J,height:ge,bottom:S,right:ce,x:ae,y:Ne}=c.current.element.getBoundingClientRect(),Je={left:W,top:te,width:J,height:ge,bottom:S,right:ce,x:ae,y:Ne};c.current.element instanceof HTMLElement&&i&&(Je.height=c.current.element.offsetHeight,Je.width=c.current.element.offsetWidth),Object.freeze(Je),p.current&&!n$(c.current.lastBounds,Je)&&l(c.current.lastBounds=Je)};return[U,v?xx(U,v):U,d?xx(U,d):U]},[l,i,d,v]);function R(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(U=>U.removeEventListener("scroll",P,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function L(){c.current.element&&(c.current.resizeObserver=new o(P),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(U=>U.addEventListener("scroll",P,{capture:!0,passive:!0})))}const I=U=>{!U||U===c.current.element||(R(),c.current.element=U,c.current.scrollContainers=cE(U),L())};return e$(P,!!n),QB(T),X.useEffect(()=>{R(),L()},[n,P,T]),X.useEffect(()=>R,[]),[I,s,x]}function QB(e){X.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function e$(e,t){X.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function cE(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...cE(e.parentElement)]}const t$=["x","y","top","bottom","left","right","width","height"],n$=(e,t)=>t$.every(n=>e[n]===t[n]),fE=X.createContext({dragDropManager:void 0});function xa(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Sx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),nv=function(){return Math.random().toString(36).substring(7).split("").join(".")},Tx={INIT:"@@redux/INIT"+nv(),REPLACE:"@@redux/REPLACE"+nv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+nv()}};function r$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function i$(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(s$(e))return"date";if(a$(e))return"error";var n=o$(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function o$(e){return typeof e.constructor=="function"?e.constructor.name:null}function a$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function s$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function pf(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=i$(e)),t}function dE(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xa(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?xa(1):"Expected the enhancer to be a function. Instead, received: '"+pf(n)+"'");return n(dE)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xa(2):"Expected the root reducer to be a function. Instead, received: '"+pf(e)+"'");var i=e,o=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function v(){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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 p(R){if(typeof R!="function")throw new Error(process.env.NODE_ENV==="production"?xa(4):"Expected the listener to be a function. Instead, received: '"+pf(R)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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 d(),l.push(R),function(){if(L){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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,d();var U=l.indexOf(R);l.splice(U,1),s=null}}}function x(R){if(!r$(R))throw new Error(process.env.NODE_ENV==="production"?xa(7):"Actions must be plain objects. Instead, the actual type was: '"+pf(R)+"'. 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 R.type>"u")throw new Error(process.env.NODE_ENV==="production"?xa(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?xa(9):"Reducers may not dispatch actions.");try{c=!0,o=i(o,R)}finally{c=!1}for(var L=s=l,I=0;I<L.length;I++){var U=L[I];U()}return R}function T(R){if(typeof R!="function")throw new Error(process.env.NODE_ENV==="production"?xa(10):"Expected the nextReducer to be a function. Instead, received: '"+pf(R));i=R,x({type:Tx.REPLACE})}function P(){var R,L=p;return R={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?xa(11):"Expected the observer to be an object. Instead, received: '"+pf(U)+"'");function W(){U.next&&U.next(v())}W();var te=L(W);return{unsubscribe:te}}},R[Sx]=function(){return this},R}return x({type:Tx.INIT}),r={dispatch:x,subscribe:p,getState:v,replaceReducer:T},r[Sx]=P,r}function Kt(e,t,...n){if(l$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(t.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function l$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function u$(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function c$(e,t){return e.filter(n=>n!==t)}function hE(e){return typeof e=="object"}function f$(e,t){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((o,s)=>{o===1&&i.push(s)}),i}function d$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Ey="dnd-core/INIT_COORDS",Wp="dnd-core/BEGIN_DRAG",ky="dnd-core/PUBLISH_DRAG_SOURCE",zp="dnd-core/HOVER",Yp="dnd-core/DROP",Gp="dnd-core/END_DRAG";function Cx(e,t){return{type:Ey,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const h$={type:Ey,payload:{clientOffset:null,sourceClientOffset:null}};function p$(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,l=e.getMonitor(),c=e.getRegistry();e.dispatch(Cx(o)),g$(n,l,c);const d=y$(n,l);if(d==null){e.dispatch(h$);return}let v=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");v$(s),v=s(d)}e.dispatch(Cx(o,v));const x=c.getSource(d).beginDrag(l,d);if(x==null)return;m$(x),c.pinSource(d);const T=c.getSourceType(d);return{type:Wp,payload:{itemType:T,item:x,sourceId:d,clientOffset:o||null,sourceClientOffset:v||null,isSourcePublic:!!i}}}}function g$(e,t,n){Kt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){Kt(n.getSource(r),"Expected sourceIds to be registered.")})}function v$(e){Kt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function m$(e){Kt(hE(e),"Item must be an object.")}function y$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function b$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){b$(e,i,n[i])})}return e}function x$(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();S$(r),E$(r).forEach((s,l)=>{const c=T$(s,l,i,r),d={type:Yp,payload:{dropResult:w$({},n,c)}};e.dispatch(d)})}}function S$(e){Kt(e.isDragging(),"Cannot call drop while not dragging."),Kt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function T$(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return C$(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function C$(e){Kt(typeof e>"u"||hE(e),"Drop result must either be an object or undefined.")}function E$(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function k$(e){return function(){const n=e.getMonitor(),r=e.getRegistry();_$(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Gp}}}function _$(e){Kt(e.isDragging(),"Cannot call endDrag while not dragging.")}function vm(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function O$(e){return function(n,{clientOffset:r}={}){D$(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),l=o.getItemType();return R$(i,s,l),P$(i,o,s),I$(i,o,s),{type:zp,payload:{targetIds:i,clientOffset:r||null}}}}function D$(e){Kt(Array.isArray(e),"Expected targetIds to be an array.")}function P$(e,t,n){Kt(t.isDragging(),"Cannot call hover while not dragging."),Kt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];Kt(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Kt(o,"Expected targetIds to be registered.")}}function R$(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);vm(o,n)||e.splice(r,1)}}function I$(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function A$(e){return function(){if(e.getMonitor().isDragging())return{type:ky}}}function M$(e){return{beginDrag:p$(e),publishDragSource:A$(e),hover:O$(e),drop:x$(e),endDrag:k$(e)}}class L${receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...s)=>{const l=o.apply(t,s);typeof l<"u"&&n(l)}}const i=M$(this);return Object.keys(i).reduce((o,s)=>{const l=i[s];return o[s]=r(l),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function F$(e,t){return{x:e.x+t.x,y:e.y+t.y}}function pE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function N$(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:pE(F$(t,r),n)}function j$(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:pE(t,n)}const yd=[],_y=[];yd.__IS_NONE__=!0;_y.__IS_ALL__=!0;function B$(e,t){return e===yd?!1:e===_y||typeof t>"u"?!0:d$(t,e).length>0}class $${subscribeToStateChange(t,n={}){const{handlerIds:r}=n;Kt(typeof t=="function","listener must be a function."),Kt(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const s=this.store.getState(),l=s.stateId;try{l===i||l===i+1&&!B$(s.dirtyHandlerIds,r)||t()}finally{i=l}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Kt(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return Kt(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(Kt(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return vm(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(Kt(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!vm(i,o))return!1;const s=this.getTargetIds();if(!s.length)return!1;const l=s.indexOf(t);return r?l===s.length-1:l>-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 N$(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return j$(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Ex=typeof global<"u"?global:self,gE=Ex.MutationObserver||Ex.WebKitMutationObserver;function vE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function V$(e){let t=1;const n=new gE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const H$=typeof gE=="function"?V$:vE;class U${enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=H$(this.flush),this.requestErrorThrow=vE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class W${call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class z${create(t){const n=this.freeTasks,r=n.length?n.pop():new W$(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const mE=new U$,Y$=new z$(mE.registerPendingError);function G$(e){mE.enqueueTask(Y$.create(e))}const Oy="dnd-core/ADD_SOURCE",Dy="dnd-core/ADD_TARGET",Py="dnd-core/REMOVE_SOURCE",qp="dnd-core/REMOVE_TARGET";function q$(e){return{type:Oy,payload:{sourceId:e}}}function X$(e){return{type:Dy,payload:{targetId:e}}}function K$(e){return{type:Py,payload:{sourceId:e}}}function Z$(e){return{type:qp,payload:{targetId:e}}}function J$(e){Kt(typeof e.canDrag=="function","Expected canDrag to be a function."),Kt(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Kt(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Q$(e){Kt(typeof e.canDrop=="function","Expected canDrop to be a function."),Kt(typeof e.hover=="function","Expected hover to be a function."),Kt(typeof e.drop=="function","Expected beginDrag to be a function.")}function mm(e,t){if(t&&Array.isArray(e)){e.forEach(n=>mm(n,!1));return}Kt(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ka;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ka||(ka={}));let eV=0;function tV(){return eV++}function nV(e){const t=tV().toString();switch(e){case ka.SOURCE:return`S${t}`;case ka.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function kx(e){switch(e[0]){case"S":return ka.SOURCE;case"T":return ka.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function _x(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===t)return!0;r=!!i}while(!r);return!1}class rV{addSource(t,n){mm(t),J$(n);const r=this.addHandler(ka.SOURCE,t,n);return this.store.dispatch(q$(r)),r}addTarget(t,n){mm(t,!0),Q$(n);const r=this.addHandler(ka.TARGET,t,n);return this.store.dispatch(X$(r)),r}containsHandler(t){return _x(this.dragSources,t)||_x(this.dropTargets,t)}getSource(t,n=!1){return Kt(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Kt(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return kx(t)===ka.SOURCE}isTargetId(t){return kx(t)===ka.TARGET}removeSource(t){Kt(this.getSource(t),"Expected an existing source."),this.store.dispatch(K$(t)),G$(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Kt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(Z$(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);Kt(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){Kt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=nV(t);return this.types.set(i,n),t===ka.SOURCE?this.dragSources.set(i,r):t===ka.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const iV=(e,t)=>e===t;function oV(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function aV(e,t,n=iV){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function sV(e=yd,t){switch(t.type){case zp:break;case Oy:case Dy:case qp:case Py:return yd;case Wp:case ky:case Gp:case Yp:default:return _y}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=f$(n,r);if(!(i.length>0||!aV(n,r)))return yd;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function lV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){lV(e,i,n[i])})}return e}const Ox={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function cV(e=Ox,t){const{payload:n}=t;switch(t.type){case Ey:case Wp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case zp:return oV(e.clientOffset,n.clientOffset)?e:uV({},e,{clientOffset:n.clientOffset});case Gp:case Yp:return Ox;default:return e}}function fV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){fV(e,i,n[i])})}return e}const dV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function hV(e=dV,t){const{payload:n}=t;switch(t.type){case Wp:return gf({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case ky:return gf({},e,{isSourcePublic:!0});case zp:return gf({},e,{targetIds:n.targetIds});case qp:return e.targetIds.indexOf(n.targetId)===-1?e:gf({},e,{targetIds:c$(e.targetIds,n.targetId)});case Yp:return gf({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Gp:return gf({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function pV(e=0,t){switch(t.type){case Oy:case Dy:return e+1;case Py:case qp:return e-1;default:return e}}function gV(e=0){return e+1}function vV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){vV(e,i,n[i])})}return e}function yV(e={},t){return{dirtyHandlerIds:sV(e.dirtyHandlerIds,{type:t.type,payload:mV({},t.payload,{prevTargetIds:u$(e,"dragOperation.targetIds",[])})}),dragOffset:cV(e.dragOffset,t),refCount:pV(e.refCount,t),dragOperation:hV(e.dragOperation,t),stateId:gV(e.stateId)}}function bV(e,t=void 0,n={},r=!1){const i=wV(r),o=new $$(i,new rV(i)),s=new L$(i,o),l=e(s,t,n);return s.receiveBackend(l),s}function wV(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return dE(yV,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function xV(e,t){if(e==null)return{};var n=SV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let Dx=0;const qh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var TV=X.memo(function(t){var{children:n}=t,r=xV(t,["children"]);const[i,o]=CV(r);return X.useEffect(()=>{if(o){const s=yE();return++Dx,()=>{--Dx===0&&(s[qh]=null)}}},[]),ze.jsx(fE.Provider,{value:i,children:n})});function CV(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=EV(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function EV(e,t=yE(),n,r){const i=t;return i[qh]||(i[qh]={dragDropManager:bV(e,t,n,r)}),i[qh]}function yE(){return typeof global<"u"?global:window}var kV=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const _V=Bc(kV),Ic=typeof window<"u"?X.useLayoutEffect:X.useEffect;function bE(e,t,n){const[r,i]=X.useState(()=>t(e)),o=X.useCallback(()=>{const s=t(e);_V(r,s)||(i(s),n&&n())},[r,e,n]);return Ic(o),[r,o]}function OV(e,t,n){const[r,i]=bE(e,t,n);return Ic(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function wE(e,t,n){return OV(t,e||(()=>({})),()=>n.reconnect())}function xE(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),X.useMemo(()=>typeof e=="function"?e():e,n)}function DV(e){return X.useMemo(()=>e.hooks.dragSource(),[e])}function PV(e){return X.useMemo(()=>e.hooks.dragPreview(),[e])}let rv=!1,iv=!1;class RV{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Kt(!rv,"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 rv=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{rv=!1}}isDragging(){if(!this.sourceId)return!1;Kt(!iv,"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 iv=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{iv=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let ov=!1;class IV{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;Kt(!ov,"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 ov=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ov=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function AV(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function MV(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function ym(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<o.length;c++){const d=o[c];if(!l(d))return!1;const v=e[d],p=t[d];if(i=n?n.call(r,v,p,d):void 0,i===!1||i===void 0&&v!==p)return!1}return!0}function bm(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function LV(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function FV(e){return(t=null,n=null)=>{if(!X.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return LV(r),NV(r,n?o=>e(o,n):e)}}function SE(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=FV(r);t[n]=()=>i}}),t}function Px(e,t){typeof e=="function"?e(t):e.current=t}function NV(e,t){const n=e.ref;return Kt(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?X.cloneElement(e,{ref:r=>{Px(n,r),Px(t,r)}}):X.cloneElement(e,{ref:t})}class jV{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ym(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ym(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=SE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,bm(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,bm(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class BV{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!ym(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=SE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,bm(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Nl(){const{dragDropManager:e}=X.useContext(fE);return Kt(e!=null,"Expected drag drop context"),e}function $V(e,t){const n=Nl(),r=X.useMemo(()=>new jV(n.getBackend()),[n]);return Ic(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Ic(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function VV(){const e=Nl();return X.useMemo(()=>new RV(e),[e])}class HV{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function UV(e,t,n){const r=X.useMemo(()=>new HV(e,t,n),[t,n]);return X.useEffect(()=>{r.spec=e},[e]),r}function WV(e){return X.useMemo(()=>{const t=e.type;return Kt(t!=null,"spec.type must be defined"),t},[e])}function zV(e,t,n){const r=Nl(),i=UV(e,t,n),o=WV(e);Ic(function(){if(o!=null){const[l,c]=MV(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,t,n,i,o])}function YV(e,t){const n=xE(e,t);Kt(!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=VV(),i=$V(n.options,n.previewOptions);return zV(n,r,i),[wE(n.collect,r,i),DV(i),PV(i)]}function GV(e){const n=Nl().getMonitor(),[r,i]=bE(n,e);return X.useEffect(()=>n.subscribeToOffsetChange(i)),X.useEffect(()=>n.subscribeToStateChange(i)),r}function qV(e){return X.useMemo(()=>e.hooks.dropTarget(),[e])}function XV(e){const t=Nl(),n=X.useMemo(()=>new BV(t.getBackend()),[t]);return Ic(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function KV(){const e=Nl();return X.useMemo(()=>new IV(e),[e])}function ZV(e){const{accept:t}=e;return X.useMemo(()=>(Kt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class JV{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function QV(e,t){const n=X.useMemo(()=>new JV(e,t),[t]);return X.useEffect(()=>{n.spec=e},[e]),n}function e3(e,t,n){const r=Nl(),i=QV(e,t),o=ZV(e);Ic(function(){const[l,c]=AV(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function TE(e,t){const n=xE(e,t),r=KV(),i=XV(n.options);return e3(n,r,i),[wE(n.collect,r,i),qV(i)]}function av(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t3(e,t,n){n3(e,t),t.set(e,n)}function n3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Dh(e,t){var n=CE(e,t,"get");return r3(e,n)}function r3(e,t){return t.get?t.get.call(e):t.value}function i3(e,t,n){var r=CE(e,t,"set");return o3(e,r,n),n}function CE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function o3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var vf=new WeakMap;class a3{constructor(){t3(this,vf,{writable:!0,value:void 0}),av(this,"register",t=>{Dh(this,vf).push(t)}),av(this,"unregister",t=>{let n;for(;(n=Dh(this,vf).indexOf(t))!==-1;)Dh(this,vf).splice(n,1)}),av(this,"backendChanged",t=>{for(const n of Dh(this,vf))n.backendChanged(t)}),i3(this,vf,[])}}function ns(e,t,n){s3(e,t),t.set(e,n)}function s3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function As(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e,t){var n=EE(e,t,"get");return l3(e,n)}function l3(e,t){return t.get?t.get.call(e):t.value}function mf(e,t,n){var r=EE(e,t,"set");return u3(e,r,n),n}function EE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function u3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var Sa=new WeakMap,Ph=new WeakMap,Ta=new WeakMap,pu=new WeakMap,yc=new WeakMap,Rx=new WeakMap,Ix=new WeakMap,Ax=new WeakMap,sv=new WeakMap,lv=new WeakMap,Rh=new WeakMap;class Pf{constructor(t,n,r){if(ns(this,Sa,{writable:!0,value:void 0}),ns(this,Ph,{writable:!0,value:void 0}),ns(this,Ta,{writable:!0,value:void 0}),ns(this,pu,{writable:!0,value:void 0}),ns(this,yc,{writable:!0,value:void 0}),ns(this,Rx,{writable:!0,value:(i,o,s)=>{var l,c;if(!s.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(s)));const d=s.backend(i,o,s.options);let v=s.id;const p=!s.id&&d&&d.constructor;if(p&&(v=d.constructor.name),v)p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
|
|
8
|
+
This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(s),`
|
|
9
|
+
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(Jt(this,Ta)[v])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
10
|
+
`.concat(JSON.stringify(s)," (conflicts with: ").concat(JSON.stringify(Jt(this,Ta)[v]),")"));return{id:v,instance:d,preview:(l=s.preview)!==null&&l!==void 0?l:!1,transition:s.transition,skipDispatchOnTransition:(c=s.skipDispatchOnTransition)!==null&&c!==void 0?c:!1}}}),As(this,"setup",()=>{if(!(typeof window>"u")){if(Pf.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Pf.isSetUp=!0,Jt(this,Ix).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.setup()}}),As(this,"teardown",()=>{typeof window>"u"||(Pf.isSetUp=!1,Jt(this,Ax).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.teardown())}),As(this,"connectDragSource",(i,o,s)=>Jt(this,Rh).call(this,"connectDragSource",i,o,s)),As(this,"connectDragPreview",(i,o,s)=>Jt(this,Rh).call(this,"connectDragPreview",i,o,s)),As(this,"connectDropTarget",(i,o,s)=>Jt(this,Rh).call(this,"connectDropTarget",i,o,s)),As(this,"profile",()=>Jt(this,Ta)[Jt(this,Sa)].instance.profile()),As(this,"previewEnabled",()=>Jt(this,Ta)[Jt(this,Sa)].preview),As(this,"previewsList",()=>Jt(this,Ph)),As(this,"backendsList",()=>Jt(this,pu)),ns(this,Ix,{writable:!0,value:i=>{Jt(this,pu).forEach(o=>{o.transition&&i.addEventListener(o.transition.event,Jt(this,sv))})}}),ns(this,Ax,{writable:!0,value:i=>{Jt(this,pu).forEach(o=>{o.transition&&i.removeEventListener(o.transition.event,Jt(this,sv))})}}),ns(this,sv,{writable:!0,value:i=>{const o=Jt(this,Sa);if(Jt(this,pu).some(l=>l.id!==Jt(this,Sa)&&l.transition&&l.transition.check(i)?(mf(this,Sa,l.id),!0):!1),Jt(this,Sa)!==o){var s;Jt(this,Ta)[o].instance.teardown(),Object.keys(Jt(this,yc)).forEach(v=>{const p=Jt(this,yc)[v];p.unsubscribe(),p.unsubscribe=Jt(this,lv).call(this,p.func,...p.args)}),Jt(this,Ph).backendChanged(this);const l=Jt(this,Ta)[Jt(this,Sa)];if(l.instance.setup(),l.skipDispatchOnTransition)return;const c=i.constructor,d=new c(i.type,i);(s=i.target)===null||s===void 0||s.dispatchEvent(d)}}}),ns(this,lv,{writable:!0,value:(i,o,s,l)=>Jt(this,Ta)[Jt(this,Sa)].instance[i](o,s,l)}),ns(this,Rh,{writable:!0,value:(i,o,s,l)=>{const c="".concat(i,"_").concat(o),d=Jt(this,lv).call(this,i,o,s,l);return Jt(this,yc)[c]={func:i,args:[o,s,l],unsubscribe:d},()=>{Jt(this,yc)[c].unsubscribe(),delete Jt(this,yc)[c]}}}),!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)
|
|
11
|
+
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);mf(this,Ph,new a3),mf(this,Ta,{}),mf(this,pu,[]),r.backends.forEach(i=>{const o=Jt(this,Rx).call(this,t,n,i);Jt(this,Ta)[o.id]=o,Jt(this,pu).push(o)}),mf(this,Sa,Jt(this,pu)[0].id),mf(this,yc,{})}}As(Pf,"isSetUp",!1);const c3=(e,t,n)=>new Pf(e,t,n),kE=(e,t)=>({event:e,check:t}),f3=kE("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),d3=kE("pointerdown",e=>e.pointerType=="mouse");var Tu;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Tu||(Tu={}));class h3{get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function p3(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function g3(e,t,n,r,i){if(!i)return!1;const o=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let s=0;s<i.length;++s){const l=i[s];if(l&&(l.start==null||o>=l.start)&&(l.end==null||o<=l.end))return!0}return!1}const v3={Left:1,Right:2,Center:4},m3={Left:0,Center:1,Right:2};function uv(e){return e.button===void 0||e.button===m3.Left}function y3(e){return e.buttons===void 0||(e.buttons&v3.Left)===0}function _E(e){return!!e.targetTouches}const b3=1;function w3(e){const t=e.nodeType===b3?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function x3(e,t){if(e.targetTouches.length===1)return mp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return mp(e.touches[0])}function mp(e,t){return _E(e)?x3(e,t):{x:e.clientX,y:e.clientY}}const Mx=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),id={[Tu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Tu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Tu.keyboard]:{keydown:"keydown"}};class bd{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(Kt(!bd.isSetUp,"Cannot have two Touch backends at the same time."),bd.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(bd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,i=!1){const o=Mx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=id[s][n];l&&t.addEventListener(l,r,o)})}removeEventListener(t,n,r,i=!1){const o=Mx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=id[s][n];l&&t.removeEventListener(l,r,o)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let s;switch(o.type){case id.mouse.move:s={x:o.clientX,y:o.clientY};break;case id.touch.move:var l,c;s={x:((l=o.touches[0])===null||l===void 0?void 0:l.clientX)||0,y:((c=o.touches[0])===null||c===void 0?void 0:c.clientY)||0};break}const d=s!=null?this.document.elementFromPoint(s.x,s.y):void 0,v=d&&n.contains(d);if(d===n||v)return this.handleMove(o,t)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&w3(o)},this.handleTopMoveStartCapture=i=>{uv(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!uv(i))return;const o=mp(i);o&&(_E(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!uv(i))return;const o=i.type===id.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:s}=this,l=this.options.enableHoverOutsideTarget,c=mp(i,this.lastTargetTouchFallback);if(!c)return;if(this._isScrolling||!this.monitor.isDragging()&&g3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&p3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.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 d=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(d),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const v=(s||[]).map(P=>this.targetNodes.get(P)).filter(P=>!!P),p=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(c.x,c.y,v):this.document.elementsFromPoint(c.x,c.y),x=[];for(const P in p){if(!p.hasOwnProperty(P))continue;let R=p[P];for(R!=null&&x.push(R);R;)R=R.parentElement,R&&x.indexOf(R)===-1&&x.push(R)}const T=x.filter(P=>v.indexOf(P)>-1).map(P=>this._getDropTargetId(P)).filter(P=>!!P).filter((P,R,L)=>L.indexOf(P)===R);if(l)for(const P in this.targetNodes){const R=this.targetNodes.get(P);if(d&&R&&R.contains(d)&&T.indexOf(P)===-1){T.unshift(P);break}}T.reverse(),this.actions.hover(T,{clientOffset:c})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let s=o.next();for(;s.done===!1;){const l=s.value;if(i===this.targetNodes.get(l))return l;s=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!y3(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 h3(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Tu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Tu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Tu.keyboard)}}const S3=function(t,n={},r={}){return new bd(t,n,r)};var Da=function(){return Da=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Da.apply(this,arguments)};function ao(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function T3(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,i=e.duration,o=e.variants,s=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,l=e.children,c=JB({polyfill:x2}),d=c[0],v=c[1].height,p=X.useState(t),x=p[0],T=p[1],P=X.useState(t),R=P[0],L=P[1],I=X.useState(!1),U=I[0],W=I[1],te=function(){W(!1),t||T(!1)};return X.useEffect(function(){W(!0),t?T(!0):L(!1)},[t]),X.useEffect(function(){x&&L(!0)},[v]),X.createElement(KB.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:te,initial:R?"open":"close",animate:R?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:C3(v,i)}},X.createElement("div",{ref:d},x&&l))}function C3(e,t){if(t)return t;if(!e)return 0;var n=e/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var E3=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},od=function(e,t){return e.find(function(n){return n.id===t})},OE=function(e,t,n){if(n===0)return!1;var r=e.find(function(i){return i.id===n});return r===void 0?!1:r.parent===t?!0:OE(e,t,r.parent)},Ry=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},Du=function(e,t,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(e===null){if(t===i)return!0;var s=r.find(function(v){return v.id===t});return!!(s&&s.droppable)}else{var l=Ry(e)?e.id:null;if(o){var c=o(l,t);if(c!==void 0)return c}if(l===t)return!1;var d=r.find(function(p){return p.id===l}),s=r.find(function(p){return p.id===t});return d===void 0||l===null?t===i||!!(s!=null&&s.droppable):s===void 0?d.parent!==0:d.parent===t||!s.droppable?!1:!OE(r,l,t)}},k3=function(e,t,n){return e.map(function(r){return r.id===t?Da(Da({},r),{parent:n}):r})},DE=function(e,t,n){if(n===0)return 0;var r=e.filter(function(i){return i.parent===t});return r[n]?e.findIndex(function(i){return i.id===r[n].id}):e.findIndex(function(i){return i.id===r[n-1].id})+1},_3=function(e,t){return e.findIndex(function(n){return n.id===t})},PE=function(e,t,n,r){var i=_3(e,t),o=DE(e,n,r);return o=o>i?o-1:o,[i,o]},O3=function(e,t,n){var r=t<0?e.length+t:t;if(r>=0&&r<e.length){var i=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(i,0,o)}},D3=function(e,t,n,r){var i=PE(e,t,n,r),o=i[0],s=i[1],l=ao([],e,!0);return O3(l,o,s),l.map(function(c){return c.id===t?Da(Da({},c),{parent:n}):c})},P3=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},wm=function(e,t){var n="",r=0;return e.forEach(function(i,o){var s,l=P3(i,((s=t.getClientOffset())===null||s===void 0?void 0:s.y)||0);n===""?n=l:n!==l&&(n=l,r=o),o===e.length-1&&l==="down"&&(r=o+1)}),r},Lx=function(e,t,n){var r=t.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?wm(i,n):null},R3=function(e,t,n){var r=e.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,s=r.bottom-i;return t>s?"lower":t<o?"upper":"middle"},xm=function(e,t,n,r){var i;if(!t)return null;if(e===null){var o=t.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:wm(o,n)}}var s=n.getItem(),l=t.querySelector('[role="list"]'),c=R3(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(l){if(c==="upper")if(Du(s,e.parent,r)){var d=Lx(e,t,n);return d===null?null:{id:e.parent,index:d}}else return{id:e.id,index:0};var o=l.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:wm(o,n)}}else{if(c==="middle")return{id:e.id,index:0};if(Du(s,e.parent,r)){var d=Lx(e,t,n);return d===null?null:{id:e.parent,index:d}}return null}},I3=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:e2,options:e.html5,transition:d3},{id:"touch",backend:S3,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:f3}]}},Xh=function(e,t){return e.some(function(n){return n.parent===t})},RE=X.createContext({}),A3=function(e){var t=U3(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,s=r.handleOpenAll,l=r.handleOpen,c=r.handleClose;X.useImperativeHandle(e.treeRef,function(){return{open:function(T){return l(T,e.onChangeOpen)},close:function(T){return c(T,e.onChangeOpen)},openAll:function(){return s(e.onChangeOpen)},closeAll:function(){return o(e.onChangeOpen)}}});var d=Nl().getMonitor(),v=e.canDrop,p=e.canDrag,x=Da(Da({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(T,P,R){if(T){var L={dragSourceId:T.id,dropTargetId:P,dragSource:T,dropTarget:od(e.tree,P),monitor:d},I=e.tree;if(od(I,T.id)||(I=ao(ao([],I,!0),[T],!1)),e.sort===!1){var U=PE(I,T.id,P,R),W=U[1];L.destinationIndex=W,L.relativeIndex=R,e.onDrop(D3(I,T.id,P,R),L);return}e.onDrop(k3(I,T.id,P),L)}else{var L={dropTargetId:P,dropTarget:od(e.tree,P),monitor:d};e.sort===!1&&(L.destinationIndex=DE(e.tree,P,R),L.relativeIndex=R),e.onDrop(e.tree,L)}},canDrop:v?function(T,P){return v(e.tree,{dragSourceId:T??void 0,dropTargetId:P,dragSource:d.getItem(),dropTarget:od(e.tree,P),monitor:d})}:void 0,canDrag:p?function(T){return p(od(e.tree,T))}:void 0,onToggle:function(T){return i(T,e.onChangeOpen)}});return X.createElement(RE.Provider,{value:x},e.children)},IE=X.createContext({}),M3={isLock:!1},L3=function(e){var t=X.useState(M3.isLock),n=t[0],r=t[1];return X.createElement(IE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},qd=X.createContext({}),Ih={dropTargetId:void 0,index:void 0},F3=function(e){var t=X.useState(Ih.dropTargetId),n=t[0],r=t[1],i=X.useState(Ih.index),o=i[0],s=i[1],l=function(d,v){r(d),s(v)},c=function(){r(Ih.dropTargetId),s(Ih.index)};return X.createElement(qd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:l,hidePlaceholder:c}},e.children)},N3=function(e){return X.createElement(A3,Da({},e),X.createElement(L3,null,X.createElement(F3,null,e.children)))},j3=function(e){var t=X.useContext(IE);X.useEffect(function(){if(e.current){var n=e.current,r=function(v){var p=v.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.lock()},i=function(v){var p=v.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.unlock()},o=function(v){return r(v)},s=function(v){return i(v)},l=function(v){return r(v)},c=function(v){return i(v)},d=new MutationObserver(function(){document.activeElement===document.body&&t.unlock()});return d.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",s),n.addEventListener("focusin",l),n.addEventListener("focusout",c),function(){d.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",s),n.removeEventListener("focusin",l),n.removeEventListener("focusout",c)}}},[e,t]),X.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},Xp={TREE_ITEM:Symbol()},AE=null,ME=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(AE=n)}},Fx=function(e){return ME(e)},Nx=function(e){return ME(e)},B3=function(e,t){var n=Au();X.useEffect(function(){var l=t.current;return l==null||l.addEventListener("dragstart",Fx),l==null||l.addEventListener("touchstart",Nx,{passive:!0}),function(){l==null||l.removeEventListener("dragstart",Fx),l==null||l.removeEventListener("touchstart",Nx)}},[t]);var r=YV({type:Xp.TREE_ITEM,item:function(l){var c=Da({ref:t},e);return n.onDragStart&&n.onDragStart(c,l),c},end:function(l,c){var d=l;n.onDragEnd&&n.onDragEnd(d,c)},canDrag:function(){var l=n.canDrag;return AE!==t.current?!1:l?l(e.id):!0},collect:function(l){return{isDragging:l.isDragging()}}}),i=r[0].isDragging,o=r[1],s=r[2];return[i,o,s]},$3=function(e,t,n){var r=X.useRef(0),i=X.useRef(0),o=function(){r.current+=1,r.current===1&&!t&&(i.current=window.setTimeout(function(){return n(e)},500))},s=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},l=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:s,onDrop:l}},V3=function(e){var t=Au(),n=X.useContext(qd),r=TE({accept:ao([Xp.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(c,d){var v=t.rootId,p=t.onDrop,x=n.dropTargetId,T=n.index;d.isOver({shallow:!0})&&x!==void 0&&T!==void 0&&p(Ry(c)?c:null,v,T),n.hidePlaceholder()},canDrop:function(c,d){var v=t.rootId;return d.isOver({shallow:!0})?c===void 0?!1:Du(c,v,t):!1},hover:function(c,d){if(d.isOver({shallow:!0})){var v=t.rootId,p=n.dropTargetId,x=n.index,T=n.showPlaceholder,P=n.hidePlaceholder,R=xm(null,e.current,d,t);if(R===null||!Du(c,v,t)){P();return}(R.id!==p||R.index!==x)&&T(R.id,R.index)}},collect:function(c){var d=c.getItem();return{isOver:c.isOver({shallow:!0})&&c.canDrop(),dragSource:d}}}),i=r[0],o=i.isOver,s=i.dragSource,l=r[1];return[o,s,l]},H3=function(e,t){var n=Au(),r=X.useContext(qd),i=TE({accept:ao([Xp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(d,v){var p=r.dropTargetId,x=r.index;v.isOver({shallow:!0})&&p!==void 0&&x!==void 0&&n.onDrop(Ry(d)?d:null,p,x),r.hidePlaceholder()},canDrop:function(d,v){if(v.isOver({shallow:!0})){var p=xm(e,t.current,v,n);return p===null?!1:Du(d,p.id,n)}return!1},hover:function(d,v){if(v.isOver({shallow:!0})){var p=r.dropTargetId,x=r.index,T=r.showPlaceholder,P=r.hidePlaceholder,R=xm(e,t.current,v,n);if(R===null||!Du(d,R.id,n)){P();return}(R.id!==p||R.index!==x)&&T(R.id,R.index)}},collect:function(d){var v=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:v}}}),o=i[0],s=o.isOver,l=o.dragSource,c=i[1];return[s,l,c]},U3=function(e,t){var n=X.useMemo(function(){return t===!0?e.filter(function(p){return Xh(e,p.id)}).map(function(p){return p.id}):Array.isArray(t)?t:[]},[t]),r=X.useState(n),i=r[0],o=r[1];X.useEffect(function(){return o(n)},[t]);var s=function(p,x){var T=i.includes(p)?i.filter(function(P){return P!==p}):ao(ao([],i,!0),[p],!1);o(T),x&&x(T)},l=function(p){o([]),p&&p([])},c=function(p){var x=e.filter(function(T){return Xh(e,T.id)}).map(function(T){return T.id});o(x),p&&p(x)},d=function(p,x){var T=[];if(Array.isArray(p)){var P=e.filter(function(R){return p.includes(R.id)&&Xh(e,R.id)});T=ao(ao([],i,!0),P.map(function(R){return R.id}),!0).filter(function(R,L,I){return I.indexOf(R)===L})}else T=i.includes(p)?i:ao(ao([],i,!0),[p],!1);o(T),x&&x(T)},v=function(p,x){var T=i.filter(function(P){return Array.isArray(p)?!p.includes(P):P!==p});o(T),x&&x(T)};return[i,{handleToggle:s,handleCloseAll:l,handleOpenAll:c,handleOpen:d,handleClose:v}]},W3=function(){return GV(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===Xp.TREE_ITEM}})},Au=function(){var e=X.useContext(RE);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},z3=function(e,t){var n=Au(),r=n.rootId,i=n.rootProps,o=n.classes,s=(o==null?void 0:o.container)||"";return t&&(o!=null&&o.dropTarget)&&(s="".concat(s," ").concat(o.dropTarget)),e===r&&(o!=null&&o.root)&&(s="".concat(s," ").concat(o.root)),e===r&&(i!=null&&i.className)&&(s="".concat(s," ").concat(i.className)),s=s.trim(),s},Y3=function(e,t,n){t.current?n(t):n(e),X.useEffect(function(){t.current?n(t):n(e)},[t.current])},G3=function(e){var t=Au(),n=X.useContext(qd),r=X.useRef(null),i=X.useRef(null),o=t.tree.find(function(ce){return ce.id===e.id}),s=t.openIds,l=t.classes,c=t.enableAnimateExpand,d=s.includes(e.id),v=B3(o,r),p=v[0],x=v[1],T=v[2],P=H3(o,r),R=P[0],L=P[1],I=P[2];Y3(r,i,x),Du(L,e.id,t)&&I(r),X.useEffect(function(){t.dragPreviewRender?T(QL(),{captureDraggingState:!0}):i.current&&T(r)},[T,t.dragPreviewRender]),j3(r);var U=function(){return t.onToggle(o.id)},W=t.listItemComponent,te=(l==null?void 0:l.listItem)||"";R&&(l!=null&&l.dropTarget)&&(te="".concat(te," ").concat(l.dropTarget)),p&&(l!=null&&l.draggingSource)&&(te="".concat(te," ").concat(l.draggingSource));var J=t.canDrag?t.canDrag(e.id):!0,ge=n.dropTargetId===e.id,S={depth:e.depth,isOpen:d,isDragging:p,isDropTarget:ge,draggable:J,hasChild:Xh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:U};return X.createElement(W,{ref:r,className:te,role:"listitem"},t.render(o,S),c&&S.hasChild&&X.createElement(T3,{isVisible:d},X.createElement(Sm,{parentId:e.id,depth:e.depth+1})),!c&&S.hasChild&&d&&X.createElement(Sm,{parentId:e.id,depth:e.depth+1}))},jx=function(e){var t=Au(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=X.useContext(qd),s=Nl(),l=s.getMonitor(),c=l.getItem();if(!n||!c)return null;var d=e.dropTargetId===o.dropTargetId&&(e.index===o.index||e.index===void 0&&e.listCount===o.index);return d?X.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(c,{depth:e.depth})):null},Sm=function(e){var t=Au(),n=X.useRef(null),r=t.tree.filter(function(R){return R.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:E3;if(t.insertDroppableFirst){var s=r.filter(function(R){return R.droppable}),l=r.filter(function(R){return!R.droppable});t.sort===!1?i=ao(ao([],s,!0),l,!0):(s=s.sort(o),l=l.sort(o),i=ao(ao([],s,!0),l,!0))}else t.sort!==!1&&(i=r.sort(o));var c=V3(n),d=c[0],v=c[1],p=c[2];e.parentId===t.rootId&&Du(v,t.rootId,t)&&p(n);var x=z3(e.parentId,d),T=t.rootProps||{},P=t.listComponent;return X.createElement(P,Da({ref:n,role:"list"},T,{className:x}),i.map(function(R,L){return X.createElement(X.Fragment,{key:R.id},X.createElement(jx,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:L}),X.createElement(G3,{id:R.id,depth:e.depth}))}),X.createElement(jx,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},q3={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},X3=function(e){var t=e.clientOffset;if(!t)return{};var n=t.x,r=t.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},K3=function(){var e=Au(),t=W3(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:X.createElement("div",{style:q3},X.createElement("div",{style:X3(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function Z3(e,t){return X.createElement(N3,Da({},e,{treeRef:t}),e.dragPreviewRender&&X.createElement(K3,null),X.createElement(Sm,{parentId:e.rootId,depth:0}))}var J3=X.forwardRef(Z3);const LE=X.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Kp=X.createContext({}),Iy=X.createContext(null),Zp=typeof document<"u",Q3=Zp?X.useLayoutEffect:X.useEffect,FE=X.createContext({strict:!1}),Ay=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),eH="framerAppearId",NE="data-"+Ay(eH);function tH(e,t,n,r){const{visualElement:i}=X.useContext(Kp),o=X.useContext(FE),s=X.useContext(Iy),l=X.useContext(LE).reducedMotion,c=X.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const d=c.current;X.useInsertionEffect(()=>{d&&d.update(n,s)});const v=X.useRef(!!(n[NE]&&!window.HandoffComplete));return Q3(()=>{d&&(d.render(),v.current&&d.animationState&&d.animationState.animateChanges())}),X.useEffect(()=>{d&&(d.updateFeatures(),!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),d}function Tf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nH(e,t,n){return X.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Tf(n)&&(n.current=r))},[t])}function Fd(e){return typeof e=="string"||Array.isArray(e)}function Jp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const My=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ly=["initial",...My];function Qp(e){return Jp(e.animate)||Ly.some(t=>Fd(e[t]))}function jE(e){return!!(Qp(e)||e.variants)}function rH(e,t){if(Qp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fd(n)?n:void 0,animate:Fd(r)?r:void 0}}return e.inherit!==!1?t:{}}function iH(e){const{initial:t,animate:n}=rH(e,X.useContext(Kp));return X.useMemo(()=>({initial:t,animate:n}),[Bx(t),Bx(n)])}function Bx(e){return Array.isArray(e)?e.join(" "):e}const $x={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"]},Nd={};for(const e in $x)Nd[e]={isEnabled:t=>$x[e].some(n=>!!t[n])};function oH(e){for(const t in e)Nd[t]={...Nd[t],...e[t]}}const BE=X.createContext({}),$E=X.createContext({}),aH=Symbol.for("motionComponentSymbol");function sH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&oH(e);function o(l,c){let d;const v={...X.useContext(LE),...l,layoutId:lH(l)},{isStatic:p}=v,x=iH(l),T=r(l,p);if(!p&&Zp){x.visualElement=tH(i,T,v,t);const P=X.useContext($E),R=X.useContext(FE).strict;x.visualElement&&(d=x.visualElement.loadFeatures(v,R,e,P))}return Sn.createElement(Kp.Provider,{value:x},d&&x.visualElement?Sn.createElement(d,{visualElement:x.visualElement,...v}):null,n(i,l,nH(T,x.visualElement,c),T,p,x.visualElement))}const s=X.forwardRef(o);return s[aH]=i,s}function lH({layoutId:e}){const t=X.useContext(BE).id;return t&&e!==void 0?t+"-"+e:e}function uH(e){function t(r,i={}){return sH(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const cH=["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 Fy(e){return typeof e!="string"||e.includes("-")?!1:!!(cH.indexOf(e)>-1||/[A-Z]/.test(e))}const yp={};function fH(e){Object.assign(yp,e)}const Xd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vc=new Set(Xd);function VE(e,{layout:t,layoutId:n}){return Vc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yp[e]||e==="opacity")}const Oo=e=>!!(e&&e.getVelocity),dH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hH=Xd.length;function pH(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<hH;s++){const l=Xd[s];if(e[l]!==void 0){const c=dH[l]||l;o+=`${c}(${e[l]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const HE=e=>t=>typeof t=="string"&&t.startsWith(e),UE=HE("--"),Tm=HE("var(--"),gH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,vH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pu=(e,t,n)=>Math.min(Math.max(n,e),t),Hc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wd={...Hc,transform:e=>Pu(0,1,e)},Ah={...Hc,default:1},xd=e=>Math.round(e*1e5)/1e5,eg=/(-)?([\d]*\.?[\d])+/g,WE=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,mH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Kd(e){return typeof e=="string"}const Zd=e=>({test:t=>Kd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),mu=Zd("deg"),js=Zd("%"),Bt=Zd("px"),yH=Zd("vh"),bH=Zd("vw"),Vx={...js,parse:e=>js.parse(e)/100,transform:e=>js.transform(e*100)},Hx={...Hc,transform:Math.round},zE={borderWidth:Bt,borderTopWidth:Bt,borderRightWidth:Bt,borderBottomWidth:Bt,borderLeftWidth:Bt,borderRadius:Bt,radius:Bt,borderTopLeftRadius:Bt,borderTopRightRadius:Bt,borderBottomRightRadius:Bt,borderBottomLeftRadius:Bt,width:Bt,maxWidth:Bt,height:Bt,maxHeight:Bt,size:Bt,top:Bt,right:Bt,bottom:Bt,left:Bt,padding:Bt,paddingTop:Bt,paddingRight:Bt,paddingBottom:Bt,paddingLeft:Bt,margin:Bt,marginTop:Bt,marginRight:Bt,marginBottom:Bt,marginLeft:Bt,rotate:mu,rotateX:mu,rotateY:mu,rotateZ:mu,scale:Ah,scaleX:Ah,scaleY:Ah,scaleZ:Ah,skew:mu,skewX:mu,skewY:mu,distance:Bt,translateX:Bt,translateY:Bt,translateZ:Bt,x:Bt,y:Bt,z:Bt,perspective:Bt,transformPerspective:Bt,opacity:wd,originX:Vx,originY:Vx,originZ:Bt,zIndex:Hx,fillOpacity:wd,strokeOpacity:wd,numOctaves:Hx};function Ny(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let c=!1,d=!1,v=!0;for(const p in t){const x=t[p];if(UE(p)){o[p]=x;continue}const T=zE[p],P=vH(x,T);if(Vc.has(p)){if(c=!0,s[p]=P,!v)continue;x!==(T.default||0)&&(v=!1)}else p.startsWith("origin")?(d=!0,l[p]=P):i[p]=P}if(t.transform||(c||r?i.transform=pH(e.transform,n,v,r):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:x="50%",originZ:T=0}=l;i.transformOrigin=`${p} ${x} ${T}`}}const jy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function YE(e,t,n){for(const r in t)!Oo(t[r])&&!VE(r,n)&&(e[r]=t[r])}function wH({transformTemplate:e},t,n){return X.useMemo(()=>{const r=jy();return Ny(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function xH(e,t,n){const r=e.style||{},i={};return YE(i,r,e),Object.assign(i,wH(e,t,n)),e.transformValues?e.transformValues(i):i}function SH(e,t,n){const r={},i=xH(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const TH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||TH.has(e)}let GE=e=>!bp(e);function CH(e){e&&(GE=t=>t.startsWith("on")?!bp(t):e(t))}try{CH(require("@emotion/is-prop-valid").default)}catch{}function EH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(GE(i)||n===!0&&bp(i)||!t&&!bp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Ux(e,t,n){return typeof e=="string"?e:Bt.transform(t+n*e)}function kH(e,t,n){const r=Ux(t,e.x,e.width),i=Ux(n,e.y,e.height);return`${r} ${i}`}const _H={offset:"stroke-dashoffset",array:"stroke-dasharray"},OH={offset:"strokeDashoffset",array:"strokeDasharray"};function DH(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?_H:OH;e[o.offset]=Bt.transform(-r);const s=Bt.transform(t),l=Bt.transform(n);e[o.array]=`${s} ${l}`}function By(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:c=0,...d},v,p,x){if(Ny(e,d,v,x),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:T,style:P,dimensions:R}=e;T.transform&&(R&&(P.transform=T.transform),delete T.transform),R&&(i!==void 0||o!==void 0||P.transform)&&(P.transformOrigin=kH(R,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(T.x=t),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),s!==void 0&&DH(T,s,l,c,!1)}const qE=()=>({...jy(),attrs:{}}),$y=e=>typeof e=="string"&&e.toLowerCase()==="svg";function PH(e,t,n,r){const i=X.useMemo(()=>{const o=qE();return By(o,t,{enableHardwareAcceleration:!1},$y(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};YE(o,e.style,e),i.style={...o,...i.style}}return i}function RH(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(Fy(n)?PH:SH)(r,o,s,n),v={...EH(r,typeof n=="string",e),...c,ref:i},{children:p}=r,x=X.useMemo(()=>Oo(p)?p.get():p,[p]);return X.createElement(n,{...v,children:x})}}function XE(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const KE=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 ZE(e,t,n,r){XE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(KE.has(i)?i:Ay(i),t.attrs[i])}function Vy(e,t){const{style:n}=e,r={};for(const i in n)(Oo(n[i])||t.style&&Oo(t.style[i])||VE(i,e))&&(r[i]=n[i]);return r}function JE(e,t){const n=Vy(e,t);for(const r in e)if(Oo(e[r])||Oo(t[r])){const i=Xd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Hy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function IH(e){const t=X.useRef(null);return t.current===null&&(t.current=e()),t.current}const wp=e=>Array.isArray(e),AH=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),MH=e=>wp(e)?e[e.length-1]||0:e;function Kh(e){const t=Oo(e)?e.get():e;return AH(t)?t.toValue():t}function LH({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:FH(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const QE=e=>(t,n)=>{const r=X.useContext(Kp),i=X.useContext(Iy),o=()=>LH(e,t,r,i);return n?o():IH(o)};function FH(e,t,n,r){const i={},o=r(e,{});for(const x in o)i[x]=Kh(o[x]);let{initial:s,animate:l}=e;const c=Qp(e),d=jE(e);t&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let v=n?n.initial===!1:!1;v=v||s===!1;const p=v?l:s;return p&&typeof p!="boolean"&&!Jp(p)&&(Array.isArray(p)?p:[p]).forEach(T=>{const P=Hy(e,T);if(!P)return;const{transitionEnd:R,transition:L,...I}=P;for(const U in I){let W=I[U];if(Array.isArray(W)){const te=v?W.length-1:0;W=W[te]}W!==null&&(i[U]=W)}for(const U in R)i[U]=R[U]}),i}const cr=e=>e;class Wx{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function NH(e){let t=new Wx,n=new Wx,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,v=!1)=>{const p=v&&i,x=p?t:n;return d&&s.add(c),x.add(c)&&p&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const v=t.order[d];v(c),s.has(v)&&(l.schedule(v),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const Mh=["prepare","read","update","preRender","render","postRender"],jH=40;function BH(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Mh.reduce((p,x)=>(p[x]=NH(()=>n=!0),p),{}),s=p=>o[p].process(i),l=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,jH),1),i.timestamp=p,i.isProcessing=!0,Mh.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Mh.reduce((p,x)=>{const T=o[x];return p[x]=(P,R=!1,L=!1)=>(n||c(),T.schedule(P,R,L)),p},{}),cancel:p=>Mh.forEach(x=>o[x].cancel(p)),state:i,steps:o}}const{schedule:Hn,cancel:Fl,state:Fi,steps:cv}=BH(typeof requestAnimationFrame<"u"?requestAnimationFrame:cr,!0),$H={useVisualState:QE({scrapeMotionValuesFromProps:JE,createRenderState:qE,onMount:(e,t,{renderState:n,latestValues:r})=>{Hn.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Hn.render(()=>{By(n,r,{enableHardwareAcceleration:!1},$y(t.tagName),e.transformTemplate),ZE(t,n)})}})},VH={useVisualState:QE({scrapeMotionValuesFromProps:Vy,createRenderState:jy})};function HH(e,{forwardMotionProps:t=!1},n,r){return{...Fy(e)?$H:VH,preloadedFeatures:n,useRender:RH(t),createVisualElement:r,Component:e}}function kl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ek=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function tg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const UH=e=>t=>ek(t)&&e(t,tg(t));function Dl(e,t,n,r){return kl(e,t,UH(n),r)}const WH=(e,t)=>n=>t(e(n)),Cu=(...e)=>e.reduce(WH);function tk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const zx=tk("dragHorizontal"),Yx=tk("dragVertical");function nk(e){let t=!1;if(e==="y")t=Yx();else if(e==="x")t=zx();else{const n=zx(),r=Yx();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function rk(){const e=nk(!0);return e?(e(),!1):!0}class Mu{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Gx(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||rk())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Hn.update(()=>l[r](o,s))};return Dl(e.current,n,i,{passive:!e.getProps()[r]})}class zH extends Mu{mount(){this.unmount=Cu(Gx(this.node,!0),Gx(this.node,!1))}unmount(){}}class YH extends Mu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Cu(kl(this.node.current,"focus",()=>this.onFocus()),kl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ik=(e,t)=>t?e===t?!0:ik(e,t.parentElement):!1;function fv(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,tg(n))}class GH extends Mu{constructor(){super(...arguments),this.removeStartListeners=cr,this.removeEndListeners=cr,this.removeAccessibleListeners=cr,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Dl(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:v,globalTapTarget:p}=this.node.getProps();Hn.update(()=>{!p&&!ik(this.node.current,l.target)?v&&v(l,c):d&&d(l,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=Dl(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Cu(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||fv("up",(c,d)=>{const{onTap:v}=this.node.getProps();v&&Hn.update(()=>v(c,d))})};this.removeEndListeners(),this.removeEndListeners=kl(this.node.current,"keyup",s),fv("down",(l,c)=>{this.startPress(l,c)})},n=kl(this.node.current,"keydown",t),r=()=>{this.isPressing&&fv("cancel",(o,s)=>this.cancelPress(o,s))},i=kl(this.node.current,"blur",r);this.removeAccessibleListeners=Cu(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Hn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!rk()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Hn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Dl(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=kl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Cu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Cm=new WeakMap,dv=new WeakMap,qH=e=>{const t=Cm.get(e.target);t&&t(e)},XH=e=>{e.forEach(qH)};function KH({root:e,...t}){const n=e||document;dv.has(n)||dv.set(n,{});const r=dv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XH,{root:e,...t})),r[i]}function ZH(e,t,n){const r=KH(t);return Cm.set(e,n),r.observe(e),()=>{Cm.delete(e),r.unobserve(e)}}const JH={some:0,all:1};class QH extends Mu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:JH[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:v,onViewportLeave:p}=this.node.getProps(),x=d?v:p;x&&x(c)};return ZH(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(eU(t,n))&&this.startObserver()}unmount(){}}function eU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tU={inView:{Feature:QH},tap:{Feature:GH},focus:{Feature:YH},hover:{Feature:zH}};function ok(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function nU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function rU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function ng(e,t,n){const r=e.getProps();return Hy(r,t,n!==void 0?n:r.custom,nU(e),rU(e))}let Jd=cr,os=cr;process.env.NODE_ENV!=="production"&&(Jd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},os=(e,t)=>{if(!e)throw new Error(t)});const Eu=e=>e*1e3,Pl=e=>e/1e3,iU={current:!1},ak=e=>Array.isArray(e)&&typeof e[0]=="number";function sk(e){return!!(!e||typeof e=="string"&&lk[e]||ak(e)||Array.isArray(e)&&e.every(sk))}const ld=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ld([0,.65,.55,1]),circOut:ld([.55,0,1,.45]),backIn:ld([.31,.01,.66,-.59]),backOut:ld([.33,1.53,.69,.99])};function uk(e){if(e)return ak(e)?ld(e):Array.isArray(e)?e.map(uk):lk[e]}function oU(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:c}={}){const d={[t]:n};c&&(d.offset=c);const v=uk(l);return Array.isArray(v)&&(d.easing=v),e.animate(d,{delay:r,duration:i,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function aU(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const ck=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sU=1e-7,lU=12;function uU(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=ck(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>sU&&++l<lU);return s}function Qd(e,t,n,r){if(e===t&&n===r)return cr;const i=o=>uU(o,0,1,e,n);return o=>o===0||o===1?o:ck(i(o),t,r)}const cU=Qd(.42,0,1,1),fU=Qd(0,0,.58,1),fk=Qd(.42,0,.58,1),dU=e=>Array.isArray(e)&&typeof e[0]!="number",dk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hk=e=>t=>1-e(1-t),Uy=e=>1-Math.sin(Math.acos(e)),pk=hk(Uy),hU=dk(Uy),gk=Qd(.33,1.53,.69,.99),Wy=hk(gk),pU=dk(Wy),gU=e=>(e*=2)<1?.5*Wy(e):.5*(2-Math.pow(2,-10*(e-1))),qx={linear:cr,easeIn:cU,easeInOut:fk,easeOut:fU,circIn:Uy,circInOut:hU,circOut:pk,backIn:Wy,backInOut:pU,backOut:gk,anticipate:gU},Xx=e=>{if(Array.isArray(e)){os(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Qd(t,n,r,i)}else if(typeof e=="string")return os(qx[e]!==void 0,`Invalid easing type '${e}'`),qx[e];return e},zy=(e,t)=>n=>!!(Kd(n)&&mH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),vk=(e,t,n)=>r=>{if(!Kd(r))return r;const[i,o,s,l]=r.match(eg);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},vU=e=>Pu(0,255,e),hv={...Hc,transform:e=>Math.round(vU(e))},kc={test:zy("rgb","red"),parse:vk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+hv.transform(e)+", "+hv.transform(t)+", "+hv.transform(n)+", "+xd(wd.transform(r))+")"};function mU(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Em={test:zy("#"),parse:mU,transform:kc.transform},Cf={test:zy("hsl","hue"),parse:vk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+js.transform(xd(t))+", "+js.transform(xd(n))+", "+xd(wd.transform(r))+")"},oo={test:e=>kc.test(e)||Em.test(e)||Cf.test(e),parse:e=>kc.test(e)?kc.parse(e):Cf.test(e)?Cf.parse(e):Em.parse(e),transform:e=>Kd(e)?e:e.hasOwnProperty("red")?kc.transform(e):Cf.transform(e)},nr=(e,t,n)=>-n*e+n*t+e;function pv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=pv(c,l,e+1/3),o=pv(c,l,e),s=pv(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const gv=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},bU=[Em,kc,Cf],wU=e=>bU.find(t=>t.test(e));function Kx(e){const t=wU(e);os(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Cf&&(n=yU(n)),n}const mk=(e,t)=>{const n=Kx(e),r=Kx(t),i={...n};return o=>(i.red=gv(n.red,r.red,o),i.green=gv(n.green,r.green,o),i.blue=gv(n.blue,r.blue,o),i.alpha=nr(n.alpha,r.alpha,o),kc.transform(i))};function xU(e){var t,n;return isNaN(e)&&Kd(e)&&(((t=e.match(eg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(WE))===null||n===void 0?void 0:n.length)||0)>0}const yk={regex:gH,countKey:"Vars",token:"${v}",parse:cr},bk={regex:WE,countKey:"Colors",token:"${c}",parse:oo.parse},wk={regex:eg,countKey:"Numbers",token:"${n}",parse:Hc.parse};function vv(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function xp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&vv(n,yk),vv(n,bk),vv(n,wk),n}function xk(e){return xp(e).values}function Sk(e){const{values:t,numColors:n,numVars:r,tokenised:i}=xp(e),o=t.length;return s=>{let l=i;for(let c=0;c<o;c++)c<r?l=l.replace(yk.token,s[c]):c<r+n?l=l.replace(bk.token,oo.transform(s[c])):l=l.replace(wk.token,xd(s[c]));return l}}const SU=e=>typeof e=="number"?0:e;function TU(e){const t=xk(e);return Sk(e)(t.map(SU))}const Ru={test:xU,parse:xk,createTransformer:Sk,getAnimatableNone:TU},Tk=(e,t)=>n=>`${n>0?t:e}`;function Ck(e,t){return typeof e=="number"?n=>nr(e,t,n):oo.test(e)?mk(e,t):e.startsWith("var(")?Tk(e,t):kk(e,t)}const Ek=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Ck(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},CU=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ck(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},kk=(e,t)=>{const n=Ru.createTransformer(t),r=xp(e),i=xp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Cu(Ek(r.values,i.values),n):(Jd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Tk(e,t))},jd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Zx=(e,t)=>n=>nr(e,t,n);function EU(e){return typeof e=="number"?Zx:typeof e=="string"?oo.test(e)?mk:kk:Array.isArray(e)?Ek:typeof e=="object"?CU:Zx}function kU(e,t,n){const r=[],i=n||EU(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||cr:t;l=Cu(c,l)}r.push(l)}return r}function _k(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(os(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=kU(t,r,i),l=s.length,c=d=>{let v=0;if(l>1)for(;v<e.length-2&&!(d<e[v+1]);v++);const p=jd(e[v],e[v+1],d);return s[v](p)};return n?d=>c(Pu(e[0],e[o-1],d)):c}function _U(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=jd(0,t,r);e.push(nr(n,1,i))}}function OU(e){const t=[0];return _U(t,e.length-1),t}function DU(e,t){return e.map(n=>n*t)}function PU(e,t){return e.map(()=>t||fk).splice(0,e.length-1)}function Sp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=dU(r)?r.map(Xx):Xx(r),o={done:!1,value:t[0]},s=DU(n&&n.length===t.length?n:OU(t),e),l=_k(s,t,{ease:Array.isArray(i)?i:PU(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}function Ok(e,t){return t?e*(1e3/t):0}const RU=5;function Dk(e,t,n){const r=Math.max(t-RU,0);return Ok(n-e(r),t-r)}const mv=.001,IU=.01,Jx=10,AU=.05,MU=1;function LU({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Jd(e<=Eu(Jx),"Spring duration must be 10 seconds or less");let s=1-t;s=Pu(AU,MU,s),e=Pu(IU,Jx,Pl(e)),s<1?(i=d=>{const v=d*s,p=v*e,x=v-n,T=km(d,s),P=Math.exp(-p);return mv-x/T*P},o=d=>{const p=d*s*e,x=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,P=Math.exp(-p),R=km(Math.pow(d,2),s);return(-i(d)+mv>0?-1:1)*((x-T)*P)/R}):(i=d=>{const v=Math.exp(-d*e),p=(d-n)*e+1;return-mv+v*p},o=d=>{const v=Math.exp(-d*e),p=(n-d)*(e*e);return v*p});const l=5/e,c=NU(i,o,l);if(e=Eu(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const FU=12;function NU(e,t,n){let r=n;for(let i=1;i<FU;i++)r=r-e(r)/t(r);return r}function km(e,t){return e*Math.sqrt(1-t*t)}const jU=["duration","bounce"],BU=["stiffness","damping","mass"];function Qx(e,t){return t.some(n=>e[n]!==void 0)}function $U(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Qx(e,BU)&&Qx(e,jU)){const n=LU(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Pk({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:v,velocity:p,isResolvedFromDuration:x}=$U({...r,velocity:-Pl(r.velocity||0)}),T=p||0,P=c/(2*Math.sqrt(l*d)),R=o-i,L=Pl(Math.sqrt(l/d)),I=Math.abs(R)<5;n||(n=I?.01:2),t||(t=I?.005:.5);let U;if(P<1){const W=km(L,P);U=te=>{const J=Math.exp(-P*L*te);return o-J*((T+P*L*R)/W*Math.sin(W*te)+R*Math.cos(W*te))}}else if(P===1)U=W=>o-Math.exp(-L*W)*(R+(T+L*R)*W);else{const W=L*Math.sqrt(P*P-1);U=te=>{const J=Math.exp(-P*L*te),ge=Math.min(W*te,300);return o-J*((T+P*L*R)*Math.sinh(ge)+W*R*Math.cosh(ge))/W}}return{calculatedDuration:x&&v||null,next:W=>{const te=U(W);if(x)s.done=W>=v;else{let J=T;W!==0&&(P<1?J=Dk(U,W,te):J=0);const ge=Math.abs(J)<=n,S=Math.abs(o-te)<=t;s.done=ge&&S}return s.value=s.done?o:te,s}}}function eS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:c,restDelta:d=.5,restSpeed:v}){const p=e[0],x={done:!1,value:p},T=ce=>l!==void 0&&ce<l||c!==void 0&&ce>c,P=ce=>l===void 0?c:c===void 0||Math.abs(l-ce)<Math.abs(c-ce)?l:c;let R=n*t;const L=p+R,I=s===void 0?L:s(L);I!==L&&(R=I-p);const U=ce=>-R*Math.exp(-ce/r),W=ce=>I+U(ce),te=ce=>{const ae=U(ce),Ne=W(ce);x.done=Math.abs(ae)<=d,x.value=x.done?I:Ne};let J,ge;const S=ce=>{T(x.value)&&(J=ce,ge=Pk({keyframes:[x.value,P(x.value)],velocity:Dk(W,ce,x.value),damping:i,stiffness:o,restDelta:d,restSpeed:v}))};return S(0),{calculatedDuration:null,next:ce=>{let ae=!1;return!ge&&J===void 0&&(ae=!0,te(ce),S(ce)),J!==void 0&&ce>J?ge.next(ce-J):(!ae&&te(ce),x)}}}const VU=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Hn.update(t,!0),stop:()=>Fl(t),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},tS=2e4;function nS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<tS;)t+=n,r=e.next(t);return t>=tS?1/0:t}const HU={decay:eS,inertia:eS,tween:Sp,keyframes:Sp,spring:Pk};function Tp({autoplay:e=!0,delay:t=0,driver:n=VU,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:c,onStop:d,onComplete:v,onUpdate:p,...x}){let T=1,P=!1,R,L;const I=()=>{L=new Promise(Pe=>{R=Pe})};I();let U;const W=HU[i]||Sp;let te;W!==Sp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&os(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),te=_k([0,100],r,{clamp:!1}),r=[0,100]);const J=W({...x,keyframes:r});let ge;l==="mirror"&&(ge=W({...x,keyframes:[...r].reverse(),velocity:-(x.velocity||0)}));let S="idle",ce=null,ae=null,Ne=null;J.calculatedDuration===null&&o&&(J.calculatedDuration=nS(J));const{calculatedDuration:Je}=J;let Ye=1/0,Qe=1/0;Je!==null&&(Ye=Je+s,Qe=Ye*(o+1)-s);let tt=0;const he=Pe=>{if(ae===null)return;T>0&&(ae=Math.min(ae,Pe)),T<0&&(ae=Math.min(Pe-Qe/T,ae)),ce!==null?tt=ce:tt=Math.round(Pe-ae)*T;const Ve=tt-t*(T>=0?1:-1),Ue=T>=0?Ve<0:Ve>Qe;tt=Math.max(Ve,0),S==="finished"&&ce===null&&(tt=Qe);let Re=tt,Fe=J;if(o){const wt=Math.min(tt,Qe)/Ye;let vt=Math.floor(wt),Et=wt%1;!Et&&wt>=1&&(Et=1),Et===1&&vt--,vt=Math.min(vt,o+1),!!(vt%2)&&(l==="reverse"?(Et=1-Et,s&&(Et-=s/Ye)):l==="mirror"&&(Fe=ge)),Re=Pu(0,1,Et)*Ye}const Ge=Ue?{done:!1,value:r[0]}:Fe.next(Re);te&&(Ge.value=te(Ge.value));let{done:lt}=Ge;!Ue&&Je!==null&&(lt=T>=0?tt>=Qe:tt<=0);const mt=ce===null&&(S==="finished"||S==="running"&<);return p&&p(Ge.value),mt&&et(),Ge},Ce=()=>{U&&U.stop(),U=void 0},He=()=>{S="idle",Ce(),R(),I(),ae=Ne=null},et=()=>{S="finished",v&&v(),Ce(),R()},at=()=>{if(P)return;U||(U=n(he));const Pe=U.now();c&&c(),ce!==null?ae=Pe-ce:(!ae||S==="finished")&&(ae=Pe),S==="finished"&&I(),Ne=ae,ce=null,S="running",U.start()};e&&at();const Ee={then(Pe,Ve){return L.then(Pe,Ve)},get time(){return Pl(tt)},set time(Pe){Pe=Eu(Pe),tt=Pe,ce!==null||!U||T===0?ce=Pe:ae=U.now()-Pe/T},get duration(){const Pe=J.calculatedDuration===null?nS(J):J.calculatedDuration;return Pl(Pe)},get speed(){return T},set speed(Pe){Pe===T||!U||(T=Pe,Ee.time=Pl(tt))},get state(){return S},play:at,pause:()=>{S="paused",ce=tt},stop:()=>{P=!0,S!=="idle"&&(S="idle",d&&d(),He())},cancel:()=>{Ne!==null&&he(Ne),He()},complete:()=>{S="finished"},sample:Pe=>(ae=0,he(Pe))};return Ee}function UU(e){let t;return()=>(t===void 0&&(t=e()),t)}const WU=UU(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),zU=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Lh=10,YU=2e4,GU=(e,t)=>t.type==="spring"||e==="backgroundColor"||!sk(t.ease);function qU(e,t,{onUpdate:n,onComplete:r,...i}){if(!(WU()&&zU.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,c,d=!1;const v=()=>{c=new Promise(W=>{l=W})};v();let{keyframes:p,duration:x=300,ease:T,times:P}=i;if(GU(t,i)){const W=Tp({...i,repeat:0,delay:0});let te={done:!1,value:p[0]};const J=[];let ge=0;for(;!te.done&&ge<YU;)te=W.sample(ge),J.push(te.value),ge+=Lh;P=void 0,p=J,x=ge-Lh,T="linear"}const R=oU(e.owner.current,t,p,{...i,duration:x,ease:T,times:P}),L=()=>{d=!1,R.cancel()},I=()=>{d=!0,Hn.update(L),l(),v()};return R.onfinish=()=>{d||(e.set(aU(p,i)),r&&r(),I())},{then(W,te){return c.then(W,te)},attachTimeline(W){return R.timeline=W,R.onfinish=null,cr},get time(){return Pl(R.currentTime||0)},set time(W){R.currentTime=Eu(W)},get speed(){return R.playbackRate},set speed(W){R.playbackRate=W},get duration(){return Pl(x)},play:()=>{s||(R.play(),Fl(L))},pause:()=>R.pause(),stop:()=>{if(s=!0,R.playState==="idle")return;const{currentTime:W}=R;if(W){const te=Tp({...i,autoplay:!1});e.setWithVelocity(te.sample(W-Lh).value,te.sample(W).value,Lh)}I()},complete:()=>{d||R.finish()},cancel:I}}function XU({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:cr,pause:cr,stop:cr,then:o=>(o(),Promise.resolve()),cancel:cr,complete:cr});return t?Tp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const KU={type:"spring",stiffness:500,damping:25,restSpeed:10},ZU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),JU={type:"keyframes",duration:.8},QU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eW=(e,{keyframes:t})=>t.length>2?JU:Vc.has(e)?e.startsWith("scale")?ZU(t[1]):KU:QU,_m=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ru.test(t)||t==="0")&&!t.startsWith("url(")),tW=new Set(["brightness","contrast","saturate","opacity"]);function nW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(eg)||[];if(!r)return e;const i=n.replace(r,"");let o=tW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const rW=/([a-z-]*)\(.*?\)/g,Om={...Ru,getAnimatableNone:e=>{const t=e.match(rW);return t?t.map(nW).join(" "):e}},iW={...zE,color:oo,backgroundColor:oo,outlineColor:oo,fill:oo,stroke:oo,borderColor:oo,borderTopColor:oo,borderRightColor:oo,borderBottomColor:oo,borderLeftColor:oo,filter:Om,WebkitFilter:Om},Yy=e=>iW[e];function Rk(e,t){let n=Yy(e);return n!==Om&&(n=Ru),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ik=e=>/^0[^.\s]+$/.test(e);function oW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ik(e)}function aW(e,t,n,r){const i=_m(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const c=[];for(let d=0;d<o.length;d++)o[d]===null&&(o[d]=d===0?s:o[d-1]),oW(o[d])&&c.push(d),typeof o[d]=="string"&&o[d]!=="none"&&o[d]!=="0"&&(l=o[d]);if(i&&c.length&&l)for(let d=0;d<c.length;d++){const v=c[d];o[v]=Rk(t,l)}return o}function sW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:c,elapsed:d,...v}){return!!Object.keys(v).length}function Gy(e,t){return e[t]||e.default||e}const lW={skipAnimations:!1},qy=(e,t,n,r={})=>i=>{const o=Gy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Eu(s);const c=aW(t,e,n,o),d=c[0],v=c[c.length-1],p=_m(e,d),x=_m(e,v);Jd(p===x,`You are trying to animate ${e} from "${d}" to "${v}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${v} via the \`style\` property.`);let T={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:P=>{t.set(P),o.onUpdate&&o.onUpdate(P)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(sW(o)||(T={...T,...eW(e,T)}),T.duration&&(T.duration=Eu(T.duration)),T.repeatDelay&&(T.repeatDelay=Eu(T.repeatDelay)),!p||!x||iU.current||o.type===!1||lW.skipAnimations)return XU(T);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const P=qU(t,e,T);if(P)return P}return Tp(T)};function Cp(e){return!!(Oo(e)&&e.add)}const Ak=e=>/^\-?\d*\.?\d+$/.test(e);function Xy(e,t){e.indexOf(t)===-1&&e.push(t)}function Ky(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Zy{constructor(){this.subscriptions=[]}add(t){return Xy(this.subscriptions,t),()=>Ky(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const rS=new Set;function Jy(e,t,n){e||rS.has(t)||(console.warn(t),n&&console.warn(n),rS.add(t))}const uW=e=>!isNaN(parseFloat(e));class cW{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=Fi;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Hn.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=()=>Hn.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=uW(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Jy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Hn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ok(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Af(e,t){return new cW(e,t)}const Mk=e=>t=>t.test(e),fW={test:e=>e==="auto",parse:e=>e},Lk=[Hc,Bt,js,mu,bH,yH,fW],ad=e=>Lk.find(Mk(e)),dW=[...Lk,oo,Ru],hW=e=>dW.find(Mk(e));function pW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Af(n))}function gW(e,t){const n=ng(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=MH(o[s]);pW(e,s,l)}}function vW(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;l<s;l++){const c=o[l],d=t[c];let v=null;Array.isArray(d)&&(v=d[0]),v===null&&(v=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),v!=null&&(typeof v=="string"&&(Ak(v)||Ik(v))?v=parseFloat(v):!hW(v)&&Ru.test(d)&&(v=Rk(c,d)),e.addValue(c,Af(v,{owner:e})),n[c]===void 0&&(n[c]=v),v!==null&&e.setBaseTarget(c,v))}}function mW(e,t){return t?(t[e]||t.default||t).from:void 0}function yW(e,t,n){const r={};for(const i in e){const o=mW(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function bW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function wW(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Fk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(o=r);const d=[],v=i&&e.animationState&&e.animationState.getState()[i];for(const p in l){const x=e.getValue(p),T=l[p];if(!x||T===void 0||v&&bW(v,p))continue;const P={delay:n,elapsed:0,...Gy(o||{},p)};if(window.HandoffAppearAnimations){const I=e.getProps()[NE];if(I){const U=window.HandoffAppearAnimations(I,p,x,Hn);U!==null&&(P.elapsed=U,P.isHandoff=!0)}}let R=!P.isHandoff&&!wW(x,T);if(P.type==="spring"&&(x.getVelocity()||P.velocity)&&(R=!1),x.animation&&(R=!1),R)continue;x.start(qy(p,x,T,e.shouldReduceMotion&&Vc.has(p)?{type:!1}:P));const L=x.animation;Cp(c)&&(c.add(p),L.then(()=>c.remove(p))),d.push(L)}return s&&Promise.all(d).then(()=>{s&&gW(e,s)}),d}function Dm(e,t,n={}){const r=ng(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Fk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:v,staggerDirection:p}=i;return xW(e,t,d+c,v,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[o,s]:[s,o];return c().then(()=>d())}else return Promise.all([o(),s(n.delay)])}function xW(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(SW).forEach((d,v)=>{d.notify("AnimationStart",t),s.push(Dm(d,t,{...o,delay:n+c(v)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function SW(e,t){return e.sortNodePosition(t)}function TW(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Dm(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Dm(e,t,n);else{const i=typeof t=="function"?ng(e,t,n.custom):t;r=Promise.all(Fk(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const CW=[...My].reverse(),EW=My.length;function kW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>TW(e,n,r)))}function _W(e){let t=kW(e);const n=DW();let r=!0;const i=(c,d)=>{const v=ng(e,d);if(v){const{transition:p,transitionEnd:x,...T}=v;c={...c,...T,...x}}return c};function o(c){t=c(e)}function s(c,d){const v=e.getProps(),p=e.getVariantContext(!0)||{},x=[],T=new Set;let P={},R=1/0;for(let I=0;I<EW;I++){const U=CW[I],W=n[U],te=v[U]!==void 0?v[U]:p[U],J=Fd(te),ge=U===d?W.isActive:null;ge===!1&&(R=I);let S=te===p[U]&&te!==v[U]&&J;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),W.protectedKeys={...P},!W.isActive&&ge===null||!te&&!W.prevProp||Jp(te)||typeof te=="boolean")continue;let ae=OW(W.prevProp,te)||U===d&&W.isActive&&!S&&J||I>R&&J,Ne=!1;const Je=Array.isArray(te)?te:[te];let Ye=Je.reduce(i,{});ge===!1&&(Ye={});const{prevResolvedValues:Qe={}}=W,tt={...Qe,...Ye},he=Ce=>{ae=!0,T.has(Ce)&&(Ne=!0,T.delete(Ce)),W.needsAnimating[Ce]=!0};for(const Ce in tt){const He=Ye[Ce],et=Qe[Ce];if(P.hasOwnProperty(Ce))continue;let at=!1;wp(He)&&wp(et)?at=!ok(He,et):at=He!==et,at?He!==void 0?he(Ce):T.add(Ce):He!==void 0&&T.has(Ce)?he(Ce):W.protectedKeys[Ce]=!0}W.prevProp=te,W.prevResolvedValues=Ye,W.isActive&&(P={...P,...Ye}),r&&e.blockInitialAnimation&&(ae=!1),ae&&(!S||Ne)&&x.push(...Je.map(Ce=>({animation:Ce,options:{type:U,...c}})))}if(T.size){const I={};T.forEach(U=>{const W=e.getBaseTarget(U);W!==void 0&&(I[U]=W)}),x.push({animation:I})}let L=!!x.length;return r&&(v.initial===!1||v.initial===v.animate)&&!e.manuallyAnimateOnMount&&(L=!1),r=!1,L?t(x):Promise.resolve()}function l(c,d,v){var p;if(n[c].isActive===d)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(T=>{var P;return(P=T.animationState)===null||P===void 0?void 0:P.setActive(c,d)}),n[c].isActive=d;const x=s(v,c);for(const T in n)n[T].protectedKeys={};return x}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function OW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ok(t,e):!1}function bc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function DW(){return{animate:bc(!0),whileInView:bc(),whileHover:bc(),whileTap:bc(),whileDrag:bc(),whileFocus:bc(),exit:bc()}}class PW extends Mu{constructor(t){super(t),t.animationState||(t.animationState=_W(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Jp(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let RW=0;class IW extends Mu{constructor(){super(...arguments),this.id=RW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const AW={animation:{Feature:PW},exit:{Feature:IW}},iS=(e,t)=>Math.abs(e-t);function MW(e,t){const n=iS(e.x,t.x),r=iS(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nk{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=bv(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,T=MW(p.offset,{x:0,y:0})>=3;if(!x&&!T)return;const{point:P}=p,{timestamp:R}=Fi;this.history.push({...P,timestamp:R});const{onStart:L,onMove:I}=this.handlers;x||(L&&L(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,p)},this.handlePointerMove=(p,x)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=yv(x,this.transformPagePoint),Hn.update(this.updatePoint,!0)},this.handlePointerUp=(p,x)=>{this.end();const{onEnd:T,onSessionEnd:P,resumeAnimation:R}=this.handlers;if(this.dragSnapToOrigin&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=bv(p.type==="pointercancel"?this.lastMoveEventInfo:yv(x,this.transformPagePoint),this.history);this.startEvent&&T&&T(p,L),P&&P(p,L)},!ek(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=tg(t),l=yv(s,this.transformPagePoint),{point:c}=l,{timestamp:d}=Fi;this.history=[{...c,timestamp:d}];const{onSessionStart:v}=n;v&&v(t,bv(l,this.history)),this.removeListeners=Cu(Dl(this.contextWindow,"pointermove",this.handlePointerMove),Dl(this.contextWindow,"pointerup",this.handlePointerUp),Dl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Fl(this.updatePoint)}}function yv(e,t){return t?{point:t(e.point)}:e}function oS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bv({point:e},t){return{point:e,delta:oS(e,jk(t)),offset:oS(e,LW(t)),velocity:FW(t,.1)}}function LW(e){return e[0]}function jk(e){return e[e.length-1]}function FW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=jk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Eu(t)));)n--;if(!r)return{x:0,y:0};const o=Pl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ea(e){return e.max-e.min}function Pm(e,t=0,n=.01){return Math.abs(e-t)<=n}function aS(e,t,n,r=.5){e.origin=r,e.originPoint=nr(t.min,t.max,e.origin),e.scale=ea(n)/ea(t),(Pm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nr(n.min,n.max,e.origin)-e.originPoint,(Pm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Sd(e,t,n,r){aS(e.x,t.x,n.x,r?r.originX:void 0),aS(e.y,t.y,n.y,r?r.originY:void 0)}function sS(e,t,n){e.min=n.min+t.min,e.max=e.min+ea(t)}function NW(e,t,n){sS(e.x,t.x,n.x),sS(e.y,t.y,n.y)}function lS(e,t,n){e.min=t.min-n.min,e.max=e.min+ea(t)}function Td(e,t,n){lS(e.x,t.x,n.x),lS(e.y,t.y,n.y)}function jW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?nr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?nr(n,e,r.max):Math.min(e,n)),e}function uS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function BW(e,{top:t,left:n,bottom:r,right:i}){return{x:uS(e.x,n,i),y:uS(e.y,t,r)}}function cS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function $W(e,t){return{x:cS(e.x,t.x),y:cS(e.y,t.y)}}function VW(e,t){let n=.5;const r=ea(e),i=ea(t);return i>r?n=jd(t.min,t.max-r,e.min):r>i&&(n=jd(e.min,e.max-i,t.min)),Pu(0,1,n)}function HW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Rm=.35;function UW(e=Rm){return e===!1?e=0:e===!0&&(e=Rm),{x:fS(e,"left","right"),y:fS(e,"top","bottom")}}function fS(e,t,n){return{min:dS(e,t),max:dS(e,n)}}function dS(e,t){return typeof e=="number"?e:e[t]||0}const hS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ef=()=>({x:hS(),y:hS()}),pS=()=>({min:0,max:0}),Or=()=>({x:pS(),y:pS()});function Ea(e){return[e("x"),e("y")]}function Bk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function WW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zW(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function wv(e){return e===void 0||e===1}function Im({scale:e,scaleX:t,scaleY:n}){return!wv(e)||!wv(t)||!wv(n)}function Sc(e){return Im(e)||$k(e)||e.z||e.rotate||e.rotateX||e.rotateY}function $k(e){return gS(e.x)||gS(e.y)}function gS(e){return e&&e!=="0%"}function Ep(e,t,n){const r=e-n,i=t*r;return n+i}function vS(e,t,n,r,i){return i!==void 0&&(e=Ep(e,i,r)),Ep(e,n,r)+t}function Am(e,t=0,n=1,r,i){e.min=vS(e.min,t,n,r,i),e.max=vS(e.max,t,n,r,i)}function Vk(e,{x:t,y:n}){Am(e.x,t.translate,t.scale,t.originPoint),Am(e.y,n.translate,n.scale,n.originPoint)}function YW(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const c=o.instance;c&&c.style&&c.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&kf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Vk(e,s)),r&&Sc(o.latestValues)&&kf(e,o.latestValues))}t.x=mS(t.x),t.y=mS(t.y)}function mS(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function bu(e,t){e.min=e.min+t,e.max=e.max+t}function yS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=nr(e.min,e.max,o);Am(e,t[n],t[r],s,t.scale)}const GW=["x","scaleX","originX"],qW=["y","scaleY","originY"];function kf(e,t){yS(e.x,t,GW),yS(e.y,t,qW)}function Hk(e,t){return Bk(zW(e.getBoundingClientRect(),t))}function XW(e,t,n){const r=Hk(e,n),{scroll:i}=t;return i&&(bu(r.x,i.offset.x),bu(r.y,i.offset.y)),r}const Uk=({current:e})=>e?e.ownerDocument.defaultView:null,KW=new WeakMap;class ZW{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Or(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=v=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tg(v,"page").point)},o=(v,p)=>{const{drag:x,dragPropagation:T,onDragStart:P}=this.getProps();if(x&&!T&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=nk(x),!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),Ea(L=>{let I=this.getAxisMotionValue(L).get()||0;if(js.test(I)){const{projection:U}=this.visualElement;if(U&&U.layout){const W=U.layout.layoutBox[L];W&&(I=ea(W)*(parseFloat(I)/100))}}this.originPoint[L]=I}),P&&Hn.update(()=>P(v,p),!1,!0);const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},s=(v,p)=>{const{dragPropagation:x,dragDirectionLock:T,onDirectionLock:P,onDrag:R}=this.getProps();if(!x&&!this.openGlobalLock)return;const{offset:L}=p;if(T&&this.currentDirection===null){this.currentDirection=JW(L),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",p.point,L),this.updateAxis("y",p.point,L),this.visualElement.render(),R&&R(v,p)},l=(v,p)=>this.stop(v,p),c=()=>Ea(v=>{var p;return this.getAnimationState(v)==="paused"&&((p=this.getAxisMotionValue(v).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Nk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Uk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Hn.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Fh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=jW(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Tf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=BW(i.layoutBox,n):this.constraints=!1,this.elastic=UW(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ea(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=HW(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tf(t))return!1;const r=t.current;os(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=XW(r,i.root,this.visualElement.getTransformPagePoint());let s=$W(i.layout.layoutBox,o);if(n){const l=n(WW(s));this.hasMutatedConstraints=!!l,l&&(s=Bk(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Ea(v=>{if(!Fh(v,n,this.currentDirection))return;let p=c&&c[v]||{};s&&(p={min:0,max:0});const x=i?200:1e6,T=i?40:1e7,P={type:"inertia",velocity:r?t[v]:0,bounceStiffness:x,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(v,P)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(qy(t,r,0,n))}stopAnimation(){Ea(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ea(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ea(n=>{const{drag:r}=this.getProps();if(!Fh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-nr(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Tf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ea(s=>{const l=this.getAxisMotionValue(s);if(l){const c=l.get();i[s]=VW({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ea(s=>{if(!Fh(s,t,null))return;const l=this.getAxisMotionValue(s),{min:c,max:d}=this.constraints[s];l.set(nr(c,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;KW.set(this.visualElement,this);const t=this.visualElement.current,n=Dl(t,"pointerdown",c=>{const{drag:d,dragListener:v=!0}=this.getProps();d&&v&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Tf(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=kl(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ea(v=>{const p=this.getAxisMotionValue(v);p&&(this.originPoint[v]+=c[v].translate,p.set(p.get()+c[v].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Rm,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Fh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function JW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class QW extends Mu{constructor(t){super(t),this.removeGroupControls=cr,this.removeListeners=cr,this.controls=new ZW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||cr}unmount(){this.removeGroupControls(),this.removeListeners()}}const bS=e=>(t,n)=>{e&&Hn.update(()=>e(t,n))};class ez extends Mu{constructor(){super(...arguments),this.removePointerDownListener=cr}onPointerDown(t){this.session=new Nk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Uk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:bS(t),onStart:bS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Hn.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Dl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function tz(){const e=X.useContext(Iy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=X.useId();return X.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Bt.test(e))e=parseFloat(e);else return e;const n=wS(e,t.target.x),r=wS(e,t.target.y);return`${n}% ${r}%`}},nz={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ru.parse(e);if(i.length>5)return r;const o=Ru.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=c;const d=nr(l,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};class rz extends X.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;fH(iz),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Hn.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wk(e){const[t,n]=tz(),r=X.useContext(BE);return X.createElement(rz,{...e,layoutGroup:r,switchLayoutGroup:X.useContext($E),isPresent:t,safeToRemove:n})}const iz={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:nz},zk=["TopLeft","TopRight","BottomLeft","BottomRight"],oz=zk.length,xS=e=>typeof e=="string"?parseFloat(e):e,SS=e=>typeof e=="number"||Bt.test(e);function az(e,t,n,r,i,o){i?(e.opacity=nr(0,n.opacity!==void 0?n.opacity:1,sz(r)),e.opacityExit=nr(t.opacity!==void 0?t.opacity:1,0,lz(r))):o&&(e.opacity=nr(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<oz;s++){const l=`border${zk[s]}Radius`;let c=TS(t,l),d=TS(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||SS(c)===SS(d)?(e[l]=Math.max(nr(xS(c),xS(d),r),0),(js.test(d)||js.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=nr(t.rotate||0,n.rotate||0,r))}function TS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sz=Yk(0,.5,pk),lz=Yk(.5,.95,cr);function Yk(e,t,n){return r=>r<e?0:r>t?1:n(jd(e,t,r))}function CS(e,t){e.min=t.min,e.max=t.max}function Ca(e,t){CS(e.x,t.x),CS(e.y,t.y)}function ES(e,t,n,r,i){return e-=t,e=Ep(e,1/n,r),i!==void 0&&(e=Ep(e,1/i,r)),e}function uz(e,t=0,n=1,r=.5,i,o=e,s=e){if(js.test(t)&&(t=parseFloat(t),t=nr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=nr(o.min,o.max,r);e===o&&(l-=t),e.min=ES(e.min,t,n,l,i),e.max=ES(e.max,t,n,l,i)}function kS(e,t,[n,r,i],o,s){uz(e,t[n],t[r],t[i],t.scale,o,s)}const cz=["x","scaleX","originX"],fz=["y","scaleY","originY"];function _S(e,t,n,r){kS(e.x,t,cz,n?n.x:void 0,r?r.x:void 0),kS(e.y,t,fz,n?n.y:void 0,r?r.y:void 0)}function OS(e){return e.translate===0&&e.scale===1}function Gk(e){return OS(e.x)&&OS(e.y)}function dz(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function qk(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function DS(e){return ea(e.x)/ea(e.y)}class hz{constructor(){this.members=[]}add(t){Xy(this.members,t),t.scheduleRender()}remove(t){if(Ky(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function PS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:d,rotateY:v}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),v&&(r+=`rotateY(${v}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const pz=(e,t)=>e.depth-t.depth;class gz{constructor(){this.children=[],this.isDirty=!1}add(t){Xy(this.children,t),this.isDirty=!0}remove(t){Ky(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pz),this.isDirty=!1,this.children.forEach(t)}}function vz(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Fl(r),e(o-t))};return Hn.read(r,!0),()=>Fl(r)}function mz(e){window.MotionDebug&&window.MotionDebug.record(e)}function yz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function bz(e,t,n){const r=Oo(e)?e:Af(e);return r.start(qy("",r,t,n)),r.animation}const RS=["","X","Y","Z"],wz={visibility:"hidden"},IS=1e3;let xz=0;const Tc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Xk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=xz++,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,Tc.totalNodes=Tc.resolvedTargetDeltas=Tc.recalculatedProjection=0,this.nodes.forEach(Cz),this.nodes.forEach(Dz),this.nodes.forEach(Pz),this.nodes.forEach(Ez),mz(Tc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new gz)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Zy),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const c=this.eventHandlers.get(s);c&&c.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=yz(s),this.instance=s;const{layoutId:c,layout:d,visualElement:v}=this.options;if(v&&!v.current&&v.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||c)&&(this.isLayoutDirty=!0),e){let p;const x=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=vz(x,250),Zh.hasAnimatedSinceResize&&(Zh.hasAnimatedSinceResize=!1,this.nodes.forEach(MS))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&v&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:x,hasRelativeTargetChanged:T,layout:P})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||v.getDefaultTransition()||Lz,{onLayoutAnimationStart:L,onLayoutAnimationComplete:I}=v.getProps(),U=!this.targetLayout||!qk(this.targetLayout,P)||T,W=!x&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||W||x&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,W);const te={...Gy(R,"layout"),onPlay:L,onComplete:I};(v.shouldReduceMotion||this.options.layoutRoot)&&(te.delay=0,te.type=!1),this.startAnimation(te)}else x||MS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=P})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Fl(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(Rz),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const p=this.path[v];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(AS);return}this.isUpdating||this.nodes.forEach(_z),this.isUpdating=!1,this.nodes.forEach(Oz),this.nodes.forEach(Sz),this.nodes.forEach(Tz),this.clearAllSnapshots();const l=performance.now();Fi.delta=Pu(0,1e3/60,l-Fi.timestamp),Fi.timestamp=l,Fi.isProcessing=!0,cv.update.process(Fi),cv.preRender.process(Fi),cv.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(kz),this.sharedNodes.forEach(Iz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Hn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Hn.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Or(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Gk(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,v=d!==this.prevTransformTemplateValue;s&&(l||Sc(this.latestValues)||v)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return s&&(c=this.removeTransform(c)),Fz(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Or();const l=s.measureViewportBox(),{scroll:c}=this.root;return c&&(bu(l.x,c.offset.x),bu(l.y,c.offset.y)),l}removeElementScroll(s){const l=Or();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:v,options:p}=d;if(d!==this.root&&v&&p.layoutScroll){if(v.isRoot){Ca(l,s);const{scroll:x}=this.root;x&&(bu(l.x,-x.offset.x),bu(l.y,-x.offset.y))}bu(l.x,v.offset.x),bu(l.y,v.offset.y)}}return l}applyTransform(s,l=!1){const c=Or();Ca(c,s);for(let d=0;d<this.path.length;d++){const v=this.path[d];!l&&v.options.layoutScroll&&v.scroll&&v!==v.root&&kf(c,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Sc(v.latestValues)&&kf(c,v.latestValues)}return Sc(this.latestValues)&&kf(c,this.latestValues),c}removeTransform(s){const l=Or();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Sc(d.latestValues))continue;Im(d.latestValues)&&d.updateSnapshot();const v=Or(),p=d.measurePageBox();Ca(v,p),_S(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,v)}return Sc(this.latestValues)&&_S(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(s||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:p,layoutId:x}=this.options;if(!(!this.layout||!(p||x))){if(this.resolvedRelativeTargetAt=Fi.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Or(),this.relativeTargetOrigin=Or(),Td(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Or(),this.targetWithTransforms=Or()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),NW(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ca(this.target,this.layout.layoutBox),Vk(this.target,this.targetDelta)):Ca(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Or(),this.relativeTargetOrigin=Or(),Td(this.relativeTargetOrigin,this.target,T.target),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Tc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Im(this.parent.latestValues)||$k(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Fi.timestamp&&(d=!1),d)return;const{layout:v,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||p))return;Ca(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,T=this.treeScale.y;YW(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:P}=l;if(!P){this.projectionTransform&&(this.projectionDelta=Ef(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ef(),this.projectionDeltaWithTransform=Ef());const R=this.projectionTransform;Sd(this.projectionDelta,this.layoutCorrected,P,this.latestValues),this.projectionTransform=PS(this.projectionDelta,this.treeScale),(this.projectionTransform!==R||this.treeScale.x!==x||this.treeScale.y!==T)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",P)),Tc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const c=this.snapshot,d=c?c.latestValues:{},v={...this.latestValues},p=Ef();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const x=Or(),T=c?c.source:void 0,P=this.layout?this.layout.source:void 0,R=T!==P,L=this.getStack(),I=!L||L.members.length<=1,U=!!(R&&!I&&this.options.crossfade===!0&&!this.path.some(Mz));this.animationProgress=0;let W;this.mixTargetDelta=te=>{const J=te/1e3;LS(p.x,s.x,J),LS(p.y,s.y,J),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Td(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Az(this.relativeTarget,this.relativeTargetOrigin,x,J),W&&dz(this.relativeTarget,W)&&(this.isProjectionDirty=!1),W||(W=Or()),Ca(W,this.relativeTarget)),R&&(this.animationValues=v,az(v,d,this.latestValues,J,U,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=J},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Fl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Hn.update(()=>{Zh.hasAnimatedSinceResize=!0,this.currentAnimation=bz(0,IS,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(IS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:v}=s;if(!(!l||!c||!d)){if(this!==s&&this.layout&&d&&Kk(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Or();const p=ea(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+p;const x=ea(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+x}Ca(l,c),kf(l,v),Sd(this.projectionDeltaWithTransform,this.layoutCorrected,l,v)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new hz),this.sharedNodes.get(s).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:c}=s;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(l=!0),!l)return;const d={};for(let v=0;v<RS.length;v++){const p="rotate"+RS[v];c[p]&&(d[p]=c[p],s.setStaticValue(p,0))}s.render();for(const v in d)s.setStaticValue(v,d[v]);s.scheduleRender()}getProjectionStyles(s){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wz;const d={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Kh(s==null?void 0:s.pointerEvents)||"",d.transform=v?v(this.latestValues,""):"none",d;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const R={};return this.options.layoutId&&(R.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,R.pointerEvents=Kh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Sc(this.latestValues)&&(R.transform=v?v({},""):"none",this.hasProjected=!1),R}const x=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=PS(this.projectionDeltaWithTransform,this.treeScale,x),v&&(d.transform=v(x,d.transform));const{x:T,y:P}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${P.origin*100}% 0`,p.animationValues?d.opacity=p===this?(c=(l=x.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:d.opacity=p===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const R in yp){if(x[R]===void 0)continue;const{correct:L,applyTo:I}=yp[R],U=d.transform==="none"?x[R]:L(x[R],p);if(I){const W=I.length;for(let te=0;te<W;te++)d[I[te]]=U}else d[R]=U}return this.options.layoutId&&(d.pointerEvents=p===this?Kh(s==null?void 0:s.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(AS),this.root.sharedNodes.clear()}}}function Sz(e){e.updateLayout()}function Tz(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Ea(p=>{const x=s?n.measuredBox[p]:n.layoutBox[p],T=ea(x);x.min=r[p].min,x.max=x.min+T}):Kk(o,n.layoutBox,r)&&Ea(p=>{const x=s?n.measuredBox[p]:n.layoutBox[p],T=ea(r[p]);x.max=x.min+T,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+T)});const l=Ef();Sd(l,r,n.layoutBox);const c=Ef();s?Sd(c,e.applyTransform(i,!0),n.measuredBox):Sd(c,r,n.layoutBox);const d=!Gk(l);let v=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:x,layout:T}=p;if(x&&T){const P=Or();Td(P,n.layoutBox,x.layoutBox);const R=Or();Td(R,r,T.layoutBox),qk(P,R)||(v=!0),p.options.layoutRoot&&(e.relativeTarget=R,e.relativeTargetOrigin=P,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:v})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Cz(e){Tc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ez(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kz(e){e.clearSnapshot()}function AS(e){e.clearMeasurements()}function _z(e){e.isLayoutDirty=!1}function Oz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function MS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Dz(e){e.resolveTargetDelta()}function Pz(e){e.calcProjection()}function Rz(e){e.resetRotation()}function Iz(e){e.removeLeadSnapshot()}function LS(e,t,n){e.translate=nr(t.translate,0,n),e.scale=nr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function FS(e,t,n,r){e.min=nr(t.min,n.min,r),e.max=nr(t.max,n.max,r)}function Az(e,t,n,r){FS(e.x,t.x,n.x,r),FS(e.y,t.y,n.y,r)}function Mz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Lz={duration:.45,ease:[.4,0,.1,1]},NS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),jS=NS("applewebkit/")&&!NS("chrome/")?Math.round:cr;function BS(e){e.min=jS(e.min),e.max=jS(e.max)}function Fz(e){BS(e.x),BS(e.y)}function Kk(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pm(DS(t),DS(n),.2)}const Nz=Xk({attachResizeListener:(e,t)=>kl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xv={current:void 0},Zk=Xk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xv.current){const e=new Nz({});e.mount(window),e.setOptions({layoutScroll:!0}),xv.current=e}return xv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),jz={pan:{Feature:ez},drag:{Feature:QW,ProjectionNode:Zk,MeasureLayout:Wk}},Bz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $z(e){const t=Bz.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const Vz=4;function Mm(e,t,n=1){os(n<=Vz,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=$z(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Ak(s)?parseFloat(s):s}else return Tm(i)?Mm(i,t,n+1):i}function Hz(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Tm(o))return;const s=Mm(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Tm(o))continue;const s=Mm(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const Uz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Jk=e=>Uz.has(e),Wz=e=>Object.keys(e).some(Jk),Nh=e=>e===Hc||e===Bt,$S=(e,t)=>parseFloat(e.split(", ")[t]),VS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return $S(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?$S(o[1],e):0}},zz=new Set(["x","y","z"]),Yz=Xd.filter(e=>!zz.has(e));function Gz(e){const t=[];return Yz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Mf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:VS(4,13),y:VS(5,14)};Mf.translateX=Mf.x;Mf.translateY=Mf.y;const qz=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{l[d]=Mf[d](r,o)}),t.render();const c=t.measureViewportBox();return n.forEach(d=>{const v=t.getValue(d);v&&v.jump(l[d]),e[d]=Mf[d](c,o)}),e},Xz=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Jk);let o=[],s=!1;const l=[];if(i.forEach(c=>{const d=e.getValue(c);if(!e.hasValue(c))return;let v=n[c],p=ad(v);const x=t[c];let T;if(wp(x)){const P=x.length,R=x[0]===null?1:0;v=x[R],p=ad(v);for(let L=R;L<P&&x[L]!==null;L++)T?os(ad(x[L])===T,"All keyframes must be of the same type"):(T=ad(x[L]),os(T===p||Nh(p)&&Nh(T),"Keyframes must be of the same dimension as the current value"))}else T=ad(x);if(p!==T)if(Nh(p)&&Nh(T)){const P=d.get();typeof P=="string"&&d.set(parseFloat(P)),typeof x=="string"?t[c]=parseFloat(x):Array.isArray(x)&&T===Bt&&(t[c]=x.map(parseFloat))}else p!=null&&p.transform&&(T!=null&&T.transform)&&(v===0||x===0)?v===0?d.set(T.transform(v)):t[c]=p.transform(x):(s||(o=Gz(e),s=!0),l.push(c),r[c]=r[c]!==void 0?r[c]:t[c],d.jump(x))}),l.length){const c=l.indexOf("height")>=0?window.pageYOffset:null,d=qz(t,e,l);return o.length&&o.forEach(([v,p])=>{e.getValue(v).set(p)}),e.render(),Zp&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Kz(e,t,n,r){return Wz(t)?Xz(e,t,n,r):{target:t,transitionEnd:r}}const Zz=(e,t,n,r)=>{const i=Hz(e,t,r);return t=i.target,r=i.transitionEnd,Kz(e,t,n,r)},Lm={current:null},Qk={current:!1};function Jz(){if(Qk.current=!0,!!Zp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lm.current=e.matches;e.addListener(t),t()}else Lm.current=!1}function Qz(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Oo(o))e.addValue(i,o),Cp(r)&&r.add(i),process.env.NODE_ENV==="development"&&Jy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Oo(s))e.addValue(i,Af(o,{owner:e})),Cp(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,Af(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const HS=new WeakMap,e_=Object.keys(Nd),e5=e_.length,US=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],t5=Ly.length;class n5{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Hn.render(this.render,!1,!0);const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Qp(n),this.isVariantNode=jE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...v}=this.scrapeMotionValuesFromProps(n,{});for(const p in v){const x=v[p];l[p]!==void 0&&Oo(x)&&(x.set(l[p],!1),Cp(d)&&d.add(p))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,HS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Qk.current||Jz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Lm.current,process.env.NODE_ENV!=="production"&&Jy(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(){HS.delete(this.current),this.projection&&this.projection.unmount(),Fl(this.notifyUpdate),Fl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Vc.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Hn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;if(process.env.NODE_ENV!=="production"&&i&&r){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Jd(!1,c):os(!1,c)}for(let c=0;c<e5;c++){const d=e_[c],{isEnabled:v,Feature:p,ProjectionNode:x,MeasureLayout:T}=Nd[d];x&&(s=x),v(n)&&(!this.features[d]&&p&&(this.features[d]=new p(this)),T&&(l=T))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:d,drag:v,dragConstraints:p,layoutScroll:x,layoutRoot:T}=n;this.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!v||p&&Tf(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,layoutScroll:x,layoutRoot:T})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Or()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<US.length;r++){const i=US[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Qz(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<t5;r++){const i=Ly[r],o=this.props[i];(Fd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Af(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Hy(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Oo(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class t_ extends n5{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=yW(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){vW(this,r,s);const l=Zz(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function r5(e){return window.getComputedStyle(e)}class i5 extends t_{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Vc.has(n)){const r=Yy(n);return r&&r.default||0}else{const r=r5(t),i=(UE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hk(t,n)}build(t,n,r,i){Ny(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Vy(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Oo(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){XE(t,n,r,i)}}class o5 extends t_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vc.has(n)){const r=Yy(n);return r&&r.default||0}return n=KE.has(n)?n:Ay(n),t.getAttribute(n)}measureInstanceViewportBox(){return Or()}scrapeMotionValuesFromProps(t,n){return JE(t,n)}build(t,n,r,i){By(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){ZE(t,n,r,i)}mount(t){this.isSVGTag=$y(t.tagName),super.mount(t)}}const a5=(e,t)=>Fy(e)?new o5(t,{enableHardwareAcceleration:!1}):new i5(t,{enableHardwareAcceleration:!0}),s5={layout:{ProjectionNode:Zk,MeasureLayout:Wk}},l5={...AW,...tU,...jz,...s5},n_=uH((e,t)=>HH(e,t,l5,a5));function r_(e){return Ip({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(e)}function i_(e){return Ip({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(e)}function Qy(e,t){return t?e:void 0}function u5(e){return ze.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:ze.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 c5(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=X.useState({top:0,left:0}),s=X.useRef(null),[l,c]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&s.current){const d=n.current.getBoundingClientRect(),v=s.current.getBoundingClientRect();let p=d.top;const x=d.left+d.width,T=v.height+(window.innerHeight-d.top)>window.innerHeight;T&&(console.log("overtop"),c(window.innerHeight-d.top-50)),d.top+v.height>window.innerHeight&&!T&&(p=d.top-v.height+d.height),o({top:p,left:x})}},[n,s]),r?t({maxHeight:l}):qm.createPortal(ze.jsx("div",{ref:s,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:d=>{console.log("onDragStart Dropdown",d.target)},children:t({maxHeight:l})}),n.current)}function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lf.apply(this,arguments)}const f5=Object.freeze(Object.defineProperty({__proto__:null,default:Lf},Symbol.toStringTag,{value:"Module"}));function o_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jh(e,t)}/*!
|
|
12
|
+
* content-type
|
|
13
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
14
|
+
* MIT Licensed
|
|
15
|
+
*/var WS=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,d5=/\\([\u000b\u0020-\u00ff])/g,h5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,p5=g5;function g5(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?v5(e):e;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=n!==-1?t.slice(0,n).trim():t.trim();if(!h5.test(r))throw new TypeError("invalid media type");var i=new m5(r.toLowerCase());if(n!==-1){var o,s,l;for(WS.lastIndex=n;s=WS.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),l=s[2],l.charCodeAt(0)===34&&(l=l.slice(1,-1),l.indexOf("\\")!==-1&&(l=l.replace(d5,"$1"))),i.parameters[o]=l}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function v5(e){var t;if(typeof e.getHeader=="function"?t=e.getHeader("content-type"):typeof e.headers=="object"&&(t=e.headers&&e.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function m5(e){this.parameters=Object.create(null),this.type=e}var bf=new Map,a_=function(t){return t.cloneNode(!0)},zS=function(){return window.location.protocol==="file:"},s_=function(t,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=p5(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(zS()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(i.status===200||zS()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(l){if(i.abort(),l instanceof Error)r(l,i);else throw l}},i.open("GET",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},wu={},YS=function(t,n){wu[t]=wu[t]||[],wu[t].push(n)},y5=function(t){for(var n=function(s,l){setTimeout(function(){if(Array.isArray(wu[t])){var c=bf.get(t),d=wu[t][s];c instanceof SVGSVGElement&&d(null,a_(c)),c instanceof Error&&d(c),s===wu[t].length-1&&delete wu[t]}},0)},r=0,i=wu[t].length;r<i;r++)n(r)},b5=function(t,n,r){if(bf.has(t)){var i=bf.get(t);if(i===void 0){YS(t,r);return}if(i instanceof SVGSVGElement){r(null,a_(i));return}}bf.set(t,void 0),YS(t,r),s_(t,n,function(o,s){var l;o?bf.set(t,o):((l=s.responseXML)===null||l===void 0?void 0:l.documentElement)instanceof SVGSVGElement&&bf.set(t,s.responseXML.documentElement),y5(t)})},w5=function(t,n,r){s_(t,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},x5=0,S5=function(){return++x5},Is=[],GS={},T5="http://www.w3.org/2000/svg",Sv="http://www.w3.org/1999/xlink",qS=function(t,n,r,i,o,s,l){var c=t.getAttribute("data-src")||t.getAttribute("src");if(!c){l(new Error("Invalid data-src or src attribute"));return}if(Is.indexOf(t)!==-1){Is.splice(Is.indexOf(t),1),t=null;return}Is.push(t),t.setAttribute("src","");var d=i?b5:w5;d(c,o,function(v,p){if(!p){Is.splice(Is.indexOf(t),1),t=null,l(v);return}var x=t.getAttribute("id");x&&p.setAttribute("id",x);var T=t.getAttribute("title");T&&p.setAttribute("title",T);var P=t.getAttribute("width");P&&p.setAttribute("width",P);var R=t.getAttribute("height");R&&p.setAttribute("height",R);var L=Array.from(new Set(Qo(Qo(Qo([],(p.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();p.setAttribute("class",L);var I=t.getAttribute("style");I&&p.setAttribute("style",I),p.setAttribute("data-src",c);var U=[].filter.call(t.attributes,function(et){return/^data-\w[\w-]*$/.test(et.name)});if(Array.prototype.forEach.call(U,function(et){et.name&&et.value&&p.setAttribute(et.name,et.value)}),r){var W={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"]},te,J,ge,S,ce;Object.keys(W).forEach(function(et){te=et,ge=W[et],J=p.querySelectorAll(te+"[id]");for(var at=function(Ue,Re){S=J[Ue].id,ce=S+"-"+S5();var Fe;Array.prototype.forEach.call(ge,function($t){Fe=p.querySelectorAll("["+$t+'*="'+S+'"]');for(var Ht=0,Xn=Fe.length;Ht<Xn;Ht++){var br=Fe[Ht].getAttribute($t);br&&!br.match(new RegExp('url\\("?#'+S+'"?\\)'))||Fe[Ht].setAttribute($t,"url(#"+ce+")")}});for(var Ge=p.querySelectorAll("[*|href]"),lt=[],mt=0,wt=Ge.length;mt<wt;mt++){var vt=Ge[mt].getAttributeNS(Sv,"href");vt&&vt.toString()==="#"+J[Ue].id&<.push(Ge[mt])}for(var Et=0,ot=lt.length;Et<ot;Et++)lt[Et].setAttributeNS(Sv,"href","#"+ce);J[Ue].id=ce},Ee=0,Pe=J.length;Ee<Pe;Ee++)at(Ee)})}p.removeAttribute("xmlns:a");for(var ae=p.querySelectorAll("script"),Ne=[],Je,Ye,Qe=0,tt=ae.length;Qe<tt;Qe++)Ye=ae[Qe].getAttribute("type"),(!Ye||Ye==="application/ecmascript"||Ye==="application/javascript"||Ye==="text/javascript")&&(Je=ae[Qe].innerText||ae[Qe].textContent,Je&&Ne.push(Je),p.removeChild(ae[Qe]));if(Ne.length>0&&(n==="always"||n==="once"&&!GS[c])){for(var he=0,Ce=Ne.length;he<Ce;he++)new Function(Ne[he])(window);GS[c]=!0}var He=p.querySelectorAll("style");if(Array.prototype.forEach.call(He,function(et){et.textContent+=""}),p.setAttribute("xmlns",T5),p.setAttribute("xmlns:xlink",Sv),s(p),!t.parentNode){Is.splice(Is.indexOf(t),1),t=null,l(new Error("Parent node is null"));return}t.parentNode.replaceChild(p,t),Is.splice(Is.indexOf(t),1),t=null,l(null,p)})},C5=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,l=s===void 0?function(){}:s,c=r.beforeEach,d=c===void 0?function(){}:c,v=r.cacheRequests,p=v===void 0?!0:v,x=r.evalScripts,T=x===void 0?"never":x,P=r.httpRequestWithCredentials,R=P===void 0?!1:P,L=r.renumerateIRIElements,I=L===void 0?!0:L;if(t&&"length"in t)for(var U=0,W=0,te=t.length;W<te;W++)qS(t[W],T,I,p,R,d,function(J,ge){l(J,ge),t&&"length"in t&&t.length===++U&&o(U)});else t?qS(t,T,I,p,R,d,function(J,ge){l(J,ge),o(1),t=null}):o(0)},Fm={exports:{}},jh={exports:{}},wn={};/** @license React v16.13.1
|
|
16
|
+
* react-is.production.min.js
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/var XS;function E5(){if(XS)return wn;XS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function W(J){if(typeof J=="object"&&J!==null){var ge=J.$$typeof;switch(ge){case t:switch(J=J.type,J){case c:case d:case r:case o:case i:case p:return J;default:switch(J=J&&J.$$typeof,J){case l:case v:case P:case T:case s:return J;default:return ge}}case n:return ge}}}function te(J){return W(J)===d}return wn.AsyncMode=c,wn.ConcurrentMode=d,wn.ContextConsumer=l,wn.ContextProvider=s,wn.Element=t,wn.ForwardRef=v,wn.Fragment=r,wn.Lazy=P,wn.Memo=T,wn.Portal=n,wn.Profiler=o,wn.StrictMode=i,wn.Suspense=p,wn.isAsyncMode=function(J){return te(J)||W(J)===c},wn.isConcurrentMode=te,wn.isContextConsumer=function(J){return W(J)===l},wn.isContextProvider=function(J){return W(J)===s},wn.isElement=function(J){return typeof J=="object"&&J!==null&&J.$$typeof===t},wn.isForwardRef=function(J){return W(J)===v},wn.isFragment=function(J){return W(J)===r},wn.isLazy=function(J){return W(J)===P},wn.isMemo=function(J){return W(J)===T},wn.isPortal=function(J){return W(J)===n},wn.isProfiler=function(J){return W(J)===o},wn.isStrictMode=function(J){return W(J)===i},wn.isSuspense=function(J){return W(J)===p},wn.isValidElementType=function(J){return typeof J=="string"||typeof J=="function"||J===r||J===d||J===o||J===i||J===p||J===x||typeof J=="object"&&J!==null&&(J.$$typeof===P||J.$$typeof===T||J.$$typeof===s||J.$$typeof===l||J.$$typeof===v||J.$$typeof===L||J.$$typeof===I||J.$$typeof===U||J.$$typeof===R)},wn.typeOf=W,wn}var xn={};/** @license React v16.13.1
|
|
23
|
+
* react-is.development.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/var KS;function k5(){return KS||(KS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function W(ot){return typeof ot=="string"||typeof ot=="function"||ot===r||ot===d||ot===o||ot===i||ot===p||ot===x||typeof ot=="object"&&ot!==null&&(ot.$$typeof===P||ot.$$typeof===T||ot.$$typeof===s||ot.$$typeof===l||ot.$$typeof===v||ot.$$typeof===L||ot.$$typeof===I||ot.$$typeof===U||ot.$$typeof===R)}function te(ot){if(typeof ot=="object"&&ot!==null){var $t=ot.$$typeof;switch($t){case t:var Ht=ot.type;switch(Ht){case c:case d:case r:case o:case i:case p:return Ht;default:var Xn=Ht&&Ht.$$typeof;switch(Xn){case l:case v:case P:case T:case s:return Xn;default:return $t}}case n:return $t}}}var J=c,ge=d,S=l,ce=s,ae=t,Ne=v,Je=r,Ye=P,Qe=T,tt=n,he=o,Ce=i,He=p,et=!1;function at(ot){return et||(et=!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.")),Ee(ot)||te(ot)===c}function Ee(ot){return te(ot)===d}function Pe(ot){return te(ot)===l}function Ve(ot){return te(ot)===s}function Ue(ot){return typeof ot=="object"&&ot!==null&&ot.$$typeof===t}function Re(ot){return te(ot)===v}function Fe(ot){return te(ot)===r}function Ge(ot){return te(ot)===P}function lt(ot){return te(ot)===T}function mt(ot){return te(ot)===n}function wt(ot){return te(ot)===o}function vt(ot){return te(ot)===i}function Et(ot){return te(ot)===p}xn.AsyncMode=J,xn.ConcurrentMode=ge,xn.ContextConsumer=S,xn.ContextProvider=ce,xn.Element=ae,xn.ForwardRef=Ne,xn.Fragment=Je,xn.Lazy=Ye,xn.Memo=Qe,xn.Portal=tt,xn.Profiler=he,xn.StrictMode=Ce,xn.Suspense=He,xn.isAsyncMode=at,xn.isConcurrentMode=Ee,xn.isContextConsumer=Pe,xn.isContextProvider=Ve,xn.isElement=Ue,xn.isForwardRef=Re,xn.isFragment=Fe,xn.isLazy=Ge,xn.isMemo=lt,xn.isPortal=mt,xn.isProfiler=wt,xn.isStrictMode=vt,xn.isSuspense=Et,xn.isValidElementType=W,xn.typeOf=te}()),xn}var ZS;function l_(){return ZS||(ZS=1,process.env.NODE_ENV==="production"?jh.exports=E5():jh.exports=k5()),jh.exports}/*
|
|
30
|
+
object-assign
|
|
31
|
+
(c) Sindre Sorhus
|
|
32
|
+
@license MIT
|
|
33
|
+
*/var Tv,JS;function _5(){if(JS)return Tv;JS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(v){return s[v]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(v){d[v]=v}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tv=i()?Object.assign:function(o,s){for(var l,c=r(o),d,v=1;v<arguments.length;v++){l=Object(arguments[v]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){d=e(l);for(var x=0;x<d.length;x++)n.call(l,d[x])&&(c[d[x]]=l[d[x]])}}return c},Tv}var Cv,QS;function eb(){if(QS)return Cv;QS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cv=e,Cv}var Ev,e1;function u_(){return e1||(e1=1,Ev=Function.call.bind(Object.prototype.hasOwnProperty)),Ev}var kv,t1;function O5(){if(t1)return kv;t1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=eb(),n={},r=u_();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,l,c,d){if(process.env.NODE_ENV!=="production"){for(var v in o)if(r(o,v)){var p;try{if(typeof o[v]!="function"){var x=Error((c||"React class")+": "+l+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}p=o[v](s,v,c,l,null,t)}catch(P){p=P}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var T=d?d():"";e("Failed "+l+" type: "+p.message+(T??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},kv=i,kv}var _v,n1;function D5(){if(n1)return _v;n1=1;var e=l_(),t=_5(),n=eb(),r=u_(),i=O5(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return _v=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function p(Ee){var Pe=Ee&&(d&&Ee[d]||Ee[v]);if(typeof Pe=="function")return Pe}var x="<<anonymous>>",T={array:I("array"),bigint:I("bigint"),bool:I("boolean"),func:I("function"),number:I("number"),object:I("object"),string:I("string"),symbol:I("symbol"),any:U(),arrayOf:W,element:te(),elementType:J(),instanceOf:ge,node:Ne(),objectOf:ce,oneOf:S,oneOfType:ae,shape:Ye,exact:Qe};function P(Ee,Pe){return Ee===Pe?Ee!==0||1/Ee===1/Pe:Ee!==Ee&&Pe!==Pe}function R(Ee,Pe){this.message=Ee,this.data=Pe&&typeof Pe=="object"?Pe:{},this.stack=""}R.prototype=Error.prototype;function L(Ee){if(process.env.NODE_ENV!=="production")var Pe={},Ve=0;function Ue(Fe,Ge,lt,mt,wt,vt,Et){if(mt=mt||x,vt=vt||lt,Et!==n){if(c){var ot=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 ot.name="Invariant Violation",ot}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $t=mt+":"+lt;!Pe[$t]&&Ve<3&&(o("You are manually calling a React.PropTypes validation function for the `"+vt+"` prop on `"+mt+"`. 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."),Pe[$t]=!0,Ve++)}}return Ge[lt]==null?Fe?Ge[lt]===null?new R("The "+wt+" `"+vt+"` is marked as required "+("in `"+mt+"`, but its value is `null`.")):new R("The "+wt+" `"+vt+"` is marked as required in "+("`"+mt+"`, but its value is `undefined`.")):null:Ee(Ge,lt,mt,wt,vt)}var Re=Ue.bind(null,!1);return Re.isRequired=Ue.bind(null,!0),Re}function I(Ee){function Pe(Ve,Ue,Re,Fe,Ge,lt){var mt=Ve[Ue],wt=Ce(mt);if(wt!==Ee){var vt=He(mt);return new R("Invalid "+Fe+" `"+Ge+"` of type "+("`"+vt+"` supplied to `"+Re+"`, expected ")+("`"+Ee+"`."),{expectedType:Ee})}return null}return L(Pe)}function U(){return L(s)}function W(Ee){function Pe(Ve,Ue,Re,Fe,Ge){if(typeof Ee!="function")return new R("Property `"+Ge+"` of component `"+Re+"` has invalid PropType notation inside arrayOf.");var lt=Ve[Ue];if(!Array.isArray(lt)){var mt=Ce(lt);return new R("Invalid "+Fe+" `"+Ge+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an array."))}for(var wt=0;wt<lt.length;wt++){var vt=Ee(lt,wt,Re,Fe,Ge+"["+wt+"]",n);if(vt instanceof Error)return vt}return null}return L(Pe)}function te(){function Ee(Pe,Ve,Ue,Re,Fe){var Ge=Pe[Ve];if(!l(Ge)){var lt=Ce(Ge);return new R("Invalid "+Re+" `"+Fe+"` of type "+("`"+lt+"` supplied to `"+Ue+"`, expected a single ReactElement."))}return null}return L(Ee)}function J(){function Ee(Pe,Ve,Ue,Re,Fe){var Ge=Pe[Ve];if(!e.isValidElementType(Ge)){var lt=Ce(Ge);return new R("Invalid "+Re+" `"+Fe+"` of type "+("`"+lt+"` supplied to `"+Ue+"`, expected a single ReactElement type."))}return null}return L(Ee)}function ge(Ee){function Pe(Ve,Ue,Re,Fe,Ge){if(!(Ve[Ue]instanceof Ee)){var lt=Ee.name||x,mt=at(Ve[Ue]);return new R("Invalid "+Fe+" `"+Ge+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected ")+("instance of `"+lt+"`."))}return null}return L(Pe)}function S(Ee){if(!Array.isArray(Ee))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function Pe(Ve,Ue,Re,Fe,Ge){for(var lt=Ve[Ue],mt=0;mt<Ee.length;mt++)if(P(lt,Ee[mt]))return null;var wt=JSON.stringify(Ee,function(Et,ot){var $t=He(ot);return $t==="symbol"?String(ot):ot});return new R("Invalid "+Fe+" `"+Ge+"` of value `"+String(lt)+"` "+("supplied to `"+Re+"`, expected one of "+wt+"."))}return L(Pe)}function ce(Ee){function Pe(Ve,Ue,Re,Fe,Ge){if(typeof Ee!="function")return new R("Property `"+Ge+"` of component `"+Re+"` has invalid PropType notation inside objectOf.");var lt=Ve[Ue],mt=Ce(lt);if(mt!=="object")return new R("Invalid "+Fe+" `"+Ge+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an object."));for(var wt in lt)if(r(lt,wt)){var vt=Ee(lt,wt,Re,Fe,Ge+"."+wt,n);if(vt instanceof Error)return vt}return null}return L(Pe)}function ae(Ee){if(!Array.isArray(Ee))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var Pe=0;Pe<Ee.length;Pe++){var Ve=Ee[Pe];if(typeof Ve!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+et(Ve)+" at index "+Pe+"."),s}function Ue(Re,Fe,Ge,lt,mt){for(var wt=[],vt=0;vt<Ee.length;vt++){var Et=Ee[vt],ot=Et(Re,Fe,Ge,lt,mt,n);if(ot==null)return null;ot.data&&r(ot.data,"expectedType")&&wt.push(ot.data.expectedType)}var $t=wt.length>0?", expected one of type ["+wt.join(", ")+"]":"";return new R("Invalid "+lt+" `"+mt+"` supplied to "+("`"+Ge+"`"+$t+"."))}return L(Ue)}function Ne(){function Ee(Pe,Ve,Ue,Re,Fe){return tt(Pe[Ve])?null:new R("Invalid "+Re+" `"+Fe+"` supplied to "+("`"+Ue+"`, expected a ReactNode."))}return L(Ee)}function Je(Ee,Pe,Ve,Ue,Re){return new R((Ee||"React class")+": "+Pe+" type `"+Ve+"."+Ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Re+"`.")}function Ye(Ee){function Pe(Ve,Ue,Re,Fe,Ge){var lt=Ve[Ue],mt=Ce(lt);if(mt!=="object")return new R("Invalid "+Fe+" `"+Ge+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));for(var wt in Ee){var vt=Ee[wt];if(typeof vt!="function")return Je(Re,Fe,Ge,wt,He(vt));var Et=vt(lt,wt,Re,Fe,Ge+"."+wt,n);if(Et)return Et}return null}return L(Pe)}function Qe(Ee){function Pe(Ve,Ue,Re,Fe,Ge){var lt=Ve[Ue],mt=Ce(lt);if(mt!=="object")return new R("Invalid "+Fe+" `"+Ge+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));var wt=t({},Ve[Ue],Ee);for(var vt in wt){var Et=Ee[vt];if(r(Ee,vt)&&typeof Et!="function")return Je(Re,Fe,Ge,vt,He(Et));if(!Et)return new R("Invalid "+Fe+" `"+Ge+"` key `"+vt+"` supplied to `"+Re+"`.\nBad object: "+JSON.stringify(Ve[Ue],null," ")+`
|
|
34
|
+
Valid keys: `+JSON.stringify(Object.keys(Ee),null," "));var ot=Et(lt,vt,Re,Fe,Ge+"."+vt,n);if(ot)return ot}return null}return L(Pe)}function tt(Ee){switch(typeof Ee){case"number":case"string":case"undefined":return!0;case"boolean":return!Ee;case"object":if(Array.isArray(Ee))return Ee.every(tt);if(Ee===null||l(Ee))return!0;var Pe=p(Ee);if(Pe){var Ve=Pe.call(Ee),Ue;if(Pe!==Ee.entries){for(;!(Ue=Ve.next()).done;)if(!tt(Ue.value))return!1}else for(;!(Ue=Ve.next()).done;){var Re=Ue.value;if(Re&&!tt(Re[1]))return!1}}else return!1;return!0;default:return!1}}function he(Ee,Pe){return Ee==="symbol"?!0:Pe?Pe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Pe instanceof Symbol:!1}function Ce(Ee){var Pe=typeof Ee;return Array.isArray(Ee)?"array":Ee instanceof RegExp?"object":he(Pe,Ee)?"symbol":Pe}function He(Ee){if(typeof Ee>"u"||Ee===null)return""+Ee;var Pe=Ce(Ee);if(Pe==="object"){if(Ee instanceof Date)return"date";if(Ee instanceof RegExp)return"regexp"}return Pe}function et(Ee){var Pe=He(Ee);switch(Pe){case"array":case"object":return"an "+Pe;case"boolean":case"date":case"regexp":return"a "+Pe;default:return Pe}}function at(Ee){return!Ee.constructor||!Ee.constructor.name?x:Ee.constructor.name}return T.checkPropTypes=i,T.resetWarningCache=i.resetWarningCache,T.PropTypes=T,T},_v}var Ov,r1;function P5(){if(r1)return Ov;r1=1;var e=eb();function t(){}function n(){}return n.resetWarningCache=t,Ov=function(){function r(s,l,c,d,v,p){if(p!==e){var x=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 x.name="Invariant Violation",x}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Ov}if(process.env.NODE_ENV!=="production"){var R5=l_(),I5=!0;Fm.exports=D5()(R5.isElement,I5)}else Fm.exports=P5()();var _r=Fm.exports;const _a=Bc(_r);var A5=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},M5=function(t,n){for(var r in t)if(!(r in n))return!0;for(var i in n)if(t[i]!==n[i])return!0;return!1},L5=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Bh="http://www.w3.org/2000/svg",i1="http://www.w3.org/1999/xlink",rg=function(e){o_(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(l){r.reactWrapper=l},r}var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof A5(this.reactWrapper).Node){var o=this.props,s=o.desc,l=o.evalScripts,c=o.httpRequestWithCredentials,d=o.renumerateIRIElements,v=o.src,p=o.title,x=o.useRequestCache,T=this.props.onError,P=this.props.beforeInjection,R=this.props.afterInjection,L=this.props.wrapper,I,U;L==="svg"?(I=document.createElementNS(Bh,L),I.setAttribute("xmlns",Bh),I.setAttribute("xmlns:xlink",i1),U=document.createElementNS(Bh,L)):(I=document.createElement(L),U=document.createElement(L)),I.appendChild(U),U.dataset.src=v,this.nonReactWrapper=this.reactWrapper.appendChild(I);var W=function(S){if(i.removeSVG(),!i._isMounted){T(S);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){T(S)})},te=function(S,ce){if(S){W(S);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{R(ce)}catch(ae){W(ae)}})},J=function(S){if(S.setAttribute("role","img"),s){var ce=S.querySelector(":scope > desc");ce&&S.removeChild(ce);var ae=document.createElement("desc");ae.innerHTML=s,S.prepend(ae)}if(p){var Ne=S.querySelector(":scope > title");Ne&&S.removeChild(Ne);var Je=document.createElement("title");Je.innerHTML=p,S.prepend(Je)}try{P(S)}catch(Ye){W(Ye)}};C5(U,{afterEach:te,beforeEach:J,cacheRequests:x,evalScripts:l,httpRequestWithCredentials:c,renumerateIRIElements:d})}},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;M5(Lf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var l=i.wrapper,c=Zm(i,L5),d=l;return Sn.createElement(d,Lf({},c,{ref:this.refCallback},l==="svg"?{xmlns:Bh,xmlnsXlink:i1}:{}),this.state.isLoading&&s&&Sn.createElement(s,null),this.state.hasError&&o&&Sn.createElement(o,null))},t}(Sn.Component);rg.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};rg.propTypes={afterInjection:_r.func,beforeInjection:_r.func,desc:_r.string,evalScripts:_r.oneOf(["always","once","never"]),fallback:_r.oneOfType([_r.func,_r.object,_r.string]),httpRequestWithCredentials:_r.bool,loading:_r.oneOfType([_r.func,_r.object,_r.string]),onError:_r.func,renumerateIRIElements:_r.bool,src:_r.string.isRequired,title:_r.string,useRequestCache:_r.bool,wrapper:_r.oneOf(["div","span","svg"])};const Ff=new Map;Ff.set("text",e=>{var t;return ze.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});Ff.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return ze.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return ze.jsx(t,{svgString:e.icon})});Ff.set("svgHttp",e=>ze.jsx(rg,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Ff.set("img",e=>ze.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function F5(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function c_({item:e}){return(Ff.get(F5(e))||Ff.get("text"))(e)}function f_({...e}){var He,et,at,Ee,Pe;const t=e.item,n=e.level||0,r=!!((He=e.item.children)!=null&&He.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,l=o?"collapsed":"expanded",c=i(t.id)?"active":"",d=(Ve,Ue=s)=>`${Ve} ${Ue} ${l} ${c}`,[v,p]=X.useState(!1),[x,T]=X.useState(t.isFavorite||!1);X.useEffect(()=>{T(!!e.item.isFavorite)},[e.item.isFavorite]);const P=X.useRef(),R=X.useRef();R!=null&&R.current&&((et=R==null?void 0:R.current)==null?void 0:et.scrollWidth)>((at=R==null?void 0:R.current)==null?void 0:at.clientWidth);const L=window.location.origin,I=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},U=window.location.pathname.split("/")[1],W=I.pathname.split("/")[1],te=e.ssr||!L.includes("local")&&L!==I.origin||W!==U,J=r||n===0?"div":te?"a":Dp.Link,ge=t.path||"#",S=n+1,ce=r&&o&&v,ae=o||n===0?void 0:`${n+.25}rem`,Ne=()=>{p(!0)},Je=()=>{p(!1)},Ye="/global-menu-config/api/v1/menu-items/user/set-favorite",Qe=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,$3(t.id,e.params.isOpen,e.params.onToggle);const tt=Ve=>{Ve.stopPropagation(),e.params.onToggle()},Ce=Qe||o&&n===0?t.name==="POMs"?"Parking Operations Management":t.description||t.name:null;return ze.jsxs("div",{ref:P,className:d("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Ne,onMouseOut:Je,onDragStart:Ve=>{o&&n>1&&Ve.preventDefault()},children:[ze.jsx(Il.Tooltip,{placement:"top",disableInteractive:!0,title:Ce,children:ze.jsxs(J,{to:ge,href:ge,draggable:"true",className:d("menu-item__link"),style:{paddingLeft:ae,transition:"all 0.3s",color:i(t.id)?((Ee=e.brandColors)==null?void 0:Ee.primary400)||ui.primary400:void 0,backgroundColor:i(t.id)&&n===0?(Pe=e.brandColors)==null?void 0:Pe.primary200:void 0},onClick:Ve=>{o||tt(Ve)},children:[ze.jsx(N5,{cls:d,item:t}),ze.jsx("span",{className:d("menu-item__label"),ref:R,children:t.name}),ze.jsx(j5,{menuLevel:n,hasChildren:r,isHovered:v,isFavorite:x,onClick:Ve=>{const Ue={menuConfigId:t.id,isFavorite:Ve},Re=e.baseUrl+Ye;is.post(Re,Ue).then(Fe=>{var Ge;T(Ve),ty("Set favorite menu item successfully"),(Ge=e.onSetFavoriteSuccess)==null||Ge.call(e,e.item.id,Ve)}).catch(Fe=>{var Ge,lt;Hd(((lt=(Ge=Fe.response)==null?void 0:Ge.data)==null?void 0:lt.errorMessage)||"Have error when set favorite menu item")})}}),r&&ze.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:ze.jsx(u5,{className:d(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),ce&&ze.jsx(c5,{parentRef:P,onlyChild:!o,renderChildren:({maxHeight:Ve})=>{var Ue;return ze.jsx(n_.div,{className:d(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${S}`),style:Qy({maxHeight:Ve,overflowY:"auto",paddingRight:3},Ve!=="auto"&&!!S),children:(Ue=t.children)==null?void 0:Ue.map(Re=>X.createElement(f_,{...e,key:Re.id,item:Re,level:S}))})}})]})}function N5({item:e,cls:t}){return ze.jsx("div",{className:t("menu-item__icon"),children:ze.jsx(c_,{item:e})})}function j5(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:ui.warning};return ze.jsxs(ze.Fragment,{children:[e.isHovered&&!e.isFavorite&&ze.jsx(Il.Tooltip,{title:"Add to favorites",children:ze.jsx(r_,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&ze.jsx(Il.Tooltip,{title:"Remove from favorites",children:ze.jsx(i_,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}function B5(){return ze.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:ze.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 $5(){return ze.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:ze.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function V5(e){return ze.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:ze.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 H5=`.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{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);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:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link.expanded.level-0{padding:.5rem 10px}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;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}}
|
|
35
|
+
`;var wc={};/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-dom-server-legacy.browser.production.min.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/var o1;function U5(){if(o1)return wc;o1=1;var e=X;function t(E){for(var j="https://reactjs.org/docs/error-decoder.html?invariant="+E,q=1;q<arguments.length;q++)j+="&args[]="+encodeURIComponent(arguments[q]);return"Minified React error #"+E+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},o={};function s(E){return n.call(o,E)?!0:n.call(i,E)?!1:r.test(E)?o[E]=!0:(i[E]=!0,!1)}function l(E,j,q,re,Oe,be,Me){this.acceptsBooleans=j===2||j===3||j===4,this.attributeName=re,this.attributeNamespace=Oe,this.mustUseProperty=q,this.propertyName=E,this.type=j,this.sanitizeURL=be,this.removeEmptyString=Me}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(E){c[E]=new l(E,0,!1,E,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(E){var j=E[0];c[j]=new l(j,1,!1,E[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(E){c[E]=new l(E,2,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(E){c[E]=new l(E,2,!1,E,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(E){c[E]=new l(E,3,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(E){c[E]=new l(E,3,!0,E,null,!1,!1)}),["capture","download"].forEach(function(E){c[E]=new l(E,4,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(function(E){c[E]=new l(E,6,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(function(E){c[E]=new l(E,5,!1,E.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function v(E){return E[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(E){var j=E.replace(d,v);c[j]=new l(j,1,!1,E,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(E){var j=E.replace(d,v);c[j]=new l(j,1,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(E){var j=E.replace(d,v);c[j]=new l(j,1,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!1,!1)}),c.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!0,!0)});var p={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},x=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(E){x.forEach(function(j){j=j+E.charAt(0).toUpperCase()+E.substring(1),p[j]=p[E]})});var T=/["'&<>]/;function P(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var j=T.exec(E);if(j){var q="",re,Oe=0;for(re=j.index;re<E.length;re++){switch(E.charCodeAt(re)){case 34:j=""";break;case 38:j="&";break;case 39:j="'";break;case 60:j="<";break;case 62:j=">";break;default:continue}Oe!==re&&(q+=E.substring(Oe,re)),Oe=re+1,q+=j}E=Oe!==re?q+E.substring(Oe,re):q}return E}var R=/([A-Z])/g,L=/^ms-/,I=Array.isArray;function U(E,j){return{insertionMode:E,selectedValue:j}}function W(E,j,q){switch(j){case"select":return U(1,q.value!=null?q.value:q.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=E.insertionMode||E.insertionMode===0?U(1,null):E}var te=new Map;function J(E,j,q){if(typeof q!="object")throw Error(t(62));j=!0;for(var re in q)if(n.call(q,re)){var Oe=q[re];if(Oe!=null&&typeof Oe!="boolean"&&Oe!==""){if(re.indexOf("--")===0){var be=P(re);Oe=P((""+Oe).trim())}else{be=re;var Me=te.get(be);Me!==void 0||(Me=P(be.replace(R,"-$1").toLowerCase().replace(L,"-ms-")),te.set(be,Me)),be=Me,Oe=typeof Oe=="number"?Oe===0||n.call(p,re)?""+Oe:Oe+"px":P((""+Oe).trim())}j?(j=!1,E.push(' style="',be,":",Oe)):E.push(";",be,":",Oe)}}j||E.push('"')}function ge(E,j,q,re){switch(q){case"style":J(E,j,re);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<q.length)||q[0]!=="o"&&q[0]!=="O"||q[1]!=="n"&&q[1]!=="N"){if(j=c.hasOwnProperty(q)?c[q]:null,j!==null){switch(typeof re){case"function":case"symbol":return;case"boolean":if(!j.acceptsBooleans)return}switch(q=j.attributeName,j.type){case 3:re&&E.push(" ",q,'=""');break;case 4:re===!0?E.push(" ",q,'=""'):re!==!1&&E.push(" ",q,'="',P(re),'"');break;case 5:isNaN(re)||E.push(" ",q,'="',P(re),'"');break;case 6:!isNaN(re)&&1<=re&&E.push(" ",q,'="',P(re),'"');break;default:j.sanitizeURL&&(re=""+re),E.push(" ",q,'="',P(re),'"')}}else if(s(q)){switch(typeof re){case"function":case"symbol":return;case"boolean":if(j=q.toLowerCase().slice(0,5),j!=="data-"&&j!=="aria-")return}E.push(" ",q,'="',P(re),'"')}}}function S(E,j,q){if(j!=null){if(q!=null)throw Error(t(60));if(typeof j!="object"||!("__html"in j))throw Error(t(61));j=j.__html,j!=null&&E.push(""+j)}}function ce(E){var j="";return e.Children.forEach(E,function(q){q!=null&&(j+=q)}),j}function ae(E,j,q,re){E.push(Ye(q));var Oe=q=null,be;for(be in j)if(n.call(j,be)){var Me=j[be];if(Me!=null)switch(be){case"children":q=Me;break;case"dangerouslySetInnerHTML":Oe=Me;break;default:ge(E,re,be,Me)}}return E.push(">"),S(E,Oe,q),typeof q=="string"?(E.push(P(q)),null):q}var Ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Je=new Map;function Ye(E){var j=Je.get(E);if(j===void 0){if(!Ne.test(E))throw Error(t(65,E));j="<"+E,Je.set(E,j)}return j}function Qe(E,j,q,re,Oe){switch(j){case"select":E.push(Ye("select"));var be=null,Me=null;for(bt in q)if(n.call(q,bt)){var rt=q[bt];if(rt!=null)switch(bt){case"children":be=rt;break;case"dangerouslySetInnerHTML":Me=rt;break;case"defaultValue":case"value":break;default:ge(E,re,bt,rt)}}return E.push(">"),S(E,Me,be),be;case"option":Me=Oe.selectedValue,E.push(Ye("option"));var yt=rt=null,Tt=null,bt=null;for(be in q)if(n.call(q,be)){var Ut=q[be];if(Ut!=null)switch(be){case"children":rt=Ut;break;case"selected":Tt=Ut;break;case"dangerouslySetInnerHTML":bt=Ut;break;case"value":yt=Ut;default:ge(E,re,be,Ut)}}if(Me!=null)if(q=yt!==null?""+yt:ce(rt),I(Me)){for(re=0;re<Me.length;re++)if(""+Me[re]===q){E.push(' selected=""');break}}else""+Me===q&&E.push(' selected=""');else Tt&&E.push(' selected=""');return E.push(">"),S(E,bt,rt),rt;case"textarea":E.push(Ye("textarea")),bt=Me=be=null;for(rt in q)if(n.call(q,rt)&&(yt=q[rt],yt!=null))switch(rt){case"children":bt=yt;break;case"value":be=yt;break;case"defaultValue":Me=yt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:ge(E,re,rt,yt)}if(be===null&&Me!==null&&(be=Me),E.push(">"),bt!=null){if(be!=null)throw Error(t(92));if(I(bt)&&1<bt.length)throw Error(t(93));be=""+bt}return typeof be=="string"&&be[0]===`
|
|
44
|
+
`&&E.push(`
|
|
45
|
+
`),be!==null&&E.push(P(""+be)),null;case"input":E.push(Ye("input")),yt=bt=rt=be=null;for(Me in q)if(n.call(q,Me)&&(Tt=q[Me],Tt!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":yt=Tt;break;case"defaultValue":rt=Tt;break;case"checked":bt=Tt;break;case"value":be=Tt;break;default:ge(E,re,Me,Tt)}return bt!==null?ge(E,re,"checked",bt):yt!==null&&ge(E,re,"checked",yt),be!==null?ge(E,re,"value",be):rt!==null&&ge(E,re,"value",rt),E.push("/>"),null;case"menuitem":E.push(Ye("menuitem"));for(var Qn in q)if(n.call(q,Qn)&&(be=q[Qn],be!=null))switch(Qn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:ge(E,re,Qn,be)}return E.push(">"),null;case"title":E.push(Ye("title")),be=null;for(Ut in q)if(n.call(q,Ut)&&(Me=q[Ut],Me!=null))switch(Ut){case"children":be=Me;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:ge(E,re,Ut,Me)}return E.push(">"),be;case"listing":case"pre":E.push(Ye(j)),Me=be=null;for(yt in q)if(n.call(q,yt)&&(rt=q[yt],rt!=null))switch(yt){case"children":be=rt;break;case"dangerouslySetInnerHTML":Me=rt;break;default:ge(E,re,yt,rt)}if(E.push(">"),Me!=null){if(be!=null)throw Error(t(60));if(typeof Me!="object"||!("__html"in Me))throw Error(t(61));q=Me.__html,q!=null&&(typeof q=="string"&&0<q.length&&q[0]===`
|
|
46
|
+
`?E.push(`
|
|
47
|
+
`,q):E.push(""+q))}return typeof be=="string"&&be[0]===`
|
|
48
|
+
`&&E.push(`
|
|
49
|
+
`),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":E.push(Ye(j));for(var zn in q)if(n.call(q,zn)&&(be=q[zn],be!=null))switch(zn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,j));default:ge(E,re,zn,be)}return E.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ae(E,q,j,re);case"html":return Oe.insertionMode===0&&E.push("<!DOCTYPE html>"),ae(E,q,j,re);default:if(j.indexOf("-")===-1&&typeof q.is!="string")return ae(E,q,j,re);E.push(Ye(j)),Me=be=null;for(Tt in q)if(n.call(q,Tt)&&(rt=q[Tt],rt!=null))switch(Tt){case"children":be=rt;break;case"dangerouslySetInnerHTML":Me=rt;break;case"style":J(E,re,rt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(Tt)&&typeof rt!="function"&&typeof rt!="symbol"&&E.push(" ",Tt,'="',P(rt),'"')}return E.push(">"),S(E,Me,be),be}}function tt(E,j,q){if(E.push('<!--$?--><template id="'),q===null)throw Error(t(395));return E.push(q),E.push('"></template>')}function he(E,j,q,re){switch(q.insertionMode){case 0:case 1:return E.push('<div hidden id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 2:return E.push('<svg aria-hidden="true" style="display:none" id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 3:return E.push('<math aria-hidden="true" style="display:none" id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 4:return E.push('<table hidden id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 5:return E.push('<table hidden><tbody id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 6:return E.push('<table hidden><tr id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 7:return E.push('<table hidden><colgroup id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');default:throw Error(t(397))}}function Ce(E,j){switch(j.insertionMode){case 0:case 1:return E.push("</div>");case 2:return E.push("</svg>");case 3:return E.push("</math>");case 4:return E.push("</table>");case 5:return E.push("</tbody></table>");case 6:return E.push("</tr></table>");case 7:return E.push("</colgroup></table>");default:throw Error(t(397))}}var He=/[<\u2028\u2029]/g;function et(E){return JSON.stringify(E).replace(He,function(j){switch(j){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 at(E,j){return j=j===void 0?"":j,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:j+"P:",segmentPrefix:j+"S:",boundaryPrefix:j+"B:",idPrefix:j,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:E}}function Ee(E,j,q,re){return q.generateStaticMarkup?(E.push(P(j)),!1):(j===""?E=re:(re&&E.push("<!-- -->"),E.push(P(j)),E=!0),E)}var Pe=Object.assign,Ve=Symbol.for("react.element"),Ue=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),Ge=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),mt=Symbol.for("react.context"),wt=Symbol.for("react.forward_ref"),vt=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),ot=Symbol.for("react.memo"),$t=Symbol.for("react.lazy"),Ht=Symbol.for("react.scope"),Xn=Symbol.for("react.debug_trace_mode"),br=Symbol.for("react.legacy_hidden"),Kn=Symbol.for("react.default_value"),kn=Symbol.iterator;function ji(E){if(E==null)return null;if(typeof E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case Re:return"Fragment";case Ue:return"Portal";case Ge:return"Profiler";case Fe:return"StrictMode";case vt:return"Suspense";case Et:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case mt:return(E.displayName||"Context")+".Consumer";case lt:return(E._context.displayName||"Context")+".Provider";case wt:var j=E.render;return E=E.displayName,E||(E=j.displayName||j.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case ot:return j=E.displayName||null,j!==null?j:ji(E.type)||"Memo";case $t:j=E._payload,E=E._init;try{return ji(E(j))}catch{}}return null}var Dr={};function rr(E,j){if(E=E.contextTypes,!E)return Dr;var q={},re;for(re in E)q[re]=j[re];return q}var cn=null;function hn(E,j){if(E!==j){E.context._currentValue2=E.parentValue,E=E.parent;var q=j.parent;if(E===null){if(q!==null)throw Error(t(401))}else{if(q===null)throw Error(t(401));hn(E,q)}j.context._currentValue2=j.value}}function pn(E){E.context._currentValue2=E.parentValue,E=E.parent,E!==null&&pn(E)}function gt(E){var j=E.parent;j!==null&>(j),E.context._currentValue2=E.value}function Rn(E,j){if(E.context._currentValue2=E.parentValue,E=E.parent,E===null)throw Error(t(402));E.depth===j.depth?hn(E,j):Rn(E,j)}function fi(E,j){var q=j.parent;if(q===null)throw Error(t(402));E.depth===q.depth?hn(E,q):fi(E,q),j.context._currentValue2=j.value}function un(E){var j=cn;j!==E&&(j===null?gt(E):E===null?pn(j):j.depth===E.depth?hn(j,E):j.depth>E.depth?Rn(j,E):fi(j,E),cn=E)}var Bi={isMounted:function(){return!1},enqueueSetState:function(E,j){E=E._reactInternals,E.queue!==null&&E.queue.push(j)},enqueueReplaceState:function(E,j){E=E._reactInternals,E.replace=!0,E.queue=[j]},enqueueForceUpdate:function(){}};function $i(E,j,q,re){var Oe=E.state!==void 0?E.state:null;E.updater=Bi,E.props=q,E.state=Oe;var be={queue:[],replace:!1};E._reactInternals=be;var Me=j.contextType;if(E.context=typeof Me=="object"&&Me!==null?Me._currentValue2:re,Me=j.getDerivedStateFromProps,typeof Me=="function"&&(Me=Me(q,Oe),Oe=Me==null?Oe:Pe({},Oe,Me),E.state=Oe),typeof j.getDerivedStateFromProps!="function"&&typeof E.getSnapshotBeforeUpdate!="function"&&(typeof E.UNSAFE_componentWillMount=="function"||typeof E.componentWillMount=="function"))if(j=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),j!==E.state&&Bi.enqueueReplaceState(E,E.state,null),be.queue!==null&&0<be.queue.length)if(j=be.queue,Me=be.replace,be.queue=null,be.replace=!1,Me&&j.length===1)E.state=j[0];else{for(be=Me?j[0]:E.state,Oe=!0,Me=Me?1:0;Me<j.length;Me++){var rt=j[Me];rt=typeof rt=="function"?rt.call(E,be,q,re):rt,rt!=null&&(Oe?(Oe=!1,be=Pe({},be,rt)):Pe(be,rt))}E.state=be}else be.queue=null}var Vi={id:1,overflow:""};function Pr(E,j,q){var re=E.id;E=E.overflow;var Oe=32-Un(re)-1;re&=~(1<<Oe),q+=1;var be=32-Un(j)+Oe;if(30<be){var Me=Oe-Oe%5;return be=(re&(1<<Me)-1).toString(32),re>>=Me,Oe-=Me,{id:1<<32-Un(j)+Oe|q<<Oe|re,overflow:be+E}}return{id:1<<be|q<<Oe|re,overflow:E}}var Un=Math.clz32?Math.clz32:qr,Rr=Math.log,wr=Math.LN2;function qr(E){return E>>>=0,E===0?32:31-(Rr(E)/wr|0)|0}function Xr(E,j){return E===j&&(E!==0||1/E===1/j)||E!==E&&j!==j}var Do=typeof Object.is=="function"?Object.is:Xr,Zn=null,Kr=null,ir=null,Zt=null,di=!1,Hi=!1,In=0,gn=null,hi=0;function pi(){if(Zn===null)throw Error(t(321));return Zn}function mn(){if(0<hi)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function lo(){return Zt===null?ir===null?(di=!1,ir=Zt=mn()):(di=!0,Zt=ir):Zt.next===null?(di=!1,Zt=Zt.next=mn()):(di=!0,Zt=Zt.next),Zt}function xr(){Kr=Zn=null,Hi=!1,ir=null,hi=0,Zt=gn=null}function gi(E,j){return typeof j=="function"?j(E):j}function fn(E,j,q){if(Zn=pi(),Zt=lo(),di){var re=Zt.queue;if(j=re.dispatch,gn!==null&&(q=gn.get(re),q!==void 0)){gn.delete(re),re=Zt.memoizedState;do re=E(re,q.action),q=q.next;while(q!==null);return Zt.memoizedState=re,[re,j]}return[Zt.memoizedState,j]}return E=E===gi?typeof j=="function"?j():j:q!==void 0?q(j):j,Zt.memoizedState=E,E=Zt.queue={last:null,dispatch:null},E=E.dispatch=Ra.bind(null,Zn,E),[Zt.memoizedState,E]}function Ti(E,j){if(Zn=pi(),Zt=lo(),j=j===void 0?null:j,Zt!==null){var q=Zt.memoizedState;if(q!==null&&j!==null){var re=q[1];e:if(re===null)re=!1;else{for(var Oe=0;Oe<re.length&&Oe<j.length;Oe++)if(!Do(j[Oe],re[Oe])){re=!1;break e}re=!0}if(re)return q[0]}}return E=E(),Zt.memoizedState=[E,j],E}function Ra(E,j,q){if(25<=hi)throw Error(t(301));if(E===Zn)if(Hi=!0,E={action:q,next:null},gn===null&&(gn=new Map),q=gn.get(j),q===void 0)gn.set(j,E);else{for(j=q;j.next!==null;)j=j.next;j.next=E}}function Ia(){throw Error(t(394))}function Zr(){}var uo={readContext:function(E){return E._currentValue2},useContext:function(E){return pi(),E._currentValue2},useMemo:Ti,useReducer:fn,useRef:function(E){Zn=pi(),Zt=lo();var j=Zt.memoizedState;return j===null?(E={current:E},Zt.memoizedState=E):j},useState:function(E){return fn(gi,E)},useInsertionEffect:Zr,useLayoutEffect:function(){},useCallback:function(E,j){return Ti(function(){return E},j)},useImperativeHandle:Zr,useEffect:Zr,useDebugValue:Zr,useDeferredValue:function(E){return pi(),E},useTransition:function(){return pi(),[!1,Ia]},useId:function(){var E=Kr.treeContext,j=E.overflow;E=E.id,E=(E&~(1<<32-Un(E)-1)).toString(32)+j;var q=co;if(q===null)throw Error(t(404));return j=In++,E=":"+q.idPrefix+"R"+E,0<j&&(E+="H"+j.toString(32)),E+":"},useMutableSource:function(E,j){return pi(),j(E._source)},useSyncExternalStore:function(E,j,q){if(q===void 0)throw Error(t(407));return q()}},co=null,Po=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ci(E){return console.error(E),null}function vi(){}function Ei(E,j,q,re,Oe,be,Me,rt,yt){var Tt=[],bt=new Set;return j={destination:null,responseState:j,progressiveChunkSize:re===void 0?12800:re,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:bt,pingedTasks:Tt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Oe===void 0?Ci:Oe,onAllReady:be===void 0?vi:be,onShellReady:Me===void 0?vi:Me,onShellError:rt===void 0?vi:rt,onFatalError:yt===void 0?vi:yt},q=ki(j,0,null,q,!1,!1),q.parentFlushed=!0,E=fo(j,E,null,q,bt,Dr,null,Vi),Tt.push(E),j}function fo(E,j,q,re,Oe,be,Me,rt){E.allPendingTasks++,q===null?E.pendingRootTasks++:q.pendingTasks++;var yt={node:j,ping:function(){var Tt=E.pingedTasks;Tt.push(yt),Tt.length===1&&Jn(E)},blockedBoundary:q,blockedSegment:re,abortSet:Oe,legacyContext:be,context:Me,treeContext:rt};return Oe.add(yt),yt}function ki(E,j,q,re,Oe,be){return{status:0,id:-1,index:j,parentFlushed:!1,chunks:[],children:[],formatContext:re,boundary:q,lastPushedText:Oe,textEmbedded:be}}function Jr(E,j){if(E=E.onError(j),E!=null&&typeof E!="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 E+'" instead');return E}function Sr(E,j){var q=E.onShellError;q(j),q=E.onFatalError,q(j),E.destination!==null?(E.status=2,E.destination.destroy(j)):(E.status=1,E.fatalError=j)}function Ir(E,j,q,re,Oe){for(Zn={},Kr=j,In=0,E=q(re,Oe);Hi;)Hi=!1,In=0,hi+=1,Zt=null,E=q(re,Oe);return xr(),E}function Qr(E,j,q,re){var Oe=q.render(),be=re.childContextTypes;if(be!=null){var Me=j.legacyContext;if(typeof q.getChildContext!="function")re=Me;else{q=q.getChildContext();for(var rt in q)if(!(rt in be))throw Error(t(108,ji(re)||"Unknown",rt));re=Pe({},Me,q)}j.legacyContext=re,vn(E,j,Oe),j.legacyContext=Me}else vn(E,j,Oe)}function Ar(E,j){if(E&&E.defaultProps){j=Pe({},j),E=E.defaultProps;for(var q in E)j[q]===void 0&&(j[q]=E[q]);return j}return j}function Wn(E,j,q,re,Oe){if(typeof q=="function")if(q.prototype&&q.prototype.isReactComponent){Oe=rr(q,j.legacyContext);var be=q.contextType;be=new q(re,typeof be=="object"&&be!==null?be._currentValue2:Oe),$i(be,q,re,Oe),Qr(E,j,be,q)}else{be=rr(q,j.legacyContext),Oe=Ir(E,j,q,re,be);var Me=In!==0;if(typeof Oe=="object"&&Oe!==null&&typeof Oe.render=="function"&&Oe.$$typeof===void 0)$i(Oe,q,re,be),Qr(E,j,Oe,q);else if(Me){re=j.treeContext,j.treeContext=Pr(re,1,0);try{vn(E,j,Oe)}finally{j.treeContext=re}}else vn(E,j,Oe)}else if(typeof q=="string"){switch(Oe=j.blockedSegment,be=Qe(Oe.chunks,q,re,E.responseState,Oe.formatContext),Oe.lastPushedText=!1,Me=Oe.formatContext,Oe.formatContext=W(Me,q,re),Tr(E,j,be),Oe.formatContext=Me,q){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Oe.chunks.push("</",q,">")}Oe.lastPushedText=!1}else{switch(q){case br:case Xn:case Fe:case Ge:case Re:vn(E,j,re.children);return;case Et:vn(E,j,re.children);return;case Ht:throw Error(t(343));case vt:e:{q=j.blockedBoundary,Oe=j.blockedSegment,be=re.fallback,re=re.children,Me=new Set;var rt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Me,errorDigest:null},yt=ki(E,Oe.chunks.length,rt,Oe.formatContext,!1,!1);Oe.children.push(yt),Oe.lastPushedText=!1;var Tt=ki(E,0,null,Oe.formatContext,!1,!1);Tt.parentFlushed=!0,j.blockedBoundary=rt,j.blockedSegment=Tt;try{if(Tr(E,j,re),E.responseState.generateStaticMarkup||Tt.lastPushedText&&Tt.textEmbedded&&Tt.chunks.push("<!-- -->"),Tt.status=1,Lr(rt,Tt),rt.pendingTasks===0)break e}catch(bt){Tt.status=4,rt.forceClientRender=!0,rt.errorDigest=Jr(E,bt)}finally{j.blockedBoundary=q,j.blockedSegment=Oe}j=fo(E,be,q,yt,Me,j.legacyContext,j.context,j.treeContext),E.pingedTasks.push(j)}return}if(typeof q=="object"&&q!==null)switch(q.$$typeof){case wt:if(re=Ir(E,j,q.render,re,Oe),In!==0){q=j.treeContext,j.treeContext=Pr(q,1,0);try{vn(E,j,re)}finally{j.treeContext=q}}else vn(E,j,re);return;case ot:q=q.type,re=Ar(q,re),Wn(E,j,q,re,Oe);return;case lt:if(Oe=re.children,q=q._context,re=re.value,be=q._currentValue2,q._currentValue2=re,Me=cn,cn=re={parent:Me,depth:Me===null?0:Me.depth+1,context:q,parentValue:be,value:re},j.context=re,vn(E,j,Oe),E=cn,E===null)throw Error(t(403));re=E.parentValue,E.context._currentValue2=re===Kn?E.context._defaultValue:re,E=cn=E.parent,j.context=E;return;case mt:re=re.children,re=re(q._currentValue2),vn(E,j,re);return;case $t:Oe=q._init,q=Oe(q._payload),re=Ar(q,re),Wn(E,j,q,re,void 0);return}throw Error(t(130,q==null?q:typeof q,""))}}function vn(E,j,q){if(j.node=q,typeof q=="object"&&q!==null){switch(q.$$typeof){case Ve:Wn(E,j,q.type,q.props,q.ref);return;case Ue:throw Error(t(257));case $t:var re=q._init;q=re(q._payload),vn(E,j,q);return}if(I(q)){Mr(E,j,q);return}if(q===null||typeof q!="object"?re=null:(re=kn&&q[kn]||q["@@iterator"],re=typeof re=="function"?re:null),re&&(re=re.call(q))){if(q=re.next(),!q.done){var Oe=[];do Oe.push(q.value),q=re.next();while(!q.done);Mr(E,j,Oe)}return}throw E=Object.prototype.toString.call(q),Error(t(31,E==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":E))}typeof q=="string"?(re=j.blockedSegment,re.lastPushedText=Ee(j.blockedSegment.chunks,q,E.responseState,re.lastPushedText)):typeof q=="number"&&(re=j.blockedSegment,re.lastPushedText=Ee(j.blockedSegment.chunks,""+q,E.responseState,re.lastPushedText))}function Mr(E,j,q){for(var re=q.length,Oe=0;Oe<re;Oe++){var be=j.treeContext;j.treeContext=Pr(be,re,Oe);try{Tr(E,j,q[Oe])}finally{j.treeContext=be}}}function Tr(E,j,q){var re=j.blockedSegment.formatContext,Oe=j.legacyContext,be=j.context;try{return vn(E,j,q)}catch(yt){if(xr(),typeof yt=="object"&&yt!==null&&typeof yt.then=="function"){q=yt;var Me=j.blockedSegment,rt=ki(E,Me.chunks.length,null,Me.formatContext,Me.lastPushedText,!0);Me.children.push(rt),Me.lastPushedText=!1,E=fo(E,j.node,j.blockedBoundary,rt,j.abortSet,j.legacyContext,j.context,j.treeContext).ping,q.then(E,E),j.blockedSegment.formatContext=re,j.legacyContext=Oe,j.context=be,un(be)}else throw j.blockedSegment.formatContext=re,j.legacyContext=Oe,j.context=be,un(be),yt}}function An(E){var j=E.blockedBoundary;E=E.blockedSegment,E.status=3,ei(this,j,E)}function mi(E,j,q){var re=E.blockedBoundary;E.blockedSegment.status=3,re===null?(j.allPendingTasks--,j.status!==2&&(j.status=2,j.destination!==null&&j.destination.push(null))):(re.pendingTasks--,re.forceClientRender||(re.forceClientRender=!0,E=q===void 0?Error(t(432)):q,re.errorDigest=j.onError(E),re.parentFlushed&&j.clientRenderedBoundaries.push(re)),re.fallbackAbortableTasks.forEach(function(Oe){return mi(Oe,j,q)}),re.fallbackAbortableTasks.clear(),j.allPendingTasks--,j.allPendingTasks===0&&(re=j.onAllReady,re()))}function Lr(E,j){if(j.chunks.length===0&&j.children.length===1&&j.children[0].boundary===null){var q=j.children[0];q.id=j.id,q.parentFlushed=!0,q.status===1&&Lr(E,q)}else E.completedSegments.push(j)}function ei(E,j,q){if(j===null){if(q.parentFlushed){if(E.completedRootSegment!==null)throw Error(t(389));E.completedRootSegment=q}E.pendingRootTasks--,E.pendingRootTasks===0&&(E.onShellError=vi,j=E.onShellReady,j())}else j.pendingTasks--,j.forceClientRender||(j.pendingTasks===0?(q.parentFlushed&&q.status===1&&Lr(j,q),j.parentFlushed&&E.completedBoundaries.push(j),j.fallbackAbortableTasks.forEach(An,E),j.fallbackAbortableTasks.clear()):q.parentFlushed&&q.status===1&&(Lr(j,q),j.completedSegments.length===1&&j.parentFlushed&&E.partialBoundaries.push(j)));E.allPendingTasks--,E.allPendingTasks===0&&(E=E.onAllReady,E())}function Jn(E){if(E.status!==2){var j=cn,q=Po.current;Po.current=uo;var re=co;co=E.responseState;try{var Oe=E.pingedTasks,be;for(be=0;be<Oe.length;be++){var Me=Oe[be],rt=E,yt=Me.blockedSegment;if(yt.status===0){un(Me.context);try{vn(rt,Me,Me.node),rt.responseState.generateStaticMarkup||yt.lastPushedText&&yt.textEmbedded&&yt.chunks.push("<!-- -->"),Me.abortSet.delete(Me),yt.status=1,ei(rt,Me.blockedBoundary,yt)}catch(_n){if(xr(),typeof _n=="object"&&_n!==null&&typeof _n.then=="function"){var Tt=Me.ping;_n.then(Tt,Tt)}else{Me.abortSet.delete(Me),yt.status=4;var bt=Me.blockedBoundary,Ut=_n,Qn=Jr(rt,Ut);if(bt===null?Sr(rt,Ut):(bt.pendingTasks--,bt.forceClientRender||(bt.forceClientRender=!0,bt.errorDigest=Qn,bt.parentFlushed&&rt.clientRenderedBoundaries.push(bt))),rt.allPendingTasks--,rt.allPendingTasks===0){var zn=rt.onAllReady;zn()}}}finally{}}}Oe.splice(0,be),E.destination!==null&&fr(E,E.destination)}catch(_n){Jr(E,_n),Sr(E,_n)}finally{co=re,Po.current=q,q===uo&&un(j)}}}function ti(E,j,q){switch(q.parentFlushed=!0,q.status){case 0:var re=q.id=E.nextSegmentId++;return q.lastPushedText=!1,q.textEmbedded=!1,E=E.responseState,j.push('<template id="'),j.push(E.placeholderPrefix),E=re.toString(16),j.push(E),j.push('"></template>');case 1:q.status=2;var Oe=!0;re=q.chunks;var be=0;q=q.children;for(var Me=0;Me<q.length;Me++){for(Oe=q[Me];be<Oe.index;be++)j.push(re[be]);Oe=ni(E,j,Oe)}for(;be<re.length-1;be++)j.push(re[be]);return be<re.length&&(Oe=j.push(re[be])),Oe;default:throw Error(t(390))}}function ni(E,j,q){var re=q.boundary;if(re===null)return ti(E,j,q);if(re.parentFlushed=!0,re.forceClientRender)return E.responseState.generateStaticMarkup||(re=re.errorDigest,j.push("<!--$!-->"),j.push("<template"),re&&(j.push(' data-dgst="'),re=P(re),j.push(re),j.push('"')),j.push("></template>")),ti(E,j,q),E=E.responseState.generateStaticMarkup?!0:j.push("<!--/$-->"),E;if(0<re.pendingTasks){re.rootSegmentID=E.nextSegmentId++,0<re.completedSegments.length&&E.partialBoundaries.push(re);var Oe=E.responseState,be=Oe.nextSuspenseID++;return Oe=Oe.boundaryPrefix+be.toString(16),re=re.id=Oe,tt(j,E.responseState,re),ti(E,j,q),j.push("<!--/$-->")}if(re.byteSize>E.progressiveChunkSize)return re.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(re),tt(j,E.responseState,re.id),ti(E,j,q),j.push("<!--/$-->");if(E.responseState.generateStaticMarkup||j.push("<!--$-->"),q=re.completedSegments,q.length!==1)throw Error(t(391));return ni(E,j,q[0]),E=E.responseState.generateStaticMarkup?!0:j.push("<!--/$-->"),E}function Ui(E,j,q){return he(j,E.responseState,q.formatContext,q.id),ni(E,j,q),Ce(j,q.formatContext)}function Pn(E,j,q){for(var re=q.completedSegments,Oe=0;Oe<re.length;Oe++)Cr(E,j,q,re[Oe]);if(re.length=0,E=E.responseState,re=q.id,q=q.rootSegmentID,j.push(E.startInlineScript),E.sentCompleteBoundaryFunction?j.push('$RC("'):(E.sentCompleteBoundaryFunction=!0,j.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("')),re===null)throw Error(t(395));return q=q.toString(16),j.push(re),j.push('","'),j.push(E.segmentPrefix),j.push(q),j.push('")<\/script>')}function Cr(E,j,q,re){if(re.status===2)return!0;var Oe=re.id;if(Oe===-1){if((re.id=q.rootSegmentID)===-1)throw Error(t(392));return Ui(E,j,re)}return Ui(E,j,re),E=E.responseState,j.push(E.startInlineScript),E.sentCompleteSegmentFunction?j.push('$RS("'):(E.sentCompleteSegmentFunction=!0,j.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("')),j.push(E.segmentPrefix),Oe=Oe.toString(16),j.push(Oe),j.push('","'),j.push(E.placeholderPrefix),j.push(Oe),j.push('")<\/script>')}function fr(E,j){try{var q=E.completedRootSegment;if(q!==null&&E.pendingRootTasks===0){ni(E,j,q),E.completedRootSegment=null;var re=E.responseState.bootstrapChunks;for(q=0;q<re.length-1;q++)j.push(re[q]);q<re.length&&j.push(re[q])}var Oe=E.clientRenderedBoundaries,be;for(be=0;be<Oe.length;be++){var Me=Oe[be];re=j;var rt=E.responseState,yt=Me.id,Tt=Me.errorDigest,bt=Me.errorMessage,Ut=Me.errorComponentStack;if(re.push(rt.startInlineScript),rt.sentClientRenderFunction?re.push('$RX("'):(rt.sentClientRenderFunction=!0,re.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("')),yt===null)throw Error(t(395));if(re.push(yt),re.push('"'),Tt||bt||Ut){re.push(",");var Qn=et(Tt||"");re.push(Qn)}if(bt||Ut){re.push(",");var zn=et(bt||"");re.push(zn)}if(Ut){re.push(",");var _n=et(Ut);re.push(_n)}if(!re.push(")<\/script>")){E.destination=null,be++,Oe.splice(0,be);return}}Oe.splice(0,be);var Nr=E.completedBoundaries;for(be=0;be<Nr.length;be++)if(!Pn(E,j,Nr[be])){E.destination=null,be++,Nr.splice(0,be);return}Nr.splice(0,be);var or=E.partialBoundaries;for(be=0;be<or.length;be++){var zi=or[be];e:{Oe=E,Me=j;var yi=zi.completedSegments;for(rt=0;rt<yi.length;rt++)if(!Cr(Oe,Me,zi,yi[rt])){rt++,yi.splice(0,rt);var Yi=!1;break e}yi.splice(0,rt),Yi=!0}if(!Yi){E.destination=null,be++,or.splice(0,be);return}}or.splice(0,be);var jr=E.completedBoundaries;for(be=0;be<jr.length;be++)if(!Pn(E,j,jr[be])){E.destination=null,be++,jr.splice(0,be);return}jr.splice(0,be)}finally{E.allPendingTasks===0&&E.pingedTasks.length===0&&E.clientRenderedBoundaries.length===0&&E.completedBoundaries.length===0&&j.push(null)}}function Ro(E,j){try{var q=E.abortableTasks;q.forEach(function(re){return mi(re,E,j)}),q.clear(),E.destination!==null&&fr(E,E.destination)}catch(re){Jr(E,re),Sr(E,re)}}function Wi(){}function Fr(E,j,q,re){var Oe=!1,be=null,Me="",rt={push:function(Tt){return Tt!==null&&(Me+=Tt),!0},destroy:function(Tt){Oe=!0,be=Tt}},yt=!1;if(E=Ei(E,at(q,j?j.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Wi,void 0,function(){yt=!0},void 0,void 0),Jn(E),Ro(E,re),E.status===1)E.status=2,rt.destroy(E.fatalError);else if(E.status!==2&&E.destination===null){E.destination=rt;try{fr(E,rt)}catch(Tt){Jr(E,Tt),Sr(E,Tt)}}if(Oe)throw be;if(!yt)throw Error(t(426));return Me}return wc.renderToNodeStream=function(){throw Error(t(207))},wc.renderToStaticMarkup=function(E,j){return Fr(E,j,!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')},wc.renderToStaticNodeStream=function(){throw Error(t(208))},wc.renderToString=function(E,j){return Fr(E,j,!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')},wc.version="18.2.0",wc}var $h={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* react-dom-server.browser.production.min.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var a1;function W5(){if(a1)return $h;a1=1;var e=X;function t(k){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+k,z=1;z<arguments.length;z++)F+="&args[]="+encodeURIComponent(arguments[z]);return"Minified React error #"+k+"; visit "+F+" 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(k,F){if(F.length!==0)if(512<F.length)0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),k.enqueue(F);else{var z=n.length-r;z<F.length&&(z===0?k.enqueue(n):(n.set(F.subarray(0,z),r),k.enqueue(n),F=F.subarray(z)),n=new Uint8Array(512),r=0),n.set(F,r),r+=F.length}}function o(k,F){return i(k,F),!0}function s(k){n&&0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var l=new TextEncoder;function c(k){return l.encode(k)}function d(k){return l.encode(k)}function v(k,F){typeof k.error=="function"?k.error(F):k.close()}var p=Object.prototype.hasOwnProperty,x=/^[: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]*$/,T={},P={};function R(k){return p.call(P,k)?!0:p.call(T,k)?!1:x.test(k)?P[k]=!0:(T[k]=!0,!1)}function L(k,F,z,ne,Se,Te,Be){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=ne,this.attributeNamespace=Se,this.mustUseProperty=z,this.propertyName=k,this.type=F,this.sanitizeURL=Te,this.removeEmptyString=Be}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){I[k]=new L(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var F=k[0];I[F]=new L(F,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){I[k]=new L(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){I[k]=new L(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){I[k]=new L(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){I[k]=new L(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){I[k]=new L(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){I[k]=new L(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){I[k]=new L(k,5,!1,k.toLowerCase(),null,!1,!1)});var U=/[\-:]([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 F=k.replace(U,W);I[F]=new L(F,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var F=k.replace(U,W);I[F]=new L(F,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var F=k.replace(U,W);I[F]=new L(F,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){I[k]=new L(k,1,!1,k.toLowerCase(),null,!1,!1)}),I.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){I[k]=new L(k,1,!1,k.toLowerCase(),null,!0,!0)});var te={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},J=["Webkit","ms","Moz","O"];Object.keys(te).forEach(function(k){J.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),te[F]=te[k]})});var ge=/["'&<>]/;function S(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var F=ge.exec(k);if(F){var z="",ne,Se=0;for(ne=F.index;ne<k.length;ne++){switch(k.charCodeAt(ne)){case 34:F=""";break;case 38:F="&";break;case 39:F="'";break;case 60:F="<";break;case 62:F=">";break;default:continue}Se!==ne&&(z+=k.substring(Se,ne)),Se=ne+1,z+=F}k=Se!==ne?z+k.substring(Se,ne):z}return k}var ce=/([A-Z])/g,ae=/^ms-/,Ne=Array.isArray,Je=d("<script>"),Ye=d("<\/script>"),Qe=d('<script src="'),tt=d('<script type="module" src="'),he=d('" async=""><\/script>'),Ce=/(<\/|<)(s)(cript)/gi;function He(k,F,z,ne){return""+F+(z==="s"?"\\u0073":"\\u0053")+ne}function et(k,F,z,ne,Se){k=k===void 0?"":k,F=F===void 0?Je:d('<script nonce="'+S(F)+'">');var Te=[];if(z!==void 0&&Te.push(F,c((""+z).replace(Ce,He)),Ye),ne!==void 0)for(z=0;z<ne.length;z++)Te.push(Qe,c(S(ne[z])),he);if(Se!==void 0)for(ne=0;ne<Se.length;ne++)Te.push(tt,c(S(Se[ne])),he);return{bootstrapChunks:Te,startInlineScript:F,placeholderPrefix:d(k+"P:"),segmentPrefix:d(k+"S:"),boundaryPrefix:k+"B:",idPrefix:k,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function at(k,F){return{insertionMode:k,selectedValue:F}}function Ee(k){return at(k==="http://www.w3.org/2000/svg"?2:k==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Pe(k,F,z){switch(F){case"select":return at(1,z.value!=null?z.value:z.defaultValue);case"svg":return at(2,null);case"math":return at(3,null);case"foreignObject":return at(1,null);case"table":return at(4,null);case"thead":case"tbody":case"tfoot":return at(5,null);case"colgroup":return at(7,null);case"tr":return at(6,null)}return 4<=k.insertionMode||k.insertionMode===0?at(1,null):k}var Ve=d("<!-- -->");function Ue(k,F,z,ne){return F===""?ne:(ne&&k.push(Ve),k.push(c(S(F))),!0)}var Re=new Map,Fe=d(' style="'),Ge=d(":"),lt=d(";");function mt(k,F,z){if(typeof z!="object")throw Error(t(62));F=!0;for(var ne in z)if(p.call(z,ne)){var Se=z[ne];if(Se!=null&&typeof Se!="boolean"&&Se!==""){if(ne.indexOf("--")===0){var Te=c(S(ne));Se=c(S((""+Se).trim()))}else{Te=ne;var Be=Re.get(Te);Be!==void 0||(Be=d(S(Te.replace(ce,"-$1").toLowerCase().replace(ae,"-ms-"))),Re.set(Te,Be)),Te=Be,Se=typeof Se=="number"?Se===0||p.call(te,ne)?c(""+Se):c(Se+"px"):c(S((""+Se).trim()))}F?(F=!1,k.push(Fe,Te,Ge,Se)):k.push(lt,Te,Ge,Se)}}F||k.push(Et)}var wt=d(" "),vt=d('="'),Et=d('"'),ot=d('=""');function $t(k,F,z,ne){switch(z){case"style":mt(k,F,ne);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<z.length)||z[0]!=="o"&&z[0]!=="O"||z[1]!=="n"&&z[1]!=="N"){if(F=I.hasOwnProperty(z)?I[z]:null,F!==null){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(z=c(F.attributeName),F.type){case 3:ne&&k.push(wt,z,ot);break;case 4:ne===!0?k.push(wt,z,ot):ne!==!1&&k.push(wt,z,vt,c(S(ne)),Et);break;case 5:isNaN(ne)||k.push(wt,z,vt,c(S(ne)),Et);break;case 6:!isNaN(ne)&&1<=ne&&k.push(wt,z,vt,c(S(ne)),Et);break;default:F.sanitizeURL&&(ne=""+ne),k.push(wt,z,vt,c(S(ne)),Et)}}else if(R(z)){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(F=z.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}k.push(wt,c(z),vt,c(S(ne)),Et)}}}var Ht=d(">"),Xn=d("/>");function br(k,F,z){if(F!=null){if(z!=null)throw Error(t(60));if(typeof F!="object"||!("__html"in F))throw Error(t(61));F=F.__html,F!=null&&k.push(c(""+F))}}function Kn(k){var F="";return e.Children.forEach(k,function(z){z!=null&&(F+=z)}),F}var kn=d(' selected=""');function ji(k,F,z,ne){k.push(hn(z));var Se=z=null,Te;for(Te in F)if(p.call(F,Te)){var Be=F[Te];if(Be!=null)switch(Te){case"children":z=Be;break;case"dangerouslySetInnerHTML":Se=Be;break;default:$t(k,ne,Te,Be)}}return k.push(Ht),br(k,Se,z),typeof z=="string"?(k.push(c(S(z))),null):z}var Dr=d(`
|
|
58
|
+
`),rr=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,cn=new Map;function hn(k){var F=cn.get(k);if(F===void 0){if(!rr.test(k))throw Error(t(65,k));F=d("<"+k),cn.set(k,F)}return F}var pn=d("<!DOCTYPE html>");function gt(k,F,z,ne,Se){switch(F){case"select":k.push(hn("select"));var Te=null,Be=null;for(Ot in z)if(p.call(z,Ot)){var nt=z[Ot];if(nt!=null)switch(Ot){case"children":Te=nt;break;case"dangerouslySetInnerHTML":Be=nt;break;case"defaultValue":case"value":break;default:$t(k,ne,Ot,nt)}}return k.push(Ht),br(k,Be,Te),Te;case"option":Be=Se.selectedValue,k.push(hn("option"));var xt=nt=null,Nt=null,Ot=null;for(Te in z)if(p.call(z,Te)){var Ct=z[Te];if(Ct!=null)switch(Te){case"children":nt=Ct;break;case"selected":Nt=Ct;break;case"dangerouslySetInnerHTML":Ot=Ct;break;case"value":xt=Ct;default:$t(k,ne,Te,Ct)}}if(Be!=null)if(z=xt!==null?""+xt:Kn(nt),Ne(Be)){for(ne=0;ne<Be.length;ne++)if(""+Be[ne]===z){k.push(kn);break}}else""+Be===z&&k.push(kn);else Nt&&k.push(kn);return k.push(Ht),br(k,Ot,nt),nt;case"textarea":k.push(hn("textarea")),Ot=Be=Te=null;for(nt in z)if(p.call(z,nt)&&(xt=z[nt],xt!=null))switch(nt){case"children":Ot=xt;break;case"value":Te=xt;break;case"defaultValue":Be=xt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:$t(k,ne,nt,xt)}if(Te===null&&Be!==null&&(Te=Be),k.push(Ht),Ot!=null){if(Te!=null)throw Error(t(92));if(Ne(Ot)&&1<Ot.length)throw Error(t(93));Te=""+Ot}return typeof Te=="string"&&Te[0]===`
|
|
59
|
+
`&&k.push(Dr),Te!==null&&k.push(c(S(""+Te))),null;case"input":k.push(hn("input")),xt=Ot=nt=Te=null;for(Be in z)if(p.call(z,Be)&&(Nt=z[Be],Nt!=null))switch(Be){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":xt=Nt;break;case"defaultValue":nt=Nt;break;case"checked":Ot=Nt;break;case"value":Te=Nt;break;default:$t(k,ne,Be,Nt)}return Ot!==null?$t(k,ne,"checked",Ot):xt!==null&&$t(k,ne,"checked",xt),Te!==null?$t(k,ne,"value",Te):nt!==null&&$t(k,ne,"value",nt),k.push(Xn),null;case"menuitem":k.push(hn("menuitem"));for(var Bn in z)if(p.call(z,Bn)&&(Te=z[Bn],Te!=null))switch(Bn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:$t(k,ne,Bn,Te)}return k.push(Ht),null;case"title":k.push(hn("title")),Te=null;for(Ct in z)if(p.call(z,Ct)&&(Be=z[Ct],Be!=null))switch(Ct){case"children":Te=Be;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:$t(k,ne,Ct,Be)}return k.push(Ht),Te;case"listing":case"pre":k.push(hn(F)),Be=Te=null;for(xt in z)if(p.call(z,xt)&&(nt=z[xt],nt!=null))switch(xt){case"children":Te=nt;break;case"dangerouslySetInnerHTML":Be=nt;break;default:$t(k,ne,xt,nt)}if(k.push(Ht),Be!=null){if(Te!=null)throw Error(t(60));if(typeof Be!="object"||!("__html"in Be))throw Error(t(61));z=Be.__html,z!=null&&(typeof z=="string"&&0<z.length&&z[0]===`
|
|
60
|
+
`?k.push(Dr,c(z)):k.push(c(""+z)))}return typeof Te=="string"&&Te[0]===`
|
|
61
|
+
`&&k.push(Dr),Te;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(hn(F));for(var Tn in z)if(p.call(z,Tn)&&(Te=z[Tn],Te!=null))switch(Tn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,F));default:$t(k,ne,Tn,Te)}return k.push(Xn),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ji(k,z,F,ne);case"html":return Se.insertionMode===0&&k.push(pn),ji(k,z,F,ne);default:if(F.indexOf("-")===-1&&typeof z.is!="string")return ji(k,z,F,ne);k.push(hn(F)),Be=Te=null;for(Nt in z)if(p.call(z,Nt)&&(nt=z[Nt],nt!=null))switch(Nt){case"children":Te=nt;break;case"dangerouslySetInnerHTML":Be=nt;break;case"style":mt(k,ne,nt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:R(Nt)&&typeof nt!="function"&&typeof nt!="symbol"&&k.push(wt,c(Nt),vt,c(S(nt)),Et)}return k.push(Ht),br(k,Be,Te),Te}}var Rn=d("</"),fi=d(">"),un=d('<template id="'),Bi=d('"></template>'),$i=d("<!--$-->"),Vi=d('<!--$?--><template id="'),Pr=d('"></template>'),Un=d("<!--$!-->"),Rr=d("<!--/$-->"),wr=d("<template"),qr=d('"'),Xr=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Do=d("></template>");function Zn(k,F,z){if(i(k,Vi),z===null)throw Error(t(395));return i(k,z),o(k,Pr)}var Kr=d('<div hidden id="'),ir=d('">'),Zt=d("</div>"),di=d('<svg aria-hidden="true" style="display:none" id="'),Hi=d('">'),In=d("</svg>"),gn=d('<math aria-hidden="true" style="display:none" id="'),hi=d('">'),pi=d("</math>"),mn=d('<table hidden id="'),lo=d('">'),xr=d("</table>"),gi=d('<table hidden><tbody id="'),fn=d('">'),Ti=d("</tbody></table>"),Ra=d('<table hidden><tr id="'),Ia=d('">'),Zr=d("</tr></table>"),uo=d('<table hidden><colgroup id="'),co=d('">'),Po=d("</colgroup></table>");function Ci(k,F,z,ne){switch(z.insertionMode){case 0:case 1:return i(k,Kr),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,ir);case 2:return i(k,di),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,Hi);case 3:return i(k,gn),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,hi);case 4:return i(k,mn),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,lo);case 5:return i(k,gi),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,fn);case 6:return i(k,Ra),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,Ia);case 7:return i(k,uo),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,co);default:throw Error(t(397))}}function vi(k,F){switch(F.insertionMode){case 0:case 1:return o(k,Zt);case 2:return o(k,In);case 3:return o(k,pi);case 4:return o(k,xr);case 5:return o(k,Ti);case 6:return o(k,Zr);case 7:return o(k,Po);default:throw Error(t(397))}}var Ei=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)};$RS("'),fo=d('$RS("'),ki=d('","'),Jr=d('")<\/script>'),Sr=d('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("'),Ir=d('$RC("'),Qr=d('","'),Ar=d('")<\/script>'),Wn=d('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("'),vn=d('$RX("'),Mr=d('"'),Tr=d(")<\/script>"),An=d(","),mi=/[<\u2028\u2029]/g;function Lr(k){return JSON.stringify(k).replace(mi,function(F){switch(F){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 ei=Object.assign,Jn=Symbol.for("react.element"),ti=Symbol.for("react.portal"),ni=Symbol.for("react.fragment"),Ui=Symbol.for("react.strict_mode"),Pn=Symbol.for("react.profiler"),Cr=Symbol.for("react.provider"),fr=Symbol.for("react.context"),Ro=Symbol.for("react.forward_ref"),Wi=Symbol.for("react.suspense"),Fr=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),q=Symbol.for("react.scope"),re=Symbol.for("react.debug_trace_mode"),Oe=Symbol.for("react.legacy_hidden"),be=Symbol.for("react.default_value"),Me=Symbol.iterator;function rt(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 ni:return"Fragment";case ti:return"Portal";case Pn:return"Profiler";case Ui:return"StrictMode";case Wi:return"Suspense";case Fr:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case fr:return(k.displayName||"Context")+".Consumer";case Cr:return(k._context.displayName||"Context")+".Provider";case Ro:var F=k.render;return k=k.displayName,k||(k=F.displayName||F.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return F=k.displayName||null,F!==null?F:rt(k.type)||"Memo";case j:F=k._payload,k=k._init;try{return rt(k(F))}catch{}}return null}var yt={};function Tt(k,F){if(k=k.contextTypes,!k)return yt;var z={},ne;for(ne in k)z[ne]=F[ne];return z}var bt=null;function Ut(k,F){if(k!==F){k.context._currentValue=k.parentValue,k=k.parent;var z=F.parent;if(k===null){if(z!==null)throw Error(t(401))}else{if(z===null)throw Error(t(401));Ut(k,z)}F.context._currentValue=F.value}}function Qn(k){k.context._currentValue=k.parentValue,k=k.parent,k!==null&&Qn(k)}function zn(k){var F=k.parent;F!==null&&zn(F),k.context._currentValue=k.value}function _n(k,F){if(k.context._currentValue=k.parentValue,k=k.parent,k===null)throw Error(t(402));k.depth===F.depth?Ut(k,F):_n(k,F)}function Nr(k,F){var z=F.parent;if(z===null)throw Error(t(402));k.depth===z.depth?Ut(k,z):Nr(k,z),F.context._currentValue=F.value}function or(k){var F=bt;F!==k&&(F===null?zn(k):k===null?Qn(F):F.depth===k.depth?Ut(F,k):F.depth>k.depth?_n(F,k):Nr(F,k),bt=k)}var zi={isMounted:function(){return!1},enqueueSetState:function(k,F){k=k._reactInternals,k.queue!==null&&k.queue.push(F)},enqueueReplaceState:function(k,F){k=k._reactInternals,k.replace=!0,k.queue=[F]},enqueueForceUpdate:function(){}};function yi(k,F,z,ne){var Se=k.state!==void 0?k.state:null;k.updater=zi,k.props=z,k.state=Se;var Te={queue:[],replace:!1};k._reactInternals=Te;var Be=F.contextType;if(k.context=typeof Be=="object"&&Be!==null?Be._currentValue:ne,Be=F.getDerivedStateFromProps,typeof Be=="function"&&(Be=Be(z,Se),Se=Be==null?Se:ei({},Se,Be),k.state=Se),typeof F.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(F=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),F!==k.state&&zi.enqueueReplaceState(k,k.state,null),Te.queue!==null&&0<Te.queue.length)if(F=Te.queue,Be=Te.replace,Te.queue=null,Te.replace=!1,Be&&F.length===1)k.state=F[0];else{for(Te=Be?F[0]:k.state,Se=!0,Be=Be?1:0;Be<F.length;Be++){var nt=F[Be];nt=typeof nt=="function"?nt.call(k,Te,z,ne):nt,nt!=null&&(Se?(Se=!1,Te=ei({},Te,nt)):ei(Te,nt))}k.state=Te}else Te.queue=null}var Yi={id:1,overflow:""};function jr(k,F,z){var ne=k.id;k=k.overflow;var Se=32-Io(ne)-1;ne&=~(1<<Se),z+=1;var Te=32-Io(F)+Se;if(30<Te){var Be=Se-Se%5;return Te=(ne&(1<<Be)-1).toString(32),ne>>=Be,Se-=Be,{id:1<<32-Io(F)+Se|z<<Se|ne,overflow:Te+k}}return{id:1<<Te|z<<Se|ne,overflow:k}}var Io=Math.clz32?Math.clz32:Ma,Vs=Math.log,Aa=Math.LN2;function Ma(k){return k>>>=0,k===0?32:31-(Vs(k)/Aa|0)|0}function La(k,F){return k===F&&(k!==0||1/k===1/F)||k!==k&&F!==F}var Fa=typeof Object.is=="function"?Object.is:La,bi=null,Ao=null,ra=null,sn=null,Qt=!1,Vt=!1,_i=0,ri=null,Mo=0;function wi(){if(bi===null)throw Error(t(321));return bi}function dr(){if(0<Mo)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Na(){return sn===null?ra===null?(Qt=!1,ra=sn=dr()):(Qt=!0,sn=ra):sn.next===null?(Qt=!1,sn=sn.next=dr()):(Qt=!0,sn=sn.next),sn}function ia(){Ao=bi=null,Vt=!1,ra=null,Mo=0,sn=ri=null}function as(k,F){return typeof F=="function"?F(k):F}function yn(k,F,z){if(bi=wi(),sn=Na(),Qt){var ne=sn.queue;if(F=ne.dispatch,ri!==null&&(z=ri.get(ne),z!==void 0)){ri.delete(ne),ne=sn.memoizedState;do ne=k(ne,z.action),z=z.next;while(z!==null);return sn.memoizedState=ne,[ne,F]}return[sn.memoizedState,F]}return k=k===as?typeof F=="function"?F():F:z!==void 0?z(F):F,sn.memoizedState=k,k=sn.queue={last:null,dispatch:null},k=k.dispatch=xi.bind(null,bi,k),[sn.memoizedState,k]}function Lo(k,F){if(bi=wi(),sn=Na(),F=F===void 0?null:F,sn!==null){var z=sn.memoizedState;if(z!==null&&F!==null){var ne=z[1];e:if(ne===null)ne=!1;else{for(var Se=0;Se<ne.length&&Se<F.length;Se++)if(!Fa(F[Se],ne[Se])){ne=!1;break e}ne=!0}if(ne)return z[0]}}return k=k(),sn.memoizedState=[k,F],k}function xi(k,F,z){if(25<=Mo)throw Error(t(301));if(k===bi)if(Vt=!0,k={action:z,next:null},ri===null&&(ri=new Map),z=ri.get(F),z===void 0)ri.set(F,k);else{for(F=z;F.next!==null;)F=F.next;F.next=k}}function ss(){throw Error(t(394))}function ho(){}var er={readContext:function(k){return k._currentValue},useContext:function(k){return wi(),k._currentValue},useMemo:Lo,useReducer:yn,useRef:function(k){bi=wi(),sn=Na();var F=sn.memoizedState;return F===null?(k={current:k},sn.memoizedState=k):F},useState:function(k){return yn(as,k)},useInsertionEffect:ho,useLayoutEffect:function(){},useCallback:function(k,F){return Lo(function(){return k},F)},useImperativeHandle:ho,useEffect:ho,useDebugValue:ho,useDeferredValue:function(k){return wi(),k},useTransition:function(){return wi(),[!1,ss]},useId:function(){var k=Ao.treeContext,F=k.overflow;k=k.id,k=(k&~(1<<32-Io(k)-1)).toString(32)+F;var z=f;if(z===null)throw Error(t(404));return F=_i++,k=":"+z.idPrefix+"R"+k,0<F&&(k+="H"+F.toString(32)),k+":"},useMutableSource:function(k,F){return wi(),F(k._source)},useSyncExternalStore:function(k,F,z){if(z===void 0)throw Error(t(407));return z()}},f=null,m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function C(k){return console.error(k),null}function _(){}function N(k,F,z,ne,Se,Te,Be,nt,xt){var Nt=[],Ot=new Set;return F={destination:null,responseState:F,progressiveChunkSize:ne===void 0?12800:ne,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ot,pingedTasks:Nt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Se===void 0?C:Se,onAllReady:Te===void 0?_:Te,onShellReady:Be===void 0?_:Be,onShellError:nt===void 0?_:nt,onFatalError:xt===void 0?_:xt},z=H(F,0,null,z,!1,!1),z.parentFlushed=!0,k=B(F,k,null,z,Ot,yt,null,Yi),Nt.push(k),F}function B(k,F,z,ne,Se,Te,Be,nt){k.allPendingTasks++,z===null?k.pendingRootTasks++:z.pendingTasks++;var xt={node:F,ping:function(){var Nt=k.pingedTasks;Nt.push(xt),Nt.length===1&&$r(k)},blockedBoundary:z,blockedSegment:ne,abortSet:Se,legacyContext:Te,context:Be,treeContext:nt};return Se.add(xt),xt}function H(k,F,z,ne,Se,Te){return{status:0,id:-1,index:F,parentFlushed:!1,chunks:[],children:[],formatContext:ne,boundary:z,lastPushedText:Se,textEmbedded:Te}}function ue(k,F){if(k=k.onError(F),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 oe(k,F){var z=k.onShellError;z(F),z=k.onFatalError,z(F),k.destination!==null?(k.status=2,v(k.destination,F)):(k.status=1,k.fatalError=F)}function we(k,F,z,ne,Se){for(bi={},Ao=F,_i=0,k=z(ne,Se);Vt;)Vt=!1,_i=0,Mo+=1,sn=null,k=z(ne,Se);return ia(),k}function Le(k,F,z,ne){var Se=z.render(),Te=ne.childContextTypes;if(Te!=null){var Be=F.legacyContext;if(typeof z.getChildContext!="function")ne=Be;else{z=z.getChildContext();for(var nt in z)if(!(nt in Te))throw Error(t(108,rt(ne)||"Unknown",nt));ne=ei({},Be,z)}F.legacyContext=ne,qe(k,F,Se),F.legacyContext=Be}else qe(k,F,Se)}function je(k,F){if(k&&k.defaultProps){F=ei({},F),k=k.defaultProps;for(var z in k)F[z]===void 0&&(F[z]=k[z]);return F}return F}function ke(k,F,z,ne,Se){if(typeof z=="function")if(z.prototype&&z.prototype.isReactComponent){Se=Tt(z,F.legacyContext);var Te=z.contextType;Te=new z(ne,typeof Te=="object"&&Te!==null?Te._currentValue:Se),yi(Te,z,ne,Se),Le(k,F,Te,z)}else{Te=Tt(z,F.legacyContext),Se=we(k,F,z,ne,Te);var Be=_i!==0;if(typeof Se=="object"&&Se!==null&&typeof Se.render=="function"&&Se.$$typeof===void 0)yi(Se,z,ne,Te),Le(k,F,Se,z);else if(Be){ne=F.treeContext,F.treeContext=jr(ne,1,0);try{qe(k,F,Se)}finally{F.treeContext=ne}}else qe(k,F,Se)}else if(typeof z=="string"){switch(Se=F.blockedSegment,Te=gt(Se.chunks,z,ne,k.responseState,Se.formatContext),Se.lastPushedText=!1,Be=Se.formatContext,Se.formatContext=Pe(Be,z,ne),Dt(k,F,Te),Se.formatContext=Be,z){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:Se.chunks.push(Rn,c(z),fi)}Se.lastPushedText=!1}else{switch(z){case Oe:case re:case Ui:case Pn:case ni:qe(k,F,ne.children);return;case Fr:qe(k,F,ne.children);return;case q:throw Error(t(343));case Wi:e:{z=F.blockedBoundary,Se=F.blockedSegment,Te=ne.fallback,ne=ne.children,Be=new Set;var nt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Be,errorDigest:null},xt=H(k,Se.chunks.length,nt,Se.formatContext,!1,!1);Se.children.push(xt),Se.lastPushedText=!1;var Nt=H(k,0,null,Se.formatContext,!1,!1);Nt.parentFlushed=!0,F.blockedBoundary=nt,F.blockedSegment=Nt;try{if(Dt(k,F,ne),Nt.lastPushedText&&Nt.textEmbedded&&Nt.chunks.push(Ve),Nt.status=1,dn(nt,Nt),nt.pendingTasks===0)break e}catch(Ot){Nt.status=4,nt.forceClientRender=!0,nt.errorDigest=ue(k,Ot)}finally{F.blockedBoundary=z,F.blockedSegment=Se}F=B(k,Te,z,xt,Be,F.legacyContext,F.context,F.treeContext),k.pingedTasks.push(F)}return}if(typeof z=="object"&&z!==null)switch(z.$$typeof){case Ro:if(ne=we(k,F,z.render,ne,Se),_i!==0){z=F.treeContext,F.treeContext=jr(z,1,0);try{qe(k,F,ne)}finally{F.treeContext=z}}else qe(k,F,ne);return;case E:z=z.type,ne=je(z,ne),ke(k,F,z,ne,Se);return;case Cr:if(Se=ne.children,z=z._context,ne=ne.value,Te=z._currentValue,z._currentValue=ne,Be=bt,bt=ne={parent:Be,depth:Be===null?0:Be.depth+1,context:z,parentValue:Te,value:ne},F.context=ne,qe(k,F,Se),k=bt,k===null)throw Error(t(403));ne=k.parentValue,k.context._currentValue=ne===be?k.context._defaultValue:ne,k=bt=k.parent,F.context=k;return;case fr:ne=ne.children,ne=ne(z._currentValue),qe(k,F,ne);return;case j:Se=z._init,z=Se(z._payload),ne=je(z,ne),ke(k,F,z,ne,void 0);return}throw Error(t(130,z==null?z:typeof z,""))}}function qe(k,F,z){if(F.node=z,typeof z=="object"&&z!==null){switch(z.$$typeof){case Jn:ke(k,F,z.type,z.props,z.ref);return;case ti:throw Error(t(257));case j:var ne=z._init;z=ne(z._payload),qe(k,F,z);return}if(Ne(z)){ct(k,F,z);return}if(z===null||typeof z!="object"?ne=null:(ne=Me&&z[Me]||z["@@iterator"],ne=typeof ne=="function"?ne:null),ne&&(ne=ne.call(z))){if(z=ne.next(),!z.done){var Se=[];do Se.push(z.value),z=ne.next();while(!z.done);ct(k,F,Se)}return}throw k=Object.prototype.toString.call(z),Error(t(31,k==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":k))}typeof z=="string"?(ne=F.blockedSegment,ne.lastPushedText=Ue(F.blockedSegment.chunks,z,k.responseState,ne.lastPushedText)):typeof z=="number"&&(ne=F.blockedSegment,ne.lastPushedText=Ue(F.blockedSegment.chunks,""+z,k.responseState,ne.lastPushedText))}function ct(k,F,z){for(var ne=z.length,Se=0;Se<ne;Se++){var Te=F.treeContext;F.treeContext=jr(Te,ne,Se);try{Dt(k,F,z[Se])}finally{F.treeContext=Te}}}function Dt(k,F,z){var ne=F.blockedSegment.formatContext,Se=F.legacyContext,Te=F.context;try{return qe(k,F,z)}catch(xt){if(ia(),typeof xt=="object"&&xt!==null&&typeof xt.then=="function"){z=xt;var Be=F.blockedSegment,nt=H(k,Be.chunks.length,null,Be.formatContext,Be.lastPushedText,!0);Be.children.push(nt),Be.lastPushedText=!1,k=B(k,F.node,F.blockedBoundary,nt,F.abortSet,F.legacyContext,F.context,F.treeContext).ping,z.then(k,k),F.blockedSegment.formatContext=ne,F.legacyContext=Se,F.context=Te,or(Te)}else throw F.blockedSegment.formatContext=ne,F.legacyContext=Se,F.context=Te,or(Te),xt}}function It(k){var F=k.blockedBoundary;k=k.blockedSegment,k.status=3,Br(this,F,k)}function Mn(k,F,z){var ne=k.blockedBoundary;k.blockedSegment.status=3,ne===null?(F.allPendingTasks--,F.status!==2&&(F.status=2,F.destination!==null&&F.destination.close())):(ne.pendingTasks--,ne.forceClientRender||(ne.forceClientRender=!0,k=z===void 0?Error(t(432)):z,ne.errorDigest=F.onError(k),ne.parentFlushed&&F.clientRenderedBoundaries.push(ne)),ne.fallbackAbortableTasks.forEach(function(Se){return Mn(Se,F,z)}),ne.fallbackAbortableTasks.clear(),F.allPendingTasks--,F.allPendingTasks===0&&(ne=F.onAllReady,ne()))}function dn(k,F){if(F.chunks.length===0&&F.children.length===1&&F.children[0].boundary===null){var z=F.children[0];z.id=F.id,z.parentFlushed=!0,z.status===1&&dn(k,z)}else k.completedSegments.push(F)}function Br(k,F,z){if(F===null){if(z.parentFlushed){if(k.completedRootSegment!==null)throw Error(t(389));k.completedRootSegment=z}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=_,F=k.onShellReady,F())}else F.pendingTasks--,F.forceClientRender||(F.pendingTasks===0?(z.parentFlushed&&z.status===1&&dn(F,z),F.parentFlushed&&k.completedBoundaries.push(F),F.fallbackAbortableTasks.forEach(It,k),F.fallbackAbortableTasks.clear()):z.parentFlushed&&z.status===1&&(dn(F,z),F.completedSegments.length===1&&F.parentFlushed&&k.partialBoundaries.push(F)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function $r(k){if(k.status!==2){var F=bt,z=m.current;m.current=er;var ne=f;f=k.responseState;try{var Se=k.pingedTasks,Te;for(Te=0;Te<Se.length;Te++){var Be=Se[Te],nt=k,xt=Be.blockedSegment;if(xt.status===0){or(Be.context);try{qe(nt,Be,Be.node),xt.lastPushedText&&xt.textEmbedded&&xt.chunks.push(Ve),Be.abortSet.delete(Be),xt.status=1,Br(nt,Be.blockedBoundary,xt)}catch(Yn){if(ia(),typeof Yn=="object"&&Yn!==null&&typeof Yn.then=="function"){var Nt=Be.ping;Yn.then(Nt,Nt)}else{Be.abortSet.delete(Be),xt.status=4;var Ot=Be.blockedBoundary,Ct=Yn,Bn=ue(nt,Ct);if(Ot===null?oe(nt,Ct):(Ot.pendingTasks--,Ot.forceClientRender||(Ot.forceClientRender=!0,Ot.errorDigest=Bn,Ot.parentFlushed&&nt.clientRenderedBoundaries.push(Ot))),nt.allPendingTasks--,nt.allPendingTasks===0){var Tn=nt.onAllReady;Tn()}}}finally{}}}Se.splice(0,Te),k.destination!==null&&go(k,k.destination)}catch(Yn){ue(k,Yn),oe(k,Yn)}finally{f=ne,m.current=z,z===er&&or(F)}}}function Wt(k,F,z){switch(z.parentFlushed=!0,z.status){case 0:var ne=z.id=k.nextSegmentId++;return z.lastPushedText=!1,z.textEmbedded=!1,k=k.responseState,i(F,un),i(F,k.placeholderPrefix),k=c(ne.toString(16)),i(F,k),o(F,Bi);case 1:z.status=2;var Se=!0;ne=z.chunks;var Te=0;z=z.children;for(var Be=0;Be<z.length;Be++){for(Se=z[Be];Te<Se.index;Te++)i(F,ne[Te]);Se=Vr(k,F,Se)}for(;Te<ne.length-1;Te++)i(F,ne[Te]);return Te<ne.length&&(Se=o(F,ne[Te])),Se;default:throw Error(t(390))}}function Vr(k,F,z){var ne=z.boundary;if(ne===null)return Wt(k,F,z);if(ne.parentFlushed=!0,ne.forceClientRender)ne=ne.errorDigest,o(F,Un),i(F,wr),ne&&(i(F,Xr),i(F,c(S(ne))),i(F,qr)),o(F,Do),Wt(k,F,z);else if(0<ne.pendingTasks){ne.rootSegmentID=k.nextSegmentId++,0<ne.completedSegments.length&&k.partialBoundaries.push(ne);var Se=k.responseState,Te=Se.nextSuspenseID++;Se=d(Se.boundaryPrefix+Te.toString(16)),ne=ne.id=Se,Zn(F,k.responseState,ne),Wt(k,F,z)}else if(ne.byteSize>k.progressiveChunkSize)ne.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ne),Zn(F,k.responseState,ne.id),Wt(k,F,z);else{if(o(F,$i),z=ne.completedSegments,z.length!==1)throw Error(t(391));Vr(k,F,z[0])}return o(F,Rr)}function zt(k,F,z){return Ci(F,k.responseState,z.formatContext,z.id),Vr(k,F,z),vi(F,z.formatContext)}function on(k,F,z){for(var ne=z.completedSegments,Se=0;Se<ne.length;Se++)po(k,F,z,ne[Se]);if(ne.length=0,k=k.responseState,ne=z.id,z=z.rootSegmentID,i(F,k.startInlineScript),k.sentCompleteBoundaryFunction?i(F,Ir):(k.sentCompleteBoundaryFunction=!0,i(F,Sr)),ne===null)throw Error(t(395));return z=c(z.toString(16)),i(F,ne),i(F,Qr),i(F,k.segmentPrefix),i(F,z),o(F,Ar)}function po(k,F,z,ne){if(ne.status===2)return!0;var Se=ne.id;if(Se===-1){if((ne.id=z.rootSegmentID)===-1)throw Error(t(392));return zt(k,F,ne)}return zt(k,F,ne),k=k.responseState,i(F,k.startInlineScript),k.sentCompleteSegmentFunction?i(F,fo):(k.sentCompleteSegmentFunction=!0,i(F,Ei)),i(F,k.segmentPrefix),Se=c(Se.toString(16)),i(F,Se),i(F,ki),i(F,k.placeholderPrefix),i(F,Se),o(F,Jr)}function go(k,F){n=new Uint8Array(512),r=0;try{var z=k.completedRootSegment;if(z!==null&&k.pendingRootTasks===0){Vr(k,F,z),k.completedRootSegment=null;var ne=k.responseState.bootstrapChunks;for(z=0;z<ne.length-1;z++)i(F,ne[z]);z<ne.length&&o(F,ne[z])}var Se=k.clientRenderedBoundaries,Te;for(Te=0;Te<Se.length;Te++){var Be=Se[Te];ne=F;var nt=k.responseState,xt=Be.id,Nt=Be.errorDigest,Ot=Be.errorMessage,Ct=Be.errorComponentStack;if(i(ne,nt.startInlineScript),nt.sentClientRenderFunction?i(ne,vn):(nt.sentClientRenderFunction=!0,i(ne,Wn)),xt===null)throw Error(t(395));i(ne,xt),i(ne,Mr),(Nt||Ot||Ct)&&(i(ne,An),i(ne,c(Lr(Nt||"")))),(Ot||Ct)&&(i(ne,An),i(ne,c(Lr(Ot||"")))),Ct&&(i(ne,An),i(ne,c(Lr(Ct)))),o(ne,Tr)}Se.splice(0,Te);var Bn=k.completedBoundaries;for(Te=0;Te<Bn.length;Te++)on(k,F,Bn[Te]);Bn.splice(0,Te),s(F),n=new Uint8Array(512),r=0;var Tn=k.partialBoundaries;for(Te=0;Te<Tn.length;Te++){var Yn=Tn[Te];e:{Se=k,Be=F;var oa=Yn.completedSegments;for(nt=0;nt<oa.length;nt++)if(!po(Se,Be,Yn,oa[nt])){nt++,oa.splice(0,nt);var ls=!1;break e}oa.splice(0,nt),ls=!0}if(!ls){k.destination=null,Te++,Tn.splice(0,Te);return}}Tn.splice(0,Te);var aa=k.completedBoundaries;for(Te=0;Te<aa.length;Te++)on(k,F,aa[Te]);aa.splice(0,Te)}finally{s(F),k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&F.close()}}function Er(k,F){try{var z=k.abortableTasks;z.forEach(function(ne){return Mn(ne,k,F)}),z.clear(),k.destination!==null&&go(k,k.destination)}catch(ne){ue(k,ne),oe(k,ne)}}return $h.renderToReadableStream=function(k,F){return new Promise(function(z,ne){var Se,Te,Be=new Promise(function(Ot,Ct){Te=Ot,Se=Ct}),nt=N(k,et(F?F.identifierPrefix:void 0,F?F.nonce:void 0,F?F.bootstrapScriptContent:void 0,F?F.bootstrapScripts:void 0,F?F.bootstrapModules:void 0),Ee(F?F.namespaceURI:void 0),F?F.progressiveChunkSize:void 0,F?F.onError:void 0,Te,function(){var Ot=new ReadableStream({type:"bytes",pull:function(Ct){if(nt.status===1)nt.status=2,v(Ct,nt.fatalError);else if(nt.status!==2&&nt.destination===null){nt.destination=Ct;try{go(nt,Ct)}catch(Bn){ue(nt,Bn),oe(nt,Bn)}}},cancel:function(){Er(nt)}},{highWaterMark:0});Ot.allReady=Be,z(Ot)},function(Ot){Be.catch(function(){}),ne(Ot)},Se);if(F&&F.signal){var xt=F.signal,Nt=function(){Er(nt,xt.reason),xt.removeEventListener("abort",Nt)};xt.addEventListener("abort",Nt)}$r(nt)})},$h.version="18.2.0",$h}var xc={};/**
|
|
62
|
+
* @license React
|
|
63
|
+
* react-dom-server-legacy.browser.development.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/var s1;function z5(){return s1||(s1=1,process.env.NODE_ENV!=="production"&&function(){var e=X,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(h){{for(var b=arguments.length,O=new Array(b>1?b-1:0),M=1;M<b;M++)O[M-1]=arguments[M];o("warn",h,O)}}function i(h){{for(var b=arguments.length,O=new Array(b>1?b-1:0),M=1;M<b;M++)O[M-1]=arguments[M];o("error",h,O)}}function o(h,b,O){{var M=n.ReactDebugCurrentFrame,Y=M.getStackAddendum();Y!==""&&(b+="%s",O=O.concat([Y]));var ie=O.map(function(fe){return String(fe)});ie.unshift("Warning: "+b),Function.prototype.apply.call(console[h],console,ie)}}function s(h){h()}function l(h){}function c(h,b){d(h,b)}function d(h,b){return h.push(b)}function v(h){}function p(h){h.push(null)}function x(h){return h}function T(h){return h}function P(h,b){h.destroy(b)}function R(h){{var b=typeof Symbol=="function"&&Symbol.toStringTag,O=b&&h[Symbol.toStringTag]||h.constructor.name||"Object";return O}}function L(h){try{return I(h),!1}catch{return!0}}function I(h){return""+h}function U(h,b){if(L(h))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",b,R(h)),I(h)}function W(h,b){if(L(h))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.",b,R(h)),I(h)}function te(h){if(L(h))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.",R(h)),I(h)}var J=Object.prototype.hasOwnProperty,ge=0,S=1,ce=2,ae=3,Ne=4,Je=5,Ye=6,Qe=":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",tt=Qe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",he=new RegExp("^["+Qe+"]["+tt+"]*$"),Ce={},He={};function et(h){return J.call(He,h)?!0:J.call(Ce,h)?!1:he.test(h)?(He[h]=!0,!0):(Ce[h]=!0,i("Invalid attribute name: `%s`",h),!1)}function at(h,b,O,M){if(O!==null&&O.type===ge)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(M)return!1;if(O!==null)return!O.acceptsBooleans;var Y=h.toLowerCase().slice(0,5);return Y!=="data-"&&Y!=="aria-"}default:return!1}}function Ee(h){return Ve.hasOwnProperty(h)?Ve[h]:null}function Pe(h,b,O,M,Y,ie,fe){this.acceptsBooleans=b===ce||b===ae||b===Ne,this.attributeName=M,this.attributeNamespace=Y,this.mustUseProperty=O,this.propertyName=h,this.type=b,this.sanitizeURL=ie,this.removeEmptyString=fe}var Ve={},Ue=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ue.forEach(function(h){Ve[h]=new Pe(h,ge,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var b=h[0],O=h[1];Ve[b]=new Pe(b,S,!1,O,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){Ve[h]=new Pe(h,ce,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){Ve[h]=new Pe(h,ce,!1,h,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(h){Ve[h]=new Pe(h,ae,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){Ve[h]=new Pe(h,ae,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){Ve[h]=new Pe(h,Ne,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){Ve[h]=new Pe(h,Ye,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){Ve[h]=new Pe(h,Je,!1,h.toLowerCase(),null,!1,!1)});var Re=/[\-\:]([a-z])/g,Fe=function(h){return h[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(h){var b=h.replace(Re,Fe);Ve[b]=new Pe(b,S,!1,h,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(h){var b=h.replace(Re,Fe);Ve[b]=new Pe(b,S,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var b=h.replace(Re,Fe);Ve[b]=new Pe(b,S,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){Ve[h]=new Pe(h,S,!1,h.toLowerCase(),null,!1,!1)});var Ge="xlinkHref";Ve[Ge]=new Pe("xlinkHref",S,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){Ve[h]=new Pe(h,S,!1,h.toLowerCase(),null,!0,!0)});var lt={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 mt(h,b){return h+b.charAt(0).toUpperCase()+b.substring(1)}var wt=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(h){wt.forEach(function(b){lt[mt(b,h)]=lt[h]})});var vt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Et(h,b){vt[b.type]||b.onChange||b.onInput||b.readOnly||b.disabled||b.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`."),b.onChange||b.readOnly||b.disabled||b.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 ot(h,b){if(h.indexOf("-")===-1)return typeof b.is=="string";switch(h){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 $t={"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},Ht={},Xn=new RegExp("^(aria)-["+tt+"]*$"),br=new RegExp("^(aria)[A-Z]["+tt+"]*$");function Kn(h,b){{if(J.call(Ht,b)&&Ht[b])return!0;if(br.test(b)){var O="aria-"+b.slice(4).toLowerCase(),M=$t.hasOwnProperty(O)?O:null;if(M==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),Ht[b]=!0,!0;if(b!==M)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,M),Ht[b]=!0,!0}if(Xn.test(b)){var Y=b.toLowerCase(),ie=$t.hasOwnProperty(Y)?Y:null;if(ie==null)return Ht[b]=!0,!1;if(b!==ie)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,ie),Ht[b]=!0,!0}}return!0}function kn(h,b){{var O=[];for(var M in b){var Y=Kn(h,M);Y||O.push(M)}var ie=O.map(function(fe){return"`"+fe+"`"}).join(", ");O.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h):O.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h)}}function ji(h,b){ot(h,b)||kn(h,b)}var Dr=!1;function rr(h,b){{if(h!=="input"&&h!=="textarea"&&h!=="select")return;b!=null&&b.value===null&&!Dr&&(Dr=!0,h==="select"&&b.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.",h):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",h))}}var cn={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"},hn=function(){};{var pn={},gt=/^on./,Rn=/^on[^A-Z]/,fi=new RegExp("^(aria)-["+tt+"]*$"),un=new RegExp("^(aria)[A-Z]["+tt+"]*$");hn=function(h,b,O,M){if(J.call(pn,b)&&pn[b])return!0;var Y=b.toLowerCase();if(Y==="onfocusin"||Y==="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."),pn[b]=!0,!0;if(M!=null){var ie=M.registrationNameDependencies,fe=M.possibleRegistrationNames;if(ie.hasOwnProperty(b))return!0;var Ie=fe.hasOwnProperty(Y)?fe[Y]:null;if(Ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",b,Ie),pn[b]=!0,!0;if(gt.test(b))return i("Unknown event handler property `%s`. It will be ignored.",b),pn[b]=!0,!0}else if(gt.test(b))return Rn.test(b)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b),pn[b]=!0,!0;if(fi.test(b)||un.test(b))return!0;if(Y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),pn[b]=!0,!0;if(Y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),pn[b]=!0,!0;if(Y==="is"&&O!==null&&O!==void 0&&typeof O!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof O),pn[b]=!0,!0;if(typeof O=="number"&&isNaN(O))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),pn[b]=!0,!0;var Ze=Ee(b),ht=Ze!==null&&Ze.type===ge;if(cn.hasOwnProperty(Y)){var St=cn[Y];if(St!==b)return i("Invalid DOM property `%s`. Did you mean `%s`?",b,St),pn[b]=!0,!0}else if(!ht&&b!==Y)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.",b,Y),pn[b]=!0,!0;return typeof O=="boolean"&&at(b,O,Ze,!1)?(O?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()}.',O,b,b,O,b):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.',O,b,b,O,b,b,b),pn[b]=!0,!0):ht?!0:at(b,O,Ze,!1)?(pn[b]=!0,!1):((O==="false"||O==="true")&&Ze!==null&&Ze.type===ae&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",O,b,O==="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".',b,O),pn[b]=!0),!0)}}var Bi=function(h,b,O){{var M=[];for(var Y in b){var ie=hn(h,Y,b[Y],O);ie||M.push(Y)}var fe=M.map(function(Ie){return"`"+Ie+"`"}).join(", ");M.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 ",fe,h):M.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 ",fe,h)}};function $i(h,b,O){ot(h,b)||Bi(h,b,O)}var Vi=function(){};{var Pr=/^(?:webkit|moz|o)[A-Z]/,Un=/^-ms-/,Rr=/-(.)/g,wr=/;\s*$/,qr={},Xr={},Do=!1,Zn=!1,Kr=function(h){return h.replace(Rr,function(b,O){return O.toUpperCase()})},ir=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported style property %s. Did you mean %s?",h,Kr(h.replace(Un,"ms-"))))},Zt=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",h,h.charAt(0).toUpperCase()+h.slice(1)))},di=function(h,b){Xr.hasOwnProperty(b)&&Xr[b]||(Xr[b]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,h,b.replace(wr,"")))},Hi=function(h,b){Do||(Do=!0,i("`NaN` is an invalid value for the `%s` css style property.",h))},In=function(h,b){Zn||(Zn=!0,i("`Infinity` is an invalid value for the `%s` css style property.",h))};Vi=function(h,b){h.indexOf("-")>-1?ir(h):Pr.test(h)?Zt(h):wr.test(b)&&di(h,b),typeof b=="number"&&(isNaN(b)?Hi(h,b):isFinite(b)||In(h,b))}}var gn=Vi,hi=/["'&<>]/;function pi(h){te(h);var b=""+h,O=hi.exec(b);if(!O)return b;var M,Y="",ie,fe=0;for(ie=O.index;ie<b.length;ie++){switch(b.charCodeAt(ie)){case 34:M=""";break;case 38:M="&";break;case 39:M="'";break;case 60:M="<";break;case 62:M=">";break;default:continue}fe!==ie&&(Y+=b.substring(fe,ie)),fe=ie+1,Y+=M}return fe!==ie?Y+b.substring(fe,ie):Y}function mn(h){return typeof h=="boolean"||typeof h=="number"?""+h:pi(h)}var lo=/([A-Z])/g,xr=/^ms-/;function gi(h){return h.replace(lo,"-$1").toLowerCase().replace(xr,"-ms-")}var fn=/^[\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,Ti=!1;function Ra(h){!Ti&&fn.test(h)&&(Ti=!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(h)))}var Ia=Array.isArray;function Zr(h){return Ia(h)}var uo="<script>",co="<\/script>",Po='<script src="',Ci='<script type="module" src="',vi='" async=""><\/script>';function Ei(h){return te(h),(""+h).replace(fo,ki)}var fo=/(<\/|<)(s)(cript)/gi,ki=function(h,b,O,M){return""+b+(O==="s"?"\\u0073":"\\u0053")+M};function Jr(h,b,O,M,Y){var ie=h===void 0?"":h,fe=b===void 0?uo:'<script nonce="'+mn(b)+'">',Ie=[];if(O!==void 0&&Ie.push(fe,Ei(O),co),M!==void 0)for(var Ze=0;Ze<M.length;Ze++)Ie.push(Po,mn(M[Ze]),vi);if(Y!==void 0)for(var ht=0;ht<Y.length;ht++)Ie.push(Ci,mn(Y[ht]),vi);return{bootstrapChunks:Ie,startInlineScript:fe,placeholderPrefix:ie+"P:",segmentPrefix:ie+"S:",boundaryPrefix:ie+"B:",idPrefix:ie,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Sr=0,Ir=1,Qr=2,Ar=3,Wn=4,vn=5,Mr=6,Tr=7;function An(h,b){return{insertionMode:h,selectedValue:b}}function mi(h,b,O){switch(b){case"select":return An(Ir,O.value!=null?O.value:O.defaultValue);case"svg":return An(Qr,null);case"math":return An(Ar,null);case"foreignObject":return An(Ir,null);case"table":return An(Wn,null);case"thead":case"tbody":case"tfoot":return An(vn,null);case"colgroup":return An(Tr,null);case"tr":return An(Mr,null)}return h.insertionMode>=Wn||h.insertionMode===Sr?An(Ir,null):h}var Lr=null;function ei(h){var b=h.nextSuspenseID++;return h.boundaryPrefix+b.toString(16)}function Jn(h,b,O){var M=h.idPrefix,Y=":"+M+"R"+b;return O>0&&(Y+="H"+O.toString(32)),Y+":"}function ti(h){return mn(h)}var ni="<!-- -->";function Ui(h,b,O,M){return b===""?M:(M&&h.push(ni),h.push(ti(b)),!0)}function Pn(h,b,O,M){O&&M&&h.push(ni)}var Cr=new Map;function fr(h){var b=Cr.get(h);if(b!==void 0)return b;var O=mn(gi(h));return Cr.set(h,O),O}var Ro=' style="',Wi=":",Fr=";";function E(h,b,O){if(typeof O!="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 M=!0;for(var Y in O)if(J.call(O,Y)){var ie=O[Y];if(!(ie==null||typeof ie=="boolean"||ie==="")){var fe=void 0,Ie=void 0,Ze=Y.indexOf("--")===0;Ze?(fe=mn(Y),W(ie,Y),Ie=mn((""+ie).trim())):(gn(Y,ie),fe=fr(Y),typeof ie=="number"?ie!==0&&!J.call(lt,Y)?Ie=ie+"px":Ie=""+ie:(W(ie,Y),Ie=mn((""+ie).trim()))),M?(M=!1,h.push(Ro,fe,Wi,Ie)):h.push(Fr,fe,Wi,Ie)}}M||h.push(re)}var j=" ",q='="',re='"',Oe='=""';function be(h,b,O,M){switch(O){case"style":{E(h,b,M);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(O.length>2&&(O[0]==="o"||O[0]==="O")&&(O[1]==="n"||O[1]==="N"))){var Y=Ee(O);if(Y!==null){switch(typeof M){case"function":case"symbol":return;case"boolean":if(!Y.acceptsBooleans)return}var ie=Y.attributeName,fe=ie;switch(Y.type){case ae:M&&h.push(j,fe,Oe);return;case Ne:M===!0?h.push(j,fe,Oe):M===!1||h.push(j,fe,q,mn(M),re);return;case Je:isNaN(M)||h.push(j,fe,q,mn(M),re);break;case Ye:!isNaN(M)&&M>=1&&h.push(j,fe,q,mn(M),re);break;default:Y.sanitizeURL&&(U(M,ie),M=""+M,Ra(M)),h.push(j,fe,q,mn(M),re)}}else if(et(O)){switch(typeof M){case"function":case"symbol":return;case"boolean":{var Ie=O.toLowerCase().slice(0,5);if(Ie!=="data-"&&Ie!=="aria-")return}}h.push(j,O,q,mn(M),re)}}}var Me=">",rt="/>";function yt(h,b,O){if(b!=null){if(O!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b!="object"||!("__html"in b))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var M=b.__html;M!=null&&(te(M),h.push(""+M))}}var Tt=!1,bt=!1,Ut=!1,Qn=!1,zn=!1,_n=!1,Nr=!1;function or(h,b){{var O=h[b];if(O!=null){var M=Zr(O);h.multiple&&!M?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",b):!h.multiple&&M&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",b)}}}function zi(h,b,O){Et("select",b),or(b,"value"),or(b,"defaultValue"),b.value!==void 0&&b.defaultValue!==void 0&&!Ut&&(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"),Ut=!0),h.push(Vt("select"));var M=null,Y=null;for(var ie in b)if(J.call(b,ie)){var fe=b[ie];if(fe==null)continue;switch(ie){case"children":M=fe;break;case"dangerouslySetInnerHTML":Y=fe;break;case"defaultValue":case"value":break;default:be(h,O,ie,fe);break}}return h.push(Me),yt(h,Y,M),M}function yi(h){var b="";return e.Children.forEach(h,function(O){O!=null&&(b+=O,!zn&&typeof O!="string"&&typeof O!="number"&&(zn=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),b}var Yi=' selected=""';function jr(h,b,O,M){var Y=M.selectedValue;h.push(Vt("option"));var ie=null,fe=null,Ie=null,Ze=null;for(var ht in b)if(J.call(b,ht)){var St=b[ht];if(St==null)continue;switch(ht){case"children":ie=St;break;case"selected":Ie=St,Nr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nr=!0);break;case"dangerouslySetInnerHTML":Ze=St;break;case"value":fe=St;default:be(h,O,ht,St);break}}if(Y!=null){var Pt;if(fe!==null?(U(fe,"value"),Pt=""+fe):(Ze!==null&&(_n||(_n=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Pt=yi(ie)),Zr(Y))for(var Cn=0;Cn<Y.length;Cn++){U(Y[Cn],"value");var sr=""+Y[Cn];if(sr===Pt){h.push(Yi);break}}else U(Y,"select.value"),""+Y===Pt&&h.push(Yi)}else Ie&&h.push(Yi);return h.push(Me),yt(h,Ze,ie),ie}function Io(h,b,O){Et("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!bt&&(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",b.type),bt=!0),b.value!==void 0&&b.defaultValue!==void 0&&!Tt&&(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",b.type),Tt=!0),h.push(Vt("input"));var M=null,Y=null,ie=null,fe=null;for(var Ie in b)if(J.call(b,Ie)){var Ze=b[Ie];if(Ze==null)continue;switch(Ie){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":fe=Ze;break;case"defaultValue":Y=Ze;break;case"checked":ie=Ze;break;case"value":M=Ze;break;default:be(h,O,Ie,Ze);break}}return ie!==null?be(h,O,"checked",ie):fe!==null&&be(h,O,"checked",fe),M!==null?be(h,O,"value",M):Y!==null&&be(h,O,"value",Y),h.push(rt),null}function Vs(h,b,O){Et("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!Qn&&(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"),Qn=!0),h.push(Vt("textarea"));var M=null,Y=null,ie=null;for(var fe in b)if(J.call(b,fe)){var Ie=b[fe];if(Ie==null)continue;switch(fe){case"children":ie=Ie;break;case"value":M=Ie;break;case"defaultValue":Y=Ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:be(h,O,fe,Ie);break}}if(M===null&&Y!==null&&(M=Y),h.push(Me),ie!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),M!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Zr(ie)){if(ie.length>1)throw new Error("<textarea> can only have at most one child.");te(ie[0]),M=""+ie[0]}te(ie),M=""+ie}return typeof M=="string"&&M[0]===`
|
|
70
|
+
`&&h.push(Ao),M!==null&&(U(M,"value"),h.push(ti(""+M))),null}function Aa(h,b,O,M){h.push(Vt(O));for(var Y in b)if(J.call(b,Y)){var ie=b[Y];if(ie==null)continue;switch(Y){case"children":case"dangerouslySetInnerHTML":throw new Error(O+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:be(h,M,Y,ie);break}}return h.push(rt),null}function Ma(h,b,O){h.push(Vt("menuitem"));for(var M in b)if(J.call(b,M)){var Y=b[M];if(Y==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:be(h,O,M,Y);break}}return h.push(Me),null}function La(h,b,O){h.push(Vt("title"));var M=null;for(var Y in b)if(J.call(b,Y)){var ie=b[Y];if(ie==null)continue;switch(Y){case"children":M=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:be(h,O,Y,ie);break}}h.push(Me);{var fe=Array.isArray(M)&&M.length<2?M[0]||null:M;Array.isArray(M)&&M.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"):fe!=null&&fe.$$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"):fe!=null&&typeof fe!="string"&&typeof fe!="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 M}function Fa(h,b,O,M){h.push(Vt(O));var Y=null,ie=null;for(var fe in b)if(J.call(b,fe)){var Ie=b[fe];if(Ie==null)continue;switch(fe){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,fe,Ie);break}}return h.push(Me),yt(h,ie,Y),typeof Y=="string"?(h.push(ti(Y)),null):Y}function bi(h,b,O,M){h.push(Vt(O));var Y=null,ie=null;for(var fe in b)if(J.call(b,fe)){var Ie=b[fe];if(Ie==null)continue;switch(fe){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;case"style":E(h,M,Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:et(fe)&&typeof Ie!="function"&&typeof Ie!="symbol"&&h.push(j,fe,q,mn(Ie),re);break}}return h.push(Me),yt(h,ie,Y),Y}var Ao=`
|
|
71
|
+
`;function ra(h,b,O,M){h.push(Vt(O));var Y=null,ie=null;for(var fe in b)if(J.call(b,fe)){var Ie=b[fe];if(Ie==null)continue;switch(fe){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,fe,Ie);break}}if(h.push(Me),ie!=null){if(Y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof ie!="object"||!("__html"in ie))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 Ze=ie.__html;Ze!=null&&(typeof Ze=="string"&&Ze.length>0&&Ze[0]===`
|
|
72
|
+
`?h.push(Ao,Ze):(te(Ze),h.push(""+Ze)))}return typeof Y=="string"&&Y[0]===`
|
|
73
|
+
`&&h.push(Ao),Y}var sn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Qt=new Map;function Vt(h){var b=Qt.get(h);if(b===void 0){if(!sn.test(h))throw new Error("Invalid tag: "+h);b="<"+h,Qt.set(h,b)}return b}var _i="<!DOCTYPE html>";function ri(h,b,O,M,Y){switch(ji(b,O),rr(b,O),$i(b,O,null),!O.suppressContentEditableWarning&&O.contentEditable&&O.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."),Y.insertionMode!==Qr&&Y.insertionMode!==Ar&&b.indexOf("-")===-1&&typeof O.is!="string"&&b.toLowerCase()!==b&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",b),b){case"select":return zi(h,O,M);case"option":return jr(h,O,M,Y);case"textarea":return Vs(h,O,M);case"input":return Io(h,O,M);case"menuitem":return Ma(h,O,M);case"title":return La(h,O,M);case"listing":case"pre":return ra(h,O,b,M);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Aa(h,O,b,M);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Fa(h,O,b,M);case"html":return Y.insertionMode===Sr&&h.push(_i),Fa(h,O,b,M);default:return b.indexOf("-")===-1&&typeof O.is!="string"?Fa(h,O,b,M):bi(h,O,b,M)}}var Mo="</",wi=">";function dr(h,b,O){switch(b){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:h.push(Mo,b,wi)}}function Na(h,b){for(var O=b.bootstrapChunks,M=0;M<O.length-1;M++)c(h,O[M]);return M<O.length?d(h,O[M]):!0}var ia='<template id="',as='"></template>';function yn(h,b,O){c(h,ia),c(h,b.placeholderPrefix);var M=O.toString(16);return c(h,M),d(h,as)}var Lo="<!--$-->",xi='<!--$?--><template id="',ss='"></template>',ho="<!--$!-->",er="<!--/$-->",f="<template",m='"',C=' data-dgst="',_=' data-msg="',N=' data-stck="',B="></template>";function H(h,b){return d(h,Lo)}function ue(h,b,O){if(c(h,xi),O===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,O),d(h,ss)}function oe(h,b,O,M,Y){var ie;return ie=d(h,ho),c(h,f),O&&(c(h,C),c(h,mn(O)),c(h,m)),M&&(c(h,_),c(h,mn(M)),c(h,m)),Y&&(c(h,N),c(h,mn(Y)),c(h,m)),ie=d(h,B),ie}function we(h,b){return d(h,er)}function Le(h,b){return d(h,er)}function je(h,b){return d(h,er)}var ke='<div hidden id="',qe='">',ct="</div>",Dt='<svg aria-hidden="true" style="display:none" id="',It='">',Mn="</svg>",dn='<math aria-hidden="true" style="display:none" id="',Br='">',$r="</math>",Wt='<table hidden id="',Vr='">',zt="</table>",on='<table hidden><tbody id="',po='">',go="</tbody></table>",Er='<table hidden><tr id="',k='">',F="</tr></table>",z='<table hidden><colgroup id="',ne='">',Se="</colgroup></table>";function Te(h,b,O,M){switch(O.insertionMode){case Sr:case Ir:return c(h,ke),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,qe);case Qr:return c(h,Dt),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,It);case Ar:return c(h,dn),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Br);case Wn:return c(h,Wt),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Vr);case vn:return c(h,on),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,po);case Mr:return c(h,Er),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,k);case Tr:return c(h,z),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,ne);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Be(h,b){switch(b.insertionMode){case Sr:case Ir:return d(h,ct);case Qr:return d(h,Mn);case Ar:return d(h,$r);case Wn:return d(h,zt);case vn:return d(h,go);case Mr:return d(h,F);case Tr:return d(h,Se);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var nt="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)}",xt='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()}}',Nt='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())}',Ot=nt+';$RS("',Ct='$RS("',Bn='","',Tn='")<\/script>';function Yn(h,b,O){c(h,b.startInlineScript),b.sentCompleteSegmentFunction?c(h,Ct):(b.sentCompleteSegmentFunction=!0,c(h,Ot)),c(h,b.segmentPrefix);var M=O.toString(16);return c(h,M),c(h,Bn),c(h,b.placeholderPrefix),c(h,M),d(h,Tn)}var oa=xt+';$RC("',ls='$RC("',aa='","',ii='")<\/script>';function Hs(h,b,O,M){if(c(h,b.startInlineScript),b.sentCompleteBoundaryFunction?c(h,ls):(b.sentCompleteBoundaryFunction=!0,c(h,oa)),O===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var Y=M.toString(16);return c(h,O),c(h,aa),c(h,b.segmentPrefix),c(h,Y),d(h,ii)}var vo=Nt+';$RX("',us='$RX("',sa='"',Si=")<\/script>",Gi=",";function Us(h,b,O,M,Y,ie){if(c(h,b.startInlineScript),b.sentClientRenderFunction?c(h,us):(b.sentClientRenderFunction=!0,c(h,vo)),O===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,O),c(h,sa),(M||Y||ie)&&(c(h,Gi),c(h,la(M||""))),(Y||ie)&&(c(h,Gi),c(h,la(Y||""))),ie&&(c(h,Gi),c(h,la(ie))),d(h,Si)}var Lu=/[<\u2028\u2029]/g;function la(h){var b=JSON.stringify(h);return b.replace(Lu,function(O){switch(O){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 mo(h,b){var O=Jr(b,void 0);return{bootstrapChunks:O.bootstrapChunks,startInlineScript:O.startInlineScript,placeholderPrefix:O.placeholderPrefix,segmentPrefix:O.segmentPrefix,boundaryPrefix:O.boundaryPrefix,idPrefix:O.idPrefix,nextSuspenseID:O.nextSuspenseID,sentCompleteSegmentFunction:O.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:O.sentCompleteBoundaryFunction,sentClientRenderFunction:O.sentClientRenderFunction,generateStaticMarkup:h}}function hr(){return{insertionMode:Ir,selectedValue:null}}function Ws(h,b,O,M){return O.generateStaticMarkup?(h.push(mn(b)),!1):Ui(h,b,O,M)}function cs(h,b,O,M){if(!b.generateStaticMarkup)return Pn(h,b,O,M)}function fs(h,b){return b.generateStaticMarkup?!0:H(h)}function ee(h,b,O,M,Y){return b.generateStaticMarkup?!0:oe(h,b,O,M,Y)}function ye(h,b){return b.generateStaticMarkup?!0:we(h)}function De(h,b){return b.generateStaticMarkup?!0:je(h)}var _e=Object.assign,Q=Symbol.for("react.element"),pe=Symbol.for("react.portal"),de=Symbol.for("react.fragment"),$e=Symbol.for("react.strict_mode"),We=Symbol.for("react.profiler"),ft=Symbol.for("react.provider"),dt=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),At=Symbol.for("react.suspense"),kt=Symbol.for("react.suspense_list"),Yt=Symbol.for("react.memo"),Ln=Symbol.for("react.lazy"),ar=Symbol.for("react.scope"),Gn=Symbol.for("react.debug_trace_mode"),Hr=Symbol.for("react.legacy_hidden"),qi=Symbol.for("react.default_value"),Mt=Symbol.iterator,Uc="@@iterator";function On(h){if(h===null||typeof h!="object")return null;var b=Mt&&h[Mt]||h[Uc];return typeof b=="function"?b:null}function ua(h,b,O){var M=h.displayName;if(M)return M;var Y=b.displayName||b.name||"";return Y!==""?O+"("+Y+")":O}function Fu(h){return h.displayName||"Context"}function Dn(h){if(h==null)return null;if(typeof h.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case de:return"Fragment";case pe:return"Portal";case We:return"Profiler";case $e:return"StrictMode";case At:return"Suspense";case kt:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case dt:var b=h;return Fu(b)+".Consumer";case ft:var O=h;return Fu(O._context)+".Provider";case ut:return ua(h,h.render,"ForwardRef");case Yt:var M=h.displayName||null;return M!==null?M:Dn(h.type)||"Memo";case Ln:{var Y=h,ie=Y._payload,fe=Y._init;try{return Dn(fe(ie))}catch{return null}}}return null}var ds=0,hs,yo,ps,jl,gs,Nu,ju;function ja(){}ja.__reactDisabledLog=!0;function Bl(){{if(ds===0){hs=console.log,yo=console.info,ps=console.warn,jl=console.error,gs=console.group,Nu=console.groupCollapsed,ju=console.groupEnd;var h={configurable:!0,enumerable:!0,value:ja,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}ds++}}function Fo(){{if(ds--,ds===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_e({},h,{value:hs}),info:_e({},h,{value:yo}),warn:_e({},h,{value:ps}),error:_e({},h,{value:jl}),group:_e({},h,{value:gs}),groupCollapsed:_e({},h,{value:Nu}),groupEnd:_e({},h,{value:ju})})}ds<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xi=n.ReactCurrentDispatcher,No;function zs(h,b,O){{if(No===void 0)try{throw Error()}catch(Y){var M=Y.stack.trim().match(/\n( *(at )?)/);No=M&&M[1]||""}return`
|
|
74
|
+
`+No+h}}var Ys=!1,$l;{var Gs=typeof WeakMap=="function"?WeakMap:Map;$l=new Gs}function vs(h,b){if(!h||Ys)return"";{var O=$l.get(h);if(O!==void 0)return O}var M;Ys=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=Xi.current,Xi.current=null,Bl();try{if(b){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(qn){M=qn}Reflect.construct(h,[],fe)}else{try{fe.call()}catch(qn){M=qn}h.call(fe.prototype)}}else{try{throw Error()}catch(qn){M=qn}h()}}catch(qn){if(qn&&M&&typeof qn.stack=="string"){for(var Ie=qn.stack.split(`
|
|
75
|
+
`),Ze=M.stack.split(`
|
|
76
|
+
`),ht=Ie.length-1,St=Ze.length-1;ht>=1&&St>=0&&Ie[ht]!==Ze[St];)St--;for(;ht>=1&&St>=0;ht--,St--)if(Ie[ht]!==Ze[St]){if(ht!==1||St!==1)do if(ht--,St--,St<0||Ie[ht]!==Ze[St]){var Pt=`
|
|
77
|
+
`+Ie[ht].replace(" at new "," at ");return h.displayName&&Pt.includes("<anonymous>")&&(Pt=Pt.replace("<anonymous>",h.displayName)),typeof h=="function"&&$l.set(h,Pt),Pt}while(ht>=1&&St>=0);break}}}finally{Ys=!1,Xi.current=ie,Fo(),Error.prepareStackTrace=Y}var Cn=h?h.displayName||h.name:"",sr=Cn?zs(Cn):"";return typeof h=="function"&&$l.set(h,sr),sr}function qs(h,b,O){return vs(h,!0)}function Bu(h,b,O){return vs(h,!1)}function $u(h){var b=h.prototype;return!!(b&&b.isReactComponent)}function ms(h,b,O){if(h==null)return"";if(typeof h=="function")return vs(h,$u(h));if(typeof h=="string")return zs(h);switch(h){case At:return zs("Suspense");case kt:return zs("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case ut:return Bu(h.render);case Yt:return ms(h.type,b,O);case Ln:{var M=h,Y=M._payload,ie=M._init;try{return ms(ie(Y),b,O)}catch{}}}return""}var Vu={},Fn=n.ReactDebugCurrentFrame;function Nn(h){if(h){var b=h._owner,O=ms(h.type,h._source,b?b.type:null);Fn.setExtraStackFrame(O)}else Fn.setExtraStackFrame(null)}function Hu(h,b,O,M,Y){{var ie=Function.call.bind(J);for(var fe in h)if(ie(h,fe)){var Ie=void 0;try{if(typeof h[fe]!="function"){var Ze=Error((M||"React class")+": "+O+" type `"+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ze.name="Invariant Violation",Ze}Ie=h[fe](b,fe,M,O,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ht){Ie=ht}Ie&&!(Ie instanceof Error)&&(Nn(Y),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).",M||"React class",O,fe,typeof Ie),Nn(null)),Ie instanceof Error&&!(Ie.message in Vu)&&(Vu[Ie.message]=!0,Nn(Y),i("Failed %s type: %s",O,Ie.message),Nn(null))}}}var Uu;Uu={};var jo={};Object.freeze(jo);function Wc(h,b){{var O=h.contextTypes;if(!O)return jo;var M={};for(var Y in O)M[Y]=b[Y];{var ie=Dn(h)||"Unknown";Hu(O,M,"context",ie)}return M}}function Bo(h,b,O,M){{if(typeof h.getChildContext!="function"){{var Y=Dn(b)||"Unknown";Uu[Y]||(Uu[Y]=!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.",Y,Y))}return O}var ie=h.getChildContext();for(var fe in ie)if(!(fe in M))throw new Error((Dn(b)||"Unknown")+'.getChildContext(): key "'+fe+'" is not defined in childContextTypes.');{var Ie=Dn(b)||"Unknown";Hu(M,ie,"child context",Ie)}return _e({},O,ie)}}var Ki;Ki={};var Xs=null,Ur=null;function ca(h){h.context._currentValue2=h.parentValue}function fa(h){h.context._currentValue2=h.value}function da(h,b){if(h!==b){ca(h);var O=h.parent,M=b.parent;if(O===null){if(M!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(M===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");da(O,M)}fa(b)}}function ha(h){ca(h);var b=h.parent;b!==null&&ha(b)}function Ks(h){var b=h.parent;b!==null&&Ks(b),fa(h)}function zc(h,b){ca(h);var O=h.parent;if(O===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");O.depth===b.depth?da(O,b):zc(O,b)}function Yc(h,b){var O=b.parent;if(O===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");h.depth===O.depth?da(h,O):Yc(h,O),fa(b)}function Vl(h){var b=Ur,O=h;b!==O&&(b===null?Ks(O):O===null?ha(b):b.depth===O.depth?da(b,O):b.depth>O.depth?zc(b,O):Yc(b,O),Ur=O)}function Zs(h,b){var O;O=h._currentValue2,h._currentValue2=b,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Ki&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Ki;var M=Ur,Y={parent:M,depth:M===null?0:M.depth+1,context:h,parentValue:O,value:b};return Ur=Y,Y}function ys(h){var b=Ur;if(b===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");b.context!==h&&i("The parent context is not the expected context. This is probably a bug in React.");{var O=b.parentValue;O===qi?b.context._currentValue2=b.context._defaultValue:b.context._currentValue2=O,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Ki&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Ki}return Ur=b.parent}function Js(){return Ur}function Ba(h){var b=h._currentValue2;return b}function G(h){return h._reactInternals}function pa(h,b){h._reactInternals=b}var $a={},Wr={},qt,Hl,bs,Qs,bo,ws,Ul,Wl,zl;{qt=new Set,Hl=new Set,bs=new Set,Ul=new Set,Qs=new Set,Wl=new Set,zl=new Set;var Gc=new Set;ws=function(h,b){if(!(h===null||typeof h=="function")){var O=b+"_"+h;Gc.has(O)||(Gc.add(O),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,h))}},bo=function(h,b){if(b===void 0){var O=Dn(h)||"Component";Qs.has(O)||(Qs.add(O),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",O))}}}function wo(h,b){{var O=h.constructor,M=O&&Dn(O)||"ReactClass",Y=M+"."+b;if($a[Y])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.
|
|
78
|
+
|
|
79
|
+
Please check the code for the %s component.`,b,b,M),$a[Y]=!0}}var qc={isMounted:function(h){return!1},enqueueSetState:function(h,b,O){var M=G(h);M.queue===null?wo(h,"setState"):(M.queue.push(b),O!=null&&ws(O,"setState"))},enqueueReplaceState:function(h,b,O){var M=G(h);M.replace=!0,M.queue=[b],O!=null&&ws(O,"setState")},enqueueForceUpdate:function(h,b){var O=G(h);O.queue===null?wo(h,"forceUpdate"):b!=null&&ws(b,"setState")}};function $f(h,b,O,M,Y){var ie=O(Y,M);bo(b,ie);var fe=ie==null?M:_e({},M,ie);return fe}function Vf(h,b,O){var M=jo,Y=h.contextType;if("contextType"in h){var ie=Y===null||Y!==void 0&&Y.$$typeof===dt&&Y._context===void 0;if(!ie&&!zl.has(h)){zl.add(h);var fe="";Y===void 0?fe=" 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 Y!="object"?fe=" However, it is set to a "+typeof Y+".":Y.$$typeof===ft?fe=" Did you accidentally pass the Context.Provider instead?":Y._context!==void 0?fe=" Did you accidentally pass the Context.Consumer instead?":fe=" However, it is set to an object with keys {"+Object.keys(Y).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Dn(h)||"Component",fe)}}typeof Y=="object"&&Y!==null?M=Ba(Y):M=O;var Ie=new h(b,M);{if(typeof h.getDerivedStateFromProps=="function"&&(Ie.state===null||Ie.state===void 0)){var Ze=Dn(h)||"Component";qt.has(Ze)||(qt.add(Ze),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.",Ze,Ie.state===null?"null":"undefined",Ze))}if(typeof h.getDerivedStateFromProps=="function"||typeof Ie.getSnapshotBeforeUpdate=="function"){var ht=null,St=null,Pt=null;if(typeof Ie.componentWillMount=="function"&&Ie.componentWillMount.__suppressDeprecationWarning!==!0?ht="componentWillMount":typeof Ie.UNSAFE_componentWillMount=="function"&&(ht="UNSAFE_componentWillMount"),typeof Ie.componentWillReceiveProps=="function"&&Ie.componentWillReceiveProps.__suppressDeprecationWarning!==!0?St="componentWillReceiveProps":typeof Ie.UNSAFE_componentWillReceiveProps=="function"&&(St="UNSAFE_componentWillReceiveProps"),typeof Ie.componentWillUpdate=="function"&&Ie.componentWillUpdate.__suppressDeprecationWarning!==!0?Pt="componentWillUpdate":typeof Ie.UNSAFE_componentWillUpdate=="function"&&(Pt="UNSAFE_componentWillUpdate"),ht!==null||St!==null||Pt!==null){var Cn=Dn(h)||"Component",sr=typeof h.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";bs.has(Cn)||(bs.add(Cn),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
80
|
+
|
|
81
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
82
|
+
|
|
83
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
84
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,Cn,sr,ht!==null?`
|
|
85
|
+
`+ht:"",St!==null?`
|
|
86
|
+
`+St:"",Pt!==null?`
|
|
87
|
+
`+Pt:""))}}}return Ie}function Xc(h,b,O){{var M=Dn(b)||"Component",Y=h.render;Y||(b.prototype&&typeof b.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",M):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",M)),h.getInitialState&&!h.getInitialState.isReactClassApproved&&!h.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?",M),h.getDefaultProps&&!h.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.",M),h.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",M),h.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",M),h.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",M),b.contextType&&b.contextTypes&&!Wl.has(b)&&(Wl.add(b),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",M)),typeof h.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.",M),b.prototype&&b.prototype.isPureReactComponent&&typeof h.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.",Dn(b)||"A pure component"),typeof h.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",M),typeof h.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().",M),typeof h.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",M),typeof h.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",M);var ie=h.props!==O;h.props!==void 0&&ie&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",M,M),h.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.",M,M),typeof h.getSnapshotBeforeUpdate=="function"&&typeof h.componentDidUpdate!="function"&&!Hl.has(b)&&(Hl.add(b),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Dn(b))),typeof h.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof h.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof b.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",M);var fe=h.state;fe&&(typeof fe!="object"||Zr(fe))&&i("%s.state: must be set to an object or null",M),typeof h.getChildContext=="function"&&typeof b.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",M)}}function Hf(h,b){var O=b.state;if(typeof b.componentWillMount=="function"){if(b.componentWillMount.__suppressDeprecationWarning!==!0){var M=Dn(h)||"Unknown";Wr[M]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
88
|
+
|
|
89
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
90
|
+
|
|
91
|
+
Please update the following components: %s`,M),Wr[M]=!0)}b.componentWillMount()}typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),O!==b.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Dn(h)||"Component"),qc.enqueueReplaceState(b,b.state,null))}function $o(h,b,O,M){if(h.queue!==null&&h.queue.length>0){var Y=h.queue,ie=h.replace;if(h.queue=null,h.replace=!1,ie&&Y.length===1)b.state=Y[0];else{for(var fe=ie?Y[0]:b.state,Ie=!0,Ze=ie?1:0;Ze<Y.length;Ze++){var ht=Y[Ze],St=typeof ht=="function"?ht.call(b,fe,O,M):ht;St!=null&&(Ie?(Ie=!1,fe=_e({},fe,St)):_e(fe,St))}b.state=fe}}else h.queue=null}function Yl(h,b,O,M){Xc(h,b,O);var Y=h.state!==void 0?h.state:null;h.updater=qc,h.props=O,h.state=Y;var ie={queue:[],replace:!1};pa(h,ie);var fe=b.contextType;if(typeof fe=="object"&&fe!==null?h.context=Ba(fe):h.context=M,h.state===O){var Ie=Dn(b)||"Component";Ul.has(Ie)||(Ul.add(Ie),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.",Ie))}var Ze=b.getDerivedStateFromProps;typeof Ze=="function"&&(h.state=$f(h,b,Ze,Y,O)),typeof b.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(Hf(b,h),$o(ie,h,O,M))}var Gl={id:1,overflow:""};function Uf(h){var b=h.overflow,O=h.id,M=O&~Va(O);return M.toString(32)+b}function Wu(h,b,O){var M=h.id,Y=h.overflow,ie=ql(M)-1,fe=M&~(1<<ie),Ie=O+1,Ze=ql(b)+ie;if(Ze>30){var ht=ie-ie%5,St=(1<<ht)-1,Pt=(fe&St).toString(32),Cn=fe>>ht,sr=ie-ht,qn=ql(b)+sr,fc=Ie<<sr,dc=fc|Cn,lf=Pt+Y;return{id:1<<qn|dc,overflow:lf}}else{var vl=Ie<<ie,lg=vl|fe,ug=Y;return{id:1<<Ze|lg,overflow:ug}}}function ql(h){return 32-Wf(h)}function Va(h){return 1<<ql(h)-1}var Wf=Math.clz32?Math.clz32:Vo,zf=Math.log,Zi=Math.LN2;function Vo(h){var b=h>>>0;return b===0?32:31-(zf(b)/Zi|0)|0}function zu(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var Xl=typeof Object.is=="function"?Object.is:zu,nn=null,Ha=null,ga=null,ln=null,Oi=!1,Ua=!1,xs=0,$n=null,Di=0,Wa=25,Ji=!1,za;function pr(){if(nn===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:
|
|
92
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
93
|
+
2. You might be breaking the Rules of Hooks
|
|
94
|
+
3. You might have more than one copy of React in the same app
|
|
95
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Ji&&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"),nn}function Yu(h,b){if(b===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.",za),!1;h.length!==b.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
96
|
+
|
|
97
|
+
Previous: %s
|
|
98
|
+
Incoming: %s`,za,"["+h.join(", ")+"]","["+b.join(", ")+"]");for(var O=0;O<b.length&&O<h.length;O++)if(!Xl(h[O],b[O]))return!1;return!0}function va(){if(Di>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function zr(){return ln===null?ga===null?(Oi=!1,ga=ln=va()):(Oi=!0,ln=ga):ln.next===null?(Oi=!1,ln=ln.next=va()):(Oi=!0,ln=ln.next),ln}function Gu(h,b){nn=b,Ha=h,Ji=!1,xs=0}function Kc(h,b,O,M){for(;Ua;)Ua=!1,xs=0,Di+=1,ln=null,O=h(b,M);return Ho(),O}function qu(){var h=xs!==0;return h}function Ho(){Ji=!1,nn=null,Ha=null,Ua=!1,ga=null,Di=0,$n=null,ln=null}function ma(h){return Ji&&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()."),Ba(h)}function Xu(h){return za="useContext",pr(),Ba(h)}function Kl(h,b){return typeof b=="function"?b(h):b}function Zl(h){return za="useState",Zc(Kl,h)}function Zc(h,b,O){if(h!==Kl&&(za="useReducer"),nn=pr(),ln=zr(),Oi){var M=ln.queue,Y=M.dispatch;if($n!==null){var ie=$n.get(M);if(ie!==void 0){$n.delete(M);var fe=ln.memoizedState,Ie=ie;do{var Ze=Ie.action;Ji=!0,fe=h(fe,Ze),Ji=!1,Ie=Ie.next}while(Ie!==null);return ln.memoizedState=fe,[fe,Y]}}return[ln.memoizedState,Y]}else{Ji=!0;var ht;h===Kl?ht=typeof b=="function"?b():b:ht=O!==void 0?O(b):b,Ji=!1,ln.memoizedState=ht;var St=ln.queue={last:null,dispatch:null},Pt=St.dispatch=Jc.bind(null,nn,St);return[ln.memoizedState,Pt]}}function Ku(h,b){nn=pr(),ln=zr();var O=b===void 0?null:b;if(ln!==null){var M=ln.memoizedState;if(M!==null&&O!==null){var Y=M[1];if(Yu(O,Y))return M[0]}}Ji=!0;var ie=h();return Ji=!1,ln.memoizedState=[ie,O],ie}function gr(h){nn=pr(),ln=zr();var b=ln.memoizedState;if(b===null){var O={current:h};return Object.seal(O),ln.memoizedState=O,O}else return b}function Zu(h,b){za="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Jc(h,b,O){if(Di>=Wa)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h===nn){Ua=!0;var M={action:O,next:null};$n===null&&($n=new Map);var Y=$n.get(b);if(Y===void 0)$n.set(b,M);else{for(var ie=Y;ie.next!==null;)ie=ie.next;ie.next=M}}}function xo(h,b){return Ku(function(){return h},b)}function Ju(h,b,O){return pr(),b(h._source)}function Jl(h,b,O){if(O===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return O()}function Ya(h){return pr(),h}function el(){throw new Error("startTransition cannot be called during server rendering.")}function kr(){return pr(),[!1,el]}function tl(){var h=Ha,b=Uf(h.treeContext),O=rl;if(O===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var M=xs++;return Jn(O,b,M)}function nl(){}var Qc={readContext:ma,useContext:Xu,useMemo:Ku,useReducer:Zc,useRef:gr,useState:Zl,useInsertionEffect:nl,useLayoutEffect:Zu,useCallback:xo,useImperativeHandle:nl,useEffect:nl,useDebugValue:nl,useDeferredValue:Ya,useTransition:kr,useId:tl,useMutableSource:Ju,useSyncExternalStore:Jl},rl=null;function Ss(h){rl=h}function Qu(h){try{var b="",O=h;do{switch(O.tag){case 0:b+=zs(O.type,null,null);break;case 1:b+=Bu(O.type,null,null);break;case 2:b+=qs(O.type,null,null);break}O=O.parent}while(O);return b}catch(M){return`
|
|
99
|
+
Error generating stack: `+M.message+`
|
|
100
|
+
`+M.stack}}var Pi=n.ReactCurrentDispatcher,il=n.ReactDebugCurrentFrame,Ql=0,Ga=1,Ts=2,ec=3,qa=4,tc=0,nc=1,So=2,Yf=12800;function Gf(h){return console.error(h),null}function Cs(){}function ol(h,b,O,M,Y,ie,fe,Ie,Ze){var ht=[],St=new Set,Pt={destination:null,responseState:b,progressiveChunkSize:M===void 0?Yf:M,status:tc,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:ht,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Y===void 0?Gf:Y,onAllReady:ie===void 0?Cs:ie,onShellReady:fe===void 0?Cs:fe,onShellError:Ie===void 0?Cs:Ie,onFatalError:Ze===void 0?Cs:Ze},Cn=Uo(Pt,0,null,O,!1,!1);Cn.parentFlushed=!0;var sr=Es(Pt,h,null,Cn,St,jo,Xs,Gl);return ht.push(sr),Pt}function eu(h,b){var O=h.pingedTasks;O.push(b),O.length===1&&s(function(){return cc(h)})}function Qi(h,b){return{id:Lr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function Es(h,b,O,M,Y,ie,fe,Ie){h.allPendingTasks++,O===null?h.pendingRootTasks++:O.pendingTasks++;var Ze={node:b,ping:function(){return eu(h,Ze)},blockedBoundary:O,blockedSegment:M,abortSet:Y,legacyContext:ie,context:fe,treeContext:Ie};return Ze.componentStack=null,Y.add(Ze),Ze}function Uo(h,b,O,M,Y,ie){return{status:Ql,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:M,boundary:O,lastPushedText:Y,textEmbedded:ie}}var eo=null;function ks(){return eo===null||eo.componentStack===null?"":Qu(eo.componentStack)}function Ri(h,b){h.componentStack={tag:0,parent:h.componentStack,type:b}}function Xa(h,b){h.componentStack={tag:1,parent:h.componentStack,type:b}}function tu(h,b){h.componentStack={tag:2,parent:h.componentStack,type:b}}function Ii(h){h.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):h.componentStack=h.componentStack.parent}var Wo=null;function rc(h,b){{var O;typeof b=="string"?O=b:b&&typeof b.message=="string"?O=b.message:O=String(b);var M=Wo||ks();Wo=null,h.errorMessage=O,h.errorComponentStack=M}}function Ka(h,b){var O=h.onError(b);if(O!=null&&typeof O!="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 O+'" instead');return O}function al(h,b){var O=h.onShellError;O(b);var M=h.onFatalError;M(b),h.destination!==null?(h.status=So,P(h.destination,b)):(h.status=nc,h.fatalError=b)}function nu(h,b,O){Ri(b,"Suspense");var M=b.blockedBoundary,Y=b.blockedSegment,ie=O.fallback,fe=O.children,Ie=new Set,Ze=Qi(h,Ie),ht=Y.chunks.length,St=Uo(h,ht,Ze,Y.formatContext,!1,!1);Y.children.push(St),Y.lastPushedText=!1;var Pt=Uo(h,0,null,Y.formatContext,!1,!1);Pt.parentFlushed=!0,b.blockedBoundary=Ze,b.blockedSegment=Pt;try{if(to(h,b,fe),cs(Pt.chunks,h.responseState,Pt.lastPushedText,Pt.textEmbedded),Pt.status=Ga,hl(Ze,Pt),Ze.pendingTasks===0){Ii(b);return}}catch(sr){Pt.status=qa,Ze.forceClientRender=!0,Ze.errorDigest=Ka(h,sr),rc(Ze,sr)}finally{b.blockedBoundary=M,b.blockedSegment=Y}var Cn=Es(h,ie,M,St,Ie,b.legacyContext,b.context,b.treeContext);Cn.componentStack=b.componentStack,h.pingedTasks.push(Cn),Ii(b)}function ef(h,b,O,M){Ri(b,O);var Y=b.blockedSegment,ie=ri(Y.chunks,O,M,h.responseState,Y.formatContext);Y.lastPushedText=!1;var fe=Y.formatContext;Y.formatContext=mi(fe,O,M),to(h,b,ie),Y.formatContext=fe,dr(Y.chunks,O),Y.lastPushedText=!1,Ii(b)}function ic(h){return h.prototype&&h.prototype.isReactComponent}function Gt(h,b,O,M,Y){var ie={};Gu(b,ie);var fe=O(M,Y);return Kc(O,M,fe,Y)}function sl(h,b,O,M,Y){var ie=O.render();O.props!==Y&&(oi||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Dn(M)||"a component"),oi=!0);{var fe=M.childContextTypes;if(fe!=null){var Ie=b.legacyContext,Ze=Bo(O,M,Ie,fe);b.legacyContext=Ze,Yr(h,b,ie),b.legacyContext=Ie;return}}Yr(h,b,ie)}function tf(h,b,O,M){tu(b,O);var Y=Wc(O,b.legacyContext),ie=Vf(O,M,Y);Yl(ie,O,M,Y),sl(h,b,ie,O,M),Ii(b)}var Za={},_s={},oc={},ac={},oi=!1,nf=!1,ll=!1,ul=!1;function rf(h,b,O,M){var Y;if(Y=Wc(O,b.legacyContext),Xa(b,O),O.prototype&&typeof O.prototype.render=="function"){var ie=Dn(O)||"Unknown";Za[ie]||(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.",ie,ie),Za[ie]=!0)}var fe=Gt(h,b,O,M,Y),Ie=qu();if(typeof fe=="object"&&fe!==null&&typeof fe.render=="function"&&fe.$$typeof===void 0){var Ze=Dn(O)||"Unknown";_s[Ze]||(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.",Ze,Ze,Ze),_s[Ze]=!0)}if(typeof fe=="object"&&fe!==null&&typeof fe.render=="function"&&fe.$$typeof===void 0){{var ht=Dn(O)||"Unknown";_s[ht]||(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.",ht,ht,ht),_s[ht]=!0)}Yl(fe,O,M,Y),sl(h,b,fe,O,M)}else if(of(O),Ie){var St=b.treeContext,Pt=1,Cn=0;b.treeContext=Wu(St,Pt,Cn);try{Yr(h,b,fe)}finally{b.treeContext=St}}else Yr(h,b,fe);Ii(b)}function of(h){{if(h&&h.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",h.displayName||h.name||"Component"),typeof h.getDerivedStateFromProps=="function"){var b=Dn(h)||"Unknown";ac[b]||(i("%s: Function components do not support getDerivedStateFromProps.",b),ac[b]=!0)}if(typeof h.contextType=="object"&&h.contextType!==null){var O=Dn(h)||"Unknown";oc[O]||(i("%s: Function components do not support contextType.",O),oc[O]=!0)}}}function ai(h,b){if(h&&h.defaultProps){var O=_e({},b),M=h.defaultProps;for(var Y in M)O[Y]===void 0&&(O[Y]=M[Y]);return O}return b}function ya(h,b,O,M,Y){Xa(b,O.render);var ie=Gt(h,b,O.render,M,Y),fe=qu();if(fe){var Ie=b.treeContext,Ze=1,ht=0;b.treeContext=Wu(Ie,Ze,ht);try{Yr(h,b,ie)}finally{b.treeContext=Ie}}else Yr(h,b,ie);Ii(b)}function sc(h,b,O,M,Y){var ie=O.type,fe=ai(ie,M);cl(h,b,ie,fe,Y)}function ru(h,b,O,M){O._context===void 0?O!==O.Consumer&&(ul||(ul=!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?"))):O=O._context;var Y=M.children;typeof Y!="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 ie=Ba(O),fe=Y(ie);Yr(h,b,fe)}function iu(h,b,O,M){var Y=O._context,ie=M.value,fe=M.children,Ie;Ie=b.context,b.context=Zs(Y,ie),Yr(h,b,fe),b.context=ys(Y),Ie!==b.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function si(h,b,O,M,Y){Ri(b,"Lazy");var ie=O._payload,fe=O._init,Ie=fe(ie),Ze=ai(Ie,M);cl(h,b,Ie,Ze,Y),Ii(b)}function cl(h,b,O,M,Y){if(typeof O=="function")if(ic(O)){tf(h,b,O,M);return}else{rf(h,b,O,M);return}if(typeof O=="string"){ef(h,b,O,M);return}switch(O){case Hr:case Gn:case $e:case We:case de:{Yr(h,b,M.children);return}case kt:{Ri(b,"SuspenseList"),Yr(h,b,M.children),Ii(b);return}case ar:throw new Error("ReactDOMServer does not yet support scope components.");case At:{nu(h,b,M);return}}if(typeof O=="object"&&O!==null)switch(O.$$typeof){case ut:{ya(h,b,O,M,Y);return}case Yt:{sc(h,b,O,M,Y);return}case ft:{iu(h,b,O,M);return}case dt:{ru(h,b,O,M);return}case Ln:{si(h,b,O,M);return}}var ie="";throw(O===void 0||typeof O=="object"&&O!==null&&Object.keys(O).length===0)&&(ie+=" 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: "+(O==null?O:typeof O)+"."+ie))}function lc(h,b){typeof Symbol=="function"&&h[Symbol.toStringTag]==="Generator"&&(nf||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."),nf=!0),h.entries===b&&(ll||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ll=!0)}function Yr(h,b,O){try{return fl(h,b,O)}catch(M){throw typeof M=="object"&&M!==null&&typeof M.then=="function"||(Wo=Wo!==null?Wo:ks()),M}}function fl(h,b,O){if(b.node=O,typeof O=="object"&&O!==null){switch(O.$$typeof){case Q:{var M=O,Y=M.type,ie=M.props,fe=M.ref;cl(h,b,Y,ie,fe);return}case pe: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 Ln:{var Ie=O,Ze=Ie._payload,ht=Ie._init,St;try{St=ht(Ze)}catch(vl){throw typeof vl=="object"&&vl!==null&&typeof vl.then=="function"&&Ri(b,"Lazy"),vl}Yr(h,b,St);return}}if(Zr(O)){zo(h,b,O);return}var Pt=On(O);if(Pt){lc(O,Pt);var Cn=Pt.call(O);if(Cn){var sr=Cn.next();if(!sr.done){var qn=[];do qn.push(sr.value),sr=Cn.next();while(!sr.done);zo(h,b,qn);return}return}}var fc=Object.prototype.toString.call(O);throw new Error("Objects are not valid as a React child (found: "+(fc==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":fc)+"). If you meant to render a collection of children, use an array instead.")}if(typeof O=="string"){var dc=b.blockedSegment;dc.lastPushedText=Ws(b.blockedSegment.chunks,O,h.responseState,dc.lastPushedText);return}if(typeof O=="number"){var lf=b.blockedSegment;lf.lastPushedText=Ws(b.blockedSegment.chunks,""+O,h.responseState,lf.lastPushedText);return}typeof O=="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 zo(h,b,O){for(var M=O.length,Y=0;Y<M;Y++){var ie=b.treeContext;b.treeContext=Wu(ie,M,Y);try{to(h,b,O[Y])}finally{b.treeContext=ie}}}function qf(h,b,O){var M=b.blockedSegment,Y=M.chunks.length,ie=Uo(h,Y,null,M.formatContext,M.lastPushedText,!0);M.children.push(ie),M.lastPushedText=!1;var fe=Es(h,b.node,b.blockedBoundary,ie,b.abortSet,b.legacyContext,b.context,b.treeContext);b.componentStack!==null&&(fe.componentStack=b.componentStack.parent);var Ie=fe.ping;O.then(Ie,Ie)}function to(h,b,O){var M=b.blockedSegment.formatContext,Y=b.legacyContext,ie=b.context,fe=null;fe=b.componentStack;try{return Yr(h,b,O)}catch(Ie){if(Ho(),typeof Ie=="object"&&Ie!==null&&typeof Ie.then=="function"){qf(h,b,Ie),b.blockedSegment.formatContext=M,b.legacyContext=Y,b.context=ie,Vl(ie),b.componentStack=fe;return}else throw b.blockedSegment.formatContext=M,b.legacyContext=Y,b.context=ie,Vl(ie),b.componentStack=fe,Ie}}function dl(h,b,O,M){var Y=Ka(h,M);if(b===null?al(h,M):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=Y,rc(b,M),b.parentFlushed&&h.clientRenderedBoundaries.push(b))),h.allPendingTasks--,h.allPendingTasks===0){var ie=h.onAllReady;ie()}}function uc(h){var b=this,O=h.blockedBoundary,M=h.blockedSegment;M.status=ec,pl(b,O,M)}function ou(h,b,O){var M=h.blockedBoundary,Y=h.blockedSegment;if(Y.status=ec,M===null)b.allPendingTasks--,b.status!==So&&(b.status=So,b.destination!==null&&p(b.destination));else{if(M.pendingTasks--,!M.forceClientRender){M.forceClientRender=!0;var ie=O===void 0?new Error("The render was aborted by the server without a reason."):O;M.errorDigest=b.onError(ie);{var fe="The server did not finish this Suspense boundary: ";ie&&typeof ie.message=="string"?ie=fe+ie.message:ie=fe+String(ie);var Ie=eo;eo=h;try{rc(M,ie)}finally{eo=Ie}}M.parentFlushed&&b.clientRenderedBoundaries.push(M)}if(M.fallbackAbortableTasks.forEach(function(ht){return ou(ht,b,O)}),M.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var Ze=b.onAllReady;Ze()}}}function hl(h,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null){var O=b.children[0];O.id=b.id,O.parentFlushed=!0,O.status===Ga&&hl(h,O)}else{var M=h.completedSegments;M.push(b)}}function pl(h,b,O){if(b===null){if(O.parentFlushed){if(h.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");h.completedRootSegment=O}if(h.pendingRootTasks--,h.pendingRootTasks===0){h.onShellError=Cs;var M=h.onShellReady;M()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)O.parentFlushed&&O.status===Ga&&hl(b,O),b.parentFlushed&&h.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(uc,h),b.fallbackAbortableTasks.clear();else if(O.parentFlushed&&O.status===Ga){hl(b,O);var Y=b.completedSegments;Y.length===1&&b.parentFlushed&&h.partialBoundaries.push(b)}}if(h.allPendingTasks--,h.allPendingTasks===0){var ie=h.onAllReady;ie()}}function au(h,b){var O=b.blockedSegment;if(O.status===Ql){Vl(b.context);var M=null;M=eo,eo=b;try{Yr(h,b,b.node),cs(O.chunks,h.responseState,O.lastPushedText,O.textEmbedded),b.abortSet.delete(b),O.status=Ga,pl(h,b.blockedBoundary,O)}catch(ie){if(Ho(),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"){var Y=b.ping;ie.then(Y,Y)}else b.abortSet.delete(b),O.status=qa,dl(h,b.blockedBoundary,O,ie)}finally{eo=M}}}function cc(h){if(h.status!==So){var b=Js(),O=Pi.current;Pi.current=Qc;var M;M=il.getCurrentStack,il.getCurrentStack=ks;var Y=rl;Ss(h.responseState);try{var ie=h.pingedTasks,fe;for(fe=0;fe<ie.length;fe++){var Ie=ie[fe];au(h,Ie)}ie.splice(0,fe),h.destination!==null&&lu(h,h.destination)}catch(Ze){Ka(h,Ze),al(h,Ze)}finally{Ss(Y),Pi.current=O,il.getCurrentStack=M,O===Qc&&Vl(b)}}}function Os(h,b,O){switch(O.parentFlushed=!0,O.status){case Ql:{var M=O.id=h.nextSegmentId++;return O.lastPushedText=!1,O.textEmbedded=!1,yn(b,h.responseState,M)}case Ga:{O.status=Ts;for(var Y=!0,ie=O.chunks,fe=0,Ie=O.children,Ze=0;Ze<Ie.length;Ze++){for(var ht=Ie[Ze];fe<ht.index;fe++)c(b,ie[fe]);Y=gl(h,b,ht)}for(;fe<ie.length-1;fe++)c(b,ie[fe]);return fe<ie.length&&(Y=d(b,ie[fe])),Y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function gl(h,b,O){var M=O.boundary;if(M===null)return Os(h,b,O);if(M.parentFlushed=!0,M.forceClientRender)return ee(b,h.responseState,M.errorDigest,M.errorMessage,M.errorComponentStack),Os(h,b,O),De(b,h.responseState);if(M.pendingTasks>0){M.rootSegmentID=h.nextSegmentId++,M.completedSegments.length>0&&h.partialBoundaries.push(M);var Y=M.id=ei(h.responseState);return ue(b,h.responseState,Y),Os(h,b,O),Le(b,h.responseState)}else{if(M.byteSize>h.progressiveChunkSize)return M.rootSegmentID=h.nextSegmentId++,h.completedBoundaries.push(M),ue(b,h.responseState,M.id),Os(h,b,O),Le(b,h.responseState);fs(b,h.responseState);var ie=M.completedSegments;if(ie.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var fe=ie[0];return gl(h,b,fe),ye(b,h.responseState)}}function af(h,b,O){return Us(b,h.responseState,O.id,O.errorDigest,O.errorMessage,O.errorComponentStack)}function su(h,b,O){return Te(b,h.responseState,O.formatContext,O.id),gl(h,b,O),Be(b,O.formatContext)}function vr(h,b,O){for(var M=O.completedSegments,Y=0;Y<M.length;Y++){var ie=M[Y];sf(h,b,O,ie)}return M.length=0,Hs(b,h.responseState,O.id,O.rootSegmentID)}function To(h,b,O){for(var M=O.completedSegments,Y=0;Y<M.length;Y++){var ie=M[Y];if(!sf(h,b,O,ie))return Y++,M.splice(0,Y),!1}return M.splice(0,Y),!0}function sf(h,b,O,M){if(M.status===Ts)return!0;var Y=M.id;if(Y===-1){var ie=M.id=O.rootSegmentID;if(ie===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return su(h,b,M)}else return su(h,b,M),Yn(b,h.responseState,Y)}function lu(h,b){try{var O=h.completedRootSegment;O!==null&&h.pendingRootTasks===0&&(gl(h,b,O),h.completedRootSegment=null,Na(b,h.responseState));var M=h.clientRenderedBoundaries,Y;for(Y=0;Y<M.length;Y++){var ie=M[Y];if(!af(h,b,ie)){h.destination=null,Y++,M.splice(0,Y);return}}M.splice(0,Y);var fe=h.completedBoundaries;for(Y=0;Y<fe.length;Y++){var Ie=fe[Y];if(!vr(h,b,Ie)){h.destination=null,Y++,fe.splice(0,Y);return}}fe.splice(0,Y);var Ze=h.partialBoundaries;for(Y=0;Y<Ze.length;Y++){var ht=Ze[Y];if(!To(h,b,ht)){h.destination=null,Y++,Ze.splice(0,Y);return}}Ze.splice(0,Y);var St=h.completedBoundaries;for(Y=0;Y<St.length;Y++){var Pt=St[Y];if(!vr(h,b,Pt)){h.destination=null,Y++,St.splice(0,Y);return}}St.splice(0,Y)}finally{h.allPendingTasks===0&&h.pingedTasks.length===0&&h.clientRenderedBoundaries.length===0&&h.completedBoundaries.length===0&&(h.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),p(b))}}function uu(h){s(function(){return cc(h)})}function g(h,b){if(h.status===nc){h.status=So,P(b,h.fatalError);return}if(h.status!==So&&h.destination===null){h.destination=b;try{lu(h,b)}catch(O){Ka(h,O),al(h,O)}}}function w(h,b){try{var O=h.abortableTasks;O.forEach(function(M){return ou(M,h,b)}),O.clear(),h.destination!==null&&lu(h,h.destination)}catch(M){Ka(h,M),al(h,M)}}function A(){}function $(h,b,O,M){var Y=!1,ie=null,fe="",Ie={push:function(Pt){return Pt!==null&&(fe+=Pt),!0},destroy:function(Pt){Y=!0,ie=Pt}},Ze=!1;function ht(){Ze=!0}var St=ol(h,mo(O,b?b.identifierPrefix:void 0),hr(),1/0,A,void 0,ht,void 0,void 0);if(uu(St),w(St,M),g(St,Ie),Y)throw ie;if(!Ze)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 fe}function Z(h,b){return $(h,b,!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 se(h,b){return $(h,b,!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 ve(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function Ae(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}xc.renderToNodeStream=ve,xc.renderToStaticMarkup=se,xc.renderToStaticNodeStream=Ae,xc.renderToString=Z,xc.version=t}()),xc}var Vh={};/**
|
|
101
|
+
* @license React
|
|
102
|
+
* react-dom-server.browser.development.js
|
|
103
|
+
*
|
|
104
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the MIT license found in the
|
|
107
|
+
* LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/var l1;function Y5(){return l1||(l1=1,process.env.NODE_ENV!=="production"&&function(){var e=X,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("warn",g,A)}}function i(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("error",g,A)}}function o(g,w,A){{var $=n.ReactDebugCurrentFrame,Z=$.getStackAddendum();Z!==""&&(w+="%s",A=A.concat([Z]));var se=A.map(function(ve){return String(ve)});se.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,se)}}function s(g){g()}var l=512,c=null,d=0;function v(g){c=new Uint8Array(l),d=0}function p(g,w){if(w.length!==0){if(w.length>l){d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=new Uint8Array(l),d=0),g.enqueue(w);return}var A=w,$=c.length-d;$<A.length&&($===0?g.enqueue(c):(c.set(A.subarray(0,$),d),g.enqueue(c),A=A.subarray($)),c=new Uint8Array(l),d=0),c.set(A,d),d+=A.length}}function x(g,w){return p(g,w),!0}function T(g){c&&d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=null,d=0)}function P(g){g.close()}var R=new TextEncoder;function L(g){return R.encode(g)}function I(g){return R.encode(g)}function U(g,w){typeof g.error=="function"?g.error(w):g.close()}function W(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,A=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function te(g){try{return J(g),!1}catch{return!0}}function J(g){return""+g}function ge(g,w){if(te(g))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",w,W(g)),J(g)}function S(g,w){if(te(g))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.",w,W(g)),J(g)}function ce(g){if(te(g))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.",W(g)),J(g)}var ae=Object.prototype.hasOwnProperty,Ne=0,Je=1,Ye=2,Qe=3,tt=4,he=5,Ce=6,He=":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",et=He+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",at=new RegExp("^["+He+"]["+et+"]*$"),Ee={},Pe={};function Ve(g){return ae.call(Pe,g)?!0:ae.call(Ee,g)?!1:at.test(g)?(Pe[g]=!0,!0):(Ee[g]=!0,i("Invalid attribute name: `%s`",g),!1)}function Ue(g,w,A,$){if(A!==null&&A.type===Ne)return!1;switch(typeof w){case"function":case"symbol":return!0;case"boolean":{if($)return!1;if(A!==null)return!A.acceptsBooleans;var Z=g.toLowerCase().slice(0,5);return Z!=="data-"&&Z!=="aria-"}default:return!1}}function Re(g){return Ge.hasOwnProperty(g)?Ge[g]:null}function Fe(g,w,A,$,Z,se,ve){this.acceptsBooleans=w===Ye||w===Qe||w===tt,this.attributeName=$,this.attributeNamespace=Z,this.mustUseProperty=A,this.propertyName=g,this.type=w,this.sanitizeURL=se,this.removeEmptyString=ve}var Ge={},lt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];lt.forEach(function(g){Ge[g]=new Fe(g,Ne,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var w=g[0],A=g[1];Ge[w]=new Fe(w,Je,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){Ge[g]=new Fe(g,Ye,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){Ge[g]=new Fe(g,Ye,!1,g,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(g){Ge[g]=new Fe(g,Qe,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){Ge[g]=new Fe(g,Qe,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){Ge[g]=new Fe(g,tt,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){Ge[g]=new Fe(g,Ce,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){Ge[g]=new Fe(g,he,!1,g.toLowerCase(),null,!1,!1)});var mt=/[\-\:]([a-z])/g,wt=function(g){return g[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(g){var w=g.replace(mt,wt);Ge[w]=new Fe(w,Je,!1,g,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(g){var w=g.replace(mt,wt);Ge[w]=new Fe(w,Je,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var w=g.replace(mt,wt);Ge[w]=new Fe(w,Je,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){Ge[g]=new Fe(g,Je,!1,g.toLowerCase(),null,!1,!1)});var vt="xlinkHref";Ge[vt]=new Fe("xlinkHref",Je,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){Ge[g]=new Fe(g,Je,!1,g.toLowerCase(),null,!0,!0)});var Et={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 ot(g,w){return g+w.charAt(0).toUpperCase()+w.substring(1)}var $t=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(g){$t.forEach(function(w){Et[ot(w,g)]=Et[g]})});var Ht={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Xn(g,w){Ht[w.type]||w.onChange||w.onInput||w.readOnly||w.disabled||w.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`."),w.onChange||w.readOnly||w.disabled||w.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 br(g,w){if(g.indexOf("-")===-1)return typeof w.is=="string";switch(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!1;default:return!0}}var Kn={"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},kn={},ji=new RegExp("^(aria)-["+et+"]*$"),Dr=new RegExp("^(aria)[A-Z]["+et+"]*$");function rr(g,w){{if(ae.call(kn,w)&&kn[w])return!0;if(Dr.test(w)){var A="aria-"+w.slice(4).toLowerCase(),$=Kn.hasOwnProperty(A)?A:null;if($==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",w),kn[w]=!0,!0;if(w!==$)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",w,$),kn[w]=!0,!0}if(ji.test(w)){var Z=w.toLowerCase(),se=Kn.hasOwnProperty(Z)?Z:null;if(se==null)return kn[w]=!0,!1;if(w!==se)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",w,se),kn[w]=!0,!0}}return!0}function cn(g,w){{var A=[];for(var $ in w){var Z=rr(g,$);Z||A.push($)}var se=A.map(function(ve){return"`"+ve+"`"}).join(", ");A.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",se,g):A.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",se,g)}}function hn(g,w){br(g,w)||cn(g,w)}var pn=!1;function gt(g,w){{if(g!=="input"&&g!=="textarea"&&g!=="select")return;w!=null&&w.value===null&&!pn&&(pn=!0,g==="select"&&w.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.",g):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",g))}}var Rn={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"},fi=function(){};{var un={},Bi=/^on./,$i=/^on[^A-Z]/,Vi=new RegExp("^(aria)-["+et+"]*$"),Pr=new RegExp("^(aria)[A-Z]["+et+"]*$");fi=function(g,w,A,$){if(ae.call(un,w)&&un[w])return!0;var Z=w.toLowerCase();if(Z==="onfocusin"||Z==="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."),un[w]=!0,!0;if($!=null){var se=$.registrationNameDependencies,ve=$.possibleRegistrationNames;if(se.hasOwnProperty(w))return!0;var Ae=ve.hasOwnProperty(Z)?ve[Z]:null;if(Ae!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",w,Ae),un[w]=!0,!0;if(Bi.test(w))return i("Unknown event handler property `%s`. It will be ignored.",w),un[w]=!0,!0}else if(Bi.test(w))return $i.test(w)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",w),un[w]=!0,!0;if(Vi.test(w)||Pr.test(w))return!0;if(Z==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),un[w]=!0,!0;if(Z==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),un[w]=!0,!0;if(Z==="is"&&A!==null&&A!==void 0&&typeof A!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof A),un[w]=!0,!0;if(typeof A=="number"&&isNaN(A))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",w),un[w]=!0,!0;var h=Re(w),b=h!==null&&h.type===Ne;if(Rn.hasOwnProperty(Z)){var O=Rn[Z];if(O!==w)return i("Invalid DOM property `%s`. Did you mean `%s`?",w,O),un[w]=!0,!0}else if(!b&&w!==Z)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.",w,Z),un[w]=!0,!0;return typeof A=="boolean"&&Ue(w,A,h,!1)?(A?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()}.',A,w,w,A,w):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.',A,w,w,A,w,w,w),un[w]=!0,!0):b?!0:Ue(w,A,h,!1)?(un[w]=!0,!1):((A==="false"||A==="true")&&h!==null&&h.type===Qe&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",A,w,A==="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".',w,A),un[w]=!0),!0)}}var Un=function(g,w,A){{var $=[];for(var Z in w){var se=fi(g,Z,w[Z],A);se||$.push(Z)}var ve=$.map(function(Ae){return"`"+Ae+"`"}).join(", ");$.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 ",ve,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 ",ve,g)}};function Rr(g,w,A){br(g,w)||Un(g,w,A)}var wr=function(){};{var qr=/^(?:webkit|moz|o)[A-Z]/,Xr=/^-ms-/,Do=/-(.)/g,Zn=/;\s*$/,Kr={},ir={},Zt=!1,di=!1,Hi=function(g){return g.replace(Do,function(w,A){return A.toUpperCase()})},In=function(g){Kr.hasOwnProperty(g)&&Kr[g]||(Kr[g]=!0,i("Unsupported style property %s. Did you mean %s?",g,Hi(g.replace(Xr,"ms-"))))},gn=function(g){Kr.hasOwnProperty(g)&&Kr[g]||(Kr[g]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",g,g.charAt(0).toUpperCase()+g.slice(1)))},hi=function(g,w){ir.hasOwnProperty(w)&&ir[w]||(ir[w]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,g,w.replace(Zn,"")))},pi=function(g,w){Zt||(Zt=!0,i("`NaN` is an invalid value for the `%s` css style property.",g))},mn=function(g,w){di||(di=!0,i("`Infinity` is an invalid value for the `%s` css style property.",g))};wr=function(g,w){g.indexOf("-")>-1?In(g):qr.test(g)?gn(g):Zn.test(w)&&hi(g,w),typeof w=="number"&&(isNaN(w)?pi(g,w):isFinite(w)||mn(g,w))}}var lo=wr,xr=/["'&<>]/;function gi(g){ce(g);var w=""+g,A=xr.exec(w);if(!A)return w;var $,Z="",se,ve=0;for(se=A.index;se<w.length;se++){switch(w.charCodeAt(se)){case 34:$=""";break;case 38:$="&";break;case 39:$="'";break;case 60:$="<";break;case 62:$=">";break;default:continue}ve!==se&&(Z+=w.substring(ve,se)),ve=se+1,Z+=$}return ve!==se?Z+w.substring(ve,se):Z}function fn(g){return typeof g=="boolean"||typeof g=="number"?""+g:gi(g)}var Ti=/([A-Z])/g,Ra=/^ms-/;function Ia(g){return g.replace(Ti,"-$1").toLowerCase().replace(Ra,"-ms-")}var Zr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,uo=!1;function co(g){!uo&&Zr.test(g)&&(uo=!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(g)))}var Po=Array.isArray;function Ci(g){return Po(g)}var vi=I("<script>"),Ei=I("<\/script>"),fo=I('<script src="'),ki=I('<script type="module" src="'),Jr=I('" async=""><\/script>');function Sr(g){return ce(g),(""+g).replace(Ir,Qr)}var Ir=/(<\/|<)(s)(cript)/gi,Qr=function(g,w,A,$){return""+w+(A==="s"?"\\u0073":"\\u0053")+$};function Ar(g,w,A,$,Z){var se=g===void 0?"":g,ve=w===void 0?vi:I('<script nonce="'+fn(w)+'">'),Ae=[];if(A!==void 0&&Ae.push(ve,L(Sr(A)),Ei),$!==void 0)for(var h=0;h<$.length;h++)Ae.push(fo,L(fn($[h])),Jr);if(Z!==void 0)for(var b=0;b<Z.length;b++)Ae.push(ki,L(fn(Z[b])),Jr);return{bootstrapChunks:Ae,startInlineScript:ve,placeholderPrefix:I(se+"P:"),segmentPrefix:I(se+"S:"),boundaryPrefix:se+"B:",idPrefix:se,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Wn=0,vn=1,Mr=2,Tr=3,An=4,mi=5,Lr=6,ei=7;function Jn(g,w){return{insertionMode:g,selectedValue:w}}function ti(g){var w=g==="http://www.w3.org/2000/svg"?Mr:g==="http://www.w3.org/1998/Math/MathML"?Tr:Wn;return Jn(w,null)}function ni(g,w,A){switch(w){case"select":return Jn(vn,A.value!=null?A.value:A.defaultValue);case"svg":return Jn(Mr,null);case"math":return Jn(Tr,null);case"foreignObject":return Jn(vn,null);case"table":return Jn(An,null);case"thead":case"tbody":case"tfoot":return Jn(mi,null);case"colgroup":return Jn(ei,null);case"tr":return Jn(Lr,null)}return g.insertionMode>=An||g.insertionMode===Wn?Jn(vn,null):g}var Ui=null;function Pn(g){var w=g.nextSuspenseID++;return I(g.boundaryPrefix+w.toString(16))}function Cr(g,w,A){var $=g.idPrefix,Z=":"+$+"R"+w;return A>0&&(Z+="H"+A.toString(32)),Z+":"}function fr(g){return fn(g)}var Ro=I("<!-- -->");function Wi(g,w,A,$){return w===""?$:($&&g.push(Ro),g.push(L(fr(w))),!0)}function Fr(g,w,A,$){A&&$&&g.push(Ro)}var E=new Map;function j(g){var w=E.get(g);if(w!==void 0)return w;var A=I(fn(Ia(g)));return E.set(g,A),A}var q=I(' style="'),re=I(":"),Oe=I(";");function be(g,w,A){if(typeof A!="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 $=!0;for(var Z in A)if(ae.call(A,Z)){var se=A[Z];if(!(se==null||typeof se=="boolean"||se==="")){var ve=void 0,Ae=void 0,h=Z.indexOf("--")===0;h?(ve=L(fn(Z)),S(se,Z),Ae=L(fn((""+se).trim()))):(lo(Z,se),ve=j(Z),typeof se=="number"?se!==0&&!ae.call(Et,Z)?Ae=L(se+"px"):Ae=L(""+se):(S(se,Z),Ae=L(fn((""+se).trim())))),$?($=!1,g.push(q,ve,re,Ae)):g.push(Oe,ve,re,Ae)}}$||g.push(yt)}var Me=I(" "),rt=I('="'),yt=I('"'),Tt=I('=""');function bt(g,w,A,$){switch(A){case"style":{be(g,w,$);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(A.length>2&&(A[0]==="o"||A[0]==="O")&&(A[1]==="n"||A[1]==="N"))){var Z=Re(A);if(Z!==null){switch(typeof $){case"function":case"symbol":return;case"boolean":if(!Z.acceptsBooleans)return}var se=Z.attributeName,ve=L(se);switch(Z.type){case Qe:$&&g.push(Me,ve,Tt);return;case tt:$===!0?g.push(Me,ve,Tt):$===!1||g.push(Me,ve,rt,L(fn($)),yt);return;case he:isNaN($)||g.push(Me,ve,rt,L(fn($)),yt);break;case Ce:!isNaN($)&&$>=1&&g.push(Me,ve,rt,L(fn($)),yt);break;default:Z.sanitizeURL&&(ge($,se),$=""+$,co($)),g.push(Me,ve,rt,L(fn($)),yt)}}else if(Ve(A)){switch(typeof $){case"function":case"symbol":return;case"boolean":{var Ae=A.toLowerCase().slice(0,5);if(Ae!=="data-"&&Ae!=="aria-")return}}g.push(Me,L(A),rt,L(fn($)),yt)}}}var Ut=I(">"),Qn=I("/>");function zn(g,w,A){if(w!=null){if(A!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof w!="object"||!("__html"in w))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 $=w.__html;$!=null&&(ce($),g.push(L(""+$)))}}var _n=!1,Nr=!1,or=!1,zi=!1,yi=!1,Yi=!1,jr=!1;function Io(g,w){{var A=g[w];if(A!=null){var $=Ci(A);g.multiple&&!$?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",w):!g.multiple&&$&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",w)}}}function Vs(g,w,A){Xn("select",w),Io(w,"value"),Io(w,"defaultValue"),w.value!==void 0&&w.defaultValue!==void 0&&!or&&(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"),or=!0),g.push(dr("select"));var $=null,Z=null;for(var se in w)if(ae.call(w,se)){var ve=w[se];if(ve==null)continue;switch(se){case"children":$=ve;break;case"dangerouslySetInnerHTML":Z=ve;break;case"defaultValue":case"value":break;default:bt(g,A,se,ve);break}}return g.push(Ut),zn(g,Z,$),$}function Aa(g){var w="";return e.Children.forEach(g,function(A){A!=null&&(w+=A,!yi&&typeof A!="string"&&typeof A!="number"&&(yi=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),w}var Ma=I(' selected=""');function La(g,w,A,$){var Z=$.selectedValue;g.push(dr("option"));var se=null,ve=null,Ae=null,h=null;for(var b in w)if(ae.call(w,b)){var O=w[b];if(O==null)continue;switch(b){case"children":se=O;break;case"selected":Ae=O,jr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),jr=!0);break;case"dangerouslySetInnerHTML":h=O;break;case"value":ve=O;default:bt(g,A,b,O);break}}if(Z!=null){var M;if(ve!==null?(ge(ve,"value"),M=""+ve):(h!==null&&(Yi||(Yi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),M=Aa(se)),Ci(Z))for(var Y=0;Y<Z.length;Y++){ge(Z[Y],"value");var ie=""+Z[Y];if(ie===M){g.push(Ma);break}}else ge(Z,"select.value"),""+Z===M&&g.push(Ma)}else Ae&&g.push(Ma);return g.push(Ut),zn(g,h,se),se}function Fa(g,w,A){Xn("input",w),w.checked!==void 0&&w.defaultChecked!==void 0&&!Nr&&(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",w.type),Nr=!0),w.value!==void 0&&w.defaultValue!==void 0&&!_n&&(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",w.type),_n=!0),g.push(dr("input"));var $=null,Z=null,se=null,ve=null;for(var Ae in w)if(ae.call(w,Ae)){var h=w[Ae];if(h==null)continue;switch(Ae){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ve=h;break;case"defaultValue":Z=h;break;case"checked":se=h;break;case"value":$=h;break;default:bt(g,A,Ae,h);break}}return se!==null?bt(g,A,"checked",se):ve!==null&&bt(g,A,"checked",ve),$!==null?bt(g,A,"value",$):Z!==null&&bt(g,A,"value",Z),g.push(Qn),null}function bi(g,w,A){Xn("textarea",w),w.value!==void 0&&w.defaultValue!==void 0&&!zi&&(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"),zi=!0),g.push(dr("textarea"));var $=null,Z=null,se=null;for(var ve in w)if(ae.call(w,ve)){var Ae=w[ve];if(Ae==null)continue;switch(ve){case"children":se=Ae;break;case"value":$=Ae;break;case"defaultValue":Z=Ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:bt(g,A,ve,Ae);break}}if($===null&&Z!==null&&($=Z),g.push(Ut),se!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),$!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ci(se)){if(se.length>1)throw new Error("<textarea> can only have at most one child.");ce(se[0]),$=""+se[0]}ce(se),$=""+se}return typeof $=="string"&&$[0]===`
|
|
109
|
+
`&&g.push(_i),$!==null&&(ge($,"value"),g.push(L(fr(""+$)))),null}function Ao(g,w,A,$){g.push(dr(A));for(var Z in w)if(ae.call(w,Z)){var se=w[Z];if(se==null)continue;switch(Z){case"children":case"dangerouslySetInnerHTML":throw new Error(A+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:bt(g,$,Z,se);break}}return g.push(Qn),null}function ra(g,w,A){g.push(dr("menuitem"));for(var $ in w)if(ae.call(w,$)){var Z=w[$];if(Z==null)continue;switch($){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:bt(g,A,$,Z);break}}return g.push(Ut),null}function sn(g,w,A){g.push(dr("title"));var $=null;for(var Z in w)if(ae.call(w,Z)){var se=w[Z];if(se==null)continue;switch(Z){case"children":$=se;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:bt(g,A,Z,se);break}}g.push(Ut);{var ve=Array.isArray($)&&$.length<2?$[0]||null:$;Array.isArray($)&&$.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"):ve!=null&&ve.$$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"):ve!=null&&typeof ve!="string"&&typeof ve!="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 $}function Qt(g,w,A,$){g.push(dr(A));var Z=null,se=null;for(var ve in w)if(ae.call(w,ve)){var Ae=w[ve];if(Ae==null)continue;switch(ve){case"children":Z=Ae;break;case"dangerouslySetInnerHTML":se=Ae;break;default:bt(g,$,ve,Ae);break}}return g.push(Ut),zn(g,se,Z),typeof Z=="string"?(g.push(L(fr(Z))),null):Z}function Vt(g,w,A,$){g.push(dr(A));var Z=null,se=null;for(var ve in w)if(ae.call(w,ve)){var Ae=w[ve];if(Ae==null)continue;switch(ve){case"children":Z=Ae;break;case"dangerouslySetInnerHTML":se=Ae;break;case"style":be(g,$,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ve(ve)&&typeof Ae!="function"&&typeof Ae!="symbol"&&g.push(Me,L(ve),rt,L(fn(Ae)),yt);break}}return g.push(Ut),zn(g,se,Z),Z}var _i=I(`
|
|
110
|
+
`);function ri(g,w,A,$){g.push(dr(A));var Z=null,se=null;for(var ve in w)if(ae.call(w,ve)){var Ae=w[ve];if(Ae==null)continue;switch(ve){case"children":Z=Ae;break;case"dangerouslySetInnerHTML":se=Ae;break;default:bt(g,$,ve,Ae);break}}if(g.push(Ut),se!=null){if(Z!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof se!="object"||!("__html"in se))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 h=se.__html;h!=null&&(typeof h=="string"&&h.length>0&&h[0]===`
|
|
111
|
+
`?g.push(_i,L(h)):(ce(h),g.push(L(""+h))))}return typeof Z=="string"&&Z[0]===`
|
|
112
|
+
`&&g.push(_i),Z}var Mo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,wi=new Map;function dr(g){var w=wi.get(g);if(w===void 0){if(!Mo.test(g))throw new Error("Invalid tag: "+g);w=I("<"+g),wi.set(g,w)}return w}var Na=I("<!DOCTYPE html>");function ia(g,w,A,$,Z){switch(hn(w,A),gt(w,A),Rr(w,A,null),!A.suppressContentEditableWarning&&A.contentEditable&&A.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."),Z.insertionMode!==Mr&&Z.insertionMode!==Tr&&w.indexOf("-")===-1&&typeof A.is!="string"&&w.toLowerCase()!==w&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",w),w){case"select":return Vs(g,A,$);case"option":return La(g,A,$,Z);case"textarea":return bi(g,A,$);case"input":return Fa(g,A,$);case"menuitem":return ra(g,A,$);case"title":return sn(g,A,$);case"listing":case"pre":return ri(g,A,w,$);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 Ao(g,A,w,$);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Qt(g,A,w,$);case"html":return Z.insertionMode===Wn&&g.push(Na),Qt(g,A,w,$);default:return w.indexOf("-")===-1&&typeof A.is!="string"?Qt(g,A,w,$):Vt(g,A,w,$)}}var as=I("</"),yn=I(">");function Lo(g,w,A){switch(w){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:g.push(as,L(w),yn)}}function xi(g,w){for(var A=w.bootstrapChunks,$=0;$<A.length-1;$++)p(g,A[$]);return $<A.length?x(g,A[$]):!0}var ss=I('<template id="'),ho=I('"></template>');function er(g,w,A){p(g,ss),p(g,w.placeholderPrefix);var $=L(A.toString(16));return p(g,$),x(g,ho)}var f=I("<!--$-->"),m=I('<!--$?--><template id="'),C=I('"></template>'),_=I("<!--$!-->"),N=I("<!--/$-->"),B=I("<template"),H=I('"'),ue=I(' data-dgst="'),oe=I(' data-msg="'),we=I(' data-stck="'),Le=I("></template>");function je(g,w){return x(g,f)}function ke(g,w,A){if(p(g,m),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(g,A),x(g,C)}function qe(g,w,A,$,Z){var se;return se=x(g,_),p(g,B),A&&(p(g,ue),p(g,L(fn(A))),p(g,H)),$&&(p(g,oe),p(g,L(fn($))),p(g,H)),Z&&(p(g,we),p(g,L(fn(Z))),p(g,H)),se=x(g,Le),se}function ct(g,w){return x(g,N)}function Dt(g,w){return x(g,N)}function It(g,w){return x(g,N)}var Mn=I('<div hidden id="'),dn=I('">'),Br=I("</div>"),$r=I('<svg aria-hidden="true" style="display:none" id="'),Wt=I('">'),Vr=I("</svg>"),zt=I('<math aria-hidden="true" style="display:none" id="'),on=I('">'),po=I("</math>"),go=I('<table hidden id="'),Er=I('">'),k=I("</table>"),F=I('<table hidden><tbody id="'),z=I('">'),ne=I("</tbody></table>"),Se=I('<table hidden><tr id="'),Te=I('">'),Be=I("</tr></table>"),nt=I('<table hidden><colgroup id="'),xt=I('">'),Nt=I("</colgroup></table>");function Ot(g,w,A,$){switch(A.insertionMode){case Wn:case vn:return p(g,Mn),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,dn);case Mr:return p(g,$r),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,Wt);case Tr:return p(g,zt),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,on);case An:return p(g,go),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,Er);case mi:return p(g,F),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,z);case Lr:return p(g,Se),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,Te);case ei:return p(g,nt),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,xt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ct(g,w){switch(w.insertionMode){case Wn:case vn:return x(g,Br);case Mr:return x(g,Vr);case Tr:return x(g,po);case An:return x(g,k);case mi:return x(g,ne);case Lr:return x(g,Be);case ei:return x(g,Nt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Bn="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)}",Tn='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()}}',Yn='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())}',oa=I(Bn+';$RS("'),ls=I('$RS("'),aa=I('","'),ii=I('")<\/script>');function Hs(g,w,A){p(g,w.startInlineScript),w.sentCompleteSegmentFunction?p(g,ls):(w.sentCompleteSegmentFunction=!0,p(g,oa)),p(g,w.segmentPrefix);var $=L(A.toString(16));return p(g,$),p(g,aa),p(g,w.placeholderPrefix),p(g,$),x(g,ii)}var vo=I(Tn+';$RC("'),us=I('$RC("'),sa=I('","'),Si=I('")<\/script>');function Gi(g,w,A,$){if(p(g,w.startInlineScript),w.sentCompleteBoundaryFunction?p(g,us):(w.sentCompleteBoundaryFunction=!0,p(g,vo)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var Z=L($.toString(16));return p(g,A),p(g,sa),p(g,w.segmentPrefix),p(g,Z),x(g,Si)}var Us=I(Yn+';$RX("'),Lu=I('$RX("'),la=I('"'),mo=I(")<\/script>"),hr=I(",");function Ws(g,w,A,$,Z,se){if(p(g,w.startInlineScript),w.sentClientRenderFunction?p(g,Lu):(w.sentClientRenderFunction=!0,p(g,Us)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(g,A),p(g,la),($||Z||se)&&(p(g,hr),p(g,L(fs($||"")))),(Z||se)&&(p(g,hr),p(g,L(fs(Z||"")))),se&&(p(g,hr),p(g,L(fs(se)))),x(g,mo)}var cs=/[<\u2028\u2029]/g;function fs(g){var w=JSON.stringify(g);return w.replace(cs,function(A){switch(A){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 ee=Object.assign,ye=Symbol.for("react.element"),De=Symbol.for("react.portal"),_e=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),de=Symbol.for("react.provider"),$e=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),ft=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),ut=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),kt=Symbol.for("react.scope"),Yt=Symbol.for("react.debug_trace_mode"),Ln=Symbol.for("react.legacy_hidden"),ar=Symbol.for("react.default_value"),Gn=Symbol.iterator,Hr="@@iterator";function qi(g){if(g===null||typeof g!="object")return null;var w=Gn&&g[Gn]||g[Hr];return typeof w=="function"?w:null}function Mt(g,w,A){var $=g.displayName;if($)return $;var Z=w.displayName||w.name||"";return Z!==""?A+"("+Z+")":A}function Uc(g){return g.displayName||"Context"}function On(g){if(g==null)return null;if(typeof g.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case _e:return"Fragment";case De:return"Portal";case pe:return"Profiler";case Q:return"StrictMode";case ft:return"Suspense";case dt:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case $e:var w=g;return Uc(w)+".Consumer";case de:var A=g;return Uc(A._context)+".Provider";case We:return Mt(g,g.render,"ForwardRef");case ut:var $=g.displayName||null;return $!==null?$:On(g.type)||"Memo";case At:{var Z=g,se=Z._payload,ve=Z._init;try{return On(ve(se))}catch{return null}}}return null}var ua=0,Fu,Dn,ds,hs,yo,ps,jl;function gs(){}gs.__reactDisabledLog=!0;function Nu(){{if(ua===0){Fu=console.log,Dn=console.info,ds=console.warn,hs=console.error,yo=console.group,ps=console.groupCollapsed,jl=console.groupEnd;var g={configurable:!0,enumerable:!0,value:gs,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}ua++}}function ju(){{if(ua--,ua===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},g,{value:Fu}),info:ee({},g,{value:Dn}),warn:ee({},g,{value:ds}),error:ee({},g,{value:hs}),group:ee({},g,{value:yo}),groupCollapsed:ee({},g,{value:ps}),groupEnd:ee({},g,{value:jl})})}ua<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ja=n.ReactCurrentDispatcher,Bl;function Fo(g,w,A){{if(Bl===void 0)try{throw Error()}catch(Z){var $=Z.stack.trim().match(/\n( *(at )?)/);Bl=$&&$[1]||""}return`
|
|
113
|
+
`+Bl+g}}var Xi=!1,No;{var zs=typeof WeakMap=="function"?WeakMap:Map;No=new zs}function Ys(g,w){if(!g||Xi)return"";{var A=No.get(g);if(A!==void 0)return A}var $;Xi=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var se;se=ja.current,ja.current=null,Nu();try{if(w){var ve=function(){throw Error()};if(Object.defineProperty(ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ve,[])}catch(fe){$=fe}Reflect.construct(g,[],ve)}else{try{ve.call()}catch(fe){$=fe}g.call(ve.prototype)}}else{try{throw Error()}catch(fe){$=fe}g()}}catch(fe){if(fe&&$&&typeof fe.stack=="string"){for(var Ae=fe.stack.split(`
|
|
114
|
+
`),h=$.stack.split(`
|
|
115
|
+
`),b=Ae.length-1,O=h.length-1;b>=1&&O>=0&&Ae[b]!==h[O];)O--;for(;b>=1&&O>=0;b--,O--)if(Ae[b]!==h[O]){if(b!==1||O!==1)do if(b--,O--,O<0||Ae[b]!==h[O]){var M=`
|
|
116
|
+
`+Ae[b].replace(" at new "," at ");return g.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",g.displayName)),typeof g=="function"&&No.set(g,M),M}while(b>=1&&O>=0);break}}}finally{Xi=!1,ja.current=se,ju(),Error.prepareStackTrace=Z}var Y=g?g.displayName||g.name:"",ie=Y?Fo(Y):"";return typeof g=="function"&&No.set(g,ie),ie}function $l(g,w,A){return Ys(g,!0)}function Gs(g,w,A){return Ys(g,!1)}function vs(g){var w=g.prototype;return!!(w&&w.isReactComponent)}function qs(g,w,A){if(g==null)return"";if(typeof g=="function")return Ys(g,vs(g));if(typeof g=="string")return Fo(g);switch(g){case ft:return Fo("Suspense");case dt:return Fo("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case We:return Gs(g.render);case ut:return qs(g.type,w,A);case At:{var $=g,Z=$._payload,se=$._init;try{return qs(se(Z),w,A)}catch{}}}return""}var Bu={},$u=n.ReactDebugCurrentFrame;function ms(g){if(g){var w=g._owner,A=qs(g.type,g._source,w?w.type:null);$u.setExtraStackFrame(A)}else $u.setExtraStackFrame(null)}function Vu(g,w,A,$,Z){{var se=Function.call.bind(ae);for(var ve in g)if(se(g,ve)){var Ae=void 0;try{if(typeof g[ve]!="function"){var h=Error(($||"React class")+": "+A+" type `"+ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ve]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}Ae=g[ve](w,ve,$,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){Ae=b}Ae&&!(Ae instanceof Error)&&(ms(Z),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).",$||"React class",A,ve,typeof Ae),ms(null)),Ae instanceof Error&&!(Ae.message in Bu)&&(Bu[Ae.message]=!0,ms(Z),i("Failed %s type: %s",A,Ae.message),ms(null))}}}var Fn;Fn={};var Nn={};Object.freeze(Nn);function Hu(g,w){{var A=g.contextTypes;if(!A)return Nn;var $={};for(var Z in A)$[Z]=w[Z];{var se=On(g)||"Unknown";Vu(A,$,"context",se)}return $}}function Uu(g,w,A,$){{if(typeof g.getChildContext!="function"){{var Z=On(w)||"Unknown";Fn[Z]||(Fn[Z]=!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.",Z,Z))}return A}var se=g.getChildContext();for(var ve in se)if(!(ve in $))throw new Error((On(w)||"Unknown")+'.getChildContext(): key "'+ve+'" is not defined in childContextTypes.');{var Ae=On(w)||"Unknown";Vu($,se,"child context",Ae)}return ee({},A,se)}}var jo;jo={};var Wc=null,Bo=null;function Ki(g){g.context._currentValue=g.parentValue}function Xs(g){g.context._currentValue=g.value}function Ur(g,w){if(g!==w){Ki(g);var A=g.parent,$=w.parent;if(A===null){if($!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if($===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Ur(A,$)}Xs(w)}}function ca(g){Ki(g);var w=g.parent;w!==null&&ca(w)}function fa(g){var w=g.parent;w!==null&&fa(w),Xs(g)}function da(g,w){Ki(g);var A=g.parent;if(A===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");A.depth===w.depth?Ur(A,w):da(A,w)}function ha(g,w){var A=w.parent;if(A===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");g.depth===A.depth?Ur(g,A):ha(g,A),Xs(w)}function Ks(g){var w=Bo,A=g;w!==A&&(w===null?fa(A):A===null?ca(w):w.depth===A.depth?Ur(w,A):w.depth>A.depth?da(w,A):ha(w,A),Bo=A)}function zc(g,w){var A;A=g._currentValue,g._currentValue=w,g._currentRenderer!==void 0&&g._currentRenderer!==null&&g._currentRenderer!==jo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),g._currentRenderer=jo;var $=Bo,Z={parent:$,depth:$===null?0:$.depth+1,context:g,parentValue:A,value:w};return Bo=Z,Z}function Yc(g){var w=Bo;if(w===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");w.context!==g&&i("The parent context is not the expected context. This is probably a bug in React.");{var A=w.parentValue;A===ar?w.context._currentValue=w.context._defaultValue:w.context._currentValue=A,g._currentRenderer!==void 0&&g._currentRenderer!==null&&g._currentRenderer!==jo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),g._currentRenderer=jo}return Bo=w.parent}function Vl(){return Bo}function Zs(g){var w=g._currentValue;return w}function ys(g){return g._reactInternals}function Js(g,w){g._reactInternals=w}var Ba={},G={},pa,$a,Wr,qt,Hl,bs,Qs,bo,ws;{pa=new Set,$a=new Set,Wr=new Set,Qs=new Set,qt=new Set,bo=new Set,ws=new Set;var Ul=new Set;bs=function(g,w){if(!(g===null||typeof g=="function")){var A=w+"_"+g;Ul.has(A)||(Ul.add(A),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",w,g))}},Hl=function(g,w){if(w===void 0){var A=On(g)||"Component";qt.has(A)||(qt.add(A),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",A))}}}function Wl(g,w){{var A=g.constructor,$=A&&On(A)||"ReactClass",Z=$+"."+w;if(Ba[Z])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.
|
|
117
|
+
|
|
118
|
+
Please check the code for the %s component.`,w,w,$),Ba[Z]=!0}}var zl={isMounted:function(g){return!1},enqueueSetState:function(g,w,A){var $=ys(g);$.queue===null?Wl(g,"setState"):($.queue.push(w),A!=null&&bs(A,"setState"))},enqueueReplaceState:function(g,w,A){var $=ys(g);$.replace=!0,$.queue=[w],A!=null&&bs(A,"setState")},enqueueForceUpdate:function(g,w){var A=ys(g);A.queue===null?Wl(g,"forceUpdate"):w!=null&&bs(w,"setState")}};function Gc(g,w,A,$,Z){var se=A(Z,$);Hl(w,se);var ve=se==null?$:ee({},$,se);return ve}function wo(g,w,A){var $=Nn,Z=g.contextType;if("contextType"in g){var se=Z===null||Z!==void 0&&Z.$$typeof===$e&&Z._context===void 0;if(!se&&!ws.has(g)){ws.add(g);var ve="";Z===void 0?ve=" 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 Z!="object"?ve=" However, it is set to a "+typeof Z+".":Z.$$typeof===de?ve=" Did you accidentally pass the Context.Provider instead?":Z._context!==void 0?ve=" Did you accidentally pass the Context.Consumer instead?":ve=" However, it is set to an object with keys {"+Object.keys(Z).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",On(g)||"Component",ve)}}typeof Z=="object"&&Z!==null?$=Zs(Z):$=A;var Ae=new g(w,$);{if(typeof g.getDerivedStateFromProps=="function"&&(Ae.state===null||Ae.state===void 0)){var h=On(g)||"Component";pa.has(h)||(pa.add(h),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.",h,Ae.state===null?"null":"undefined",h))}if(typeof g.getDerivedStateFromProps=="function"||typeof Ae.getSnapshotBeforeUpdate=="function"){var b=null,O=null,M=null;if(typeof Ae.componentWillMount=="function"&&Ae.componentWillMount.__suppressDeprecationWarning!==!0?b="componentWillMount":typeof Ae.UNSAFE_componentWillMount=="function"&&(b="UNSAFE_componentWillMount"),typeof Ae.componentWillReceiveProps=="function"&&Ae.componentWillReceiveProps.__suppressDeprecationWarning!==!0?O="componentWillReceiveProps":typeof Ae.UNSAFE_componentWillReceiveProps=="function"&&(O="UNSAFE_componentWillReceiveProps"),typeof Ae.componentWillUpdate=="function"&&Ae.componentWillUpdate.__suppressDeprecationWarning!==!0?M="componentWillUpdate":typeof Ae.UNSAFE_componentWillUpdate=="function"&&(M="UNSAFE_componentWillUpdate"),b!==null||O!==null||M!==null){var Y=On(g)||"Component",ie=typeof g.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Wr.has(Y)||(Wr.add(Y),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
119
|
+
|
|
120
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
121
|
+
|
|
122
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
123
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,Y,ie,b!==null?`
|
|
124
|
+
`+b:"",O!==null?`
|
|
125
|
+
`+O:"",M!==null?`
|
|
126
|
+
`+M:""))}}}return Ae}function qc(g,w,A){{var $=On(w)||"Component",Z=g.render;Z||(w.prototype&&typeof w.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",$):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",$)),g.getInitialState&&!g.getInitialState.isReactClassApproved&&!g.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.getDefaultProps&&!g.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.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",$),g.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",$),g.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",$),w.contextType&&w.contextTypes&&!bo.has(w)&&(bo.add(w),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",$)),typeof g.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.",$),w.prototype&&w.prototype.isPureReactComponent&&typeof g.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.",On(w)||"A pure component"),typeof g.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",$),typeof g.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().",$),typeof g.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",$),typeof g.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",$);var se=g.props!==A;g.props!==void 0&&se&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",$,$),g.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.",$,$),typeof g.getSnapshotBeforeUpdate=="function"&&typeof g.componentDidUpdate!="function"&&!$a.has(w)&&($a.add(w),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",On(w))),typeof g.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",$),typeof g.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",$),typeof w.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",$);var ve=g.state;ve&&(typeof ve!="object"||Ci(ve))&&i("%s.state: must be set to an object or null",$),typeof g.getChildContext=="function"&&typeof w.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",$)}}function $f(g,w){var A=w.state;if(typeof w.componentWillMount=="function"){if(w.componentWillMount.__suppressDeprecationWarning!==!0){var $=On(g)||"Unknown";G[$]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
127
|
+
|
|
128
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
129
|
+
|
|
130
|
+
Please update the following components: %s`,$),G[$]=!0)}w.componentWillMount()}typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),A!==w.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",On(g)||"Component"),zl.enqueueReplaceState(w,w.state,null))}function Vf(g,w,A,$){if(g.queue!==null&&g.queue.length>0){var Z=g.queue,se=g.replace;if(g.queue=null,g.replace=!1,se&&Z.length===1)w.state=Z[0];else{for(var ve=se?Z[0]:w.state,Ae=!0,h=se?1:0;h<Z.length;h++){var b=Z[h],O=typeof b=="function"?b.call(w,ve,A,$):b;O!=null&&(Ae?(Ae=!1,ve=ee({},ve,O)):ee(ve,O))}w.state=ve}}else g.queue=null}function Xc(g,w,A,$){qc(g,w,A);var Z=g.state!==void 0?g.state:null;g.updater=zl,g.props=A,g.state=Z;var se={queue:[],replace:!1};Js(g,se);var ve=w.contextType;if(typeof ve=="object"&&ve!==null?g.context=Zs(ve):g.context=$,g.state===A){var Ae=On(w)||"Component";Qs.has(Ae)||(Qs.add(Ae),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.",Ae))}var h=w.getDerivedStateFromProps;typeof h=="function"&&(g.state=Gc(g,w,h,Z,A)),typeof w.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&($f(w,g),Vf(se,g,A,$))}var Hf={id:1,overflow:""};function $o(g){var w=g.overflow,A=g.id,$=A&~Uf(A);return $.toString(32)+w}function Yl(g,w,A){var $=g.id,Z=g.overflow,se=Gl($)-1,ve=$&~(1<<se),Ae=A+1,h=Gl(w)+se;if(h>30){var b=se-se%5,O=(1<<b)-1,M=(ve&O).toString(32),Y=ve>>b,ie=se-b,fe=Gl(w)+ie,Ie=Ae<<ie,Ze=Ie|Y,ht=M+Z;return{id:1<<fe|Ze,overflow:ht}}else{var St=Ae<<se,Pt=St|ve,Cn=Z;return{id:1<<h|Pt,overflow:Cn}}}function Gl(g){return 32-Wu(g)}function Uf(g){return 1<<Gl(g)-1}var Wu=Math.clz32?Math.clz32:Wf,ql=Math.log,Va=Math.LN2;function Wf(g){var w=g>>>0;return w===0?32:31-(ql(w)/Va|0)|0}function zf(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}var Zi=typeof Object.is=="function"?Object.is:zf,Vo=null,zu=null,Xl=null,nn=null,Ha=!1,ga=!1,ln=0,Oi=null,Ua=0,xs=25,$n=!1,Di;function Wa(){if(Vo===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:
|
|
131
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
132
|
+
2. You might be breaking the Rules of Hooks
|
|
133
|
+
3. You might have more than one copy of React in the same app
|
|
134
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return $n&&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"),Vo}function Ji(g,w){if(w===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.",Di),!1;g.length!==w.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
135
|
+
|
|
136
|
+
Previous: %s
|
|
137
|
+
Incoming: %s`,Di,"["+g.join(", ")+"]","["+w.join(", ")+"]");for(var A=0;A<w.length&&A<g.length;A++)if(!Zi(g[A],w[A]))return!1;return!0}function za(){if(Ua>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function pr(){return nn===null?Xl===null?(Ha=!1,Xl=nn=za()):(Ha=!0,nn=Xl):nn.next===null?(Ha=!1,nn=nn.next=za()):(Ha=!0,nn=nn.next),nn}function Yu(g,w){Vo=w,zu=g,$n=!1,ln=0}function va(g,w,A,$){for(;ga;)ga=!1,ln=0,Ua+=1,nn=null,A=g(w,$);return Gu(),A}function zr(){var g=ln!==0;return g}function Gu(){$n=!1,Vo=null,zu=null,ga=!1,Xl=null,Ua=0,Oi=null,nn=null}function Kc(g){return $n&&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()."),Zs(g)}function qu(g){return Di="useContext",Wa(),Zs(g)}function Ho(g,w){return typeof w=="function"?w(g):w}function ma(g){return Di="useState",Xu(Ho,g)}function Xu(g,w,A){if(g!==Ho&&(Di="useReducer"),Vo=Wa(),nn=pr(),Ha){var $=nn.queue,Z=$.dispatch;if(Oi!==null){var se=Oi.get($);if(se!==void 0){Oi.delete($);var ve=nn.memoizedState,Ae=se;do{var h=Ae.action;$n=!0,ve=g(ve,h),$n=!1,Ae=Ae.next}while(Ae!==null);return nn.memoizedState=ve,[ve,Z]}}return[nn.memoizedState,Z]}else{$n=!0;var b;g===Ho?b=typeof w=="function"?w():w:b=A!==void 0?A(w):w,$n=!1,nn.memoizedState=b;var O=nn.queue={last:null,dispatch:null},M=O.dispatch=Ku.bind(null,Vo,O);return[nn.memoizedState,M]}}function Kl(g,w){Vo=Wa(),nn=pr();var A=w===void 0?null:w;if(nn!==null){var $=nn.memoizedState;if($!==null&&A!==null){var Z=$[1];if(Ji(A,Z))return $[0]}}$n=!0;var se=g();return $n=!1,nn.memoizedState=[se,A],se}function Zl(g){Vo=Wa(),nn=pr();var w=nn.memoizedState;if(w===null){var A={current:g};return Object.seal(A),nn.memoizedState=A,A}else return w}function Zc(g,w){Di="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 Ku(g,w,A){if(Ua>=xs)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(g===Vo){ga=!0;var $={action:A,next:null};Oi===null&&(Oi=new Map);var Z=Oi.get(w);if(Z===void 0)Oi.set(w,$);else{for(var se=Z;se.next!==null;)se=se.next;se.next=$}}}function gr(g,w){return Kl(function(){return g},w)}function Zu(g,w,A){return Wa(),w(g._source)}function Jc(g,w,A){if(A===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return A()}function xo(g){return Wa(),g}function Ju(){throw new Error("startTransition cannot be called during server rendering.")}function Jl(){return Wa(),[!1,Ju]}function Ya(){var g=zu,w=$o(g.treeContext),A=tl;if(A===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var $=ln++;return Cr(A,w,$)}function el(){}var kr={readContext:Kc,useContext:qu,useMemo:Kl,useReducer:Xu,useRef:Zl,useState:ma,useInsertionEffect:el,useLayoutEffect:Zc,useCallback:gr,useImperativeHandle:el,useEffect:el,useDebugValue:el,useDeferredValue:xo,useTransition:Jl,useId:Ya,useMutableSource:Zu,useSyncExternalStore:Jc},tl=null;function nl(g){tl=g}function Qc(g){try{var w="",A=g;do{switch(A.tag){case 0:w+=Fo(A.type,null,null);break;case 1:w+=Gs(A.type,null,null);break;case 2:w+=$l(A.type,null,null);break}A=A.parent}while(A);return w}catch($){return`
|
|
138
|
+
Error generating stack: `+$.message+`
|
|
139
|
+
`+$.stack}}var rl=n.ReactCurrentDispatcher,Ss=n.ReactDebugCurrentFrame,Qu=0,Pi=1,il=2,Ql=3,Ga=4,Ts=0,ec=1,qa=2,tc=12800;function nc(g){return console.error(g),null}function So(){}function Yf(g,w,A,$,Z,se,ve,Ae,h){var b=[],O=new Set,M={destination:null,responseState:w,progressiveChunkSize:$===void 0?tc:$,status:Ts,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:O,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Z===void 0?nc:Z,onAllReady:se===void 0?So:se,onShellReady:ve===void 0?So:ve,onShellError:Ae===void 0?So:Ae,onFatalError:h===void 0?So:h},Y=eu(M,0,null,A,!1,!1);Y.parentFlushed=!0;var ie=ol(M,g,null,Y,O,Nn,Wc,Hf);return b.push(ie),M}function Gf(g,w){var A=g.pingedTasks;A.push(w),A.length===1&&s(function(){return hl(g)})}function Cs(g,w){return{id:Ui,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:w,errorDigest:null}}function ol(g,w,A,$,Z,se,ve,Ae){g.allPendingTasks++,A===null?g.pendingRootTasks++:A.pendingTasks++;var h={node:w,ping:function(){return Gf(g,h)},blockedBoundary:A,blockedSegment:$,abortSet:Z,legacyContext:se,context:ve,treeContext:Ae};return h.componentStack=null,Z.add(h),h}function eu(g,w,A,$,Z,se){return{status:Qu,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:$,boundary:A,lastPushedText:Z,textEmbedded:se}}var Qi=null;function Es(){return Qi===null||Qi.componentStack===null?"":Qc(Qi.componentStack)}function Uo(g,w){g.componentStack={tag:0,parent:g.componentStack,type:w}}function eo(g,w){g.componentStack={tag:1,parent:g.componentStack,type:w}}function ks(g,w){g.componentStack={tag:2,parent:g.componentStack,type:w}}function Ri(g){g.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):g.componentStack=g.componentStack.parent}var Xa=null;function tu(g,w){{var A;typeof w=="string"?A=w:w&&typeof w.message=="string"?A=w.message:A=String(w);var $=Xa||Es();Xa=null,g.errorMessage=A,g.errorComponentStack=$}}function Ii(g,w){var A=g.onError(w);if(A!=null&&typeof A!="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 A+'" instead');return A}function Wo(g,w){var A=g.onShellError;A(w);var $=g.onFatalError;$(w),g.destination!==null?(g.status=qa,U(g.destination,w)):(g.status=ec,g.fatalError=w)}function rc(g,w,A){Uo(w,"Suspense");var $=w.blockedBoundary,Z=w.blockedSegment,se=A.fallback,ve=A.children,Ae=new Set,h=Cs(g,Ae),b=Z.chunks.length,O=eu(g,b,h,Z.formatContext,!1,!1);Z.children.push(O),Z.lastPushedText=!1;var M=eu(g,0,null,Z.formatContext,!1,!1);M.parentFlushed=!0,w.blockedBoundary=h,w.blockedSegment=M;try{if(fl(g,w,ve),Fr(M.chunks,g.responseState,M.lastPushedText,M.textEmbedded),M.status=Pi,dl(h,M),h.pendingTasks===0){Ri(w);return}}catch(ie){M.status=Ga,h.forceClientRender=!0,h.errorDigest=Ii(g,ie),tu(h,ie)}finally{w.blockedBoundary=$,w.blockedSegment=Z}var Y=ol(g,se,$,O,Ae,w.legacyContext,w.context,w.treeContext);Y.componentStack=w.componentStack,g.pingedTasks.push(Y),Ri(w)}function Ka(g,w,A,$){Uo(w,A);var Z=w.blockedSegment,se=ia(Z.chunks,A,$,g.responseState,Z.formatContext);Z.lastPushedText=!1;var ve=Z.formatContext;Z.formatContext=ni(ve,A,$),fl(g,w,se),Z.formatContext=ve,Lo(Z.chunks,A),Z.lastPushedText=!1,Ri(w)}function al(g){return g.prototype&&g.prototype.isReactComponent}function nu(g,w,A,$,Z){var se={};Yu(w,se);var ve=A($,Z);return va(A,$,ve,Z)}function ef(g,w,A,$,Z){var se=A.render();A.props!==Z&&(_s||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",On($)||"a component"),_s=!0);{var ve=$.childContextTypes;if(ve!=null){var Ae=w.legacyContext,h=Uu(A,$,Ae,ve);w.legacyContext=h,si(g,w,se),w.legacyContext=Ae;return}}si(g,w,se)}function ic(g,w,A,$){ks(w,A);var Z=Hu(A,w.legacyContext),se=wo(A,$,Z);Xc(se,A,$,Z),ef(g,w,se,A,$),Ri(w)}var Gt={},sl={},tf={},Za={},_s=!1,oc=!1,ac=!1,oi=!1;function nf(g,w,A,$){var Z;if(Z=Hu(A,w.legacyContext),eo(w,A),A.prototype&&typeof A.prototype.render=="function"){var se=On(A)||"Unknown";Gt[se]||(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.",se,se),Gt[se]=!0)}var ve=nu(g,w,A,$,Z),Ae=zr();if(typeof ve=="object"&&ve!==null&&typeof ve.render=="function"&&ve.$$typeof===void 0){var h=On(A)||"Unknown";sl[h]||(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.",h,h,h),sl[h]=!0)}if(typeof ve=="object"&&ve!==null&&typeof ve.render=="function"&&ve.$$typeof===void 0){{var b=On(A)||"Unknown";sl[b]||(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.",b,b,b),sl[b]=!0)}Xc(ve,A,$,Z),ef(g,w,ve,A,$)}else if(ll(A),Ae){var O=w.treeContext,M=1,Y=0;w.treeContext=Yl(O,M,Y);try{si(g,w,ve)}finally{w.treeContext=O}}else si(g,w,ve);Ri(w)}function ll(g){{if(g&&g.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",g.displayName||g.name||"Component"),typeof g.getDerivedStateFromProps=="function"){var w=On(g)||"Unknown";Za[w]||(i("%s: Function components do not support getDerivedStateFromProps.",w),Za[w]=!0)}if(typeof g.contextType=="object"&&g.contextType!==null){var A=On(g)||"Unknown";tf[A]||(i("%s: Function components do not support contextType.",A),tf[A]=!0)}}}function ul(g,w){if(g&&g.defaultProps){var A=ee({},w),$=g.defaultProps;for(var Z in $)A[Z]===void 0&&(A[Z]=$[Z]);return A}return w}function rf(g,w,A,$,Z){eo(w,A.render);var se=nu(g,w,A.render,$,Z),ve=zr();if(ve){var Ae=w.treeContext,h=1,b=0;w.treeContext=Yl(Ae,h,b);try{si(g,w,se)}finally{w.treeContext=Ae}}else si(g,w,se);Ri(w)}function of(g,w,A,$,Z){var se=A.type,ve=ul(se,$);ru(g,w,se,ve,Z)}function ai(g,w,A,$){A._context===void 0?A!==A.Consumer&&(oi||(oi=!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?"))):A=A._context;var Z=$.children;typeof Z!="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 se=Zs(A),ve=Z(se);si(g,w,ve)}function ya(g,w,A,$){var Z=A._context,se=$.value,ve=$.children,Ae;Ae=w.context,w.context=zc(Z,se),si(g,w,ve),w.context=Yc(Z),Ae!==w.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function sc(g,w,A,$,Z){Uo(w,"Lazy");var se=A._payload,ve=A._init,Ae=ve(se),h=ul(Ae,$);ru(g,w,Ae,h,Z),Ri(w)}function ru(g,w,A,$,Z){if(typeof A=="function")if(al(A)){ic(g,w,A,$);return}else{nf(g,w,A,$);return}if(typeof A=="string"){Ka(g,w,A,$);return}switch(A){case Ln:case Yt:case Q:case pe:case _e:{si(g,w,$.children);return}case dt:{Uo(w,"SuspenseList"),si(g,w,$.children),Ri(w);return}case kt:throw new Error("ReactDOMServer does not yet support scope components.");case ft:{rc(g,w,$);return}}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case We:{rf(g,w,A,$,Z);return}case ut:{of(g,w,A,$,Z);return}case de:{ya(g,w,A,$);return}case $e:{ai(g,w,A,$);return}case At:{sc(g,w,A,$);return}}var se="";throw(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(se+=" 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: "+(A==null?A:typeof A)+"."+se))}function iu(g,w){typeof Symbol=="function"&&g[Symbol.toStringTag]==="Generator"&&(oc||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."),oc=!0),g.entries===w&&(ac||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ac=!0)}function si(g,w,A){try{return cl(g,w,A)}catch($){throw typeof $=="object"&&$!==null&&typeof $.then=="function"||(Xa=Xa!==null?Xa:Es()),$}}function cl(g,w,A){if(w.node=A,typeof A=="object"&&A!==null){switch(A.$$typeof){case ye:{var $=A,Z=$.type,se=$.props,ve=$.ref;ru(g,w,Z,se,ve);return}case De:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case At:{var Ae=A,h=Ae._payload,b=Ae._init,O;try{O=b(h)}catch(St){throw typeof St=="object"&&St!==null&&typeof St.then=="function"&&Uo(w,"Lazy"),St}si(g,w,O);return}}if(Ci(A)){lc(g,w,A);return}var M=qi(A);if(M){iu(A,M);var Y=M.call(A);if(Y){var ie=Y.next();if(!ie.done){var fe=[];do fe.push(ie.value),ie=Y.next();while(!ie.done);lc(g,w,fe);return}return}}var Ie=Object.prototype.toString.call(A);throw new Error("Objects are not valid as a React child (found: "+(Ie==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Ie)+"). If you meant to render a collection of children, use an array instead.")}if(typeof A=="string"){var Ze=w.blockedSegment;Ze.lastPushedText=Wi(w.blockedSegment.chunks,A,g.responseState,Ze.lastPushedText);return}if(typeof A=="number"){var ht=w.blockedSegment;ht.lastPushedText=Wi(w.blockedSegment.chunks,""+A,g.responseState,ht.lastPushedText);return}typeof A=="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 lc(g,w,A){for(var $=A.length,Z=0;Z<$;Z++){var se=w.treeContext;w.treeContext=Yl(se,$,Z);try{fl(g,w,A[Z])}finally{w.treeContext=se}}}function Yr(g,w,A){var $=w.blockedSegment,Z=$.chunks.length,se=eu(g,Z,null,$.formatContext,$.lastPushedText,!0);$.children.push(se),$.lastPushedText=!1;var ve=ol(g,w.node,w.blockedBoundary,se,w.abortSet,w.legacyContext,w.context,w.treeContext);w.componentStack!==null&&(ve.componentStack=w.componentStack.parent);var Ae=ve.ping;A.then(Ae,Ae)}function fl(g,w,A){var $=w.blockedSegment.formatContext,Z=w.legacyContext,se=w.context,ve=null;ve=w.componentStack;try{return si(g,w,A)}catch(Ae){if(Gu(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){Yr(g,w,Ae),w.blockedSegment.formatContext=$,w.legacyContext=Z,w.context=se,Ks(se),w.componentStack=ve;return}else throw w.blockedSegment.formatContext=$,w.legacyContext=Z,w.context=se,Ks(se),w.componentStack=ve,Ae}}function zo(g,w,A,$){var Z=Ii(g,$);if(w===null?Wo(g,$):(w.pendingTasks--,w.forceClientRender||(w.forceClientRender=!0,w.errorDigest=Z,tu(w,$),w.parentFlushed&&g.clientRenderedBoundaries.push(w))),g.allPendingTasks--,g.allPendingTasks===0){var se=g.onAllReady;se()}}function qf(g){var w=this,A=g.blockedBoundary,$=g.blockedSegment;$.status=Ql,uc(w,A,$)}function to(g,w,A){var $=g.blockedBoundary,Z=g.blockedSegment;if(Z.status=Ql,$===null)w.allPendingTasks--,w.status!==qa&&(w.status=qa,w.destination!==null&&P(w.destination));else{if($.pendingTasks--,!$.forceClientRender){$.forceClientRender=!0;var se=A===void 0?new Error("The render was aborted by the server without a reason."):A;$.errorDigest=w.onError(se);{var ve="The server did not finish this Suspense boundary: ";se&&typeof se.message=="string"?se=ve+se.message:se=ve+String(se);var Ae=Qi;Qi=g;try{tu($,se)}finally{Qi=Ae}}$.parentFlushed&&w.clientRenderedBoundaries.push($)}if($.fallbackAbortableTasks.forEach(function(b){return to(b,w,A)}),$.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0){var h=w.onAllReady;h()}}}function dl(g,w){if(w.chunks.length===0&&w.children.length===1&&w.children[0].boundary===null){var A=w.children[0];A.id=w.id,A.parentFlushed=!0,A.status===Pi&&dl(g,A)}else{var $=g.completedSegments;$.push(w)}}function uc(g,w,A){if(w===null){if(A.parentFlushed){if(g.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");g.completedRootSegment=A}if(g.pendingRootTasks--,g.pendingRootTasks===0){g.onShellError=So;var $=g.onShellReady;$()}}else if(w.pendingTasks--,!w.forceClientRender){if(w.pendingTasks===0)A.parentFlushed&&A.status===Pi&&dl(w,A),w.parentFlushed&&g.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(qf,g),w.fallbackAbortableTasks.clear();else if(A.parentFlushed&&A.status===Pi){dl(w,A);var Z=w.completedSegments;Z.length===1&&w.parentFlushed&&g.partialBoundaries.push(w)}}if(g.allPendingTasks--,g.allPendingTasks===0){var se=g.onAllReady;se()}}function ou(g,w){var A=w.blockedSegment;if(A.status===Qu){Ks(w.context);var $=null;$=Qi,Qi=w;try{si(g,w,w.node),Fr(A.chunks,g.responseState,A.lastPushedText,A.textEmbedded),w.abortSet.delete(w),A.status=Pi,uc(g,w.blockedBoundary,A)}catch(se){if(Gu(),typeof se=="object"&&se!==null&&typeof se.then=="function"){var Z=w.ping;se.then(Z,Z)}else w.abortSet.delete(w),A.status=Ga,zo(g,w.blockedBoundary,A,se)}finally{Qi=$}}}function hl(g){if(g.status!==qa){var w=Vl(),A=rl.current;rl.current=kr;var $;$=Ss.getCurrentStack,Ss.getCurrentStack=Es;var Z=tl;nl(g.responseState);try{var se=g.pingedTasks,ve;for(ve=0;ve<se.length;ve++){var Ae=se[ve];ou(g,Ae)}se.splice(0,ve),g.destination!==null&&vr(g,g.destination)}catch(h){Ii(g,h),Wo(g,h)}finally{nl(Z),rl.current=A,Ss.getCurrentStack=$,A===kr&&Ks(w)}}}function pl(g,w,A){switch(A.parentFlushed=!0,A.status){case Qu:{var $=A.id=g.nextSegmentId++;return A.lastPushedText=!1,A.textEmbedded=!1,er(w,g.responseState,$)}case Pi:{A.status=il;for(var Z=!0,se=A.chunks,ve=0,Ae=A.children,h=0;h<Ae.length;h++){for(var b=Ae[h];ve<b.index;ve++)p(w,se[ve]);Z=au(g,w,b)}for(;ve<se.length-1;ve++)p(w,se[ve]);return ve<se.length&&(Z=x(w,se[ve])),Z}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function au(g,w,A){var $=A.boundary;if($===null)return pl(g,w,A);if($.parentFlushed=!0,$.forceClientRender)return qe(w,g.responseState,$.errorDigest,$.errorMessage,$.errorComponentStack),pl(g,w,A),It(w,g.responseState);if($.pendingTasks>0){$.rootSegmentID=g.nextSegmentId++,$.completedSegments.length>0&&g.partialBoundaries.push($);var Z=$.id=Pn(g.responseState);return ke(w,g.responseState,Z),pl(g,w,A),Dt(w,g.responseState)}else{if($.byteSize>g.progressiveChunkSize)return $.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push($),ke(w,g.responseState,$.id),pl(g,w,A),Dt(w,g.responseState);je(w,g.responseState);var se=$.completedSegments;if(se.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ve=se[0];return au(g,w,ve),ct(w,g.responseState)}}function cc(g,w,A){return Ws(w,g.responseState,A.id,A.errorDigest,A.errorMessage,A.errorComponentStack)}function Os(g,w,A){return Ot(w,g.responseState,A.formatContext,A.id),au(g,w,A),Ct(w,A.formatContext)}function gl(g,w,A){for(var $=A.completedSegments,Z=0;Z<$.length;Z++){var se=$[Z];su(g,w,A,se)}return $.length=0,Gi(w,g.responseState,A.id,A.rootSegmentID)}function af(g,w,A){for(var $=A.completedSegments,Z=0;Z<$.length;Z++){var se=$[Z];if(!su(g,w,A,se))return Z++,$.splice(0,Z),!1}return $.splice(0,Z),!0}function su(g,w,A,$){if($.status===il)return!0;var Z=$.id;if(Z===-1){var se=$.id=A.rootSegmentID;if(se===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Os(g,w,$)}else return Os(g,w,$),Hs(w,g.responseState,Z)}function vr(g,w){v();try{var A=g.completedRootSegment;A!==null&&g.pendingRootTasks===0&&(au(g,w,A),g.completedRootSegment=null,xi(w,g.responseState));var $=g.clientRenderedBoundaries,Z;for(Z=0;Z<$.length;Z++){var se=$[Z];cc(g,w,se)}$.splice(0,Z);var ve=g.completedBoundaries;for(Z=0;Z<ve.length;Z++){var Ae=ve[Z];gl(g,w,Ae)}ve.splice(0,Z),T(w),v(w);var h=g.partialBoundaries;for(Z=0;Z<h.length;Z++){var b=h[Z];if(!af(g,w,b)){g.destination=null,Z++,h.splice(0,Z);return}}h.splice(0,Z);var O=g.completedBoundaries;for(Z=0;Z<O.length;Z++){var M=O[Z];gl(g,w,M)}O.splice(0,Z)}finally{T(w),g.allPendingTasks===0&&g.pingedTasks.length===0&&g.clientRenderedBoundaries.length===0&&g.completedBoundaries.length===0&&(g.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),P(w))}}function To(g){s(function(){return hl(g)})}function sf(g,w){if(g.status===ec){g.status=qa,U(w,g.fatalError);return}if(g.status!==qa&&g.destination===null){g.destination=w;try{vr(g,w)}catch(A){Ii(g,A),Wo(g,A)}}}function lu(g,w){try{var A=g.abortableTasks;A.forEach(function($){return to($,g,w)}),A.clear(),g.destination!==null&&vr(g,g.destination)}catch($){Ii(g,$),Wo(g,$)}}function uu(g,w){return new Promise(function(A,$){var Z,se,ve=new Promise(function(Y,ie){se=Y,Z=ie});function Ae(){var Y=new ReadableStream({type:"bytes",pull:function(ie){sf(b,ie)},cancel:function(ie){lu(b)}},{highWaterMark:0});Y.allReady=ve,A(Y)}function h(Y){ve.catch(function(){}),$(Y)}var b=Yf(g,Ar(w?w.identifierPrefix:void 0,w?w.nonce:void 0,w?w.bootstrapScriptContent:void 0,w?w.bootstrapScripts:void 0,w?w.bootstrapModules:void 0),ti(w?w.namespaceURI:void 0),w?w.progressiveChunkSize:void 0,w?w.onError:void 0,se,Ae,h,Z);if(w&&w.signal){var O=w.signal,M=function(){lu(b,O.reason),O.removeEventListener("abort",M)};O.addEventListener("abort",M)}To(b)})}Vh.renderToReadableStream=uu,Vh.version=t}()),Vh}var Ac,Nm;process.env.NODE_ENV==="production"?(Ac=U5(),Nm=W5()):(Ac=z5(),Nm=Y5());Ac.version;var G5=Ac.renderToString;Ac.renderToStaticMarkup;Ac.renderToNodeStream;Ac.renderToStaticNodeStream;Nm.renderToReadableStream;var q5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function d_(e,t){return e(t={exports:{}},t.exports),t.exports}var X5=d_(function(e){(function(t){var n=function(L,I,U){if(!c(I)||v(I)||p(I)||x(I)||l(I))return I;var W,te=0,J=0;if(d(I))for(W=[],J=I.length;te<J;te++)W.push(n(L,I[te],U));else for(var ge in W={},I)Object.prototype.hasOwnProperty.call(I,ge)&&(W[L(ge,U)]=n(L,I[ge],U));return W},r=function(L){return T(L)?L:(L=L.replace(/[\-_\s]+(.)?/g,function(I,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+L.substr(1)},i=function(L){var I=r(L);return I.substr(0,1).toUpperCase()+I.substr(1)},o=function(L,I){return function(U,W){var te=(W=W||{}).separator||"_",J=W.split||/(?=[A-Z])/;return U.split(J).join(te)}(L,I).toLowerCase()},s=Object.prototype.toString,l=function(L){return typeof L=="function"},c=function(L){return L===Object(L)},d=function(L){return s.call(L)=="[object Array]"},v=function(L){return s.call(L)=="[object Date]"},p=function(L){return s.call(L)=="[object RegExp]"},x=function(L){return s.call(L)=="[object Boolean]"},T=function(L){return(L-=0)==L},P=function(L,I){var U=I&&"process"in I?I.process:I;return typeof U!="function"?L:function(W,te){return U(W,L,te)}},R={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(L,I){return n(P(r,I),L)},decamelizeKeys:function(L,I){return n(P(o,I),L,I)},pascalizeKeys:function(L,I){return n(P(i,I),L)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=R:t.humps=R})(q5)}).decamelize,K5=function(e){if(Array.isArray(e))return e},Z5=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||l.return==null||l.return()}finally{if(i)throw o}}return n}},u1=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},J5=function(e,t){if(e){if(typeof e=="string")return u1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u1(e,t):void 0}},Q5=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
140
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},e4=function(e,t){return K5(e)||Z5(e,t)||J5(e,t)||Q5()},h_=d_(function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},t.apply(this,arguments)}e.exports=t}),t4=function(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},p_=function(e,t){if(e==null)return{};var n,r,i=t4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},n4=X.createContext(null);function jm(e){var t=e.children,n=p_(e,["children"]);return typeof t!="string"&&(t=G5(t)),X.createElement("template",h_({},n,{dangerouslySetInnerHTML:{__html:t}}))}function Bm(e){var t=e.root,n=e.children;return qm.createPortal(n,t)}function r4(e){var t=X.forwardRef(function(n,r){var i,o,s=n.mode,l=n.delegatesFocus,c=n.styleSheets,d=n.ssr,v=n.children,p=p_(n,["mode","delegatesFocus","styleSheets","ssr","children"]),x=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),T=X.useState(null),P=e4(T,2),R=P[0],L=P[1],I="node_".concat(s).concat(l);return X.useLayoutEffect(function(){if(x.current)try{if(typeof r=="function"&&r(x.current),d){var U=x.current.shadowRoot;return void L(U)}var W=x.current.attachShadow({mode:s,delegatesFocus:l});c.length>0&&(W.adoptedStyleSheets=c),L(W)}catch(te){(function(J){var ge=J.error,S=J.styleSheets,ce=J.root;switch(ge.name){case"NotSupportedError":S.length>0&&(ce.adoptedStyleSheets=S);break;default:throw ge}})({error:te,styleSheets:c,root:R})}},[r,x,c]),X.createElement(X.Fragment,null,X.createElement(e.tag,h_({key:I,ref:x},p),(R||d)&&X.createElement(n4.Provider,{value:R},d?X.createElement(jm,{shadowroot:s,shadowrootmode:s},e.render({root:R,ssr:d,children:v})):X.createElement(Bm,{root:R},e.render({root:R,ssr:d,children:v})))))});return t.propTypes={mode:_a.oneOf(["open","closed"]),delegatesFocus:_a.bool,styleSheets:_a.arrayOf(_a.instanceOf(globalThis.CSSStyleSheet)),ssr:_a.bool,children:_a.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}jm.propTypes={children:_a.oneOfType([_a.string,_a.node])},jm.defaultProps={children:""},Bm.propTypes={root:_a.object.isRequired,children:_a.node},Bm.defaultProps={children:null};var Dv=new Map;function i4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,i){var o=X5(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Dv.has(s)||Dv.set(s,r4({tag:o,render:n})),Dv.get(s)}})}var g_=i4();const o4=e=>{const t=e.isCollapsed?0:e.depth*16;return ze.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})},a4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
|
|
141
|
+
`,s4=e=>{const[t,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(e==null?void 0:e.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(t))},[t]),[t,n]};function l4(e){return ze.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:ze.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 u4(e){const{renderChildren:t,parentRef:n,onlyChild:r,dropdownLevel:i}=e,[o,s]=X.useState({top:0,left:0}),l=X.useRef(null),[c,d]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&l.current){const v=n.current.getBoundingClientRect(),p=l.current.getBoundingClientRect();let x,T;if(i===1)x=v.bottom,T=v.left,p.height+x>window.innerHeight?(console.log("overbottom"),d(window.innerHeight-x-50),x=v.bottom-p.height):x=v.bottom;else if(i>1){x=v.top,T=v.left+v.width;const P=p.height+(window.innerHeight-v.top)>window.innerHeight;P&&(console.log("overtop"),d(window.innerHeight-v.top-50)),v.top+p.height>window.innerHeight&&!P&&(x=v.top-p.height+v.height)}s({top:x,left:T})}},[n,l,i]),r?t({maxHeight:c}):qm.createPortal(ze.jsx("div",{ref:l,style:{position:"fixed",top:o.top,left:o.left,zIndex:1200},children:t({maxHeight:c})}),n.current)}const Nf=new Map;Nf.set("text",e=>{var t;return ze.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});Nf.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return ze.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return ze.jsx(t,{svgString:e.icon})});Nf.set("svgHttp",e=>ze.jsx(rg,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Nf.set("img",e=>ze.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function c4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function f4({item:e}){return(Nf.get(c4(e))||Nf.get("text"))(e)}function v_({...e}){var Ne,Je,Ye,Qe,tt;const t=e.item,n=e.level||0,r=!!((Ne=e.item.children)!=null&&Ne.length),{isActive:i}=e,o=`level-${n}`,s=i(t.id)?"active":"",l=(he,Ce=o)=>`${he} ${Ce} ${s}`,[c,d]=X.useState(!1),[v,p]=X.useState(t.isFavorite||!1),x=X.useRef(),T=X.useRef();T!=null&&T.current&&((Je=T==null?void 0:T.current)==null?void 0:Je.scrollWidth)>((Ye=T==null?void 0:T.current)==null?void 0:Ye.clientWidth);const P=window.location.origin,R=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},L=window.location.pathname.split("/")[1],I=R.pathname.split("/")[1],U=e.ssr||!P.includes("local")&&P!==R.origin||I!==L,W=r||n===0?"div":U?"a":Dp.Link,te=t.path||"#",J=n+1,ge=r&&c&&n>0,S=()=>{d(!0)},ce=()=>{d(!1)},ae="/global-menu-config/api/v1/menu-items/user/set-favorite";return ze.jsxs("div",{ref:x,className:l("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:S,onMouseOut:ce,onDragStart:he=>{n>1&&he.preventDefault()},children:[ze.jsxs(W,{to:te,href:te,draggable:"true",className:l("menu-item__link"),style:{width:"100%",transition:"all 0.3s",color:i(t.id)?((Qe=e.brandColors)==null?void 0:Qe.primary400)||ui.primary400:void 0,backgroundColor:i(t.id)&&n===1?(tt=e.brandColors)==null?void 0:tt.primary200:void 0},onDragStart:he=>{console.log("onDragStart component",he.target)},children:[ze.jsx(d4,{cls:l,item:t}),ze.jsx("span",{className:l("menu-item__label"),ref:T,children:t.name}),ze.jsx(h4,{menuLevel:n,hasChildren:r,isHovered:c,isFavorite:v,onClick:he=>{const Ce={menuConfigId:t.id,isFavorite:he},He=e.baseUrl+ae;is.post(He,Ce).then(et=>{var at;p(he),ty("Set favorite menu item successfully"),(at=e.onSetFavoriteSuccess)==null||at.call(e,e.item.id,he)}).catch(et=>{var at,Ee;Hd(((Ee=(at=et.response)==null?void 0:at.data)==null?void 0:Ee.errorMessage)||"Have error when set favorite menu item")})}}),r&&ze.jsx("div",{className:l("menu-item__icon-arrow__wrapper"),children:ze.jsx(l4,{className:l("menu-item__icon-arrow__icon")})})]}),ge&&ze.jsx(u4,{parentRef:x,onlyChild:J<2,dropdownLevel:n,renderChildren:({maxHeight:he})=>{var Ce;return ze.jsx(n_.div,{className:l("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${J}`),style:Qy({maxHeight:he,overflowY:"auto",paddingRight:3},he!=="auto"&&!!J),children:(Ce=t.children)==null?void 0:Ce.map(He=>X.createElement(v_,{...e,key:He.id,item:He,level:J}))})}})]})}function d4({item:e,cls:t}){return ze.jsx("div",{className:t("menu-item__icon"),children:ze.jsx(f4,{item:e})})}function h4(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:ui.warning,minWidth:16};if(e.menuLevel!==0)return ze.jsxs(ze.Fragment,{children:[e.isHovered&&!e.isFavorite&&ze.jsx(Il.Tooltip,{title:"Add to favorites",children:ze.jsx(r_,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&ze.jsx(Il.Tooltip,{title:"Remove from favorites",children:ze.jsx(i_,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}const p4=`.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.side-bar{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}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;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;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;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:180px;max-width:180px;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}.side-bar__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
|
|
142
|
+
`,g4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
|
|
143
|
+
`;function v4(e){const t=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:e}});window.dispatchEvent(t)}function m4(e){const t=Dp.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState(window.location.href);X.useEffect(()=>{o(window.location.href)},[t]);const s=x=>`${x}`;function l(x,T){for(const P of x){if(P.id===T)return P;if(P.children){const R=l(P.children,T);if(R)return R}}return null}console.log("favoriteItems",n);function c(x,T){const P=l(n,x);P?(P.isFavorite=T,v4(P),tb(x,T)):console.error(`Item with id ${x} not found`)}const d=x=>{console.log("Favorite menus changed",x),r(x.detail.favoriteMenus||[])};X.useEffect(()=>(window.addEventListener("favoriteMenusChange",d),()=>{window.removeEventListener("favoriteMenusChange",d)}),[]),console.log("favoriteItems",n);function v(x,T){return!T||n.indexOf(T)===-1?1:v(T,n.find(R=>R.id===T.parentKey))+1}const p=(x,T,P)=>{const R=L=>P.some(I=>I.id===L);return ze.jsx(v_,{isActive:R,brandColors:e.brandColors,baseUrl:e.baseUrl,item:x,level:T,onSetFavoriteSuccess:c})};return ze.jsx(ze.Fragment,{children:n.length?ze.jsx("div",{className:s("side-bar"),children:ze.jsx("div",{className:s("wrap-section side-bar__menu"),style:{flex:1,overflow:"auto",width:"100%",overflowY:"hidden",display:"flex",alignItems:"center",scrollbarWidth:"thin"},children:n.map(x=>ze.jsx("div",{children:p(x,v(),[])},x.id))})}):""})}function y4(e){return ze.jsx(g_.div,{children:ze.jsx(Km,{styles:[vT,p4,g4],children:ze.jsx(m4,{...e})})})}function tb(e,t){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(t)n.includes(e)||n.push(e);else{const r=n.indexOf(e);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}const Pv=localStorage.getItem("isCollapsed");function b4(e){const t=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:e}});window.dispatchEvent(t)}function w4(e){const t=Dp.useLocation(),[n,r]=X.useState([]),i=n.map(ce=>ce.data),[o,s]=X.useState(!1),[l,c]=X.useState(Pv===null?!0:Pv==="true"),[d,v]=X.useState(window.location.href),p=X.useRef(null);X.useEffect(()=>{var ce;(ce=e.handleCallback)==null||ce.call(e,i)},[i,e.handleCallback]),X.useEffect(()=>{v(window.location.href)},[t]);const x=S4(i,d);console.log("matchPaths:",d,t,x);const[T,P]=s4({initOpenIds:e.initOpenIds}),R=()=>{var ce,ae;if(c(!l),localStorage.setItem("isCollapsed",JSON.stringify(!l)),l)T&&((ce=p.current)==null||ce.open(T));else{const Ne=n.filter(Je=>Je.parent===0).map(Je=>Je.id);console.log("closeIds:",Ne),(ae=p.current)==null||ae.close(Ne)}},[L,I]=X.useState(!1),U=l?"collapsed":"expanded",W=ce=>`${ce} ${U}`,te=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var ae,Ne;try{const Je=e.menuPath||"/global-menu-config/api/v1/menu-items/user",Ye=e.baseUrl+Je,{data:Qe}=await is.get(Ye);let tt=Qe.map(Ce=>({...Ce,parentKey:Ce.parentKey||0}));tt=y_(tt),e.replacePath&&(tt=m_(tt,e.replacePath));const he=tt.map(Ce=>({id:Ce.id,parent:Ce.parentKey,text:Ce.name,data:Ce}));r(he)}catch(Je){console.error(Je),Hd(((Ne=(ae=Je.response)==null?void 0:ae.data)==null?void 0:Ne.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]),X.useEffect(()=>{const ce=JSON.parse(localStorage.getItem("favoriteItems")||"[]");let ae=[];ce.forEach(Ye=>{const Qe=i.find(tt=>tt.id===Ye);Qe&&(ae=[...ae,Qe])});function Ne(Ye){return i.every(Qe=>Qe.parentKey!==Ye.id)?Ye:{...Ye,children:i.filter(Qe=>Qe.parentKey===Ye.id).map(Qe=>Ne(Qe))}}const Je=ae.map(Ye=>Ne(Ye));b4(Je)},[i]);function J(ce){const ae=ce.detail.menuItem;r(Ne=>Ne.map(Je=>Je.id!==ae.id?Je:{...Je,data:ae}))}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",J),()=>{window.removeEventListener("updateFavoriteMenu",J)}),[]),X.useLayoutEffect(()=>{var Je;const ce=localStorage.getItem("scrollPos");ce&&te.current&&setTimeout(()=>{const Ye=te.current.getScrollElement();Ye.scrollTop=parseInt(ce)},0);const ae=()=>{if(te.current){const Ye=te.current.getScrollElement();localStorage.setItem("scrollPos",Ye.scrollTop.toString())}},Ne=(Je=te.current)==null?void 0:Je.getScrollElement();return Ne==null||Ne.addEventListener("scroll",ae),()=>{Ne==null||Ne.removeEventListener("scroll",ae)}},[i]);function ge(ce){s(!0);const ae=[...n];r(ce);const Ne=ce.map((Je,Ye)=>({menuItemId:Je.id,order:Ye}));is.post("/global-menu-config/api/v1/menu-items/user",Ne,{baseURL:e.baseUrl}).then(()=>{}).catch(Je=>{console.error(Je),r(ae)}).finally(()=>{s(!1)})}const S=X.useMemo(()=>Pv==="false"?T:[],[]);return ze.jsxs("div",{className:W("side-bar"),children:[ze.jsx("div",{className:W("wrap-section side-bar__wrapper-toggle-btn"),children:ze.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:l?ze.jsx($5,{}):ze.jsx(B5,{})})}),ze.jsx(gT,{ref:te,className:W("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:ze.jsx(TV,{backend:c3,options:I3(),children:ze.jsx(J3,{ref:p,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:ge,render:(ce,ae)=>{function Ne(tt){return n.every(he=>he.parent!==tt.id)?tt:{...tt,children:n.filter(he=>he.parent===tt.id).map(he=>Ne(he.data))}}const Je=Ne(ce.data),Ye=tt=>x.some(he=>he.id===tt);function Qe(tt,he){r(Ce=>Ce.map(He=>He.id===tt?{...He,data:{...He.data,isFavorite:he}}:He)),tb(tt,he)}return ze.jsx(f_,{isActive:Ye,isCollapsed:l,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:ce,params:ae,nodes:n,item:Je,expanded:()=>!1,toggleExpand:()=>{},level:ae.depth,onSetFavoriteSuccess:Qe})},placeholderRender:(ce,{depth:ae})=>{var Ne;return ze.jsx(o4,{node:ce,depth:ae,color:(Ne=e.brandColors)==null?void 0:Ne.primary300,isCollapsed:l})},canDrag:()=>!o,canDrop:(ce,{dragSource:ae,dropTargetId:Ne})=>(ae==null?void 0:ae.parent)===Ne,onDragStart:ce=>{console.log("onDragStart",ce)},onChangeOpen:ce=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",ce),P(ce))},initialOpen:S})})}),ze.jsxs("div",{className:W("wrap-section side-bar__wrap-btn-logout"),children:[ze.jsxs("button",{className:W("side-bar__logout-btn"),onClick:()=>I(!0),children:[ze.jsx(V5,{className:W("side-bar__icon-logout")}),ze.jsx("span",{className:W("side-bar__logout-btn__text"),children:"Logout"})]}),ze.jsx(O1,{isOpen:L,onClose:()=>I(!1),onConfirm:()=>e.logout?e.logout():j1(e.baseUrl)})]})]})}function x4(e,t){const n=new URL(e).searchParams,r=new URL(t).searchParams;return Array.from(r).filter(([i,o])=>o===n.get(i)).length}function S4(e,t){var c;console.log("menuItems:",e);const n=new URL(t);let r=e.filter(d=>d.path&&d.path.includes("http")).map(d=>({item:d,itemUrl:new URL(d.path),matchingParamsCount:x4(t,d.path)})).sort((d,v)=>{const p=new URL(d.itemUrl).searchParams,x=new URL(v.itemUrl).searchParams;return Array.from(p).length-Array.from(x).length}).filter(({itemUrl:d})=>n.origin===d.origin);const i=r.filter(({itemUrl:d})=>n.pathname===d.pathname),o=r.filter(({itemUrl:d})=>n.pathname.includes(d.pathname));r=i.length>0?i:o,r=r.sort((d,v)=>v.matchingParamsCount-d.matchingParamsCount);let s=r.length>0?(c=r.find(d=>d.item.parentKey))==null?void 0:c.item:null;console.log("matchingItems:",r);let l=[];for(;s;)l=[s,...l],s=e.find(d=>d.id===(s==null?void 0:s.parentKey))||null;return console.log("parents:",l),l}function m_(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=m_(n.children,t)):n.path=t(n.path),n})}function y_(e){return e.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=y_(n.children)),n))}function T4(e){return ze.jsx(g_.div,{children:ze.jsx(Km,{styles:[vT,H5,a4],style:{position:"sticky",zIndex:20},children:ze.jsx(w4,{...e})})})}const C4={"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 kp={exports:{}};/**
|
|
144
|
+
* @license
|
|
145
|
+
* Lodash <https://lodash.com/>
|
|
146
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
147
|
+
* Released under MIT license <https://lodash.com/license>
|
|
148
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
149
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
150
|
+
*/kp.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,v="__lodash_placeholder__",p=1,x=2,T=4,P=1,R=2,L=1,I=2,U=4,W=8,te=16,J=32,ge=64,S=128,ce=256,ae=512,Ne=30,Je="...",Ye=800,Qe=16,tt=1,he=2,Ce=3,He=1/0,et=9007199254740991,at=17976931348623157e292,Ee=0/0,Pe=4294967295,Ve=Pe-1,Ue=Pe>>>1,Re=[["ary",S],["bind",L],["bindKey",I],["curry",W],["curryRight",te],["flip",ae],["partial",J],["partialRight",ge],["rearg",ce]],Fe="[object Arguments]",Ge="[object Array]",lt="[object AsyncFunction]",mt="[object Boolean]",wt="[object Date]",vt="[object DOMException]",Et="[object Error]",ot="[object Function]",$t="[object GeneratorFunction]",Ht="[object Map]",Xn="[object Number]",br="[object Null]",Kn="[object Object]",kn="[object Promise]",ji="[object Proxy]",Dr="[object RegExp]",rr="[object Set]",cn="[object String]",hn="[object Symbol]",pn="[object Undefined]",gt="[object WeakMap]",Rn="[object WeakSet]",fi="[object ArrayBuffer]",un="[object DataView]",Bi="[object Float32Array]",$i="[object Float64Array]",Vi="[object Int8Array]",Pr="[object Int16Array]",Un="[object Int32Array]",Rr="[object Uint8Array]",wr="[object Uint8ClampedArray]",qr="[object Uint16Array]",Xr="[object Uint32Array]",Do=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ir=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,di=RegExp(ir.source),Hi=RegExp(Zt.source),In=/<%-([\s\S]+?)%>/g,gn=/<%([\s\S]+?)%>/g,hi=/<%=([\s\S]+?)%>/g,pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mn=/^\w*$/,lo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/[\\^$.*+?()[\]{}|]/g,gi=RegExp(xr.source),fn=/^\s+/,Ti=/\s/,Ra=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ia=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,uo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,co=/[()=,{}\[\]\/\s]/,Po=/\\(\\)?/g,Ci=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vi=/\w*$/,Ei=/^[-+]0x[0-9a-f]+$/i,fo=/^0b[01]+$/i,ki=/^\[object .+?Constructor\]$/,Jr=/^0o[0-7]+$/i,Sr=/^(?:0|[1-9]\d*)$/,Ir=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qr=/($^)/,Ar=/['\n\r\u2028\u2029\\]/g,Wn="\\ud800-\\udfff",vn="\\u0300-\\u036f",Mr="\\ufe20-\\ufe2f",Tr="\\u20d0-\\u20ff",An=vn+Mr+Tr,mi="\\u2700-\\u27bf",Lr="a-z\\xdf-\\xf6\\xf8-\\xff",ei="\\xac\\xb1\\xd7\\xf7",Jn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ti="\\u2000-\\u206f",ni=" \\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",Ui="A-Z\\xc0-\\xd6\\xd8-\\xde",Pn="\\ufe0e\\ufe0f",Cr=ei+Jn+ti+ni,fr="['’]",Ro="["+Wn+"]",Wi="["+Cr+"]",Fr="["+An+"]",E="\\d+",j="["+mi+"]",q="["+Lr+"]",re="[^"+Wn+Cr+E+mi+Lr+Ui+"]",Oe="\\ud83c[\\udffb-\\udfff]",be="(?:"+Fr+"|"+Oe+")",Me="[^"+Wn+"]",rt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Ui+"]",bt="\\u200d",Ut="(?:"+q+"|"+re+")",Qn="(?:"+Tt+"|"+re+")",zn="(?:"+fr+"(?:d|ll|m|re|s|t|ve))?",_n="(?:"+fr+"(?:D|LL|M|RE|S|T|VE))?",Nr=be+"?",or="["+Pn+"]?",zi="(?:"+bt+"(?:"+[Me,rt,yt].join("|")+")"+or+Nr+")*",yi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jr=or+Nr+zi,Io="(?:"+[j,rt,yt].join("|")+")"+jr,Vs="(?:"+[Me+Fr+"?",Fr,rt,yt,Ro].join("|")+")",Aa=RegExp(fr,"g"),Ma=RegExp(Fr,"g"),La=RegExp(Oe+"(?="+Oe+")|"+Vs+jr,"g"),Fa=RegExp([Tt+"?"+q+"+"+zn+"(?="+[Wi,Tt,"$"].join("|")+")",Qn+"+"+_n+"(?="+[Wi,Tt+Ut,"$"].join("|")+")",Tt+"?"+Ut+"+"+zn,Tt+"+"+_n,Yi,yi,E,Io].join("|"),"g"),bi=RegExp("["+bt+Wn+An+Pn+"]"),Ao=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ra=["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"],sn=-1,Qt={};Qt[Bi]=Qt[$i]=Qt[Vi]=Qt[Pr]=Qt[Un]=Qt[Rr]=Qt[wr]=Qt[qr]=Qt[Xr]=!0,Qt[Fe]=Qt[Ge]=Qt[fi]=Qt[mt]=Qt[un]=Qt[wt]=Qt[Et]=Qt[ot]=Qt[Ht]=Qt[Xn]=Qt[Kn]=Qt[Dr]=Qt[rr]=Qt[cn]=Qt[gt]=!1;var Vt={};Vt[Fe]=Vt[Ge]=Vt[fi]=Vt[un]=Vt[mt]=Vt[wt]=Vt[Bi]=Vt[$i]=Vt[Vi]=Vt[Pr]=Vt[Un]=Vt[Ht]=Vt[Xn]=Vt[Kn]=Vt[Dr]=Vt[rr]=Vt[cn]=Vt[hn]=Vt[Rr]=Vt[wr]=Vt[qr]=Vt[Xr]=!0,Vt[Et]=Vt[ot]=Vt[gt]=!1;var _i={À:"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"},ri={"&":"&","<":"<",">":">",'"':""","'":"'"},Mo={"&":"&","<":"<",">":">",""":'"',"'":"'"},wi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dr=parseFloat,Na=parseInt,ia=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,as=typeof self=="object"&&self&&self.Object===Object&&self,yn=ia||as||Function("return this")(),Lo=t&&!t.nodeType&&t,xi=Lo&&!0&&e&&!e.nodeType&&e,ss=xi&&xi.exports===Lo,ho=ss&&ia.process,er=function(){try{var Q=xi&&xi.require&&xi.require("util").types;return Q||ho&&ho.binding&&ho.binding("util")}catch{}}(),f=er&&er.isArrayBuffer,m=er&&er.isDate,C=er&&er.isMap,_=er&&er.isRegExp,N=er&&er.isSet,B=er&&er.isTypedArray;function H(Q,pe,de){switch(de.length){case 0:return Q.call(pe);case 1:return Q.call(pe,de[0]);case 2:return Q.call(pe,de[0],de[1]);case 3:return Q.call(pe,de[0],de[1],de[2])}return Q.apply(pe,de)}function ue(Q,pe,de,$e){for(var We=-1,ft=Q==null?0:Q.length;++We<ft;){var dt=Q[We];pe($e,dt,de(dt),Q)}return $e}function oe(Q,pe){for(var de=-1,$e=Q==null?0:Q.length;++de<$e&&pe(Q[de],de,Q)!==!1;);return Q}function we(Q,pe){for(var de=Q==null?0:Q.length;de--&&pe(Q[de],de,Q)!==!1;);return Q}function Le(Q,pe){for(var de=-1,$e=Q==null?0:Q.length;++de<$e;)if(!pe(Q[de],de,Q))return!1;return!0}function je(Q,pe){for(var de=-1,$e=Q==null?0:Q.length,We=0,ft=[];++de<$e;){var dt=Q[de];pe(dt,de,Q)&&(ft[We++]=dt)}return ft}function ke(Q,pe){var de=Q==null?0:Q.length;return!!de&&on(Q,pe,0)>-1}function qe(Q,pe,de){for(var $e=-1,We=Q==null?0:Q.length;++$e<We;)if(de(pe,Q[$e]))return!0;return!1}function ct(Q,pe){for(var de=-1,$e=Q==null?0:Q.length,We=Array($e);++de<$e;)We[de]=pe(Q[de],de,Q);return We}function Dt(Q,pe){for(var de=-1,$e=pe.length,We=Q.length;++de<$e;)Q[We+de]=pe[de];return Q}function It(Q,pe,de,$e){var We=-1,ft=Q==null?0:Q.length;for($e&&ft&&(de=Q[++We]);++We<ft;)de=pe(de,Q[We],We,Q);return de}function Mn(Q,pe,de,$e){var We=Q==null?0:Q.length;for($e&&We&&(de=Q[--We]);We--;)de=pe(de,Q[We],We,Q);return de}function dn(Q,pe){for(var de=-1,$e=Q==null?0:Q.length;++de<$e;)if(pe(Q[de],de,Q))return!0;return!1}var Br=k("length");function $r(Q){return Q.split("")}function Wt(Q){return Q.match(uo)||[]}function Vr(Q,pe,de){var $e;return de(Q,function(We,ft,dt){if(pe(We,ft,dt))return $e=ft,!1}),$e}function zt(Q,pe,de,$e){for(var We=Q.length,ft=de+($e?1:-1);$e?ft--:++ft<We;)if(pe(Q[ft],ft,Q))return ft;return-1}function on(Q,pe,de){return pe===pe?Lu(Q,pe,de):zt(Q,go,de)}function po(Q,pe,de,$e){for(var We=de-1,ft=Q.length;++We<ft;)if($e(Q[We],pe))return We;return-1}function go(Q){return Q!==Q}function Er(Q,pe){var de=Q==null?0:Q.length;return de?Se(Q,pe)/de:Ee}function k(Q){return function(pe){return pe==null?n:pe[Q]}}function F(Q){return function(pe){return Q==null?n:Q[pe]}}function z(Q,pe,de,$e,We){return We(Q,function(ft,dt,ut){de=$e?($e=!1,ft):pe(de,ft,dt,ut)}),de}function ne(Q,pe){var de=Q.length;for(Q.sort(pe);de--;)Q[de]=Q[de].value;return Q}function Se(Q,pe){for(var de,$e=-1,We=Q.length;++$e<We;){var ft=pe(Q[$e]);ft!==n&&(de=de===n?ft:de+ft)}return de}function Te(Q,pe){for(var de=-1,$e=Array(Q);++de<Q;)$e[de]=pe(de);return $e}function Be(Q,pe){return ct(pe,function(de){return[de,Q[de]]})}function nt(Q){return Q&&Q.slice(0,Ws(Q)+1).replace(fn,"")}function xt(Q){return function(pe){return Q(pe)}}function Nt(Q,pe){return ct(pe,function(de){return Q[de]})}function Ot(Q,pe){return Q.has(pe)}function Ct(Q,pe){for(var de=-1,$e=Q.length;++de<$e&&on(pe,Q[de],0)>-1;);return de}function Bn(Q,pe){for(var de=Q.length;de--&&on(pe,Q[de],0)>-1;);return de}function Tn(Q,pe){for(var de=Q.length,$e=0;de--;)Q[de]===pe&&++$e;return $e}var Yn=F(_i),oa=F(ri);function ls(Q){return"\\"+wi[Q]}function aa(Q,pe){return Q==null?n:Q[pe]}function ii(Q){return bi.test(Q)}function Hs(Q){return Ao.test(Q)}function vo(Q){for(var pe,de=[];!(pe=Q.next()).done;)de.push(pe.value);return de}function us(Q){var pe=-1,de=Array(Q.size);return Q.forEach(function($e,We){de[++pe]=[We,$e]}),de}function sa(Q,pe){return function(de){return Q(pe(de))}}function Si(Q,pe){for(var de=-1,$e=Q.length,We=0,ft=[];++de<$e;){var dt=Q[de];(dt===pe||dt===v)&&(Q[de]=v,ft[We++]=de)}return ft}function Gi(Q){var pe=-1,de=Array(Q.size);return Q.forEach(function($e){de[++pe]=$e}),de}function Us(Q){var pe=-1,de=Array(Q.size);return Q.forEach(function($e){de[++pe]=[$e,$e]}),de}function Lu(Q,pe,de){for(var $e=de-1,We=Q.length;++$e<We;)if(Q[$e]===pe)return $e;return-1}function la(Q,pe,de){for(var $e=de+1;$e--;)if(Q[$e]===pe)return $e;return $e}function mo(Q){return ii(Q)?fs(Q):Br(Q)}function hr(Q){return ii(Q)?ee(Q):$r(Q)}function Ws(Q){for(var pe=Q.length;pe--&&Ti.test(Q.charAt(pe)););return pe}var cs=F(Mo);function fs(Q){for(var pe=La.lastIndex=0;La.test(Q);)++pe;return pe}function ee(Q){return Q.match(La)||[]}function ye(Q){return Q.match(Fa)||[]}var De=function Q(pe){pe=pe==null?yn:_e.defaults(yn.Object(),pe,_e.pick(yn,ra));var de=pe.Array,$e=pe.Date,We=pe.Error,ft=pe.Function,dt=pe.Math,ut=pe.Object,At=pe.RegExp,kt=pe.String,Yt=pe.TypeError,Ln=de.prototype,ar=ft.prototype,Gn=ut.prototype,Hr=pe["__core-js_shared__"],qi=ar.toString,Mt=Gn.hasOwnProperty,Uc=0,On=function(){var a=/[^.]+$/.exec(Hr&&Hr.keys&&Hr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),ua=Gn.toString,Fu=qi.call(ut),Dn=yn._,ds=At("^"+qi.call(Mt).replace(xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hs=ss?pe.Buffer:n,yo=pe.Symbol,ps=pe.Uint8Array,jl=hs?hs.allocUnsafe:n,gs=sa(ut.getPrototypeOf,ut),Nu=ut.create,ju=Gn.propertyIsEnumerable,ja=Ln.splice,Bl=yo?yo.isConcatSpreadable:n,Fo=yo?yo.iterator:n,Xi=yo?yo.toStringTag:n,No=function(){try{var a=hc(ut,"defineProperty");return a({},"",{}),a}catch{}}(),zs=pe.clearTimeout!==yn.clearTimeout&&pe.clearTimeout,Ys=$e&&$e.now!==yn.Date.now&&$e.now,$l=pe.setTimeout!==yn.setTimeout&&pe.setTimeout,Gs=dt.ceil,vs=dt.floor,qs=ut.getOwnPropertySymbols,Bu=hs?hs.isBuffer:n,$u=pe.isFinite,ms=Ln.join,Vu=sa(ut.keys,ut),Fn=dt.max,Nn=dt.min,Hu=$e.now,Uu=pe.parseInt,jo=dt.random,Wc=Ln.reverse,Bo=hc(pe,"DataView"),Ki=hc(pe,"Map"),Xs=hc(pe,"Promise"),Ur=hc(pe,"Set"),ca=hc(pe,"WeakMap"),fa=hc(ut,"create"),da=ca&&new ca,ha={},Ks=pc(Bo),zc=pc(Ki),Yc=pc(Xs),Vl=pc(Ur),Zs=pc(ca),ys=yo?yo.prototype:n,Js=ys?ys.valueOf:n,Ba=ys?ys.toString:n;function G(a){if(lr(a)&&!Xt(a)&&!(a instanceof qt)){if(a instanceof Wr)return a;if(Mt.call(a,"__wrapped__"))return Eb(a)}return new Wr(a)}var pa=function(){function a(){}return function(u){if(!tr(u))return{};if(Nu)return Nu(u);a.prototype=u;var y=new a;return a.prototype=n,y}}();function $a(){}function Wr(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}G.templateSettings={escape:In,evaluate:gn,interpolate:hi,variable:"",imports:{_:G}},G.prototype=$a.prototype,G.prototype.constructor=G,Wr.prototype=pa($a.prototype),Wr.prototype.constructor=Wr;function qt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pe,this.__views__=[]}function Hl(){var a=new qt(this.__wrapped__);return a.__actions__=vr(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=vr(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=vr(this.__views__),a}function bs(){if(this.__filtered__){var a=new qt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Qs(){var a=this.__wrapped__.value(),u=this.__dir__,y=Xt(a),D=u<0,V=y?a.length:0,K=oO(0,V,this.__views__),le=K.start,me=K.end,xe=me-le,Xe=D?me:le-1,Ke=this.__iteratees__,it=Ke.length,pt=0,_t=Nn(xe,this.__takeCount__);if(!y||!D&&V==xe&&_t==xe)return si(a,this.__actions__);var Lt=[];e:for(;xe--&&pt<_t;){Xe+=u;for(var tn=-1,Ft=a[Xe];++tn<it;){var rn=Ke[tn],an=rn.iteratee,Go=rn.type,ro=an(Ft);if(Go==he)Ft=ro;else if(!ro){if(Go==tt)continue e;break e}}Lt[pt++]=Ft}return Lt}qt.prototype=pa($a.prototype),qt.prototype.constructor=qt;function bo(a){var u=-1,y=a==null?0:a.length;for(this.clear();++u<y;){var D=a[u];this.set(D[0],D[1])}}function ws(){this.__data__=fa?fa(null):{},this.size=0}function Ul(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Wl(a){var u=this.__data__;if(fa){var y=u[a];return y===c?n:y}return Mt.call(u,a)?u[a]:n}function zl(a){var u=this.__data__;return fa?u[a]!==n:Mt.call(u,a)}function Gc(a,u){var y=this.__data__;return this.size+=this.has(a)?0:1,y[a]=fa&&u===n?c:u,this}bo.prototype.clear=ws,bo.prototype.delete=Ul,bo.prototype.get=Wl,bo.prototype.has=zl,bo.prototype.set=Gc;function wo(a){var u=-1,y=a==null?0:a.length;for(this.clear();++u<y;){var D=a[u];this.set(D[0],D[1])}}function qc(){this.__data__=[],this.size=0}function $f(a){var u=this.__data__,y=Di(u,a);if(y<0)return!1;var D=u.length-1;return y==D?u.pop():ja.call(u,y,1),--this.size,!0}function Vf(a){var u=this.__data__,y=Di(u,a);return y<0?n:u[y][1]}function Xc(a){return Di(this.__data__,a)>-1}function Hf(a,u){var y=this.__data__,D=Di(y,a);return D<0?(++this.size,y.push([a,u])):y[D][1]=u,this}wo.prototype.clear=qc,wo.prototype.delete=$f,wo.prototype.get=Vf,wo.prototype.has=Xc,wo.prototype.set=Hf;function $o(a){var u=-1,y=a==null?0:a.length;for(this.clear();++u<y;){var D=a[u];this.set(D[0],D[1])}}function Yl(){this.size=0,this.__data__={hash:new bo,map:new(Ki||wo),string:new bo}}function Gl(a){var u=th(this,a).delete(a);return this.size-=u?1:0,u}function Uf(a){return th(this,a).get(a)}function Wu(a){return th(this,a).has(a)}function ql(a,u){var y=th(this,a),D=y.size;return y.set(a,u),this.size+=y.size==D?0:1,this}$o.prototype.clear=Yl,$o.prototype.delete=Gl,$o.prototype.get=Uf,$o.prototype.has=Wu,$o.prototype.set=ql;function Va(a){var u=-1,y=a==null?0:a.length;for(this.__data__=new $o;++u<y;)this.add(a[u])}function Wf(a){return this.__data__.set(a,c),this}function zf(a){return this.__data__.has(a)}Va.prototype.add=Va.prototype.push=Wf,Va.prototype.has=zf;function Zi(a){var u=this.__data__=new wo(a);this.size=u.size}function Vo(){this.__data__=new wo,this.size=0}function zu(a){var u=this.__data__,y=u.delete(a);return this.size=u.size,y}function Xl(a){return this.__data__.get(a)}function nn(a){return this.__data__.has(a)}function Ha(a,u){var y=this.__data__;if(y instanceof wo){var D=y.__data__;if(!Ki||D.length<i-1)return D.push([a,u]),this.size=++y.size,this;y=this.__data__=new $o(D)}return y.set(a,u),this.size=y.size,this}Zi.prototype.clear=Vo,Zi.prototype.delete=zu,Zi.prototype.get=Xl,Zi.prototype.has=nn,Zi.prototype.set=Ha;function ga(a,u){var y=Xt(a),D=!y&&gc(a),V=!y&&!D&&cu(a),K=!y&&!D&&!V&&cf(a),le=y||D||V||K,me=le?Te(a.length,kt):[],xe=me.length;for(var Xe in a)(u||Mt.call(a,Xe))&&!(le&&(Xe=="length"||V&&(Xe=="offset"||Xe=="parent")||K&&(Xe=="buffer"||Xe=="byteLength"||Xe=="byteOffset")||yl(Xe,xe)))&&me.push(Xe);return me}function ln(a){var u=a.length;return u?a[nu(0,u-1)]:n}function Oi(a,u){return nh(vr(a),va(u,0,a.length))}function Ua(a){return nh(vr(a))}function xs(a,u,y){(y!==n&&!Ja(a[u],y)||y===n&&!(u in a))&&pr(a,u,y)}function $n(a,u,y){var D=a[u];(!(Mt.call(a,u)&&Ja(D,y))||y===n&&!(u in a))&&pr(a,u,y)}function Di(a,u){for(var y=a.length;y--;)if(Ja(a[y][0],u))return y;return-1}function Wa(a,u,y,D){return ma(a,function(V,K,le){u(D,V,y(V),le)}),D}function Ji(a,u){return a&&To(u,li(u),a)}function za(a,u){return a&&To(u,Eo(u),a)}function pr(a,u,y){u=="__proto__"&&No?No(a,u,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[u]=y}function Yu(a,u){for(var y=-1,D=u.length,V=de(D),K=a==null;++y<D;)V[y]=K?n:Eg(a,u[y]);return V}function va(a,u,y){return a===a&&(y!==n&&(a=a<=y?a:y),u!==n&&(a=a>=u?a:u)),a}function zr(a,u,y,D,V,K){var le,me=u&p,xe=u&x,Xe=u&T;if(y&&(le=V?y(a,D,V,K):y(a)),le!==n)return le;if(!tr(a))return a;var Ke=Xt(a);if(Ke){if(le=sO(a),!me)return vr(a,le)}else{var it=Ai(a),pt=it==ot||it==$t;if(cu(a))return uc(a,me);if(it==Kn||it==Fe||pt&&!V){if(le=xe||pt?{}:vb(a),!me)return xe?lu(a,za(le,a)):sf(a,Ji(le,a))}else{if(!Vt[it])return V?a:{};le=lO(a,it,me)}}K||(K=new Zi);var _t=K.get(a);if(_t)return _t;K.set(a,le),zb(a)?a.forEach(function(Ft){le.add(zr(Ft,u,y,Ft,a,K))}):Ub(a)&&a.forEach(function(Ft,rn){le.set(rn,zr(Ft,u,y,rn,a,K))});var Lt=Xe?xe?fg:cg:xe?Eo:li,tn=Ke?n:Lt(a);return oe(tn||a,function(Ft,rn){tn&&(rn=Ft,Ft=a[rn]),$n(le,rn,zr(Ft,u,y,rn,a,K))}),le}function Gu(a){var u=li(a);return function(y){return Kc(y,a,u)}}function Kc(a,u,y){var D=y.length;if(a==null)return!D;for(a=ut(a);D--;){var V=y[D],K=u[V],le=a[V];if(le===n&&!(V in a)||!K(le))return!1}return!0}function qu(a,u,y){if(typeof a!="function")throw new Yt(s);return Kf(function(){a.apply(n,y)},u)}function Ho(a,u,y,D){var V=-1,K=ke,le=!0,me=a.length,xe=[],Xe=u.length;if(!me)return xe;y&&(u=ct(u,xt(y))),D?(K=qe,le=!1):u.length>=i&&(K=Ot,le=!1,u=new Va(u));e:for(;++V<me;){var Ke=a[V],it=y==null?Ke:y(Ke);if(Ke=D||Ke!==0?Ke:0,le&&it===it){for(var pt=Xe;pt--;)if(u[pt]===it)continue e;xe.push(Ke)}else K(u,it,D)||xe.push(Ke)}return xe}var ma=w(xo),Xu=w(Ju,!0);function Kl(a,u){var y=!0;return ma(a,function(D,V,K){return y=!!u(D,V,K),y}),y}function Zl(a,u,y){for(var D=-1,V=a.length;++D<V;){var K=a[D],le=u(K);if(le!=null&&(me===n?le===le&&!Yo(le):y(le,me)))var me=le,xe=K}return xe}function Zc(a,u,y,D){var V=a.length;for(y=en(y),y<0&&(y=-y>V?0:V+y),D=D===n||D>V?V:en(D),D<0&&(D+=V),D=y>D?0:Gb(D);y<D;)a[y++]=u;return a}function Ku(a,u){var y=[];return ma(a,function(D,V,K){u(D,V,K)&&y.push(D)}),y}function gr(a,u,y,D,V){var K=-1,le=a.length;for(y||(y=cO),V||(V=[]);++K<le;){var me=a[K];u>0&&y(me)?u>1?gr(me,u-1,y,D,V):Dt(V,me):D||(V[V.length]=me)}return V}var Zu=A(),Jc=A(!0);function xo(a,u){return a&&Zu(a,u,li)}function Ju(a,u){return a&&Jc(a,u,li)}function Jl(a,u){return je(u,function(y){return bl(a[y])})}function Ya(a,u){u=zo(u,a);for(var y=0,D=u.length;a!=null&&y<D;)a=a[Ds(u[y++])];return y&&y==D?a:n}function el(a,u,y){var D=u(a);return Xt(a)?D:Dt(D,y(a))}function kr(a){return a==null?a===n?pn:br:Xi&&Xi in ut(a)?iO(a):mO(a)}function tl(a,u){return a>u}function nl(a,u){return a!=null&&Mt.call(a,u)}function Qc(a,u){return a!=null&&u in ut(a)}function rl(a,u,y){return a>=Nn(u,y)&&a<Fn(u,y)}function Ss(a,u,y){for(var D=y?qe:ke,V=a[0].length,K=a.length,le=K,me=de(K),xe=1/0,Xe=[];le--;){var Ke=a[le];le&&u&&(Ke=ct(Ke,xt(u))),xe=Nn(Ke.length,xe),me[le]=!y&&(u||V>=120&&Ke.length>=120)?new Va(le&&Ke):n}Ke=a[0];var it=-1,pt=me[0];e:for(;++it<V&&Xe.length<xe;){var _t=Ke[it],Lt=u?u(_t):_t;if(_t=y||_t!==0?_t:0,!(pt?Ot(pt,Lt):D(Xe,Lt,y))){for(le=K;--le;){var tn=me[le];if(!(tn?Ot(tn,Lt):D(a[le],Lt,y)))continue e}pt&&pt.push(Lt),Xe.push(_t)}}return Xe}function Qu(a,u,y,D){return xo(a,function(V,K,le){u(D,y(V),K,le)}),D}function Pi(a,u,y){u=zo(u,a),a=wb(a,u);var D=a==null?a:a[Ds(ba(u))];return D==null?n:H(D,a,y)}function il(a){return lr(a)&&kr(a)==Fe}function Ql(a){return lr(a)&&kr(a)==fi}function Ga(a){return lr(a)&&kr(a)==wt}function Ts(a,u,y,D,V){return a===u?!0:a==null||u==null||!lr(a)&&!lr(u)?a!==a&&u!==u:ec(a,u,y,D,Ts,V)}function ec(a,u,y,D,V,K){var le=Xt(a),me=Xt(u),xe=le?Ge:Ai(a),Xe=me?Ge:Ai(u);xe=xe==Fe?Kn:xe,Xe=Xe==Fe?Kn:Xe;var Ke=xe==Kn,it=Xe==Kn,pt=xe==Xe;if(pt&&cu(a)){if(!cu(u))return!1;le=!0,Ke=!1}if(pt&&!Ke)return K||(K=new Zi),le||cf(a)?vl(a,u,y,D,V,K):lg(a,u,xe,y,D,V,K);if(!(y&P)){var _t=Ke&&Mt.call(a,"__wrapped__"),Lt=it&&Mt.call(u,"__wrapped__");if(_t||Lt){var tn=_t?a.value():a,Ft=Lt?u.value():u;return K||(K=new Zi),V(tn,Ft,y,D,K)}}return pt?(K||(K=new Zi),ug(a,u,y,D,V,K)):!1}function qa(a){return lr(a)&&Ai(a)==Ht}function tc(a,u,y,D){var V=y.length,K=V,le=!D;if(a==null)return!K;for(a=ut(a);V--;){var me=y[V];if(le&&me[2]?me[1]!==a[me[0]]:!(me[0]in a))return!1}for(;++V<K;){me=y[V];var xe=me[0],Xe=a[xe],Ke=me[1];if(le&&me[2]){if(Xe===n&&!(xe in a))return!1}else{var it=new Zi;if(D)var pt=D(Xe,Ke,xe,a,u,it);if(!(pt===n?Ts(Ke,Xe,P|R,D,it):pt))return!1}}return!0}function nc(a){if(!tr(a)||dO(a))return!1;var u=bl(a)?ds:ki;return u.test(pc(a))}function So(a){return lr(a)&&kr(a)==Dr}function Yf(a){return lr(a)&&Ai(a)==rr}function Gf(a){return lr(a)&&lh(a.length)&&!!Qt[kr(a)]}function Cs(a){return typeof a=="function"?a:a==null?ko:typeof a=="object"?Xt(a)?eo(a[0],a[1]):Uo(a):i0(a)}function ol(a){if(!Xf(a))return Vu(a);var u=[];for(var y in ut(a))Mt.call(a,y)&&y!="constructor"&&u.push(y);return u}function eu(a){if(!tr(a))return vO(a);var u=Xf(a),y=[];for(var D in a)D=="constructor"&&(u||!Mt.call(a,D))||y.push(D);return y}function Qi(a,u){return a<u}function Es(a,u){var y=-1,D=Co(a)?de(a.length):[];return ma(a,function(V,K,le){D[++y]=u(V,K,le)}),D}function Uo(a){var u=hg(a);return u.length==1&&u[0][2]?yb(u[0][0],u[0][1]):function(y){return y===a||tc(y,a,u)}}function eo(a,u){return gg(a)&&mb(u)?yb(Ds(a),u):function(y){var D=Eg(y,a);return D===n&&D===u?kg(y,a):Ts(u,D,P|R)}}function ks(a,u,y,D,V){a!==u&&Zu(u,function(K,le){if(V||(V=new Zi),tr(K))Ri(a,u,le,y,ks,D,V);else{var me=D?D(mg(a,le),K,le+"",a,u,V):n;me===n&&(me=K),xs(a,le,me)}},Eo)}function Ri(a,u,y,D,V,K,le){var me=mg(a,y),xe=mg(u,y),Xe=le.get(xe);if(Xe){xs(a,y,Xe);return}var Ke=K?K(me,xe,y+"",a,u,le):n,it=Ke===n;if(it){var pt=Xt(xe),_t=!pt&&cu(xe),Lt=!pt&&!_t&&cf(xe);Ke=xe,pt||_t||Lt?Xt(me)?Ke=me:mr(me)?Ke=vr(me):_t?(it=!1,Ke=uc(xe,!0)):Lt?(it=!1,Ke=cc(xe,!0)):Ke=[]:Zf(xe)||gc(xe)?(Ke=me,gc(me)?Ke=qb(me):(!tr(me)||bl(me))&&(Ke=vb(xe))):it=!1}it&&(le.set(xe,Ke),V(Ke,xe,D,K,le),le.delete(xe)),xs(a,y,Ke)}function Xa(a,u){var y=a.length;if(y)return u+=u<0?y:0,yl(u,y)?a[u]:n}function tu(a,u,y){u.length?u=ct(u,function(K){return Xt(K)?function(le){return Ya(le,K.length===1?K[0]:K)}:K}):u=[ko];var D=-1;u=ct(u,xt(Rt()));var V=Es(a,function(K,le,me){var xe=ct(u,function(Xe){return Xe(K)});return{criteria:xe,index:++D,value:K}});return ne(V,function(K,le){return gl(K,le,y)})}function Ii(a,u){return Wo(a,u,function(y,D){return kg(a,D)})}function Wo(a,u,y){for(var D=-1,V=u.length,K={};++D<V;){var le=u[D],me=Ya(a,le);y(me,le)&&Za(K,zo(le,a),me)}return K}function rc(a){return function(u){return Ya(u,a)}}function Ka(a,u,y,D){var V=D?po:on,K=-1,le=u.length,me=a;for(a===u&&(u=vr(u)),y&&(me=ct(a,xt(y)));++K<le;)for(var xe=0,Xe=u[K],Ke=y?y(Xe):Xe;(xe=V(me,Ke,xe,D))>-1;)me!==a&&ja.call(me,xe,1),ja.call(a,xe,1);return a}function al(a,u){for(var y=a?u.length:0,D=y-1;y--;){var V=u[y];if(y==D||V!==K){var K=V;yl(V)?ja.call(a,V,1):sc(a,V)}}return a}function nu(a,u){return a+vs(jo()*(u-a+1))}function ef(a,u,y,D){for(var V=-1,K=Fn(Gs((u-a)/(y||1)),0),le=de(K);K--;)le[D?K:++V]=a,a+=y;return le}function ic(a,u){var y="";if(!a||u<1||u>et)return y;do u%2&&(y+=a),u=vs(u/2),u&&(a+=a);while(u);return y}function Gt(a,u){return yg(bb(a,u,ko),a+"")}function sl(a){return ln(ff(a))}function tf(a,u){var y=ff(a);return nh(y,va(u,0,y.length))}function Za(a,u,y,D){if(!tr(a))return a;u=zo(u,a);for(var V=-1,K=u.length,le=K-1,me=a;me!=null&&++V<K;){var xe=Ds(u[V]),Xe=y;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return a;if(V!=le){var Ke=me[xe];Xe=D?D(Ke,xe,me):n,Xe===n&&(Xe=tr(Ke)?Ke:yl(u[V+1])?[]:{})}$n(me,xe,Xe),me=me[xe]}return a}var _s=da?function(a,u){return da.set(a,u),a}:ko,oc=No?function(a,u){return No(a,"toString",{configurable:!0,enumerable:!1,value:Og(u),writable:!0})}:ko;function ac(a){return nh(ff(a))}function oi(a,u,y){var D=-1,V=a.length;u<0&&(u=-u>V?0:V+u),y=y>V?V:y,y<0&&(y+=V),V=u>y?0:y-u>>>0,u>>>=0;for(var K=de(V);++D<V;)K[D]=a[D+u];return K}function nf(a,u){var y;return ma(a,function(D,V,K){return y=u(D,V,K),!y}),!!y}function ll(a,u,y){var D=0,V=a==null?D:a.length;if(typeof u=="number"&&u===u&&V<=Ue){for(;D<V;){var K=D+V>>>1,le=a[K];le!==null&&!Yo(le)&&(y?le<=u:le<u)?D=K+1:V=K}return V}return ul(a,u,ko,y)}function ul(a,u,y,D){var V=0,K=a==null?0:a.length;if(K===0)return 0;u=y(u);for(var le=u!==u,me=u===null,xe=Yo(u),Xe=u===n;V<K;){var Ke=vs((V+K)/2),it=y(a[Ke]),pt=it!==n,_t=it===null,Lt=it===it,tn=Yo(it);if(le)var Ft=D||Lt;else Xe?Ft=Lt&&(D||pt):me?Ft=Lt&&pt&&(D||!_t):xe?Ft=Lt&&pt&&!_t&&(D||!tn):_t||tn?Ft=!1:Ft=D?it<=u:it<u;Ft?V=Ke+1:K=Ke}return Nn(K,Ve)}function rf(a,u){for(var y=-1,D=a.length,V=0,K=[];++y<D;){var le=a[y],me=u?u(le):le;if(!y||!Ja(me,xe)){var xe=me;K[V++]=le===0?0:le}}return K}function of(a){return typeof a=="number"?a:Yo(a)?Ee:+a}function ai(a){if(typeof a=="string")return a;if(Xt(a))return ct(a,ai)+"";if(Yo(a))return Ba?Ba.call(a):"";var u=a+"";return u=="0"&&1/a==-He?"-0":u}function ya(a,u,y){var D=-1,V=ke,K=a.length,le=!0,me=[],xe=me;if(y)le=!1,V=qe;else if(K>=i){var Xe=u?null:Cn(a);if(Xe)return Gi(Xe);le=!1,V=Ot,xe=new Va}else xe=u?[]:me;e:for(;++D<K;){var Ke=a[D],it=u?u(Ke):Ke;if(Ke=y||Ke!==0?Ke:0,le&&it===it){for(var pt=xe.length;pt--;)if(xe[pt]===it)continue e;u&&xe.push(it),me.push(Ke)}else V(xe,it,y)||(xe!==me&&xe.push(it),me.push(Ke))}return me}function sc(a,u){return u=zo(u,a),a=wb(a,u),a==null||delete a[Ds(ba(u))]}function ru(a,u,y,D){return Za(a,u,y(Ya(a,u)),D)}function iu(a,u,y,D){for(var V=a.length,K=D?V:-1;(D?K--:++K<V)&&u(a[K],K,a););return y?oi(a,D?0:K,D?K+1:V):oi(a,D?K+1:0,D?V:K)}function si(a,u){var y=a;return y instanceof qt&&(y=y.value()),It(u,function(D,V){return V.func.apply(V.thisArg,Dt([D],V.args))},y)}function cl(a,u,y){var D=a.length;if(D<2)return D?ya(a[0]):[];for(var V=-1,K=de(D);++V<D;)for(var le=a[V],me=-1;++me<D;)me!=V&&(K[V]=Ho(K[V]||le,a[me],u,y));return ya(gr(K,1),u,y)}function lc(a,u,y){for(var D=-1,V=a.length,K=u.length,le={};++D<V;){var me=D<K?u[D]:n;y(le,a[D],me)}return le}function Yr(a){return mr(a)?a:[]}function fl(a){return typeof a=="function"?a:ko}function zo(a,u){return Xt(a)?a:gg(a,u)?[a]:Cb(bn(a))}var qf=Gt;function to(a,u,y){var D=a.length;return y=y===n?D:y,!u&&y>=D?a:oi(a,u,y)}var dl=zs||function(a){return yn.clearTimeout(a)};function uc(a,u){if(u)return a.slice();var y=a.length,D=jl?jl(y):new a.constructor(y);return a.copy(D),D}function ou(a){var u=new a.constructor(a.byteLength);return new ps(u).set(new ps(a)),u}function hl(a,u){var y=u?ou(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function pl(a){var u=new a.constructor(a.source,vi.exec(a));return u.lastIndex=a.lastIndex,u}function au(a){return Js?ut(Js.call(a)):{}}function cc(a,u){var y=u?ou(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function Os(a,u){if(a!==u){var y=a!==n,D=a===null,V=a===a,K=Yo(a),le=u!==n,me=u===null,xe=u===u,Xe=Yo(u);if(!me&&!Xe&&!K&&a>u||K&&le&&xe&&!me&&!Xe||D&&le&&xe||!y&&xe||!V)return 1;if(!D&&!K&&!Xe&&a<u||Xe&&y&&V&&!D&&!K||me&&y&&V||!le&&V||!xe)return-1}return 0}function gl(a,u,y){for(var D=-1,V=a.criteria,K=u.criteria,le=V.length,me=y.length;++D<le;){var xe=Os(V[D],K[D]);if(xe){if(D>=me)return xe;var Xe=y[D];return xe*(Xe=="desc"?-1:1)}}return a.index-u.index}function af(a,u,y,D){for(var V=-1,K=a.length,le=y.length,me=-1,xe=u.length,Xe=Fn(K-le,0),Ke=de(xe+Xe),it=!D;++me<xe;)Ke[me]=u[me];for(;++V<le;)(it||V<K)&&(Ke[y[V]]=a[V]);for(;Xe--;)Ke[me++]=a[V++];return Ke}function su(a,u,y,D){for(var V=-1,K=a.length,le=-1,me=y.length,xe=-1,Xe=u.length,Ke=Fn(K-me,0),it=de(Ke+Xe),pt=!D;++V<Ke;)it[V]=a[V];for(var _t=V;++xe<Xe;)it[_t+xe]=u[xe];for(;++le<me;)(pt||V<K)&&(it[_t+y[le]]=a[V++]);return it}function vr(a,u){var y=-1,D=a.length;for(u||(u=de(D));++y<D;)u[y]=a[y];return u}function To(a,u,y,D){var V=!y;y||(y={});for(var K=-1,le=u.length;++K<le;){var me=u[K],xe=D?D(y[me],a[me],me,y,a):n;xe===n&&(xe=a[me]),V?pr(y,me,xe):$n(y,me,xe)}return y}function sf(a,u){return To(a,pg(a),u)}function lu(a,u){return To(a,pb(a),u)}function uu(a,u){return function(y,D){var V=Xt(y)?ue:Wa,K=u?u():{};return V(y,a,Rt(D,2),K)}}function g(a){return Gt(function(u,y){var D=-1,V=y.length,K=V>1?y[V-1]:n,le=V>2?y[2]:n;for(K=a.length>3&&typeof K=="function"?(V--,K):n,le&&no(y[0],y[1],le)&&(K=V<3?n:K,V=1),u=ut(u);++D<V;){var me=y[D];me&&a(u,me,D,K)}return u})}function w(a,u){return function(y,D){if(y==null)return y;if(!Co(y))return a(y,D);for(var V=y.length,K=u?V:-1,le=ut(y);(u?K--:++K<V)&&D(le[K],K,le)!==!1;);return y}}function A(a){return function(u,y,D){for(var V=-1,K=ut(u),le=D(u),me=le.length;me--;){var xe=le[a?me:++V];if(y(K[xe],xe,K)===!1)break}return u}}function $(a,u,y){var D=u&L,V=ve(a);function K(){var le=this&&this!==yn&&this instanceof K?V:a;return le.apply(D?y:this,arguments)}return K}function Z(a){return function(u){u=bn(u);var y=ii(u)?hr(u):n,D=y?y[0]:u.charAt(0),V=y?to(y,1).join(""):u.slice(1);return D[a]()+V}}function se(a){return function(u){return It(n0(t0(u).replace(Aa,"")),a,"")}}function ve(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var y=pa(a.prototype),D=a.apply(y,u);return tr(D)?D:y}}function Ae(a,u,y){var D=ve(a);function V(){for(var K=arguments.length,le=de(K),me=K,xe=uf(V);me--;)le[me]=arguments[me];var Xe=K<3&&le[0]!==xe&&le[K-1]!==xe?[]:Si(le,xe);if(K-=Xe.length,K<y)return St(a,u,O,V.placeholder,n,le,Xe,n,n,y-K);var Ke=this&&this!==yn&&this instanceof V?D:a;return H(Ke,this,le)}return V}function h(a){return function(u,y,D){var V=ut(u);if(!Co(u)){var K=Rt(y,3);u=li(u),y=function(me){return K(V[me],me,V)}}var le=a(u,y,D);return le>-1?V[K?u[le]:le]:n}}function b(a){return ml(function(u){var y=u.length,D=y,V=Wr.prototype.thru;for(a&&u.reverse();D--;){var K=u[D];if(typeof K!="function")throw new Yt(s);if(V&&!le&&eh(K)=="wrapper")var le=new Wr([],!0)}for(D=le?D:y;++D<y;){K=u[D];var me=eh(K),xe=me=="wrapper"?dg(K):n;xe&&vg(xe[0])&&xe[1]==(S|W|J|ce)&&!xe[4].length&&xe[9]==1?le=le[eh(xe[0])].apply(le,xe[3]):le=K.length==1&&vg(K)?le[me]():le.thru(K)}return function(){var Xe=arguments,Ke=Xe[0];if(le&&Xe.length==1&&Xt(Ke))return le.plant(Ke).value();for(var it=0,pt=y?u[it].apply(this,Xe):Ke;++it<y;)pt=u[it].call(this,pt);return pt}})}function O(a,u,y,D,V,K,le,me,xe,Xe){var Ke=u&S,it=u&L,pt=u&I,_t=u&(W|te),Lt=u&ae,tn=pt?n:ve(a);function Ft(){for(var rn=arguments.length,an=de(rn),Go=rn;Go--;)an[Go]=arguments[Go];if(_t)var ro=uf(Ft),qo=Tn(an,ro);if(D&&(an=af(an,D,V,_t)),K&&(an=su(an,K,le,_t)),rn-=qo,_t&&rn<Xe){var yr=Si(an,ro);return St(a,u,O,Ft.placeholder,y,an,yr,me,xe,Xe-rn)}var Qa=it?y:this,xl=pt?Qa[a]:a;return rn=an.length,me?an=yO(an,me):Lt&&rn>1&&an.reverse(),Ke&&xe<rn&&(an.length=xe),this&&this!==yn&&this instanceof Ft&&(xl=tn||ve(xl)),xl.apply(Qa,an)}return Ft}function M(a,u){return function(y,D){return Qu(y,a,u(D),{})}}function Y(a,u){return function(y,D){var V;if(y===n&&D===n)return u;if(y!==n&&(V=y),D!==n){if(V===n)return D;typeof y=="string"||typeof D=="string"?(y=ai(y),D=ai(D)):(y=of(y),D=of(D)),V=a(y,D)}return V}}function ie(a){return ml(function(u){return u=ct(u,xt(Rt())),Gt(function(y){var D=this;return a(u,function(V){return H(V,D,y)})})})}function fe(a,u){u=u===n?" ":ai(u);var y=u.length;if(y<2)return y?ic(u,a):u;var D=ic(u,Gs(a/mo(u)));return ii(u)?to(hr(D),0,a).join(""):D.slice(0,a)}function Ie(a,u,y,D){var V=u&L,K=ve(a);function le(){for(var me=-1,xe=arguments.length,Xe=-1,Ke=D.length,it=de(Ke+xe),pt=this&&this!==yn&&this instanceof le?K:a;++Xe<Ke;)it[Xe]=D[Xe];for(;xe--;)it[Xe++]=arguments[++me];return H(pt,V?y:this,it)}return le}function Ze(a){return function(u,y,D){return D&&typeof D!="number"&&no(u,y,D)&&(y=D=n),u=wl(u),y===n?(y=u,u=0):y=wl(y),D=D===n?u<y?1:-1:wl(D),ef(u,y,D,a)}}function ht(a){return function(u,y){return typeof u=="string"&&typeof y=="string"||(u=wa(u),y=wa(y)),a(u,y)}}function St(a,u,y,D,V,K,le,me,xe,Xe){var Ke=u&W,it=Ke?le:n,pt=Ke?n:le,_t=Ke?K:n,Lt=Ke?n:K;u|=Ke?J:ge,u&=~(Ke?ge:J),u&U||(u&=~(L|I));var tn=[a,u,V,_t,it,Lt,pt,me,xe,Xe],Ft=y.apply(n,tn);return vg(a)&&xb(Ft,tn),Ft.placeholder=D,Sb(Ft,a,u)}function Pt(a){var u=dt[a];return function(y,D){if(y=wa(y),D=D==null?0:Nn(en(D),292),D&&$u(y)){var V=(bn(y)+"e").split("e"),K=u(V[0]+"e"+(+V[1]+D));return V=(bn(K)+"e").split("e"),+(V[0]+"e"+(+V[1]-D))}return u(y)}}var Cn=Ur&&1/Gi(new Ur([,-0]))[1]==He?function(a){return new Ur(a)}:Rg;function sr(a){return function(u){var y=Ai(u);return y==Ht?us(u):y==rr?Us(u):Be(u,a(u))}}function qn(a,u,y,D,V,K,le,me){var xe=u&I;if(!xe&&typeof a!="function")throw new Yt(s);var Xe=D?D.length:0;if(Xe||(u&=~(J|ge),D=V=n),le=le===n?le:Fn(en(le),0),me=me===n?me:en(me),Xe-=V?V.length:0,u&ge){var Ke=D,it=V;D=V=n}var pt=xe?n:dg(a),_t=[a,u,y,D,V,Ke,it,K,le,me];if(pt&&gO(_t,pt),a=_t[0],u=_t[1],y=_t[2],D=_t[3],V=_t[4],me=_t[9]=_t[9]===n?xe?0:a.length:Fn(_t[9]-Xe,0),!me&&u&(W|te)&&(u&=~(W|te)),!u||u==L)var Lt=$(a,u,y);else u==W||u==te?Lt=Ae(a,u,me):(u==J||u==(L|J))&&!V.length?Lt=Ie(a,u,y,D):Lt=O.apply(n,_t);var tn=pt?_s:xb;return Sb(tn(Lt,_t),a,u)}function fc(a,u,y,D){return a===n||Ja(a,Gn[y])&&!Mt.call(D,y)?u:a}function dc(a,u,y,D,V,K){return tr(a)&&tr(u)&&(K.set(u,a),ks(a,u,n,dc,K),K.delete(u)),a}function lf(a){return Zf(a)?n:a}function vl(a,u,y,D,V,K){var le=y&P,me=a.length,xe=u.length;if(me!=xe&&!(le&&xe>me))return!1;var Xe=K.get(a),Ke=K.get(u);if(Xe&&Ke)return Xe==u&&Ke==a;var it=-1,pt=!0,_t=y&R?new Va:n;for(K.set(a,u),K.set(u,a);++it<me;){var Lt=a[it],tn=u[it];if(D)var Ft=le?D(tn,Lt,it,u,a,K):D(Lt,tn,it,a,u,K);if(Ft!==n){if(Ft)continue;pt=!1;break}if(_t){if(!dn(u,function(rn,an){if(!Ot(_t,an)&&(Lt===rn||V(Lt,rn,y,D,K)))return _t.push(an)})){pt=!1;break}}else if(!(Lt===tn||V(Lt,tn,y,D,K))){pt=!1;break}}return K.delete(a),K.delete(u),pt}function lg(a,u,y,D,V,K,le){switch(y){case un:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case fi:return!(a.byteLength!=u.byteLength||!K(new ps(a),new ps(u)));case mt:case wt:case Xn:return Ja(+a,+u);case Et:return a.name==u.name&&a.message==u.message;case Dr:case cn:return a==u+"";case Ht:var me=us;case rr:var xe=D&P;if(me||(me=Gi),a.size!=u.size&&!xe)return!1;var Xe=le.get(a);if(Xe)return Xe==u;D|=R,le.set(a,u);var Ke=vl(me(a),me(u),D,V,K,le);return le.delete(a),Ke;case hn:if(Js)return Js.call(a)==Js.call(u)}return!1}function ug(a,u,y,D,V,K){var le=y&P,me=cg(a),xe=me.length,Xe=cg(u),Ke=Xe.length;if(xe!=Ke&&!le)return!1;for(var it=xe;it--;){var pt=me[it];if(!(le?pt in u:Mt.call(u,pt)))return!1}var _t=K.get(a),Lt=K.get(u);if(_t&&Lt)return _t==u&&Lt==a;var tn=!0;K.set(a,u),K.set(u,a);for(var Ft=le;++it<xe;){pt=me[it];var rn=a[pt],an=u[pt];if(D)var Go=le?D(an,rn,pt,u,a,K):D(rn,an,pt,a,u,K);if(!(Go===n?rn===an||V(rn,an,y,D,K):Go)){tn=!1;break}Ft||(Ft=pt=="constructor")}if(tn&&!Ft){var ro=a.constructor,qo=u.constructor;ro!=qo&&"constructor"in a&&"constructor"in u&&!(typeof ro=="function"&&ro instanceof ro&&typeof qo=="function"&&qo instanceof qo)&&(tn=!1)}return K.delete(a),K.delete(u),tn}function ml(a){return yg(bb(a,n,Ob),a+"")}function cg(a){return el(a,li,pg)}function fg(a){return el(a,Eo,pb)}var dg=da?function(a){return da.get(a)}:Rg;function eh(a){for(var u=a.name+"",y=ha[u],D=Mt.call(ha,u)?y.length:0;D--;){var V=y[D],K=V.func;if(K==null||K==a)return V.name}return u}function uf(a){var u=Mt.call(G,"placeholder")?G:a;return u.placeholder}function Rt(){var a=G.iteratee||Dg;return a=a===Dg?Cs:a,arguments.length?a(arguments[0],arguments[1]):a}function th(a,u){var y=a.__data__;return fO(u)?y[typeof u=="string"?"string":"hash"]:y.map}function hg(a){for(var u=li(a),y=u.length;y--;){var D=u[y],V=a[D];u[y]=[D,V,mb(V)]}return u}function hc(a,u){var y=aa(a,u);return nc(y)?y:n}function iO(a){var u=Mt.call(a,Xi),y=a[Xi];try{a[Xi]=n;var D=!0}catch{}var V=ua.call(a);return D&&(u?a[Xi]=y:delete a[Xi]),V}var pg=qs?function(a){return a==null?[]:(a=ut(a),je(qs(a),function(u){return ju.call(a,u)}))}:Ig,pb=qs?function(a){for(var u=[];a;)Dt(u,pg(a)),a=gs(a);return u}:Ig,Ai=kr;(Bo&&Ai(new Bo(new ArrayBuffer(1)))!=un||Ki&&Ai(new Ki)!=Ht||Xs&&Ai(Xs.resolve())!=kn||Ur&&Ai(new Ur)!=rr||ca&&Ai(new ca)!=gt)&&(Ai=function(a){var u=kr(a),y=u==Kn?a.constructor:n,D=y?pc(y):"";if(D)switch(D){case Ks:return un;case zc:return Ht;case Yc:return kn;case Vl:return rr;case Zs:return gt}return u});function oO(a,u,y){for(var D=-1,V=y.length;++D<V;){var K=y[D],le=K.size;switch(K.type){case"drop":a+=le;break;case"dropRight":u-=le;break;case"take":u=Nn(u,a+le);break;case"takeRight":a=Fn(a,u-le);break}}return{start:a,end:u}}function aO(a){var u=a.match(Ia);return u?u[1].split(Zr):[]}function gb(a,u,y){u=zo(u,a);for(var D=-1,V=u.length,K=!1;++D<V;){var le=Ds(u[D]);if(!(K=a!=null&&y(a,le)))break;a=a[le]}return K||++D!=V?K:(V=a==null?0:a.length,!!V&&lh(V)&&yl(le,V)&&(Xt(a)||gc(a)))}function sO(a){var u=a.length,y=new a.constructor(u);return u&&typeof a[0]=="string"&&Mt.call(a,"index")&&(y.index=a.index,y.input=a.input),y}function vb(a){return typeof a.constructor=="function"&&!Xf(a)?pa(gs(a)):{}}function lO(a,u,y){var D=a.constructor;switch(u){case fi:return ou(a);case mt:case wt:return new D(+a);case un:return hl(a,y);case Bi:case $i:case Vi:case Pr:case Un:case Rr:case wr:case qr:case Xr:return cc(a,y);case Ht:return new D;case Xn:case cn:return new D(a);case Dr:return pl(a);case rr:return new D;case hn:return au(a)}}function uO(a,u){var y=u.length;if(!y)return a;var D=y-1;return u[D]=(y>1?"& ":"")+u[D],u=u.join(y>2?", ":" "),a.replace(Ra,`{
|
|
151
|
+
/* [wrapped with `+u+`] */
|
|
152
|
+
`)}function cO(a){return Xt(a)||gc(a)||!!(Bl&&a&&a[Bl])}function yl(a,u){var y=typeof a;return u=u??et,!!u&&(y=="number"||y!="symbol"&&Sr.test(a))&&a>-1&&a%1==0&&a<u}function no(a,u,y){if(!tr(y))return!1;var D=typeof u;return(D=="number"?Co(y)&&yl(u,y.length):D=="string"&&u in y)?Ja(y[u],a):!1}function gg(a,u){if(Xt(a))return!1;var y=typeof a;return y=="number"||y=="symbol"||y=="boolean"||a==null||Yo(a)?!0:mn.test(a)||!pi.test(a)||u!=null&&a in ut(u)}function fO(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function vg(a){var u=eh(a),y=G[u];if(typeof y!="function"||!(u in qt.prototype))return!1;if(a===y)return!0;var D=dg(y);return!!D&&a===D[0]}function dO(a){return!!On&&On in a}var hO=Hr?bl:Ag;function Xf(a){var u=a&&a.constructor,y=typeof u=="function"&&u.prototype||Gn;return a===y}function mb(a){return a===a&&!tr(a)}function yb(a,u){return function(y){return y==null?!1:y[a]===u&&(u!==n||a in ut(y))}}function pO(a){var u=ah(a,function(D){return y.size===d&&y.clear(),D}),y=u.cache;return u}function gO(a,u){var y=a[1],D=u[1],V=y|D,K=V<(L|I|S),le=D==S&&y==W||D==S&&y==ce&&a[7].length<=u[8]||D==(S|ce)&&u[7].length<=u[8]&&y==W;if(!(K||le))return a;D&L&&(a[2]=u[2],V|=y&L?0:U);var me=u[3];if(me){var xe=a[3];a[3]=xe?af(xe,me,u[4]):me,a[4]=xe?Si(a[3],v):u[4]}return me=u[5],me&&(xe=a[5],a[5]=xe?su(xe,me,u[6]):me,a[6]=xe?Si(a[5],v):u[6]),me=u[7],me&&(a[7]=me),D&S&&(a[8]=a[8]==null?u[8]:Nn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=V,a}function vO(a){var u=[];if(a!=null)for(var y in ut(a))u.push(y);return u}function mO(a){return ua.call(a)}function bb(a,u,y){return u=Fn(u===n?a.length-1:u,0),function(){for(var D=arguments,V=-1,K=Fn(D.length-u,0),le=de(K);++V<K;)le[V]=D[u+V];V=-1;for(var me=de(u+1);++V<u;)me[V]=D[V];return me[u]=y(le),H(a,this,me)}}function wb(a,u){return u.length<2?a:Ya(a,oi(u,0,-1))}function yO(a,u){for(var y=a.length,D=Nn(u.length,y),V=vr(a);D--;){var K=u[D];a[D]=yl(K,y)?V[K]:n}return a}function mg(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var xb=Tb(_s),Kf=$l||function(a,u){return yn.setTimeout(a,u)},yg=Tb(oc);function Sb(a,u,y){var D=u+"";return yg(a,uO(D,bO(aO(D),y)))}function Tb(a){var u=0,y=0;return function(){var D=Hu(),V=Qe-(D-y);if(y=D,V>0){if(++u>=Ye)return arguments[0]}else u=0;return a.apply(n,arguments)}}function nh(a,u){var y=-1,D=a.length,V=D-1;for(u=u===n?D:u;++y<u;){var K=nu(y,V),le=a[K];a[K]=a[y],a[y]=le}return a.length=u,a}var Cb=pO(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(lo,function(y,D,V,K){u.push(V?K.replace(Po,"$1"):D||y)}),u});function Ds(a){if(typeof a=="string"||Yo(a))return a;var u=a+"";return u=="0"&&1/a==-He?"-0":u}function pc(a){if(a!=null){try{return qi.call(a)}catch{}try{return a+""}catch{}}return""}function bO(a,u){return oe(Re,function(y){var D="_."+y[0];u&y[1]&&!ke(a,D)&&a.push(D)}),a.sort()}function Eb(a){if(a instanceof qt)return a.clone();var u=new Wr(a.__wrapped__,a.__chain__);return u.__actions__=vr(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function wO(a,u,y){(y?no(a,u,y):u===n)?u=1:u=Fn(en(u),0);var D=a==null?0:a.length;if(!D||u<1)return[];for(var V=0,K=0,le=de(Gs(D/u));V<D;)le[K++]=oi(a,V,V+=u);return le}function xO(a){for(var u=-1,y=a==null?0:a.length,D=0,V=[];++u<y;){var K=a[u];K&&(V[D++]=K)}return V}function SO(){var a=arguments.length;if(!a)return[];for(var u=de(a-1),y=arguments[0],D=a;D--;)u[D-1]=arguments[D];return Dt(Xt(y)?vr(y):[y],gr(u,1))}var TO=Gt(function(a,u){return mr(a)?Ho(a,gr(u,1,mr,!0)):[]}),CO=Gt(function(a,u){var y=ba(u);return mr(y)&&(y=n),mr(a)?Ho(a,gr(u,1,mr,!0),Rt(y,2)):[]}),EO=Gt(function(a,u){var y=ba(u);return mr(y)&&(y=n),mr(a)?Ho(a,gr(u,1,mr,!0),n,y):[]});function kO(a,u,y){var D=a==null?0:a.length;return D?(u=y||u===n?1:en(u),oi(a,u<0?0:u,D)):[]}function _O(a,u,y){var D=a==null?0:a.length;return D?(u=y||u===n?1:en(u),u=D-u,oi(a,0,u<0?0:u)):[]}function OO(a,u){return a&&a.length?iu(a,Rt(u,3),!0,!0):[]}function DO(a,u){return a&&a.length?iu(a,Rt(u,3),!0):[]}function PO(a,u,y,D){var V=a==null?0:a.length;return V?(y&&typeof y!="number"&&no(a,u,y)&&(y=0,D=V),Zc(a,u,y,D)):[]}function kb(a,u,y){var D=a==null?0:a.length;if(!D)return-1;var V=y==null?0:en(y);return V<0&&(V=Fn(D+V,0)),zt(a,Rt(u,3),V)}function _b(a,u,y){var D=a==null?0:a.length;if(!D)return-1;var V=D-1;return y!==n&&(V=en(y),V=y<0?Fn(D+V,0):Nn(V,D-1)),zt(a,Rt(u,3),V,!0)}function Ob(a){var u=a==null?0:a.length;return u?gr(a,1):[]}function RO(a){var u=a==null?0:a.length;return u?gr(a,He):[]}function IO(a,u){var y=a==null?0:a.length;return y?(u=u===n?1:en(u),gr(a,u)):[]}function AO(a){for(var u=-1,y=a==null?0:a.length,D={};++u<y;){var V=a[u];D[V[0]]=V[1]}return D}function Db(a){return a&&a.length?a[0]:n}function MO(a,u,y){var D=a==null?0:a.length;if(!D)return-1;var V=y==null?0:en(y);return V<0&&(V=Fn(D+V,0)),on(a,u,V)}function LO(a){var u=a==null?0:a.length;return u?oi(a,0,-1):[]}var FO=Gt(function(a){var u=ct(a,Yr);return u.length&&u[0]===a[0]?Ss(u):[]}),NO=Gt(function(a){var u=ba(a),y=ct(a,Yr);return u===ba(y)?u=n:y.pop(),y.length&&y[0]===a[0]?Ss(y,Rt(u,2)):[]}),jO=Gt(function(a){var u=ba(a),y=ct(a,Yr);return u=typeof u=="function"?u:n,u&&y.pop(),y.length&&y[0]===a[0]?Ss(y,n,u):[]});function BO(a,u){return a==null?"":ms.call(a,u)}function ba(a){var u=a==null?0:a.length;return u?a[u-1]:n}function $O(a,u,y){var D=a==null?0:a.length;if(!D)return-1;var V=D;return y!==n&&(V=en(y),V=V<0?Fn(D+V,0):Nn(V,D-1)),u===u?la(a,u,V):zt(a,go,V,!0)}function VO(a,u){return a&&a.length?Xa(a,en(u)):n}var HO=Gt(Pb);function Pb(a,u){return a&&a.length&&u&&u.length?Ka(a,u):a}function UO(a,u,y){return a&&a.length&&u&&u.length?Ka(a,u,Rt(y,2)):a}function WO(a,u,y){return a&&a.length&&u&&u.length?Ka(a,u,n,y):a}var zO=ml(function(a,u){var y=a==null?0:a.length,D=Yu(a,u);return al(a,ct(u,function(V){return yl(V,y)?+V:V}).sort(Os)),D});function YO(a,u){var y=[];if(!(a&&a.length))return y;var D=-1,V=[],K=a.length;for(u=Rt(u,3);++D<K;){var le=a[D];u(le,D,a)&&(y.push(le),V.push(D))}return al(a,V),y}function bg(a){return a==null?a:Wc.call(a)}function GO(a,u,y){var D=a==null?0:a.length;return D?(y&&typeof y!="number"&&no(a,u,y)?(u=0,y=D):(u=u==null?0:en(u),y=y===n?D:en(y)),oi(a,u,y)):[]}function qO(a,u){return ll(a,u)}function XO(a,u,y){return ul(a,u,Rt(y,2))}function KO(a,u){var y=a==null?0:a.length;if(y){var D=ll(a,u);if(D<y&&Ja(a[D],u))return D}return-1}function ZO(a,u){return ll(a,u,!0)}function JO(a,u,y){return ul(a,u,Rt(y,2),!0)}function QO(a,u){var y=a==null?0:a.length;if(y){var D=ll(a,u,!0)-1;if(Ja(a[D],u))return D}return-1}function eD(a){return a&&a.length?rf(a):[]}function tD(a,u){return a&&a.length?rf(a,Rt(u,2)):[]}function nD(a){var u=a==null?0:a.length;return u?oi(a,1,u):[]}function rD(a,u,y){return a&&a.length?(u=y||u===n?1:en(u),oi(a,0,u<0?0:u)):[]}function iD(a,u,y){var D=a==null?0:a.length;return D?(u=y||u===n?1:en(u),u=D-u,oi(a,u<0?0:u,D)):[]}function oD(a,u){return a&&a.length?iu(a,Rt(u,3),!1,!0):[]}function aD(a,u){return a&&a.length?iu(a,Rt(u,3)):[]}var sD=Gt(function(a){return ya(gr(a,1,mr,!0))}),lD=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),ya(gr(a,1,mr,!0),Rt(u,2))}),uD=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,ya(gr(a,1,mr,!0),n,u)});function cD(a){return a&&a.length?ya(a):[]}function fD(a,u){return a&&a.length?ya(a,Rt(u,2)):[]}function dD(a,u){return u=typeof u=="function"?u:n,a&&a.length?ya(a,n,u):[]}function wg(a){if(!(a&&a.length))return[];var u=0;return a=je(a,function(y){if(mr(y))return u=Fn(y.length,u),!0}),Te(u,function(y){return ct(a,k(y))})}function Rb(a,u){if(!(a&&a.length))return[];var y=wg(a);return u==null?y:ct(y,function(D){return H(u,n,D)})}var hD=Gt(function(a,u){return mr(a)?Ho(a,u):[]}),pD=Gt(function(a){return cl(je(a,mr))}),gD=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),cl(je(a,mr),Rt(u,2))}),vD=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,cl(je(a,mr),n,u)}),mD=Gt(wg);function yD(a,u){return lc(a||[],u||[],$n)}function bD(a,u){return lc(a||[],u||[],Za)}var wD=Gt(function(a){var u=a.length,y=u>1?a[u-1]:n;return y=typeof y=="function"?(a.pop(),y):n,Rb(a,y)});function Ib(a){var u=G(a);return u.__chain__=!0,u}function xD(a,u){return u(a),a}function rh(a,u){return u(a)}var SD=ml(function(a){var u=a.length,y=u?a[0]:0,D=this.__wrapped__,V=function(K){return Yu(K,a)};return u>1||this.__actions__.length||!(D instanceof qt)||!yl(y)?this.thru(V):(D=D.slice(y,+y+(u?1:0)),D.__actions__.push({func:rh,args:[V],thisArg:n}),new Wr(D,this.__chain__).thru(function(K){return u&&!K.length&&K.push(n),K}))});function TD(){return Ib(this)}function CD(){return new Wr(this.value(),this.__chain__)}function ED(){this.__values__===n&&(this.__values__=Yb(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function kD(){return this}function _D(a){for(var u,y=this;y instanceof $a;){var D=Eb(y);D.__index__=0,D.__values__=n,u?V.__wrapped__=D:u=D;var V=D;y=y.__wrapped__}return V.__wrapped__=a,u}function OD(){var a=this.__wrapped__;if(a instanceof qt){var u=a;return this.__actions__.length&&(u=new qt(this)),u=u.reverse(),u.__actions__.push({func:rh,args:[bg],thisArg:n}),new Wr(u,this.__chain__)}return this.thru(bg)}function DD(){return si(this.__wrapped__,this.__actions__)}var PD=uu(function(a,u,y){Mt.call(a,y)?++a[y]:pr(a,y,1)});function RD(a,u,y){var D=Xt(a)?Le:Kl;return y&&no(a,u,y)&&(u=n),D(a,Rt(u,3))}function ID(a,u){var y=Xt(a)?je:Ku;return y(a,Rt(u,3))}var AD=h(kb),MD=h(_b);function LD(a,u){return gr(ih(a,u),1)}function FD(a,u){return gr(ih(a,u),He)}function ND(a,u,y){return y=y===n?1:en(y),gr(ih(a,u),y)}function Ab(a,u){var y=Xt(a)?oe:ma;return y(a,Rt(u,3))}function Mb(a,u){var y=Xt(a)?we:Xu;return y(a,Rt(u,3))}var jD=uu(function(a,u,y){Mt.call(a,y)?a[y].push(u):pr(a,y,[u])});function BD(a,u,y,D){a=Co(a)?a:ff(a),y=y&&!D?en(y):0;var V=a.length;return y<0&&(y=Fn(V+y,0)),uh(a)?y<=V&&a.indexOf(u,y)>-1:!!V&&on(a,u,y)>-1}var $D=Gt(function(a,u,y){var D=-1,V=typeof u=="function",K=Co(a)?de(a.length):[];return ma(a,function(le){K[++D]=V?H(u,le,y):Pi(le,u,y)}),K}),VD=uu(function(a,u,y){pr(a,y,u)});function ih(a,u){var y=Xt(a)?ct:Es;return y(a,Rt(u,3))}function HD(a,u,y,D){return a==null?[]:(Xt(u)||(u=u==null?[]:[u]),y=D?n:y,Xt(y)||(y=y==null?[]:[y]),tu(a,u,y))}var UD=uu(function(a,u,y){a[y?0:1].push(u)},function(){return[[],[]]});function WD(a,u,y){var D=Xt(a)?It:z,V=arguments.length<3;return D(a,Rt(u,4),y,V,ma)}function zD(a,u,y){var D=Xt(a)?Mn:z,V=arguments.length<3;return D(a,Rt(u,4),y,V,Xu)}function YD(a,u){var y=Xt(a)?je:Ku;return y(a,sh(Rt(u,3)))}function GD(a){var u=Xt(a)?ln:sl;return u(a)}function qD(a,u,y){(y?no(a,u,y):u===n)?u=1:u=en(u);var D=Xt(a)?Oi:tf;return D(a,u)}function XD(a){var u=Xt(a)?Ua:ac;return u(a)}function KD(a){if(a==null)return 0;if(Co(a))return uh(a)?mo(a):a.length;var u=Ai(a);return u==Ht||u==rr?a.size:ol(a).length}function ZD(a,u,y){var D=Xt(a)?dn:nf;return y&&no(a,u,y)&&(u=n),D(a,Rt(u,3))}var JD=Gt(function(a,u){if(a==null)return[];var y=u.length;return y>1&&no(a,u[0],u[1])?u=[]:y>2&&no(u[0],u[1],u[2])&&(u=[u[0]]),tu(a,gr(u,1),[])}),oh=Ys||function(){return yn.Date.now()};function QD(a,u){if(typeof u!="function")throw new Yt(s);return a=en(a),function(){if(--a<1)return u.apply(this,arguments)}}function Lb(a,u,y){return u=y?n:u,u=a&&u==null?a.length:u,qn(a,S,n,n,n,n,u)}function Fb(a,u){var y;if(typeof u!="function")throw new Yt(s);return a=en(a),function(){return--a>0&&(y=u.apply(this,arguments)),a<=1&&(u=n),y}}var xg=Gt(function(a,u,y){var D=L;if(y.length){var V=Si(y,uf(xg));D|=J}return qn(a,D,u,y,V)}),Nb=Gt(function(a,u,y){var D=L|I;if(y.length){var V=Si(y,uf(Nb));D|=J}return qn(u,D,a,y,V)});function jb(a,u,y){u=y?n:u;var D=qn(a,W,n,n,n,n,n,u);return D.placeholder=jb.placeholder,D}function Bb(a,u,y){u=y?n:u;var D=qn(a,te,n,n,n,n,n,u);return D.placeholder=Bb.placeholder,D}function $b(a,u,y){var D,V,K,le,me,xe,Xe=0,Ke=!1,it=!1,pt=!0;if(typeof a!="function")throw new Yt(s);u=wa(u)||0,tr(y)&&(Ke=!!y.leading,it="maxWait"in y,K=it?Fn(wa(y.maxWait)||0,u):K,pt="trailing"in y?!!y.trailing:pt);function _t(yr){var Qa=D,xl=V;return D=V=n,Xe=yr,le=a.apply(xl,Qa),le}function Lt(yr){return Xe=yr,me=Kf(rn,u),Ke?_t(yr):le}function tn(yr){var Qa=yr-xe,xl=yr-Xe,o0=u-Qa;return it?Nn(o0,K-xl):o0}function Ft(yr){var Qa=yr-xe,xl=yr-Xe;return xe===n||Qa>=u||Qa<0||it&&xl>=K}function rn(){var yr=oh();if(Ft(yr))return an(yr);me=Kf(rn,tn(yr))}function an(yr){return me=n,pt&&D?_t(yr):(D=V=n,le)}function Go(){me!==n&&dl(me),Xe=0,D=xe=V=me=n}function ro(){return me===n?le:an(oh())}function qo(){var yr=oh(),Qa=Ft(yr);if(D=arguments,V=this,xe=yr,Qa){if(me===n)return Lt(xe);if(it)return dl(me),me=Kf(rn,u),_t(xe)}return me===n&&(me=Kf(rn,u)),le}return qo.cancel=Go,qo.flush=ro,qo}var eP=Gt(function(a,u){return qu(a,1,u)}),tP=Gt(function(a,u,y){return qu(a,wa(u)||0,y)});function nP(a){return qn(a,ae)}function ah(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Yt(s);var y=function(){var D=arguments,V=u?u.apply(this,D):D[0],K=y.cache;if(K.has(V))return K.get(V);var le=a.apply(this,D);return y.cache=K.set(V,le)||K,le};return y.cache=new(ah.Cache||$o),y}ah.Cache=$o;function sh(a){if(typeof a!="function")throw new Yt(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function rP(a){return Fb(2,a)}var iP=qf(function(a,u){u=u.length==1&&Xt(u[0])?ct(u[0],xt(Rt())):ct(gr(u,1),xt(Rt()));var y=u.length;return Gt(function(D){for(var V=-1,K=Nn(D.length,y);++V<K;)D[V]=u[V].call(this,D[V]);return H(a,this,D)})}),Sg=Gt(function(a,u){var y=Si(u,uf(Sg));return qn(a,J,n,u,y)}),Vb=Gt(function(a,u){var y=Si(u,uf(Vb));return qn(a,ge,n,u,y)}),oP=ml(function(a,u){return qn(a,ce,n,n,n,u)});function aP(a,u){if(typeof a!="function")throw new Yt(s);return u=u===n?u:en(u),Gt(a,u)}function sP(a,u){if(typeof a!="function")throw new Yt(s);return u=u==null?0:Fn(en(u),0),Gt(function(y){var D=y[u],V=to(y,0,u);return D&&Dt(V,D),H(a,this,V)})}function lP(a,u,y){var D=!0,V=!0;if(typeof a!="function")throw new Yt(s);return tr(y)&&(D="leading"in y?!!y.leading:D,V="trailing"in y?!!y.trailing:V),$b(a,u,{leading:D,maxWait:u,trailing:V})}function uP(a){return Lb(a,1)}function cP(a,u){return Sg(fl(u),a)}function fP(){if(!arguments.length)return[];var a=arguments[0];return Xt(a)?a:[a]}function dP(a){return zr(a,T)}function hP(a,u){return u=typeof u=="function"?u:n,zr(a,T,u)}function pP(a){return zr(a,p|T)}function gP(a,u){return u=typeof u=="function"?u:n,zr(a,p|T,u)}function vP(a,u){return u==null||Kc(a,u,li(u))}function Ja(a,u){return a===u||a!==a&&u!==u}var mP=ht(tl),yP=ht(function(a,u){return a>=u}),gc=il(function(){return arguments}())?il:function(a){return lr(a)&&Mt.call(a,"callee")&&!ju.call(a,"callee")},Xt=de.isArray,bP=f?xt(f):Ql;function Co(a){return a!=null&&lh(a.length)&&!bl(a)}function mr(a){return lr(a)&&Co(a)}function wP(a){return a===!0||a===!1||lr(a)&&kr(a)==mt}var cu=Bu||Ag,xP=m?xt(m):Ga;function SP(a){return lr(a)&&a.nodeType===1&&!Zf(a)}function TP(a){if(a==null)return!0;if(Co(a)&&(Xt(a)||typeof a=="string"||typeof a.splice=="function"||cu(a)||cf(a)||gc(a)))return!a.length;var u=Ai(a);if(u==Ht||u==rr)return!a.size;if(Xf(a))return!ol(a).length;for(var y in a)if(Mt.call(a,y))return!1;return!0}function CP(a,u){return Ts(a,u)}function EP(a,u,y){y=typeof y=="function"?y:n;var D=y?y(a,u):n;return D===n?Ts(a,u,n,y):!!D}function Tg(a){if(!lr(a))return!1;var u=kr(a);return u==Et||u==vt||typeof a.message=="string"&&typeof a.name=="string"&&!Zf(a)}function kP(a){return typeof a=="number"&&$u(a)}function bl(a){if(!tr(a))return!1;var u=kr(a);return u==ot||u==$t||u==lt||u==ji}function Hb(a){return typeof a=="number"&&a==en(a)}function lh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=et}function tr(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function lr(a){return a!=null&&typeof a=="object"}var Ub=C?xt(C):qa;function _P(a,u){return a===u||tc(a,u,hg(u))}function OP(a,u,y){return y=typeof y=="function"?y:n,tc(a,u,hg(u),y)}function DP(a){return Wb(a)&&a!=+a}function PP(a){if(hO(a))throw new We(o);return nc(a)}function RP(a){return a===null}function IP(a){return a==null}function Wb(a){return typeof a=="number"||lr(a)&&kr(a)==Xn}function Zf(a){if(!lr(a)||kr(a)!=Kn)return!1;var u=gs(a);if(u===null)return!0;var y=Mt.call(u,"constructor")&&u.constructor;return typeof y=="function"&&y instanceof y&&qi.call(y)==Fu}var Cg=_?xt(_):So;function AP(a){return Hb(a)&&a>=-et&&a<=et}var zb=N?xt(N):Yf;function uh(a){return typeof a=="string"||!Xt(a)&&lr(a)&&kr(a)==cn}function Yo(a){return typeof a=="symbol"||lr(a)&&kr(a)==hn}var cf=B?xt(B):Gf;function MP(a){return a===n}function LP(a){return lr(a)&&Ai(a)==gt}function FP(a){return lr(a)&&kr(a)==Rn}var NP=ht(Qi),jP=ht(function(a,u){return a<=u});function Yb(a){if(!a)return[];if(Co(a))return uh(a)?hr(a):vr(a);if(Fo&&a[Fo])return vo(a[Fo]());var u=Ai(a),y=u==Ht?us:u==rr?Gi:ff;return y(a)}function wl(a){if(!a)return a===0?a:0;if(a=wa(a),a===He||a===-He){var u=a<0?-1:1;return u*at}return a===a?a:0}function en(a){var u=wl(a),y=u%1;return u===u?y?u-y:u:0}function Gb(a){return a?va(en(a),0,Pe):0}function wa(a){if(typeof a=="number")return a;if(Yo(a))return Ee;if(tr(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=tr(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=nt(a);var y=fo.test(a);return y||Jr.test(a)?Na(a.slice(2),y?2:8):Ei.test(a)?Ee:+a}function qb(a){return To(a,Eo(a))}function BP(a){return a?va(en(a),-et,et):a===0?a:0}function bn(a){return a==null?"":ai(a)}var $P=g(function(a,u){if(Xf(u)||Co(u)){To(u,li(u),a);return}for(var y in u)Mt.call(u,y)&&$n(a,y,u[y])}),Xb=g(function(a,u){To(u,Eo(u),a)}),ch=g(function(a,u,y,D){To(u,Eo(u),a,D)}),VP=g(function(a,u,y,D){To(u,li(u),a,D)}),HP=ml(Yu);function UP(a,u){var y=pa(a);return u==null?y:Ji(y,u)}var WP=Gt(function(a,u){a=ut(a);var y=-1,D=u.length,V=D>2?u[2]:n;for(V&&no(u[0],u[1],V)&&(D=1);++y<D;)for(var K=u[y],le=Eo(K),me=-1,xe=le.length;++me<xe;){var Xe=le[me],Ke=a[Xe];(Ke===n||Ja(Ke,Gn[Xe])&&!Mt.call(a,Xe))&&(a[Xe]=K[Xe])}return a}),zP=Gt(function(a){return a.push(n,dc),H(Kb,n,a)});function YP(a,u){return Vr(a,Rt(u,3),xo)}function GP(a,u){return Vr(a,Rt(u,3),Ju)}function qP(a,u){return a==null?a:Zu(a,Rt(u,3),Eo)}function XP(a,u){return a==null?a:Jc(a,Rt(u,3),Eo)}function KP(a,u){return a&&xo(a,Rt(u,3))}function ZP(a,u){return a&&Ju(a,Rt(u,3))}function JP(a){return a==null?[]:Jl(a,li(a))}function QP(a){return a==null?[]:Jl(a,Eo(a))}function Eg(a,u,y){var D=a==null?n:Ya(a,u);return D===n?y:D}function eR(a,u){return a!=null&&gb(a,u,nl)}function kg(a,u){return a!=null&&gb(a,u,Qc)}var tR=M(function(a,u,y){u!=null&&typeof u.toString!="function"&&(u=ua.call(u)),a[u]=y},Og(ko)),nR=M(function(a,u,y){u!=null&&typeof u.toString!="function"&&(u=ua.call(u)),Mt.call(a,u)?a[u].push(y):a[u]=[y]},Rt),rR=Gt(Pi);function li(a){return Co(a)?ga(a):ol(a)}function Eo(a){return Co(a)?ga(a,!0):eu(a)}function iR(a,u){var y={};return u=Rt(u,3),xo(a,function(D,V,K){pr(y,u(D,V,K),D)}),y}function oR(a,u){var y={};return u=Rt(u,3),xo(a,function(D,V,K){pr(y,V,u(D,V,K))}),y}var aR=g(function(a,u,y){ks(a,u,y)}),Kb=g(function(a,u,y,D){ks(a,u,y,D)}),sR=ml(function(a,u){var y={};if(a==null)return y;var D=!1;u=ct(u,function(K){return K=zo(K,a),D||(D=K.length>1),K}),To(a,fg(a),y),D&&(y=zr(y,p|x|T,lf));for(var V=u.length;V--;)sc(y,u[V]);return y});function lR(a,u){return Zb(a,sh(Rt(u)))}var uR=ml(function(a,u){return a==null?{}:Ii(a,u)});function Zb(a,u){if(a==null)return{};var y=ct(fg(a),function(D){return[D]});return u=Rt(u),Wo(a,y,function(D,V){return u(D,V[0])})}function cR(a,u,y){u=zo(u,a);var D=-1,V=u.length;for(V||(V=1,a=n);++D<V;){var K=a==null?n:a[Ds(u[D])];K===n&&(D=V,K=y),a=bl(K)?K.call(a):K}return a}function fR(a,u,y){return a==null?a:Za(a,u,y)}function dR(a,u,y,D){return D=typeof D=="function"?D:n,a==null?a:Za(a,u,y,D)}var Jb=sr(li),Qb=sr(Eo);function hR(a,u,y){var D=Xt(a),V=D||cu(a)||cf(a);if(u=Rt(u,4),y==null){var K=a&&a.constructor;V?y=D?new K:[]:tr(a)?y=bl(K)?pa(gs(a)):{}:y={}}return(V?oe:xo)(a,function(le,me,xe){return u(y,le,me,xe)}),y}function pR(a,u){return a==null?!0:sc(a,u)}function gR(a,u,y){return a==null?a:ru(a,u,fl(y))}function vR(a,u,y,D){return D=typeof D=="function"?D:n,a==null?a:ru(a,u,fl(y),D)}function ff(a){return a==null?[]:Nt(a,li(a))}function mR(a){return a==null?[]:Nt(a,Eo(a))}function yR(a,u,y){return y===n&&(y=u,u=n),y!==n&&(y=wa(y),y=y===y?y:0),u!==n&&(u=wa(u),u=u===u?u:0),va(wa(a),u,y)}function bR(a,u,y){return u=wl(u),y===n?(y=u,u=0):y=wl(y),a=wa(a),rl(a,u,y)}function wR(a,u,y){if(y&&typeof y!="boolean"&&no(a,u,y)&&(u=y=n),y===n&&(typeof u=="boolean"?(y=u,u=n):typeof a=="boolean"&&(y=a,a=n)),a===n&&u===n?(a=0,u=1):(a=wl(a),u===n?(u=a,a=0):u=wl(u)),a>u){var D=a;a=u,u=D}if(y||a%1||u%1){var V=jo();return Nn(a+V*(u-a+dr("1e-"+((V+"").length-1))),u)}return nu(a,u)}var xR=se(function(a,u,y){return u=u.toLowerCase(),a+(y?e0(u):u)});function e0(a){return _g(bn(a).toLowerCase())}function t0(a){return a=bn(a),a&&a.replace(Ir,Yn).replace(Ma,"")}function SR(a,u,y){a=bn(a),u=ai(u);var D=a.length;y=y===n?D:va(en(y),0,D);var V=y;return y-=u.length,y>=0&&a.slice(y,V)==u}function TR(a){return a=bn(a),a&&Hi.test(a)?a.replace(Zt,oa):a}function CR(a){return a=bn(a),a&&gi.test(a)?a.replace(xr,"\\$&"):a}var ER=se(function(a,u,y){return a+(y?"-":"")+u.toLowerCase()}),kR=se(function(a,u,y){return a+(y?" ":"")+u.toLowerCase()}),_R=Z("toLowerCase");function OR(a,u,y){a=bn(a),u=en(u);var D=u?mo(a):0;if(!u||D>=u)return a;var V=(u-D)/2;return fe(vs(V),y)+a+fe(Gs(V),y)}function DR(a,u,y){a=bn(a),u=en(u);var D=u?mo(a):0;return u&&D<u?a+fe(u-D,y):a}function PR(a,u,y){a=bn(a),u=en(u);var D=u?mo(a):0;return u&&D<u?fe(u-D,y)+a:a}function RR(a,u,y){return y||u==null?u=0:u&&(u=+u),Uu(bn(a).replace(fn,""),u||0)}function IR(a,u,y){return(y?no(a,u,y):u===n)?u=1:u=en(u),ic(bn(a),u)}function AR(){var a=arguments,u=bn(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var MR=se(function(a,u,y){return a+(y?"_":"")+u.toLowerCase()});function LR(a,u,y){return y&&typeof y!="number"&&no(a,u,y)&&(u=y=n),y=y===n?Pe:y>>>0,y?(a=bn(a),a&&(typeof u=="string"||u!=null&&!Cg(u))&&(u=ai(u),!u&&ii(a))?to(hr(a),0,y):a.split(u,y)):[]}var FR=se(function(a,u,y){return a+(y?" ":"")+_g(u)});function NR(a,u,y){return a=bn(a),y=y==null?0:va(en(y),0,a.length),u=ai(u),a.slice(y,y+u.length)==u}function jR(a,u,y){var D=G.templateSettings;y&&no(a,u,y)&&(u=n),a=bn(a),u=ch({},u,D,fc);var V=ch({},u.imports,D.imports,fc),K=li(V),le=Nt(V,K),me,xe,Xe=0,Ke=u.interpolate||Qr,it="__p += '",pt=At((u.escape||Qr).source+"|"+Ke.source+"|"+(Ke===hi?Ci:Qr).source+"|"+(u.evaluate||Qr).source+"|$","g"),_t="//# sourceURL="+(Mt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+`
|
|
153
|
+
`;a.replace(pt,function(Ft,rn,an,Go,ro,qo){return an||(an=Go),it+=a.slice(Xe,qo).replace(Ar,ls),rn&&(me=!0,it+=`' +
|
|
154
|
+
__e(`+rn+`) +
|
|
155
|
+
'`),ro&&(xe=!0,it+=`';
|
|
156
|
+
`+ro+`;
|
|
157
|
+
__p += '`),an&&(it+=`' +
|
|
158
|
+
((__t = (`+an+`)) == null ? '' : __t) +
|
|
159
|
+
'`),Xe=qo+Ft.length,Ft}),it+=`';
|
|
160
|
+
`;var Lt=Mt.call(u,"variable")&&u.variable;if(!Lt)it=`with (obj) {
|
|
161
|
+
`+it+`
|
|
162
|
+
}
|
|
163
|
+
`;else if(co.test(Lt))throw new We(l);it=(xe?it.replace(Do,""):it).replace(Zn,"$1").replace(Kr,"$1;"),it="function("+(Lt||"obj")+`) {
|
|
164
|
+
`+(Lt?"":`obj || (obj = {});
|
|
165
|
+
`)+"var __t, __p = ''"+(me?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join;
|
|
166
|
+
function print() { __p += __j.call(arguments, '') }
|
|
167
|
+
`:`;
|
|
168
|
+
`)+it+`return __p
|
|
169
|
+
}`;var tn=r0(function(){return ft(K,_t+"return "+it).apply(n,le)});if(tn.source=it,Tg(tn))throw tn;return tn}function BR(a){return bn(a).toLowerCase()}function $R(a){return bn(a).toUpperCase()}function VR(a,u,y){if(a=bn(a),a&&(y||u===n))return nt(a);if(!a||!(u=ai(u)))return a;var D=hr(a),V=hr(u),K=Ct(D,V),le=Bn(D,V)+1;return to(D,K,le).join("")}function HR(a,u,y){if(a=bn(a),a&&(y||u===n))return a.slice(0,Ws(a)+1);if(!a||!(u=ai(u)))return a;var D=hr(a),V=Bn(D,hr(u))+1;return to(D,0,V).join("")}function UR(a,u,y){if(a=bn(a),a&&(y||u===n))return a.replace(fn,"");if(!a||!(u=ai(u)))return a;var D=hr(a),V=Ct(D,hr(u));return to(D,V).join("")}function WR(a,u){var y=Ne,D=Je;if(tr(u)){var V="separator"in u?u.separator:V;y="length"in u?en(u.length):y,D="omission"in u?ai(u.omission):D}a=bn(a);var K=a.length;if(ii(a)){var le=hr(a);K=le.length}if(y>=K)return a;var me=y-mo(D);if(me<1)return D;var xe=le?to(le,0,me).join(""):a.slice(0,me);if(V===n)return xe+D;if(le&&(me+=xe.length-me),Cg(V)){if(a.slice(me).search(V)){var Xe,Ke=xe;for(V.global||(V=At(V.source,bn(vi.exec(V))+"g")),V.lastIndex=0;Xe=V.exec(Ke);)var it=Xe.index;xe=xe.slice(0,it===n?me:it)}}else if(a.indexOf(ai(V),me)!=me){var pt=xe.lastIndexOf(V);pt>-1&&(xe=xe.slice(0,pt))}return xe+D}function zR(a){return a=bn(a),a&&di.test(a)?a.replace(ir,cs):a}var YR=se(function(a,u,y){return a+(y?" ":"")+u.toUpperCase()}),_g=Z("toUpperCase");function n0(a,u,y){return a=bn(a),u=y?n:u,u===n?Hs(a)?ye(a):Wt(a):a.match(u)||[]}var r0=Gt(function(a,u){try{return H(a,n,u)}catch(y){return Tg(y)?y:new We(y)}}),GR=ml(function(a,u){return oe(u,function(y){y=Ds(y),pr(a,y,xg(a[y],a))}),a});function qR(a){var u=a==null?0:a.length,y=Rt();return a=u?ct(a,function(D){if(typeof D[1]!="function")throw new Yt(s);return[y(D[0]),D[1]]}):[],Gt(function(D){for(var V=-1;++V<u;){var K=a[V];if(H(K[0],this,D))return H(K[1],this,D)}})}function XR(a){return Gu(zr(a,p))}function Og(a){return function(){return a}}function KR(a,u){return a==null||a!==a?u:a}var ZR=b(),JR=b(!0);function ko(a){return a}function Dg(a){return Cs(typeof a=="function"?a:zr(a,p))}function QR(a){return Uo(zr(a,p))}function eI(a,u){return eo(a,zr(u,p))}var tI=Gt(function(a,u){return function(y){return Pi(y,a,u)}}),nI=Gt(function(a,u){return function(y){return Pi(a,y,u)}});function Pg(a,u,y){var D=li(u),V=Jl(u,D);y==null&&!(tr(u)&&(V.length||!D.length))&&(y=u,u=a,a=this,V=Jl(u,li(u)));var K=!(tr(y)&&"chain"in y)||!!y.chain,le=bl(a);return oe(V,function(me){var xe=u[me];a[me]=xe,le&&(a.prototype[me]=function(){var Xe=this.__chain__;if(K||Xe){var Ke=a(this.__wrapped__),it=Ke.__actions__=vr(this.__actions__);return it.push({func:xe,args:arguments,thisArg:a}),Ke.__chain__=Xe,Ke}return xe.apply(a,Dt([this.value()],arguments))})}),a}function rI(){return yn._===this&&(yn._=Dn),this}function Rg(){}function iI(a){return a=en(a),Gt(function(u){return Xa(u,a)})}var oI=ie(ct),aI=ie(Le),sI=ie(dn);function i0(a){return gg(a)?k(Ds(a)):rc(a)}function lI(a){return function(u){return a==null?n:Ya(a,u)}}var uI=Ze(),cI=Ze(!0);function Ig(){return[]}function Ag(){return!1}function fI(){return{}}function dI(){return""}function hI(){return!0}function pI(a,u){if(a=en(a),a<1||a>et)return[];var y=Pe,D=Nn(a,Pe);u=Rt(u),a-=Pe;for(var V=Te(D,u);++y<a;)u(y);return V}function gI(a){return Xt(a)?ct(a,Ds):Yo(a)?[a]:vr(Cb(bn(a)))}function vI(a){var u=++Uc;return bn(a)+u}var mI=Y(function(a,u){return a+u},0),yI=Pt("ceil"),bI=Y(function(a,u){return a/u},1),wI=Pt("floor");function xI(a){return a&&a.length?Zl(a,ko,tl):n}function SI(a,u){return a&&a.length?Zl(a,Rt(u,2),tl):n}function TI(a){return Er(a,ko)}function CI(a,u){return Er(a,Rt(u,2))}function EI(a){return a&&a.length?Zl(a,ko,Qi):n}function kI(a,u){return a&&a.length?Zl(a,Rt(u,2),Qi):n}var _I=Y(function(a,u){return a*u},1),OI=Pt("round"),DI=Y(function(a,u){return a-u},0);function PI(a){return a&&a.length?Se(a,ko):0}function RI(a,u){return a&&a.length?Se(a,Rt(u,2)):0}return G.after=QD,G.ary=Lb,G.assign=$P,G.assignIn=Xb,G.assignInWith=ch,G.assignWith=VP,G.at=HP,G.before=Fb,G.bind=xg,G.bindAll=GR,G.bindKey=Nb,G.castArray=fP,G.chain=Ib,G.chunk=wO,G.compact=xO,G.concat=SO,G.cond=qR,G.conforms=XR,G.constant=Og,G.countBy=PD,G.create=UP,G.curry=jb,G.curryRight=Bb,G.debounce=$b,G.defaults=WP,G.defaultsDeep=zP,G.defer=eP,G.delay=tP,G.difference=TO,G.differenceBy=CO,G.differenceWith=EO,G.drop=kO,G.dropRight=_O,G.dropRightWhile=OO,G.dropWhile=DO,G.fill=PO,G.filter=ID,G.flatMap=LD,G.flatMapDeep=FD,G.flatMapDepth=ND,G.flatten=Ob,G.flattenDeep=RO,G.flattenDepth=IO,G.flip=nP,G.flow=ZR,G.flowRight=JR,G.fromPairs=AO,G.functions=JP,G.functionsIn=QP,G.groupBy=jD,G.initial=LO,G.intersection=FO,G.intersectionBy=NO,G.intersectionWith=jO,G.invert=tR,G.invertBy=nR,G.invokeMap=$D,G.iteratee=Dg,G.keyBy=VD,G.keys=li,G.keysIn=Eo,G.map=ih,G.mapKeys=iR,G.mapValues=oR,G.matches=QR,G.matchesProperty=eI,G.memoize=ah,G.merge=aR,G.mergeWith=Kb,G.method=tI,G.methodOf=nI,G.mixin=Pg,G.negate=sh,G.nthArg=iI,G.omit=sR,G.omitBy=lR,G.once=rP,G.orderBy=HD,G.over=oI,G.overArgs=iP,G.overEvery=aI,G.overSome=sI,G.partial=Sg,G.partialRight=Vb,G.partition=UD,G.pick=uR,G.pickBy=Zb,G.property=i0,G.propertyOf=lI,G.pull=HO,G.pullAll=Pb,G.pullAllBy=UO,G.pullAllWith=WO,G.pullAt=zO,G.range=uI,G.rangeRight=cI,G.rearg=oP,G.reject=YD,G.remove=YO,G.rest=aP,G.reverse=bg,G.sampleSize=qD,G.set=fR,G.setWith=dR,G.shuffle=XD,G.slice=GO,G.sortBy=JD,G.sortedUniq=eD,G.sortedUniqBy=tD,G.split=LR,G.spread=sP,G.tail=nD,G.take=rD,G.takeRight=iD,G.takeRightWhile=oD,G.takeWhile=aD,G.tap=xD,G.throttle=lP,G.thru=rh,G.toArray=Yb,G.toPairs=Jb,G.toPairsIn=Qb,G.toPath=gI,G.toPlainObject=qb,G.transform=hR,G.unary=uP,G.union=sD,G.unionBy=lD,G.unionWith=uD,G.uniq=cD,G.uniqBy=fD,G.uniqWith=dD,G.unset=pR,G.unzip=wg,G.unzipWith=Rb,G.update=gR,G.updateWith=vR,G.values=ff,G.valuesIn=mR,G.without=hD,G.words=n0,G.wrap=cP,G.xor=pD,G.xorBy=gD,G.xorWith=vD,G.zip=mD,G.zipObject=yD,G.zipObjectDeep=bD,G.zipWith=wD,G.entries=Jb,G.entriesIn=Qb,G.extend=Xb,G.extendWith=ch,Pg(G,G),G.add=mI,G.attempt=r0,G.camelCase=xR,G.capitalize=e0,G.ceil=yI,G.clamp=yR,G.clone=dP,G.cloneDeep=pP,G.cloneDeepWith=gP,G.cloneWith=hP,G.conformsTo=vP,G.deburr=t0,G.defaultTo=KR,G.divide=bI,G.endsWith=SR,G.eq=Ja,G.escape=TR,G.escapeRegExp=CR,G.every=RD,G.find=AD,G.findIndex=kb,G.findKey=YP,G.findLast=MD,G.findLastIndex=_b,G.findLastKey=GP,G.floor=wI,G.forEach=Ab,G.forEachRight=Mb,G.forIn=qP,G.forInRight=XP,G.forOwn=KP,G.forOwnRight=ZP,G.get=Eg,G.gt=mP,G.gte=yP,G.has=eR,G.hasIn=kg,G.head=Db,G.identity=ko,G.includes=BD,G.indexOf=MO,G.inRange=bR,G.invoke=rR,G.isArguments=gc,G.isArray=Xt,G.isArrayBuffer=bP,G.isArrayLike=Co,G.isArrayLikeObject=mr,G.isBoolean=wP,G.isBuffer=cu,G.isDate=xP,G.isElement=SP,G.isEmpty=TP,G.isEqual=CP,G.isEqualWith=EP,G.isError=Tg,G.isFinite=kP,G.isFunction=bl,G.isInteger=Hb,G.isLength=lh,G.isMap=Ub,G.isMatch=_P,G.isMatchWith=OP,G.isNaN=DP,G.isNative=PP,G.isNil=IP,G.isNull=RP,G.isNumber=Wb,G.isObject=tr,G.isObjectLike=lr,G.isPlainObject=Zf,G.isRegExp=Cg,G.isSafeInteger=AP,G.isSet=zb,G.isString=uh,G.isSymbol=Yo,G.isTypedArray=cf,G.isUndefined=MP,G.isWeakMap=LP,G.isWeakSet=FP,G.join=BO,G.kebabCase=ER,G.last=ba,G.lastIndexOf=$O,G.lowerCase=kR,G.lowerFirst=_R,G.lt=NP,G.lte=jP,G.max=xI,G.maxBy=SI,G.mean=TI,G.meanBy=CI,G.min=EI,G.minBy=kI,G.stubArray=Ig,G.stubFalse=Ag,G.stubObject=fI,G.stubString=dI,G.stubTrue=hI,G.multiply=_I,G.nth=VO,G.noConflict=rI,G.noop=Rg,G.now=oh,G.pad=OR,G.padEnd=DR,G.padStart=PR,G.parseInt=RR,G.random=wR,G.reduce=WD,G.reduceRight=zD,G.repeat=IR,G.replace=AR,G.result=cR,G.round=OI,G.runInContext=Q,G.sample=GD,G.size=KD,G.snakeCase=MR,G.some=ZD,G.sortedIndex=qO,G.sortedIndexBy=XO,G.sortedIndexOf=KO,G.sortedLastIndex=ZO,G.sortedLastIndexBy=JO,G.sortedLastIndexOf=QO,G.startCase=FR,G.startsWith=NR,G.subtract=DI,G.sum=PI,G.sumBy=RI,G.template=jR,G.times=pI,G.toFinite=wl,G.toInteger=en,G.toLength=Gb,G.toLower=BR,G.toNumber=wa,G.toSafeInteger=BP,G.toString=bn,G.toUpper=$R,G.trim=VR,G.trimEnd=HR,G.trimStart=UR,G.truncate=WR,G.unescape=zR,G.uniqueId=vI,G.upperCase=YR,G.upperFirst=_g,G.each=Ab,G.eachRight=Mb,G.first=Db,Pg(G,function(){var a={};return xo(G,function(u,y){Mt.call(G.prototype,y)||(a[y]=u)}),a}(),{chain:!1}),G.VERSION=r,oe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){G[a].placeholder=G}),oe(["drop","take"],function(a,u){qt.prototype[a]=function(y){y=y===n?1:Fn(en(y),0);var D=this.__filtered__&&!u?new qt(this):this.clone();return D.__filtered__?D.__takeCount__=Nn(y,D.__takeCount__):D.__views__.push({size:Nn(y,Pe),type:a+(D.__dir__<0?"Right":"")}),D},qt.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),oe(["filter","map","takeWhile"],function(a,u){var y=u+1,D=y==tt||y==Ce;qt.prototype[a]=function(V){var K=this.clone();return K.__iteratees__.push({iteratee:Rt(V,3),type:y}),K.__filtered__=K.__filtered__||D,K}}),oe(["head","last"],function(a,u){var y="take"+(u?"Right":"");qt.prototype[a]=function(){return this[y](1).value()[0]}}),oe(["initial","tail"],function(a,u){var y="drop"+(u?"":"Right");qt.prototype[a]=function(){return this.__filtered__?new qt(this):this[y](1)}}),qt.prototype.compact=function(){return this.filter(ko)},qt.prototype.find=function(a){return this.filter(a).head()},qt.prototype.findLast=function(a){return this.reverse().find(a)},qt.prototype.invokeMap=Gt(function(a,u){return typeof a=="function"?new qt(this):this.map(function(y){return Pi(y,a,u)})}),qt.prototype.reject=function(a){return this.filter(sh(Rt(a)))},qt.prototype.slice=function(a,u){a=en(a);var y=this;return y.__filtered__&&(a>0||u<0)?new qt(y):(a<0?y=y.takeRight(-a):a&&(y=y.drop(a)),u!==n&&(u=en(u),y=u<0?y.dropRight(-u):y.take(u-a)),y)},qt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},qt.prototype.toArray=function(){return this.take(Pe)},xo(qt.prototype,function(a,u){var y=/^(?:filter|find|map|reject)|While$/.test(u),D=/^(?:head|last)$/.test(u),V=G[D?"take"+(u=="last"?"Right":""):u],K=D||/^find/.test(u);V&&(G.prototype[u]=function(){var le=this.__wrapped__,me=D?[1]:arguments,xe=le instanceof qt,Xe=me[0],Ke=xe||Xt(le),it=function(rn){var an=V.apply(G,Dt([rn],me));return D&&pt?an[0]:an};Ke&&y&&typeof Xe=="function"&&Xe.length!=1&&(xe=Ke=!1);var pt=this.__chain__,_t=!!this.__actions__.length,Lt=K&&!pt,tn=xe&&!_t;if(!K&&Ke){le=tn?le:new qt(this);var Ft=a.apply(le,me);return Ft.__actions__.push({func:rh,args:[it],thisArg:n}),new Wr(Ft,pt)}return Lt&&tn?a.apply(this,me):(Ft=this.thru(it),Lt?D?Ft.value()[0]:Ft.value():Ft)})}),oe(["pop","push","shift","sort","splice","unshift"],function(a){var u=Ln[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",D=/^(?:pop|shift)$/.test(a);G.prototype[a]=function(){var V=arguments;if(D&&!this.__chain__){var K=this.value();return u.apply(Xt(K)?K:[],V)}return this[y](function(le){return u.apply(Xt(le)?le:[],V)})}}),xo(qt.prototype,function(a,u){var y=G[u];if(y){var D=y.name+"";Mt.call(ha,D)||(ha[D]=[]),ha[D].push({name:u,func:y})}}),ha[O(n,I).name]=[{name:"wrapper",func:n}],qt.prototype.clone=Hl,qt.prototype.reverse=bs,qt.prototype.value=Qs,G.prototype.at=SD,G.prototype.chain=TD,G.prototype.commit=CD,G.prototype.next=ED,G.prototype.plant=_D,G.prototype.reverse=OD,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=DD,G.prototype.first=G.prototype.head,Fo&&(G.prototype[Fo]=kD),G},_e=De();xi?((xi.exports=_e)._=_e,Lo._=_e):yn._=_e}).call(Ko)})(kp,kp.exports);var b_=kp.exports;const E4=Bc(b_);function c1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function k4(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function _4(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,s=[],l=null,c=null,d=i;d<=o;d++){var v=t(d);v?c!==null&&(s.push(l,c),l=c=null):(c=d,l===null&&(l=d))}if(c!==null){for(var p=Math.min(Math.max(c,l+r-1),n-1),x=c+1;x<=p&&!t(x);x++)c=x;s.push(l,c)}if(s.length)for(;s[1]-s[0]+1<r&&s[0]>0;){var T=s[0]-1;if(!t(T))s[0]=T;else break}return s}var O4=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},D4=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),P4=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},f1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},R4=function(e){P4(t,e);function t(){var n,r,i,o;O4(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=f1(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(d){var v=d.visibleStartIndex,p=d.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!c1(v)||!c1(p))&&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=v,i._lastRenderedStopIndex=p,i._ensureRowsLoaded(v,p)},i._setRef=function(d){i._listRef=d},r),f1(i,o)}return D4(t,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,s=o.isItemLoaded,l=o.itemCount,c=o.minimumBatchSize,d=c===void 0?10:c,v=o.threshold,p=v===void 0?15:v,x=_4({isItemLoaded:s,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-p),stopIndex:Math.min(l-1,i+p)});(this._memoizedUnloadedRanges.length!==x.length||this._memoizedUnloadedRanges.some(function(T,P){return x[P]!==T}))&&(this._memoizedUnloadedRanges=x,this._loadUnloadedRanges(x))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,s=function(d){var v=r[d],p=r[d+1],x=o(v,p);x!=null&&x.then(function(){if(k4({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:v,stopIndex:p})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(v,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},l=0;l<r.length;l+=2)s(l)}}]),t}(X.PureComponent),w_={exports:{}};/*!
|
|
170
|
+
* jQuery JavaScript Library v3.7.1
|
|
171
|
+
* https://jquery.com/
|
|
172
|
+
*
|
|
173
|
+
* Copyright OpenJS Foundation and other contributors
|
|
174
|
+
* Released under the MIT license
|
|
175
|
+
* https://jquery.org/license
|
|
176
|
+
*
|
|
177
|
+
* Date: 2023-08-28T13:37Z
|
|
178
|
+
*/(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:Ko,function(t,n){var r=[],i=Object.getPrototypeOf,o=r.slice,s=r.flat?function(f){return r.flat.call(f)}:function(f){return r.concat.apply([],f)},l=r.push,c=r.indexOf,d={},v=d.toString,p=d.hasOwnProperty,x=p.toString,T=x.call(Object),P={},R=function(m){return typeof m=="function"&&typeof m.nodeType!="number"&&typeof m.item!="function"},L=function(m){return m!=null&&m===m.window},I=t.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function W(f,m,C){C=C||I;var _,N,B=C.createElement("script");if(B.text=f,m)for(_ in U)N=m[_]||m.getAttribute&&m.getAttribute(_),N&&B.setAttribute(_,N);C.head.appendChild(B).parentNode.removeChild(B)}function te(f){return f==null?f+"":typeof f=="object"||typeof f=="function"?d[v.call(f)]||"object":typeof f}var J="3.7.1",ge=/HTML$/i,S=function(f,m){return new S.fn.init(f,m)};S.fn=S.prototype={jquery:J,constructor:S,length:0,toArray:function(){return o.call(this)},get:function(f){return f==null?o.call(this):f<0?this[f+this.length]:this[f]},pushStack:function(f){var m=S.merge(this.constructor(),f);return m.prevObject=this,m},each:function(f){return S.each(this,f)},map:function(f){return this.pushStack(S.map(this,function(m,C){return f.call(m,C,m)}))},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(f,m){return(m+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(f,m){return m%2}))},eq:function(f){var m=this.length,C=+f+(f<0?m:0);return this.pushStack(C>=0&&C<m?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:r.sort,splice:r.splice},S.extend=S.fn.extend=function(){var f,m,C,_,N,B,H=arguments[0]||{},ue=1,oe=arguments.length,we=!1;for(typeof H=="boolean"&&(we=H,H=arguments[ue]||{},ue++),typeof H!="object"&&!R(H)&&(H={}),ue===oe&&(H=this,ue--);ue<oe;ue++)if((f=arguments[ue])!=null)for(m in f)_=f[m],!(m==="__proto__"||H===_)&&(we&&_&&(S.isPlainObject(_)||(N=Array.isArray(_)))?(C=H[m],N&&!Array.isArray(C)?B=[]:!N&&!S.isPlainObject(C)?B={}:B=C,N=!1,H[m]=S.extend(we,B,_)):_!==void 0&&(H[m]=_));return H},S.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),isReady:!0,error:function(f){throw new Error(f)},noop:function(){},isPlainObject:function(f){var m,C;return!f||v.call(f)!=="[object Object]"?!1:(m=i(f),m?(C=p.call(m,"constructor")&&m.constructor,typeof C=="function"&&x.call(C)===T):!0)},isEmptyObject:function(f){var m;for(m in f)return!1;return!0},globalEval:function(f,m,C){W(f,{nonce:m&&m.nonce},C)},each:function(f,m){var C,_=0;if(ce(f))for(C=f.length;_<C&&m.call(f[_],_,f[_])!==!1;_++);else for(_ in f)if(m.call(f[_],_,f[_])===!1)break;return f},text:function(f){var m,C="",_=0,N=f.nodeType;if(!N)for(;m=f[_++];)C+=S.text(m);return N===1||N===11?f.textContent:N===9?f.documentElement.textContent:N===3||N===4?f.nodeValue:C},makeArray:function(f,m){var C=m||[];return f!=null&&(ce(Object(f))?S.merge(C,typeof f=="string"?[f]:f):l.call(C,f)),C},inArray:function(f,m,C){return m==null?-1:c.call(m,f,C)},isXMLDoc:function(f){var m=f&&f.namespaceURI,C=f&&(f.ownerDocument||f).documentElement;return!ge.test(m||C&&C.nodeName||"HTML")},merge:function(f,m){for(var C=+m.length,_=0,N=f.length;_<C;_++)f[N++]=m[_];return f.length=N,f},grep:function(f,m,C){for(var _,N=[],B=0,H=f.length,ue=!C;B<H;B++)_=!m(f[B],B),_!==ue&&N.push(f[B]);return N},map:function(f,m,C){var _,N,B=0,H=[];if(ce(f))for(_=f.length;B<_;B++)N=m(f[B],B,C),N!=null&&H.push(N);else for(B in f)N=m(f[B],B,C),N!=null&&H.push(N);return s(H)},guid:1,support:P}),typeof Symbol=="function"&&(S.fn[Symbol.iterator]=r[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(f,m){d["[object "+m+"]"]=m.toLowerCase()});function ce(f){var m=!!f&&"length"in f&&f.length,C=te(f);return R(f)||L(f)?!1:C==="array"||m===0||typeof m=="number"&&m>0&&m-1 in f}function ae(f,m){return f.nodeName&&f.nodeName.toLowerCase()===m.toLowerCase()}var Ne=r.pop,Je=r.sort,Ye=r.splice,Qe="[\\x20\\t\\r\\n\\f]",tt=new RegExp("^"+Qe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Qe+"+$","g");S.contains=function(f,m){var C=m&&m.parentNode;return f===C||!!(C&&C.nodeType===1&&(f.contains?f.contains(C):f.compareDocumentPosition&&f.compareDocumentPosition(C)&16))};var he=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Ce(f,m){return m?f==="\0"?"�":f.slice(0,-1)+"\\"+f.charCodeAt(f.length-1).toString(16)+" ":"\\"+f}S.escapeSelector=function(f){return(f+"").replace(he,Ce)};var He=I,et=l;(function(){var f,m,C,_,N,B=et,H,ue,oe,we,Le,je=S.expando,ke=0,qe=0,ct=Bn(),Dt=Bn(),It=Bn(),Mn=Bn(),dn=function(ee,ye){return ee===ye&&(N=!0),0},Br="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$r="(?:\\\\[\\da-fA-F]{1,6}"+Qe+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Wt="\\["+Qe+"*("+$r+")(?:"+Qe+"*([*^$|!~]?=)"+Qe+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+$r+"))|)"+Qe+"*\\]",Vr=":("+$r+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Wt+")*)|.*)\\)|)",zt=new RegExp(Qe+"+","g"),on=new RegExp("^"+Qe+"*,"+Qe+"*"),po=new RegExp("^"+Qe+"*([>+~]|"+Qe+")"+Qe+"*"),go=new RegExp(Qe+"|>"),Er=new RegExp(Vr),k=new RegExp("^"+$r+"$"),F={ID:new RegExp("^#("+$r+")"),CLASS:new RegExp("^\\.("+$r+")"),TAG:new RegExp("^("+$r+"|[*])"),ATTR:new RegExp("^"+Wt),PSEUDO:new RegExp("^"+Vr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Qe+"*(even|odd|(([+-]|)(\\d*)n|)"+Qe+"*(?:([+-]|)"+Qe+"*(\\d+)|))"+Qe+"*\\)|)","i"),bool:new RegExp("^(?:"+Br+")$","i"),needsContext:new RegExp("^"+Qe+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Qe+"*((?:-\\d)?\\d*)"+Qe+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,ne=/^h\d$/i,Se=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Te=/[+~]/,Be=new RegExp("\\\\[\\da-fA-F]{1,6}"+Qe+"?|\\\\([^\\r\\n\\f])","g"),nt=function(ee,ye){var De="0x"+ee.slice(1)-65536;return ye||(De<0?String.fromCharCode(De+65536):String.fromCharCode(De>>10|55296,De&1023|56320))},xt=function(){vo()},Nt=Gi(function(ee){return ee.disabled===!0&&ae(ee,"fieldset")},{dir:"parentNode",next:"legend"});function Ot(){try{return H.activeElement}catch{}}try{B.apply(r=o.call(He.childNodes),He.childNodes),r[He.childNodes.length].nodeType}catch{B={apply:function(ye,De){et.apply(ye,o.call(De))},call:function(ye){et.apply(ye,o.call(arguments,1))}}}function Ct(ee,ye,De,_e){var Q,pe,de,$e,We,ft,dt,ut=ye&&ye.ownerDocument,At=ye?ye.nodeType:9;if(De=De||[],typeof ee!="string"||!ee||At!==1&&At!==9&&At!==11)return De;if(!_e&&(vo(ye),ye=ye||H,oe)){if(At!==11&&(We=Se.exec(ee)))if(Q=We[1]){if(At===9)if(de=ye.getElementById(Q)){if(de.id===Q)return B.call(De,de),De}else return De;else if(ut&&(de=ut.getElementById(Q))&&Ct.contains(ye,de)&&de.id===Q)return B.call(De,de),De}else{if(We[2])return B.apply(De,ye.getElementsByTagName(ee)),De;if((Q=We[3])&&ye.getElementsByClassName)return B.apply(De,ye.getElementsByClassName(Q)),De}if(!Mn[ee+" "]&&(!we||!we.test(ee))){if(dt=ee,ut=ye,At===1&&(go.test(ee)||po.test(ee))){for(ut=Te.test(ee)&&Hs(ye.parentNode)||ye,(ut!=ye||!P.scope)&&(($e=ye.getAttribute("id"))?$e=S.escapeSelector($e):ye.setAttribute("id",$e=je)),ft=sa(ee),pe=ft.length;pe--;)ft[pe]=($e?"#"+$e:":scope")+" "+Si(ft[pe]);dt=ft.join(",")}try{return B.apply(De,ut.querySelectorAll(dt)),De}catch{Mn(ee,!0)}finally{$e===je&&ye.removeAttribute("id")}}}return fs(ee.replace(tt,"$1"),ye,De,_e)}function Bn(){var ee=[];function ye(De,_e){return ee.push(De+" ")>m.cacheLength&&delete ye[ee.shift()],ye[De+" "]=_e}return ye}function Tn(ee){return ee[je]=!0,ee}function Yn(ee){var ye=H.createElement("fieldset");try{return!!ee(ye)}catch{return!1}finally{ye.parentNode&&ye.parentNode.removeChild(ye),ye=null}}function oa(ee){return function(ye){return ae(ye,"input")&&ye.type===ee}}function ls(ee){return function(ye){return(ae(ye,"input")||ae(ye,"button"))&&ye.type===ee}}function aa(ee){return function(ye){return"form"in ye?ye.parentNode&&ye.disabled===!1?"label"in ye?"label"in ye.parentNode?ye.parentNode.disabled===ee:ye.disabled===ee:ye.isDisabled===ee||ye.isDisabled!==!ee&&Nt(ye)===ee:ye.disabled===ee:"label"in ye?ye.disabled===ee:!1}}function ii(ee){return Tn(function(ye){return ye=+ye,Tn(function(De,_e){for(var Q,pe=ee([],De.length,ye),de=pe.length;de--;)De[Q=pe[de]]&&(De[Q]=!(_e[Q]=De[Q]))})})}function Hs(ee){return ee&&typeof ee.getElementsByTagName<"u"&&ee}function vo(ee){var ye,De=ee?ee.ownerDocument||ee:He;return De==H||De.nodeType!==9||!De.documentElement||(H=De,ue=H.documentElement,oe=!S.isXMLDoc(H),Le=ue.matches||ue.webkitMatchesSelector||ue.msMatchesSelector,ue.msMatchesSelector&&He!=H&&(ye=H.defaultView)&&ye.top!==ye&&ye.addEventListener("unload",xt),P.getById=Yn(function(_e){return ue.appendChild(_e).id=S.expando,!H.getElementsByName||!H.getElementsByName(S.expando).length}),P.disconnectedMatch=Yn(function(_e){return Le.call(_e,"*")}),P.scope=Yn(function(){return H.querySelectorAll(":scope")}),P.cssHas=Yn(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),P.getById?(m.filter.ID=function(_e){var Q=_e.replace(Be,nt);return function(pe){return pe.getAttribute("id")===Q}},m.find.ID=function(_e,Q){if(typeof Q.getElementById<"u"&&oe){var pe=Q.getElementById(_e);return pe?[pe]:[]}}):(m.filter.ID=function(_e){var Q=_e.replace(Be,nt);return function(pe){var de=typeof pe.getAttributeNode<"u"&&pe.getAttributeNode("id");return de&&de.value===Q}},m.find.ID=function(_e,Q){if(typeof Q.getElementById<"u"&&oe){var pe,de,$e,We=Q.getElementById(_e);if(We){if(pe=We.getAttributeNode("id"),pe&&pe.value===_e)return[We];for($e=Q.getElementsByName(_e),de=0;We=$e[de++];)if(pe=We.getAttributeNode("id"),pe&&pe.value===_e)return[We]}return[]}}),m.find.TAG=function(_e,Q){return typeof Q.getElementsByTagName<"u"?Q.getElementsByTagName(_e):Q.querySelectorAll(_e)},m.find.CLASS=function(_e,Q){if(typeof Q.getElementsByClassName<"u"&&oe)return Q.getElementsByClassName(_e)},we=[],Yn(function(_e){var Q;ue.appendChild(_e).innerHTML="<a id='"+je+"' href='' disabled='disabled'></a><select id='"+je+"-\r\\' disabled='disabled'><option selected=''></option></select>",_e.querySelectorAll("[selected]").length||we.push("\\["+Qe+"*(?:value|"+Br+")"),_e.querySelectorAll("[id~="+je+"-]").length||we.push("~="),_e.querySelectorAll("a#"+je+"+*").length||we.push(".#.+[+~]"),_e.querySelectorAll(":checked").length||we.push(":checked"),Q=H.createElement("input"),Q.setAttribute("type","hidden"),_e.appendChild(Q).setAttribute("name","D"),ue.appendChild(_e).disabled=!0,_e.querySelectorAll(":disabled").length!==2&&we.push(":enabled",":disabled"),Q=H.createElement("input"),Q.setAttribute("name",""),_e.appendChild(Q),_e.querySelectorAll("[name='']").length||we.push("\\["+Qe+"*name"+Qe+"*="+Qe+`*(?:''|"")`)}),P.cssHas||we.push(":has"),we=we.length&&new RegExp(we.join("|")),dn=function(_e,Q){if(_e===Q)return N=!0,0;var pe=!_e.compareDocumentPosition-!Q.compareDocumentPosition;return pe||(pe=(_e.ownerDocument||_e)==(Q.ownerDocument||Q)?_e.compareDocumentPosition(Q):1,pe&1||!P.sortDetached&&Q.compareDocumentPosition(_e)===pe?_e===H||_e.ownerDocument==He&&Ct.contains(He,_e)?-1:Q===H||Q.ownerDocument==He&&Ct.contains(He,Q)?1:_?c.call(_,_e)-c.call(_,Q):0:pe&4?-1:1)}),H}Ct.matches=function(ee,ye){return Ct(ee,null,null,ye)},Ct.matchesSelector=function(ee,ye){if(vo(ee),oe&&!Mn[ye+" "]&&(!we||!we.test(ye)))try{var De=Le.call(ee,ye);if(De||P.disconnectedMatch||ee.document&&ee.document.nodeType!==11)return De}catch{Mn(ye,!0)}return Ct(ye,H,null,[ee]).length>0},Ct.contains=function(ee,ye){return(ee.ownerDocument||ee)!=H&&vo(ee),S.contains(ee,ye)},Ct.attr=function(ee,ye){(ee.ownerDocument||ee)!=H&&vo(ee);var De=m.attrHandle[ye.toLowerCase()],_e=De&&p.call(m.attrHandle,ye.toLowerCase())?De(ee,ye,!oe):void 0;return _e!==void 0?_e:ee.getAttribute(ye)},Ct.error=function(ee){throw new Error("Syntax error, unrecognized expression: "+ee)},S.uniqueSort=function(ee){var ye,De=[],_e=0,Q=0;if(N=!P.sortStable,_=!P.sortStable&&o.call(ee,0),Je.call(ee,dn),N){for(;ye=ee[Q++];)ye===ee[Q]&&(_e=De.push(Q));for(;_e--;)Ye.call(ee,De[_e],1)}return _=null,ee},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(o.apply(this)))},m=S.expr={cacheLength:50,createPseudo:Tn,match:F,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(ee){return ee[1]=ee[1].replace(Be,nt),ee[3]=(ee[3]||ee[4]||ee[5]||"").replace(Be,nt),ee[2]==="~="&&(ee[3]=" "+ee[3]+" "),ee.slice(0,4)},CHILD:function(ee){return ee[1]=ee[1].toLowerCase(),ee[1].slice(0,3)==="nth"?(ee[3]||Ct.error(ee[0]),ee[4]=+(ee[4]?ee[5]+(ee[6]||1):2*(ee[3]==="even"||ee[3]==="odd")),ee[5]=+(ee[7]+ee[8]||ee[3]==="odd")):ee[3]&&Ct.error(ee[0]),ee},PSEUDO:function(ee){var ye,De=!ee[6]&&ee[2];return F.CHILD.test(ee[0])?null:(ee[3]?ee[2]=ee[4]||ee[5]||"":De&&Er.test(De)&&(ye=sa(De,!0))&&(ye=De.indexOf(")",De.length-ye)-De.length)&&(ee[0]=ee[0].slice(0,ye),ee[2]=De.slice(0,ye)),ee.slice(0,3))}},filter:{TAG:function(ee){var ye=ee.replace(Be,nt).toLowerCase();return ee==="*"?function(){return!0}:function(De){return ae(De,ye)}},CLASS:function(ee){var ye=ct[ee+" "];return ye||(ye=new RegExp("(^|"+Qe+")"+ee+"("+Qe+"|$)"))&&ct(ee,function(De){return ye.test(typeof De.className=="string"&&De.className||typeof De.getAttribute<"u"&&De.getAttribute("class")||"")})},ATTR:function(ee,ye,De){return function(_e){var Q=Ct.attr(_e,ee);return Q==null?ye==="!=":ye?(Q+="",ye==="="?Q===De:ye==="!="?Q!==De:ye==="^="?De&&Q.indexOf(De)===0:ye==="*="?De&&Q.indexOf(De)>-1:ye==="$="?De&&Q.slice(-De.length)===De:ye==="~="?(" "+Q.replace(zt," ")+" ").indexOf(De)>-1:ye==="|="?Q===De||Q.slice(0,De.length+1)===De+"-":!1):!0}},CHILD:function(ee,ye,De,_e,Q){var pe=ee.slice(0,3)!=="nth",de=ee.slice(-4)!=="last",$e=ye==="of-type";return _e===1&&Q===0?function(We){return!!We.parentNode}:function(We,ft,dt){var ut,At,kt,Yt,Ln,ar=pe!==de?"nextSibling":"previousSibling",Gn=We.parentNode,Hr=$e&&We.nodeName.toLowerCase(),qi=!dt&&!$e,Mt=!1;if(Gn){if(pe){for(;ar;){for(kt=We;kt=kt[ar];)if($e?ae(kt,Hr):kt.nodeType===1)return!1;Ln=ar=ee==="only"&&!Ln&&"nextSibling"}return!0}if(Ln=[de?Gn.firstChild:Gn.lastChild],de&&qi){for(At=Gn[je]||(Gn[je]={}),ut=At[ee]||[],Yt=ut[0]===ke&&ut[1],Mt=Yt&&ut[2],kt=Yt&&Gn.childNodes[Yt];kt=++Yt&&kt&&kt[ar]||(Mt=Yt=0)||Ln.pop();)if(kt.nodeType===1&&++Mt&&kt===We){At[ee]=[ke,Yt,Mt];break}}else if(qi&&(At=We[je]||(We[je]={}),ut=At[ee]||[],Yt=ut[0]===ke&&ut[1],Mt=Yt),Mt===!1)for(;(kt=++Yt&&kt&&kt[ar]||(Mt=Yt=0)||Ln.pop())&&!(($e?ae(kt,Hr):kt.nodeType===1)&&++Mt&&(qi&&(At=kt[je]||(kt[je]={}),At[ee]=[ke,Mt]),kt===We)););return Mt-=Q,Mt===_e||Mt%_e===0&&Mt/_e>=0}}},PSEUDO:function(ee,ye){var De,_e=m.pseudos[ee]||m.setFilters[ee.toLowerCase()]||Ct.error("unsupported pseudo: "+ee);return _e[je]?_e(ye):_e.length>1?(De=[ee,ee,"",ye],m.setFilters.hasOwnProperty(ee.toLowerCase())?Tn(function(Q,pe){for(var de,$e=_e(Q,ye),We=$e.length;We--;)de=c.call(Q,$e[We]),Q[de]=!(pe[de]=$e[We])}):function(Q){return _e(Q,0,De)}):_e}},pseudos:{not:Tn(function(ee){var ye=[],De=[],_e=cs(ee.replace(tt,"$1"));return _e[je]?Tn(function(Q,pe,de,$e){for(var We,ft=_e(Q,null,$e,[]),dt=Q.length;dt--;)(We=ft[dt])&&(Q[dt]=!(pe[dt]=We))}):function(Q,pe,de){return ye[0]=Q,_e(ye,null,de,De),ye[0]=null,!De.pop()}}),has:Tn(function(ee){return function(ye){return Ct(ee,ye).length>0}}),contains:Tn(function(ee){return ee=ee.replace(Be,nt),function(ye){return(ye.textContent||S.text(ye)).indexOf(ee)>-1}}),lang:Tn(function(ee){return k.test(ee||"")||Ct.error("unsupported lang: "+ee),ee=ee.replace(Be,nt).toLowerCase(),function(ye){var De;do if(De=oe?ye.lang:ye.getAttribute("xml:lang")||ye.getAttribute("lang"))return De=De.toLowerCase(),De===ee||De.indexOf(ee+"-")===0;while((ye=ye.parentNode)&&ye.nodeType===1);return!1}}),target:function(ee){var ye=t.location&&t.location.hash;return ye&&ye.slice(1)===ee.id},root:function(ee){return ee===ue},focus:function(ee){return ee===Ot()&&H.hasFocus()&&!!(ee.type||ee.href||~ee.tabIndex)},enabled:aa(!1),disabled:aa(!0),checked:function(ee){return ae(ee,"input")&&!!ee.checked||ae(ee,"option")&&!!ee.selected},selected:function(ee){return ee.parentNode&&ee.parentNode.selectedIndex,ee.selected===!0},empty:function(ee){for(ee=ee.firstChild;ee;ee=ee.nextSibling)if(ee.nodeType<6)return!1;return!0},parent:function(ee){return!m.pseudos.empty(ee)},header:function(ee){return ne.test(ee.nodeName)},input:function(ee){return z.test(ee.nodeName)},button:function(ee){return ae(ee,"input")&&ee.type==="button"||ae(ee,"button")},text:function(ee){var ye;return ae(ee,"input")&&ee.type==="text"&&((ye=ee.getAttribute("type"))==null||ye.toLowerCase()==="text")},first:ii(function(){return[0]}),last:ii(function(ee,ye){return[ye-1]}),eq:ii(function(ee,ye,De){return[De<0?De+ye:De]}),even:ii(function(ee,ye){for(var De=0;De<ye;De+=2)ee.push(De);return ee}),odd:ii(function(ee,ye){for(var De=1;De<ye;De+=2)ee.push(De);return ee}),lt:ii(function(ee,ye,De){var _e;for(De<0?_e=De+ye:De>ye?_e=ye:_e=De;--_e>=0;)ee.push(_e);return ee}),gt:ii(function(ee,ye,De){for(var _e=De<0?De+ye:De;++_e<ye;)ee.push(_e);return ee})}},m.pseudos.nth=m.pseudos.eq;for(f in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})m.pseudos[f]=oa(f);for(f in{submit:!0,reset:!0})m.pseudos[f]=ls(f);function us(){}us.prototype=m.filters=m.pseudos,m.setFilters=new us;function sa(ee,ye){var De,_e,Q,pe,de,$e,We,ft=Dt[ee+" "];if(ft)return ye?0:ft.slice(0);for(de=ee,$e=[],We=m.preFilter;de;){(!De||(_e=on.exec(de)))&&(_e&&(de=de.slice(_e[0].length)||de),$e.push(Q=[])),De=!1,(_e=po.exec(de))&&(De=_e.shift(),Q.push({value:De,type:_e[0].replace(tt," ")}),de=de.slice(De.length));for(pe in m.filter)(_e=F[pe].exec(de))&&(!We[pe]||(_e=We[pe](_e)))&&(De=_e.shift(),Q.push({value:De,type:pe,matches:_e}),de=de.slice(De.length));if(!De)break}return ye?de.length:de?Ct.error(ee):Dt(ee,$e).slice(0)}function Si(ee){for(var ye=0,De=ee.length,_e="";ye<De;ye++)_e+=ee[ye].value;return _e}function Gi(ee,ye,De){var _e=ye.dir,Q=ye.next,pe=Q||_e,de=De&&pe==="parentNode",$e=qe++;return ye.first?function(We,ft,dt){for(;We=We[_e];)if(We.nodeType===1||de)return ee(We,ft,dt);return!1}:function(We,ft,dt){var ut,At,kt=[ke,$e];if(dt){for(;We=We[_e];)if((We.nodeType===1||de)&&ee(We,ft,dt))return!0}else for(;We=We[_e];)if(We.nodeType===1||de)if(At=We[je]||(We[je]={}),Q&&ae(We,Q))We=We[_e]||We;else{if((ut=At[pe])&&ut[0]===ke&&ut[1]===$e)return kt[2]=ut[2];if(At[pe]=kt,kt[2]=ee(We,ft,dt))return!0}return!1}}function Us(ee){return ee.length>1?function(ye,De,_e){for(var Q=ee.length;Q--;)if(!ee[Q](ye,De,_e))return!1;return!0}:ee[0]}function Lu(ee,ye,De){for(var _e=0,Q=ye.length;_e<Q;_e++)Ct(ee,ye[_e],De);return De}function la(ee,ye,De,_e,Q){for(var pe,de=[],$e=0,We=ee.length,ft=ye!=null;$e<We;$e++)(pe=ee[$e])&&(!De||De(pe,_e,Q))&&(de.push(pe),ft&&ye.push($e));return de}function mo(ee,ye,De,_e,Q,pe){return _e&&!_e[je]&&(_e=mo(_e)),Q&&!Q[je]&&(Q=mo(Q,pe)),Tn(function(de,$e,We,ft){var dt,ut,At,kt,Yt=[],Ln=[],ar=$e.length,Gn=de||Lu(ye||"*",We.nodeType?[We]:We,[]),Hr=ee&&(de||!ye)?la(Gn,Yt,ee,We,ft):Gn;if(De?(kt=Q||(de?ee:ar||_e)?[]:$e,De(Hr,kt,We,ft)):kt=Hr,_e)for(dt=la(kt,Ln),_e(dt,[],We,ft),ut=dt.length;ut--;)(At=dt[ut])&&(kt[Ln[ut]]=!(Hr[Ln[ut]]=At));if(de){if(Q||ee){if(Q){for(dt=[],ut=kt.length;ut--;)(At=kt[ut])&&dt.push(Hr[ut]=At);Q(null,kt=[],dt,ft)}for(ut=kt.length;ut--;)(At=kt[ut])&&(dt=Q?c.call(de,At):Yt[ut])>-1&&(de[dt]=!($e[dt]=At))}}else kt=la(kt===$e?kt.splice(ar,kt.length):kt),Q?Q(null,$e,kt,ft):B.apply($e,kt)})}function hr(ee){for(var ye,De,_e,Q=ee.length,pe=m.relative[ee[0].type],de=pe||m.relative[" "],$e=pe?1:0,We=Gi(function(ut){return ut===ye},de,!0),ft=Gi(function(ut){return c.call(ye,ut)>-1},de,!0),dt=[function(ut,At,kt){var Yt=!pe&&(kt||At!=C)||((ye=At).nodeType?We(ut,At,kt):ft(ut,At,kt));return ye=null,Yt}];$e<Q;$e++)if(De=m.relative[ee[$e].type])dt=[Gi(Us(dt),De)];else{if(De=m.filter[ee[$e].type].apply(null,ee[$e].matches),De[je]){for(_e=++$e;_e<Q&&!m.relative[ee[_e].type];_e++);return mo($e>1&&Us(dt),$e>1&&Si(ee.slice(0,$e-1).concat({value:ee[$e-2].type===" "?"*":""})).replace(tt,"$1"),De,$e<_e&&hr(ee.slice($e,_e)),_e<Q&&hr(ee=ee.slice(_e)),_e<Q&&Si(ee))}dt.push(De)}return Us(dt)}function Ws(ee,ye){var De=ye.length>0,_e=ee.length>0,Q=function(pe,de,$e,We,ft){var dt,ut,At,kt=0,Yt="0",Ln=pe&&[],ar=[],Gn=C,Hr=pe||_e&&m.find.TAG("*",ft),qi=ke+=Gn==null?1:Math.random()||.1,Mt=Hr.length;for(ft&&(C=de==H||de||ft);Yt!==Mt&&(dt=Hr[Yt])!=null;Yt++){if(_e&&dt){for(ut=0,!de&&dt.ownerDocument!=H&&(vo(dt),$e=!oe);At=ee[ut++];)if(At(dt,de||H,$e)){B.call(We,dt);break}ft&&(ke=qi)}De&&((dt=!At&&dt)&&kt--,pe&&Ln.push(dt))}if(kt+=Yt,De&&Yt!==kt){for(ut=0;At=ye[ut++];)At(Ln,ar,de,$e);if(pe){if(kt>0)for(;Yt--;)Ln[Yt]||ar[Yt]||(ar[Yt]=Ne.call(We));ar=la(ar)}B.apply(We,ar),ft&&!pe&&ar.length>0&&kt+ye.length>1&&S.uniqueSort(We)}return ft&&(ke=qi,C=Gn),Ln};return De?Tn(Q):Q}function cs(ee,ye){var De,_e=[],Q=[],pe=It[ee+" "];if(!pe){for(ye||(ye=sa(ee)),De=ye.length;De--;)pe=hr(ye[De]),pe[je]?_e.push(pe):Q.push(pe);pe=It(ee,Ws(Q,_e)),pe.selector=ee}return pe}function fs(ee,ye,De,_e){var Q,pe,de,$e,We,ft=typeof ee=="function"&&ee,dt=!_e&&sa(ee=ft.selector||ee);if(De=De||[],dt.length===1){if(pe=dt[0]=dt[0].slice(0),pe.length>2&&(de=pe[0]).type==="ID"&&ye.nodeType===9&&oe&&m.relative[pe[1].type]){if(ye=(m.find.ID(de.matches[0].replace(Be,nt),ye)||[])[0],ye)ft&&(ye=ye.parentNode);else return De;ee=ee.slice(pe.shift().value.length)}for(Q=F.needsContext.test(ee)?0:pe.length;Q--&&(de=pe[Q],!m.relative[$e=de.type]);)if((We=m.find[$e])&&(_e=We(de.matches[0].replace(Be,nt),Te.test(pe[0].type)&&Hs(ye.parentNode)||ye))){if(pe.splice(Q,1),ee=_e.length&&Si(pe),!ee)return B.apply(De,_e),De;break}}return(ft||cs(ee,dt))(_e,ye,!oe,De,!ye||Te.test(ee)&&Hs(ye.parentNode)||ye),De}P.sortStable=je.split("").sort(dn).join("")===je,vo(),P.sortDetached=Yn(function(ee){return ee.compareDocumentPosition(H.createElement("fieldset"))&1}),S.find=Ct,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,Ct.compile=cs,Ct.select=fs,Ct.setDocument=vo,Ct.tokenize=sa,Ct.escape=S.escapeSelector,Ct.getText=S.text,Ct.isXML=S.isXMLDoc,Ct.selectors=S.expr,Ct.support=S.support,Ct.uniqueSort=S.uniqueSort})();var at=function(f,m,C){for(var _=[],N=C!==void 0;(f=f[m])&&f.nodeType!==9;)if(f.nodeType===1){if(N&&S(f).is(C))break;_.push(f)}return _},Ee=function(f,m){for(var C=[];f;f=f.nextSibling)f.nodeType===1&&f!==m&&C.push(f);return C},Pe=S.expr.match.needsContext,Ve=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ue(f,m,C){return R(m)?S.grep(f,function(_,N){return!!m.call(_,N,_)!==C}):m.nodeType?S.grep(f,function(_){return _===m!==C}):typeof m!="string"?S.grep(f,function(_){return c.call(m,_)>-1!==C}):S.filter(m,f,C)}S.filter=function(f,m,C){var _=m[0];return C&&(f=":not("+f+")"),m.length===1&&_.nodeType===1?S.find.matchesSelector(_,f)?[_]:[]:S.find.matches(f,S.grep(m,function(N){return N.nodeType===1}))},S.fn.extend({find:function(f){var m,C,_=this.length,N=this;if(typeof f!="string")return this.pushStack(S(f).filter(function(){for(m=0;m<_;m++)if(S.contains(N[m],this))return!0}));for(C=this.pushStack([]),m=0;m<_;m++)S.find(f,N[m],C);return _>1?S.uniqueSort(C):C},filter:function(f){return this.pushStack(Ue(this,f||[],!1))},not:function(f){return this.pushStack(Ue(this,f||[],!0))},is:function(f){return!!Ue(this,typeof f=="string"&&Pe.test(f)?S(f):f||[],!1).length}});var Re,Fe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ge=S.fn.init=function(f,m,C){var _,N;if(!f)return this;if(C=C||Re,typeof f=="string")if(f[0]==="<"&&f[f.length-1]===">"&&f.length>=3?_=[null,f,null]:_=Fe.exec(f),_&&(_[1]||!m))if(_[1]){if(m=m instanceof S?m[0]:m,S.merge(this,S.parseHTML(_[1],m&&m.nodeType?m.ownerDocument||m:I,!0)),Ve.test(_[1])&&S.isPlainObject(m))for(_ in m)R(this[_])?this[_](m[_]):this.attr(_,m[_]);return this}else return N=I.getElementById(_[2]),N&&(this[0]=N,this.length=1),this;else return!m||m.jquery?(m||C).find(f):this.constructor(m).find(f);else{if(f.nodeType)return this[0]=f,this.length=1,this;if(R(f))return C.ready!==void 0?C.ready(f):f(S)}return S.makeArray(f,this)};Ge.prototype=S.fn,Re=S(I);var lt=/^(?:parents|prev(?:Until|All))/,mt={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(f){var m=S(f,this),C=m.length;return this.filter(function(){for(var _=0;_<C;_++)if(S.contains(this,m[_]))return!0})},closest:function(f,m){var C,_=0,N=this.length,B=[],H=typeof f!="string"&&S(f);if(!Pe.test(f)){for(;_<N;_++)for(C=this[_];C&&C!==m;C=C.parentNode)if(C.nodeType<11&&(H?H.index(C)>-1:C.nodeType===1&&S.find.matchesSelector(C,f))){B.push(C);break}}return this.pushStack(B.length>1?S.uniqueSort(B):B)},index:function(f){return f?typeof f=="string"?c.call(S(f),this[0]):c.call(this,f.jquery?f[0]:f):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(f,m){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(f,m))))},addBack:function(f){return this.add(f==null?this.prevObject:this.prevObject.filter(f))}});function wt(f,m){for(;(f=f[m])&&f.nodeType!==1;);return f}S.each({parent:function(f){var m=f.parentNode;return m&&m.nodeType!==11?m:null},parents:function(f){return at(f,"parentNode")},parentsUntil:function(f,m,C){return at(f,"parentNode",C)},next:function(f){return wt(f,"nextSibling")},prev:function(f){return wt(f,"previousSibling")},nextAll:function(f){return at(f,"nextSibling")},prevAll:function(f){return at(f,"previousSibling")},nextUntil:function(f,m,C){return at(f,"nextSibling",C)},prevUntil:function(f,m,C){return at(f,"previousSibling",C)},siblings:function(f){return Ee((f.parentNode||{}).firstChild,f)},children:function(f){return Ee(f.firstChild)},contents:function(f){return f.contentDocument!=null&&i(f.contentDocument)?f.contentDocument:(ae(f,"template")&&(f=f.content||f),S.merge([],f.childNodes))}},function(f,m){S.fn[f]=function(C,_){var N=S.map(this,m,C);return f.slice(-5)!=="Until"&&(_=C),_&&typeof _=="string"&&(N=S.filter(_,N)),this.length>1&&(mt[f]||S.uniqueSort(N),lt.test(f)&&N.reverse()),this.pushStack(N)}});var vt=/[^\x20\t\r\n\f]+/g;function Et(f){var m={};return S.each(f.match(vt)||[],function(C,_){m[_]=!0}),m}S.Callbacks=function(f){f=typeof f=="string"?Et(f):S.extend({},f);var m,C,_,N,B=[],H=[],ue=-1,oe=function(){for(N=N||f.once,_=m=!0;H.length;ue=-1)for(C=H.shift();++ue<B.length;)B[ue].apply(C[0],C[1])===!1&&f.stopOnFalse&&(ue=B.length,C=!1);f.memory||(C=!1),m=!1,N&&(C?B=[]:B="")},we={add:function(){return B&&(C&&!m&&(ue=B.length-1,H.push(C)),function Le(je){S.each(je,function(ke,qe){R(qe)?(!f.unique||!we.has(qe))&&B.push(qe):qe&&qe.length&&te(qe)!=="string"&&Le(qe)})}(arguments),C&&!m&&oe()),this},remove:function(){return S.each(arguments,function(Le,je){for(var ke;(ke=S.inArray(je,B,ke))>-1;)B.splice(ke,1),ke<=ue&&ue--}),this},has:function(Le){return Le?S.inArray(Le,B)>-1:B.length>0},empty:function(){return B&&(B=[]),this},disable:function(){return N=H=[],B=C="",this},disabled:function(){return!B},lock:function(){return N=H=[],!C&&!m&&(B=C=""),this},locked:function(){return!!N},fireWith:function(Le,je){return N||(je=je||[],je=[Le,je.slice?je.slice():je],H.push(je),m||oe()),this},fire:function(){return we.fireWith(this,arguments),this},fired:function(){return!!_}};return we};function ot(f){return f}function $t(f){throw f}function Ht(f,m,C,_){var N;try{f&&R(N=f.promise)?N.call(f).done(m).fail(C):f&&R(N=f.then)?N.call(f,m,C):m.apply(void 0,[f].slice(_))}catch(B){C.apply(void 0,[B])}}S.extend({Deferred:function(f){var m=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],C="pending",_={state:function(){return C},always:function(){return N.done(arguments).fail(arguments),this},catch:function(B){return _.then(null,B)},pipe:function(){var B=arguments;return S.Deferred(function(H){S.each(m,function(ue,oe){var we=R(B[oe[4]])&&B[oe[4]];N[oe[1]](function(){var Le=we&&we.apply(this,arguments);Le&&R(Le.promise)?Le.promise().progress(H.notify).done(H.resolve).fail(H.reject):H[oe[0]+"With"](this,we?[Le]:arguments)})}),B=null}).promise()},then:function(B,H,ue){var oe=0;function we(Le,je,ke,qe){return function(){var ct=this,Dt=arguments,It=function(){var dn,Br;if(!(Le<oe)){if(dn=ke.apply(ct,Dt),dn===je.promise())throw new TypeError("Thenable self-resolution");Br=dn&&(typeof dn=="object"||typeof dn=="function")&&dn.then,R(Br)?qe?Br.call(dn,we(oe,je,ot,qe),we(oe,je,$t,qe)):(oe++,Br.call(dn,we(oe,je,ot,qe),we(oe,je,$t,qe),we(oe,je,ot,je.notifyWith))):(ke!==ot&&(ct=void 0,Dt=[dn]),(qe||je.resolveWith)(ct,Dt))}},Mn=qe?It:function(){try{It()}catch(dn){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(dn,Mn.error),Le+1>=oe&&(ke!==$t&&(ct=void 0,Dt=[dn]),je.rejectWith(ct,Dt))}};Le?Mn():(S.Deferred.getErrorHook?Mn.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(Mn.error=S.Deferred.getStackHook()),t.setTimeout(Mn))}}return S.Deferred(function(Le){m[0][3].add(we(0,Le,R(ue)?ue:ot,Le.notifyWith)),m[1][3].add(we(0,Le,R(B)?B:ot)),m[2][3].add(we(0,Le,R(H)?H:$t))}).promise()},promise:function(B){return B!=null?S.extend(B,_):_}},N={};return S.each(m,function(B,H){var ue=H[2],oe=H[5];_[H[1]]=ue.add,oe&&ue.add(function(){C=oe},m[3-B][2].disable,m[3-B][3].disable,m[0][2].lock,m[0][3].lock),ue.add(H[3].fire),N[H[0]]=function(){return N[H[0]+"With"](this===N?void 0:this,arguments),this},N[H[0]+"With"]=ue.fireWith}),_.promise(N),f&&f.call(N,N),N},when:function(f){var m=arguments.length,C=m,_=Array(C),N=o.call(arguments),B=S.Deferred(),H=function(ue){return function(oe){_[ue]=this,N[ue]=arguments.length>1?o.call(arguments):oe,--m||B.resolveWith(_,N)}};if(m<=1&&(Ht(f,B.done(H(C)).resolve,B.reject,!m),B.state()==="pending"||R(N[C]&&N[C].then)))return B.then();for(;C--;)Ht(N[C],H(C),B.reject);return B.promise()}});var Xn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(f,m){t.console&&t.console.warn&&f&&Xn.test(f.name)&&t.console.warn("jQuery.Deferred exception: "+f.message,f.stack,m)},S.readyException=function(f){t.setTimeout(function(){throw f})};var br=S.Deferred();S.fn.ready=function(f){return br.then(f).catch(function(m){S.readyException(m)}),this},S.extend({isReady:!1,readyWait:1,ready:function(f){(f===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(f!==!0&&--S.readyWait>0)&&br.resolveWith(I,[S]))}}),S.ready.then=br.then;function Kn(){I.removeEventListener("DOMContentLoaded",Kn),t.removeEventListener("load",Kn),S.ready()}I.readyState==="complete"||I.readyState!=="loading"&&!I.documentElement.doScroll?t.setTimeout(S.ready):(I.addEventListener("DOMContentLoaded",Kn),t.addEventListener("load",Kn));var kn=function(f,m,C,_,N,B,H){var ue=0,oe=f.length,we=C==null;if(te(C)==="object"){N=!0;for(ue in C)kn(f,m,ue,C[ue],!0,B,H)}else if(_!==void 0&&(N=!0,R(_)||(H=!0),we&&(H?(m.call(f,_),m=null):(we=m,m=function(Le,je,ke){return we.call(S(Le),ke)})),m))for(;ue<oe;ue++)m(f[ue],C,H?_:_.call(f[ue],ue,m(f[ue],C)));return N?f:we?m.call(f):oe?m(f[0],C):B},ji=/^-ms-/,Dr=/-([a-z])/g;function rr(f,m){return m.toUpperCase()}function cn(f){return f.replace(ji,"ms-").replace(Dr,rr)}var hn=function(f){return f.nodeType===1||f.nodeType===9||!+f.nodeType};function pn(){this.expando=S.expando+pn.uid++}pn.uid=1,pn.prototype={cache:function(f){var m=f[this.expando];return m||(m={},hn(f)&&(f.nodeType?f[this.expando]=m:Object.defineProperty(f,this.expando,{value:m,configurable:!0}))),m},set:function(f,m,C){var _,N=this.cache(f);if(typeof m=="string")N[cn(m)]=C;else for(_ in m)N[cn(_)]=m[_];return N},get:function(f,m){return m===void 0?this.cache(f):f[this.expando]&&f[this.expando][cn(m)]},access:function(f,m,C){return m===void 0||m&&typeof m=="string"&&C===void 0?this.get(f,m):(this.set(f,m,C),C!==void 0?C:m)},remove:function(f,m){var C,_=f[this.expando];if(_!==void 0){if(m!==void 0)for(Array.isArray(m)?m=m.map(cn):(m=cn(m),m=m in _?[m]:m.match(vt)||[]),C=m.length;C--;)delete _[m[C]];(m===void 0||S.isEmptyObject(_))&&(f.nodeType?f[this.expando]=void 0:delete f[this.expando])}},hasData:function(f){var m=f[this.expando];return m!==void 0&&!S.isEmptyObject(m)}};var gt=new pn,Rn=new pn,fi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,un=/[A-Z]/g;function Bi(f){return f==="true"?!0:f==="false"?!1:f==="null"?null:f===+f+""?+f:fi.test(f)?JSON.parse(f):f}function $i(f,m,C){var _;if(C===void 0&&f.nodeType===1)if(_="data-"+m.replace(un,"-$&").toLowerCase(),C=f.getAttribute(_),typeof C=="string"){try{C=Bi(C)}catch{}Rn.set(f,m,C)}else C=void 0;return C}S.extend({hasData:function(f){return Rn.hasData(f)||gt.hasData(f)},data:function(f,m,C){return Rn.access(f,m,C)},removeData:function(f,m){Rn.remove(f,m)},_data:function(f,m,C){return gt.access(f,m,C)},_removeData:function(f,m){gt.remove(f,m)}}),S.fn.extend({data:function(f,m){var C,_,N,B=this[0],H=B&&B.attributes;if(f===void 0){if(this.length&&(N=Rn.get(B),B.nodeType===1&&!gt.get(B,"hasDataAttrs"))){for(C=H.length;C--;)H[C]&&(_=H[C].name,_.indexOf("data-")===0&&(_=cn(_.slice(5)),$i(B,_,N[_])));gt.set(B,"hasDataAttrs",!0)}return N}return typeof f=="object"?this.each(function(){Rn.set(this,f)}):kn(this,function(ue){var oe;if(B&&ue===void 0)return oe=Rn.get(B,f),oe!==void 0||(oe=$i(B,f),oe!==void 0)?oe:void 0;this.each(function(){Rn.set(this,f,ue)})},null,m,arguments.length>1,null,!0)},removeData:function(f){return this.each(function(){Rn.remove(this,f)})}}),S.extend({queue:function(f,m,C){var _;if(f)return m=(m||"fx")+"queue",_=gt.get(f,m),C&&(!_||Array.isArray(C)?_=gt.access(f,m,S.makeArray(C)):_.push(C)),_||[]},dequeue:function(f,m){m=m||"fx";var C=S.queue(f,m),_=C.length,N=C.shift(),B=S._queueHooks(f,m),H=function(){S.dequeue(f,m)};N==="inprogress"&&(N=C.shift(),_--),N&&(m==="fx"&&C.unshift("inprogress"),delete B.stop,N.call(f,H,B)),!_&&B&&B.empty.fire()},_queueHooks:function(f,m){var C=m+"queueHooks";return gt.get(f,C)||gt.access(f,C,{empty:S.Callbacks("once memory").add(function(){gt.remove(f,[m+"queue",C])})})}}),S.fn.extend({queue:function(f,m){var C=2;return typeof f!="string"&&(m=f,f="fx",C--),arguments.length<C?S.queue(this[0],f):m===void 0?this:this.each(function(){var _=S.queue(this,f,m);S._queueHooks(this,f),f==="fx"&&_[0]!=="inprogress"&&S.dequeue(this,f)})},dequeue:function(f){return this.each(function(){S.dequeue(this,f)})},clearQueue:function(f){return this.queue(f||"fx",[])},promise:function(f,m){var C,_=1,N=S.Deferred(),B=this,H=this.length,ue=function(){--_||N.resolveWith(B,[B])};for(typeof f!="string"&&(m=f,f=void 0),f=f||"fx";H--;)C=gt.get(B[H],f+"queueHooks"),C&&C.empty&&(_++,C.empty.add(ue));return ue(),N.promise(m)}});var Vi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Pr=new RegExp("^(?:([+-])=|)("+Vi+")([a-z%]*)$","i"),Un=["Top","Right","Bottom","Left"],Rr=I.documentElement,wr=function(f){return S.contains(f.ownerDocument,f)},qr={composed:!0};Rr.getRootNode&&(wr=function(f){return S.contains(f.ownerDocument,f)||f.getRootNode(qr)===f.ownerDocument});var Xr=function(f,m){return f=m||f,f.style.display==="none"||f.style.display===""&&wr(f)&&S.css(f,"display")==="none"};function Do(f,m,C,_){var N,B,H=20,ue=_?function(){return _.cur()}:function(){return S.css(f,m,"")},oe=ue(),we=C&&C[3]||(S.cssNumber[m]?"":"px"),Le=f.nodeType&&(S.cssNumber[m]||we!=="px"&&+oe)&&Pr.exec(S.css(f,m));if(Le&&Le[3]!==we){for(oe=oe/2,we=we||Le[3],Le=+oe||1;H--;)S.style(f,m,Le+we),(1-B)*(1-(B=ue()/oe||.5))<=0&&(H=0),Le=Le/B;Le=Le*2,S.style(f,m,Le+we),C=C||[]}return C&&(Le=+Le||+oe||0,N=C[1]?Le+(C[1]+1)*C[2]:+C[2],_&&(_.unit=we,_.start=Le,_.end=N)),N}var Zn={};function Kr(f){var m,C=f.ownerDocument,_=f.nodeName,N=Zn[_];return N||(m=C.body.appendChild(C.createElement(_)),N=S.css(m,"display"),m.parentNode.removeChild(m),N==="none"&&(N="block"),Zn[_]=N,N)}function ir(f,m){for(var C,_,N=[],B=0,H=f.length;B<H;B++)_=f[B],_.style&&(C=_.style.display,m?(C==="none"&&(N[B]=gt.get(_,"display")||null,N[B]||(_.style.display="")),_.style.display===""&&Xr(_)&&(N[B]=Kr(_))):C!=="none"&&(N[B]="none",gt.set(_,"display",C)));for(B=0;B<H;B++)N[B]!=null&&(f[B].style.display=N[B]);return f}S.fn.extend({show:function(){return ir(this,!0)},hide:function(){return ir(this)},toggle:function(f){return typeof f=="boolean"?f?this.show():this.hide():this.each(function(){Xr(this)?S(this).show():S(this).hide()})}});var Zt=/^(?:checkbox|radio)$/i,di=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Hi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var f=I.createDocumentFragment(),m=f.appendChild(I.createElement("div")),C=I.createElement("input");C.setAttribute("type","radio"),C.setAttribute("checked","checked"),C.setAttribute("name","t"),m.appendChild(C),P.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,m.innerHTML="<textarea>x</textarea>",P.noCloneChecked=!!m.cloneNode(!0).lastChild.defaultValue,m.innerHTML="<option></option>",P.option=!!m.lastChild})();var In={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,"",""]};In.tbody=In.tfoot=In.colgroup=In.caption=In.thead,In.th=In.td,P.option||(In.optgroup=In.option=[1,"<select multiple='multiple'>","</select>"]);function gn(f,m){var C;return typeof f.getElementsByTagName<"u"?C=f.getElementsByTagName(m||"*"):typeof f.querySelectorAll<"u"?C=f.querySelectorAll(m||"*"):C=[],m===void 0||m&&ae(f,m)?S.merge([f],C):C}function hi(f,m){for(var C=0,_=f.length;C<_;C++)gt.set(f[C],"globalEval",!m||gt.get(m[C],"globalEval"))}var pi=/<|&#?\w+;/;function mn(f,m,C,_,N){for(var B,H,ue,oe,we,Le,je=m.createDocumentFragment(),ke=[],qe=0,ct=f.length;qe<ct;qe++)if(B=f[qe],B||B===0)if(te(B)==="object")S.merge(ke,B.nodeType?[B]:B);else if(!pi.test(B))ke.push(m.createTextNode(B));else{for(H=H||je.appendChild(m.createElement("div")),ue=(di.exec(B)||["",""])[1].toLowerCase(),oe=In[ue]||In._default,H.innerHTML=oe[1]+S.htmlPrefilter(B)+oe[2],Le=oe[0];Le--;)H=H.lastChild;S.merge(ke,H.childNodes),H=je.firstChild,H.textContent=""}for(je.textContent="",qe=0;B=ke[qe++];){if(_&&S.inArray(B,_)>-1){N&&N.push(B);continue}if(we=wr(B),H=gn(je.appendChild(B),"script"),we&&hi(H),C)for(Le=0;B=H[Le++];)Hi.test(B.type||"")&&C.push(B)}return je}var lo=/^([^.]*)(?:\.(.+)|)/;function xr(){return!0}function gi(){return!1}function fn(f,m,C,_,N,B){var H,ue;if(typeof m=="object"){typeof C!="string"&&(_=_||C,C=void 0);for(ue in m)fn(f,ue,C,_,m[ue],B);return f}if(_==null&&N==null?(N=C,_=C=void 0):N==null&&(typeof C=="string"?(N=_,_=void 0):(N=_,_=C,C=void 0)),N===!1)N=gi;else if(!N)return f;return B===1&&(H=N,N=function(oe){return S().off(oe),H.apply(this,arguments)},N.guid=H.guid||(H.guid=S.guid++)),f.each(function(){S.event.add(this,m,N,_,C)})}S.event={global:{},add:function(f,m,C,_,N){var B,H,ue,oe,we,Le,je,ke,qe,ct,Dt,It=gt.get(f);if(hn(f))for(C.handler&&(B=C,C=B.handler,N=B.selector),N&&S.find.matchesSelector(Rr,N),C.guid||(C.guid=S.guid++),(oe=It.events)||(oe=It.events=Object.create(null)),(H=It.handle)||(H=It.handle=function(Mn){return typeof S<"u"&&S.event.triggered!==Mn.type?S.event.dispatch.apply(f,arguments):void 0}),m=(m||"").match(vt)||[""],we=m.length;we--;)ue=lo.exec(m[we])||[],qe=Dt=ue[1],ct=(ue[2]||"").split(".").sort(),qe&&(je=S.event.special[qe]||{},qe=(N?je.delegateType:je.bindType)||qe,je=S.event.special[qe]||{},Le=S.extend({type:qe,origType:Dt,data:_,handler:C,guid:C.guid,selector:N,needsContext:N&&S.expr.match.needsContext.test(N),namespace:ct.join(".")},B),(ke=oe[qe])||(ke=oe[qe]=[],ke.delegateCount=0,(!je.setup||je.setup.call(f,_,ct,H)===!1)&&f.addEventListener&&f.addEventListener(qe,H)),je.add&&(je.add.call(f,Le),Le.handler.guid||(Le.handler.guid=C.guid)),N?ke.splice(ke.delegateCount++,0,Le):ke.push(Le),S.event.global[qe]=!0)},remove:function(f,m,C,_,N){var B,H,ue,oe,we,Le,je,ke,qe,ct,Dt,It=gt.hasData(f)&>.get(f);if(!(!It||!(oe=It.events))){for(m=(m||"").match(vt)||[""],we=m.length;we--;){if(ue=lo.exec(m[we])||[],qe=Dt=ue[1],ct=(ue[2]||"").split(".").sort(),!qe){for(qe in oe)S.event.remove(f,qe+m[we],C,_,!0);continue}for(je=S.event.special[qe]||{},qe=(_?je.delegateType:je.bindType)||qe,ke=oe[qe]||[],ue=ue[2]&&new RegExp("(^|\\.)"+ct.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=B=ke.length;B--;)Le=ke[B],(N||Dt===Le.origType)&&(!C||C.guid===Le.guid)&&(!ue||ue.test(Le.namespace))&&(!_||_===Le.selector||_==="**"&&Le.selector)&&(ke.splice(B,1),Le.selector&&ke.delegateCount--,je.remove&&je.remove.call(f,Le));H&&!ke.length&&((!je.teardown||je.teardown.call(f,ct,It.handle)===!1)&&S.removeEvent(f,qe,It.handle),delete oe[qe])}S.isEmptyObject(oe)&>.remove(f,"handle events")}},dispatch:function(f){var m,C,_,N,B,H,ue=new Array(arguments.length),oe=S.event.fix(f),we=(gt.get(this,"events")||Object.create(null))[oe.type]||[],Le=S.event.special[oe.type]||{};for(ue[0]=oe,m=1;m<arguments.length;m++)ue[m]=arguments[m];if(oe.delegateTarget=this,!(Le.preDispatch&&Le.preDispatch.call(this,oe)===!1)){for(H=S.event.handlers.call(this,oe,we),m=0;(N=H[m++])&&!oe.isPropagationStopped();)for(oe.currentTarget=N.elem,C=0;(B=N.handlers[C++])&&!oe.isImmediatePropagationStopped();)(!oe.rnamespace||B.namespace===!1||oe.rnamespace.test(B.namespace))&&(oe.handleObj=B,oe.data=B.data,_=((S.event.special[B.origType]||{}).handle||B.handler).apply(N.elem,ue),_!==void 0&&(oe.result=_)===!1&&(oe.preventDefault(),oe.stopPropagation()));return Le.postDispatch&&Le.postDispatch.call(this,oe),oe.result}},handlers:function(f,m){var C,_,N,B,H,ue=[],oe=m.delegateCount,we=f.target;if(oe&&we.nodeType&&!(f.type==="click"&&f.button>=1)){for(;we!==this;we=we.parentNode||this)if(we.nodeType===1&&!(f.type==="click"&&we.disabled===!0)){for(B=[],H={},C=0;C<oe;C++)_=m[C],N=_.selector+" ",H[N]===void 0&&(H[N]=_.needsContext?S(N,this).index(we)>-1:S.find(N,this,null,[we]).length),H[N]&&B.push(_);B.length&&ue.push({elem:we,handlers:B})}}return we=this,oe<m.length&&ue.push({elem:we,handlers:m.slice(oe)}),ue},addProp:function(f,m){Object.defineProperty(S.Event.prototype,f,{enumerable:!0,configurable:!0,get:R(m)?function(){if(this.originalEvent)return m(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[f]},set:function(C){Object.defineProperty(this,f,{enumerable:!0,configurable:!0,writable:!0,value:C})}})},fix:function(f){return f[S.expando]?f:new S.Event(f)},special:{load:{noBubble:!0},click:{setup:function(f){var m=this||f;return Zt.test(m.type)&&m.click&&ae(m,"input")&&Ti(m,"click",!0),!1},trigger:function(f){var m=this||f;return Zt.test(m.type)&&m.click&&ae(m,"input")&&Ti(m,"click"),!0},_default:function(f){var m=f.target;return Zt.test(m.type)&&m.click&&ae(m,"input")&>.get(m,"click")||ae(m,"a")}},beforeunload:{postDispatch:function(f){f.result!==void 0&&f.originalEvent&&(f.originalEvent.returnValue=f.result)}}}};function Ti(f,m,C){if(!C){gt.get(f,m)===void 0&&S.event.add(f,m,xr);return}gt.set(f,m,!1),S.event.add(f,m,{namespace:!1,handler:function(_){var N,B=gt.get(this,m);if(_.isTrigger&1&&this[m]){if(B)(S.event.special[m]||{}).delegateType&&_.stopPropagation();else if(B=o.call(arguments),gt.set(this,m,B),this[m](),N=gt.get(this,m),gt.set(this,m,!1),B!==N)return _.stopImmediatePropagation(),_.preventDefault(),N}else B&&(gt.set(this,m,S.event.trigger(B[0],B.slice(1),this)),_.stopPropagation(),_.isImmediatePropagationStopped=xr)}})}S.removeEvent=function(f,m,C){f.removeEventListener&&f.removeEventListener(m,C)},S.Event=function(f,m){if(!(this instanceof S.Event))return new S.Event(f,m);f&&f.type?(this.originalEvent=f,this.type=f.type,this.isDefaultPrevented=f.defaultPrevented||f.defaultPrevented===void 0&&f.returnValue===!1?xr:gi,this.target=f.target&&f.target.nodeType===3?f.target.parentNode:f.target,this.currentTarget=f.currentTarget,this.relatedTarget=f.relatedTarget):this.type=f,m&&S.extend(this,m),this.timeStamp=f&&f.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:gi,isPropagationStopped:gi,isImmediatePropagationStopped:gi,isSimulated:!1,preventDefault:function(){var f=this.originalEvent;this.isDefaultPrevented=xr,f&&!this.isSimulated&&f.preventDefault()},stopPropagation:function(){var f=this.originalEvent;this.isPropagationStopped=xr,f&&!this.isSimulated&&f.stopPropagation()},stopImmediatePropagation:function(){var f=this.originalEvent;this.isImmediatePropagationStopped=xr,f&&!this.isSimulated&&f.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(f,m){function C(_){if(I.documentMode){var N=gt.get(this,"handle"),B=S.event.fix(_);B.type=_.type==="focusin"?"focus":"blur",B.isSimulated=!0,N(_),B.target===B.currentTarget&&N(B)}else S.event.simulate(m,_.target,S.event.fix(_))}S.event.special[f]={setup:function(){var _;if(Ti(this,f,!0),I.documentMode)_=gt.get(this,m),_||this.addEventListener(m,C),gt.set(this,m,(_||0)+1);else return!1},trigger:function(){return Ti(this,f),!0},teardown:function(){var _;if(I.documentMode)_=gt.get(this,m)-1,_?gt.set(this,m,_):(this.removeEventListener(m,C),gt.remove(this,m));else return!1},_default:function(_){return gt.get(_.target,f)},delegateType:m},S.event.special[m]={setup:function(){var _=this.ownerDocument||this.document||this,N=I.documentMode?this:_,B=gt.get(N,m);B||(I.documentMode?this.addEventListener(m,C):_.addEventListener(f,C,!0)),gt.set(N,m,(B||0)+1)},teardown:function(){var _=this.ownerDocument||this.document||this,N=I.documentMode?this:_,B=gt.get(N,m)-1;B?gt.set(N,m,B):(I.documentMode?this.removeEventListener(m,C):_.removeEventListener(f,C,!0),gt.remove(N,m))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(f,m){S.event.special[f]={delegateType:m,bindType:m,handle:function(C){var _,N=this,B=C.relatedTarget,H=C.handleObj;return(!B||B!==N&&!S.contains(N,B))&&(C.type=H.origType,_=H.handler.apply(this,arguments),C.type=m),_}}}),S.fn.extend({on:function(f,m,C,_){return fn(this,f,m,C,_)},one:function(f,m,C,_){return fn(this,f,m,C,_,1)},off:function(f,m,C){var _,N;if(f&&f.preventDefault&&f.handleObj)return _=f.handleObj,S(f.delegateTarget).off(_.namespace?_.origType+"."+_.namespace:_.origType,_.selector,_.handler),this;if(typeof f=="object"){for(N in f)this.off(N,m,f[N]);return this}return(m===!1||typeof m=="function")&&(C=m,m=void 0),C===!1&&(C=gi),this.each(function(){S.event.remove(this,f,C,m)})}});var Ra=/<script|<style|<link/i,Ia=/checked\s*(?:[^=]|=\s*.checked.)/i,Zr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function uo(f,m){return ae(f,"table")&&ae(m.nodeType!==11?m:m.firstChild,"tr")&&S(f).children("tbody")[0]||f}function co(f){return f.type=(f.getAttribute("type")!==null)+"/"+f.type,f}function Po(f){return(f.type||"").slice(0,5)==="true/"?f.type=f.type.slice(5):f.removeAttribute("type"),f}function Ci(f,m){var C,_,N,B,H,ue,oe;if(m.nodeType===1){if(gt.hasData(f)&&(B=gt.get(f),oe=B.events,oe)){gt.remove(m,"handle events");for(N in oe)for(C=0,_=oe[N].length;C<_;C++)S.event.add(m,N,oe[N][C])}Rn.hasData(f)&&(H=Rn.access(f),ue=S.extend({},H),Rn.set(m,ue))}}function vi(f,m){var C=m.nodeName.toLowerCase();C==="input"&&Zt.test(f.type)?m.checked=f.checked:(C==="input"||C==="textarea")&&(m.defaultValue=f.defaultValue)}function Ei(f,m,C,_){m=s(m);var N,B,H,ue,oe,we,Le=0,je=f.length,ke=je-1,qe=m[0],ct=R(qe);if(ct||je>1&&typeof qe=="string"&&!P.checkClone&&Ia.test(qe))return f.each(function(Dt){var It=f.eq(Dt);ct&&(m[0]=qe.call(this,Dt,It.html())),Ei(It,m,C,_)});if(je&&(N=mn(m,f[0].ownerDocument,!1,f,_),B=N.firstChild,N.childNodes.length===1&&(N=B),B||_)){for(H=S.map(gn(N,"script"),co),ue=H.length;Le<je;Le++)oe=N,Le!==ke&&(oe=S.clone(oe,!0,!0),ue&&S.merge(H,gn(oe,"script"))),C.call(f[Le],oe,Le);if(ue)for(we=H[H.length-1].ownerDocument,S.map(H,Po),Le=0;Le<ue;Le++)oe=H[Le],Hi.test(oe.type||"")&&!gt.access(oe,"globalEval")&&S.contains(we,oe)&&(oe.src&&(oe.type||"").toLowerCase()!=="module"?S._evalUrl&&!oe.noModule&&S._evalUrl(oe.src,{nonce:oe.nonce||oe.getAttribute("nonce")},we):W(oe.textContent.replace(Zr,""),oe,we))}return f}function fo(f,m,C){for(var _,N=m?S.filter(m,f):f,B=0;(_=N[B])!=null;B++)!C&&_.nodeType===1&&S.cleanData(gn(_)),_.parentNode&&(C&&wr(_)&&hi(gn(_,"script")),_.parentNode.removeChild(_));return f}S.extend({htmlPrefilter:function(f){return f},clone:function(f,m,C){var _,N,B,H,ue=f.cloneNode(!0),oe=wr(f);if(!P.noCloneChecked&&(f.nodeType===1||f.nodeType===11)&&!S.isXMLDoc(f))for(H=gn(ue),B=gn(f),_=0,N=B.length;_<N;_++)vi(B[_],H[_]);if(m)if(C)for(B=B||gn(f),H=H||gn(ue),_=0,N=B.length;_<N;_++)Ci(B[_],H[_]);else Ci(f,ue);return H=gn(ue,"script"),H.length>0&&hi(H,!oe&&gn(f,"script")),ue},cleanData:function(f){for(var m,C,_,N=S.event.special,B=0;(C=f[B])!==void 0;B++)if(hn(C)){if(m=C[gt.expando]){if(m.events)for(_ in m.events)N[_]?S.event.remove(C,_):S.removeEvent(C,_,m.handle);C[gt.expando]=void 0}C[Rn.expando]&&(C[Rn.expando]=void 0)}}}),S.fn.extend({detach:function(f){return fo(this,f,!0)},remove:function(f){return fo(this,f)},text:function(f){return kn(this,function(m){return m===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=m)})},null,f,arguments.length)},append:function(){return Ei(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=uo(this,f);m.appendChild(f)}})},prepend:function(){return Ei(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=uo(this,f);m.insertBefore(f,m.firstChild)}})},before:function(){return Ei(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this)})},after:function(){return Ei(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling)})},empty:function(){for(var f,m=0;(f=this[m])!=null;m++)f.nodeType===1&&(S.cleanData(gn(f,!1)),f.textContent="");return this},clone:function(f,m){return f=f??!1,m=m??f,this.map(function(){return S.clone(this,f,m)})},html:function(f){return kn(this,function(m){var C=this[0]||{},_=0,N=this.length;if(m===void 0&&C.nodeType===1)return C.innerHTML;if(typeof m=="string"&&!Ra.test(m)&&!In[(di.exec(m)||["",""])[1].toLowerCase()]){m=S.htmlPrefilter(m);try{for(;_<N;_++)C=this[_]||{},C.nodeType===1&&(S.cleanData(gn(C,!1)),C.innerHTML=m);C=0}catch{}}C&&this.empty().append(m)},null,f,arguments.length)},replaceWith:function(){var f=[];return Ei(this,arguments,function(m){var C=this.parentNode;S.inArray(this,f)<0&&(S.cleanData(gn(this)),C&&C.replaceChild(m,this))},f)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,m){S.fn[f]=function(C){for(var _,N=[],B=S(C),H=B.length-1,ue=0;ue<=H;ue++)_=ue===H?this:this.clone(!0),S(B[ue])[m](_),l.apply(N,_.get());return this.pushStack(N)}});var ki=new RegExp("^("+Vi+")(?!px)[a-z%]+$","i"),Jr=/^--/,Sr=function(f){var m=f.ownerDocument.defaultView;return(!m||!m.opener)&&(m=t),m.getComputedStyle(f)},Ir=function(f,m,C){var _,N,B={};for(N in m)B[N]=f.style[N],f.style[N]=m[N];_=C.call(f);for(N in m)f.style[N]=B[N];return _},Qr=new RegExp(Un.join("|"),"i");(function(){function f(){if(we){oe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",we.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Rr.appendChild(oe).appendChild(we);var Le=t.getComputedStyle(we);C=Le.top!=="1%",ue=m(Le.marginLeft)===12,we.style.right="60%",B=m(Le.right)===36,_=m(Le.width)===36,we.style.position="absolute",N=m(we.offsetWidth/3)===12,Rr.removeChild(oe),we=null}}function m(Le){return Math.round(parseFloat(Le))}var C,_,N,B,H,ue,oe=I.createElement("div"),we=I.createElement("div");we.style&&(we.style.backgroundClip="content-box",we.cloneNode(!0).style.backgroundClip="",P.clearCloneStyle=we.style.backgroundClip==="content-box",S.extend(P,{boxSizingReliable:function(){return f(),_},pixelBoxStyles:function(){return f(),B},pixelPosition:function(){return f(),C},reliableMarginLeft:function(){return f(),ue},scrollboxSize:function(){return f(),N},reliableTrDimensions:function(){var Le,je,ke,qe;return H==null&&(Le=I.createElement("table"),je=I.createElement("tr"),ke=I.createElement("div"),Le.style.cssText="position:absolute;left:-11111px;border-collapse:separate",je.style.cssText="box-sizing:content-box;border:1px solid",je.style.height="1px",ke.style.height="9px",ke.style.display="block",Rr.appendChild(Le).appendChild(je).appendChild(ke),qe=t.getComputedStyle(je),H=parseInt(qe.height,10)+parseInt(qe.borderTopWidth,10)+parseInt(qe.borderBottomWidth,10)===je.offsetHeight,Rr.removeChild(Le)),H}}))})();function Ar(f,m,C){var _,N,B,H,ue=Jr.test(m),oe=f.style;return C=C||Sr(f),C&&(H=C.getPropertyValue(m)||C[m],ue&&H&&(H=H.replace(tt,"$1")||void 0),H===""&&!wr(f)&&(H=S.style(f,m)),!P.pixelBoxStyles()&&ki.test(H)&&Qr.test(m)&&(_=oe.width,N=oe.minWidth,B=oe.maxWidth,oe.minWidth=oe.maxWidth=oe.width=H,H=C.width,oe.width=_,oe.minWidth=N,oe.maxWidth=B)),H!==void 0?H+"":H}function Wn(f,m){return{get:function(){if(f()){delete this.get;return}return(this.get=m).apply(this,arguments)}}}var vn=["Webkit","Moz","ms"],Mr=I.createElement("div").style,Tr={};function An(f){for(var m=f[0].toUpperCase()+f.slice(1),C=vn.length;C--;)if(f=vn[C]+m,f in Mr)return f}function mi(f){var m=S.cssProps[f]||Tr[f];return m||(f in Mr?f:Tr[f]=An(f)||f)}var Lr=/^(none|table(?!-c[ea]).+)/,ei={position:"absolute",visibility:"hidden",display:"block"},Jn={letterSpacing:"0",fontWeight:"400"};function ti(f,m,C){var _=Pr.exec(m);return _?Math.max(0,_[2]-(C||0))+(_[3]||"px"):m}function ni(f,m,C,_,N,B){var H=m==="width"?1:0,ue=0,oe=0,we=0;if(C===(_?"border":"content"))return 0;for(;H<4;H+=2)C==="margin"&&(we+=S.css(f,C+Un[H],!0,N)),_?(C==="content"&&(oe-=S.css(f,"padding"+Un[H],!0,N)),C!=="margin"&&(oe-=S.css(f,"border"+Un[H]+"Width",!0,N))):(oe+=S.css(f,"padding"+Un[H],!0,N),C!=="padding"?oe+=S.css(f,"border"+Un[H]+"Width",!0,N):ue+=S.css(f,"border"+Un[H]+"Width",!0,N));return!_&&B>=0&&(oe+=Math.max(0,Math.ceil(f["offset"+m[0].toUpperCase()+m.slice(1)]-B-oe-ue-.5))||0),oe+we}function Ui(f,m,C){var _=Sr(f),N=!P.boxSizingReliable()||C,B=N&&S.css(f,"boxSizing",!1,_)==="border-box",H=B,ue=Ar(f,m,_),oe="offset"+m[0].toUpperCase()+m.slice(1);if(ki.test(ue)){if(!C)return ue;ue="auto"}return(!P.boxSizingReliable()&&B||!P.reliableTrDimensions()&&ae(f,"tr")||ue==="auto"||!parseFloat(ue)&&S.css(f,"display",!1,_)==="inline")&&f.getClientRects().length&&(B=S.css(f,"boxSizing",!1,_)==="border-box",H=oe in f,H&&(ue=f[oe])),ue=parseFloat(ue)||0,ue+ni(f,m,C||(B?"border":"content"),H,_,ue)+"px"}S.extend({cssHooks:{opacity:{get:function(f,m){if(m){var C=Ar(f,"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(f,m,C,_){if(!(!f||f.nodeType===3||f.nodeType===8||!f.style)){var N,B,H,ue=cn(m),oe=Jr.test(m),we=f.style;if(oe||(m=mi(ue)),H=S.cssHooks[m]||S.cssHooks[ue],C!==void 0){if(B=typeof C,B==="string"&&(N=Pr.exec(C))&&N[1]&&(C=Do(f,m,N),B="number"),C==null||C!==C)return;B==="number"&&!oe&&(C+=N&&N[3]||(S.cssNumber[ue]?"":"px")),!P.clearCloneStyle&&C===""&&m.indexOf("background")===0&&(we[m]="inherit"),(!H||!("set"in H)||(C=H.set(f,C,_))!==void 0)&&(oe?we.setProperty(m,C):we[m]=C)}else return H&&"get"in H&&(N=H.get(f,!1,_))!==void 0?N:we[m]}},css:function(f,m,C,_){var N,B,H,ue=cn(m),oe=Jr.test(m);return oe||(m=mi(ue)),H=S.cssHooks[m]||S.cssHooks[ue],H&&"get"in H&&(N=H.get(f,!0,C)),N===void 0&&(N=Ar(f,m,_)),N==="normal"&&m in Jn&&(N=Jn[m]),C===""||C?(B=parseFloat(N),C===!0||isFinite(B)?B||0:N):N}}),S.each(["height","width"],function(f,m){S.cssHooks[m]={get:function(C,_,N){if(_)return Lr.test(S.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?Ir(C,ei,function(){return Ui(C,m,N)}):Ui(C,m,N)},set:function(C,_,N){var B,H=Sr(C),ue=!P.scrollboxSize()&&H.position==="absolute",oe=ue||N,we=oe&&S.css(C,"boxSizing",!1,H)==="border-box",Le=N?ni(C,m,N,we,H):0;return we&&ue&&(Le-=Math.ceil(C["offset"+m[0].toUpperCase()+m.slice(1)]-parseFloat(H[m])-ni(C,m,"border",!1,H)-.5)),Le&&(B=Pr.exec(_))&&(B[3]||"px")!=="px"&&(C.style[m]=_,_=S.css(C,m)),ti(C,_,Le)}}}),S.cssHooks.marginLeft=Wn(P.reliableMarginLeft,function(f,m){if(m)return(parseFloat(Ar(f,"marginLeft"))||f.getBoundingClientRect().left-Ir(f,{marginLeft:0},function(){return f.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(f,m){S.cssHooks[f+m]={expand:function(C){for(var _=0,N={},B=typeof C=="string"?C.split(" "):[C];_<4;_++)N[f+Un[_]+m]=B[_]||B[_-2]||B[0];return N}},f!=="margin"&&(S.cssHooks[f+m].set=ti)}),S.fn.extend({css:function(f,m){return kn(this,function(C,_,N){var B,H,ue={},oe=0;if(Array.isArray(_)){for(B=Sr(C),H=_.length;oe<H;oe++)ue[_[oe]]=S.css(C,_[oe],!1,B);return ue}return N!==void 0?S.style(C,_,N):S.css(C,_)},f,m,arguments.length>1)}});function Pn(f,m,C,_,N){return new Pn.prototype.init(f,m,C,_,N)}S.Tween=Pn,Pn.prototype={constructor:Pn,init:function(f,m,C,_,N,B){this.elem=f,this.prop=C,this.easing=N||S.easing._default,this.options=m,this.start=this.now=this.cur(),this.end=_,this.unit=B||(S.cssNumber[C]?"":"px")},cur:function(){var f=Pn.propHooks[this.prop];return f&&f.get?f.get(this):Pn.propHooks._default.get(this)},run:function(f){var m,C=Pn.propHooks[this.prop];return this.options.duration?this.pos=m=S.easing[this.easing](f,this.options.duration*f,0,1,this.options.duration):this.pos=m=f,this.now=(this.end-this.start)*m+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),C&&C.set?C.set(this):Pn.propHooks._default.set(this),this}},Pn.prototype.init.prototype=Pn.prototype,Pn.propHooks={_default:{get:function(f){var m;return f.elem.nodeType!==1||f.elem[f.prop]!=null&&f.elem.style[f.prop]==null?f.elem[f.prop]:(m=S.css(f.elem,f.prop,""),!m||m==="auto"?0:m)},set:function(f){S.fx.step[f.prop]?S.fx.step[f.prop](f):f.elem.nodeType===1&&(S.cssHooks[f.prop]||f.elem.style[mi(f.prop)]!=null)?S.style(f.elem,f.prop,f.now+f.unit):f.elem[f.prop]=f.now}}},Pn.propHooks.scrollTop=Pn.propHooks.scrollLeft={set:function(f){f.elem.nodeType&&f.elem.parentNode&&(f.elem[f.prop]=f.now)}},S.easing={linear:function(f){return f},swing:function(f){return .5-Math.cos(f*Math.PI)/2},_default:"swing"},S.fx=Pn.prototype.init,S.fx.step={};var Cr,fr,Ro=/^(?:toggle|show|hide)$/,Wi=/queueHooks$/;function Fr(){fr&&(I.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Fr):t.setTimeout(Fr,S.fx.interval),S.fx.tick())}function E(){return t.setTimeout(function(){Cr=void 0}),Cr=Date.now()}function j(f,m){var C,_=0,N={height:f};for(m=m?1:0;_<4;_+=2-m)C=Un[_],N["margin"+C]=N["padding"+C]=f;return m&&(N.opacity=N.width=f),N}function q(f,m,C){for(var _,N=(be.tweeners[m]||[]).concat(be.tweeners["*"]),B=0,H=N.length;B<H;B++)if(_=N[B].call(C,m,f))return _}function re(f,m,C){var _,N,B,H,ue,oe,we,Le,je="width"in m||"height"in m,ke=this,qe={},ct=f.style,Dt=f.nodeType&&Xr(f),It=gt.get(f,"fxshow");C.queue||(H=S._queueHooks(f,"fx"),H.unqueued==null&&(H.unqueued=0,ue=H.empty.fire,H.empty.fire=function(){H.unqueued||ue()}),H.unqueued++,ke.always(function(){ke.always(function(){H.unqueued--,S.queue(f,"fx").length||H.empty.fire()})}));for(_ in m)if(N=m[_],Ro.test(N)){if(delete m[_],B=B||N==="toggle",N===(Dt?"hide":"show"))if(N==="show"&&It&&It[_]!==void 0)Dt=!0;else continue;qe[_]=It&&It[_]||S.style(f,_)}if(oe=!S.isEmptyObject(m),!(!oe&&S.isEmptyObject(qe))){je&&f.nodeType===1&&(C.overflow=[ct.overflow,ct.overflowX,ct.overflowY],we=It&&It.display,we==null&&(we=gt.get(f,"display")),Le=S.css(f,"display"),Le==="none"&&(we?Le=we:(ir([f],!0),we=f.style.display||we,Le=S.css(f,"display"),ir([f]))),(Le==="inline"||Le==="inline-block"&&we!=null)&&S.css(f,"float")==="none"&&(oe||(ke.done(function(){ct.display=we}),we==null&&(Le=ct.display,we=Le==="none"?"":Le)),ct.display="inline-block")),C.overflow&&(ct.overflow="hidden",ke.always(function(){ct.overflow=C.overflow[0],ct.overflowX=C.overflow[1],ct.overflowY=C.overflow[2]})),oe=!1;for(_ in qe)oe||(It?"hidden"in It&&(Dt=It.hidden):It=gt.access(f,"fxshow",{display:we}),B&&(It.hidden=!Dt),Dt&&ir([f],!0),ke.done(function(){Dt||ir([f]),gt.remove(f,"fxshow");for(_ in qe)S.style(f,_,qe[_])})),oe=q(Dt?It[_]:0,_,ke),_ in It||(It[_]=oe.start,Dt&&(oe.end=oe.start,oe.start=0))}}function Oe(f,m){var C,_,N,B,H;for(C in f)if(_=cn(C),N=m[_],B=f[C],Array.isArray(B)&&(N=B[1],B=f[C]=B[0]),C!==_&&(f[_]=B,delete f[C]),H=S.cssHooks[_],H&&"expand"in H){B=H.expand(B),delete f[_];for(C in B)C in f||(f[C]=B[C],m[C]=N)}else m[_]=N}function be(f,m,C){var _,N,B=0,H=be.prefilters.length,ue=S.Deferred().always(function(){delete oe.elem}),oe=function(){if(N)return!1;for(var je=Cr||E(),ke=Math.max(0,we.startTime+we.duration-je),qe=ke/we.duration||0,ct=1-qe,Dt=0,It=we.tweens.length;Dt<It;Dt++)we.tweens[Dt].run(ct);return ue.notifyWith(f,[we,ct,ke]),ct<1&&It?ke:(It||ue.notifyWith(f,[we,1,0]),ue.resolveWith(f,[we]),!1)},we=ue.promise({elem:f,props:S.extend({},m),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},C),originalProperties:m,originalOptions:C,startTime:Cr||E(),duration:C.duration,tweens:[],createTween:function(je,ke){var qe=S.Tween(f,we.opts,je,ke,we.opts.specialEasing[je]||we.opts.easing);return we.tweens.push(qe),qe},stop:function(je){var ke=0,qe=je?we.tweens.length:0;if(N)return this;for(N=!0;ke<qe;ke++)we.tweens[ke].run(1);return je?(ue.notifyWith(f,[we,1,0]),ue.resolveWith(f,[we,je])):ue.rejectWith(f,[we,je]),this}}),Le=we.props;for(Oe(Le,we.opts.specialEasing);B<H;B++)if(_=be.prefilters[B].call(we,f,Le,we.opts),_)return R(_.stop)&&(S._queueHooks(we.elem,we.opts.queue).stop=_.stop.bind(_)),_;return S.map(Le,q,we),R(we.opts.start)&&we.opts.start.call(f,we),we.progress(we.opts.progress).done(we.opts.done,we.opts.complete).fail(we.opts.fail).always(we.opts.always),S.fx.timer(S.extend(oe,{elem:f,anim:we,queue:we.opts.queue})),we}S.Animation=S.extend(be,{tweeners:{"*":[function(f,m){var C=this.createTween(f,m);return Do(C.elem,f,Pr.exec(m),C),C}]},tweener:function(f,m){R(f)?(m=f,f=["*"]):f=f.match(vt);for(var C,_=0,N=f.length;_<N;_++)C=f[_],be.tweeners[C]=be.tweeners[C]||[],be.tweeners[C].unshift(m)},prefilters:[re],prefilter:function(f,m){m?be.prefilters.unshift(f):be.prefilters.push(f)}}),S.speed=function(f,m,C){var _=f&&typeof f=="object"?S.extend({},f):{complete:C||!C&&m||R(f)&&f,duration:f,easing:C&&m||m&&!R(m)&&m};return S.fx.off?_.duration=0:typeof _.duration!="number"&&(_.duration in S.fx.speeds?_.duration=S.fx.speeds[_.duration]:_.duration=S.fx.speeds._default),(_.queue==null||_.queue===!0)&&(_.queue="fx"),_.old=_.complete,_.complete=function(){R(_.old)&&_.old.call(this),_.queue&&S.dequeue(this,_.queue)},_},S.fn.extend({fadeTo:function(f,m,C,_){return this.filter(Xr).css("opacity",0).show().end().animate({opacity:m},f,C,_)},animate:function(f,m,C,_){var N=S.isEmptyObject(f),B=S.speed(m,C,_),H=function(){var ue=be(this,S.extend({},f),B);(N||gt.get(this,"finish"))&&ue.stop(!0)};return H.finish=H,N||B.queue===!1?this.each(H):this.queue(B.queue,H)},stop:function(f,m,C){var _=function(N){var B=N.stop;delete N.stop,B(C)};return typeof f!="string"&&(C=m,m=f,f=void 0),m&&this.queue(f||"fx",[]),this.each(function(){var N=!0,B=f!=null&&f+"queueHooks",H=S.timers,ue=gt.get(this);if(B)ue[B]&&ue[B].stop&&_(ue[B]);else for(B in ue)ue[B]&&ue[B].stop&&Wi.test(B)&&_(ue[B]);for(B=H.length;B--;)H[B].elem===this&&(f==null||H[B].queue===f)&&(H[B].anim.stop(C),N=!1,H.splice(B,1));(N||!C)&&S.dequeue(this,f)})},finish:function(f){return f!==!1&&(f=f||"fx"),this.each(function(){var m,C=gt.get(this),_=C[f+"queue"],N=C[f+"queueHooks"],B=S.timers,H=_?_.length:0;for(C.finish=!0,S.queue(this,f,[]),N&&N.stop&&N.stop.call(this,!0),m=B.length;m--;)B[m].elem===this&&B[m].queue===f&&(B[m].anim.stop(!0),B.splice(m,1));for(m=0;m<H;m++)_[m]&&_[m].finish&&_[m].finish.call(this);delete C.finish})}}),S.each(["toggle","show","hide"],function(f,m){var C=S.fn[m];S.fn[m]=function(_,N,B){return _==null||typeof _=="boolean"?C.apply(this,arguments):this.animate(j(m,!0),_,N,B)}}),S.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(f,m){S.fn[f]=function(C,_,N){return this.animate(m,C,_,N)}}),S.timers=[],S.fx.tick=function(){var f,m=0,C=S.timers;for(Cr=Date.now();m<C.length;m++)f=C[m],!f()&&C[m]===f&&C.splice(m--,1);C.length||S.fx.stop(),Cr=void 0},S.fx.timer=function(f){S.timers.push(f),S.fx.start()},S.fx.interval=13,S.fx.start=function(){fr||(fr=!0,Fr())},S.fx.stop=function(){fr=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(f,m){return f=S.fx&&S.fx.speeds[f]||f,m=m||"fx",this.queue(m,function(C,_){var N=t.setTimeout(C,f);_.stop=function(){t.clearTimeout(N)}})},function(){var f=I.createElement("input"),m=I.createElement("select"),C=m.appendChild(I.createElement("option"));f.type="checkbox",P.checkOn=f.value!=="",P.optSelected=C.selected,f=I.createElement("input"),f.value="t",f.type="radio",P.radioValue=f.value==="t"}();var Me,rt=S.expr.attrHandle;S.fn.extend({attr:function(f,m){return kn(this,S.attr,f,m,arguments.length>1)},removeAttr:function(f){return this.each(function(){S.removeAttr(this,f)})}}),S.extend({attr:function(f,m,C){var _,N,B=f.nodeType;if(!(B===3||B===8||B===2)){if(typeof f.getAttribute>"u")return S.prop(f,m,C);if((B!==1||!S.isXMLDoc(f))&&(N=S.attrHooks[m.toLowerCase()]||(S.expr.match.bool.test(m)?Me:void 0)),C!==void 0){if(C===null){S.removeAttr(f,m);return}return N&&"set"in N&&(_=N.set(f,C,m))!==void 0?_:(f.setAttribute(m,C+""),C)}return N&&"get"in N&&(_=N.get(f,m))!==null?_:(_=S.find.attr(f,m),_??void 0)}},attrHooks:{type:{set:function(f,m){if(!P.radioValue&&m==="radio"&&ae(f,"input")){var C=f.value;return f.setAttribute("type",m),C&&(f.value=C),m}}}},removeAttr:function(f,m){var C,_=0,N=m&&m.match(vt);if(N&&f.nodeType===1)for(;C=N[_++];)f.removeAttribute(C)}}),Me={set:function(f,m,C){return m===!1?S.removeAttr(f,C):f.setAttribute(C,C),C}},S.each(S.expr.match.bool.source.match(/\w+/g),function(f,m){var C=rt[m]||S.find.attr;rt[m]=function(_,N,B){var H,ue,oe=N.toLowerCase();return B||(ue=rt[oe],rt[oe]=H,H=C(_,N,B)!=null?oe:null,rt[oe]=ue),H}});var yt=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;S.fn.extend({prop:function(f,m){return kn(this,S.prop,f,m,arguments.length>1)},removeProp:function(f){return this.each(function(){delete this[S.propFix[f]||f]})}}),S.extend({prop:function(f,m,C){var _,N,B=f.nodeType;if(!(B===3||B===8||B===2))return(B!==1||!S.isXMLDoc(f))&&(m=S.propFix[m]||m,N=S.propHooks[m]),C!==void 0?N&&"set"in N&&(_=N.set(f,C,m))!==void 0?_:f[m]=C:N&&"get"in N&&(_=N.get(f,m))!==null?_:f[m]},propHooks:{tabIndex:{get:function(f){var m=S.find.attr(f,"tabindex");return m?parseInt(m,10):yt.test(f.nodeName)||Tt.test(f.nodeName)&&f.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),P.optSelected||(S.propHooks.selected={get:function(f){var m=f.parentNode;return m&&m.parentNode&&m.parentNode.selectedIndex,null},set:function(f){var m=f.parentNode;m&&(m.selectedIndex,m.parentNode&&m.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this});function bt(f){var m=f.match(vt)||[];return m.join(" ")}function Ut(f){return f.getAttribute&&f.getAttribute("class")||""}function Qn(f){return Array.isArray(f)?f:typeof f=="string"?f.match(vt)||[]:[]}S.fn.extend({addClass:function(f){var m,C,_,N,B,H;return R(f)?this.each(function(ue){S(this).addClass(f.call(this,ue,Ut(this)))}):(m=Qn(f),m.length?this.each(function(){if(_=Ut(this),C=this.nodeType===1&&" "+bt(_)+" ",C){for(B=0;B<m.length;B++)N=m[B],C.indexOf(" "+N+" ")<0&&(C+=N+" ");H=bt(C),_!==H&&this.setAttribute("class",H)}}):this)},removeClass:function(f){var m,C,_,N,B,H;return R(f)?this.each(function(ue){S(this).removeClass(f.call(this,ue,Ut(this)))}):arguments.length?(m=Qn(f),m.length?this.each(function(){if(_=Ut(this),C=this.nodeType===1&&" "+bt(_)+" ",C){for(B=0;B<m.length;B++)for(N=m[B];C.indexOf(" "+N+" ")>-1;)C=C.replace(" "+N+" "," ");H=bt(C),_!==H&&this.setAttribute("class",H)}}):this):this.attr("class","")},toggleClass:function(f,m){var C,_,N,B,H=typeof f,ue=H==="string"||Array.isArray(f);return R(f)?this.each(function(oe){S(this).toggleClass(f.call(this,oe,Ut(this),m),m)}):typeof m=="boolean"&&ue?m?this.addClass(f):this.removeClass(f):(C=Qn(f),this.each(function(){if(ue)for(B=S(this),N=0;N<C.length;N++)_=C[N],B.hasClass(_)?B.removeClass(_):B.addClass(_);else(f===void 0||H==="boolean")&&(_=Ut(this),_&>.set(this,"__className__",_),this.setAttribute&&this.setAttribute("class",_||f===!1?"":gt.get(this,"__className__")||""))}))},hasClass:function(f){var m,C,_=0;for(m=" "+f+" ";C=this[_++];)if(C.nodeType===1&&(" "+bt(Ut(C))+" ").indexOf(m)>-1)return!0;return!1}});var zn=/\r/g;S.fn.extend({val:function(f){var m,C,_,N=this[0];return arguments.length?(_=R(f),this.each(function(B){var H;this.nodeType===1&&(_?H=f.call(this,B,S(this).val()):H=f,H==null?H="":typeof H=="number"?H+="":Array.isArray(H)&&(H=S.map(H,function(ue){return ue==null?"":ue+""})),m=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!m||!("set"in m)||m.set(this,H,"value")===void 0)&&(this.value=H))})):N?(m=S.valHooks[N.type]||S.valHooks[N.nodeName.toLowerCase()],m&&"get"in m&&(C=m.get(N,"value"))!==void 0?C:(C=N.value,typeof C=="string"?C.replace(zn,""):C??"")):void 0}}),S.extend({valHooks:{option:{get:function(f){var m=S.find.attr(f,"value");return m??bt(S.text(f))}},select:{get:function(f){var m,C,_,N=f.options,B=f.selectedIndex,H=f.type==="select-one",ue=H?null:[],oe=H?B+1:N.length;for(B<0?_=oe:_=H?B:0;_<oe;_++)if(C=N[_],(C.selected||_===B)&&!C.disabled&&(!C.parentNode.disabled||!ae(C.parentNode,"optgroup"))){if(m=S(C).val(),H)return m;ue.push(m)}return ue},set:function(f,m){for(var C,_,N=f.options,B=S.makeArray(m),H=N.length;H--;)_=N[H],(_.selected=S.inArray(S.valHooks.option.get(_),B)>-1)&&(C=!0);return C||(f.selectedIndex=-1),B}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(f,m){if(Array.isArray(m))return f.checked=S.inArray(S(f).val(),m)>-1}},P.checkOn||(S.valHooks[this].get=function(f){return f.getAttribute("value")===null?"on":f.value})});var _n=t.location,Nr={guid:Date.now()},or=/\?/;S.parseXML=function(f){var m,C;if(!f||typeof f!="string")return null;try{m=new t.DOMParser().parseFromString(f,"text/xml")}catch{}return C=m&&m.getElementsByTagName("parsererror")[0],(!m||C)&&S.error("Invalid XML: "+(C?S.map(C.childNodes,function(_){return _.textContent}).join(`
|
|
179
|
+
`):f)),m};var zi=/^(?:focusinfocus|focusoutblur)$/,yi=function(f){f.stopPropagation()};S.extend(S.event,{trigger:function(f,m,C,_){var N,B,H,ue,oe,we,Le,je,ke=[C||I],qe=p.call(f,"type")?f.type:f,ct=p.call(f,"namespace")?f.namespace.split("."):[];if(B=je=H=C=C||I,!(C.nodeType===3||C.nodeType===8)&&!zi.test(qe+S.event.triggered)&&(qe.indexOf(".")>-1&&(ct=qe.split("."),qe=ct.shift(),ct.sort()),oe=qe.indexOf(":")<0&&"on"+qe,f=f[S.expando]?f:new S.Event(qe,typeof f=="object"&&f),f.isTrigger=_?2:3,f.namespace=ct.join("."),f.rnamespace=f.namespace?new RegExp("(^|\\.)"+ct.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f.result=void 0,f.target||(f.target=C),m=m==null?[f]:S.makeArray(m,[f]),Le=S.event.special[qe]||{},!(!_&&Le.trigger&&Le.trigger.apply(C,m)===!1))){if(!_&&!Le.noBubble&&!L(C)){for(ue=Le.delegateType||qe,zi.test(ue+qe)||(B=B.parentNode);B;B=B.parentNode)ke.push(B),H=B;H===(C.ownerDocument||I)&&ke.push(H.defaultView||H.parentWindow||t)}for(N=0;(B=ke[N++])&&!f.isPropagationStopped();)je=B,f.type=N>1?ue:Le.bindType||qe,we=(gt.get(B,"events")||Object.create(null))[f.type]&>.get(B,"handle"),we&&we.apply(B,m),we=oe&&B[oe],we&&we.apply&&hn(B)&&(f.result=we.apply(B,m),f.result===!1&&f.preventDefault());return f.type=qe,!_&&!f.isDefaultPrevented()&&(!Le._default||Le._default.apply(ke.pop(),m)===!1)&&hn(C)&&oe&&R(C[qe])&&!L(C)&&(H=C[oe],H&&(C[oe]=null),S.event.triggered=qe,f.isPropagationStopped()&&je.addEventListener(qe,yi),C[qe](),f.isPropagationStopped()&&je.removeEventListener(qe,yi),S.event.triggered=void 0,H&&(C[oe]=H)),f.result}},simulate:function(f,m,C){var _=S.extend(new S.Event,C,{type:f,isSimulated:!0});S.event.trigger(_,null,m)}}),S.fn.extend({trigger:function(f,m){return this.each(function(){S.event.trigger(f,m,this)})},triggerHandler:function(f,m){var C=this[0];if(C)return S.event.trigger(f,m,C,!0)}});var Yi=/\[\]$/,jr=/\r?\n/g,Io=/^(?:submit|button|image|reset|file)$/i,Vs=/^(?:input|select|textarea|keygen)/i;function Aa(f,m,C,_){var N;if(Array.isArray(m))S.each(m,function(B,H){C||Yi.test(f)?_(f,H):Aa(f+"["+(typeof H=="object"&&H!=null?B:"")+"]",H,C,_)});else if(!C&&te(m)==="object")for(N in m)Aa(f+"["+N+"]",m[N],C,_);else _(f,m)}S.param=function(f,m){var C,_=[],N=function(B,H){var ue=R(H)?H():H;_[_.length]=encodeURIComponent(B)+"="+encodeURIComponent(ue??"")};if(f==null)return"";if(Array.isArray(f)||f.jquery&&!S.isPlainObject(f))S.each(f,function(){N(this.name,this.value)});else for(C in f)Aa(C,f[C],m,N);return _.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var f=S.prop(this,"elements");return f?S.makeArray(f):this}).filter(function(){var f=this.type;return this.name&&!S(this).is(":disabled")&&Vs.test(this.nodeName)&&!Io.test(f)&&(this.checked||!Zt.test(f))}).map(function(f,m){var C=S(this).val();return C==null?null:Array.isArray(C)?S.map(C,function(_){return{name:m.name,value:_.replace(jr,`\r
|
|
180
|
+
`)}}):{name:m.name,value:C.replace(jr,`\r
|
|
181
|
+
`)}}).get()}});var Ma=/%20/g,La=/#.*$/,Fa=/([?&])_=[^&]*/,bi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ao=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ra=/^(?:GET|HEAD)$/,sn=/^\/\//,Qt={},Vt={},_i="*/".concat("*"),ri=I.createElement("a");ri.href=_n.href;function Mo(f){return function(m,C){typeof m!="string"&&(C=m,m="*");var _,N=0,B=m.toLowerCase().match(vt)||[];if(R(C))for(;_=B[N++];)_[0]==="+"?(_=_.slice(1)||"*",(f[_]=f[_]||[]).unshift(C)):(f[_]=f[_]||[]).push(C)}}function wi(f,m,C,_){var N={},B=f===Vt;function H(ue){var oe;return N[ue]=!0,S.each(f[ue]||[],function(we,Le){var je=Le(m,C,_);if(typeof je=="string"&&!B&&!N[je])return m.dataTypes.unshift(je),H(je),!1;if(B)return!(oe=je)}),oe}return H(m.dataTypes[0])||!N["*"]&&H("*")}function dr(f,m){var C,_,N=S.ajaxSettings.flatOptions||{};for(C in m)m[C]!==void 0&&((N[C]?f:_||(_={}))[C]=m[C]);return _&&S.extend(!0,f,_),f}function Na(f,m,C){for(var _,N,B,H,ue=f.contents,oe=f.dataTypes;oe[0]==="*";)oe.shift(),_===void 0&&(_=f.mimeType||m.getResponseHeader("Content-Type"));if(_){for(N in ue)if(ue[N]&&ue[N].test(_)){oe.unshift(N);break}}if(oe[0]in C)B=oe[0];else{for(N in C){if(!oe[0]||f.converters[N+" "+oe[0]]){B=N;break}H||(H=N)}B=B||H}if(B)return B!==oe[0]&&oe.unshift(B),C[B]}function ia(f,m,C,_){var N,B,H,ue,oe,we={},Le=f.dataTypes.slice();if(Le[1])for(H in f.converters)we[H.toLowerCase()]=f.converters[H];for(B=Le.shift();B;)if(f.responseFields[B]&&(C[f.responseFields[B]]=m),!oe&&_&&f.dataFilter&&(m=f.dataFilter(m,f.dataType)),oe=B,B=Le.shift(),B){if(B==="*")B=oe;else if(oe!=="*"&&oe!==B){if(H=we[oe+" "+B]||we["* "+B],!H){for(N in we)if(ue=N.split(" "),ue[1]===B&&(H=we[oe+" "+ue[0]]||we["* "+ue[0]],H)){H===!0?H=we[N]:we[N]!==!0&&(B=ue[0],Le.unshift(ue[1]));break}}if(H!==!0)if(H&&f.throws)m=H(m);else try{m=H(m)}catch(je){return{state:"parsererror",error:H?je:"No conversion from "+oe+" to "+B}}}}return{state:"success",data:m}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_n.href,type:"GET",isLocal:Ao.test(_n.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_i,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(f,m){return m?dr(dr(f,S.ajaxSettings),m):dr(S.ajaxSettings,f)},ajaxPrefilter:Mo(Qt),ajaxTransport:Mo(Vt),ajax:function(f,m){typeof f=="object"&&(m=f,f=void 0),m=m||{};var C,_,N,B,H,ue,oe,we,Le,je,ke=S.ajaxSetup({},m),qe=ke.context||ke,ct=ke.context&&(qe.nodeType||qe.jquery)?S(qe):S.event,Dt=S.Deferred(),It=S.Callbacks("once memory"),Mn=ke.statusCode||{},dn={},Br={},$r="canceled",Wt={readyState:0,getResponseHeader:function(zt){var on;if(oe){if(!B)for(B={};on=bi.exec(N);)B[on[1].toLowerCase()+" "]=(B[on[1].toLowerCase()+" "]||[]).concat(on[2]);on=B[zt.toLowerCase()+" "]}return on==null?null:on.join(", ")},getAllResponseHeaders:function(){return oe?N:null},setRequestHeader:function(zt,on){return oe==null&&(zt=Br[zt.toLowerCase()]=Br[zt.toLowerCase()]||zt,dn[zt]=on),this},overrideMimeType:function(zt){return oe==null&&(ke.mimeType=zt),this},statusCode:function(zt){var on;if(zt)if(oe)Wt.always(zt[Wt.status]);else for(on in zt)Mn[on]=[Mn[on],zt[on]];return this},abort:function(zt){var on=zt||$r;return C&&C.abort(on),Vr(0,on),this}};if(Dt.promise(Wt),ke.url=((f||ke.url||_n.href)+"").replace(sn,_n.protocol+"//"),ke.type=m.method||m.type||ke.method||ke.type,ke.dataTypes=(ke.dataType||"*").toLowerCase().match(vt)||[""],ke.crossDomain==null){ue=I.createElement("a");try{ue.href=ke.url,ue.href=ue.href,ke.crossDomain=ri.protocol+"//"+ri.host!=ue.protocol+"//"+ue.host}catch{ke.crossDomain=!0}}if(ke.data&&ke.processData&&typeof ke.data!="string"&&(ke.data=S.param(ke.data,ke.traditional)),wi(Qt,ke,m,Wt),oe)return Wt;we=S.event&&ke.global,we&&S.active++===0&&S.event.trigger("ajaxStart"),ke.type=ke.type.toUpperCase(),ke.hasContent=!ra.test(ke.type),_=ke.url.replace(La,""),ke.hasContent?ke.data&&ke.processData&&(ke.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ke.data=ke.data.replace(Ma,"+")):(je=ke.url.slice(_.length),ke.data&&(ke.processData||typeof ke.data=="string")&&(_+=(or.test(_)?"&":"?")+ke.data,delete ke.data),ke.cache===!1&&(_=_.replace(Fa,"$1"),je=(or.test(_)?"&":"?")+"_="+Nr.guid+++je),ke.url=_+je),ke.ifModified&&(S.lastModified[_]&&Wt.setRequestHeader("If-Modified-Since",S.lastModified[_]),S.etag[_]&&Wt.setRequestHeader("If-None-Match",S.etag[_])),(ke.data&&ke.hasContent&&ke.contentType!==!1||m.contentType)&&Wt.setRequestHeader("Content-Type",ke.contentType),Wt.setRequestHeader("Accept",ke.dataTypes[0]&&ke.accepts[ke.dataTypes[0]]?ke.accepts[ke.dataTypes[0]]+(ke.dataTypes[0]!=="*"?", "+_i+"; q=0.01":""):ke.accepts["*"]);for(Le in ke.headers)Wt.setRequestHeader(Le,ke.headers[Le]);if(ke.beforeSend&&(ke.beforeSend.call(qe,Wt,ke)===!1||oe))return Wt.abort();if($r="abort",It.add(ke.complete),Wt.done(ke.success),Wt.fail(ke.error),C=wi(Vt,ke,m,Wt),!C)Vr(-1,"No Transport");else{if(Wt.readyState=1,we&&ct.trigger("ajaxSend",[Wt,ke]),oe)return Wt;ke.async&&ke.timeout>0&&(H=t.setTimeout(function(){Wt.abort("timeout")},ke.timeout));try{oe=!1,C.send(dn,Vr)}catch(zt){if(oe)throw zt;Vr(-1,zt)}}function Vr(zt,on,po,go){var Er,k,F,z,ne,Se=on;oe||(oe=!0,H&&t.clearTimeout(H),C=void 0,N=go||"",Wt.readyState=zt>0?4:0,Er=zt>=200&&zt<300||zt===304,po&&(z=Na(ke,Wt,po)),!Er&&S.inArray("script",ke.dataTypes)>-1&&S.inArray("json",ke.dataTypes)<0&&(ke.converters["text script"]=function(){}),z=ia(ke,z,Wt,Er),Er?(ke.ifModified&&(ne=Wt.getResponseHeader("Last-Modified"),ne&&(S.lastModified[_]=ne),ne=Wt.getResponseHeader("etag"),ne&&(S.etag[_]=ne)),zt===204||ke.type==="HEAD"?Se="nocontent":zt===304?Se="notmodified":(Se=z.state,k=z.data,F=z.error,Er=!F)):(F=Se,(zt||!Se)&&(Se="error",zt<0&&(zt=0))),Wt.status=zt,Wt.statusText=(on||Se)+"",Er?Dt.resolveWith(qe,[k,Se,Wt]):Dt.rejectWith(qe,[Wt,Se,F]),Wt.statusCode(Mn),Mn=void 0,we&&ct.trigger(Er?"ajaxSuccess":"ajaxError",[Wt,ke,Er?k:F]),It.fireWith(qe,[Wt,Se]),we&&(ct.trigger("ajaxComplete",[Wt,ke]),--S.active||S.event.trigger("ajaxStop")))}return Wt},getJSON:function(f,m,C){return S.get(f,m,C,"json")},getScript:function(f,m){return S.get(f,void 0,m,"script")}}),S.each(["get","post"],function(f,m){S[m]=function(C,_,N,B){return R(_)&&(B=B||N,N=_,_=void 0),S.ajax(S.extend({url:C,type:m,dataType:B,data:_,success:N},S.isPlainObject(C)&&C))}}),S.ajaxPrefilter(function(f){var m;for(m in f.headers)m.toLowerCase()==="content-type"&&(f.contentType=f.headers[m]||"")}),S._evalUrl=function(f,m,C){return S.ajax({url:f,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(_){S.globalEval(_,m,C)}})},S.fn.extend({wrapAll:function(f){var m;return this[0]&&(R(f)&&(f=f.call(this[0])),m=S(f,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&m.insertBefore(this[0]),m.map(function(){for(var C=this;C.firstElementChild;)C=C.firstElementChild;return C}).append(this)),this},wrapInner:function(f){return R(f)?this.each(function(m){S(this).wrapInner(f.call(this,m))}):this.each(function(){var m=S(this),C=m.contents();C.length?C.wrapAll(f):m.append(f)})},wrap:function(f){var m=R(f);return this.each(function(C){S(this).wrapAll(m?f.call(this,C):f)})},unwrap:function(f){return this.parent(f).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(f){return!S.expr.pseudos.visible(f)},S.expr.pseudos.visible=function(f){return!!(f.offsetWidth||f.offsetHeight||f.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var as={0:200,1223:204},yn=S.ajaxSettings.xhr();P.cors=!!yn&&"withCredentials"in yn,P.ajax=yn=!!yn,S.ajaxTransport(function(f){var m,C;if(P.cors||yn&&!f.crossDomain)return{send:function(_,N){var B,H=f.xhr();if(H.open(f.type,f.url,f.async,f.username,f.password),f.xhrFields)for(B in f.xhrFields)H[B]=f.xhrFields[B];f.mimeType&&H.overrideMimeType&&H.overrideMimeType(f.mimeType),!f.crossDomain&&!_["X-Requested-With"]&&(_["X-Requested-With"]="XMLHttpRequest");for(B in _)H.setRequestHeader(B,_[B]);m=function(ue){return function(){m&&(m=C=H.onload=H.onerror=H.onabort=H.ontimeout=H.onreadystatechange=null,ue==="abort"?H.abort():ue==="error"?typeof H.status!="number"?N(0,"error"):N(H.status,H.statusText):N(as[H.status]||H.status,H.statusText,(H.responseType||"text")!=="text"||typeof H.responseText!="string"?{binary:H.response}:{text:H.responseText},H.getAllResponseHeaders()))}},H.onload=m(),C=H.onerror=H.ontimeout=m("error"),H.onabort!==void 0?H.onabort=C:H.onreadystatechange=function(){H.readyState===4&&t.setTimeout(function(){m&&C()})},m=m("abort");try{H.send(f.hasContent&&f.data||null)}catch(ue){if(m)throw ue}},abort:function(){m&&m()}}}),S.ajaxPrefilter(function(f){f.crossDomain&&(f.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(f){return S.globalEval(f),f}}}),S.ajaxPrefilter("script",function(f){f.cache===void 0&&(f.cache=!1),f.crossDomain&&(f.type="GET")}),S.ajaxTransport("script",function(f){if(f.crossDomain||f.scriptAttrs){var m,C;return{send:function(_,N){m=S("<script>").attr(f.scriptAttrs||{}).prop({charset:f.scriptCharset,src:f.url}).on("load error",C=function(B){m.remove(),C=null,B&&N(B.type==="error"?404:200,B.type)}),I.head.appendChild(m[0])},abort:function(){C&&C()}}}});var Lo=[],xi=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var f=Lo.pop()||S.expando+"_"+Nr.guid++;return this[f]=!0,f}}),S.ajaxPrefilter("json jsonp",function(f,m,C){var _,N,B,H=f.jsonp!==!1&&(xi.test(f.url)?"url":typeof f.data=="string"&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&xi.test(f.data)&&"data");if(H||f.dataTypes[0]==="jsonp")return _=f.jsonpCallback=R(f.jsonpCallback)?f.jsonpCallback():f.jsonpCallback,H?f[H]=f[H].replace(xi,"$1"+_):f.jsonp!==!1&&(f.url+=(or.test(f.url)?"&":"?")+f.jsonp+"="+_),f.converters["script json"]=function(){return B||S.error(_+" was not called"),B[0]},f.dataTypes[0]="json",N=t[_],t[_]=function(){B=arguments},C.always(function(){N===void 0?S(t).removeProp(_):t[_]=N,f[_]&&(f.jsonpCallback=m.jsonpCallback,Lo.push(_)),B&&R(N)&&N(B[0]),B=N=void 0}),"script"}),P.createHTMLDocument=function(){var f=I.implementation.createHTMLDocument("").body;return f.innerHTML="<form></form><form></form>",f.childNodes.length===2}(),S.parseHTML=function(f,m,C){if(typeof f!="string")return[];typeof m=="boolean"&&(C=m,m=!1);var _,N,B;return m||(P.createHTMLDocument?(m=I.implementation.createHTMLDocument(""),_=m.createElement("base"),_.href=I.location.href,m.head.appendChild(_)):m=I),N=Ve.exec(f),B=!C&&[],N?[m.createElement(N[1])]:(N=mn([f],m,B),B&&B.length&&S(B).remove(),S.merge([],N.childNodes))},S.fn.load=function(f,m,C){var _,N,B,H=this,ue=f.indexOf(" ");return ue>-1&&(_=bt(f.slice(ue)),f=f.slice(0,ue)),R(m)?(C=m,m=void 0):m&&typeof m=="object"&&(N="POST"),H.length>0&&S.ajax({url:f,type:N||"GET",dataType:"html",data:m}).done(function(oe){B=arguments,H.html(_?S("<div>").append(S.parseHTML(oe)).find(_):oe)}).always(C&&function(oe,we){H.each(function(){C.apply(this,B||[oe.responseText,we,oe])})}),this},S.expr.pseudos.animated=function(f){return S.grep(S.timers,function(m){return f===m.elem}).length},S.offset={setOffset:function(f,m,C){var _,N,B,H,ue,oe,we,Le=S.css(f,"position"),je=S(f),ke={};Le==="static"&&(f.style.position="relative"),ue=je.offset(),B=S.css(f,"top"),oe=S.css(f,"left"),we=(Le==="absolute"||Le==="fixed")&&(B+oe).indexOf("auto")>-1,we?(_=je.position(),H=_.top,N=_.left):(H=parseFloat(B)||0,N=parseFloat(oe)||0),R(m)&&(m=m.call(f,C,S.extend({},ue))),m.top!=null&&(ke.top=m.top-ue.top+H),m.left!=null&&(ke.left=m.left-ue.left+N),"using"in m?m.using.call(f,ke):je.css(ke)}},S.fn.extend({offset:function(f){if(arguments.length)return f===void 0?this:this.each(function(N){S.offset.setOffset(this,f,N)});var m,C,_=this[0];if(_)return _.getClientRects().length?(m=_.getBoundingClientRect(),C=_.ownerDocument.defaultView,{top:m.top+C.pageYOffset,left:m.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var f,m,C,_=this[0],N={top:0,left:0};if(S.css(_,"position")==="fixed")m=_.getBoundingClientRect();else{for(m=this.offset(),C=_.ownerDocument,f=_.offsetParent||C.documentElement;f&&(f===C.body||f===C.documentElement)&&S.css(f,"position")==="static";)f=f.parentNode;f&&f!==_&&f.nodeType===1&&(N=S(f).offset(),N.top+=S.css(f,"borderTopWidth",!0),N.left+=S.css(f,"borderLeftWidth",!0))}return{top:m.top-N.top-S.css(_,"marginTop",!0),left:m.left-N.left-S.css(_,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var f=this.offsetParent;f&&S.css(f,"position")==="static";)f=f.offsetParent;return f||Rr})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(f,m){var C=m==="pageYOffset";S.fn[f]=function(_){return kn(this,function(N,B,H){var ue;if(L(N)?ue=N:N.nodeType===9&&(ue=N.defaultView),H===void 0)return ue?ue[m]:N[B];ue?ue.scrollTo(C?ue.pageXOffset:H,C?H:ue.pageYOffset):N[B]=H},f,_,arguments.length)}}),S.each(["top","left"],function(f,m){S.cssHooks[m]=Wn(P.pixelPosition,function(C,_){if(_)return _=Ar(C,m),ki.test(_)?S(C).position()[m]+"px":_})}),S.each({Height:"height",Width:"width"},function(f,m){S.each({padding:"inner"+f,content:m,"":"outer"+f},function(C,_){S.fn[_]=function(N,B){var H=arguments.length&&(C||typeof N!="boolean"),ue=C||(N===!0||B===!0?"margin":"border");return kn(this,function(oe,we,Le){var je;return L(oe)?_.indexOf("outer")===0?oe["inner"+f]:oe.document.documentElement["client"+f]:oe.nodeType===9?(je=oe.documentElement,Math.max(oe.body["scroll"+f],je["scroll"+f],oe.body["offset"+f],je["offset"+f],je["client"+f])):Le===void 0?S.css(oe,we,ue):S.style(oe,we,Le,ue)},m,H?N:void 0,H)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(f,m){S.fn[m]=function(C){return this.on(m,C)}}),S.fn.extend({bind:function(f,m,C){return this.on(f,null,m,C)},unbind:function(f,m){return this.off(f,null,m)},delegate:function(f,m,C,_){return this.on(m,f,C,_)},undelegate:function(f,m,C){return arguments.length===1?this.off(f,"**"):this.off(m,f||"**",C)},hover:function(f,m){return this.on("mouseenter",f).on("mouseleave",m||f)}}),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(f,m){S.fn[m]=function(C,_){return arguments.length>0?this.on(m,null,C,_):this.trigger(m)}});var ss=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(f,m){var C,_,N;if(typeof m=="string"&&(C=f[m],m=f,f=C),!!R(f))return _=o.call(arguments,2),N=function(){return f.apply(m||this,_.concat(o.call(arguments)))},N.guid=f.guid=f.guid||S.guid++,N},S.holdReady=function(f){f?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=ae,S.isFunction=R,S.isWindow=L,S.camelCase=cn,S.type=te,S.now=Date.now,S.isNumeric=function(f){var m=S.type(f);return(m==="number"||m==="string")&&!isNaN(f-parseFloat(f))},S.trim=function(f){return f==null?"":(f+"").replace(ss,"$1")};var ho=t.jQuery,er=t.$;return S.noConflict=function(f){return t.$===S&&(t.$=er),f&&t.jQuery===S&&(t.jQuery=ho),S},typeof n>"u"&&(t.jQuery=t.$=S),S})})(w_);var x_=w_.exports;const I4=Bc(x_);var A4={exports:{}};/**
|
|
182
|
+
* @version: 3.1
|
|
183
|
+
* @author: Dan Grossman http://www.dangrossman.info/
|
|
184
|
+
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
185
|
+
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
186
|
+
* @website: http://www.daterangepicker.com/
|
|
187
|
+
*/(function(e){(function(t,n){if(e.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=x_,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:AI;e.exports=n(i,r)}else t.daterangepicker=n(t.moment,t.jQuery)})(Ko,function(t,n){var r=function(i,o,s){if(this.parentEl="body",this.element=n(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof o!="object"||o===null)&&(o={}),o=n.extend(this.element.data(),o),typeof o.template!="string"&&!(o.template instanceof n)&&(o.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=o.parentEl&&n(o.parentEl).length?n(o.parentEl):n(this.parentEl),this.container=n(o.template).appendTo(this.parentEl),typeof o.locale=="object"&&(typeof o.locale.direction=="string"&&(this.locale.direction=o.locale.direction),typeof o.locale.format=="string"&&(this.locale.format=o.locale.format),typeof o.locale.separator=="string"&&(this.locale.separator=o.locale.separator),typeof o.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=o.locale.daysOfWeek.slice()),typeof o.locale.monthNames=="object"&&(this.locale.monthNames=o.locale.monthNames.slice()),typeof o.locale.firstDay=="number"&&(this.locale.firstDay=o.locale.firstDay),typeof o.locale.applyLabel=="string"&&(this.locale.applyLabel=o.locale.applyLabel),typeof o.locale.cancelLabel=="string"&&(this.locale.cancelLabel=o.locale.cancelLabel),typeof o.locale.weekLabel=="string"&&(this.locale.weekLabel=o.locale.weekLabel),typeof o.locale.customRangeLabel=="string")){var l=document.createElement("textarea");l.innerHTML=o.locale.customRangeLabel;var c=l.value;this.locale.customRangeLabel=c}if(this.container.addClass(this.locale.direction),typeof o.startDate=="string"&&(this.startDate=t(o.startDate,this.locale.format)),typeof o.endDate=="string"&&(this.endDate=t(o.endDate,this.locale.format)),typeof o.minDate=="string"&&(this.minDate=t(o.minDate,this.locale.format)),typeof o.maxDate=="string"&&(this.maxDate=t(o.maxDate,this.locale.format)),typeof o.startDate=="object"&&(this.startDate=t(o.startDate)),typeof o.endDate=="object"&&(this.endDate=t(o.endDate)),typeof o.minDate=="object"&&(this.minDate=t(o.minDate)),typeof o.maxDate=="object"&&(this.maxDate=t(o.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof o.applyButtonClasses=="string"&&(this.applyButtonClasses=o.applyButtonClasses),typeof o.applyClass=="string"&&(this.applyButtonClasses=o.applyClass),typeof o.cancelButtonClasses=="string"&&(this.cancelButtonClasses=o.cancelButtonClasses),typeof o.cancelClass=="string"&&(this.cancelButtonClasses=o.cancelClass),typeof o.maxSpan=="object"&&(this.maxSpan=o.maxSpan),typeof o.dateLimit=="object"&&(this.maxSpan=o.dateLimit),typeof o.opens=="string"&&(this.opens=o.opens),typeof o.drops=="string"&&(this.drops=o.drops),typeof o.showWeekNumbers=="boolean"&&(this.showWeekNumbers=o.showWeekNumbers),typeof o.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=o.showISOWeekNumbers),typeof o.buttonClasses=="string"&&(this.buttonClasses=o.buttonClasses),typeof o.buttonClasses=="object"&&(this.buttonClasses=o.buttonClasses.join(" ")),typeof o.showDropdowns=="boolean"&&(this.showDropdowns=o.showDropdowns),typeof o.minYear=="number"&&(this.minYear=o.minYear),typeof o.maxYear=="number"&&(this.maxYear=o.maxYear),typeof o.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=o.showCustomRangeLabel),typeof o.singleDatePicker=="boolean"&&(this.singleDatePicker=o.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof o.timePicker=="boolean"&&(this.timePicker=o.timePicker),typeof o.timePickerSeconds=="boolean"&&(this.timePickerSeconds=o.timePickerSeconds),typeof o.timePickerIncrement=="number"&&(this.timePickerIncrement=o.timePickerIncrement),typeof o.timePicker24Hour=="boolean"&&(this.timePicker24Hour=o.timePicker24Hour),typeof o.autoApply=="boolean"&&(this.autoApply=o.autoApply),typeof o.autoUpdateInput=="boolean"&&(this.autoUpdateInput=o.autoUpdateInput),typeof o.linkedCalendars=="boolean"&&(this.linkedCalendars=o.linkedCalendars),typeof o.isInvalidDate=="function"&&(this.isInvalidDate=o.isInvalidDate),typeof o.isCustomDate=="function"&&(this.isCustomDate=o.isCustomDate),typeof o.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=o.alwaysShowCalendars),this.locale.firstDay!=0)for(var d=this.locale.firstDay;d>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),d--;var v,p,x;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var T=n(this.element).val(),P=T.split(this.locale.separator);v=p=null,P.length==2?(v=t(P[0],this.locale.format),p=t(P[1],this.locale.format)):this.singleDatePicker&&T!==""&&(v=t(T,this.locale.format),p=t(T,this.locale.format)),v!==null&&p!==null&&(this.setStartDate(v),this.setEndDate(p))}if(typeof o.ranges=="object"){for(x in o.ranges){typeof o.ranges[x][0]=="string"?v=t(o.ranges[x][0],this.locale.format):v=t(o.ranges[x][0]),typeof o.ranges[x][1]=="string"?p=t(o.ranges[x][1],this.locale.format):p=t(o.ranges[x][1]),this.minDate&&v.isBefore(this.minDate)&&(v=this.minDate.clone());var R=this.maxDate;if(this.maxSpan&&R&&v.clone().add(this.maxSpan).isAfter(R)&&(R=v.clone().add(this.maxSpan)),R&&p.isAfter(R)&&(p=R.clone()),!(this.minDate&&p.isBefore(this.minDate,this.timepicker?"minute":"day")||R&&v.isAfter(R,this.timepicker?"minute":"day"))){var l=document.createElement("textarea");l.innerHTML=x;var c=l.value;this.ranges[c]=[v,p]}}var L="<ul>";for(x in this.ranges)L+='<li data-range-key="'+x+'">'+x+"</li>";this.showCustomRangeLabel&&(L+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),L+="</ul>",this.container.find(".ranges").prepend(L)}typeof s=="function"&&(this.callback=s),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof o.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof o.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return r.prototype={constructor:r,setStartDate:function(i){typeof i=="string"&&(this.startDate=t(i,this.locale.format)),typeof i=="object"&&(this.startDate=t(i)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(i){typeof i=="string"&&(this.endDate=t(i,this.locale.format)),typeof i=="object"&&(this.endDate=t(i)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var i,o,s;if(this.endDate){if(i=parseInt(this.container.find(".left .hourselect").val(),10),o=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),s=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var l=this.container.find(".left .ampmselect").val();l==="PM"&&i<12&&(i+=12),l==="AM"&&i===12&&(i=0)}}else if(i=parseInt(this.container.find(".right .hourselect").val(),10),o=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),s=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var l=this.container.find(".right .ampmselect").val();l==="PM"&&i<12&&(i+=12),l==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(o).second(s),this.rightCalendar.month.hour(i).minute(o).second(s)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var I=i=="left"?this.leftCalendar:this.rightCalendar,o=I.month.month(),s=I.month.year(),l=I.month.hour(),c=I.month.minute(),d=I.month.second(),v=t([s,o]).daysInMonth(),p=t([s,o,1]),x=t([s,o,v]),T=t(p).subtract(1,"month").month(),P=t(p).subtract(1,"month").year(),R=t([P,T]).daysInMonth(),L=p.day(),I=[];I.firstDay=p,I.lastDay=x;for(var U=0;U<6;U++)I[U]=[];var W=R-L+this.locale.firstDay+1;W>R&&(W-=7),L==this.locale.firstDay&&(W=R-6);for(var te=t([P,T,W,12,c,d]),J,ge,U=0,J=0,ge=0;U<42;U++,J++,te=t(te).add(24,"hour"))U>0&&J%7===0&&(J=0,ge++),I[ge][J]=te.clone().hour(l).minute(c).second(d),te.hour(12),this.minDate&&I[ge][J].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&I[ge][J].isBefore(this.minDate)&&i=="left"&&(I[ge][J]=this.minDate.clone()),this.maxDate&&I[ge][J].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&I[ge][J].isAfter(this.maxDate)&&i=="right"&&(I[ge][J]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=I:this.rightCalendar.calendar=I;var S=i=="left"?this.minDate:this.startDate,ce=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ae='<table class="table-condensed">';ae+="<thead>",ae+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ae+="<th></th>"),(!S||S.isBefore(I.firstDay))&&(!this.linkedCalendars||i=="left")?ae+='<th class="prev available"><span></span></th>':ae+="<th></th>";var Ne=this.locale.monthNames[I[1][1].month()]+I[1][1].format(" YYYY");if(this.showDropdowns){for(var Je=I[1][1].month(),Ye=I[1][1].year(),Qe=ce&&ce.year()||this.maxYear,tt=S&&S.year()||this.minYear,he=Ye==tt,Ce=Ye==Qe,He='<select class="monthselect">',et=0;et<12;et++)(!he||S&&et>=S.month())&&(!Ce||ce&&et<=ce.month())?He+="<option value='"+et+"'"+(et===Je?" selected='selected'":"")+">"+this.locale.monthNames[et]+"</option>":He+="<option value='"+et+"'"+(et===Je?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[et]+"</option>";He+="</select>";for(var at='<select class="yearselect">',Ee=tt;Ee<=Qe;Ee++)at+='<option value="'+Ee+'"'+(Ee===Ye?' selected="selected"':"")+">"+Ee+"</option>";at+="</select>",Ne=He+at}if(ae+='<th colspan="5" class="month">'+Ne+"</th>",(!ce||ce.isAfter(I.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?ae+='<th class="next available"><span></span></th>':ae+="<th></th>",ae+="</tr>",ae+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ae+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Ge,lt){ae+="<th>"+lt+"</th>"}),ae+="</tr>",ae+="</thead>",ae+="<tbody>",this.endDate==null&&this.maxSpan){var Pe=this.startDate.clone().add(this.maxSpan).endOf("day");(!ce||Pe.isBefore(ce))&&(ce=Pe)}for(var ge=0;ge<6;ge++){ae+="<tr>",this.showWeekNumbers?ae+='<td class="week">'+I[ge][0].week()+"</td>":this.showISOWeekNumbers&&(ae+='<td class="week">'+I[ge][0].isoWeek()+"</td>");for(var J=0;J<7;J++){var Ve=[];I[ge][J].isSame(new Date,"day")&&Ve.push("today"),I[ge][J].isoWeekday()>5&&Ve.push("weekend"),I[ge][J].month()!=I[1][1].month()&&Ve.push("off","ends"),this.minDate&&I[ge][J].isBefore(this.minDate,"day")&&Ve.push("off","disabled"),ce&&I[ge][J].isAfter(ce,"day")&&Ve.push("off","disabled"),this.isInvalidDate(I[ge][J])&&Ve.push("off","disabled"),I[ge][J].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Ve.push("active","start-date"),this.endDate!=null&&I[ge][J].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Ve.push("active","end-date"),this.endDate!=null&&I[ge][J]>this.startDate&&I[ge][J]<this.endDate&&Ve.push("in-range");var Ue=this.isCustomDate(I[ge][J]);Ue!==!1&&(typeof Ue=="string"?Ve.push(Ue):Array.prototype.push.apply(Ve,Ue));for(var Re="",Fe=!1,U=0;U<Ve.length;U++)Re+=Ve[U]+" ",Ve[U]=="disabled"&&(Fe=!0);Fe||(Re+="available"),ae+='<td class="'+Re.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ge+"c"+J+'">'+I[ge][J].date()+"</td>"}ae+="</tr>"}ae+="</tbody>",ae+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(ae)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,s,l,c=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(c=this.startDate.clone().add(this.maxSpan)),i=="left")s=this.startDate.clone(),l=this.minDate;else if(i=="right"){s=this.endDate.clone(),l=this.startDate;var d=this.container.find(".drp-calendar.right .calendar-time");if(d.html()!=""&&(s.hour(isNaN(s.hour())?d.find(".hourselect option:selected").val():s.hour()),s.minute(isNaN(s.minute())?d.find(".minuteselect option:selected").val():s.minute()),s.second(isNaN(s.second())?d.find(".secondselect option:selected").val():s.second()),!this.timePicker24Hour)){var v=d.find(".ampmselect option:selected").val();v==="PM"&&s.hour()<12&&s.hour(s.hour()+12),v==="AM"&&s.hour()===12&&s.hour(0)}s.isBefore(this.startDate)&&(s=this.startDate.clone()),c&&s.isAfter(c)&&(s=c.clone())}o='<select class="hourselect">';for(var p=this.timePicker24Hour?0:1,x=this.timePicker24Hour?23:12,T=p;T<=x;T++){var P=T;this.timePicker24Hour||(P=s.hour()>=12?T==12?12:T+12:T==12?0:T);var R=s.clone().hour(P),L=!1;l&&R.minute(59).isBefore(l)&&(L=!0),c&&R.minute(0).isAfter(c)&&(L=!0),P==s.hour()&&!L?o+='<option value="'+T+'" selected="selected">'+T+"</option>":L?o+='<option value="'+T+'" disabled="disabled" class="disabled">'+T+"</option>":o+='<option value="'+T+'">'+T+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var T=0;T<60;T+=this.timePickerIncrement){var I=T<10?"0"+T:T,R=s.clone().minute(T),L=!1;l&&R.second(59).isBefore(l)&&(L=!0),c&&R.second(0).isAfter(c)&&(L=!0),s.minute()==T&&!L?o+='<option value="'+T+'" selected="selected">'+I+"</option>":L?o+='<option value="'+T+'" disabled="disabled" class="disabled">'+I+"</option>":o+='<option value="'+T+'">'+I+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var T=0;T<60;T++){var I=T<10?"0"+T:T,R=s.clone().second(T),L=!1;l&&R.isBefore(l)&&(L=!0),c&&R.isAfter(c)&&(L=!0),s.second()==T&&!L?o+='<option value="'+T+'" selected="selected">'+I+"</option>":L?o+='<option value="'+T+'" disabled="disabled" class="disabled">'+I+"</option>":o+='<option value="'+T+'">'+I+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var U="",W="";l&&s.clone().hour(12).minute(0).second(0).isBefore(l)&&(U=' disabled="disabled" class="disabled"'),c&&s.clone().hour(0).minute(0).second(0).isAfter(c)&&(W=' disabled="disabled" class="disabled"'),s.hour()>=12?o+='<option value="AM"'+U+'>AM</option><option value="PM" selected="selected"'+W+">PM</option>":o+='<option value="AM" selected="selected"'+U+'>AM</option><option value="PM"'+W+">PM</option>",o+="</select>"}this.container.find(".drp-calendar."+i+" .calendar-time").html(o)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var i={top:0,left:0},o,s=this.drops,l=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()},l=this.parentEl[0].clientWidth+this.parentEl.offset().left),s){case"auto":o=this.element.offset().top+this.element.outerHeight()-i.top,o+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(o=this.element.offset().top-this.container.outerHeight()-i.top,s="up");break;case"up":o=this.element.offset().top-this.container.outerHeight()-i.top;break;default:o=this.element.offset().top+this.element.outerHeight()-i.top;break}this.container.css({top:0,left:0,right:"auto"});var c=this.container.outerWidth();if(this.container.toggleClass("drop-up",s=="up"),this.opens=="left"){var d=l-this.element.offset().left-this.element.outerWidth();c+d>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:d,left:"auto"})}else if(this.opens=="center"){var v=this.element.offset().left-i.left+this.element.outerWidth()/2-c/2;v<0?this.container.css({top:o,right:"auto",left:9}):v+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:v,right:"auto"})}else{var v=this.element.offset().left-i.left;v+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:v,right:"auto"})}},show:function(i){this.isShowing||(this._outsideClickProxy=n.proxy(function(o){this.outsideClick(o)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(o){this.move(o)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(i){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(i){this.isShowing?this.hide():this.show()},outsideClick:function(i){var o=n(i.target);i.type=="focusin"||o.closest(this.element).length||o.closest(this.container).length||o.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(i){var o=i.target.getAttribute("data-range-key");if(this.chosenLabel=o,o==this.locale.customRangeLabel)this.showCalendars();else{var s=this.ranges[o];this.startDate=s[0],this.endDate=s[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),s=o.substr(1,1),l=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[s][l]:this.rightCalendar.calendar[s][l],v=this.leftCalendar,p=this.rightCalendar,x=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(T,P){if(!n(P).hasClass("week")){var R=n(P).attr("data-title"),L=R.substr(1,1),I=R.substr(3,1),U=n(P).parents(".drp-calendar"),W=U.hasClass("left")?v.calendar[L][I]:p.calendar[L][I];W.isAfter(x)&&W.isBefore(d)||W.isSame(d,"day")?n(P).addClass("in-range"):n(P).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),s=o.substr(1,1),l=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[s][l]:this.rightCalendar.calendar[s][l];if(this.endDate||d.isBefore(this.startDate,"day")){if(this.timePicker){var v=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var p=this.container.find(".left .ampmselect").val();p==="PM"&&v<12&&(v+=12),p==="AM"&&v===12&&(v=0)}var x=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(x)&&(x=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var T=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;d=d.clone().hour(v).minute(x).second(T)}this.endDate=null,this.setStartDate(d.clone())}else if(!this.endDate&&d.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var v=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var p=this.container.find(".right .ampmselect").val();p==="PM"&&v<12&&(v+=12),p==="AM"&&v===12&&(v=0)}var x=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(x)&&(x=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var T=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;d=d.clone().hour(v).minute(x).second(T)}this.setEndDate(d.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),i.stopPropagation()}},calculateChosenLabel:function(){var i=!0,o=0;for(var s in this.ranges){if(this.timePicker){var l=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(l)==this.ranges[s][0].format(l)&&this.endDate.format(l)==this.ranges[s][1].format(l)){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[s][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[s][1].format("YYYY-MM-DD")){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}o++}i&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(i){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(i){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(i){var o=n(i.target).closest(".drp-calendar").hasClass("left"),s=o?"left":"right",l=this.container.find(".drp-calendar."+s),c=parseInt(l.find(".monthselect").val(),10),d=l.find(".yearselect").val();o||(d<this.startDate.year()||d==this.startDate.year()&&c<this.startDate.month())&&(c=this.startDate.month(),d=this.startDate.year()),this.minDate&&(d<this.minDate.year()||d==this.minDate.year()&&c<this.minDate.month())&&(c=this.minDate.month(),d=this.minDate.year()),this.maxDate&&(d>this.maxDate.year()||d==this.maxDate.year()&&c>this.maxDate.month())&&(c=this.maxDate.month(),d=this.maxDate.year()),o?(this.leftCalendar.month.month(c).year(d),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(c).year(d),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(i){var o=n(i.target).closest(".drp-calendar"),s=o.hasClass("left"),l=parseInt(o.find(".hourselect").val(),10),c=parseInt(o.find(".minuteselect").val(),10);isNaN(c)&&(c=parseInt(o.find(".minuteselect option:last").val(),10));var d=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var v=o.find(".ampmselect").val();v==="PM"&&l<12&&(l+=12),v==="AM"&&l===12&&(l=0)}if(s){var p=this.startDate.clone();p.hour(l),p.minute(c),p.second(d),this.setStartDate(p),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==p.format("YYYY-MM-DD")&&this.endDate.isBefore(p)&&this.setEndDate(p.clone())}else if(this.endDate){var x=this.endDate.clone();x.hour(l),x.minute(c),x.second(d),this.setEndDate(x)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var i=this.element.val().split(this.locale.separator),o=null,s=null;i.length===2&&(o=t(i[0],this.locale.format),s=t(i[1],this.locale.format)),(this.singleDatePicker||o===null||s===null)&&(o=t(this.element.val(),this.locale.format),s=o),!(!o.isValid()||!s.isValid())&&(this.setStartDate(o),this.setEndDate(s),this.updateView())}},keydown:function(i){(i.keyCode===9||i.keyCode===13)&&this.hide(),i.keyCode===27&&(i.preventDefault(),i.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var i=this.startDate.format(this.locale.format);this.singleDatePicker||(i+=this.locale.separator+this.endDate.format(this.locale.format)),i!==this.element.val()&&this.element.val(i).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(i,o){var s=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var l=n(this);l.data("daterangepicker")&&l.data("daterangepicker").remove(),l.data("daterangepicker",new r(l,s,o))}),this},r})})(A4);var $m=function(e,t){return $m=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])},$m(e,t)};function M4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$m(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var L4=function(e){M4(t,e);function t(n){var r=e.call(this,n)||this;return r.ref=null,r.$picker=null,r}return t.prototype.componentDidMount=function(){var n=this;this.$picker=I4(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(r){var i,o=r.charAt(0).toLowerCase()+r.slice(1);(i=n.$picker)===null||i===void 0||i.on(o+".daterangepicker",n.makeEventHandler("on"+r))})},t.prototype.componentWillUnmount=function(){var n,r;(r=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||r===void 0||r.remove()},t.prototype.handleCallback=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,r)},t.prototype.makeEventHandler=function(n){var r=this,i=this.props.onEvent;return function(o,s){typeof i=="function"&&i(o,s),typeof r.props[n]=="function"&&r.props[n](o,s)}},t.prototype.setStartDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setStartDate(n)},t.prototype.setEndDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setEndDate(n)},t.prototype.render=function(){var n=this,r=Sn.Children.only(this.props.children);return Sn.cloneElement(r,{ref:function(i){return n.ref=i}})},t}(Sn.Component);Il.styled(e=>ze.jsx(Il.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:ui.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
|
|
188
|
+
* @license
|
|
189
|
+
* Copyright 2017 Google LLC
|
|
190
|
+
*
|
|
191
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
* you may not use this file except in compliance with the License.
|
|
193
|
+
* You may obtain a copy of the License at
|
|
194
|
+
*
|
|
195
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
*
|
|
197
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
* See the License for the specific language governing permissions and
|
|
201
|
+
* limitations under the License.
|
|
202
|
+
*//**
|
|
203
|
+
* @license
|
|
204
|
+
* Copyright 2017 Google LLC
|
|
205
|
+
*
|
|
206
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
207
|
+
* you may not use this file except in compliance with the License.
|
|
208
|
+
* You may obtain a copy of the License at
|
|
209
|
+
*
|
|
210
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
211
|
+
*
|
|
212
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
213
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
214
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
215
|
+
* See the License for the specific language governing permissions and
|
|
216
|
+
* limitations under the License.
|
|
217
|
+
*/const S_=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},F4=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],l=e[n++],c=((i&7)<<18|(o&63)<<12|(s&63)<<6|l&63)-65536;t[r++]=String.fromCharCode(55296+(c>>10)),t[r++]=String.fromCharCode(56320+(c&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},T_={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,l=s?e[i+1]:0,c=i+2<e.length,d=c?e[i+2]:0,v=o>>2,p=(o&3)<<4|l>>4;let x=(l&15)<<2|d>>6,T=d&63;c||(T=64,s||(x=64)),r.push(n[v],n[p],n[x],n[T])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(S_(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):F4(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],l=i<e.length?n[e.charAt(i)]:0;++i;const d=i<e.length?n[e.charAt(i)]:64;++i;const p=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||l==null||d==null||p==null)throw new N4;const x=o<<2|l>>4;if(r.push(x),d!==64){const T=l<<4&240|d>>2;if(r.push(T),p!==64){const P=d<<6&192|p;r.push(P)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class N4 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const j4=function(e){const t=S_(e);return T_.encodeByteArray(t,!0)},C_=function(e){return j4(e).replace(/\./g,"")},B4=function(e){try{return T_.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
|
|
218
|
+
* @license
|
|
219
|
+
* Copyright 2022 Google LLC
|
|
220
|
+
*
|
|
221
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
222
|
+
* you may not use this file except in compliance with the License.
|
|
223
|
+
* You may obtain a copy of the License at
|
|
224
|
+
*
|
|
225
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
226
|
+
*
|
|
227
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
228
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
229
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
230
|
+
* See the License for the specific language governing permissions and
|
|
231
|
+
* limitations under the License.
|
|
232
|
+
*/function $4(){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.")}/**
|
|
233
|
+
* @license
|
|
234
|
+
* Copyright 2022 Google LLC
|
|
235
|
+
*
|
|
236
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
237
|
+
* you may not use this file except in compliance with the License.
|
|
238
|
+
* You may obtain a copy of the License at
|
|
239
|
+
*
|
|
240
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
241
|
+
*
|
|
242
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
243
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
244
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
245
|
+
* See the License for the specific language governing permissions and
|
|
246
|
+
* limitations under the License.
|
|
247
|
+
*/const V4=()=>$4().__FIREBASE_DEFAULTS__,H4=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},U4=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&B4(e[1]);return t&&JSON.parse(t)},W4=()=>{try{return V4()||H4()||U4()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},E_=()=>{var e;return(e=W4())===null||e===void 0?void 0:e.config};/**
|
|
248
|
+
* @license
|
|
249
|
+
* Copyright 2017 Google LLC
|
|
250
|
+
*
|
|
251
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
252
|
+
* you may not use this file except in compliance with the License.
|
|
253
|
+
* You may obtain a copy of the License at
|
|
254
|
+
*
|
|
255
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
256
|
+
*
|
|
257
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
258
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
259
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
260
|
+
* See the License for the specific language governing permissions and
|
|
261
|
+
* limitations under the License.
|
|
262
|
+
*/class z4{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function k_(){try{return typeof indexedDB=="object"}catch{return!1}}function __(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}function Y4(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
263
|
+
* @license
|
|
264
|
+
* Copyright 2017 Google LLC
|
|
265
|
+
*
|
|
266
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
267
|
+
* you may not use this file except in compliance with the License.
|
|
268
|
+
* You may obtain a copy of the License at
|
|
269
|
+
*
|
|
270
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
271
|
+
*
|
|
272
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
273
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
274
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
275
|
+
* See the License for the specific language governing permissions and
|
|
276
|
+
* limitations under the License.
|
|
277
|
+
*/const G4="FirebaseError";class Bf extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=G4,Object.setPrototypeOf(this,Bf.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ig.prototype.create)}}class ig{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?q4(o,r):"Error",l=`${this.serviceName}: ${s} (${i}).`;return new Bf(i,l,r)}}function q4(e,t){return e.replace(X4,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const X4=/\{\$([^}]+)}/g;function Vm(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(d1(o)&&d1(s)){if(!Vm(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function d1(e){return e!==null&&typeof e=="object"}/**
|
|
278
|
+
* @license
|
|
279
|
+
* Copyright 2021 Google LLC
|
|
280
|
+
*
|
|
281
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
282
|
+
* you may not use this file except in compliance with the License.
|
|
283
|
+
* You may obtain a copy of the License at
|
|
284
|
+
*
|
|
285
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
286
|
+
*
|
|
287
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
288
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
289
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
290
|
+
* See the License for the specific language governing permissions and
|
|
291
|
+
* limitations under the License.
|
|
292
|
+
*/function nb(e){return e&&e._delegate?e._delegate:e}class Iu{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
|
|
293
|
+
* @license
|
|
294
|
+
* Copyright 2019 Google LLC
|
|
295
|
+
*
|
|
296
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
297
|
+
* you may not use this file except in compliance with the License.
|
|
298
|
+
* You may obtain a copy of the License at
|
|
299
|
+
*
|
|
300
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
301
|
+
*
|
|
302
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
303
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
304
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
305
|
+
* See the License for the specific language governing permissions and
|
|
306
|
+
* limitations under the License.
|
|
307
|
+
*/const Cc="[DEFAULT]";/**
|
|
308
|
+
* @license
|
|
309
|
+
* Copyright 2019 Google LLC
|
|
310
|
+
*
|
|
311
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
312
|
+
* you may not use this file except in compliance with the License.
|
|
313
|
+
* You may obtain a copy of the License at
|
|
314
|
+
*
|
|
315
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
316
|
+
*
|
|
317
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
318
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
319
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
320
|
+
* See the License for the specific language governing permissions and
|
|
321
|
+
* limitations under the License.
|
|
322
|
+
*/class K4{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new z4;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(J4(t))try{this.getOrInitializeService({instanceIdentifier:Cc})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(t=Cc){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Cc){return this.instances.has(t)}getOptions(t=Cc){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(o);r===l&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Z4(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Cc){return this.component?this.component.multipleInstances?t:Cc:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function Z4(e){return e===Cc?void 0:e}function J4(e){return e.instantiationMode==="EAGER"}/**
|
|
323
|
+
* @license
|
|
324
|
+
* Copyright 2019 Google LLC
|
|
325
|
+
*
|
|
326
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
327
|
+
* you may not use this file except in compliance with the License.
|
|
328
|
+
* You may obtain a copy of the License at
|
|
329
|
+
*
|
|
330
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
331
|
+
*
|
|
332
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
333
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
334
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
335
|
+
* See the License for the specific language governing permissions and
|
|
336
|
+
* limitations under the License.
|
|
337
|
+
*/class Q4{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new K4(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
338
|
+
* @license
|
|
339
|
+
* Copyright 2017 Google LLC
|
|
340
|
+
*
|
|
341
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
342
|
+
* you may not use this file except in compliance with the License.
|
|
343
|
+
* You may obtain a copy of the License at
|
|
344
|
+
*
|
|
345
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
346
|
+
*
|
|
347
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
348
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
349
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
350
|
+
* See the License for the specific language governing permissions and
|
|
351
|
+
* limitations under the License.
|
|
352
|
+
*/var Vn;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Vn||(Vn={}));const e6={debug:Vn.DEBUG,verbose:Vn.VERBOSE,info:Vn.INFO,warn:Vn.WARN,error:Vn.ERROR,silent:Vn.SILENT},t6=Vn.INFO,n6={[Vn.DEBUG]:"log",[Vn.VERBOSE]:"log",[Vn.INFO]:"info",[Vn.WARN]:"warn",[Vn.ERROR]:"error"},r6=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=n6[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class i6{constructor(t){this.name=t,this._logLevel=t6,this._logHandler=r6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Vn))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?e6[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Vn.DEBUG,...t),this._logHandler(this,Vn.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Vn.VERBOSE,...t),this._logHandler(this,Vn.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Vn.INFO,...t),this._logHandler(this,Vn.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Vn.WARN,...t),this._logHandler(this,Vn.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Vn.ERROR,...t),this._logHandler(this,Vn.ERROR,...t)}}const o6=(e,t)=>t.some(n=>e instanceof n);let h1,p1;function a6(){return h1||(h1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function s6(){return p1||(p1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const O_=new WeakMap,Hm=new WeakMap,D_=new WeakMap,Rv=new WeakMap,rb=new WeakMap;function l6(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(Rl(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&O_.set(n,e)}).catch(()=>{}),rb.set(t,e),t}function u6(e){if(Hm.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Hm.set(e,t)}let Um={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Hm.get(e);if(t==="objectStoreNames")return e.objectStoreNames||D_.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Rl(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function c6(e){Um=e(Um)}function f6(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Iv(this),t,...n);return D_.set(r,t.sort?t.sort():[t]),Rl(r)}:s6().includes(e)?function(...t){return e.apply(Iv(this),t),Rl(O_.get(this))}:function(...t){return Rl(e.apply(Iv(this),t))}}function d6(e){return typeof e=="function"?f6(e):(e instanceof IDBTransaction&&u6(e),o6(e,a6())?new Proxy(e,Um):e)}function Rl(e){if(e instanceof IDBRequest)return l6(e);if(Rv.has(e))return Rv.get(e);const t=d6(e);return t!==e&&(Rv.set(e,t),rb.set(t,e)),t}const Iv=e=>rb.get(e);function og(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),l=Rl(s);return r&&s.addEventListener("upgradeneeded",c=>{r(Rl(s.result),c.oldVersion,c.newVersion,Rl(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{o&&c.addEventListener("close",()=>o()),i&&c.addEventListener("versionchange",d=>i(d.oldVersion,d.newVersion,d))}).catch(()=>{}),l}function Av(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),Rl(n).then(()=>{})}const h6=["get","getKey","getAll","getAllKeys","count"],p6=["put","add","delete","clear"],Mv=new Map;function g1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Mv.get(t))return Mv.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=p6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||h6.includes(n)))return;const o=async function(s,...l){const c=this.transaction(s,i?"readwrite":"readonly");let d=c.store;return r&&(d=d.index(l.shift())),(await Promise.all([d[n](...l),i&&c.done]))[0]};return Mv.set(t,o),o}c6(e=>({...e,get:(t,n,r)=>g1(t,n)||e.get(t,n,r),has:(t,n)=>!!g1(t,n)||e.has(t,n)}));/**
|
|
353
|
+
* @license
|
|
354
|
+
* Copyright 2019 Google LLC
|
|
355
|
+
*
|
|
356
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
357
|
+
* you may not use this file except in compliance with the License.
|
|
358
|
+
* You may obtain a copy of the License at
|
|
359
|
+
*
|
|
360
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
361
|
+
*
|
|
362
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
363
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
364
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
365
|
+
* See the License for the specific language governing permissions and
|
|
366
|
+
* limitations under the License.
|
|
367
|
+
*/class g6{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(v6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function v6(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Wm="@firebase/app",v1="0.9.28";/**
|
|
368
|
+
* @license
|
|
369
|
+
* Copyright 2019 Google LLC
|
|
370
|
+
*
|
|
371
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
372
|
+
* you may not use this file except in compliance with the License.
|
|
373
|
+
* You may obtain a copy of the License at
|
|
374
|
+
*
|
|
375
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
376
|
+
*
|
|
377
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
378
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
379
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
380
|
+
* See the License for the specific language governing permissions and
|
|
381
|
+
* limitations under the License.
|
|
382
|
+
*/const Mc=new i6("@firebase/app"),m6="@firebase/app-compat",y6="@firebase/analytics-compat",b6="@firebase/analytics",w6="@firebase/app-check-compat",x6="@firebase/app-check",S6="@firebase/auth",T6="@firebase/auth-compat",C6="@firebase/database",E6="@firebase/database-compat",k6="@firebase/functions",_6="@firebase/functions-compat",O6="@firebase/installations",D6="@firebase/installations-compat",P6="@firebase/messaging",R6="@firebase/messaging-compat",I6="@firebase/performance",A6="@firebase/performance-compat",M6="@firebase/remote-config",L6="@firebase/remote-config-compat",F6="@firebase/storage",N6="@firebase/storage-compat",j6="@firebase/firestore",B6="@firebase/firestore-compat",$6="firebase";/**
|
|
383
|
+
* @license
|
|
384
|
+
* Copyright 2019 Google LLC
|
|
385
|
+
*
|
|
386
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
387
|
+
* you may not use this file except in compliance with the License.
|
|
388
|
+
* You may obtain a copy of the License at
|
|
389
|
+
*
|
|
390
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
391
|
+
*
|
|
392
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
393
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
394
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
395
|
+
* See the License for the specific language governing permissions and
|
|
396
|
+
* limitations under the License.
|
|
397
|
+
*/const zm="[DEFAULT]",V6={[Wm]:"fire-core",[m6]:"fire-core-compat",[b6]:"fire-analytics",[y6]:"fire-analytics-compat",[x6]:"fire-app-check",[w6]:"fire-app-check-compat",[S6]:"fire-auth",[T6]:"fire-auth-compat",[C6]:"fire-rtdb",[E6]:"fire-rtdb-compat",[k6]:"fire-fn",[_6]:"fire-fn-compat",[O6]:"fire-iid",[D6]:"fire-iid-compat",[P6]:"fire-fcm",[R6]:"fire-fcm-compat",[I6]:"fire-perf",[A6]:"fire-perf-compat",[M6]:"fire-rc",[L6]:"fire-rc-compat",[F6]:"fire-gcs",[N6]:"fire-gcs-compat",[j6]:"fire-fst",[B6]:"fire-fst-compat","fire-js":"fire-js",[$6]:"fire-js-all"};/**
|
|
398
|
+
* @license
|
|
399
|
+
* Copyright 2019 Google LLC
|
|
400
|
+
*
|
|
401
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
402
|
+
* you may not use this file except in compliance with the License.
|
|
403
|
+
* You may obtain a copy of the License at
|
|
404
|
+
*
|
|
405
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
406
|
+
*
|
|
407
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
408
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
409
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
410
|
+
* See the License for the specific language governing permissions and
|
|
411
|
+
* limitations under the License.
|
|
412
|
+
*/const _p=new Map,Ym=new Map;function H6(e,t){try{e.container.addComponent(t)}catch(n){Mc.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Lc(e){const t=e.name;if(Ym.has(t))return Mc.debug(`There were multiple attempts to register component ${t}.`),!1;Ym.set(t,e);for(const n of _p.values())H6(n,e);return!0}function ib(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
|
|
413
|
+
* @license
|
|
414
|
+
* Copyright 2019 Google LLC
|
|
415
|
+
*
|
|
416
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
417
|
+
* you may not use this file except in compliance with the License.
|
|
418
|
+
* You may obtain a copy of the License at
|
|
419
|
+
*
|
|
420
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
421
|
+
*
|
|
422
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
423
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
424
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
425
|
+
* See the License for the specific language governing permissions and
|
|
426
|
+
* limitations under the License.
|
|
427
|
+
*/const U6={"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","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}."},ku=new ig("app","Firebase",U6);/**
|
|
428
|
+
* @license
|
|
429
|
+
* Copyright 2019 Google LLC
|
|
430
|
+
*
|
|
431
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
432
|
+
* you may not use this file except in compliance with the License.
|
|
433
|
+
* You may obtain a copy of the License at
|
|
434
|
+
*
|
|
435
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
436
|
+
*
|
|
437
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
438
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
439
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
440
|
+
* See the License for the specific language governing permissions and
|
|
441
|
+
* limitations under the License.
|
|
442
|
+
*/class W6{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Iu("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw ku.create("app-deleted",{appName:this._name})}}function P_(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:zm,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw ku.create("bad-app-name",{appName:String(i)});if(n||(n=E_()),!n)throw ku.create("no-options");const o=_p.get(i);if(o){if(Vm(n,o.options)&&Vm(r,o.config))return o;throw ku.create("duplicate-app",{appName:i})}const s=new Q4(i);for(const c of Ym.values())s.addComponent(c);const l=new W6(n,r,s);return _p.set(i,l),l}function z6(e=zm){const t=_p.get(e);if(!t&&e===zm&&E_())return P_();if(!t)throw ku.create("no-app",{appName:e});return t}function _u(e,t,n){var r;let i=(r=V6[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const l=[`Unable to register library "${i}" with version "${t}":`];o&&l.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&l.push("and"),s&&l.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Mc.warn(l.join(" "));return}Lc(new Iu(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/**
|
|
443
|
+
* @license
|
|
444
|
+
* Copyright 2021 Google LLC
|
|
445
|
+
*
|
|
446
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
447
|
+
* you may not use this file except in compliance with the License.
|
|
448
|
+
* You may obtain a copy of the License at
|
|
449
|
+
*
|
|
450
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
451
|
+
*
|
|
452
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
453
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
454
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
455
|
+
* See the License for the specific language governing permissions and
|
|
456
|
+
* limitations under the License.
|
|
457
|
+
*/const Y6="firebase-heartbeat-database",G6=1,Bd="firebase-heartbeat-store";let Lv=null;function R_(){return Lv||(Lv=og(Y6,G6,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Bd)}catch(n){console.warn(n)}}}}).catch(e=>{throw ku.create("idb-open",{originalErrorMessage:e.message})})),Lv}async function q6(e){try{const n=(await R_()).transaction(Bd),r=await n.objectStore(Bd).get(I_(e));return await n.done,r}catch(t){if(t instanceof Bf)Mc.warn(t.message);else{const n=ku.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Mc.warn(n.message)}}}async function m1(e,t){try{const r=(await R_()).transaction(Bd,"readwrite");await r.objectStore(Bd).put(t,I_(e)),await r.done}catch(n){if(n instanceof Bf)Mc.warn(n.message);else{const r=ku.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Mc.warn(r.message)}}}function I_(e){return`${e.name}!${e.options.appId}`}/**
|
|
458
|
+
* @license
|
|
459
|
+
* Copyright 2021 Google LLC
|
|
460
|
+
*
|
|
461
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
462
|
+
* you may not use this file except in compliance with the License.
|
|
463
|
+
* You may obtain a copy of the License at
|
|
464
|
+
*
|
|
465
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
466
|
+
*
|
|
467
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
468
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
469
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
470
|
+
* See the License for the specific language governing permissions and
|
|
471
|
+
* limitations under the License.
|
|
472
|
+
*/const X6=1024,K6=30*24*60*60*1e3;class Z6{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new Q6(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=y1();if(!(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o)))return this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const l=new Date(s.date).valueOf();return Date.now()-l<=K6}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var t;if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=y1(),{heartbeatsToSend:r,unsentEntries:i}=J6(this._heartbeatsCache.heartbeats),o=C_(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}}function y1(){return new Date().toISOString().substring(0,10)}function J6(e,t=X6){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),b1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),b1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class Q6{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return k_()?__().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await q6(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return m1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return m1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function b1(e){return C_(JSON.stringify({version:2,heartbeats:e})).length}/**
|
|
473
|
+
* @license
|
|
474
|
+
* Copyright 2019 Google LLC
|
|
475
|
+
*
|
|
476
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
477
|
+
* you may not use this file except in compliance with the License.
|
|
478
|
+
* You may obtain a copy of the License at
|
|
479
|
+
*
|
|
480
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
481
|
+
*
|
|
482
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
483
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
484
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
485
|
+
* See the License for the specific language governing permissions and
|
|
486
|
+
* limitations under the License.
|
|
487
|
+
*/function e8(e){Lc(new Iu("platform-logger",t=>new g6(t),"PRIVATE")),Lc(new Iu("heartbeat",t=>new Z6(t),"PRIVATE")),_u(Wm,v1,e),_u(Wm,v1,"esm2017"),_u("fire-js","")}e8("");var t8="firebase",n8="10.8.1";/**
|
|
488
|
+
* @license
|
|
489
|
+
* Copyright 2020 Google LLC
|
|
490
|
+
*
|
|
491
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
492
|
+
* you may not use this file except in compliance with the License.
|
|
493
|
+
* You may obtain a copy of the License at
|
|
494
|
+
*
|
|
495
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
496
|
+
*
|
|
497
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
498
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
499
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
500
|
+
* See the License for the specific language governing permissions and
|
|
501
|
+
* limitations under the License.
|
|
502
|
+
*/_u(t8,n8,"app");const A_="@firebase/installations",ob="0.6.5";/**
|
|
503
|
+
* @license
|
|
504
|
+
* Copyright 2019 Google LLC
|
|
505
|
+
*
|
|
506
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
507
|
+
* you may not use this file except in compliance with the License.
|
|
508
|
+
* You may obtain a copy of the License at
|
|
509
|
+
*
|
|
510
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
511
|
+
*
|
|
512
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
513
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
514
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
515
|
+
* See the License for the specific language governing permissions and
|
|
516
|
+
* limitations under the License.
|
|
517
|
+
*/const M_=1e4,L_=`w:${ob}`,F_="FIS_v2",r8="https://firebaseinstallations.googleapis.com/v1",i8=60*60*1e3,o8="installations",a8="Installations";/**
|
|
518
|
+
* @license
|
|
519
|
+
* Copyright 2019 Google LLC
|
|
520
|
+
*
|
|
521
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
522
|
+
* you may not use this file except in compliance with the License.
|
|
523
|
+
* You may obtain a copy of the License at
|
|
524
|
+
*
|
|
525
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
526
|
+
*
|
|
527
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
528
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
529
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
530
|
+
* See the License for the specific language governing permissions and
|
|
531
|
+
* limitations under the License.
|
|
532
|
+
*/const s8={"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."},Fc=new ig(o8,a8,s8);function N_(e){return e instanceof Bf&&e.code.includes("request-failed")}/**
|
|
533
|
+
* @license
|
|
534
|
+
* Copyright 2019 Google LLC
|
|
535
|
+
*
|
|
536
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
537
|
+
* you may not use this file except in compliance with the License.
|
|
538
|
+
* You may obtain a copy of the License at
|
|
539
|
+
*
|
|
540
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
541
|
+
*
|
|
542
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
543
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
544
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
545
|
+
* See the License for the specific language governing permissions and
|
|
546
|
+
* limitations under the License.
|
|
547
|
+
*/function j_({projectId:e}){return`${r8}/projects/${e}/installations`}function B_(e){return{token:e.token,requestStatus:2,expiresIn:u8(e.expiresIn),creationTime:Date.now()}}async function $_(e,t){const r=(await t.json()).error;return Fc.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function V_({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function l8(e,{refreshToken:t}){const n=V_(e);return n.append("Authorization",c8(t)),n}async function H_(e){const t=await e();return t.status>=500&&t.status<600?e():t}function u8(e){return Number(e.replace("s","000"))}function c8(e){return`${F_} ${e}`}/**
|
|
548
|
+
* @license
|
|
549
|
+
* Copyright 2019 Google LLC
|
|
550
|
+
*
|
|
551
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
552
|
+
* you may not use this file except in compliance with the License.
|
|
553
|
+
* You may obtain a copy of the License at
|
|
554
|
+
*
|
|
555
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
556
|
+
*
|
|
557
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
558
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
559
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
560
|
+
* See the License for the specific language governing permissions and
|
|
561
|
+
* limitations under the License.
|
|
562
|
+
*/async function f8({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=j_(e),i=V_(e),o=t.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const s={fid:n,authVersion:F_,appId:e.appId,sdkVersion:L_},l={method:"POST",headers:i,body:JSON.stringify(s)},c=await H_(()=>fetch(r,l));if(c.ok){const d=await c.json();return{fid:d.fid||n,registrationStatus:2,refreshToken:d.refreshToken,authToken:B_(d.authToken)}}else throw await $_("Create Installation",c)}/**
|
|
563
|
+
* @license
|
|
564
|
+
* Copyright 2019 Google LLC
|
|
565
|
+
*
|
|
566
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
567
|
+
* you may not use this file except in compliance with the License.
|
|
568
|
+
* You may obtain a copy of the License at
|
|
569
|
+
*
|
|
570
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
571
|
+
*
|
|
572
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
573
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
574
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
575
|
+
* See the License for the specific language governing permissions and
|
|
576
|
+
* limitations under the License.
|
|
577
|
+
*/function U_(e){return new Promise(t=>{setTimeout(t,e)})}/**
|
|
578
|
+
* @license
|
|
579
|
+
* Copyright 2019 Google LLC
|
|
580
|
+
*
|
|
581
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
582
|
+
* you may not use this file except in compliance with the License.
|
|
583
|
+
* You may obtain a copy of the License at
|
|
584
|
+
*
|
|
585
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
586
|
+
*
|
|
587
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
588
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
589
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
590
|
+
* See the License for the specific language governing permissions and
|
|
591
|
+
* limitations under the License.
|
|
592
|
+
*/function d8(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
593
|
+
* @license
|
|
594
|
+
* Copyright 2019 Google LLC
|
|
595
|
+
*
|
|
596
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
597
|
+
* you may not use this file except in compliance with the License.
|
|
598
|
+
* You may obtain a copy of the License at
|
|
599
|
+
*
|
|
600
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
601
|
+
*
|
|
602
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
603
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
604
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
605
|
+
* See the License for the specific language governing permissions and
|
|
606
|
+
* limitations under the License.
|
|
607
|
+
*/const h8=/^[cdef][\w-]{21}$/,Gm="";function p8(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=g8(e);return h8.test(n)?n:Gm}catch{return Gm}}function g8(e){return d8(e).substr(0,22)}/**
|
|
608
|
+
* @license
|
|
609
|
+
* Copyright 2019 Google LLC
|
|
610
|
+
*
|
|
611
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
612
|
+
* you may not use this file except in compliance with the License.
|
|
613
|
+
* You may obtain a copy of the License at
|
|
614
|
+
*
|
|
615
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
616
|
+
*
|
|
617
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
618
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
619
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
620
|
+
* See the License for the specific language governing permissions and
|
|
621
|
+
* limitations under the License.
|
|
622
|
+
*/function ag(e){return`${e.appName}!${e.appId}`}/**
|
|
623
|
+
* @license
|
|
624
|
+
* Copyright 2019 Google LLC
|
|
625
|
+
*
|
|
626
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
627
|
+
* you may not use this file except in compliance with the License.
|
|
628
|
+
* You may obtain a copy of the License at
|
|
629
|
+
*
|
|
630
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
631
|
+
*
|
|
632
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
633
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
634
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
635
|
+
* See the License for the specific language governing permissions and
|
|
636
|
+
* limitations under the License.
|
|
637
|
+
*/const W_=new Map;function z_(e,t){const n=ag(e);Y_(n,t),v8(n,t)}function Y_(e,t){const n=W_.get(e);if(n)for(const r of n)r(t)}function v8(e,t){const n=m8();n&&n.postMessage({key:e,fid:t}),y8()}let _c=null;function m8(){return!_c&&"BroadcastChannel"in self&&(_c=new BroadcastChannel("[Firebase] FID Change"),_c.onmessage=e=>{Y_(e.data.key,e.data.fid)}),_c}function y8(){W_.size===0&&_c&&(_c.close(),_c=null)}/**
|
|
638
|
+
* @license
|
|
639
|
+
* Copyright 2019 Google LLC
|
|
640
|
+
*
|
|
641
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
642
|
+
* you may not use this file except in compliance with the License.
|
|
643
|
+
* You may obtain a copy of the License at
|
|
644
|
+
*
|
|
645
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
646
|
+
*
|
|
647
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
648
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
649
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
650
|
+
* See the License for the specific language governing permissions and
|
|
651
|
+
* limitations under the License.
|
|
652
|
+
*/const b8="firebase-installations-database",w8=1,Nc="firebase-installations-store";let Fv=null;function ab(){return Fv||(Fv=og(b8,w8,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Nc)}}})),Fv}async function Op(e,t){const n=ag(e),i=(await ab()).transaction(Nc,"readwrite"),o=i.objectStore(Nc),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&z_(e,t.fid),t}async function G_(e){const t=ag(e),r=(await ab()).transaction(Nc,"readwrite");await r.objectStore(Nc).delete(t),await r.done}async function sg(e,t){const n=ag(e),i=(await ab()).transaction(Nc,"readwrite"),o=i.objectStore(Nc),s=await o.get(n),l=t(s);return l===void 0?await o.delete(n):await o.put(l,n),await i.done,l&&(!s||s.fid!==l.fid)&&z_(e,l.fid),l}/**
|
|
653
|
+
* @license
|
|
654
|
+
* Copyright 2019 Google LLC
|
|
655
|
+
*
|
|
656
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
657
|
+
* you may not use this file except in compliance with the License.
|
|
658
|
+
* You may obtain a copy of the License at
|
|
659
|
+
*
|
|
660
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
661
|
+
*
|
|
662
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
663
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
664
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
665
|
+
* See the License for the specific language governing permissions and
|
|
666
|
+
* limitations under the License.
|
|
667
|
+
*/async function sb(e){let t;const n=await sg(e.appConfig,r=>{const i=x8(r),o=S8(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===Gm?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function x8(e){const t=e||{fid:p8(),registrationStatus:0};return q_(t)}function S8(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Fc.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=T8(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:C8(e)}:{installationEntry:t}}async function T8(e,t){try{const n=await f8(e,t);return Op(e.appConfig,n)}catch(n){throw N_(n)&&n.customData.serverCode===409?await G_(e.appConfig):await Op(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function C8(e){let t=await w1(e.appConfig);for(;t.registrationStatus===1;)await U_(100),t=await w1(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await sb(e);return r||n}return t}function w1(e){return sg(e,t=>{if(!t)throw Fc.create("installation-not-found");return q_(t)})}function q_(e){return E8(e)?{fid:e.fid,registrationStatus:0}:e}function E8(e){return e.registrationStatus===1&&e.registrationTime+M_<Date.now()}/**
|
|
668
|
+
* @license
|
|
669
|
+
* Copyright 2019 Google LLC
|
|
670
|
+
*
|
|
671
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
672
|
+
* you may not use this file except in compliance with the License.
|
|
673
|
+
* You may obtain a copy of the License at
|
|
674
|
+
*
|
|
675
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
676
|
+
*
|
|
677
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
678
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
679
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
680
|
+
* See the License for the specific language governing permissions and
|
|
681
|
+
* limitations under the License.
|
|
682
|
+
*/async function k8({appConfig:e,heartbeatServiceProvider:t},n){const r=_8(e,n),i=l8(e,n),o=t.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const s={installation:{sdkVersion:L_,appId:e.appId}},l={method:"POST",headers:i,body:JSON.stringify(s)},c=await H_(()=>fetch(r,l));if(c.ok){const d=await c.json();return B_(d)}else throw await $_("Generate Auth Token",c)}function _8(e,{fid:t}){return`${j_(e)}/${t}/authTokens:generate`}/**
|
|
683
|
+
* @license
|
|
684
|
+
* Copyright 2019 Google LLC
|
|
685
|
+
*
|
|
686
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
687
|
+
* you may not use this file except in compliance with the License.
|
|
688
|
+
* You may obtain a copy of the License at
|
|
689
|
+
*
|
|
690
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
691
|
+
*
|
|
692
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
693
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
694
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
695
|
+
* See the License for the specific language governing permissions and
|
|
696
|
+
* limitations under the License.
|
|
697
|
+
*/async function lb(e,t=!1){let n;const r=await sg(e.appConfig,o=>{if(!X_(o))throw Fc.create("not-registered");const s=o.authToken;if(!t&&P8(s))return o;if(s.requestStatus===1)return n=O8(e,t),o;{if(!navigator.onLine)throw Fc.create("app-offline");const l=I8(o);return n=D8(e,l),l}});return n?await n:r.authToken}async function O8(e,t){let n=await x1(e.appConfig);for(;n.authToken.requestStatus===1;)await U_(100),n=await x1(e.appConfig);const r=n.authToken;return r.requestStatus===0?lb(e,t):r}function x1(e){return sg(e,t=>{if(!X_(t))throw Fc.create("not-registered");const n=t.authToken;return A8(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function D8(e,t){try{const n=await k8(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Op(e.appConfig,r),n}catch(n){if(N_(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await G_(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Op(e.appConfig,r)}throw n}}function X_(e){return e!==void 0&&e.registrationStatus===2}function P8(e){return e.requestStatus===2&&!R8(e)}function R8(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+i8}function I8(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function A8(e){return e.requestStatus===1&&e.requestTime+M_<Date.now()}/**
|
|
698
|
+
* @license
|
|
699
|
+
* Copyright 2019 Google LLC
|
|
700
|
+
*
|
|
701
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
702
|
+
* you may not use this file except in compliance with the License.
|
|
703
|
+
* You may obtain a copy of the License at
|
|
704
|
+
*
|
|
705
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
706
|
+
*
|
|
707
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
708
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
709
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
710
|
+
* See the License for the specific language governing permissions and
|
|
711
|
+
* limitations under the License.
|
|
712
|
+
*/async function M8(e){const t=e,{installationEntry:n,registrationPromise:r}=await sb(t);return r?r.catch(console.error):lb(t).catch(console.error),n.fid}/**
|
|
713
|
+
* @license
|
|
714
|
+
* Copyright 2019 Google LLC
|
|
715
|
+
*
|
|
716
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
717
|
+
* you may not use this file except in compliance with the License.
|
|
718
|
+
* You may obtain a copy of the License at
|
|
719
|
+
*
|
|
720
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
721
|
+
*
|
|
722
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
723
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
724
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
725
|
+
* See the License for the specific language governing permissions and
|
|
726
|
+
* limitations under the License.
|
|
727
|
+
*/async function L8(e,t=!1){const n=e;return await F8(n),(await lb(n,t)).token}async function F8(e){const{registrationPromise:t}=await sb(e);t&&await t}/**
|
|
728
|
+
* @license
|
|
729
|
+
* Copyright 2019 Google LLC
|
|
730
|
+
*
|
|
731
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
732
|
+
* you may not use this file except in compliance with the License.
|
|
733
|
+
* You may obtain a copy of the License at
|
|
734
|
+
*
|
|
735
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
736
|
+
*
|
|
737
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
738
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
739
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
740
|
+
* See the License for the specific language governing permissions and
|
|
741
|
+
* limitations under the License.
|
|
742
|
+
*/function N8(e){if(!e||!e.options)throw Nv("App Configuration");if(!e.name)throw Nv("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Nv(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Nv(e){return Fc.create("missing-app-config-values",{valueName:e})}/**
|
|
743
|
+
* @license
|
|
744
|
+
* Copyright 2020 Google LLC
|
|
745
|
+
*
|
|
746
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
747
|
+
* you may not use this file except in compliance with the License.
|
|
748
|
+
* You may obtain a copy of the License at
|
|
749
|
+
*
|
|
750
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
751
|
+
*
|
|
752
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
753
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
754
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
755
|
+
* See the License for the specific language governing permissions and
|
|
756
|
+
* limitations under the License.
|
|
757
|
+
*/const K_="installations",j8="installations-internal",B8=e=>{const t=e.getProvider("app").getImmediate(),n=N8(t),r=ib(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},$8=e=>{const t=e.getProvider("app").getImmediate(),n=ib(t,K_).getImmediate();return{getId:()=>M8(n),getToken:i=>L8(n,i)}};function V8(){Lc(new Iu(K_,B8,"PUBLIC")),Lc(new Iu(j8,$8,"PRIVATE"))}V8();_u(A_,ob);_u(A_,ob,"esm2017");/**
|
|
758
|
+
* @license
|
|
759
|
+
* Copyright 2019 Google LLC
|
|
760
|
+
*
|
|
761
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
762
|
+
* you may not use this file except in compliance with the License.
|
|
763
|
+
* You may obtain a copy of the License at
|
|
764
|
+
*
|
|
765
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
766
|
+
*
|
|
767
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
768
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
769
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
770
|
+
* See the License for the specific language governing permissions and
|
|
771
|
+
* limitations under the License.
|
|
772
|
+
*/const H8="/firebase-messaging-sw.js",U8="/firebase-cloud-messaging-push-scope",Z_="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",W8="https://fcmregistrations.googleapis.com/v1",J_="google.c.a.c_id",z8="google.c.a.c_l",Y8="google.c.a.ts",G8="google.c.a.e";var S1;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(S1||(S1={}));/**
|
|
773
|
+
* @license
|
|
774
|
+
* Copyright 2018 Google LLC
|
|
775
|
+
*
|
|
776
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
777
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
778
|
+
*
|
|
779
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
780
|
+
*
|
|
781
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
782
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
783
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
784
|
+
* the License.
|
|
785
|
+
*/var $d;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})($d||($d={}));/**
|
|
786
|
+
* @license
|
|
787
|
+
* Copyright 2017 Google LLC
|
|
788
|
+
*
|
|
789
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
790
|
+
* you may not use this file except in compliance with the License.
|
|
791
|
+
* You may obtain a copy of the License at
|
|
792
|
+
*
|
|
793
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
794
|
+
*
|
|
795
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
796
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
797
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
798
|
+
* See the License for the specific language governing permissions and
|
|
799
|
+
* limitations under the License.
|
|
800
|
+
*/function Cl(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function q8(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}/**
|
|
801
|
+
* @license
|
|
802
|
+
* Copyright 2019 Google LLC
|
|
803
|
+
*
|
|
804
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
805
|
+
* you may not use this file except in compliance with the License.
|
|
806
|
+
* You may obtain a copy of the License at
|
|
807
|
+
*
|
|
808
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
809
|
+
*
|
|
810
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
811
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
812
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
813
|
+
* See the License for the specific language governing permissions and
|
|
814
|
+
* limitations under the License.
|
|
815
|
+
*/const jv="fcm_token_details_db",X8=5,T1="fcm_token_object_Store";async function K8(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(jv))return null;let t=null;return(await og(jv,X8,{upgrade:async(r,i,o,s)=>{var l;if(i<2||!r.objectStoreNames.contains(T1))return;const c=s.objectStore(T1),d=await c.index("fcmSenderId").get(e);if(await c.clear(),!!d){if(i===2){const v=d;if(!v.auth||!v.p256dh||!v.endpoint)return;t={token:v.fcmToken,createTime:(l=v.createTime)!==null&&l!==void 0?l:Date.now(),subscriptionOptions:{auth:v.auth,p256dh:v.p256dh,endpoint:v.endpoint,swScope:v.swScope,vapidKey:typeof v.vapidKey=="string"?v.vapidKey:Cl(v.vapidKey)}}}else if(i===3){const v=d;t={token:v.fcmToken,createTime:v.createTime,subscriptionOptions:{auth:Cl(v.auth),p256dh:Cl(v.p256dh),endpoint:v.endpoint,swScope:v.swScope,vapidKey:Cl(v.vapidKey)}}}else if(i===4){const v=d;t={token:v.fcmToken,createTime:v.createTime,subscriptionOptions:{auth:Cl(v.auth),p256dh:Cl(v.p256dh),endpoint:v.endpoint,swScope:v.swScope,vapidKey:Cl(v.vapidKey)}}}}}})).close(),await Av(jv),await Av("fcm_vapid_details_db"),await Av("undefined"),Z8(t)?t:null}function Z8(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}/**
|
|
816
|
+
* @license
|
|
817
|
+
* Copyright 2019 Google LLC
|
|
818
|
+
*
|
|
819
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
820
|
+
* you may not use this file except in compliance with the License.
|
|
821
|
+
* You may obtain a copy of the License at
|
|
822
|
+
*
|
|
823
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
824
|
+
*
|
|
825
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
826
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
827
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
828
|
+
* See the License for the specific language governing permissions and
|
|
829
|
+
* limitations under the License.
|
|
830
|
+
*/const J8="firebase-messaging-database",Q8=1,jc="firebase-messaging-store";let Bv=null;function ub(){return Bv||(Bv=og(J8,Q8,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(jc)}}})),Bv}async function Q_(e){const t=fb(e),r=await(await ub()).transaction(jc).objectStore(jc).get(t);if(r)return r;{const i=await K8(e.appConfig.senderId);if(i)return await cb(e,i),i}}async function cb(e,t){const n=fb(e),i=(await ub()).transaction(jc,"readwrite");return await i.objectStore(jc).put(t,n),await i.done,t}async function e9(e){const t=fb(e),r=(await ub()).transaction(jc,"readwrite");await r.objectStore(jc).delete(t),await r.done}function fb({appConfig:e}){return e.appId}/**
|
|
831
|
+
* @license
|
|
832
|
+
* Copyright 2017 Google LLC
|
|
833
|
+
*
|
|
834
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
835
|
+
* you may not use this file except in compliance with the License.
|
|
836
|
+
* You may obtain a copy of the License at
|
|
837
|
+
*
|
|
838
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
839
|
+
*
|
|
840
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
841
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
842
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
843
|
+
* See the License for the specific language governing permissions and
|
|
844
|
+
* limitations under the License.
|
|
845
|
+
*/const t9={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},Ni=new ig("messaging","Messaging",t9);/**
|
|
846
|
+
* @license
|
|
847
|
+
* Copyright 2019 Google LLC
|
|
848
|
+
*
|
|
849
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
850
|
+
* you may not use this file except in compliance with the License.
|
|
851
|
+
* You may obtain a copy of the License at
|
|
852
|
+
*
|
|
853
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
854
|
+
*
|
|
855
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
856
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
857
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
858
|
+
* See the License for the specific language governing permissions and
|
|
859
|
+
* limitations under the License.
|
|
860
|
+
*/async function n9(e,t){const n=await hb(e),r=tO(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(db(e.appConfig),i)).json()}catch(s){throw Ni.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Ni.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw Ni.create("token-subscribe-no-token");return o.token}async function r9(e,t){const n=await hb(e),r=tO(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${db(e.appConfig)}/${t.token}`,i)).json()}catch(s){throw Ni.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Ni.create("token-update-failed",{errorInfo:s})}if(!o.token)throw Ni.create("token-update-no-token");return o.token}async function eO(e,t){const r={method:"DELETE",headers:await hb(e)};try{const o=await(await fetch(`${db(e.appConfig)}/${t}`,r)).json();if(o.error){const s=o.error.message;throw Ni.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw Ni.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function db({projectId:e}){return`${W8}/projects/${e}/registrations`}async function hb({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function tO({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==Z_&&(i.web.applicationPubKey=r),i}/**
|
|
861
|
+
* @license
|
|
862
|
+
* Copyright 2019 Google LLC
|
|
863
|
+
*
|
|
864
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
865
|
+
* you may not use this file except in compliance with the License.
|
|
866
|
+
* You may obtain a copy of the License at
|
|
867
|
+
*
|
|
868
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
869
|
+
*
|
|
870
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
871
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
872
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
873
|
+
* See the License for the specific language governing permissions and
|
|
874
|
+
* limitations under the License.
|
|
875
|
+
*/const i9=7*24*60*60*1e3;async function o9(e){const t=await l9(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Cl(t.getKey("auth")),p256dh:Cl(t.getKey("p256dh"))},r=await Q_(e.firebaseDependencies);if(r){if(u9(r.subscriptionOptions,n))return Date.now()>=r.createTime+i9?s9(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await eO(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return C1(e.firebaseDependencies,n)}else return C1(e.firebaseDependencies,n)}async function a9(e){const t=await Q_(e.firebaseDependencies);t&&(await eO(e.firebaseDependencies,t.token),await e9(e.firebaseDependencies));const n=await e.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function s9(e,t){try{const n=await r9(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await cb(e.firebaseDependencies,r),n}catch(n){throw await a9(e),n}}async function C1(e,t){const r={token:await n9(e,t),createTime:Date.now(),subscriptionOptions:t};return await cb(e,r),r.token}async function l9(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:q8(t)})}function u9(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&r&&i&&o}/**
|
|
876
|
+
* @license
|
|
877
|
+
* Copyright 2020 Google LLC
|
|
878
|
+
*
|
|
879
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
880
|
+
* you may not use this file except in compliance with the License.
|
|
881
|
+
* You may obtain a copy of the License at
|
|
882
|
+
*
|
|
883
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
884
|
+
*
|
|
885
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
886
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
887
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
888
|
+
* See the License for the specific language governing permissions and
|
|
889
|
+
* limitations under the License.
|
|
890
|
+
*/function E1(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return c9(t,e),f9(t,e),d9(t,e),t}function c9(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const r=t.notification.body;r&&(e.notification.body=r);const i=t.notification.image;i&&(e.notification.image=i);const o=t.notification.icon;o&&(e.notification.icon=o)}function f9(e,t){t.data&&(e.data=t.data)}function d9(e,t){var n,r,i,o,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};const l=(i=(r=t.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=t.notification)===null||o===void 0?void 0:o.click_action;l&&(e.fcmOptions.link=l);const c=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;c&&(e.fcmOptions.analyticsLabel=c)}/**
|
|
891
|
+
* @license
|
|
892
|
+
* Copyright 2019 Google LLC
|
|
893
|
+
*
|
|
894
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
895
|
+
* you may not use this file except in compliance with the License.
|
|
896
|
+
* You may obtain a copy of the License at
|
|
897
|
+
*
|
|
898
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
899
|
+
*
|
|
900
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
901
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
902
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
903
|
+
* See the License for the specific language governing permissions and
|
|
904
|
+
* limitations under the License.
|
|
905
|
+
*/function h9(e){return typeof e=="object"&&!!e&&J_ in e}/**
|
|
906
|
+
* @license
|
|
907
|
+
* Copyright 2019 Google LLC
|
|
908
|
+
*
|
|
909
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
910
|
+
* you may not use this file except in compliance with the License.
|
|
911
|
+
* You may obtain a copy of the License at
|
|
912
|
+
*
|
|
913
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
914
|
+
*
|
|
915
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
916
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
917
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
918
|
+
* See the License for the specific language governing permissions and
|
|
919
|
+
* limitations under the License.
|
|
920
|
+
*/nO("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");nO("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function nO(e,t){const n=[];for(let r=0;r<e.length;r++)n.push(e.charAt(r)),r<t.length&&n.push(t.charAt(r));return n.join("")}/**
|
|
921
|
+
* @license
|
|
922
|
+
* Copyright 2019 Google LLC
|
|
923
|
+
*
|
|
924
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
925
|
+
* you may not use this file except in compliance with the License.
|
|
926
|
+
* You may obtain a copy of the License at
|
|
927
|
+
*
|
|
928
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
929
|
+
*
|
|
930
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
931
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
932
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
933
|
+
* See the License for the specific language governing permissions and
|
|
934
|
+
* limitations under the License.
|
|
935
|
+
*/function p9(e){if(!e||!e.options)throw $v("App Configuration Object");if(!e.name)throw $v("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw $v(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function $v(e){return Ni.create("missing-app-config-values",{valueName:e})}/**
|
|
936
|
+
* @license
|
|
937
|
+
* Copyright 2020 Google LLC
|
|
938
|
+
*
|
|
939
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
940
|
+
* you may not use this file except in compliance with the License.
|
|
941
|
+
* You may obtain a copy of the License at
|
|
942
|
+
*
|
|
943
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
944
|
+
*
|
|
945
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
946
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
947
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
948
|
+
* See the License for the specific language governing permissions and
|
|
949
|
+
* limitations under the License.
|
|
950
|
+
*/class g9{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=p9(t);this.firebaseDependencies={app:t,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
|
|
951
|
+
* @license
|
|
952
|
+
* Copyright 2020 Google LLC
|
|
953
|
+
*
|
|
954
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
955
|
+
* you may not use this file except in compliance with the License.
|
|
956
|
+
* You may obtain a copy of the License at
|
|
957
|
+
*
|
|
958
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
959
|
+
*
|
|
960
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
961
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
962
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
963
|
+
* See the License for the specific language governing permissions and
|
|
964
|
+
* limitations under the License.
|
|
965
|
+
*/async function v9(e){try{e.swRegistration=await navigator.serviceWorker.register(H8,{scope:U8}),e.swRegistration.update().catch(()=>{})}catch(t){throw Ni.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
|
|
966
|
+
* @license
|
|
967
|
+
* Copyright 2020 Google LLC
|
|
968
|
+
*
|
|
969
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
970
|
+
* you may not use this file except in compliance with the License.
|
|
971
|
+
* You may obtain a copy of the License at
|
|
972
|
+
*
|
|
973
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
974
|
+
*
|
|
975
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
976
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
977
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
978
|
+
* See the License for the specific language governing permissions and
|
|
979
|
+
* limitations under the License.
|
|
980
|
+
*/async function m9(e,t){if(!t&&!e.swRegistration&&await v9(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw Ni.create("invalid-sw-registration");e.swRegistration=t}}/**
|
|
981
|
+
* @license
|
|
982
|
+
* Copyright 2020 Google LLC
|
|
983
|
+
*
|
|
984
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
985
|
+
* you may not use this file except in compliance with the License.
|
|
986
|
+
* You may obtain a copy of the License at
|
|
987
|
+
*
|
|
988
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
989
|
+
*
|
|
990
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
991
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
992
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
993
|
+
* See the License for the specific language governing permissions and
|
|
994
|
+
* limitations under the License.
|
|
995
|
+
*/async function y9(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=Z_)}/**
|
|
996
|
+
* @license
|
|
997
|
+
* Copyright 2020 Google LLC
|
|
998
|
+
*
|
|
999
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1000
|
+
* you may not use this file except in compliance with the License.
|
|
1001
|
+
* You may obtain a copy of the License at
|
|
1002
|
+
*
|
|
1003
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1004
|
+
*
|
|
1005
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1006
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1007
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1008
|
+
* See the License for the specific language governing permissions and
|
|
1009
|
+
* limitations under the License.
|
|
1010
|
+
*/async function rO(e,t){if(!navigator)throw Ni.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Ni.create("permission-blocked");return await y9(e,t==null?void 0:t.vapidKey),await m9(e,t==null?void 0:t.serviceWorkerRegistration),o9(e)}/**
|
|
1011
|
+
* @license
|
|
1012
|
+
* Copyright 2019 Google LLC
|
|
1013
|
+
*
|
|
1014
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1015
|
+
* you may not use this file except in compliance with the License.
|
|
1016
|
+
* You may obtain a copy of the License at
|
|
1017
|
+
*
|
|
1018
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1019
|
+
*
|
|
1020
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1021
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1022
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1023
|
+
* See the License for the specific language governing permissions and
|
|
1024
|
+
* limitations under the License.
|
|
1025
|
+
*/async function b9(e,t,n){const r=w9(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[J_],message_name:n[z8],message_time:n[Y8],message_device_time:Math.floor(Date.now()/1e3)})}function w9(e){switch(e){case $d.NOTIFICATION_CLICKED:return"notification_open";case $d.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
1026
|
+
* @license
|
|
1027
|
+
* Copyright 2017 Google LLC
|
|
1028
|
+
*
|
|
1029
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1030
|
+
* you may not use this file except in compliance with the License.
|
|
1031
|
+
* You may obtain a copy of the License at
|
|
1032
|
+
*
|
|
1033
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1034
|
+
*
|
|
1035
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1036
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1037
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1038
|
+
* See the License for the specific language governing permissions and
|
|
1039
|
+
* limitations under the License.
|
|
1040
|
+
*/async function x9(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===$d.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(E1(n)):e.onMessageHandler.next(E1(n)));const r=n.data;h9(r)&&r[G8]==="1"&&await b9(e,n.messageType,r)}const k1="@firebase/messaging",_1="0.12.6";/**
|
|
1041
|
+
* @license
|
|
1042
|
+
* Copyright 2020 Google LLC
|
|
1043
|
+
*
|
|
1044
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1045
|
+
* you may not use this file except in compliance with the License.
|
|
1046
|
+
* You may obtain a copy of the License at
|
|
1047
|
+
*
|
|
1048
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1049
|
+
*
|
|
1050
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1051
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1052
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1053
|
+
* See the License for the specific language governing permissions and
|
|
1054
|
+
* limitations under the License.
|
|
1055
|
+
*/const S9=e=>{const t=new g9(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>x9(t,n)),t},T9=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>rO(t,r)}};function C9(){Lc(new Iu("messaging",S9,"PUBLIC")),Lc(new Iu("messaging-internal",T9,"PRIVATE")),_u(k1,_1),_u(k1,_1,"esm2017")}/**
|
|
1056
|
+
* @license
|
|
1057
|
+
* Copyright 2020 Google LLC
|
|
1058
|
+
*
|
|
1059
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1060
|
+
* you may not use this file except in compliance with the License.
|
|
1061
|
+
* You may obtain a copy of the License at
|
|
1062
|
+
*
|
|
1063
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1064
|
+
*
|
|
1065
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1066
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1067
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1068
|
+
* See the License for the specific language governing permissions and
|
|
1069
|
+
* limitations under the License.
|
|
1070
|
+
*/async function E9(){try{await __()}catch{return!1}return typeof window<"u"&&k_()&&Y4()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
1071
|
+
* @license
|
|
1072
|
+
* Copyright 2020 Google LLC
|
|
1073
|
+
*
|
|
1074
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1075
|
+
* you may not use this file except in compliance with the License.
|
|
1076
|
+
* You may obtain a copy of the License at
|
|
1077
|
+
*
|
|
1078
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1079
|
+
*
|
|
1080
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1081
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1082
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1083
|
+
* See the License for the specific language governing permissions and
|
|
1084
|
+
* limitations under the License.
|
|
1085
|
+
*/function k9(e,t){if(!navigator)throw Ni.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
|
|
1086
|
+
* @license
|
|
1087
|
+
* Copyright 2017 Google LLC
|
|
1088
|
+
*
|
|
1089
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1090
|
+
* you may not use this file except in compliance with the License.
|
|
1091
|
+
* You may obtain a copy of the License at
|
|
1092
|
+
*
|
|
1093
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1094
|
+
*
|
|
1095
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1096
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1097
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1098
|
+
* See the License for the specific language governing permissions and
|
|
1099
|
+
* limitations under the License.
|
|
1100
|
+
*/function _9(e=z6()){return E9().then(t=>{if(!t)throw Ni.create("unsupported-browser")},t=>{throw Ni.create("indexed-db-unsupported")}),ib(nb(e),"messaging").getImmediate()}async function O9(e,t){return e=nb(e),rO(e,t)}function D9(e,t){return e=nb(e),k9(e,t)}C9();const P9={"subscription-diaglog":"_subscription-diaglog_1bysb_2","subscription-container":"_subscription-container_1bysb_15","subscription-title":"_subscription-title_1bysb_25","subscription-text":"_subscription-text_1bysb_34","subscription-btn__container":"_subscription-btn__container_1bysb_38","btn-success":"_btn-success_1bysb_44","btn-cancel":"_btn-cancel_1bysb_45"},R9={"notification-massage_container":"_notification-massage_container_ql4az_1","notification-name":"_notification-name_ql4az_18","notification-message_service":"_notification-message_service_ql4az_23","notification-message_button-close":"_notification-message_button-close_ql4az_27"};exports.AuthContext=Qm;exports.AuthProvider=RM;exports.CustomOpenList=$1;exports.CustomOpenListProvider=vA;exports.DateRangePicker=L4;exports.ERROR_MESSAGE=F1;exports.FavoriteMenu=y4;exports.GlobalMenu=T4;exports.IconComponent=c_;exports.InfiniteLoader=R4;exports.Language=Jm;exports.LogoutConfirmModal=O1;exports.PropTypes=_a;exports.Q=AL;exports.SaasThemeProvider=DA;exports.StyleWrapper=Km;exports.TranslationProvider=BM;exports._=E4;exports._assertThisInitialized=_l;exports._extends=Lf;exports._extends$1=f5;exports._inheritsLoose=o_;exports._objectWithoutPropertiesLoose=Zm;exports.activeStyles=Qy;exports.axiosInstance=is;exports.clsx=El;exports.color=ui;exports.commonjsGlobal=Ko;exports.createCustomTheme=U1;exports.getAugmentedNamespace=zA;exports.getMessagingInWindow=_9;exports.getToken=O9;exports.handleErrorAxios=B1;exports.initializeApp=P_;exports.lodashExports=b_;exports.login=N1;exports.logout=j1;exports.notify=BL;exports.objectWithoutPropertiesLoose=WA;exports.onMessage=D9;exports.pushError=Hd;exports.pushSuccess=ty;exports.pushWarning=jL;exports.responseInterceptor=gA;exports.search=AM;exports.styles=C4;exports.styles$1=P9;exports.styles$2=R9;exports.translate=NM;exports.translationConfig=FM;exports.updateFavoriteItems=tb;exports.useAuth=IM;exports.useCustomTranslation=LM;exports.useTheme=OA;exports.useTranslation=K1;exports.useTranslation$1=jM;
|