@ukpc-lib/react 0.4.20 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/GlobalMenu/components/MenuItem.d.ts +6 -1
- package/dist/components/GlobalMenu/components/Placeholder.d.ts +10 -0
- package/dist/components/GlobalMenu/data.json.d.ts +2414 -0
- package/dist/components/GlobalMenu/hooks/useMenuLocalStorage.d.ts +6 -0
- package/dist/components/GlobalMenu/models/MenuItemDto.d.ts +3 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/index.module-14134d0a.js +40167 -0
- package/dist/index.module-6082cf5b.cjs +1098 -0
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +3 -1
- package/web-components-bundle/access-denied/index.js +1 -1
- 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-5186fb3b.js +41253 -0
- package/web-components-bundle/{index-a8aaf6f3.js → index-d9f68aa9.js} +4 -4
- package/dist/index.module-007c0897.js +0 -32212
- package/dist/index.module-c18c2bc3.cjs +0 -1092
- package/web-components-bundle/index-037d71b5.js +0 -31413
|
@@ -0,0 +1,1098 @@
|
|
|
1
|
+
var v9=require("./index.css");const st=require("react/jsx-runtime"),Q=require("react"),TI=require("axios"),CI=require("moment"),_c=require("@mui/material"),Sd=require("react-query");require("@r2wc/react-to-web-component");const x1=require("react-router-dom"),S1=require("react-dom");function EI(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 kI(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=EI(Q),OI=`.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 T1({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 st.jsxs(st.Fragment,{children:[st.jsx("style",{type:"text/css",children:OI}),st.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:st.jsxs("div",{className:"modal-container",children:[st.jsx("h3",{className:"modal-title",children:"Log out"}),st.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),st.jsxs("div",{className:"modal-footer",children:[st.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),st.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const so={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 DI(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 C1(e){var t=DI(e,"string");return Jo(t)=="symbol"?t:String(t)}function Kb(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,C1(r.key),r)}}function na(e,t,n){return t&&Kb(e.prototype,t),n&&Kb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ou(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xh(e,t){return Xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xh(e,t)}function kp(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&&Xh(e,t)}function Bd(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 Ou(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=C1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E1(e){if(Array.isArray(e))return e}function PI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zb(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 k1(e,t){if(e){if(typeof e=="string")return Zb(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 Zb(e,t)}}function O1(){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 _I(e){return E1(e)||PI(e)||k1(e)||O1()}function Jb(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 Qb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jb(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var RI={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)}},II=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||RI,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,Qb(Qb({},{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}(),Ms=new II,Ol=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 Kf(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function e0(e){return e==null?"":""+e}function AI(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Hm(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 t0(e,t,n){var r=Hm(e,t,Object),i=r.obj,o=r.k;i[o]=n}function MI(e,t,n,r){var i=Hm(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 Kh(e,t){var n=Hm(e,t),r=n.obj,i=n.k;if(r)return r[i]}function LI(e,t,n){var r=Kh(e,n);return r!==void 0?r:Kh(t,n)}function D1(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]):D1(e[r],t[r],n):e[r]=t[r]);return e}function df(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var NI={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function FI(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return NI[t]}):e}var Op=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,jI=[" ",",","?","!",";"];function BI(e,t,n){t=t||"",n=n||"";var r=jI.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 Zh(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?Zh(c,d,n):void 0}i=i[r[o]]}return i}}function n0(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 uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $I(e){var t=VI();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 Bd(this,i)}}function VI(){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 HI=function(e){kp(n,e);var t=$I(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),Op&&Ol.call(Ou(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=Kh(this.data,v);return p||!d||typeof s!="string"?p:Zh(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),t0(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=Kh(this.data,v)||{};l?D1(p,s,c):p=uh(uh({},p),s),t0(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"?uh(uh({},{}),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}(Ol),P1={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 r0(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 Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UI(e){var t=WI();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 Bd(this,i)}}function WI(){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 i0={},o0=function(e){kp(n,e);var t=UI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ta(this,n),i=t.call(this),Op&&Ol.call(Ou(i)),AI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Ou(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Ms.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&&!BI(i,s,l);if(d&&!v){var p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:c};var S=i.split(s);(s!==l||s===l&&this.options.ns.indexOf(S[0])>-1)&&(c=S.shift()),i=S.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=Ai({},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,S=v.namespaces,T=S[S.length-1],_=o.lng||this.language,R=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_&&_.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:_,usedNS:T}:"".concat(T).concat(L).concat(p)}return c?{res:p,usedKey:p,exactUsedKey:p,usedLng:_,usedNS:T}:p}var I=this.resolve(i,o),U=I&&I.res,Y=I&&I.usedKey||p,ne=I&&I.exactUsedKey||p,J=Object.prototype.toString.apply(U),de=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ye=!this.i18nFormat||this.i18nFormat.handleAsObject,le=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(ye&&U&&le&&de.indexOf(J)<0&&!(typeof x=="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 Qe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Y,U,Ai(Ai({},o),{},{ns:S})):"key '".concat(p," (").concat(this.language,")' returned an object instead of string.");return c?(I.res=Qe,I):Qe}if(d){var ze=J==="[object Array]",He=ze?[]:{},Ye=ze?ne:Y;for(var et in U)if(Object.prototype.hasOwnProperty.call(U,et)){var pe="".concat(Ye).concat(d).concat(et);He[et]=this.translate(pe,Ai(Ai({},o),{joinArrays:!1,ns:S})),He[et]===pe&&(He[et]=U[et])}U=He}}else if(ye&&typeof x=="string"&&J==="[object Array]")U=U.join(x),U&&(U=this.extendTranslation(U,i,o,s));else{var De=!1,Fe=!1,Je=o.count!==void 0&&typeof o.count!="string",it=n.hasDefaultValue(o),Oe=Je?this.pluralResolver.getSuffix(_,o.count,o):"",xe=o["defaultValue".concat(Oe)]||o.defaultValue;!this.isValidLookup(U)&&it&&(De=!0,U=xe),this.isValidLookup(U)||(Fe=!0,U=p);var Ue=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ve=Ue&&Fe?void 0:U,Re=it&&xe!==U&&this.options.updateMissing;if(Fe||De||Re){if(this.logger.log(Re?"updateKey":"missingKey",_,T,p,Re?xe:U),d){var Me=this.resolve(p,Ai(Ai({},o),{},{keySeparator:!1}));Me&&Me.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 Xe=[],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++)Xe.push(lt[mt]);else this.options.saveMissingTo==="all"?Xe=this.languageUtils.toResolveHierarchy(o.lng||this.language):Xe.push(o.lng||this.language);var wt=function(Et,ot,$t){var Ht=it&&$t!==U?$t:Ve;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&&Je?Xe.forEach(function(vt){l.pluralResolver.getSuffixes(vt,o).forEach(function(Et){wt([vt],p+Et,o["defaultValue".concat(Et)]||xe)})}):wt(Xe,p,xe))}U=this.extendTranslation(U,i,o,I,s),Fe&&U===p&&this.options.appendNamespaceToMissingKey&&(U="".concat(T,":").concat(p)),(Fe||De)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(T,":").concat(p):p,De?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,Ai(Ai({},this.options.interpolation.defaultVariables),s),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Ai(Ai({},s),{interpolation:Ai(Ai({},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 S=i.match(this.interpolator.nestingRegexp);p=S&&S.length}var T=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(T=Ai(Ai({},this.options.interpolation.defaultVariables),T)),i=this.interpolator.interpolate(i,T,s.lng||this.language,s),v){var _=i.match(this.interpolator.nestingRegexp),R=_&&_.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,Y=new Array(U),ne=0;ne<U;ne++)Y[ne]=arguments[ne];return c&&c[0]===Y[0]&&!s.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(Y[0]," in key: ").concat(o[0])),null):d.translate.apply(d,Y.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=P1.handle(I,i,o,this.options&&this.options.postProcessPassResolved?Ai({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(S){if(!o.isValidLookup(l)){var T=o.extractFromKey(S,s),_=T.key;c=_;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!=="",Y=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);R.forEach(function(ne){o.isValidLookup(l)||(p=ne,!i0["".concat(Y[0],"-").concat(ne)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(p)&&(i0["".concat(Y[0],"-").concat(ne)]=!0,o.logger.warn('key "'.concat(c,'" for languages "').concat(Y.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!!!")),Y.forEach(function(J){if(!o.isValidLookup(l)){v=J;var de=[_];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(de,_,J,ne,s);else{var x;L&&(x=o.pluralResolver.getSuffix(J,s.count,s));var ye="".concat(o.options.pluralSeparator,"zero");if(L&&(de.push(_+x),I&&de.push(_+ye)),U){var le="".concat(_).concat(o.options.contextSeparator).concat(s.context);de.push(le),L&&(de.push(le+x),I&&de.push(le+ye))}}for(var Qe;Qe=de.pop();)o.isValidLookup(l)||(d=Qe,l=o.getResource(J,ne,Qe,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}(Ol);function _g(e){return e.charAt(0).toUpperCase()+e.slice(1)}var a0=function(){function e(t){ta(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ms.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]=_g(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]=_g(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=_g(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}(),zI=[{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}],YI={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}},GI=["v1","v2","v3"],s0={zero:0,one:1,two:2,few:3,many:4,other:5};function qI(){var e={};return zI.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:YI[t.fc]}})}),e}var XI=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=Ms.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=qI()}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 s0[s]-s0[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!GI.includes(this.options.compatibilityJSON)}}]),e}();function u0(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?u0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function l0(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=LI(e,t,n);return!o&&i&&typeof n=="string"&&(o=Zh(e,n,r),o===void 0&&(o=Zh(t,n,r))),o}var KI=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=Ms.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:FI,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 S=function(I){if(I.indexOf(s.formatSeparator)<0){var U=l0(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 Y=I.split(s.formatSeparator),ne=Y.shift().trim(),J=Y.join(s.formatSeparator).trim();return s.format(l0(r,v,ne,s.options.keySeparator,s.options.ignoreJSONStructure),J,i,es(es(es({},o),r),{},{interpolationkey:ne}))};this.resetRegExp();var T=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,_=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=S(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(_){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=e0(c));var Y=L.safeValue(c);if(n=n.replace(l[0],Y),_?(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,_){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),Y=I.match(/"/g);(U&&U.length%2===0&&!Y||Y.length%2!==0)&&(I=I.replace(/'/g,'"'));try{c=JSON.parse(I),_&&(c=es(es({},_),c))}catch(ne){return this.logger.warn("failed parsing options string in nesting for key ".concat(T),ne),"".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 S=s[1].split(this.formatSeparator).map(function(T){return T.trim()});s[1]=S.shift(),v=S,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=e0(l)),l||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),l=""),p&&(l=v.reduce(function(T,_){return i.format(T,_,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 c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZI(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=_I(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 JI=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=Ms.create("formatter"),this.options=t,this.formats={number:hf(function(n,r){var i=new Intl.NumberFormat(n,Su({},r));return function(o){return i.format(o)}}),currency:hf(function(n,r){var i=new Intl.NumberFormat(n,Su(Su({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:hf(function(n,r){var i=new Intl.DateTimeFormat(n,Su({},r));return function(o){return i.format(o)}}),relativetime:hf(function(n,r){var i=new Intl.RelativeTimeFormat(n,Su({},r));return function(o){return i.format(o,r.range||"day")}}),list:hf(function(n,r){var i=new Intl.ListFormat(n,Su({},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=ZI(v),S=p.formatName,T=p.formatOptions;if(o.formats[S]){var _=d;try{var R=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},L=R.locale||R.lng||s.locale||s.lng||i;_=o.formats[S](d,L,Su(Su(Su({},T),s),R))}catch(I){o.logger.warn(I)}return _}else o.logger.warn("there was no format function for ".concat(S));return d},n);return c}}]),e}();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 d0(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}function QI(e){var t=eA();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 Bd(this,i)}}function eA(){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 tA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var nA=function(e){kp(n,e);var t=QI(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),Op&&Ol.call(Ou(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=l,s.logger=Ms.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={},S={};return i.forEach(function(T){var _=!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,_=!1,v[L]===void 0&&(v[L]=!0),d[L]===void 0&&(d[L]=!0),S[R]===void 0&&(S[R]=!0)))}),_||(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(S)}}},{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){MI(p.loaded,[c],d),tA(p,i),o&&p.errors.push(o),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(function(S){v[S]||(v[S]={});var T=p.loaded[S];T.length&&T.forEach(function(_){v[S][_]===void 0&&(v[S][_]=!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)},S=this.backend[s].bind(this.backend);if(S.length===2){try{var T=S(i,o);T&&typeof T.then=="function"?T.then(function(_){return p(null,_)}).catch(p):p(null,T)}catch(_){p(_)}return}return S(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=d0(d0({},d),{},{isUpdate:c}),S=this.backend.create.bind(this.backend);if(S.length<6)try{var T;S.length===5?T=S(i,o,s,l,p):T=S(i,o,s,l),T&&typeof T.then=="function"?T.then(function(_){return v(null,_)}).catch(v):v(null,T)}catch(_){v(_)}else S(i,o,s,l,v,p)}!i||!i[0]||this.store.addResource(i[0],o,s,l)}}}]),n}(Ol);function h0(){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 p0(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 g0(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?g0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rA(e){var t=iA();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 Bd(this,i)}}function iA(){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 lh(){}function oA(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var Jh=function(e){kp(n,e);var t=rA(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),Op&&Ol.call(Ou(r)),r.options=p0(i),r.services={},r.logger=Ms,r.modules={external:[]},oA(Ou(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Bd(r,Ou(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=h0();this.options=Ps(Ps(Ps({},l),this.options),p0(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?Ms.init(c(this.modules.logger),this.options):Ms.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=JI);var v=new a0(this.options);this.store=new HI(this.options.resources,this.options);var p=this.services;p.logger=Ms,p.resourceStore=this.store,p.languageUtils=v,p.pluralResolver=new XI(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 KI(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new nA(c(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(I){for(var U=arguments.length,Y=new Array(U>1?U-1:0),ne=1;ne<U;ne++)Y[ne-1]=arguments[ne];i.emit.apply(i,[I].concat(Y))}),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 o0(this.services,this.options),this.translator.on("*",function(I){for(var U=arguments.length,Y=new Array(U>1?U-1:0),ne=1;ne<U;ne++)Y[ne-1]=arguments[ne];i.emit.apply(i,[I].concat(Y))}),this.modules.external.forEach(function(I){I.init&&I.init(i)})}if(this.format=this.options.interpolation.format,s||(s=lh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var S=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);S.length>0&&S[0]!=="dev"&&(this.options.lng=S[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 _=["addResource","addResources","addResourceBundle","removeResourceBundle"];_.forEach(function(I){i[I]=function(){var U;return(U=i.store)[I].apply(U,arguments),i}});var R=Kf(),L=function(){var U=function(ne,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(ne,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]:lh,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 _=o.services.languageUtils.toResolveHierarchy(T);_.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(S){return v(S)})}this.options.preload&&this.options.preload.forEach(function(S){return v(S)}),this.services.backendConnector.load(d,this.options.ns,function(S){!S&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),l(S)})}else l(null)}},{key:"reloadResources",value:function(i,o,s){var l=Kf();return i||(i=this.languages),o||(o=this.options.ns),s||(s=lh),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"&&P1.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=Kf();this.emit("languageChanging",i);var c=function(S){s.language=S,s.languages=s.services.languageUtils.toResolveHierarchy(S),s.resolvedLanguage=void 0,s.setResolvedLanguage(S)},d=function(S,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(S,function(){return s.t.apply(s,arguments)})},v=function(S){!i&&!S&&s.services.languageDetector&&(S=[]);var T=typeof S=="string"?S:s.services.languageUtils.getBestMatchFromCodes(S);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(_){d(_,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 S;if(Jo(p)!=="object"){for(var T=arguments.length,_=new Array(T>2?T-2:0),R=2;R<T;R++)_[R-2]=arguments[R];S=l.options.overloadTranslationOptionHandler([v,p].concat(_))}else S=Ps({},p);S.lng=S.lng||d.lng,S.lngs=S.lngs||d.lngs,S.ns=S.ns||d.ns,S.keyPrefix=S.keyPrefix||s||d.keyPrefix;var L=l.options.keySeparator||".",I;return S.keyPrefix&&Array.isArray(v)?I=v.map(function(U){return"".concat(S.keyPrefix).concat(L).concat(U)}):I=S.keyPrefix?"".concat(S.keyPrefix).concat(L).concat(v):v,l.t(I,S)};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,_){var R=o.services.backendConnector.state["".concat(T,"|").concat(_)];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=Kf();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=Kf();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 a0(h0());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]:lh,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 o0(c.services,c.options),c.translator.on("*",function(v){for(var p=arguments.length,S=new Array(p>1?p-1:0),T=1;T<p;T++)S[T-1]=arguments[T];c.emit.apply(c,[v].concat(S))}),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}(Ol);$s(Jh,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Jh(e,t)});var li=Jh.createInstance();li.createInstance=Jh.createInstance;li.createInstance;li.dir;li.init;li.loadResources;li.reloadResources;li.use;li.changeLanguage;li.getFixedT;var _1=li.t;li.exists;li.setDefaultNamespace;li.hasLoadedNamespace;li.loadNamespaces;li.loadLanguages;const R1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},I1=e=>{window.location.href=`${e}/authentication/login?callbackUrl=${window.location.href}`},A1=e=>{window.location.href=`${e}/authentication/logout?callbackUrl=${window.location.href}`},Ls=TI.create({withCredentials:!0});let Rg=!1,Lv=[];const v0=e=>{Lv.forEach(t=>{e?t.reject(e):t.resolve()}),Lv=[]};function M1(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===R1.TOKEN_EXPIRED;return((l=e.response)==null?void 0:l.status)===401&&i&&!n._retry?Rg?new Promise((S,T)=>{Lv.push({resolve:S,reject:T})}).then(()=>Ls(n)).catch(S=>Promise.reject(S)):(n._retry=!0,Rg=!0,Ls.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(v0(null),Ls(n))).catch(S=>(v0(S),Promise.reject(S))).finally(()=>{Rg=!1})):((c=e.response)==null?void 0:c.status)===401&&!i?I1(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)&&Rp(_1(`${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 aA=Ls.interceptors.response.use(e=>e,async e=>M1(e)),L1=Q.createContext({}),sA=({children:e})=>{const[t,n]=Q.useState(!0),[r,i]=Q.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!t)},s=()=>{n(!0)};return st.jsx(L1.Provider,{value:{isOpen:t,toggleOpen:o,setShowModalFalse:s,notidata:r,setNotiData:i},children:e})};var N1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},m0=Q.createContext&&Q.createContext(N1),uA=["attr","size","title"];function lA(e,t){if(e==null)return{};var n=cA(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 cA(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 Qh(){return Qh=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},Qh.apply(this,arguments)}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 ep(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){fA(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 fA(e,t,n){return t=dA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dA(e){var t=hA(e,"string");return typeof t=="symbol"?t:String(t)}function hA(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 F1(e){return e&&e.map((t,n)=>Q.createElement(t.tag,ep({key:n},t.attr),F1(t.child)))}function Dp(e){return t=>Q.createElement(pA,Qh({attr:ep({},e.attr)},t),F1(e.child))}function pA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=lA(e,uA),l=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),Q.createElement("svg",Qh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:ep(ep({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&Q.createElement("title",null,o),e.children)};return m0!==void 0?Q.createElement(m0.Consumer,null,n=>t(n)):t(N1)}function gA(e){return Dp({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 vA(e){return Dp({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)}const j1=e=>{const t={...e.colors};return _c.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:{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:t.primary200,"&:hover":{backgroundColor:t.primary200}}}}},MuiPaginationItem:{defaultProps:{components:{previous:gA,next:vA}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:`${t.primary300}1a !important`},"&.MuiPaginationItem-previousNext":{backgroundColor:t.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"10px",lineHeight:"12px",fontWeight:400,"& .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 mA(e,t){const n={...e};return t==null||t.forEach(r=>{r.children&&r.children.forEach(i=>{n[i.key]=i.color.trim()})}),n}function yA(e){var s,l;const{data:t,isFetching:n}=Sd.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=mA(so,(s=t==null?void 0:t.theme)==null?void 0:s.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const i=j1({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 B1=Q.createContext({}),bA=()=>Q.useContext(B1),wA=e=>{var o;const{children:t,brandTheme:n}=e,r=yA(n),i=((o=e.customTheme)==null?void 0:o.call(e,r.colors))||r.theme;return st.jsx(B1.Provider,{value:r,children:st.jsx(_c.ThemeProvider,{theme:i,children:t})})},xA=`*,: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 $1({children:e,styles:t=[],...n}){return st.jsxs("div",{...n,children:[[xA,...t].map((r,i)=>st.jsx("style",{type:"text/css",children:r},i)),e]})}var V1=[],SA=V1.forEach,TA=V1.slice;function CA(e){return SA.call(TA.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var b0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,EA=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(!b0.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!b0.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},w0={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=EA(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},kA={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=w0.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&w0.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},OA={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}},Zf=null,x0=function(){if(Zf!==null)return Zf;try{Zf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Zf=!1}return Zf},DA={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&x0()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&x0()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Jf=null,S0=function(){if(Jf!==null)return Jf;try{Jf=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Jf=!1}return Jf},PA={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&S0()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&S0()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},_A={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}},RA={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}},IA={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}},AA={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 MA(){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 H1=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=CA(r,this.options||{},MA()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(kA),this.addDetector(OA),this.addDetector(DA),this.addDetector(PA),this.addDetector(_A),this.addDetector(RA),this.addDetector(IA),this.addDetector(AA)}},{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}();H1.type="languageDetector";function Um(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 LA=Object.freeze(Object.defineProperty({__proto__:null,default:Um},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 NA(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 FA(){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 T0={};function Nv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&T0[t[0]]||(typeof t[0]=="string"&&(T0[t[0]]=new Date),FA.apply(void 0,t))}var U1=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 C0(e,t,n){e.loadNamespaces(t,U1(e,n))}function E0(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,U1(e,r))}function jA(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 BA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Nv("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}}):jA(e,t,n)}var $A=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,VA={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},HA=function(t){return VA[t]},UA=function(t){return t.replace($A,HA)};function k0(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 O0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Fv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:UA};function WA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fv=O0(O0({},Fv),e)}function zA(){return Fv}var W1;function YA(e){W1=e}function GA(){return W1}var qA={type:"3rdParty",init:function(t){WA(t.options.react),YA(t)}},z1=Q.createContext(),XA=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 KA(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 ZA(e,t){return E1(e)||KA(e,t)||k1(e,t)||O1()}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 Ig(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}var JA=function(t,n){var r=Q.useRef();return Q.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function Y1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=Q.useContext(z1)||{},i=r.i18n,o=r.defaultNS,s=n||i||GA();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new XA),!s){Nv("You will need to pass in an i18next instance by using initReactI18next");var l=function(le,Qe){return typeof Qe=="string"?Qe:Qe&&Jo(Qe)==="object"&&typeof Qe.defaultValue=="string"?Qe.defaultValue:Array.isArray(le)?le[le.length-1]:le},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}s.options.react&&s.options.react.wait!==void 0&&Nv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=Ig(Ig(Ig({},zA()),s.options.react),t),v=d.useSuspense,p=d.keyPrefix,S=e||o||s.options&&s.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(S);var T=(s.isInitialized||s.initializedStoreOnce)&&S.every(function(ye){return BA(ye,s,d)});function _(){return s.getFixedT(t.lng||null,d.nsMode==="fallback"?S:S[0],p)}var R=Q.useState(_),L=ZA(R,2),I=L[0],U=L[1],Y=S.join();t.lng&&(Y="".concat(t.lng).concat(Y));var ne=JA(Y),J=Q.useRef(!0);Q.useEffect(function(){var ye=d.bindI18n,le=d.bindI18nStore;J.current=!0,!T&&!v&&(t.lng?E0(s,t.lng,S,function(){J.current&&U(_)}):C0(s,S,function(){J.current&&U(_)})),T&&ne&&ne!==Y&&J.current&&U(_);function Qe(){J.current&&U(_)}return ye&&s&&s.on(ye,Qe),le&&s&&s.store.on(le,Qe),function(){J.current=!1,ye&&s&&ye.split(" ").forEach(function(ze){return s.off(ze,Qe)}),le&&s&&le.split(" ").forEach(function(ze){return s.store.off(ze,Qe)})}},[s,Y]);var de=Q.useRef(!0);Q.useEffect(function(){J.current&&!de.current&&U(_),de.current=!1},[s,p]);var x=[I,s,T];if(x.t=I,x.i18n=s,x.ready=T,T||!T&&!v)return x;throw new Promise(function(ye){t.lng?E0(s,t.lng,S,function(){return ye()}):C0(s,S,function(){return ye()})})}function QA(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=Q.useMemo(function(){return{i18n:t,defaultNS:n}},[t,n]);return Q.createElement(z1.Provider,{value:i},r)}var G1=[],eM=G1.forEach,tM=G1.slice;function nM(e){return eM.call(tM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function rM(e){return e?typeof e=="function"?new e:e:null}function iM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function P0(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 q1=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=nM(i,this.options||{},iM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(s,l){r.backends[l]=r.backends[l]||rM(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,S=o.options.handleEmptyResourcesAsFailed&&!p?0:-1,T=o.backends[v];T.read?P0(T,n,r,function(_,R,L){if(!_&&R&&Object.keys(R).length>S){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&&P0(I,n,r,function(U,Y){U||Y&&(Object.keys(Y).length<=S||(c(v,Y),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,Y)))})}}else d(v+1)}):d(v+1)},c=function d(v,p){if(!(v<0)){var S=o.backends[v];S.save&&S.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 S=o.toResolveHierarchy(p);S.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(S,T){S&&s.warn("loading namespace ".concat(p," for language ").concat(v," failed"),S),!S&&T&&s.log("loaded namespace ".concat(p," for language ").concat(v),T),i.loaded("".concat(v,"|").concat(p),S,T)})})})}}}]),e}();q1.type="backend";function jv(e){"@babel/helpers - typeof";return jv=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},jv(e)}function X1(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":jv(XMLHttpRequest))==="object"}function oM(e){return!!e&&typeof e.then=="function"}function aM(e){return oM(e)?e:Promise.resolve(e)}function sM(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 Bv={exports:{}},ch={exports:{}},_0;function uM(){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(pe){return pe&&DataView.prototype.isPrototypeOf(pe)}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(pe){return pe&&v.indexOf(Object.prototype.toString.call(pe))>-1};function S(pe){if(typeof pe!="string"&&(pe=String(pe)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(pe)||pe==="")throw new TypeError('Invalid character in header field name: "'+pe+'"');return pe.toLowerCase()}function T(pe){return typeof pe!="string"&&(pe=String(pe)),pe}function _(pe){var De={next:function(){var Fe=pe.shift();return{done:Fe===void 0,value:Fe}}};return c.iterable&&(De[Symbol.iterator]=function(){return De}),De}function R(pe){this.map={},pe instanceof R?pe.forEach(function(De,Fe){this.append(Fe,De)},this):Array.isArray(pe)?pe.forEach(function(De){this.append(De[0],De[1])},this):pe&&Object.getOwnPropertyNames(pe).forEach(function(De){this.append(De,pe[De])},this)}R.prototype.append=function(pe,De){pe=S(pe),De=T(De);var Fe=this.map[pe];this.map[pe]=Fe?Fe+", "+De:De},R.prototype.delete=function(pe){delete this.map[S(pe)]},R.prototype.get=function(pe){return pe=S(pe),this.has(pe)?this.map[pe]:null},R.prototype.has=function(pe){return this.map.hasOwnProperty(S(pe))},R.prototype.set=function(pe,De){this.map[S(pe)]=T(De)},R.prototype.forEach=function(pe,De){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&pe.call(De,this.map[Fe],Fe,this)},R.prototype.keys=function(){var pe=[];return this.forEach(function(De,Fe){pe.push(Fe)}),_(pe)},R.prototype.values=function(){var pe=[];return this.forEach(function(De){pe.push(De)}),_(pe)},R.prototype.entries=function(){var pe=[];return this.forEach(function(De,Fe){pe.push([Fe,De])}),_(pe)},c.iterable&&(R.prototype[Symbol.iterator]=R.prototype.entries);function L(pe){if(pe.bodyUsed)return Promise.reject(new TypeError("Already read"));pe.bodyUsed=!0}function I(pe){return new Promise(function(De,Fe){pe.onload=function(){De(pe.result)},pe.onerror=function(){Fe(pe.error)}})}function U(pe){var De=new FileReader,Fe=I(De);return De.readAsArrayBuffer(pe),Fe}function Y(pe){var De=new FileReader,Fe=I(De);return De.readAsText(pe),Fe}function ne(pe){for(var De=new Uint8Array(pe),Fe=new Array(De.length),Je=0;Je<De.length;Je++)Fe[Je]=String.fromCharCode(De[Je]);return Fe.join("")}function J(pe){if(pe.slice)return pe.slice(0);var De=new Uint8Array(pe.byteLength);return De.set(new Uint8Array(pe)),De.buffer}function de(){return this.bodyUsed=!1,this._initBody=function(pe){this.bodyUsed=this.bodyUsed,this._bodyInit=pe,pe?typeof pe=="string"?this._bodyText=pe:c.blob&&Blob.prototype.isPrototypeOf(pe)?this._bodyBlob=pe:c.formData&&FormData.prototype.isPrototypeOf(pe)?this._bodyFormData=pe:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(pe)?this._bodyText=pe.toString():c.arrayBuffer&&c.blob&&d(pe)?(this._bodyArrayBuffer=J(pe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(pe)||p(pe))?this._bodyArrayBuffer=J(pe):this._bodyText=pe=Object.prototype.toString.call(pe):this._bodyText="",this.headers.get("content-type")||(typeof pe=="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(pe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var pe=L(this);if(pe)return pe;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 pe=L(this);return pe||(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 pe=L(this);if(pe)return pe;if(this._bodyBlob)return Y(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(ne(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(Qe)}),this.json=function(){return this.text().then(JSON.parse)},this}var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ye(pe){var De=pe.toUpperCase();return x.indexOf(De)>-1?De:pe}function le(pe,De){if(!(this instanceof le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');De=De||{};var Fe=De.body;if(pe instanceof le){if(pe.bodyUsed)throw new TypeError("Already read");this.url=pe.url,this.credentials=pe.credentials,De.headers||(this.headers=new R(pe.headers)),this.method=pe.method,this.mode=pe.mode,this.signal=pe.signal,!Fe&&pe._bodyInit!=null&&(Fe=pe._bodyInit,pe.bodyUsed=!0)}else this.url=String(pe);if(this.credentials=De.credentials||this.credentials||"same-origin",(De.headers||!this.headers)&&(this.headers=new R(De.headers)),this.method=ye(De.method||this.method||"GET"),this.mode=De.mode||this.mode||null,this.signal=De.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Fe),(this.method==="GET"||this.method==="HEAD")&&(De.cache==="no-store"||De.cache==="no-cache")){var Je=/([?&])_=[^&]*/;if(Je.test(this.url))this.url=this.url.replace(Je,"$1_="+new Date().getTime());else{var it=/\?/;this.url+=(it.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}le.prototype.clone=function(){return new le(this,{body:this._bodyInit})};function Qe(pe){var De=new FormData;return pe.trim().split("&").forEach(function(Fe){if(Fe){var Je=Fe.split("="),it=Je.shift().replace(/\+/g," "),Oe=Je.join("=").replace(/\+/g," ");De.append(decodeURIComponent(it),decodeURIComponent(Oe))}}),De}function ze(pe){var De=new R,Fe=pe.replace(/\r?\n[\t ]+/g," ");return Fe.split("\r").map(function(Je){return Je.indexOf(`
|
|
5
|
+
`)===0?Je.substr(1,Je.length):Je}).forEach(function(Je){var it=Je.split(":"),Oe=it.shift().trim();if(Oe){var xe=it.join(":").trim();De.append(Oe,xe)}}),De}de.call(le.prototype);function He(pe,De){if(!(this instanceof He))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');De||(De={}),this.type="default",this.status=De.status===void 0?200:De.status,this.ok=this.status>=200&&this.status<300,this.statusText=De.statusText===void 0?"":""+De.statusText,this.headers=new R(De.headers),this.url=De.url||"",this._initBody(pe)}de.call(He.prototype),He.prototype.clone=function(){return new He(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new R(this.headers),url:this.url})},He.error=function(){var pe=new He(null,{status:0,statusText:""});return pe.type="error",pe};var Ye=[301,302,303,307,308];He.redirect=function(pe,De){if(Ye.indexOf(De)===-1)throw new RangeError("Invalid status code");return new He(null,{status:De,headers:{location:pe}})},s.DOMException=l.DOMException;try{new s.DOMException}catch{s.DOMException=function(De,Fe){this.message=De,this.name=Fe;var Je=Error(De);this.stack=Je.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function et(pe,De){return new Promise(function(Fe,Je){var it=new le(pe,De);if(it.signal&&it.signal.aborted)return Je(new s.DOMException("Aborted","AbortError"));var Oe=new XMLHttpRequest;function xe(){Oe.abort()}Oe.onload=function(){var Ve={status:Oe.status,statusText:Oe.statusText,headers:ze(Oe.getAllResponseHeaders()||"")};Ve.url="responseURL"in Oe?Oe.responseURL:Ve.headers.get("X-Request-URL");var Re="response"in Oe?Oe.response:Oe.responseText;setTimeout(function(){Fe(new He(Re,Ve))},0)},Oe.onerror=function(){setTimeout(function(){Je(new TypeError("Network request failed"))},0)},Oe.ontimeout=function(){setTimeout(function(){Je(new TypeError("Network request failed"))},0)},Oe.onabort=function(){setTimeout(function(){Je(new s.DOMException("Aborted","AbortError"))},0)};function Ue(Ve){try{return Ve===""&&l.location.href?l.location.href:Ve}catch{return Ve}}Oe.open(it.method,Ue(it.url),!0),it.credentials==="include"?Oe.withCredentials=!0:it.credentials==="omit"&&(Oe.withCredentials=!1),"responseType"in Oe&&(c.blob?Oe.responseType="blob":c.arrayBuffer&&it.headers.get("Content-Type")&&it.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Oe.responseType="arraybuffer")),De&&typeof De.headers=="object"&&!(De.headers instanceof R)?Object.getOwnPropertyNames(De.headers).forEach(function(Ve){Oe.setRequestHeader(Ve,T(De.headers[Ve]))}):it.headers.forEach(function(Ve,Re){Oe.setRequestHeader(Re,Ve)}),it.signal&&(it.signal.addEventListener("abort",xe),Oe.onreadystatechange=function(){Oe.readyState===4&&it.signal.removeEventListener("abort",xe)}),Oe.send(typeof it._bodyInit>"u"?null:it._bodyInit)})}return et.polyfill=!0,l.fetch||(l.fetch=et,l.Headers=R,l.Request=le,l.Response=He),s.Headers=R,s.Request=le,s.Response=He,s.fetch=et,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(ch,ch.exports)),ch.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ko<"u"&&Ko.fetch?n=Ko.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof sM<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||uM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Bv,Bv.exports);var K1=Bv.exports;const Z1=Bc(K1),R0=kI({__proto__:null,default:Z1},[K1]);function I0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function A0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I0(Object(n),!0).forEach(function(r){lM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lM(e,t,n){return t=cM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cM(e){var t=fM(e,"string");return Rc(t)=="symbol"?t:String(t)}function fM(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 Du;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Du=global.fetch:typeof window<"u"&&window.fetch?Du=window.fetch:Du=fetch);var Td;X1()&&(typeof global<"u"&&global.XMLHttpRequest?Td=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Td=window.XMLHttpRequest));var tp;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?tp=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(tp=window.ActiveXObject));!Du&&R0&&!Td&&!tp&&(Du=Z1||R0);typeof Du!="function"&&(Du=void 0);var $v=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},M0=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):Du(t,n).then(o).catch(r)},L0=!1,dM=function(t,n,r,i){t.queryStringParams&&(n=$v(n,t.queryStringParams));var o=A0({},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=A0({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},L0?{}:s),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{M0(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]}),M0(n,l,i,c),L0=!0}catch(v){i(v)}}},hM=function(t,n,r,i){r&&Rc(r)==="object"&&(r=$v("",r).slice(1)),t.queryStringParams&&(n=$v(n,t.queryStringParams));try{var o;Td?o=new Td:o=new tp("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)}},pM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Du&&n.indexOf("file:")!==0)return dM(t,n,r,i);if(X1()||typeof ActiveXObject=="function")return hM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Cd(e){"@babel/helpers - typeof";return Cd=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},Cd(e)}function N0(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 Ag(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(n),!0).forEach(function(r){J1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F0(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,Q1(r.key),r)}}function vM(e,t,n){return t&&F0(e.prototype,t),n&&F0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function J1(e,t,n){return t=Q1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q1(e){var t=mM(e,"string");return Cd(t)=="symbol"?t:String(t)}function mM(e,t){if(Cd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yM=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 J1({},r,i||"")},parseLoadPayload:function(n,r){},request:pM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},eT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};gM(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return vM(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=Ag(Ag(Ag({},yM()),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=aM(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 S,T;try{typeof p.data=="string"?S=s.options.parse(p.data,i,o):S=p.data}catch{T="failed parsing "+n+" to json"}if(T)return r(T,!1);r(null,S)})}},{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(S){var T=l.options.addPath;typeof l.options.addPath=="function"&&(T=l.options.addPath(S,r));var _=l.services.interpolator.interpolate(T,{lng:S,ns:r});l.options.request(l.options,_,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 S=o.toResolveHierarchy(p);S.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(S,T){S&&s.warn("loading namespace ".concat(p," for language ").concat(v," failed"),S),!S&&T&&s.log("loaded namespace ".concat(p," for language ").concat(v),T),i.loaded("".concat(v,"|").concat(p),S,T)})})})}}}]),e}();eT.type="backend";var Wm=(e=>(e.en="en",e.de="de",e))(Wm||{});const bM={en:"English",de:"German"};li.use(q1).use(qA).use(H1).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(bM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[eT],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0,cacheHitMode:"refresh"}]}});const wM=e=>{const t=Sd.useQueryClient(),n=Q.useMemo(()=>e.axiosInstance||Ls,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Sd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account").then(i=>i.data)});return Q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user"])}},[t]),r},xM=e=>{const t=Sd.useQueryClient(),n=Q.useMemo(()=>e.axiosInstance||Ls,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Sd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return Q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user-permissions"])}},[t]),r},j0=window.location.href,zm=Q.createContext({}),SM=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=wM({axiosInstance:r,baseUrl:n}),s=xM({axiosInstance:r,baseUrl:n});function l(){const v=document.cookie.split(";");for(let p=0;p<v.length;p++){const S=v[p],T=S.indexOf("="),_=T>-1?S.substr(0,T):S;document.cookie=_+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}}function c(){window.location.href=`${i}/authentication/login?callbackUrl=${j0}`}function d(){l(),window.location.href=`${i}/authentication/logout?callbackUrl=${j0}`}return st.jsx(zm.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:d,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},TM=()=>Q.useContext(zm);function CM(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}function EM(){const[e,t]=Q.useState();return Q.useEffect(()=>{const n=localStorage.getItem("language");t(n||Wm.en)},[]),{language:e,setLanguage:t}}const tT=Q.createContext({}),kM=()=>Q.useContext(tT),OM=li,DM=_1,PM=()=>Y1(),_M=({children:e})=>{const t=EM();return st.jsx(tT.Provider,{value:t,children:st.jsx(QA,{i18n:li,children:e})})};var RM=typeof global=="object"&&global&&global.Object===Object&&global;const IM=RM;var AM=typeof self=="object"&&self&&self.Object===Object&&self,MM=IM||AM||Function("return this")();const nT=MM;var LM=nT.Symbol;const np=LM;var rT=Object.prototype,NM=rT.hasOwnProperty,FM=rT.toString,Qf=np?np.toStringTag:void 0;function jM(e){var t=NM.call(e,Qf),n=e[Qf];try{e[Qf]=void 0;var r=!0}catch{}var i=FM.call(e);return r&&(t?e[Qf]=n:delete e[Qf]),i}var BM=Object.prototype,$M=BM.toString;function VM(e){return $M.call(e)}var HM="[object Null]",UM="[object Undefined]",B0=np?np.toStringTag:void 0;function WM(e){return e==null?e===void 0?UM:HM:B0&&B0 in Object(e)?jM(e):VM(e)}function zM(e){return e!=null&&typeof e=="object"}var YM="[object Symbol]";function GM(e){return typeof e=="symbol"||zM(e)&&WM(e)==YM}var qM=/\s/;function XM(e){for(var t=e.length;t--&&qM.test(e.charAt(t)););return t}var KM=/^\s+/;function ZM(e){return e&&e.slice(0,XM(e)+1).replace(KM,"")}function rp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $0=0/0,JM=/^[-+]0x[0-9a-f]+$/i,QM=/^0b[01]+$/i,eL=/^0o[0-7]+$/i,tL=parseInt;function V0(e){if(typeof e=="number")return e;if(GM(e))return $0;if(rp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=rp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ZM(e);var n=QM.test(e);return n||eL.test(e)?tL(e.slice(2),n?2:8):JM.test(e)?$0:+e}var nL=function(){return nT.Date.now()};const Mg=nL;var rL="Expected a function",iL=Math.max,oL=Math.min;function Bh(e,t,n){var r,i,o,s,l,c,d=0,v=!1,p=!1,S=!0;if(typeof e!="function")throw new TypeError(rL);t=V0(t)||0,rp(n)&&(v=!!n.leading,p="maxWait"in n,o=p?iL(V0(n.maxWait)||0,t):o,S="trailing"in n?!!n.trailing:S);function T(de){var x=r,ye=i;return r=i=void 0,d=de,s=e.apply(ye,x),s}function _(de){return d=de,l=setTimeout(I,t),v?T(de):s}function R(de){var x=de-c,ye=de-d,le=t-x;return p?oL(le,o-ye):le}function L(de){var x=de-c,ye=de-d;return c===void 0||x>=t||x<0||p&&ye>=o}function I(){var de=Mg();if(L(de))return U(de);l=setTimeout(I,R(de))}function U(de){return l=void 0,S&&r?T(de):(r=i=void 0,s)}function Y(){l!==void 0&&clearTimeout(l),d=0,r=c=i=l=void 0}function ne(){return l===void 0?s:U(Mg())}function J(){var de=Mg(),x=L(de);if(r=arguments,i=this,c=de,x){if(l===void 0)return _(c);if(p)return clearTimeout(l),l=setTimeout(I,t),T(c)}return l===void 0&&(l=setTimeout(I,t)),s}return J.cancel=Y,J.flush=ne,J}var aL="Expected a function";function sL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(aL);return rp(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Bh(e,t,{leading:r,maxWait:t,trailing:i})}var uL=!!(typeof window<"u"&&window.document&&window.document.createElement),lL=uL;const iT=Bc(lL);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,H0=null;iT&&window.addEventListener("resize",function(){H0!==window.devicePixelRatio&&(H0=window.devicePixelRatio,yf=null)});function U0(){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 oT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function aT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var sT=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 uT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function lT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function cT(e){return".".concat(e.split(" ").join("."))}var cL=Object.freeze({__proto__:null,getElementWindow:oT,getElementDocument:aT,getOptions:sT,addClasses:uT,removeClasses:lT,classNamesToQuery:cT}),cl=oT,Lg=aT,fL=sT,fl=uT,dl=lT,Oo=cT,fh=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=cl(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,fl(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(){dl(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(fl(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){dl(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,S,T,_,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,Y=r.axis[r.draggedAxis].scrollbar,ne=(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 de=L-((S=(p=I.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].offsetAttr])!==null&&S!==void 0?S:0)-r.axis[r.draggedAxis].dragOffset;de=r.draggedAxis==="x"&&r.isRtl?((_=(T=I.rect)===null||T===void 0?void 0:T[r.axis[r.draggedAxis].sizeAttr])!==null&&_!==void 0?_:0)-Y.size-de:de;var x=de/(U-Y.size),ye=x*(ne-J);r.draggedAxis==="x"&&r.isRtl&&(ye=!((R=e.getRtlHelpers())===null||R===void 0)&&R.isScrollingToNegative?-ye:ye),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ye}},this.onEndDrag=function(i){var o=Lg(r.el),s=cl(r.el);i.preventDefault(),i.stopPropagation(),dl(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=sL(this._onMouseMove,64),this.onWindowResize=Bh(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Bh(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Bh(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:U0()}catch{return U0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Lg(t),i=cl(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){iT&&(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(Oo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Oo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Oo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Oo(this.classNames.offset)),this.maskEl=this.el.querySelector(Oo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Oo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Oo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Oo(this.classNames.scrollbar)))||null,this.options.autoHide||(fl(this.axis.x.scrollbar.el,this.classNames.visible),fl(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=cl(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=cl(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,S=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>o-S,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&&(fl(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&&(dl(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),fl(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?fl(n.scrollbar.el,this.classNames.hover):dl(n.scrollbar.el,this.classNames.hover)):(dl(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),dl(this.axis[t].track.el,this.classNames.hover),dl(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=Lg(this.el),o=cl(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,fl(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=cl(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,S=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],_=n==="y"?this.mouseY-p:this.mouseX-p,R=_<0?-1:1,L=R===-1?T-S:T+S,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=cl(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=fL,e.helpers=cL,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 dL(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 fT=Sn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=dL(e,["children","scrollableNodeProps"]),s=Sn.useRef(),l=Sn.useRef(),c=Sn.useRef(),d={},v={};Object.keys(o).forEach(function(T){Object.prototype.hasOwnProperty.call(fh.defaultOptions,T)?d[T]=o[T]:v[T]=o[T]});var p=Xo(Xo({},fh.defaultOptions.classNames),d.classNames),S=Xo(Xo({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||fh.defaultOptions.ariaLabel});return Sn.useEffect(function(){var T;return l.current=S.ref?S.ref.current:l.current,s.current&&(T=new fh(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({},S),{ref:l}),contentNodeRef:c,contentNodeProps:{className:p.contentEl,ref:c}}):Sn.createElement("div",Xo({},S),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})))});fT.displayName="SimpleBar";const hL=`[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 dT(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=dT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Eu(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=dT(e))&&(r&&(r+=" "),r+=t);return r}const Ed=e=>typeof e=="number"&&!isNaN(e),Oc=e=>typeof e=="string",Zo=e=>typeof e=="function",$h=e=>Oc(e)||Zo(e)?e:null,Vv=e=>Q.isValidElement(e)||Oc(e)||Zo(e)||Ed(e);function pL(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 Pp(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:S,playToast:T}=s;const _=r?`${t}--${c}`:t,R=r?`${n}--${c}`:n,L=Q.useRef(0);return Q.useLayoutEffect(()=>{const I=p.current,U=_.split(" "),Y=ne=>{ne.target===p.current&&(T(),I.removeEventListener("animationend",Y),I.removeEventListener("animationcancel",Y),L.current===0&&ne.type!=="animationcancel"&&I.classList.remove(...U))};I.classList.add(...U),I.addEventListener("animationend",Y),I.addEventListener("animationcancel",Y)},[]),Q.useEffect(()=>{const I=p.current,U=()=>{I.removeEventListener("animationend",U),i?pL(I,v,o):v()};S||(d?U():(L.current=1,I.className+=` ${R}`,I.addEventListener("animationend",U)))},[S]),Q.createElement(Q.Fragment,null,l)}}function W0(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 ao=new Map;let kd=[];const Hv=new Set,gL=e=>Hv.forEach(t=>t(e)),hT=()=>ao.size>0;function pT(e,t){var n;if(t)return!((n=ao.get(t))==null||!n.isToastActive(e));let r=!1;return ao.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function gT(e,t){Vv(e)&&(hT()||kd.push({content:e,options:t}),ao.forEach(n=>{n.buildToast(e,t)}))}function z0(e,t){ao.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 vL(e){const{subscribe:t,getSnapshot:n,setProps:r}=Q.useRef(function(o){const s=o.containerId||1;return{subscribe(l){const c=function(v,p,S){let T=1,_=0,R=[],L=[],I=[],U=p;const Y=new Map,ne=new Set,J=()=>{I=Array.from(Y.values()),ne.forEach(ye=>ye())},de=ye=>{L=ye==null?[]:L.filter(le=>le!==ye),J()},x=ye=>{const{toastId:le,onOpen:Qe,updateId:ze,children:He}=ye.props,Ye=ze==null;ye.staleId&&Y.delete(ye.staleId),Y.set(le,ye),L=[...L,ye.props.toastId].filter(et=>et!==ye.staleId),J(),S(W0(ye,Ye?"added":"updated")),Ye&&Zo(Qe)&&Qe(Q.isValidElement(He)&&He.props)};return{id:v,props:U,observe:ye=>(ne.add(ye),()=>ne.delete(ye)),toggle:(ye,le)=>{Y.forEach(Qe=>{le!=null&&le!==Qe.props.toastId||Zo(Qe.toggle)&&Qe.toggle(ye)})},removeToast:de,toasts:Y,clearQueue:()=>{_-=R.length,R=[]},buildToast:(ye,le)=>{if((Ue=>{let{containerId:Ve,toastId:Re,updateId:Me}=Ue;const Xe=Ve?Ve!==v:v!==1,lt=Y.has(Re)&&Me==null;return Xe||lt})(le))return;const{toastId:Qe,updateId:ze,data:He,staleId:Ye,delay:et}=le,pe=()=>{de(Qe)},De=ze==null;De&&_++;const Fe={...U,style:U.toastStyle,key:T++,...Object.fromEntries(Object.entries(le).filter(Ue=>{let[Ve,Re]=Ue;return Re!=null})),toastId:Qe,updateId:ze,data:He,closeToast:pe,isIn:!1,className:$h(le.className||U.toastClassName),bodyClassName:$h(le.bodyClassName||U.bodyClassName),progressClassName:$h(le.progressClassName||U.progressClassName),autoClose:!le.isLoading&&(Je=le.autoClose,it=U.autoClose,Je===!1||Ed(Je)&&Je>0?Je:it),deleteToast(){const Ue=Y.get(Qe),{onClose:Ve,children:Re}=Ue.props;Zo(Ve)&&Ve(Q.isValidElement(Re)&&Re.props),S(W0(Ue,"removed")),Y.delete(Qe),_--,_<0&&(_=0),R.length>0?x(R.shift()):J()}};var Je,it;Fe.closeButton=U.closeButton,le.closeButton===!1||Vv(le.closeButton)?Fe.closeButton=le.closeButton:le.closeButton===!0&&(Fe.closeButton=!Vv(U.closeButton)||U.closeButton);let Oe=ye;Q.isValidElement(ye)&&!Oc(ye.type)?Oe=Q.cloneElement(ye,{closeToast:pe,toastProps:Fe,data:He}):Zo(ye)&&(Oe=ye({closeToast:pe,toastProps:Fe,data:He}));const xe={content:Oe,props:Fe,staleId:Ye};U.limit&&U.limit>0&&_>U.limit&&De?R.push(xe):Ed(et)?setTimeout(()=>{x(xe)},et):x(xe)},setProps(ye){U=ye},setToggle:(ye,le)=>{Y.get(ye).toggle=le},isToastActive:ye=>L.some(le=>le===ye),getSnapshot:()=>U.newestOnTop?I.reverse():I}}(s,o,gL);ao.set(s,c);const d=c.observe(l);return kd.forEach(v=>gT(v.content,v.options)),kd=[],()=>{d(),ao.delete(s)}},setProps(l){var c;(c=ao.get(s))==null||c.setProps(l)},getSnapshot(){var l;return(l=ao.get(s))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const i=Q.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:pT,count:i==null?void 0:i.length}}function mL(e){const[t,n]=Q.useState(!1),[r,i]=Q.useState(!1),o=Q.useRef(null),s=Q.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:d,onClick:v,closeOnClick:p}=e;var S,T;function _(){n(!0)}function R(){n(!1)}function L(Y){const ne=o.current;s.canDrag&&ne&&(s.didMove=!0,t&&R(),s.delta=e.draggableDirection==="x"?Y.clientX-s.start:Y.clientY-s.start,s.start!==Y.clientX&&(s.canCloseOnClick=!1),ne.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,ne.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function I(){document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",I);const Y=o.current;if(s.canDrag&&s.didMove&&Y){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();Y.style.transition="transform 0.2s, opacity 0.2s",Y.style.removeProperty("transform"),Y.style.removeProperty("opacity")}}(T=ao.get((S={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||T.setToggle(S.id,S.fn),Q.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||R(),window.addEventListener("focus",_),window.addEventListener("blur",R),()=>{window.removeEventListener("focus",_),window.removeEventListener("blur",R)}},[e.pauseOnFocusLoss]);const U={onPointerDown:function(Y){if(e.draggable===!0||e.draggable===Y.pointerType){s.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",I);const ne=o.current;s.canCloseOnClick=!0,s.canDrag=!0,ne.style.transition="none",e.draggableDirection==="x"?(s.start=Y.clientX,s.removalDistance=ne.offsetWidth*(e.draggablePercent/100)):(s.start=Y.clientY,s.removalDistance=ne.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(Y){const{top:ne,bottom:J,left:de,right:x}=o.current.getBoundingClientRect();Y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&Y.clientX>=de&&Y.clientX<=x&&Y.clientY>=ne&&Y.clientY<=J?R():_()}};return l&&c&&(U.onMouseEnter=R,e.stacked||(U.onMouseLeave=_)),p&&(U.onClick=Y=>{v&&v(Y),s.canCloseOnClick&&d()}),{playToast:_,pauseToast:R,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:U}}function yL(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:S}=e;const T=o||c&&d===0,_={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(_.transform=`scaleX(${d})`);const R=Eu("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${S}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":v}),L=Zo(s)?s({rtl:v,type:i,defaultClassName:R}):Eu(R,s),I={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{p&&r()}};return Q.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":T},Q.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${S} Toastify__progress-bar--${i}`}),Q.createElement("div",{role:"progressbar","aria-hidden":T?"true":"false","aria-label":"notification timer",className:L,style:_,...I}))}let bL=1;const vT=()=>""+bL++;function wL(e){return e&&(Oc(e.toastId)||Ed(e.toastId))?e.toastId:vT()}function sd(e,t){return gT(e,t),t.toastId}function ip(e,t){return{...t,type:t&&t.type||e,toastId:wL(t)}}function dh(e){return(t,n)=>sd(t,ip(e,n))}function En(e,t){return sd(e,ip("default",t))}En.loading=(e,t)=>sd(e,ip("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,S)=>{if(p==null)return void En.dismiss(r);const T={type:v,...l,...n,data:S},_=Oc(p)?{render:p}:p;return r?En.update(r,{...T,..._}):En(_.render,{...T,..._}),S},d=Zo(e)?e():e;return d.then(v=>c("success",s,v)).catch(v=>c("error",o,v)),d},En.success=dh("success"),En.info=dh("info"),En.error=dh("error"),En.warning=dh("warning"),En.warn=En.warning,En.dark=(e,t)=>sd(e,ip("default",{theme:"dark",...t})),En.dismiss=function(e){(function(t){var n;if(hT()){if(t==null||Oc(n=t)||Ed(n))ao.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=ao.get(t.containerId))!=null&&r.removeToast(t.id)||ao.forEach(i=>{i.removeToast(t.id)})}}else kd=kd.filter(i=>t!=null&&i.options.toastId!==t)})(e)},En.clearWaitingQueue=function(e){e===void 0&&(e={}),ao.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},En.isActive=pT,En.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=ao.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:vT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,sd(s,o)}},En.done=e=>{En.update(e,{progress:1})},En.onChange=function(e){return Hv.add(e),()=>{Hv.delete(e)}},En.play=e=>z0(!0,e),En.pause=e=>z0(!1,e);const xL=typeof window<"u"?Q.useLayoutEffect:Q.useEffect,hh=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return Q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ng={info:function(e){return Q.createElement(hh,{...e},Q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Q.createElement(hh,{...e},Q.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Q.createElement(hh,{...e},Q.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Q.createElement(hh,{...e},Q.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Q.createElement("div",{className:"Toastify__spinner"})}},SL=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=mL(e),{closeButton:s,children:l,autoClose:c,onClick:d,type:v,hideProgressBar:p,closeToast:S,transition:T,position:_,className:R,style:L,bodyClassName:I,bodyStyle:U,progressClassName:Y,progressStyle:ne,updateId:J,role:de,progress:x,rtl:ye,toastId:le,deleteToast:Qe,isIn:ze,isLoading:He,closeOnClick:Ye,theme:et}=e,pe=Eu("Toastify__toast",`Toastify__toast-theme--${et}`,`Toastify__toast--${v}`,{"Toastify__toast--rtl":ye},{"Toastify__toast--close-on-click":Ye}),De=Zo(R)?R({rtl:ye,position:_,type:v,defaultClassName:pe}):Eu(pe,R),Fe=function(xe){let{theme:Ue,type:Ve,isLoading:Re,icon:Me}=xe,Xe=null;const lt={theme:Ue,type:Ve};return Me===!1||(Zo(Me)?Xe=Me({...lt,isLoading:Re}):Q.isValidElement(Me)?Xe=Q.cloneElement(Me,lt):Re?Xe=Ng.spinner():(mt=>mt in Ng)(Ve)&&(Xe=Ng[Ve](lt))),Xe}(e),Je=!!x||!c,it={closeToast:S,type:v,theme:et};let Oe=null;return s===!1||(Oe=Zo(s)?s(it):Q.isValidElement(s)?Q.cloneElement(s,it):function(xe){let{closeToast:Ue,theme:Ve,ariaLabel:Re="close"}=xe;return Q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ve}`,type:"button",onClick:Me=>{Me.stopPropagation(),Ue(Me)},"aria-label":Re},Q.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Q.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(it)),Q.createElement(T,{isIn:ze,done:Qe,position:_,preventExitTransition:n,nodeRef:r,playToast:o},Q.createElement("div",{id:le,onClick:d,"data-in":ze,className:De,...i,style:L,ref:r},Q.createElement("div",{...ze&&{role:de},className:Zo(I)?I({type:v}):Eu("Toastify__toast-body",I),style:U},Fe!=null&&Q.createElement("div",{className:Eu("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!He})},Fe),Q.createElement("div",null,l)),Oe,Q.createElement(yL,{...J&&!Je?{key:`pb-${J}`}:{},rtl:ye,theme:et,delay:c,isRunning:t,isIn:ze,closeToast:S,hide:p,type:v,style:ne,className:Y,controlledProgress:Je,progress:x||0})))},_p=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},TL=Pp(_p("bounce",!0));Pp(_p("slide",!0));Pp(_p("zoom"));Pp(_p("flip"));const CL={position:"top-right",transition:TL,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function EL(e){let t={...CL,...e};const n=e.stacked,[r,i]=Q.useState(!0),o=Q.useRef(null),{getToastToRender:s,isToastActive:l,count:c}=vL(t),{className:d,style:v,rtl:p,containerId:S}=t;function T(R){const L=Eu("Toastify__toast-container",`Toastify__toast-container--${R}`,{"Toastify__toast-container--rtl":p});return Zo(d)?d({position:R,rtl:p,defaultClassName:L}):Eu(L,$h(d))}function _(){n&&(i(!0),En.play())}return xL(()=>{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 Y=0,ne=0;Array.from(L).reverse().forEach((J,de)=>{const x=J;x.classList.add("Toastify__toast--stacked"),de>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=U?"top":"bot");const ye=Y*(r?.2:1)+(r?0:I*de);x.style.setProperty("--y",`${U?ye:-1*ye}px`),x.style.setProperty("--g",`${I}`),x.style.setProperty("--s",""+(1-(r?ne:0))),Y+=x.offsetHeight,ne+=.025})}},[r,c,n]),Q.createElement("div",{ref:o,className:"Toastify",id:S,onMouseEnter:()=>{n&&(i(!1),En.pause())},onMouseLeave:_},s((R,L)=>{const I=L.length?{...v}:{...v,pointerEvents:"none"};return Q.createElement("div",{className:T(R),style:I,key:`container-${R}`},L.map(U=>{let{content:Y,props:ne}=U;return Q.createElement(SL,{...ne,stacked:n,collapseAll:_,isIn:l(ne.toastId,ne.containerId),style:ne.style,key:`toast-${ne.key}`},Y)}))}))}function kL(){return st.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[st.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"}),st.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),st.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function OL(){return st.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[st.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),st.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function DL(){return st.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[st.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"}),st.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 Ym={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},PL=({closeToast:e})=>st.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:st.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:st.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"})})}),mT=e=>{En.success(e,{icon:st.jsx(OL,{}),bodyStyle:{},position:"bottom-right",style:{...Ym,background:so.successLight,borderColor:so.success,color:so.success}})},Rp=e=>{En.error(e,{icon:st.jsx(kL,{}),position:"bottom-right",style:{...Ym,background:so.dangerLight,borderColor:so.danger,color:so.danger}})},_L=e=>{En.error(e,{icon:st.jsx(DL,{}),position:"bottom-right",style:{...Ym,background:so.warningLight,borderColor:so.warning,color:so.warning}})},RL=e=>{En(e,{closeButton:PL,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:so.textPrimary}})},yT=Q.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ip=Q.createContext({}),Gm=Q.createContext(null),Ap=typeof document<"u",IL=Ap?Q.useLayoutEffect:Q.useEffect,bT=Q.createContext({strict:!1}),qm=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),AL="framerAppearId",wT="data-"+qm(AL);function ML(e,t,n,r){const{visualElement:i}=Q.useContext(Ip),o=Q.useContext(bT),s=Q.useContext(Gm),l=Q.useContext(yT).reducedMotion,c=Q.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;Q.useInsertionEffect(()=>{d&&d.update(n,s)});const v=Q.useRef(!!(n[wT]&&!window.HandoffComplete));return IL(()=>{d&&(d.render(),v.current&&d.animationState&&d.animationState.animateChanges())}),Q.useEffect(()=>{d&&(d.updateFeatures(),!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),d}function xf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function LL(e,t,n){return Q.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[t])}function Od(e){return typeof e=="string"||Array.isArray(e)}function Mp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Xm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Km=["initial",...Xm];function Lp(e){return Mp(e.animate)||Km.some(t=>Od(e[t]))}function xT(e){return!!(Lp(e)||e.variants)}function NL(e,t){if(Lp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Od(n)?n:void 0,animate:Od(r)?r:void 0}}return e.inherit!==!1?t:{}}function FL(e){const{initial:t,animate:n}=NL(e,Q.useContext(Ip));return Q.useMemo(()=>({initial:t,animate:n}),[Y0(t),Y0(n)])}function Y0(e){return Array.isArray(e)?e.join(" "):e}const G0={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"]},Dd={};for(const e in G0)Dd[e]={isEnabled:t=>G0[e].some(n=>!!t[n])};function jL(e){for(const t in e)Dd[t]={...Dd[t],...e[t]}}const ST=Q.createContext({}),TT=Q.createContext({}),BL=Symbol.for("motionComponentSymbol");function $L({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&jL(e);function o(l,c){let d;const v={...Q.useContext(yT),...l,layoutId:VL(l)},{isStatic:p}=v,S=FL(l),T=r(l,p);if(!p&&Ap){S.visualElement=ML(i,T,v,t);const _=Q.useContext(TT),R=Q.useContext(bT).strict;S.visualElement&&(d=S.visualElement.loadFeatures(v,R,e,_))}return Sn.createElement(Ip.Provider,{value:S},d&&S.visualElement?Sn.createElement(d,{visualElement:S.visualElement,...v}):null,n(i,l,LL(T,S.visualElement,c),T,p,S.visualElement))}const s=Q.forwardRef(o);return s[BL]=i,s}function VL({layoutId:e}){const t=Q.useContext(ST).id;return t&&e!==void 0?t+"-"+e:e}function HL(e){function t(r,i={}){return $L(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 UL=["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 Zm(e){return typeof e!="string"||e.includes("-")?!1:!!(UL.indexOf(e)>-1||/[A-Z]/.test(e))}const op={};function WL(e){Object.assign(op,e)}const $d=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$c=new Set($d);function CT(e,{layout:t,layoutId:n}){return $c.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!op[e]||e==="opacity")}const Do=e=>!!(e&&e.getVelocity),zL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YL=$d.length;function GL(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<YL;s++){const l=$d[s];if(e[l]!==void 0){const c=zL[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 ET=e=>t=>typeof t=="string"&&t.startsWith(e),kT=ET("--"),Uv=ET("var(--"),qL=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,XL=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Dl=(e,t,n)=>Math.min(Math.max(n,e),t),Vc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ud={...Vc,transform:e=>Dl(0,1,e)},ph={...Vc,default:1},ld=e=>Math.round(e*1e5)/1e5,Np=/(-)?([\d]*\.?[\d])+/g,OT=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,KL=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Vd(e){return typeof e=="string"}const Hd=e=>({test:t=>Vd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pl=Hd("deg"),Ns=Hd("%"),jt=Hd("px"),ZL=Hd("vh"),JL=Hd("vw"),q0={...Ns,parse:e=>Ns.parse(e)/100,transform:e=>Ns.transform(e*100)},X0={...Vc,transform:Math.round},DT={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:pl,rotateX:pl,rotateY:pl,rotateZ:pl,scale:ph,scaleX:ph,scaleY:ph,scaleZ:ph,skew:pl,skewX:pl,skewY:pl,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:ud,originX:q0,originY:q0,originZ:jt,zIndex:X0,fillOpacity:ud,strokeOpacity:ud,numOctaves:X0};function Jm(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 S=t[p];if(kT(p)){o[p]=S;continue}const T=DT[p],_=XL(S,T);if($c.has(p)){if(c=!0,s[p]=_,!v)continue;S!==(T.default||0)&&(v=!1)}else p.startsWith("origin")?(d=!0,l[p]=_):i[p]=_}if(t.transform||(c||r?i.transform=GL(e.transform,n,v,r):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:S="50%",originZ:T=0}=l;i.transformOrigin=`${p} ${S} ${T}`}}const Qm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function PT(e,t,n){for(const r in t)!Do(t[r])&&!CT(r,n)&&(e[r]=t[r])}function QL({transformTemplate:e},t,n){return Q.useMemo(()=>{const r=Qm();return Jm(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function e2(e,t,n){const r=e.style||{},i={};return PT(i,r,e),Object.assign(i,QL(e,t,n)),e.transformValues?e.transformValues(i):i}function t2(e,t,n){const r={},i=e2(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 n2=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 ap(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n2.has(e)}let _T=e=>!ap(e);function r2(e){e&&(_T=t=>t.startsWith("on")?!ap(t):e(t))}try{r2(require("@emotion/is-prop-valid").default)}catch{}function i2(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(_T(i)||n===!0&&ap(i)||!t&&!ap(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function K0(e,t,n){return typeof e=="string"?e:jt.transform(t+n*e)}function o2(e,t,n){const r=K0(t,e.x,e.width),i=K0(n,e.y,e.height);return`${r} ${i}`}const a2={offset:"stroke-dashoffset",array:"stroke-dasharray"},s2={offset:"strokeDashoffset",array:"strokeDasharray"};function u2(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?a2:s2;e[o.offset]=jt.transform(-r);const s=jt.transform(t),l=jt.transform(n);e[o.array]=`${s} ${l}`}function ey(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:c=0,...d},v,p,S){if(Jm(e,d,v,S),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:T,style:_,dimensions:R}=e;T.transform&&(R&&(_.transform=T.transform),delete T.transform),R&&(i!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=o2(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&&u2(T,s,l,c,!1)}const RT=()=>({...Qm(),attrs:{}}),ty=e=>typeof e=="string"&&e.toLowerCase()==="svg";function l2(e,t,n,r){const i=Q.useMemo(()=>{const o=RT();return ey(o,t,{enableHardwareAcceleration:!1},ty(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};PT(o,e.style,e),i.style={...o,...i.style}}return i}function c2(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(Zm(n)?l2:t2)(r,o,s,n),v={...i2(r,typeof n=="string",e),...c,ref:i},{children:p}=r,S=Q.useMemo(()=>Do(p)?p.get():p,[p]);return Q.createElement(n,{...v,children:S})}}function IT(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 AT=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 MT(e,t,n,r){IT(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(AT.has(i)?i:qm(i),t.attrs[i])}function ny(e,t){const{style:n}=e,r={};for(const i in n)(Do(n[i])||t.style&&Do(t.style[i])||CT(i,e))&&(r[i]=n[i]);return r}function LT(e,t){const n=ny(e,t);for(const r in e)if(Do(e[r])||Do(t[r])){const i=$d.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function ry(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 f2(e){const t=Q.useRef(null);return t.current===null&&(t.current=e()),t.current}const sp=e=>Array.isArray(e),d2=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),h2=e=>sp(e)?e[e.length-1]||0:e;function Vh(e){const t=Do(e)?e.get():e;return d2(t)?t.toValue():t}function p2({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:g2(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const NT=e=>(t,n)=>{const r=Q.useContext(Ip),i=Q.useContext(Gm),o=()=>p2(e,t,r,i);return n?o():f2(o)};function g2(e,t,n,r){const i={},o=r(e,{});for(const S in o)i[S]=Vh(o[S]);let{initial:s,animate:l}=e;const c=Lp(e),d=xT(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"&&!Mp(p)&&(Array.isArray(p)?p:[p]).forEach(T=>{const _=ry(e,T);if(!_)return;const{transitionEnd:R,transition:L,...I}=_;for(const U in I){let Y=I[U];if(Array.isArray(Y)){const ne=v?Y.length-1:0;Y=Y[ne]}Y!==null&&(i[U]=Y)}for(const U in R)i[U]=R[U]}),i}const lr=e=>e;class Z0{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 v2(e){let t=new Z0,n=new Z0,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,v=!1)=>{const p=v&&i,S=p?t:n;return d&&s.add(c),S.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 gh=["prepare","read","update","preRender","render","postRender"],m2=40;function y2(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=gh.reduce((p,S)=>(p[S]=v2(()=>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,m2),1),i.timestamp=p,i.isProcessing=!0,gh.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:gh.reduce((p,S)=>{const T=o[S];return p[S]=(_,R=!1,L=!1)=>(n||c(),T.schedule(_,R,L)),p},{}),cancel:p=>gh.forEach(S=>o[S].cancel(p)),state:i,steps:o}}const{schedule:Hn,cancel:Iu,state:Li,steps:Fg}=y2(typeof requestAnimationFrame<"u"?requestAnimationFrame:lr,!0),b2={useVisualState:NT({scrapeMotionValuesFromProps:LT,createRenderState:RT,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(()=>{ey(n,r,{enableHardwareAcceleration:!1},ty(t.tagName),e.transformTemplate),MT(t,n)})}})},w2={useVisualState:NT({scrapeMotionValuesFromProps:ny,createRenderState:Qm})};function x2(e,{forwardMotionProps:t=!1},n,r){return{...Zm(e)?b2:w2,preloadedFeatures:n,useRender:c2(t),createVisualElement:r,Component:e}}function ku(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const FT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Fp(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const S2=e=>t=>FT(t)&&e(t,Fp(t));function Pu(e,t,n,r){return ku(e,t,S2(n),r)}const T2=(e,t)=>n=>t(e(n)),Sl=(...e)=>e.reduce(T2);function jT(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const J0=jT("dragHorizontal"),Q0=jT("dragVertical");function BT(e){let t=!1;if(e==="y")t=Q0();else if(e==="x")t=J0();else{const n=J0(),r=Q0();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function $T(){const e=BT(!0);return e?(e(),!1):!0}class Il{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ew(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||$T())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Hn.update(()=>l[r](o,s))};return Pu(e.current,n,i,{passive:!e.getProps()[r]})}class C2 extends Il{mount(){this.unmount=Sl(ew(this.node,!0),ew(this.node,!1))}unmount(){}}class E2 extends Il{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=Sl(ku(this.node.current,"focus",()=>this.onFocus()),ku(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const VT=(e,t)=>t?e===t?!0:VT(e,t.parentElement):!1;function jg(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Fp(n))}class k2 extends Il{constructor(){super(...arguments),this.removeStartListeners=lr,this.removeEndListeners=lr,this.removeAccessibleListeners=lr,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Pu(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:v,globalTapTarget:p}=this.node.getProps();Hn.update(()=>{!p&&!VT(this.node.current,l.target)?v&&v(l,c):d&&d(l,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=Pu(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Sl(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()||jg("up",(c,d)=>{const{onTap:v}=this.node.getProps();v&&Hn.update(()=>v(c,d))})};this.removeEndListeners(),this.removeEndListeners=ku(this.node.current,"keyup",s),jg("down",(l,c)=>{this.startPress(l,c)})},n=ku(this.node.current,"keydown",t),r=()=>{this.isPressing&&jg("cancel",(o,s)=>this.cancelPress(o,s))},i=ku(this.node.current,"blur",r);this.removeAccessibleListeners=Sl(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),!$T()}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=Pu(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ku(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Sl(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Wv=new WeakMap,Bg=new WeakMap,O2=e=>{const t=Wv.get(e.target);t&&t(e)},D2=e=>{e.forEach(O2)};function P2({root:e,...t}){const n=e||document;Bg.has(n)||Bg.set(n,{});const r=Bg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(D2,{root:e,...t})),r[i]}function _2(e,t,n){const r=P2(t);return Wv.set(e,n),r.observe(e),()=>{Wv.delete(e),r.unobserve(e)}}const R2={some:0,all:1};class I2 extends Il{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:R2[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(),S=d?v:p;S&&S(c)};return _2(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(A2(t,n))&&this.startObserver()}unmount(){}}function A2({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const M2={inView:{Feature:I2},tap:{Feature:k2},focus:{Feature:E2},hover:{Feature:C2}};function HT(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 L2(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function N2(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function jp(e,t,n){const r=e.getProps();return ry(r,t,n!==void 0?n:r.custom,L2(e),N2(e))}let Ud=lr,is=lr;process.env.NODE_ENV!=="production"&&(Ud=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},is=(e,t)=>{if(!e)throw new Error(t)});const Tl=e=>e*1e3,_u=e=>e/1e3,F2={current:!1},UT=e=>Array.isArray(e)&&typeof e[0]=="number";function WT(e){return!!(!e||typeof e=="string"&&zT[e]||UT(e)||Array.isArray(e)&&e.every(WT))}const ad=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ad([0,.65,.55,1]),circOut:ad([.55,0,1,.45]),backIn:ad([.31,.01,.66,-.59]),backOut:ad([.33,1.53,.69,.99])};function YT(e){if(e)return UT(e)?ad(e):Array.isArray(e)?e.map(YT):zT[e]}function j2(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=YT(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 B2(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const GT=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$2=1e-7,V2=12;function H2(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=GT(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>$2&&++l<V2);return s}function Wd(e,t,n,r){if(e===t&&n===r)return lr;const i=o=>H2(o,0,1,e,n);return o=>o===0||o===1?o:GT(i(o),t,r)}const U2=Wd(.42,0,1,1),W2=Wd(0,0,.58,1),qT=Wd(.42,0,.58,1),z2=e=>Array.isArray(e)&&typeof e[0]!="number",XT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,KT=e=>t=>1-e(1-t),iy=e=>1-Math.sin(Math.acos(e)),ZT=KT(iy),Y2=XT(iy),JT=Wd(.33,1.53,.69,.99),oy=KT(JT),G2=XT(oy),q2=e=>(e*=2)<1?.5*oy(e):.5*(2-Math.pow(2,-10*(e-1))),tw={linear:lr,easeIn:U2,easeInOut:qT,easeOut:W2,circIn:iy,circInOut:Y2,circOut:ZT,backIn:oy,backInOut:G2,backOut:JT,anticipate:q2},nw=e=>{if(Array.isArray(e)){is(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Wd(t,n,r,i)}else if(typeof e=="string")return is(tw[e]!==void 0,`Invalid easing type '${e}'`),tw[e];return e},ay=(e,t)=>n=>!!(Vd(n)&&KL.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),QT=(e,t,n)=>r=>{if(!Vd(r))return r;const[i,o,s,l]=r.match(Np);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},X2=e=>Dl(0,255,e),$g={...Vc,transform:e=>Math.round(X2(e))},Cc={test:ay("rgb","red"),parse:QT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$g.transform(e)+", "+$g.transform(t)+", "+$g.transform(n)+", "+ld(ud.transform(r))+")"};function K2(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 zv={test:ay("#"),parse:K2,transform:Cc.transform},Sf={test:ay("hsl","hue"),parse:QT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ns.transform(ld(t))+", "+Ns.transform(ld(n))+", "+ld(ud.transform(r))+")"},ro={test:e=>Cc.test(e)||zv.test(e)||Sf.test(e),parse:e=>Cc.test(e)?Cc.parse(e):Sf.test(e)?Sf.parse(e):zv.parse(e),transform:e=>Vd(e)?e:e.hasOwnProperty("red")?Cc.transform(e):Sf.transform(e)},nr=(e,t,n)=>-n*e+n*t+e;function Vg(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 Z2({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=Vg(c,l,e+1/3),o=Vg(c,l,e),s=Vg(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Hg=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},J2=[zv,Cc,Sf],Q2=e=>J2.find(t=>t.test(e));function rw(e){const t=Q2(e);is(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Sf&&(n=Z2(n)),n}const eC=(e,t)=>{const n=rw(e),r=rw(t),i={...n};return o=>(i.red=Hg(n.red,r.red,o),i.green=Hg(n.green,r.green,o),i.blue=Hg(n.blue,r.blue,o),i.alpha=nr(n.alpha,r.alpha,o),Cc.transform(i))};function eN(e){var t,n;return isNaN(e)&&Vd(e)&&(((t=e.match(Np))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(OT))===null||n===void 0?void 0:n.length)||0)>0}const tC={regex:qL,countKey:"Vars",token:"${v}",parse:lr},nC={regex:OT,countKey:"Colors",token:"${c}",parse:ro.parse},rC={regex:Np,countKey:"Numbers",token:"${n}",parse:Vc.parse};function Ug(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 up(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Ug(n,tC),Ug(n,nC),Ug(n,rC),n}function iC(e){return up(e).values}function oC(e){const{values:t,numColors:n,numVars:r,tokenised:i}=up(e),o=t.length;return s=>{let l=i;for(let c=0;c<o;c++)c<r?l=l.replace(tC.token,s[c]):c<r+n?l=l.replace(nC.token,ro.transform(s[c])):l=l.replace(rC.token,ld(s[c]));return l}}const tN=e=>typeof e=="number"?0:e;function nN(e){const t=iC(e);return oC(e)(t.map(tN))}const Pl={test:eN,parse:iC,createTransformer:oC,getAnimatableNone:nN},aC=(e,t)=>n=>`${n>0?t:e}`;function sC(e,t){return typeof e=="number"?n=>nr(e,t,n):ro.test(e)?eC(e,t):e.startsWith("var(")?aC(e,t):lC(e,t)}const uC=(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}},rN=(e,t)=>{const n={...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}},lC=(e,t)=>{const n=Pl.createTransformer(t),r=up(e),i=up(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Sl(uC(r.values,i.values),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.`),aC(e,t))},Pd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},iw=(e,t)=>n=>nr(e,t,n);function iN(e){return typeof e=="number"?iw:typeof e=="string"?ro.test(e)?eC:lC:Array.isArray(e)?uC:typeof e=="object"?rN:iw}function oN(e,t,n){const r=[],i=n||iN(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]||lr:t;l=Sl(c,l)}r.push(l)}return r}function cC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(is(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=oN(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=Pd(e[v],e[v+1],d);return s[v](p)};return n?d=>c(Dl(e[0],e[o-1],d)):c}function aN(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Pd(0,t,r);e.push(nr(n,1,i))}}function sN(e){const t=[0];return aN(t,e.length-1),t}function uN(e,t){return e.map(n=>n*t)}function lN(e,t){return e.map(()=>t||qT).splice(0,e.length-1)}function lp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=z2(r)?r.map(nw):nw(r),o={done:!1,value:t[0]},s=uN(n&&n.length===t.length?n:sN(t),e),l=cC(s,t,{ease:Array.isArray(i)?i:lN(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}function fC(e,t){return t?e*(1e3/t):0}const cN=5;function dC(e,t,n){const r=Math.max(t-cN,0);return fC(n-e(r),t-r)}const Wg=.001,fN=.01,ow=10,dN=.05,hN=1;function pN({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Ud(e<=Tl(ow),"Spring duration must be 10 seconds or less");let s=1-t;s=Dl(dN,hN,s),e=Dl(fN,ow,_u(e)),s<1?(i=d=>{const v=d*s,p=v*e,S=v-n,T=Yv(d,s),_=Math.exp(-p);return Wg-S/T*_},o=d=>{const p=d*s*e,S=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-p),R=Yv(Math.pow(d,2),s);return(-i(d)+Wg>0?-1:1)*((S-T)*_)/R}):(i=d=>{const v=Math.exp(-d*e),p=(d-n)*e+1;return-Wg+v*p},o=d=>{const v=Math.exp(-d*e),p=(n-d)*(e*e);return v*p});const l=5/e,c=vN(i,o,l);if(e=Tl(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 gN=12;function vN(e,t,n){let r=n;for(let i=1;i<gN;i++)r=r-e(r)/t(r);return r}function Yv(e,t){return e*Math.sqrt(1-t*t)}const mN=["duration","bounce"],yN=["stiffness","damping","mass"];function aw(e,t){return t.some(n=>e[n]!==void 0)}function bN(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!aw(e,yN)&&aw(e,mN)){const n=pN(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function hC({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:S}=bN({...r,velocity:-_u(r.velocity||0)}),T=p||0,_=c/(2*Math.sqrt(l*d)),R=o-i,L=_u(Math.sqrt(l/d)),I=Math.abs(R)<5;n||(n=I?.01:2),t||(t=I?.005:.5);let U;if(_<1){const Y=Yv(L,_);U=ne=>{const J=Math.exp(-_*L*ne);return o-J*((T+_*L*R)/Y*Math.sin(Y*ne)+R*Math.cos(Y*ne))}}else if(_===1)U=Y=>o-Math.exp(-L*Y)*(R+(T+L*R)*Y);else{const Y=L*Math.sqrt(_*_-1);U=ne=>{const J=Math.exp(-_*L*ne),de=Math.min(Y*ne,300);return o-J*((T+_*L*R)*Math.sinh(de)+Y*R*Math.cosh(de))/Y}}return{calculatedDuration:S&&v||null,next:Y=>{const ne=U(Y);if(S)s.done=Y>=v;else{let J=T;Y!==0&&(_<1?J=dC(U,Y,ne):J=0);const de=Math.abs(J)<=n,x=Math.abs(o-ne)<=t;s.done=de&&x}return s.value=s.done?o:ne,s}}}function sw({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],S={done:!1,value:p},T=ye=>l!==void 0&&ye<l||c!==void 0&&ye>c,_=ye=>l===void 0?c:c===void 0||Math.abs(l-ye)<Math.abs(c-ye)?l:c;let R=n*t;const L=p+R,I=s===void 0?L:s(L);I!==L&&(R=I-p);const U=ye=>-R*Math.exp(-ye/r),Y=ye=>I+U(ye),ne=ye=>{const le=U(ye),Qe=Y(ye);S.done=Math.abs(le)<=d,S.value=S.done?I:Qe};let J,de;const x=ye=>{T(S.value)&&(J=ye,de=hC({keyframes:[S.value,_(S.value)],velocity:dC(Y,ye,S.value),damping:i,stiffness:o,restDelta:d,restSpeed:v}))};return x(0),{calculatedDuration:null,next:ye=>{let le=!1;return!de&&J===void 0&&(le=!0,ne(ye),x(ye)),J!==void 0&&ye>J?de.next(ye-J):(!le&&ne(ye),S)}}}const wN=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Hn.update(t,!0),stop:()=>Iu(t),now:()=>Li.isProcessing?Li.timestamp:performance.now()}},uw=2e4;function lw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<uw;)t+=n,r=e.next(t);return t>=uw?1/0:t}const xN={decay:sw,inertia:sw,tween:lp,keyframes:lp,spring:hC};function cp({autoplay:e=!0,delay:t=0,driver:n=wN,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:c,onStop:d,onComplete:v,onUpdate:p,...S}){let T=1,_=!1,R,L;const I=()=>{L=new Promise(xe=>{R=xe})};I();let U;const Y=xN[i]||lp;let ne;Y!==lp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&is(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),ne=cC([0,100],r,{clamp:!1}),r=[0,100]);const J=Y({...S,keyframes:r});let de;l==="mirror"&&(de=Y({...S,keyframes:[...r].reverse(),velocity:-(S.velocity||0)}));let x="idle",ye=null,le=null,Qe=null;J.calculatedDuration===null&&o&&(J.calculatedDuration=lw(J));const{calculatedDuration:ze}=J;let He=1/0,Ye=1/0;ze!==null&&(He=ze+s,Ye=He*(o+1)-s);let et=0;const pe=xe=>{if(le===null)return;T>0&&(le=Math.min(le,xe)),T<0&&(le=Math.min(xe-Ye/T,le)),ye!==null?et=ye:et=Math.round(xe-le)*T;const Ue=et-t*(T>=0?1:-1),Ve=T>=0?Ue<0:Ue>Ye;et=Math.max(Ue,0),x==="finished"&&ye===null&&(et=Ye);let Re=et,Me=J;if(o){const wt=Math.min(et,Ye)/He;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/He)):l==="mirror"&&(Me=de)),Re=Dl(0,1,Et)*He}const Xe=Ve?{done:!1,value:r[0]}:Me.next(Re);ne&&(Xe.value=ne(Xe.value));let{done:lt}=Xe;!Ve&&ze!==null&&(lt=T>=0?et>=Ye:et<=0);const mt=ye===null&&(x==="finished"||x==="running"&<);return p&&p(Xe.value),mt&&Je(),Xe},De=()=>{U&&U.stop(),U=void 0},Fe=()=>{x="idle",De(),R(),I(),le=Qe=null},Je=()=>{x="finished",v&&v(),De(),R()},it=()=>{if(_)return;U||(U=n(pe));const xe=U.now();c&&c(),ye!==null?le=xe-ye:(!le||x==="finished")&&(le=xe),x==="finished"&&I(),Qe=le,ye=null,x="running",U.start()};e&&it();const Oe={then(xe,Ue){return L.then(xe,Ue)},get time(){return _u(et)},set time(xe){xe=Tl(xe),et=xe,ye!==null||!U||T===0?ye=xe:le=U.now()-xe/T},get duration(){const xe=J.calculatedDuration===null?lw(J):J.calculatedDuration;return _u(xe)},get speed(){return T},set speed(xe){xe===T||!U||(T=xe,Oe.time=_u(et))},get state(){return x},play:it,pause:()=>{x="paused",ye=et},stop:()=>{_=!0,x!=="idle"&&(x="idle",d&&d(),Fe())},cancel:()=>{Qe!==null&&pe(Qe),Fe()},complete:()=>{x="finished"},sample:xe=>(le=0,pe(xe))};return Oe}function SN(e){let t;return()=>(t===void 0&&(t=e()),t)}const TN=SN(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),CN=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),vh=10,EN=2e4,kN=(e,t)=>t.type==="spring"||e==="backgroundColor"||!WT(t.ease);function ON(e,t,{onUpdate:n,onComplete:r,...i}){if(!(TN()&&CN.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(Y=>{l=Y})};v();let{keyframes:p,duration:S=300,ease:T,times:_}=i;if(kN(t,i)){const Y=cp({...i,repeat:0,delay:0});let ne={done:!1,value:p[0]};const J=[];let de=0;for(;!ne.done&&de<EN;)ne=Y.sample(de),J.push(ne.value),de+=vh;_=void 0,p=J,S=de-vh,T="linear"}const R=j2(e.owner.current,t,p,{...i,duration:S,ease:T,times:_}),L=()=>{d=!1,R.cancel()},I=()=>{d=!0,Hn.update(L),l(),v()};return R.onfinish=()=>{d||(e.set(B2(p,i)),r&&r(),I())},{then(Y,ne){return c.then(Y,ne)},attachTimeline(Y){return R.timeline=Y,R.onfinish=null,lr},get time(){return _u(R.currentTime||0)},set time(Y){R.currentTime=Tl(Y)},get speed(){return R.playbackRate},set speed(Y){R.playbackRate=Y},get duration(){return _u(S)},play:()=>{s||(R.play(),Iu(L))},pause:()=>R.pause(),stop:()=>{if(s=!0,R.playState==="idle")return;const{currentTime:Y}=R;if(Y){const ne=cp({...i,autoplay:!1});e.setWithVelocity(ne.sample(Y-vh).value,ne.sample(Y).value,vh)}I()},complete:()=>{d||R.finish()},cancel:I}}function DN({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:lr,pause:lr,stop:lr,then:o=>(o(),Promise.resolve()),cancel:lr,complete:lr});return t?cp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const PN={type:"spring",stiffness:500,damping:25,restSpeed:10},_N=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),RN={type:"keyframes",duration:.8},IN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AN=(e,{keyframes:t})=>t.length>2?RN:$c.has(e)?e.startsWith("scale")?_N(t[1]):PN:IN,Gv=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Pl.test(t)||t==="0")&&!t.startsWith("url(")),MN=new Set(["brightness","contrast","saturate","opacity"]);function LN(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Np)||[];if(!r)return e;const i=n.replace(r,"");let o=MN.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const NN=/([a-z-]*)\(.*?\)/g,qv={...Pl,getAnimatableNone:e=>{const t=e.match(NN);return t?t.map(LN).join(" "):e}},FN={...DT,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:qv,WebkitFilter:qv},sy=e=>FN[e];function pC(e,t){let n=sy(e);return n!==qv&&(n=Pl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gC=e=>/^0[^.\s]+$/.test(e);function jN(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||gC(e)}function BN(e,t,n,r){const i=Gv(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]),jN(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]=pC(t,l)}return o}function $N({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 uy(e,t){return e[t]||e.default||e}const VN={skipAnimations:!1},ly=(e,t,n,r={})=>i=>{const o=uy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Tl(s);const c=BN(t,e,n,o),d=c[0],v=c[c.length-1],p=Gv(e,d),S=Gv(e,v);Ud(p===S,`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:_=>{t.set(_),o.onUpdate&&o.onUpdate(_)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if($N(o)||(T={...T,...AN(e,T)}),T.duration&&(T.duration=Tl(T.duration)),T.repeatDelay&&(T.repeatDelay=Tl(T.repeatDelay)),!p||!S||F2.current||o.type===!1||VN.skipAnimations)return DN(T);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const _=ON(t,e,T);if(_)return _}return cp(T)};function fp(e){return!!(Do(e)&&e.add)}const vC=e=>/^\-?\d*\.?\d+$/.test(e);function cy(e,t){e.indexOf(t)===-1&&e.push(t)}function fy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let dy=class{constructor(){this.subscriptions=[]}add(t){return cy(this.subscriptions,t),()=>fy(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 cw=new Set;function hy(e,t,n){e||cw.has(t)||(console.warn(t),n&&console.warn(n),cw.add(t))}const HN=e=>!isNaN(parseFloat(e));let UN=class{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}=Li;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=HN(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&hy(!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 dy);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?fC(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 Rf(e,t){return new UN(e,t)}const mC=e=>t=>t.test(e),WN={test:e=>e==="auto",parse:e=>e},yC=[Vc,jt,Ns,pl,JL,ZL,WN],ed=e=>yC.find(mC(e)),zN=[...yC,ro,Pl],YN=e=>zN.find(mC(e));function GN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Rf(n))}function qN(e,t){const n=jp(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=h2(o[s]);GN(e,s,l)}}function XN(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"&&(vC(v)||gC(v))?v=parseFloat(v):!YN(v)&&Pl.test(d)&&(v=pC(c,d)),e.addValue(c,Rf(v,{owner:e})),n[c]===void 0&&(n[c]=v),v!==null&&e.setBaseTarget(c,v))}}function KN(e,t){return t?(t[e]||t.default||t).from:void 0}function ZN(e,t,n){const r={};for(const i in e){const o=KN(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function JN({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function QN(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 bC(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 S=e.getValue(p),T=l[p];if(!S||T===void 0||v&&JN(v,p))continue;const _={delay:n,elapsed:0,...uy(o||{},p)};if(window.HandoffAppearAnimations){const I=e.getProps()[wT];if(I){const U=window.HandoffAppearAnimations(I,p,S,Hn);U!==null&&(_.elapsed=U,_.isHandoff=!0)}}let R=!_.isHandoff&&!QN(S,T);if(_.type==="spring"&&(S.getVelocity()||_.velocity)&&(R=!1),S.animation&&(R=!1),R)continue;S.start(ly(p,S,T,e.shouldReduceMotion&&$c.has(p)?{type:!1}:_));const L=S.animation;fp(c)&&(c.add(p),L.then(()=>c.remove(p))),d.push(L)}return s&&Promise.all(d).then(()=>{s&&qN(e,s)}),d}function Xv(e,t,n={}){const r=jp(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(bC(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:v,staggerDirection:p}=i;return eF(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 eF(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(tF).forEach((d,v)=>{d.notify("AnimationStart",t),s.push(Xv(d,t,{...o,delay:n+c(v)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function tF(e,t){return e.sortNodePosition(t)}function nF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Xv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Xv(e,t,n);else{const i=typeof t=="function"?jp(e,t,n.custom):t;r=Promise.all(bC(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const rF=[...Xm].reverse(),iF=Xm.length;function oF(e){return t=>Promise.all(t.map(({animation:n,options:r})=>nF(e,n,r)))}function aF(e){let t=oF(e);const n=uF();let r=!0;const i=(c,d)=>{const v=jp(e,d);if(v){const{transition:p,transitionEnd:S,...T}=v;c={...c,...T,...S}}return c};function o(c){t=c(e)}function s(c,d){const v=e.getProps(),p=e.getVariantContext(!0)||{},S=[],T=new Set;let _={},R=1/0;for(let I=0;I<iF;I++){const U=rF[I],Y=n[U],ne=v[U]!==void 0?v[U]:p[U],J=Od(ne),de=U===d?Y.isActive:null;de===!1&&(R=I);let x=ne===p[U]&&ne!==v[U]&&J;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),Y.protectedKeys={..._},!Y.isActive&&de===null||!ne&&!Y.prevProp||Mp(ne)||typeof ne=="boolean")continue;let le=sF(Y.prevProp,ne)||U===d&&Y.isActive&&!x&&J||I>R&&J,Qe=!1;const ze=Array.isArray(ne)?ne:[ne];let He=ze.reduce(i,{});de===!1&&(He={});const{prevResolvedValues:Ye={}}=Y,et={...Ye,...He},pe=De=>{le=!0,T.has(De)&&(Qe=!0,T.delete(De)),Y.needsAnimating[De]=!0};for(const De in et){const Fe=He[De],Je=Ye[De];if(_.hasOwnProperty(De))continue;let it=!1;sp(Fe)&&sp(Je)?it=!HT(Fe,Je):it=Fe!==Je,it?Fe!==void 0?pe(De):T.add(De):Fe!==void 0&&T.has(De)?pe(De):Y.protectedKeys[De]=!0}Y.prevProp=ne,Y.prevResolvedValues=He,Y.isActive&&(_={..._,...He}),r&&e.blockInitialAnimation&&(le=!1),le&&(!x||Qe)&&S.push(...ze.map(De=>({animation:De,options:{type:U,...c}})))}if(T.size){const I={};T.forEach(U=>{const Y=e.getBaseTarget(U);Y!==void 0&&(I[U]=Y)}),S.push({animation:I})}let L=!!S.length;return r&&(v.initial===!1||v.initial===v.animate)&&!e.manuallyAnimateOnMount&&(L=!1),r=!1,L?t(S):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 _;return(_=T.animationState)===null||_===void 0?void 0:_.setActive(c,d)}),n[c].isActive=d;const S=s(v,c);for(const T in n)n[T].protectedKeys={};return S}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function sF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!HT(t,e):!1}function gc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uF(){return{animate:gc(!0),whileInView:gc(),whileHover:gc(),whileTap:gc(),whileDrag:gc(),whileFocus:gc(),exit:gc()}}class lF extends Il{constructor(t){super(t),t.animationState||(t.animationState=aF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Mp(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 cF=0;class fF extends Il{constructor(){super(...arguments),this.id=cF++}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 dF={animation:{Feature:lF},exit:{Feature:fF}},fw=(e,t)=>Math.abs(e-t);function hF(e,t){const n=fw(e.x,t.x),r=fw(e.y,t.y);return Math.sqrt(n**2+r**2)}let wC=class{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=Yg(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,T=hF(p.offset,{x:0,y:0})>=3;if(!S&&!T)return;const{point:_}=p,{timestamp:R}=Li;this.history.push({..._,timestamp:R});const{onStart:L,onMove:I}=this.handlers;S||(L&&L(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,p)},this.handlePointerMove=(p,S)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=zg(S,this.transformPagePoint),Hn.update(this.updatePoint,!0)},this.handlePointerUp=(p,S)=>{this.end();const{onEnd:T,onSessionEnd:_,resumeAnimation:R}=this.handlers;if(this.dragSnapToOrigin&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=Yg(p.type==="pointercancel"?this.lastMoveEventInfo:zg(S,this.transformPagePoint),this.history);this.startEvent&&T&&T(p,L),_&&_(p,L)},!FT(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Fp(t),l=zg(s,this.transformPagePoint),{point:c}=l,{timestamp:d}=Li;this.history=[{...c,timestamp:d}];const{onSessionStart:v}=n;v&&v(t,Yg(l,this.history)),this.removeListeners=Sl(Pu(this.contextWindow,"pointermove",this.handlePointerMove),Pu(this.contextWindow,"pointerup",this.handlePointerUp),Pu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Iu(this.updatePoint)}};function zg(e,t){return t?{point:t(e.point)}:e}function dw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yg({point:e},t){return{point:e,delta:dw(e,xC(t)),offset:dw(e,pF(t)),velocity:gF(t,.1)}}function pF(e){return e[0]}function xC(e){return e[e.length-1]}function gF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=xC(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Tl(t)));)n--;if(!r)return{x:0,y:0};const o=_u(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 Kv(e,t=0,n=.01){return Math.abs(e-t)<=n}function hw(e,t,n,r=.5){e.origin=r,e.originPoint=nr(t.min,t.max,e.origin),e.scale=ea(n)/ea(t),(Kv(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nr(n.min,n.max,e.origin)-e.originPoint,(Kv(e.translate)||isNaN(e.translate))&&(e.translate=0)}function cd(e,t,n,r){hw(e.x,t.x,n.x,r?r.originX:void 0),hw(e.y,t.y,n.y,r?r.originY:void 0)}function pw(e,t,n){e.min=n.min+t.min,e.max=e.min+ea(t)}function vF(e,t,n){pw(e.x,t.x,n.x),pw(e.y,t.y,n.y)}function gw(e,t,n){e.min=t.min-n.min,e.max=e.min+ea(t)}function fd(e,t,n){gw(e.x,t.x,n.x),gw(e.y,t.y,n.y)}function mF(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 vw(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 yF(e,{top:t,left:n,bottom:r,right:i}){return{x:vw(e.x,n,i),y:vw(e.y,t,r)}}function mw(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 bF(e,t){return{x:mw(e.x,t.x),y:mw(e.y,t.y)}}function wF(e,t){let n=.5;const r=ea(e),i=ea(t);return i>r?n=Pd(t.min,t.max-r,e.min):r>i&&(n=Pd(e.min,e.max-i,t.min)),Dl(0,1,n)}function xF(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 Zv=.35;function SF(e=Zv){return e===!1?e=0:e===!0&&(e=Zv),{x:yw(e,"left","right"),y:yw(e,"top","bottom")}}function yw(e,t,n){return{min:bw(e,t),max:bw(e,n)}}function bw(e,t){return typeof e=="number"?e:e[t]||0}const ww=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tf=()=>({x:ww(),y:ww()}),xw=()=>({min:0,max:0}),Dr=()=>({x:xw(),y:xw()});function Ea(e){return[e("x"),e("y")]}function SC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function TF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function CF(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 Gg(e){return e===void 0||e===1}function Jv({scale:e,scaleX:t,scaleY:n}){return!Gg(e)||!Gg(t)||!Gg(n)}function xc(e){return Jv(e)||TC(e)||e.z||e.rotate||e.rotateX||e.rotateY}function TC(e){return Sw(e.x)||Sw(e.y)}function Sw(e){return e&&e!=="0%"}function dp(e,t,n){const r=e-n,i=t*r;return n+i}function Tw(e,t,n,r,i){return i!==void 0&&(e=dp(e,i,r)),dp(e,n,r)+t}function Qv(e,t=0,n=1,r,i){e.min=Tw(e.min,t,n,r,i),e.max=Tw(e.max,t,n,r,i)}function CC(e,{x:t,y:n}){Qv(e.x,t.translate,t.scale,t.originPoint),Qv(e.y,n.translate,n.scale,n.originPoint)}function EF(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&&Cf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,CC(e,s)),r&&xc(o.latestValues)&&Cf(e,o.latestValues))}t.x=Cw(t.x),t.y=Cw(t.y)}function Cw(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ml(e,t){e.min=e.min+t,e.max=e.max+t}function Ew(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=nr(e.min,e.max,o);Qv(e,t[n],t[r],s,t.scale)}const kF=["x","scaleX","originX"],OF=["y","scaleY","originY"];function Cf(e,t){Ew(e.x,t,kF),Ew(e.y,t,OF)}function EC(e,t){return SC(CF(e.getBoundingClientRect(),t))}function DF(e,t,n){const r=EC(e,n),{scroll:i}=t;return i&&(ml(r.x,i.offset.x),ml(r.y,i.offset.y)),r}const kC=({current:e})=>e?e.ownerDocument.defaultView:null,PF=new WeakMap;let _F=class{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=Dr(),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(Fp(v,"page").point)},o=(v,p)=>{const{drag:S,dragPropagation:T,onDragStart:_}=this.getProps();if(S&&!T&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=BT(S),!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(Ns.test(I)){const{projection:U}=this.visualElement;if(U&&U.layout){const Y=U.layout.layoutBox[L];Y&&(I=ea(Y)*(parseFloat(I)/100))}}this.originPoint[L]=I}),_&&Hn.update(()=>_(v,p),!1,!0);const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},s=(v,p)=>{const{dragPropagation:S,dragDirectionLock:T,onDirectionLock:_,onDrag:R}=this.getProps();if(!S&&!this.openGlobalLock)return;const{offset:L}=p;if(T&&this.currentDirection===null){this.currentDirection=RF(L),this.currentDirection!==null&&_&&_(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 wC(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:kC(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||!mh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=mF(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&&xf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=yF(i.layoutBox,n):this.constraints=!1,this.elastic=SF(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ea(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=xF(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xf(t))return!1;const r=t.current;is(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=DF(r,i.root,this.visualElement.getTransformPagePoint());let s=bF(i.layout.layoutBox,o);if(n){const l=n(TF(s));this.hasMutatedConstraints=!!l,l&&(s=SC(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(!mh(v,n,this.currentDirection))return;let p=c&&c[v]||{};s&&(p={min:0,max:0});const S=i?200:1e6,T=i?40:1e7,_={type:"inertia",velocity:r?t[v]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(v,_)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(ly(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(!mh(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(!xf(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]=wF({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(!mh(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;PF.set(this.visualElement,this);const t=this.visualElement.current,n=Pu(t,"pointerdown",c=>{const{drag:d,dragListener:v=!0}=this.getProps();d&&v&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();xf(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=ku(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=Zv,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}};function mh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function RF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class IF extends Il{constructor(t){super(t),this.removeGroupControls=lr,this.removeListeners=lr,this.controls=new _F(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||lr}unmount(){this.removeGroupControls(),this.removeListeners()}}const kw=e=>(t,n)=>{e&&Hn.update(()=>e(t,n))};class AF extends Il{constructor(){super(...arguments),this.removePointerDownListener=lr}onPointerDown(t){this.session=new wC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:kw(t),onStart:kw(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Hn.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Pu(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 MF(){const e=Q.useContext(Gm);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=Q.useId();return Q.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Hh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ow(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const td={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(jt.test(e))e=parseFloat(e);else return e;const n=Ow(e,t.target.x),r=Ow(e,t.target.y);return`${n}% ${r}%`}},LF={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Pl.parse(e);if(i.length>5)return r;const o=Pl.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)}};let NF=class extends Q.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;WL(FF),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()})),Hh.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 OC(e){const[t,n]=MF(),r=Q.useContext(ST);return Q.createElement(NF,{...e,layoutGroup:r,switchLayoutGroup:Q.useContext(TT),isPresent:t,safeToRemove:n})}const FF={borderRadius:{...td,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:td,borderTopRightRadius:td,borderBottomLeftRadius:td,borderBottomRightRadius:td,boxShadow:LF},DC=["TopLeft","TopRight","BottomLeft","BottomRight"],jF=DC.length,Dw=e=>typeof e=="string"?parseFloat(e):e,Pw=e=>typeof e=="number"||jt.test(e);function BF(e,t,n,r,i,o){i?(e.opacity=nr(0,n.opacity!==void 0?n.opacity:1,$F(r)),e.opacityExit=nr(t.opacity!==void 0?t.opacity:1,0,VF(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<jF;s++){const l=`border${DC[s]}Radius`;let c=_w(t,l),d=_w(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Pw(c)===Pw(d)?(e[l]=Math.max(nr(Dw(c),Dw(d),r),0),(Ns.test(d)||Ns.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=nr(t.rotate||0,n.rotate||0,r))}function _w(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $F=PC(0,.5,ZT),VF=PC(.5,.95,lr);function PC(e,t,n){return r=>r<e?0:r>t?1:n(Pd(e,t,r))}function Rw(e,t){e.min=t.min,e.max=t.max}function xa(e,t){Rw(e.x,t.x),Rw(e.y,t.y)}function Iw(e,t,n,r,i){return e-=t,e=dp(e,1/n,r),i!==void 0&&(e=dp(e,1/i,r)),e}function HF(e,t=0,n=1,r=.5,i,o=e,s=e){if(Ns.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=Iw(e.min,t,n,l,i),e.max=Iw(e.max,t,n,l,i)}function Aw(e,t,[n,r,i],o,s){HF(e,t[n],t[r],t[i],t.scale,o,s)}const UF=["x","scaleX","originX"],WF=["y","scaleY","originY"];function Mw(e,t,n,r){Aw(e.x,t,UF,n?n.x:void 0,r?r.x:void 0),Aw(e.y,t,WF,n?n.y:void 0,r?r.y:void 0)}function Lw(e){return e.translate===0&&e.scale===1}function _C(e){return Lw(e.x)&&Lw(e.y)}function zF(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 RC(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 Nw(e){return ea(e.x)/ea(e.y)}let YF=class{constructor(){this.members=[]}add(t){cy(this.members,t),t.scheduleRender()}remove(t){if(fy(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 Fw(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 GF=(e,t)=>e.depth-t.depth;let qF=class{constructor(){this.children=[],this.isDirty=!1}add(t){cy(this.children,t),this.isDirty=!0}remove(t){fy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(GF),this.isDirty=!1,this.children.forEach(t)}};function XF(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Iu(r),e(o-t))};return Hn.read(r,!0),()=>Iu(r)}function KF(e){window.MotionDebug&&window.MotionDebug.record(e)}function ZF(e){return e instanceof SVGElement&&e.tagName!=="svg"}function JF(e,t,n){const r=Do(e)?e:Rf(e);return r.start(ly("",r,t,n)),r.animation}const jw=["","X","Y","Z"],QF={visibility:"hidden"},Bw=1e3;let ej=0;const Sc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function IC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=ej++,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,Sc.totalNodes=Sc.resolvedTargetDeltas=Sc.recalculatedProjection=0,this.nodes.forEach(rj),this.nodes.forEach(uj),this.nodes.forEach(lj),this.nodes.forEach(ij),KF(Sc)},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 qF)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new dy),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=ZF(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 S=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=XF(S,250),Hh.hasAnimatedSinceResize&&(Hh.hasAnimatedSinceResize=!1,this.nodes.forEach(Vw))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&v&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeTargetChanged:T,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||v.getDefaultTransition()||pj,{onLayoutAnimationStart:L,onLayoutAnimationComplete:I}=v.getProps(),U=!this.targetLayout||!RC(this.targetLayout,_)||T,Y=!S&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||Y||S&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,Y);const ne={...uy(R,"layout"),onPlay:L,onComplete:I};(v.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else S||Vw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}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,Iu(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(cj),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($w);return}this.isUpdating||this.nodes.forEach(aj),this.isUpdating=!1,this.nodes.forEach(sj),this.nodes.forEach(tj),this.nodes.forEach(nj),this.clearAllSnapshots();const l=performance.now();Li.delta=Dl(0,1e3/60,l-Li.timestamp),Li.timestamp=l,Li.isProcessing=!0,Fg.update.process(Li),Fg.preRender.process(Li),Fg.render.process(Li),Li.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(oj),this.sharedNodes.forEach(fj)}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=Dr(),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&&!_C(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,v=d!==this.prevTransformTemplateValue;s&&(l||xc(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)),gj(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Dr();const l=s.measureViewportBox(),{scroll:c}=this.root;return c&&(ml(l.x,c.offset.x),ml(l.y,c.offset.y)),l}removeElementScroll(s){const l=Dr();xa(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){xa(l,s);const{scroll:S}=this.root;S&&(ml(l.x,-S.offset.x),ml(l.y,-S.offset.y))}ml(l.x,v.offset.x),ml(l.y,v.offset.y)}}return l}applyTransform(s,l=!1){const c=Dr();xa(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&&Cf(c,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),xc(v.latestValues)&&Cf(c,v.latestValues)}return xc(this.latestValues)&&Cf(c,this.latestValues),c}removeTransform(s){const l=Dr();xa(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!xc(d.latestValues))continue;Jv(d.latestValues)&&d.updateSnapshot();const v=Dr(),p=d.measurePageBox();xa(v,p),Mw(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,v)}return xc(this.latestValues)&&Mw(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!==Li.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:S}=this.options;if(!(!this.layout||!(p||S))){if(this.resolvedRelativeTargetAt=Li.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dr(),this.relativeTargetOrigin=Dr(),fd(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),xa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Dr(),this.targetWithTransforms=Dr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xa(this.target,this.layout.layoutBox),CC(this.target,this.targetDelta)):xa(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=Dr(),this.relativeTargetOrigin=Dr(),fd(this.relativeTargetOrigin,this.target,T.target),xa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Sc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Jv(this.parent.latestValues)||TC(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===Li.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;xa(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,T=this.treeScale.y;EF(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:_}=l;if(!_){this.projectionTransform&&(this.projectionDelta=Tf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Tf(),this.projectionDeltaWithTransform=Tf());const R=this.projectionTransform;cd(this.projectionDelta,this.layoutCorrected,_,this.latestValues),this.projectionTransform=Fw(this.projectionDelta,this.treeScale),(this.projectionTransform!==R||this.treeScale.x!==S||this.treeScale.y!==T)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Sc.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=Tf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const S=Dr(),T=c?c.source:void 0,_=this.layout?this.layout.source:void 0,R=T!==_,L=this.getStack(),I=!L||L.members.length<=1,U=!!(R&&!I&&this.options.crossfade===!0&&!this.path.some(hj));this.animationProgress=0;let Y;this.mixTargetDelta=ne=>{const J=ne/1e3;Hw(p.x,s.x,J),Hw(p.y,s.y,J),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fd(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dj(this.relativeTarget,this.relativeTargetOrigin,S,J),Y&&zF(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=Dr()),xa(Y,this.relativeTarget)),R&&(this.animationValues=v,BF(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&&(Iu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Hn.update(()=>{Hh.hasAnimatedSinceResize=!0,this.currentAnimation=JF(0,Bw,{...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(Bw),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&&AC(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Dr();const p=ea(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+p;const S=ea(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+S}xa(l,c),Cf(l,v),cd(this.projectionDeltaWithTransform,this.layoutCorrected,l,v)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new YF),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<jw.length;v++){const p="rotate"+jw[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 QF;const d={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Vh(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=Vh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!xc(this.latestValues)&&(R.transform=v?v({},""):"none",this.hasProjected=!1),R}const S=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=Fw(this.projectionDeltaWithTransform,this.treeScale,S),v&&(d.transform=v(S,d.transform));const{x:T,y:_}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${_.origin*100}% 0`,p.animationValues?d.opacity=p===this?(c=(l=S.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:d.opacity=p===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const R in op){if(S[R]===void 0)continue;const{correct:L,applyTo:I}=op[R],U=d.transform==="none"?S[R]:L(S[R],p);if(I){const Y=I.length;for(let ne=0;ne<Y;ne++)d[I[ne]]=U}else d[R]=U}return this.options.layoutId&&(d.pointerEvents=p===this?Vh(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($w),this.root.sharedNodes.clear()}}}function tj(e){e.updateLayout()}function nj(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 S=s?n.measuredBox[p]:n.layoutBox[p],T=ea(S);S.min=r[p].min,S.max=S.min+T}):AC(o,n.layoutBox,r)&&Ea(p=>{const S=s?n.measuredBox[p]:n.layoutBox[p],T=ea(r[p]);S.max=S.min+T,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+T)});const l=Tf();cd(l,r,n.layoutBox);const c=Tf();s?cd(c,e.applyTransform(i,!0),n.measuredBox):cd(c,r,n.layoutBox);const d=!_C(l);let v=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:S,layout:T}=p;if(S&&T){const _=Dr();fd(_,n.layoutBox,S.layoutBox);const R=Dr();fd(R,r,T.layoutBox),RC(_,R)||(v=!0),p.options.layoutRoot&&(e.relativeTarget=R,e.relativeTargetOrigin=_,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 rj(e){Sc.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 ij(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oj(e){e.clearSnapshot()}function $w(e){e.clearMeasurements()}function aj(e){e.isLayoutDirty=!1}function sj(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Vw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uj(e){e.resolveTargetDelta()}function lj(e){e.calcProjection()}function cj(e){e.resetRotation()}function fj(e){e.removeLeadSnapshot()}function Hw(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 Uw(e,t,n,r){e.min=nr(t.min,n.min,r),e.max=nr(t.max,n.max,r)}function dj(e,t,n,r){Uw(e.x,t.x,n.x,r),Uw(e.y,t.y,n.y,r)}function hj(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pj={duration:.45,ease:[.4,0,.1,1]},Ww=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),zw=Ww("applewebkit/")&&!Ww("chrome/")?Math.round:lr;function Yw(e){e.min=zw(e.min),e.max=zw(e.max)}function gj(e){Yw(e.x),Yw(e.y)}function AC(e,t,n){return e==="position"||e==="preserve-aspect"&&!Kv(Nw(t),Nw(n),.2)}const vj=IC({attachResizeListener:(e,t)=>ku(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qg={current:void 0},MC=IC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qg.current){const e=new vj({});e.mount(window),e.setOptions({layoutScroll:!0}),qg.current=e}return qg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),mj={pan:{Feature:AF},drag:{Feature:IF,ProjectionNode:MC,MeasureLayout:OC}},yj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function bj(e){const t=yj.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const wj=4;function em(e,t,n=1){is(n<=wj,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=bj(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return vC(s)?parseFloat(s):s}else return Uv(i)?em(i,t,n+1):i}function xj(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(!Uv(o))return;const s=em(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Uv(o))continue;const s=em(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const Sj=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),LC=e=>Sj.has(e),Tj=e=>Object.keys(e).some(LC),yh=e=>e===Vc||e===jt,Gw=(e,t)=>parseFloat(e.split(", ")[t]),qw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Gw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?Gw(o[1],e):0}},Cj=new Set(["x","y","z"]),Ej=$d.filter(e=>!Cj.has(e));function kj(e){const t=[];return Ej.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 If={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:qw(4,13),y:qw(5,14)};If.translateX=If.x;If.translateY=If.y;const Oj=(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]=If[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]=If[d](c,o)}),e},Dj=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(LC);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=ed(v);const S=t[c];let T;if(sp(S)){const _=S.length,R=S[0]===null?1:0;v=S[R],p=ed(v);for(let L=R;L<_&&S[L]!==null;L++)T?is(ed(S[L])===T,"All keyframes must be of the same type"):(T=ed(S[L]),is(T===p||yh(p)&&yh(T),"Keyframes must be of the same dimension as the current value"))}else T=ed(S);if(p!==T)if(yh(p)&&yh(T)){const _=d.get();typeof _=="string"&&d.set(parseFloat(_)),typeof S=="string"?t[c]=parseFloat(S):Array.isArray(S)&&T===jt&&(t[c]=S.map(parseFloat))}else p!=null&&p.transform&&(T!=null&&T.transform)&&(v===0||S===0)?v===0?d.set(T.transform(v)):t[c]=p.transform(S):(s||(o=kj(e),s=!0),l.push(c),r[c]=r[c]!==void 0?r[c]:t[c],d.jump(S))}),l.length){const c=l.indexOf("height")>=0?window.pageYOffset:null,d=Oj(t,e,l);return o.length&&o.forEach(([v,p])=>{e.getValue(v).set(p)}),e.render(),Ap&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Pj(e,t,n,r){return Tj(t)?Dj(e,t,n,r):{target:t,transitionEnd:r}}const _j=(e,t,n,r)=>{const i=xj(e,t,r);return t=i.target,r=i.transitionEnd,Pj(e,t,n,r)},tm={current:null},NC={current:!1};function Rj(){if(NC.current=!0,!!Ap)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tm.current=e.matches;e.addListener(t),t()}else tm.current=!1}function Ij(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Do(o))e.addValue(i,o),fp(r)&&r.add(i),process.env.NODE_ENV==="development"&&hy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Do(s))e.addValue(i,Rf(o,{owner:e})),fp(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,Rf(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Xw=new WeakMap,FC=Object.keys(Dd),Aj=FC.length,Kw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Mj=Km.length;class Lj{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=Lp(n),this.isVariantNode=xT(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 S=v[p];l[p]!==void 0&&Do(S)&&(S.set(l[p],!1),fp(d)&&d.add(p))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Xw.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)),NC.current||Rj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:tm.current,process.env.NODE_ENV!=="production"&&hy(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(){Xw.delete(this.current),this.projection&&this.projection.unmount(),Iu(this.notifyUpdate),Iu(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=$c.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?Ud(!1,c):is(!1,c)}for(let c=0;c<Aj;c++){const d=FC[c],{isEnabled:v,Feature:p,ProjectionNode:S,MeasureLayout:T}=Dd[d];S&&(s=S),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:S,layoutRoot:T}=n;this.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!v||p&&xf(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,layoutScroll:S,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):Dr()}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<Kw.length;r++){const i=Kw[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=Ij(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<Mj;r++){const i=Km[r],o=this.props[i];(Od(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=Rf(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=ry(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&&!Do(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 dy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class jC extends Lj{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=ZN(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){XN(this,r,s);const l=_j(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function Nj(e){return window.getComputedStyle(e)}class Fj extends jC{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if($c.has(n)){const r=sy(n);return r&&r.default||0}else{const r=Nj(t),i=(kT(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return EC(t,n)}build(t,n,r,i){Jm(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return ny(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Do(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){IT(t,n,r,i)}}class jj extends jC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if($c.has(n)){const r=sy(n);return r&&r.default||0}return n=AT.has(n)?n:qm(n),t.getAttribute(n)}measureInstanceViewportBox(){return Dr()}scrapeMotionValuesFromProps(t,n){return LT(t,n)}build(t,n,r,i){ey(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){MT(t,n,r,i)}mount(t){this.isSVGTag=ty(t.tagName),super.mount(t)}}const Bj=(e,t)=>Zm(e)?new jj(t,{enableHardwareAcceleration:!1}):new Fj(t,{enableHardwareAcceleration:!0}),$j={layout:{ProjectionNode:MC,MeasureLayout:OC}},Vj={...dF,...M2,...mj,...$j},Hj=HL((e,t)=>x2(e,t,Vj,Bj));function Af(){return Af=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},Af.apply(this,arguments)}const Uj=Object.freeze(Object.defineProperty({__proto__:null,default:Af},Symbol.toStringTag,{value:"Module"}));function BC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xh(e,t)}var nm=function(e,t){return nm=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])},nm(e,t)};function $C(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var at=function(){return at=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},at.apply(this,arguments)};function _a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function 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))}/*!
|
|
7
|
+
* content-type
|
|
8
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
9
|
+
* MIT Licensed
|
|
10
|
+
*/var Zw=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Wj=/\\([\u000b\u0020-\u00ff])/g,zj=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Yj=Gj;function Gj(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?qj(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(!zj.test(r))throw new TypeError("invalid media type");var i=new Xj(r.toLowerCase());if(n!==-1){var o,s,l;for(Zw.lastIndex=n;s=Zw.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(Wj,"$1"))),i.parameters[o]=l}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function qj(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 Xj(e){this.parameters=Object.create(null),this.type=e}var bf=new Map,VC=function(t){return t.cloneNode(!0)},Jw=function(){return window.location.protocol==="file:"},HC=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=Yj(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(Jw()?"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||Jw()&&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()},bl={},Qw=function(t,n){bl[t]=bl[t]||[],bl[t].push(n)},Kj=function(t){for(var n=function(s,l){setTimeout(function(){if(Array.isArray(bl[t])){var c=bf.get(t),d=bl[t][s];c instanceof SVGSVGElement&&d(null,VC(c)),c instanceof Error&&d(c),s===bl[t].length-1&&delete bl[t]}},0)},r=0,i=bl[t].length;r<i;r++)n(r)},Zj=function(t,n,r){if(bf.has(t)){var i=bf.get(t);if(i===void 0){Qw(t,r);return}if(i instanceof SVGSVGElement){r(null,VC(i));return}}bf.set(t,void 0),Qw(t,r),HC(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),Kj(t)})},Jj=function(t,n,r){HC(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)})},Qj=0,eB=function(){return++Qj},_s=[],ex={},tB="http://www.w3.org/2000/svg",Xg="http://www.w3.org/1999/xlink",tx=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(_s.indexOf(t)!==-1){_s.splice(_s.indexOf(t),1),t=null;return}_s.push(t),t.setAttribute("src","");var d=i?Zj:Jj;d(c,o,function(v,p){if(!p){_s.splice(_s.indexOf(t),1),t=null,l(v);return}var S=t.getAttribute("id");S&&p.setAttribute("id",S);var T=t.getAttribute("title");T&&p.setAttribute("title",T);var _=t.getAttribute("width");_&&p.setAttribute("width",_);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(Je){return/^data-\w[\w-]*$/.test(Je.name)});if(Array.prototype.forEach.call(U,function(Je){Je.name&&Je.value&&p.setAttribute(Je.name,Je.value)}),r){var Y={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},ne,J,de,x,ye;Object.keys(Y).forEach(function(Je){ne=Je,de=Y[Je],J=p.querySelectorAll(ne+"[id]");for(var it=function(Ve,Re){x=J[Ve].id,ye=x+"-"+eB();var Me;Array.prototype.forEach.call(de,function($t){Me=p.querySelectorAll("["+$t+'*="'+x+'"]');for(var Ht=0,Xn=Me.length;Ht<Xn;Ht++){var br=Me[Ht].getAttribute($t);br&&!br.match(new RegExp('url\\("?#'+x+'"?\\)'))||Me[Ht].setAttribute($t,"url(#"+ye+")")}});for(var Xe=p.querySelectorAll("[*|href]"),lt=[],mt=0,wt=Xe.length;mt<wt;mt++){var vt=Xe[mt].getAttributeNS(Xg,"href");vt&&vt.toString()==="#"+J[Ve].id&<.push(Xe[mt])}for(var Et=0,ot=lt.length;Et<ot;Et++)lt[Et].setAttributeNS(Xg,"href","#"+ye);J[Ve].id=ye},Oe=0,xe=J.length;Oe<xe;Oe++)it(Oe)})}p.removeAttribute("xmlns:a");for(var le=p.querySelectorAll("script"),Qe=[],ze,He,Ye=0,et=le.length;Ye<et;Ye++)He=le[Ye].getAttribute("type"),(!He||He==="application/ecmascript"||He==="application/javascript"||He==="text/javascript")&&(ze=le[Ye].innerText||le[Ye].textContent,ze&&Qe.push(ze),p.removeChild(le[Ye]));if(Qe.length>0&&(n==="always"||n==="once"&&!ex[c])){for(var pe=0,De=Qe.length;pe<De;pe++)new Function(Qe[pe])(window);ex[c]=!0}var Fe=p.querySelectorAll("style");if(Array.prototype.forEach.call(Fe,function(Je){Je.textContent+=""}),p.setAttribute("xmlns",tB),p.setAttribute("xmlns:xlink",Xg),s(p),!t.parentNode){_s.splice(_s.indexOf(t),1),t=null,l(new Error("Parent node is null"));return}t.parentNode.replaceChild(p,t),_s.splice(_s.indexOf(t),1),t=null,l(null,p)})},nB=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,S=r.evalScripts,T=S===void 0?"never":S,_=r.httpRequestWithCredentials,R=_===void 0?!1:_,L=r.renumerateIRIElements,I=L===void 0?!0:L;if(t&&"length"in t)for(var U=0,Y=0,ne=t.length;Y<ne;Y++)tx(t[Y],T,I,p,R,d,function(J,de){l(J,de),t&&"length"in t&&t.length===++U&&o(U)});else t?tx(t,T,I,p,R,d,function(J,de){l(J,de),o(1),t=null}):o(0)},rm={exports:{}},bh={exports:{}},wn={};/** @license React v16.13.1
|
|
11
|
+
* react-is.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var nx;function rB(){if(nx)return wn;nx=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,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=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 Y(J){if(typeof J=="object"&&J!==null){var de=J.$$typeof;switch(de){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 _:case T:case s:return J;default:return de}}case n:return de}}}function ne(J){return Y(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=_,wn.Memo=T,wn.Portal=n,wn.Profiler=o,wn.StrictMode=i,wn.Suspense=p,wn.isAsyncMode=function(J){return ne(J)||Y(J)===c},wn.isConcurrentMode=ne,wn.isContextConsumer=function(J){return Y(J)===l},wn.isContextProvider=function(J){return Y(J)===s},wn.isElement=function(J){return typeof J=="object"&&J!==null&&J.$$typeof===t},wn.isForwardRef=function(J){return Y(J)===v},wn.isFragment=function(J){return Y(J)===r},wn.isLazy=function(J){return Y(J)===_},wn.isMemo=function(J){return Y(J)===T},wn.isPortal=function(J){return Y(J)===n},wn.isProfiler=function(J){return Y(J)===o},wn.isStrictMode=function(J){return Y(J)===i},wn.isSuspense=function(J){return Y(J)===p},wn.isValidElementType=function(J){return typeof J=="string"||typeof J=="function"||J===r||J===d||J===o||J===i||J===p||J===S||typeof J=="object"&&J!==null&&(J.$$typeof===_||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=Y,wn}var xn={};/** @license React v16.13.1
|
|
18
|
+
* react-is.development.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/var rx;function iB(){return rx||(rx=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,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=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 Y(ot){return typeof ot=="string"||typeof ot=="function"||ot===r||ot===d||ot===o||ot===i||ot===p||ot===S||typeof ot=="object"&&ot!==null&&(ot.$$typeof===_||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 ne(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 _:case T:case s:return Xn;default:return $t}}case n:return $t}}}var J=c,de=d,x=l,ye=s,le=t,Qe=v,ze=r,He=_,Ye=T,et=n,pe=o,De=i,Fe=p,Je=!1;function it(ot){return Je||(Je=!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.")),Oe(ot)||ne(ot)===c}function Oe(ot){return ne(ot)===d}function xe(ot){return ne(ot)===l}function Ue(ot){return ne(ot)===s}function Ve(ot){return typeof ot=="object"&&ot!==null&&ot.$$typeof===t}function Re(ot){return ne(ot)===v}function Me(ot){return ne(ot)===r}function Xe(ot){return ne(ot)===_}function lt(ot){return ne(ot)===T}function mt(ot){return ne(ot)===n}function wt(ot){return ne(ot)===o}function vt(ot){return ne(ot)===i}function Et(ot){return ne(ot)===p}xn.AsyncMode=J,xn.ConcurrentMode=de,xn.ContextConsumer=x,xn.ContextProvider=ye,xn.Element=le,xn.ForwardRef=Qe,xn.Fragment=ze,xn.Lazy=He,xn.Memo=Ye,xn.Portal=et,xn.Profiler=pe,xn.StrictMode=De,xn.Suspense=Fe,xn.isAsyncMode=it,xn.isConcurrentMode=Oe,xn.isContextConsumer=xe,xn.isContextProvider=Ue,xn.isElement=Ve,xn.isForwardRef=Re,xn.isFragment=Me,xn.isLazy=Xe,xn.isMemo=lt,xn.isPortal=mt,xn.isProfiler=wt,xn.isStrictMode=vt,xn.isSuspense=Et,xn.isValidElementType=Y,xn.typeOf=ne}()),xn}var ix;function UC(){return ix||(ix=1,process.env.NODE_ENV==="production"?bh.exports=rB():bh.exports=iB()),bh.exports}/*
|
|
25
|
+
object-assign
|
|
26
|
+
(c) Sindre Sorhus
|
|
27
|
+
@license MIT
|
|
28
|
+
*/var Kg,ox;function oB(){if(ox)return Kg;ox=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 Kg=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 S=0;S<d.length;S++)n.call(l,d[S])&&(c[d[S]]=l[d[S]])}}return c},Kg}var Zg,ax;function py(){if(ax)return Zg;ax=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zg=e,Zg}var Jg,sx;function WC(){return sx||(sx=1,Jg=Function.call.bind(Object.prototype.hasOwnProperty)),Jg}var Qg,ux;function aB(){if(ux)return Qg;ux=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=py(),n={},r=WC();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 S=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 S.name="Invariant Violation",S}p=o[v](s,v,c,l,null,t)}catch(_){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={})},Qg=i,Qg}var ev,lx;function sB(){if(lx)return ev;lx=1;var e=UC(),t=oB(),n=py(),r=WC(),i=aB(),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 ev=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function p(Oe){var xe=Oe&&(d&&Oe[d]||Oe[v]);if(typeof xe=="function")return xe}var S="<<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:Y,element:ne(),elementType:J(),instanceOf:de,node:Qe(),objectOf:ye,oneOf:x,oneOfType:le,shape:He,exact:Ye};function _(Oe,xe){return Oe===xe?Oe!==0||1/Oe===1/xe:Oe!==Oe&&xe!==xe}function R(Oe,xe){this.message=Oe,this.data=xe&&typeof xe=="object"?xe:{},this.stack=""}R.prototype=Error.prototype;function L(Oe){if(process.env.NODE_ENV!=="production")var xe={},Ue=0;function Ve(Me,Xe,lt,mt,wt,vt,Et){if(mt=mt||S,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;!xe[$t]&&Ue<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."),xe[$t]=!0,Ue++)}}return Xe[lt]==null?Me?Xe[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:Oe(Xe,lt,mt,wt,vt)}var Re=Ve.bind(null,!1);return Re.isRequired=Ve.bind(null,!0),Re}function I(Oe){function xe(Ue,Ve,Re,Me,Xe,lt){var mt=Ue[Ve],wt=De(mt);if(wt!==Oe){var vt=Fe(mt);return new R("Invalid "+Me+" `"+Xe+"` of type "+("`"+vt+"` supplied to `"+Re+"`, expected ")+("`"+Oe+"`."),{expectedType:Oe})}return null}return L(xe)}function U(){return L(s)}function Y(Oe){function xe(Ue,Ve,Re,Me,Xe){if(typeof Oe!="function")return new R("Property `"+Xe+"` of component `"+Re+"` has invalid PropType notation inside arrayOf.");var lt=Ue[Ve];if(!Array.isArray(lt)){var mt=De(lt);return new R("Invalid "+Me+" `"+Xe+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an array."))}for(var wt=0;wt<lt.length;wt++){var vt=Oe(lt,wt,Re,Me,Xe+"["+wt+"]",n);if(vt instanceof Error)return vt}return null}return L(xe)}function ne(){function Oe(xe,Ue,Ve,Re,Me){var Xe=xe[Ue];if(!l(Xe)){var lt=De(Xe);return new R("Invalid "+Re+" `"+Me+"` of type "+("`"+lt+"` supplied to `"+Ve+"`, expected a single ReactElement."))}return null}return L(Oe)}function J(){function Oe(xe,Ue,Ve,Re,Me){var Xe=xe[Ue];if(!e.isValidElementType(Xe)){var lt=De(Xe);return new R("Invalid "+Re+" `"+Me+"` of type "+("`"+lt+"` supplied to `"+Ve+"`, expected a single ReactElement type."))}return null}return L(Oe)}function de(Oe){function xe(Ue,Ve,Re,Me,Xe){if(!(Ue[Ve]instanceof Oe)){var lt=Oe.name||S,mt=it(Ue[Ve]);return new R("Invalid "+Me+" `"+Xe+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected ")+("instance of `"+lt+"`."))}return null}return L(xe)}function x(Oe){if(!Array.isArray(Oe))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 xe(Ue,Ve,Re,Me,Xe){for(var lt=Ue[Ve],mt=0;mt<Oe.length;mt++)if(_(lt,Oe[mt]))return null;var wt=JSON.stringify(Oe,function(Et,ot){var $t=Fe(ot);return $t==="symbol"?String(ot):ot});return new R("Invalid "+Me+" `"+Xe+"` of value `"+String(lt)+"` "+("supplied to `"+Re+"`, expected one of "+wt+"."))}return L(xe)}function ye(Oe){function xe(Ue,Ve,Re,Me,Xe){if(typeof Oe!="function")return new R("Property `"+Xe+"` of component `"+Re+"` has invalid PropType notation inside objectOf.");var lt=Ue[Ve],mt=De(lt);if(mt!=="object")return new R("Invalid "+Me+" `"+Xe+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an object."));for(var wt in lt)if(r(lt,wt)){var vt=Oe(lt,wt,Re,Me,Xe+"."+wt,n);if(vt instanceof Error)return vt}return null}return L(xe)}function le(Oe){if(!Array.isArray(Oe))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var xe=0;xe<Oe.length;xe++){var Ue=Oe[xe];if(typeof Ue!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Je(Ue)+" at index "+xe+"."),s}function Ve(Re,Me,Xe,lt,mt){for(var wt=[],vt=0;vt<Oe.length;vt++){var Et=Oe[vt],ot=Et(Re,Me,Xe,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 "+("`"+Xe+"`"+$t+"."))}return L(Ve)}function Qe(){function Oe(xe,Ue,Ve,Re,Me){return et(xe[Ue])?null:new R("Invalid "+Re+" `"+Me+"` supplied to "+("`"+Ve+"`, expected a ReactNode."))}return L(Oe)}function ze(Oe,xe,Ue,Ve,Re){return new R((Oe||"React class")+": "+xe+" type `"+Ue+"."+Ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Re+"`.")}function He(Oe){function xe(Ue,Ve,Re,Me,Xe){var lt=Ue[Ve],mt=De(lt);if(mt!=="object")return new R("Invalid "+Me+" `"+Xe+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));for(var wt in Oe){var vt=Oe[wt];if(typeof vt!="function")return ze(Re,Me,Xe,wt,Fe(vt));var Et=vt(lt,wt,Re,Me,Xe+"."+wt,n);if(Et)return Et}return null}return L(xe)}function Ye(Oe){function xe(Ue,Ve,Re,Me,Xe){var lt=Ue[Ve],mt=De(lt);if(mt!=="object")return new R("Invalid "+Me+" `"+Xe+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));var wt=t({},Ue[Ve],Oe);for(var vt in wt){var Et=Oe[vt];if(r(Oe,vt)&&typeof Et!="function")return ze(Re,Me,Xe,vt,Fe(Et));if(!Et)return new R("Invalid "+Me+" `"+Xe+"` key `"+vt+"` supplied to `"+Re+"`.\nBad object: "+JSON.stringify(Ue[Ve],null," ")+`
|
|
29
|
+
Valid keys: `+JSON.stringify(Object.keys(Oe),null," "));var ot=Et(lt,vt,Re,Me,Xe+"."+vt,n);if(ot)return ot}return null}return L(xe)}function et(Oe){switch(typeof Oe){case"number":case"string":case"undefined":return!0;case"boolean":return!Oe;case"object":if(Array.isArray(Oe))return Oe.every(et);if(Oe===null||l(Oe))return!0;var xe=p(Oe);if(xe){var Ue=xe.call(Oe),Ve;if(xe!==Oe.entries){for(;!(Ve=Ue.next()).done;)if(!et(Ve.value))return!1}else for(;!(Ve=Ue.next()).done;){var Re=Ve.value;if(Re&&!et(Re[1]))return!1}}else return!1;return!0;default:return!1}}function pe(Oe,xe){return Oe==="symbol"?!0:xe?xe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&xe instanceof Symbol:!1}function De(Oe){var xe=typeof Oe;return Array.isArray(Oe)?"array":Oe instanceof RegExp?"object":pe(xe,Oe)?"symbol":xe}function Fe(Oe){if(typeof Oe>"u"||Oe===null)return""+Oe;var xe=De(Oe);if(xe==="object"){if(Oe instanceof Date)return"date";if(Oe instanceof RegExp)return"regexp"}return xe}function Je(Oe){var xe=Fe(Oe);switch(xe){case"array":case"object":return"an "+xe;case"boolean":case"date":case"regexp":return"a "+xe;default:return xe}}function it(Oe){return!Oe.constructor||!Oe.constructor.name?S:Oe.constructor.name}return T.checkPropTypes=i,T.resetWarningCache=i.resetWarningCache,T.PropTypes=T,T},ev}var tv,cx;function uB(){if(cx)return tv;cx=1;var e=py();function t(){}function n(){}return n.resetWarningCache=t,tv=function(){function r(s,l,c,d,v,p){if(p!==e){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}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},tv}if(process.env.NODE_ENV!=="production"){var lB=UC(),cB=!0;rm.exports=sB()(lB.isElement,cB)}else rm.exports=uB()();var Or=rm.exports;const ka=Bc(Or);var fB=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},dB=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},hB=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],wh="http://www.w3.org/2000/svg",fx="http://www.w3.org/1999/xlink",gy=function(e){BC(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 fB(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,S=o.useRequestCache,T=this.props.onError,_=this.props.beforeInjection,R=this.props.afterInjection,L=this.props.wrapper,I,U;L==="svg"?(I=document.createElementNS(wh,L),I.setAttribute("xmlns",wh),I.setAttribute("xmlns:xlink",fx),U=document.createElementNS(wh,L)):(I=document.createElement(L),U=document.createElement(L)),I.appendChild(U),U.dataset.src=v,this.nonReactWrapper=this.reactWrapper.appendChild(I);var Y=function(x){if(i.removeSVG(),!i._isMounted){T(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){T(x)})},ne=function(x,ye){if(x){Y(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{R(ye)}catch(le){Y(le)}})},J=function(x){if(x.setAttribute("role","img"),s){var ye=x.querySelector(":scope > desc");ye&&x.removeChild(ye);var le=document.createElement("desc");le.innerHTML=s,x.prepend(le)}if(p){var Qe=x.querySelector(":scope > title");Qe&&x.removeChild(Qe);var ze=document.createElement("title");ze.innerHTML=p,x.prepend(ze)}try{_(x)}catch(He){Y(He)}};nB(U,{afterEach:ne,beforeEach:J,cacheRequests:S,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;dB(Af({},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=Um(i,hB),d=l;return Sn.createElement(d,Af({},c,{ref:this.refCallback},l==="svg"?{xmlns:wh,xmlnsXlink:fx}:{}),this.state.isLoading&&s&&Sn.createElement(s,null),this.state.hasError&&o&&Sn.createElement(o,null))},t}(Sn.Component);gy.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};gy.propTypes={afterInjection:Or.func,beforeInjection:Or.func,desc:Or.string,evalScripts:Or.oneOf(["always","once","never"]),fallback:Or.oneOfType([Or.func,Or.object,Or.string]),httpRequestWithCredentials:Or.bool,loading:Or.oneOfType([Or.func,Or.object,Or.string]),onError:Or.func,renumerateIRIElements:Or.bool,src:Or.string.isRequired,title:Or.string,useRequestCache:Or.bool,wrapper:Or.oneOf(["div","span","svg"])};function pB(e){return st.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:st.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 gB(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=Q.useState({top:0,left:0}),s=Q.useRef(null),[l,c]=Q.useState("auto");return Q.useLayoutEffect(()=>{if(n.current&&s.current){const d=n.current.getBoundingClientRect(),v=s.current.getBoundingClientRect();let p=d.top;const S=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:S})}},[n,s]),r?t({maxHeight:l}):S1.createPortal(st.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 zC(e,t){return t?e:void 0}function vB(e){return Dp({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 mB(e){return Dp({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 YC(e){let t=null;return()=>(t==null&&(t=e()),t)}function yB(e,t){return e.filter(n=>n!==t)}function bB(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 wB{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=bB(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=yB(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class xB{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 GC="__NATIVE_FILE__",qC="__NATIVE_URL__",XC="__NATIVE_TEXT__",KC="__NATIVE_HTML__",dx=Object.freeze(Object.defineProperty({__proto__:null,FILE:GC,HTML:KC,TEXT:XC,URL:qC},Symbol.toStringTag,{value:"Module"}));function nv(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const im={[GC]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[KC]:{exposeProperties:{html:(e,t)=>nv(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[qC]:{exposeProperties:{urls:(e,t)=>nv(e,t,"").split(`
|
|
30
|
+
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[XC]:{exposeProperties:{text:(e,t)=>nv(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function SB(e,t){const n=im[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new xB(n);return r.loadDataTransfer(t),r}function rv(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(im).filter(n=>{const r=im[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const TB=YC(()=>/firefox/i.test(navigator.userAgent)),ZC=YC(()=>!!window.safari);class hx{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],S=p*p;return r[l]+i[l]*p+o[l]*S+s[l]*p*S}constructor(t,n){const{length:r}=t,i=[];for(let T=0;T<r;T++)i.push(T);i.sort((T,_)=>t[T]<t[_]?-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 _=s[T],R=s[T+1];if(_*R<=0)d.push(0);else{l=o[T];const L=o[T+1],I=l+L;d.push(3*I/((I+L)/_+(I+l)/R))}}d.push(s[s.length-1]);const v=[],p=[];let S;for(let T=0;T<d.length-1;T++){S=s[T];const _=d[T],R=1/o[T],L=_+d[T+1]-S-S;v.push((S-_-L)*R),p.push(L*R*R)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=p}}const CB=1;function JC(e){const t=e.nodeType===CB?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function xh(e){return{x:e.clientX,y:e.clientY}}function EB(e){var t;return e.nodeName==="IMG"&&(TB()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function kB(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return ZC()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function OB(e,t,n,r,i){const o=EB(t),l=JC(o?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:d,offsetHeight:v}=e,{anchorX:p,anchorY:S}=r,{dragPreviewWidth:T,dragPreviewHeight:_}=kB(o,t,d,v),R=()=>{let de=new hx([0,.5,1],[c.y,c.y/v*_,c.y+_-v]).interpolate(S);return ZC()&&o&&(de+=(window.devicePixelRatio-1)*_),de},L=()=>new hx([0,.5,1],[c.x,c.x/d*T,c.x+T-d]).interpolate(p),{offsetX:I,offsetY:U}=i,Y=I===0||I,ne=U===0||U;return{x:Y?I:L(),y:ne?U:R()}}let DB=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 PB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function px(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){PB(e,i,n[i])})}return e}class _B{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 px({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 px({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(dx).some(n=>dx[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=SB(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&&JC(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=xh(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=rv(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const v=this.monitor.getSourceId(),p=this.sourceNodes.get(v),S=this.sourcePreviewNodes.get(v)||p;if(S){const{anchorX:T,anchorY:_,offsetX:R,offsetY:L}=this.getCurrentSourcePreviewNodeOptions(),Y=OB(p,S,s,{anchorX:T,anchorY:_},{offsetX:R,offsetY:L});l.setDragImage(S,Y.x,Y.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=rv(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:xh(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=xh(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 rv(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:xh(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new DB(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new wB(this.isNodeInDocument)}}let Sh;function RB(){return Sh||(Sh=new Image,Sh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Sh}const IB=function(t,n,r){return new _B(t,n,r)};var Dc=[],AB=function(){return Dc.some(function(e){return e.activeTargets.length>0})},MB=function(){return Dc.some(function(e){return e.skippedTargets.length>0})},gx="ResizeObserver loop completed with undelivered notifications.",LB=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:gx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=gx),window.dispatchEvent(e)},_d;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(_d||(_d={}));var Pc=function(e){return Object.freeze(e)},NB=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Pc(this)}return e}(),QC=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}(),vy=function(e){return e instanceof SVGElement&&"getBBox"in e},eE=function(e){if(vy(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)},vx=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)},FB=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},dd=typeof window<"u"?window:{},Th=new WeakMap,mx=/auto|scroll/,jB=/^tb|vertical/,BB=/msie|trident/i.test(dd.navigator&&dd.navigator.userAgent),Rs=function(e){return parseFloat(e||"0")},Of=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new NB((n?t:e)||0,(n?e:t)||0)},yx=Pc({devicePixelContentBoxSize:Of(),borderBoxSize:Of(),contentBoxSize:Of(),contentRect:new QC(0,0,0,0)}),tE=function(e,t){if(t===void 0&&(t=!1),Th.has(e)&&!t)return Th.get(e);if(eE(e))return Th.set(e,yx),yx;var n=getComputedStyle(e),r=vy(e)&&e.ownerSVGElement&&e.getBBox(),i=!BB&&n.boxSizing==="border-box",o=jB.test(n.writingMode||""),s=!r&&mx.test(n.overflowY||""),l=!r&&mx.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),S=r?0:Rs(n.borderTopWidth),T=r?0:Rs(n.borderRightWidth),_=r?0:Rs(n.borderBottomWidth),R=r?0:Rs(n.borderLeftWidth),L=p+d,I=c+v,U=R+T,Y=S+_,ne=l?e.offsetHeight-Y-e.clientHeight:0,J=s?e.offsetWidth-U-e.clientWidth:0,de=i?L+U:0,x=i?I+Y:0,ye=r?r.width:Rs(n.width)-de-J,le=r?r.height:Rs(n.height)-x-ne,Qe=ye+L+J+U,ze=le+I+ne+Y,He=Pc({devicePixelContentBoxSize:Of(Math.round(ye*devicePixelRatio),Math.round(le*devicePixelRatio),o),borderBoxSize:Of(Qe,ze,o),contentBoxSize:Of(ye,le,o),contentRect:new QC(p,c,ye,le)});return Th.set(e,He),He},nE=function(e,t,n){var r=tE(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case _d.DEVICE_PIXEL_CONTENT_BOX:return s;case _d.BORDER_BOX:return i;default:return o}},$B=function(){function e(t){var n=tE(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}(),rE=function(e){if(eE(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},VB=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 $B(d.target),p=rE(d.target);l.push(v),d.lastReportedSize=nE(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},bx=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()&&(rE(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},HB=function(){var e=0;for(bx(e);AB();)e=VB(),bx(e);return MB()&&LB(),e>0},iv,iE=[],UB=function(){return iE.splice(0).forEach(function(e){return e()})},WB=function(e){if(!iv){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return UB()}).observe(n,r),iv=function(){n.textContent="".concat(t?t--:t++)}}iE.push(e),iv()},zB=function(e){WB(function(){requestAnimationFrame(e)})},Uh=0,YB=function(){return!!Uh},GB=250,qB={attributes:!0,characterData:!0,childList:!0,subtree:!0},wx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],xx=function(e){return e===void 0&&(e=0),Date.now()+e},ov=!1,XB=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=GB),!ov){ov=!0;var r=xx(t);zB(function(){var i=!1;try{i=HB()}finally{if(ov=!1,t=r-xx(),!YB())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,qB)};document.body?n():dd.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),wx.forEach(function(n){return dd.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),wx.forEach(function(n){return dd.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),om=new XB,Sx=function(e){!Uh&&e>0&&om.start(),Uh+=e,!Uh&&om.stop()},KB=function(e){return!vy(e)&&!FB(e)&&getComputedStyle(e).display==="inline"},ZB=function(){function e(t,n){this.target=t,this.observedBox=n||_d.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=nE(this.target,this.observedBox,!0);return KB(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),JB=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Ch=new WeakMap,Tx=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Eh=function(){function e(){}return e.connect=function(t,n){var r=new JB(t,n);Ch.set(t,r)},e.observe=function(t,n,r){var i=Ch.get(t),o=i.observationTargets.length===0;Tx(i.observationTargets,n)<0&&(o&&Dc.push(i),i.observationTargets.push(new ZB(n,r&&r.box)),Sx(1),om.schedule())},e.unobserve=function(t,n){var r=Ch.get(t),i=Tx(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Dc.splice(Dc.indexOf(r),1),r.observationTargets.splice(i,1),Sx(-1))},e.disconnect=function(t){var n=this,r=Ch.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),QB=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.");Eh.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(!vx(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Eh.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(!vx(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Eh.unobserve(this,t)},e.prototype.disconnect=function(){Eh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Cx="production",oE=typeof process>"u"||process.env===void 0?Cx:process.env.NODE_ENV||Cx,Tu=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Rd={measureLayout:Tu(["layout","layoutId","drag"]),animation:Tu(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Tu(["exit"]),drag:Tu(["drag","dragControls"]),focus:Tu(["whileFocus"]),hover:Tu(["whileHover","onHoverStart","onHoverEnd"]),tap:Tu(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Tu(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Tu(["whileInView","onViewportEnter","onViewportLeave"])};function e$(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Rd.projectionNodeConstructor=e[t]:Rd[t].Component=e[t])}var zd=function(){},Da=function(){};process.env.NODE_ENV!=="production"&&(zd=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Da=function(e,t){if(!e)throw new Error(t)});var aE=Q.createContext({strict:!1}),sE=Object.keys(Rd),t$=sE.length;function n$(e,t,n){var r=[],i=Q.useContext(aE);if(!t)return null;oE!=="production"&&n&&i.strict&&Da(!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<t$;o++){var s=sE[o],l=Rd[s],c=l.isEnabled,d=l.Component;c(e)&&d&&r.push(Sn.createElement(d,at({key:s},e,{visualElement:t})))}return r}var my=Q.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Bp=Q.createContext({});function r$(){return Q.useContext(Bp).visualElement}var $p=Q.createContext(null),Nf=typeof document<"u",Ex=Nf?Q.useLayoutEffect:Q.useEffect,am={current:null},uE=!1;function i$(){if(uE=!0,!!Nf)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return am.current=e.matches};e.addListener(t),t()}else am.current=!1}function o$(){!uE&&i$();var e=Gr(Q.useState(am.current),1),t=e[0];return t}function a$(){var e=o$(),t=Q.useContext(my).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function s$(e,t,n,r){var i=Q.useContext(aE),o=r$(),s=Q.useContext($p),l=a$(),c=Q.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 Ex(function(){d==null||d.syncRender()}),Q.useEffect(function(){var v;(v=d==null?void 0:d.animationState)===null||v===void 0||v.animateChanges()}),Ex(function(){return function(){return d==null?void 0:d.notifyUnmount()}},[]),d}function Ef(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function u$(e,t,n){return Q.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ef(n)&&(n.current=r))},[t])}function lE(e){return Array.isArray(e)}function rs(e){return typeof e=="string"||lE(e)}function l$(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function c$(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function cE(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 Vp(e,t,n){var r=e.getProps();return cE(r,t,n??r.custom,l$(e),c$(e))}function Hp(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 fE(e){return!!(Hp(e)||e.variants)}function f$(e,t){if(Hp(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 d$(e){var t=f$(e,Q.useContext(Bp)),n=t.initial,r=t.animate;return Q.useMemo(function(){return{initial:n,animate:r}},[kx(n),kx(r)])}function kx(e){return Array.isArray(e)?e.join(" "):e}function Up(e){var t=Q.useRef(null);return t.current===null&&(t.current=e()),t.current}var hd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},h$=1;function p$(){return Up(function(){if(hd.hasEverUpdated)return h$++})}var dE=Q.createContext({}),hE=Q.createContext({});function g$(e,t,n,r){var i,o=t.layoutId,s=t.layout,l=t.drag,c=t.dragConstraints,d=t.layoutScroll,v=Q.useContext(hE);!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&&Ef(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:v,layoutScroll:d}))}var v$=function(e){$C(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(Q.Component);function m$(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&e$(t);function l(c,d){var v=y$(c);c=at(at({},c),{layoutId:v});var p=Q.useContext(my),S=null,T=d$(c),_=p.isStatic?void 0:p$(),R=o(c,p.isStatic);return!p.isStatic&&Nf&&(T.visualElement=s$(s,R,at(at({},p),c),n),g$(_,c,T.visualElement,r||Rd.projectionNodeConstructor),S=n$(c,T.visualElement,t)),Sn.createElement(v$,{visualElement:T.visualElement,props:at(at({},p),c)},S,Sn.createElement(Bp.Provider,{value:T},i(s,c,_,u$(R,T.visualElement,d),R,p.isStatic,T.visualElement)))}return Q.forwardRef(l)}function y$(e){var t,n=e.layoutId,r=(t=Q.useContext(dE))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function b$(e){function t(r,i){return i===void 0&&(i={}),m$(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 w$=["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 yy(e){return typeof e!="string"||e.includes("-")?!1:!!(w$.indexOf(e)>-1||/[A-Z]/.test(e))}var hp={};function x$(e){Object.assign(hp,e)}var sm=["","X","Y","Z"],S$=["translate","scale","rotate","skew"],Id=["transformPerspective","x","y","z"];S$.forEach(function(e){return sm.forEach(function(t){return Id.push(e+t)})});function T$(e,t){return Id.indexOf(e)-Id.indexOf(t)}var C$=new Set(Id);function Yd(e){return C$.has(e)}var E$=new Set(["originX","originY","originZ"]);function pE(e){return E$.has(e)}function gE(e,t){var n=t.layout,r=t.layoutId;return Yd(e)||pE(e)||(n||r!==void 0)&&(!!hp[e]||e==="opacity")}var Au=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},k$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function O$(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(T$);for(var p=!1,S=o.length,T=0;T<S;T++){var _=o[T];v+="".concat(k$[_]||_,"(").concat(i[_],") "),_==="z"&&(p=!0)}return!p&&l?v+="translateZ(0)":v=v.trim(),r?v=r(i,n?"":v):d&&n&&(v="none"),v}function D$(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 vE(e){return e.startsWith("--")}var P$=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const mE=(e,t)=>n=>Math.max(Math.min(n,t),e),pd=e=>e%1?Number(e.toFixed(5)):e,Ad=/(-)?([\d]*\.?[\d])+/g,um=/(#[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,_$=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Gd(e){return typeof e=="string"}const Hc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gd=Object.assign(Object.assign({},Hc),{transform:mE(0,1)}),kh=Object.assign(Object.assign({},Hc),{default:1}),qd=e=>({test:t=>Gd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),gl=qd("deg"),Fs=qd("%"),Bt=qd("px"),R$=qd("vh"),I$=qd("vw"),Ox=Object.assign(Object.assign({},Fs),{parse:e=>Fs.parse(e)/100,transform:e=>Fs.transform(e*100)}),by=(e,t)=>n=>!!(Gd(n)&&_$.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),yE=(e,t,n)=>r=>{if(!Gd(r))return r;const[i,o,s,l]=r.match(Ad);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Ec={test:by("hsl","hue"),parse:yE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fs.transform(pd(t))+", "+Fs.transform(pd(n))+", "+pd(gd.transform(r))+")"},A$=mE(0,255),av=Object.assign(Object.assign({},Hc),{transform:e=>Math.round(A$(e))}),wl={test:by("rgb","red"),parse:yE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+av.transform(e)+", "+av.transform(t)+", "+av.transform(n)+", "+pd(gd.transform(r))+")"};function M$(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 lm={test:by("#"),parse:M$,transform:wl.transform},io={test:e=>wl.test(e)||lm.test(e)||Ec.test(e),parse:e=>wl.test(e)?wl.parse(e):Ec.test(e)?Ec.parse(e):lm.parse(e),transform:e=>Gd(e)?e:e.hasOwnProperty("red")?wl.transform(e):Ec.transform(e)},bE="${c}",wE="${n}";function L$(e){var t,n,r,i;return isNaN(e)&&Gd(e)&&((n=(t=e.match(Ad))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(um))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function xE(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(um);r&&(n=r.length,e=e.replace(um,bE),t.push(...r.map(io.parse)));const i=e.match(Ad);return i&&(e=e.replace(Ad,wE),t.push(...i.map(Hc.parse))),{values:t,numColors:n,tokenised:e}}function SE(e){return xE(e).values}function TE(e){const{values:t,numColors:n,tokenised:r}=xE(e),i=t.length;return o=>{let s=r;for(let l=0;l<i;l++)s=s.replace(l<n?bE:wE,l<n?io.transform(o[l]):pd(o[l]));return s}}const N$=e=>typeof e=="number"?0:e;function F$(e){const t=SE(e);return TE(e)(t.map(N$))}const Mu={test:L$,parse:SE,createTransformer:TE,getAnimatableNone:F$},j$=new Set(["brightness","contrast","saturate","opacity"]);function B$(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ad)||[];if(!r)return e;const i=n.replace(r,"");let o=j$.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $$=/([a-z-]*)\(.*?\)/g,cm=Object.assign(Object.assign({},Mu),{getAnimatableNone:e=>{const t=e.match($$);return t?t.map(B$).join(" "):e}});var Dx=at(at({},Hc),{transform:Math.round}),CE={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:gl,rotateX:gl,rotateY:gl,rotateZ:gl,scale:kh,scaleX:kh,scaleY:kh,scaleZ:kh,skew:gl,skewX:gl,skewY:gl,distance:Bt,translateX:Bt,translateY:Bt,translateZ:Bt,x:Bt,y:Bt,z:Bt,perspective:Bt,transformPerspective:Bt,opacity:gd,originX:Ox,originY:Ox,originZ:Bt,zIndex:Dx,fillOpacity:gd,strokeOpacity:gd,numOctaves:Dx};function wy(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,S=!0;for(var T in t){var _=t[T];if(vE(T)){s[T]=_;continue}var R=CE[T],L=P$(_,R);if(Yd(T)){if(v=!0,l[T]=L,c.push(T),!S)continue;_!==((i=R.default)!==null&&i!==void 0?i:0)&&(S=!1)}else pE(T)?(d[T]=L,p=!0):o[T]=L}v?o.transform=O$(e,n,S,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),p&&(o.transformOrigin=D$(d))}var xy=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function EE(e,t,n){for(var r in t)!Au(t[r])&&!gE(r,n)&&(e[r]=t[r])}function V$(e,t,n){var r=e.transformTemplate;return Q.useMemo(function(){var i=xy();wy(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return at(at({},o),s)},[t])}function H$(e,t,n){var r=e.style||{},i={};return EE(i,r,e),Object.assign(i,V$(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function U$(e,t,n){var r={},i=H$(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 W$=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 pp(e){return W$.has(e)}var kE=function(e){return!pp(e)};function z$(e){e&&(kE=function(t){return t.startsWith("on")?!pp(t):e(t)})}try{z$(require("@emotion/is-prop-valid").default)}catch{}function Y$(e,t,n){var r={};for(var i in e)(kE(i)||n===!0&&pp(i)||!t&&!pp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Px(e,t,n){return typeof e=="string"?e:Bt.transform(t+n*e)}function G$(e,t,n){var r=Px(t,e.x,e.width),i=Px(n,e.y,e.height);return"".concat(r," ").concat(i)}var q$={offset:"stroke-dashoffset",array:"stroke-dasharray"},X$={offset:"strokeDashoffset",array:"strokeDasharray"};function K$(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?q$:X$;e[o.offset]=Bt.transform(-r);var s=Bt.transform(t),l=Bt.transform(n);e[o.array]="".concat(s," ").concat(l)}function Sy(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,S=p===void 0?0:p,T=_a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);wy(e,T,n,r),e.attrs=e.style,e.style={};var _=e.attrs,R=e.style,L=e.dimensions;_.transform&&(L&&(R.transform=_.transform),delete _.transform),L&&(s!==void 0||l!==void 0||R.transform)&&(R.transformOrigin=G$(L,s!==void 0?s:.5,l!==void 0?l:.5)),i!==void 0&&(_.x=i),o!==void 0&&(_.y=o),c!==void 0&&K$(_,c,v,S,!1)}var OE=function(){return at(at({},xy()),{attrs:{}})};function Z$(e,t){var n=Q.useMemo(function(){var i=OE();return Sy(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),at(at({},i.attrs),{style:at({},i.style)})},[t]);if(e.style){var r={};EE(r,e.style,e),n.style=at(at({},r),n.style)}return n}function J$(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,l){var c=s.latestValues,d=yy(n)?Z$:U$,v=d(r,c,l),p=Y$(r,typeof n=="string",e),S=at(at(at({},p),v),{ref:o});return i&&(S["data-projection-id"]=i),Q.createElement(n,S)};return t}var Q$=/([a-z])([A-Z])/g,eV="$1-$2",DE=function(e){return e.replace(Q$,eV).toLowerCase()};function PE(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 _E=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function RE(e,t,n,r){PE(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(_E.has(i)?i:DE(i),t.attrs[i])}function Ty(e){var t=e.style,n={};for(var r in t)(Au(t[r])||gE(r,e))&&(n[r]=t[r]);return n}function IE(e){var t=Ty(e);for(var n in e)if(Au(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 Md=function(e){return Array.isArray(e)},tV=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},AE=function(e){return Md(e)?e[e.length-1]||0:e};function Wh(e){var t=Au(e)?e.get():e;return tV(t)?t.toValue():t}function _x(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,l={latestValues:nV(t,n,r,i),renderState:o()};return s&&(l.mount=function(c){return s(t,c,l)}),l}var ME=function(e){return function(t,n){var r=Q.useContext(Bp),i=Q.useContext($p);return n?_x(e,t,r,i):Up(function(){return _x(e,t,r,i)})}};function nV(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var l in s)i[l]=Wh(s[l]);var c=e.initial,d=e.animate,v=Hp(e),p=fE(e);t&&p&&!v&&e.inherit!==!1&&(c??(c=t.initial),d??(d=t.animate));var S=o||c===!1,T=S?d:c;if(T&&typeof T!="boolean"&&!Cy(T)){var _=Array.isArray(T)?T:[T];_.forEach(function(R){var L=cE(e,R);if(L){var I=L.transitionEnd;L.transition;var U=_a(L,["transitionEnd","transition"]);for(var Y in U){var ne=U[Y];if(Array.isArray(ne)){var J=S?ne.length-1:0;ne=ne[J]}ne!==null&&(i[Y]=ne)}for(var Y in I)i[Y]=I[Y]}})}return i}var rV={useVisualState:ME({scrapeMotionValuesFromProps:IE,createRenderState:OE,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}}Sy(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),RE(t,r)}})},iV={useVisualState:ME({scrapeMotionValuesFromProps:Ty,createRenderState:xy})};function oV(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,l=yy(e)?rV:iV;return at(at({},l),{preloadedFeatures:n,useRender:J$(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 Wp(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function fm(e,t,n,r){Q.useEffect(function(){var i=e.current;if(n&&i)return Wp(i,t,n,r)},[e,t,n,r])}function aV(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)};fm(n,"focus",t?r:void 0),fm(n,"blur",t?i:void 0)}function LE(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function NE(e){var t=!!e.touches;return t}function sV(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var uV={pageX:0,pageY:0};function lV(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||uV;return{x:r[t+"X"],y:r[t+"Y"]}}function cV(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Ey(e,t){return t===void 0&&(t="page"),{point:NE(e)?lV(e,t):cV(e,t)}}var FE=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,Ey(r))};return t?sV(n):n},fV=function(){return Nf&&window.onpointerdown===null},dV=function(){return Nf&&window.ontouchstart===null},hV=function(){return Nf&&window.onmousedown===null},pV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},gV={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function jE(e){return fV()?e:dV()?gV[e]:hV()?pV[e]:e}function Df(e,t,n,r){return Wp(e,jE(t),FE(n,t==="pointerdown"),r)}function gp(e,t,n,r){return fm(e,jE(t),n&&FE(n,t==="pointerdown"),r)}function BE(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var Rx=BE("dragHorizontal"),Ix=BE("dragVertical");function $E(e){var t=!1;if(e==="y")t=Ix();else if(e==="x")t=Rx();else{var n=Rx(),r=Ix();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function VE(){var e=$E(!0);return e?(e(),!1):!0}function Ax(e,t,n){return function(r,i){var o;!LE(r)||VE()||((o=e.animationState)===null||o===void 0||o.setActive(jn.Hover,t),n==null||n(r,i))}}function vV(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;gp(i,"pointerenter",t||r?Ax(i,!0,t):void 0,{passive:!t}),gp(i,"pointerleave",n||r?Ax(i,!1,n):void 0,{passive:!n})}var HE=function(e,t){return t?e===t?!0:HE(e,t.parentElement):!1};function UE(e){return Q.useEffect(function(){return function(){return e()}},[])}const vp=(e,t,n)=>Math.min(Math.max(n,e),t),sv=.001,mV=.01,Mx=10,yV=.05,bV=1;function wV({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;zd(e<=Mx*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=vp(yV,bV,s),e=vp(mV,Mx,e/1e3),s<1?(i=d=>{const v=d*s,p=v*e,S=v-n,T=dm(d,s),_=Math.exp(-p);return sv-S/T*_},o=d=>{const p=d*s*e,S=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-p),R=dm(Math.pow(d,2),s);return(-i(d)+sv>0?-1:1)*((S-T)*_)/R}):(i=d=>{const v=Math.exp(-d*e),p=(d-n)*e+1;return-sv+v*p},o=d=>{const v=Math.exp(-d*e),p=(n-d)*(e*e);return v*p});const l=5/e,c=SV(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 xV=12;function SV(e,t,n){let r=n;for(let i=1;i<xV;i++)r=r-e(r)/t(r);return r}function dm(e,t){return e*Math.sqrt(1-t*t)}const TV=["duration","bounce"],CV=["stiffness","damping","mass"];function Lx(e,t){return t.some(n=>e[n]!==void 0)}function EV(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Lx(e,CV)&&Lx(e,TV)){const n=wV(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ky(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=_a(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:l,damping:c,mass:d,velocity:v,duration:p,isResolvedFromDuration:S}=EV(o),T=Nx,_=Nx;function R(){const L=v?-(v/1e3):0,I=n-t,U=c/(2*Math.sqrt(l*d)),Y=Math.sqrt(l/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),U<1){const ne=dm(Y,U);T=J=>{const de=Math.exp(-U*Y*J);return n-de*((L+U*Y*I)/ne*Math.sin(ne*J)+I*Math.cos(ne*J))},_=J=>{const de=Math.exp(-U*Y*J);return U*Y*de*(Math.sin(ne*J)*(L+U*Y*I)/ne+I*Math.cos(ne*J))-de*(Math.cos(ne*J)*(L+U*Y*I)-ne*I*Math.sin(ne*J))}}else if(U===1)T=ne=>n-Math.exp(-Y*ne)*(I+(L+Y*I)*ne);else{const ne=Y*Math.sqrt(U*U-1);T=J=>{const de=Math.exp(-U*Y*J),x=Math.min(ne*J,300);return n-de*((L+U*Y*I)*Math.sinh(x)+ne*I*Math.cosh(x))/ne}}}return R(),{next:L=>{const I=T(L);if(S)s.done=L>=p;else{const U=_(L)*1e3,Y=Math.abs(U)<=r,ne=Math.abs(n-I)<=i;s.done=Y&&ne}return s.value=s.done?n:I,s},flipTarget:()=>{v=-v,[t,n]=[n,t],R()}}}ky.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Nx=e=>0,Ld=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},cr=(e,t,n)=>-n*e+n*t+e;function uv(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 Fx({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=uv(c,l,e+1/3),o=uv(c,l,e),s=uv(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const kV=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},OV=[lm,wl,Ec],jx=e=>OV.find(t=>t.test(e)),Bx=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,WE=(e,t)=>{let n=jx(e),r=jx(t);Da(!!n,Bx(e)),Da(!!r,Bx(t));let i=n.parse(e),o=r.parse(t);n===Ec&&(i=Fx(i),n=wl),r===Ec&&(o=Fx(o),r=wl);const s=Object.assign({},i);return l=>{for(const c in s)c!=="alpha"&&(s[c]=kV(i[c],o[c],l));return s.alpha=cr(i.alpha,o.alpha,l),n.transform(s)}},hm=e=>typeof e=="number",DV=(e,t)=>n=>t(e(n)),zp=(...e)=>e.reduce(DV);function zE(e,t){return hm(e)?n=>cr(e,t,n):io.test(e)?WE(e,t):GE(e,t)}const YE=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>zE(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},PV=(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]=zE(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function $x(e){const t=Mu.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 GE=(e,t)=>{const n=Mu.createTransformer(t),r=$x(e),i=$x(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?zp(YE(r.parsed,i.parsed),n):(zd(!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}`)},_V=(e,t)=>n=>cr(e,t,n);function RV(e){if(typeof e=="number")return _V;if(typeof e=="string")return io.test(e)?WE:GE;if(Array.isArray(e))return YE;if(typeof e=="object")return PV}function IV(e,t,n){const r=[],i=n||RV(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=zp(c,l)}r.push(l)}return r}function AV([e,t],[n]){return r=>n(Ld(e,t,r))}function MV(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=Ld(e[o],e[o+1],i);return t[o](l)}}function qE(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;Da(o===t.length,"Both input and output ranges must be the same length"),Da(!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=IV(t,r,i),l=o===2?AV(e,s):MV(e,s);return n?c=>l(vp(e[0],e[o-1],c)):l}const Yp=e=>t=>1-e(1-t),Oy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,LV=e=>t=>Math.pow(t,e),XE=e=>t=>t*t*((e+1)*t-e),NV=e=>{const t=XE(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},KE=1.525,FV=4/11,jV=8/11,BV=9/10,Dy=e=>e,Py=LV(2),$V=Yp(Py),ZE=Oy(Py),JE=e=>1-Math.sin(Math.acos(e)),_y=Yp(JE),VV=Oy(_y),Ry=XE(KE),HV=Yp(Ry),UV=Oy(Ry),WV=NV(KE),zV=4356/361,YV=35442/1805,GV=16061/1805,mp=e=>{if(e===1||e===0)return e;const t=e*e;return e<FV?7.5625*t:e<jV?9.075*t-9.9*e+3.4:e<BV?zV*t-YV*e+GV:10.8*e*e-20.52*e+10.72},qV=Yp(mp),XV=e=>e<.5?.5*(1-mp(1-e*2)):.5*mp(e*2-1)+.5;function KV(e,t){return e.map(()=>t||ZE).splice(0,e.length-1)}function ZV(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function JV(e,t){return e.map(n=>n*t)}function zh({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=JV(r&&r.length===s.length?r:ZV(s),i);function c(){return qE(l,s,{ease:Array.isArray(n)?n:KV(s,n)})}let d=c();return{next:v=>(o.value=d(v),o.done=v>=i,o),flipTarget:()=>{s.reverse(),d=c()}}}function QV({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 Vx={keyframes:zh,spring:ky,decay:QV};function e3(e){if(Array.isArray(e.to))return zh;if(Vx[e.type])return Vx[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?zh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ky:zh}const QE=1/60*1e3,t3=typeof performance<"u"?()=>performance.now():()=>Date.now(),ek=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(t3()),QE);function n3(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,S=p?t:n;return d&&s.add(c),S.indexOf(c)===-1&&(S.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 r3=40;let pm=!0,Nd=!1,gm=!1;const Pf={delta:0,timestamp:0},Xd=["read","update","preRender","render","postRender"],Gp=Xd.reduce((e,t)=>(e[t]=n3(()=>Nd=!0),e),{}),js=Xd.reduce((e,t)=>{const n=Gp[t];return e[t]=(r,i=!1,o=!1)=>(Nd||o3(),n.schedule(r,i,o)),e},{}),Mf=Xd.reduce((e,t)=>(e[t]=Gp[t].cancel,e),{}),lv=Xd.reduce((e,t)=>(e[t]=()=>Gp[t].process(Pf),e),{}),i3=e=>Gp[e].process(Pf),tk=e=>{Nd=!1,Pf.delta=pm?QE:Math.max(Math.min(e-Pf.timestamp,r3),1),Pf.timestamp=e,gm=!0,Xd.forEach(i3),gm=!1,Nd&&(pm=!1,ek(tk))},o3=()=>{Nd=!0,pm=!0,gm||ek(tk)},yp=()=>Pf;function nk(e,t,n=0){return e-t-n}function a3(e,t,n=0,r=!0){return r?nk(t+-e,t,n):t-(e-t)+n}function s3(e,t,n,r){return r?e>=t+n:e<=-n}const u3=e=>{const t=({delta:n})=>e(n);return{start:()=>js.update(t,!0),stop:()=>Mf.update(t)}};function rk(e){var t,n,{from:r,autoplay:i=!0,driver:o=u3,elapsed:s=0,repeat:l=0,repeatType:c="loop",repeatDelay:d=0,onPlay:v,onStop:p,onComplete:S,onRepeat:T,onUpdate:_}=e,R=_a(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=R,I,U=0,Y=R.duration,ne,J=!1,de=!0,x;const ye=e3(R);!((n=(t=ye).needsInterpolation)===null||n===void 0)&&n.call(t,r,L)&&(x=qE([0,100],[r,L],{clamp:!1}),r=0,L=100);const le=ye(Object.assign(Object.assign({},R),{from:r,to:L}));function Qe(){U++,c==="reverse"?(de=U%2===0,s=a3(s,Y,d,de)):(s=nk(s,Y,d),c==="mirror"&&le.flipTarget()),J=!1,T&&T()}function ze(){I.stop(),S&&S()}function He(et){if(de||(et=-et),s+=et,!J){const pe=le.next(Math.max(0,s));ne=pe.value,x&&(ne=x(ne)),J=de?pe.done:s<=0}_==null||_(ne),J&&(U===0&&(Y??(Y=s)),U<l?s3(s,Y,d,de)&&Qe():ze())}function Ye(){v==null||v(),I=o(He),I.start()}return i&&Ye(),{stop:()=>{p==null||p(),I.stop()}}}function ik(e,t){return t?e*(1e3/t):0}function l3({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:S,onStop:T}){let _;function R(Y){return n!==void 0&&Y<n||r!==void 0&&Y>r}function L(Y){return n===void 0?r:r===void 0||Math.abs(n-Y)<Math.abs(r-Y)?n:r}function I(Y){_==null||_.stop(),_=rk(Object.assign(Object.assign({},Y),{driver:v,onUpdate:ne=>{var J;p==null||p(ne),(J=Y.onUpdate)===null||J===void 0||J.call(Y,ne)},onComplete:S,onStop:T}))}function U(Y){I(Object.assign({type:"spring",stiffness:s,damping:l,restDelta:c},Y))}if(R(e))U({from:e,velocity:t,to:L(e)});else{let Y=i*t+e;typeof d<"u"&&(Y=d(Y));const ne=L(Y),J=ne===n?-1:1;let de,x;const ye=le=>{de=x,x=le,t=ik(le-de,yp().delta),(J===1&&le>ne||J===-1&&le<ne)&&U({from:le,to:ne,velocity:t})};I({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:c,modifyTarget:d,onUpdate:R(Y)?ye:void 0})}return{stop:()=>_==null?void 0:_.stop()}}const vm=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Hx=e=>vm(e)&&e.hasOwnProperty("z"),Oh=(e,t)=>Math.abs(e-t);function ok(e,t){if(hm(e)&&hm(t))return Oh(e,t);if(vm(e)&&vm(t)){const n=Oh(e.x,t.x),r=Oh(e.y,t.y),i=Hx(e)&&Hx(t)?Oh(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const ak=(e,t)=>1-3*t+3*e,sk=(e,t)=>3*t-6*e,uk=e=>3*e,bp=(e,t,n)=>((ak(t,n)*e+sk(t,n))*e+uk(t))*e,lk=(e,t,n)=>3*ak(t,n)*e*e+2*sk(t,n)*e+uk(t),c3=1e-7,f3=10;function d3(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=bp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>c3&&++l<f3);return s}const h3=8,p3=.001;function g3(e,t,n,r){for(let i=0;i<h3;++i){const o=lk(t,n,r);if(o===0)return t;const s=bp(t,n,r)-e;t-=s/o}return t}const Yh=11,Dh=1/(Yh-1);function v3(e,t,n,r){if(e===t&&n===r)return Dy;const i=new Float32Array(Yh);for(let s=0;s<Yh;++s)i[s]=bp(s*Dh,e,n);function o(s){let l=0,c=1;const d=Yh-1;for(;c!==d&&i[c]<=s;++c)l+=Dh;--c;const v=(s-i[c])/(i[c+1]-i[c]),p=l+v*Dh,S=lk(p,e,n);return S>=p3?g3(s,p,e,n):S===0?p:d3(s,l,l+Dh,e,n)}return s=>s===0||s===1?s:bp(o(s),t,r)}function m3(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,l=Q.useRef(!1),c=Q.useRef(null),d={passive:!(n||t||r||_)};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),!VE()}function S(R,L){p()&&(HE(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 _(R,L){var I;v(),!l.current&&(l.current=!0,c.current=zp(Df(window,"pointerup",S,d),Df(window,"pointercancel",T,d)),(I=o.animationState)===null||I===void 0||I.setActive(jn.Tap,!0),n==null||n(R,L))}gp(o,"pointerdown",s?_:void 0,d),UE(v)}var Ux=new Set;function ck(e,t,n){e||Ux.has(t)||(console.warn(t),n&&console.warn(n),Ux.add(t))}var mm=new WeakMap,cv=new WeakMap,y3=function(e){var t;(t=mm.get(e.target))===null||t===void 0||t(e)},b3=function(e){e.forEach(y3)};function w3(e){var t=e.root,n=_a(e,["root"]),r=t||document;cv.has(r)||cv.set(r,{});var i=cv.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(b3,at({root:t},n))),i[o]}function x3(e,t,n){var r=w3(t);return mm.set(e,n),r.observe(e),function(){mm.delete(e),r.unobserve(e)}}function S3(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,l=Q.useRef({hasEnteredView:!1,isInView:!1}),c=!!(n||r||i);s.once&&l.current.hasEnteredView&&(c=!1);var d=typeof IntersectionObserver>"u"?E3:C3;d(c,l.current,t,s)}var T3={some:0,all:1};function C3(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,l=s===void 0?"some":s,c=r.once;Q.useEffect(function(){if(e){var d={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof l=="number"?l:T3[l]},v=function(p){var S,T=p.isIntersecting;if(t.isInView!==T&&(t.isInView=T,!(c&&!T&&t.hasEnteredView))){T&&(t.hasEnteredView=!0),(S=n.animationState)===null||S===void 0||S.setActive(jn.InView,T);var _=n.getProps(),R=T?_.onViewportEnter:_.onViewportLeave;R==null||R(p)}};return x3(n.getInstance(),d,v)}},[e,i,o,l])}function E3(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;Q.useEffect(function(){!e||!o||(oE!=="production"&&ck(!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 xl=function(e){return function(t){return e(t),null}},k3={inView:xl(S3),tap:xl(m3),focus:xl(aV),hover:xl(vV)},O3=0,D3=function(){return O3++},P3=function(){return Up(D3)};function fk(){var e=Q.useContext($p);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=P3();Q.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function dk(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 wp=function(e){return e*1e3},Wx={linear:Dy,easeIn:Py,easeInOut:ZE,easeOut:$V,circIn:JE,circInOut:VV,circOut:_y,backIn:Ry,backInOut:UV,backOut:HV,anticipate:WV,bounceIn:qV,bounceInOut:XV,bounceOut:mp},zx=function(e){if(Array.isArray(e)){Da(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 v3(n,r,i,o)}else if(typeof e=="string")return Da(Wx[e]!==void 0,"Invalid easing type '".concat(e,"'")),Wx[e];return e},_3=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Yx=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Mu.test(t)&&!t.startsWith("url("))},vc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Ph=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},fv=function(){return{type:"keyframes",ease:"linear",duration:.3}},R3=function(e){return{type:"keyframes",duration:.8,values:e}},Gx={x:vc,y:vc,z:vc,rotate:vc,rotateX:vc,rotateY:vc,rotateZ:vc,scaleX:Ph,scaleY:Ph,scale:Ph,opacity:fv,backgroundColor:fv,color:fv,default:Ph},I3=function(e,t){var n;return Md(t)?n=R3:n=Gx[e]||Gx.default,at({to:t},n(t))},A3=at(at({},CE),{color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:cm,WebkitFilter:cm}),Iy=function(e){return A3[e]};function Ay(e,t){var n,r=Iy(e);return r!==cm&&(r=Mu),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function M3(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=_a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var qx=!1;function L3(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=_a(e,["ease","times","yoyo","flip","loop"]),l=at({},s);return n&&(l.offset=n),s.duration&&(l.duration=wp(s.duration)),s.repeatDelay&&(l.repeatDelay=wp(s.repeatDelay)),t&&(l.ease=_3(t)?t.map(zx):zx(t)),s.type==="tween"&&(l.type="keyframes"),(r||o||i)&&(zd(!qx,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),qx=!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 N3(e,t){var n,r,i=My(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function F3(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Qo([],Gr(e.to),!1),e.to[0]=e.from),e}function j3(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),F3(t),M3(e)||(e=at(at({},e),I3(n,t.to))),at(at({},t),L3(e))}function B3(e,t,n,r,i){var o,s=My(r,e),l=(o=s.from)!==null&&o!==void 0?o:t.get(),c=Yx(e,n);l==="none"&&c&&typeof n=="string"?l=Ay(e,n):Xx(l)&&typeof n=="string"?l=Kx(n):!Array.isArray(n)&&Xx(n)&&typeof l=="string"&&(n=Kx(l));var d=Yx(e,l);zd(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 S={from:l,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(T){return t.set(T)}};return s.type==="inertia"||s.type==="decay"?l3(at(at({},S),s)):rk(at(at({},j3(s,S,e)),{onUpdate:function(T){var _;S.onUpdate(T),(_=s.onUpdate)===null||_===void 0||_.call(s,T)},onComplete:function(){var T;S.onComplete(),(T=s.onComplete)===null||T===void 0||T.call(s)}}))}function p(){var S,T,_=AE(n);return t.set(_),i(),(S=s==null?void 0:s.onUpdate)===null||S===void 0||S.call(s,_),(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 Xx(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Kx(e){return typeof e=="number"?0:Ay("",e)}function My(e,t){return e[t]||e.default||e}function Ly(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,l=B3(e,t,n,r,i),c=N3(r,e),d=function(){return s=l()};return c?o=window.setTimeout(d,wp(c)):d(),function(){clearTimeout(o),s==null||s.stop()}})}var $3=function(e){return/^\-?\d*\.?\d+$/.test(e)},V3=function(e){return/^0[^.\s]+$/.test(e)};function Ny(e,t){e.indexOf(t)===-1&&e.push(t)}function Fy(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var vd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return Ny(this.subscriptions,t),function(){return Fy(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}(),H3=function(e){return!isNaN(parseFloat(e))},U3=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new vd,this.velocityUpdateSubscribers=new vd,this.renderSubscribers=new vd,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=yp(),s=o.delta,l=o.timestamp;n.lastUpdated!==l&&(n.timeDelta=s,n.lastUpdated=l,js.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return js.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=H3(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?ik(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 Lf(e){return new U3(e)}var hk=function(e){return function(t){return t.test(e)}},W3={test:function(e){return e==="auto"},parse:function(e){return e}},pk=[Hc,Bt,Fs,gl,I$,R$,W3],nd=function(e){return pk.find(hk(e))},z3=Qo(Qo([],Gr(pk),!1),[io,Mu],!1),Y3=function(e){return z3.find(hk(e))};function G3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Lf(n))}function q3(e,t){var n=Vp(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=_a(r,["transitionEnd","transition"]);s=at(at({},s),o);for(var l in s){var c=AE(s[l]);G3(e,l,c)}}function X3(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],S=null;Array.isArray(p)&&(S=p[0]),S===null&&(S=(i=(r=n[v])!==null&&r!==void 0?r:e.readValue(v))!==null&&i!==void 0?i:t[v]),S!=null&&(typeof S=="string"&&($3(S)||V3(S))?S=parseFloat(S):!Y3(S)&&Mu.test(p)&&(S=Ay(v,p)),e.addValue(v,Lf(S)),(o=(s=n)[v])!==null&&o!==void 0||(s[v]=S),e.setBaseTarget(v,S))}}function K3(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function Z3(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=K3(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function J3(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return ym(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=ym(e,t,n);else{var o=typeof t=="function"?Vp(e,t,n.custom):t;r=gk(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function ym(e,t,n){var r;n===void 0&&(n={});var i=Vp(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var l=i?function(){return gk(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 _=s.delayChildren,R=_===void 0?0:_,L=s.staggerChildren,I=s.staggerDirection;return Q3(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],S=v[1];return p().then(S)}else return Promise.all([l(),c(n.delay)])}function gk(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,S=d.transitionEnd,T=_a(d,["transition","transitionEnd"]);l&&(p=l);var _=[],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&&tH(R,L))){var Y=at({delay:s},p);e.shouldReduceMotion&&Yd(L)&&(Y=at(at({},Y),{type:!1,delay:0}));var ne=Ly(L,I,U,Y);_.push(ne)}}return Promise.all(_).then(function(){S&&q3(e,S)})}function Q3(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(eH).forEach(function(d,v){s.push(ym(d,t,at(at({},o),{delay:n+c(v)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(s)}function eH(e,t){return e.sortNodePosition(t)}function tH(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var jy=[jn.Animate,jn.InView,jn.Focus,jn.Hover,jn.Tap,jn.Drag,jn.Exit],nH=Qo([],Gr(jy),!1).reverse(),rH=jy.length;function iH(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return J3(e,r,i)}))}}function oH(e){var t=iH(e),n=sH(),r={},i=!0,o=function(v,p){var S=Vp(e,p);if(S){S.transition;var T=S.transitionEnd,_=_a(S,["transition","transitionEnd"]);v=at(at(at({},v),_),T)}return v};function s(v){return r[v]!==void 0}function l(v){t=v(e)}function c(v,p){for(var S,T=e.getProps(),_=e.getVariantContext(!0)||{},R=[],L=new Set,I={},U=1/0,Y=function(x){var ye=nH[x],le=n[ye],Qe=(S=T[ye])!==null&&S!==void 0?S:_[ye],ze=rs(Qe),He=ye===p?le.isActive:null;He===!1&&(U=x);var Ye=Qe===_[ye]&&Qe!==T[ye]&&ze;if(Ye&&i&&e.manuallyAnimateOnMount&&(Ye=!1),le.protectedKeys=at({},I),!le.isActive&&He===null||!Qe&&!le.prevProp||Cy(Qe)||typeof Qe=="boolean")return"continue";var et=aH(le.prevProp,Qe),pe=et||ye===p&&le.isActive&&!Ye&&ze||x>U&&ze,De=Array.isArray(Qe)?Qe:[Qe],Fe=De.reduce(o,{});He===!1&&(Fe={});var Je=le.prevResolvedValues,it=Je===void 0?{}:Je,Oe=at(at({},it),Fe),xe=function(Me){pe=!0,L.delete(Me),le.needsAnimating[Me]=!0};for(var Ue in Oe){var Ve=Fe[Ue],Re=it[Ue];I.hasOwnProperty(Ue)||(Ve!==Re?Md(Ve)&&Md(Re)?!dk(Ve,Re)||et?xe(Ue):le.protectedKeys[Ue]=!0:Ve!==void 0?xe(Ue):L.add(Ue):Ve!==void 0&&L.has(Ue)?xe(Ue):le.protectedKeys[Ue]=!0)}le.prevProp=Qe,le.prevResolvedValues=Fe,le.isActive&&(I=at(at({},I),Fe)),i&&e.blockInitialAnimation&&(pe=!1),pe&&!Ye&&R.push.apply(R,Qo([],Gr(De.map(function(Me){return{animation:Me,options:at({type:ye},v)}})),!1))},ne=0;ne<rH;ne++)Y(ne);if(r=at({},I),L.size){var J={};L.forEach(function(x){var ye=e.getBaseTarget(x);ye!==void 0&&(J[x]=ye)}),R.push({animation:J})}var de=!!R.length;return i&&T.initial===!1&&!e.manuallyAnimateOnMount&&(de=!1),i=!1,de?t(R):Promise.resolve()}function d(v,p,S){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 _=c(S,v);for(var R in n)n[R].protectedKeys={};return _}return{isAnimated:s,animateChanges:c,setActive:d,setAnimateFunction:l,getState:function(){return n}}}function aH(e,t){return typeof t=="string"?t!==e:lE(t)?!dk(t,e):!1}function mc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sH(){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 uH={animation:xl(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=oH(t)),Cy(n)&&Q.useEffect(function(){return n.subscribe(t)},[n])}),exit:xl(function(e){var t=e.custom,n=e.visualElement,r=Gr(fk(),2),i=r[0],o=r[1],s=Q.useContext($p);Q.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])})},vk=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 S=hv(i.lastMoveEventInfo,i.history),T=i.startEvent!==null,_=ok(S.offset,{x:0,y:0})>=3;if(!(!T&&!_)){var R=S.point,L=yp().timestamp;i.history.push(at(at({},R),{timestamp:L}));var I=i.handlers,U=I.onStart,Y=I.onMove;T||(U&&U(i.lastMoveEvent,S),i.startEvent=i.lastMoveEvent),Y&&Y(i.lastMoveEvent,S)}}},this.handlePointerMove=function(S,T){if(i.lastMoveEvent=S,i.lastMoveEventInfo=dv(T,i.transformPagePoint),LE(S)&&S.buttons===0){i.handlePointerUp(S,T);return}js.update(i.updatePoint,!0)},this.handlePointerUp=function(S,T){i.end();var _=i.handlers,R=_.onEnd,L=_.onSessionEnd,I=hv(dv(T,i.transformPagePoint),i.history);i.startEvent&&R&&R(S,I),L&&L(S,I)},!(NE(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var l=Ey(t),c=dv(l,this.transformPagePoint),d=c.point,v=yp().timestamp;this.history=[at(at({},d),{timestamp:v})];var p=n.onSessionStart;p&&p(t,hv(c,this.history)),this.removeListeners=zp(Df(window,"pointermove",this.handlePointerMove),Df(window,"pointerup",this.handlePointerUp),Df(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Mf.update(this.updatePoint)},e}();function dv(e,t){return t?{point:t(e.point)}:e}function Zx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hv(e,t){var n=e.point;return{point:n,delta:Zx(n,mk(t)),offset:Zx(n,lH(t)),velocity:cH(t,.1)}}function lH(e){return e[0]}function mk(e){return e[e.length-1]}function cH(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=mk(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wp(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 Lu(e){return e.max-e.min}function Jx(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),ok(e,t)<n}function Qx(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=cr(t.min,t.max,e.origin),e.scale=Lu(n)/Lu(t),(Jx(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=cr(n.min,n.max,e.origin)-e.originPoint,(Jx(e.translate)||isNaN(e.translate))&&(e.translate=0)}function md(e,t,n,r){Qx(e.x,t.x,n.x,r==null?void 0:r.originX),Qx(e.y,t.y,n.y,r==null?void 0:r.originY)}function eS(e,t,n){e.min=n.min+t.min,e.max=e.min+Lu(t)}function fH(e,t,n){eS(e.x,t.x,n.x),eS(e.y,t.y,n.y)}function tS(e,t,n){e.min=t.min-n.min,e.max=e.min+Lu(t)}function yd(e,t,n){tS(e.x,t.x,n.x),tS(e.y,t.y,n.y)}function dH(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?cr(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?cr(i,e,n.max):Math.min(e,i)),e}function nS(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 hH(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:nS(e.x,r,o),y:nS(e.y,n,i)}}function rS(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 pH(e,t){return{x:rS(e.x,t.x),y:rS(e.y,t.y)}}function gH(e,t){var n=.5,r=Lu(e),i=Lu(t);return i>r?n=Ld(t.min,t.max-r,e.min):r>i&&(n=Ld(e.min,e.max-i,t.min)),vp(0,1,n)}function vH(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 bm=.35;function mH(e){return e===void 0&&(e=bm),e===!1?e=0:e===!0&&(e=bm),{x:iS(e,"left","right"),y:iS(e,"top","bottom")}}function iS(e,t,n){return{min:oS(e,t),max:oS(e,n)}}function oS(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var aS=function(){return{translate:0,scale:1,origin:0,originPoint:0}},bd=function(){return{x:aS(),y:aS()}},sS=function(){return{min:0,max:0}},Mi=function(){return{x:sS(),y:sS()}};function As(e){return[e("x"),e("y")]}function yk(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 yH(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function bH(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 pv(e){return e===void 0||e===1}function bk(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!pv(t)||!pv(n)||!pv(r)}function vl(e){return bk(e)||uS(e.x)||uS(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function uS(e){return e&&e!=="0%"}function xp(e,t,n){var r=e-n,i=t*r;return n+i}function lS(e,t,n,r,i){return i!==void 0&&(e=xp(e,i,r)),xp(e,n,r)+t}function wm(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=lS(e.min,t,n,r,i),e.max=lS(e.max,t,n,r,i)}function wk(e,t){var n=t.x,r=t.y;wm(e.x,n.translate,n.scale,n.originPoint),wm(e.y,r.translate,r.scale,r.originPoint)}function wH(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&&kf(e,{x:-l.scroll.x,y:-l.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,wk(e,c)),r&&vl(l.latestValues)&&kf(e,l.latestValues))}}function yl(e,t){e.min=e.min+t,e.max=e.max+t}function cS(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=cr(e.min,e.max,l);wm(e,t[i],t[o],c,t.scale)}var xH=["x","scaleX","originX"],SH=["y","scaleY","originY"];function kf(e,t){cS(e.x,t,xH),cS(e.y,t,SH)}function xk(e,t){return yk(bH(e.getBoundingClientRect(),t))}function TH(e,t,n){var r=xk(e,n),i=t.scroll;return i&&(yl(r.x,i.x),yl(r.y,i.y)),r}var CH=new WeakMap,EH=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=Mi(),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(Ey(p,"page").point)},c=function(p,S){var T,_=r.getProps(),R=_.drag,L=_.dragPropagation,I=_.onDragStart;R&&!L&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=$E(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),As(function(U){var Y,ne,J=r.getAxisMotionValue(U).get()||0;if(Fs.test(J)){var de=(ne=(Y=r.visualElement.projection)===null||Y===void 0?void 0:Y.layout)===null||ne===void 0?void 0:ne.actual[U];if(de){var x=Lu(de);J=x*(parseFloat(J)/100)}}r.originPoint[U]=J}),I==null||I(p,S),(T=r.visualElement.animationState)===null||T===void 0||T.setActive(jn.Drag,!0))},d=function(p,S){var T=r.getProps(),_=T.dragPropagation,R=T.dragDirectionLock,L=T.onDirectionLock,I=T.onDrag;if(!(!_&&!r.openGlobalLock)){var U=S.offset;if(R&&r.currentDirection===null){r.currentDirection=kH(U),r.currentDirection!==null&&(L==null||L(r.currentDirection));return}r.updateAxis("x",S.point,U),r.updateAxis("y",S.point,U),r.visualElement.syncRender(),I==null||I(p,S)}},v=function(p,S){return r.stop(p,S)};this.panSession=new vk(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||!_h(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=dH(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&&Ef(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=hH(o.actual,r):this.constraints=!1,this.elastic=mH(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&As(function(l){t.getAxisMotionValue(l)&&(t.constraints[l]=vH(o.actual[l],t.constraints[l]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!Ef(n))return!1;var i=n.current;Da(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=TH(i,o.root,this.visualElement.getTransformPagePoint()),l=pH(o.layout.actual,s);if(r){var c=r(yH(l));this.hasMutatedConstraints=!!c,c&&(l=yk(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=As(function(S){var T;if(_h(S,i,n.currentDirection)){var _=(T=v==null?void 0:v[S])!==null&&T!==void 0?T:{};c&&(_={min:0,max:0});var R=s?200:1e6,L=s?40:1e7,I=at(at({type:"inertia",velocity:o?t[S]:0,bounceStiffness:R,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10},l),_);return n.startAxisValueAnimation(S,I)}});return Promise.all(p).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return Ly(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;As(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;As(function(r){var i=n.getProps().drag;if(_h(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]-cr(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(!(!Ef(o)||!s||!this.constraints)){this.stopAnimation();var l={x:0,y:0};As(function(d){var v=t.getAxisMotionValue(d);if(v){var p=v.get();l[d]=gH({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(),As(function(d){if(_h(d,i,null)){var v=t.getAxisMotionValue(d),p=t.constraints[d],S=p.min,T=p.max;v.set(cr(S,T,l[d]))}})}},e.prototype.addListeners=function(){var t=this,n;CH.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=Df(r,"pointerdown",function(d){var v=t.getProps(),p=v.drag,S=v.dragListener,T=S===void 0?!0:S;p&&T&&t.start(d)}),o=function(){var d=t.getProps().dragConstraints;Ef(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=Wp(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(d){var v=d.delta,p=d.hasLayoutChanged;t.isDragging&&p&&(As(function(S){var T=t.getAxisMotionValue(S);T&&(t.originPoint[S]+=v[S].translate,T.set(T.get()+v[S].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?bm:v,S=t.dragMomentum,T=S===void 0?!0:S;return at(at({},t),{drag:r,dragDirectionLock:o,dragPropagation:l,dragConstraints:d,dragElastic:p,dragMomentum:T})},e}();function _h(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kH(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 OH(e){var t=e.dragControls,n=e.visualElement,r=Up(function(){return new EH(n)});Q.useEffect(function(){return t&&t.subscribe(r)},[r,t]),Q.useEffect(function(){return r.addListeners()},[r])}function DH(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,l=Q.useRef(null),c=Q.useContext(my).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(p,S){l.current=null,r&&r(p,S)}};Q.useEffect(function(){l.current!==null&&l.current.updateHandlers(d)});function v(p){l.current=new vk(p,d,{transformPagePoint:c})}gp(o,"pointerdown",s&&v),UE(function(){return l.current&&l.current.end()})}var PH={pan:xl(DH),drag:xl(OH)},Rh=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function _H(){var e=Rh.map(function(){return new vd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){Rh.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"+Rh[i]]=function(o){return r.add(o)},n["notify"+Rh[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 RH(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(Au(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&ck(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(Au(s))e.addValue(i,Lf(o));else if(s!==o)if(e.hasValue(i)){var l=e.getValue(i);!l.hasAnimated&&l.set(o)}else e.addValue(i,Lf((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 Sk=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(S,T){var _=S.parent,R=S.props,L=S.presenceId,I=S.blockInitialAnimation,U=S.visualState,Y=S.shouldReduceMotion;T===void 0&&(T={});var ne=!1,J=U.latestValues,de=U.renderState,x,ye=_H(),le=new Map,Qe=new Map,ze={},He=at({},J),Ye;function et(){!x||!ne||(pe(),l(x,de,R.style,Ve.projection))}function pe(){r(Ve,de,J,T,R)}function De(){ye.notifyUpdate(J)}function Fe(Re,Me){var Xe=Me.onChange(function(mt){J[Re]=mt,R.onUpdate&&js.update(De,!1,!0)}),lt=Me.onRenderRequest(Ve.scheduleRender);Qe.set(Re,function(){Xe(),lt()})}var Je=p(R);for(var it in Je){var Oe=Je[it];J[it]!==void 0&&Au(Oe)&&Oe.set(J[it],!1)}var xe=Hp(R),Ue=fE(R),Ve=at(at({treeType:n,current:null,depth:_?_.depth+1:0,parent:_,children:new Set,presenceId:L,shouldReduceMotion:Y,variantChildren:Ue?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(_!=null&&_.isMounted()),blockInitialAnimation:I,isMounted:function(){return!!x},mount:function(Re){ne=!0,x=Ve.current=Re,Ve.projection&&Ve.projection.mount(Re),Ue&&_&&!xe&&(Ye=_==null?void 0:_.addVariantChild(Ve)),le.forEach(function(Me,Xe){return Fe(Xe,Me)}),_==null||_.children.add(Ve),Ve.setProps(R)},unmount:function(){var Re;(Re=Ve.projection)===null||Re===void 0||Re.unmount(),Mf.update(De),Mf.render(et),Qe.forEach(function(Me){return Me()}),Ye==null||Ye(),_==null||_.children.delete(Ve),ye.clearAllListeners(),x=void 0,ne=!1},addVariantChild:function(Re){var Me,Xe=Ve.getClosestVariantNode();if(Xe)return(Me=Xe.variantChildren)===null||Me===void 0||Me.add(Re),function(){return Xe.variantChildren.delete(Re)}},sortNodePosition:function(Re){return!v||n!==Re.treeType?0:v(Ve.getInstance(),Re.getInstance())},getClosestVariantNode:function(){return Ue?Ve:_==null?void 0:_.getClosestVariantNode()},getLayoutId:function(){return R.layoutId},getInstance:function(){return x},getStaticValue:function(Re){return J[Re]},setStaticValue:function(Re,Me){return J[Re]=Me},getLatestValues:function(){return J},setVisibility:function(Re){Ve.isVisible!==Re&&(Ve.isVisible=Re,Ve.scheduleRender())},makeTargetAnimatable:function(Re,Me){return Me===void 0&&(Me=!0),o(Ve,Re,R,Me)},measureViewportBox:function(){return s(x,R)},addValue:function(Re,Me){Ve.hasValue(Re)&&Ve.removeValue(Re),le.set(Re,Me),J[Re]=Me.get(),Fe(Re,Me)},removeValue:function(Re){var Me;le.delete(Re),(Me=Qe.get(Re))===null||Me===void 0||Me(),Qe.delete(Re),delete J[Re],d(Re,de)},hasValue:function(Re){return le.has(Re)},getValue:function(Re,Me){var Xe=le.get(Re);return Xe===void 0&&Me!==void 0&&(Xe=Lf(Me),Ve.addValue(Re,Xe)),Xe},forEachValue:function(Re){return le.forEach(Re)},readValue:function(Re){var Me;return(Me=J[Re])!==null&&Me!==void 0?Me:c(x,Re,T)},setBaseTarget:function(Re,Me){He[Re]=Me},getBaseTarget:function(Re){if(i){var Me=i(R,Re);if(Me!==void 0&&!Au(Me))return Me}return He[Re]}},ye),{build:function(){return pe(),de},scheduleRender:function(){js.render(et,!1,!0)},syncRender:et,setProps:function(Re){(Re.transformTemplate||R.transformTemplate)&&Ve.scheduleRender(),R=Re,ye.updatePropListeners(Re),ze=RH(Ve,p(R),ze)},getProps:function(){return R},getVariant:function(Re){var Me;return(Me=R.variants)===null||Me===void 0?void 0:Me[Re]},getDefaultTransition:function(){return R.transition},getTransformPagePoint:function(){return R.transformPagePoint},getVariantContext:function(Re){if(Re===void 0&&(Re=!1),Re)return _==null?void 0:_.getVariantContext();if(!xe){var Me=(_==null?void 0:_.getVariantContext())||{};return R.initial!==void 0&&(Me.initial=R.initial),Me}for(var Xe={},lt=0;lt<IH;lt++){var mt=Tk[lt],wt=R[mt];(rs(wt)||wt===!1)&&(Xe[mt]=wt)}return Xe}});return Ve}},Tk=Qo(["initial"],Gr(jy),!1),IH=Tk.length;function xm(e){return typeof e=="string"&&e.startsWith("var(--")}var Ck=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function AH(e){var t=Ck.exec(e);if(!t)return[,];var n=Gr(t,3),r=n[1],i=n[2];return[r,i]}var MH=4;function Sm(e,t,n){n===void 0&&(n=1),Da(n<=MH,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Gr(AH(e),2),i=r[0],o=r[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():xm(o)?Sm(o,t,n+1):o}}function LH(e,t,n){var r,i=_a(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=at({},n)),e.forEachValue(function(d){var v=d.get();if(xm(v)){var p=Sm(v,o);p&&d.set(p)}});for(var s in i){var l=i[s];if(xm(l)){var c=Sm(l,o);c&&(i[s]=c,n&&((r=n[s])!==null&&r!==void 0||(n[s]=l)))}}return{target:i,transitionEnd:n}}var NH=new Set(["width","height","top","left","right","bottom","x","y"]),Ek=function(e){return NH.has(e)},FH=function(e){return Object.keys(e).some(Ek)},kk=function(e,t){e.set(t,!1),e.set(t)},Ih=function(e){return e===Hc||e===Bt},fS;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(fS||(fS={}));var dS=function(e,t){return parseFloat(e.split(", ")[t])},hS=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 dS(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?dS(s[1],e):0}},jH=new Set(["x","y","z"]),BH=Id.filter(function(e){return!jH.has(e)});function $H(e){var t=[];return BH.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 pS={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:hS(4,13),y:hS(5,14)},VH=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]=pS[d](r,o)}),t.syncRender();var c=t.measureViewportBox();return n.forEach(function(d){var v=t.getValue(d);kk(v,l[d]),e[d]=pS[d](c,o)}),e},HH=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=at({},t),r=at({},r);var i=Object.keys(t).filter(Ek),o=[],s=!1,l=[];if(i.forEach(function(v){var p=e.getValue(v);if(e.hasValue(v)){var S=n[v],T=nd(S),_=t[v],R;if(Md(_)){var L=_.length,I=_[0]===null?1:0;S=_[I],T=nd(S);for(var U=I;U<L;U++)R?Da(nd(_[U])===R,"All keyframes must be of the same type"):(R=nd(_[U]),Da(R===T||Ih(T)&&Ih(R),"Keyframes must be of the same dimension as the current value"))}else R=nd(_);if(T!==R)if(Ih(T)&&Ih(R)){var Y=p.get();typeof Y=="string"&&p.set(parseFloat(Y)),typeof _=="string"?t[v]=parseFloat(_):Array.isArray(_)&&R===Bt&&(t[v]=_.map(parseFloat))}else T!=null&&T.transform&&(R!=null&&R.transform)&&(S===0||_===0)?S===0?p.set(R.transform(S)):t[v]=T.transform(_):(s||(o=$H(e),s=!0),l.push(v),r[v]=r[v]!==void 0?r[v]:t[v],kk(p,_))}}),l.length){var c=l.indexOf("height")>=0?window.pageYOffset:null,d=VH(t,e,l);return o.length&&o.forEach(function(v){var p=Gr(v,2),S=p[0],T=p[1];e.getValue(S).set(T)}),e.syncRender(),c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function UH(e,t,n,r){return FH(t)?HH(e,t,n,r):{target:t,transitionEnd:r}}var WH=function(e,t,n,r){var i=LH(e,t,r);return t=i.target,r=i.transitionEnd,UH(e,t,n,r)};function zH(e){return window.getComputedStyle(e)}var Ok={treeType:"dom",readValueFromInstance:function(e,t){if(Yd(t)){var n=Iy(t);return n&&n.default||0}else{var r=zH(e);return(vE(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 xk(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=_a(t,["transition","transitionEnd"]),c=Z3(l,o||{},e);if(i&&(s&&(s=i(s)),l&&(l=i(l)),c&&(c=i(c))),r){X3(e,l,c);var d=WH(e,l,c,s);s=d.transitionEnd,l=d.target}return at({transition:o,transitionEnd:s},l)},scrapeMotionValuesFromProps:Ty,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),wy(t,n,r,i.transformTemplate)},render:PE},YH=Sk(Ok),GH=Sk(at(at({},Ok),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Yd(t)?((n=Iy(t))===null||n===void 0?void 0:n.default)||0:(t=_E.has(t)?t:DE(t),e.getAttribute(t))},scrapeMotionValuesFromProps:IE,build:function(e,t,n,r,i){Sy(t,n,r,i.transformTemplate)},render:RE})),qH=function(e,t){return yy(e)?GH(t,{enableHardwareAcceleration:!1}):YH(t,{enableHardwareAcceleration:!0})};function gS(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(Bt.test(e))e=parseFloat(e);else return e;var n=gS(e,t.target.x),r=gS(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},vS="_$css",XH={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(Ck,function(R){return s.push(R),vS}));var l=Mu.parse(e);if(l.length>5)return i;var c=Mu.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 S=cr(v,p,.5);typeof l[2+d]=="number"&&(l[2+d]/=S),typeof l[3+d]=="number"&&(l[3+d]/=S);var T=c(l);if(o){var _=0;T=T.replace(vS,function(){var R=s[_];return _++,R})}return T}},KH=function(e){$C(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;x$(JH),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(at(at({},c.options),{onExitComplete:function(){return n.safeToRemove()}}))),hd.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()||js.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}(Q.Component);function ZH(e){var t=Gr(fk(),2),n=t[0],r=t[1],i=Q.useContext(dE);return Q.createElement(KH,at({},e,{layoutGroup:i,switchLayoutGroup:Q.useContext(hE),isPresent:n,safeToRemove:r}))}var JH={borderRadius:at(at({},rd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:rd,borderTopRightRadius:rd,borderBottomLeftRadius:rd,borderBottomRightRadius:rd,boxShadow:XH},QH={measureLayout:ZH};function eU(e,t,n){n===void 0&&(n={});var r=Au(e)?e:Lf(e);return Ly("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var Dk=["TopLeft","TopRight","BottomLeft","BottomRight"],tU=Dk.length,mS=function(e){return typeof e=="string"?parseFloat(e):e},yS=function(e){return typeof e=="number"||Bt.test(e)};function nU(e,t,n,r,i,o){var s,l,c,d;i?(e.opacity=cr(0,(s=n.opacity)!==null&&s!==void 0?s:1,rU(r)),e.opacityExit=cr((l=t.opacity)!==null&&l!==void 0?l:1,0,iU(r))):o&&(e.opacity=cr((c=t.opacity)!==null&&c!==void 0?c:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var v=0;v<tU;v++){var p="border".concat(Dk[v],"Radius"),S=bS(t,p),T=bS(n,p);if(!(S===void 0&&T===void 0)){S||(S=0),T||(T=0);var _=S===0||T===0||yS(S)===yS(T);_?(e[p]=Math.max(cr(mS(S),mS(T),r),0),(Fs.test(T)||Fs.test(S))&&(e[p]+="%")):e[p]=T}}(t.rotate||n.rotate)&&(e.rotate=cr(t.rotate||0,n.rotate||0,r))}function bS(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var rU=Pk(0,.5,_y),iU=Pk(.5,.95,Dy);function Pk(e,t,n){return function(r){return r<e?0:r>t?1:n(Ld(e,t,r))}}function wS(e,t){e.min=t.min,e.max=t.max}function ts(e,t){wS(e.x,t.x),wS(e.y,t.y)}function xS(e,t,n,r,i){return e-=t,e=xp(e,1/n,r),i!==void 0&&(e=xp(e,1/i,r)),e}function oU(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=cr(s.min,s.max,t/100);t=l-s.min}if(typeof t=="number"){var c=cr(o.min,o.max,r);e===o&&(c-=t),e.min=xS(e.min,t,n,c,i),e.max=xS(e.max,t,n,c,i)}}function SS(e,t,n,r,i){var o=Gr(n,3),s=o[0],l=o[1],c=o[2];oU(e,t[s],t[l],t[c],t.scale,r,i)}var aU=["x","scaleX","originX"],sU=["y","scaleY","originY"];function TS(e,t,n,r){SS(e.x,t,aU,n==null?void 0:n.x,r==null?void 0:r.x),SS(e.y,t,sU,n==null?void 0:n.y,r==null?void 0:r.y)}function CS(e){return e.translate===0&&e.scale===1}function _k(e){return CS(e.x)&&CS(e.y)}function Rk(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 uU=function(){function e(){this.members=[]}return e.prototype.add=function(t){Ny(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(Fy(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}(),lU="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function ES(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===lU?"none":o}var cU=function(e,t){return e.depth-t.depth},fU=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){Ny(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){Fy(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(cU),this.isDirty=!1,this.children.forEach(t)},e}(),kS=1e3;function Ik(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(mU),v.nodes.forEach(yU)},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 fU)}return s.prototype.addEventListener=function(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new vd),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,S=p.layoutId,T=p.layout,_=p.visualElement;if(_&&!_.getInstance()&&_.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||S)&&(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),hd.hasAnimatedSinceResize&&(hd.hasAnimatedSinceResize=!1,d.nodes.forEach(vU))})}S&&this.root.registerSharedNode(S,this),this.options.animate!==!1&&_&&(S||T)&&this.addEventListener("didUpdate",function(I){var U,Y,ne,J,de,x=I.delta,ye=I.hasLayoutChanged,le=I.hasRelativeTargetChanged,Qe=I.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var ze=(Y=(U=d.options.transition)!==null&&U!==void 0?U:_.getDefaultTransition())!==null&&Y!==void 0?Y:TU,He=_.getProps(),Ye=He.onLayoutAnimationStart,et=He.onLayoutAnimationComplete,pe=!d.targetLayout||!Rk(d.targetLayout,Qe)||le,De=!ye&≤if(!((ne=d.resumeFrom)===null||ne===void 0)&&ne.instance||De||ye&&(pe||!d.currentAnimation)){d.resumeFrom&&(d.resumingFrom=d.resumeFrom,d.resumingFrom.resumingFrom=void 0),d.setAnimationOrigin(x,De);var Fe=at(at({},My(ze,"layout")),{onPlay:Ye,onComplete:et});_.shouldReduceMotion&&(Fe.delay=0,Fe.type=!1),d.startAnimation(Fe)}else!ye&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((de=(J=d.options).onExitComplete)===null||de===void 0||de.call(J));d.targetLayout=Qe})}},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,Mf.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(bU))},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 S=this.path[p];S.shouldResetTransform=!0,S.updateScroll()}var T=this.options,_=T.layoutId,R=T.layout;if(!(_===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(OS);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(CU),this.potentialNodes.clear()),this.nodes.forEach(gU),this.nodes.forEach(dU),this.nodes.forEach(hU),this.clearAllSnapshots(),lv.update(),lv.preRender(),lv.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(pU),this.sharedNodes.forEach(wU)},s.prototype.scheduleUpdateProjection=function(){js.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var l=this;js.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));RS(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();RS(v);var p=this.layout;this.layout={measured:v,actual:this.removeElementScroll(v)},this.layoutCorrected=Mi(),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&&!_k(this.projectionDelta),v=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate,p=v==null?void 0:v(this.latestValues,""),S=p!==this.prevTransformTemplateValue;c&&(d||vl(this.latestValues)||S)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var l=this.options.visualElement;if(!l)return Mi();var c=l.measureViewportBox(),d=this.root.scroll;return d&&(yl(c.x,d.x),yl(c.y,d.y)),c},s.prototype.removeElementScroll=function(l){var c=Mi();ts(c,l);for(var d=0;d<this.path.length;d++){var v=this.path[d],p=v.scroll,S=v.options,T=v.isScrollRoot;if(v!==this.root&&p&&S.layoutScroll){if(T){ts(c,l);var _=this.root.scroll;_&&(yl(c.x,-_.x),yl(c.y,-_.y))}yl(c.x,p.x),yl(c.y,p.y)}}return c},s.prototype.applyTransform=function(l,c){c===void 0&&(c=!1);var d=Mi();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&&kf(d,{x:-p.scroll.x,y:-p.scroll.y}),vl(p.latestValues)&&kf(d,p.latestValues)}return vl(this.latestValues)&&kf(d,this.latestValues),d},s.prototype.removeTransform=function(l){var c,d=Mi();ts(d,l);for(var v=0;v<this.path.length;v++){var p=this.path[v];if(p.instance&&vl(p.latestValues)){bk(p.latestValues)&&p.updateSnapshot();var S=Mi(),T=p.measure();ts(S,T),TS(d,p.latestValues,(c=p.snapshot)===null||c===void 0?void 0:c.layout,S)}}return vl(this.latestValues)&&TS(d,this.latestValues),d},s.prototype.setTargetDelta=function(l){this.targetDelta=l,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(l){var c;this.options=at(at(at({},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=Mi(),this.relativeTargetOrigin=Mi(),yd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ts(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Mi(),this.targetWithTransforms=Mi()),this.relativeTarget&&this.relativeTargetOrigin&&(!((l=this.relativeParent)===null||l===void 0)&&l.target)?fH(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ts(this.target,this.layout.actual),wk(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=Mi(),this.relativeTargetOrigin=Mi(),yd(this.relativeTargetOrigin,this.target,this.relativeParent.target),ts(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||vl(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),wH(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==p);var S=p.target;if(S){this.projectionDelta||(this.projectionDelta=bd(),this.projectionDeltaWithTransform=bd());var T=this.treeScale.x,_=this.treeScale.y,R=this.projectionTransform;md(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=ES(this.projectionDelta,this.treeScale),(this.projectionTransform!==R||this.treeScale.x!==T||this.treeScale.y!==_)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}}},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,S=(p==null?void 0:p.latestValues)||{},T=at({},this.latestValues),_=bd();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!c;var R=Mi(),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(SU));this.animationProgress=0,this.mixTargetDelta=function(Y){var ne,J=Y/1e3;DS(_.x,l.x,J),DS(_.y,l.y,J),d.setTargetDelta(_),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((ne=d.relativeParent)===null||ne===void 0)&&ne.layout)&&(yd(R,d.layout.actual,d.relativeParent.layout.actual),xU(d.relativeTarget,d.relativeTargetOrigin,R,J)),L&&(d.animationValues=T,nU(T,S,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&&(Mf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=js.update(function(){hd.hasAnimatedSinceResize=!0,c.currentAnimation=eU(0,kS,at(at({},l),{onUpdate:function(p){var S;c.mixTargetDelta(p),(S=l.onUpdate)===null||S===void 0||S.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,kS),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),kf(c,p),md(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 uU);var S=this.sharedNodes.get(l);S.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,S=this.getStack();S&&S.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<sm.length;v++){var p=sm[v],S="rotate"+p;l.getStaticValue(S)&&(c=!0,d[S]=l.getStaticValue(S),l.setStaticValue(S,0))}if(c){l==null||l.syncRender();for(var S in d)l.setStaticValue(S,d[S]);l.scheduleRender()}}},s.prototype.getProjectionStyles=function(l){var c,d,v,p,S,T;l===void 0&&(l={});var _={};if(!this.instance||this.isSVG)return _;if(this.isVisible)_.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,_.opacity="",_.pointerEvents=Wh(l.pointerEvents)||"",_.transform=R?R(this.latestValues,""):"none",_;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=Wh(l.pointerEvents)||""),this.hasProjected&&!vl(this.latestValues)&&(I.transform=R?R({},""):"none",this.hasProjected=!1),I}var U=L.animationValues||L.latestValues;this.applyTransformsToTarget(),_.transform=ES(this.projectionDeltaWithTransform,this.treeScale,U),R&&(_.transform=R(U,_.transform));var Y=this.projectionDelta,ne=Y.x,J=Y.y;_.transformOrigin="".concat(ne.origin*100,"% ").concat(J.origin*100,"% 0"),L.animationValues?_.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:_.opacity=L===this?(S=U.opacity)!==null&&S!==void 0?S:"":(T=U.opacityExit)!==null&&T!==void 0?T:0;for(var de in hp)if(U[de]!==void 0){var x=hp[de],ye=x.correct,le=x.applyTo,Qe=ye(U[de],L);if(le)for(var ze=le.length,He=0;He<ze;He++)_[le[He]]=Qe;else _[de]=Qe}return this.options.layoutId&&(_.pointerEvents=L===this?Wh(l.pointerEvents)||"":"none"),_},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(OS),this.root.sharedNodes.clear()},s}()}function dU(e){e.updateLayout()}function hU(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"?As(function(U){var Y=o.isShared?o.measured[U]:o.layout[U],ne=Lu(Y);Y.min=l[U].min,Y.max=Y.min+ne}):e.options.animationType==="position"&&As(function(U){var Y=o.isShared?o.measured[U]:o.layout[U],ne=Lu(l[U]);Y.max=Y.min+ne});var d=bd();md(d,l,o.layout);var v=bd();o.isShared?md(v,e.applyTransform(c,!0),o.measured):md(v,l,o.layout);var p=!_k(d),S=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var T=e.relativeParent,_=T.snapshot,R=T.layout;if(_&&R){var L=Mi();yd(L,o.layout,_.layout);var I=Mi();yd(I,l,R.actual),Rk(L,I)||(S=!0)}}e.notifyListeners("didUpdate",{layout:l,snapshot:o,delta:v,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:S})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function pU(e){e.clearSnapshot()}function OS(e){e.clearMeasurements()}function gU(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function vU(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function mU(e){e.resolveTargetDelta()}function yU(e){e.calcProjection()}function bU(e){e.resetRotation()}function wU(e){e.removeLeadSnapshot()}function DS(e,t,n){e.translate=cr(t.translate,0,n),e.scale=cr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function PS(e,t,n,r){e.min=cr(t.min,n.min,r),e.max=cr(t.max,n.max,r)}function xU(e,t,n,r){PS(e.x,t.x,n.x,r),PS(e.y,t.y,n.y,r)}function SU(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var TU={duration:.45,ease:[.4,0,.1,1]};function CU(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 _S(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function RS(e){_S(e.x),_S(e.y)}var EU=Ik({attachResizeListener:function(e,t){return Wp(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),gv={current:void 0},kU=Ik({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!gv.current){var e=new EU(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),gv.current=e}return gv.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),OU=at(at(at(at({},uH),k3),PH),QH),DU=b$(function(e,t){return oV(e,t,OU,qH,kU)});function Tm(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}Tm.debounce=Tm;var PU=Tm;const IS=Bc(PU);function _U(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]=Q.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=Q.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),d=t?typeof t=="number"?t:t.scroll:null,v=t?typeof t=="number"?t:t.resize:null,p=Q.useRef(!1);Q.useEffect(()=>(p.current=!0,()=>void(p.current=!1)));const[S,T,_]=Q.useMemo(()=>{const U=()=>{if(!c.current.element)return;const{left:Y,top:ne,width:J,height:de,bottom:x,right:ye,x:le,y:Qe}=c.current.element.getBoundingClientRect(),ze={left:Y,top:ne,width:J,height:de,bottom:x,right:ye,x:le,y:Qe};c.current.element instanceof HTMLElement&&i&&(ze.height=c.current.element.offsetHeight,ze.width=c.current.element.offsetWidth),Object.freeze(ze),p.current&&!MU(c.current.lastBounds,ze)&&l(c.current.lastBounds=ze)};return[U,v?IS(U,v):U,d?IS(U,d):U]},[l,i,d,v]);function R(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(U=>U.removeEventListener("scroll",_,!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(_),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(U=>U.addEventListener("scroll",_,{capture:!0,passive:!0})))}const I=U=>{!U||U===c.current.element||(R(),c.current.element=U,c.current.scrollContainers=Ak(U),L())};return IU(_,!!n),RU(T),Q.useEffect(()=>{R(),L()},[n,_,T]),Q.useEffect(()=>R,[]),[I,s,S]}function RU(e){Q.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function IU(e,t){Q.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function Ak(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,...Ak(e.parentElement)]}const AU=["x","y","top","bottom","left","right","width","height"],MU=(e,t)=>AU.every(n=>e[n]===t[n]),Mk=Q.createContext({dragDropManager:void 0});function Sa(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 AS=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),vv=function(){return Math.random().toString(36).substring(7).split("").join(".")},MS={INIT:"@@redux/INIT"+vv(),REPLACE:"@@redux/REPLACE"+vv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vv()}};function LU(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 NU(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(BU(e))return"date";if(jU(e))return"error";var n=FU(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 FU(e){return typeof e.constructor=="function"?e.constructor.name:null}function jU(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function BU(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=NU(e)),t}function Lk(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"?Sa(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"?Sa(1):"Expected the enhancer to be a function. Instead, received: '"+pf(n)+"'");return n(Lk)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Sa(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"?Sa(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"?Sa(4):"Expected the listener to be a function. Instead, received: '"+pf(R)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?Sa(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"?Sa(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 S(R){if(!LU(R))throw new Error(process.env.NODE_ENV==="production"?Sa(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"?Sa(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"?Sa(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"?Sa(10):"Expected the nextReducer to be a function. Instead, received: '"+pf(R));i=R,S({type:MS.REPLACE})}function _(){var R,L=p;return R={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?Sa(11):"Expected the observer to be an object. Instead, received: '"+pf(U)+"'");function Y(){U.next&&U.next(v())}Y();var ne=L(Y);return{unsubscribe:ne}}},R[AS]=function(){return this},R}return S({type:MS.INIT}),r={dispatch:S,subscribe:p,getState:v,replaceReducer:T},r[AS]=_,r}function Kt(e,t,...n){if($U()&&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 $U(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function VU(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function HU(e,t){return e.filter(n=>n!==t)}function Nk(e){return typeof e=="object"}function UU(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 WU(e,t){return e.filter(n=>t.indexOf(n)>-1)}const By="dnd-core/INIT_COORDS",qp="dnd-core/BEGIN_DRAG",$y="dnd-core/PUBLISH_DRAG_SOURCE",Xp="dnd-core/HOVER",Kp="dnd-core/DROP",Zp="dnd-core/END_DRAG";function LS(e,t){return{type:By,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const zU={type:By,payload:{clientOffset:null,sourceClientOffset:null}};function YU(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,l=e.getMonitor(),c=e.getRegistry();e.dispatch(LS(o)),GU(n,l,c);const d=KU(n,l);if(d==null){e.dispatch(zU);return}let v=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");qU(s),v=s(d)}e.dispatch(LS(o,v));const S=c.getSource(d).beginDrag(l,d);if(S==null)return;XU(S),c.pinSource(d);const T=c.getSourceType(d);return{type:qp,payload:{itemType:T,item:S,sourceId:d,clientOffset:o||null,sourceClientOffset:v||null,isSourcePublic:!!i}}}}function GU(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 qU(e){Kt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function XU(e){Kt(Nk(e),"Item must be an object.")}function KU(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 ZU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JU(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){ZU(e,i,n[i])})}return e}function QU(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();eW(r),rW(r).forEach((s,l)=>{const c=tW(s,l,i,r),d={type:Kp,payload:{dropResult:JU({},n,c)}};e.dispatch(d)})}}function eW(e){Kt(e.isDragging(),"Cannot call drop while not dragging."),Kt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function tW(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return nW(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function nW(e){Kt(typeof e>"u"||Nk(e),"Drop result must either be an object or undefined.")}function rW(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function iW(e){return function(){const n=e.getMonitor(),r=e.getRegistry();oW(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Zp}}}function oW(e){Kt(e.isDragging(),"Cannot call endDrag while not dragging.")}function Cm(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function aW(e){return function(n,{clientOffset:r}={}){sW(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),l=o.getItemType();return lW(i,s,l),uW(i,o,s),cW(i,o,s),{type:Xp,payload:{targetIds:i,clientOffset:r||null}}}}function sW(e){Kt(Array.isArray(e),"Expected targetIds to be an array.")}function uW(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 lW(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);Cm(o,n)||e.splice(r,1)}}function cW(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function fW(e){return function(){if(e.getMonitor().isDragging())return{type:$y}}}function dW(e){return{beginDrag:YU(e),publishDragSource:fW(e),hover:aW(e),drop:QU(e),endDrag:iW(e)}}class hW{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=dW(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 pW(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Fk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gW(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Fk(pW(t,r),n)}function vW(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Fk(t,n)}const wd=[],Vy=[];wd.__IS_NONE__=!0;Vy.__IS_ALL__=!0;function mW(e,t){return e===wd?!1:e===Vy||typeof t>"u"?!0:WU(t,e).length>0}class yW{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&&!mW(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 Cm(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&&!Cm(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 gW(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return vW(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const NS=typeof global<"u"?global:self,jk=NS.MutationObserver||NS.WebKitMutationObserver;function Bk(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function bW(e){let t=1;const n=new jk(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const wW=typeof jk=="function"?bW:Bk;class xW{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=wW(this.flush),this.requestErrorThrow=Bk(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class SW{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 TW{create(t){const n=this.freeTasks,r=n.length?n.pop():new SW(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const $k=new xW,CW=new TW($k.registerPendingError);function EW(e){$k.enqueueTask(CW.create(e))}const Hy="dnd-core/ADD_SOURCE",Uy="dnd-core/ADD_TARGET",Wy="dnd-core/REMOVE_SOURCE",Jp="dnd-core/REMOVE_TARGET";function kW(e){return{type:Hy,payload:{sourceId:e}}}function OW(e){return{type:Uy,payload:{targetId:e}}}function DW(e){return{type:Wy,payload:{sourceId:e}}}function PW(e){return{type:Jp,payload:{targetId:e}}}function _W(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 RW(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 Em(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Em(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 Oa;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Oa||(Oa={}));let IW=0;function AW(){return IW++}function MW(e){const t=AW().toString();switch(e){case Oa.SOURCE:return`S${t}`;case Oa.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function FS(e){switch(e[0]){case"S":return Oa.SOURCE;case"T":return Oa.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function jS(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 LW{addSource(t,n){Em(t),_W(n);const r=this.addHandler(Oa.SOURCE,t,n);return this.store.dispatch(kW(r)),r}addTarget(t,n){Em(t,!0),RW(n);const r=this.addHandler(Oa.TARGET,t,n);return this.store.dispatch(OW(r)),r}containsHandler(t){return jS(this.dragSources,t)||jS(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 FS(t)===Oa.SOURCE}isTargetId(t){return FS(t)===Oa.TARGET}removeSource(t){Kt(this.getSource(t),"Expected an existing source."),this.store.dispatch(DW(t)),EW(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Kt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(PW(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=MW(t);return this.types.set(i,n),t===Oa.SOURCE?this.dragSources.set(i,r):t===Oa.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 NW=(e,t)=>e===t;function FW(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function jW(e,t,n=NW){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 BW(e=wd,t){switch(t.type){case Xp:break;case Hy:case Uy:case Jp:case Wy:return wd;case qp:case $y:case Zp:case Kp:default:return Vy}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=UU(n,r);if(!(i.length>0||!jW(n,r)))return wd;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function $W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VW(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){$W(e,i,n[i])})}return e}const BS={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function HW(e=BS,t){const{payload:n}=t;switch(t.type){case By:case qp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Xp:return FW(e.clientOffset,n.clientOffset)?e:VW({},e,{clientOffset:n.clientOffset});case Zp:case Kp:return BS;default:return e}}function UW(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){UW(e,i,n[i])})}return e}const WW={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function zW(e=WW,t){const{payload:n}=t;switch(t.type){case qp:return gf({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case $y:return gf({},e,{isSourcePublic:!0});case Xp:return gf({},e,{targetIds:n.targetIds});case Jp:return e.targetIds.indexOf(n.targetId)===-1?e:gf({},e,{targetIds:HU(e.targetIds,n.targetId)});case Kp:return gf({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Zp:return gf({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function YW(e=0,t){switch(t.type){case Hy:case Uy:return e+1;case Wy:case Jp:return e-1;default:return e}}function GW(e=0){return e+1}function qW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XW(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){qW(e,i,n[i])})}return e}function KW(e={},t){return{dirtyHandlerIds:BW(e.dirtyHandlerIds,{type:t.type,payload:XW({},t.payload,{prevTargetIds:VU(e,"dragOperation.targetIds",[])})}),dragOffset:HW(e.dragOffset,t),refCount:YW(e.refCount,t),dragOperation:zW(e.dragOperation,t),stateId:GW(e.stateId)}}function ZW(e,t=void 0,n={},r=!1){const i=JW(r),o=new yW(i,new LW(i)),s=new hW(i,o),l=e(s,t,n);return s.receiveBackend(l),s}function JW(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Lk(KW,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function QW(e,t){if(e==null)return{};var n=ez(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 ez(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 $S=0;const Gh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var tz=Q.memo(function(t){var{children:n}=t,r=QW(t,["children"]);const[i,o]=nz(r);return Q.useEffect(()=>{if(o){const s=Vk();return++$S,()=>{--$S===0&&(s[Gh]=null)}}},[]),st.jsx(Mk.Provider,{value:i,children:n})});function nz(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=rz(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function rz(e,t=Vk(),n,r){const i=t;return i[Gh]||(i[Gh]={dragDropManager:ZW(e,t,n,r)}),i[Gh]}function Vk(){return typeof global<"u"?global:window}var iz=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 oz=Bc(iz),Ic=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function Hk(e,t,n){const[r,i]=Q.useState(()=>t(e)),o=Q.useCallback(()=>{const s=t(e);oz(r,s)||(i(s),n&&n())},[r,e,n]);return Ic(o),[r,o]}function az(e,t,n){const[r,i]=Hk(e,t,n);return Ic(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function Uk(e,t,n){return az(t,e||(()=>({})),()=>n.reconnect())}function Wk(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),Q.useMemo(()=>typeof e=="function"?e():e,n)}function sz(e){return Q.useMemo(()=>e.hooks.dragSource(),[e])}function uz(e){return Q.useMemo(()=>e.hooks.dragPreview(),[e])}let mv=!1,yv=!1;class lz{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Kt(!mv,"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 mv=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{mv=!1}}isDragging(){if(!this.sourceId)return!1;Kt(!yv,"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 yv=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{yv=!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 bv=!1;class cz{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(!bv,"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 bv=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{bv=!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 fz(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function dz(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function km(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 Om(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hz(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 pz(e){return(t=null,n=null)=>{if(!Q.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return hz(r),gz(r,n?o=>e(o,n):e)}}function zk(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=pz(r);t[n]=()=>i}}),t}function VS(e,t){typeof e=="function"?e(t):e.current=t}function gz(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?Q.cloneElement(e,{ref:r=>{VS(n,r),VS(t,r)}}):Q.cloneElement(e,{ref:t})}class vz{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!km(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!km(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=zk({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Om(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Om(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 mz{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!km(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=zk({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Om(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 Nu(){const{dragDropManager:e}=Q.useContext(Mk);return Kt(e!=null,"Expected drag drop context"),e}function yz(e,t){const n=Nu(),r=Q.useMemo(()=>new vz(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 bz(){const e=Nu();return Q.useMemo(()=>new lz(e),[e])}class wz{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 xz(e,t,n){const r=Q.useMemo(()=>new wz(e,t,n),[t,n]);return Q.useEffect(()=>{r.spec=e},[e]),r}function Sz(e){return Q.useMemo(()=>{const t=e.type;return Kt(t!=null,"spec.type must be defined"),t},[e])}function Tz(e,t,n){const r=Nu(),i=xz(e,t,n),o=Sz(e);Ic(function(){if(o!=null){const[l,c]=dz(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,t,n,i,o])}function Cz(e,t){const n=Wk(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=bz(),i=yz(n.options,n.previewOptions);return Tz(n,r,i),[Uk(n.collect,r,i),sz(i),uz(i)]}function Ez(e){const n=Nu().getMonitor(),[r,i]=Hk(n,e);return Q.useEffect(()=>n.subscribeToOffsetChange(i)),Q.useEffect(()=>n.subscribeToStateChange(i)),r}function kz(e){return Q.useMemo(()=>e.hooks.dropTarget(),[e])}function Oz(e){const t=Nu(),n=Q.useMemo(()=>new mz(t.getBackend()),[t]);return Ic(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Dz(){const e=Nu();return Q.useMemo(()=>new cz(e),[e])}function Pz(e){const{accept:t}=e;return Q.useMemo(()=>(Kt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class _z{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 Rz(e,t){const n=Q.useMemo(()=>new _z(e,t),[t]);return Q.useEffect(()=>{n.spec=e},[e]),n}function Iz(e,t,n){const r=Nu(),i=Rz(e,t),o=Pz(e);Ic(function(){const[l,c]=fz(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function Yk(e,t){const n=Wk(e,t),r=Dz(),i=Oz(n.options);return Iz(n,r,i),[Uk(n.collect,r,i),kz(i)]}function wv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Az(e,t,n){Mz(e,t),t.set(e,n)}function Mz(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ah(e,t){var n=Gk(e,t,"get");return Lz(e,n)}function Lz(e,t){return t.get?t.get.call(e):t.value}function Nz(e,t,n){var r=Gk(e,t,"set");return Fz(e,r,n),n}function Gk(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Fz(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 jz{constructor(){Az(this,vf,{writable:!0,value:void 0}),wv(this,"register",t=>{Ah(this,vf).push(t)}),wv(this,"unregister",t=>{let n;for(;(n=Ah(this,vf).indexOf(t))!==-1;)Ah(this,vf).splice(n,1)}),wv(this,"backendChanged",t=>{for(const n of Ah(this,vf))n.backendChanged(t)}),Nz(this,vf,[])}}function ns(e,t,n){Bz(e,t),t.set(e,n)}function Bz(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Is(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=qk(e,t,"get");return $z(e,n)}function $z(e,t){return t.get?t.get.call(e):t.value}function mf(e,t,n){var r=qk(e,t,"set");return Vz(e,r,n),n}function qk(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Vz(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 Ta=new WeakMap,Mh=new WeakMap,Ca=new WeakMap,hl=new WeakMap,yc=new WeakMap,HS=new WeakMap,US=new WeakMap,WS=new WeakMap,xv=new WeakMap,Sv=new WeakMap,Lh=new WeakMap;class _f{constructor(t,n,r){if(ns(this,Ta,{writable:!0,value:void 0}),ns(this,Mh,{writable:!0,value:void 0}),ns(this,Ca,{writable:!0,value:void 0}),ns(this,hl,{writable:!0,value:void 0}),ns(this,yc,{writable:!0,value:void 0}),ns(this,HS,{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'.
|
|
31
|
+
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),`
|
|
32
|
+
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(Jt(this,Ca)[v])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
33
|
+
`.concat(JSON.stringify(s)," (conflicts with: ").concat(JSON.stringify(Jt(this,Ca)[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}}}),Is(this,"setup",()=>{if(!(typeof window>"u")){if(_f.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");_f.isSetUp=!0,Jt(this,US).call(this,window),Jt(this,Ca)[Jt(this,Ta)].instance.setup()}}),Is(this,"teardown",()=>{typeof window>"u"||(_f.isSetUp=!1,Jt(this,WS).call(this,window),Jt(this,Ca)[Jt(this,Ta)].instance.teardown())}),Is(this,"connectDragSource",(i,o,s)=>Jt(this,Lh).call(this,"connectDragSource",i,o,s)),Is(this,"connectDragPreview",(i,o,s)=>Jt(this,Lh).call(this,"connectDragPreview",i,o,s)),Is(this,"connectDropTarget",(i,o,s)=>Jt(this,Lh).call(this,"connectDropTarget",i,o,s)),Is(this,"profile",()=>Jt(this,Ca)[Jt(this,Ta)].instance.profile()),Is(this,"previewEnabled",()=>Jt(this,Ca)[Jt(this,Ta)].preview),Is(this,"previewsList",()=>Jt(this,Mh)),Is(this,"backendsList",()=>Jt(this,hl)),ns(this,US,{writable:!0,value:i=>{Jt(this,hl).forEach(o=>{o.transition&&i.addEventListener(o.transition.event,Jt(this,xv))})}}),ns(this,WS,{writable:!0,value:i=>{Jt(this,hl).forEach(o=>{o.transition&&i.removeEventListener(o.transition.event,Jt(this,xv))})}}),ns(this,xv,{writable:!0,value:i=>{const o=Jt(this,Ta);if(Jt(this,hl).some(l=>l.id!==Jt(this,Ta)&&l.transition&&l.transition.check(i)?(mf(this,Ta,l.id),!0):!1),Jt(this,Ta)!==o){var s;Jt(this,Ca)[o].instance.teardown(),Object.keys(Jt(this,yc)).forEach(v=>{const p=Jt(this,yc)[v];p.unsubscribe(),p.unsubscribe=Jt(this,Sv).call(this,p.func,...p.args)}),Jt(this,Mh).backendChanged(this);const l=Jt(this,Ca)[Jt(this,Ta)];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,Sv,{writable:!0,value:(i,o,s,l)=>Jt(this,Ca)[Jt(this,Ta)].instance[i](o,s,l)}),ns(this,Lh,{writable:!0,value:(i,o,s,l)=>{const c="".concat(i,"_").concat(o),d=Jt(this,Sv).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)
|
|
34
|
+
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);mf(this,Mh,new jz),mf(this,Ca,{}),mf(this,hl,[]),r.backends.forEach(i=>{const o=Jt(this,HS).call(this,t,n,i);Jt(this,Ca)[o.id]=o,Jt(this,hl).push(o)}),mf(this,Ta,Jt(this,hl)[0].id),mf(this,yc,{})}}Is(_f,"isSetUp",!1);const Hz=(e,t,n)=>new _f(e,t,n),Xk=(e,t)=>({event:e,check:t}),Uz=Xk("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),Wz=Xk("pointerdown",e=>e.pointerType=="mouse");var Cl;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Cl||(Cl={}));class zz{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 Yz(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function Gz(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 qz={Left:1,Right:2,Center:4},Xz={Left:0,Center:1,Right:2};function Tv(e){return e.button===void 0||e.button===Xz.Left}function Kz(e){return e.buttons===void 0||(e.buttons&qz.Left)===0}function Kk(e){return!!e.targetTouches}const Zz=1;function Jz(e){const t=e.nodeType===Zz?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Qz(e,t){if(e.targetTouches.length===1)return Sp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Sp(e.touches[0])}function Sp(e,t){return Kk(e)?Qz(e,t):{x:e.clientX,y:e.clientY}}const zS=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),id={[Cl.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Cl.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Cl.keyboard]:{keydown:"keydown"}};class xd{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(!xd.isSetUp,"Cannot have two Touch backends at the same time."),xd.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&&(xd.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=zS?{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=zS?{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&&Jz(o)},this.handleTopMoveStartCapture=i=>{Tv(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!Tv(i))return;const o=Sp(i);o&&(Kk(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!Tv(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=Sp(i,this.lastTargetTouchFallback);if(!c)return;if(this._isScrolling||!this.monitor.isDragging()&&Gz(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&&Yz(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(_=>this.targetNodes.get(_)).filter(_=>!!_),p=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(c.x,c.y,v):this.document.elementsFromPoint(c.x,c.y),S=[];for(const _ in p){if(!p.hasOwnProperty(_))continue;let R=p[_];for(R!=null&&S.push(R);R;)R=R.parentElement,R&&S.indexOf(R)===-1&&S.push(R)}const T=S.filter(_=>v.indexOf(_)>-1).map(_=>this._getDropTargetId(_)).filter(_=>!!_).filter((_,R,L)=>L.indexOf(_)===R);if(l)for(const _ in this.targetNodes){const R=this.targetNodes.get(_);if(d&&R&&R.contains(d)&&T.indexOf(_)===-1){T.unshift(_);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,!!Kz(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 zz(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(Cl.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Cl.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Cl.keyboard)}}const e5=function(t,n={},r={}){return new xd(t,n,r)};var Pa=function(){return Pa=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},Pa.apply(this,arguments)};function oo(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 t5(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=_U({polyfill:QB}),d=c[0],v=c[1].height,p=Q.useState(t),S=p[0],T=p[1],_=Q.useState(t),R=_[0],L=_[1],I=Q.useState(!1),U=I[0],Y=I[1],ne=function(){Y(!1),t||T(!1)};return Q.useEffect(function(){Y(!0),t?T(!0):L(!1)},[t]),Q.useEffect(function(){S&&L(!0)},[v]),Q.createElement(DU.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:ne,initial:R?"open":"close",animate:R?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:n5(v,i)}},Q.createElement("div",{ref:d},S&&l))}function n5(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 r5=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})},Zk=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:Zk(e,t,r.parent)},zy=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},_l=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=zy(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:!Zk(r,l,t)}},i5=function(e,t,n){return e.map(function(r){return r.id===t?Pa(Pa({},r),{parent:n}):r})},Jk=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},o5=function(e,t){return e.findIndex(function(n){return n.id===t})},Qk=function(e,t,n,r){var i=o5(e,t),o=Jk(e,n,r);return o=o>i?o-1:o,[i,o]},a5=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)}},s5=function(e,t,n,r){var i=Qk(e,t,n,r),o=i[0],s=i[1],l=oo([],e,!0);return a5(l,o,s),l.map(function(c){return c.id===t?Pa(Pa({},c),{parent:n}):c})},u5=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},Dm=function(e,t){var n="",r=0;return e.forEach(function(i,o){var s,l=u5(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},YS=function(e,t,n){var r=t.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?Dm(i,n):null},l5=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"},Pm=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:Dm(o,n)}}var s=n.getItem(),l=t.querySelector('[role="list"]'),c=l5(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(l){if(c==="upper")if(_l(s,e.parent,r)){var d=YS(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:Dm(o,n)}}else{if(c==="middle")return{id:e.id,index:0};if(_l(s,e.parent,r)){var d=YS(e,t,n);return d===null?null:{id:e.parent,index:d}}return null}},c5=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:IB,options:e.html5,transition:Wz},{id:"touch",backend:e5,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:Uz}]}},qh=function(e,t){return e.some(function(n){return n.parent===t})},eO=Q.createContext({}),f5=function(e){var t=x5(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;Q.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=Nu().getMonitor(),v=e.canDrop,p=e.canDrag,S=Pa(Pa({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(T,_,R){if(T){var L={dragSourceId:T.id,dropTargetId:_,dragSource:T,dropTarget:od(e.tree,_),monitor:d},I=e.tree;if(od(I,T.id)||(I=oo(oo([],I,!0),[T],!1)),e.sort===!1){var U=Qk(I,T.id,_,R),Y=U[1];L.destinationIndex=Y,L.relativeIndex=R,e.onDrop(s5(I,T.id,_,R),L);return}e.onDrop(i5(I,T.id,_),L)}else{var L={dropTargetId:_,dropTarget:od(e.tree,_),monitor:d};e.sort===!1&&(L.destinationIndex=Jk(e.tree,_,R),L.relativeIndex=R),e.onDrop(e.tree,L)}},canDrop:v?function(T,_){return v(e.tree,{dragSourceId:T??void 0,dropTargetId:_,dragSource:d.getItem(),dropTarget:od(e.tree,_),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 Q.createElement(eO.Provider,{value:S},e.children)},tO=Q.createContext({}),d5={isLock:!1},h5=function(e){var t=Q.useState(d5.isLock),n=t[0],r=t[1];return Q.createElement(tO.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},Kd=Q.createContext({}),Nh={dropTargetId:void 0,index:void 0},p5=function(e){var t=Q.useState(Nh.dropTargetId),n=t[0],r=t[1],i=Q.useState(Nh.index),o=i[0],s=i[1],l=function(d,v){r(d),s(v)},c=function(){r(Nh.dropTargetId),s(Nh.index)};return Q.createElement(Kd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:l,hidePlaceholder:c}},e.children)},g5=function(e){return Q.createElement(f5,Pa({},e),Q.createElement(h5,null,Q.createElement(p5,null,e.children)))},v5=function(e){var t=Q.useContext(tO);Q.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]),Q.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},Qp={TREE_ITEM:Symbol()},nO=null,rO=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(nO=n)}},GS=function(e){return rO(e)},qS=function(e){return rO(e)},m5=function(e,t){var n=Al();Q.useEffect(function(){var l=t.current;return l==null||l.addEventListener("dragstart",GS),l==null||l.addEventListener("touchstart",qS,{passive:!0}),function(){l==null||l.removeEventListener("dragstart",GS),l==null||l.removeEventListener("touchstart",qS)}},[t]);var r=Cz({type:Qp.TREE_ITEM,item:function(l){var c=Pa({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 nO!==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]},y5=function(e,t,n){var r=Q.useRef(0),i=Q.useRef(0),o=function(){r.current+=1,r.current===1&&!t&&(i.current=window.setTimeout(function(){return n(e)},500))},s=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},l=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:s,onDrop:l}},b5=function(e){var t=Al(),n=Q.useContext(Kd),r=Yk({accept:oo([Qp.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(c,d){var v=t.rootId,p=t.onDrop,S=n.dropTargetId,T=n.index;d.isOver({shallow:!0})&&S!==void 0&&T!==void 0&&p(zy(c)?c:null,v,T),n.hidePlaceholder()},canDrop:function(c,d){var v=t.rootId;return d.isOver({shallow:!0})?c===void 0?!1:_l(c,v,t):!1},hover:function(c,d){if(d.isOver({shallow:!0})){var v=t.rootId,p=n.dropTargetId,S=n.index,T=n.showPlaceholder,_=n.hidePlaceholder,R=Pm(null,e.current,d,t);if(R===null||!_l(c,v,t)){_();return}(R.id!==p||R.index!==S)&&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]},w5=function(e,t){var n=Al(),r=Q.useContext(Kd),i=Yk({accept:oo([Qp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(d,v){var p=r.dropTargetId,S=r.index;v.isOver({shallow:!0})&&p!==void 0&&S!==void 0&&n.onDrop(zy(d)?d:null,p,S),r.hidePlaceholder()},canDrop:function(d,v){if(v.isOver({shallow:!0})){var p=Pm(e,t.current,v,n);return p===null?!1:_l(d,p.id,n)}return!1},hover:function(d,v){if(v.isOver({shallow:!0})){var p=r.dropTargetId,S=r.index,T=r.showPlaceholder,_=r.hidePlaceholder,R=Pm(e,t.current,v,n);if(R===null||!_l(d,R.id,n)){_();return}(R.id!==p||R.index!==S)&&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]},x5=function(e,t){var n=Q.useMemo(function(){return t===!0?e.filter(function(p){return qh(e,p.id)}).map(function(p){return p.id}):Array.isArray(t)?t:[]},[t]),r=Q.useState(n),i=r[0],o=r[1];Q.useEffect(function(){return o(n)},[t]);var s=function(p,S){var T=i.includes(p)?i.filter(function(_){return _!==p}):oo(oo([],i,!0),[p],!1);o(T),S&&S(T)},l=function(p){o([]),p&&p([])},c=function(p){var S=e.filter(function(T){return qh(e,T.id)}).map(function(T){return T.id});o(S),p&&p(S)},d=function(p,S){var T=[];if(Array.isArray(p)){var _=e.filter(function(R){return p.includes(R.id)&&qh(e,R.id)});T=oo(oo([],i,!0),_.map(function(R){return R.id}),!0).filter(function(R,L,I){return I.indexOf(R)===L})}else T=i.includes(p)?i:oo(oo([],i,!0),[p],!1);o(T),S&&S(T)},v=function(p,S){var T=i.filter(function(_){return Array.isArray(p)?!p.includes(_):_!==p});o(T),S&&S(T)};return[i,{handleToggle:s,handleCloseAll:l,handleOpenAll:c,handleOpen:d,handleClose:v}]},S5=function(){return Ez(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===Qp.TREE_ITEM}})},Al=function(){var e=Q.useContext(eO);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},T5=function(e,t){var n=Al(),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},C5=function(e,t,n){t.current?n(t):n(e),Q.useEffect(function(){t.current?n(t):n(e)},[t.current])},E5=function(e){var t=Al(),n=Q.useContext(Kd),r=Q.useRef(null),i=Q.useRef(null),o=t.tree.find(function(ye){return ye.id===e.id}),s=t.openIds,l=t.classes,c=t.enableAnimateExpand,d=s.includes(e.id),v=m5(o,r),p=v[0],S=v[1],T=v[2],_=w5(o,r),R=_[0],L=_[1],I=_[2];C5(r,i,S),_l(L,e.id,t)&&I(r),Q.useEffect(function(){t.dragPreviewRender?T(RB(),{captureDraggingState:!0}):i.current&&T(r)},[T,t.dragPreviewRender]),v5(r);var U=function(){return t.onToggle(o.id)},Y=t.listItemComponent,ne=(l==null?void 0:l.listItem)||"";R&&(l!=null&&l.dropTarget)&&(ne="".concat(ne," ").concat(l.dropTarget)),p&&(l!=null&&l.draggingSource)&&(ne="".concat(ne," ").concat(l.draggingSource));var J=t.canDrag?t.canDrag(e.id):!0,de=n.dropTargetId===e.id,x={depth:e.depth,isOpen:d,isDragging:p,isDropTarget:de,draggable:J,hasChild:qh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:U};return Q.createElement(Y,{ref:r,className:ne,role:"listitem"},t.render(o,x),c&&x.hasChild&&Q.createElement(t5,{isVisible:d},Q.createElement(_m,{parentId:e.id,depth:e.depth+1})),!c&&x.hasChild&&d&&Q.createElement(_m,{parentId:e.id,depth:e.depth+1}))},XS=function(e){var t=Al(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=Q.useContext(Kd),s=Nu(),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?Q.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(c,{depth:e.depth})):null},_m=function(e){var t=Al(),n=Q.useRef(null),r=t.tree.filter(function(R){return R.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:r5;if(t.insertDroppableFirst){var s=r.filter(function(R){return R.droppable}),l=r.filter(function(R){return!R.droppable});t.sort===!1?i=oo(oo([],s,!0),l,!0):(s=s.sort(o),l=l.sort(o),i=oo(oo([],s,!0),l,!0))}else t.sort!==!1&&(i=r.sort(o));var c=b5(n),d=c[0],v=c[1],p=c[2];e.parentId===t.rootId&&_l(v,t.rootId,t)&&p(n);var S=T5(e.parentId,d),T=t.rootProps||{},_=t.listComponent;return Q.createElement(_,Pa({ref:n,role:"list"},T,{className:S}),i.map(function(R,L){return Q.createElement(Q.Fragment,{key:R.id},Q.createElement(XS,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:L}),Q.createElement(E5,{id:R.id,depth:e.depth}))}),Q.createElement(XS,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},k5={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},O5=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}},D5=function(){var e=Al(),t=S5(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:Q.createElement("div",{style:k5},Q.createElement("div",{style:O5(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function P5(e,t){return Q.createElement(g5,Pa({},e,{treeRef:t}),e.dragPreviewRender&&Q.createElement(D5,null),Q.createElement(_m,{parentId:e.rootId,depth:0}))}var _5=Q.forwardRef(P5);function iO({...e}){var De,Fe,Je,it,Oe;const t=e.item,n=e.level||0,r=!!((De=e.item.children)!=null&&De.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,l=o?"collapsed":"expanded",c=i(t.id)?"active":"",d=(xe,Ue=s)=>`${xe} ${Ue} ${l} ${c}`,[v,p]=Q.useState(!1),[S,T]=Q.useState(t.isFavorite||!1),_=Q.useRef(),R=Q.useRef();R!=null&&R.current&&((Fe=R==null?void 0:R.current)==null?void 0:Fe.scrollWidth)>((Je=R==null?void 0:R.current)==null?void 0:Je.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],Y=I.pathname.split("/")[1],ne=e.ssr||!L.includes("local")&&L!==I.origin||Y!==U,J=r||n===0?"div":ne?"a":x1.Link,de=t.path||"#",x=n+1,ye=r&&o&&v&&n>0,le=o||n===0?void 0:`${n+.25}rem`,Qe=()=>{p(!0)},ze=()=>{p(!1)},He="/global-menu-config/api/v1/menu-items/user/set-favorite",Ye=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,y5(t.id,e.params.isOpen,e.params.onToggle);const et=xe=>{xe.stopPropagation(),e.params.onToggle()},pe=Ye||o&&n===1;return st.jsxs("div",{ref:_,className:d("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Qe,onMouseOut:ze,onDragStart:xe=>{o&&n>1&&xe.preventDefault()},children:[st.jsx(_c.Tooltip,{placement:"top",disableInteractive:!0,title:pe?t.description||t.name:null,onDragStart:xe=>{console.log("onDragStart Tooltip",xe.target)},children:st.jsxs(J,{to:de,href:de,draggable:"true",className:d("menu-item__link"),style:{paddingLeft:le,transition:"all 0.3s",color:i(t.id)?((it=e.brandColors)==null?void 0:it.primary400)||so.primary400:void 0,backgroundColor:i(t.id)&&n===1?(Oe=e.brandColors)==null?void 0:Oe.primary200:void 0},onClick:xe=>{o||et(xe)},onDragStart:xe=>{console.log("onDragStart component",xe.target)},children:[st.jsx(R5,{cls:d,item:t}),st.jsx("span",{className:d("menu-item__label"),ref:R,children:t.name}),st.jsx(I5,{menuLevel:n,hasChildren:r,isHovered:v,isFavorite:S,onClick:xe=>{const Ue={menuConfigId:t.id,isFavorite:xe},Ve=e.baseUrl+He;Ls.post(Ve,Ue).then(Re=>{var Me;T(xe),mT("Set favorite menu item successfully"),(Me=e.onSetFavoriteSuccess)==null||Me.call(e,e.item.id,xe)}).catch(Re=>{var Me,Xe;Rp(((Xe=(Me=Re.response)==null?void 0:Me.data)==null?void 0:Xe.errorMessage)||"Have error when set favorite menu item")})}}),r&&st.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:st.jsx(pB,{className:d(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),ye&&st.jsx(gB,{parentRef:_,onlyChild:!o||o&&x<2,renderChildren:({maxHeight:xe})=>{var Ue;return st.jsx(Hj.div,{className:d(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${x}`),style:zC({maxHeight:xe,overflowY:"auto",paddingRight:3},xe!=="auto"&&!!x),children:(Ue=t.children)==null?void 0:Ue.map(Ve=>Q.createElement(iO,{...e,key:Ve.id,item:Ve,level:x}))})}})]})}function R5({item:e,cls:t}){var s,l;const[n,r]=Q.useState(!e.icon),i=()=>{r(!0)},o=(s=e.icon)==null?void 0:s.endsWith(".svg");return st.jsx("div",{className:t("menu-item__icon"),children:n?st.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(l=e.name.trim().at(0))==null?void 0:l.toUpperCase()}):o?st.jsx(gy,{src:e.icon,beforeInjection:c=>{c.setAttribute("style","margin: 0 auto;"),c.querySelectorAll("path").forEach(v=>{v.hasAttribute("fill")&&v.setAttribute("fill","currentColor"),v.hasAttribute("stroke")&&v.setAttribute("stroke","currentColor")})}}):st.jsx("img",{src:e.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:i})})}function I5(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:so.warning};if(e.menuLevel!==0)return st.jsxs(st.Fragment,{children:[e.isHovered&&!e.isFavorite&&st.jsx(_c.Tooltip,{title:"Add to favorites",children:st.jsx(vB,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&st.jsx(_c.Tooltip,{title:"Remove from favorites",children:st.jsx(mB,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}function A5(){return st.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:st.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 M5(){return st.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:st.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function L5(e){return st.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:st.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 N5=`.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:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0,.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.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.collapsed.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.collapsed.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.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,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;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.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{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.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-1{height:48px}.menu-item__dropdown.collapsed.level-1{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 bc={};/**
|
|
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 KS;function F5(){if(KS)return bc;KS=1;var e=Q;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,Pe,be,Le){this.acceptsBooleans=j===2||j===3||j===4,this.attributeName=re,this.attributeNamespace=Pe,this.mustUseProperty=q,this.propertyName=E,this.type=j,this.sanitizeURL=be,this.removeEmptyString=Le}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},S=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(E){S.forEach(function(j){j=j+E.charAt(0).toUpperCase()+E.substring(1),p[j]=p[E]})});var T=/["'&<>]/;function _(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var j=T.exec(E);if(j){var q="",re,Pe=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}Pe!==re&&(q+=E.substring(Pe,re)),Pe=re+1,q+=j}E=Pe!==re?q+E.substring(Pe,re):q}return E}var R=/([A-Z])/g,L=/^ms-/,I=Array.isArray;function U(E,j){return{insertionMode:E,selectedValue:j}}function Y(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 ne=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 Pe=q[re];if(Pe!=null&&typeof Pe!="boolean"&&Pe!==""){if(re.indexOf("--")===0){var be=_(re);Pe=_((""+Pe).trim())}else{be=re;var Le=ne.get(be);Le!==void 0||(Le=_(be.replace(R,"-$1").toLowerCase().replace(L,"-ms-")),ne.set(be,Le)),be=Le,Pe=typeof Pe=="number"?Pe===0||n.call(p,re)?""+Pe:Pe+"px":_((""+Pe).trim())}j?(j=!1,E.push(' style="',be,":",Pe)):E.push(";",be,":",Pe)}}j||E.push('"')}function de(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,'="',_(re),'"');break;case 5:isNaN(re)||E.push(" ",q,'="',_(re),'"');break;case 6:!isNaN(re)&&1<=re&&E.push(" ",q,'="',_(re),'"');break;default:j.sanitizeURL&&(re=""+re),E.push(" ",q,'="',_(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,'="',_(re),'"')}}}function x(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 ye(E){var j="";return e.Children.forEach(E,function(q){q!=null&&(j+=q)}),j}function le(E,j,q,re){E.push(He(q));var Pe=q=null,be;for(be in j)if(n.call(j,be)){var Le=j[be];if(Le!=null)switch(be){case"children":q=Le;break;case"dangerouslySetInnerHTML":Pe=Le;break;default:de(E,re,be,Le)}}return E.push(">"),x(E,Pe,q),typeof q=="string"?(E.push(_(q)),null):q}var Qe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ze=new Map;function He(E){var j=ze.get(E);if(j===void 0){if(!Qe.test(E))throw Error(t(65,E));j="<"+E,ze.set(E,j)}return j}function Ye(E,j,q,re,Pe){switch(j){case"select":E.push(He("select"));var be=null,Le=null;for(bt in q)if(n.call(q,bt)){var nt=q[bt];if(nt!=null)switch(bt){case"children":be=nt;break;case"dangerouslySetInnerHTML":Le=nt;break;case"defaultValue":case"value":break;default:de(E,re,bt,nt)}}return E.push(">"),x(E,Le,be),be;case"option":Le=Pe.selectedValue,E.push(He("option"));var yt=nt=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":nt=Ut;break;case"selected":Tt=Ut;break;case"dangerouslySetInnerHTML":bt=Ut;break;case"value":yt=Ut;default:de(E,re,be,Ut)}}if(Le!=null)if(q=yt!==null?""+yt:ye(nt),I(Le)){for(re=0;re<Le.length;re++)if(""+Le[re]===q){E.push(' selected=""');break}}else""+Le===q&&E.push(' selected=""');else Tt&&E.push(' selected=""');return E.push(">"),x(E,bt,nt),nt;case"textarea":E.push(He("textarea")),bt=Le=be=null;for(nt in q)if(n.call(q,nt)&&(yt=q[nt],yt!=null))switch(nt){case"children":bt=yt;break;case"value":be=yt;break;case"defaultValue":Le=yt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:de(E,re,nt,yt)}if(be===null&&Le!==null&&(be=Le),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(_(""+be)),null;case"input":E.push(He("input")),yt=bt=nt=be=null;for(Le in q)if(n.call(q,Le)&&(Tt=q[Le],Tt!=null))switch(Le){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":yt=Tt;break;case"defaultValue":nt=Tt;break;case"checked":bt=Tt;break;case"value":be=Tt;break;default:de(E,re,Le,Tt)}return bt!==null?de(E,re,"checked",bt):yt!==null&&de(E,re,"checked",yt),be!==null?de(E,re,"value",be):nt!==null&&de(E,re,"value",nt),E.push("/>"),null;case"menuitem":E.push(He("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:de(E,re,Qn,be)}return E.push(">"),null;case"title":E.push(He("title")),be=null;for(Ut in q)if(n.call(q,Ut)&&(Le=q[Ut],Le!=null))switch(Ut){case"children":be=Le;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:de(E,re,Ut,Le)}return E.push(">"),be;case"listing":case"pre":E.push(He(j)),Le=be=null;for(yt in q)if(n.call(q,yt)&&(nt=q[yt],nt!=null))switch(yt){case"children":be=nt;break;case"dangerouslySetInnerHTML":Le=nt;break;default:de(E,re,yt,nt)}if(E.push(">"),Le!=null){if(be!=null)throw Error(t(60));if(typeof Le!="object"||!("__html"in Le))throw Error(t(61));q=Le.__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(He(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:de(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 le(E,q,j,re);case"html":return Pe.insertionMode===0&&E.push("<!DOCTYPE html>"),le(E,q,j,re);default:if(j.indexOf("-")===-1&&typeof q.is!="string")return le(E,q,j,re);E.push(He(j)),Le=be=null;for(Tt in q)if(n.call(q,Tt)&&(nt=q[Tt],nt!=null))switch(Tt){case"children":be=nt;break;case"dangerouslySetInnerHTML":Le=nt;break;case"style":J(E,re,nt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(Tt)&&typeof nt!="function"&&typeof nt!="symbol"&&E.push(" ",Tt,'="',_(nt),'"')}return E.push(">"),x(E,Le,be),be}}function et(E,j,q){if(E.push('<!--$?--><template id="'),q===null)throw Error(t(395));return E.push(q),E.push('"></template>')}function pe(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 De(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 Fe=/[<\u2028\u2029]/g;function Je(E){return JSON.stringify(E).replace(Fe,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 it(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 Oe(E,j,q,re){return q.generateStaticMarkup?(E.push(_(j)),!1):(j===""?E=re:(re&&E.push("<!-- -->"),E.push(_(j)),E=!0),E)}var xe=Object.assign,Ue=Symbol.for("react.element"),Ve=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),Me=Symbol.for("react.strict_mode"),Xe=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 Fi(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 Ve:return"Portal";case Xe:return"Profiler";case Me: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:Fi(E.type)||"Memo";case $t:j=E._payload,E=E._init;try{return Fi(E(j))}catch{}}return null}var Pr={};function rr(E,j){if(E=E.contextTypes,!E)return Pr;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 ci(E,j){var q=j.parent;if(q===null)throw Error(t(402));E.depth===q.depth?hn(E,q):ci(E,q),j.context._currentValue2=j.value}function ln(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):ci(j,E),cn=E)}var ji={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 Bi(E,j,q,re){var Pe=E.state!==void 0?E.state:null;E.updater=ji,E.props=q,E.state=Pe;var be={queue:[],replace:!1};E._reactInternals=be;var Le=j.contextType;if(E.context=typeof Le=="object"&&Le!==null?Le._currentValue2:re,Le=j.getDerivedStateFromProps,typeof Le=="function"&&(Le=Le(q,Pe),Pe=Le==null?Pe:xe({},Pe,Le),E.state=Pe),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&&ji.enqueueReplaceState(E,E.state,null),be.queue!==null&&0<be.queue.length)if(j=be.queue,Le=be.replace,be.queue=null,be.replace=!1,Le&&j.length===1)E.state=j[0];else{for(be=Le?j[0]:E.state,Pe=!0,Le=Le?1:0;Le<j.length;Le++){var nt=j[Le];nt=typeof nt=="function"?nt.call(E,be,q,re):nt,nt!=null&&(Pe?(Pe=!1,be=xe({},be,nt)):xe(be,nt))}E.state=be}else be.queue=null}var $i={id:1,overflow:""};function _r(E,j,q){var re=E.id;E=E.overflow;var Pe=32-Un(re)-1;re&=~(1<<Pe),q+=1;var be=32-Un(j)+Pe;if(30<be){var Le=Pe-Pe%5;return be=(re&(1<<Le)-1).toString(32),re>>=Le,Pe-=Le,{id:1<<32-Un(j)+Pe|q<<Pe|re,overflow:be+E}}return{id:1<<be|q<<Pe|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 Po=typeof Object.is=="function"?Object.is:Xr,Zn=null,Kr=null,ir=null,Zt=null,fi=!1,Vi=!1,In=0,gn=null,di=0;function hi(){if(Zn===null)throw Error(t(321));return Zn}function mn(){if(0<di)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function uo(){return Zt===null?ir===null?(fi=!1,ir=Zt=mn()):(fi=!0,Zt=ir):Zt.next===null?(fi=!1,Zt=Zt.next=mn()):(fi=!0,Zt=Zt.next),Zt}function xr(){Kr=Zn=null,Vi=!1,ir=null,di=0,Zt=gn=null}function pi(E,j){return typeof j=="function"?j(E):j}function fn(E,j,q){if(Zn=hi(),Zt=uo(),fi){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===pi?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 Si(E,j){if(Zn=hi(),Zt=uo(),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 Pe=0;Pe<re.length&&Pe<j.length;Pe++)if(!Po(j[Pe],re[Pe])){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<=di)throw Error(t(301));if(E===Zn)if(Vi=!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 lo={readContext:function(E){return E._currentValue2},useContext:function(E){return hi(),E._currentValue2},useMemo:Si,useReducer:fn,useRef:function(E){Zn=hi(),Zt=uo();var j=Zt.memoizedState;return j===null?(E={current:E},Zt.memoizedState=E):j},useState:function(E){return fn(pi,E)},useInsertionEffect:Zr,useLayoutEffect:function(){},useCallback:function(E,j){return Si(function(){return E},j)},useImperativeHandle:Zr,useEffect:Zr,useDebugValue:Zr,useDeferredValue:function(E){return hi(),E},useTransition:function(){return hi(),[!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 hi(),j(E._source)},useSyncExternalStore:function(E,j,q){if(q===void 0)throw Error(t(407));return q()}},co=null,_o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ti(E){return console.error(E),null}function gi(){}function Ci(E,j,q,re,Pe,be,Le,nt,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:Pe===void 0?Ti:Pe,onAllReady:be===void 0?gi:be,onShellReady:Le===void 0?gi:Le,onShellError:nt===void 0?gi:nt,onFatalError:yt===void 0?gi:yt},q=Ei(j,0,null,q,!1,!1),q.parentFlushed=!0,E=fo(j,E,null,q,bt,Pr,null,$i),Tt.push(E),j}function fo(E,j,q,re,Pe,be,Le,nt){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:Pe,legacyContext:be,context:Le,treeContext:nt};return Pe.add(yt),yt}function Ei(E,j,q,re,Pe,be){return{status:0,id:-1,index:j,parentFlushed:!1,chunks:[],children:[],formatContext:re,boundary:q,lastPushedText:Pe,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,Pe){for(Zn={},Kr=j,In=0,E=q(re,Pe);Vi;)Vi=!1,In=0,di+=1,Zt=null,E=q(re,Pe);return xr(),E}function Qr(E,j,q,re){var Pe=q.render(),be=re.childContextTypes;if(be!=null){var Le=j.legacyContext;if(typeof q.getChildContext!="function")re=Le;else{q=q.getChildContext();for(var nt in q)if(!(nt in be))throw Error(t(108,Fi(re)||"Unknown",nt));re=xe({},Le,q)}j.legacyContext=re,vn(E,j,Pe),j.legacyContext=Le}else vn(E,j,Pe)}function Ar(E,j){if(E&&E.defaultProps){j=xe({},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,Pe){if(typeof q=="function")if(q.prototype&&q.prototype.isReactComponent){Pe=rr(q,j.legacyContext);var be=q.contextType;be=new q(re,typeof be=="object"&&be!==null?be._currentValue2:Pe),Bi(be,q,re,Pe),Qr(E,j,be,q)}else{be=rr(q,j.legacyContext),Pe=Ir(E,j,q,re,be);var Le=In!==0;if(typeof Pe=="object"&&Pe!==null&&typeof Pe.render=="function"&&Pe.$$typeof===void 0)Bi(Pe,q,re,be),Qr(E,j,Pe,q);else if(Le){re=j.treeContext,j.treeContext=_r(re,1,0);try{vn(E,j,Pe)}finally{j.treeContext=re}}else vn(E,j,Pe)}else if(typeof q=="string"){switch(Pe=j.blockedSegment,be=Ye(Pe.chunks,q,re,E.responseState,Pe.formatContext),Pe.lastPushedText=!1,Le=Pe.formatContext,Pe.formatContext=Y(Le,q,re),Tr(E,j,be),Pe.formatContext=Le,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:Pe.chunks.push("</",q,">")}Pe.lastPushedText=!1}else{switch(q){case br:case Xn:case Me:case Xe: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,Pe=j.blockedSegment,be=re.fallback,re=re.children,Le=new Set;var nt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Le,errorDigest:null},yt=Ei(E,Pe.chunks.length,nt,Pe.formatContext,!1,!1);Pe.children.push(yt),Pe.lastPushedText=!1;var Tt=Ei(E,0,null,Pe.formatContext,!1,!1);Tt.parentFlushed=!0,j.blockedBoundary=nt,j.blockedSegment=Tt;try{if(Tr(E,j,re),E.responseState.generateStaticMarkup||Tt.lastPushedText&&Tt.textEmbedded&&Tt.chunks.push("<!-- -->"),Tt.status=1,Lr(nt,Tt),nt.pendingTasks===0)break e}catch(bt){Tt.status=4,nt.forceClientRender=!0,nt.errorDigest=Jr(E,bt)}finally{j.blockedBoundary=q,j.blockedSegment=Pe}j=fo(E,be,q,yt,Le,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,Pe),In!==0){q=j.treeContext,j.treeContext=_r(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,Pe);return;case lt:if(Pe=re.children,q=q._context,re=re.value,be=q._currentValue2,q._currentValue2=re,Le=cn,cn=re={parent:Le,depth:Le===null?0:Le.depth+1,context:q,parentValue:be,value:re},j.context=re,vn(E,j,Pe),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:Pe=q._init,q=Pe(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 Ue:Wn(E,j,q.type,q.props,q.ref);return;case Ve: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 Pe=[];do Pe.push(q.value),q=re.next();while(!q.done);Mr(E,j,Pe)}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=Oe(j.blockedSegment.chunks,q,E.responseState,re.lastPushedText)):typeof q=="number"&&(re=j.blockedSegment,re.lastPushedText=Oe(j.blockedSegment.chunks,""+q,E.responseState,re.lastPushedText))}function Mr(E,j,q){for(var re=q.length,Pe=0;Pe<re;Pe++){var be=j.treeContext;j.treeContext=_r(be,re,Pe);try{Tr(E,j,q[Pe])}finally{j.treeContext=be}}}function Tr(E,j,q){var re=j.blockedSegment.formatContext,Pe=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 Le=j.blockedSegment,nt=Ei(E,Le.chunks.length,null,Le.formatContext,Le.lastPushedText,!0);Le.children.push(nt),Le.lastPushedText=!1,E=fo(E,j.node,j.blockedBoundary,nt,j.abortSet,j.legacyContext,j.context,j.treeContext).ping,q.then(E,E),j.blockedSegment.formatContext=re,j.legacyContext=Pe,j.context=be,ln(be)}else throw j.blockedSegment.formatContext=re,j.legacyContext=Pe,j.context=be,ln(be),yt}}function An(E){var j=E.blockedBoundary;E=E.blockedSegment,E.status=3,ei(this,j,E)}function vi(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(Pe){return vi(Pe,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=gi,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=_o.current;_o.current=lo;var re=co;co=E.responseState;try{var Pe=E.pingedTasks,be;for(be=0;be<Pe.length;be++){var Le=Pe[be],nt=E,yt=Le.blockedSegment;if(yt.status===0){ln(Le.context);try{vn(nt,Le,Le.node),nt.responseState.generateStaticMarkup||yt.lastPushedText&&yt.textEmbedded&&yt.chunks.push("<!-- -->"),Le.abortSet.delete(Le),yt.status=1,ei(nt,Le.blockedBoundary,yt)}catch(On){if(xr(),typeof On=="object"&&On!==null&&typeof On.then=="function"){var Tt=Le.ping;On.then(Tt,Tt)}else{Le.abortSet.delete(Le),yt.status=4;var bt=Le.blockedBoundary,Ut=On,Qn=Jr(nt,Ut);if(bt===null?Sr(nt,Ut):(bt.pendingTasks--,bt.forceClientRender||(bt.forceClientRender=!0,bt.errorDigest=Qn,bt.parentFlushed&&nt.clientRenderedBoundaries.push(bt))),nt.allPendingTasks--,nt.allPendingTasks===0){var zn=nt.onAllReady;zn()}}}finally{}}}Pe.splice(0,be),E.destination!==null&&fr(E,E.destination)}catch(On){Jr(E,On),Sr(E,On)}finally{co=re,_o.current=q,q===lo&&ln(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 Pe=!0;re=q.chunks;var be=0;q=q.children;for(var Le=0;Le<q.length;Le++){for(Pe=q[Le];be<Pe.index;be++)j.push(re[be]);Pe=ni(E,j,Pe)}for(;be<re.length-1;be++)j.push(re[be]);return be<re.length&&(Pe=j.push(re[be])),Pe;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=_(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 Pe=E.responseState,be=Pe.nextSuspenseID++;return Pe=Pe.boundaryPrefix+be.toString(16),re=re.id=Pe,et(j,E.responseState,re),ti(E,j,q),j.push("<!--/$-->")}if(re.byteSize>E.progressiveChunkSize)return re.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(re),et(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 Hi(E,j,q){return pe(j,E.responseState,q.formatContext,q.id),ni(E,j,q),De(j,q.formatContext)}function _n(E,j,q){for(var re=q.completedSegments,Pe=0;Pe<re.length;Pe++)Cr(E,j,q,re[Pe]);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 Pe=re.id;if(Pe===-1){if((re.id=q.rootSegmentID)===-1)throw Error(t(392));return Hi(E,j,re)}return Hi(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),Pe=Pe.toString(16),j.push(Pe),j.push('","'),j.push(E.placeholderPrefix),j.push(Pe),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 Pe=E.clientRenderedBoundaries,be;for(be=0;be<Pe.length;be++){var Le=Pe[be];re=j;var nt=E.responseState,yt=Le.id,Tt=Le.errorDigest,bt=Le.errorMessage,Ut=Le.errorComponentStack;if(re.push(nt.startInlineScript),nt.sentClientRenderFunction?re.push('$RX("'):(nt.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=Je(Tt||"");re.push(Qn)}if(bt||Ut){re.push(",");var zn=Je(bt||"");re.push(zn)}if(Ut){re.push(",");var On=Je(Ut);re.push(On)}if(!re.push(")<\/script>")){E.destination=null,be++,Pe.splice(0,be);return}}Pe.splice(0,be);var Fr=E.completedBoundaries;for(be=0;be<Fr.length;be++)if(!_n(E,j,Fr[be])){E.destination=null,be++,Fr.splice(0,be);return}Fr.splice(0,be);var or=E.partialBoundaries;for(be=0;be<or.length;be++){var Wi=or[be];e:{Pe=E,Le=j;var mi=Wi.completedSegments;for(nt=0;nt<mi.length;nt++)if(!Cr(Pe,Le,Wi,mi[nt])){nt++,mi.splice(0,nt);var zi=!1;break e}mi.splice(0,nt),zi=!0}if(!zi){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(!_n(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 vi(re,E,j)}),q.clear(),E.destination!==null&&fr(E,E.destination)}catch(re){Jr(E,re),Sr(E,re)}}function Ui(){}function Nr(E,j,q,re){var Pe=!1,be=null,Le="",nt={push:function(Tt){return Tt!==null&&(Le+=Tt),!0},destroy:function(Tt){Pe=!0,be=Tt}},yt=!1;if(E=Ci(E,it(q,j?j.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Ui,void 0,function(){yt=!0},void 0,void 0),Jn(E),Ro(E,re),E.status===1)E.status=2,nt.destroy(E.fatalError);else if(E.status!==2&&E.destination===null){E.destination=nt;try{fr(E,nt)}catch(Tt){Jr(E,Tt),Sr(E,Tt)}}if(Pe)throw be;if(!yt)throw Error(t(426));return Le}return bc.renderToNodeStream=function(){throw Error(t(207))},bc.renderToStaticMarkup=function(E,j){return Nr(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')},bc.renderToStaticNodeStream=function(){throw Error(t(208))},bc.renderToString=function(E,j){return Nr(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')},bc.version="18.2.0",bc}var Fh={};/**
|
|
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 ZS;function j5(){if(ZS)return Fh;ZS=1;var e=Q;function t(k){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+k,W=1;W<arguments.length;W++)N+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+k+"; visit "+N+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(k,N){if(N.length!==0)if(512<N.length)0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),k.enqueue(N);else{var W=n.length-r;W<N.length&&(W===0?k.enqueue(n):(n.set(N.subarray(0,W),r),k.enqueue(n),N=N.subarray(W)),n=new Uint8Array(512),r=0),n.set(N,r),r+=N.length}}function o(k,N){return i(k,N),!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,N){typeof k.error=="function"?k.error(N):k.close()}var p=Object.prototype.hasOwnProperty,S=/^[: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={},_={};function R(k){return p.call(_,k)?!0:p.call(T,k)?!1:S.test(k)?_[k]=!0:(T[k]=!0,!1)}function L(k,N,W,te,Te,Ce,Be){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=te,this.attributeNamespace=Te,this.mustUseProperty=W,this.propertyName=k,this.type=N,this.sanitizeURL=Ce,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 N=k[0];I[N]=new L(N,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 Y(k){return k[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(k){var N=k.replace(U,Y);I[N]=new L(N,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var N=k.replace(U,Y);I[N]=new L(N,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var N=k.replace(U,Y);I[N]=new L(N,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 ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},J=["Webkit","ms","Moz","O"];Object.keys(ne).forEach(function(k){J.forEach(function(N){N=N+k.charAt(0).toUpperCase()+k.substring(1),ne[N]=ne[k]})});var de=/["'&<>]/;function x(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var N=de.exec(k);if(N){var W="",te,Te=0;for(te=N.index;te<k.length;te++){switch(k.charCodeAt(te)){case 34:N=""";break;case 38:N="&";break;case 39:N="'";break;case 60:N="<";break;case 62:N=">";break;default:continue}Te!==te&&(W+=k.substring(Te,te)),Te=te+1,W+=N}k=Te!==te?W+k.substring(Te,te):W}return k}var ye=/([A-Z])/g,le=/^ms-/,Qe=Array.isArray,ze=d("<script>"),He=d("<\/script>"),Ye=d('<script src="'),et=d('<script type="module" src="'),pe=d('" async=""><\/script>'),De=/(<\/|<)(s)(cript)/gi;function Fe(k,N,W,te){return""+N+(W==="s"?"\\u0073":"\\u0053")+te}function Je(k,N,W,te,Te){k=k===void 0?"":k,N=N===void 0?ze:d('<script nonce="'+x(N)+'">');var Ce=[];if(W!==void 0&&Ce.push(N,c((""+W).replace(De,Fe)),He),te!==void 0)for(W=0;W<te.length;W++)Ce.push(Ye,c(x(te[W])),pe);if(Te!==void 0)for(te=0;te<Te.length;te++)Ce.push(et,c(x(Te[te])),pe);return{bootstrapChunks:Ce,startInlineScript:N,placeholderPrefix:d(k+"P:"),segmentPrefix:d(k+"S:"),boundaryPrefix:k+"B:",idPrefix:k,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function it(k,N){return{insertionMode:k,selectedValue:N}}function Oe(k){return it(k==="http://www.w3.org/2000/svg"?2:k==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function xe(k,N,W){switch(N){case"select":return it(1,W.value!=null?W.value:W.defaultValue);case"svg":return it(2,null);case"math":return it(3,null);case"foreignObject":return it(1,null);case"table":return it(4,null);case"thead":case"tbody":case"tfoot":return it(5,null);case"colgroup":return it(7,null);case"tr":return it(6,null)}return 4<=k.insertionMode||k.insertionMode===0?it(1,null):k}var Ue=d("<!-- -->");function Ve(k,N,W,te){return N===""?te:(te&&k.push(Ue),k.push(c(x(N))),!0)}var Re=new Map,Me=d(' style="'),Xe=d(":"),lt=d(";");function mt(k,N,W){if(typeof W!="object")throw Error(t(62));N=!0;for(var te in W)if(p.call(W,te)){var Te=W[te];if(Te!=null&&typeof Te!="boolean"&&Te!==""){if(te.indexOf("--")===0){var Ce=c(x(te));Te=c(x((""+Te).trim()))}else{Ce=te;var Be=Re.get(Ce);Be!==void 0||(Be=d(x(Ce.replace(ye,"-$1").toLowerCase().replace(le,"-ms-"))),Re.set(Ce,Be)),Ce=Be,Te=typeof Te=="number"?Te===0||p.call(ne,te)?c(""+Te):c(Te+"px"):c(x((""+Te).trim()))}N?(N=!1,k.push(Me,Ce,Xe,Te)):k.push(lt,Ce,Xe,Te)}}N||k.push(Et)}var wt=d(" "),vt=d('="'),Et=d('"'),ot=d('=""');function $t(k,N,W,te){switch(W){case"style":mt(k,N,te);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<W.length)||W[0]!=="o"&&W[0]!=="O"||W[1]!=="n"&&W[1]!=="N"){if(N=I.hasOwnProperty(W)?I[W]:null,N!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}switch(W=c(N.attributeName),N.type){case 3:te&&k.push(wt,W,ot);break;case 4:te===!0?k.push(wt,W,ot):te!==!1&&k.push(wt,W,vt,c(x(te)),Et);break;case 5:isNaN(te)||k.push(wt,W,vt,c(x(te)),Et);break;case 6:!isNaN(te)&&1<=te&&k.push(wt,W,vt,c(x(te)),Et);break;default:N.sanitizeURL&&(te=""+te),k.push(wt,W,vt,c(x(te)),Et)}}else if(R(W)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(N=W.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")return}k.push(wt,c(W),vt,c(x(te)),Et)}}}var Ht=d(">"),Xn=d("/>");function br(k,N,W){if(N!=null){if(W!=null)throw Error(t(60));if(typeof N!="object"||!("__html"in N))throw Error(t(61));N=N.__html,N!=null&&k.push(c(""+N))}}function Kn(k){var N="";return e.Children.forEach(k,function(W){W!=null&&(N+=W)}),N}var kn=d(' selected=""');function Fi(k,N,W,te){k.push(hn(W));var Te=W=null,Ce;for(Ce in N)if(p.call(N,Ce)){var Be=N[Ce];if(Be!=null)switch(Ce){case"children":W=Be;break;case"dangerouslySetInnerHTML":Te=Be;break;default:$t(k,te,Ce,Be)}}return k.push(Ht),br(k,Te,W),typeof W=="string"?(k.push(c(x(W))),null):W}var Pr=d(`
|
|
58
|
+
`),rr=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,cn=new Map;function hn(k){var N=cn.get(k);if(N===void 0){if(!rr.test(k))throw Error(t(65,k));N=d("<"+k),cn.set(k,N)}return N}var pn=d("<!DOCTYPE html>");function gt(k,N,W,te,Te){switch(N){case"select":k.push(hn("select"));var Ce=null,Be=null;for(Dt in W)if(p.call(W,Dt)){var tt=W[Dt];if(tt!=null)switch(Dt){case"children":Ce=tt;break;case"dangerouslySetInnerHTML":Be=tt;break;case"defaultValue":case"value":break;default:$t(k,te,Dt,tt)}}return k.push(Ht),br(k,Be,Ce),Ce;case"option":Be=Te.selectedValue,k.push(hn("option"));var xt=tt=null,Ft=null,Dt=null;for(Ce in W)if(p.call(W,Ce)){var Ct=W[Ce];if(Ct!=null)switch(Ce){case"children":tt=Ct;break;case"selected":Ft=Ct;break;case"dangerouslySetInnerHTML":Dt=Ct;break;case"value":xt=Ct;default:$t(k,te,Ce,Ct)}}if(Be!=null)if(W=xt!==null?""+xt:Kn(tt),Qe(Be)){for(te=0;te<Be.length;te++)if(""+Be[te]===W){k.push(kn);break}}else""+Be===W&&k.push(kn);else Ft&&k.push(kn);return k.push(Ht),br(k,Dt,tt),tt;case"textarea":k.push(hn("textarea")),Dt=Be=Ce=null;for(tt in W)if(p.call(W,tt)&&(xt=W[tt],xt!=null))switch(tt){case"children":Dt=xt;break;case"value":Ce=xt;break;case"defaultValue":Be=xt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:$t(k,te,tt,xt)}if(Ce===null&&Be!==null&&(Ce=Be),k.push(Ht),Dt!=null){if(Ce!=null)throw Error(t(92));if(Qe(Dt)&&1<Dt.length)throw Error(t(93));Ce=""+Dt}return typeof Ce=="string"&&Ce[0]===`
|
|
59
|
+
`&&k.push(Pr),Ce!==null&&k.push(c(x(""+Ce))),null;case"input":k.push(hn("input")),xt=Dt=tt=Ce=null;for(Be in W)if(p.call(W,Be)&&(Ft=W[Be],Ft!=null))switch(Be){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":xt=Ft;break;case"defaultValue":tt=Ft;break;case"checked":Dt=Ft;break;case"value":Ce=Ft;break;default:$t(k,te,Be,Ft)}return Dt!==null?$t(k,te,"checked",Dt):xt!==null&&$t(k,te,"checked",xt),Ce!==null?$t(k,te,"value",Ce):tt!==null&&$t(k,te,"value",tt),k.push(Xn),null;case"menuitem":k.push(hn("menuitem"));for(var Bn in W)if(p.call(W,Bn)&&(Ce=W[Bn],Ce!=null))switch(Bn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:$t(k,te,Bn,Ce)}return k.push(Ht),null;case"title":k.push(hn("title")),Ce=null;for(Ct in W)if(p.call(W,Ct)&&(Be=W[Ct],Be!=null))switch(Ct){case"children":Ce=Be;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:$t(k,te,Ct,Be)}return k.push(Ht),Ce;case"listing":case"pre":k.push(hn(N)),Be=Ce=null;for(xt in W)if(p.call(W,xt)&&(tt=W[xt],tt!=null))switch(xt){case"children":Ce=tt;break;case"dangerouslySetInnerHTML":Be=tt;break;default:$t(k,te,xt,tt)}if(k.push(Ht),Be!=null){if(Ce!=null)throw Error(t(60));if(typeof Be!="object"||!("__html"in Be))throw Error(t(61));W=Be.__html,W!=null&&(typeof W=="string"&&0<W.length&&W[0]===`
|
|
60
|
+
`?k.push(Pr,c(W)):k.push(c(""+W)))}return typeof Ce=="string"&&Ce[0]===`
|
|
61
|
+
`&&k.push(Pr),Ce;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(N));for(var Tn in W)if(p.call(W,Tn)&&(Ce=W[Tn],Ce!=null))switch(Tn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,N));default:$t(k,te,Tn,Ce)}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 Fi(k,W,N,te);case"html":return Te.insertionMode===0&&k.push(pn),Fi(k,W,N,te);default:if(N.indexOf("-")===-1&&typeof W.is!="string")return Fi(k,W,N,te);k.push(hn(N)),Be=Ce=null;for(Ft in W)if(p.call(W,Ft)&&(tt=W[Ft],tt!=null))switch(Ft){case"children":Ce=tt;break;case"dangerouslySetInnerHTML":Be=tt;break;case"style":mt(k,te,tt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:R(Ft)&&typeof tt!="function"&&typeof tt!="symbol"&&k.push(wt,c(Ft),vt,c(x(tt)),Et)}return k.push(Ht),br(k,Be,Ce),Ce}}var Rn=d("</"),ci=d(">"),ln=d('<template id="'),ji=d('"></template>'),Bi=d("<!--$-->"),$i=d('<!--$?--><template id="'),_r=d('"></template>'),Un=d("<!--$!-->"),Rr=d("<!--/$-->"),wr=d("<template"),qr=d('"'),Xr=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Po=d("></template>");function Zn(k,N,W){if(i(k,$i),W===null)throw Error(t(395));return i(k,W),o(k,_r)}var Kr=d('<div hidden id="'),ir=d('">'),Zt=d("</div>"),fi=d('<svg aria-hidden="true" style="display:none" id="'),Vi=d('">'),In=d("</svg>"),gn=d('<math aria-hidden="true" style="display:none" id="'),di=d('">'),hi=d("</math>"),mn=d('<table hidden id="'),uo=d('">'),xr=d("</table>"),pi=d('<table hidden><tbody id="'),fn=d('">'),Si=d("</tbody></table>"),Ra=d('<table hidden><tr id="'),Ia=d('">'),Zr=d("</tr></table>"),lo=d('<table hidden><colgroup id="'),co=d('">'),_o=d("</colgroup></table>");function Ti(k,N,W,te){switch(W.insertionMode){case 0:case 1:return i(k,Kr),i(k,N.segmentPrefix),i(k,c(te.toString(16))),o(k,ir);case 2:return i(k,fi),i(k,N.segmentPrefix),i(k,c(te.toString(16))),o(k,Vi);case 3:return i(k,gn),i(k,N.segmentPrefix),i(k,c(te.toString(16))),o(k,di);case 4:return i(k,mn),i(k,N.segmentPrefix),i(k,c(te.toString(16))),o(k,uo);case 5:return i(k,pi),i(k,N.segmentPrefix),i(k,c(te.toString(16))),o(k,fn);case 6:return i(k,Ra),i(k,N.segmentPrefix),i(k,c(te.toString(16))),o(k,Ia);case 7:return i(k,lo),i(k,N.segmentPrefix),i(k,c(te.toString(16))),o(k,co);default:throw Error(t(397))}}function gi(k,N){switch(N.insertionMode){case 0:case 1:return o(k,Zt);case 2:return o(k,In);case 3:return o(k,hi);case 4:return o(k,xr);case 5:return o(k,Si);case 6:return o(k,Zr);case 7:return o(k,_o);default:throw Error(t(397))}}var Ci=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("'),Ei=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(","),vi=/[<\u2028\u2029]/g;function Lr(k){return JSON.stringify(k).replace(vi,function(N){switch(N){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ei=Object.assign,Jn=Symbol.for("react.element"),ti=Symbol.for("react.portal"),ni=Symbol.for("react.fragment"),Hi=Symbol.for("react.strict_mode"),_n=Symbol.for("react.profiler"),Cr=Symbol.for("react.provider"),fr=Symbol.for("react.context"),Ro=Symbol.for("react.forward_ref"),Ui=Symbol.for("react.suspense"),Nr=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"),Pe=Symbol.for("react.legacy_hidden"),be=Symbol.for("react.default_value"),Le=Symbol.iterator;function nt(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 _n:return"Profiler";case Hi:return"StrictMode";case Ui:return"Suspense";case Nr: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 N=k.render;return k=k.displayName,k||(k=N.displayName||N.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return N=k.displayName||null,N!==null?N:nt(k.type)||"Memo";case j:N=k._payload,k=k._init;try{return nt(k(N))}catch{}}return null}var yt={};function Tt(k,N){if(k=k.contextTypes,!k)return yt;var W={},te;for(te in k)W[te]=N[te];return W}var bt=null;function Ut(k,N){if(k!==N){k.context._currentValue=k.parentValue,k=k.parent;var W=N.parent;if(k===null){if(W!==null)throw Error(t(401))}else{if(W===null)throw Error(t(401));Ut(k,W)}N.context._currentValue=N.value}}function Qn(k){k.context._currentValue=k.parentValue,k=k.parent,k!==null&&Qn(k)}function zn(k){var N=k.parent;N!==null&&zn(N),k.context._currentValue=k.value}function On(k,N){if(k.context._currentValue=k.parentValue,k=k.parent,k===null)throw Error(t(402));k.depth===N.depth?Ut(k,N):On(k,N)}function Fr(k,N){var W=N.parent;if(W===null)throw Error(t(402));k.depth===W.depth?Ut(k,W):Fr(k,W),N.context._currentValue=N.value}function or(k){var N=bt;N!==k&&(N===null?zn(k):k===null?Qn(N):N.depth===k.depth?Ut(N,k):N.depth>k.depth?On(N,k):Fr(N,k),bt=k)}var Wi={isMounted:function(){return!1},enqueueSetState:function(k,N){k=k._reactInternals,k.queue!==null&&k.queue.push(N)},enqueueReplaceState:function(k,N){k=k._reactInternals,k.replace=!0,k.queue=[N]},enqueueForceUpdate:function(){}};function mi(k,N,W,te){var Te=k.state!==void 0?k.state:null;k.updater=Wi,k.props=W,k.state=Te;var Ce={queue:[],replace:!1};k._reactInternals=Ce;var Be=N.contextType;if(k.context=typeof Be=="object"&&Be!==null?Be._currentValue:te,Be=N.getDerivedStateFromProps,typeof Be=="function"&&(Be=Be(W,Te),Te=Be==null?Te:ei({},Te,Be),k.state=Te),typeof N.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(N=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),N!==k.state&&Wi.enqueueReplaceState(k,k.state,null),Ce.queue!==null&&0<Ce.queue.length)if(N=Ce.queue,Be=Ce.replace,Ce.queue=null,Ce.replace=!1,Be&&N.length===1)k.state=N[0];else{for(Ce=Be?N[0]:k.state,Te=!0,Be=Be?1:0;Be<N.length;Be++){var tt=N[Be];tt=typeof tt=="function"?tt.call(k,Ce,W,te):tt,tt!=null&&(Te?(Te=!1,Ce=ei({},Ce,tt)):ei(Ce,tt))}k.state=Ce}else Ce.queue=null}var zi={id:1,overflow:""};function jr(k,N,W){var te=k.id;k=k.overflow;var Te=32-Io(te)-1;te&=~(1<<Te),W+=1;var Ce=32-Io(N)+Te;if(30<Ce){var Be=Te-Te%5;return Ce=(te&(1<<Be)-1).toString(32),te>>=Be,Te-=Be,{id:1<<32-Io(N)+Te|W<<Te|te,overflow:Ce+k}}return{id:1<<Ce|W<<Te|te,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,N){return k===N&&(k!==0||1/k===1/N)||k!==k&&N!==N}var Na=typeof Object.is=="function"?Object.is:La,yi=null,Ao=null,ra=null,sn=null,Qt=!1,Vt=!1,ki=0,ri=null,Mo=0;function bi(){if(yi===null)throw Error(t(321));return yi}function dr(){if(0<Mo)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Fa(){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=yi=null,Vt=!1,ra=null,Mo=0,sn=ri=null}function os(k,N){return typeof N=="function"?N(k):N}function yn(k,N,W){if(yi=bi(),sn=Fa(),Qt){var te=sn.queue;if(N=te.dispatch,ri!==null&&(W=ri.get(te),W!==void 0)){ri.delete(te),te=sn.memoizedState;do te=k(te,W.action),W=W.next;while(W!==null);return sn.memoizedState=te,[te,N]}return[sn.memoizedState,N]}return k=k===os?typeof N=="function"?N():N:W!==void 0?W(N):N,sn.memoizedState=k,k=sn.queue={last:null,dispatch:null},k=k.dispatch=wi.bind(null,yi,k),[sn.memoizedState,k]}function Lo(k,N){if(yi=bi(),sn=Fa(),N=N===void 0?null:N,sn!==null){var W=sn.memoizedState;if(W!==null&&N!==null){var te=W[1];e:if(te===null)te=!1;else{for(var Te=0;Te<te.length&&Te<N.length;Te++)if(!Na(N[Te],te[Te])){te=!1;break e}te=!0}if(te)return W[0]}}return k=k(),sn.memoizedState=[k,N],k}function wi(k,N,W){if(25<=Mo)throw Error(t(301));if(k===yi)if(Vt=!0,k={action:W,next:null},ri===null&&(ri=new Map),W=ri.get(N),W===void 0)ri.set(N,k);else{for(N=W;N.next!==null;)N=N.next;N.next=k}}function as(){throw Error(t(394))}function ho(){}var er={readContext:function(k){return k._currentValue},useContext:function(k){return bi(),k._currentValue},useMemo:Lo,useReducer:yn,useRef:function(k){yi=bi(),sn=Fa();var N=sn.memoizedState;return N===null?(k={current:k},sn.memoizedState=k):N},useState:function(k){return yn(os,k)},useInsertionEffect:ho,useLayoutEffect:function(){},useCallback:function(k,N){return Lo(function(){return k},N)},useImperativeHandle:ho,useEffect:ho,useDebugValue:ho,useDeferredValue:function(k){return bi(),k},useTransition:function(){return bi(),[!1,as]},useId:function(){var k=Ao.treeContext,N=k.overflow;k=k.id,k=(k&~(1<<32-Io(k)-1)).toString(32)+N;var W=f;if(W===null)throw Error(t(404));return N=ki++,k=":"+W.idPrefix+"R"+k,0<N&&(k+="H"+N.toString(32)),k+":"},useMutableSource:function(k,N){return bi(),N(k._source)},useSyncExternalStore:function(k,N,W){if(W===void 0)throw Error(t(407));return W()}},f=null,m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function C(k){return console.error(k),null}function O(){}function F(k,N,W,te,Te,Ce,Be,tt,xt){var Ft=[],Dt=new Set;return N={destination:null,responseState:N,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Dt,pingedTasks:Ft,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Te===void 0?C:Te,onAllReady:Ce===void 0?O:Ce,onShellReady:Be===void 0?O:Be,onShellError:tt===void 0?O:tt,onFatalError:xt===void 0?O:xt},W=H(N,0,null,W,!1,!1),W.parentFlushed=!0,k=B(N,k,null,W,Dt,yt,null,zi),Ft.push(k),N}function B(k,N,W,te,Te,Ce,Be,tt){k.allPendingTasks++,W===null?k.pendingRootTasks++:W.pendingTasks++;var xt={node:N,ping:function(){var Ft=k.pingedTasks;Ft.push(xt),Ft.length===1&&$r(k)},blockedBoundary:W,blockedSegment:te,abortSet:Te,legacyContext:Ce,context:Be,treeContext:tt};return Te.add(xt),xt}function H(k,N,W,te,Te,Ce){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:W,lastPushedText:Te,textEmbedded:Ce}}function ue(k,N){if(k=k.onError(N),k!=null&&typeof k!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof k+'" instead');return k}function oe(k,N){var W=k.onShellError;W(N),W=k.onFatalError,W(N),k.destination!==null?(k.status=2,v(k.destination,N)):(k.status=1,k.fatalError=N)}function we(k,N,W,te,Te){for(yi={},Ao=N,ki=0,k=W(te,Te);Vt;)Vt=!1,ki=0,Mo+=1,sn=null,k=W(te,Te);return ia(),k}function Ne(k,N,W,te){var Te=W.render(),Ce=te.childContextTypes;if(Ce!=null){var Be=N.legacyContext;if(typeof W.getChildContext!="function")te=Be;else{W=W.getChildContext();for(var tt in W)if(!(tt in Ce))throw Error(t(108,nt(te)||"Unknown",tt));te=ei({},Be,W)}N.legacyContext=te,Ge(k,N,Te),N.legacyContext=Be}else Ge(k,N,Te)}function je(k,N){if(k&&k.defaultProps){N=ei({},N),k=k.defaultProps;for(var W in k)N[W]===void 0&&(N[W]=k[W]);return N}return N}function Ee(k,N,W,te,Te){if(typeof W=="function")if(W.prototype&&W.prototype.isReactComponent){Te=Tt(W,N.legacyContext);var Ce=W.contextType;Ce=new W(te,typeof Ce=="object"&&Ce!==null?Ce._currentValue:Te),mi(Ce,W,te,Te),Ne(k,N,Ce,W)}else{Ce=Tt(W,N.legacyContext),Te=we(k,N,W,te,Ce);var Be=ki!==0;if(typeof Te=="object"&&Te!==null&&typeof Te.render=="function"&&Te.$$typeof===void 0)mi(Te,W,te,Ce),Ne(k,N,Te,W);else if(Be){te=N.treeContext,N.treeContext=jr(te,1,0);try{Ge(k,N,Te)}finally{N.treeContext=te}}else Ge(k,N,Te)}else if(typeof W=="string"){switch(Te=N.blockedSegment,Ce=gt(Te.chunks,W,te,k.responseState,Te.formatContext),Te.lastPushedText=!1,Be=Te.formatContext,Te.formatContext=xe(Be,W,te),Pt(k,N,Ce),Te.formatContext=Be,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:Te.chunks.push(Rn,c(W),ci)}Te.lastPushedText=!1}else{switch(W){case Pe:case re:case Hi:case _n:case ni:Ge(k,N,te.children);return;case Nr:Ge(k,N,te.children);return;case q:throw Error(t(343));case Ui:e:{W=N.blockedBoundary,Te=N.blockedSegment,Ce=te.fallback,te=te.children,Be=new Set;var tt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Be,errorDigest:null},xt=H(k,Te.chunks.length,tt,Te.formatContext,!1,!1);Te.children.push(xt),Te.lastPushedText=!1;var Ft=H(k,0,null,Te.formatContext,!1,!1);Ft.parentFlushed=!0,N.blockedBoundary=tt,N.blockedSegment=Ft;try{if(Pt(k,N,te),Ft.lastPushedText&&Ft.textEmbedded&&Ft.chunks.push(Ue),Ft.status=1,dn(tt,Ft),tt.pendingTasks===0)break e}catch(Dt){Ft.status=4,tt.forceClientRender=!0,tt.errorDigest=ue(k,Dt)}finally{N.blockedBoundary=W,N.blockedSegment=Te}N=B(k,Ce,W,xt,Be,N.legacyContext,N.context,N.treeContext),k.pingedTasks.push(N)}return}if(typeof W=="object"&&W!==null)switch(W.$$typeof){case Ro:if(te=we(k,N,W.render,te,Te),ki!==0){W=N.treeContext,N.treeContext=jr(W,1,0);try{Ge(k,N,te)}finally{N.treeContext=W}}else Ge(k,N,te);return;case E:W=W.type,te=je(W,te),Ee(k,N,W,te,Te);return;case Cr:if(Te=te.children,W=W._context,te=te.value,Ce=W._currentValue,W._currentValue=te,Be=bt,bt=te={parent:Be,depth:Be===null?0:Be.depth+1,context:W,parentValue:Ce,value:te},N.context=te,Ge(k,N,Te),k=bt,k===null)throw Error(t(403));te=k.parentValue,k.context._currentValue=te===be?k.context._defaultValue:te,k=bt=k.parent,N.context=k;return;case fr:te=te.children,te=te(W._currentValue),Ge(k,N,te);return;case j:Te=W._init,W=Te(W._payload),te=je(W,te),Ee(k,N,W,te,void 0);return}throw Error(t(130,W==null?W:typeof W,""))}}function Ge(k,N,W){if(N.node=W,typeof W=="object"&&W!==null){switch(W.$$typeof){case Jn:Ee(k,N,W.type,W.props,W.ref);return;case ti:throw Error(t(257));case j:var te=W._init;W=te(W._payload),Ge(k,N,W);return}if(Qe(W)){ct(k,N,W);return}if(W===null||typeof W!="object"?te=null:(te=Le&&W[Le]||W["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call(W))){if(W=te.next(),!W.done){var Te=[];do Te.push(W.value),W=te.next();while(!W.done);ct(k,N,Te)}return}throw k=Object.prototype.toString.call(W),Error(t(31,k==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":k))}typeof W=="string"?(te=N.blockedSegment,te.lastPushedText=Ve(N.blockedSegment.chunks,W,k.responseState,te.lastPushedText)):typeof W=="number"&&(te=N.blockedSegment,te.lastPushedText=Ve(N.blockedSegment.chunks,""+W,k.responseState,te.lastPushedText))}function ct(k,N,W){for(var te=W.length,Te=0;Te<te;Te++){var Ce=N.treeContext;N.treeContext=jr(Ce,te,Te);try{Pt(k,N,W[Te])}finally{N.treeContext=Ce}}}function Pt(k,N,W){var te=N.blockedSegment.formatContext,Te=N.legacyContext,Ce=N.context;try{return Ge(k,N,W)}catch(xt){if(ia(),typeof xt=="object"&&xt!==null&&typeof xt.then=="function"){W=xt;var Be=N.blockedSegment,tt=H(k,Be.chunks.length,null,Be.formatContext,Be.lastPushedText,!0);Be.children.push(tt),Be.lastPushedText=!1,k=B(k,N.node,N.blockedBoundary,tt,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,W.then(k,k),N.blockedSegment.formatContext=te,N.legacyContext=Te,N.context=Ce,or(Ce)}else throw N.blockedSegment.formatContext=te,N.legacyContext=Te,N.context=Ce,or(Ce),xt}}function It(k){var N=k.blockedBoundary;k=k.blockedSegment,k.status=3,Br(this,N,k)}function Mn(k,N,W){var te=k.blockedBoundary;k.blockedSegment.status=3,te===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.close())):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,k=W===void 0?Error(t(432)):W,te.errorDigest=N.onError(k),te.parentFlushed&&N.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Te){return Mn(Te,N,W)}),te.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(te=N.onAllReady,te()))}function dn(k,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var W=N.children[0];W.id=N.id,W.parentFlushed=!0,W.status===1&&dn(k,W)}else k.completedSegments.push(N)}function Br(k,N,W){if(N===null){if(W.parentFlushed){if(k.completedRootSegment!==null)throw Error(t(389));k.completedRootSegment=W}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=O,N=k.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(W.parentFlushed&&W.status===1&&dn(N,W),N.parentFlushed&&k.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(It,k),N.fallbackAbortableTasks.clear()):W.parentFlushed&&W.status===1&&(dn(N,W),N.completedSegments.length===1&&N.parentFlushed&&k.partialBoundaries.push(N)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function $r(k){if(k.status!==2){var N=bt,W=m.current;m.current=er;var te=f;f=k.responseState;try{var Te=k.pingedTasks,Ce;for(Ce=0;Ce<Te.length;Ce++){var Be=Te[Ce],tt=k,xt=Be.blockedSegment;if(xt.status===0){or(Be.context);try{Ge(tt,Be,Be.node),xt.lastPushedText&&xt.textEmbedded&&xt.chunks.push(Ue),Be.abortSet.delete(Be),xt.status=1,Br(tt,Be.blockedBoundary,xt)}catch(Yn){if(ia(),typeof Yn=="object"&&Yn!==null&&typeof Yn.then=="function"){var Ft=Be.ping;Yn.then(Ft,Ft)}else{Be.abortSet.delete(Be),xt.status=4;var Dt=Be.blockedBoundary,Ct=Yn,Bn=ue(tt,Ct);if(Dt===null?oe(tt,Ct):(Dt.pendingTasks--,Dt.forceClientRender||(Dt.forceClientRender=!0,Dt.errorDigest=Bn,Dt.parentFlushed&&tt.clientRenderedBoundaries.push(Dt))),tt.allPendingTasks--,tt.allPendingTasks===0){var Tn=tt.onAllReady;Tn()}}}finally{}}}Te.splice(0,Ce),k.destination!==null&&go(k,k.destination)}catch(Yn){ue(k,Yn),oe(k,Yn)}finally{f=te,m.current=W,W===er&&or(N)}}}function Wt(k,N,W){switch(W.parentFlushed=!0,W.status){case 0:var te=W.id=k.nextSegmentId++;return W.lastPushedText=!1,W.textEmbedded=!1,k=k.responseState,i(N,ln),i(N,k.placeholderPrefix),k=c(te.toString(16)),i(N,k),o(N,ji);case 1:W.status=2;var Te=!0;te=W.chunks;var Ce=0;W=W.children;for(var Be=0;Be<W.length;Be++){for(Te=W[Be];Ce<Te.index;Ce++)i(N,te[Ce]);Te=Vr(k,N,Te)}for(;Ce<te.length-1;Ce++)i(N,te[Ce]);return Ce<te.length&&(Te=o(N,te[Ce])),Te;default:throw Error(t(390))}}function Vr(k,N,W){var te=W.boundary;if(te===null)return Wt(k,N,W);if(te.parentFlushed=!0,te.forceClientRender)te=te.errorDigest,o(N,Un),i(N,wr),te&&(i(N,Xr),i(N,c(x(te))),i(N,qr)),o(N,Po),Wt(k,N,W);else if(0<te.pendingTasks){te.rootSegmentID=k.nextSegmentId++,0<te.completedSegments.length&&k.partialBoundaries.push(te);var Te=k.responseState,Ce=Te.nextSuspenseID++;Te=d(Te.boundaryPrefix+Ce.toString(16)),te=te.id=Te,Zn(N,k.responseState,te),Wt(k,N,W)}else if(te.byteSize>k.progressiveChunkSize)te.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(te),Zn(N,k.responseState,te.id),Wt(k,N,W);else{if(o(N,Bi),W=te.completedSegments,W.length!==1)throw Error(t(391));Vr(k,N,W[0])}return o(N,Rr)}function zt(k,N,W){return Ti(N,k.responseState,W.formatContext,W.id),Vr(k,N,W),gi(N,W.formatContext)}function on(k,N,W){for(var te=W.completedSegments,Te=0;Te<te.length;Te++)po(k,N,W,te[Te]);if(te.length=0,k=k.responseState,te=W.id,W=W.rootSegmentID,i(N,k.startInlineScript),k.sentCompleteBoundaryFunction?i(N,Ir):(k.sentCompleteBoundaryFunction=!0,i(N,Sr)),te===null)throw Error(t(395));return W=c(W.toString(16)),i(N,te),i(N,Qr),i(N,k.segmentPrefix),i(N,W),o(N,Ar)}function po(k,N,W,te){if(te.status===2)return!0;var Te=te.id;if(Te===-1){if((te.id=W.rootSegmentID)===-1)throw Error(t(392));return zt(k,N,te)}return zt(k,N,te),k=k.responseState,i(N,k.startInlineScript),k.sentCompleteSegmentFunction?i(N,fo):(k.sentCompleteSegmentFunction=!0,i(N,Ci)),i(N,k.segmentPrefix),Te=c(Te.toString(16)),i(N,Te),i(N,Ei),i(N,k.placeholderPrefix),i(N,Te),o(N,Jr)}function go(k,N){n=new Uint8Array(512),r=0;try{var W=k.completedRootSegment;if(W!==null&&k.pendingRootTasks===0){Vr(k,N,W),k.completedRootSegment=null;var te=k.responseState.bootstrapChunks;for(W=0;W<te.length-1;W++)i(N,te[W]);W<te.length&&o(N,te[W])}var Te=k.clientRenderedBoundaries,Ce;for(Ce=0;Ce<Te.length;Ce++){var Be=Te[Ce];te=N;var tt=k.responseState,xt=Be.id,Ft=Be.errorDigest,Dt=Be.errorMessage,Ct=Be.errorComponentStack;if(i(te,tt.startInlineScript),tt.sentClientRenderFunction?i(te,vn):(tt.sentClientRenderFunction=!0,i(te,Wn)),xt===null)throw Error(t(395));i(te,xt),i(te,Mr),(Ft||Dt||Ct)&&(i(te,An),i(te,c(Lr(Ft||"")))),(Dt||Ct)&&(i(te,An),i(te,c(Lr(Dt||"")))),Ct&&(i(te,An),i(te,c(Lr(Ct)))),o(te,Tr)}Te.splice(0,Ce);var Bn=k.completedBoundaries;for(Ce=0;Ce<Bn.length;Ce++)on(k,N,Bn[Ce]);Bn.splice(0,Ce),s(N),n=new Uint8Array(512),r=0;var Tn=k.partialBoundaries;for(Ce=0;Ce<Tn.length;Ce++){var Yn=Tn[Ce];e:{Te=k,Be=N;var oa=Yn.completedSegments;for(tt=0;tt<oa.length;tt++)if(!po(Te,Be,Yn,oa[tt])){tt++,oa.splice(0,tt);var ss=!1;break e}oa.splice(0,tt),ss=!0}if(!ss){k.destination=null,Ce++,Tn.splice(0,Ce);return}}Tn.splice(0,Ce);var aa=k.completedBoundaries;for(Ce=0;Ce<aa.length;Ce++)on(k,N,aa[Ce]);aa.splice(0,Ce)}finally{s(N),k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&N.close()}}function Er(k,N){try{var W=k.abortableTasks;W.forEach(function(te){return Mn(te,k,N)}),W.clear(),k.destination!==null&&go(k,k.destination)}catch(te){ue(k,te),oe(k,te)}}return Fh.renderToReadableStream=function(k,N){return new Promise(function(W,te){var Te,Ce,Be=new Promise(function(Dt,Ct){Ce=Dt,Te=Ct}),tt=F(k,Je(N?N.identifierPrefix:void 0,N?N.nonce:void 0,N?N.bootstrapScriptContent:void 0,N?N.bootstrapScripts:void 0,N?N.bootstrapModules:void 0),Oe(N?N.namespaceURI:void 0),N?N.progressiveChunkSize:void 0,N?N.onError:void 0,Ce,function(){var Dt=new ReadableStream({type:"bytes",pull:function(Ct){if(tt.status===1)tt.status=2,v(Ct,tt.fatalError);else if(tt.status!==2&&tt.destination===null){tt.destination=Ct;try{go(tt,Ct)}catch(Bn){ue(tt,Bn),oe(tt,Bn)}}},cancel:function(){Er(tt)}},{highWaterMark:0});Dt.allReady=Be,W(Dt)},function(Dt){Be.catch(function(){}),te(Dt)},Te);if(N&&N.signal){var xt=N.signal,Ft=function(){Er(tt,xt.reason),xt.removeEventListener("abort",Ft)};xt.addEventListener("abort",Ft)}$r(tt)})},Fh.version="18.2.0",Fh}var wc={};/**
|
|
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 JS;function B5(){return JS||(JS=1,process.env.NODE_ENV!=="production"&&function(){var e=Q,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("warn",h,D)}}function i(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("error",h,D)}}function o(h,b,D){{var M=n.ReactDebugCurrentFrame,z=M.getStackAddendum();z!==""&&(b+="%s",D=D.concat([z]));var ie=D.map(function(ce){return String(ce)});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 S(h){return h}function T(h){return h}function _(h,b){h.destroy(b)}function R(h){{var b=typeof Symbol=="function"&&Symbol.toStringTag,D=b&&h[Symbol.toStringTag]||h.constructor.name||"Object";return D}}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 Y(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 ne(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,de=0,x=1,ye=2,le=3,Qe=4,ze=5,He=6,Ye=":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=Ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pe=new RegExp("^["+Ye+"]["+et+"]*$"),De={},Fe={};function Je(h){return J.call(Fe,h)?!0:J.call(De,h)?!1:pe.test(h)?(Fe[h]=!0,!0):(De[h]=!0,i("Invalid attribute name: `%s`",h),!1)}function it(h,b,D,M){if(D!==null&&D.type===de)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(M)return!1;if(D!==null)return!D.acceptsBooleans;var z=h.toLowerCase().slice(0,5);return z!=="data-"&&z!=="aria-"}default:return!1}}function Oe(h){return Ue.hasOwnProperty(h)?Ue[h]:null}function xe(h,b,D,M,z,ie,ce){this.acceptsBooleans=b===ye||b===le||b===Qe,this.attributeName=M,this.attributeNamespace=z,this.mustUseProperty=D,this.propertyName=h,this.type=b,this.sanitizeURL=ie,this.removeEmptyString=ce}var Ue={},Ve=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ve.forEach(function(h){Ue[h]=new xe(h,de,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var b=h[0],D=h[1];Ue[b]=new xe(b,x,!1,D,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){Ue[h]=new xe(h,ye,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){Ue[h]=new xe(h,ye,!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){Ue[h]=new xe(h,le,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){Ue[h]=new xe(h,le,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){Ue[h]=new xe(h,Qe,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){Ue[h]=new xe(h,He,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){Ue[h]=new xe(h,ze,!1,h.toLowerCase(),null,!1,!1)});var Re=/[\-\:]([a-z])/g,Me=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,Me);Ue[b]=new xe(b,x,!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,Me);Ue[b]=new xe(b,x,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var b=h.replace(Re,Me);Ue[b]=new xe(b,x,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){Ue[h]=new xe(h,x,!1,h.toLowerCase(),null,!1,!1)});var Xe="xlinkHref";Ue[Xe]=new xe("xlinkHref",x,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){Ue[h]=new xe(h,x,!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)-["+et+"]*$"),br=new RegExp("^(aria)[A-Z]["+et+"]*$");function Kn(h,b){{if(J.call(Ht,b)&&Ht[b])return!0;if(br.test(b)){var D="aria-"+b.slice(4).toLowerCase(),M=$t.hasOwnProperty(D)?D: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 z=b.toLowerCase(),ie=$t.hasOwnProperty(z)?z: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 D=[];for(var M in b){var z=Kn(h,M);z||D.push(M)}var ie=D.map(function(ce){return"`"+ce+"`"}).join(", ");D.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h):D.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h)}}function Fi(h,b){ot(h,b)||kn(h,b)}var Pr=!1;function rr(h,b){{if(h!=="input"&&h!=="textarea"&&h!=="select")return;b!=null&&b.value===null&&!Pr&&(Pr=!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]/,ci=new RegExp("^(aria)-["+et+"]*$"),ln=new RegExp("^(aria)[A-Z]["+et+"]*$");hn=function(h,b,D,M){if(J.call(pn,b)&&pn[b])return!0;var z=b.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."),pn[b]=!0,!0;if(M!=null){var ie=M.registrationNameDependencies,ce=M.possibleRegistrationNames;if(ie.hasOwnProperty(b))return!0;var Ie=ce.hasOwnProperty(z)?ce[z]: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(ci.test(b)||ln.test(b))return!0;if(z==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),pn[b]=!0,!0;if(z==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),pn[b]=!0,!0;if(z==="is"&&D!==null&&D!==void 0&&typeof D!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof D),pn[b]=!0,!0;if(typeof D=="number"&&isNaN(D))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),pn[b]=!0,!0;var Ze=Oe(b),ht=Ze!==null&&Ze.type===de;if(cn.hasOwnProperty(z)){var St=cn[z];if(St!==b)return i("Invalid DOM property `%s`. Did you mean `%s`?",b,St),pn[b]=!0,!0}else if(!ht&&b!==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.",b,z),pn[b]=!0,!0;return typeof D=="boolean"&&it(b,D,Ze,!1)?(D?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',D,b,b,D,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.',D,b,b,D,b,b,b),pn[b]=!0,!0):ht?!0:it(b,D,Ze,!1)?(pn[b]=!0,!1):((D==="false"||D==="true")&&Ze!==null&&Ze.type===le&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",D,b,D==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',b,D),pn[b]=!0),!0)}}var ji=function(h,b,D){{var M=[];for(var z in b){var ie=hn(h,z,b[z],D);ie||M.push(z)}var ce=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 ",ce,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 ",ce,h)}};function Bi(h,b,D){ot(h,b)||ji(h,b,D)}var $i=function(){};{var _r=/^(?:webkit|moz|o)[A-Z]/,Un=/^-ms-/,Rr=/-(.)/g,wr=/;\s*$/,qr={},Xr={},Po=!1,Zn=!1,Kr=function(h){return h.replace(Rr,function(b,D){return D.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)))},fi=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,"")))},Vi=function(h,b){Po||(Po=!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))};$i=function(h,b){h.indexOf("-")>-1?ir(h):_r.test(h)?Zt(h):wr.test(b)&&fi(h,b),typeof b=="number"&&(isNaN(b)?Vi(h,b):isFinite(b)||In(h,b))}}var gn=$i,di=/["'&<>]/;function hi(h){ne(h);var b=""+h,D=di.exec(b);if(!D)return b;var M,z="",ie,ce=0;for(ie=D.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}ce!==ie&&(z+=b.substring(ce,ie)),ce=ie+1,z+=M}return ce!==ie?z+b.substring(ce,ie):z}function mn(h){return typeof h=="boolean"||typeof h=="number"?""+h:hi(h)}var uo=/([A-Z])/g,xr=/^ms-/;function pi(h){return h.replace(uo,"-$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,Si=!1;function Ra(h){!Si&&fn.test(h)&&(Si=!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 lo="<script>",co="<\/script>",_o='<script src="',Ti='<script type="module" src="',gi='" async=""><\/script>';function Ci(h){return ne(h),(""+h).replace(fo,Ei)}var fo=/(<\/|<)(s)(cript)/gi,Ei=function(h,b,D,M){return""+b+(D==="s"?"\\u0073":"\\u0053")+M};function Jr(h,b,D,M,z){var ie=h===void 0?"":h,ce=b===void 0?lo:'<script nonce="'+mn(b)+'">',Ie=[];if(D!==void 0&&Ie.push(ce,Ci(D),co),M!==void 0)for(var Ze=0;Ze<M.length;Ze++)Ie.push(_o,mn(M[Ze]),gi);if(z!==void 0)for(var ht=0;ht<z.length;ht++)Ie.push(Ti,mn(z[ht]),gi);return{bootstrapChunks:Ie,startInlineScript:ce,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 vi(h,b,D){switch(b){case"select":return An(Ir,D.value!=null?D.value:D.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,D){var M=h.idPrefix,z=":"+M+"R"+b;return D>0&&(z+="H"+D.toString(32)),z+":"}function ti(h){return mn(h)}var ni="<!-- -->";function Hi(h,b,D,M){return b===""?M:(M&&h.push(ni),h.push(ti(b)),!0)}function _n(h,b,D,M){D&&M&&h.push(ni)}var Cr=new Map;function fr(h){var b=Cr.get(h);if(b!==void 0)return b;var D=mn(pi(h));return Cr.set(h,D),D}var Ro=' style="',Ui=":",Nr=";";function E(h,b,D){if(typeof D!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var M=!0;for(var z in D)if(J.call(D,z)){var ie=D[z];if(!(ie==null||typeof ie=="boolean"||ie==="")){var ce=void 0,Ie=void 0,Ze=z.indexOf("--")===0;Ze?(ce=mn(z),Y(ie,z),Ie=mn((""+ie).trim())):(gn(z,ie),ce=fr(z),typeof ie=="number"?ie!==0&&!J.call(lt,z)?Ie=ie+"px":Ie=""+ie:(Y(ie,z),Ie=mn((""+ie).trim()))),M?(M=!1,h.push(Ro,ce,Ui,Ie)):h.push(Nr,ce,Ui,Ie)}}M||h.push(re)}var j=" ",q='="',re='"',Pe='=""';function be(h,b,D,M){switch(D){case"style":{E(h,b,M);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(D.length>2&&(D[0]==="o"||D[0]==="O")&&(D[1]==="n"||D[1]==="N"))){var z=Oe(D);if(z!==null){switch(typeof M){case"function":case"symbol":return;case"boolean":if(!z.acceptsBooleans)return}var ie=z.attributeName,ce=ie;switch(z.type){case le:M&&h.push(j,ce,Pe);return;case Qe:M===!0?h.push(j,ce,Pe):M===!1||h.push(j,ce,q,mn(M),re);return;case ze:isNaN(M)||h.push(j,ce,q,mn(M),re);break;case He:!isNaN(M)&&M>=1&&h.push(j,ce,q,mn(M),re);break;default:z.sanitizeURL&&(U(M,ie),M=""+M,Ra(M)),h.push(j,ce,q,mn(M),re)}}else if(Je(D)){switch(typeof M){case"function":case"symbol":return;case"boolean":{var Ie=D.toLowerCase().slice(0,5);if(Ie!=="data-"&&Ie!=="aria-")return}}h.push(j,D,q,mn(M),re)}}}var Le=">",nt="/>";function yt(h,b,D){if(b!=null){if(D!=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&&(ne(M),h.push(""+M))}}var Tt=!1,bt=!1,Ut=!1,Qn=!1,zn=!1,On=!1,Fr=!1;function or(h,b){{var D=h[b];if(D!=null){var M=Zr(D);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 Wi(h,b,D){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,z=null;for(var ie in b)if(J.call(b,ie)){var ce=b[ie];if(ce==null)continue;switch(ie){case"children":M=ce;break;case"dangerouslySetInnerHTML":z=ce;break;case"defaultValue":case"value":break;default:be(h,D,ie,ce);break}}return h.push(Le),yt(h,z,M),M}function mi(h){var b="";return e.Children.forEach(h,function(D){D!=null&&(b+=D,!zn&&typeof D!="string"&&typeof D!="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 zi=' selected=""';function jr(h,b,D,M){var z=M.selectedValue;h.push(Vt("option"));var ie=null,ce=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,Fr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Fr=!0);break;case"dangerouslySetInnerHTML":Ze=St;break;case"value":ce=St;default:be(h,D,ht,St);break}}if(z!=null){var _t;if(ce!==null?(U(ce,"value"),_t=""+ce):(Ze!==null&&(On||(On=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),_t=mi(ie)),Zr(z))for(var Cn=0;Cn<z.length;Cn++){U(z[Cn],"value");var sr=""+z[Cn];if(sr===_t){h.push(zi);break}}else U(z,"select.value"),""+z===_t&&h.push(zi)}else Ie&&h.push(zi);return h.push(Le),yt(h,Ze,ie),ie}function Io(h,b,D){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,z=null,ie=null,ce=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":ce=Ze;break;case"defaultValue":z=Ze;break;case"checked":ie=Ze;break;case"value":M=Ze;break;default:be(h,D,Ie,Ze);break}}return ie!==null?be(h,D,"checked",ie):ce!==null&&be(h,D,"checked",ce),M!==null?be(h,D,"value",M):z!==null&&be(h,D,"value",z),h.push(nt),null}function Vs(h,b,D){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,z=null,ie=null;for(var ce in b)if(J.call(b,ce)){var Ie=b[ce];if(Ie==null)continue;switch(ce){case"children":ie=Ie;break;case"value":M=Ie;break;case"defaultValue":z=Ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:be(h,D,ce,Ie);break}}if(M===null&&z!==null&&(M=z),h.push(Le),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.");ne(ie[0]),M=""+ie[0]}ne(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,D,M){h.push(Vt(D));for(var z in b)if(J.call(b,z)){var ie=b[z];if(ie==null)continue;switch(z){case"children":case"dangerouslySetInnerHTML":throw new Error(D+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:be(h,M,z,ie);break}}return h.push(nt),null}function Ma(h,b,D){h.push(Vt("menuitem"));for(var M in b)if(J.call(b,M)){var z=b[M];if(z==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:be(h,D,M,z);break}}return h.push(Le),null}function La(h,b,D){h.push(Vt("title"));var M=null;for(var z in b)if(J.call(b,z)){var ie=b[z];if(ie==null)continue;switch(z){case"children":M=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:be(h,D,z,ie);break}}h.push(Le);{var ce=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"):ce!=null&&ce.$$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"):ce!=null&&typeof ce!="string"&&typeof ce!="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 Na(h,b,D,M){h.push(Vt(D));var z=null,ie=null;for(var ce in b)if(J.call(b,ce)){var Ie=b[ce];if(Ie==null)continue;switch(ce){case"children":z=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,ce,Ie);break}}return h.push(Le),yt(h,ie,z),typeof z=="string"?(h.push(ti(z)),null):z}function yi(h,b,D,M){h.push(Vt(D));var z=null,ie=null;for(var ce in b)if(J.call(b,ce)){var Ie=b[ce];if(Ie==null)continue;switch(ce){case"children":z=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;case"style":E(h,M,Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Je(ce)&&typeof Ie!="function"&&typeof Ie!="symbol"&&h.push(j,ce,q,mn(Ie),re);break}}return h.push(Le),yt(h,ie,z),z}var Ao=`
|
|
71
|
+
`;function ra(h,b,D,M){h.push(Vt(D));var z=null,ie=null;for(var ce in b)if(J.call(b,ce)){var Ie=b[ce];if(Ie==null)continue;switch(ce){case"children":z=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,ce,Ie);break}}if(h.push(Le),ie!=null){if(z!=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):(ne(Ze),h.push(""+Ze)))}return typeof z=="string"&&z[0]===`
|
|
73
|
+
`&&h.push(Ao),z}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 ki="<!DOCTYPE html>";function ri(h,b,D,M,z){switch(Fi(b,D),rr(b,D),Bi(b,D,null),!D.suppressContentEditableWarning&&D.contentEditable&&D.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),z.insertionMode!==Qr&&z.insertionMode!==Ar&&b.indexOf("-")===-1&&typeof D.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 Wi(h,D,M);case"option":return jr(h,D,M,z);case"textarea":return Vs(h,D,M);case"input":return Io(h,D,M);case"menuitem":return Ma(h,D,M);case"title":return La(h,D,M);case"listing":case"pre":return ra(h,D,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,D,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 Na(h,D,b,M);case"html":return z.insertionMode===Sr&&h.push(ki),Na(h,D,b,M);default:return b.indexOf("-")===-1&&typeof D.is!="string"?Na(h,D,b,M):yi(h,D,b,M)}}var Mo="</",bi=">";function dr(h,b,D){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,bi)}}function Fa(h,b){for(var D=b.bootstrapChunks,M=0;M<D.length-1;M++)c(h,D[M]);return M<D.length?d(h,D[M]):!0}var ia='<template id="',os='"></template>';function yn(h,b,D){c(h,ia),c(h,b.placeholderPrefix);var M=D.toString(16);return c(h,M),d(h,os)}var Lo="<!--$-->",wi='<!--$?--><template id="',as='"></template>',ho="<!--$!-->",er="<!--/$-->",f="<template",m='"',C=' data-dgst="',O=' data-msg="',F=' data-stck="',B="></template>";function H(h,b){return d(h,Lo)}function ue(h,b,D){if(c(h,wi),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,D),d(h,as)}function oe(h,b,D,M,z){var ie;return ie=d(h,ho),c(h,f),D&&(c(h,C),c(h,mn(D)),c(h,m)),M&&(c(h,O),c(h,mn(M)),c(h,m)),z&&(c(h,F),c(h,mn(z)),c(h,m)),ie=d(h,B),ie}function we(h,b){return d(h,er)}function Ne(h,b){return d(h,er)}function je(h,b){return d(h,er)}var Ee='<div hidden id="',Ge='">',ct="</div>",Pt='<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='">',N="</tr></table>",W='<table hidden><colgroup id="',te='">',Te="</colgroup></table>";function Ce(h,b,D,M){switch(D.insertionMode){case Sr:case Ir:return c(h,Ee),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Ge);case Qr:return c(h,Pt),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,W),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,te);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,N);case Tr:return d(h,Te);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var tt="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()}}',Ft='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())}',Dt=tt+';$RS("',Ct='$RS("',Bn='","',Tn='")<\/script>';function Yn(h,b,D){c(h,b.startInlineScript),b.sentCompleteSegmentFunction?c(h,Ct):(b.sentCompleteSegmentFunction=!0,c(h,Dt)),c(h,b.segmentPrefix);var M=D.toString(16);return c(h,M),c(h,Bn),c(h,b.placeholderPrefix),c(h,M),d(h,Tn)}var oa=xt+';$RC("',ss='$RC("',aa='","',ii='")<\/script>';function Hs(h,b,D,M){if(c(h,b.startInlineScript),b.sentCompleteBoundaryFunction?c(h,ss):(b.sentCompleteBoundaryFunction=!0,c(h,oa)),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var z=M.toString(16);return c(h,D),c(h,aa),c(h,b.segmentPrefix),c(h,z),d(h,ii)}var vo=Ft+';$RX("',us='$RX("',sa='"',xi=")<\/script>",Yi=",";function Us(h,b,D,M,z,ie){if(c(h,b.startInlineScript),b.sentClientRenderFunction?c(h,us):(b.sentClientRenderFunction=!0,c(h,vo)),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,D),c(h,sa),(M||z||ie)&&(c(h,Yi),c(h,ua(M||""))),(z||ie)&&(c(h,Yi),c(h,ua(z||""))),ie&&(c(h,Yi),c(h,ua(ie))),d(h,xi)}var Ml=/[<\u2028\u2029]/g;function ua(h){var b=JSON.stringify(h);return b.replace(Ml,function(D){switch(D){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function mo(h,b){var D=Jr(b,void 0);return{bootstrapChunks:D.bootstrapChunks,startInlineScript:D.startInlineScript,placeholderPrefix:D.placeholderPrefix,segmentPrefix:D.segmentPrefix,boundaryPrefix:D.boundaryPrefix,idPrefix:D.idPrefix,nextSuspenseID:D.nextSuspenseID,sentCompleteSegmentFunction:D.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:D.sentCompleteBoundaryFunction,sentClientRenderFunction:D.sentClientRenderFunction,generateStaticMarkup:h}}function hr(){return{insertionMode:Ir,selectedValue:null}}function Ws(h,b,D,M){return D.generateStaticMarkup?(h.push(mn(b)),!1):Hi(h,b,D,M)}function ls(h,b,D,M){if(!b.generateStaticMarkup)return _n(h,b,D,M)}function cs(h,b){return b.generateStaticMarkup?!0:H(h)}function ee(h,b,D,M,z){return b.generateStaticMarkup?!0:oe(h,b,D,M,z)}function me(h,b){return b.generateStaticMarkup?!0:we(h)}function _e(h,b){return b.generateStaticMarkup?!0:je(h)}var ke=Object.assign,Z=Symbol.for("react.element"),he=Symbol.for("react.portal"),fe=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"),Gi=Symbol.for("react.default_value"),Mt=Symbol.iterator,Uc="@@iterator";function Dn(h){if(h===null||typeof h!="object")return null;var b=Mt&&h[Mt]||h[Uc];return typeof b=="function"?b:null}function la(h,b,D){var M=h.displayName;if(M)return M;var z=b.displayName||b.name||"";return z!==""?D+"("+z+")":D}function Ll(h){return h.displayName||"Context"}function Pn(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 fe:return"Fragment";case he: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 Ll(b)+".Consumer";case ft:var D=h;return Ll(D._context)+".Provider";case ut:return la(h,h.render,"ForwardRef");case Yt:var M=h.displayName||null;return M!==null?M:Pn(h.type)||"Memo";case Ln:{var z=h,ie=z._payload,ce=z._init;try{return Pn(ce(ie))}catch{return null}}}return null}var fs=0,ds,yo,hs,Fu,ps,Nl,Fl;function ja(){}ja.__reactDisabledLog=!0;function ju(){{if(fs===0){ds=console.log,yo=console.info,hs=console.warn,Fu=console.error,ps=console.group,Nl=console.groupCollapsed,Fl=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})}fs++}}function No(){{if(fs--,fs===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ke({},h,{value:ds}),info:ke({},h,{value:yo}),warn:ke({},h,{value:hs}),error:ke({},h,{value:Fu}),group:ke({},h,{value:ps}),groupCollapsed:ke({},h,{value:Nl}),groupEnd:ke({},h,{value:Fl})})}fs<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qi=n.ReactCurrentDispatcher,Fo;function zs(h,b,D){{if(Fo===void 0)try{throw Error()}catch(z){var M=z.stack.trim().match(/\n( *(at )?)/);Fo=M&&M[1]||""}return`
|
|
74
|
+
`+Fo+h}}var Ys=!1,Bu;{var Gs=typeof WeakMap=="function"?WeakMap:Map;Bu=new Gs}function gs(h,b){if(!h||Ys)return"";{var D=Bu.get(h);if(D!==void 0)return D}var M;Ys=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=qi.current,qi.current=null,ju();try{if(b){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(qn){M=qn}Reflect.construct(h,[],ce)}else{try{ce.call()}catch(qn){M=qn}h.call(ce.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 _t=`
|
|
77
|
+
`+Ie[ht].replace(" at new "," at ");return h.displayName&&_t.includes("<anonymous>")&&(_t=_t.replace("<anonymous>",h.displayName)),typeof h=="function"&&Bu.set(h,_t),_t}while(ht>=1&&St>=0);break}}}finally{Ys=!1,qi.current=ie,No(),Error.prepareStackTrace=z}var Cn=h?h.displayName||h.name:"",sr=Cn?zs(Cn):"";return typeof h=="function"&&Bu.set(h,sr),sr}function qs(h,b,D){return gs(h,!0)}function jl(h,b,D){return gs(h,!1)}function Bl(h){var b=h.prototype;return!!(b&&b.isReactComponent)}function vs(h,b,D){if(h==null)return"";if(typeof h=="function")return gs(h,Bl(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 jl(h.render);case Yt:return vs(h.type,b,D);case Ln:{var M=h,z=M._payload,ie=M._init;try{return vs(ie(z),b,D)}catch{}}}return""}var $l={},Nn=n.ReactDebugCurrentFrame;function Fn(h){if(h){var b=h._owner,D=vs(h.type,h._source,b?b.type:null);Nn.setExtraStackFrame(D)}else Nn.setExtraStackFrame(null)}function Vl(h,b,D,M,z){{var ie=Function.call.bind(J);for(var ce in h)if(ie(h,ce)){var Ie=void 0;try{if(typeof h[ce]!="function"){var Ze=Error((M||"React class")+": "+D+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ze.name="Invariant Violation",Ze}Ie=h[ce](b,ce,M,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ht){Ie=ht}Ie&&!(Ie instanceof Error)&&(Fn(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).",M||"React class",D,ce,typeof Ie),Fn(null)),Ie instanceof Error&&!(Ie.message in $l)&&($l[Ie.message]=!0,Fn(z),i("Failed %s type: %s",D,Ie.message),Fn(null))}}}var Hl;Hl={};var jo={};Object.freeze(jo);function Wc(h,b){{var D=h.contextTypes;if(!D)return jo;var M={};for(var z in D)M[z]=b[z];{var ie=Pn(h)||"Unknown";Vl(D,M,"context",ie)}return M}}function Bo(h,b,D,M){{if(typeof h.getChildContext!="function"){{var z=Pn(b)||"Unknown";Hl[z]||(Hl[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 D}var ie=h.getChildContext();for(var ce in ie)if(!(ce in M))throw new Error((Pn(b)||"Unknown")+'.getChildContext(): key "'+ce+'" is not defined in childContextTypes.');{var Ie=Pn(b)||"Unknown";Vl(M,ie,"child context",Ie)}return ke({},D,ie)}}var Xi;Xi={};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 D=h.parent,M=b.parent;if(D===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(D,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 D=h.parent;if(D===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");D.depth===b.depth?da(D,b):zc(D,b)}function Yc(h,b){var D=b.parent;if(D===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");h.depth===D.depth?da(h,D):Yc(h,D),fa(b)}function $u(h){var b=Ur,D=h;b!==D&&(b===null?Ks(D):D===null?ha(b):b.depth===D.depth?da(b,D):b.depth>D.depth?zc(b,D):Yc(b,D),Ur=D)}function Zs(h,b){var D;D=h._currentValue2,h._currentValue2=b,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Xi&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Xi;var M=Ur,z={parent:M,depth:M===null?0:M.depth+1,context:h,parentValue:D,value:b};return Ur=z,z}function ms(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 D=b.parentValue;D===Gi?b.context._currentValue2=b.context._defaultValue:b.context._currentValue2=D,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Xi&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Xi}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,Vu,ys,Qs,bo,bs,Hu,Uu,Wu;{qt=new Set,Vu=new Set,ys=new Set,Hu=new Set,Qs=new Set,Uu=new Set,Wu=new Set;var Gc=new Set;bs=function(h,b){if(!(h===null||typeof h=="function")){var D=b+"_"+h;Gc.has(D)||(Gc.add(D),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 D=Pn(h)||"Component";Qs.has(D)||(Qs.add(D),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",D))}}}function wo(h,b){{var D=h.constructor,M=D&&Pn(D)||"ReactClass",z=M+"."+b;if($a[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.
|
|
78
|
+
|
|
79
|
+
Please check the code for the %s component.`,b,b,M),$a[z]=!0}}var qc={isMounted:function(h){return!1},enqueueSetState:function(h,b,D){var M=G(h);M.queue===null?wo(h,"setState"):(M.queue.push(b),D!=null&&bs(D,"setState"))},enqueueReplaceState:function(h,b,D){var M=G(h);M.replace=!0,M.queue=[b],D!=null&&bs(D,"setState")},enqueueForceUpdate:function(h,b){var D=G(h);D.queue===null?wo(h,"forceUpdate"):b!=null&&bs(b,"setState")}};function jf(h,b,D,M,z){var ie=D(z,M);bo(b,ie);var ce=ie==null?M:ke({},M,ie);return ce}function Bf(h,b,D){var M=jo,z=h.contextType;if("contextType"in h){var ie=z===null||z!==void 0&&z.$$typeof===dt&&z._context===void 0;if(!ie&&!Wu.has(h)){Wu.add(h);var ce="";z===void 0?ce=" 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"?ce=" However, it is set to a "+typeof z+".":z.$$typeof===ft?ce=" Did you accidentally pass the Context.Provider instead?":z._context!==void 0?ce=" Did you accidentally pass the Context.Consumer instead?":ce=" 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",Pn(h)||"Component",ce)}}typeof z=="object"&&z!==null?M=Ba(z):M=D;var Ie=new h(b,M);{if(typeof h.getDerivedStateFromProps=="function"&&(Ie.state===null||Ie.state===void 0)){var Ze=Pn(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,_t=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?_t="componentWillUpdate":typeof Ie.UNSAFE_componentWillUpdate=="function"&&(_t="UNSAFE_componentWillUpdate"),ht!==null||St!==null||_t!==null){var Cn=Pn(h)||"Component",sr=typeof h.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ys.has(Cn)||(ys.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:"",_t!==null?`
|
|
87
|
+
`+_t:""))}}}return Ie}function Xc(h,b,D){{var M=Pn(b)||"Component",z=h.render;z||(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&&!Uu.has(b)&&(Uu.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.",Pn(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!==D;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"&&!Vu.has(b)&&(Vu.add(b),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Pn(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 ce=h.state;ce&&(typeof ce!="object"||Zr(ce))&&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 $f(h,b){var D=b.state;if(typeof b.componentWillMount=="function"){if(b.componentWillMount.__suppressDeprecationWarning!==!0){var M=Pn(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(),D!==b.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Pn(h)||"Component"),qc.enqueueReplaceState(b,b.state,null))}function $o(h,b,D,M){if(h.queue!==null&&h.queue.length>0){var z=h.queue,ie=h.replace;if(h.queue=null,h.replace=!1,ie&&z.length===1)b.state=z[0];else{for(var ce=ie?z[0]:b.state,Ie=!0,Ze=ie?1:0;Ze<z.length;Ze++){var ht=z[Ze],St=typeof ht=="function"?ht.call(b,ce,D,M):ht;St!=null&&(Ie?(Ie=!1,ce=ke({},ce,St)):ke(ce,St))}b.state=ce}}else h.queue=null}function zu(h,b,D,M){Xc(h,b,D);var z=h.state!==void 0?h.state:null;h.updater=qc,h.props=D,h.state=z;var ie={queue:[],replace:!1};pa(h,ie);var ce=b.contextType;if(typeof ce=="object"&&ce!==null?h.context=Ba(ce):h.context=M,h.state===D){var Ie=Pn(b)||"Component";Hu.has(Ie)||(Hu.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=jf(h,b,Ze,z,D)),typeof b.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&($f(b,h),$o(ie,h,D,M))}var Yu={id:1,overflow:""};function Vf(h){var b=h.overflow,D=h.id,M=D&~Va(D);return M.toString(32)+b}function Ul(h,b,D){var M=h.id,z=h.overflow,ie=Gu(M)-1,ce=M&~(1<<ie),Ie=D+1,Ze=Gu(b)+ie;if(Ze>30){var ht=ie-ie%5,St=(1<<ht)-1,_t=(ce&St).toString(32),Cn=ce>>ht,sr=ie-ht,qn=Gu(b)+sr,cc=Ie<<sr,fc=cc|Cn,uf=_t+z;return{id:1<<qn|fc,overflow:uf}}else{var vu=Ie<<ie,ig=vu|ce,og=z;return{id:1<<Ze|ig,overflow:og}}}function Gu(h){return 32-Hf(h)}function Va(h){return 1<<Gu(h)-1}var Hf=Math.clz32?Math.clz32:Vo,Uf=Math.log,Ki=Math.LN2;function Vo(h){var b=h>>>0;return b===0?32:31-(Uf(b)/Ki|0)|0}function Wl(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var qu=typeof Object.is=="function"?Object.is:Wl,nn=null,Ha=null,ga=null,un=null,Oi=!1,Ua=!1,ws=0,$n=null,Di=0,Wa=25,Zi=!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 Zi&&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 zl(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 D=0;D<b.length&&D<h.length;D++)if(!qu(h[D],b[D]))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 un===null?ga===null?(Oi=!1,ga=un=va()):(Oi=!0,un=ga):un.next===null?(Oi=!1,un=un.next=va()):(Oi=!0,un=un.next),un}function Yl(h,b){nn=b,Ha=h,Zi=!1,ws=0}function Kc(h,b,D,M){for(;Ua;)Ua=!1,ws=0,Di+=1,un=null,D=h(b,M);return Ho(),D}function Gl(){var h=ws!==0;return h}function Ho(){Zi=!1,nn=null,Ha=null,Ua=!1,ga=null,Di=0,$n=null,un=null}function ma(h){return Zi&&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 ql(h){return za="useContext",pr(),Ba(h)}function Xu(h,b){return typeof b=="function"?b(h):b}function Ku(h){return za="useState",Zc(Xu,h)}function Zc(h,b,D){if(h!==Xu&&(za="useReducer"),nn=pr(),un=zr(),Oi){var M=un.queue,z=M.dispatch;if($n!==null){var ie=$n.get(M);if(ie!==void 0){$n.delete(M);var ce=un.memoizedState,Ie=ie;do{var Ze=Ie.action;Zi=!0,ce=h(ce,Ze),Zi=!1,Ie=Ie.next}while(Ie!==null);return un.memoizedState=ce,[ce,z]}}return[un.memoizedState,z]}else{Zi=!0;var ht;h===Xu?ht=typeof b=="function"?b():b:ht=D!==void 0?D(b):b,Zi=!1,un.memoizedState=ht;var St=un.queue={last:null,dispatch:null},_t=St.dispatch=Jc.bind(null,nn,St);return[un.memoizedState,_t]}}function Xl(h,b){nn=pr(),un=zr();var D=b===void 0?null:b;if(un!==null){var M=un.memoizedState;if(M!==null&&D!==null){var z=M[1];if(zl(D,z))return M[0]}}Zi=!0;var ie=h();return Zi=!1,un.memoizedState=[ie,D],ie}function gr(h){nn=pr(),un=zr();var b=un.memoizedState;if(b===null){var D={current:h};return Object.seal(D),un.memoizedState=D,D}else return b}function Kl(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,D){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:D,next:null};$n===null&&($n=new Map);var z=$n.get(b);if(z===void 0)$n.set(b,M);else{for(var ie=z;ie.next!==null;)ie=ie.next;ie.next=M}}}function xo(h,b){return Xl(function(){return h},b)}function Zl(h,b,D){return pr(),b(h._source)}function Zu(h,b,D){if(D===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return D()}function Ya(h){return pr(),h}function eu(){throw new Error("startTransition cannot be called during server rendering.")}function kr(){return pr(),[!1,eu]}function tu(){var h=Ha,b=Vf(h.treeContext),D=ru;if(D===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var M=ws++;return Jn(D,b,M)}function nu(){}var Qc={readContext:ma,useContext:ql,useMemo:Xl,useReducer:Zc,useRef:gr,useState:Ku,useInsertionEffect:nu,useLayoutEffect:Kl,useCallback:xo,useImperativeHandle:nu,useEffect:nu,useDebugValue:nu,useDeferredValue:Ya,useTransition:kr,useId:tu,useMutableSource:Zl,useSyncExternalStore:Zu},ru=null;function xs(h){ru=h}function Jl(h){try{var b="",D=h;do{switch(D.tag){case 0:b+=zs(D.type,null,null);break;case 1:b+=jl(D.type,null,null);break;case 2:b+=qs(D.type,null,null);break}D=D.parent}while(D);return b}catch(M){return`
|
|
99
|
+
Error generating stack: `+M.message+`
|
|
100
|
+
`+M.stack}}var Pi=n.ReactCurrentDispatcher,iu=n.ReactDebugCurrentFrame,Ju=0,Ga=1,Ss=2,Ql=3,qa=4,ec=0,tc=1,So=2,Wf=12800;function zf(h){return console.error(h),null}function Ts(){}function ou(h,b,D,M,z,ie,ce,Ie,Ze){var ht=[],St=new Set,_t={destination:null,responseState:b,progressiveChunkSize:M===void 0?Wf:M,status:ec,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:ht,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:z===void 0?zf:z,onAllReady:ie===void 0?Ts:ie,onShellReady:ce===void 0?Ts:ce,onShellError:Ie===void 0?Ts:Ie,onFatalError:Ze===void 0?Ts:Ze},Cn=Uo(_t,0,null,D,!1,!1);Cn.parentFlushed=!0;var sr=Cs(_t,h,null,Cn,St,jo,Xs,Yu);return ht.push(sr),_t}function Qu(h,b){var D=h.pingedTasks;D.push(b),D.length===1&&s(function(){return lc(h)})}function Ji(h,b){return{id:Lr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function Cs(h,b,D,M,z,ie,ce,Ie){h.allPendingTasks++,D===null?h.pendingRootTasks++:D.pendingTasks++;var Ze={node:b,ping:function(){return Qu(h,Ze)},blockedBoundary:D,blockedSegment:M,abortSet:z,legacyContext:ie,context:ce,treeContext:Ie};return Ze.componentStack=null,z.add(Ze),Ze}function Uo(h,b,D,M,z,ie){return{status:Ju,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:M,boundary:D,lastPushedText:z,textEmbedded:ie}}var Qi=null;function Es(){return Qi===null||Qi.componentStack===null?"":Jl(Qi.componentStack)}function _i(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 el(h,b){h.componentStack={tag:2,parent:h.componentStack,type:b}}function Ri(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 nc(h,b){{var D;typeof b=="string"?D=b:b&&typeof b.message=="string"?D=b.message:D=String(b);var M=Wo||Es();Wo=null,h.errorMessage=D,h.errorComponentStack=M}}function Ka(h,b){var D=h.onError(b);if(D!=null&&typeof D!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof D+'" instead');return D}function au(h,b){var D=h.onShellError;D(b);var M=h.onFatalError;M(b),h.destination!==null?(h.status=So,_(h.destination,b)):(h.status=tc,h.fatalError=b)}function tl(h,b,D){_i(b,"Suspense");var M=b.blockedBoundary,z=b.blockedSegment,ie=D.fallback,ce=D.children,Ie=new Set,Ze=Ji(h,Ie),ht=z.chunks.length,St=Uo(h,ht,Ze,z.formatContext,!1,!1);z.children.push(St),z.lastPushedText=!1;var _t=Uo(h,0,null,z.formatContext,!1,!1);_t.parentFlushed=!0,b.blockedBoundary=Ze,b.blockedSegment=_t;try{if(eo(h,b,ce),ls(_t.chunks,h.responseState,_t.lastPushedText,_t.textEmbedded),_t.status=Ga,hu(Ze,_t),Ze.pendingTasks===0){Ri(b);return}}catch(sr){_t.status=qa,Ze.forceClientRender=!0,Ze.errorDigest=Ka(h,sr),nc(Ze,sr)}finally{b.blockedBoundary=M,b.blockedSegment=z}var Cn=Cs(h,ie,M,St,Ie,b.legacyContext,b.context,b.treeContext);Cn.componentStack=b.componentStack,h.pingedTasks.push(Cn),Ri(b)}function ef(h,b,D,M){_i(b,D);var z=b.blockedSegment,ie=ri(z.chunks,D,M,h.responseState,z.formatContext);z.lastPushedText=!1;var ce=z.formatContext;z.formatContext=vi(ce,D,M),eo(h,b,ie),z.formatContext=ce,dr(z.chunks,D),z.lastPushedText=!1,Ri(b)}function rc(h){return h.prototype&&h.prototype.isReactComponent}function Gt(h,b,D,M,z){var ie={};Yl(b,ie);var ce=D(M,z);return Kc(D,M,ce,z)}function su(h,b,D,M,z){var ie=D.render();D.props!==z&&(oi||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Pn(M)||"a component"),oi=!0);{var ce=M.childContextTypes;if(ce!=null){var Ie=b.legacyContext,Ze=Bo(D,M,Ie,ce);b.legacyContext=Ze,Yr(h,b,ie),b.legacyContext=Ie;return}}Yr(h,b,ie)}function tf(h,b,D,M){el(b,D);var z=Wc(D,b.legacyContext),ie=Bf(D,M,z);zu(ie,D,M,z),su(h,b,ie,D,M),Ri(b)}var Za={},ks={},ic={},oc={},oi=!1,nf=!1,uu=!1,lu=!1;function rf(h,b,D,M){var z;if(z=Wc(D,b.legacyContext),Xa(b,D),D.prototype&&typeof D.prototype.render=="function"){var ie=Pn(D)||"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 ce=Gt(h,b,D,M,z),Ie=Gl();if(typeof ce=="object"&&ce!==null&&typeof ce.render=="function"&&ce.$$typeof===void 0){var Ze=Pn(D)||"Unknown";ks[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),ks[Ze]=!0)}if(typeof ce=="object"&&ce!==null&&typeof ce.render=="function"&&ce.$$typeof===void 0){{var ht=Pn(D)||"Unknown";ks[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),ks[ht]=!0)}zu(ce,D,M,z),su(h,b,ce,D,M)}else if(of(D),Ie){var St=b.treeContext,_t=1,Cn=0;b.treeContext=Ul(St,_t,Cn);try{Yr(h,b,ce)}finally{b.treeContext=St}}else Yr(h,b,ce);Ri(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=Pn(h)||"Unknown";oc[b]||(i("%s: Function components do not support getDerivedStateFromProps.",b),oc[b]=!0)}if(typeof h.contextType=="object"&&h.contextType!==null){var D=Pn(h)||"Unknown";ic[D]||(i("%s: Function components do not support contextType.",D),ic[D]=!0)}}}function ai(h,b){if(h&&h.defaultProps){var D=ke({},b),M=h.defaultProps;for(var z in M)D[z]===void 0&&(D[z]=M[z]);return D}return b}function ya(h,b,D,M,z){Xa(b,D.render);var ie=Gt(h,b,D.render,M,z),ce=Gl();if(ce){var Ie=b.treeContext,Ze=1,ht=0;b.treeContext=Ul(Ie,Ze,ht);try{Yr(h,b,ie)}finally{b.treeContext=Ie}}else Yr(h,b,ie);Ri(b)}function ac(h,b,D,M,z){var ie=D.type,ce=ai(ie,M);cu(h,b,ie,ce,z)}function nl(h,b,D,M){D._context===void 0?D!==D.Consumer&&(lu||(lu=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):D=D._context;var z=M.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 ie=Ba(D),ce=z(ie);Yr(h,b,ce)}function rl(h,b,D,M){var z=D._context,ie=M.value,ce=M.children,Ie;Ie=b.context,b.context=Zs(z,ie),Yr(h,b,ce),b.context=ms(z),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,D,M,z){_i(b,"Lazy");var ie=D._payload,ce=D._init,Ie=ce(ie),Ze=ai(Ie,M);cu(h,b,Ie,Ze,z),Ri(b)}function cu(h,b,D,M,z){if(typeof D=="function")if(rc(D)){tf(h,b,D,M);return}else{rf(h,b,D,M);return}if(typeof D=="string"){ef(h,b,D,M);return}switch(D){case Hr:case Gn:case $e:case We:case fe:{Yr(h,b,M.children);return}case kt:{_i(b,"SuspenseList"),Yr(h,b,M.children),Ri(b);return}case ar:throw new Error("ReactDOMServer does not yet support scope components.");case At:{tl(h,b,M);return}}if(typeof D=="object"&&D!==null)switch(D.$$typeof){case ut:{ya(h,b,D,M,z);return}case Yt:{ac(h,b,D,M,z);return}case ft:{rl(h,b,D,M);return}case dt:{nl(h,b,D,M);return}case Ln:{si(h,b,D,M);return}}var ie="";throw(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).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: "+(D==null?D:typeof D)+"."+ie))}function sc(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&&(uu||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),uu=!0)}function Yr(h,b,D){try{return fu(h,b,D)}catch(M){throw typeof M=="object"&&M!==null&&typeof M.then=="function"||(Wo=Wo!==null?Wo:Es()),M}}function fu(h,b,D){if(b.node=D,typeof D=="object"&&D!==null){switch(D.$$typeof){case Z:{var M=D,z=M.type,ie=M.props,ce=M.ref;cu(h,b,z,ie,ce);return}case he: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=D,Ze=Ie._payload,ht=Ie._init,St;try{St=ht(Ze)}catch(vu){throw typeof vu=="object"&&vu!==null&&typeof vu.then=="function"&&_i(b,"Lazy"),vu}Yr(h,b,St);return}}if(Zr(D)){zo(h,b,D);return}var _t=Dn(D);if(_t){sc(D,_t);var Cn=_t.call(D);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 cc=Object.prototype.toString.call(D);throw new Error("Objects are not valid as a React child (found: "+(cc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":cc)+"). If you meant to render a collection of children, use an array instead.")}if(typeof D=="string"){var fc=b.blockedSegment;fc.lastPushedText=Ws(b.blockedSegment.chunks,D,h.responseState,fc.lastPushedText);return}if(typeof D=="number"){var uf=b.blockedSegment;uf.lastPushedText=Ws(b.blockedSegment.chunks,""+D,h.responseState,uf.lastPushedText);return}typeof D=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function zo(h,b,D){for(var M=D.length,z=0;z<M;z++){var ie=b.treeContext;b.treeContext=Ul(ie,M,z);try{eo(h,b,D[z])}finally{b.treeContext=ie}}}function Yf(h,b,D){var M=b.blockedSegment,z=M.chunks.length,ie=Uo(h,z,null,M.formatContext,M.lastPushedText,!0);M.children.push(ie),M.lastPushedText=!1;var ce=Cs(h,b.node,b.blockedBoundary,ie,b.abortSet,b.legacyContext,b.context,b.treeContext);b.componentStack!==null&&(ce.componentStack=b.componentStack.parent);var Ie=ce.ping;D.then(Ie,Ie)}function eo(h,b,D){var M=b.blockedSegment.formatContext,z=b.legacyContext,ie=b.context,ce=null;ce=b.componentStack;try{return Yr(h,b,D)}catch(Ie){if(Ho(),typeof Ie=="object"&&Ie!==null&&typeof Ie.then=="function"){Yf(h,b,Ie),b.blockedSegment.formatContext=M,b.legacyContext=z,b.context=ie,$u(ie),b.componentStack=ce;return}else throw b.blockedSegment.formatContext=M,b.legacyContext=z,b.context=ie,$u(ie),b.componentStack=ce,Ie}}function du(h,b,D,M){var z=Ka(h,M);if(b===null?au(h,M):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=z,nc(b,M),b.parentFlushed&&h.clientRenderedBoundaries.push(b))),h.allPendingTasks--,h.allPendingTasks===0){var ie=h.onAllReady;ie()}}function uc(h){var b=this,D=h.blockedBoundary,M=h.blockedSegment;M.status=Ql,pu(b,D,M)}function il(h,b,D){var M=h.blockedBoundary,z=h.blockedSegment;if(z.status=Ql,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=D===void 0?new Error("The render was aborted by the server without a reason."):D;M.errorDigest=b.onError(ie);{var ce="The server did not finish this Suspense boundary: ";ie&&typeof ie.message=="string"?ie=ce+ie.message:ie=ce+String(ie);var Ie=Qi;Qi=h;try{nc(M,ie)}finally{Qi=Ie}}M.parentFlushed&&b.clientRenderedBoundaries.push(M)}if(M.fallbackAbortableTasks.forEach(function(ht){return il(ht,b,D)}),M.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var Ze=b.onAllReady;Ze()}}}function hu(h,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null){var D=b.children[0];D.id=b.id,D.parentFlushed=!0,D.status===Ga&&hu(h,D)}else{var M=h.completedSegments;M.push(b)}}function pu(h,b,D){if(b===null){if(D.parentFlushed){if(h.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");h.completedRootSegment=D}if(h.pendingRootTasks--,h.pendingRootTasks===0){h.onShellError=Ts;var M=h.onShellReady;M()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)D.parentFlushed&&D.status===Ga&&hu(b,D),b.parentFlushed&&h.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(uc,h),b.fallbackAbortableTasks.clear();else if(D.parentFlushed&&D.status===Ga){hu(b,D);var z=b.completedSegments;z.length===1&&b.parentFlushed&&h.partialBoundaries.push(b)}}if(h.allPendingTasks--,h.allPendingTasks===0){var ie=h.onAllReady;ie()}}function ol(h,b){var D=b.blockedSegment;if(D.status===Ju){$u(b.context);var M=null;M=Qi,Qi=b;try{Yr(h,b,b.node),ls(D.chunks,h.responseState,D.lastPushedText,D.textEmbedded),b.abortSet.delete(b),D.status=Ga,pu(h,b.blockedBoundary,D)}catch(ie){if(Ho(),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"){var z=b.ping;ie.then(z,z)}else b.abortSet.delete(b),D.status=qa,du(h,b.blockedBoundary,D,ie)}finally{Qi=M}}}function lc(h){if(h.status!==So){var b=Js(),D=Pi.current;Pi.current=Qc;var M;M=iu.getCurrentStack,iu.getCurrentStack=Es;var z=ru;xs(h.responseState);try{var ie=h.pingedTasks,ce;for(ce=0;ce<ie.length;ce++){var Ie=ie[ce];ol(h,Ie)}ie.splice(0,ce),h.destination!==null&&sl(h,h.destination)}catch(Ze){Ka(h,Ze),au(h,Ze)}finally{xs(z),Pi.current=D,iu.getCurrentStack=M,D===Qc&&$u(b)}}}function Os(h,b,D){switch(D.parentFlushed=!0,D.status){case Ju:{var M=D.id=h.nextSegmentId++;return D.lastPushedText=!1,D.textEmbedded=!1,yn(b,h.responseState,M)}case Ga:{D.status=Ss;for(var z=!0,ie=D.chunks,ce=0,Ie=D.children,Ze=0;Ze<Ie.length;Ze++){for(var ht=Ie[Ze];ce<ht.index;ce++)c(b,ie[ce]);z=gu(h,b,ht)}for(;ce<ie.length-1;ce++)c(b,ie[ce]);return ce<ie.length&&(z=d(b,ie[ce])),z}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function gu(h,b,D){var M=D.boundary;if(M===null)return Os(h,b,D);if(M.parentFlushed=!0,M.forceClientRender)return ee(b,h.responseState,M.errorDigest,M.errorMessage,M.errorComponentStack),Os(h,b,D),_e(b,h.responseState);if(M.pendingTasks>0){M.rootSegmentID=h.nextSegmentId++,M.completedSegments.length>0&&h.partialBoundaries.push(M);var z=M.id=ei(h.responseState);return ue(b,h.responseState,z),Os(h,b,D),Ne(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,D),Ne(b,h.responseState);cs(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 ce=ie[0];return gu(h,b,ce),me(b,h.responseState)}}function af(h,b,D){return Us(b,h.responseState,D.id,D.errorDigest,D.errorMessage,D.errorComponentStack)}function al(h,b,D){return Ce(b,h.responseState,D.formatContext,D.id),gu(h,b,D),Be(b,D.formatContext)}function vr(h,b,D){for(var M=D.completedSegments,z=0;z<M.length;z++){var ie=M[z];sf(h,b,D,ie)}return M.length=0,Hs(b,h.responseState,D.id,D.rootSegmentID)}function To(h,b,D){for(var M=D.completedSegments,z=0;z<M.length;z++){var ie=M[z];if(!sf(h,b,D,ie))return z++,M.splice(0,z),!1}return M.splice(0,z),!0}function sf(h,b,D,M){if(M.status===Ss)return!0;var z=M.id;if(z===-1){var ie=M.id=D.rootSegmentID;if(ie===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return al(h,b,M)}else return al(h,b,M),Yn(b,h.responseState,z)}function sl(h,b){try{var D=h.completedRootSegment;D!==null&&h.pendingRootTasks===0&&(gu(h,b,D),h.completedRootSegment=null,Fa(b,h.responseState));var M=h.clientRenderedBoundaries,z;for(z=0;z<M.length;z++){var ie=M[z];if(!af(h,b,ie)){h.destination=null,z++,M.splice(0,z);return}}M.splice(0,z);var ce=h.completedBoundaries;for(z=0;z<ce.length;z++){var Ie=ce[z];if(!vr(h,b,Ie)){h.destination=null,z++,ce.splice(0,z);return}}ce.splice(0,z);var Ze=h.partialBoundaries;for(z=0;z<Ze.length;z++){var ht=Ze[z];if(!To(h,b,ht)){h.destination=null,z++,Ze.splice(0,z);return}}Ze.splice(0,z);var St=h.completedBoundaries;for(z=0;z<St.length;z++){var _t=St[z];if(!vr(h,b,_t)){h.destination=null,z++,St.splice(0,z);return}}St.splice(0,z)}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 ul(h){s(function(){return lc(h)})}function g(h,b){if(h.status===tc){h.status=So,_(b,h.fatalError);return}if(h.status!==So&&h.destination===null){h.destination=b;try{sl(h,b)}catch(D){Ka(h,D),au(h,D)}}}function w(h,b){try{var D=h.abortableTasks;D.forEach(function(M){return il(M,h,b)}),D.clear(),h.destination!==null&&sl(h,h.destination)}catch(M){Ka(h,M),au(h,M)}}function A(){}function $(h,b,D,M){var z=!1,ie=null,ce="",Ie={push:function(_t){return _t!==null&&(ce+=_t),!0},destroy:function(_t){z=!0,ie=_t}},Ze=!1;function ht(){Ze=!0}var St=ou(h,mo(D,b?b.identifierPrefix:void 0),hr(),1/0,A,void 0,ht,void 0,void 0);if(ul(St),w(St,M),g(St,Ie),z)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 ce}function K(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 ae(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 ge(){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.")}wc.renderToNodeStream=ge,wc.renderToStaticMarkup=ae,wc.renderToStaticNodeStream=Ae,wc.renderToString=K,wc.version=t}()),wc}var jh={};/**
|
|
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 QS;function $5(){return QS||(QS=1,process.env.NODE_ENV!=="production"&&function(){var e=Q,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,K=$.getStackAddendum();K!==""&&(w+="%s",A=A.concat([K]));var ae=A.map(function(ge){return String(ge)});ae.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,ae)}}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 S(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 _(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 Y(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,A=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function ne(g){try{return J(g),!1}catch{return!0}}function J(g){return""+g}function de(g,w){if(ne(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,Y(g)),J(g)}function x(g,w){if(ne(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,Y(g)),J(g)}function ye(g){if(ne(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.",Y(g)),J(g)}var le=Object.prototype.hasOwnProperty,Qe=0,ze=1,He=2,Ye=3,et=4,pe=5,De=6,Fe=":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",Je=Fe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",it=new RegExp("^["+Fe+"]["+Je+"]*$"),Oe={},xe={};function Ue(g){return le.call(xe,g)?!0:le.call(Oe,g)?!1:it.test(g)?(xe[g]=!0,!0):(Oe[g]=!0,i("Invalid attribute name: `%s`",g),!1)}function Ve(g,w,A,$){if(A!==null&&A.type===Qe)return!1;switch(typeof w){case"function":case"symbol":return!0;case"boolean":{if($)return!1;if(A!==null)return!A.acceptsBooleans;var K=g.toLowerCase().slice(0,5);return K!=="data-"&&K!=="aria-"}default:return!1}}function Re(g){return Xe.hasOwnProperty(g)?Xe[g]:null}function Me(g,w,A,$,K,ae,ge){this.acceptsBooleans=w===He||w===Ye||w===et,this.attributeName=$,this.attributeNamespace=K,this.mustUseProperty=A,this.propertyName=g,this.type=w,this.sanitizeURL=ae,this.removeEmptyString=ge}var Xe={},lt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];lt.forEach(function(g){Xe[g]=new Me(g,Qe,!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];Xe[w]=new Me(w,ze,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){Xe[g]=new Me(g,He,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){Xe[g]=new Me(g,He,!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){Xe[g]=new Me(g,Ye,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){Xe[g]=new Me(g,Ye,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){Xe[g]=new Me(g,et,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){Xe[g]=new Me(g,De,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){Xe[g]=new Me(g,pe,!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);Xe[w]=new Me(w,ze,!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);Xe[w]=new Me(w,ze,!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);Xe[w]=new Me(w,ze,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){Xe[g]=new Me(g,ze,!1,g.toLowerCase(),null,!1,!1)});var vt="xlinkHref";Xe[vt]=new Me("xlinkHref",ze,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){Xe[g]=new Me(g,ze,!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={},Fi=new RegExp("^(aria)-["+Je+"]*$"),Pr=new RegExp("^(aria)[A-Z]["+Je+"]*$");function rr(g,w){{if(le.call(kn,w)&&kn[w])return!0;if(Pr.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(Fi.test(w)){var K=w.toLowerCase(),ae=Kn.hasOwnProperty(K)?K:null;if(ae==null)return kn[w]=!0,!1;if(w!==ae)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",w,ae),kn[w]=!0,!0}}return!0}function cn(g,w){{var A=[];for(var $ in w){var K=rr(g,$);K||A.push($)}var ae=A.map(function(ge){return"`"+ge+"`"}).join(", ");A.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ae,g):A.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ae,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"},ci=function(){};{var ln={},ji=/^on./,Bi=/^on[^A-Z]/,$i=new RegExp("^(aria)-["+Je+"]*$"),_r=new RegExp("^(aria)[A-Z]["+Je+"]*$");ci=function(g,w,A,$){if(le.call(ln,w)&&ln[w])return!0;var K=w.toLowerCase();if(K==="onfocusin"||K==="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."),ln[w]=!0,!0;if($!=null){var ae=$.registrationNameDependencies,ge=$.possibleRegistrationNames;if(ae.hasOwnProperty(w))return!0;var Ae=ge.hasOwnProperty(K)?ge[K]:null;if(Ae!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",w,Ae),ln[w]=!0,!0;if(ji.test(w))return i("Unknown event handler property `%s`. It will be ignored.",w),ln[w]=!0,!0}else if(ji.test(w))return Bi.test(w)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",w),ln[w]=!0,!0;if($i.test(w)||_r.test(w))return!0;if(K==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ln[w]=!0,!0;if(K==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ln[w]=!0,!0;if(K==="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),ln[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),ln[w]=!0,!0;var h=Re(w),b=h!==null&&h.type===Qe;if(Rn.hasOwnProperty(K)){var D=Rn[K];if(D!==w)return i("Invalid DOM property `%s`. Did you mean `%s`?",w,D),ln[w]=!0,!0}else if(!b&&w!==K)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,K),ln[w]=!0,!0;return typeof A=="boolean"&&Ve(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),ln[w]=!0,!0):b?!0:Ve(w,A,h,!1)?(ln[w]=!0,!1):((A==="false"||A==="true")&&h!==null&&h.type===Ye&&(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),ln[w]=!0),!0)}}var Un=function(g,w,A){{var $=[];for(var K in w){var ae=ci(g,K,w[K],A);ae||$.push(K)}var ge=$.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 ",ge,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 ",ge,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-/,Po=/-(.)/g,Zn=/;\s*$/,Kr={},ir={},Zt=!1,fi=!1,Vi=function(g){return g.replace(Po,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,Vi(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)))},di=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,"")))},hi=function(g,w){Zt||(Zt=!0,i("`NaN` is an invalid value for the `%s` css style property.",g))},mn=function(g,w){fi||(fi=!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)&&di(g,w),typeof w=="number"&&(isNaN(w)?hi(g,w):isFinite(w)||mn(g,w))}}var uo=wr,xr=/["'&<>]/;function pi(g){ye(g);var w=""+g,A=xr.exec(w);if(!A)return w;var $,K="",ae,ge=0;for(ae=A.index;ae<w.length;ae++){switch(w.charCodeAt(ae)){case 34:$=""";break;case 38:$="&";break;case 39:$="'";break;case 60:$="<";break;case 62:$=">";break;default:continue}ge!==ae&&(K+=w.substring(ge,ae)),ge=ae+1,K+=$}return ge!==ae?K+w.substring(ge,ae):K}function fn(g){return typeof g=="boolean"||typeof g=="number"?""+g:pi(g)}var Si=/([A-Z])/g,Ra=/^ms-/;function Ia(g){return g.replace(Si,"-$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,lo=!1;function co(g){!lo&&Zr.test(g)&&(lo=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(g)))}var _o=Array.isArray;function Ti(g){return _o(g)}var gi=I("<script>"),Ci=I("<\/script>"),fo=I('<script src="'),Ei=I('<script type="module" src="'),Jr=I('" async=""><\/script>');function Sr(g){return ye(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,$,K){var ae=g===void 0?"":g,ge=w===void 0?gi:I('<script nonce="'+fn(w)+'">'),Ae=[];if(A!==void 0&&Ae.push(ge,L(Sr(A)),Ci),$!==void 0)for(var h=0;h<$.length;h++)Ae.push(fo,L(fn($[h])),Jr);if(K!==void 0)for(var b=0;b<K.length;b++)Ae.push(Ei,L(fn(K[b])),Jr);return{bootstrapChunks:Ae,startInlineScript:ge,placeholderPrefix:I(ae+"P:"),segmentPrefix:I(ae+"S:"),boundaryPrefix:ae+"B:",idPrefix:ae,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Wn=0,vn=1,Mr=2,Tr=3,An=4,vi=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(vi,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 Hi=null;function _n(g){var w=g.nextSuspenseID++;return I(g.boundaryPrefix+w.toString(16))}function Cr(g,w,A){var $=g.idPrefix,K=":"+$+"R"+w;return A>0&&(K+="H"+A.toString(32)),K+":"}function fr(g){return fn(g)}var Ro=I("<!-- -->");function Ui(g,w,A,$){return w===""?$:($&&g.push(Ro),g.push(L(fr(w))),!0)}function Nr(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(":"),Pe=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 K in A)if(le.call(A,K)){var ae=A[K];if(!(ae==null||typeof ae=="boolean"||ae==="")){var ge=void 0,Ae=void 0,h=K.indexOf("--")===0;h?(ge=L(fn(K)),x(ae,K),Ae=L(fn((""+ae).trim()))):(uo(K,ae),ge=j(K),typeof ae=="number"?ae!==0&&!le.call(Et,K)?Ae=L(ae+"px"):Ae=L(""+ae):(x(ae,K),Ae=L(fn((""+ae).trim())))),$?($=!1,g.push(q,ge,re,Ae)):g.push(Pe,ge,re,Ae)}}$||g.push(yt)}var Le=I(" "),nt=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 K=Re(A);if(K!==null){switch(typeof $){case"function":case"symbol":return;case"boolean":if(!K.acceptsBooleans)return}var ae=K.attributeName,ge=L(ae);switch(K.type){case Ye:$&&g.push(Le,ge,Tt);return;case et:$===!0?g.push(Le,ge,Tt):$===!1||g.push(Le,ge,nt,L(fn($)),yt);return;case pe:isNaN($)||g.push(Le,ge,nt,L(fn($)),yt);break;case De:!isNaN($)&&$>=1&&g.push(Le,ge,nt,L(fn($)),yt);break;default:K.sanitizeURL&&(de($,ae),$=""+$,co($)),g.push(Le,ge,nt,L(fn($)),yt)}}else if(Ue(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(Le,L(A),nt,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&&(ye($),g.push(L(""+$)))}}var On=!1,Fr=!1,or=!1,Wi=!1,mi=!1,zi=!1,jr=!1;function Io(g,w){{var A=g[w];if(A!=null){var $=Ti(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,K=null;for(var ae in w)if(le.call(w,ae)){var ge=w[ae];if(ge==null)continue;switch(ae){case"children":$=ge;break;case"dangerouslySetInnerHTML":K=ge;break;case"defaultValue":case"value":break;default:bt(g,A,ae,ge);break}}return g.push(Ut),zn(g,K,$),$}function Aa(g){var w="";return e.Children.forEach(g,function(A){A!=null&&(w+=A,!mi&&typeof A!="string"&&typeof A!="number"&&(mi=!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 K=$.selectedValue;g.push(dr("option"));var ae=null,ge=null,Ae=null,h=null;for(var b in w)if(le.call(w,b)){var D=w[b];if(D==null)continue;switch(b){case"children":ae=D;break;case"selected":Ae=D,jr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),jr=!0);break;case"dangerouslySetInnerHTML":h=D;break;case"value":ge=D;default:bt(g,A,b,D);break}}if(K!=null){var M;if(ge!==null?(de(ge,"value"),M=""+ge):(h!==null&&(zi||(zi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),M=Aa(ae)),Ti(K))for(var z=0;z<K.length;z++){de(K[z],"value");var ie=""+K[z];if(ie===M){g.push(Ma);break}}else de(K,"select.value"),""+K===M&&g.push(Ma)}else Ae&&g.push(Ma);return g.push(Ut),zn(g,h,ae),ae}function Na(g,w,A){Xn("input",w),w.checked!==void 0&&w.defaultChecked!==void 0&&!Fr&&(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),Fr=!0),w.value!==void 0&&w.defaultValue!==void 0&&!On&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",w.type),On=!0),g.push(dr("input"));var $=null,K=null,ae=null,ge=null;for(var Ae in w)if(le.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":ge=h;break;case"defaultValue":K=h;break;case"checked":ae=h;break;case"value":$=h;break;default:bt(g,A,Ae,h);break}}return ae!==null?bt(g,A,"checked",ae):ge!==null&&bt(g,A,"checked",ge),$!==null?bt(g,A,"value",$):K!==null&&bt(g,A,"value",K),g.push(Qn),null}function yi(g,w,A){Xn("textarea",w),w.value!==void 0&&w.defaultValue!==void 0&&!Wi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Wi=!0),g.push(dr("textarea"));var $=null,K=null,ae=null;for(var ge in w)if(le.call(w,ge)){var Ae=w[ge];if(Ae==null)continue;switch(ge){case"children":ae=Ae;break;case"value":$=Ae;break;case"defaultValue":K=Ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:bt(g,A,ge,Ae);break}}if($===null&&K!==null&&($=K),g.push(Ut),ae!=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(Ti(ae)){if(ae.length>1)throw new Error("<textarea> can only have at most one child.");ye(ae[0]),$=""+ae[0]}ye(ae),$=""+ae}return typeof $=="string"&&$[0]===`
|
|
109
|
+
`&&g.push(ki),$!==null&&(de($,"value"),g.push(L(fr(""+$)))),null}function Ao(g,w,A,$){g.push(dr(A));for(var K in w)if(le.call(w,K)){var ae=w[K];if(ae==null)continue;switch(K){case"children":case"dangerouslySetInnerHTML":throw new Error(A+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:bt(g,$,K,ae);break}}return g.push(Qn),null}function ra(g,w,A){g.push(dr("menuitem"));for(var $ in w)if(le.call(w,$)){var K=w[$];if(K==null)continue;switch($){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:bt(g,A,$,K);break}}return g.push(Ut),null}function sn(g,w,A){g.push(dr("title"));var $=null;for(var K in w)if(le.call(w,K)){var ae=w[K];if(ae==null)continue;switch(K){case"children":$=ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:bt(g,A,K,ae);break}}g.push(Ut);{var ge=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"):ge!=null&&ge.$$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"):ge!=null&&typeof ge!="string"&&typeof ge!="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 K=null,ae=null;for(var ge in w)if(le.call(w,ge)){var Ae=w[ge];if(Ae==null)continue;switch(ge){case"children":K=Ae;break;case"dangerouslySetInnerHTML":ae=Ae;break;default:bt(g,$,ge,Ae);break}}return g.push(Ut),zn(g,ae,K),typeof K=="string"?(g.push(L(fr(K))),null):K}function Vt(g,w,A,$){g.push(dr(A));var K=null,ae=null;for(var ge in w)if(le.call(w,ge)){var Ae=w[ge];if(Ae==null)continue;switch(ge){case"children":K=Ae;break;case"dangerouslySetInnerHTML":ae=Ae;break;case"style":be(g,$,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ue(ge)&&typeof Ae!="function"&&typeof Ae!="symbol"&&g.push(Le,L(ge),nt,L(fn(Ae)),yt);break}}return g.push(Ut),zn(g,ae,K),K}var ki=I(`
|
|
110
|
+
`);function ri(g,w,A,$){g.push(dr(A));var K=null,ae=null;for(var ge in w)if(le.call(w,ge)){var Ae=w[ge];if(Ae==null)continue;switch(ge){case"children":K=Ae;break;case"dangerouslySetInnerHTML":ae=Ae;break;default:bt(g,$,ge,Ae);break}}if(g.push(Ut),ae!=null){if(K!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof ae!="object"||!("__html"in ae))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=ae.__html;h!=null&&(typeof h=="string"&&h.length>0&&h[0]===`
|
|
111
|
+
`?g.push(ki,L(h)):(ye(h),g.push(L(""+h))))}return typeof K=="string"&&K[0]===`
|
|
112
|
+
`&&g.push(ki),K}var Mo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,bi=new Map;function dr(g){var w=bi.get(g);if(w===void 0){if(!Mo.test(g))throw new Error("Invalid tag: "+g);w=I("<"+g),bi.set(g,w)}return w}var Fa=I("<!DOCTYPE html>");function ia(g,w,A,$,K){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."),K.insertionMode!==Mr&&K.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,$,K);case"textarea":return yi(g,A,$);case"input":return Na(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 K.insertionMode===Wn&&g.push(Fa),Qt(g,A,w,$);default:return w.indexOf("-")===-1&&typeof A.is!="string"?Qt(g,A,w,$):Vt(g,A,w,$)}}var os=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(os,L(w),yn)}}function wi(g,w){for(var A=w.bootstrapChunks,$=0;$<A.length-1;$++)p(g,A[$]);return $<A.length?S(g,A[$]):!0}var as=I('<template id="'),ho=I('"></template>');function er(g,w,A){p(g,as),p(g,w.placeholderPrefix);var $=L(A.toString(16));return p(g,$),S(g,ho)}var f=I("<!--$-->"),m=I('<!--$?--><template id="'),C=I('"></template>'),O=I("<!--$!-->"),F=I("<!--/$-->"),B=I("<template"),H=I('"'),ue=I(' data-dgst="'),oe=I(' data-msg="'),we=I(' data-stck="'),Ne=I("></template>");function je(g,w){return S(g,f)}function Ee(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),S(g,C)}function Ge(g,w,A,$,K){var ae;return ae=S(g,O),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)),K&&(p(g,we),p(g,L(fn(K))),p(g,H)),ae=S(g,Ne),ae}function ct(g,w){return S(g,F)}function Pt(g,w){return S(g,F)}function It(g,w){return S(g,F)}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>"),N=I('<table hidden><tbody id="'),W=I('">'),te=I("</tbody></table>"),Te=I('<table hidden><tr id="'),Ce=I('">'),Be=I("</tr></table>"),tt=I('<table hidden><colgroup id="'),xt=I('">'),Ft=I("</colgroup></table>");function Dt(g,w,A,$){switch(A.insertionMode){case Wn:case vn:return p(g,Mn),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,dn);case Mr:return p(g,$r),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,Wt);case Tr:return p(g,zt),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,on);case An:return p(g,go),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,Er);case vi:return p(g,N),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,W);case Lr:return p(g,Te),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(g,Ce);case ei:return p(g,tt),p(g,w.segmentPrefix),p(g,L($.toString(16))),S(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 S(g,Br);case Mr:return S(g,Vr);case Tr:return S(g,po);case An:return S(g,k);case vi:return S(g,te);case Lr:return S(g,Be);case ei:return S(g,Ft);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("'),ss=I('$RS("'),aa=I('","'),ii=I('")<\/script>');function Hs(g,w,A){p(g,w.startInlineScript),w.sentCompleteSegmentFunction?p(g,ss):(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,$),S(g,ii)}var vo=I(Tn+';$RC("'),us=I('$RC("'),sa=I('","'),xi=I('")<\/script>');function Yi(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 K=L($.toString(16));return p(g,A),p(g,sa),p(g,w.segmentPrefix),p(g,K),S(g,xi)}var Us=I(Yn+';$RX("'),Ml=I('$RX("'),ua=I('"'),mo=I(")<\/script>"),hr=I(",");function Ws(g,w,A,$,K,ae){if(p(g,w.startInlineScript),w.sentClientRenderFunction?p(g,Ml):(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,ua),($||K||ae)&&(p(g,hr),p(g,L(cs($||"")))),(K||ae)&&(p(g,hr),p(g,L(cs(K||"")))),ae&&(p(g,hr),p(g,L(cs(ae)))),S(g,mo)}var ls=/[<\u2028\u2029]/g;function cs(g){var w=JSON.stringify(g);return w.replace(ls,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,me=Symbol.for("react.element"),_e=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),fe=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 Gi(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 K=w.displayName||w.name||"";return K!==""?A+"("+K+")":A}function Uc(g){return g.displayName||"Context"}function Dn(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 ke:return"Fragment";case _e:return"Portal";case he:return"Profiler";case Z: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 fe:var A=g;return Uc(A._context)+".Provider";case We:return Mt(g,g.render,"ForwardRef");case ut:var $=g.displayName||null;return $!==null?$:Dn(g.type)||"Memo";case At:{var K=g,ae=K._payload,ge=K._init;try{return Dn(ge(ae))}catch{return null}}}return null}var la=0,Ll,Pn,fs,ds,yo,hs,Fu;function ps(){}ps.__reactDisabledLog=!0;function Nl(){{if(la===0){Ll=console.log,Pn=console.info,fs=console.warn,ds=console.error,yo=console.group,hs=console.groupCollapsed,Fu=console.groupEnd;var g={configurable:!0,enumerable:!0,value:ps,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}la++}}function Fl(){{if(la--,la===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},g,{value:Ll}),info:ee({},g,{value:Pn}),warn:ee({},g,{value:fs}),error:ee({},g,{value:ds}),group:ee({},g,{value:yo}),groupCollapsed:ee({},g,{value:hs}),groupEnd:ee({},g,{value:Fu})})}la<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ja=n.ReactCurrentDispatcher,ju;function No(g,w,A){{if(ju===void 0)try{throw Error()}catch(K){var $=K.stack.trim().match(/\n( *(at )?)/);ju=$&&$[1]||""}return`
|
|
113
|
+
`+ju+g}}var qi=!1,Fo;{var zs=typeof WeakMap=="function"?WeakMap:Map;Fo=new zs}function Ys(g,w){if(!g||qi)return"";{var A=Fo.get(g);if(A!==void 0)return A}var $;qi=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ja.current,ja.current=null,Nl();try{if(w){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(ce){$=ce}Reflect.construct(g,[],ge)}else{try{ge.call()}catch(ce){$=ce}g.call(ge.prototype)}}else{try{throw Error()}catch(ce){$=ce}g()}}catch(ce){if(ce&&$&&typeof ce.stack=="string"){for(var Ae=ce.stack.split(`
|
|
114
|
+
`),h=$.stack.split(`
|
|
115
|
+
`),b=Ae.length-1,D=h.length-1;b>=1&&D>=0&&Ae[b]!==h[D];)D--;for(;b>=1&&D>=0;b--,D--)if(Ae[b]!==h[D]){if(b!==1||D!==1)do if(b--,D--,D<0||Ae[b]!==h[D]){var M=`
|
|
116
|
+
`+Ae[b].replace(" at new "," at ");return g.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",g.displayName)),typeof g=="function"&&Fo.set(g,M),M}while(b>=1&&D>=0);break}}}finally{qi=!1,ja.current=ae,Fl(),Error.prepareStackTrace=K}var z=g?g.displayName||g.name:"",ie=z?No(z):"";return typeof g=="function"&&Fo.set(g,ie),ie}function Bu(g,w,A){return Ys(g,!0)}function Gs(g,w,A){return Ys(g,!1)}function gs(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,gs(g));if(typeof g=="string")return No(g);switch(g){case ft:return No("Suspense");case dt:return No("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,K=$._payload,ae=$._init;try{return qs(ae(K),w,A)}catch{}}}return""}var jl={},Bl=n.ReactDebugCurrentFrame;function vs(g){if(g){var w=g._owner,A=qs(g.type,g._source,w?w.type:null);Bl.setExtraStackFrame(A)}else Bl.setExtraStackFrame(null)}function $l(g,w,A,$,K){{var ae=Function.call.bind(le);for(var ge in g)if(ae(g,ge)){var Ae=void 0;try{if(typeof g[ge]!="function"){var h=Error(($||"React class")+": "+A+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}Ae=g[ge](w,ge,$,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){Ae=b}Ae&&!(Ae instanceof Error)&&(vs(K),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,ge,typeof Ae),vs(null)),Ae instanceof Error&&!(Ae.message in jl)&&(jl[Ae.message]=!0,vs(K),i("Failed %s type: %s",A,Ae.message),vs(null))}}}var Nn;Nn={};var Fn={};Object.freeze(Fn);function Vl(g,w){{var A=g.contextTypes;if(!A)return Fn;var $={};for(var K in A)$[K]=w[K];{var ae=Dn(g)||"Unknown";$l(A,$,"context",ae)}return $}}function Hl(g,w,A,$){{if(typeof g.getChildContext!="function"){{var K=Dn(w)||"Unknown";Nn[K]||(Nn[K]=!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.",K,K))}return A}var ae=g.getChildContext();for(var ge in ae)if(!(ge in $))throw new Error((Dn(w)||"Unknown")+'.getChildContext(): key "'+ge+'" is not defined in childContextTypes.');{var Ae=Dn(w)||"Unknown";$l($,ae,"child context",Ae)}return ee({},A,ae)}}var jo;jo={};var Wc=null,Bo=null;function Xi(g){g.context._currentValue=g.parentValue}function Xs(g){g.context._currentValue=g.value}function Ur(g,w){if(g!==w){Xi(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){Xi(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){Xi(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,K={parent:$,depth:$===null?0:$.depth+1,context:g,parentValue:A,value:w};return Bo=K,K}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 $u(){return Bo}function Zs(g){var w=g._currentValue;return w}function ms(g){return g._reactInternals}function Js(g,w){g._reactInternals=w}var Ba={},G={},pa,$a,Wr,qt,Vu,ys,Qs,bo,bs;{pa=new Set,$a=new Set,Wr=new Set,Qs=new Set,qt=new Set,bo=new Set,bs=new Set;var Hu=new Set;ys=function(g,w){if(!(g===null||typeof g=="function")){var A=w+"_"+g;Hu.has(A)||(Hu.add(A),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",w,g))}},Vu=function(g,w){if(w===void 0){var A=Dn(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 Uu(g,w){{var A=g.constructor,$=A&&Dn(A)||"ReactClass",K=$+"."+w;if(Ba[K])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[K]=!0}}var Wu={isMounted:function(g){return!1},enqueueSetState:function(g,w,A){var $=ms(g);$.queue===null?Uu(g,"setState"):($.queue.push(w),A!=null&&ys(A,"setState"))},enqueueReplaceState:function(g,w,A){var $=ms(g);$.replace=!0,$.queue=[w],A!=null&&ys(A,"setState")},enqueueForceUpdate:function(g,w){var A=ms(g);A.queue===null?Uu(g,"forceUpdate"):w!=null&&ys(w,"setState")}};function Gc(g,w,A,$,K){var ae=A(K,$);Vu(w,ae);var ge=ae==null?$:ee({},$,ae);return ge}function wo(g,w,A){var $=Fn,K=g.contextType;if("contextType"in g){var ae=K===null||K!==void 0&&K.$$typeof===$e&&K._context===void 0;if(!ae&&!bs.has(g)){bs.add(g);var ge="";K===void 0?ge=" 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 K!="object"?ge=" However, it is set to a "+typeof K+".":K.$$typeof===fe?ge=" Did you accidentally pass the Context.Provider instead?":K._context!==void 0?ge=" Did you accidentally pass the Context.Consumer instead?":ge=" However, it is set to an object with keys {"+Object.keys(K).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Dn(g)||"Component",ge)}}typeof K=="object"&&K!==null?$=Zs(K):$=A;var Ae=new g(w,$);{if(typeof g.getDerivedStateFromProps=="function"&&(Ae.state===null||Ae.state===void 0)){var h=Dn(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,D=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?D="componentWillReceiveProps":typeof Ae.UNSAFE_componentWillReceiveProps=="function"&&(D="UNSAFE_componentWillReceiveProps"),typeof Ae.componentWillUpdate=="function"&&Ae.componentWillUpdate.__suppressDeprecationWarning!==!0?M="componentWillUpdate":typeof Ae.UNSAFE_componentWillUpdate=="function"&&(M="UNSAFE_componentWillUpdate"),b!==null||D!==null||M!==null){var z=Dn(g)||"Component",ie=typeof g.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Wr.has(z)||(Wr.add(z),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`,z,ie,b!==null?`
|
|
124
|
+
`+b:"",D!==null?`
|
|
125
|
+
`+D:"",M!==null?`
|
|
126
|
+
`+M:""))}}}return Ae}function qc(g,w,A){{var $=Dn(w)||"Component",K=g.render;K||(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.",Dn(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 ae=g.props!==A;g.props!==void 0&&ae&&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.",Dn(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 ge=g.state;ge&&(typeof ge!="object"||Ti(ge))&&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 jf(g,w){var A=w.state;if(typeof w.componentWillMount=="function"){if(w.componentWillMount.__suppressDeprecationWarning!==!0){var $=Dn(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.",Dn(g)||"Component"),Wu.enqueueReplaceState(w,w.state,null))}function Bf(g,w,A,$){if(g.queue!==null&&g.queue.length>0){var K=g.queue,ae=g.replace;if(g.queue=null,g.replace=!1,ae&&K.length===1)w.state=K[0];else{for(var ge=ae?K[0]:w.state,Ae=!0,h=ae?1:0;h<K.length;h++){var b=K[h],D=typeof b=="function"?b.call(w,ge,A,$):b;D!=null&&(Ae?(Ae=!1,ge=ee({},ge,D)):ee(ge,D))}w.state=ge}}else g.queue=null}function Xc(g,w,A,$){qc(g,w,A);var K=g.state!==void 0?g.state:null;g.updater=Wu,g.props=A,g.state=K;var ae={queue:[],replace:!1};Js(g,ae);var ge=w.contextType;if(typeof ge=="object"&&ge!==null?g.context=Zs(ge):g.context=$,g.state===A){var Ae=Dn(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,K,A)),typeof w.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&(jf(w,g),Bf(ae,g,A,$))}var $f={id:1,overflow:""};function $o(g){var w=g.overflow,A=g.id,$=A&~Vf(A);return $.toString(32)+w}function zu(g,w,A){var $=g.id,K=g.overflow,ae=Yu($)-1,ge=$&~(1<<ae),Ae=A+1,h=Yu(w)+ae;if(h>30){var b=ae-ae%5,D=(1<<b)-1,M=(ge&D).toString(32),z=ge>>b,ie=ae-b,ce=Yu(w)+ie,Ie=Ae<<ie,Ze=Ie|z,ht=M+K;return{id:1<<ce|Ze,overflow:ht}}else{var St=Ae<<ae,_t=St|ge,Cn=K;return{id:1<<h|_t,overflow:Cn}}}function Yu(g){return 32-Ul(g)}function Vf(g){return 1<<Yu(g)-1}var Ul=Math.clz32?Math.clz32:Hf,Gu=Math.log,Va=Math.LN2;function Hf(g){var w=g>>>0;return w===0?32:31-(Gu(w)/Va|0)|0}function Uf(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}var Ki=typeof Object.is=="function"?Object.is:Uf,Vo=null,Wl=null,qu=null,nn=null,Ha=!1,ga=!1,un=0,Oi=null,Ua=0,ws=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 Zi(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(!Ki(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?qu===null?(Ha=!1,qu=nn=za()):(Ha=!0,nn=qu):nn.next===null?(Ha=!1,nn=nn.next=za()):(Ha=!0,nn=nn.next),nn}function zl(g,w){Vo=w,Wl=g,$n=!1,un=0}function va(g,w,A,$){for(;ga;)ga=!1,un=0,Ua+=1,nn=null,A=g(w,$);return Yl(),A}function zr(){var g=un!==0;return g}function Yl(){$n=!1,Vo=null,Wl=null,ga=!1,qu=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 Gl(g){return Di="useContext",Wa(),Zs(g)}function Ho(g,w){return typeof w=="function"?w(g):w}function ma(g){return Di="useState",ql(Ho,g)}function ql(g,w,A){if(g!==Ho&&(Di="useReducer"),Vo=Wa(),nn=pr(),Ha){var $=nn.queue,K=$.dispatch;if(Oi!==null){var ae=Oi.get($);if(ae!==void 0){Oi.delete($);var ge=nn.memoizedState,Ae=ae;do{var h=Ae.action;$n=!0,ge=g(ge,h),$n=!1,Ae=Ae.next}while(Ae!==null);return nn.memoizedState=ge,[ge,K]}}return[nn.memoizedState,K]}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 D=nn.queue={last:null,dispatch:null},M=D.dispatch=Xl.bind(null,Vo,D);return[nn.memoizedState,M]}}function Xu(g,w){Vo=Wa(),nn=pr();var A=w===void 0?null:w;if(nn!==null){var $=nn.memoizedState;if($!==null&&A!==null){var K=$[1];if(Zi(A,K))return $[0]}}$n=!0;var ae=g();return $n=!1,nn.memoizedState=[ae,A],ae}function Ku(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 Xl(g,w,A){if(Ua>=ws)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 K=Oi.get(w);if(K===void 0)Oi.set(w,$);else{for(var ae=K;ae.next!==null;)ae=ae.next;ae.next=$}}}function gr(g,w){return Xu(function(){return g},w)}function Kl(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 Zl(){throw new Error("startTransition cannot be called during server rendering.")}function Zu(){return Wa(),[!1,Zl]}function Ya(){var g=Wl,w=$o(g.treeContext),A=tu;if(A===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var $=un++;return Cr(A,w,$)}function eu(){}var kr={readContext:Kc,useContext:Gl,useMemo:Xu,useReducer:ql,useRef:Ku,useState:ma,useInsertionEffect:eu,useLayoutEffect:Zc,useCallback:gr,useImperativeHandle:eu,useEffect:eu,useDebugValue:eu,useDeferredValue:xo,useTransition:Zu,useId:Ya,useMutableSource:Kl,useSyncExternalStore:Jc},tu=null;function nu(g){tu=g}function Qc(g){try{var w="",A=g;do{switch(A.tag){case 0:w+=No(A.type,null,null);break;case 1:w+=Gs(A.type,null,null);break;case 2:w+=Bu(A.type,null,null);break}A=A.parent}while(A);return w}catch($){return`
|
|
138
|
+
Error generating stack: `+$.message+`
|
|
139
|
+
`+$.stack}}var ru=n.ReactCurrentDispatcher,xs=n.ReactDebugCurrentFrame,Jl=0,Pi=1,iu=2,Ju=3,Ga=4,Ss=0,Ql=1,qa=2,ec=12800;function tc(g){return console.error(g),null}function So(){}function Wf(g,w,A,$,K,ae,ge,Ae,h){var b=[],D=new Set,M={destination:null,responseState:w,progressiveChunkSize:$===void 0?ec:$,status:Ss,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:D,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:K===void 0?tc:K,onAllReady:ae===void 0?So:ae,onShellReady:ge===void 0?So:ge,onShellError:Ae===void 0?So:Ae,onFatalError:h===void 0?So:h},z=Qu(M,0,null,A,!1,!1);z.parentFlushed=!0;var ie=ou(M,g,null,z,D,Fn,Wc,$f);return b.push(ie),M}function zf(g,w){var A=g.pingedTasks;A.push(w),A.length===1&&s(function(){return hu(g)})}function Ts(g,w){return{id:Hi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:w,errorDigest:null}}function ou(g,w,A,$,K,ae,ge,Ae){g.allPendingTasks++,A===null?g.pendingRootTasks++:A.pendingTasks++;var h={node:w,ping:function(){return zf(g,h)},blockedBoundary:A,blockedSegment:$,abortSet:K,legacyContext:ae,context:ge,treeContext:Ae};return h.componentStack=null,K.add(h),h}function Qu(g,w,A,$,K,ae){return{status:Jl,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:$,boundary:A,lastPushedText:K,textEmbedded:ae}}var Ji=null;function Cs(){return Ji===null||Ji.componentStack===null?"":Qc(Ji.componentStack)}function Uo(g,w){g.componentStack={tag:0,parent:g.componentStack,type:w}}function Qi(g,w){g.componentStack={tag:1,parent:g.componentStack,type:w}}function Es(g,w){g.componentStack={tag:2,parent:g.componentStack,type:w}}function _i(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 el(g,w){{var A;typeof w=="string"?A=w:w&&typeof w.message=="string"?A=w.message:A=String(w);var $=Xa||Cs();Xa=null,g.errorMessage=A,g.errorComponentStack=$}}function Ri(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=Ql,g.fatalError=w)}function nc(g,w,A){Uo(w,"Suspense");var $=w.blockedBoundary,K=w.blockedSegment,ae=A.fallback,ge=A.children,Ae=new Set,h=Ts(g,Ae),b=K.chunks.length,D=Qu(g,b,h,K.formatContext,!1,!1);K.children.push(D),K.lastPushedText=!1;var M=Qu(g,0,null,K.formatContext,!1,!1);M.parentFlushed=!0,w.blockedBoundary=h,w.blockedSegment=M;try{if(fu(g,w,ge),Nr(M.chunks,g.responseState,M.lastPushedText,M.textEmbedded),M.status=Pi,du(h,M),h.pendingTasks===0){_i(w);return}}catch(ie){M.status=Ga,h.forceClientRender=!0,h.errorDigest=Ri(g,ie),el(h,ie)}finally{w.blockedBoundary=$,w.blockedSegment=K}var z=ou(g,ae,$,D,Ae,w.legacyContext,w.context,w.treeContext);z.componentStack=w.componentStack,g.pingedTasks.push(z),_i(w)}function Ka(g,w,A,$){Uo(w,A);var K=w.blockedSegment,ae=ia(K.chunks,A,$,g.responseState,K.formatContext);K.lastPushedText=!1;var ge=K.formatContext;K.formatContext=ni(ge,A,$),fu(g,w,ae),K.formatContext=ge,Lo(K.chunks,A),K.lastPushedText=!1,_i(w)}function au(g){return g.prototype&&g.prototype.isReactComponent}function tl(g,w,A,$,K){var ae={};zl(w,ae);var ge=A($,K);return va(A,$,ge,K)}function ef(g,w,A,$,K){var ae=A.render();A.props!==K&&(ks||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Dn($)||"a component"),ks=!0);{var ge=$.childContextTypes;if(ge!=null){var Ae=w.legacyContext,h=Hl(A,$,Ae,ge);w.legacyContext=h,si(g,w,ae),w.legacyContext=Ae;return}}si(g,w,ae)}function rc(g,w,A,$){Es(w,A);var K=Vl(A,w.legacyContext),ae=wo(A,$,K);Xc(ae,A,$,K),ef(g,w,ae,A,$),_i(w)}var Gt={},su={},tf={},Za={},ks=!1,ic=!1,oc=!1,oi=!1;function nf(g,w,A,$){var K;if(K=Vl(A,w.legacyContext),Qi(w,A),A.prototype&&typeof A.prototype.render=="function"){var ae=Dn(A)||"Unknown";Gt[ae]||(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.",ae,ae),Gt[ae]=!0)}var ge=tl(g,w,A,$,K),Ae=zr();if(typeof ge=="object"&&ge!==null&&typeof ge.render=="function"&&ge.$$typeof===void 0){var h=Dn(A)||"Unknown";su[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),su[h]=!0)}if(typeof ge=="object"&&ge!==null&&typeof ge.render=="function"&&ge.$$typeof===void 0){{var b=Dn(A)||"Unknown";su[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),su[b]=!0)}Xc(ge,A,$,K),ef(g,w,ge,A,$)}else if(uu(A),Ae){var D=w.treeContext,M=1,z=0;w.treeContext=zu(D,M,z);try{si(g,w,ge)}finally{w.treeContext=D}}else si(g,w,ge);_i(w)}function uu(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=Dn(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=Dn(g)||"Unknown";tf[A]||(i("%s: Function components do not support contextType.",A),tf[A]=!0)}}}function lu(g,w){if(g&&g.defaultProps){var A=ee({},w),$=g.defaultProps;for(var K in $)A[K]===void 0&&(A[K]=$[K]);return A}return w}function rf(g,w,A,$,K){Qi(w,A.render);var ae=tl(g,w,A.render,$,K),ge=zr();if(ge){var Ae=w.treeContext,h=1,b=0;w.treeContext=zu(Ae,h,b);try{si(g,w,ae)}finally{w.treeContext=Ae}}else si(g,w,ae);_i(w)}function of(g,w,A,$,K){var ae=A.type,ge=lu(ae,$);nl(g,w,ae,ge,K)}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 K=$.children;typeof K!="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 ae=Zs(A),ge=K(ae);si(g,w,ge)}function ya(g,w,A,$){var K=A._context,ae=$.value,ge=$.children,Ae;Ae=w.context,w.context=zc(K,ae),si(g,w,ge),w.context=Yc(K),Ae!==w.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function ac(g,w,A,$,K){Uo(w,"Lazy");var ae=A._payload,ge=A._init,Ae=ge(ae),h=lu(Ae,$);nl(g,w,Ae,h,K),_i(w)}function nl(g,w,A,$,K){if(typeof A=="function")if(au(A)){rc(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 Z:case he:case ke:{si(g,w,$.children);return}case dt:{Uo(w,"SuspenseList"),si(g,w,$.children),_i(w);return}case kt:throw new Error("ReactDOMServer does not yet support scope components.");case ft:{nc(g,w,$);return}}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case We:{rf(g,w,A,$,K);return}case ut:{of(g,w,A,$,K);return}case fe:{ya(g,w,A,$);return}case $e:{ai(g,w,A,$);return}case At:{ac(g,w,A,$);return}}var ae="";throw(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(ae+=" 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)+"."+ae))}function rl(g,w){typeof Symbol=="function"&&g[Symbol.toStringTag]==="Generator"&&(ic||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."),ic=!0),g.entries===w&&(oc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oc=!0)}function si(g,w,A){try{return cu(g,w,A)}catch($){throw typeof $=="object"&&$!==null&&typeof $.then=="function"||(Xa=Xa!==null?Xa:Cs()),$}}function cu(g,w,A){if(w.node=A,typeof A=="object"&&A!==null){switch(A.$$typeof){case me:{var $=A,K=$.type,ae=$.props,ge=$.ref;nl(g,w,K,ae,ge);return}case _e: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,D;try{D=b(h)}catch(St){throw typeof St=="object"&&St!==null&&typeof St.then=="function"&&Uo(w,"Lazy"),St}si(g,w,D);return}}if(Ti(A)){sc(g,w,A);return}var M=Gi(A);if(M){rl(A,M);var z=M.call(A);if(z){var ie=z.next();if(!ie.done){var ce=[];do ce.push(ie.value),ie=z.next();while(!ie.done);sc(g,w,ce);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=Ui(w.blockedSegment.chunks,A,g.responseState,Ze.lastPushedText);return}if(typeof A=="number"){var ht=w.blockedSegment;ht.lastPushedText=Ui(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 sc(g,w,A){for(var $=A.length,K=0;K<$;K++){var ae=w.treeContext;w.treeContext=zu(ae,$,K);try{fu(g,w,A[K])}finally{w.treeContext=ae}}}function Yr(g,w,A){var $=w.blockedSegment,K=$.chunks.length,ae=Qu(g,K,null,$.formatContext,$.lastPushedText,!0);$.children.push(ae),$.lastPushedText=!1;var ge=ou(g,w.node,w.blockedBoundary,ae,w.abortSet,w.legacyContext,w.context,w.treeContext);w.componentStack!==null&&(ge.componentStack=w.componentStack.parent);var Ae=ge.ping;A.then(Ae,Ae)}function fu(g,w,A){var $=w.blockedSegment.formatContext,K=w.legacyContext,ae=w.context,ge=null;ge=w.componentStack;try{return si(g,w,A)}catch(Ae){if(Yl(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){Yr(g,w,Ae),w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=ae,Ks(ae),w.componentStack=ge;return}else throw w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=ae,Ks(ae),w.componentStack=ge,Ae}}function zo(g,w,A,$){var K=Ri(g,$);if(w===null?Wo(g,$):(w.pendingTasks--,w.forceClientRender||(w.forceClientRender=!0,w.errorDigest=K,el(w,$),w.parentFlushed&&g.clientRenderedBoundaries.push(w))),g.allPendingTasks--,g.allPendingTasks===0){var ae=g.onAllReady;ae()}}function Yf(g){var w=this,A=g.blockedBoundary,$=g.blockedSegment;$.status=Ju,uc(w,A,$)}function eo(g,w,A){var $=g.blockedBoundary,K=g.blockedSegment;if(K.status=Ju,$===null)w.allPendingTasks--,w.status!==qa&&(w.status=qa,w.destination!==null&&_(w.destination));else{if($.pendingTasks--,!$.forceClientRender){$.forceClientRender=!0;var ae=A===void 0?new Error("The render was aborted by the server without a reason."):A;$.errorDigest=w.onError(ae);{var ge="The server did not finish this Suspense boundary: ";ae&&typeof ae.message=="string"?ae=ge+ae.message:ae=ge+String(ae);var Ae=Ji;Ji=g;try{el($,ae)}finally{Ji=Ae}}$.parentFlushed&&w.clientRenderedBoundaries.push($)}if($.fallbackAbortableTasks.forEach(function(b){return eo(b,w,A)}),$.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0){var h=w.onAllReady;h()}}}function du(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&&du(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&&du(w,A),w.parentFlushed&&g.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(Yf,g),w.fallbackAbortableTasks.clear();else if(A.parentFlushed&&A.status===Pi){du(w,A);var K=w.completedSegments;K.length===1&&w.parentFlushed&&g.partialBoundaries.push(w)}}if(g.allPendingTasks--,g.allPendingTasks===0){var ae=g.onAllReady;ae()}}function il(g,w){var A=w.blockedSegment;if(A.status===Jl){Ks(w.context);var $=null;$=Ji,Ji=w;try{si(g,w,w.node),Nr(A.chunks,g.responseState,A.lastPushedText,A.textEmbedded),w.abortSet.delete(w),A.status=Pi,uc(g,w.blockedBoundary,A)}catch(ae){if(Yl(),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"){var K=w.ping;ae.then(K,K)}else w.abortSet.delete(w),A.status=Ga,zo(g,w.blockedBoundary,A,ae)}finally{Ji=$}}}function hu(g){if(g.status!==qa){var w=$u(),A=ru.current;ru.current=kr;var $;$=xs.getCurrentStack,xs.getCurrentStack=Cs;var K=tu;nu(g.responseState);try{var ae=g.pingedTasks,ge;for(ge=0;ge<ae.length;ge++){var Ae=ae[ge];il(g,Ae)}ae.splice(0,ge),g.destination!==null&&vr(g,g.destination)}catch(h){Ri(g,h),Wo(g,h)}finally{nu(K),ru.current=A,xs.getCurrentStack=$,A===kr&&Ks(w)}}}function pu(g,w,A){switch(A.parentFlushed=!0,A.status){case Jl:{var $=A.id=g.nextSegmentId++;return A.lastPushedText=!1,A.textEmbedded=!1,er(w,g.responseState,$)}case Pi:{A.status=iu;for(var K=!0,ae=A.chunks,ge=0,Ae=A.children,h=0;h<Ae.length;h++){for(var b=Ae[h];ge<b.index;ge++)p(w,ae[ge]);K=ol(g,w,b)}for(;ge<ae.length-1;ge++)p(w,ae[ge]);return ge<ae.length&&(K=S(w,ae[ge])),K}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ol(g,w,A){var $=A.boundary;if($===null)return pu(g,w,A);if($.parentFlushed=!0,$.forceClientRender)return Ge(w,g.responseState,$.errorDigest,$.errorMessage,$.errorComponentStack),pu(g,w,A),It(w,g.responseState);if($.pendingTasks>0){$.rootSegmentID=g.nextSegmentId++,$.completedSegments.length>0&&g.partialBoundaries.push($);var K=$.id=_n(g.responseState);return Ee(w,g.responseState,K),pu(g,w,A),Pt(w,g.responseState)}else{if($.byteSize>g.progressiveChunkSize)return $.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push($),Ee(w,g.responseState,$.id),pu(g,w,A),Pt(w,g.responseState);je(w,g.responseState);var ae=$.completedSegments;if(ae.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ge=ae[0];return ol(g,w,ge),ct(w,g.responseState)}}function lc(g,w,A){return Ws(w,g.responseState,A.id,A.errorDigest,A.errorMessage,A.errorComponentStack)}function Os(g,w,A){return Dt(w,g.responseState,A.formatContext,A.id),ol(g,w,A),Ct(w,A.formatContext)}function gu(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var ae=$[K];al(g,w,A,ae)}return $.length=0,Yi(w,g.responseState,A.id,A.rootSegmentID)}function af(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var ae=$[K];if(!al(g,w,A,ae))return K++,$.splice(0,K),!1}return $.splice(0,K),!0}function al(g,w,A,$){if($.status===iu)return!0;var K=$.id;if(K===-1){var ae=$.id=A.rootSegmentID;if(ae===-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,K)}function vr(g,w){v();try{var A=g.completedRootSegment;A!==null&&g.pendingRootTasks===0&&(ol(g,w,A),g.completedRootSegment=null,wi(w,g.responseState));var $=g.clientRenderedBoundaries,K;for(K=0;K<$.length;K++){var ae=$[K];lc(g,w,ae)}$.splice(0,K);var ge=g.completedBoundaries;for(K=0;K<ge.length;K++){var Ae=ge[K];gu(g,w,Ae)}ge.splice(0,K),T(w),v(w);var h=g.partialBoundaries;for(K=0;K<h.length;K++){var b=h[K];if(!af(g,w,b)){g.destination=null,K++,h.splice(0,K);return}}h.splice(0,K);var D=g.completedBoundaries;for(K=0;K<D.length;K++){var M=D[K];gu(g,w,M)}D.splice(0,K)}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."),_(w))}}function To(g){s(function(){return hu(g)})}function sf(g,w){if(g.status===Ql){g.status=qa,U(w,g.fatalError);return}if(g.status!==qa&&g.destination===null){g.destination=w;try{vr(g,w)}catch(A){Ri(g,A),Wo(g,A)}}}function sl(g,w){try{var A=g.abortableTasks;A.forEach(function($){return eo($,g,w)}),A.clear(),g.destination!==null&&vr(g,g.destination)}catch($){Ri(g,$),Wo(g,$)}}function ul(g,w){return new Promise(function(A,$){var K,ae,ge=new Promise(function(z,ie){ae=z,K=ie});function Ae(){var z=new ReadableStream({type:"bytes",pull:function(ie){sf(b,ie)},cancel:function(ie){sl(b)}},{highWaterMark:0});z.allReady=ge,A(z)}function h(z){ge.catch(function(){}),$(z)}var b=Wf(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,ae,Ae,h,K);if(w&&w.signal){var D=w.signal,M=function(){sl(b,D.reason),D.removeEventListener("abort",M)};D.addEventListener("abort",M)}To(b)})}jh.renderToReadableStream=ul,jh.version=t}()),jh}var Ac,Rm;process.env.NODE_ENV==="production"?(Ac=F5(),Rm=j5()):(Ac=B5(),Rm=$5());Ac.version;var V5=Ac.renderToString;Ac.renderToStaticMarkup;Ac.renderToNodeStream;Ac.renderToStaticNodeStream;Rm.renderToReadableStream;var H5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oO(e,t){return e(t={exports:{}},t.exports),t.exports}var U5=oO(function(e){(function(t){var n=function(L,I,U){if(!c(I)||v(I)||p(I)||S(I)||l(I))return I;var Y,ne=0,J=0;if(d(I))for(Y=[],J=I.length;ne<J;ne++)Y.push(n(L,I[ne],U));else for(var de in Y={},I)Object.prototype.hasOwnProperty.call(I,de)&&(Y[L(de,U)]=n(L,I[de],U));return Y},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,Y){var ne=(Y=Y||{}).separator||"_",J=Y.split||/(?=[A-Z])/;return U.split(J).join(ne)}(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]"},S=function(L){return s.call(L)=="[object Boolean]"},T=function(L){return(L-=0)==L},_=function(L,I){var U=I&&"process"in I?I.process:I;return typeof U!="function"?L:function(Y,ne){return U(Y,L,ne)}},R={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(L,I){return n(_(r,I),L)},decamelizeKeys:function(L,I){return n(_(o,I),L,I)},pascalizeKeys:function(L,I){return n(_(i,I),L)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=R:t.humps=R})(H5)}).decamelize,W5=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}},e1=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},Y5=function(e,t){if(e){if(typeof e=="string")return e1(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)?e1(e,t):void 0}},G5=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.`)},q5=function(e,t){return W5(e)||z5(e,t)||Y5(e,t)||G5()},aO=oO(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}),X5=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},sO=function(e,t){if(e==null)return{};var n,r,i=X5(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},K5=Q.createContext(null);function Im(e){var t=e.children,n=sO(e,["children"]);return typeof t!="string"&&(t=V5(t)),Q.createElement("template",aO({},n,{dangerouslySetInnerHTML:{__html:t}}))}function Am(e){var t=e.root,n=e.children;return S1.createPortal(n,t)}function Z5(e){var t=Q.forwardRef(function(n,r){var i,o,s=n.mode,l=n.delegatesFocus,c=n.styleSheets,d=n.ssr,v=n.children,p=sO(n,["mode","delegatesFocus","styleSheets","ssr","children"]),S=(o=Q.useRef((i=r)&&i.current),Q.useEffect(function(){i&&(i.current=o.current)},[i]),o),T=Q.useState(null),_=q5(T,2),R=_[0],L=_[1],I="node_".concat(s).concat(l);return Q.useLayoutEffect(function(){if(S.current)try{if(typeof r=="function"&&r(S.current),d){var U=S.current.shadowRoot;return void L(U)}var Y=S.current.attachShadow({mode:s,delegatesFocus:l});c.length>0&&(Y.adoptedStyleSheets=c),L(Y)}catch(ne){(function(J){var de=J.error,x=J.styleSheets,ye=J.root;switch(de.name){case"NotSupportedError":x.length>0&&(ye.adoptedStyleSheets=x);break;default:throw de}})({error:ne,styleSheets:c,root:R})}},[r,S,c]),Q.createElement(Q.Fragment,null,Q.createElement(e.tag,aO({key:I,ref:S},p),(R||d)&&Q.createElement(K5.Provider,{value:R},d?Q.createElement(Im,{shadowroot:s,shadowrootmode:s},e.render({root:R,ssr:d,children:v})):Q.createElement(Am,{root:R},e.render({root:R,ssr:d,children:v})))))});return t.propTypes={mode:ka.oneOf(["open","closed"]),delegatesFocus:ka.bool,styleSheets:ka.arrayOf(ka.instanceOf(globalThis.CSSStyleSheet)),ssr:ka.bool,children:ka.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Im.propTypes={children:ka.oneOfType([ka.string,ka.node])},Im.defaultProps={children:""},Am.propTypes={root:ka.object.isRequired,children:ka.node},Am.defaultProps={children:null};var Cv=new Map;function J5(){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=U5(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Cv.has(s)||Cv.set(s,Z5({tag:o,render:n})),Cv.get(s)}})}var Q5=J5();const e4=e=>{const t=e.isCollapsed?0:e.depth*16;return st.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})},t4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
|
|
141
|
+
`;function n4(){const e=JSON.parse(localStorage.getItem("menuOpenIds")||"[]");function t(i){localStorage.setItem("menuOpenIds",JSON.stringify(i))}const n=JSON.parse(localStorage.getItem("prevMenuOpenIds")||"[]");function r(){localStorage.setItem("prevMenuOpenIds",localStorage.getItem("menuOpenIds"))}return{menuOpenIds:e,setMenuOpenIds:t,prevMenuOpenIds:n,setPrevMenuOpenIds:r}}const t1=localStorage.getItem("isCollapsed"),n1=(e,t)=>e.find(n=>n.id===t),r4=(e,t,n)=>{let r=n1(e,n);for(;r;){if(r.id===t)return!0;r=n1(e,r.parent)}return!1};function i4(e){const t=x1.useLocation(),[n,r]=Q.useState([]),i=n.map(ze=>ze.data),{menuOpenIds:o,prevMenuOpenIds:s,setMenuOpenIds:l,setPrevMenuOpenIds:c}=n4();console.log("🚀 ~ GlobalMenuContent ~ menuItems:",i);const[d,v]=Q.useState(t1===null?!0:t1==="true"),[p,S]=Q.useState({}),[T,_]=Q.useState(window.location.href),R=Q.useRef(null);Q.useEffect(()=>{window.favoriteMenus=i.filter(ze=>ze.isFavorite)},[i]),Q.useEffect(()=>{_(window.location.href)},[t]);const L=a4(i,T).filter(ze=>ze.parentKey!==0);console.log("matchPaths:",T,t,L);const I=ze=>{S({...p,[ze]:!p[ze]})},U=()=>{var ze,He;if(d)s&&((He=R.current)==null||He.open(s));else{const Ye=n.filter(pe=>pe.parent!==0).map(pe=>pe.id);console.log("closeIds:",Ye);const et=n.filter(pe=>pe.parent===0).map(pe=>pe.id);c(),(ze=R.current)==null||ze.close(Ye),setTimeout(()=>{var pe;console.log("openIds:",et),(pe=R.current)==null||pe.open(et)},1)}v(!d),localStorage.setItem("isCollapsed",JSON.stringify(!d))},[Y,ne]=Q.useState(!1),J=d?"collapsed":"expanded",de=ze=>`${ze} ${J}`,x=Q.useRef(null);Q.useLayoutEffect(()=>{(async()=>{var He,Ye;try{const et=e.menuPath||"/global-menu-config/api/v1/menu-items/user",pe=e.baseUrl+et,{data:De}=await Ls.get(pe);let Fe=De.map(it=>({...it,parentKey:it.parentKey||0}));Fe=lO(Fe),e.replacePath&&(Fe=uO(Fe,e.replacePath));const Je=Fe.map(it=>({id:it.id,parent:it.parentKey,text:it.name,data:it}));r(Je)}catch(et){console.error(et),Rp(((Ye=(He=et.response)==null?void 0:He.data)==null?void 0:Ye.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]),Q.useLayoutEffect(()=>{var et;const ze=localStorage.getItem("scrollPos");ze&&x.current&&setTimeout(()=>{const pe=x.current.getScrollElement();pe.scrollTop=parseInt(ze)},0);const He=()=>{if(x.current){const pe=x.current.getScrollElement();localStorage.setItem("scrollPos",pe.scrollTop.toString())}},Ye=(et=x.current)==null?void 0:et.getScrollElement();return Ye==null||Ye.addEventListener("scroll",He),()=>{Ye==null||Ye.removeEventListener("scroll",He)}},[i]);const[ye,le]=Q.useState(!1);function Qe(ze){le(!0);const He=[...n];r(ze);const Ye=ze.map((et,pe)=>({menuItemId:et.id,order:pe}));Ls.post("/global-menu-config/api/v1/menu-items/user",Ye,{baseURL:e.baseUrl}).then(()=>{}).catch(et=>{console.error(et),r(He),le(!1)})}return st.jsxs("div",{className:de("side-bar"),children:[st.jsx("div",{className:de("wrap-section side-bar__wrapper-toggle-btn"),children:st.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:U,children:d?st.jsx(M5,{}):st.jsx(A5,{})})}),st.jsx(fT,{ref:x,className:de("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:st.jsx(tz,{backend:Hz,options:c5(),children:st.jsx(_5,{ref:R,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:Qe,render:(ze,He)=>{function Ye(De){return n.every(Fe=>Fe.parent!==De.id)?De:{...De,children:n.filter(Fe=>Fe.parent===De.id).map(Fe=>Ye(Fe.data))}}const et=Ye(ze.data),pe=De=>L.some(Fe=>Fe.id===De);return st.jsx(iO,{isActive:pe,isCollapsed:d,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:ze,params:He,nodes:n,item:et,expanded:()=>!1,toggleExpand:I,level:He.depth,onSetFavoriteSuccess:(De,Fe)=>{r(Je=>Je.map(it=>it.id===De?{...it,data:{...it.data,isFavorite:Fe}}:it))}})},placeholderRender:(ze,{depth:He})=>{var Ye;return st.jsx(e4,{node:ze,depth:He,color:(Ye=e.brandColors)==null?void 0:Ye.primary300,isCollapsed:d})},canDrag:ze=>!ye&&!!(ze!=null&&ze.parent),canDrop:(ze,{dragSource:He,dropTargetId:Ye,dropTarget:et})=>(console.log("dragSource",He,et),!((He==null?void 0:He.parent)!==0&&Ye===0||(He==null?void 0:He.parent)===0&&Ye!==0||(et==null?void 0:et.id)!==(He==null?void 0:He.parent)||r4(ze,He==null?void 0:He.id,Ye))),onDragStart:ze=>{console.log("onDragStart",ze)},onChangeOpen:ze=>{console.log("onChangeOpen:",ze),l(ze)},initialOpen:o.length?o:[1]})})}),st.jsxs("div",{className:de("wrap-section side-bar__wrap-btn-logout"),children:[st.jsxs("button",{className:de("side-bar__logout-btn"),onClick:()=>ne(!0),children:[st.jsx(L5,{className:de("side-bar__icon-logout")}),st.jsx("span",{className:de("side-bar__logout-btn__text"),children:"Logout"})]}),st.jsx(T1,{isOpen:Y,onClose:()=>ne(!1),onConfirm:()=>e.logout?e.logout():A1(e.baseUrl)})]})]})}function o4(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 a4(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:o4(t,d.path)})).sort((d,v)=>{const p=new URL(d.itemUrl).searchParams,S=new URL(v.itemUrl).searchParams;return Array.from(p).length-Array.from(S).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 uO(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=uO(n.children,t)):n.path=t(n.path),n})}function lO(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=lO(n.children)),n))}function s4(e){return st.jsx(Q5.div,{children:st.jsx($1,{styles:[hL,N5,t4],style:{position:"sticky",zIndex:20},children:st.jsx(i4,{...e})})})}const u4={"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 Tp={exports:{}};/**
|
|
142
|
+
* @license
|
|
143
|
+
* Lodash <https://lodash.com/>
|
|
144
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
145
|
+
* Released under MIT license <https://lodash.com/license>
|
|
146
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
147
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
148
|
+
*/Tp.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,S=2,T=4,_=1,R=2,L=1,I=2,U=4,Y=8,ne=16,J=32,de=64,x=128,ye=256,le=512,Qe=30,ze="...",He=800,Ye=16,et=1,pe=2,De=3,Fe=1/0,Je=9007199254740991,it=17976931348623157e292,Oe=0/0,xe=4294967295,Ue=xe-1,Ve=xe>>>1,Re=[["ary",x],["bind",L],["bindKey",I],["curry",Y],["curryRight",ne],["flip",le],["partial",J],["partialRight",de],["rearg",ye]],Me="[object Arguments]",Xe="[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]",Fi="[object Proxy]",Pr="[object RegExp]",rr="[object Set]",cn="[object String]",hn="[object Symbol]",pn="[object Undefined]",gt="[object WeakMap]",Rn="[object WeakSet]",ci="[object ArrayBuffer]",ln="[object DataView]",ji="[object Float32Array]",Bi="[object Float64Array]",$i="[object Int8Array]",_r="[object Int16Array]",Un="[object Int32Array]",Rr="[object Uint8Array]",wr="[object Uint8ClampedArray]",qr="[object Uint16Array]",Xr="[object Uint32Array]",Po=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ir=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,fi=RegExp(ir.source),Vi=RegExp(Zt.source),In=/<%-([\s\S]+?)%>/g,gn=/<%([\s\S]+?)%>/g,di=/<%=([\s\S]+?)%>/g,hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mn=/^\w*$/,uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(xr.source),fn=/^\s+/,Si=/\s/,Ra=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ia=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,lo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,co=/[()=,{}\[\]\/\s]/,_o=/\\(\\)?/g,Ti=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gi=/\w*$/,Ci=/^[-+]0x[0-9a-f]+$/i,fo=/^0b[01]+$/i,Ei=/^\[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,vi="\\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",Hi="A-Z\\xc0-\\xd6\\xd8-\\xde",_n="\\ufe0e\\ufe0f",Cr=ei+Jn+ti+ni,fr="['’]",Ro="["+Wn+"]",Ui="["+Cr+"]",Nr="["+An+"]",E="\\d+",j="["+vi+"]",q="["+Lr+"]",re="[^"+Wn+Cr+E+vi+Lr+Hi+"]",Pe="\\ud83c[\\udffb-\\udfff]",be="(?:"+Nr+"|"+Pe+")",Le="[^"+Wn+"]",nt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Hi+"]",bt="\\u200d",Ut="(?:"+q+"|"+re+")",Qn="(?:"+Tt+"|"+re+")",zn="(?:"+fr+"(?:d|ll|m|re|s|t|ve))?",On="(?:"+fr+"(?:D|LL|M|RE|S|T|VE))?",Fr=be+"?",or="["+_n+"]?",Wi="(?:"+bt+"(?:"+[Le,nt,yt].join("|")+")"+or+Fr+")*",mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jr=or+Fr+Wi,Io="(?:"+[j,nt,yt].join("|")+")"+jr,Vs="(?:"+[Le+Nr+"?",Nr,nt,yt,Ro].join("|")+")",Aa=RegExp(fr,"g"),Ma=RegExp(Nr,"g"),La=RegExp(Pe+"(?="+Pe+")|"+Vs+jr,"g"),Na=RegExp([Tt+"?"+q+"+"+zn+"(?="+[Ui,Tt,"$"].join("|")+")",Qn+"+"+On+"(?="+[Ui,Tt+Ut,"$"].join("|")+")",Tt+"?"+Ut+"+"+zn,Tt+"+"+On,zi,mi,E,Io].join("|"),"g"),yi=RegExp("["+bt+Wn+An+_n+"]"),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[ji]=Qt[Bi]=Qt[$i]=Qt[_r]=Qt[Un]=Qt[Rr]=Qt[wr]=Qt[qr]=Qt[Xr]=!0,Qt[Me]=Qt[Xe]=Qt[ci]=Qt[mt]=Qt[ln]=Qt[wt]=Qt[Et]=Qt[ot]=Qt[Ht]=Qt[Xn]=Qt[Kn]=Qt[Pr]=Qt[rr]=Qt[cn]=Qt[gt]=!1;var Vt={};Vt[Me]=Vt[Xe]=Vt[ci]=Vt[ln]=Vt[mt]=Vt[wt]=Vt[ji]=Vt[Bi]=Vt[$i]=Vt[_r]=Vt[Un]=Vt[Ht]=Vt[Xn]=Vt[Kn]=Vt[Pr]=Vt[rr]=Vt[cn]=Vt[hn]=Vt[Rr]=Vt[wr]=Vt[qr]=Vt[Xr]=!0,Vt[Et]=Vt[ot]=Vt[gt]=!1;var ki={À:"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={"&":"&","<":"<",">":">",""":'"',"'":"'"},bi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dr=parseFloat,Fa=parseInt,ia=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,os=typeof self=="object"&&self&&self.Object===Object&&self,yn=ia||os||Function("return this")(),Lo=t&&!t.nodeType&&t,wi=Lo&&!0&&e&&!e.nodeType&&e,as=wi&&wi.exports===Lo,ho=as&&ia.process,er=function(){try{var Z=wi&&wi.require&&wi.require("util").types;return Z||ho&&ho.binding&&ho.binding("util")}catch{}}(),f=er&&er.isArrayBuffer,m=er&&er.isDate,C=er&&er.isMap,O=er&&er.isRegExp,F=er&&er.isSet,B=er&&er.isTypedArray;function H(Z,he,fe){switch(fe.length){case 0:return Z.call(he);case 1:return Z.call(he,fe[0]);case 2:return Z.call(he,fe[0],fe[1]);case 3:return Z.call(he,fe[0],fe[1],fe[2])}return Z.apply(he,fe)}function ue(Z,he,fe,$e){for(var We=-1,ft=Z==null?0:Z.length;++We<ft;){var dt=Z[We];he($e,dt,fe(dt),Z)}return $e}function oe(Z,he){for(var fe=-1,$e=Z==null?0:Z.length;++fe<$e&&he(Z[fe],fe,Z)!==!1;);return Z}function we(Z,he){for(var fe=Z==null?0:Z.length;fe--&&he(Z[fe],fe,Z)!==!1;);return Z}function Ne(Z,he){for(var fe=-1,$e=Z==null?0:Z.length;++fe<$e;)if(!he(Z[fe],fe,Z))return!1;return!0}function je(Z,he){for(var fe=-1,$e=Z==null?0:Z.length,We=0,ft=[];++fe<$e;){var dt=Z[fe];he(dt,fe,Z)&&(ft[We++]=dt)}return ft}function Ee(Z,he){var fe=Z==null?0:Z.length;return!!fe&&on(Z,he,0)>-1}function Ge(Z,he,fe){for(var $e=-1,We=Z==null?0:Z.length;++$e<We;)if(fe(he,Z[$e]))return!0;return!1}function ct(Z,he){for(var fe=-1,$e=Z==null?0:Z.length,We=Array($e);++fe<$e;)We[fe]=he(Z[fe],fe,Z);return We}function Pt(Z,he){for(var fe=-1,$e=he.length,We=Z.length;++fe<$e;)Z[We+fe]=he[fe];return Z}function It(Z,he,fe,$e){var We=-1,ft=Z==null?0:Z.length;for($e&&ft&&(fe=Z[++We]);++We<ft;)fe=he(fe,Z[We],We,Z);return fe}function Mn(Z,he,fe,$e){var We=Z==null?0:Z.length;for($e&&We&&(fe=Z[--We]);We--;)fe=he(fe,Z[We],We,Z);return fe}function dn(Z,he){for(var fe=-1,$e=Z==null?0:Z.length;++fe<$e;)if(he(Z[fe],fe,Z))return!0;return!1}var Br=k("length");function $r(Z){return Z.split("")}function Wt(Z){return Z.match(lo)||[]}function Vr(Z,he,fe){var $e;return fe(Z,function(We,ft,dt){if(he(We,ft,dt))return $e=ft,!1}),$e}function zt(Z,he,fe,$e){for(var We=Z.length,ft=fe+($e?1:-1);$e?ft--:++ft<We;)if(he(Z[ft],ft,Z))return ft;return-1}function on(Z,he,fe){return he===he?Ml(Z,he,fe):zt(Z,go,fe)}function po(Z,he,fe,$e){for(var We=fe-1,ft=Z.length;++We<ft;)if($e(Z[We],he))return We;return-1}function go(Z){return Z!==Z}function Er(Z,he){var fe=Z==null?0:Z.length;return fe?Te(Z,he)/fe:Oe}function k(Z){return function(he){return he==null?n:he[Z]}}function N(Z){return function(he){return Z==null?n:Z[he]}}function W(Z,he,fe,$e,We){return We(Z,function(ft,dt,ut){fe=$e?($e=!1,ft):he(fe,ft,dt,ut)}),fe}function te(Z,he){var fe=Z.length;for(Z.sort(he);fe--;)Z[fe]=Z[fe].value;return Z}function Te(Z,he){for(var fe,$e=-1,We=Z.length;++$e<We;){var ft=he(Z[$e]);ft!==n&&(fe=fe===n?ft:fe+ft)}return fe}function Ce(Z,he){for(var fe=-1,$e=Array(Z);++fe<Z;)$e[fe]=he(fe);return $e}function Be(Z,he){return ct(he,function(fe){return[fe,Z[fe]]})}function tt(Z){return Z&&Z.slice(0,Ws(Z)+1).replace(fn,"")}function xt(Z){return function(he){return Z(he)}}function Ft(Z,he){return ct(he,function(fe){return Z[fe]})}function Dt(Z,he){return Z.has(he)}function Ct(Z,he){for(var fe=-1,$e=Z.length;++fe<$e&&on(he,Z[fe],0)>-1;);return fe}function Bn(Z,he){for(var fe=Z.length;fe--&&on(he,Z[fe],0)>-1;);return fe}function Tn(Z,he){for(var fe=Z.length,$e=0;fe--;)Z[fe]===he&&++$e;return $e}var Yn=N(ki),oa=N(ri);function ss(Z){return"\\"+bi[Z]}function aa(Z,he){return Z==null?n:Z[he]}function ii(Z){return yi.test(Z)}function Hs(Z){return Ao.test(Z)}function vo(Z){for(var he,fe=[];!(he=Z.next()).done;)fe.push(he.value);return fe}function us(Z){var he=-1,fe=Array(Z.size);return Z.forEach(function($e,We){fe[++he]=[We,$e]}),fe}function sa(Z,he){return function(fe){return Z(he(fe))}}function xi(Z,he){for(var fe=-1,$e=Z.length,We=0,ft=[];++fe<$e;){var dt=Z[fe];(dt===he||dt===v)&&(Z[fe]=v,ft[We++]=fe)}return ft}function Yi(Z){var he=-1,fe=Array(Z.size);return Z.forEach(function($e){fe[++he]=$e}),fe}function Us(Z){var he=-1,fe=Array(Z.size);return Z.forEach(function($e){fe[++he]=[$e,$e]}),fe}function Ml(Z,he,fe){for(var $e=fe-1,We=Z.length;++$e<We;)if(Z[$e]===he)return $e;return-1}function ua(Z,he,fe){for(var $e=fe+1;$e--;)if(Z[$e]===he)return $e;return $e}function mo(Z){return ii(Z)?cs(Z):Br(Z)}function hr(Z){return ii(Z)?ee(Z):$r(Z)}function Ws(Z){for(var he=Z.length;he--&&Si.test(Z.charAt(he)););return he}var ls=N(Mo);function cs(Z){for(var he=La.lastIndex=0;La.test(Z);)++he;return he}function ee(Z){return Z.match(La)||[]}function me(Z){return Z.match(Na)||[]}var _e=function Z(he){he=he==null?yn:ke.defaults(yn.Object(),he,ke.pick(yn,ra));var fe=he.Array,$e=he.Date,We=he.Error,ft=he.Function,dt=he.Math,ut=he.Object,At=he.RegExp,kt=he.String,Yt=he.TypeError,Ln=fe.prototype,ar=ft.prototype,Gn=ut.prototype,Hr=he["__core-js_shared__"],Gi=ar.toString,Mt=Gn.hasOwnProperty,Uc=0,Dn=function(){var a=/[^.]+$/.exec(Hr&&Hr.keys&&Hr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),la=Gn.toString,Ll=Gi.call(ut),Pn=yn._,fs=At("^"+Gi.call(Mt).replace(xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ds=as?he.Buffer:n,yo=he.Symbol,hs=he.Uint8Array,Fu=ds?ds.allocUnsafe:n,ps=sa(ut.getPrototypeOf,ut),Nl=ut.create,Fl=Gn.propertyIsEnumerable,ja=Ln.splice,ju=yo?yo.isConcatSpreadable:n,No=yo?yo.iterator:n,qi=yo?yo.toStringTag:n,Fo=function(){try{var a=dc(ut,"defineProperty");return a({},"",{}),a}catch{}}(),zs=he.clearTimeout!==yn.clearTimeout&&he.clearTimeout,Ys=$e&&$e.now!==yn.Date.now&&$e.now,Bu=he.setTimeout!==yn.setTimeout&&he.setTimeout,Gs=dt.ceil,gs=dt.floor,qs=ut.getOwnPropertySymbols,jl=ds?ds.isBuffer:n,Bl=he.isFinite,vs=Ln.join,$l=sa(ut.keys,ut),Nn=dt.max,Fn=dt.min,Vl=$e.now,Hl=he.parseInt,jo=dt.random,Wc=Ln.reverse,Bo=dc(he,"DataView"),Xi=dc(he,"Map"),Xs=dc(he,"Promise"),Ur=dc(he,"Set"),ca=dc(he,"WeakMap"),fa=dc(ut,"create"),da=ca&&new ca,ha={},Ks=hc(Bo),zc=hc(Xi),Yc=hc(Xs),$u=hc(Ur),Zs=hc(ca),ms=yo?yo.prototype:n,Js=ms?ms.valueOf:n,Ba=ms?ms.toString:n;function G(a){if(ur(a)&&!Xt(a)&&!(a instanceof qt)){if(a instanceof Wr)return a;if(Mt.call(a,"__wrapped__"))return gb(a)}return new Wr(a)}var pa=function(){function a(){}return function(u){if(!tr(u))return{};if(Nl)return Nl(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:di,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__=xe,this.__views__=[]}function Vu(){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 ys(){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),P=u<0,V=y?a.length:0,X=KO(0,V,this.__views__),se=X.start,ve=X.end,Se=ve-se,qe=P?ve:se-1,Ke=this.__iteratees__,rt=Ke.length,pt=0,Ot=Fn(Se,this.__takeCount__);if(!y||!P&&V==Se&&Ot==Se)return si(a,this.__actions__);var Lt=[];e:for(;Se--&&pt<Ot;){qe+=u;for(var tn=-1,Nt=a[qe];++tn<rt;){var rn=Ke[tn],an=rn.iteratee,Go=rn.type,no=an(Nt);if(Go==pe)Nt=no;else if(!no){if(Go==et)continue e;break e}}Lt[pt++]=Nt}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 P=a[u];this.set(P[0],P[1])}}function bs(){this.__data__=fa?fa(null):{},this.size=0}function Hu(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Uu(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 Wu(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=bs,bo.prototype.delete=Hu,bo.prototype.get=Uu,bo.prototype.has=Wu,bo.prototype.set=Gc;function wo(a){var u=-1,y=a==null?0:a.length;for(this.clear();++u<y;){var P=a[u];this.set(P[0],P[1])}}function qc(){this.__data__=[],this.size=0}function jf(a){var u=this.__data__,y=Di(u,a);if(y<0)return!1;var P=u.length-1;return y==P?u.pop():ja.call(u,y,1),--this.size,!0}function Bf(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 $f(a,u){var y=this.__data__,P=Di(y,a);return P<0?(++this.size,y.push([a,u])):y[P][1]=u,this}wo.prototype.clear=qc,wo.prototype.delete=jf,wo.prototype.get=Bf,wo.prototype.has=Xc,wo.prototype.set=$f;function $o(a){var u=-1,y=a==null?0:a.length;for(this.clear();++u<y;){var P=a[u];this.set(P[0],P[1])}}function zu(){this.size=0,this.__data__={hash:new bo,map:new(Xi||wo),string:new bo}}function Yu(a){var u=Jd(this,a).delete(a);return this.size-=u?1:0,u}function Vf(a){return Jd(this,a).get(a)}function Ul(a){return Jd(this,a).has(a)}function Gu(a,u){var y=Jd(this,a),P=y.size;return y.set(a,u),this.size+=y.size==P?0:1,this}$o.prototype.clear=zu,$o.prototype.delete=Yu,$o.prototype.get=Vf,$o.prototype.has=Ul,$o.prototype.set=Gu;function Va(a){var u=-1,y=a==null?0:a.length;for(this.__data__=new $o;++u<y;)this.add(a[u])}function Hf(a){return this.__data__.set(a,c),this}function Uf(a){return this.__data__.has(a)}Va.prototype.add=Va.prototype.push=Hf,Va.prototype.has=Uf;function Ki(a){var u=this.__data__=new wo(a);this.size=u.size}function Vo(){this.__data__=new wo,this.size=0}function Wl(a){var u=this.__data__,y=u.delete(a);return this.size=u.size,y}function qu(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 P=y.__data__;if(!Xi||P.length<i-1)return P.push([a,u]),this.size=++y.size,this;y=this.__data__=new $o(P)}return y.set(a,u),this.size=y.size,this}Ki.prototype.clear=Vo,Ki.prototype.delete=Wl,Ki.prototype.get=qu,Ki.prototype.has=nn,Ki.prototype.set=Ha;function ga(a,u){var y=Xt(a),P=!y&&pc(a),V=!y&&!P&&ll(a),X=!y&&!P&&!V&&cf(a),se=y||P||V||X,ve=se?Ce(a.length,kt):[],Se=ve.length;for(var qe in a)(u||Mt.call(a,qe))&&!(se&&(qe=="length"||V&&(qe=="offset"||qe=="parent")||X&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||yu(qe,Se)))&&ve.push(qe);return ve}function un(a){var u=a.length;return u?a[tl(0,u-1)]:n}function Oi(a,u){return Qd(vr(a),va(u,0,a.length))}function Ua(a){return Qd(vr(a))}function ws(a,u,y){(y!==n&&!Ja(a[u],y)||y===n&&!(u in a))&&pr(a,u,y)}function $n(a,u,y){var P=a[u];(!(Mt.call(a,u)&&Ja(P,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,P){return ma(a,function(V,X,se){u(P,V,y(V),se)}),P}function Zi(a,u){return a&&To(u,ui(u),a)}function za(a,u){return a&&To(u,Eo(u),a)}function pr(a,u,y){u=="__proto__"&&Fo?Fo(a,u,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[u]=y}function zl(a,u){for(var y=-1,P=u.length,V=fe(P),X=a==null;++y<P;)V[y]=X?n:xg(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,P,V,X){var se,ve=u&p,Se=u&S,qe=u&T;if(y&&(se=V?y(a,P,V,X):y(a)),se!==n)return se;if(!tr(a))return a;var Ke=Xt(a);if(Ke){if(se=JO(a),!ve)return vr(a,se)}else{var rt=Ii(a),pt=rt==ot||rt==$t;if(ll(a))return uc(a,ve);if(rt==Kn||rt==Me||pt&&!V){if(se=Se||pt?{}:ab(a),!ve)return Se?sl(a,za(se,a)):sf(a,Zi(se,a))}else{if(!Vt[rt])return V?a:{};se=QO(a,rt,ve)}}X||(X=new Ki);var Ot=X.get(a);if(Ot)return Ot;X.set(a,se),Lb(a)?a.forEach(function(Nt){se.add(zr(Nt,u,y,Nt,a,X))}):Ab(a)&&a.forEach(function(Nt,rn){se.set(rn,zr(Nt,u,y,rn,a,X))});var Lt=qe?Se?sg:ag:Se?Eo:ui,tn=Ke?n:Lt(a);return oe(tn||a,function(Nt,rn){tn&&(rn=Nt,Nt=a[rn]),$n(se,rn,zr(Nt,u,y,rn,a,X))}),se}function Yl(a){var u=ui(a);return function(y){return Kc(y,a,u)}}function Kc(a,u,y){var P=y.length;if(a==null)return!P;for(a=ut(a);P--;){var V=y[P],X=u[V],se=a[V];if(se===n&&!(V in a)||!X(se))return!1}return!0}function Gl(a,u,y){if(typeof a!="function")throw new Yt(s);return qf(function(){a.apply(n,y)},u)}function Ho(a,u,y,P){var V=-1,X=Ee,se=!0,ve=a.length,Se=[],qe=u.length;if(!ve)return Se;y&&(u=ct(u,xt(y))),P?(X=Ge,se=!1):u.length>=i&&(X=Dt,se=!1,u=new Va(u));e:for(;++V<ve;){var Ke=a[V],rt=y==null?Ke:y(Ke);if(Ke=P||Ke!==0?Ke:0,se&&rt===rt){for(var pt=qe;pt--;)if(u[pt]===rt)continue e;Se.push(Ke)}else X(u,rt,P)||Se.push(Ke)}return Se}var ma=w(xo),ql=w(Zl,!0);function Xu(a,u){var y=!0;return ma(a,function(P,V,X){return y=!!u(P,V,X),y}),y}function Ku(a,u,y){for(var P=-1,V=a.length;++P<V;){var X=a[P],se=u(X);if(se!=null&&(ve===n?se===se&&!Yo(se):y(se,ve)))var ve=se,Se=X}return Se}function Zc(a,u,y,P){var V=a.length;for(y=en(y),y<0&&(y=-y>V?0:V+y),P=P===n||P>V?V:en(P),P<0&&(P+=V),P=y>P?0:Fb(P);y<P;)a[y++]=u;return a}function Xl(a,u){var y=[];return ma(a,function(P,V,X){u(P,V,X)&&y.push(P)}),y}function gr(a,u,y,P,V){var X=-1,se=a.length;for(y||(y=tD),V||(V=[]);++X<se;){var ve=a[X];u>0&&y(ve)?u>1?gr(ve,u-1,y,P,V):Pt(V,ve):P||(V[V.length]=ve)}return V}var Kl=A(),Jc=A(!0);function xo(a,u){return a&&Kl(a,u,ui)}function Zl(a,u){return a&&Jc(a,u,ui)}function Zu(a,u){return je(u,function(y){return bu(a[y])})}function Ya(a,u){u=zo(u,a);for(var y=0,P=u.length;a!=null&&y<P;)a=a[Ds(u[y++])];return y&&y==P?a:n}function eu(a,u,y){var P=u(a);return Xt(a)?P:Pt(P,y(a))}function kr(a){return a==null?a===n?pn:br:qi&&qi in ut(a)?XO(a):uD(a)}function tu(a,u){return a>u}function nu(a,u){return a!=null&&Mt.call(a,u)}function Qc(a,u){return a!=null&&u in ut(a)}function ru(a,u,y){return a>=Fn(u,y)&&a<Nn(u,y)}function xs(a,u,y){for(var P=y?Ge:Ee,V=a[0].length,X=a.length,se=X,ve=fe(X),Se=1/0,qe=[];se--;){var Ke=a[se];se&&u&&(Ke=ct(Ke,xt(u))),Se=Fn(Ke.length,Se),ve[se]=!y&&(u||V>=120&&Ke.length>=120)?new Va(se&&Ke):n}Ke=a[0];var rt=-1,pt=ve[0];e:for(;++rt<V&&qe.length<Se;){var Ot=Ke[rt],Lt=u?u(Ot):Ot;if(Ot=y||Ot!==0?Ot:0,!(pt?Dt(pt,Lt):P(qe,Lt,y))){for(se=X;--se;){var tn=ve[se];if(!(tn?Dt(tn,Lt):P(a[se],Lt,y)))continue e}pt&&pt.push(Lt),qe.push(Ot)}}return qe}function Jl(a,u,y,P){return xo(a,function(V,X,se){u(P,y(V),X,se)}),P}function Pi(a,u,y){u=zo(u,a),a=cb(a,u);var P=a==null?a:a[Ds(ba(u))];return P==null?n:H(P,a,y)}function iu(a){return ur(a)&&kr(a)==Me}function Ju(a){return ur(a)&&kr(a)==ci}function Ga(a){return ur(a)&&kr(a)==wt}function Ss(a,u,y,P,V){return a===u?!0:a==null||u==null||!ur(a)&&!ur(u)?a!==a&&u!==u:Ql(a,u,y,P,Ss,V)}function Ql(a,u,y,P,V,X){var se=Xt(a),ve=Xt(u),Se=se?Xe:Ii(a),qe=ve?Xe:Ii(u);Se=Se==Me?Kn:Se,qe=qe==Me?Kn:qe;var Ke=Se==Kn,rt=qe==Kn,pt=Se==qe;if(pt&&ll(a)){if(!ll(u))return!1;se=!0,Ke=!1}if(pt&&!Ke)return X||(X=new Ki),se||cf(a)?vu(a,u,y,P,V,X):ig(a,u,Se,y,P,V,X);if(!(y&_)){var Ot=Ke&&Mt.call(a,"__wrapped__"),Lt=rt&&Mt.call(u,"__wrapped__");if(Ot||Lt){var tn=Ot?a.value():a,Nt=Lt?u.value():u;return X||(X=new Ki),V(tn,Nt,y,P,X)}}return pt?(X||(X=new Ki),og(a,u,y,P,V,X)):!1}function qa(a){return ur(a)&&Ii(a)==Ht}function ec(a,u,y,P){var V=y.length,X=V,se=!P;if(a==null)return!X;for(a=ut(a);V--;){var ve=y[V];if(se&&ve[2]?ve[1]!==a[ve[0]]:!(ve[0]in a))return!1}for(;++V<X;){ve=y[V];var Se=ve[0],qe=a[Se],Ke=ve[1];if(se&&ve[2]){if(qe===n&&!(Se in a))return!1}else{var rt=new Ki;if(P)var pt=P(qe,Ke,Se,a,u,rt);if(!(pt===n?Ss(Ke,qe,_|R,P,rt):pt))return!1}}return!0}function tc(a){if(!tr(a)||rD(a))return!1;var u=bu(a)?fs:Ei;return u.test(hc(a))}function So(a){return ur(a)&&kr(a)==Pr}function Wf(a){return ur(a)&&Ii(a)==rr}function zf(a){return ur(a)&&oh(a.length)&&!!Qt[kr(a)]}function Ts(a){return typeof a=="function"?a:a==null?ko:typeof a=="object"?Xt(a)?Qi(a[0],a[1]):Uo(a):qb(a)}function ou(a){if(!Gf(a))return $l(a);var u=[];for(var y in ut(a))Mt.call(a,y)&&y!="constructor"&&u.push(y);return u}function Qu(a){if(!tr(a))return sD(a);var u=Gf(a),y=[];for(var P in a)P=="constructor"&&(u||!Mt.call(a,P))||y.push(P);return y}function Ji(a,u){return a<u}function Cs(a,u){var y=-1,P=Co(a)?fe(a.length):[];return ma(a,function(V,X,se){P[++y]=u(V,X,se)}),P}function Uo(a){var u=lg(a);return u.length==1&&u[0][2]?ub(u[0][0],u[0][1]):function(y){return y===a||ec(y,a,u)}}function Qi(a,u){return fg(a)&&sb(u)?ub(Ds(a),u):function(y){var P=xg(y,a);return P===n&&P===u?Sg(y,a):Ss(u,P,_|R)}}function Es(a,u,y,P,V){a!==u&&Kl(u,function(X,se){if(V||(V=new Ki),tr(X))_i(a,u,se,y,Es,P,V);else{var ve=P?P(hg(a,se),X,se+"",a,u,V):n;ve===n&&(ve=X),ws(a,se,ve)}},Eo)}function _i(a,u,y,P,V,X,se){var ve=hg(a,y),Se=hg(u,y),qe=se.get(Se);if(qe){ws(a,y,qe);return}var Ke=X?X(ve,Se,y+"",a,u,se):n,rt=Ke===n;if(rt){var pt=Xt(Se),Ot=!pt&&ll(Se),Lt=!pt&&!Ot&&cf(Se);Ke=Se,pt||Ot||Lt?Xt(ve)?Ke=ve:mr(ve)?Ke=vr(ve):Ot?(rt=!1,Ke=uc(Se,!0)):Lt?(rt=!1,Ke=lc(Se,!0)):Ke=[]:Xf(Se)||pc(Se)?(Ke=ve,pc(ve)?Ke=jb(ve):(!tr(ve)||bu(ve))&&(Ke=ab(Se))):rt=!1}rt&&(se.set(Se,Ke),V(Ke,Se,P,X,se),se.delete(Se)),ws(a,y,Ke)}function Xa(a,u){var y=a.length;if(y)return u+=u<0?y:0,yu(u,y)?a[u]:n}function el(a,u,y){u.length?u=ct(u,function(X){return Xt(X)?function(se){return Ya(se,X.length===1?X[0]:X)}:X}):u=[ko];var P=-1;u=ct(u,xt(Rt()));var V=Cs(a,function(X,se,ve){var Se=ct(u,function(qe){return qe(X)});return{criteria:Se,index:++P,value:X}});return te(V,function(X,se){return gu(X,se,y)})}function Ri(a,u){return Wo(a,u,function(y,P){return Sg(a,P)})}function Wo(a,u,y){for(var P=-1,V=u.length,X={};++P<V;){var se=u[P],ve=Ya(a,se);y(ve,se)&&Za(X,zo(se,a),ve)}return X}function nc(a){return function(u){return Ya(u,a)}}function Ka(a,u,y,P){var V=P?po:on,X=-1,se=u.length,ve=a;for(a===u&&(u=vr(u)),y&&(ve=ct(a,xt(y)));++X<se;)for(var Se=0,qe=u[X],Ke=y?y(qe):qe;(Se=V(ve,Ke,Se,P))>-1;)ve!==a&&ja.call(ve,Se,1),ja.call(a,Se,1);return a}function au(a,u){for(var y=a?u.length:0,P=y-1;y--;){var V=u[y];if(y==P||V!==X){var X=V;yu(V)?ja.call(a,V,1):ac(a,V)}}return a}function tl(a,u){return a+gs(jo()*(u-a+1))}function ef(a,u,y,P){for(var V=-1,X=Nn(Gs((u-a)/(y||1)),0),se=fe(X);X--;)se[P?X:++V]=a,a+=y;return se}function rc(a,u){var y="";if(!a||u<1||u>Je)return y;do u%2&&(y+=a),u=gs(u/2),u&&(a+=a);while(u);return y}function Gt(a,u){return pg(lb(a,u,ko),a+"")}function su(a){return un(ff(a))}function tf(a,u){var y=ff(a);return Qd(y,va(u,0,y.length))}function Za(a,u,y,P){if(!tr(a))return a;u=zo(u,a);for(var V=-1,X=u.length,se=X-1,ve=a;ve!=null&&++V<X;){var Se=Ds(u[V]),qe=y;if(Se==="__proto__"||Se==="constructor"||Se==="prototype")return a;if(V!=se){var Ke=ve[Se];qe=P?P(Ke,Se,ve):n,qe===n&&(qe=tr(Ke)?Ke:yu(u[V+1])?[]:{})}$n(ve,Se,qe),ve=ve[Se]}return a}var ks=da?function(a,u){return da.set(a,u),a}:ko,ic=Fo?function(a,u){return Fo(a,"toString",{configurable:!0,enumerable:!1,value:Cg(u),writable:!0})}:ko;function oc(a){return Qd(ff(a))}function oi(a,u,y){var P=-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 X=fe(V);++P<V;)X[P]=a[P+u];return X}function nf(a,u){var y;return ma(a,function(P,V,X){return y=u(P,V,X),!y}),!!y}function uu(a,u,y){var P=0,V=a==null?P:a.length;if(typeof u=="number"&&u===u&&V<=Ve){for(;P<V;){var X=P+V>>>1,se=a[X];se!==null&&!Yo(se)&&(y?se<=u:se<u)?P=X+1:V=X}return V}return lu(a,u,ko,y)}function lu(a,u,y,P){var V=0,X=a==null?0:a.length;if(X===0)return 0;u=y(u);for(var se=u!==u,ve=u===null,Se=Yo(u),qe=u===n;V<X;){var Ke=gs((V+X)/2),rt=y(a[Ke]),pt=rt!==n,Ot=rt===null,Lt=rt===rt,tn=Yo(rt);if(se)var Nt=P||Lt;else qe?Nt=Lt&&(P||pt):ve?Nt=Lt&&pt&&(P||!Ot):Se?Nt=Lt&&pt&&!Ot&&(P||!tn):Ot||tn?Nt=!1:Nt=P?rt<=u:rt<u;Nt?V=Ke+1:X=Ke}return Fn(X,Ue)}function rf(a,u){for(var y=-1,P=a.length,V=0,X=[];++y<P;){var se=a[y],ve=u?u(se):se;if(!y||!Ja(ve,Se)){var Se=ve;X[V++]=se===0?0:se}}return X}function of(a){return typeof a=="number"?a:Yo(a)?Oe:+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==-Fe?"-0":u}function ya(a,u,y){var P=-1,V=Ee,X=a.length,se=!0,ve=[],Se=ve;if(y)se=!1,V=Ge;else if(X>=i){var qe=u?null:Cn(a);if(qe)return Yi(qe);se=!1,V=Dt,Se=new Va}else Se=u?[]:ve;e:for(;++P<X;){var Ke=a[P],rt=u?u(Ke):Ke;if(Ke=y||Ke!==0?Ke:0,se&&rt===rt){for(var pt=Se.length;pt--;)if(Se[pt]===rt)continue e;u&&Se.push(rt),ve.push(Ke)}else V(Se,rt,y)||(Se!==ve&&Se.push(rt),ve.push(Ke))}return ve}function ac(a,u){return u=zo(u,a),a=cb(a,u),a==null||delete a[Ds(ba(u))]}function nl(a,u,y,P){return Za(a,u,y(Ya(a,u)),P)}function rl(a,u,y,P){for(var V=a.length,X=P?V:-1;(P?X--:++X<V)&&u(a[X],X,a););return y?oi(a,P?0:X,P?X+1:V):oi(a,P?X+1:0,P?V:X)}function si(a,u){var y=a;return y instanceof qt&&(y=y.value()),It(u,function(P,V){return V.func.apply(V.thisArg,Pt([P],V.args))},y)}function cu(a,u,y){var P=a.length;if(P<2)return P?ya(a[0]):[];for(var V=-1,X=fe(P);++V<P;)for(var se=a[V],ve=-1;++ve<P;)ve!=V&&(X[V]=Ho(X[V]||se,a[ve],u,y));return ya(gr(X,1),u,y)}function sc(a,u,y){for(var P=-1,V=a.length,X=u.length,se={};++P<V;){var ve=P<X?u[P]:n;y(se,a[P],ve)}return se}function Yr(a){return mr(a)?a:[]}function fu(a){return typeof a=="function"?a:ko}function zo(a,u){return Xt(a)?a:fg(a,u)?[a]:pb(bn(a))}var Yf=Gt;function eo(a,u,y){var P=a.length;return y=y===n?P:y,!u&&y>=P?a:oi(a,u,y)}var du=zs||function(a){return yn.clearTimeout(a)};function uc(a,u){if(u)return a.slice();var y=a.length,P=Fu?Fu(y):new a.constructor(y);return a.copy(P),P}function il(a){var u=new a.constructor(a.byteLength);return new hs(u).set(new hs(a)),u}function hu(a,u){var y=u?il(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function pu(a){var u=new a.constructor(a.source,gi.exec(a));return u.lastIndex=a.lastIndex,u}function ol(a){return Js?ut(Js.call(a)):{}}function lc(a,u){var y=u?il(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function Os(a,u){if(a!==u){var y=a!==n,P=a===null,V=a===a,X=Yo(a),se=u!==n,ve=u===null,Se=u===u,qe=Yo(u);if(!ve&&!qe&&!X&&a>u||X&&se&&Se&&!ve&&!qe||P&&se&&Se||!y&&Se||!V)return 1;if(!P&&!X&&!qe&&a<u||qe&&y&&V&&!P&&!X||ve&&y&&V||!se&&V||!Se)return-1}return 0}function gu(a,u,y){for(var P=-1,V=a.criteria,X=u.criteria,se=V.length,ve=y.length;++P<se;){var Se=Os(V[P],X[P]);if(Se){if(P>=ve)return Se;var qe=y[P];return Se*(qe=="desc"?-1:1)}}return a.index-u.index}function af(a,u,y,P){for(var V=-1,X=a.length,se=y.length,ve=-1,Se=u.length,qe=Nn(X-se,0),Ke=fe(Se+qe),rt=!P;++ve<Se;)Ke[ve]=u[ve];for(;++V<se;)(rt||V<X)&&(Ke[y[V]]=a[V]);for(;qe--;)Ke[ve++]=a[V++];return Ke}function al(a,u,y,P){for(var V=-1,X=a.length,se=-1,ve=y.length,Se=-1,qe=u.length,Ke=Nn(X-ve,0),rt=fe(Ke+qe),pt=!P;++V<Ke;)rt[V]=a[V];for(var Ot=V;++Se<qe;)rt[Ot+Se]=u[Se];for(;++se<ve;)(pt||V<X)&&(rt[Ot+y[se]]=a[V++]);return rt}function vr(a,u){var y=-1,P=a.length;for(u||(u=fe(P));++y<P;)u[y]=a[y];return u}function To(a,u,y,P){var V=!y;y||(y={});for(var X=-1,se=u.length;++X<se;){var ve=u[X],Se=P?P(y[ve],a[ve],ve,y,a):n;Se===n&&(Se=a[ve]),V?pr(y,ve,Se):$n(y,ve,Se)}return y}function sf(a,u){return To(a,cg(a),u)}function sl(a,u){return To(a,ib(a),u)}function ul(a,u){return function(y,P){var V=Xt(y)?ue:Wa,X=u?u():{};return V(y,a,Rt(P,2),X)}}function g(a){return Gt(function(u,y){var P=-1,V=y.length,X=V>1?y[V-1]:n,se=V>2?y[2]:n;for(X=a.length>3&&typeof X=="function"?(V--,X):n,se&&to(y[0],y[1],se)&&(X=V<3?n:X,V=1),u=ut(u);++P<V;){var ve=y[P];ve&&a(u,ve,P,X)}return u})}function w(a,u){return function(y,P){if(y==null)return y;if(!Co(y))return a(y,P);for(var V=y.length,X=u?V:-1,se=ut(y);(u?X--:++X<V)&&P(se[X],X,se)!==!1;);return y}}function A(a){return function(u,y,P){for(var V=-1,X=ut(u),se=P(u),ve=se.length;ve--;){var Se=se[a?ve:++V];if(y(X[Se],Se,X)===!1)break}return u}}function $(a,u,y){var P=u&L,V=ge(a);function X(){var se=this&&this!==yn&&this instanceof X?V:a;return se.apply(P?y:this,arguments)}return X}function K(a){return function(u){u=bn(u);var y=ii(u)?hr(u):n,P=y?y[0]:u.charAt(0),V=y?eo(y,1).join(""):u.slice(1);return P[a]()+V}}function ae(a){return function(u){return It(Yb(zb(u).replace(Aa,"")),a,"")}}function ge(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),P=a.apply(y,u);return tr(P)?P:y}}function Ae(a,u,y){var P=ge(a);function V(){for(var X=arguments.length,se=fe(X),ve=X,Se=lf(V);ve--;)se[ve]=arguments[ve];var qe=X<3&&se[0]!==Se&&se[X-1]!==Se?[]:xi(se,Se);if(X-=qe.length,X<y)return St(a,u,D,V.placeholder,n,se,qe,n,n,y-X);var Ke=this&&this!==yn&&this instanceof V?P:a;return H(Ke,this,se)}return V}function h(a){return function(u,y,P){var V=ut(u);if(!Co(u)){var X=Rt(y,3);u=ui(u),y=function(ve){return X(V[ve],ve,V)}}var se=a(u,y,P);return se>-1?V[X?u[se]:se]:n}}function b(a){return mu(function(u){var y=u.length,P=y,V=Wr.prototype.thru;for(a&&u.reverse();P--;){var X=u[P];if(typeof X!="function")throw new Yt(s);if(V&&!se&&Zd(X)=="wrapper")var se=new Wr([],!0)}for(P=se?P:y;++P<y;){X=u[P];var ve=Zd(X),Se=ve=="wrapper"?ug(X):n;Se&&dg(Se[0])&&Se[1]==(x|Y|J|ye)&&!Se[4].length&&Se[9]==1?se=se[Zd(Se[0])].apply(se,Se[3]):se=X.length==1&&dg(X)?se[ve]():se.thru(X)}return function(){var qe=arguments,Ke=qe[0];if(se&&qe.length==1&&Xt(Ke))return se.plant(Ke).value();for(var rt=0,pt=y?u[rt].apply(this,qe):Ke;++rt<y;)pt=u[rt].call(this,pt);return pt}})}function D(a,u,y,P,V,X,se,ve,Se,qe){var Ke=u&x,rt=u&L,pt=u&I,Ot=u&(Y|ne),Lt=u&le,tn=pt?n:ge(a);function Nt(){for(var rn=arguments.length,an=fe(rn),Go=rn;Go--;)an[Go]=arguments[Go];if(Ot)var no=lf(Nt),qo=Tn(an,no);if(P&&(an=af(an,P,V,Ot)),X&&(an=al(an,X,se,Ot)),rn-=qo,Ot&&rn<qe){var yr=xi(an,no);return St(a,u,D,Nt.placeholder,y,an,yr,ve,Se,qe-rn)}var Qa=rt?y:this,xu=pt?Qa[a]:a;return rn=an.length,ve?an=lD(an,ve):Lt&&rn>1&&an.reverse(),Ke&&Se<rn&&(an.length=Se),this&&this!==yn&&this instanceof Nt&&(xu=tn||ge(xu)),xu.apply(Qa,an)}return Nt}function M(a,u){return function(y,P){return Jl(y,a,u(P),{})}}function z(a,u){return function(y,P){var V;if(y===n&&P===n)return u;if(y!==n&&(V=y),P!==n){if(V===n)return P;typeof y=="string"||typeof P=="string"?(y=ai(y),P=ai(P)):(y=of(y),P=of(P)),V=a(y,P)}return V}}function ie(a){return mu(function(u){return u=ct(u,xt(Rt())),Gt(function(y){var P=this;return a(u,function(V){return H(V,P,y)})})})}function ce(a,u){u=u===n?" ":ai(u);var y=u.length;if(y<2)return y?rc(u,a):u;var P=rc(u,Gs(a/mo(u)));return ii(u)?eo(hr(P),0,a).join(""):P.slice(0,a)}function Ie(a,u,y,P){var V=u&L,X=ge(a);function se(){for(var ve=-1,Se=arguments.length,qe=-1,Ke=P.length,rt=fe(Ke+Se),pt=this&&this!==yn&&this instanceof se?X:a;++qe<Ke;)rt[qe]=P[qe];for(;Se--;)rt[qe++]=arguments[++ve];return H(pt,V?y:this,rt)}return se}function Ze(a){return function(u,y,P){return P&&typeof P!="number"&&to(u,y,P)&&(y=P=n),u=wu(u),y===n?(y=u,u=0):y=wu(y),P=P===n?u<y?1:-1:wu(P),ef(u,y,P,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,P,V,X,se,ve,Se,qe){var Ke=u&Y,rt=Ke?se:n,pt=Ke?n:se,Ot=Ke?X:n,Lt=Ke?n:X;u|=Ke?J:de,u&=~(Ke?de:J),u&U||(u&=~(L|I));var tn=[a,u,V,Ot,rt,Lt,pt,ve,Se,qe],Nt=y.apply(n,tn);return dg(a)&&fb(Nt,tn),Nt.placeholder=P,db(Nt,a,u)}function _t(a){var u=dt[a];return function(y,P){if(y=wa(y),P=P==null?0:Fn(en(P),292),P&&Bl(y)){var V=(bn(y)+"e").split("e"),X=u(V[0]+"e"+(+V[1]+P));return V=(bn(X)+"e").split("e"),+(V[0]+"e"+(+V[1]-P))}return u(y)}}var Cn=Ur&&1/Yi(new Ur([,-0]))[1]==Fe?function(a){return new Ur(a)}:Og;function sr(a){return function(u){var y=Ii(u);return y==Ht?us(u):y==rr?Us(u):Be(u,a(u))}}function qn(a,u,y,P,V,X,se,ve){var Se=u&I;if(!Se&&typeof a!="function")throw new Yt(s);var qe=P?P.length:0;if(qe||(u&=~(J|de),P=V=n),se=se===n?se:Nn(en(se),0),ve=ve===n?ve:en(ve),qe-=V?V.length:0,u&de){var Ke=P,rt=V;P=V=n}var pt=Se?n:ug(a),Ot=[a,u,y,P,V,Ke,rt,X,se,ve];if(pt&&aD(Ot,pt),a=Ot[0],u=Ot[1],y=Ot[2],P=Ot[3],V=Ot[4],ve=Ot[9]=Ot[9]===n?Se?0:a.length:Nn(Ot[9]-qe,0),!ve&&u&(Y|ne)&&(u&=~(Y|ne)),!u||u==L)var Lt=$(a,u,y);else u==Y||u==ne?Lt=Ae(a,u,ve):(u==J||u==(L|J))&&!V.length?Lt=Ie(a,u,y,P):Lt=D.apply(n,Ot);var tn=pt?ks:fb;return db(tn(Lt,Ot),a,u)}function cc(a,u,y,P){return a===n||Ja(a,Gn[y])&&!Mt.call(P,y)?u:a}function fc(a,u,y,P,V,X){return tr(a)&&tr(u)&&(X.set(u,a),Es(a,u,n,fc,X),X.delete(u)),a}function uf(a){return Xf(a)?n:a}function vu(a,u,y,P,V,X){var se=y&_,ve=a.length,Se=u.length;if(ve!=Se&&!(se&&Se>ve))return!1;var qe=X.get(a),Ke=X.get(u);if(qe&&Ke)return qe==u&&Ke==a;var rt=-1,pt=!0,Ot=y&R?new Va:n;for(X.set(a,u),X.set(u,a);++rt<ve;){var Lt=a[rt],tn=u[rt];if(P)var Nt=se?P(tn,Lt,rt,u,a,X):P(Lt,tn,rt,a,u,X);if(Nt!==n){if(Nt)continue;pt=!1;break}if(Ot){if(!dn(u,function(rn,an){if(!Dt(Ot,an)&&(Lt===rn||V(Lt,rn,y,P,X)))return Ot.push(an)})){pt=!1;break}}else if(!(Lt===tn||V(Lt,tn,y,P,X))){pt=!1;break}}return X.delete(a),X.delete(u),pt}function ig(a,u,y,P,V,X,se){switch(y){case ln:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case ci:return!(a.byteLength!=u.byteLength||!X(new hs(a),new hs(u)));case mt:case wt:case Xn:return Ja(+a,+u);case Et:return a.name==u.name&&a.message==u.message;case Pr:case cn:return a==u+"";case Ht:var ve=us;case rr:var Se=P&_;if(ve||(ve=Yi),a.size!=u.size&&!Se)return!1;var qe=se.get(a);if(qe)return qe==u;P|=R,se.set(a,u);var Ke=vu(ve(a),ve(u),P,V,X,se);return se.delete(a),Ke;case hn:if(Js)return Js.call(a)==Js.call(u)}return!1}function og(a,u,y,P,V,X){var se=y&_,ve=ag(a),Se=ve.length,qe=ag(u),Ke=qe.length;if(Se!=Ke&&!se)return!1;for(var rt=Se;rt--;){var pt=ve[rt];if(!(se?pt in u:Mt.call(u,pt)))return!1}var Ot=X.get(a),Lt=X.get(u);if(Ot&&Lt)return Ot==u&&Lt==a;var tn=!0;X.set(a,u),X.set(u,a);for(var Nt=se;++rt<Se;){pt=ve[rt];var rn=a[pt],an=u[pt];if(P)var Go=se?P(an,rn,pt,u,a,X):P(rn,an,pt,a,u,X);if(!(Go===n?rn===an||V(rn,an,y,P,X):Go)){tn=!1;break}Nt||(Nt=pt=="constructor")}if(tn&&!Nt){var no=a.constructor,qo=u.constructor;no!=qo&&"constructor"in a&&"constructor"in u&&!(typeof no=="function"&&no instanceof no&&typeof qo=="function"&&qo instanceof qo)&&(tn=!1)}return X.delete(a),X.delete(u),tn}function mu(a){return pg(lb(a,n,yb),a+"")}function ag(a){return eu(a,ui,cg)}function sg(a){return eu(a,Eo,ib)}var ug=da?function(a){return da.get(a)}:Og;function Zd(a){for(var u=a.name+"",y=ha[u],P=Mt.call(ha,u)?y.length:0;P--;){var V=y[P],X=V.func;if(X==null||X==a)return V.name}return u}function lf(a){var u=Mt.call(G,"placeholder")?G:a;return u.placeholder}function Rt(){var a=G.iteratee||Eg;return a=a===Eg?Ts:a,arguments.length?a(arguments[0],arguments[1]):a}function Jd(a,u){var y=a.__data__;return nD(u)?y[typeof u=="string"?"string":"hash"]:y.map}function lg(a){for(var u=ui(a),y=u.length;y--;){var P=u[y],V=a[P];u[y]=[P,V,sb(V)]}return u}function dc(a,u){var y=aa(a,u);return tc(y)?y:n}function XO(a){var u=Mt.call(a,qi),y=a[qi];try{a[qi]=n;var P=!0}catch{}var V=la.call(a);return P&&(u?a[qi]=y:delete a[qi]),V}var cg=qs?function(a){return a==null?[]:(a=ut(a),je(qs(a),function(u){return Fl.call(a,u)}))}:Dg,ib=qs?function(a){for(var u=[];a;)Pt(u,cg(a)),a=ps(a);return u}:Dg,Ii=kr;(Bo&&Ii(new Bo(new ArrayBuffer(1)))!=ln||Xi&&Ii(new Xi)!=Ht||Xs&&Ii(Xs.resolve())!=kn||Ur&&Ii(new Ur)!=rr||ca&&Ii(new ca)!=gt)&&(Ii=function(a){var u=kr(a),y=u==Kn?a.constructor:n,P=y?hc(y):"";if(P)switch(P){case Ks:return ln;case zc:return Ht;case Yc:return kn;case $u:return rr;case Zs:return gt}return u});function KO(a,u,y){for(var P=-1,V=y.length;++P<V;){var X=y[P],se=X.size;switch(X.type){case"drop":a+=se;break;case"dropRight":u-=se;break;case"take":u=Fn(u,a+se);break;case"takeRight":a=Nn(a,u-se);break}}return{start:a,end:u}}function ZO(a){var u=a.match(Ia);return u?u[1].split(Zr):[]}function ob(a,u,y){u=zo(u,a);for(var P=-1,V=u.length,X=!1;++P<V;){var se=Ds(u[P]);if(!(X=a!=null&&y(a,se)))break;a=a[se]}return X||++P!=V?X:(V=a==null?0:a.length,!!V&&oh(V)&&yu(se,V)&&(Xt(a)||pc(a)))}function JO(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 ab(a){return typeof a.constructor=="function"&&!Gf(a)?pa(ps(a)):{}}function QO(a,u,y){var P=a.constructor;switch(u){case ci:return il(a);case mt:case wt:return new P(+a);case ln:return hu(a,y);case ji:case Bi:case $i:case _r:case Un:case Rr:case wr:case qr:case Xr:return lc(a,y);case Ht:return new P;case Xn:case cn:return new P(a);case Pr:return pu(a);case rr:return new P;case hn:return ol(a)}}function eD(a,u){var y=u.length;if(!y)return a;var P=y-1;return u[P]=(y>1?"& ":"")+u[P],u=u.join(y>2?", ":" "),a.replace(Ra,`{
|
|
149
|
+
/* [wrapped with `+u+`] */
|
|
150
|
+
`)}function tD(a){return Xt(a)||pc(a)||!!(ju&&a&&a[ju])}function yu(a,u){var y=typeof a;return u=u??Je,!!u&&(y=="number"||y!="symbol"&&Sr.test(a))&&a>-1&&a%1==0&&a<u}function to(a,u,y){if(!tr(y))return!1;var P=typeof u;return(P=="number"?Co(y)&&yu(u,y.length):P=="string"&&u in y)?Ja(y[u],a):!1}function fg(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)||!hi.test(a)||u!=null&&a in ut(u)}function nD(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function dg(a){var u=Zd(a),y=G[u];if(typeof y!="function"||!(u in qt.prototype))return!1;if(a===y)return!0;var P=ug(y);return!!P&&a===P[0]}function rD(a){return!!Dn&&Dn in a}var iD=Hr?bu:Pg;function Gf(a){var u=a&&a.constructor,y=typeof u=="function"&&u.prototype||Gn;return a===y}function sb(a){return a===a&&!tr(a)}function ub(a,u){return function(y){return y==null?!1:y[a]===u&&(u!==n||a in ut(y))}}function oD(a){var u=rh(a,function(P){return y.size===d&&y.clear(),P}),y=u.cache;return u}function aD(a,u){var y=a[1],P=u[1],V=y|P,X=V<(L|I|x),se=P==x&&y==Y||P==x&&y==ye&&a[7].length<=u[8]||P==(x|ye)&&u[7].length<=u[8]&&y==Y;if(!(X||se))return a;P&L&&(a[2]=u[2],V|=y&L?0:U);var ve=u[3];if(ve){var Se=a[3];a[3]=Se?af(Se,ve,u[4]):ve,a[4]=Se?xi(a[3],v):u[4]}return ve=u[5],ve&&(Se=a[5],a[5]=Se?al(Se,ve,u[6]):ve,a[6]=Se?xi(a[5],v):u[6]),ve=u[7],ve&&(a[7]=ve),P&x&&(a[8]=a[8]==null?u[8]:Fn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=V,a}function sD(a){var u=[];if(a!=null)for(var y in ut(a))u.push(y);return u}function uD(a){return la.call(a)}function lb(a,u,y){return u=Nn(u===n?a.length-1:u,0),function(){for(var P=arguments,V=-1,X=Nn(P.length-u,0),se=fe(X);++V<X;)se[V]=P[u+V];V=-1;for(var ve=fe(u+1);++V<u;)ve[V]=P[V];return ve[u]=y(se),H(a,this,ve)}}function cb(a,u){return u.length<2?a:Ya(a,oi(u,0,-1))}function lD(a,u){for(var y=a.length,P=Fn(u.length,y),V=vr(a);P--;){var X=u[P];a[P]=yu(X,y)?V[X]:n}return a}function hg(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var fb=hb(ks),qf=Bu||function(a,u){return yn.setTimeout(a,u)},pg=hb(ic);function db(a,u,y){var P=u+"";return pg(a,eD(P,cD(ZO(P),y)))}function hb(a){var u=0,y=0;return function(){var P=Vl(),V=Ye-(P-y);if(y=P,V>0){if(++u>=He)return arguments[0]}else u=0;return a.apply(n,arguments)}}function Qd(a,u){var y=-1,P=a.length,V=P-1;for(u=u===n?P:u;++y<u;){var X=tl(y,V),se=a[X];a[X]=a[y],a[y]=se}return a.length=u,a}var pb=oD(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(uo,function(y,P,V,X){u.push(V?X.replace(_o,"$1"):P||y)}),u});function Ds(a){if(typeof a=="string"||Yo(a))return a;var u=a+"";return u=="0"&&1/a==-Fe?"-0":u}function hc(a){if(a!=null){try{return Gi.call(a)}catch{}try{return a+""}catch{}}return""}function cD(a,u){return oe(Re,function(y){var P="_."+y[0];u&y[1]&&!Ee(a,P)&&a.push(P)}),a.sort()}function gb(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 fD(a,u,y){(y?to(a,u,y):u===n)?u=1:u=Nn(en(u),0);var P=a==null?0:a.length;if(!P||u<1)return[];for(var V=0,X=0,se=fe(Gs(P/u));V<P;)se[X++]=oi(a,V,V+=u);return se}function dD(a){for(var u=-1,y=a==null?0:a.length,P=0,V=[];++u<y;){var X=a[u];X&&(V[P++]=X)}return V}function hD(){var a=arguments.length;if(!a)return[];for(var u=fe(a-1),y=arguments[0],P=a;P--;)u[P-1]=arguments[P];return Pt(Xt(y)?vr(y):[y],gr(u,1))}var pD=Gt(function(a,u){return mr(a)?Ho(a,gr(u,1,mr,!0)):[]}),gD=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)):[]}),vD=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 mD(a,u,y){var P=a==null?0:a.length;return P?(u=y||u===n?1:en(u),oi(a,u<0?0:u,P)):[]}function yD(a,u,y){var P=a==null?0:a.length;return P?(u=y||u===n?1:en(u),u=P-u,oi(a,0,u<0?0:u)):[]}function bD(a,u){return a&&a.length?rl(a,Rt(u,3),!0,!0):[]}function wD(a,u){return a&&a.length?rl(a,Rt(u,3),!0):[]}function xD(a,u,y,P){var V=a==null?0:a.length;return V?(y&&typeof y!="number"&&to(a,u,y)&&(y=0,P=V),Zc(a,u,y,P)):[]}function vb(a,u,y){var P=a==null?0:a.length;if(!P)return-1;var V=y==null?0:en(y);return V<0&&(V=Nn(P+V,0)),zt(a,Rt(u,3),V)}function mb(a,u,y){var P=a==null?0:a.length;if(!P)return-1;var V=P-1;return y!==n&&(V=en(y),V=y<0?Nn(P+V,0):Fn(V,P-1)),zt(a,Rt(u,3),V,!0)}function yb(a){var u=a==null?0:a.length;return u?gr(a,1):[]}function SD(a){var u=a==null?0:a.length;return u?gr(a,Fe):[]}function TD(a,u){var y=a==null?0:a.length;return y?(u=u===n?1:en(u),gr(a,u)):[]}function CD(a){for(var u=-1,y=a==null?0:a.length,P={};++u<y;){var V=a[u];P[V[0]]=V[1]}return P}function bb(a){return a&&a.length?a[0]:n}function ED(a,u,y){var P=a==null?0:a.length;if(!P)return-1;var V=y==null?0:en(y);return V<0&&(V=Nn(P+V,0)),on(a,u,V)}function kD(a){var u=a==null?0:a.length;return u?oi(a,0,-1):[]}var OD=Gt(function(a){var u=ct(a,Yr);return u.length&&u[0]===a[0]?xs(u):[]}),DD=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]?xs(y,Rt(u,2)):[]}),PD=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]?xs(y,n,u):[]});function _D(a,u){return a==null?"":vs.call(a,u)}function ba(a){var u=a==null?0:a.length;return u?a[u-1]:n}function RD(a,u,y){var P=a==null?0:a.length;if(!P)return-1;var V=P;return y!==n&&(V=en(y),V=V<0?Nn(P+V,0):Fn(V,P-1)),u===u?ua(a,u,V):zt(a,go,V,!0)}function ID(a,u){return a&&a.length?Xa(a,en(u)):n}var AD=Gt(wb);function wb(a,u){return a&&a.length&&u&&u.length?Ka(a,u):a}function MD(a,u,y){return a&&a.length&&u&&u.length?Ka(a,u,Rt(y,2)):a}function LD(a,u,y){return a&&a.length&&u&&u.length?Ka(a,u,n,y):a}var ND=mu(function(a,u){var y=a==null?0:a.length,P=zl(a,u);return au(a,ct(u,function(V){return yu(V,y)?+V:V}).sort(Os)),P});function FD(a,u){var y=[];if(!(a&&a.length))return y;var P=-1,V=[],X=a.length;for(u=Rt(u,3);++P<X;){var se=a[P];u(se,P,a)&&(y.push(se),V.push(P))}return au(a,V),y}function gg(a){return a==null?a:Wc.call(a)}function jD(a,u,y){var P=a==null?0:a.length;return P?(y&&typeof y!="number"&&to(a,u,y)?(u=0,y=P):(u=u==null?0:en(u),y=y===n?P:en(y)),oi(a,u,y)):[]}function BD(a,u){return uu(a,u)}function $D(a,u,y){return lu(a,u,Rt(y,2))}function VD(a,u){var y=a==null?0:a.length;if(y){var P=uu(a,u);if(P<y&&Ja(a[P],u))return P}return-1}function HD(a,u){return uu(a,u,!0)}function UD(a,u,y){return lu(a,u,Rt(y,2),!0)}function WD(a,u){var y=a==null?0:a.length;if(y){var P=uu(a,u,!0)-1;if(Ja(a[P],u))return P}return-1}function zD(a){return a&&a.length?rf(a):[]}function YD(a,u){return a&&a.length?rf(a,Rt(u,2)):[]}function GD(a){var u=a==null?0:a.length;return u?oi(a,1,u):[]}function qD(a,u,y){return a&&a.length?(u=y||u===n?1:en(u),oi(a,0,u<0?0:u)):[]}function XD(a,u,y){var P=a==null?0:a.length;return P?(u=y||u===n?1:en(u),u=P-u,oi(a,u<0?0:u,P)):[]}function KD(a,u){return a&&a.length?rl(a,Rt(u,3),!1,!0):[]}function ZD(a,u){return a&&a.length?rl(a,Rt(u,3)):[]}var JD=Gt(function(a){return ya(gr(a,1,mr,!0))}),QD=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),ya(gr(a,1,mr,!0),Rt(u,2))}),eP=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,ya(gr(a,1,mr,!0),n,u)});function tP(a){return a&&a.length?ya(a):[]}function nP(a,u){return a&&a.length?ya(a,Rt(u,2)):[]}function rP(a,u){return u=typeof u=="function"?u:n,a&&a.length?ya(a,n,u):[]}function vg(a){if(!(a&&a.length))return[];var u=0;return a=je(a,function(y){if(mr(y))return u=Nn(y.length,u),!0}),Ce(u,function(y){return ct(a,k(y))})}function xb(a,u){if(!(a&&a.length))return[];var y=vg(a);return u==null?y:ct(y,function(P){return H(u,n,P)})}var iP=Gt(function(a,u){return mr(a)?Ho(a,u):[]}),oP=Gt(function(a){return cu(je(a,mr))}),aP=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),cu(je(a,mr),Rt(u,2))}),sP=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,cu(je(a,mr),n,u)}),uP=Gt(vg);function lP(a,u){return sc(a||[],u||[],$n)}function cP(a,u){return sc(a||[],u||[],Za)}var fP=Gt(function(a){var u=a.length,y=u>1?a[u-1]:n;return y=typeof y=="function"?(a.pop(),y):n,xb(a,y)});function Sb(a){var u=G(a);return u.__chain__=!0,u}function dP(a,u){return u(a),a}function eh(a,u){return u(a)}var hP=mu(function(a){var u=a.length,y=u?a[0]:0,P=this.__wrapped__,V=function(X){return zl(X,a)};return u>1||this.__actions__.length||!(P instanceof qt)||!yu(y)?this.thru(V):(P=P.slice(y,+y+(u?1:0)),P.__actions__.push({func:eh,args:[V],thisArg:n}),new Wr(P,this.__chain__).thru(function(X){return u&&!X.length&&X.push(n),X}))});function pP(){return Sb(this)}function gP(){return new Wr(this.value(),this.__chain__)}function vP(){this.__values__===n&&(this.__values__=Nb(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function mP(){return this}function yP(a){for(var u,y=this;y instanceof $a;){var P=gb(y);P.__index__=0,P.__values__=n,u?V.__wrapped__=P:u=P;var V=P;y=y.__wrapped__}return V.__wrapped__=a,u}function bP(){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:eh,args:[gg],thisArg:n}),new Wr(u,this.__chain__)}return this.thru(gg)}function wP(){return si(this.__wrapped__,this.__actions__)}var xP=ul(function(a,u,y){Mt.call(a,y)?++a[y]:pr(a,y,1)});function SP(a,u,y){var P=Xt(a)?Ne:Xu;return y&&to(a,u,y)&&(u=n),P(a,Rt(u,3))}function TP(a,u){var y=Xt(a)?je:Xl;return y(a,Rt(u,3))}var CP=h(vb),EP=h(mb);function kP(a,u){return gr(th(a,u),1)}function OP(a,u){return gr(th(a,u),Fe)}function DP(a,u,y){return y=y===n?1:en(y),gr(th(a,u),y)}function Tb(a,u){var y=Xt(a)?oe:ma;return y(a,Rt(u,3))}function Cb(a,u){var y=Xt(a)?we:ql;return y(a,Rt(u,3))}var PP=ul(function(a,u,y){Mt.call(a,y)?a[y].push(u):pr(a,y,[u])});function _P(a,u,y,P){a=Co(a)?a:ff(a),y=y&&!P?en(y):0;var V=a.length;return y<0&&(y=Nn(V+y,0)),ah(a)?y<=V&&a.indexOf(u,y)>-1:!!V&&on(a,u,y)>-1}var RP=Gt(function(a,u,y){var P=-1,V=typeof u=="function",X=Co(a)?fe(a.length):[];return ma(a,function(se){X[++P]=V?H(u,se,y):Pi(se,u,y)}),X}),IP=ul(function(a,u,y){pr(a,y,u)});function th(a,u){var y=Xt(a)?ct:Cs;return y(a,Rt(u,3))}function AP(a,u,y,P){return a==null?[]:(Xt(u)||(u=u==null?[]:[u]),y=P?n:y,Xt(y)||(y=y==null?[]:[y]),el(a,u,y))}var MP=ul(function(a,u,y){a[y?0:1].push(u)},function(){return[[],[]]});function LP(a,u,y){var P=Xt(a)?It:W,V=arguments.length<3;return P(a,Rt(u,4),y,V,ma)}function NP(a,u,y){var P=Xt(a)?Mn:W,V=arguments.length<3;return P(a,Rt(u,4),y,V,ql)}function FP(a,u){var y=Xt(a)?je:Xl;return y(a,ih(Rt(u,3)))}function jP(a){var u=Xt(a)?un:su;return u(a)}function BP(a,u,y){(y?to(a,u,y):u===n)?u=1:u=en(u);var P=Xt(a)?Oi:tf;return P(a,u)}function $P(a){var u=Xt(a)?Ua:oc;return u(a)}function VP(a){if(a==null)return 0;if(Co(a))return ah(a)?mo(a):a.length;var u=Ii(a);return u==Ht||u==rr?a.size:ou(a).length}function HP(a,u,y){var P=Xt(a)?dn:nf;return y&&to(a,u,y)&&(u=n),P(a,Rt(u,3))}var UP=Gt(function(a,u){if(a==null)return[];var y=u.length;return y>1&&to(a,u[0],u[1])?u=[]:y>2&&to(u[0],u[1],u[2])&&(u=[u[0]]),el(a,gr(u,1),[])}),nh=Ys||function(){return yn.Date.now()};function WP(a,u){if(typeof u!="function")throw new Yt(s);return a=en(a),function(){if(--a<1)return u.apply(this,arguments)}}function Eb(a,u,y){return u=y?n:u,u=a&&u==null?a.length:u,qn(a,x,n,n,n,n,u)}function kb(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 mg=Gt(function(a,u,y){var P=L;if(y.length){var V=xi(y,lf(mg));P|=J}return qn(a,P,u,y,V)}),Ob=Gt(function(a,u,y){var P=L|I;if(y.length){var V=xi(y,lf(Ob));P|=J}return qn(u,P,a,y,V)});function Db(a,u,y){u=y?n:u;var P=qn(a,Y,n,n,n,n,n,u);return P.placeholder=Db.placeholder,P}function Pb(a,u,y){u=y?n:u;var P=qn(a,ne,n,n,n,n,n,u);return P.placeholder=Pb.placeholder,P}function _b(a,u,y){var P,V,X,se,ve,Se,qe=0,Ke=!1,rt=!1,pt=!0;if(typeof a!="function")throw new Yt(s);u=wa(u)||0,tr(y)&&(Ke=!!y.leading,rt="maxWait"in y,X=rt?Nn(wa(y.maxWait)||0,u):X,pt="trailing"in y?!!y.trailing:pt);function Ot(yr){var Qa=P,xu=V;return P=V=n,qe=yr,se=a.apply(xu,Qa),se}function Lt(yr){return qe=yr,ve=qf(rn,u),Ke?Ot(yr):se}function tn(yr){var Qa=yr-Se,xu=yr-qe,Xb=u-Qa;return rt?Fn(Xb,X-xu):Xb}function Nt(yr){var Qa=yr-Se,xu=yr-qe;return Se===n||Qa>=u||Qa<0||rt&&xu>=X}function rn(){var yr=nh();if(Nt(yr))return an(yr);ve=qf(rn,tn(yr))}function an(yr){return ve=n,pt&&P?Ot(yr):(P=V=n,se)}function Go(){ve!==n&&du(ve),qe=0,P=Se=V=ve=n}function no(){return ve===n?se:an(nh())}function qo(){var yr=nh(),Qa=Nt(yr);if(P=arguments,V=this,Se=yr,Qa){if(ve===n)return Lt(Se);if(rt)return du(ve),ve=qf(rn,u),Ot(Se)}return ve===n&&(ve=qf(rn,u)),se}return qo.cancel=Go,qo.flush=no,qo}var zP=Gt(function(a,u){return Gl(a,1,u)}),YP=Gt(function(a,u,y){return Gl(a,wa(u)||0,y)});function GP(a){return qn(a,le)}function rh(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Yt(s);var y=function(){var P=arguments,V=u?u.apply(this,P):P[0],X=y.cache;if(X.has(V))return X.get(V);var se=a.apply(this,P);return y.cache=X.set(V,se)||X,se};return y.cache=new(rh.Cache||$o),y}rh.Cache=$o;function ih(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 qP(a){return kb(2,a)}var XP=Yf(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(P){for(var V=-1,X=Fn(P.length,y);++V<X;)P[V]=u[V].call(this,P[V]);return H(a,this,P)})}),yg=Gt(function(a,u){var y=xi(u,lf(yg));return qn(a,J,n,u,y)}),Rb=Gt(function(a,u){var y=xi(u,lf(Rb));return qn(a,de,n,u,y)}),KP=mu(function(a,u){return qn(a,ye,n,n,n,u)});function ZP(a,u){if(typeof a!="function")throw new Yt(s);return u=u===n?u:en(u),Gt(a,u)}function JP(a,u){if(typeof a!="function")throw new Yt(s);return u=u==null?0:Nn(en(u),0),Gt(function(y){var P=y[u],V=eo(y,0,u);return P&&Pt(V,P),H(a,this,V)})}function QP(a,u,y){var P=!0,V=!0;if(typeof a!="function")throw new Yt(s);return tr(y)&&(P="leading"in y?!!y.leading:P,V="trailing"in y?!!y.trailing:V),_b(a,u,{leading:P,maxWait:u,trailing:V})}function e_(a){return Eb(a,1)}function t_(a,u){return yg(fu(u),a)}function n_(){if(!arguments.length)return[];var a=arguments[0];return Xt(a)?a:[a]}function r_(a){return zr(a,T)}function i_(a,u){return u=typeof u=="function"?u:n,zr(a,T,u)}function o_(a){return zr(a,p|T)}function a_(a,u){return u=typeof u=="function"?u:n,zr(a,p|T,u)}function s_(a,u){return u==null||Kc(a,u,ui(u))}function Ja(a,u){return a===u||a!==a&&u!==u}var u_=ht(tu),l_=ht(function(a,u){return a>=u}),pc=iu(function(){return arguments}())?iu:function(a){return ur(a)&&Mt.call(a,"callee")&&!Fl.call(a,"callee")},Xt=fe.isArray,c_=f?xt(f):Ju;function Co(a){return a!=null&&oh(a.length)&&!bu(a)}function mr(a){return ur(a)&&Co(a)}function f_(a){return a===!0||a===!1||ur(a)&&kr(a)==mt}var ll=jl||Pg,d_=m?xt(m):Ga;function h_(a){return ur(a)&&a.nodeType===1&&!Xf(a)}function p_(a){if(a==null)return!0;if(Co(a)&&(Xt(a)||typeof a=="string"||typeof a.splice=="function"||ll(a)||cf(a)||pc(a)))return!a.length;var u=Ii(a);if(u==Ht||u==rr)return!a.size;if(Gf(a))return!ou(a).length;for(var y in a)if(Mt.call(a,y))return!1;return!0}function g_(a,u){return Ss(a,u)}function v_(a,u,y){y=typeof y=="function"?y:n;var P=y?y(a,u):n;return P===n?Ss(a,u,n,y):!!P}function bg(a){if(!ur(a))return!1;var u=kr(a);return u==Et||u==vt||typeof a.message=="string"&&typeof a.name=="string"&&!Xf(a)}function m_(a){return typeof a=="number"&&Bl(a)}function bu(a){if(!tr(a))return!1;var u=kr(a);return u==ot||u==$t||u==lt||u==Fi}function Ib(a){return typeof a=="number"&&a==en(a)}function oh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=Je}function tr(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function ur(a){return a!=null&&typeof a=="object"}var Ab=C?xt(C):qa;function y_(a,u){return a===u||ec(a,u,lg(u))}function b_(a,u,y){return y=typeof y=="function"?y:n,ec(a,u,lg(u),y)}function w_(a){return Mb(a)&&a!=+a}function x_(a){if(iD(a))throw new We(o);return tc(a)}function S_(a){return a===null}function T_(a){return a==null}function Mb(a){return typeof a=="number"||ur(a)&&kr(a)==Xn}function Xf(a){if(!ur(a)||kr(a)!=Kn)return!1;var u=ps(a);if(u===null)return!0;var y=Mt.call(u,"constructor")&&u.constructor;return typeof y=="function"&&y instanceof y&&Gi.call(y)==Ll}var wg=O?xt(O):So;function C_(a){return Ib(a)&&a>=-Je&&a<=Je}var Lb=F?xt(F):Wf;function ah(a){return typeof a=="string"||!Xt(a)&&ur(a)&&kr(a)==cn}function Yo(a){return typeof a=="symbol"||ur(a)&&kr(a)==hn}var cf=B?xt(B):zf;function E_(a){return a===n}function k_(a){return ur(a)&&Ii(a)==gt}function O_(a){return ur(a)&&kr(a)==Rn}var D_=ht(Ji),P_=ht(function(a,u){return a<=u});function Nb(a){if(!a)return[];if(Co(a))return ah(a)?hr(a):vr(a);if(No&&a[No])return vo(a[No]());var u=Ii(a),y=u==Ht?us:u==rr?Yi:ff;return y(a)}function wu(a){if(!a)return a===0?a:0;if(a=wa(a),a===Fe||a===-Fe){var u=a<0?-1:1;return u*it}return a===a?a:0}function en(a){var u=wu(a),y=u%1;return u===u?y?u-y:u:0}function Fb(a){return a?va(en(a),0,xe):0}function wa(a){if(typeof a=="number")return a;if(Yo(a))return Oe;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=tt(a);var y=fo.test(a);return y||Jr.test(a)?Fa(a.slice(2),y?2:8):Ci.test(a)?Oe:+a}function jb(a){return To(a,Eo(a))}function __(a){return a?va(en(a),-Je,Je):a===0?a:0}function bn(a){return a==null?"":ai(a)}var R_=g(function(a,u){if(Gf(u)||Co(u)){To(u,ui(u),a);return}for(var y in u)Mt.call(u,y)&&$n(a,y,u[y])}),Bb=g(function(a,u){To(u,Eo(u),a)}),sh=g(function(a,u,y,P){To(u,Eo(u),a,P)}),I_=g(function(a,u,y,P){To(u,ui(u),a,P)}),A_=mu(zl);function M_(a,u){var y=pa(a);return u==null?y:Zi(y,u)}var L_=Gt(function(a,u){a=ut(a);var y=-1,P=u.length,V=P>2?u[2]:n;for(V&&to(u[0],u[1],V)&&(P=1);++y<P;)for(var X=u[y],se=Eo(X),ve=-1,Se=se.length;++ve<Se;){var qe=se[ve],Ke=a[qe];(Ke===n||Ja(Ke,Gn[qe])&&!Mt.call(a,qe))&&(a[qe]=X[qe])}return a}),N_=Gt(function(a){return a.push(n,fc),H($b,n,a)});function F_(a,u){return Vr(a,Rt(u,3),xo)}function j_(a,u){return Vr(a,Rt(u,3),Zl)}function B_(a,u){return a==null?a:Kl(a,Rt(u,3),Eo)}function $_(a,u){return a==null?a:Jc(a,Rt(u,3),Eo)}function V_(a,u){return a&&xo(a,Rt(u,3))}function H_(a,u){return a&&Zl(a,Rt(u,3))}function U_(a){return a==null?[]:Zu(a,ui(a))}function W_(a){return a==null?[]:Zu(a,Eo(a))}function xg(a,u,y){var P=a==null?n:Ya(a,u);return P===n?y:P}function z_(a,u){return a!=null&&ob(a,u,nu)}function Sg(a,u){return a!=null&&ob(a,u,Qc)}var Y_=M(function(a,u,y){u!=null&&typeof u.toString!="function"&&(u=la.call(u)),a[u]=y},Cg(ko)),G_=M(function(a,u,y){u!=null&&typeof u.toString!="function"&&(u=la.call(u)),Mt.call(a,u)?a[u].push(y):a[u]=[y]},Rt),q_=Gt(Pi);function ui(a){return Co(a)?ga(a):ou(a)}function Eo(a){return Co(a)?ga(a,!0):Qu(a)}function X_(a,u){var y={};return u=Rt(u,3),xo(a,function(P,V,X){pr(y,u(P,V,X),P)}),y}function K_(a,u){var y={};return u=Rt(u,3),xo(a,function(P,V,X){pr(y,V,u(P,V,X))}),y}var Z_=g(function(a,u,y){Es(a,u,y)}),$b=g(function(a,u,y,P){Es(a,u,y,P)}),J_=mu(function(a,u){var y={};if(a==null)return y;var P=!1;u=ct(u,function(X){return X=zo(X,a),P||(P=X.length>1),X}),To(a,sg(a),y),P&&(y=zr(y,p|S|T,uf));for(var V=u.length;V--;)ac(y,u[V]);return y});function Q_(a,u){return Vb(a,ih(Rt(u)))}var eR=mu(function(a,u){return a==null?{}:Ri(a,u)});function Vb(a,u){if(a==null)return{};var y=ct(sg(a),function(P){return[P]});return u=Rt(u),Wo(a,y,function(P,V){return u(P,V[0])})}function tR(a,u,y){u=zo(u,a);var P=-1,V=u.length;for(V||(V=1,a=n);++P<V;){var X=a==null?n:a[Ds(u[P])];X===n&&(P=V,X=y),a=bu(X)?X.call(a):X}return a}function nR(a,u,y){return a==null?a:Za(a,u,y)}function rR(a,u,y,P){return P=typeof P=="function"?P:n,a==null?a:Za(a,u,y,P)}var Hb=sr(ui),Ub=sr(Eo);function iR(a,u,y){var P=Xt(a),V=P||ll(a)||cf(a);if(u=Rt(u,4),y==null){var X=a&&a.constructor;V?y=P?new X:[]:tr(a)?y=bu(X)?pa(ps(a)):{}:y={}}return(V?oe:xo)(a,function(se,ve,Se){return u(y,se,ve,Se)}),y}function oR(a,u){return a==null?!0:ac(a,u)}function aR(a,u,y){return a==null?a:nl(a,u,fu(y))}function sR(a,u,y,P){return P=typeof P=="function"?P:n,a==null?a:nl(a,u,fu(y),P)}function ff(a){return a==null?[]:Ft(a,ui(a))}function uR(a){return a==null?[]:Ft(a,Eo(a))}function lR(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 cR(a,u,y){return u=wu(u),y===n?(y=u,u=0):y=wu(y),a=wa(a),ru(a,u,y)}function fR(a,u,y){if(y&&typeof y!="boolean"&&to(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=wu(a),u===n?(u=a,a=0):u=wu(u)),a>u){var P=a;a=u,u=P}if(y||a%1||u%1){var V=jo();return Fn(a+V*(u-a+dr("1e-"+((V+"").length-1))),u)}return tl(a,u)}var dR=ae(function(a,u,y){return u=u.toLowerCase(),a+(y?Wb(u):u)});function Wb(a){return Tg(bn(a).toLowerCase())}function zb(a){return a=bn(a),a&&a.replace(Ir,Yn).replace(Ma,"")}function hR(a,u,y){a=bn(a),u=ai(u);var P=a.length;y=y===n?P:va(en(y),0,P);var V=y;return y-=u.length,y>=0&&a.slice(y,V)==u}function pR(a){return a=bn(a),a&&Vi.test(a)?a.replace(Zt,oa):a}function gR(a){return a=bn(a),a&&pi.test(a)?a.replace(xr,"\\$&"):a}var vR=ae(function(a,u,y){return a+(y?"-":"")+u.toLowerCase()}),mR=ae(function(a,u,y){return a+(y?" ":"")+u.toLowerCase()}),yR=K("toLowerCase");function bR(a,u,y){a=bn(a),u=en(u);var P=u?mo(a):0;if(!u||P>=u)return a;var V=(u-P)/2;return ce(gs(V),y)+a+ce(Gs(V),y)}function wR(a,u,y){a=bn(a),u=en(u);var P=u?mo(a):0;return u&&P<u?a+ce(u-P,y):a}function xR(a,u,y){a=bn(a),u=en(u);var P=u?mo(a):0;return u&&P<u?ce(u-P,y)+a:a}function SR(a,u,y){return y||u==null?u=0:u&&(u=+u),Hl(bn(a).replace(fn,""),u||0)}function TR(a,u,y){return(y?to(a,u,y):u===n)?u=1:u=en(u),rc(bn(a),u)}function CR(){var a=arguments,u=bn(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var ER=ae(function(a,u,y){return a+(y?"_":"")+u.toLowerCase()});function kR(a,u,y){return y&&typeof y!="number"&&to(a,u,y)&&(u=y=n),y=y===n?xe:y>>>0,y?(a=bn(a),a&&(typeof u=="string"||u!=null&&!wg(u))&&(u=ai(u),!u&&ii(a))?eo(hr(a),0,y):a.split(u,y)):[]}var OR=ae(function(a,u,y){return a+(y?" ":"")+Tg(u)});function DR(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 PR(a,u,y){var P=G.templateSettings;y&&to(a,u,y)&&(u=n),a=bn(a),u=sh({},u,P,cc);var V=sh({},u.imports,P.imports,cc),X=ui(V),se=Ft(V,X),ve,Se,qe=0,Ke=u.interpolate||Qr,rt="__p += '",pt=At((u.escape||Qr).source+"|"+Ke.source+"|"+(Ke===di?Ti:Qr).source+"|"+(u.evaluate||Qr).source+"|$","g"),Ot="//# sourceURL="+(Mt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+`
|
|
151
|
+
`;a.replace(pt,function(Nt,rn,an,Go,no,qo){return an||(an=Go),rt+=a.slice(qe,qo).replace(Ar,ss),rn&&(ve=!0,rt+=`' +
|
|
152
|
+
__e(`+rn+`) +
|
|
153
|
+
'`),no&&(Se=!0,rt+=`';
|
|
154
|
+
`+no+`;
|
|
155
|
+
__p += '`),an&&(rt+=`' +
|
|
156
|
+
((__t = (`+an+`)) == null ? '' : __t) +
|
|
157
|
+
'`),qe=qo+Nt.length,Nt}),rt+=`';
|
|
158
|
+
`;var Lt=Mt.call(u,"variable")&&u.variable;if(!Lt)rt=`with (obj) {
|
|
159
|
+
`+rt+`
|
|
160
|
+
}
|
|
161
|
+
`;else if(co.test(Lt))throw new We(l);rt=(Se?rt.replace(Po,""):rt).replace(Zn,"$1").replace(Kr,"$1;"),rt="function("+(Lt||"obj")+`) {
|
|
162
|
+
`+(Lt?"":`obj || (obj = {});
|
|
163
|
+
`)+"var __t, __p = ''"+(ve?", __e = _.escape":"")+(Se?`, __j = Array.prototype.join;
|
|
164
|
+
function print() { __p += __j.call(arguments, '') }
|
|
165
|
+
`:`;
|
|
166
|
+
`)+rt+`return __p
|
|
167
|
+
}`;var tn=Gb(function(){return ft(X,Ot+"return "+rt).apply(n,se)});if(tn.source=rt,bg(tn))throw tn;return tn}function _R(a){return bn(a).toLowerCase()}function RR(a){return bn(a).toUpperCase()}function IR(a,u,y){if(a=bn(a),a&&(y||u===n))return tt(a);if(!a||!(u=ai(u)))return a;var P=hr(a),V=hr(u),X=Ct(P,V),se=Bn(P,V)+1;return eo(P,X,se).join("")}function AR(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 P=hr(a),V=Bn(P,hr(u))+1;return eo(P,0,V).join("")}function MR(a,u,y){if(a=bn(a),a&&(y||u===n))return a.replace(fn,"");if(!a||!(u=ai(u)))return a;var P=hr(a),V=Ct(P,hr(u));return eo(P,V).join("")}function LR(a,u){var y=Qe,P=ze;if(tr(u)){var V="separator"in u?u.separator:V;y="length"in u?en(u.length):y,P="omission"in u?ai(u.omission):P}a=bn(a);var X=a.length;if(ii(a)){var se=hr(a);X=se.length}if(y>=X)return a;var ve=y-mo(P);if(ve<1)return P;var Se=se?eo(se,0,ve).join(""):a.slice(0,ve);if(V===n)return Se+P;if(se&&(ve+=Se.length-ve),wg(V)){if(a.slice(ve).search(V)){var qe,Ke=Se;for(V.global||(V=At(V.source,bn(gi.exec(V))+"g")),V.lastIndex=0;qe=V.exec(Ke);)var rt=qe.index;Se=Se.slice(0,rt===n?ve:rt)}}else if(a.indexOf(ai(V),ve)!=ve){var pt=Se.lastIndexOf(V);pt>-1&&(Se=Se.slice(0,pt))}return Se+P}function NR(a){return a=bn(a),a&&fi.test(a)?a.replace(ir,ls):a}var FR=ae(function(a,u,y){return a+(y?" ":"")+u.toUpperCase()}),Tg=K("toUpperCase");function Yb(a,u,y){return a=bn(a),u=y?n:u,u===n?Hs(a)?me(a):Wt(a):a.match(u)||[]}var Gb=Gt(function(a,u){try{return H(a,n,u)}catch(y){return bg(y)?y:new We(y)}}),jR=mu(function(a,u){return oe(u,function(y){y=Ds(y),pr(a,y,mg(a[y],a))}),a});function BR(a){var u=a==null?0:a.length,y=Rt();return a=u?ct(a,function(P){if(typeof P[1]!="function")throw new Yt(s);return[y(P[0]),P[1]]}):[],Gt(function(P){for(var V=-1;++V<u;){var X=a[V];if(H(X[0],this,P))return H(X[1],this,P)}})}function $R(a){return Yl(zr(a,p))}function Cg(a){return function(){return a}}function VR(a,u){return a==null||a!==a?u:a}var HR=b(),UR=b(!0);function ko(a){return a}function Eg(a){return Ts(typeof a=="function"?a:zr(a,p))}function WR(a){return Uo(zr(a,p))}function zR(a,u){return Qi(a,zr(u,p))}var YR=Gt(function(a,u){return function(y){return Pi(y,a,u)}}),GR=Gt(function(a,u){return function(y){return Pi(a,y,u)}});function kg(a,u,y){var P=ui(u),V=Zu(u,P);y==null&&!(tr(u)&&(V.length||!P.length))&&(y=u,u=a,a=this,V=Zu(u,ui(u)));var X=!(tr(y)&&"chain"in y)||!!y.chain,se=bu(a);return oe(V,function(ve){var Se=u[ve];a[ve]=Se,se&&(a.prototype[ve]=function(){var qe=this.__chain__;if(X||qe){var Ke=a(this.__wrapped__),rt=Ke.__actions__=vr(this.__actions__);return rt.push({func:Se,args:arguments,thisArg:a}),Ke.__chain__=qe,Ke}return Se.apply(a,Pt([this.value()],arguments))})}),a}function qR(){return yn._===this&&(yn._=Pn),this}function Og(){}function XR(a){return a=en(a),Gt(function(u){return Xa(u,a)})}var KR=ie(ct),ZR=ie(Ne),JR=ie(dn);function qb(a){return fg(a)?k(Ds(a)):nc(a)}function QR(a){return function(u){return a==null?n:Ya(a,u)}}var eI=Ze(),tI=Ze(!0);function Dg(){return[]}function Pg(){return!1}function nI(){return{}}function rI(){return""}function iI(){return!0}function oI(a,u){if(a=en(a),a<1||a>Je)return[];var y=xe,P=Fn(a,xe);u=Rt(u),a-=xe;for(var V=Ce(P,u);++y<a;)u(y);return V}function aI(a){return Xt(a)?ct(a,Ds):Yo(a)?[a]:vr(pb(bn(a)))}function sI(a){var u=++Uc;return bn(a)+u}var uI=z(function(a,u){return a+u},0),lI=_t("ceil"),cI=z(function(a,u){return a/u},1),fI=_t("floor");function dI(a){return a&&a.length?Ku(a,ko,tu):n}function hI(a,u){return a&&a.length?Ku(a,Rt(u,2),tu):n}function pI(a){return Er(a,ko)}function gI(a,u){return Er(a,Rt(u,2))}function vI(a){return a&&a.length?Ku(a,ko,Ji):n}function mI(a,u){return a&&a.length?Ku(a,Rt(u,2),Ji):n}var yI=z(function(a,u){return a*u},1),bI=_t("round"),wI=z(function(a,u){return a-u},0);function xI(a){return a&&a.length?Te(a,ko):0}function SI(a,u){return a&&a.length?Te(a,Rt(u,2)):0}return G.after=WP,G.ary=Eb,G.assign=R_,G.assignIn=Bb,G.assignInWith=sh,G.assignWith=I_,G.at=A_,G.before=kb,G.bind=mg,G.bindAll=jR,G.bindKey=Ob,G.castArray=n_,G.chain=Sb,G.chunk=fD,G.compact=dD,G.concat=hD,G.cond=BR,G.conforms=$R,G.constant=Cg,G.countBy=xP,G.create=M_,G.curry=Db,G.curryRight=Pb,G.debounce=_b,G.defaults=L_,G.defaultsDeep=N_,G.defer=zP,G.delay=YP,G.difference=pD,G.differenceBy=gD,G.differenceWith=vD,G.drop=mD,G.dropRight=yD,G.dropRightWhile=bD,G.dropWhile=wD,G.fill=xD,G.filter=TP,G.flatMap=kP,G.flatMapDeep=OP,G.flatMapDepth=DP,G.flatten=yb,G.flattenDeep=SD,G.flattenDepth=TD,G.flip=GP,G.flow=HR,G.flowRight=UR,G.fromPairs=CD,G.functions=U_,G.functionsIn=W_,G.groupBy=PP,G.initial=kD,G.intersection=OD,G.intersectionBy=DD,G.intersectionWith=PD,G.invert=Y_,G.invertBy=G_,G.invokeMap=RP,G.iteratee=Eg,G.keyBy=IP,G.keys=ui,G.keysIn=Eo,G.map=th,G.mapKeys=X_,G.mapValues=K_,G.matches=WR,G.matchesProperty=zR,G.memoize=rh,G.merge=Z_,G.mergeWith=$b,G.method=YR,G.methodOf=GR,G.mixin=kg,G.negate=ih,G.nthArg=XR,G.omit=J_,G.omitBy=Q_,G.once=qP,G.orderBy=AP,G.over=KR,G.overArgs=XP,G.overEvery=ZR,G.overSome=JR,G.partial=yg,G.partialRight=Rb,G.partition=MP,G.pick=eR,G.pickBy=Vb,G.property=qb,G.propertyOf=QR,G.pull=AD,G.pullAll=wb,G.pullAllBy=MD,G.pullAllWith=LD,G.pullAt=ND,G.range=eI,G.rangeRight=tI,G.rearg=KP,G.reject=FP,G.remove=FD,G.rest=ZP,G.reverse=gg,G.sampleSize=BP,G.set=nR,G.setWith=rR,G.shuffle=$P,G.slice=jD,G.sortBy=UP,G.sortedUniq=zD,G.sortedUniqBy=YD,G.split=kR,G.spread=JP,G.tail=GD,G.take=qD,G.takeRight=XD,G.takeRightWhile=KD,G.takeWhile=ZD,G.tap=dP,G.throttle=QP,G.thru=eh,G.toArray=Nb,G.toPairs=Hb,G.toPairsIn=Ub,G.toPath=aI,G.toPlainObject=jb,G.transform=iR,G.unary=e_,G.union=JD,G.unionBy=QD,G.unionWith=eP,G.uniq=tP,G.uniqBy=nP,G.uniqWith=rP,G.unset=oR,G.unzip=vg,G.unzipWith=xb,G.update=aR,G.updateWith=sR,G.values=ff,G.valuesIn=uR,G.without=iP,G.words=Yb,G.wrap=t_,G.xor=oP,G.xorBy=aP,G.xorWith=sP,G.zip=uP,G.zipObject=lP,G.zipObjectDeep=cP,G.zipWith=fP,G.entries=Hb,G.entriesIn=Ub,G.extend=Bb,G.extendWith=sh,kg(G,G),G.add=uI,G.attempt=Gb,G.camelCase=dR,G.capitalize=Wb,G.ceil=lI,G.clamp=lR,G.clone=r_,G.cloneDeep=o_,G.cloneDeepWith=a_,G.cloneWith=i_,G.conformsTo=s_,G.deburr=zb,G.defaultTo=VR,G.divide=cI,G.endsWith=hR,G.eq=Ja,G.escape=pR,G.escapeRegExp=gR,G.every=SP,G.find=CP,G.findIndex=vb,G.findKey=F_,G.findLast=EP,G.findLastIndex=mb,G.findLastKey=j_,G.floor=fI,G.forEach=Tb,G.forEachRight=Cb,G.forIn=B_,G.forInRight=$_,G.forOwn=V_,G.forOwnRight=H_,G.get=xg,G.gt=u_,G.gte=l_,G.has=z_,G.hasIn=Sg,G.head=bb,G.identity=ko,G.includes=_P,G.indexOf=ED,G.inRange=cR,G.invoke=q_,G.isArguments=pc,G.isArray=Xt,G.isArrayBuffer=c_,G.isArrayLike=Co,G.isArrayLikeObject=mr,G.isBoolean=f_,G.isBuffer=ll,G.isDate=d_,G.isElement=h_,G.isEmpty=p_,G.isEqual=g_,G.isEqualWith=v_,G.isError=bg,G.isFinite=m_,G.isFunction=bu,G.isInteger=Ib,G.isLength=oh,G.isMap=Ab,G.isMatch=y_,G.isMatchWith=b_,G.isNaN=w_,G.isNative=x_,G.isNil=T_,G.isNull=S_,G.isNumber=Mb,G.isObject=tr,G.isObjectLike=ur,G.isPlainObject=Xf,G.isRegExp=wg,G.isSafeInteger=C_,G.isSet=Lb,G.isString=ah,G.isSymbol=Yo,G.isTypedArray=cf,G.isUndefined=E_,G.isWeakMap=k_,G.isWeakSet=O_,G.join=_D,G.kebabCase=vR,G.last=ba,G.lastIndexOf=RD,G.lowerCase=mR,G.lowerFirst=yR,G.lt=D_,G.lte=P_,G.max=dI,G.maxBy=hI,G.mean=pI,G.meanBy=gI,G.min=vI,G.minBy=mI,G.stubArray=Dg,G.stubFalse=Pg,G.stubObject=nI,G.stubString=rI,G.stubTrue=iI,G.multiply=yI,G.nth=ID,G.noConflict=qR,G.noop=Og,G.now=nh,G.pad=bR,G.padEnd=wR,G.padStart=xR,G.parseInt=SR,G.random=fR,G.reduce=LP,G.reduceRight=NP,G.repeat=TR,G.replace=CR,G.result=tR,G.round=bI,G.runInContext=Z,G.sample=jP,G.size=VP,G.snakeCase=ER,G.some=HP,G.sortedIndex=BD,G.sortedIndexBy=$D,G.sortedIndexOf=VD,G.sortedLastIndex=HD,G.sortedLastIndexBy=UD,G.sortedLastIndexOf=WD,G.startCase=OR,G.startsWith=DR,G.subtract=wI,G.sum=xI,G.sumBy=SI,G.template=PR,G.times=oI,G.toFinite=wu,G.toInteger=en,G.toLength=Fb,G.toLower=_R,G.toNumber=wa,G.toSafeInteger=__,G.toString=bn,G.toUpper=RR,G.trim=IR,G.trimEnd=AR,G.trimStart=MR,G.truncate=LR,G.unescape=NR,G.uniqueId=sI,G.upperCase=FR,G.upperFirst=Tg,G.each=Tb,G.eachRight=Cb,G.first=bb,kg(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:Nn(en(y),0);var P=this.__filtered__&&!u?new qt(this):this.clone();return P.__filtered__?P.__takeCount__=Fn(y,P.__takeCount__):P.__views__.push({size:Fn(y,xe),type:a+(P.__dir__<0?"Right":"")}),P},qt.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),oe(["filter","map","takeWhile"],function(a,u){var y=u+1,P=y==et||y==De;qt.prototype[a]=function(V){var X=this.clone();return X.__iteratees__.push({iteratee:Rt(V,3),type:y}),X.__filtered__=X.__filtered__||P,X}}),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(ih(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(xe)},xo(qt.prototype,function(a,u){var y=/^(?:filter|find|map|reject)|While$/.test(u),P=/^(?:head|last)$/.test(u),V=G[P?"take"+(u=="last"?"Right":""):u],X=P||/^find/.test(u);V&&(G.prototype[u]=function(){var se=this.__wrapped__,ve=P?[1]:arguments,Se=se instanceof qt,qe=ve[0],Ke=Se||Xt(se),rt=function(rn){var an=V.apply(G,Pt([rn],ve));return P&&pt?an[0]:an};Ke&&y&&typeof qe=="function"&&qe.length!=1&&(Se=Ke=!1);var pt=this.__chain__,Ot=!!this.__actions__.length,Lt=X&&!pt,tn=Se&&!Ot;if(!X&&Ke){se=tn?se:new qt(this);var Nt=a.apply(se,ve);return Nt.__actions__.push({func:eh,args:[rt],thisArg:n}),new Wr(Nt,pt)}return Lt&&tn?a.apply(this,ve):(Nt=this.thru(rt),Lt?P?Nt.value()[0]:Nt.value():Nt)})}),oe(["pop","push","shift","sort","splice","unshift"],function(a){var u=Ln[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",P=/^(?:pop|shift)$/.test(a);G.prototype[a]=function(){var V=arguments;if(P&&!this.__chain__){var X=this.value();return u.apply(Xt(X)?X:[],V)}return this[y](function(se){return u.apply(Xt(se)?se:[],V)})}}),xo(qt.prototype,function(a,u){var y=G[u];if(y){var P=y.name+"";Mt.call(ha,P)||(ha[P]=[]),ha[P].push({name:u,func:y})}}),ha[D(n,I).name]=[{name:"wrapper",func:n}],qt.prototype.clone=Vu,qt.prototype.reverse=ys,qt.prototype.value=Qs,G.prototype.at=hP,G.prototype.chain=pP,G.prototype.commit=gP,G.prototype.next=vP,G.prototype.plant=yP,G.prototype.reverse=bP,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=wP,G.prototype.first=G.prototype.head,No&&(G.prototype[No]=mP),G},ke=_e();wi?((wi.exports=ke)._=ke,Lo._=ke):yn._=ke}).call(Ko)})(Tp,Tp.exports);var cO=Tp.exports;const l4=Bc(cO);function r1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function c4(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function f4(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),S=c+1;S<=p&&!t(S);S++)c=S;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 d4=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},h4=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)},i1=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},g4=function(e){p4(t,e);function t(){var n,r,i,o;d4(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=i1(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"&&((!r1(v)||!r1(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),i1(i,o)}return h4(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,S=f4({isItemLoaded:s,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-p),stopIndex:Math.min(l-1,i+p)});(this._memoizedUnloadedRanges.length!==S.length||this._memoizedUnloadedRanges.some(function(T,_){return S[_]!==T}))&&(this._memoizedUnloadedRanges=S,this._loadUnloadedRanges(S))}},{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],S=o(v,p);S!=null&&S.then(function(){if(c4({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}(Q.PureComponent),fO={exports:{}};/*!
|
|
168
|
+
* jQuery JavaScript Library v3.7.1
|
|
169
|
+
* https://jquery.com/
|
|
170
|
+
*
|
|
171
|
+
* Copyright OpenJS Foundation and other contributors
|
|
172
|
+
* Released under the MIT license
|
|
173
|
+
* https://jquery.org/license
|
|
174
|
+
*
|
|
175
|
+
* Date: 2023-08-28T13:37Z
|
|
176
|
+
*/(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,S=p.toString,T=S.call(Object),_={},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 Y(f,m,C){C=C||I;var O,F,B=C.createElement("script");if(B.text=f,m)for(O in U)F=m[O]||m.getAttribute&&m.getAttribute(O),F&&B.setAttribute(O,F);C.head.appendChild(B).parentNode.removeChild(B)}function ne(f){return f==null?f+"":typeof f=="object"||typeof f=="function"?d[v.call(f)]||"object":typeof f}var J="3.7.1",de=/HTML$/i,x=function(f,m){return new x.fn.init(f,m)};x.fn=x.prototype={jquery:J,constructor:x,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=x.merge(this.constructor(),f);return m.prevObject=this,m},each:function(f){return x.each(this,f)},map:function(f){return this.pushStack(x.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(x.grep(this,function(f,m){return(m+1)%2}))},odd:function(){return this.pushStack(x.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},x.extend=x.fn.extend=function(){var f,m,C,O,F,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)O=f[m],!(m==="__proto__"||H===O)&&(we&&O&&(x.isPlainObject(O)||(F=Array.isArray(O)))?(C=H[m],F&&!Array.isArray(C)?B=[]:!F&&!x.isPlainObject(C)?B={}:B=C,F=!1,H[m]=x.extend(we,B,O)):O!==void 0&&(H[m]=O));return H},x.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"&&S.call(C)===T):!0)},isEmptyObject:function(f){var m;for(m in f)return!1;return!0},globalEval:function(f,m,C){Y(f,{nonce:m&&m.nonce},C)},each:function(f,m){var C,O=0;if(ye(f))for(C=f.length;O<C&&m.call(f[O],O,f[O])!==!1;O++);else for(O in f)if(m.call(f[O],O,f[O])===!1)break;return f},text:function(f){var m,C="",O=0,F=f.nodeType;if(!F)for(;m=f[O++];)C+=x.text(m);return F===1||F===11?f.textContent:F===9?f.documentElement.textContent:F===3||F===4?f.nodeValue:C},makeArray:function(f,m){var C=m||[];return f!=null&&(ye(Object(f))?x.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!de.test(m||C&&C.nodeName||"HTML")},merge:function(f,m){for(var C=+m.length,O=0,F=f.length;O<C;O++)f[F++]=m[O];return f.length=F,f},grep:function(f,m,C){for(var O,F=[],B=0,H=f.length,ue=!C;B<H;B++)O=!m(f[B],B),O!==ue&&F.push(f[B]);return F},map:function(f,m,C){var O,F,B=0,H=[];if(ye(f))for(O=f.length;B<O;B++)F=m(f[B],B,C),F!=null&&H.push(F);else for(B in f)F=m(f[B],B,C),F!=null&&H.push(F);return s(H)},guid:1,support:_}),typeof Symbol=="function"&&(x.fn[Symbol.iterator]=r[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(f,m){d["[object "+m+"]"]=m.toLowerCase()});function ye(f){var m=!!f&&"length"in f&&f.length,C=ne(f);return R(f)||L(f)?!1:C==="array"||m===0||typeof m=="number"&&m>0&&m-1 in f}function le(f,m){return f.nodeName&&f.nodeName.toLowerCase()===m.toLowerCase()}var Qe=r.pop,ze=r.sort,He=r.splice,Ye="[\\x20\\t\\r\\n\\f]",et=new RegExp("^"+Ye+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ye+"+$","g");x.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 pe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function De(f,m){return m?f==="\0"?"�":f.slice(0,-1)+"\\"+f.charCodeAt(f.length-1).toString(16)+" ":"\\"+f}x.escapeSelector=function(f){return(f+"").replace(pe,De)};var Fe=I,Je=l;(function(){var f,m,C,O,F,B=Je,H,ue,oe,we,Ne,je=x.expando,Ee=0,Ge=0,ct=Bn(),Pt=Bn(),It=Bn(),Mn=Bn(),dn=function(ee,me){return ee===me&&(F=!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}"+Ye+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Wt="\\["+Ye+"*("+$r+")(?:"+Ye+"*([*^$|!~]?=)"+Ye+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+$r+"))|)"+Ye+"*\\]",Vr=":("+$r+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Wt+")*)|.*)\\)|)",zt=new RegExp(Ye+"+","g"),on=new RegExp("^"+Ye+"*,"+Ye+"*"),po=new RegExp("^"+Ye+"*([>+~]|"+Ye+")"+Ye+"*"),go=new RegExp(Ye+"|>"),Er=new RegExp(Vr),k=new RegExp("^"+$r+"$"),N={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)(?:\\("+Ye+"*(even|odd|(([+-]|)(\\d*)n|)"+Ye+"*(?:([+-]|)"+Ye+"*(\\d+)|))"+Ye+"*\\)|)","i"),bool:new RegExp("^(?:"+Br+")$","i"),needsContext:new RegExp("^"+Ye+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ye+"*((?:-\\d)?\\d*)"+Ye+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,te=/^h\d$/i,Te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ce=/[+~]/,Be=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ye+"?|\\\\([^\\r\\n\\f])","g"),tt=function(ee,me){var _e="0x"+ee.slice(1)-65536;return me||(_e<0?String.fromCharCode(_e+65536):String.fromCharCode(_e>>10|55296,_e&1023|56320))},xt=function(){vo()},Ft=Yi(function(ee){return ee.disabled===!0&&le(ee,"fieldset")},{dir:"parentNode",next:"legend"});function Dt(){try{return H.activeElement}catch{}}try{B.apply(r=o.call(Fe.childNodes),Fe.childNodes),r[Fe.childNodes.length].nodeType}catch{B={apply:function(me,_e){Je.apply(me,o.call(_e))},call:function(me){Je.apply(me,o.call(arguments,1))}}}function Ct(ee,me,_e,ke){var Z,he,fe,$e,We,ft,dt,ut=me&&me.ownerDocument,At=me?me.nodeType:9;if(_e=_e||[],typeof ee!="string"||!ee||At!==1&&At!==9&&At!==11)return _e;if(!ke&&(vo(me),me=me||H,oe)){if(At!==11&&(We=Te.exec(ee)))if(Z=We[1]){if(At===9)if(fe=me.getElementById(Z)){if(fe.id===Z)return B.call(_e,fe),_e}else return _e;else if(ut&&(fe=ut.getElementById(Z))&&Ct.contains(me,fe)&&fe.id===Z)return B.call(_e,fe),_e}else{if(We[2])return B.apply(_e,me.getElementsByTagName(ee)),_e;if((Z=We[3])&&me.getElementsByClassName)return B.apply(_e,me.getElementsByClassName(Z)),_e}if(!Mn[ee+" "]&&(!we||!we.test(ee))){if(dt=ee,ut=me,At===1&&(go.test(ee)||po.test(ee))){for(ut=Ce.test(ee)&&Hs(me.parentNode)||me,(ut!=me||!_.scope)&&(($e=me.getAttribute("id"))?$e=x.escapeSelector($e):me.setAttribute("id",$e=je)),ft=sa(ee),he=ft.length;he--;)ft[he]=($e?"#"+$e:":scope")+" "+xi(ft[he]);dt=ft.join(",")}try{return B.apply(_e,ut.querySelectorAll(dt)),_e}catch{Mn(ee,!0)}finally{$e===je&&me.removeAttribute("id")}}}return cs(ee.replace(et,"$1"),me,_e,ke)}function Bn(){var ee=[];function me(_e,ke){return ee.push(_e+" ")>m.cacheLength&&delete me[ee.shift()],me[_e+" "]=ke}return me}function Tn(ee){return ee[je]=!0,ee}function Yn(ee){var me=H.createElement("fieldset");try{return!!ee(me)}catch{return!1}finally{me.parentNode&&me.parentNode.removeChild(me),me=null}}function oa(ee){return function(me){return le(me,"input")&&me.type===ee}}function ss(ee){return function(me){return(le(me,"input")||le(me,"button"))&&me.type===ee}}function aa(ee){return function(me){return"form"in me?me.parentNode&&me.disabled===!1?"label"in me?"label"in me.parentNode?me.parentNode.disabled===ee:me.disabled===ee:me.isDisabled===ee||me.isDisabled!==!ee&&Ft(me)===ee:me.disabled===ee:"label"in me?me.disabled===ee:!1}}function ii(ee){return Tn(function(me){return me=+me,Tn(function(_e,ke){for(var Z,he=ee([],_e.length,me),fe=he.length;fe--;)_e[Z=he[fe]]&&(_e[Z]=!(ke[Z]=_e[Z]))})})}function Hs(ee){return ee&&typeof ee.getElementsByTagName<"u"&&ee}function vo(ee){var me,_e=ee?ee.ownerDocument||ee:Fe;return _e==H||_e.nodeType!==9||!_e.documentElement||(H=_e,ue=H.documentElement,oe=!x.isXMLDoc(H),Ne=ue.matches||ue.webkitMatchesSelector||ue.msMatchesSelector,ue.msMatchesSelector&&Fe!=H&&(me=H.defaultView)&&me.top!==me&&me.addEventListener("unload",xt),_.getById=Yn(function(ke){return ue.appendChild(ke).id=x.expando,!H.getElementsByName||!H.getElementsByName(x.expando).length}),_.disconnectedMatch=Yn(function(ke){return Ne.call(ke,"*")}),_.scope=Yn(function(){return H.querySelectorAll(":scope")}),_.cssHas=Yn(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),_.getById?(m.filter.ID=function(ke){var Z=ke.replace(Be,tt);return function(he){return he.getAttribute("id")===Z}},m.find.ID=function(ke,Z){if(typeof Z.getElementById<"u"&&oe){var he=Z.getElementById(ke);return he?[he]:[]}}):(m.filter.ID=function(ke){var Z=ke.replace(Be,tt);return function(he){var fe=typeof he.getAttributeNode<"u"&&he.getAttributeNode("id");return fe&&fe.value===Z}},m.find.ID=function(ke,Z){if(typeof Z.getElementById<"u"&&oe){var he,fe,$e,We=Z.getElementById(ke);if(We){if(he=We.getAttributeNode("id"),he&&he.value===ke)return[We];for($e=Z.getElementsByName(ke),fe=0;We=$e[fe++];)if(he=We.getAttributeNode("id"),he&&he.value===ke)return[We]}return[]}}),m.find.TAG=function(ke,Z){return typeof Z.getElementsByTagName<"u"?Z.getElementsByTagName(ke):Z.querySelectorAll(ke)},m.find.CLASS=function(ke,Z){if(typeof Z.getElementsByClassName<"u"&&oe)return Z.getElementsByClassName(ke)},we=[],Yn(function(ke){var Z;ue.appendChild(ke).innerHTML="<a id='"+je+"' href='' disabled='disabled'></a><select id='"+je+"-\r\\' disabled='disabled'><option selected=''></option></select>",ke.querySelectorAll("[selected]").length||we.push("\\["+Ye+"*(?:value|"+Br+")"),ke.querySelectorAll("[id~="+je+"-]").length||we.push("~="),ke.querySelectorAll("a#"+je+"+*").length||we.push(".#.+[+~]"),ke.querySelectorAll(":checked").length||we.push(":checked"),Z=H.createElement("input"),Z.setAttribute("type","hidden"),ke.appendChild(Z).setAttribute("name","D"),ue.appendChild(ke).disabled=!0,ke.querySelectorAll(":disabled").length!==2&&we.push(":enabled",":disabled"),Z=H.createElement("input"),Z.setAttribute("name",""),ke.appendChild(Z),ke.querySelectorAll("[name='']").length||we.push("\\["+Ye+"*name"+Ye+"*="+Ye+`*(?:''|"")`)}),_.cssHas||we.push(":has"),we=we.length&&new RegExp(we.join("|")),dn=function(ke,Z){if(ke===Z)return F=!0,0;var he=!ke.compareDocumentPosition-!Z.compareDocumentPosition;return he||(he=(ke.ownerDocument||ke)==(Z.ownerDocument||Z)?ke.compareDocumentPosition(Z):1,he&1||!_.sortDetached&&Z.compareDocumentPosition(ke)===he?ke===H||ke.ownerDocument==Fe&&Ct.contains(Fe,ke)?-1:Z===H||Z.ownerDocument==Fe&&Ct.contains(Fe,Z)?1:O?c.call(O,ke)-c.call(O,Z):0:he&4?-1:1)}),H}Ct.matches=function(ee,me){return Ct(ee,null,null,me)},Ct.matchesSelector=function(ee,me){if(vo(ee),oe&&!Mn[me+" "]&&(!we||!we.test(me)))try{var _e=Ne.call(ee,me);if(_e||_.disconnectedMatch||ee.document&&ee.document.nodeType!==11)return _e}catch{Mn(me,!0)}return Ct(me,H,null,[ee]).length>0},Ct.contains=function(ee,me){return(ee.ownerDocument||ee)!=H&&vo(ee),x.contains(ee,me)},Ct.attr=function(ee,me){(ee.ownerDocument||ee)!=H&&vo(ee);var _e=m.attrHandle[me.toLowerCase()],ke=_e&&p.call(m.attrHandle,me.toLowerCase())?_e(ee,me,!oe):void 0;return ke!==void 0?ke:ee.getAttribute(me)},Ct.error=function(ee){throw new Error("Syntax error, unrecognized expression: "+ee)},x.uniqueSort=function(ee){var me,_e=[],ke=0,Z=0;if(F=!_.sortStable,O=!_.sortStable&&o.call(ee,0),ze.call(ee,dn),F){for(;me=ee[Z++];)me===ee[Z]&&(ke=_e.push(Z));for(;ke--;)He.call(ee,_e[ke],1)}return O=null,ee},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(o.apply(this)))},m=x.expr={cacheLength:50,createPseudo:Tn,match:N,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,tt),ee[3]=(ee[3]||ee[4]||ee[5]||"").replace(Be,tt),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 me,_e=!ee[6]&&ee[2];return N.CHILD.test(ee[0])?null:(ee[3]?ee[2]=ee[4]||ee[5]||"":_e&&Er.test(_e)&&(me=sa(_e,!0))&&(me=_e.indexOf(")",_e.length-me)-_e.length)&&(ee[0]=ee[0].slice(0,me),ee[2]=_e.slice(0,me)),ee.slice(0,3))}},filter:{TAG:function(ee){var me=ee.replace(Be,tt).toLowerCase();return ee==="*"?function(){return!0}:function(_e){return le(_e,me)}},CLASS:function(ee){var me=ct[ee+" "];return me||(me=new RegExp("(^|"+Ye+")"+ee+"("+Ye+"|$)"))&&ct(ee,function(_e){return me.test(typeof _e.className=="string"&&_e.className||typeof _e.getAttribute<"u"&&_e.getAttribute("class")||"")})},ATTR:function(ee,me,_e){return function(ke){var Z=Ct.attr(ke,ee);return Z==null?me==="!=":me?(Z+="",me==="="?Z===_e:me==="!="?Z!==_e:me==="^="?_e&&Z.indexOf(_e)===0:me==="*="?_e&&Z.indexOf(_e)>-1:me==="$="?_e&&Z.slice(-_e.length)===_e:me==="~="?(" "+Z.replace(zt," ")+" ").indexOf(_e)>-1:me==="|="?Z===_e||Z.slice(0,_e.length+1)===_e+"-":!1):!0}},CHILD:function(ee,me,_e,ke,Z){var he=ee.slice(0,3)!=="nth",fe=ee.slice(-4)!=="last",$e=me==="of-type";return ke===1&&Z===0?function(We){return!!We.parentNode}:function(We,ft,dt){var ut,At,kt,Yt,Ln,ar=he!==fe?"nextSibling":"previousSibling",Gn=We.parentNode,Hr=$e&&We.nodeName.toLowerCase(),Gi=!dt&&!$e,Mt=!1;if(Gn){if(he){for(;ar;){for(kt=We;kt=kt[ar];)if($e?le(kt,Hr):kt.nodeType===1)return!1;Ln=ar=ee==="only"&&!Ln&&"nextSibling"}return!0}if(Ln=[fe?Gn.firstChild:Gn.lastChild],fe&&Gi){for(At=Gn[je]||(Gn[je]={}),ut=At[ee]||[],Yt=ut[0]===Ee&&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]=[Ee,Yt,Mt];break}}else if(Gi&&(At=We[je]||(We[je]={}),ut=At[ee]||[],Yt=ut[0]===Ee&&ut[1],Mt=Yt),Mt===!1)for(;(kt=++Yt&&kt&&kt[ar]||(Mt=Yt=0)||Ln.pop())&&!(($e?le(kt,Hr):kt.nodeType===1)&&++Mt&&(Gi&&(At=kt[je]||(kt[je]={}),At[ee]=[Ee,Mt]),kt===We)););return Mt-=Z,Mt===ke||Mt%ke===0&&Mt/ke>=0}}},PSEUDO:function(ee,me){var _e,ke=m.pseudos[ee]||m.setFilters[ee.toLowerCase()]||Ct.error("unsupported pseudo: "+ee);return ke[je]?ke(me):ke.length>1?(_e=[ee,ee,"",me],m.setFilters.hasOwnProperty(ee.toLowerCase())?Tn(function(Z,he){for(var fe,$e=ke(Z,me),We=$e.length;We--;)fe=c.call(Z,$e[We]),Z[fe]=!(he[fe]=$e[We])}):function(Z){return ke(Z,0,_e)}):ke}},pseudos:{not:Tn(function(ee){var me=[],_e=[],ke=ls(ee.replace(et,"$1"));return ke[je]?Tn(function(Z,he,fe,$e){for(var We,ft=ke(Z,null,$e,[]),dt=Z.length;dt--;)(We=ft[dt])&&(Z[dt]=!(he[dt]=We))}):function(Z,he,fe){return me[0]=Z,ke(me,null,fe,_e),me[0]=null,!_e.pop()}}),has:Tn(function(ee){return function(me){return Ct(ee,me).length>0}}),contains:Tn(function(ee){return ee=ee.replace(Be,tt),function(me){return(me.textContent||x.text(me)).indexOf(ee)>-1}}),lang:Tn(function(ee){return k.test(ee||"")||Ct.error("unsupported lang: "+ee),ee=ee.replace(Be,tt).toLowerCase(),function(me){var _e;do if(_e=oe?me.lang:me.getAttribute("xml:lang")||me.getAttribute("lang"))return _e=_e.toLowerCase(),_e===ee||_e.indexOf(ee+"-")===0;while((me=me.parentNode)&&me.nodeType===1);return!1}}),target:function(ee){var me=t.location&&t.location.hash;return me&&me.slice(1)===ee.id},root:function(ee){return ee===ue},focus:function(ee){return ee===Dt()&&H.hasFocus()&&!!(ee.type||ee.href||~ee.tabIndex)},enabled:aa(!1),disabled:aa(!0),checked:function(ee){return le(ee,"input")&&!!ee.checked||le(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 te.test(ee.nodeName)},input:function(ee){return W.test(ee.nodeName)},button:function(ee){return le(ee,"input")&&ee.type==="button"||le(ee,"button")},text:function(ee){var me;return le(ee,"input")&&ee.type==="text"&&((me=ee.getAttribute("type"))==null||me.toLowerCase()==="text")},first:ii(function(){return[0]}),last:ii(function(ee,me){return[me-1]}),eq:ii(function(ee,me,_e){return[_e<0?_e+me:_e]}),even:ii(function(ee,me){for(var _e=0;_e<me;_e+=2)ee.push(_e);return ee}),odd:ii(function(ee,me){for(var _e=1;_e<me;_e+=2)ee.push(_e);return ee}),lt:ii(function(ee,me,_e){var ke;for(_e<0?ke=_e+me:_e>me?ke=me:ke=_e;--ke>=0;)ee.push(ke);return ee}),gt:ii(function(ee,me,_e){for(var ke=_e<0?_e+me:_e;++ke<me;)ee.push(ke);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]=ss(f);function us(){}us.prototype=m.filters=m.pseudos,m.setFilters=new us;function sa(ee,me){var _e,ke,Z,he,fe,$e,We,ft=Pt[ee+" "];if(ft)return me?0:ft.slice(0);for(fe=ee,$e=[],We=m.preFilter;fe;){(!_e||(ke=on.exec(fe)))&&(ke&&(fe=fe.slice(ke[0].length)||fe),$e.push(Z=[])),_e=!1,(ke=po.exec(fe))&&(_e=ke.shift(),Z.push({value:_e,type:ke[0].replace(et," ")}),fe=fe.slice(_e.length));for(he in m.filter)(ke=N[he].exec(fe))&&(!We[he]||(ke=We[he](ke)))&&(_e=ke.shift(),Z.push({value:_e,type:he,matches:ke}),fe=fe.slice(_e.length));if(!_e)break}return me?fe.length:fe?Ct.error(ee):Pt(ee,$e).slice(0)}function xi(ee){for(var me=0,_e=ee.length,ke="";me<_e;me++)ke+=ee[me].value;return ke}function Yi(ee,me,_e){var ke=me.dir,Z=me.next,he=Z||ke,fe=_e&&he==="parentNode",$e=Ge++;return me.first?function(We,ft,dt){for(;We=We[ke];)if(We.nodeType===1||fe)return ee(We,ft,dt);return!1}:function(We,ft,dt){var ut,At,kt=[Ee,$e];if(dt){for(;We=We[ke];)if((We.nodeType===1||fe)&&ee(We,ft,dt))return!0}else for(;We=We[ke];)if(We.nodeType===1||fe)if(At=We[je]||(We[je]={}),Z&&le(We,Z))We=We[ke]||We;else{if((ut=At[he])&&ut[0]===Ee&&ut[1]===$e)return kt[2]=ut[2];if(At[he]=kt,kt[2]=ee(We,ft,dt))return!0}return!1}}function Us(ee){return ee.length>1?function(me,_e,ke){for(var Z=ee.length;Z--;)if(!ee[Z](me,_e,ke))return!1;return!0}:ee[0]}function Ml(ee,me,_e){for(var ke=0,Z=me.length;ke<Z;ke++)Ct(ee,me[ke],_e);return _e}function ua(ee,me,_e,ke,Z){for(var he,fe=[],$e=0,We=ee.length,ft=me!=null;$e<We;$e++)(he=ee[$e])&&(!_e||_e(he,ke,Z))&&(fe.push(he),ft&&me.push($e));return fe}function mo(ee,me,_e,ke,Z,he){return ke&&!ke[je]&&(ke=mo(ke)),Z&&!Z[je]&&(Z=mo(Z,he)),Tn(function(fe,$e,We,ft){var dt,ut,At,kt,Yt=[],Ln=[],ar=$e.length,Gn=fe||Ml(me||"*",We.nodeType?[We]:We,[]),Hr=ee&&(fe||!me)?ua(Gn,Yt,ee,We,ft):Gn;if(_e?(kt=Z||(fe?ee:ar||ke)?[]:$e,_e(Hr,kt,We,ft)):kt=Hr,ke)for(dt=ua(kt,Ln),ke(dt,[],We,ft),ut=dt.length;ut--;)(At=dt[ut])&&(kt[Ln[ut]]=!(Hr[Ln[ut]]=At));if(fe){if(Z||ee){if(Z){for(dt=[],ut=kt.length;ut--;)(At=kt[ut])&&dt.push(Hr[ut]=At);Z(null,kt=[],dt,ft)}for(ut=kt.length;ut--;)(At=kt[ut])&&(dt=Z?c.call(fe,At):Yt[ut])>-1&&(fe[dt]=!($e[dt]=At))}}else kt=ua(kt===$e?kt.splice(ar,kt.length):kt),Z?Z(null,$e,kt,ft):B.apply($e,kt)})}function hr(ee){for(var me,_e,ke,Z=ee.length,he=m.relative[ee[0].type],fe=he||m.relative[" "],$e=he?1:0,We=Yi(function(ut){return ut===me},fe,!0),ft=Yi(function(ut){return c.call(me,ut)>-1},fe,!0),dt=[function(ut,At,kt){var Yt=!he&&(kt||At!=C)||((me=At).nodeType?We(ut,At,kt):ft(ut,At,kt));return me=null,Yt}];$e<Z;$e++)if(_e=m.relative[ee[$e].type])dt=[Yi(Us(dt),_e)];else{if(_e=m.filter[ee[$e].type].apply(null,ee[$e].matches),_e[je]){for(ke=++$e;ke<Z&&!m.relative[ee[ke].type];ke++);return mo($e>1&&Us(dt),$e>1&&xi(ee.slice(0,$e-1).concat({value:ee[$e-2].type===" "?"*":""})).replace(et,"$1"),_e,$e<ke&&hr(ee.slice($e,ke)),ke<Z&&hr(ee=ee.slice(ke)),ke<Z&&xi(ee))}dt.push(_e)}return Us(dt)}function Ws(ee,me){var _e=me.length>0,ke=ee.length>0,Z=function(he,fe,$e,We,ft){var dt,ut,At,kt=0,Yt="0",Ln=he&&[],ar=[],Gn=C,Hr=he||ke&&m.find.TAG("*",ft),Gi=Ee+=Gn==null?1:Math.random()||.1,Mt=Hr.length;for(ft&&(C=fe==H||fe||ft);Yt!==Mt&&(dt=Hr[Yt])!=null;Yt++){if(ke&&dt){for(ut=0,!fe&&dt.ownerDocument!=H&&(vo(dt),$e=!oe);At=ee[ut++];)if(At(dt,fe||H,$e)){B.call(We,dt);break}ft&&(Ee=Gi)}_e&&((dt=!At&&dt)&&kt--,he&&Ln.push(dt))}if(kt+=Yt,_e&&Yt!==kt){for(ut=0;At=me[ut++];)At(Ln,ar,fe,$e);if(he){if(kt>0)for(;Yt--;)Ln[Yt]||ar[Yt]||(ar[Yt]=Qe.call(We));ar=ua(ar)}B.apply(We,ar),ft&&!he&&ar.length>0&&kt+me.length>1&&x.uniqueSort(We)}return ft&&(Ee=Gi,C=Gn),Ln};return _e?Tn(Z):Z}function ls(ee,me){var _e,ke=[],Z=[],he=It[ee+" "];if(!he){for(me||(me=sa(ee)),_e=me.length;_e--;)he=hr(me[_e]),he[je]?ke.push(he):Z.push(he);he=It(ee,Ws(Z,ke)),he.selector=ee}return he}function cs(ee,me,_e,ke){var Z,he,fe,$e,We,ft=typeof ee=="function"&&ee,dt=!ke&&sa(ee=ft.selector||ee);if(_e=_e||[],dt.length===1){if(he=dt[0]=dt[0].slice(0),he.length>2&&(fe=he[0]).type==="ID"&&me.nodeType===9&&oe&&m.relative[he[1].type]){if(me=(m.find.ID(fe.matches[0].replace(Be,tt),me)||[])[0],me)ft&&(me=me.parentNode);else return _e;ee=ee.slice(he.shift().value.length)}for(Z=N.needsContext.test(ee)?0:he.length;Z--&&(fe=he[Z],!m.relative[$e=fe.type]);)if((We=m.find[$e])&&(ke=We(fe.matches[0].replace(Be,tt),Ce.test(he[0].type)&&Hs(me.parentNode)||me))){if(he.splice(Z,1),ee=ke.length&&xi(he),!ee)return B.apply(_e,ke),_e;break}}return(ft||ls(ee,dt))(ke,me,!oe,_e,!me||Ce.test(ee)&&Hs(me.parentNode)||me),_e}_.sortStable=je.split("").sort(dn).join("")===je,vo(),_.sortDetached=Yn(function(ee){return ee.compareDocumentPosition(H.createElement("fieldset"))&1}),x.find=Ct,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Ct.compile=ls,Ct.select=cs,Ct.setDocument=vo,Ct.tokenize=sa,Ct.escape=x.escapeSelector,Ct.getText=x.text,Ct.isXML=x.isXMLDoc,Ct.selectors=x.expr,Ct.support=x.support,Ct.uniqueSort=x.uniqueSort})();var it=function(f,m,C){for(var O=[],F=C!==void 0;(f=f[m])&&f.nodeType!==9;)if(f.nodeType===1){if(F&&x(f).is(C))break;O.push(f)}return O},Oe=function(f,m){for(var C=[];f;f=f.nextSibling)f.nodeType===1&&f!==m&&C.push(f);return C},xe=x.expr.match.needsContext,Ue=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ve(f,m,C){return R(m)?x.grep(f,function(O,F){return!!m.call(O,F,O)!==C}):m.nodeType?x.grep(f,function(O){return O===m!==C}):typeof m!="string"?x.grep(f,function(O){return c.call(m,O)>-1!==C}):x.filter(m,f,C)}x.filter=function(f,m,C){var O=m[0];return C&&(f=":not("+f+")"),m.length===1&&O.nodeType===1?x.find.matchesSelector(O,f)?[O]:[]:x.find.matches(f,x.grep(m,function(F){return F.nodeType===1}))},x.fn.extend({find:function(f){var m,C,O=this.length,F=this;if(typeof f!="string")return this.pushStack(x(f).filter(function(){for(m=0;m<O;m++)if(x.contains(F[m],this))return!0}));for(C=this.pushStack([]),m=0;m<O;m++)x.find(f,F[m],C);return O>1?x.uniqueSort(C):C},filter:function(f){return this.pushStack(Ve(this,f||[],!1))},not:function(f){return this.pushStack(Ve(this,f||[],!0))},is:function(f){return!!Ve(this,typeof f=="string"&&xe.test(f)?x(f):f||[],!1).length}});var Re,Me=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Xe=x.fn.init=function(f,m,C){var O,F;if(!f)return this;if(C=C||Re,typeof f=="string")if(f[0]==="<"&&f[f.length-1]===">"&&f.length>=3?O=[null,f,null]:O=Me.exec(f),O&&(O[1]||!m))if(O[1]){if(m=m instanceof x?m[0]:m,x.merge(this,x.parseHTML(O[1],m&&m.nodeType?m.ownerDocument||m:I,!0)),Ue.test(O[1])&&x.isPlainObject(m))for(O in m)R(this[O])?this[O](m[O]):this.attr(O,m[O]);return this}else return F=I.getElementById(O[2]),F&&(this[0]=F,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(x)}return x.makeArray(f,this)};Xe.prototype=x.fn,Re=x(I);var lt=/^(?:parents|prev(?:Until|All))/,mt={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({has:function(f){var m=x(f,this),C=m.length;return this.filter(function(){for(var O=0;O<C;O++)if(x.contains(this,m[O]))return!0})},closest:function(f,m){var C,O=0,F=this.length,B=[],H=typeof f!="string"&&x(f);if(!xe.test(f)){for(;O<F;O++)for(C=this[O];C&&C!==m;C=C.parentNode)if(C.nodeType<11&&(H?H.index(C)>-1:C.nodeType===1&&x.find.matchesSelector(C,f))){B.push(C);break}}return this.pushStack(B.length>1?x.uniqueSort(B):B)},index:function(f){return f?typeof f=="string"?c.call(x(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(x.uniqueSort(x.merge(this.get(),x(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}x.each({parent:function(f){var m=f.parentNode;return m&&m.nodeType!==11?m:null},parents:function(f){return it(f,"parentNode")},parentsUntil:function(f,m,C){return it(f,"parentNode",C)},next:function(f){return wt(f,"nextSibling")},prev:function(f){return wt(f,"previousSibling")},nextAll:function(f){return it(f,"nextSibling")},prevAll:function(f){return it(f,"previousSibling")},nextUntil:function(f,m,C){return it(f,"nextSibling",C)},prevUntil:function(f,m,C){return it(f,"previousSibling",C)},siblings:function(f){return Oe((f.parentNode||{}).firstChild,f)},children:function(f){return Oe(f.firstChild)},contents:function(f){return f.contentDocument!=null&&i(f.contentDocument)?f.contentDocument:(le(f,"template")&&(f=f.content||f),x.merge([],f.childNodes))}},function(f,m){x.fn[f]=function(C,O){var F=x.map(this,m,C);return f.slice(-5)!=="Until"&&(O=C),O&&typeof O=="string"&&(F=x.filter(O,F)),this.length>1&&(mt[f]||x.uniqueSort(F),lt.test(f)&&F.reverse()),this.pushStack(F)}});var vt=/[^\x20\t\r\n\f]+/g;function Et(f){var m={};return x.each(f.match(vt)||[],function(C,O){m[O]=!0}),m}x.Callbacks=function(f){f=typeof f=="string"?Et(f):x.extend({},f);var m,C,O,F,B=[],H=[],ue=-1,oe=function(){for(F=F||f.once,O=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,F&&(C?B=[]:B="")},we={add:function(){return B&&(C&&!m&&(ue=B.length-1,H.push(C)),function Ne(je){x.each(je,function(Ee,Ge){R(Ge)?(!f.unique||!we.has(Ge))&&B.push(Ge):Ge&&Ge.length&&ne(Ge)!=="string"&&Ne(Ge)})}(arguments),C&&!m&&oe()),this},remove:function(){return x.each(arguments,function(Ne,je){for(var Ee;(Ee=x.inArray(je,B,Ee))>-1;)B.splice(Ee,1),Ee<=ue&&ue--}),this},has:function(Ne){return Ne?x.inArray(Ne,B)>-1:B.length>0},empty:function(){return B&&(B=[]),this},disable:function(){return F=H=[],B=C="",this},disabled:function(){return!B},lock:function(){return F=H=[],!C&&!m&&(B=C=""),this},locked:function(){return!!F},fireWith:function(Ne,je){return F||(je=je||[],je=[Ne,je.slice?je.slice():je],H.push(je),m||oe()),this},fire:function(){return we.fireWith(this,arguments),this},fired:function(){return!!O}};return we};function ot(f){return f}function $t(f){throw f}function Ht(f,m,C,O){var F;try{f&&R(F=f.promise)?F.call(f).done(m).fail(C):f&&R(F=f.then)?F.call(f,m,C):m.apply(void 0,[f].slice(O))}catch(B){C.apply(void 0,[B])}}x.extend({Deferred:function(f){var m=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],C="pending",O={state:function(){return C},always:function(){return F.done(arguments).fail(arguments),this},catch:function(B){return O.then(null,B)},pipe:function(){var B=arguments;return x.Deferred(function(H){x.each(m,function(ue,oe){var we=R(B[oe[4]])&&B[oe[4]];F[oe[1]](function(){var Ne=we&&we.apply(this,arguments);Ne&&R(Ne.promise)?Ne.promise().progress(H.notify).done(H.resolve).fail(H.reject):H[oe[0]+"With"](this,we?[Ne]:arguments)})}),B=null}).promise()},then:function(B,H,ue){var oe=0;function we(Ne,je,Ee,Ge){return function(){var ct=this,Pt=arguments,It=function(){var dn,Br;if(!(Ne<oe)){if(dn=Ee.apply(ct,Pt),dn===je.promise())throw new TypeError("Thenable self-resolution");Br=dn&&(typeof dn=="object"||typeof dn=="function")&&dn.then,R(Br)?Ge?Br.call(dn,we(oe,je,ot,Ge),we(oe,je,$t,Ge)):(oe++,Br.call(dn,we(oe,je,ot,Ge),we(oe,je,$t,Ge),we(oe,je,ot,je.notifyWith))):(Ee!==ot&&(ct=void 0,Pt=[dn]),(Ge||je.resolveWith)(ct,Pt))}},Mn=Ge?It:function(){try{It()}catch(dn){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(dn,Mn.error),Ne+1>=oe&&(Ee!==$t&&(ct=void 0,Pt=[dn]),je.rejectWith(ct,Pt))}};Ne?Mn():(x.Deferred.getErrorHook?Mn.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(Mn.error=x.Deferred.getStackHook()),t.setTimeout(Mn))}}return x.Deferred(function(Ne){m[0][3].add(we(0,Ne,R(ue)?ue:ot,Ne.notifyWith)),m[1][3].add(we(0,Ne,R(B)?B:ot)),m[2][3].add(we(0,Ne,R(H)?H:$t))}).promise()},promise:function(B){return B!=null?x.extend(B,O):O}},F={};return x.each(m,function(B,H){var ue=H[2],oe=H[5];O[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),F[H[0]]=function(){return F[H[0]+"With"](this===F?void 0:this,arguments),this},F[H[0]+"With"]=ue.fireWith}),O.promise(F),f&&f.call(F,F),F},when:function(f){var m=arguments.length,C=m,O=Array(C),F=o.call(arguments),B=x.Deferred(),H=function(ue){return function(oe){O[ue]=this,F[ue]=arguments.length>1?o.call(arguments):oe,--m||B.resolveWith(O,F)}};if(m<=1&&(Ht(f,B.done(H(C)).resolve,B.reject,!m),B.state()==="pending"||R(F[C]&&F[C].then)))return B.then();for(;C--;)Ht(F[C],H(C),B.reject);return B.promise()}});var Xn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.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)},x.readyException=function(f){t.setTimeout(function(){throw f})};var br=x.Deferred();x.fn.ready=function(f){return br.then(f).catch(function(m){x.readyException(m)}),this},x.extend({isReady:!1,readyWait:1,ready:function(f){(f===!0?--x.readyWait:x.isReady)||(x.isReady=!0,!(f!==!0&&--x.readyWait>0)&&br.resolveWith(I,[x]))}}),x.ready.then=br.then;function Kn(){I.removeEventListener("DOMContentLoaded",Kn),t.removeEventListener("load",Kn),x.ready()}I.readyState==="complete"||I.readyState!=="loading"&&!I.documentElement.doScroll?t.setTimeout(x.ready):(I.addEventListener("DOMContentLoaded",Kn),t.addEventListener("load",Kn));var kn=function(f,m,C,O,F,B,H){var ue=0,oe=f.length,we=C==null;if(ne(C)==="object"){F=!0;for(ue in C)kn(f,m,ue,C[ue],!0,B,H)}else if(O!==void 0&&(F=!0,R(O)||(H=!0),we&&(H?(m.call(f,O),m=null):(we=m,m=function(Ne,je,Ee){return we.call(x(Ne),Ee)})),m))for(;ue<oe;ue++)m(f[ue],C,H?O:O.call(f[ue],ue,m(f[ue],C)));return F?f:we?m.call(f):oe?m(f[0],C):B},Fi=/^-ms-/,Pr=/-([a-z])/g;function rr(f,m){return m.toUpperCase()}function cn(f){return f.replace(Fi,"ms-").replace(Pr,rr)}var hn=function(f){return f.nodeType===1||f.nodeType===9||!+f.nodeType};function pn(){this.expando=x.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 O,F=this.cache(f);if(typeof m=="string")F[cn(m)]=C;else for(O in m)F[cn(O)]=m[O];return F},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,O=f[this.expando];if(O!==void 0){if(m!==void 0)for(Array.isArray(m)?m=m.map(cn):(m=cn(m),m=m in O?[m]:m.match(vt)||[]),C=m.length;C--;)delete O[m[C]];(m===void 0||x.isEmptyObject(O))&&(f.nodeType?f[this.expando]=void 0:delete f[this.expando])}},hasData:function(f){var m=f[this.expando];return m!==void 0&&!x.isEmptyObject(m)}};var gt=new pn,Rn=new pn,ci=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ln=/[A-Z]/g;function ji(f){return f==="true"?!0:f==="false"?!1:f==="null"?null:f===+f+""?+f:ci.test(f)?JSON.parse(f):f}function Bi(f,m,C){var O;if(C===void 0&&f.nodeType===1)if(O="data-"+m.replace(ln,"-$&").toLowerCase(),C=f.getAttribute(O),typeof C=="string"){try{C=ji(C)}catch{}Rn.set(f,m,C)}else C=void 0;return C}x.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)}}),x.fn.extend({data:function(f,m){var C,O,F,B=this[0],H=B&&B.attributes;if(f===void 0){if(this.length&&(F=Rn.get(B),B.nodeType===1&&!gt.get(B,"hasDataAttrs"))){for(C=H.length;C--;)H[C]&&(O=H[C].name,O.indexOf("data-")===0&&(O=cn(O.slice(5)),Bi(B,O,F[O])));gt.set(B,"hasDataAttrs",!0)}return F}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=Bi(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)})}}),x.extend({queue:function(f,m,C){var O;if(f)return m=(m||"fx")+"queue",O=gt.get(f,m),C&&(!O||Array.isArray(C)?O=gt.access(f,m,x.makeArray(C)):O.push(C)),O||[]},dequeue:function(f,m){m=m||"fx";var C=x.queue(f,m),O=C.length,F=C.shift(),B=x._queueHooks(f,m),H=function(){x.dequeue(f,m)};F==="inprogress"&&(F=C.shift(),O--),F&&(m==="fx"&&C.unshift("inprogress"),delete B.stop,F.call(f,H,B)),!O&&B&&B.empty.fire()},_queueHooks:function(f,m){var C=m+"queueHooks";return gt.get(f,C)||gt.access(f,C,{empty:x.Callbacks("once memory").add(function(){gt.remove(f,[m+"queue",C])})})}}),x.fn.extend({queue:function(f,m){var C=2;return typeof f!="string"&&(m=f,f="fx",C--),arguments.length<C?x.queue(this[0],f):m===void 0?this:this.each(function(){var O=x.queue(this,f,m);x._queueHooks(this,f),f==="fx"&&O[0]!=="inprogress"&&x.dequeue(this,f)})},dequeue:function(f){return this.each(function(){x.dequeue(this,f)})},clearQueue:function(f){return this.queue(f||"fx",[])},promise:function(f,m){var C,O=1,F=x.Deferred(),B=this,H=this.length,ue=function(){--O||F.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&&(O++,C.empty.add(ue));return ue(),F.promise(m)}});var $i=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_r=new RegExp("^(?:([+-])=|)("+$i+")([a-z%]*)$","i"),Un=["Top","Right","Bottom","Left"],Rr=I.documentElement,wr=function(f){return x.contains(f.ownerDocument,f)},qr={composed:!0};Rr.getRootNode&&(wr=function(f){return x.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)&&x.css(f,"display")==="none"};function Po(f,m,C,O){var F,B,H=20,ue=O?function(){return O.cur()}:function(){return x.css(f,m,"")},oe=ue(),we=C&&C[3]||(x.cssNumber[m]?"":"px"),Ne=f.nodeType&&(x.cssNumber[m]||we!=="px"&&+oe)&&_r.exec(x.css(f,m));if(Ne&&Ne[3]!==we){for(oe=oe/2,we=we||Ne[3],Ne=+oe||1;H--;)x.style(f,m,Ne+we),(1-B)*(1-(B=ue()/oe||.5))<=0&&(H=0),Ne=Ne/B;Ne=Ne*2,x.style(f,m,Ne+we),C=C||[]}return C&&(Ne=+Ne||+oe||0,F=C[1]?Ne+(C[1]+1)*C[2]:+C[2],O&&(O.unit=we,O.start=Ne,O.end=F)),F}var Zn={};function Kr(f){var m,C=f.ownerDocument,O=f.nodeName,F=Zn[O];return F||(m=C.body.appendChild(C.createElement(O)),F=x.css(m,"display"),m.parentNode.removeChild(m),F==="none"&&(F="block"),Zn[O]=F,F)}function ir(f,m){for(var C,O,F=[],B=0,H=f.length;B<H;B++)O=f[B],O.style&&(C=O.style.display,m?(C==="none"&&(F[B]=gt.get(O,"display")||null,F[B]||(O.style.display="")),O.style.display===""&&Xr(O)&&(F[B]=Kr(O))):C!=="none"&&(F[B]="none",gt.set(O,"display",C)));for(B=0;B<H;B++)F[B]!=null&&(f[B].style.display=F[B]);return f}x.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)?x(this).show():x(this).hide()})}});var Zt=/^(?:checkbox|radio)$/i,fi=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Vi=/^$|^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),_.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,m.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!m.cloneNode(!0).lastChild.defaultValue,m.innerHTML="<option></option>",_.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,_.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&&le(f,m)?x.merge([f],C):C}function di(f,m){for(var C=0,O=f.length;C<O;C++)gt.set(f[C],"globalEval",!m||gt.get(m[C],"globalEval"))}var hi=/<|&#?\w+;/;function mn(f,m,C,O,F){for(var B,H,ue,oe,we,Ne,je=m.createDocumentFragment(),Ee=[],Ge=0,ct=f.length;Ge<ct;Ge++)if(B=f[Ge],B||B===0)if(ne(B)==="object")x.merge(Ee,B.nodeType?[B]:B);else if(!hi.test(B))Ee.push(m.createTextNode(B));else{for(H=H||je.appendChild(m.createElement("div")),ue=(fi.exec(B)||["",""])[1].toLowerCase(),oe=In[ue]||In._default,H.innerHTML=oe[1]+x.htmlPrefilter(B)+oe[2],Ne=oe[0];Ne--;)H=H.lastChild;x.merge(Ee,H.childNodes),H=je.firstChild,H.textContent=""}for(je.textContent="",Ge=0;B=Ee[Ge++];){if(O&&x.inArray(B,O)>-1){F&&F.push(B);continue}if(we=wr(B),H=gn(je.appendChild(B),"script"),we&&di(H),C)for(Ne=0;B=H[Ne++];)Vi.test(B.type||"")&&C.push(B)}return je}var uo=/^([^.]*)(?:\.(.+)|)/;function xr(){return!0}function pi(){return!1}function fn(f,m,C,O,F,B){var H,ue;if(typeof m=="object"){typeof C!="string"&&(O=O||C,C=void 0);for(ue in m)fn(f,ue,C,O,m[ue],B);return f}if(O==null&&F==null?(F=C,O=C=void 0):F==null&&(typeof C=="string"?(F=O,O=void 0):(F=O,O=C,C=void 0)),F===!1)F=pi;else if(!F)return f;return B===1&&(H=F,F=function(oe){return x().off(oe),H.apply(this,arguments)},F.guid=H.guid||(H.guid=x.guid++)),f.each(function(){x.event.add(this,m,F,O,C)})}x.event={global:{},add:function(f,m,C,O,F){var B,H,ue,oe,we,Ne,je,Ee,Ge,ct,Pt,It=gt.get(f);if(hn(f))for(C.handler&&(B=C,C=B.handler,F=B.selector),F&&x.find.matchesSelector(Rr,F),C.guid||(C.guid=x.guid++),(oe=It.events)||(oe=It.events=Object.create(null)),(H=It.handle)||(H=It.handle=function(Mn){return typeof x<"u"&&x.event.triggered!==Mn.type?x.event.dispatch.apply(f,arguments):void 0}),m=(m||"").match(vt)||[""],we=m.length;we--;)ue=uo.exec(m[we])||[],Ge=Pt=ue[1],ct=(ue[2]||"").split(".").sort(),Ge&&(je=x.event.special[Ge]||{},Ge=(F?je.delegateType:je.bindType)||Ge,je=x.event.special[Ge]||{},Ne=x.extend({type:Ge,origType:Pt,data:O,handler:C,guid:C.guid,selector:F,needsContext:F&&x.expr.match.needsContext.test(F),namespace:ct.join(".")},B),(Ee=oe[Ge])||(Ee=oe[Ge]=[],Ee.delegateCount=0,(!je.setup||je.setup.call(f,O,ct,H)===!1)&&f.addEventListener&&f.addEventListener(Ge,H)),je.add&&(je.add.call(f,Ne),Ne.handler.guid||(Ne.handler.guid=C.guid)),F?Ee.splice(Ee.delegateCount++,0,Ne):Ee.push(Ne),x.event.global[Ge]=!0)},remove:function(f,m,C,O,F){var B,H,ue,oe,we,Ne,je,Ee,Ge,ct,Pt,It=gt.hasData(f)&>.get(f);if(!(!It||!(oe=It.events))){for(m=(m||"").match(vt)||[""],we=m.length;we--;){if(ue=uo.exec(m[we])||[],Ge=Pt=ue[1],ct=(ue[2]||"").split(".").sort(),!Ge){for(Ge in oe)x.event.remove(f,Ge+m[we],C,O,!0);continue}for(je=x.event.special[Ge]||{},Ge=(O?je.delegateType:je.bindType)||Ge,Ee=oe[Ge]||[],ue=ue[2]&&new RegExp("(^|\\.)"+ct.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=B=Ee.length;B--;)Ne=Ee[B],(F||Pt===Ne.origType)&&(!C||C.guid===Ne.guid)&&(!ue||ue.test(Ne.namespace))&&(!O||O===Ne.selector||O==="**"&&Ne.selector)&&(Ee.splice(B,1),Ne.selector&&Ee.delegateCount--,je.remove&&je.remove.call(f,Ne));H&&!Ee.length&&((!je.teardown||je.teardown.call(f,ct,It.handle)===!1)&&x.removeEvent(f,Ge,It.handle),delete oe[Ge])}x.isEmptyObject(oe)&>.remove(f,"handle events")}},dispatch:function(f){var m,C,O,F,B,H,ue=new Array(arguments.length),oe=x.event.fix(f),we=(gt.get(this,"events")||Object.create(null))[oe.type]||[],Ne=x.event.special[oe.type]||{};for(ue[0]=oe,m=1;m<arguments.length;m++)ue[m]=arguments[m];if(oe.delegateTarget=this,!(Ne.preDispatch&&Ne.preDispatch.call(this,oe)===!1)){for(H=x.event.handlers.call(this,oe,we),m=0;(F=H[m++])&&!oe.isPropagationStopped();)for(oe.currentTarget=F.elem,C=0;(B=F.handlers[C++])&&!oe.isImmediatePropagationStopped();)(!oe.rnamespace||B.namespace===!1||oe.rnamespace.test(B.namespace))&&(oe.handleObj=B,oe.data=B.data,O=((x.event.special[B.origType]||{}).handle||B.handler).apply(F.elem,ue),O!==void 0&&(oe.result=O)===!1&&(oe.preventDefault(),oe.stopPropagation()));return Ne.postDispatch&&Ne.postDispatch.call(this,oe),oe.result}},handlers:function(f,m){var C,O,F,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++)O=m[C],F=O.selector+" ",H[F]===void 0&&(H[F]=O.needsContext?x(F,this).index(we)>-1:x.find(F,this,null,[we]).length),H[F]&&B.push(O);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(x.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[x.expando]?f:new x.Event(f)},special:{load:{noBubble:!0},click:{setup:function(f){var m=this||f;return Zt.test(m.type)&&m.click&&le(m,"input")&&Si(m,"click",!0),!1},trigger:function(f){var m=this||f;return Zt.test(m.type)&&m.click&&le(m,"input")&&Si(m,"click"),!0},_default:function(f){var m=f.target;return Zt.test(m.type)&&m.click&&le(m,"input")&>.get(m,"click")||le(m,"a")}},beforeunload:{postDispatch:function(f){f.result!==void 0&&f.originalEvent&&(f.originalEvent.returnValue=f.result)}}}};function Si(f,m,C){if(!C){gt.get(f,m)===void 0&&x.event.add(f,m,xr);return}gt.set(f,m,!1),x.event.add(f,m,{namespace:!1,handler:function(O){var F,B=gt.get(this,m);if(O.isTrigger&1&&this[m]){if(B)(x.event.special[m]||{}).delegateType&&O.stopPropagation();else if(B=o.call(arguments),gt.set(this,m,B),this[m](),F=gt.get(this,m),gt.set(this,m,!1),B!==F)return O.stopImmediatePropagation(),O.preventDefault(),F}else B&&(gt.set(this,m,x.event.trigger(B[0],B.slice(1),this)),O.stopPropagation(),O.isImmediatePropagationStopped=xr)}})}x.removeEvent=function(f,m,C){f.removeEventListener&&f.removeEventListener(m,C)},x.Event=function(f,m){if(!(this instanceof x.Event))return new x.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:pi,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&&x.extend(this,m),this.timeStamp=f&&f.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:pi,isPropagationStopped:pi,isImmediatePropagationStopped:pi,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()}},x.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},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(f,m){function C(O){if(I.documentMode){var F=gt.get(this,"handle"),B=x.event.fix(O);B.type=O.type==="focusin"?"focus":"blur",B.isSimulated=!0,F(O),B.target===B.currentTarget&&F(B)}else x.event.simulate(m,O.target,x.event.fix(O))}x.event.special[f]={setup:function(){var O;if(Si(this,f,!0),I.documentMode)O=gt.get(this,m),O||this.addEventListener(m,C),gt.set(this,m,(O||0)+1);else return!1},trigger:function(){return Si(this,f),!0},teardown:function(){var O;if(I.documentMode)O=gt.get(this,m)-1,O?gt.set(this,m,O):(this.removeEventListener(m,C),gt.remove(this,m));else return!1},_default:function(O){return gt.get(O.target,f)},delegateType:m},x.event.special[m]={setup:function(){var O=this.ownerDocument||this.document||this,F=I.documentMode?this:O,B=gt.get(F,m);B||(I.documentMode?this.addEventListener(m,C):O.addEventListener(f,C,!0)),gt.set(F,m,(B||0)+1)},teardown:function(){var O=this.ownerDocument||this.document||this,F=I.documentMode?this:O,B=gt.get(F,m)-1;B?gt.set(F,m,B):(I.documentMode?this.removeEventListener(m,C):O.removeEventListener(f,C,!0),gt.remove(F,m))}}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(f,m){x.event.special[f]={delegateType:m,bindType:m,handle:function(C){var O,F=this,B=C.relatedTarget,H=C.handleObj;return(!B||B!==F&&!x.contains(F,B))&&(C.type=H.origType,O=H.handler.apply(this,arguments),C.type=m),O}}}),x.fn.extend({on:function(f,m,C,O){return fn(this,f,m,C,O)},one:function(f,m,C,O){return fn(this,f,m,C,O,1)},off:function(f,m,C){var O,F;if(f&&f.preventDefault&&f.handleObj)return O=f.handleObj,x(f.delegateTarget).off(O.namespace?O.origType+"."+O.namespace:O.origType,O.selector,O.handler),this;if(typeof f=="object"){for(F in f)this.off(F,m,f[F]);return this}return(m===!1||typeof m=="function")&&(C=m,m=void 0),C===!1&&(C=pi),this.each(function(){x.event.remove(this,f,C,m)})}});var Ra=/<script|<style|<link/i,Ia=/checked\s*(?:[^=]|=\s*.checked.)/i,Zr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function lo(f,m){return le(f,"table")&&le(m.nodeType!==11?m:m.firstChild,"tr")&&x(f).children("tbody")[0]||f}function co(f){return f.type=(f.getAttribute("type")!==null)+"/"+f.type,f}function _o(f){return(f.type||"").slice(0,5)==="true/"?f.type=f.type.slice(5):f.removeAttribute("type"),f}function Ti(f,m){var C,O,F,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(F in oe)for(C=0,O=oe[F].length;C<O;C++)x.event.add(m,F,oe[F][C])}Rn.hasData(f)&&(H=Rn.access(f),ue=x.extend({},H),Rn.set(m,ue))}}function gi(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 Ci(f,m,C,O){m=s(m);var F,B,H,ue,oe,we,Ne=0,je=f.length,Ee=je-1,Ge=m[0],ct=R(Ge);if(ct||je>1&&typeof Ge=="string"&&!_.checkClone&&Ia.test(Ge))return f.each(function(Pt){var It=f.eq(Pt);ct&&(m[0]=Ge.call(this,Pt,It.html())),Ci(It,m,C,O)});if(je&&(F=mn(m,f[0].ownerDocument,!1,f,O),B=F.firstChild,F.childNodes.length===1&&(F=B),B||O)){for(H=x.map(gn(F,"script"),co),ue=H.length;Ne<je;Ne++)oe=F,Ne!==Ee&&(oe=x.clone(oe,!0,!0),ue&&x.merge(H,gn(oe,"script"))),C.call(f[Ne],oe,Ne);if(ue)for(we=H[H.length-1].ownerDocument,x.map(H,_o),Ne=0;Ne<ue;Ne++)oe=H[Ne],Vi.test(oe.type||"")&&!gt.access(oe,"globalEval")&&x.contains(we,oe)&&(oe.src&&(oe.type||"").toLowerCase()!=="module"?x._evalUrl&&!oe.noModule&&x._evalUrl(oe.src,{nonce:oe.nonce||oe.getAttribute("nonce")},we):Y(oe.textContent.replace(Zr,""),oe,we))}return f}function fo(f,m,C){for(var O,F=m?x.filter(m,f):f,B=0;(O=F[B])!=null;B++)!C&&O.nodeType===1&&x.cleanData(gn(O)),O.parentNode&&(C&&wr(O)&&di(gn(O,"script")),O.parentNode.removeChild(O));return f}x.extend({htmlPrefilter:function(f){return f},clone:function(f,m,C){var O,F,B,H,ue=f.cloneNode(!0),oe=wr(f);if(!_.noCloneChecked&&(f.nodeType===1||f.nodeType===11)&&!x.isXMLDoc(f))for(H=gn(ue),B=gn(f),O=0,F=B.length;O<F;O++)gi(B[O],H[O]);if(m)if(C)for(B=B||gn(f),H=H||gn(ue),O=0,F=B.length;O<F;O++)Ti(B[O],H[O]);else Ti(f,ue);return H=gn(ue,"script"),H.length>0&&di(H,!oe&&gn(f,"script")),ue},cleanData:function(f){for(var m,C,O,F=x.event.special,B=0;(C=f[B])!==void 0;B++)if(hn(C)){if(m=C[gt.expando]){if(m.events)for(O in m.events)F[O]?x.event.remove(C,O):x.removeEvent(C,O,m.handle);C[gt.expando]=void 0}C[Rn.expando]&&(C[Rn.expando]=void 0)}}}),x.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?x.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 Ci(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=lo(this,f);m.appendChild(f)}})},prepend:function(){return Ci(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=lo(this,f);m.insertBefore(f,m.firstChild)}})},before:function(){return Ci(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this)})},after:function(){return Ci(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&&(x.cleanData(gn(f,!1)),f.textContent="");return this},clone:function(f,m){return f=f??!1,m=m??f,this.map(function(){return x.clone(this,f,m)})},html:function(f){return kn(this,function(m){var C=this[0]||{},O=0,F=this.length;if(m===void 0&&C.nodeType===1)return C.innerHTML;if(typeof m=="string"&&!Ra.test(m)&&!In[(fi.exec(m)||["",""])[1].toLowerCase()]){m=x.htmlPrefilter(m);try{for(;O<F;O++)C=this[O]||{},C.nodeType===1&&(x.cleanData(gn(C,!1)),C.innerHTML=m);C=0}catch{}}C&&this.empty().append(m)},null,f,arguments.length)},replaceWith:function(){var f=[];return Ci(this,arguments,function(m){var C=this.parentNode;x.inArray(this,f)<0&&(x.cleanData(gn(this)),C&&C.replaceChild(m,this))},f)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,m){x.fn[f]=function(C){for(var O,F=[],B=x(C),H=B.length-1,ue=0;ue<=H;ue++)O=ue===H?this:this.clone(!0),x(B[ue])[m](O),l.apply(F,O.get());return this.pushStack(F)}});var Ei=new RegExp("^("+$i+")(?!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 O,F,B={};for(F in m)B[F]=f.style[F],f.style[F]=m[F];O=C.call(f);for(F in m)f.style[F]=B[F];return O},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 Ne=t.getComputedStyle(we);C=Ne.top!=="1%",ue=m(Ne.marginLeft)===12,we.style.right="60%",B=m(Ne.right)===36,O=m(Ne.width)===36,we.style.position="absolute",F=m(we.offsetWidth/3)===12,Rr.removeChild(oe),we=null}}function m(Ne){return Math.round(parseFloat(Ne))}var C,O,F,B,H,ue,oe=I.createElement("div"),we=I.createElement("div");we.style&&(we.style.backgroundClip="content-box",we.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle=we.style.backgroundClip==="content-box",x.extend(_,{boxSizingReliable:function(){return f(),O},pixelBoxStyles:function(){return f(),B},pixelPosition:function(){return f(),C},reliableMarginLeft:function(){return f(),ue},scrollboxSize:function(){return f(),F},reliableTrDimensions:function(){var Ne,je,Ee,Ge;return H==null&&(Ne=I.createElement("table"),je=I.createElement("tr"),Ee=I.createElement("div"),Ne.style.cssText="position:absolute;left:-11111px;border-collapse:separate",je.style.cssText="box-sizing:content-box;border:1px solid",je.style.height="1px",Ee.style.height="9px",Ee.style.display="block",Rr.appendChild(Ne).appendChild(je).appendChild(Ee),Ge=t.getComputedStyle(je),H=parseInt(Ge.height,10)+parseInt(Ge.borderTopWidth,10)+parseInt(Ge.borderBottomWidth,10)===je.offsetHeight,Rr.removeChild(Ne)),H}}))})();function Ar(f,m,C){var O,F,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(et,"$1")||void 0),H===""&&!wr(f)&&(H=x.style(f,m)),!_.pixelBoxStyles()&&Ei.test(H)&&Qr.test(m)&&(O=oe.width,F=oe.minWidth,B=oe.maxWidth,oe.minWidth=oe.maxWidth=oe.width=H,H=C.width,oe.width=O,oe.minWidth=F,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 vi(f){var m=x.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 O=_r.exec(m);return O?Math.max(0,O[2]-(C||0))+(O[3]||"px"):m}function ni(f,m,C,O,F,B){var H=m==="width"?1:0,ue=0,oe=0,we=0;if(C===(O?"border":"content"))return 0;for(;H<4;H+=2)C==="margin"&&(we+=x.css(f,C+Un[H],!0,F)),O?(C==="content"&&(oe-=x.css(f,"padding"+Un[H],!0,F)),C!=="margin"&&(oe-=x.css(f,"border"+Un[H]+"Width",!0,F))):(oe+=x.css(f,"padding"+Un[H],!0,F),C!=="padding"?oe+=x.css(f,"border"+Un[H]+"Width",!0,F):ue+=x.css(f,"border"+Un[H]+"Width",!0,F));return!O&&B>=0&&(oe+=Math.max(0,Math.ceil(f["offset"+m[0].toUpperCase()+m.slice(1)]-B-oe-ue-.5))||0),oe+we}function Hi(f,m,C){var O=Sr(f),F=!_.boxSizingReliable()||C,B=F&&x.css(f,"boxSizing",!1,O)==="border-box",H=B,ue=Ar(f,m,O),oe="offset"+m[0].toUpperCase()+m.slice(1);if(Ei.test(ue)){if(!C)return ue;ue="auto"}return(!_.boxSizingReliable()&&B||!_.reliableTrDimensions()&&le(f,"tr")||ue==="auto"||!parseFloat(ue)&&x.css(f,"display",!1,O)==="inline")&&f.getClientRects().length&&(B=x.css(f,"boxSizing",!1,O)==="border-box",H=oe in f,H&&(ue=f[oe])),ue=parseFloat(ue)||0,ue+ni(f,m,C||(B?"border":"content"),H,O,ue)+"px"}x.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,O){if(!(!f||f.nodeType===3||f.nodeType===8||!f.style)){var F,B,H,ue=cn(m),oe=Jr.test(m),we=f.style;if(oe||(m=vi(ue)),H=x.cssHooks[m]||x.cssHooks[ue],C!==void 0){if(B=typeof C,B==="string"&&(F=_r.exec(C))&&F[1]&&(C=Po(f,m,F),B="number"),C==null||C!==C)return;B==="number"&&!oe&&(C+=F&&F[3]||(x.cssNumber[ue]?"":"px")),!_.clearCloneStyle&&C===""&&m.indexOf("background")===0&&(we[m]="inherit"),(!H||!("set"in H)||(C=H.set(f,C,O))!==void 0)&&(oe?we.setProperty(m,C):we[m]=C)}else return H&&"get"in H&&(F=H.get(f,!1,O))!==void 0?F:we[m]}},css:function(f,m,C,O){var F,B,H,ue=cn(m),oe=Jr.test(m);return oe||(m=vi(ue)),H=x.cssHooks[m]||x.cssHooks[ue],H&&"get"in H&&(F=H.get(f,!0,C)),F===void 0&&(F=Ar(f,m,O)),F==="normal"&&m in Jn&&(F=Jn[m]),C===""||C?(B=parseFloat(F),C===!0||isFinite(B)?B||0:F):F}}),x.each(["height","width"],function(f,m){x.cssHooks[m]={get:function(C,O,F){if(O)return Lr.test(x.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?Ir(C,ei,function(){return Hi(C,m,F)}):Hi(C,m,F)},set:function(C,O,F){var B,H=Sr(C),ue=!_.scrollboxSize()&&H.position==="absolute",oe=ue||F,we=oe&&x.css(C,"boxSizing",!1,H)==="border-box",Ne=F?ni(C,m,F,we,H):0;return we&&ue&&(Ne-=Math.ceil(C["offset"+m[0].toUpperCase()+m.slice(1)]-parseFloat(H[m])-ni(C,m,"border",!1,H)-.5)),Ne&&(B=_r.exec(O))&&(B[3]||"px")!=="px"&&(C.style[m]=O,O=x.css(C,m)),ti(C,O,Ne)}}}),x.cssHooks.marginLeft=Wn(_.reliableMarginLeft,function(f,m){if(m)return(parseFloat(Ar(f,"marginLeft"))||f.getBoundingClientRect().left-Ir(f,{marginLeft:0},function(){return f.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(f,m){x.cssHooks[f+m]={expand:function(C){for(var O=0,F={},B=typeof C=="string"?C.split(" "):[C];O<4;O++)F[f+Un[O]+m]=B[O]||B[O-2]||B[0];return F}},f!=="margin"&&(x.cssHooks[f+m].set=ti)}),x.fn.extend({css:function(f,m){return kn(this,function(C,O,F){var B,H,ue={},oe=0;if(Array.isArray(O)){for(B=Sr(C),H=O.length;oe<H;oe++)ue[O[oe]]=x.css(C,O[oe],!1,B);return ue}return F!==void 0?x.style(C,O,F):x.css(C,O)},f,m,arguments.length>1)}});function _n(f,m,C,O,F){return new _n.prototype.init(f,m,C,O,F)}x.Tween=_n,_n.prototype={constructor:_n,init:function(f,m,C,O,F,B){this.elem=f,this.prop=C,this.easing=F||x.easing._default,this.options=m,this.start=this.now=this.cur(),this.end=O,this.unit=B||(x.cssNumber[C]?"":"px")},cur:function(){var f=_n.propHooks[this.prop];return f&&f.get?f.get(this):_n.propHooks._default.get(this)},run:function(f){var m,C=_n.propHooks[this.prop];return this.options.duration?this.pos=m=x.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):_n.propHooks._default.set(this),this}},_n.prototype.init.prototype=_n.prototype,_n.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=x.css(f.elem,f.prop,""),!m||m==="auto"?0:m)},set:function(f){x.fx.step[f.prop]?x.fx.step[f.prop](f):f.elem.nodeType===1&&(x.cssHooks[f.prop]||f.elem.style[vi(f.prop)]!=null)?x.style(f.elem,f.prop,f.now+f.unit):f.elem[f.prop]=f.now}}},_n.propHooks.scrollTop=_n.propHooks.scrollLeft={set:function(f){f.elem.nodeType&&f.elem.parentNode&&(f.elem[f.prop]=f.now)}},x.easing={linear:function(f){return f},swing:function(f){return .5-Math.cos(f*Math.PI)/2},_default:"swing"},x.fx=_n.prototype.init,x.fx.step={};var Cr,fr,Ro=/^(?:toggle|show|hide)$/,Ui=/queueHooks$/;function Nr(){fr&&(I.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Nr):t.setTimeout(Nr,x.fx.interval),x.fx.tick())}function E(){return t.setTimeout(function(){Cr=void 0}),Cr=Date.now()}function j(f,m){var C,O=0,F={height:f};for(m=m?1:0;O<4;O+=2-m)C=Un[O],F["margin"+C]=F["padding"+C]=f;return m&&(F.opacity=F.width=f),F}function q(f,m,C){for(var O,F=(be.tweeners[m]||[]).concat(be.tweeners["*"]),B=0,H=F.length;B<H;B++)if(O=F[B].call(C,m,f))return O}function re(f,m,C){var O,F,B,H,ue,oe,we,Ne,je="width"in m||"height"in m,Ee=this,Ge={},ct=f.style,Pt=f.nodeType&&Xr(f),It=gt.get(f,"fxshow");C.queue||(H=x._queueHooks(f,"fx"),H.unqueued==null&&(H.unqueued=0,ue=H.empty.fire,H.empty.fire=function(){H.unqueued||ue()}),H.unqueued++,Ee.always(function(){Ee.always(function(){H.unqueued--,x.queue(f,"fx").length||H.empty.fire()})}));for(O in m)if(F=m[O],Ro.test(F)){if(delete m[O],B=B||F==="toggle",F===(Pt?"hide":"show"))if(F==="show"&&It&&It[O]!==void 0)Pt=!0;else continue;Ge[O]=It&&It[O]||x.style(f,O)}if(oe=!x.isEmptyObject(m),!(!oe&&x.isEmptyObject(Ge))){je&&f.nodeType===1&&(C.overflow=[ct.overflow,ct.overflowX,ct.overflowY],we=It&&It.display,we==null&&(we=gt.get(f,"display")),Ne=x.css(f,"display"),Ne==="none"&&(we?Ne=we:(ir([f],!0),we=f.style.display||we,Ne=x.css(f,"display"),ir([f]))),(Ne==="inline"||Ne==="inline-block"&&we!=null)&&x.css(f,"float")==="none"&&(oe||(Ee.done(function(){ct.display=we}),we==null&&(Ne=ct.display,we=Ne==="none"?"":Ne)),ct.display="inline-block")),C.overflow&&(ct.overflow="hidden",Ee.always(function(){ct.overflow=C.overflow[0],ct.overflowX=C.overflow[1],ct.overflowY=C.overflow[2]})),oe=!1;for(O in Ge)oe||(It?"hidden"in It&&(Pt=It.hidden):It=gt.access(f,"fxshow",{display:we}),B&&(It.hidden=!Pt),Pt&&ir([f],!0),Ee.done(function(){Pt||ir([f]),gt.remove(f,"fxshow");for(O in Ge)x.style(f,O,Ge[O])})),oe=q(Pt?It[O]:0,O,Ee),O in It||(It[O]=oe.start,Pt&&(oe.end=oe.start,oe.start=0))}}function Pe(f,m){var C,O,F,B,H;for(C in f)if(O=cn(C),F=m[O],B=f[C],Array.isArray(B)&&(F=B[1],B=f[C]=B[0]),C!==O&&(f[O]=B,delete f[C]),H=x.cssHooks[O],H&&"expand"in H){B=H.expand(B),delete f[O];for(C in B)C in f||(f[C]=B[C],m[C]=F)}else m[O]=F}function be(f,m,C){var O,F,B=0,H=be.prefilters.length,ue=x.Deferred().always(function(){delete oe.elem}),oe=function(){if(F)return!1;for(var je=Cr||E(),Ee=Math.max(0,we.startTime+we.duration-je),Ge=Ee/we.duration||0,ct=1-Ge,Pt=0,It=we.tweens.length;Pt<It;Pt++)we.tweens[Pt].run(ct);return ue.notifyWith(f,[we,ct,Ee]),ct<1&&It?Ee:(It||ue.notifyWith(f,[we,1,0]),ue.resolveWith(f,[we]),!1)},we=ue.promise({elem:f,props:x.extend({},m),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},C),originalProperties:m,originalOptions:C,startTime:Cr||E(),duration:C.duration,tweens:[],createTween:function(je,Ee){var Ge=x.Tween(f,we.opts,je,Ee,we.opts.specialEasing[je]||we.opts.easing);return we.tweens.push(Ge),Ge},stop:function(je){var Ee=0,Ge=je?we.tweens.length:0;if(F)return this;for(F=!0;Ee<Ge;Ee++)we.tweens[Ee].run(1);return je?(ue.notifyWith(f,[we,1,0]),ue.resolveWith(f,[we,je])):ue.rejectWith(f,[we,je]),this}}),Ne=we.props;for(Pe(Ne,we.opts.specialEasing);B<H;B++)if(O=be.prefilters[B].call(we,f,Ne,we.opts),O)return R(O.stop)&&(x._queueHooks(we.elem,we.opts.queue).stop=O.stop.bind(O)),O;return x.map(Ne,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),x.fx.timer(x.extend(oe,{elem:f,anim:we,queue:we.opts.queue})),we}x.Animation=x.extend(be,{tweeners:{"*":[function(f,m){var C=this.createTween(f,m);return Po(C.elem,f,_r.exec(m),C),C}]},tweener:function(f,m){R(f)?(m=f,f=["*"]):f=f.match(vt);for(var C,O=0,F=f.length;O<F;O++)C=f[O],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)}}),x.speed=function(f,m,C){var O=f&&typeof f=="object"?x.extend({},f):{complete:C||!C&&m||R(f)&&f,duration:f,easing:C&&m||m&&!R(m)&&m};return x.fx.off?O.duration=0:typeof O.duration!="number"&&(O.duration in x.fx.speeds?O.duration=x.fx.speeds[O.duration]:O.duration=x.fx.speeds._default),(O.queue==null||O.queue===!0)&&(O.queue="fx"),O.old=O.complete,O.complete=function(){R(O.old)&&O.old.call(this),O.queue&&x.dequeue(this,O.queue)},O},x.fn.extend({fadeTo:function(f,m,C,O){return this.filter(Xr).css("opacity",0).show().end().animate({opacity:m},f,C,O)},animate:function(f,m,C,O){var F=x.isEmptyObject(f),B=x.speed(m,C,O),H=function(){var ue=be(this,x.extend({},f),B);(F||gt.get(this,"finish"))&&ue.stop(!0)};return H.finish=H,F||B.queue===!1?this.each(H):this.queue(B.queue,H)},stop:function(f,m,C){var O=function(F){var B=F.stop;delete F.stop,B(C)};return typeof f!="string"&&(C=m,m=f,f=void 0),m&&this.queue(f||"fx",[]),this.each(function(){var F=!0,B=f!=null&&f+"queueHooks",H=x.timers,ue=gt.get(this);if(B)ue[B]&&ue[B].stop&&O(ue[B]);else for(B in ue)ue[B]&&ue[B].stop&&Ui.test(B)&&O(ue[B]);for(B=H.length;B--;)H[B].elem===this&&(f==null||H[B].queue===f)&&(H[B].anim.stop(C),F=!1,H.splice(B,1));(F||!C)&&x.dequeue(this,f)})},finish:function(f){return f!==!1&&(f=f||"fx"),this.each(function(){var m,C=gt.get(this),O=C[f+"queue"],F=C[f+"queueHooks"],B=x.timers,H=O?O.length:0;for(C.finish=!0,x.queue(this,f,[]),F&&F.stop&&F.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++)O[m]&&O[m].finish&&O[m].finish.call(this);delete C.finish})}}),x.each(["toggle","show","hide"],function(f,m){var C=x.fn[m];x.fn[m]=function(O,F,B){return O==null||typeof O=="boolean"?C.apply(this,arguments):this.animate(j(m,!0),O,F,B)}}),x.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(f,m){x.fn[f]=function(C,O,F){return this.animate(m,C,O,F)}}),x.timers=[],x.fx.tick=function(){var f,m=0,C=x.timers;for(Cr=Date.now();m<C.length;m++)f=C[m],!f()&&C[m]===f&&C.splice(m--,1);C.length||x.fx.stop(),Cr=void 0},x.fx.timer=function(f){x.timers.push(f),x.fx.start()},x.fx.interval=13,x.fx.start=function(){fr||(fr=!0,Nr())},x.fx.stop=function(){fr=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(f,m){return f=x.fx&&x.fx.speeds[f]||f,m=m||"fx",this.queue(m,function(C,O){var F=t.setTimeout(C,f);O.stop=function(){t.clearTimeout(F)}})},function(){var f=I.createElement("input"),m=I.createElement("select"),C=m.appendChild(I.createElement("option"));f.type="checkbox",_.checkOn=f.value!=="",_.optSelected=C.selected,f=I.createElement("input"),f.value="t",f.type="radio",_.radioValue=f.value==="t"}();var Le,nt=x.expr.attrHandle;x.fn.extend({attr:function(f,m){return kn(this,x.attr,f,m,arguments.length>1)},removeAttr:function(f){return this.each(function(){x.removeAttr(this,f)})}}),x.extend({attr:function(f,m,C){var O,F,B=f.nodeType;if(!(B===3||B===8||B===2)){if(typeof f.getAttribute>"u")return x.prop(f,m,C);if((B!==1||!x.isXMLDoc(f))&&(F=x.attrHooks[m.toLowerCase()]||(x.expr.match.bool.test(m)?Le:void 0)),C!==void 0){if(C===null){x.removeAttr(f,m);return}return F&&"set"in F&&(O=F.set(f,C,m))!==void 0?O:(f.setAttribute(m,C+""),C)}return F&&"get"in F&&(O=F.get(f,m))!==null?O:(O=x.find.attr(f,m),O??void 0)}},attrHooks:{type:{set:function(f,m){if(!_.radioValue&&m==="radio"&&le(f,"input")){var C=f.value;return f.setAttribute("type",m),C&&(f.value=C),m}}}},removeAttr:function(f,m){var C,O=0,F=m&&m.match(vt);if(F&&f.nodeType===1)for(;C=F[O++];)f.removeAttribute(C)}}),Le={set:function(f,m,C){return m===!1?x.removeAttr(f,C):f.setAttribute(C,C),C}},x.each(x.expr.match.bool.source.match(/\w+/g),function(f,m){var C=nt[m]||x.find.attr;nt[m]=function(O,F,B){var H,ue,oe=F.toLowerCase();return B||(ue=nt[oe],nt[oe]=H,H=C(O,F,B)!=null?oe:null,nt[oe]=ue),H}});var yt=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;x.fn.extend({prop:function(f,m){return kn(this,x.prop,f,m,arguments.length>1)},removeProp:function(f){return this.each(function(){delete this[x.propFix[f]||f]})}}),x.extend({prop:function(f,m,C){var O,F,B=f.nodeType;if(!(B===3||B===8||B===2))return(B!==1||!x.isXMLDoc(f))&&(m=x.propFix[m]||m,F=x.propHooks[m]),C!==void 0?F&&"set"in F&&(O=F.set(f,C,m))!==void 0?O:f[m]=C:F&&"get"in F&&(O=F.get(f,m))!==null?O:f[m]},propHooks:{tabIndex:{get:function(f){var m=x.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"}}),_.optSelected||(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.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)||[]:[]}x.fn.extend({addClass:function(f){var m,C,O,F,B,H;return R(f)?this.each(function(ue){x(this).addClass(f.call(this,ue,Ut(this)))}):(m=Qn(f),m.length?this.each(function(){if(O=Ut(this),C=this.nodeType===1&&" "+bt(O)+" ",C){for(B=0;B<m.length;B++)F=m[B],C.indexOf(" "+F+" ")<0&&(C+=F+" ");H=bt(C),O!==H&&this.setAttribute("class",H)}}):this)},removeClass:function(f){var m,C,O,F,B,H;return R(f)?this.each(function(ue){x(this).removeClass(f.call(this,ue,Ut(this)))}):arguments.length?(m=Qn(f),m.length?this.each(function(){if(O=Ut(this),C=this.nodeType===1&&" "+bt(O)+" ",C){for(B=0;B<m.length;B++)for(F=m[B];C.indexOf(" "+F+" ")>-1;)C=C.replace(" "+F+" "," ");H=bt(C),O!==H&&this.setAttribute("class",H)}}):this):this.attr("class","")},toggleClass:function(f,m){var C,O,F,B,H=typeof f,ue=H==="string"||Array.isArray(f);return R(f)?this.each(function(oe){x(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=x(this),F=0;F<C.length;F++)O=C[F],B.hasClass(O)?B.removeClass(O):B.addClass(O);else(f===void 0||H==="boolean")&&(O=Ut(this),O&>.set(this,"__className__",O),this.setAttribute&&this.setAttribute("class",O||f===!1?"":gt.get(this,"__className__")||""))}))},hasClass:function(f){var m,C,O=0;for(m=" "+f+" ";C=this[O++];)if(C.nodeType===1&&(" "+bt(Ut(C))+" ").indexOf(m)>-1)return!0;return!1}});var zn=/\r/g;x.fn.extend({val:function(f){var m,C,O,F=this[0];return arguments.length?(O=R(f),this.each(function(B){var H;this.nodeType===1&&(O?H=f.call(this,B,x(this).val()):H=f,H==null?H="":typeof H=="number"?H+="":Array.isArray(H)&&(H=x.map(H,function(ue){return ue==null?"":ue+""})),m=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],(!m||!("set"in m)||m.set(this,H,"value")===void 0)&&(this.value=H))})):F?(m=x.valHooks[F.type]||x.valHooks[F.nodeName.toLowerCase()],m&&"get"in m&&(C=m.get(F,"value"))!==void 0?C:(C=F.value,typeof C=="string"?C.replace(zn,""):C??"")):void 0}}),x.extend({valHooks:{option:{get:function(f){var m=x.find.attr(f,"value");return m??bt(x.text(f))}},select:{get:function(f){var m,C,O,F=f.options,B=f.selectedIndex,H=f.type==="select-one",ue=H?null:[],oe=H?B+1:F.length;for(B<0?O=oe:O=H?B:0;O<oe;O++)if(C=F[O],(C.selected||O===B)&&!C.disabled&&(!C.parentNode.disabled||!le(C.parentNode,"optgroup"))){if(m=x(C).val(),H)return m;ue.push(m)}return ue},set:function(f,m){for(var C,O,F=f.options,B=x.makeArray(m),H=F.length;H--;)O=F[H],(O.selected=x.inArray(x.valHooks.option.get(O),B)>-1)&&(C=!0);return C||(f.selectedIndex=-1),B}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(f,m){if(Array.isArray(m))return f.checked=x.inArray(x(f).val(),m)>-1}},_.checkOn||(x.valHooks[this].get=function(f){return f.getAttribute("value")===null?"on":f.value})});var On=t.location,Fr={guid:Date.now()},or=/\?/;x.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)&&x.error("Invalid XML: "+(C?x.map(C.childNodes,function(O){return O.textContent}).join(`
|
|
177
|
+
`):f)),m};var Wi=/^(?:focusinfocus|focusoutblur)$/,mi=function(f){f.stopPropagation()};x.extend(x.event,{trigger:function(f,m,C,O){var F,B,H,ue,oe,we,Ne,je,Ee=[C||I],Ge=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)&&!Wi.test(Ge+x.event.triggered)&&(Ge.indexOf(".")>-1&&(ct=Ge.split("."),Ge=ct.shift(),ct.sort()),oe=Ge.indexOf(":")<0&&"on"+Ge,f=f[x.expando]?f:new x.Event(Ge,typeof f=="object"&&f),f.isTrigger=O?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]:x.makeArray(m,[f]),Ne=x.event.special[Ge]||{},!(!O&&Ne.trigger&&Ne.trigger.apply(C,m)===!1))){if(!O&&!Ne.noBubble&&!L(C)){for(ue=Ne.delegateType||Ge,Wi.test(ue+Ge)||(B=B.parentNode);B;B=B.parentNode)Ee.push(B),H=B;H===(C.ownerDocument||I)&&Ee.push(H.defaultView||H.parentWindow||t)}for(F=0;(B=Ee[F++])&&!f.isPropagationStopped();)je=B,f.type=F>1?ue:Ne.bindType||Ge,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=Ge,!O&&!f.isDefaultPrevented()&&(!Ne._default||Ne._default.apply(Ee.pop(),m)===!1)&&hn(C)&&oe&&R(C[Ge])&&!L(C)&&(H=C[oe],H&&(C[oe]=null),x.event.triggered=Ge,f.isPropagationStopped()&&je.addEventListener(Ge,mi),C[Ge](),f.isPropagationStopped()&&je.removeEventListener(Ge,mi),x.event.triggered=void 0,H&&(C[oe]=H)),f.result}},simulate:function(f,m,C){var O=x.extend(new x.Event,C,{type:f,isSimulated:!0});x.event.trigger(O,null,m)}}),x.fn.extend({trigger:function(f,m){return this.each(function(){x.event.trigger(f,m,this)})},triggerHandler:function(f,m){var C=this[0];if(C)return x.event.trigger(f,m,C,!0)}});var zi=/\[\]$/,jr=/\r?\n/g,Io=/^(?:submit|button|image|reset|file)$/i,Vs=/^(?:input|select|textarea|keygen)/i;function Aa(f,m,C,O){var F;if(Array.isArray(m))x.each(m,function(B,H){C||zi.test(f)?O(f,H):Aa(f+"["+(typeof H=="object"&&H!=null?B:"")+"]",H,C,O)});else if(!C&&ne(m)==="object")for(F in m)Aa(f+"["+F+"]",m[F],C,O);else O(f,m)}x.param=function(f,m){var C,O=[],F=function(B,H){var ue=R(H)?H():H;O[O.length]=encodeURIComponent(B)+"="+encodeURIComponent(ue??"")};if(f==null)return"";if(Array.isArray(f)||f.jquery&&!x.isPlainObject(f))x.each(f,function(){F(this.name,this.value)});else for(C in f)Aa(C,f[C],m,F);return O.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var f=x.prop(this,"elements");return f?x.makeArray(f):this}).filter(function(){var f=this.type;return this.name&&!x(this).is(":disabled")&&Vs.test(this.nodeName)&&!Io.test(f)&&(this.checked||!Zt.test(f))}).map(function(f,m){var C=x(this).val();return C==null?null:Array.isArray(C)?x.map(C,function(O){return{name:m.name,value:O.replace(jr,`\r
|
|
178
|
+
`)}}):{name:m.name,value:C.replace(jr,`\r
|
|
179
|
+
`)}}).get()}});var Ma=/%20/g,La=/#.*$/,Na=/([?&])_=[^&]*/,yi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ao=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ra=/^(?:GET|HEAD)$/,sn=/^\/\//,Qt={},Vt={},ki="*/".concat("*"),ri=I.createElement("a");ri.href=On.href;function Mo(f){return function(m,C){typeof m!="string"&&(C=m,m="*");var O,F=0,B=m.toLowerCase().match(vt)||[];if(R(C))for(;O=B[F++];)O[0]==="+"?(O=O.slice(1)||"*",(f[O]=f[O]||[]).unshift(C)):(f[O]=f[O]||[]).push(C)}}function bi(f,m,C,O){var F={},B=f===Vt;function H(ue){var oe;return F[ue]=!0,x.each(f[ue]||[],function(we,Ne){var je=Ne(m,C,O);if(typeof je=="string"&&!B&&!F[je])return m.dataTypes.unshift(je),H(je),!1;if(B)return!(oe=je)}),oe}return H(m.dataTypes[0])||!F["*"]&&H("*")}function dr(f,m){var C,O,F=x.ajaxSettings.flatOptions||{};for(C in m)m[C]!==void 0&&((F[C]?f:O||(O={}))[C]=m[C]);return O&&x.extend(!0,f,O),f}function Fa(f,m,C){for(var O,F,B,H,ue=f.contents,oe=f.dataTypes;oe[0]==="*";)oe.shift(),O===void 0&&(O=f.mimeType||m.getResponseHeader("Content-Type"));if(O){for(F in ue)if(ue[F]&&ue[F].test(O)){oe.unshift(F);break}}if(oe[0]in C)B=oe[0];else{for(F in C){if(!oe[0]||f.converters[F+" "+oe[0]]){B=F;break}H||(H=F)}B=B||H}if(B)return B!==oe[0]&&oe.unshift(B),C[B]}function ia(f,m,C,O){var F,B,H,ue,oe,we={},Ne=f.dataTypes.slice();if(Ne[1])for(H in f.converters)we[H.toLowerCase()]=f.converters[H];for(B=Ne.shift();B;)if(f.responseFields[B]&&(C[f.responseFields[B]]=m),!oe&&O&&f.dataFilter&&(m=f.dataFilter(m,f.dataType)),oe=B,B=Ne.shift(),B){if(B==="*")B=oe;else if(oe!=="*"&&oe!==B){if(H=we[oe+" "+B]||we["* "+B],!H){for(F in we)if(ue=F.split(" "),ue[1]===B&&(H=we[oe+" "+ue[0]]||we["* "+ue[0]],H)){H===!0?H=we[F]:we[F]!==!0&&(B=ue[0],Ne.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}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:On.href,type:"GET",isLocal:Ao.test(On.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ki,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(f,m){return m?dr(dr(f,x.ajaxSettings),m):dr(x.ajaxSettings,f)},ajaxPrefilter:Mo(Qt),ajaxTransport:Mo(Vt),ajax:function(f,m){typeof f=="object"&&(m=f,f=void 0),m=m||{};var C,O,F,B,H,ue,oe,we,Ne,je,Ee=x.ajaxSetup({},m),Ge=Ee.context||Ee,ct=Ee.context&&(Ge.nodeType||Ge.jquery)?x(Ge):x.event,Pt=x.Deferred(),It=x.Callbacks("once memory"),Mn=Ee.statusCode||{},dn={},Br={},$r="canceled",Wt={readyState:0,getResponseHeader:function(zt){var on;if(oe){if(!B)for(B={};on=yi.exec(F);)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?F: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&&(Ee.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(Pt.promise(Wt),Ee.url=((f||Ee.url||On.href)+"").replace(sn,On.protocol+"//"),Ee.type=m.method||m.type||Ee.method||Ee.type,Ee.dataTypes=(Ee.dataType||"*").toLowerCase().match(vt)||[""],Ee.crossDomain==null){ue=I.createElement("a");try{ue.href=Ee.url,ue.href=ue.href,Ee.crossDomain=ri.protocol+"//"+ri.host!=ue.protocol+"//"+ue.host}catch{Ee.crossDomain=!0}}if(Ee.data&&Ee.processData&&typeof Ee.data!="string"&&(Ee.data=x.param(Ee.data,Ee.traditional)),bi(Qt,Ee,m,Wt),oe)return Wt;we=x.event&&Ee.global,we&&x.active++===0&&x.event.trigger("ajaxStart"),Ee.type=Ee.type.toUpperCase(),Ee.hasContent=!ra.test(Ee.type),O=Ee.url.replace(La,""),Ee.hasContent?Ee.data&&Ee.processData&&(Ee.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ee.data=Ee.data.replace(Ma,"+")):(je=Ee.url.slice(O.length),Ee.data&&(Ee.processData||typeof Ee.data=="string")&&(O+=(or.test(O)?"&":"?")+Ee.data,delete Ee.data),Ee.cache===!1&&(O=O.replace(Na,"$1"),je=(or.test(O)?"&":"?")+"_="+Fr.guid+++je),Ee.url=O+je),Ee.ifModified&&(x.lastModified[O]&&Wt.setRequestHeader("If-Modified-Since",x.lastModified[O]),x.etag[O]&&Wt.setRequestHeader("If-None-Match",x.etag[O])),(Ee.data&&Ee.hasContent&&Ee.contentType!==!1||m.contentType)&&Wt.setRequestHeader("Content-Type",Ee.contentType),Wt.setRequestHeader("Accept",Ee.dataTypes[0]&&Ee.accepts[Ee.dataTypes[0]]?Ee.accepts[Ee.dataTypes[0]]+(Ee.dataTypes[0]!=="*"?", "+ki+"; q=0.01":""):Ee.accepts["*"]);for(Ne in Ee.headers)Wt.setRequestHeader(Ne,Ee.headers[Ne]);if(Ee.beforeSend&&(Ee.beforeSend.call(Ge,Wt,Ee)===!1||oe))return Wt.abort();if($r="abort",It.add(Ee.complete),Wt.done(Ee.success),Wt.fail(Ee.error),C=bi(Vt,Ee,m,Wt),!C)Vr(-1,"No Transport");else{if(Wt.readyState=1,we&&ct.trigger("ajaxSend",[Wt,Ee]),oe)return Wt;Ee.async&&Ee.timeout>0&&(H=t.setTimeout(function(){Wt.abort("timeout")},Ee.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,N,W,te,Te=on;oe||(oe=!0,H&&t.clearTimeout(H),C=void 0,F=go||"",Wt.readyState=zt>0?4:0,Er=zt>=200&&zt<300||zt===304,po&&(W=Fa(Ee,Wt,po)),!Er&&x.inArray("script",Ee.dataTypes)>-1&&x.inArray("json",Ee.dataTypes)<0&&(Ee.converters["text script"]=function(){}),W=ia(Ee,W,Wt,Er),Er?(Ee.ifModified&&(te=Wt.getResponseHeader("Last-Modified"),te&&(x.lastModified[O]=te),te=Wt.getResponseHeader("etag"),te&&(x.etag[O]=te)),zt===204||Ee.type==="HEAD"?Te="nocontent":zt===304?Te="notmodified":(Te=W.state,k=W.data,N=W.error,Er=!N)):(N=Te,(zt||!Te)&&(Te="error",zt<0&&(zt=0))),Wt.status=zt,Wt.statusText=(on||Te)+"",Er?Pt.resolveWith(Ge,[k,Te,Wt]):Pt.rejectWith(Ge,[Wt,Te,N]),Wt.statusCode(Mn),Mn=void 0,we&&ct.trigger(Er?"ajaxSuccess":"ajaxError",[Wt,Ee,Er?k:N]),It.fireWith(Ge,[Wt,Te]),we&&(ct.trigger("ajaxComplete",[Wt,Ee]),--x.active||x.event.trigger("ajaxStop")))}return Wt},getJSON:function(f,m,C){return x.get(f,m,C,"json")},getScript:function(f,m){return x.get(f,void 0,m,"script")}}),x.each(["get","post"],function(f,m){x[m]=function(C,O,F,B){return R(O)&&(B=B||F,F=O,O=void 0),x.ajax(x.extend({url:C,type:m,dataType:B,data:O,success:F},x.isPlainObject(C)&&C))}}),x.ajaxPrefilter(function(f){var m;for(m in f.headers)m.toLowerCase()==="content-type"&&(f.contentType=f.headers[m]||"")}),x._evalUrl=function(f,m,C){return x.ajax({url:f,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(O){x.globalEval(O,m,C)}})},x.fn.extend({wrapAll:function(f){var m;return this[0]&&(R(f)&&(f=f.call(this[0])),m=x(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){x(this).wrapInner(f.call(this,m))}):this.each(function(){var m=x(this),C=m.contents();C.length?C.wrapAll(f):m.append(f)})},wrap:function(f){var m=R(f);return this.each(function(C){x(this).wrapAll(m?f.call(this,C):f)})},unwrap:function(f){return this.parent(f).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(f){return!x.expr.pseudos.visible(f)},x.expr.pseudos.visible=function(f){return!!(f.offsetWidth||f.offsetHeight||f.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var os={0:200,1223:204},yn=x.ajaxSettings.xhr();_.cors=!!yn&&"withCredentials"in yn,_.ajax=yn=!!yn,x.ajaxTransport(function(f){var m,C;if(_.cors||yn&&!f.crossDomain)return{send:function(O,F){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&&!O["X-Requested-With"]&&(O["X-Requested-With"]="XMLHttpRequest");for(B in O)H.setRequestHeader(B,O[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"?F(0,"error"):F(H.status,H.statusText):F(os[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()}}}),x.ajaxPrefilter(function(f){f.crossDomain&&(f.contents.script=!1)}),x.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 x.globalEval(f),f}}}),x.ajaxPrefilter("script",function(f){f.cache===void 0&&(f.cache=!1),f.crossDomain&&(f.type="GET")}),x.ajaxTransport("script",function(f){if(f.crossDomain||f.scriptAttrs){var m,C;return{send:function(O,F){m=x("<script>").attr(f.scriptAttrs||{}).prop({charset:f.scriptCharset,src:f.url}).on("load error",C=function(B){m.remove(),C=null,B&&F(B.type==="error"?404:200,B.type)}),I.head.appendChild(m[0])},abort:function(){C&&C()}}}});var Lo=[],wi=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var f=Lo.pop()||x.expando+"_"+Fr.guid++;return this[f]=!0,f}}),x.ajaxPrefilter("json jsonp",function(f,m,C){var O,F,B,H=f.jsonp!==!1&&(wi.test(f.url)?"url":typeof f.data=="string"&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&wi.test(f.data)&&"data");if(H||f.dataTypes[0]==="jsonp")return O=f.jsonpCallback=R(f.jsonpCallback)?f.jsonpCallback():f.jsonpCallback,H?f[H]=f[H].replace(wi,"$1"+O):f.jsonp!==!1&&(f.url+=(or.test(f.url)?"&":"?")+f.jsonp+"="+O),f.converters["script json"]=function(){return B||x.error(O+" was not called"),B[0]},f.dataTypes[0]="json",F=t[O],t[O]=function(){B=arguments},C.always(function(){F===void 0?x(t).removeProp(O):t[O]=F,f[O]&&(f.jsonpCallback=m.jsonpCallback,Lo.push(O)),B&&R(F)&&F(B[0]),B=F=void 0}),"script"}),_.createHTMLDocument=function(){var f=I.implementation.createHTMLDocument("").body;return f.innerHTML="<form></form><form></form>",f.childNodes.length===2}(),x.parseHTML=function(f,m,C){if(typeof f!="string")return[];typeof m=="boolean"&&(C=m,m=!1);var O,F,B;return m||(_.createHTMLDocument?(m=I.implementation.createHTMLDocument(""),O=m.createElement("base"),O.href=I.location.href,m.head.appendChild(O)):m=I),F=Ue.exec(f),B=!C&&[],F?[m.createElement(F[1])]:(F=mn([f],m,B),B&&B.length&&x(B).remove(),x.merge([],F.childNodes))},x.fn.load=function(f,m,C){var O,F,B,H=this,ue=f.indexOf(" ");return ue>-1&&(O=bt(f.slice(ue)),f=f.slice(0,ue)),R(m)?(C=m,m=void 0):m&&typeof m=="object"&&(F="POST"),H.length>0&&x.ajax({url:f,type:F||"GET",dataType:"html",data:m}).done(function(oe){B=arguments,H.html(O?x("<div>").append(x.parseHTML(oe)).find(O):oe)}).always(C&&function(oe,we){H.each(function(){C.apply(this,B||[oe.responseText,we,oe])})}),this},x.expr.pseudos.animated=function(f){return x.grep(x.timers,function(m){return f===m.elem}).length},x.offset={setOffset:function(f,m,C){var O,F,B,H,ue,oe,we,Ne=x.css(f,"position"),je=x(f),Ee={};Ne==="static"&&(f.style.position="relative"),ue=je.offset(),B=x.css(f,"top"),oe=x.css(f,"left"),we=(Ne==="absolute"||Ne==="fixed")&&(B+oe).indexOf("auto")>-1,we?(O=je.position(),H=O.top,F=O.left):(H=parseFloat(B)||0,F=parseFloat(oe)||0),R(m)&&(m=m.call(f,C,x.extend({},ue))),m.top!=null&&(Ee.top=m.top-ue.top+H),m.left!=null&&(Ee.left=m.left-ue.left+F),"using"in m?m.using.call(f,Ee):je.css(Ee)}},x.fn.extend({offset:function(f){if(arguments.length)return f===void 0?this:this.each(function(F){x.offset.setOffset(this,f,F)});var m,C,O=this[0];if(O)return O.getClientRects().length?(m=O.getBoundingClientRect(),C=O.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,O=this[0],F={top:0,left:0};if(x.css(O,"position")==="fixed")m=O.getBoundingClientRect();else{for(m=this.offset(),C=O.ownerDocument,f=O.offsetParent||C.documentElement;f&&(f===C.body||f===C.documentElement)&&x.css(f,"position")==="static";)f=f.parentNode;f&&f!==O&&f.nodeType===1&&(F=x(f).offset(),F.top+=x.css(f,"borderTopWidth",!0),F.left+=x.css(f,"borderLeftWidth",!0))}return{top:m.top-F.top-x.css(O,"marginTop",!0),left:m.left-F.left-x.css(O,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var f=this.offsetParent;f&&x.css(f,"position")==="static";)f=f.offsetParent;return f||Rr})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(f,m){var C=m==="pageYOffset";x.fn[f]=function(O){return kn(this,function(F,B,H){var ue;if(L(F)?ue=F:F.nodeType===9&&(ue=F.defaultView),H===void 0)return ue?ue[m]:F[B];ue?ue.scrollTo(C?ue.pageXOffset:H,C?H:ue.pageYOffset):F[B]=H},f,O,arguments.length)}}),x.each(["top","left"],function(f,m){x.cssHooks[m]=Wn(_.pixelPosition,function(C,O){if(O)return O=Ar(C,m),Ei.test(O)?x(C).position()[m]+"px":O})}),x.each({Height:"height",Width:"width"},function(f,m){x.each({padding:"inner"+f,content:m,"":"outer"+f},function(C,O){x.fn[O]=function(F,B){var H=arguments.length&&(C||typeof F!="boolean"),ue=C||(F===!0||B===!0?"margin":"border");return kn(this,function(oe,we,Ne){var je;return L(oe)?O.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])):Ne===void 0?x.css(oe,we,ue):x.style(oe,we,Ne,ue)},m,H?F:void 0,H)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(f,m){x.fn[m]=function(C){return this.on(m,C)}}),x.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,O){return this.on(m,f,C,O)},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)}}),x.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){x.fn[m]=function(C,O){return arguments.length>0?this.on(m,null,C,O):this.trigger(m)}});var as=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(f,m){var C,O,F;if(typeof m=="string"&&(C=f[m],m=f,f=C),!!R(f))return O=o.call(arguments,2),F=function(){return f.apply(m||this,O.concat(o.call(arguments)))},F.guid=f.guid=f.guid||x.guid++,F},x.holdReady=function(f){f?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=le,x.isFunction=R,x.isWindow=L,x.camelCase=cn,x.type=ne,x.now=Date.now,x.isNumeric=function(f){var m=x.type(f);return(m==="number"||m==="string")&&!isNaN(f-parseFloat(f))},x.trim=function(f){return f==null?"":(f+"").replace(as,"$1")};var ho=t.jQuery,er=t.$;return x.noConflict=function(f){return t.$===x&&(t.$=er),f&&t.jQuery===x&&(t.jQuery=ho),x},typeof n>"u"&&(t.jQuery=t.$=x),x})})(fO);var dO=fO.exports;const v4=Bc(dO);var m4={exports:{}};/**
|
|
180
|
+
* @version: 3.1
|
|
181
|
+
* @author: Dan Grossman http://www.dangrossman.info/
|
|
182
|
+
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
183
|
+
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
184
|
+
* @website: http://www.daterangepicker.com/
|
|
185
|
+
*/(function(e){(function(t,n){if(e.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=dO,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:CI;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,S;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var T=n(this.element).val(),_=T.split(this.locale.separator);v=p=null,_.length==2?(v=t(_[0],this.locale.format),p=t(_[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(S in o.ranges){typeof o.ranges[S][0]=="string"?v=t(o.ranges[S][0],this.locale.format):v=t(o.ranges[S][0]),typeof o.ranges[S][1]=="string"?p=t(o.ranges[S][1],this.locale.format):p=t(o.ranges[S][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=S;var c=l.value;this.ranges[c]=[v,p]}}var L="<ul>";for(S in this.ranges)L+='<li data-range-key="'+S+'">'+S+"</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]),S=t([s,o,v]),T=t(p).subtract(1,"month").month(),_=t(p).subtract(1,"month").year(),R=t([_,T]).daysInMonth(),L=p.day(),I=[];I.firstDay=p,I.lastDay=S;for(var U=0;U<6;U++)I[U]=[];var Y=R-L+this.locale.firstDay+1;Y>R&&(Y-=7),L==this.locale.firstDay&&(Y=R-6);for(var ne=t([_,T,Y,12,c,d]),J,de,U=0,J=0,de=0;U<42;U++,J++,ne=t(ne).add(24,"hour"))U>0&&J%7===0&&(J=0,de++),I[de][J]=ne.clone().hour(l).minute(c).second(d),ne.hour(12),this.minDate&&I[de][J].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&I[de][J].isBefore(this.minDate)&&i=="left"&&(I[de][J]=this.minDate.clone()),this.maxDate&&I[de][J].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&I[de][J].isAfter(this.maxDate)&&i=="right"&&(I[de][J]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=I:this.rightCalendar.calendar=I;var x=i=="left"?this.minDate:this.startDate,ye=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var le='<table class="table-condensed">';le+="<thead>",le+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(le+="<th></th>"),(!x||x.isBefore(I.firstDay))&&(!this.linkedCalendars||i=="left")?le+='<th class="prev available"><span></span></th>':le+="<th></th>";var Qe=this.locale.monthNames[I[1][1].month()]+I[1][1].format(" YYYY");if(this.showDropdowns){for(var ze=I[1][1].month(),He=I[1][1].year(),Ye=ye&&ye.year()||this.maxYear,et=x&&x.year()||this.minYear,pe=He==et,De=He==Ye,Fe='<select class="monthselect">',Je=0;Je<12;Je++)(!pe||x&&Je>=x.month())&&(!De||ye&&Je<=ye.month())?Fe+="<option value='"+Je+"'"+(Je===ze?" selected='selected'":"")+">"+this.locale.monthNames[Je]+"</option>":Fe+="<option value='"+Je+"'"+(Je===ze?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Je]+"</option>";Fe+="</select>";for(var it='<select class="yearselect">',Oe=et;Oe<=Ye;Oe++)it+='<option value="'+Oe+'"'+(Oe===He?' selected="selected"':"")+">"+Oe+"</option>";it+="</select>",Qe=Fe+it}if(le+='<th colspan="5" class="month">'+Qe+"</th>",(!ye||ye.isAfter(I.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?le+='<th class="next available"><span></span></th>':le+="<th></th>",le+="</tr>",le+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(le+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Xe,lt){le+="<th>"+lt+"</th>"}),le+="</tr>",le+="</thead>",le+="<tbody>",this.endDate==null&&this.maxSpan){var xe=this.startDate.clone().add(this.maxSpan).endOf("day");(!ye||xe.isBefore(ye))&&(ye=xe)}for(var de=0;de<6;de++){le+="<tr>",this.showWeekNumbers?le+='<td class="week">'+I[de][0].week()+"</td>":this.showISOWeekNumbers&&(le+='<td class="week">'+I[de][0].isoWeek()+"</td>");for(var J=0;J<7;J++){var Ue=[];I[de][J].isSame(new Date,"day")&&Ue.push("today"),I[de][J].isoWeekday()>5&&Ue.push("weekend"),I[de][J].month()!=I[1][1].month()&&Ue.push("off","ends"),this.minDate&&I[de][J].isBefore(this.minDate,"day")&&Ue.push("off","disabled"),ye&&I[de][J].isAfter(ye,"day")&&Ue.push("off","disabled"),this.isInvalidDate(I[de][J])&&Ue.push("off","disabled"),I[de][J].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Ue.push("active","start-date"),this.endDate!=null&&I[de][J].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Ue.push("active","end-date"),this.endDate!=null&&I[de][J]>this.startDate&&I[de][J]<this.endDate&&Ue.push("in-range");var Ve=this.isCustomDate(I[de][J]);Ve!==!1&&(typeof Ve=="string"?Ue.push(Ve):Array.prototype.push.apply(Ue,Ve));for(var Re="",Me=!1,U=0;U<Ue.length;U++)Re+=Ue[U]+" ",Ue[U]=="disabled"&&(Me=!0);Me||(Re+="available"),le+='<td class="'+Re.replace(/^\s+|\s+$/g,"")+'" data-title="r'+de+"c"+J+'">'+I[de][J].date()+"</td>"}le+="</tr>"}le+="</tbody>",le+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(le)},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,S=this.timePicker24Hour?23:12,T=p;T<=S;T++){var _=T;this.timePicker24Hour||(_=s.hour()>=12?T==12?12:T+12:T==12?0:T);var R=s.clone().hour(_),L=!1;l&&R.minute(59).isBefore(l)&&(L=!0),c&&R.minute(0).isAfter(c)&&(L=!0),_==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="",Y="";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)&&(Y=' disabled="disabled" class="disabled"'),s.hour()>=12?o+='<option value="AM"'+U+'>AM</option><option value="PM" selected="selected"'+Y+">PM</option>":o+='<option value="AM" selected="selected"'+U+'>AM</option><option value="PM"'+Y+">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,S=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(T,_){if(!n(_).hasClass("week")){var R=n(_).attr("data-title"),L=R.substr(1,1),I=R.substr(3,1),U=n(_).parents(".drp-calendar"),Y=U.hasClass("left")?v.calendar[L][I]:p.calendar[L][I];Y.isAfter(S)&&Y.isBefore(d)||Y.isSame(d,"day")?n(_).addClass("in-range"):n(_).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 S=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(S)&&(S=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(S).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 S=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(S)&&(S=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(S).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 S=this.endDate.clone();S.hour(l),S.minute(c),S.second(d),this.setEndDate(S)}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})})(m4);var Mm=function(e,t){return Mm=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])},Mm(e,t)};function y4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var b4=function(e){y4(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=v4(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);_c.styled(e=>st.jsx(_c.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:so.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}}));/**
|
|
186
|
+
* @license
|
|
187
|
+
* Copyright 2017 Google LLC
|
|
188
|
+
*
|
|
189
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
190
|
+
* you may not use this file except in compliance with the License.
|
|
191
|
+
* You may obtain a copy of the License at
|
|
192
|
+
*
|
|
193
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
194
|
+
*
|
|
195
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
196
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
197
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
198
|
+
* See the License for the specific language governing permissions and
|
|
199
|
+
* limitations under the License.
|
|
200
|
+
*//**
|
|
201
|
+
* @license
|
|
202
|
+
* Copyright 2017 Google LLC
|
|
203
|
+
*
|
|
204
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
205
|
+
* you may not use this file except in compliance with the License.
|
|
206
|
+
* You may obtain a copy of the License at
|
|
207
|
+
*
|
|
208
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
209
|
+
*
|
|
210
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
211
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
212
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
213
|
+
* See the License for the specific language governing permissions and
|
|
214
|
+
* limitations under the License.
|
|
215
|
+
*/const hO=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},w4=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("")},pO={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 S=(l&15)<<2|d>>6,T=d&63;c||(T=64,s||(S=64)),r.push(n[v],n[p],n[S],n[T])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(hO(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):w4(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 x4;const S=o<<2|l>>4;if(r.push(S),d!==64){const T=l<<4&240|d>>2;if(r.push(T),p!==64){const _=d<<6&192|p;r.push(_)}}}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 x4 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const S4=function(e){const t=hO(e);return pO.encodeByteArray(t,!0)},gO=function(e){return S4(e).replace(/\./g,"")},T4=function(e){try{return pO.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
|
|
216
|
+
* @license
|
|
217
|
+
* Copyright 2022 Google LLC
|
|
218
|
+
*
|
|
219
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
220
|
+
* you may not use this file except in compliance with the License.
|
|
221
|
+
* You may obtain a copy of the License at
|
|
222
|
+
*
|
|
223
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
224
|
+
*
|
|
225
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
226
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
227
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
228
|
+
* See the License for the specific language governing permissions and
|
|
229
|
+
* limitations under the License.
|
|
230
|
+
*/function C4(){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.")}/**
|
|
231
|
+
* @license
|
|
232
|
+
* Copyright 2022 Google LLC
|
|
233
|
+
*
|
|
234
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
235
|
+
* you may not use this file except in compliance with the License.
|
|
236
|
+
* You may obtain a copy of the License at
|
|
237
|
+
*
|
|
238
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
239
|
+
*
|
|
240
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
241
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
242
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
243
|
+
* See the License for the specific language governing permissions and
|
|
244
|
+
* limitations under the License.
|
|
245
|
+
*/const E4=()=>C4().__FIREBASE_DEFAULTS__,k4=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},O4=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&T4(e[1]);return t&&JSON.parse(t)},D4=()=>{try{return E4()||k4()||O4()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},vO=()=>{var e;return(e=D4())===null||e===void 0?void 0:e.config};/**
|
|
246
|
+
* @license
|
|
247
|
+
* Copyright 2017 Google LLC
|
|
248
|
+
*
|
|
249
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
250
|
+
* you may not use this file except in compliance with the License.
|
|
251
|
+
* You may obtain a copy of the License at
|
|
252
|
+
*
|
|
253
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
254
|
+
*
|
|
255
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
256
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
257
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
258
|
+
* See the License for the specific language governing permissions and
|
|
259
|
+
* limitations under the License.
|
|
260
|
+
*/class P4{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function mO(){try{return typeof indexedDB=="object"}catch{return!1}}function yO(){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 _4(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
261
|
+
* @license
|
|
262
|
+
* Copyright 2017 Google LLC
|
|
263
|
+
*
|
|
264
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
265
|
+
* you may not use this file except in compliance with the License.
|
|
266
|
+
* You may obtain a copy of the License at
|
|
267
|
+
*
|
|
268
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
269
|
+
*
|
|
270
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
271
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
272
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
273
|
+
* See the License for the specific language governing permissions and
|
|
274
|
+
* limitations under the License.
|
|
275
|
+
*/const R4="FirebaseError";class Ff extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=R4,Object.setPrototypeOf(this,Ff.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,eg.prototype.create)}}class eg{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?I4(o,r):"Error",l=`${this.serviceName}: ${s} (${i}).`;return new Ff(i,l,r)}}function I4(e,t){return e.replace(A4,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const A4=/\{\$([^}]+)}/g;function Lm(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(o1(o)&&o1(s)){if(!Lm(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function o1(e){return e!==null&&typeof e=="object"}/**
|
|
276
|
+
* @license
|
|
277
|
+
* Copyright 2021 Google LLC
|
|
278
|
+
*
|
|
279
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
280
|
+
* you may not use this file except in compliance with the License.
|
|
281
|
+
* You may obtain a copy of the License at
|
|
282
|
+
*
|
|
283
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
284
|
+
*
|
|
285
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
286
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
287
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
288
|
+
* See the License for the specific language governing permissions and
|
|
289
|
+
* limitations under the License.
|
|
290
|
+
*/function Yy(e){return e&&e._delegate?e._delegate:e}class Rl{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}}/**
|
|
291
|
+
* @license
|
|
292
|
+
* Copyright 2019 Google LLC
|
|
293
|
+
*
|
|
294
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
295
|
+
* you may not use this file except in compliance with the License.
|
|
296
|
+
* You may obtain a copy of the License at
|
|
297
|
+
*
|
|
298
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
299
|
+
*
|
|
300
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
301
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
302
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
303
|
+
* See the License for the specific language governing permissions and
|
|
304
|
+
* limitations under the License.
|
|
305
|
+
*/const Tc="[DEFAULT]";/**
|
|
306
|
+
* @license
|
|
307
|
+
* Copyright 2019 Google LLC
|
|
308
|
+
*
|
|
309
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
310
|
+
* you may not use this file except in compliance with the License.
|
|
311
|
+
* You may obtain a copy of the License at
|
|
312
|
+
*
|
|
313
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
314
|
+
*
|
|
315
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
316
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
317
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
318
|
+
* See the License for the specific language governing permissions and
|
|
319
|
+
* limitations under the License.
|
|
320
|
+
*/class M4{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 P4;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(N4(t))try{this.getOrInitializeService({instanceIdentifier:Tc})}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=Tc){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=Tc){return this.instances.has(t)}getOptions(t=Tc){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:L4(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=Tc){return this.component?this.component.multipleInstances?t:Tc:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function L4(e){return e===Tc?void 0:e}function N4(e){return e.instantiationMode==="EAGER"}/**
|
|
321
|
+
* @license
|
|
322
|
+
* Copyright 2019 Google LLC
|
|
323
|
+
*
|
|
324
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
325
|
+
* you may not use this file except in compliance with the License.
|
|
326
|
+
* You may obtain a copy of the License at
|
|
327
|
+
*
|
|
328
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
329
|
+
*
|
|
330
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
331
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
332
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
333
|
+
* See the License for the specific language governing permissions and
|
|
334
|
+
* limitations under the License.
|
|
335
|
+
*/class F4{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 M4(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
336
|
+
* @license
|
|
337
|
+
* Copyright 2017 Google LLC
|
|
338
|
+
*
|
|
339
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
340
|
+
* you may not use this file except in compliance with the License.
|
|
341
|
+
* You may obtain a copy of the License at
|
|
342
|
+
*
|
|
343
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
344
|
+
*
|
|
345
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
346
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
347
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
348
|
+
* See the License for the specific language governing permissions and
|
|
349
|
+
* limitations under the License.
|
|
350
|
+
*/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 j4={debug:Vn.DEBUG,verbose:Vn.VERBOSE,info:Vn.INFO,warn:Vn.WARN,error:Vn.ERROR,silent:Vn.SILENT},B4=Vn.INFO,$4={[Vn.DEBUG]:"log",[Vn.VERBOSE]:"log",[Vn.INFO]:"info",[Vn.WARN]:"warn",[Vn.ERROR]:"error"},V4=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=$4[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 H4{constructor(t){this.name=t,this._logLevel=B4,this._logHandler=V4,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"?j4[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 U4=(e,t)=>t.some(n=>e instanceof n);let a1,s1;function W4(){return a1||(a1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function z4(){return s1||(s1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const bO=new WeakMap,Nm=new WeakMap,wO=new WeakMap,Ev=new WeakMap,Gy=new WeakMap;function Y4(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(Ru(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&bO.set(n,e)}).catch(()=>{}),Gy.set(t,e),t}function G4(e){if(Nm.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)});Nm.set(e,t)}let Fm={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Nm.get(e);if(t==="objectStoreNames")return e.objectStoreNames||wO.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ru(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 q4(e){Fm=e(Fm)}function X4(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(kv(this),t,...n);return wO.set(r,t.sort?t.sort():[t]),Ru(r)}:z4().includes(e)?function(...t){return e.apply(kv(this),t),Ru(bO.get(this))}:function(...t){return Ru(e.apply(kv(this),t))}}function K4(e){return typeof e=="function"?X4(e):(e instanceof IDBTransaction&&G4(e),U4(e,W4())?new Proxy(e,Fm):e)}function Ru(e){if(e instanceof IDBRequest)return Y4(e);if(Ev.has(e))return Ev.get(e);const t=K4(e);return t!==e&&(Ev.set(e,t),Gy.set(t,e)),t}const kv=e=>Gy.get(e);function tg(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),l=Ru(s);return r&&s.addEventListener("upgradeneeded",c=>{r(Ru(s.result),c.oldVersion,c.newVersion,Ru(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 Ov(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),Ru(n).then(()=>{})}const Z4=["get","getKey","getAll","getAllKeys","count"],J4=["put","add","delete","clear"],Dv=new Map;function u1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Dv.get(t))return Dv.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=J4.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Z4.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 Dv.set(t,o),o}q4(e=>({...e,get:(t,n,r)=>u1(t,n)||e.get(t,n,r),has:(t,n)=>!!u1(t,n)||e.has(t,n)}));/**
|
|
351
|
+
* @license
|
|
352
|
+
* Copyright 2019 Google LLC
|
|
353
|
+
*
|
|
354
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
355
|
+
* you may not use this file except in compliance with the License.
|
|
356
|
+
* You may obtain a copy of the License at
|
|
357
|
+
*
|
|
358
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
359
|
+
*
|
|
360
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
361
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
362
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
363
|
+
* See the License for the specific language governing permissions and
|
|
364
|
+
* limitations under the License.
|
|
365
|
+
*/class Q4{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(e6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function e6(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const jm="@firebase/app",l1="0.9.28";/**
|
|
366
|
+
* @license
|
|
367
|
+
* Copyright 2019 Google LLC
|
|
368
|
+
*
|
|
369
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
370
|
+
* you may not use this file except in compliance with the License.
|
|
371
|
+
* You may obtain a copy of the License at
|
|
372
|
+
*
|
|
373
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
374
|
+
*
|
|
375
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
376
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
377
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
378
|
+
* See the License for the specific language governing permissions and
|
|
379
|
+
* limitations under the License.
|
|
380
|
+
*/const Mc=new H4("@firebase/app"),t6="@firebase/app-compat",n6="@firebase/analytics-compat",r6="@firebase/analytics",i6="@firebase/app-check-compat",o6="@firebase/app-check",a6="@firebase/auth",s6="@firebase/auth-compat",u6="@firebase/database",l6="@firebase/database-compat",c6="@firebase/functions",f6="@firebase/functions-compat",d6="@firebase/installations",h6="@firebase/installations-compat",p6="@firebase/messaging",g6="@firebase/messaging-compat",v6="@firebase/performance",m6="@firebase/performance-compat",y6="@firebase/remote-config",b6="@firebase/remote-config-compat",w6="@firebase/storage",x6="@firebase/storage-compat",S6="@firebase/firestore",T6="@firebase/firestore-compat",C6="firebase";/**
|
|
381
|
+
* @license
|
|
382
|
+
* Copyright 2019 Google LLC
|
|
383
|
+
*
|
|
384
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
385
|
+
* you may not use this file except in compliance with the License.
|
|
386
|
+
* You may obtain a copy of the License at
|
|
387
|
+
*
|
|
388
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
389
|
+
*
|
|
390
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
391
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
392
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
393
|
+
* See the License for the specific language governing permissions and
|
|
394
|
+
* limitations under the License.
|
|
395
|
+
*/const Bm="[DEFAULT]",E6={[jm]:"fire-core",[t6]:"fire-core-compat",[r6]:"fire-analytics",[n6]:"fire-analytics-compat",[o6]:"fire-app-check",[i6]:"fire-app-check-compat",[a6]:"fire-auth",[s6]:"fire-auth-compat",[u6]:"fire-rtdb",[l6]:"fire-rtdb-compat",[c6]:"fire-fn",[f6]:"fire-fn-compat",[d6]:"fire-iid",[h6]:"fire-iid-compat",[p6]:"fire-fcm",[g6]:"fire-fcm-compat",[v6]:"fire-perf",[m6]:"fire-perf-compat",[y6]:"fire-rc",[b6]:"fire-rc-compat",[w6]:"fire-gcs",[x6]:"fire-gcs-compat",[S6]:"fire-fst",[T6]:"fire-fst-compat","fire-js":"fire-js",[C6]:"fire-js-all"};/**
|
|
396
|
+
* @license
|
|
397
|
+
* Copyright 2019 Google LLC
|
|
398
|
+
*
|
|
399
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
400
|
+
* you may not use this file except in compliance with the License.
|
|
401
|
+
* You may obtain a copy of the License at
|
|
402
|
+
*
|
|
403
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
404
|
+
*
|
|
405
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
406
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
407
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
408
|
+
* See the License for the specific language governing permissions and
|
|
409
|
+
* limitations under the License.
|
|
410
|
+
*/const Cp=new Map,$m=new Map;function k6(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($m.has(t))return Mc.debug(`There were multiple attempts to register component ${t}.`),!1;$m.set(t,e);for(const n of Cp.values())k6(n,e);return!0}function qy(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
|
|
411
|
+
* @license
|
|
412
|
+
* Copyright 2019 Google LLC
|
|
413
|
+
*
|
|
414
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
415
|
+
* you may not use this file except in compliance with the License.
|
|
416
|
+
* You may obtain a copy of the License at
|
|
417
|
+
*
|
|
418
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
419
|
+
*
|
|
420
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
421
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
422
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
423
|
+
* See the License for the specific language governing permissions and
|
|
424
|
+
* limitations under the License.
|
|
425
|
+
*/const O6={"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}."},El=new eg("app","Firebase",O6);/**
|
|
426
|
+
* @license
|
|
427
|
+
* Copyright 2019 Google LLC
|
|
428
|
+
*
|
|
429
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
430
|
+
* you may not use this file except in compliance with the License.
|
|
431
|
+
* You may obtain a copy of the License at
|
|
432
|
+
*
|
|
433
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
434
|
+
*
|
|
435
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
436
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
437
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
438
|
+
* See the License for the specific language governing permissions and
|
|
439
|
+
* limitations under the License.
|
|
440
|
+
*/class D6{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 Rl("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 El.create("app-deleted",{appName:this._name})}}function xO(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Bm,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw El.create("bad-app-name",{appName:String(i)});if(n||(n=vO()),!n)throw El.create("no-options");const o=Cp.get(i);if(o){if(Lm(n,o.options)&&Lm(r,o.config))return o;throw El.create("duplicate-app",{appName:i})}const s=new F4(i);for(const c of $m.values())s.addComponent(c);const l=new D6(n,r,s);return Cp.set(i,l),l}function P6(e=Bm){const t=Cp.get(e);if(!t&&e===Bm&&vO())return xO();if(!t)throw El.create("no-app",{appName:e});return t}function kl(e,t,n){var r;let i=(r=E6[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 Rl(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/**
|
|
441
|
+
* @license
|
|
442
|
+
* Copyright 2021 Google LLC
|
|
443
|
+
*
|
|
444
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
445
|
+
* you may not use this file except in compliance with the License.
|
|
446
|
+
* You may obtain a copy of the License at
|
|
447
|
+
*
|
|
448
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
449
|
+
*
|
|
450
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
451
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
452
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
453
|
+
* See the License for the specific language governing permissions and
|
|
454
|
+
* limitations under the License.
|
|
455
|
+
*/const _6="firebase-heartbeat-database",R6=1,Fd="firebase-heartbeat-store";let Pv=null;function SO(){return Pv||(Pv=tg(_6,R6,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Fd)}catch(n){console.warn(n)}}}}).catch(e=>{throw El.create("idb-open",{originalErrorMessage:e.message})})),Pv}async function I6(e){try{const n=(await SO()).transaction(Fd),r=await n.objectStore(Fd).get(TO(e));return await n.done,r}catch(t){if(t instanceof Ff)Mc.warn(t.message);else{const n=El.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Mc.warn(n.message)}}}async function c1(e,t){try{const r=(await SO()).transaction(Fd,"readwrite");await r.objectStore(Fd).put(t,TO(e)),await r.done}catch(n){if(n instanceof Ff)Mc.warn(n.message);else{const r=El.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Mc.warn(r.message)}}}function TO(e){return`${e.name}!${e.options.appId}`}/**
|
|
456
|
+
* @license
|
|
457
|
+
* Copyright 2021 Google LLC
|
|
458
|
+
*
|
|
459
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
460
|
+
* you may not use this file except in compliance with the License.
|
|
461
|
+
* You may obtain a copy of the License at
|
|
462
|
+
*
|
|
463
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
464
|
+
*
|
|
465
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
466
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
467
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
468
|
+
* See the License for the specific language governing permissions and
|
|
469
|
+
* limitations under the License.
|
|
470
|
+
*/const A6=1024,M6=30*24*60*60*1e3;class L6{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new F6(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=f1();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<=M6}),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=f1(),{heartbeatsToSend:r,unsentEntries:i}=N6(this._heartbeatsCache.heartbeats),o=gO(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 f1(){return new Date().toISOString().substring(0,10)}function N6(e,t=A6){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),d1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),d1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class F6{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return mO()?yO().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await I6(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 c1(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 c1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function d1(e){return gO(JSON.stringify({version:2,heartbeats:e})).length}/**
|
|
471
|
+
* @license
|
|
472
|
+
* Copyright 2019 Google LLC
|
|
473
|
+
*
|
|
474
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
475
|
+
* you may not use this file except in compliance with the License.
|
|
476
|
+
* You may obtain a copy of the License at
|
|
477
|
+
*
|
|
478
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
479
|
+
*
|
|
480
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
481
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
482
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
483
|
+
* See the License for the specific language governing permissions and
|
|
484
|
+
* limitations under the License.
|
|
485
|
+
*/function j6(e){Lc(new Rl("platform-logger",t=>new Q4(t),"PRIVATE")),Lc(new Rl("heartbeat",t=>new L6(t),"PRIVATE")),kl(jm,l1,e),kl(jm,l1,"esm2017"),kl("fire-js","")}j6("");var B6="firebase",$6="10.8.1";/**
|
|
486
|
+
* @license
|
|
487
|
+
* Copyright 2020 Google LLC
|
|
488
|
+
*
|
|
489
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
490
|
+
* you may not use this file except in compliance with the License.
|
|
491
|
+
* You may obtain a copy of the License at
|
|
492
|
+
*
|
|
493
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
494
|
+
*
|
|
495
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
496
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
497
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
498
|
+
* See the License for the specific language governing permissions and
|
|
499
|
+
* limitations under the License.
|
|
500
|
+
*/kl(B6,$6,"app");const CO="@firebase/installations",Xy="0.6.5";/**
|
|
501
|
+
* @license
|
|
502
|
+
* Copyright 2019 Google LLC
|
|
503
|
+
*
|
|
504
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
505
|
+
* you may not use this file except in compliance with the License.
|
|
506
|
+
* You may obtain a copy of the License at
|
|
507
|
+
*
|
|
508
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
509
|
+
*
|
|
510
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
511
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
512
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
513
|
+
* See the License for the specific language governing permissions and
|
|
514
|
+
* limitations under the License.
|
|
515
|
+
*/const EO=1e4,kO=`w:${Xy}`,OO="FIS_v2",V6="https://firebaseinstallations.googleapis.com/v1",H6=60*60*1e3,U6="installations",W6="Installations";/**
|
|
516
|
+
* @license
|
|
517
|
+
* Copyright 2019 Google LLC
|
|
518
|
+
*
|
|
519
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
520
|
+
* you may not use this file except in compliance with the License.
|
|
521
|
+
* You may obtain a copy of the License at
|
|
522
|
+
*
|
|
523
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
524
|
+
*
|
|
525
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
526
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
527
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
528
|
+
* See the License for the specific language governing permissions and
|
|
529
|
+
* limitations under the License.
|
|
530
|
+
*/const z6={"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."},Nc=new eg(U6,W6,z6);function DO(e){return e instanceof Ff&&e.code.includes("request-failed")}/**
|
|
531
|
+
* @license
|
|
532
|
+
* Copyright 2019 Google LLC
|
|
533
|
+
*
|
|
534
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
535
|
+
* you may not use this file except in compliance with the License.
|
|
536
|
+
* You may obtain a copy of the License at
|
|
537
|
+
*
|
|
538
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
539
|
+
*
|
|
540
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
541
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
542
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
543
|
+
* See the License for the specific language governing permissions and
|
|
544
|
+
* limitations under the License.
|
|
545
|
+
*/function PO({projectId:e}){return`${V6}/projects/${e}/installations`}function _O(e){return{token:e.token,requestStatus:2,expiresIn:G6(e.expiresIn),creationTime:Date.now()}}async function RO(e,t){const r=(await t.json()).error;return Nc.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function IO({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Y6(e,{refreshToken:t}){const n=IO(e);return n.append("Authorization",q6(t)),n}async function AO(e){const t=await e();return t.status>=500&&t.status<600?e():t}function G6(e){return Number(e.replace("s","000"))}function q6(e){return`${OO} ${e}`}/**
|
|
546
|
+
* @license
|
|
547
|
+
* Copyright 2019 Google LLC
|
|
548
|
+
*
|
|
549
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
550
|
+
* you may not use this file except in compliance with the License.
|
|
551
|
+
* You may obtain a copy of the License at
|
|
552
|
+
*
|
|
553
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
554
|
+
*
|
|
555
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
556
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
557
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
558
|
+
* See the License for the specific language governing permissions and
|
|
559
|
+
* limitations under the License.
|
|
560
|
+
*/async function X6({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=PO(e),i=IO(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:OO,appId:e.appId,sdkVersion:kO},l={method:"POST",headers:i,body:JSON.stringify(s)},c=await AO(()=>fetch(r,l));if(c.ok){const d=await c.json();return{fid:d.fid||n,registrationStatus:2,refreshToken:d.refreshToken,authToken:_O(d.authToken)}}else throw await RO("Create Installation",c)}/**
|
|
561
|
+
* @license
|
|
562
|
+
* Copyright 2019 Google LLC
|
|
563
|
+
*
|
|
564
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
565
|
+
* you may not use this file except in compliance with the License.
|
|
566
|
+
* You may obtain a copy of the License at
|
|
567
|
+
*
|
|
568
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
569
|
+
*
|
|
570
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
571
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
572
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
573
|
+
* See the License for the specific language governing permissions and
|
|
574
|
+
* limitations under the License.
|
|
575
|
+
*/function MO(e){return new Promise(t=>{setTimeout(t,e)})}/**
|
|
576
|
+
* @license
|
|
577
|
+
* Copyright 2019 Google LLC
|
|
578
|
+
*
|
|
579
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
580
|
+
* you may not use this file except in compliance with the License.
|
|
581
|
+
* You may obtain a copy of the License at
|
|
582
|
+
*
|
|
583
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
584
|
+
*
|
|
585
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
586
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
587
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
588
|
+
* See the License for the specific language governing permissions and
|
|
589
|
+
* limitations under the License.
|
|
590
|
+
*/function K6(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
591
|
+
* @license
|
|
592
|
+
* Copyright 2019 Google LLC
|
|
593
|
+
*
|
|
594
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
595
|
+
* you may not use this file except in compliance with the License.
|
|
596
|
+
* You may obtain a copy of the License at
|
|
597
|
+
*
|
|
598
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
599
|
+
*
|
|
600
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
601
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
602
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
603
|
+
* See the License for the specific language governing permissions and
|
|
604
|
+
* limitations under the License.
|
|
605
|
+
*/const Z6=/^[cdef][\w-]{21}$/,Vm="";function J6(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=Q6(e);return Z6.test(n)?n:Vm}catch{return Vm}}function Q6(e){return K6(e).substr(0,22)}/**
|
|
606
|
+
* @license
|
|
607
|
+
* Copyright 2019 Google LLC
|
|
608
|
+
*
|
|
609
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
610
|
+
* you may not use this file except in compliance with the License.
|
|
611
|
+
* You may obtain a copy of the License at
|
|
612
|
+
*
|
|
613
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
614
|
+
*
|
|
615
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
616
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
617
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
618
|
+
* See the License for the specific language governing permissions and
|
|
619
|
+
* limitations under the License.
|
|
620
|
+
*/function ng(e){return`${e.appName}!${e.appId}`}/**
|
|
621
|
+
* @license
|
|
622
|
+
* Copyright 2019 Google LLC
|
|
623
|
+
*
|
|
624
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
625
|
+
* you may not use this file except in compliance with the License.
|
|
626
|
+
* You may obtain a copy of the License at
|
|
627
|
+
*
|
|
628
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
629
|
+
*
|
|
630
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
631
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
632
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
633
|
+
* See the License for the specific language governing permissions and
|
|
634
|
+
* limitations under the License.
|
|
635
|
+
*/const LO=new Map;function NO(e,t){const n=ng(e);FO(n,t),e8(n,t)}function FO(e,t){const n=LO.get(e);if(n)for(const r of n)r(t)}function e8(e,t){const n=t8();n&&n.postMessage({key:e,fid:t}),n8()}let kc=null;function t8(){return!kc&&"BroadcastChannel"in self&&(kc=new BroadcastChannel("[Firebase] FID Change"),kc.onmessage=e=>{FO(e.data.key,e.data.fid)}),kc}function n8(){LO.size===0&&kc&&(kc.close(),kc=null)}/**
|
|
636
|
+
* @license
|
|
637
|
+
* Copyright 2019 Google LLC
|
|
638
|
+
*
|
|
639
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
640
|
+
* you may not use this file except in compliance with the License.
|
|
641
|
+
* You may obtain a copy of the License at
|
|
642
|
+
*
|
|
643
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
644
|
+
*
|
|
645
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
646
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
647
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
648
|
+
* See the License for the specific language governing permissions and
|
|
649
|
+
* limitations under the License.
|
|
650
|
+
*/const r8="firebase-installations-database",i8=1,Fc="firebase-installations-store";let _v=null;function Ky(){return _v||(_v=tg(r8,i8,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Fc)}}})),_v}async function Ep(e,t){const n=ng(e),i=(await Ky()).transaction(Fc,"readwrite"),o=i.objectStore(Fc),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&NO(e,t.fid),t}async function jO(e){const t=ng(e),r=(await Ky()).transaction(Fc,"readwrite");await r.objectStore(Fc).delete(t),await r.done}async function rg(e,t){const n=ng(e),i=(await Ky()).transaction(Fc,"readwrite"),o=i.objectStore(Fc),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)&&NO(e,l.fid),l}/**
|
|
651
|
+
* @license
|
|
652
|
+
* Copyright 2019 Google LLC
|
|
653
|
+
*
|
|
654
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
655
|
+
* you may not use this file except in compliance with the License.
|
|
656
|
+
* You may obtain a copy of the License at
|
|
657
|
+
*
|
|
658
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
659
|
+
*
|
|
660
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
661
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
662
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
663
|
+
* See the License for the specific language governing permissions and
|
|
664
|
+
* limitations under the License.
|
|
665
|
+
*/async function Zy(e){let t;const n=await rg(e.appConfig,r=>{const i=o8(r),o=a8(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===Vm?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function o8(e){const t=e||{fid:J6(),registrationStatus:0};return BO(t)}function a8(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Nc.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=s8(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:u8(e)}:{installationEntry:t}}async function s8(e,t){try{const n=await X6(e,t);return Ep(e.appConfig,n)}catch(n){throw DO(n)&&n.customData.serverCode===409?await jO(e.appConfig):await Ep(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function u8(e){let t=await h1(e.appConfig);for(;t.registrationStatus===1;)await MO(100),t=await h1(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await Zy(e);return r||n}return t}function h1(e){return rg(e,t=>{if(!t)throw Nc.create("installation-not-found");return BO(t)})}function BO(e){return l8(e)?{fid:e.fid,registrationStatus:0}:e}function l8(e){return e.registrationStatus===1&&e.registrationTime+EO<Date.now()}/**
|
|
666
|
+
* @license
|
|
667
|
+
* Copyright 2019 Google LLC
|
|
668
|
+
*
|
|
669
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
670
|
+
* you may not use this file except in compliance with the License.
|
|
671
|
+
* You may obtain a copy of the License at
|
|
672
|
+
*
|
|
673
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
674
|
+
*
|
|
675
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
676
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
677
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
678
|
+
* See the License for the specific language governing permissions and
|
|
679
|
+
* limitations under the License.
|
|
680
|
+
*/async function c8({appConfig:e,heartbeatServiceProvider:t},n){const r=f8(e,n),i=Y6(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:kO,appId:e.appId}},l={method:"POST",headers:i,body:JSON.stringify(s)},c=await AO(()=>fetch(r,l));if(c.ok){const d=await c.json();return _O(d)}else throw await RO("Generate Auth Token",c)}function f8(e,{fid:t}){return`${PO(e)}/${t}/authTokens:generate`}/**
|
|
681
|
+
* @license
|
|
682
|
+
* Copyright 2019 Google LLC
|
|
683
|
+
*
|
|
684
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
685
|
+
* you may not use this file except in compliance with the License.
|
|
686
|
+
* You may obtain a copy of the License at
|
|
687
|
+
*
|
|
688
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
689
|
+
*
|
|
690
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
691
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
692
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
693
|
+
* See the License for the specific language governing permissions and
|
|
694
|
+
* limitations under the License.
|
|
695
|
+
*/async function Jy(e,t=!1){let n;const r=await rg(e.appConfig,o=>{if(!$O(o))throw Nc.create("not-registered");const s=o.authToken;if(!t&&p8(s))return o;if(s.requestStatus===1)return n=d8(e,t),o;{if(!navigator.onLine)throw Nc.create("app-offline");const l=v8(o);return n=h8(e,l),l}});return n?await n:r.authToken}async function d8(e,t){let n=await p1(e.appConfig);for(;n.authToken.requestStatus===1;)await MO(100),n=await p1(e.appConfig);const r=n.authToken;return r.requestStatus===0?Jy(e,t):r}function p1(e){return rg(e,t=>{if(!$O(t))throw Nc.create("not-registered");const n=t.authToken;return m8(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function h8(e,t){try{const n=await c8(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Ep(e.appConfig,r),n}catch(n){if(DO(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await jO(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Ep(e.appConfig,r)}throw n}}function $O(e){return e!==void 0&&e.registrationStatus===2}function p8(e){return e.requestStatus===2&&!g8(e)}function g8(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+H6}function v8(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function m8(e){return e.requestStatus===1&&e.requestTime+EO<Date.now()}/**
|
|
696
|
+
* @license
|
|
697
|
+
* Copyright 2019 Google LLC
|
|
698
|
+
*
|
|
699
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
700
|
+
* you may not use this file except in compliance with the License.
|
|
701
|
+
* You may obtain a copy of the License at
|
|
702
|
+
*
|
|
703
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
704
|
+
*
|
|
705
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
706
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
707
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
708
|
+
* See the License for the specific language governing permissions and
|
|
709
|
+
* limitations under the License.
|
|
710
|
+
*/async function y8(e){const t=e,{installationEntry:n,registrationPromise:r}=await Zy(t);return r?r.catch(console.error):Jy(t).catch(console.error),n.fid}/**
|
|
711
|
+
* @license
|
|
712
|
+
* Copyright 2019 Google LLC
|
|
713
|
+
*
|
|
714
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
715
|
+
* you may not use this file except in compliance with the License.
|
|
716
|
+
* You may obtain a copy of the License at
|
|
717
|
+
*
|
|
718
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
719
|
+
*
|
|
720
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
721
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
722
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
723
|
+
* See the License for the specific language governing permissions and
|
|
724
|
+
* limitations under the License.
|
|
725
|
+
*/async function b8(e,t=!1){const n=e;return await w8(n),(await Jy(n,t)).token}async function w8(e){const{registrationPromise:t}=await Zy(e);t&&await t}/**
|
|
726
|
+
* @license
|
|
727
|
+
* Copyright 2019 Google LLC
|
|
728
|
+
*
|
|
729
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
730
|
+
* you may not use this file except in compliance with the License.
|
|
731
|
+
* You may obtain a copy of the License at
|
|
732
|
+
*
|
|
733
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
734
|
+
*
|
|
735
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
736
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
737
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
738
|
+
* See the License for the specific language governing permissions and
|
|
739
|
+
* limitations under the License.
|
|
740
|
+
*/function x8(e){if(!e||!e.options)throw Rv("App Configuration");if(!e.name)throw Rv("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Rv(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Rv(e){return Nc.create("missing-app-config-values",{valueName:e})}/**
|
|
741
|
+
* @license
|
|
742
|
+
* Copyright 2020 Google LLC
|
|
743
|
+
*
|
|
744
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
745
|
+
* you may not use this file except in compliance with the License.
|
|
746
|
+
* You may obtain a copy of the License at
|
|
747
|
+
*
|
|
748
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
749
|
+
*
|
|
750
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
751
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
752
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
753
|
+
* See the License for the specific language governing permissions and
|
|
754
|
+
* limitations under the License.
|
|
755
|
+
*/const VO="installations",S8="installations-internal",T8=e=>{const t=e.getProvider("app").getImmediate(),n=x8(t),r=qy(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},C8=e=>{const t=e.getProvider("app").getImmediate(),n=qy(t,VO).getImmediate();return{getId:()=>y8(n),getToken:i=>b8(n,i)}};function E8(){Lc(new Rl(VO,T8,"PUBLIC")),Lc(new Rl(S8,C8,"PRIVATE"))}E8();kl(CO,Xy);kl(CO,Xy,"esm2017");/**
|
|
756
|
+
* @license
|
|
757
|
+
* Copyright 2019 Google LLC
|
|
758
|
+
*
|
|
759
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
760
|
+
* you may not use this file except in compliance with the License.
|
|
761
|
+
* You may obtain a copy of the License at
|
|
762
|
+
*
|
|
763
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
764
|
+
*
|
|
765
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
766
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
767
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
768
|
+
* See the License for the specific language governing permissions and
|
|
769
|
+
* limitations under the License.
|
|
770
|
+
*/const k8="/firebase-messaging-sw.js",O8="/firebase-cloud-messaging-push-scope",HO="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",D8="https://fcmregistrations.googleapis.com/v1",UO="google.c.a.c_id",P8="google.c.a.c_l",_8="google.c.a.ts",R8="google.c.a.e";var g1;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(g1||(g1={}));/**
|
|
771
|
+
* @license
|
|
772
|
+
* Copyright 2018 Google LLC
|
|
773
|
+
*
|
|
774
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
775
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
776
|
+
*
|
|
777
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
778
|
+
*
|
|
779
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
780
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
781
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
782
|
+
* the License.
|
|
783
|
+
*/var jd;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(jd||(jd={}));/**
|
|
784
|
+
* @license
|
|
785
|
+
* Copyright 2017 Google LLC
|
|
786
|
+
*
|
|
787
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
788
|
+
* you may not use this file except in compliance with the License.
|
|
789
|
+
* You may obtain a copy of the License at
|
|
790
|
+
*
|
|
791
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
792
|
+
*
|
|
793
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
794
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
795
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
796
|
+
* See the License for the specific language governing permissions and
|
|
797
|
+
* limitations under the License.
|
|
798
|
+
*/function Cu(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function I8(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}/**
|
|
799
|
+
* @license
|
|
800
|
+
* Copyright 2019 Google LLC
|
|
801
|
+
*
|
|
802
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
803
|
+
* you may not use this file except in compliance with the License.
|
|
804
|
+
* You may obtain a copy of the License at
|
|
805
|
+
*
|
|
806
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
807
|
+
*
|
|
808
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
809
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
810
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
811
|
+
* See the License for the specific language governing permissions and
|
|
812
|
+
* limitations under the License.
|
|
813
|
+
*/const Iv="fcm_token_details_db",A8=5,v1="fcm_token_object_Store";async function M8(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Iv))return null;let t=null;return(await tg(Iv,A8,{upgrade:async(r,i,o,s)=>{var l;if(i<2||!r.objectStoreNames.contains(v1))return;const c=s.objectStore(v1),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:Cu(v.vapidKey)}}}else if(i===3){const v=d;t={token:v.fcmToken,createTime:v.createTime,subscriptionOptions:{auth:Cu(v.auth),p256dh:Cu(v.p256dh),endpoint:v.endpoint,swScope:v.swScope,vapidKey:Cu(v.vapidKey)}}}else if(i===4){const v=d;t={token:v.fcmToken,createTime:v.createTime,subscriptionOptions:{auth:Cu(v.auth),p256dh:Cu(v.p256dh),endpoint:v.endpoint,swScope:v.swScope,vapidKey:Cu(v.vapidKey)}}}}}})).close(),await Ov(Iv),await Ov("fcm_vapid_details_db"),await Ov("undefined"),L8(t)?t:null}function L8(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}/**
|
|
814
|
+
* @license
|
|
815
|
+
* Copyright 2019 Google LLC
|
|
816
|
+
*
|
|
817
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
818
|
+
* you may not use this file except in compliance with the License.
|
|
819
|
+
* You may obtain a copy of the License at
|
|
820
|
+
*
|
|
821
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
822
|
+
*
|
|
823
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
824
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
825
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
826
|
+
* See the License for the specific language governing permissions and
|
|
827
|
+
* limitations under the License.
|
|
828
|
+
*/const N8="firebase-messaging-database",F8=1,jc="firebase-messaging-store";let Av=null;function Qy(){return Av||(Av=tg(N8,F8,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(jc)}}})),Av}async function WO(e){const t=tb(e),r=await(await Qy()).transaction(jc).objectStore(jc).get(t);if(r)return r;{const i=await M8(e.appConfig.senderId);if(i)return await eb(e,i),i}}async function eb(e,t){const n=tb(e),i=(await Qy()).transaction(jc,"readwrite");return await i.objectStore(jc).put(t,n),await i.done,t}async function j8(e){const t=tb(e),r=(await Qy()).transaction(jc,"readwrite");await r.objectStore(jc).delete(t),await r.done}function tb({appConfig:e}){return e.appId}/**
|
|
829
|
+
* @license
|
|
830
|
+
* Copyright 2017 Google LLC
|
|
831
|
+
*
|
|
832
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
833
|
+
* you may not use this file except in compliance with the License.
|
|
834
|
+
* You may obtain a copy of the License at
|
|
835
|
+
*
|
|
836
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
837
|
+
*
|
|
838
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
839
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
840
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
841
|
+
* See the License for the specific language governing permissions and
|
|
842
|
+
* limitations under the License.
|
|
843
|
+
*/const B8={"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 eg("messaging","Messaging",B8);/**
|
|
844
|
+
* @license
|
|
845
|
+
* Copyright 2019 Google LLC
|
|
846
|
+
*
|
|
847
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
848
|
+
* you may not use this file except in compliance with the License.
|
|
849
|
+
* You may obtain a copy of the License at
|
|
850
|
+
*
|
|
851
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
852
|
+
*
|
|
853
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
854
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
855
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
856
|
+
* See the License for the specific language governing permissions and
|
|
857
|
+
* limitations under the License.
|
|
858
|
+
*/async function $8(e,t){const n=await rb(e),r=YO(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(nb(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 V8(e,t){const n=await rb(e),r=YO(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${nb(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 zO(e,t){const r={method:"DELETE",headers:await rb(e)};try{const o=await(await fetch(`${nb(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 nb({projectId:e}){return`${D8}/projects/${e}/registrations`}async function rb({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 YO({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==HO&&(i.web.applicationPubKey=r),i}/**
|
|
859
|
+
* @license
|
|
860
|
+
* Copyright 2019 Google LLC
|
|
861
|
+
*
|
|
862
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
863
|
+
* you may not use this file except in compliance with the License.
|
|
864
|
+
* You may obtain a copy of the License at
|
|
865
|
+
*
|
|
866
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
867
|
+
*
|
|
868
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
869
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
870
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
871
|
+
* See the License for the specific language governing permissions and
|
|
872
|
+
* limitations under the License.
|
|
873
|
+
*/const H8=7*24*60*60*1e3;async function U8(e){const t=await Y8(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Cu(t.getKey("auth")),p256dh:Cu(t.getKey("p256dh"))},r=await WO(e.firebaseDependencies);if(r){if(G8(r.subscriptionOptions,n))return Date.now()>=r.createTime+H8?z8(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await zO(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return m1(e.firebaseDependencies,n)}else return m1(e.firebaseDependencies,n)}async function W8(e){const t=await WO(e.firebaseDependencies);t&&(await zO(e.firebaseDependencies,t.token),await j8(e.firebaseDependencies));const n=await e.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function z8(e,t){try{const n=await V8(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await eb(e.firebaseDependencies,r),n}catch(n){throw await W8(e),n}}async function m1(e,t){const r={token:await $8(e,t),createTime:Date.now(),subscriptionOptions:t};return await eb(e,r),r.token}async function Y8(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:I8(t)})}function G8(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}/**
|
|
874
|
+
* @license
|
|
875
|
+
* Copyright 2020 Google LLC
|
|
876
|
+
*
|
|
877
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
878
|
+
* you may not use this file except in compliance with the License.
|
|
879
|
+
* You may obtain a copy of the License at
|
|
880
|
+
*
|
|
881
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
882
|
+
*
|
|
883
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
884
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
885
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
886
|
+
* See the License for the specific language governing permissions and
|
|
887
|
+
* limitations under the License.
|
|
888
|
+
*/function y1(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return q8(t,e),X8(t,e),K8(t,e),t}function q8(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 X8(e,t){t.data&&(e.data=t.data)}function K8(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)}/**
|
|
889
|
+
* @license
|
|
890
|
+
* Copyright 2019 Google LLC
|
|
891
|
+
*
|
|
892
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
893
|
+
* you may not use this file except in compliance with the License.
|
|
894
|
+
* You may obtain a copy of the License at
|
|
895
|
+
*
|
|
896
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
897
|
+
*
|
|
898
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
899
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
900
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
901
|
+
* See the License for the specific language governing permissions and
|
|
902
|
+
* limitations under the License.
|
|
903
|
+
*/function Z8(e){return typeof e=="object"&&!!e&&UO in e}/**
|
|
904
|
+
* @license
|
|
905
|
+
* Copyright 2019 Google LLC
|
|
906
|
+
*
|
|
907
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
908
|
+
* you may not use this file except in compliance with the License.
|
|
909
|
+
* You may obtain a copy of the License at
|
|
910
|
+
*
|
|
911
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
912
|
+
*
|
|
913
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
914
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
915
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
916
|
+
* See the License for the specific language governing permissions and
|
|
917
|
+
* limitations under the License.
|
|
918
|
+
*/GO("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o");GO("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function GO(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("")}/**
|
|
919
|
+
* @license
|
|
920
|
+
* Copyright 2019 Google LLC
|
|
921
|
+
*
|
|
922
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
923
|
+
* you may not use this file except in compliance with the License.
|
|
924
|
+
* You may obtain a copy of the License at
|
|
925
|
+
*
|
|
926
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
927
|
+
*
|
|
928
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
929
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
930
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
931
|
+
* See the License for the specific language governing permissions and
|
|
932
|
+
* limitations under the License.
|
|
933
|
+
*/function J8(e){if(!e||!e.options)throw Mv("App Configuration Object");if(!e.name)throw Mv("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw Mv(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Mv(e){return Ni.create("missing-app-config-values",{valueName:e})}/**
|
|
934
|
+
* @license
|
|
935
|
+
* Copyright 2020 Google LLC
|
|
936
|
+
*
|
|
937
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
938
|
+
* you may not use this file except in compliance with the License.
|
|
939
|
+
* You may obtain a copy of the License at
|
|
940
|
+
*
|
|
941
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
942
|
+
*
|
|
943
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
944
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
945
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
946
|
+
* See the License for the specific language governing permissions and
|
|
947
|
+
* limitations under the License.
|
|
948
|
+
*/class Q8{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=J8(t);this.firebaseDependencies={app:t,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
|
|
949
|
+
* @license
|
|
950
|
+
* Copyright 2020 Google LLC
|
|
951
|
+
*
|
|
952
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
953
|
+
* you may not use this file except in compliance with the License.
|
|
954
|
+
* You may obtain a copy of the License at
|
|
955
|
+
*
|
|
956
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
957
|
+
*
|
|
958
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
959
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
960
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
961
|
+
* See the License for the specific language governing permissions and
|
|
962
|
+
* limitations under the License.
|
|
963
|
+
*/async function e9(e){try{e.swRegistration=await navigator.serviceWorker.register(k8,{scope:O8}),e.swRegistration.update().catch(()=>{})}catch(t){throw Ni.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
|
|
964
|
+
* @license
|
|
965
|
+
* Copyright 2020 Google LLC
|
|
966
|
+
*
|
|
967
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
968
|
+
* you may not use this file except in compliance with the License.
|
|
969
|
+
* You may obtain a copy of the License at
|
|
970
|
+
*
|
|
971
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
972
|
+
*
|
|
973
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
974
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
975
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
976
|
+
* See the License for the specific language governing permissions and
|
|
977
|
+
* limitations under the License.
|
|
978
|
+
*/async function t9(e,t){if(!t&&!e.swRegistration&&await e9(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw Ni.create("invalid-sw-registration");e.swRegistration=t}}/**
|
|
979
|
+
* @license
|
|
980
|
+
* Copyright 2020 Google LLC
|
|
981
|
+
*
|
|
982
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
983
|
+
* you may not use this file except in compliance with the License.
|
|
984
|
+
* You may obtain a copy of the License at
|
|
985
|
+
*
|
|
986
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
987
|
+
*
|
|
988
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
989
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
990
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
991
|
+
* See the License for the specific language governing permissions and
|
|
992
|
+
* limitations under the License.
|
|
993
|
+
*/async function n9(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=HO)}/**
|
|
994
|
+
* @license
|
|
995
|
+
* Copyright 2020 Google LLC
|
|
996
|
+
*
|
|
997
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
998
|
+
* you may not use this file except in compliance with the License.
|
|
999
|
+
* You may obtain a copy of the License at
|
|
1000
|
+
*
|
|
1001
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1002
|
+
*
|
|
1003
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1004
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1005
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1006
|
+
* See the License for the specific language governing permissions and
|
|
1007
|
+
* limitations under the License.
|
|
1008
|
+
*/async function qO(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 n9(e,t==null?void 0:t.vapidKey),await t9(e,t==null?void 0:t.serviceWorkerRegistration),U8(e)}/**
|
|
1009
|
+
* @license
|
|
1010
|
+
* Copyright 2019 Google LLC
|
|
1011
|
+
*
|
|
1012
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1013
|
+
* you may not use this file except in compliance with the License.
|
|
1014
|
+
* You may obtain a copy of the License at
|
|
1015
|
+
*
|
|
1016
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1017
|
+
*
|
|
1018
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1019
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1020
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1021
|
+
* See the License for the specific language governing permissions and
|
|
1022
|
+
* limitations under the License.
|
|
1023
|
+
*/async function r9(e,t,n){const r=i9(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[UO],message_name:n[P8],message_time:n[_8],message_device_time:Math.floor(Date.now()/1e3)})}function i9(e){switch(e){case jd.NOTIFICATION_CLICKED:return"notification_open";case jd.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
1024
|
+
* @license
|
|
1025
|
+
* Copyright 2017 Google LLC
|
|
1026
|
+
*
|
|
1027
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1028
|
+
* you may not use this file except in compliance with the License.
|
|
1029
|
+
* You may obtain a copy of the License at
|
|
1030
|
+
*
|
|
1031
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1032
|
+
*
|
|
1033
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1034
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1035
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1036
|
+
* See the License for the specific language governing permissions and
|
|
1037
|
+
* limitations under the License.
|
|
1038
|
+
*/async function o9(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===jd.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(y1(n)):e.onMessageHandler.next(y1(n)));const r=n.data;Z8(r)&&r[R8]==="1"&&await r9(e,n.messageType,r)}const b1="@firebase/messaging",w1="0.12.6";/**
|
|
1039
|
+
* @license
|
|
1040
|
+
* Copyright 2020 Google LLC
|
|
1041
|
+
*
|
|
1042
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1043
|
+
* you may not use this file except in compliance with the License.
|
|
1044
|
+
* You may obtain a copy of the License at
|
|
1045
|
+
*
|
|
1046
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1047
|
+
*
|
|
1048
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1049
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1050
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1051
|
+
* See the License for the specific language governing permissions and
|
|
1052
|
+
* limitations under the License.
|
|
1053
|
+
*/const a9=e=>{const t=new Q8(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>o9(t,n)),t},s9=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>qO(t,r)}};function u9(){Lc(new Rl("messaging",a9,"PUBLIC")),Lc(new Rl("messaging-internal",s9,"PRIVATE")),kl(b1,w1),kl(b1,w1,"esm2017")}/**
|
|
1054
|
+
* @license
|
|
1055
|
+
* Copyright 2020 Google LLC
|
|
1056
|
+
*
|
|
1057
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1058
|
+
* you may not use this file except in compliance with the License.
|
|
1059
|
+
* You may obtain a copy of the License at
|
|
1060
|
+
*
|
|
1061
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1062
|
+
*
|
|
1063
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1064
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1065
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1066
|
+
* See the License for the specific language governing permissions and
|
|
1067
|
+
* limitations under the License.
|
|
1068
|
+
*/async function l9(){try{await yO()}catch{return!1}return typeof window<"u"&&mO()&&_4()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
1069
|
+
* @license
|
|
1070
|
+
* Copyright 2020 Google LLC
|
|
1071
|
+
*
|
|
1072
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1073
|
+
* you may not use this file except in compliance with the License.
|
|
1074
|
+
* You may obtain a copy of the License at
|
|
1075
|
+
*
|
|
1076
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1077
|
+
*
|
|
1078
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1079
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1080
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1081
|
+
* See the License for the specific language governing permissions and
|
|
1082
|
+
* limitations under the License.
|
|
1083
|
+
*/function c9(e,t){if(!navigator)throw Ni.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
|
|
1084
|
+
* @license
|
|
1085
|
+
* Copyright 2017 Google LLC
|
|
1086
|
+
*
|
|
1087
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1088
|
+
* you may not use this file except in compliance with the License.
|
|
1089
|
+
* You may obtain a copy of the License at
|
|
1090
|
+
*
|
|
1091
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1092
|
+
*
|
|
1093
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1094
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1095
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1096
|
+
* See the License for the specific language governing permissions and
|
|
1097
|
+
* limitations under the License.
|
|
1098
|
+
*/function f9(e=P6()){return l9().then(t=>{if(!t)throw Ni.create("unsupported-browser")},t=>{throw Ni.create("indexed-db-unsupported")}),qy(Yy(e),"messaging").getImmediate()}async function d9(e,t){return e=Yy(e),qO(e,t)}function h9(e,t){return e=Yy(e),c9(e,t)}u9();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"},g9={"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=zm;exports.AuthProvider=SM;exports.CustomOpenList=L1;exports.CustomOpenListProvider=sA;exports.DateRangePicker=b4;exports.ERROR_MESSAGE=R1;exports.GlobalMenu=s4;exports.InfiniteLoader=g4;exports.Language=Wm;exports.LogoutConfirmModal=T1;exports.PropTypes=ka;exports.Q=EL;exports.SaasThemeProvider=wA;exports.StyleWrapper=$1;exports.TranslationProvider=_M;exports._=l4;exports._assertThisInitialized=Ou;exports._extends=Af;exports._extends$1=Uj;exports._inheritsLoose=BC;exports._objectWithoutPropertiesLoose=Um;exports.activeStyles=zC;exports.axiosInstance=Ls;exports.clsx=Eu;exports.color=so;exports.commonjsGlobal=Ko;exports.createCustomTheme=j1;exports.getAugmentedNamespace=NA;exports.getMessagingInWindow=f9;exports.getToken=d9;exports.handleErrorAxios=M1;exports.initializeApp=xO;exports.lodashExports=cO;exports.login=I1;exports.logout=A1;exports.notify=RL;exports.objectWithoutPropertiesLoose=LA;exports.onMessage=h9;exports.pushError=Rp;exports.pushSuccess=mT;exports.pushWarning=_L;exports.responseInterceptor=aA;exports.search=CM;exports.styles=u4;exports.styles$1=p9;exports.styles$2=g9;exports.translate=DM;exports.translationConfig=OM;exports.useAuth=TM;exports.useCustomTranslation=kM;exports.useTheme=bA;exports.useTranslation=Y1;exports.useTranslation$1=PM;
|