@ukpc-lib/react 0.2.35 → 0.2.36
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/README.md +5 -3
- package/dist/components/index.cjs +22 -22
- package/dist/components/index.js +895 -885
- package/dist/index.css +1 -1
- package/dist/{index.module-68397449.js → index.module-bed22321.js} +394 -384
- package/dist/{index.module-1f083a17.cjs → index.module-e74fd095.cjs} +60 -60
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.cjs +2 -2
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-b9d26092.js → index-2dcacaa2.js} +7194 -7187
- package/web-components-bundle/index-4dc746c7.cjs +1066 -0
- package/web-components-bundle/{index-090b40a1.cjs → index-5627e1e9.cjs} +1 -1
- package/web-components-bundle/{index-9d0c4c92.js → index-c0edc305.js} +19 -9
- package/web-components-bundle/index-3c1963a0.cjs +0 -1066
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var QE=require("./index.css");const Hn=require("react/jsx-runtime"),Je=require("react"),W0=require("moment"),$0=require("axios"),z0=require("react-dom");require("@r2wc/react-to-web-component");const du=require("./Colors-51ce6654.cjs");require("react-router-dom");const Ic=require("@mui/material");function Y0(i){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const n in i)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>i[n]})}}return t.default=i,Object.freeze(t)}function V0(i,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in i)){const l=Object.getOwnPropertyDescriptor(s,o);l&&Object.defineProperty(i,o,l.get?l:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}const tl=Y0(Je);const Yp=Je.createContext({}),G0=({children:i})=>{const[t,n]=Je.useState(!0),[s,o]=Je.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),l=()=>{n(!t)},g=()=>{n(!0)};return Hn.jsx(Yp.Provider,{value:{isOpen:t,toggleOpen:l,setShowModalFalse:g,notidata:s,setNotiData:o},children:i})};var Ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ac(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function q0(i){if(i.__esModule)return i;var t=i.default;if(typeof t=="function"){var n=function s(){return this instanceof s?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(i).forEach(function(s){var o=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:function(){return i[s]}})}),n}var Zu={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-dom-server-legacy.browser.production.min.js
|
|
4
4
|
*
|
|
@@ -124,11 +124,11 @@ object-assign
|
|
|
124
124
|
Valid keys: `+JSON.stringify(Object.keys(Ce),null," "));var Ge=Tt(ct,gt,Qe,Ze,Ke+"."+gt,n);if(Ge)return Ge}return null}return J(Pe)}function Ct(Ce){switch(typeof Ce){case"number":case"string":case"undefined":return!0;case"boolean":return!Ce;case"object":if(Array.isArray(Ce))return Ce.every(Ct);if(Ce===null||k(Ce))return!0;var Pe=L(Ce);if(Pe){var Ye=Pe.call(Ce),Xe;if(Pe!==Ce.entries){for(;!(Xe=Ye.next()).done;)if(!Ct(Xe.value))return!1}else for(;!(Xe=Ye.next()).done;){var Qe=Xe.value;if(Qe&&!Ct(Qe[1]))return!1}}else return!1;return!0;default:return!1}}function me(Ce,Pe){return Ce==="symbol"?!0:Pe?Pe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Pe instanceof Symbol:!1}function Le(Ce){var Pe=typeof Ce;return Array.isArray(Ce)?"array":Ce instanceof RegExp?"object":me(Pe,Ce)?"symbol":Pe}function Ve(Ce){if(typeof Ce>"u"||Ce===null)return""+Ce;var Pe=Le(Ce);if(Pe==="object"){if(Ce instanceof Date)return"date";if(Ce instanceof RegExp)return"regexp"}return Pe}function qe(Ce){var Pe=Ve(Ce);switch(Pe){case"array":case"object":return"an "+Pe;case"boolean":case"date":case"regexp":return"a "+Pe;default:return Pe}}function lt(Ce){return!Ce.constructor||!Ce.constructor.name?q:Ce.constructor.name}return Q.checkPropTypes=o,Q.resetWarningCache=o.resetWarningCache,Q.PropTypes=Q,Q},Ef}var kf,Dh;function ow(){if(Dh)return kf;Dh=1;var i=ud();function t(){}function n(){}return n.resetWarningCache=t,kf=function(){function s(g,k,C,A,U,L){if(L!==i){var q=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 q.name="Invariant Violation",q}}s.isRequired=s;function o(){return s}var l={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return l.PropTypes=l,l},kf}if(process.env.NODE_ENV!=="production"){var aw=Vp(),sw=!0;zf.exports=iw()(aw.isElement,sw)}else zf.exports=ow()();var vr=zf.exports;const Jo=ac(vr);var uw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qp(i,t){return i(t={exports:{}},t.exports),t.exports}var lw=qp(function(i){(function(t){var n=function(J,F,he){if(!C(F)||U(F)||L(F)||q(F)||k(F))return F;var ye,Ie=0,de=0;if(A(F))for(ye=[],de=F.length;Ie<de;Ie++)ye.push(n(J,F[Ie],he));else for(var je in ye={},F)Object.prototype.hasOwnProperty.call(F,je)&&(ye[J(je,he)]=n(J,F[je],he));return ye},s=function(J){return Q(J)?J:(J=J.replace(/[\-_\s]+(.)?/g,function(F,he){return he?he.toUpperCase():""})).substr(0,1).toLowerCase()+J.substr(1)},o=function(J){var F=s(J);return F.substr(0,1).toUpperCase()+F.substr(1)},l=function(J,F){return function(he,ye){var Ie=(ye=ye||{}).separator||"_",de=ye.split||/(?=[A-Z])/;return he.split(de).join(Ie)}(J,F).toLowerCase()},g=Object.prototype.toString,k=function(J){return typeof J=="function"},C=function(J){return J===Object(J)},A=function(J){return g.call(J)=="[object Array]"},U=function(J){return g.call(J)=="[object Date]"},L=function(J){return g.call(J)=="[object RegExp]"},q=function(J){return g.call(J)=="[object Boolean]"},Q=function(J){return(J-=0)==J},re=function(J,F){var he=F&&"process"in F?F.process:F;return typeof he!="function"?J:function(ye,Ie){return he(ye,J,Ie)}},ne={camelize:s,decamelize:l,pascalize:o,depascalize:l,camelizeKeys:function(J,F){return n(re(s,F),J)},decamelizeKeys:function(J,F){return n(re(l,F),J,F)},pascalizeKeys:function(J,F){return n(re(o,F),J)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};i.exports?i.exports=ne:t.humps=ne})(uw)}).decamelize,cw=function(i){if(Array.isArray(i))return i},fw=function(i,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(i)){var n=[],s=!0,o=!1,l=void 0;try{for(var g,k=i[Symbol.iterator]();!(s=(g=k.next()).done)&&(n.push(g.value),!t||n.length!==t);s=!0);}catch(C){o=!0,l=C}finally{try{s||k.return==null||k.return()}finally{if(o)throw l}}return n}},Ah=function(i,t){(t==null||t>i.length)&&(t=i.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=i[n];return s},dw=function(i,t){if(i){if(typeof i=="string")return Ah(i,t);var n=Object.prototype.toString.call(i).slice(8,-1);return n==="Object"&&i.constructor&&(n=i.constructor.name),n==="Map"||n==="Set"?Array.from(i):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ah(i,t):void 0}},hw=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
125
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},pw=function(i,t){return cw(i)||fw(i,t)||dw(i,t)||hw()},Xp=qp(function(i){function t(){return i.exports=t=Object.assign||function(n){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(n[l]=o[l])}return n},t.apply(this,arguments)}i.exports=t}),gw=function(i,t){if(i==null)return{};var n,s,o={},l=Object.keys(i);for(s=0;s<l.length;s++)n=l[s],t.indexOf(n)>=0||(o[n]=i[n]);return o},Kp=function(i,t){if(i==null)return{};var n,s,o=gw(i,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(s=0;s<l.length;s++)n=l[s],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(i,n)&&(o[n]=i[n])}return o},vw=Je.createContext(null);function Yf(i){var t=i.children,n=Kp(i,["children"]);return typeof t!="string"&&(t=Q0(t)),Je.createElement("template",Xp({},n,{dangerouslySetInnerHTML:{__html:t}}))}function Vf(i){var t=i.root,n=i.children;return z0.createPortal(n,t)}function mw(i){var t=Je.forwardRef(function(n,s){var o,l,g=n.mode,k=n.delegatesFocus,C=n.styleSheets,A=n.ssr,U=n.children,L=Kp(n,["mode","delegatesFocus","styleSheets","ssr","children"]),q=(l=Je.useRef((o=s)&&o.current),Je.useEffect(function(){o&&(o.current=l.current)},[o]),l),Q=Je.useState(null),re=pw(Q,2),ne=re[0],J=re[1],F="node_".concat(g).concat(k);return Je.useLayoutEffect(function(){if(q.current)try{if(typeof s=="function"&&s(q.current),A){var he=q.current.shadowRoot;return void J(he)}var ye=q.current.attachShadow({mode:g,delegatesFocus:k});C.length>0&&(ye.adoptedStyleSheets=C),J(ye)}catch(Ie){(function(de){var je=de.error,m=de.styleSheets,Ue=de.root;switch(je.name){case"NotSupportedError":m.length>0&&(Ue.adoptedStyleSheets=m);break;default:throw je}})({error:Ie,styleSheets:C,root:ne})}},[s,q,C]),Je.createElement(Je.Fragment,null,Je.createElement(i.tag,Xp({key:F,ref:q},L),(ne||A)&&Je.createElement(vw.Provider,{value:ne},A?Je.createElement(Yf,{shadowroot:g,shadowrootmode:g},i.render({root:ne,ssr:A,children:U})):Je.createElement(Vf,{root:ne},i.render({root:ne,ssr:A,children:U})))))});return t.propTypes={mode:Jo.oneOf(["open","closed"]),delegatesFocus:Jo.bool,styleSheets:Jo.arrayOf(Jo.instanceOf(globalThis.CSSStyleSheet)),ssr:Jo.bool,children:Jo.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Yf.propTypes={children:Jo.oneOfType([Jo.string,Jo.node])},Yf.defaultProps={children:""},Vf.propTypes={root:Jo.object.isRequired,children:Jo.node},Vf.defaultProps={children:null};var Tf=new Map;function yw(){var i=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(s){return s.children};return new Proxy(i,{get:function(s,o){var l=lw(o,{separator:"-"}),g="".concat(t,"-").concat(l);return Tf.has(g)||Tf.set(g,mw({tag:l,render:n})),Tf.get(g)}})}var bw=yw();function Oo(i){"@babel/helpers - typeof";return Oo=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},Oo(i)}function Do(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function ww(i,t){if(Oo(i)!="object"||!i)return i;var n=i[Symbol.toPrimitive];if(n!==void 0){var s=n.call(i,t||"default");if(Oo(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}function Jp(i){var t=ww(i,"string");return Oo(t)=="symbol"?t:String(t)}function Ph(i,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,Jp(s.key),s)}}function Ao(i,t,n){return t&&Ph(i.prototype,t),n&&Ph(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}function Ms(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Oc(i,t){return Oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},Oc(i,t)}function jc(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&Oc(i,t)}function sc(i,t){if(t&&(Oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ms(i)}function Xa(i){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xa(i)}function Ka(i,t,n){return t=Jp(t),t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}function Zp(i){if(Array.isArray(i))return i}function Sw(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Lh(i,t){(t==null||t>i.length)&&(t=i.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=i[n];return s}function Qp(i,t){if(i){if(typeof i=="string")return Lh(i,t);var n=Object.prototype.toString.call(i).slice(8,-1);if(n==="Object"&&i.constructor&&(n=i.constructor.name),n==="Map"||n==="Set")return Array.from(i);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lh(i,t)}}function eg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
126
126
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xw(i){return Zp(i)||Sw(i)||Qp(i)||eg()}function Mh(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function Fh(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(n),!0).forEach(function(s){Ka(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):Mh(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}var Cw={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)}},Ew=function(){function i(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Do(this,i),this.init(t,n)}return Ao(i,[{key:"init",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=s.prefix||"i18next:",this.logger=n||Cw,this.options=s,this.debug=s.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return this.forward(s,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return this.forward(s,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return this.forward(s,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return this.forward(s,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,s,o,l){return l&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(o).concat(this.prefix," ").concat(n[0])),this.logger[s](n))}},{key:"create",value:function(n){return new i(this.logger,Fh(Fh({},{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 i(this.logger,n)}}]),i}(),qa=new Ew,gu=function(){function i(){Do(this,i),this.observers={}}return Ao(i,[{key:"on",value:function(n,s){var o=this;return n.split(" ").forEach(function(l){o.observers[l]=o.observers[l]||[],o.observers[l].push(s)}),this}},{key:"off",value:function(n,s){if(this.observers[n]){if(!s){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(o){return o!==s})}}},{key:"emit",value:function(n){for(var s=arguments.length,o=new Array(s>1?s-1:0),l=1;l<s;l++)o[l-1]=arguments[l];if(this.observers[n]){var g=[].concat(this.observers[n]);g.forEach(function(C){C.apply(void 0,o)})}if(this.observers["*"]){var k=[].concat(this.observers["*"]);k.forEach(function(C){C.apply(C,[n].concat(o))})}}}]),i}();function Kl(){var i,t,n=new Promise(function(s,o){i=s,t=o});return n.resolve=i,n.reject=t,n}function Nh(i){return i==null?"":""+i}function kw(i,t,n){i.forEach(function(s){t[s]&&(n[s]=t[s])})}function ld(i,t,n){function s(k){return k&&k.indexOf("###")>-1?k.replace(/###/g,"."):k}function o(){return!i||typeof i=="string"}for(var l=typeof t!="string"?[].concat(t):t.split(".");l.length>1;){if(o())return{};var g=s(l.shift());!i[g]&&n&&(i[g]=new n),Object.prototype.hasOwnProperty.call(i,g)?i=i[g]:i={}}return o()?{}:{obj:i,k:s(l.shift())}}function Bh(i,t,n){var s=ld(i,t,Object),o=s.obj,l=s.k;o[l]=n}function Tw(i,t,n,s){var o=ld(i,t,Object),l=o.obj,g=o.k;l[g]=l[g]||[],s&&(l[g]=l[g].concat(n)),s||l[g].push(n)}function Dc(i,t){var n=ld(i,t),s=n.obj,o=n.k;if(s)return s[o]}function _w(i,t,n){var s=Dc(i,n);return s!==void 0?s:Dc(t,n)}function tg(i,t,n){for(var s in t)s!=="__proto__"&&s!=="constructor"&&(s in i?typeof i[s]=="string"||i[s]instanceof String||typeof t[s]=="string"||t[s]instanceof String?n&&(i[s]=t[s]):tg(i[s],t[s],n):i[s]=t[s]);return i}function Pl(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Rw={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Iw(i){return typeof i=="string"?i.replace(/[&<>"'\/]/g,function(t){return Rw[t]}):i}var Hc=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Ow=[" ",",","?","!",";"];function Dw(i,t,n){t=t||"",n=n||"";var s=Ow.filter(function(k){return t.indexOf(k)<0&&n.indexOf(k)<0});if(s.length===0)return!0;var o=new RegExp("(".concat(s.map(function(k){return k==="?"?"\\?":k}).join("|"),")")),l=!o.test(i);if(!l){var g=i.indexOf(n);g>0&&!o.test(i.substring(0,g))&&(l=!0)}return l}function Ac(i,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(i){if(i[t])return i[t];for(var s=t.split(n),o=i,l=0;l<s.length;++l){if(!o||typeof o[s[l]]=="string"&&l+1<s.length)return;if(o[s[l]]===void 0){for(var g=2,k=s.slice(l,l+g).join(n),C=o[k];C===void 0&&s.length>l+g;)g++,k=s.slice(l,l+g).join(n),C=o[k];if(C===void 0)return;if(C===null)return null;if(t.endsWith(k)){if(typeof C=="string")return C;if(k&&typeof C[k]=="string")return C[k]}var A=s.slice(l+g).join(n);return A?Ac(C,A,n):void 0}o=o[s[l]]}return o}}function jh(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function xc(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jh(Object(n),!0).forEach(function(s){Ka(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):jh(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function Aw(i){var t=Pw();return function(){var s=Xa(i),o;if(t){var l=Xa(this).constructor;o=Reflect.construct(s,arguments,l)}else o=s.apply(this,arguments);return sc(this,o)}}function Pw(){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 Lw=function(i){jc(n,i);var t=Aw(n);function n(s){var o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Do(this,n),o=t.call(this),Hc&&gu.call(Ms(o)),o.data=s||{},o.options=l,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.options.ignoreJSONStructure===void 0&&(o.options.ignoreJSONStructure=!0),o}return Ao(n,[{key:"addNamespaces",value:function(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}},{key:"removeNamespaces",value:function(o){var l=this.options.ns.indexOf(o);l>-1&&this.options.ns.splice(l,1)}},{key:"getResource",value:function(o,l,g){var k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=k.keySeparator!==void 0?k.keySeparator:this.options.keySeparator,A=k.ignoreJSONStructure!==void 0?k.ignoreJSONStructure:this.options.ignoreJSONStructure,U=[o,l];g&&typeof g!="string"&&(U=U.concat(g)),g&&typeof g=="string"&&(U=U.concat(C?g.split(C):g)),o.indexOf(".")>-1&&(U=o.split("."));var L=Dc(this.data,U);return L||!A||typeof g!="string"?L:Ac(this.data&&this.data[o]&&this.data[o][l],g,C)}},{key:"addResource",value:function(o,l,g,k){var C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},A=C.keySeparator!==void 0?C.keySeparator:this.options.keySeparator,U=[o,l];g&&(U=U.concat(A?g.split(A):g)),o.indexOf(".")>-1&&(U=o.split("."),k=l,l=U[1]),this.addNamespaces(l),Bh(this.data,U,k),C.silent||this.emit("added",o,l,g,k)}},{key:"addResources",value:function(o,l,g){var k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var C in g)(typeof g[C]=="string"||Object.prototype.toString.apply(g[C])==="[object Array]")&&this.addResource(o,l,C,g[C],{silent:!0});k.silent||this.emit("added",o,l,g)}},{key:"addResourceBundle",value:function(o,l,g,k,C){var A=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},U=[o,l];o.indexOf(".")>-1&&(U=o.split("."),k=g,g=l,l=U[1]),this.addNamespaces(l);var L=Dc(this.data,U)||{};k?tg(L,g,C):L=xc(xc({},L),g),Bh(this.data,U,L),A.silent||this.emit("added",o,l,g)}},{key:"removeResourceBundle",value:function(o,l){this.hasResourceBundle(o,l)&&delete this.data[o][l],this.removeNamespaces(l),this.emit("removed",o,l)}},{key:"hasResourceBundle",value:function(o,l){return this.getResource(o,l)!==void 0}},{key:"getResourceBundle",value:function(o,l){return l||(l=this.options.defaultNS),this.options.compatibilityAPI==="v1"?xc(xc({},{}),this.getResource(o,l)):this.getResource(o,l)}},{key:"getDataByLanguage",value:function(o){return this.data[o]}},{key:"hasLanguageSomeTranslations",value:function(o){var l=this.getDataByLanguage(o),g=l&&Object.keys(l)||[];return!!g.find(function(k){return l[k]&&Object.keys(l[k]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(gu),ng={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,s,o,l){var g=this;return t.forEach(function(k){g.processors[k]&&(n=g.processors[k].process(n,s,o,l))}),n}};function Hh(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function wi(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hh(Object(n),!0).forEach(function(s){Ka(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function Mw(i){var t=Fw();return function(){var s=Xa(i),o;if(t){var l=Xa(this).constructor;o=Reflect.construct(s,arguments,l)}else o=s.apply(this,arguments);return sc(this,o)}}function Fw(){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 Uh={},Wh=function(i){jc(n,i);var t=Mw(n);function n(s){var o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Do(this,n),o=t.call(this),Hc&&gu.call(Ms(o)),kw(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],s,Ms(o)),o.options=l,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.logger=qa.create("translator"),o}return Ao(n,[{key:"changeLanguage",value:function(o){o&&(this.language=o)}},{key:"exists",value:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;var g=this.resolve(o,l);return g&&g.res!==void 0}},{key:"extractFromKey",value:function(o,l){var g=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");var k=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,C=l.ns||this.options.defaultNS||[],A=g&&o.indexOf(g)>-1,U=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!Dw(o,g,k);if(A&&!U){var L=o.match(this.interpolator.nestingRegexp);if(L&&L.length>0)return{key:o,namespaces:C};var q=o.split(g);(g!==k||g===k&&this.options.ns.indexOf(q[0])>-1)&&(C=q.shift()),o=q.join(k)}return typeof C=="string"&&(C=[C]),{key:o,namespaces:C}}},{key:"translate",value:function(o,l,g){var k=this;if(Oo(l)!=="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),Oo(l)==="object"&&(l=wi({},l)),l||(l={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);var C=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,A=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,U=this.extractFromKey(o[o.length-1],l),L=U.key,q=U.namespaces,Q=q[q.length-1],re=l.lng||this.language,ne=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(re&&re.toLowerCase()==="cimode"){if(ne){var J=l.nsSeparator||this.options.nsSeparator;return C?{res:"".concat(Q).concat(J).concat(L),usedKey:L,exactUsedKey:L,usedLng:re,usedNS:Q}:"".concat(Q).concat(J).concat(L)}return C?{res:L,usedKey:L,exactUsedKey:L,usedLng:re,usedNS:Q}:L}var F=this.resolve(o,l),he=F&&F.res,ye=F&&F.usedKey||L,Ie=F&&F.exactUsedKey||L,de=Object.prototype.toString.apply(he),je=["[object Number]","[object Function]","[object RegExp]"],m=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,Ue=!this.i18nFormat||this.i18nFormat.handleAsObject,ke=typeof he!="string"&&typeof he!="boolean"&&typeof he!="number";if(Ue&&he&&ke&&je.indexOf(de)<0&&!(typeof m=="string"&&de==="[object Array]")){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ht=this.options.returnedObjectHandler?this.options.returnedObjectHandler(ye,he,wi(wi({},l),{},{ns:q})):"key '".concat(L," (").concat(this.language,")' returned an object instead of string.");return C?(F.res=ht,F):ht}if(A){var Et=de==="[object Array]",vt=Et?[]:{},dt=Et?Ie:ye;for(var Ct in he)if(Object.prototype.hasOwnProperty.call(he,Ct)){var me="".concat(dt).concat(A).concat(Ct);vt[Ct]=this.translate(me,wi(wi({},l),{joinArrays:!1,ns:q})),vt[Ct]===me&&(vt[Ct]=he[Ct])}he=vt}}else if(Ue&&typeof m=="string"&&de==="[object Array]")he=he.join(m),he&&(he=this.extendTranslation(he,o,l,g));else{var Le=!1,Ve=!1,qe=l.count!==void 0&&typeof l.count!="string",lt=n.hasDefaultValue(l),Ce=qe?this.pluralResolver.getSuffix(re,l.count,l):"",Pe=l["defaultValue".concat(Ce)]||l.defaultValue;!this.isValidLookup(he)&<&&(Le=!0,he=Pe),this.isValidLookup(he)||(Ve=!0,he=L);var Ye=l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Xe=Ye&&Ve?void 0:he,Qe=lt&&Pe!==he&&this.options.updateMissing;if(Ve||Le||Qe){if(this.logger.log(Qe?"updateKey":"missingKey",re,Q,L,Qe?Pe:he),A){var Ze=this.resolve(L,wi(wi({},l),{},{keySeparator:!1}));Ze&&Ze.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ke=[],ct=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ct&&ct[0])for(var mt=0;mt<ct.length;mt++)Ke.push(ct[mt]);else this.options.saveMissingTo==="all"?Ke=this.languageUtils.toResolveHierarchy(l.lng||this.language):Ke.push(l.lng||this.language);var wt=function(Tt,Ge,Ft){var Bt=lt&&Ft!==he?Ft:Xe;k.options.missingKeyHandler?k.options.missingKeyHandler(Tt,Q,Ge,Bt,Qe,l):k.backendConnector&&k.backendConnector.saveMissing&&k.backendConnector.saveMissing(Tt,Q,Ge,Bt,Qe,l),k.emit("missingKey",Tt,Q,Ge,he)};this.options.saveMissing&&(this.options.saveMissingPlurals&&qe?Ke.forEach(function(gt){k.pluralResolver.getSuffixes(gt,l).forEach(function(Tt){wt([gt],L+Tt,l["defaultValue".concat(Tt)]||Pe)})}):wt(Ke,L,Pe))}he=this.extendTranslation(he,o,l,F,g),Ve&&he===L&&this.options.appendNamespaceToMissingKey&&(he="".concat(Q,":").concat(L)),(Ve||Le)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?he=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(Q,":").concat(L):L,Le?he:void 0):he=this.options.parseMissingKeyHandler(he))}return C?(F.res=he,F):he}},{key:"extendTranslation",value:function(o,l,g,k,C){var A=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,wi(wi({},this.options.interpolation.defaultVariables),g),k.usedLng,k.usedNS,k.usedKey,{resolved:k});else if(!g.skipInterpolation){g.interpolation&&this.interpolator.init(wi(wi({},g),{interpolation:wi(wi({},this.options.interpolation),g.interpolation)}));var U=typeof o=="string"&&(g&&g.interpolation&&g.interpolation.skipOnVariables!==void 0?g.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),L;if(U){var q=o.match(this.interpolator.nestingRegexp);L=q&&q.length}var Q=g.replace&&typeof g.replace!="string"?g.replace:g;if(this.options.interpolation.defaultVariables&&(Q=wi(wi({},this.options.interpolation.defaultVariables),Q)),o=this.interpolator.interpolate(o,Q,g.lng||this.language,g),U){var re=o.match(this.interpolator.nestingRegexp),ne=re&&re.length;L<ne&&(g.nest=!1)}!g.lng&&this.options.compatibilityAPI!=="v1"&&k&&k.res&&(g.lng=k.usedLng),g.nest!==!1&&(o=this.interpolator.nest(o,function(){for(var he=arguments.length,ye=new Array(he),Ie=0;Ie<he;Ie++)ye[Ie]=arguments[Ie];return C&&C[0]===ye[0]&&!g.context?(A.logger.warn("It seems you are nesting recursively key: ".concat(ye[0]," in key: ").concat(l[0])),null):A.translate.apply(A,ye.concat([l]))},g)),g.interpolation&&this.interpolator.reset()}var J=g.postProcess||this.options.postProcess,F=typeof J=="string"?[J]:J;return o!=null&&F&&F.length&&g.applyPostProcessor!==!1&&(o=ng.handle(F,o,l,this.options&&this.options.postProcessPassResolved?wi({i18nResolved:k},g):g,this)),o}},{key:"resolve",value:function(o){var l=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k,C,A,U,L;return typeof o=="string"&&(o=[o]),o.forEach(function(q){if(!l.isValidLookup(k)){var Q=l.extractFromKey(q,g),re=Q.key;C=re;var ne=Q.namespaces;l.options.fallbackNS&&(ne=ne.concat(l.options.fallbackNS));var J=g.count!==void 0&&typeof g.count!="string",F=J&&!g.ordinal&&g.count===0&&l.pluralResolver.shouldUseIntlApi(),he=g.context!==void 0&&(typeof g.context=="string"||typeof g.context=="number")&&g.context!=="",ye=g.lngs?g.lngs:l.languageUtils.toResolveHierarchy(g.lng||l.language,g.fallbackLng);ne.forEach(function(Ie){l.isValidLookup(k)||(L=Ie,!Uh["".concat(ye[0],"-").concat(Ie)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(L)&&(Uh["".concat(ye[0],"-").concat(Ie)]=!0,l.logger.warn('key "'.concat(C,'" for languages "').concat(ye.join(", "),`" won't get resolved as namespace "`).concat(L,'" 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!!!")),ye.forEach(function(de){if(!l.isValidLookup(k)){U=de;var je=[re];if(l.i18nFormat&&l.i18nFormat.addLookupKeys)l.i18nFormat.addLookupKeys(je,re,de,Ie,g);else{var m;J&&(m=l.pluralResolver.getSuffix(de,g.count,g));var Ue="".concat(l.options.pluralSeparator,"zero");if(J&&(je.push(re+m),F&&je.push(re+Ue)),he){var ke="".concat(re).concat(l.options.contextSeparator).concat(g.context);je.push(ke),J&&(je.push(ke+m),F&&je.push(ke+Ue))}}for(var ht;ht=je.pop();)l.isValidLookup(k)||(A=ht,k=l.getResource(de,Ie,ht,g))}}))})}}),{res:k,usedKey:C,exactUsedKey:A,usedLng:U,usedNS:L}}},{key:"isValidLookup",value:function(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}},{key:"getResource",value:function(o,l,g){var k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,l,g,k):this.resourceStore.getResource(o,l,g,k)}}],[{key:"hasDefaultValue",value:function(o){var l="defaultValue";for(var g in o)if(Object.prototype.hasOwnProperty.call(o,g)&&l===g.substring(0,l.length)&&o[g]!==void 0)return!0;return!1}}]),n}(gu);function _f(i){return i.charAt(0).toUpperCase()+i.slice(1)}var $h=function(){function i(t){Do(this,i),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=qa.create("languageUtils")}return Ao(i,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var s=n.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var s=n.split("-");return this.formatLanguageCode(s[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var s=["hans","hant","latn","cyrl","cans","mong","arab"],o=n.split("-");return this.options.lowerCaseLng?o=o.map(function(l){return l.toLowerCase()}):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),s.indexOf(o[1].toLowerCase())>-1&&(o[1]=_f(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),s.indexOf(o[1].toLowerCase())>-1&&(o[1]=_f(o[1].toLowerCase())),s.indexOf(o[2].toLowerCase())>-1&&(o[2]=_f(o[2].toLowerCase()))),o.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 s=this;if(!n)return null;var o;return n.forEach(function(l){if(!o){var g=s.formatLanguageCode(l);(!s.options.supportedLngs||s.isSupportedCode(g))&&(o=g)}}),!o&&this.options.supportedLngs&&n.forEach(function(l){if(!o){var g=s.getLanguagePartFromCode(l);if(s.isSupportedCode(g))return o=g;o=s.options.supportedLngs.find(function(k){if(k===g)return k;if(!(k.indexOf("-")<0&&g.indexOf("-")<0)&&k.indexOf(g)===0)return k})}}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}},{key:"getFallbackCodes",value:function(n,s){if(!n)return[];if(typeof n=="function"&&(n=n(s)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!s)return n.default||[];var o=n[s];return o||(o=n[this.getScriptPartFromCode(s)]),o||(o=n[this.formatLanguageCode(s)]),o||(o=n[this.getLanguagePartFromCode(s)]),o||(o=n.default),o||[]}},{key:"toResolveHierarchy",value:function(n,s){var o=this,l=this.getFallbackCodes(s||this.options.fallbackLng||[],n),g=[],k=function(A){A&&(o.isSupportedCode(A)?g.push(A):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(A)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&k(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&k(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&k(this.getLanguagePartFromCode(n))):typeof n=="string"&&k(this.formatLanguageCode(n)),l.forEach(function(C){g.indexOf(C)<0&&k(o.formatLanguageCode(C))}),g}}]),i}(),Nw=[{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}],Bw={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}},jw=["v1","v2","v3"],zh={zero:0,one:1,two:2,few:3,many:4,other:5};function Hw(){var i={};return Nw.forEach(function(t){t.lngs.forEach(function(n){i[n]={numbers:t.nr,plurals:Bw[t.fc]}})}),i}var Uw=function(){function i(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Do(this,i),this.languageUtils=t,this.options=n,this.logger=qa.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=Hw()}return Ao(i,[{key:"addRule",value:function(n,s){this.rules[n]=s}},{key:"getRule",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:s.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,s);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(function(l){return"".concat(s).concat(l)})}},{key:"getSuffixes",value:function(n){var s=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=this.getRule(n,o);return l?this.shouldUseIntlApi()?l.resolvedOptions().pluralCategories.sort(function(g,k){return zh[g]-zh[k]}).map(function(g){return"".concat(s.options.prepend).concat(g)}):l.numbers.map(function(g){return s.getSuffix(n,g,o)}):[]}},{key:"getSuffix",value:function(n,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=this.getRule(n,o);return l?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(l.select(s)):this.getSuffixRetroCompatible(l,s):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,s){var o=this,l=n.noAbs?n.plurals(s):n.plurals(Math.abs(s)),g=n.numbers[l];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(g===2?g="plural":g===1&&(g=""));var k=function(){return o.options.prepend&&g.toString()?o.options.prepend+g.toString():g.toString()};return this.options.compatibilityJSON==="v1"?g===1?"":typeof g=="number"?"_plural_".concat(g.toString()):k():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?k():this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString()}},{key:"shouldUseIntlApi",value:function(){return!jw.includes(this.options.compatibilityJSON)}}]),i}();function Yh(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function Sa(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yh(Object(n),!0).forEach(function(s){Ka(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function Vh(i,t,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=_w(i,t,n);return!l&&o&&typeof n=="string"&&(l=Ac(i,n,s),l===void 0&&(l=Ac(t,n,s))),l}var Ww=function(){function i(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Do(this,i),this.logger=qa.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Ao(i,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var s=n.interpolation;this.escape=s.escape!==void 0?s.escape:Iw,this.escapeValue=s.escapeValue!==void 0?s.escapeValue:!0,this.useRawValueToEscape=s.useRawValueToEscape!==void 0?s.useRawValueToEscape:!1,this.prefix=s.prefix?Pl(s.prefix):s.prefixEscaped||"{{",this.suffix=s.suffix?Pl(s.suffix):s.suffixEscaped||"}}",this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||",",this.unescapePrefix=s.unescapeSuffix?"":s.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":s.unescapeSuffix||"",this.nestingPrefix=s.nestingPrefix?Pl(s.nestingPrefix):s.nestingPrefixEscaped||Pl("$t("),this.nestingSuffix=s.nestingSuffix?Pl(s.nestingSuffix):s.nestingSuffixEscaped||Pl(")"),this.nestingOptionsSeparator=s.nestingOptionsSeparator?s.nestingOptionsSeparator:s.nestingOptionsSeparator||",",this.maxReplaces=s.maxReplaces?s.maxReplaces:1e3,this.alwaysFormat=s.alwaysFormat!==void 0?s.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 s="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(s,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(o,"g")}},{key:"interpolate",value:function(n,s,o,l){var g=this,k,C,A,U=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function L(J){return J.replace(/\$/g,"$$$$")}var q=function(F){if(F.indexOf(g.formatSeparator)<0){var he=Vh(s,U,F,g.options.keySeparator,g.options.ignoreJSONStructure);return g.alwaysFormat?g.format(he,void 0,o,Sa(Sa(Sa({},l),s),{},{interpolationkey:F})):he}var ye=F.split(g.formatSeparator),Ie=ye.shift().trim(),de=ye.join(g.formatSeparator).trim();return g.format(Vh(s,U,Ie,g.options.keySeparator,g.options.ignoreJSONStructure),de,o,Sa(Sa(Sa({},l),s),{},{interpolationkey:Ie}))};this.resetRegExp();var Q=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,re=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,ne=[{regex:this.regexpUnescape,safeValue:function(F){return L(F)}},{regex:this.regexp,safeValue:function(F){return g.escapeValue?L(g.escape(F)):L(F)}}];return ne.forEach(function(J){for(A=0;k=J.regex.exec(n);){var F=k[1].trim();if(C=q(F),C===void 0)if(typeof Q=="function"){var he=Q(n,k,l);C=typeof he=="string"?he:""}else if(l&&Object.prototype.hasOwnProperty.call(l,F))C="";else if(re){C=k[0];continue}else g.logger.warn("missed to pass in variable ".concat(F," for interpolating ").concat(n)),C="";else typeof C!="string"&&!g.useRawValueToEscape&&(C=Nh(C));var ye=J.safeValue(C);if(n=n.replace(k[0],ye),re?(J.regex.lastIndex+=C.length,J.regex.lastIndex-=k[0].length):J.regex.lastIndex=0,A++,A>=g.maxReplaces)break}}),n}},{key:"nest",value:function(n,s){var o=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g,k,C;function A(Q,re){var ne=this.nestingOptionsSeparator;if(Q.indexOf(ne)<0)return Q;var J=Q.split(new RegExp("".concat(ne,"[ ]*{"))),F="{".concat(J[1]);Q=J[0],F=this.interpolate(F,C);var he=F.match(/'/g),ye=F.match(/"/g);(he&&he.length%2===0&&!ye||ye.length%2!==0)&&(F=F.replace(/'/g,'"'));try{C=JSON.parse(F),re&&(C=Sa(Sa({},re),C))}catch(Ie){return this.logger.warn("failed parsing options string in nesting for key ".concat(Q),Ie),"".concat(Q).concat(ne).concat(F)}return delete C.defaultValue,Q}for(;g=this.nestingRegexp.exec(n);){var U=[];C=Sa({},l),C=C.replace&&typeof C.replace!="string"?C.replace:C,C.applyPostProcessor=!1,delete C.defaultValue;var L=!1;if(g[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(g[1])){var q=g[1].split(this.formatSeparator).map(function(Q){return Q.trim()});g[1]=q.shift(),U=q,L=!0}if(k=s(A.call(this,g[1].trim(),C),C),k&&g[0]===n&&typeof k!="string")return k;typeof k!="string"&&(k=Nh(k)),k||(this.logger.warn("missed to resolve ".concat(g[1]," for nesting ").concat(n)),k=""),L&&(k=U.reduce(function(Q,re){return o.format(Q,re,l.lng,Sa(Sa({},l),{},{interpolationkey:g[1].trim()}))},k.trim())),n=n.replace(g[0],k),this.regexp.lastIndex=0}return n}}]),i}();function Gh(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function As(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gh(Object(n),!0).forEach(function(s){Ka(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):Gh(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function $w(i){var t=i.toLowerCase().trim(),n={};if(i.indexOf("(")>-1){var s=i.split("(");t=s[0].toLowerCase().trim();var o=s[1].substring(0,s[1].length-1);if(t==="currency"&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if(t==="relativetime"&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{var l=o.split(";");l.forEach(function(g){if(g){var k=g.split(":"),C=xw(k),A=C[0],U=C.slice(1),L=U.join(":").trim().replace(/^'+|'+$/g,"");n[A.trim()]||(n[A.trim()]=L),L==="false"&&(n[A.trim()]=!1),L==="true"&&(n[A.trim()]=!0),isNaN(L)||(n[A.trim()]=parseInt(L,10))}})}}return{formatName:t,formatOptions:n}}function Ll(i){var t={};return function(s,o,l){var g=o+JSON.stringify(l),k=t[g];return k||(k=i(o,l),t[g]=k),k(s)}}var zw=function(){function i(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Do(this,i),this.logger=qa.create("formatter"),this.options=t,this.formats={number:Ll(function(n,s){var o=new Intl.NumberFormat(n,As({},s));return function(l){return o.format(l)}}),currency:Ll(function(n,s){var o=new Intl.NumberFormat(n,As(As({},s),{},{style:"currency"}));return function(l){return o.format(l)}}),datetime:Ll(function(n,s){var o=new Intl.DateTimeFormat(n,As({},s));return function(l){return o.format(l)}}),relativetime:Ll(function(n,s){var o=new Intl.RelativeTimeFormat(n,As({},s));return function(l){return o.format(l,s.range||"day")}}),list:Ll(function(n,s){var o=new Intl.ListFormat(n,As({},s));return function(l){return o.format(l)}})},this.init(t)}return Ao(i,[{key:"init",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},o=s.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(n,s){this.formats[n.toLowerCase().trim()]=s}},{key:"addCached",value:function(n,s){this.formats[n.toLowerCase().trim()]=Ll(s)}},{key:"format",value:function(n,s,o){var l=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},k=s.split(this.formatSeparator),C=k.reduce(function(A,U){var L=$w(U),q=L.formatName,Q=L.formatOptions;if(l.formats[q]){var re=A;try{var ne=g&&g.formatParams&&g.formatParams[g.interpolationkey]||{},J=ne.locale||ne.lng||g.locale||g.lng||o;re=l.formats[q](A,J,As(As(As({},Q),g),ne))}catch(F){l.logger.warn(F)}return re}else l.logger.warn("there was no format function for ".concat(q));return A},n);return C}}]),i}();function qh(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function Xh(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qh(Object(n),!0).forEach(function(s){Ka(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function Yw(i){var t=Vw();return function(){var s=Xa(i),o;if(t){var l=Xa(this).constructor;o=Reflect.construct(s,arguments,l)}else o=s.apply(this,arguments);return sc(this,o)}}function Vw(){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 Gw(i,t){i.pending[t]!==void 0&&(delete i.pending[t],i.pendingCount--)}var qw=function(i){jc(n,i);var t=Yw(n);function n(s,o,l){var g,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Do(this,n),g=t.call(this),Hc&&gu.call(Ms(g)),g.backend=s,g.store=o,g.services=l,g.languageUtils=l.languageUtils,g.options=k,g.logger=qa.create("backendConnector"),g.waitingReads=[],g.maxParallelReads=k.maxParallelReads||10,g.readingCalls=0,g.maxRetries=k.maxRetries>=0?k.maxRetries:5,g.retryTimeout=k.retryTimeout>=1?k.retryTimeout:350,g.state={},g.queue=[],g.backend&&g.backend.init&&g.backend.init(l,k.backend,k),g}return Ao(n,[{key:"queueLoad",value:function(o,l,g,k){var C=this,A={},U={},L={},q={};return o.forEach(function(Q){var re=!0;l.forEach(function(ne){var J="".concat(Q,"|").concat(ne);!g.reload&&C.store.hasResourceBundle(Q,ne)?C.state[J]=2:C.state[J]<0||(C.state[J]===1?U[J]===void 0&&(U[J]=!0):(C.state[J]=1,re=!1,U[J]===void 0&&(U[J]=!0),A[J]===void 0&&(A[J]=!0),q[ne]===void 0&&(q[ne]=!0)))}),re||(L[Q]=!0)}),(Object.keys(A).length||Object.keys(U).length)&&this.queue.push({pending:U,pendingCount:Object.keys(U).length,loaded:{},errors:[],callback:k}),{toLoad:Object.keys(A),pending:Object.keys(U),toLoadLanguages:Object.keys(L),toLoadNamespaces:Object.keys(q)}}},{key:"loaded",value:function(o,l,g){var k=o.split("|"),C=k[0],A=k[1];l&&this.emit("failedLoading",C,A,l),g&&this.store.addResourceBundle(C,A,g),this.state[o]=l?-1:2;var U={};this.queue.forEach(function(L){Tw(L.loaded,[C],A),Gw(L,o),l&&L.errors.push(l),L.pendingCount===0&&!L.done&&(Object.keys(L.loaded).forEach(function(q){U[q]||(U[q]={});var Q=L.loaded[q];Q.length&&Q.forEach(function(re){U[q][re]===void 0&&(U[q][re]=!0)})}),L.done=!0,L.errors.length?L.callback(L.errors):L.callback())}),this.emit("loaded",U),this.queue=this.queue.filter(function(L){return!L.done})}},{key:"read",value:function(o,l,g){var k=this,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,U=arguments.length>5?arguments[5]:void 0;if(!o.length)return U(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:l,fcName:g,tried:C,wait:A,callback:U});return}this.readingCalls++;var L=function(ne,J){if(k.readingCalls--,k.waitingReads.length>0){var F=k.waitingReads.shift();k.read(F.lng,F.ns,F.fcName,F.tried,F.wait,F.callback)}if(ne&&J&&C<k.maxRetries){setTimeout(function(){k.read.call(k,o,l,g,C+1,A*2,U)},A);return}U(ne,J)},q=this.backend[g].bind(this.backend);if(q.length===2){try{var Q=q(o,l);Q&&typeof Q.then=="function"?Q.then(function(re){return L(null,re)}).catch(L):L(null,Q)}catch(re){L(re)}return}return q(o,l,L)}},{key:"prepareLoading",value:function(o,l){var g=this,k=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 o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof l=="string"&&(l=[l]);var A=this.queueLoad(o,l,k,C);if(!A.toLoad.length)return A.pending.length||C(),null;A.toLoad.forEach(function(U){g.loadOne(U)})}},{key:"load",value:function(o,l,g){this.prepareLoading(o,l,{},g)}},{key:"reload",value:function(o,l,g){this.prepareLoading(o,l,{reload:!0},g)}},{key:"loadOne",value:function(o){var l=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",k=o.split("|"),C=k[0],A=k[1];this.read(C,A,"read",void 0,void 0,function(U,L){U&&l.logger.warn("".concat(g,"loading namespace ").concat(A," for language ").concat(C," failed"),U),!U&&L&&l.logger.log("".concat(g,"loaded namespace ").concat(A," for language ").concat(C),L),l.loaded(o,U,L)})}},{key:"saveMissing",value:function(o,l,g,k,C){var A=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},U=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(l)){this.logger.warn('did not save key "'.concat(g,'" as the namespace "').concat(l,'" 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(!(g==null||g==="")){if(this.backend&&this.backend.create){var L=Xh(Xh({},A),{},{isUpdate:C}),q=this.backend.create.bind(this.backend);if(q.length<6)try{var Q;q.length===5?Q=q(o,l,g,k,L):Q=q(o,l,g,k),Q&&typeof Q.then=="function"?Q.then(function(re){return U(null,re)}).catch(U):U(null,Q)}catch(re){U(re)}else q(o,l,g,k,U,L)}!o||!o[0]||this.store.addResource(o[0],l,g,k)}}}]),n}(gu);function Kh(){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(Oo(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Oo(t[2])==="object"||Oo(t[3])==="object"){var s=t[3]||t[2];Object.keys(s).forEach(function(o){n[o]=s[o]})}return n},interpolation:{escapeValue:!0,format:function(t,n,s,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Jh(i){return typeof i.ns=="string"&&(i.ns=[i.ns]),typeof i.fallbackLng=="string"&&(i.fallbackLng=[i.fallbackLng]),typeof i.fallbackNS=="string"&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&i.supportedLngs.indexOf("cimode")<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i}function Zh(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function Va(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zh(Object(n),!0).forEach(function(s){Ka(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function Xw(i){var t=Kw();return function(){var s=Xa(i),o;if(t){var l=Xa(this).constructor;o=Reflect.construct(s,arguments,l)}else o=s.apply(this,arguments);return sc(this,o)}}function Kw(){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 Cc(){}function Jw(i){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(i));t.forEach(function(n){typeof i[n]=="function"&&(i[n]=i[n].bind(i))})}var Pc=function(i){jc(n,i);var t=Xw(n);function n(){var s,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;if(Do(this,n),s=t.call(this),Hc&&gu.call(Ms(s)),s.options=Jh(o),s.services={},s.logger=qa,s.modules={external:[]},Jw(Ms(s)),l&&!s.isInitialized&&!o.isClone){if(!s.options.initImmediate)return s.init(o,l),sc(s,Ms(s));setTimeout(function(){s.init(o,l)},0)}return s}return Ao(n,[{key:"init",value:function(){var o=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;typeof l=="function"&&(g=l,l={}),!l.defaultNS&&l.defaultNS!==!1&&l.ns&&(typeof l.ns=="string"?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));var k=Kh();this.options=Va(Va(Va({},k),this.options),Jh(l)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Va(Va({},k.interpolation),this.options.interpolation)),l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator);function C(F){return F?typeof F=="function"?new F:F:null}if(!this.options.isClone){this.modules.logger?qa.init(C(this.modules.logger),this.options):qa.init(null,this.options);var A;this.modules.formatter?A=this.modules.formatter:typeof Intl<"u"&&(A=zw);var U=new $h(this.options);this.store=new Lw(this.options.resources,this.options);var L=this.services;L.logger=qa,L.resourceStore=this.store,L.languageUtils=U,L.pluralResolver=new Uw(U,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),A&&(!this.options.interpolation.format||this.options.interpolation.format===k.interpolation.format)&&(L.formatter=C(A),L.formatter.init(L,this.options),this.options.interpolation.format=L.formatter.format.bind(L.formatter)),L.interpolator=new Ww(this.options),L.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},L.backendConnector=new qw(C(this.modules.backend),L.resourceStore,L,this.options),L.backendConnector.on("*",function(F){for(var he=arguments.length,ye=new Array(he>1?he-1:0),Ie=1;Ie<he;Ie++)ye[Ie-1]=arguments[Ie];o.emit.apply(o,[F].concat(ye))}),this.modules.languageDetector&&(L.languageDetector=C(this.modules.languageDetector),L.languageDetector.init&&L.languageDetector.init(L,this.options.detection,this.options)),this.modules.i18nFormat&&(L.i18nFormat=C(this.modules.i18nFormat),L.i18nFormat.init&&L.i18nFormat.init(this)),this.translator=new Wh(this.services,this.options),this.translator.on("*",function(F){for(var he=arguments.length,ye=new Array(he>1?he-1:0),Ie=1;Ie<he;Ie++)ye[Ie-1]=arguments[Ie];o.emit.apply(o,[F].concat(ye))}),this.modules.external.forEach(function(F){F.init&&F.init(o)})}if(this.format=this.options.interpolation.format,g||(g=Cc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var q=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);q.length>0&&q[0]!=="dev"&&(this.options.lng=q[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var Q=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];Q.forEach(function(F){o[F]=function(){var he;return(he=o.store)[F].apply(he,arguments)}});var re=["addResource","addResources","addResourceBundle","removeResourceBundle"];re.forEach(function(F){o[F]=function(){var he;return(he=o.store)[F].apply(he,arguments),o}});var ne=Kl(),J=function(){var he=function(Ie,de){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),ne.resolve(de),g(Ie,de)};if(o.languages&&o.options.compatibilityAPI!=="v1"&&!o.isInitialized)return he(null,o.t.bind(o));o.changeLanguage(o.options.lng,he)};return this.options.resources||!this.options.initImmediate?J():setTimeout(J,0),ne}},{key:"loadResources",value:function(o){var l=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cc,k=g,C=typeof o=="string"?o:this.language;if(typeof o=="function"&&(k=o),!this.options.resources||this.options.partialBundledLanguages){if(C&&C.toLowerCase()==="cimode")return k();var A=[],U=function(Q){if(Q){var re=l.services.languageUtils.toResolveHierarchy(Q);re.forEach(function(ne){A.indexOf(ne)<0&&A.push(ne)})}};if(C)U(C);else{var L=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);L.forEach(function(q){return U(q)})}this.options.preload&&this.options.preload.forEach(function(q){return U(q)}),this.services.backendConnector.load(A,this.options.ns,function(q){!q&&!l.resolvedLanguage&&l.language&&l.setResolvedLanguage(l.language),k(q)})}else k(null)}},{key:"reloadResources",value:function(o,l,g){var k=Kl();return o||(o=this.languages),l||(l=this.options.ns),g||(g=Cc),this.services.backendConnector.reload(o,l,function(C){k.resolve(),g(C)}),k}},{key:"use",value:function(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&ng.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}},{key:"setResolvedLanguage",value:function(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(var l=0;l<this.languages.length;l++){var g=this.languages[l];if(!(["cimode","dev"].indexOf(g)>-1)&&this.store.hasLanguageSomeTranslations(g)){this.resolvedLanguage=g;break}}}},{key:"changeLanguage",value:function(o,l){var g=this;this.isLanguageChangingTo=o;var k=Kl();this.emit("languageChanging",o);var C=function(q){g.language=q,g.languages=g.services.languageUtils.toResolveHierarchy(q),g.resolvedLanguage=void 0,g.setResolvedLanguage(q)},A=function(q,Q){Q?(C(Q),g.translator.changeLanguage(Q),g.isLanguageChangingTo=void 0,g.emit("languageChanged",Q),g.logger.log("languageChanged",Q)):g.isLanguageChangingTo=void 0,k.resolve(function(){return g.t.apply(g,arguments)}),l&&l(q,function(){return g.t.apply(g,arguments)})},U=function(q){!o&&!q&&g.services.languageDetector&&(q=[]);var Q=typeof q=="string"?q:g.services.languageUtils.getBestMatchFromCodes(q);Q&&(g.language||C(Q),g.translator.language||g.translator.changeLanguage(Q),g.services.languageDetector&&g.services.languageDetector.cacheUserLanguage&&g.services.languageDetector.cacheUserLanguage(Q)),g.loadResources(Q,function(re){A(re,Q)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?U(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(U):this.services.languageDetector.detect(U):U(o),k}},{key:"getFixedT",value:function(o,l,g){var k=this,C=function A(U,L){var q;if(Oo(L)!=="object"){for(var Q=arguments.length,re=new Array(Q>2?Q-2:0),ne=2;ne<Q;ne++)re[ne-2]=arguments[ne];q=k.options.overloadTranslationOptionHandler([U,L].concat(re))}else q=Va({},L);q.lng=q.lng||A.lng,q.lngs=q.lngs||A.lngs,q.ns=q.ns||A.ns,q.keyPrefix=q.keyPrefix||g||A.keyPrefix;var J=k.options.keySeparator||".",F;return q.keyPrefix&&Array.isArray(U)?F=U.map(function(he){return"".concat(q.keyPrefix).concat(J).concat(he)}):F=q.keyPrefix?"".concat(q.keyPrefix).concat(J).concat(U):U,k.t(F,q)};return typeof o=="string"?C.lng=o:C.lngs=o,C.ns=l,C.keyPrefix=g,C}},{key:"t",value:function(){var o;return this.translator&&(o=this.translator).translate.apply(o,arguments)}},{key:"exists",value:function(){var o;return this.translator&&(o=this.translator).exists.apply(o,arguments)}},{key:"setDefaultNamespace",value:function(o){this.options.defaultNS=o}},{key:"hasLoadedNamespace",value:function(o){var l=this,g=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 k=g.lng||this.resolvedLanguage||this.languages[0],C=this.options?this.options.fallbackLng:!1,A=this.languages[this.languages.length-1];if(k.toLowerCase()==="cimode")return!0;var U=function(Q,re){var ne=l.services.backendConnector.state["".concat(Q,"|").concat(re)];return ne===-1||ne===2};if(g.precheck){var L=g.precheck(this,U);if(L!==void 0)return L}return!!(this.hasResourceBundle(k,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||U(k,o)&&(!C||U(A,o)))}},{key:"loadNamespaces",value:function(o,l){var g=this,k=Kl();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(function(C){g.options.ns.indexOf(C)<0&&g.options.ns.push(C)}),this.loadResources(function(C){k.resolve(),l&&l(C)}),k):(l&&l(),Promise.resolve())}},{key:"loadLanguages",value:function(o,l){var g=Kl();typeof o=="string"&&(o=[o]);var k=this.options.preload||[],C=o.filter(function(A){return k.indexOf(A)<0});return C.length?(this.options.preload=k.concat(C),this.loadResources(function(A){g.resolve(),l&&l(A)}),g):(l&&l(),Promise.resolve())}},{key:"dir",value:function(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";var l=["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"],g=this.services&&this.services.languageUtils||new $h(Kh());return l.indexOf(g.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var o=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cc,k=Va(Va(Va({},this.options),l),{isClone:!0}),C=new n(k);(l.debug!==void 0||l.prefix!==void 0)&&(C.logger=C.logger.clone(l));var A=["store","services","language"];return A.forEach(function(U){C[U]=o[U]}),C.services=Va({},this.services),C.services.utils={hasLoadedNamespace:C.hasLoadedNamespace.bind(C)},C.translator=new Wh(C.services,C.options),C.translator.on("*",function(U){for(var L=arguments.length,q=new Array(L>1?L-1:0),Q=1;Q<L;Q++)q[Q-1]=arguments[Q];C.emit.apply(C,[U].concat(q))}),C.init(k,g),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}(gu);Ka(Pc,"createInstance",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Pc(i,t)});var Mr=Pc.createInstance();Mr.createInstance=Pc.createInstance;Mr.createInstance;Mr.dir;Mr.init;Mr.loadResources;Mr.reloadResources;Mr.use;Mr.changeLanguage;Mr.getFixedT;var rg=Mr.t;Mr.exists;Mr.setDefaultNamespace;Mr.hasLoadedNamespace;Mr.loadNamespaces;Mr.loadLanguages;var ig=[],Zw=ig.forEach,Qw=ig.slice;function eS(i){return Zw.call(Qw.call(arguments,1),function(t){if(t)for(var n in t)i[n]===void 0&&(i[n]=t[n])}),i}var Qh=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,tS=function(t,n,s){var o=s||{};o.path=o.path||"/";var l=encodeURIComponent(n),g="".concat(t,"=").concat(l);if(o.maxAge>0){var k=o.maxAge-0;if(Number.isNaN(k))throw new Error("maxAge should be a Number");g+="; Max-Age=".concat(Math.floor(k))}if(o.domain){if(!Qh.test(o.domain))throw new TypeError("option domain is invalid");g+="; Domain=".concat(o.domain)}if(o.path){if(!Qh.test(o.path))throw new TypeError("option path is invalid");g+="; Path=".concat(o.path)}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");g+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(g+="; HttpOnly"),o.secure&&(g+="; Secure"),o.sameSite){var C=typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite;switch(C){case!0:g+="; SameSite=Strict";break;case"lax":g+="; SameSite=Lax";break;case"strict":g+="; SameSite=Strict";break;case"none":g+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return g},ep={create:function(t,n,s,o){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(l.expires=new Date,l.expires.setTime(l.expires.getTime()+s*60*1e3)),o&&(l.domain=o),document.cookie=tS(t,encodeURIComponent(n),l)},read:function(t){for(var n="".concat(t,"="),s=document.cookie.split(";"),o=0;o<s.length;o++){for(var l=s[o];l.charAt(0)===" ";)l=l.substring(1,l.length);if(l.indexOf(n)===0)return l.substring(n.length,l.length)}return null},remove:function(t){this.create(t,"",-1)}},nS={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var s=ep.read(t.lookupCookie);s&&(n=s)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&ep.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},rS={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var s=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(s=window.location.hash.substring(window.location.hash.indexOf("?")));for(var o=s.substring(1),l=o.split("&"),g=0;g<l.length;g++){var k=l[g].indexOf("=");if(k>0){var C=l[g].substring(0,k);C===t.lookupQuerystring&&(n=l[g].substring(k+1))}}}return n}},Jl=null,tp=function(){if(Jl!==null)return Jl;try{Jl=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Jl=!1}return Jl},iS={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&tp()){var s=window.localStorage.getItem(t.lookupLocalStorage);s&&(n=s)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&tp()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Zl=null,np=function(){if(Zl!==null)return Zl;try{Zl=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Zl=!1}return Zl},oS={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&np()){var s=window.sessionStorage.getItem(t.lookupSessionStorage);s&&(n=s)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&np()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},aS={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var s=0;s<navigator.languages.length;s++)n.push(navigator.languages[s]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},sS={name:"htmlTag",lookup:function(t){var n,s=t.htmlTag||(typeof document<"u"?document.documentElement:null);return s&&typeof s.getAttribute=="function"&&(n=s.getAttribute("lang")),n}},uS={name:"path",lookup:function(t){var n;if(typeof window<"u"){var s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(s instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof s[t.lookupFromPathIndex]!="string")return;n=s[t.lookupFromPathIndex].replace("/","")}else n=s[0].replace("/","")}return n}},lS={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,s=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(s)return s[n]}};function cS(){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 og=function(){function i(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Do(this,i),this.type="languageDetector",this.detectors={},this.init(t,n)}return Ao(i,[{key:"init",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=eS(s,this.options||{},cS()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(l){return l.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(nS),this.addDetector(rS),this.addDetector(iS),this.addDetector(oS),this.addDetector(aS),this.addDetector(sS),this.addDetector(uS),this.addDetector(lS)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var s=this;n||(n=this.options.order);var o=[];return n.forEach(function(l){if(s.detectors[l]){var g=s.detectors[l].lookup(s.options);g&&typeof g=="string"&&(g=[g]),g&&(o=o.concat(g))}}),o=o.map(function(l){return s.options.convertDetectedLanguage(l)}),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(n,s){var o=this;s||(s=this.options.caches),s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||s.forEach(function(l){o.detectors[l]&&o.detectors[l].cacheUserLanguage(n,o.options)}))}}]),i}();og.type="languageDetector";function cd(i,t){if(i==null)return{};var n={},s=Object.keys(i),o,l;for(l=0;l<s.length;l++)o=s[l],!(t.indexOf(o)>=0)&&(n[o]=i[o]);return n}const fS=Object.freeze(Object.defineProperty({__proto__:null,default:cd},Symbol.toStringTag,{value:"Module"}));function dS(){if(console&&console.warn){for(var i,t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(i=console).warn.apply(i,n)}}var rp={};function Gf(){for(var i=arguments.length,t=new Array(i),n=0;n<i;n++)t[n]=arguments[n];typeof t[0]=="string"&&rp[t[0]]||(typeof t[0]=="string"&&(rp[t[0]]=new Date),dS.apply(void 0,t))}var ag=function(t,n){return function(){if(t.isInitialized)n();else{var s=function o(){setTimeout(function(){t.off("initialized",o)},0),n()};t.on("initialized",s)}}};function ip(i,t,n){i.loadNamespaces(t,ag(i,n))}function op(i,t,n,s){typeof n=="string"&&(n=[n]),n.forEach(function(o){i.options.ns.indexOf(o)<0&&i.options.ns.push(o)}),i.loadLanguages(t,ag(i,s))}function hS(i,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=t.languages[0],o=t.options?t.options.fallbackLng:!1,l=t.languages[t.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var g=function(C,A){var U=t.services.backendConnector.state["".concat(C,"|").concat(A)];return U===-1||U===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!g(t.isLanguageChangingTo,i)?!1:!!(t.hasResourceBundle(s,i)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||g(s,i)&&(!o||g(l,i)))}function pS(i,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Gf("i18n.languages were undefined or empty",t.languages),!0;var s=t.options.ignoreJSONStructure!==void 0;return s?t.hasLoadedNamespace(i,{lng:n.lng,precheck:function(l,g){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!g(l.isLanguageChangingTo,i))return!1}}):hS(i,t,n)}var gS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,vS={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},mS=function(t){return vS[t]},yS=function(t){return t.replace(gS,mS)};function ap(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function sp(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ap(Object(n),!0).forEach(function(s){Ka(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}var qf={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:yS};function bS(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qf=sp(sp({},qf),i)}function wS(){return qf}var sg;function SS(i){sg=i}function xS(){return sg}var CS={type:"3rdParty",init:function(t){bS(t.options.react),SS(t)}},ug=Je.createContext(),ES=function(){function i(){Do(this,i),this.usedNamespaces={}}return Ao(i,[{key:"addUsedNamespaces",value:function(n){var s=this;n.forEach(function(o){s.usedNamespaces[o]||(s.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),i}();function kS(i,t){var n=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(n!=null){var s,o,l,g,k=[],C=!0,A=!1;try{if(l=(n=n.call(i)).next,t===0){if(Object(n)!==n)return;C=!1}else for(;!(C=(s=l.call(n)).done)&&(k.push(s.value),k.length!==t);C=!0);}catch(U){A=!0,o=U}finally{try{if(!C&&n.return!=null&&(g=n.return(),Object(g)!==g))return}finally{if(A)throw o}}return k}}function TS(i,t){return Zp(i)||kS(i,t)||Qp(i,t)||eg()}function up(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function Rf(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?up(Object(n),!0).forEach(function(s){Ka(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}var _S=function(t,n){var s=Je.useRef();return Je.useEffect(function(){s.current=n?s.current:t},[t,n]),s.current};function lg(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,s=Je.useContext(ug)||{},o=s.i18n,l=s.defaultNS,g=n||o||xS();if(g&&!g.reportNamespaces&&(g.reportNamespaces=new ES),!g){Gf("You will need to pass in an i18next instance by using initReactI18next");var k=function(ke,ht){return typeof ht=="string"?ht:ht&&Oo(ht)==="object"&&typeof ht.defaultValue=="string"?ht.defaultValue:Array.isArray(ke)?ke[ke.length-1]:ke},C=[k,{},!1];return C.t=k,C.i18n={},C.ready=!1,C}g.options.react&&g.options.react.wait!==void 0&&Gf("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var A=Rf(Rf(Rf({},wS()),g.options.react),t),U=A.useSuspense,L=A.keyPrefix,q=i||l||g.options&&g.options.defaultNS;q=typeof q=="string"?[q]:q||["translation"],g.reportNamespaces.addUsedNamespaces&&g.reportNamespaces.addUsedNamespaces(q);var Q=(g.isInitialized||g.initializedStoreOnce)&&q.every(function(Ue){return pS(Ue,g,A)});function re(){return g.getFixedT(t.lng||null,A.nsMode==="fallback"?q:q[0],L)}var ne=Je.useState(re),J=TS(ne,2),F=J[0],he=J[1],ye=q.join();t.lng&&(ye="".concat(t.lng).concat(ye));var Ie=_S(ye),de=Je.useRef(!0);Je.useEffect(function(){var Ue=A.bindI18n,ke=A.bindI18nStore;de.current=!0,!Q&&!U&&(t.lng?op(g,t.lng,q,function(){de.current&&he(re)}):ip(g,q,function(){de.current&&he(re)})),Q&&Ie&&Ie!==ye&&de.current&&he(re);function ht(){de.current&&he(re)}return Ue&&g&&g.on(Ue,ht),ke&&g&&g.store.on(ke,ht),function(){de.current=!1,Ue&&g&&Ue.split(" ").forEach(function(Et){return g.off(Et,ht)}),ke&&g&&ke.split(" ").forEach(function(Et){return g.store.off(Et,ht)})}},[g,ye]);var je=Je.useRef(!0);Je.useEffect(function(){de.current&&!je.current&&he(re),je.current=!1},[g,L]);var m=[F,g,Q];if(m.t=F,m.i18n=g,m.ready=Q,Q||!Q&&!U)return m;throw new Promise(function(Ue){t.lng?op(g,t.lng,q,function(){return Ue()}):ip(g,q,function(){return Ue()})})}function RS(i){var t=i.i18n,n=i.defaultNS,s=i.children,o=Je.useMemo(function(){return{i18n:t,defaultNS:n}},[t,n]);return Je.createElement(ug.Provider,{value:o},s)}var cg=[],IS=cg.forEach,OS=cg.slice;function DS(i){return IS.call(OS.call(arguments,1),function(t){if(t)for(var n in t)i[n]===void 0&&(i[n]=t[n])}),i}function AS(i){return i?typeof i=="function"?new i:i:null}function PS(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function lp(i,t,n,s){var o=i.read.bind(i);if(o.length===2){try{var l=o(t,n);l&&typeof l.then=="function"?l.then(function(g){return s(null,g)}).catch(s):s(null,l)}catch(g){s(g)}return}o(t,n,s)}var fg=function(){function i(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Do(this,i),this.backends=[],this.type="backend",this.allOptions=s,this.init(t,n)}return Ao(i,[{key:"init",value:function(n){var s=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=DS(o,this.options||{},PS()),this.allOptions=l,this.options.backends&&this.options.backends.forEach(function(g,k){s.backends[k]=s.backends[k]||AS(g),s.backends[k].init(n,s.options.backendOptions&&s.options.backendOptions[k]||{},l)}),this.services&&this.options.reloadInterval&&setInterval(function(){return s.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,s,o){var l=this,g=this.backends.length,k=function A(U){if(U>=g)return o(new Error("non of the backend loaded data",!0));var L=U===g-1,q=l.options.handleEmptyResourcesAsFailed&&!L?0:-1,Q=l.backends[U];Q.read?lp(Q,n,s,function(re,ne,J){if(!re&&ne&&Object.keys(ne).length>q){if(o(null,ne,U),C(U-1,ne),Q.save&&l.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(l.options.cacheHitMode)>-1){if(J&&l.options.refreshExpirationTime&&J+l.options.refreshExpirationTime>Date.now())return;var F=l.backends[U+1];F&&F.read&&lp(F,n,s,function(he,ye){he||ye&&(Object.keys(ye).length<=q||(C(U,ye),l.options.cacheHitMode==="refreshAndUpdateStore"&&l.services&&l.services.resourceStore&&l.services.resourceStore.addResourceBundle(n,s,ye)))})}}else A(U+1)}):A(U+1)},C=function A(U,L){if(!(U<0)){var q=l.backends[U];q.save&&q.save(n,s,L),A(U-1,L)}};k(0)}},{key:"create",value:function(n,s,o,l){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},k=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(C){if(C.create){var A=C.create.bind(C);if(A.length<6){try{var U;A.length===5?U=A(n,s,o,l,k):U=A(n,s,o,l),U&&typeof U.then=="function"?U.then(function(L){return g(null,L)}).catch(g):g(null,U)}catch(L){g(L)}return}A(n,s,o,l,g,k)}})}},{key:"reload",value:function(){var n=this,s=this.services,o=s.backendConnector,l=s.languageUtils,g=s.logger,k=o.language;if(!(k&&k.toLowerCase()==="cimode")){var C=[],A=function(L){var q=l.toResolveHierarchy(L);q.forEach(function(Q){C.indexOf(Q)<0&&C.push(Q)})};A(k),this.allOptions.preload&&this.allOptions.preload.forEach(function(U){return A(U)}),C.forEach(function(U){n.allOptions.ns.forEach(function(L){o.read(U,L,"read",null,null,function(q,Q){q&&g.warn("loading namespace ".concat(L," for language ").concat(U," failed"),q),!q&&Q&&g.log("loaded namespace ".concat(L," for language ").concat(U),Q),o.loaded("".concat(U,"|").concat(L),q,Q)})})})}}}]),i}();fg.type="backend";function Xf(i){"@babel/helpers - typeof";return Xf=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},Xf(i)}function dg(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Xf(XMLHttpRequest))==="object"}function LS(i){return!!i&&typeof i.then=="function"}function MS(i){return LS(i)?i:Promise.resolve(i)}function FS(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kf={exports:{}},Ec={exports:{}},cp;function NS(){return cp||(cp=1,function(i,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ro<"u"&&Ro,s=function(){function l(){this.fetch=!1,this.DOMException=n.DOMException}return l.prototype=n,new l}();(function(l){(function(g){var k=typeof l<"u"&&l||typeof self<"u"&&self||typeof k<"u"&&k,C={searchParams:"URLSearchParams"in k,iterable:"Symbol"in k&&"iterator"in Symbol,blob:"FileReader"in k&&"Blob"in k&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in k,arrayBuffer:"ArrayBuffer"in k};function A(me){return me&&DataView.prototype.isPrototypeOf(me)}if(C.arrayBuffer)var U=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],L=ArrayBuffer.isView||function(me){return me&&U.indexOf(Object.prototype.toString.call(me))>-1};function q(me){if(typeof me!="string"&&(me=String(me)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(me)||me==="")throw new TypeError('Invalid character in header field name: "'+me+'"');return me.toLowerCase()}function Q(me){return typeof me!="string"&&(me=String(me)),me}function re(me){var Le={next:function(){var Ve=me.shift();return{done:Ve===void 0,value:Ve}}};return C.iterable&&(Le[Symbol.iterator]=function(){return Le}),Le}function ne(me){this.map={},me instanceof ne?me.forEach(function(Le,Ve){this.append(Ve,Le)},this):Array.isArray(me)?me.forEach(function(Le){this.append(Le[0],Le[1])},this):me&&Object.getOwnPropertyNames(me).forEach(function(Le){this.append(Le,me[Le])},this)}ne.prototype.append=function(me,Le){me=q(me),Le=Q(Le);var Ve=this.map[me];this.map[me]=Ve?Ve+", "+Le:Le},ne.prototype.delete=function(me){delete this.map[q(me)]},ne.prototype.get=function(me){return me=q(me),this.has(me)?this.map[me]:null},ne.prototype.has=function(me){return this.map.hasOwnProperty(q(me))},ne.prototype.set=function(me,Le){this.map[q(me)]=Q(Le)},ne.prototype.forEach=function(me,Le){for(var Ve in this.map)this.map.hasOwnProperty(Ve)&&me.call(Le,this.map[Ve],Ve,this)},ne.prototype.keys=function(){var me=[];return this.forEach(function(Le,Ve){me.push(Ve)}),re(me)},ne.prototype.values=function(){var me=[];return this.forEach(function(Le){me.push(Le)}),re(me)},ne.prototype.entries=function(){var me=[];return this.forEach(function(Le,Ve){me.push([Ve,Le])}),re(me)},C.iterable&&(ne.prototype[Symbol.iterator]=ne.prototype.entries);function J(me){if(me.bodyUsed)return Promise.reject(new TypeError("Already read"));me.bodyUsed=!0}function F(me){return new Promise(function(Le,Ve){me.onload=function(){Le(me.result)},me.onerror=function(){Ve(me.error)}})}function he(me){var Le=new FileReader,Ve=F(Le);return Le.readAsArrayBuffer(me),Ve}function ye(me){var Le=new FileReader,Ve=F(Le);return Le.readAsText(me),Ve}function Ie(me){for(var Le=new Uint8Array(me),Ve=new Array(Le.length),qe=0;qe<Le.length;qe++)Ve[qe]=String.fromCharCode(Le[qe]);return Ve.join("")}function de(me){if(me.slice)return me.slice(0);var Le=new Uint8Array(me.byteLength);return Le.set(new Uint8Array(me)),Le.buffer}function je(){return this.bodyUsed=!1,this._initBody=function(me){this.bodyUsed=this.bodyUsed,this._bodyInit=me,me?typeof me=="string"?this._bodyText=me:C.blob&&Blob.prototype.isPrototypeOf(me)?this._bodyBlob=me:C.formData&&FormData.prototype.isPrototypeOf(me)?this._bodyFormData=me:C.searchParams&&URLSearchParams.prototype.isPrototypeOf(me)?this._bodyText=me.toString():C.arrayBuffer&&C.blob&&A(me)?(this._bodyArrayBuffer=de(me.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):C.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(me)||L(me))?this._bodyArrayBuffer=de(me):this._bodyText=me=Object.prototype.toString.call(me):this._bodyText="",this.headers.get("content-type")||(typeof me=="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(me)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},C.blob&&(this.blob=function(){var me=J(this);if(me)return me;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 me=J(this);return me||(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(he)}),this.text=function(){var me=J(this);if(me)return me;if(this._bodyBlob)return ye(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Ie(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(ht)}),this.json=function(){return this.text().then(JSON.parse)},this}var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ue(me){var Le=me.toUpperCase();return m.indexOf(Le)>-1?Le:me}function ke(me,Le){if(!(this instanceof ke))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Le=Le||{};var Ve=Le.body;if(me instanceof ke){if(me.bodyUsed)throw new TypeError("Already read");this.url=me.url,this.credentials=me.credentials,Le.headers||(this.headers=new ne(me.headers)),this.method=me.method,this.mode=me.mode,this.signal=me.signal,!Ve&&me._bodyInit!=null&&(Ve=me._bodyInit,me.bodyUsed=!0)}else this.url=String(me);if(this.credentials=Le.credentials||this.credentials||"same-origin",(Le.headers||!this.headers)&&(this.headers=new ne(Le.headers)),this.method=Ue(Le.method||this.method||"GET"),this.mode=Le.mode||this.mode||null,this.signal=Le.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ve)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Ve),(this.method==="GET"||this.method==="HEAD")&&(Le.cache==="no-store"||Le.cache==="no-cache")){var qe=/([?&])_=[^&]*/;if(qe.test(this.url))this.url=this.url.replace(qe,"$1_="+new Date().getTime());else{var lt=/\?/;this.url+=(lt.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ke.prototype.clone=function(){return new ke(this,{body:this._bodyInit})};function ht(me){var Le=new FormData;return me.trim().split("&").forEach(function(Ve){if(Ve){var qe=Ve.split("="),lt=qe.shift().replace(/\+/g," "),Ce=qe.join("=").replace(/\+/g," ");Le.append(decodeURIComponent(lt),decodeURIComponent(Ce))}}),Le}function Et(me){var Le=new ne,Ve=me.replace(/\r?\n[\t ]+/g," ");return Ve.split("\r").map(function(qe){return qe.indexOf(`
|
|
127
|
-
`)===0?qe.substr(1,qe.length):qe}).forEach(function(qe){var lt=qe.split(":"),Ce=lt.shift().trim();if(Ce){var Pe=lt.join(":").trim();Le.append(Ce,Pe)}}),Le}je.call(ke.prototype);function vt(me,Le){if(!(this instanceof vt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Le||(Le={}),this.type="default",this.status=Le.status===void 0?200:Le.status,this.ok=this.status>=200&&this.status<300,this.statusText=Le.statusText===void 0?"":""+Le.statusText,this.headers=new ne(Le.headers),this.url=Le.url||"",this._initBody(me)}je.call(vt.prototype),vt.prototype.clone=function(){return new vt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ne(this.headers),url:this.url})},vt.error=function(){var me=new vt(null,{status:0,statusText:""});return me.type="error",me};var dt=[301,302,303,307,308];vt.redirect=function(me,Le){if(dt.indexOf(Le)===-1)throw new RangeError("Invalid status code");return new vt(null,{status:Le,headers:{location:me}})},g.DOMException=k.DOMException;try{new g.DOMException}catch{g.DOMException=function(Le,Ve){this.message=Le,this.name=Ve;var qe=Error(Le);this.stack=qe.stack},g.DOMException.prototype=Object.create(Error.prototype),g.DOMException.prototype.constructor=g.DOMException}function Ct(me,Le){return new Promise(function(Ve,qe){var lt=new ke(me,Le);if(lt.signal&<.signal.aborted)return qe(new g.DOMException("Aborted","AbortError"));var Ce=new XMLHttpRequest;function Pe(){Ce.abort()}Ce.onload=function(){var Xe={status:Ce.status,statusText:Ce.statusText,headers:Et(Ce.getAllResponseHeaders()||"")};Xe.url="responseURL"in Ce?Ce.responseURL:Xe.headers.get("X-Request-URL");var Qe="response"in Ce?Ce.response:Ce.responseText;setTimeout(function(){Ve(new vt(Qe,Xe))},0)},Ce.onerror=function(){setTimeout(function(){qe(new TypeError("Network request failed"))},0)},Ce.ontimeout=function(){setTimeout(function(){qe(new TypeError("Network request failed"))},0)},Ce.onabort=function(){setTimeout(function(){qe(new g.DOMException("Aborted","AbortError"))},0)};function Ye(Xe){try{return Xe===""&&k.location.href?k.location.href:Xe}catch{return Xe}}Ce.open(lt.method,Ye(lt.url),!0),lt.credentials==="include"?Ce.withCredentials=!0:lt.credentials==="omit"&&(Ce.withCredentials=!1),"responseType"in Ce&&(C.blob?Ce.responseType="blob":C.arrayBuffer&<.headers.get("Content-Type")&<.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Ce.responseType="arraybuffer")),Le&&typeof Le.headers=="object"&&!(Le.headers instanceof ne)?Object.getOwnPropertyNames(Le.headers).forEach(function(Xe){Ce.setRequestHeader(Xe,Q(Le.headers[Xe]))}):lt.headers.forEach(function(Xe,Qe){Ce.setRequestHeader(Qe,Xe)}),lt.signal&&(lt.signal.addEventListener("abort",Pe),Ce.onreadystatechange=function(){Ce.readyState===4&<.signal.removeEventListener("abort",Pe)}),Ce.send(typeof lt._bodyInit>"u"?null:lt._bodyInit)})}return Ct.polyfill=!0,k.fetch||(k.fetch=Ct,k.Headers=ne,k.Request=ke,k.Response=vt),g.Headers=ne,g.Request=ke,g.Response=vt,g.fetch=Ct,g})({})})(s),s.fetch.ponyfill=!0,delete s.fetch.polyfill;var o=n.fetch?n:s;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,i.exports=t}(Ec,Ec.exports)),Ec.exports}(function(i,t){var n;if(typeof fetch=="function"&&(typeof Ro<"u"&&Ro.fetch?n=Ro.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof FS<"u"&&(typeof window>"u"||typeof window.document>"u")){var s=n||NS();s.default&&(s=s.default),t.default=s,i.exports=t.default}})(Kf,Kf.exports);var hg=Kf.exports;const pg=ac(hg),fp=V0({__proto__:null,default:pg},[hg]);function dp(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function hp(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(s){BS(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function BS(i,t,n){return t=jS(t),t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}function jS(i){var t=HS(i,"string");return ol(t)=="symbol"?t:String(t)}function HS(i,t){if(ol(i)!="object"||!i)return i;var n=i[Symbol.toPrimitive];if(n!==void 0){var s=n.call(i,t||"default");if(ol(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}function ol(i){"@babel/helpers - typeof";return ol=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},ol(i)}var Fs;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Fs=global.fetch:typeof window<"u"&&window.fetch?Fs=window.fetch:Fs=fetch);var ec;dg()&&(typeof global<"u"&&global.XMLHttpRequest?ec=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ec=window.XMLHttpRequest));var Lc;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Lc=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Lc=window.ActiveXObject));!Fs&&fp&&!ec&&!Lc&&(Fs=pg||fp);typeof Fs!="function"&&(Fs=void 0);var Jf=function(t,n){if(n&&ol(n)==="object"){var s="";for(var o in n)s+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!s)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+s.slice(1)}return t},pp=function(t,n,s,o){var l=function(C){if(!C.ok)return s(C.statusText||"Error",{status:C.status});C.text().then(function(A){s(null,{status:C.status,data:A})}).catch(s)};if(o){var g=o(t,n);if(g instanceof Promise){g.then(l).catch(s);return}}typeof fetch=="function"?fetch(t,n).then(l).catch(s):Fs(t,n).then(l).catch(s)},gp=!1,US=function(t,n,s,o){t.queryStringParams&&(n=Jf(n,t.queryStringParams));var l=hp({},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&&(l["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),s&&(l["Content-Type"]="application/json");var g=typeof t.requestOptions=="function"?t.requestOptions(s):t.requestOptions,k=hp({method:s?"POST":"GET",body:s?t.stringify(s):void 0,headers:l},gp?{}:g),C=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{pp(n,k,o,C)}catch(A){if(!g||Object.keys(g).length===0||!A.message||A.message.indexOf("not implemented")<0)return o(A);try{Object.keys(g).forEach(function(U){delete k[U]}),pp(n,k,o,C),gp=!0}catch(U){o(U)}}},WS=function(t,n,s,o){s&&ol(s)==="object"&&(s=Jf("",s).slice(1)),t.queryStringParams&&(n=Jf(n,t.queryStringParams));try{var l;ec?l=new ec:l=new Lc("MSXML2.XMLHTTP.3.0"),l.open(s?"POST":"GET",n,1),t.crossDomain||l.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.withCredentials=!!t.withCredentials,s&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.overrideMimeType&&l.overrideMimeType("application/json");var g=t.customHeaders;if(g=typeof g=="function"?g():g,g)for(var k in g)l.setRequestHeader(k,g[k]);l.onreadystatechange=function(){l.readyState>3&&o(l.status>=400?l.statusText:null,{status:l.status,data:l.responseText})},l.send(s)}catch(C){console&&console.log(C)}},$S=function(t,n,s,o){if(typeof s=="function"&&(o=s,s=void 0),o=o||function(){},Fs&&n.indexOf("file:")!==0)return US(t,n,s,o);if(dg()||typeof ActiveXObject=="function")return WS(t,n,s,o);o(new Error("No fetch and no xhr implementation found!"))};function tc(i){"@babel/helpers - typeof";return tc=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},tc(i)}function vp(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function If(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(n),!0).forEach(function(s){gg(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):vp(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function zS(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function mp(i,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,vg(s.key),s)}}function YS(i,t,n){return t&&mp(i.prototype,t),n&&mp(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}function gg(i,t,n){return t=vg(t),t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}function vg(i){var t=VS(i,"string");return tc(t)=="symbol"?t:String(t)}function VS(i,t){if(tc(i)!="object"||!i)return i;var n=i[Symbol.toPrimitive];if(n!==void 0){var s=n.call(i,t||"default");if(tc(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}var GS=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,s,o){return gg({},s,o||"")},parseLoadPayload:function(n,s){},request:$S,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},mg=function(){function i(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};zS(this,i),this.services=t,this.options=n,this.allOptions=s,this.type="backend",this.init(t,n,s)}return YS(i,[{key:"init",value:function(n){var s=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=If(If(If({},GS()),this.options||{}),o),this.allOptions=l,this.services&&this.options.reloadInterval&&setInterval(function(){return s.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,s,o){this._readAny(n,n,s,s,o)}},{key:"read",value:function(n,s,o){this._readAny([n],n,[s],s,o)}},{key:"_readAny",value:function(n,s,o,l,g){var k=this,C=this.options.loadPath;typeof this.options.loadPath=="function"&&(C=this.options.loadPath(n,o)),C=MS(C),C.then(function(A){if(!A)return g(null,{});var U=k.services.interpolator.interpolate(A,{lng:n.join("+"),ns:o.join("+")});k.loadUrl(U,g,s,l)})}},{key:"loadUrl",value:function(n,s,o,l){var g=this,k=typeof o=="string"?[o]:o,C=typeof l=="string"?[l]:l,A=this.options.parseLoadPayload(k,C);this.options.request(this.options,n,A,function(U,L){if(L&&(L.status>=500&&L.status<600||!L.status))return s("failed loading "+n+"; status code: "+L.status,!0);if(L&&L.status>=400&&L.status<500)return s("failed loading "+n+"; status code: "+L.status,!1);if(!L&&U&&U.message&&U.message.indexOf("Failed to fetch")>-1)return s("failed loading "+n+": "+U.message,!0);if(U)return s(U,!1);var q,Q;try{typeof L.data=="string"?q=g.options.parse(L.data,o,l):q=L.data}catch{Q="failed parsing "+n+" to json"}if(Q)return s(Q,!1);s(null,q)})}},{key:"create",value:function(n,s,o,l,g){var k=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var C=this.options.parsePayload(s,o,l),A=0,U=[],L=[];n.forEach(function(q){var Q=k.options.addPath;typeof k.options.addPath=="function"&&(Q=k.options.addPath(q,s));var re=k.services.interpolator.interpolate(Q,{lng:q,ns:s});k.options.request(k.options,re,C,function(ne,J){A+=1,U.push(ne),L.push(J),A===n.length&&typeof g=="function"&&g(U,L)})})}}},{key:"reload",value:function(){var n=this,s=this.services,o=s.backendConnector,l=s.languageUtils,g=s.logger,k=o.language;if(!(k&&k.toLowerCase()==="cimode")){var C=[],A=function(L){var q=l.toResolveHierarchy(L);q.forEach(function(Q){C.indexOf(Q)<0&&C.push(Q)})};A(k),this.allOptions.preload&&this.allOptions.preload.forEach(function(U){return A(U)}),C.forEach(function(U){n.allOptions.ns.forEach(function(L){o.read(U,L,"read",null,null,function(q,Q){q&&g.warn("loading namespace ".concat(L," for language ").concat(U," failed"),q),!q&&Q&&g.log("loaded namespace ".concat(L," for language ").concat(U),Q),o.loaded("".concat(U,"|").concat(L),q,Q)})})})}}}]),i}();mg.type="backend";var fd=(i=>(i.en="en",i.de="de",i))(fd||{});Mr.use(fg).use(CS).use(og).init({initImmediate:!0,fallbackLng:"en",partialBundledLanguages:!0,resources:{},backend:{backends:[mg],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0}]}});function qS(){const[i,t]=Je.useState();return Je.useEffect(()=>{const n=localStorage.getItem("language");t(n||fd.en)},[]),{language:i,setLanguage:t}}const yg=Je.createContext({}),XS=()=>Je.useContext(yg),KS=Mr,JS=rg,ZS=()=>lg(),QS=({children:i})=>{const t=qS();return Hn.jsx(yg.Provider,{value:t,children:Hn.jsx(RS,{i18n:Mr,children:i})})},ex={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},tx=i=>{window.location.href=`${i}/authentication/login?callbackUrl=${window.location.href}`},nx=i=>{window.location.href=`${i}/authentication/logout?callbackUrl=${window.location.href}`};function bg(i){var t,n,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var o=i.length;for(t=0;t<o;t++)i[t]&&(n=bg(i[t]))&&(s&&(s+=" "),s+=n)}else for(n in i)i[n]&&(s&&(s+=" "),s+=n);return s}function Ls(){for(var i,t,n=0,s="",o=arguments.length;n<o;n++)(i=arguments[n])&&(t=bg(i))&&(s&&(s+=" "),s+=t);return s}const nc=i=>typeof i=="number"&&!isNaN(i),rl=i=>typeof i=="string",Io=i=>typeof i=="function",Rc=i=>rl(i)||Io(i)?i:null,Zf=i=>Je.isValidElement(i)||rl(i)||Io(i)||nc(i);function rx(i,t,n){n===void 0&&(n=300);const{scrollHeight:s,style:o}=i;requestAnimationFrame(()=>{o.minHeight="initial",o.height=s+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Uc(i){let{enter:t,exit:n,appendPosition:s=!1,collapse:o=!0,collapseDuration:l=300}=i;return function(g){let{children:k,position:C,preventExitTransition:A,done:U,nodeRef:L,isIn:q,playToast:Q}=g;const re=s?`${t}--${C}`:t,ne=s?`${n}--${C}`:n,J=Je.useRef(0);return Je.useLayoutEffect(()=>{const F=L.current,he=re.split(" "),ye=Ie=>{Ie.target===L.current&&(Q(),F.removeEventListener("animationend",ye),F.removeEventListener("animationcancel",ye),J.current===0&&Ie.type!=="animationcancel"&&F.classList.remove(...he))};F.classList.add(...he),F.addEventListener("animationend",ye),F.addEventListener("animationcancel",ye)},[]),Je.useEffect(()=>{const F=L.current,he=()=>{F.removeEventListener("animationend",he),o?rx(F,U,l):U()};q||(A?he():(J.current=1,F.className+=` ${ne}`,F.addEventListener("animationend",he)))},[q]),Je.createElement(Je.Fragment,null,k)}}function yp(i,t){return i!=null?{content:i.content,containerId:i.props.containerId,id:i.props.toastId,theme:i.props.theme,type:i.props.type,data:i.props.data||{},isLoading:i.props.isLoading,icon:i.props.icon,status:t}:{}}const Wi=new Map;let rc=[];const Qf=new Set,ix=i=>Qf.forEach(t=>t(i)),wg=()=>Wi.size>0;function Sg(i,t){var n;if(t)return!((n=Wi.get(t))==null||!n.isToastActive(i));let s=!1;return Wi.forEach(o=>{o.isToastActive(i)&&(s=!0)}),s}function xg(i,t){Zf(i)&&(wg()||rc.push({content:i,options:t}),Wi.forEach(n=>{n.buildToast(i,t)}))}function bp(i,t){Wi.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(i,t==null?void 0:t.id):n.toggle(i,t==null?void 0:t.id)})}function ox(i){const{subscribe:t,getSnapshot:n,setProps:s}=Je.useRef(function(l){const g=l.containerId||1;return{subscribe(k){const C=function(U,L,q){let Q=1,re=0,ne=[],J=[],F=[],he=L;const ye=new Map,Ie=new Set,de=()=>{F=Array.from(ye.values()),Ie.forEach(Ue=>Ue())},je=Ue=>{J=Ue==null?[]:J.filter(ke=>ke!==Ue),de()},m=Ue=>{const{toastId:ke,onOpen:ht,updateId:Et,children:vt}=Ue.props,dt=Et==null;Ue.staleId&&ye.delete(Ue.staleId),ye.set(ke,Ue),J=[...J,Ue.props.toastId].filter(Ct=>Ct!==Ue.staleId),de(),q(yp(Ue,dt?"added":"updated")),dt&&Io(ht)&&ht(Je.isValidElement(vt)&&vt.props)};return{id:U,props:he,observe:Ue=>(Ie.add(Ue),()=>Ie.delete(Ue)),toggle:(Ue,ke)=>{ye.forEach(ht=>{ke!=null&&ke!==ht.props.toastId||Io(ht.toggle)&&ht.toggle(Ue)})},removeToast:je,toasts:ye,clearQueue:()=>{re-=ne.length,ne=[]},buildToast:(Ue,ke)=>{if((Ye=>{let{containerId:Xe,toastId:Qe,updateId:Ze}=Ye;const Ke=Xe?Xe!==U:U!==1,ct=ye.has(Qe)&&Ze==null;return Ke||ct})(ke))return;const{toastId:ht,updateId:Et,data:vt,staleId:dt,delay:Ct}=ke,me=()=>{je(ht)},Le=Et==null;Le&&re++;const Ve={...he,style:he.toastStyle,key:Q++,...Object.fromEntries(Object.entries(ke).filter(Ye=>{let[Xe,Qe]=Ye;return Qe!=null})),toastId:ht,updateId:Et,data:vt,closeToast:me,isIn:!1,className:Rc(ke.className||he.toastClassName),bodyClassName:Rc(ke.bodyClassName||he.bodyClassName),progressClassName:Rc(ke.progressClassName||he.progressClassName),autoClose:!ke.isLoading&&(qe=ke.autoClose,lt=he.autoClose,qe===!1||nc(qe)&&qe>0?qe:lt),deleteToast(){const Ye=ye.get(ht),{onClose:Xe,children:Qe}=Ye.props;Io(Xe)&&Xe(Je.isValidElement(Qe)&&Qe.props),q(yp(Ye,"removed")),ye.delete(ht),re--,re<0&&(re=0),ne.length>0?m(ne.shift()):de()}};var qe,lt;Ve.closeButton=he.closeButton,ke.closeButton===!1||Zf(ke.closeButton)?Ve.closeButton=ke.closeButton:ke.closeButton===!0&&(Ve.closeButton=!Zf(he.closeButton)||he.closeButton);let Ce=Ue;Je.isValidElement(Ue)&&!rl(Ue.type)?Ce=Je.cloneElement(Ue,{closeToast:me,toastProps:Ve,data:vt}):Io(Ue)&&(Ce=Ue({closeToast:me,toastProps:Ve,data:vt}));const Pe={content:Ce,props:Ve,staleId:dt};he.limit&&he.limit>0&&re>he.limit&&Le?ne.push(Pe):nc(Ct)?setTimeout(()=>{m(Pe)},Ct):m(Pe)},setProps(Ue){he=Ue},setToggle:(Ue,ke)=>{ye.get(Ue).toggle=ke},isToastActive:Ue=>J.some(ke=>ke===Ue),getSnapshot:()=>he.newestOnTop?F.reverse():F}}(g,l,ix);Wi.set(g,C);const A=C.observe(k);return rc.forEach(U=>xg(U.content,U.options)),rc=[],()=>{A(),Wi.delete(g)}},setProps(k){var C;(C=Wi.get(g))==null||C.setProps(k)},getSnapshot(){var k;return(k=Wi.get(g))==null?void 0:k.getSnapshot()}}}(i)).current;s(i);const o=Je.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!o)return[];const g=new Map;return o.forEach(k=>{const{position:C}=k.props;g.has(C)||g.set(C,[]),g.get(C).push(k)}),Array.from(g,k=>l(k[0],k[1]))},isToastActive:Sg,count:o==null?void 0:o.length}}function ax(i){const[t,n]=Je.useState(!1),[s,o]=Je.useState(!1),l=Je.useRef(null),g=Je.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:k,pauseOnHover:C,closeToast:A,onClick:U,closeOnClick:L}=i;var q,Q;function re(){n(!0)}function ne(){n(!1)}function J(ye){const Ie=l.current;g.canDrag&&Ie&&(g.didMove=!0,t&&ne(),g.delta=i.draggableDirection==="x"?ye.clientX-g.start:ye.clientY-g.start,g.start!==ye.clientX&&(g.canCloseOnClick=!1),Ie.style.transform=`translate3d(${i.draggableDirection==="x"?`${g.delta}px, var(--y)`:`0, calc(${g.delta}px + var(--y))`},0)`,Ie.style.opacity=""+(1-Math.abs(g.delta/g.removalDistance)))}function F(){document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",F);const ye=l.current;if(g.canDrag&&g.didMove&&ye){if(g.canDrag=!1,Math.abs(g.delta)>g.removalDistance)return o(!0),i.closeToast(),void i.collapseAll();ye.style.transition="transform 0.2s, opacity 0.2s",ye.style.removeProperty("transform"),ye.style.removeProperty("opacity")}}(Q=Wi.get((q={id:i.toastId,containerId:i.containerId,fn:n}).containerId||1))==null||Q.setToggle(q.id,q.fn),Je.useEffect(()=>{if(i.pauseOnFocusLoss)return document.hasFocus()||ne(),window.addEventListener("focus",re),window.addEventListener("blur",ne),()=>{window.removeEventListener("focus",re),window.removeEventListener("blur",ne)}},[i.pauseOnFocusLoss]);const he={onPointerDown:function(ye){if(i.draggable===!0||i.draggable===ye.pointerType){g.didMove=!1,document.addEventListener("pointermove",J),document.addEventListener("pointerup",F);const Ie=l.current;g.canCloseOnClick=!0,g.canDrag=!0,Ie.style.transition="none",i.draggableDirection==="x"?(g.start=ye.clientX,g.removalDistance=Ie.offsetWidth*(i.draggablePercent/100)):(g.start=ye.clientY,g.removalDistance=Ie.offsetHeight*(i.draggablePercent===80?1.5*i.draggablePercent:i.draggablePercent)/100)}},onPointerUp:function(ye){const{top:Ie,bottom:de,left:je,right:m}=l.current.getBoundingClientRect();ye.nativeEvent.type!=="touchend"&&i.pauseOnHover&&ye.clientX>=je&&ye.clientX<=m&&ye.clientY>=Ie&&ye.clientY<=de?ne():re()}};return k&&C&&(he.onMouseEnter=ne,i.stacked||(he.onMouseLeave=re)),L&&(he.onClick=ye=>{U&&U(ye),g.canCloseOnClick&&A()}),{playToast:re,pauseToast:ne,isRunning:t,preventExitTransition:s,toastRef:l,eventHandlers:he}}function sx(i){let{delay:t,isRunning:n,closeToast:s,type:o="default",hide:l,className:g,style:k,controlledProgress:C,progress:A,rtl:U,isIn:L,theme:q}=i;const Q=l||C&&A===0,re={...k,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};C&&(re.transform=`scaleX(${A})`);const ne=Ls("Toastify__progress-bar",C?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${q}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":U}),J=Io(g)?g({rtl:U,type:o,defaultClassName:ne}):Ls(ne,g),F={[C&&A>=1?"onTransitionEnd":"onAnimationEnd"]:C&&A<1?null:()=>{L&&s()}};return Je.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":Q},Je.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${q} Toastify__progress-bar--${o}`}),Je.createElement("div",{role:"progressbar","aria-hidden":Q?"true":"false","aria-label":"notification timer",className:J,style:re,...F}))}let ux=1;const Cg=()=>""+ux++;function lx(i){return i&&(rl(i.toastId)||nc(i.toastId))?i.toastId:Cg()}function Ql(i,t){return xg(i,t),t.toastId}function Mc(i,t){return{...t,type:t&&t.type||i,toastId:lx(t)}}function kc(i){return(t,n)=>Ql(t,Mc(i,n))}function yn(i,t){return Ql(i,Mc("default",t))}yn.loading=(i,t)=>Ql(i,Mc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),yn.promise=function(i,t,n){let s,{pending:o,error:l,success:g}=t;o&&(s=rl(o)?yn.loading(o,n):yn.loading(o.render,{...n,...o}));const k={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},C=(U,L,q)=>{if(L==null)return void yn.dismiss(s);const Q={type:U,...k,...n,data:q},re=rl(L)?{render:L}:L;return s?yn.update(s,{...Q,...re}):yn(re.render,{...Q,...re}),q},A=Io(i)?i():i;return A.then(U=>C("success",g,U)).catch(U=>C("error",l,U)),A},yn.success=kc("success"),yn.info=kc("info"),yn.error=kc("error"),yn.warning=kc("warning"),yn.warn=yn.warning,yn.dark=(i,t)=>Ql(i,Mc("default",{theme:"dark",...t})),yn.dismiss=function(i){(function(t){var n;if(wg()){if(t==null||rl(n=t)||nc(n))Wi.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var s;(s=Wi.get(t.containerId))!=null&&s.removeToast(t.id)||Wi.forEach(o=>{o.removeToast(t.id)})}}else rc=rc.filter(o=>t!=null&&o.options.toastId!==t)})(i)},yn.clearWaitingQueue=function(i){i===void 0&&(i={}),Wi.forEach(t=>{!t.props.limit||i.containerId&&t.id!==i.containerId||t.clearQueue()})},yn.isActive=Sg,yn.update=function(i,t){t===void 0&&(t={});const n=((s,o)=>{var l;let{containerId:g}=o;return(l=Wi.get(g||1))==null?void 0:l.toasts.get(s)})(i,t);if(n){const{props:s,content:o}=n,l={delay:100,...s,...t,toastId:t.toastId||i,updateId:Cg()};l.toastId!==i&&(l.staleId=i);const g=l.render||o;delete l.render,Ql(g,l)}},yn.done=i=>{yn.update(i,{progress:1})},yn.onChange=function(i){return Qf.add(i),()=>{Qf.delete(i)}},yn.play=i=>bp(!0,i),yn.pause=i=>bp(!1,i);const cx=typeof window<"u"?Je.useLayoutEffect:Je.useEffect,Tc=i=>{let{theme:t,type:n,isLoading:s,...o}=i;return Je.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Of={info:function(i){return Je.createElement(Tc,{...i},Je.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(i){return Je.createElement(Tc,{...i},Je.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(i){return Je.createElement(Tc,{...i},Je.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(i){return Je.createElement(Tc,{...i},Je.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 Je.createElement("div",{className:"Toastify__spinner"})}},fx=i=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:o,playToast:l}=ax(i),{closeButton:g,children:k,autoClose:C,onClick:A,type:U,hideProgressBar:L,closeToast:q,transition:Q,position:re,className:ne,style:J,bodyClassName:F,bodyStyle:he,progressClassName:ye,progressStyle:Ie,updateId:de,role:je,progress:m,rtl:Ue,toastId:ke,deleteToast:ht,isIn:Et,isLoading:vt,closeOnClick:dt,theme:Ct}=i,me=Ls("Toastify__toast",`Toastify__toast-theme--${Ct}`,`Toastify__toast--${U}`,{"Toastify__toast--rtl":Ue},{"Toastify__toast--close-on-click":dt}),Le=Io(ne)?ne({rtl:Ue,position:re,type:U,defaultClassName:me}):Ls(me,ne),Ve=function(Pe){let{theme:Ye,type:Xe,isLoading:Qe,icon:Ze}=Pe,Ke=null;const ct={theme:Ye,type:Xe};return Ze===!1||(Io(Ze)?Ke=Ze({...ct,isLoading:Qe}):Je.isValidElement(Ze)?Ke=Je.cloneElement(Ze,ct):Qe?Ke=Of.spinner():(mt=>mt in Of)(Xe)&&(Ke=Of[Xe](ct))),Ke}(i),qe=!!m||!C,lt={closeToast:q,type:U,theme:Ct};let Ce=null;return g===!1||(Ce=Io(g)?g(lt):Je.isValidElement(g)?Je.cloneElement(g,lt):function(Pe){let{closeToast:Ye,theme:Xe,ariaLabel:Qe="close"}=Pe;return Je.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Xe}`,type:"button",onClick:Ze=>{Ze.stopPropagation(),Ye(Ze)},"aria-label":Qe},Je.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Je.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"})))}(lt)),Je.createElement(Q,{isIn:Et,done:ht,position:re,preventExitTransition:n,nodeRef:s,playToast:l},Je.createElement("div",{id:ke,onClick:A,"data-in":Et,className:Le,...o,style:J,ref:s},Je.createElement("div",{...Et&&{role:je},className:Io(F)?F({type:U}):Ls("Toastify__toast-body",F),style:he},Ve!=null&&Je.createElement("div",{className:Ls("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!vt})},Ve),Je.createElement("div",null,k)),Ce,Je.createElement(sx,{...de&&!qe?{key:`pb-${de}`}:{},rtl:Ue,theme:Ct,delay:C,isRunning:t,isIn:Et,closeToast:q,hide:L,type:U,style:Ie,className:ye,controlledProgress:qe,progress:m||0})))},Wc=function(i,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${i}-enter`,exit:`Toastify--animate Toastify__${i}-exit`,appendPosition:t}},dx=Uc(Wc("bounce",!0));Uc(Wc("slide",!0));Uc(Wc("zoom"));Uc(Wc("flip"));const hx={position:"top-right",transition:dx,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function px(i){let t={...hx,...i};const n=i.stacked,[s,o]=Je.useState(!0),l=Je.useRef(null),{getToastToRender:g,isToastActive:k,count:C}=ox(t),{className:A,style:U,rtl:L,containerId:q}=t;function Q(ne){const J=Ls("Toastify__toast-container",`Toastify__toast-container--${ne}`,{"Toastify__toast-container--rtl":L});return Io(A)?A({position:ne,rtl:L,defaultClassName:J}):Ls(J,Rc(A))}function re(){n&&(o(!0),yn.play())}return cx(()=>{if(n){var ne;const J=l.current.querySelectorAll('[data-in="true"]'),F=12,he=(ne=t.position)==null?void 0:ne.includes("top");let ye=0,Ie=0;Array.from(J).reverse().forEach((de,je)=>{const m=de;m.classList.add("Toastify__toast--stacked"),je>0&&(m.dataset.collapsed=`${s}`),m.dataset.pos||(m.dataset.pos=he?"top":"bot");const Ue=ye*(s?.2:1)+(s?0:F*je);m.style.setProperty("--y",`${he?Ue:-1*Ue}px`),m.style.setProperty("--g",`${F}`),m.style.setProperty("--s",""+(1-(s?Ie:0))),ye+=m.offsetHeight,Ie+=.025})}},[s,C,n]),Je.createElement("div",{ref:l,className:"Toastify",id:q,onMouseEnter:()=>{n&&(o(!1),yn.pause())},onMouseLeave:re},g((ne,J)=>{const F=J.length?{...U}:{...U,pointerEvents:"none"};return Je.createElement("div",{className:Q(ne),style:F,key:`container-${ne}`},J.map(he=>{let{content:ye,props:Ie}=he;return Je.createElement(fx,{...Ie,stacked:n,collapseAll:re,isIn:k(Ie.toastId,Ie.containerId),style:Ie.style,key:`toast-${Ie.key}`},ye)}))}))}function gx(){return Hn.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Hn.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"}),Hn.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Hn.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function vx(){return Hn.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Hn.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Hn.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function mx(){return Hn.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Hn.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:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Hn.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Hn.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#faad14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const dd={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},yx=({closeToast:i})=>Hn.jsx("i",{className:"material-icons",onClick:i,style:{cursor:"pointer"},children:Hn.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Hn.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"})})}),bx=i=>{yn.success(i,{icon:Hn.jsx(vx,{}),bodyStyle:{},position:"bottom-right",style:{...dd,background:du.color.primary100,borderColor:du.color.success,color:du.color.success}})},Eg=i=>{yn.error(i,{icon:Hn.jsx(gx,{}),position:"bottom-right",style:{...dd,background:"#F7E4E1",borderColor:du.color.danger,color:du.color.danger}})},wx=i=>{yn.error(i,{icon:Hn.jsx(mx,{}),position:"bottom-right",style:{...dd,background:"#FFF1B8",borderColor:"#faad14",color:du.color.textPrimary}})},Sx=i=>{yn(i,{closeButton:yx,toastId:"notify",position:"top-right",closeOnClick:!1,hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:du.color.textPrimary}})};function Fl(){return Fl=Object.assign?Object.assign.bind():function(i){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Fl.apply(this,arguments)}const xx=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"}));function kg(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,Oc(i,t)}function Df(i,t,n){if(n||arguments.length===2)for(var s=0,o=t.length,l;s<o;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return i.concat(l||Array.prototype.slice.call(t))}/*!
|
|
127
|
+
`)===0?qe.substr(1,qe.length):qe}).forEach(function(qe){var lt=qe.split(":"),Ce=lt.shift().trim();if(Ce){var Pe=lt.join(":").trim();Le.append(Ce,Pe)}}),Le}je.call(ke.prototype);function vt(me,Le){if(!(this instanceof vt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Le||(Le={}),this.type="default",this.status=Le.status===void 0?200:Le.status,this.ok=this.status>=200&&this.status<300,this.statusText=Le.statusText===void 0?"":""+Le.statusText,this.headers=new ne(Le.headers),this.url=Le.url||"",this._initBody(me)}je.call(vt.prototype),vt.prototype.clone=function(){return new vt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ne(this.headers),url:this.url})},vt.error=function(){var me=new vt(null,{status:0,statusText:""});return me.type="error",me};var dt=[301,302,303,307,308];vt.redirect=function(me,Le){if(dt.indexOf(Le)===-1)throw new RangeError("Invalid status code");return new vt(null,{status:Le,headers:{location:me}})},g.DOMException=k.DOMException;try{new g.DOMException}catch{g.DOMException=function(Le,Ve){this.message=Le,this.name=Ve;var qe=Error(Le);this.stack=qe.stack},g.DOMException.prototype=Object.create(Error.prototype),g.DOMException.prototype.constructor=g.DOMException}function Ct(me,Le){return new Promise(function(Ve,qe){var lt=new ke(me,Le);if(lt.signal&<.signal.aborted)return qe(new g.DOMException("Aborted","AbortError"));var Ce=new XMLHttpRequest;function Pe(){Ce.abort()}Ce.onload=function(){var Xe={status:Ce.status,statusText:Ce.statusText,headers:Et(Ce.getAllResponseHeaders()||"")};Xe.url="responseURL"in Ce?Ce.responseURL:Xe.headers.get("X-Request-URL");var Qe="response"in Ce?Ce.response:Ce.responseText;setTimeout(function(){Ve(new vt(Qe,Xe))},0)},Ce.onerror=function(){setTimeout(function(){qe(new TypeError("Network request failed"))},0)},Ce.ontimeout=function(){setTimeout(function(){qe(new TypeError("Network request failed"))},0)},Ce.onabort=function(){setTimeout(function(){qe(new g.DOMException("Aborted","AbortError"))},0)};function Ye(Xe){try{return Xe===""&&k.location.href?k.location.href:Xe}catch{return Xe}}Ce.open(lt.method,Ye(lt.url),!0),lt.credentials==="include"?Ce.withCredentials=!0:lt.credentials==="omit"&&(Ce.withCredentials=!1),"responseType"in Ce&&(C.blob?Ce.responseType="blob":C.arrayBuffer&<.headers.get("Content-Type")&<.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Ce.responseType="arraybuffer")),Le&&typeof Le.headers=="object"&&!(Le.headers instanceof ne)?Object.getOwnPropertyNames(Le.headers).forEach(function(Xe){Ce.setRequestHeader(Xe,Q(Le.headers[Xe]))}):lt.headers.forEach(function(Xe,Qe){Ce.setRequestHeader(Qe,Xe)}),lt.signal&&(lt.signal.addEventListener("abort",Pe),Ce.onreadystatechange=function(){Ce.readyState===4&<.signal.removeEventListener("abort",Pe)}),Ce.send(typeof lt._bodyInit>"u"?null:lt._bodyInit)})}return Ct.polyfill=!0,k.fetch||(k.fetch=Ct,k.Headers=ne,k.Request=ke,k.Response=vt),g.Headers=ne,g.Request=ke,g.Response=vt,g.fetch=Ct,g})({})})(s),s.fetch.ponyfill=!0,delete s.fetch.polyfill;var o=n.fetch?n:s;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,i.exports=t}(Ec,Ec.exports)),Ec.exports}(function(i,t){var n;if(typeof fetch=="function"&&(typeof Ro<"u"&&Ro.fetch?n=Ro.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof FS<"u"&&(typeof window>"u"||typeof window.document>"u")){var s=n||NS();s.default&&(s=s.default),t.default=s,i.exports=t.default}})(Kf,Kf.exports);var hg=Kf.exports;const pg=ac(hg),fp=V0({__proto__:null,default:pg},[hg]);function dp(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function hp(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(s){BS(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function BS(i,t,n){return t=jS(t),t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}function jS(i){var t=HS(i,"string");return ol(t)=="symbol"?t:String(t)}function HS(i,t){if(ol(i)!="object"||!i)return i;var n=i[Symbol.toPrimitive];if(n!==void 0){var s=n.call(i,t||"default");if(ol(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}function ol(i){"@babel/helpers - typeof";return ol=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},ol(i)}var Fs;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Fs=global.fetch:typeof window<"u"&&window.fetch?Fs=window.fetch:Fs=fetch);var ec;dg()&&(typeof global<"u"&&global.XMLHttpRequest?ec=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ec=window.XMLHttpRequest));var Lc;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Lc=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Lc=window.ActiveXObject));!Fs&&fp&&!ec&&!Lc&&(Fs=pg||fp);typeof Fs!="function"&&(Fs=void 0);var Jf=function(t,n){if(n&&ol(n)==="object"){var s="";for(var o in n)s+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!s)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+s.slice(1)}return t},pp=function(t,n,s,o){var l=function(C){if(!C.ok)return s(C.statusText||"Error",{status:C.status});C.text().then(function(A){s(null,{status:C.status,data:A})}).catch(s)};if(o){var g=o(t,n);if(g instanceof Promise){g.then(l).catch(s);return}}typeof fetch=="function"?fetch(t,n).then(l).catch(s):Fs(t,n).then(l).catch(s)},gp=!1,US=function(t,n,s,o){t.queryStringParams&&(n=Jf(n,t.queryStringParams));var l=hp({},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&&(l["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),s&&(l["Content-Type"]="application/json");var g=typeof t.requestOptions=="function"?t.requestOptions(s):t.requestOptions,k=hp({method:s?"POST":"GET",body:s?t.stringify(s):void 0,headers:l},gp?{}:g),C=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{pp(n,k,o,C)}catch(A){if(!g||Object.keys(g).length===0||!A.message||A.message.indexOf("not implemented")<0)return o(A);try{Object.keys(g).forEach(function(U){delete k[U]}),pp(n,k,o,C),gp=!0}catch(U){o(U)}}},WS=function(t,n,s,o){s&&ol(s)==="object"&&(s=Jf("",s).slice(1)),t.queryStringParams&&(n=Jf(n,t.queryStringParams));try{var l;ec?l=new ec:l=new Lc("MSXML2.XMLHTTP.3.0"),l.open(s?"POST":"GET",n,1),t.crossDomain||l.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.withCredentials=!!t.withCredentials,s&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.overrideMimeType&&l.overrideMimeType("application/json");var g=t.customHeaders;if(g=typeof g=="function"?g():g,g)for(var k in g)l.setRequestHeader(k,g[k]);l.onreadystatechange=function(){l.readyState>3&&o(l.status>=400?l.statusText:null,{status:l.status,data:l.responseText})},l.send(s)}catch(C){console&&console.log(C)}},$S=function(t,n,s,o){if(typeof s=="function"&&(o=s,s=void 0),o=o||function(){},Fs&&n.indexOf("file:")!==0)return US(t,n,s,o);if(dg()||typeof ActiveXObject=="function")return WS(t,n,s,o);o(new Error("No fetch and no xhr implementation found!"))};function tc(i){"@babel/helpers - typeof";return tc=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},tc(i)}function vp(i,t){var n=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),n.push.apply(n,s)}return n}function If(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(n),!0).forEach(function(s){gg(i,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)):vp(Object(n)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(n,s))})}return i}function zS(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function mp(i,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,vg(s.key),s)}}function YS(i,t,n){return t&&mp(i.prototype,t),n&&mp(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}function gg(i,t,n){return t=vg(t),t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}function vg(i){var t=VS(i,"string");return tc(t)=="symbol"?t:String(t)}function VS(i,t){if(tc(i)!="object"||!i)return i;var n=i[Symbol.toPrimitive];if(n!==void 0){var s=n.call(i,t||"default");if(tc(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}var GS=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,s,o){return gg({},s,o||"")},parseLoadPayload:function(n,s){},request:$S,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},mg=function(){function i(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};zS(this,i),this.services=t,this.options=n,this.allOptions=s,this.type="backend",this.init(t,n,s)}return YS(i,[{key:"init",value:function(n){var s=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=If(If(If({},GS()),this.options||{}),o),this.allOptions=l,this.services&&this.options.reloadInterval&&setInterval(function(){return s.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,s,o){this._readAny(n,n,s,s,o)}},{key:"read",value:function(n,s,o){this._readAny([n],n,[s],s,o)}},{key:"_readAny",value:function(n,s,o,l,g){var k=this,C=this.options.loadPath;typeof this.options.loadPath=="function"&&(C=this.options.loadPath(n,o)),C=MS(C),C.then(function(A){if(!A)return g(null,{});var U=k.services.interpolator.interpolate(A,{lng:n.join("+"),ns:o.join("+")});k.loadUrl(U,g,s,l)})}},{key:"loadUrl",value:function(n,s,o,l){var g=this,k=typeof o=="string"?[o]:o,C=typeof l=="string"?[l]:l,A=this.options.parseLoadPayload(k,C);this.options.request(this.options,n,A,function(U,L){if(L&&(L.status>=500&&L.status<600||!L.status))return s("failed loading "+n+"; status code: "+L.status,!0);if(L&&L.status>=400&&L.status<500)return s("failed loading "+n+"; status code: "+L.status,!1);if(!L&&U&&U.message&&U.message.indexOf("Failed to fetch")>-1)return s("failed loading "+n+": "+U.message,!0);if(U)return s(U,!1);var q,Q;try{typeof L.data=="string"?q=g.options.parse(L.data,o,l):q=L.data}catch{Q="failed parsing "+n+" to json"}if(Q)return s(Q,!1);s(null,q)})}},{key:"create",value:function(n,s,o,l,g){var k=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var C=this.options.parsePayload(s,o,l),A=0,U=[],L=[];n.forEach(function(q){var Q=k.options.addPath;typeof k.options.addPath=="function"&&(Q=k.options.addPath(q,s));var re=k.services.interpolator.interpolate(Q,{lng:q,ns:s});k.options.request(k.options,re,C,function(ne,J){A+=1,U.push(ne),L.push(J),A===n.length&&typeof g=="function"&&g(U,L)})})}}},{key:"reload",value:function(){var n=this,s=this.services,o=s.backendConnector,l=s.languageUtils,g=s.logger,k=o.language;if(!(k&&k.toLowerCase()==="cimode")){var C=[],A=function(L){var q=l.toResolveHierarchy(L);q.forEach(function(Q){C.indexOf(Q)<0&&C.push(Q)})};A(k),this.allOptions.preload&&this.allOptions.preload.forEach(function(U){return A(U)}),C.forEach(function(U){n.allOptions.ns.forEach(function(L){o.read(U,L,"read",null,null,function(q,Q){q&&g.warn("loading namespace ".concat(L," for language ").concat(U," failed"),q),!q&&Q&&g.log("loaded namespace ".concat(L," for language ").concat(U),Q),o.loaded("".concat(U,"|").concat(L),q,Q)})})})}}}]),i}();mg.type="backend";var fd=(i=>(i.en="en",i.de="de",i))(fd||{});const qS={en:"English",de:"German"};Mr.use(fg).use(CS).use(og).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(qS),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[mg],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0,cacheHitMode:"refresh"}]}});function XS(){const[i,t]=Je.useState();return Je.useEffect(()=>{const n=localStorage.getItem("language");t(n||fd.en)},[]),{language:i,setLanguage:t}}const yg=Je.createContext({}),KS=()=>Je.useContext(yg),JS=Mr,ZS=rg,QS=()=>lg(),ex=({children:i})=>{const t=XS();return Hn.jsx(yg.Provider,{value:t,children:Hn.jsx(RS,{i18n:Mr,children:i})})},tx={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},nx=i=>{window.location.href=`${i}/authentication/login?callbackUrl=${window.location.href}`},rx=i=>{window.location.href=`${i}/authentication/logout?callbackUrl=${window.location.href}`};function bg(i){var t,n,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var o=i.length;for(t=0;t<o;t++)i[t]&&(n=bg(i[t]))&&(s&&(s+=" "),s+=n)}else for(n in i)i[n]&&(s&&(s+=" "),s+=n);return s}function Ls(){for(var i,t,n=0,s="",o=arguments.length;n<o;n++)(i=arguments[n])&&(t=bg(i))&&(s&&(s+=" "),s+=t);return s}const nc=i=>typeof i=="number"&&!isNaN(i),rl=i=>typeof i=="string",Io=i=>typeof i=="function",Rc=i=>rl(i)||Io(i)?i:null,Zf=i=>Je.isValidElement(i)||rl(i)||Io(i)||nc(i);function ix(i,t,n){n===void 0&&(n=300);const{scrollHeight:s,style:o}=i;requestAnimationFrame(()=>{o.minHeight="initial",o.height=s+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Uc(i){let{enter:t,exit:n,appendPosition:s=!1,collapse:o=!0,collapseDuration:l=300}=i;return function(g){let{children:k,position:C,preventExitTransition:A,done:U,nodeRef:L,isIn:q,playToast:Q}=g;const re=s?`${t}--${C}`:t,ne=s?`${n}--${C}`:n,J=Je.useRef(0);return Je.useLayoutEffect(()=>{const F=L.current,he=re.split(" "),ye=Ie=>{Ie.target===L.current&&(Q(),F.removeEventListener("animationend",ye),F.removeEventListener("animationcancel",ye),J.current===0&&Ie.type!=="animationcancel"&&F.classList.remove(...he))};F.classList.add(...he),F.addEventListener("animationend",ye),F.addEventListener("animationcancel",ye)},[]),Je.useEffect(()=>{const F=L.current,he=()=>{F.removeEventListener("animationend",he),o?ix(F,U,l):U()};q||(A?he():(J.current=1,F.className+=` ${ne}`,F.addEventListener("animationend",he)))},[q]),Je.createElement(Je.Fragment,null,k)}}function yp(i,t){return i!=null?{content:i.content,containerId:i.props.containerId,id:i.props.toastId,theme:i.props.theme,type:i.props.type,data:i.props.data||{},isLoading:i.props.isLoading,icon:i.props.icon,status:t}:{}}const Wi=new Map;let rc=[];const Qf=new Set,ox=i=>Qf.forEach(t=>t(i)),wg=()=>Wi.size>0;function Sg(i,t){var n;if(t)return!((n=Wi.get(t))==null||!n.isToastActive(i));let s=!1;return Wi.forEach(o=>{o.isToastActive(i)&&(s=!0)}),s}function xg(i,t){Zf(i)&&(wg()||rc.push({content:i,options:t}),Wi.forEach(n=>{n.buildToast(i,t)}))}function bp(i,t){Wi.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(i,t==null?void 0:t.id):n.toggle(i,t==null?void 0:t.id)})}function ax(i){const{subscribe:t,getSnapshot:n,setProps:s}=Je.useRef(function(l){const g=l.containerId||1;return{subscribe(k){const C=function(U,L,q){let Q=1,re=0,ne=[],J=[],F=[],he=L;const ye=new Map,Ie=new Set,de=()=>{F=Array.from(ye.values()),Ie.forEach(Ue=>Ue())},je=Ue=>{J=Ue==null?[]:J.filter(ke=>ke!==Ue),de()},m=Ue=>{const{toastId:ke,onOpen:ht,updateId:Et,children:vt}=Ue.props,dt=Et==null;Ue.staleId&&ye.delete(Ue.staleId),ye.set(ke,Ue),J=[...J,Ue.props.toastId].filter(Ct=>Ct!==Ue.staleId),de(),q(yp(Ue,dt?"added":"updated")),dt&&Io(ht)&&ht(Je.isValidElement(vt)&&vt.props)};return{id:U,props:he,observe:Ue=>(Ie.add(Ue),()=>Ie.delete(Ue)),toggle:(Ue,ke)=>{ye.forEach(ht=>{ke!=null&&ke!==ht.props.toastId||Io(ht.toggle)&&ht.toggle(Ue)})},removeToast:je,toasts:ye,clearQueue:()=>{re-=ne.length,ne=[]},buildToast:(Ue,ke)=>{if((Ye=>{let{containerId:Xe,toastId:Qe,updateId:Ze}=Ye;const Ke=Xe?Xe!==U:U!==1,ct=ye.has(Qe)&&Ze==null;return Ke||ct})(ke))return;const{toastId:ht,updateId:Et,data:vt,staleId:dt,delay:Ct}=ke,me=()=>{je(ht)},Le=Et==null;Le&&re++;const Ve={...he,style:he.toastStyle,key:Q++,...Object.fromEntries(Object.entries(ke).filter(Ye=>{let[Xe,Qe]=Ye;return Qe!=null})),toastId:ht,updateId:Et,data:vt,closeToast:me,isIn:!1,className:Rc(ke.className||he.toastClassName),bodyClassName:Rc(ke.bodyClassName||he.bodyClassName),progressClassName:Rc(ke.progressClassName||he.progressClassName),autoClose:!ke.isLoading&&(qe=ke.autoClose,lt=he.autoClose,qe===!1||nc(qe)&&qe>0?qe:lt),deleteToast(){const Ye=ye.get(ht),{onClose:Xe,children:Qe}=Ye.props;Io(Xe)&&Xe(Je.isValidElement(Qe)&&Qe.props),q(yp(Ye,"removed")),ye.delete(ht),re--,re<0&&(re=0),ne.length>0?m(ne.shift()):de()}};var qe,lt;Ve.closeButton=he.closeButton,ke.closeButton===!1||Zf(ke.closeButton)?Ve.closeButton=ke.closeButton:ke.closeButton===!0&&(Ve.closeButton=!Zf(he.closeButton)||he.closeButton);let Ce=Ue;Je.isValidElement(Ue)&&!rl(Ue.type)?Ce=Je.cloneElement(Ue,{closeToast:me,toastProps:Ve,data:vt}):Io(Ue)&&(Ce=Ue({closeToast:me,toastProps:Ve,data:vt}));const Pe={content:Ce,props:Ve,staleId:dt};he.limit&&he.limit>0&&re>he.limit&&Le?ne.push(Pe):nc(Ct)?setTimeout(()=>{m(Pe)},Ct):m(Pe)},setProps(Ue){he=Ue},setToggle:(Ue,ke)=>{ye.get(Ue).toggle=ke},isToastActive:Ue=>J.some(ke=>ke===Ue),getSnapshot:()=>he.newestOnTop?F.reverse():F}}(g,l,ox);Wi.set(g,C);const A=C.observe(k);return rc.forEach(U=>xg(U.content,U.options)),rc=[],()=>{A(),Wi.delete(g)}},setProps(k){var C;(C=Wi.get(g))==null||C.setProps(k)},getSnapshot(){var k;return(k=Wi.get(g))==null?void 0:k.getSnapshot()}}}(i)).current;s(i);const o=Je.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!o)return[];const g=new Map;return o.forEach(k=>{const{position:C}=k.props;g.has(C)||g.set(C,[]),g.get(C).push(k)}),Array.from(g,k=>l(k[0],k[1]))},isToastActive:Sg,count:o==null?void 0:o.length}}function sx(i){const[t,n]=Je.useState(!1),[s,o]=Je.useState(!1),l=Je.useRef(null),g=Je.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:k,pauseOnHover:C,closeToast:A,onClick:U,closeOnClick:L}=i;var q,Q;function re(){n(!0)}function ne(){n(!1)}function J(ye){const Ie=l.current;g.canDrag&&Ie&&(g.didMove=!0,t&&ne(),g.delta=i.draggableDirection==="x"?ye.clientX-g.start:ye.clientY-g.start,g.start!==ye.clientX&&(g.canCloseOnClick=!1),Ie.style.transform=`translate3d(${i.draggableDirection==="x"?`${g.delta}px, var(--y)`:`0, calc(${g.delta}px + var(--y))`},0)`,Ie.style.opacity=""+(1-Math.abs(g.delta/g.removalDistance)))}function F(){document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",F);const ye=l.current;if(g.canDrag&&g.didMove&&ye){if(g.canDrag=!1,Math.abs(g.delta)>g.removalDistance)return o(!0),i.closeToast(),void i.collapseAll();ye.style.transition="transform 0.2s, opacity 0.2s",ye.style.removeProperty("transform"),ye.style.removeProperty("opacity")}}(Q=Wi.get((q={id:i.toastId,containerId:i.containerId,fn:n}).containerId||1))==null||Q.setToggle(q.id,q.fn),Je.useEffect(()=>{if(i.pauseOnFocusLoss)return document.hasFocus()||ne(),window.addEventListener("focus",re),window.addEventListener("blur",ne),()=>{window.removeEventListener("focus",re),window.removeEventListener("blur",ne)}},[i.pauseOnFocusLoss]);const he={onPointerDown:function(ye){if(i.draggable===!0||i.draggable===ye.pointerType){g.didMove=!1,document.addEventListener("pointermove",J),document.addEventListener("pointerup",F);const Ie=l.current;g.canCloseOnClick=!0,g.canDrag=!0,Ie.style.transition="none",i.draggableDirection==="x"?(g.start=ye.clientX,g.removalDistance=Ie.offsetWidth*(i.draggablePercent/100)):(g.start=ye.clientY,g.removalDistance=Ie.offsetHeight*(i.draggablePercent===80?1.5*i.draggablePercent:i.draggablePercent)/100)}},onPointerUp:function(ye){const{top:Ie,bottom:de,left:je,right:m}=l.current.getBoundingClientRect();ye.nativeEvent.type!=="touchend"&&i.pauseOnHover&&ye.clientX>=je&&ye.clientX<=m&&ye.clientY>=Ie&&ye.clientY<=de?ne():re()}};return k&&C&&(he.onMouseEnter=ne,i.stacked||(he.onMouseLeave=re)),L&&(he.onClick=ye=>{U&&U(ye),g.canCloseOnClick&&A()}),{playToast:re,pauseToast:ne,isRunning:t,preventExitTransition:s,toastRef:l,eventHandlers:he}}function ux(i){let{delay:t,isRunning:n,closeToast:s,type:o="default",hide:l,className:g,style:k,controlledProgress:C,progress:A,rtl:U,isIn:L,theme:q}=i;const Q=l||C&&A===0,re={...k,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};C&&(re.transform=`scaleX(${A})`);const ne=Ls("Toastify__progress-bar",C?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${q}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":U}),J=Io(g)?g({rtl:U,type:o,defaultClassName:ne}):Ls(ne,g),F={[C&&A>=1?"onTransitionEnd":"onAnimationEnd"]:C&&A<1?null:()=>{L&&s()}};return Je.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":Q},Je.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${q} Toastify__progress-bar--${o}`}),Je.createElement("div",{role:"progressbar","aria-hidden":Q?"true":"false","aria-label":"notification timer",className:J,style:re,...F}))}let lx=1;const Cg=()=>""+lx++;function cx(i){return i&&(rl(i.toastId)||nc(i.toastId))?i.toastId:Cg()}function Ql(i,t){return xg(i,t),t.toastId}function Mc(i,t){return{...t,type:t&&t.type||i,toastId:cx(t)}}function kc(i){return(t,n)=>Ql(t,Mc(i,n))}function yn(i,t){return Ql(i,Mc("default",t))}yn.loading=(i,t)=>Ql(i,Mc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),yn.promise=function(i,t,n){let s,{pending:o,error:l,success:g}=t;o&&(s=rl(o)?yn.loading(o,n):yn.loading(o.render,{...n,...o}));const k={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},C=(U,L,q)=>{if(L==null)return void yn.dismiss(s);const Q={type:U,...k,...n,data:q},re=rl(L)?{render:L}:L;return s?yn.update(s,{...Q,...re}):yn(re.render,{...Q,...re}),q},A=Io(i)?i():i;return A.then(U=>C("success",g,U)).catch(U=>C("error",l,U)),A},yn.success=kc("success"),yn.info=kc("info"),yn.error=kc("error"),yn.warning=kc("warning"),yn.warn=yn.warning,yn.dark=(i,t)=>Ql(i,Mc("default",{theme:"dark",...t})),yn.dismiss=function(i){(function(t){var n;if(wg()){if(t==null||rl(n=t)||nc(n))Wi.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var s;(s=Wi.get(t.containerId))!=null&&s.removeToast(t.id)||Wi.forEach(o=>{o.removeToast(t.id)})}}else rc=rc.filter(o=>t!=null&&o.options.toastId!==t)})(i)},yn.clearWaitingQueue=function(i){i===void 0&&(i={}),Wi.forEach(t=>{!t.props.limit||i.containerId&&t.id!==i.containerId||t.clearQueue()})},yn.isActive=Sg,yn.update=function(i,t){t===void 0&&(t={});const n=((s,o)=>{var l;let{containerId:g}=o;return(l=Wi.get(g||1))==null?void 0:l.toasts.get(s)})(i,t);if(n){const{props:s,content:o}=n,l={delay:100,...s,...t,toastId:t.toastId||i,updateId:Cg()};l.toastId!==i&&(l.staleId=i);const g=l.render||o;delete l.render,Ql(g,l)}},yn.done=i=>{yn.update(i,{progress:1})},yn.onChange=function(i){return Qf.add(i),()=>{Qf.delete(i)}},yn.play=i=>bp(!0,i),yn.pause=i=>bp(!1,i);const fx=typeof window<"u"?Je.useLayoutEffect:Je.useEffect,Tc=i=>{let{theme:t,type:n,isLoading:s,...o}=i;return Je.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Of={info:function(i){return Je.createElement(Tc,{...i},Je.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(i){return Je.createElement(Tc,{...i},Je.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(i){return Je.createElement(Tc,{...i},Je.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(i){return Je.createElement(Tc,{...i},Je.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 Je.createElement("div",{className:"Toastify__spinner"})}},dx=i=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:o,playToast:l}=sx(i),{closeButton:g,children:k,autoClose:C,onClick:A,type:U,hideProgressBar:L,closeToast:q,transition:Q,position:re,className:ne,style:J,bodyClassName:F,bodyStyle:he,progressClassName:ye,progressStyle:Ie,updateId:de,role:je,progress:m,rtl:Ue,toastId:ke,deleteToast:ht,isIn:Et,isLoading:vt,closeOnClick:dt,theme:Ct}=i,me=Ls("Toastify__toast",`Toastify__toast-theme--${Ct}`,`Toastify__toast--${U}`,{"Toastify__toast--rtl":Ue},{"Toastify__toast--close-on-click":dt}),Le=Io(ne)?ne({rtl:Ue,position:re,type:U,defaultClassName:me}):Ls(me,ne),Ve=function(Pe){let{theme:Ye,type:Xe,isLoading:Qe,icon:Ze}=Pe,Ke=null;const ct={theme:Ye,type:Xe};return Ze===!1||(Io(Ze)?Ke=Ze({...ct,isLoading:Qe}):Je.isValidElement(Ze)?Ke=Je.cloneElement(Ze,ct):Qe?Ke=Of.spinner():(mt=>mt in Of)(Xe)&&(Ke=Of[Xe](ct))),Ke}(i),qe=!!m||!C,lt={closeToast:q,type:U,theme:Ct};let Ce=null;return g===!1||(Ce=Io(g)?g(lt):Je.isValidElement(g)?Je.cloneElement(g,lt):function(Pe){let{closeToast:Ye,theme:Xe,ariaLabel:Qe="close"}=Pe;return Je.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Xe}`,type:"button",onClick:Ze=>{Ze.stopPropagation(),Ye(Ze)},"aria-label":Qe},Je.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Je.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"})))}(lt)),Je.createElement(Q,{isIn:Et,done:ht,position:re,preventExitTransition:n,nodeRef:s,playToast:l},Je.createElement("div",{id:ke,onClick:A,"data-in":Et,className:Le,...o,style:J,ref:s},Je.createElement("div",{...Et&&{role:je},className:Io(F)?F({type:U}):Ls("Toastify__toast-body",F),style:he},Ve!=null&&Je.createElement("div",{className:Ls("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!vt})},Ve),Je.createElement("div",null,k)),Ce,Je.createElement(ux,{...de&&!qe?{key:`pb-${de}`}:{},rtl:Ue,theme:Ct,delay:C,isRunning:t,isIn:Et,closeToast:q,hide:L,type:U,style:Ie,className:ye,controlledProgress:qe,progress:m||0})))},Wc=function(i,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${i}-enter`,exit:`Toastify--animate Toastify__${i}-exit`,appendPosition:t}},hx=Uc(Wc("bounce",!0));Uc(Wc("slide",!0));Uc(Wc("zoom"));Uc(Wc("flip"));const px={position:"top-right",transition:hx,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function gx(i){let t={...px,...i};const n=i.stacked,[s,o]=Je.useState(!0),l=Je.useRef(null),{getToastToRender:g,isToastActive:k,count:C}=ax(t),{className:A,style:U,rtl:L,containerId:q}=t;function Q(ne){const J=Ls("Toastify__toast-container",`Toastify__toast-container--${ne}`,{"Toastify__toast-container--rtl":L});return Io(A)?A({position:ne,rtl:L,defaultClassName:J}):Ls(J,Rc(A))}function re(){n&&(o(!0),yn.play())}return fx(()=>{if(n){var ne;const J=l.current.querySelectorAll('[data-in="true"]'),F=12,he=(ne=t.position)==null?void 0:ne.includes("top");let ye=0,Ie=0;Array.from(J).reverse().forEach((de,je)=>{const m=de;m.classList.add("Toastify__toast--stacked"),je>0&&(m.dataset.collapsed=`${s}`),m.dataset.pos||(m.dataset.pos=he?"top":"bot");const Ue=ye*(s?.2:1)+(s?0:F*je);m.style.setProperty("--y",`${he?Ue:-1*Ue}px`),m.style.setProperty("--g",`${F}`),m.style.setProperty("--s",""+(1-(s?Ie:0))),ye+=m.offsetHeight,Ie+=.025})}},[s,C,n]),Je.createElement("div",{ref:l,className:"Toastify",id:q,onMouseEnter:()=>{n&&(o(!1),yn.pause())},onMouseLeave:re},g((ne,J)=>{const F=J.length?{...U}:{...U,pointerEvents:"none"};return Je.createElement("div",{className:Q(ne),style:F,key:`container-${ne}`},J.map(he=>{let{content:ye,props:Ie}=he;return Je.createElement(dx,{...Ie,stacked:n,collapseAll:re,isIn:k(Ie.toastId,Ie.containerId),style:Ie.style,key:`toast-${Ie.key}`},ye)}))}))}function vx(){return Hn.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Hn.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"}),Hn.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Hn.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function mx(){return Hn.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Hn.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Hn.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function yx(){return Hn.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Hn.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:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Hn.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Hn.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#faad14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const dd={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},bx=({closeToast:i})=>Hn.jsx("i",{className:"material-icons",onClick:i,style:{cursor:"pointer"},children:Hn.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Hn.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"})})}),wx=i=>{yn.success(i,{icon:Hn.jsx(mx,{}),bodyStyle:{},position:"bottom-right",style:{...dd,background:du.color.primary100,borderColor:du.color.success,color:du.color.success}})},Eg=i=>{yn.error(i,{icon:Hn.jsx(vx,{}),position:"bottom-right",style:{...dd,background:"#F7E4E1",borderColor:du.color.danger,color:du.color.danger}})},Sx=i=>{yn.error(i,{icon:Hn.jsx(yx,{}),position:"bottom-right",style:{...dd,background:"#FFF1B8",borderColor:"#faad14",color:du.color.textPrimary}})},xx=i=>{yn(i,{closeButton:bx,toastId:"notify",position:"top-right",closeOnClick:!1,hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:du.color.textPrimary}})};function Fl(){return Fl=Object.assign?Object.assign.bind():function(i){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Fl.apply(this,arguments)}const Cx=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"}));function kg(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,Oc(i,t)}function Df(i,t,n){if(n||arguments.length===2)for(var s=0,o=t.length,l;s<o;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return i.concat(l||Array.prototype.slice.call(t))}/*!
|
|
128
128
|
* content-type
|
|
129
129
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
130
130
|
* MIT Licensed
|
|
131
|
-
*/var wp=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Cx=/\\([\u000b\u0020-\u00ff])/g,Ex=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,kx=Tx;function Tx(i){if(!i)throw new TypeError("argument string is required");var t=typeof i=="object"?_x(i):i;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),s=n!==-1?t.slice(0,n).trim():t.trim();if(!Ex.test(s))throw new TypeError("invalid media type");var o=new Rx(s.toLowerCase());if(n!==-1){var l,g,k;for(wp.lastIndex=n;g=wp.exec(t);){if(g.index!==n)throw new TypeError("invalid parameter format");n+=g[0].length,l=g[1].toLowerCase(),k=g[2],k.charCodeAt(0)===34&&(k=k.slice(1,-1),k.indexOf("\\")!==-1&&(k=k.replace(Cx,"$1"))),o.parameters[l]=k}if(n!==t.length)throw new TypeError("invalid parameter format")}return o}function _x(i){var t;if(typeof i.getHeader=="function"?t=i.getHeader("content-type"):typeof i.headers=="object"&&(t=i.headers&&i.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function Rx(i){this.parameters=Object.create(null),this.type=i}var Ml=new Map,Tg=function(t){return t.cloneNode(!0)},Sp=function(){return window.location.protocol==="file:"},_g=function(t,n,s){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var l=o.getResponseHeader("Content-Type");if(!l)throw new Error("Content type not found");var g=kx(l).type;if(!(g==="image/svg+xml"||g==="text/plain"))throw new Error("Invalid content type: ".concat(g))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error(Sp()?"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(o.status===200||Sp()&&o.status===0)s(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(k){if(o.abort(),k instanceof Error)s(k,o);else throw k}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},fu={},xp=function(t,n){fu[t]=fu[t]||[],fu[t].push(n)},Ix=function(t){for(var n=function(g,k){setTimeout(function(){if(Array.isArray(fu[t])){var C=Ml.get(t),A=fu[t][g];C instanceof SVGSVGElement&&A(null,Tg(C)),C instanceof Error&&A(C),g===fu[t].length-1&&delete fu[t]}},0)},s=0,o=fu[t].length;s<o;s++)n(s)},Ox=function(t,n,s){if(Ml.has(t)){var o=Ml.get(t);if(o===void 0){xp(t,s);return}if(o instanceof SVGSVGElement){s(null,Tg(o));return}}Ml.set(t,void 0),xp(t,s),_g(t,n,function(l,g){var k;l?Ml.set(t,l):((k=g.responseXML)===null||k===void 0?void 0:k.documentElement)instanceof SVGSVGElement&&Ml.set(t,g.responseXML.documentElement),Ix(t)})},Dx=function(t,n,s){_g(t,n,function(o,l){var g;o?s(o):((g=l.responseXML)===null||g===void 0?void 0:g.documentElement)instanceof SVGSVGElement&&s(null,l.responseXML.documentElement)})},Ax=0,Px=function(){return++Ax},Ga=[],Cp={},Lx="http://www.w3.org/2000/svg",Af="http://www.w3.org/1999/xlink",Ep=function(t,n,s,o,l,g,k){var C=t.getAttribute("data-src")||t.getAttribute("src");if(!C){k(new Error("Invalid data-src or src attribute"));return}if(Ga.indexOf(t)!==-1){Ga.splice(Ga.indexOf(t),1),t=null;return}Ga.push(t),t.setAttribute("src","");var A=o?Ox:Dx;A(C,l,function(U,L){if(!L){Ga.splice(Ga.indexOf(t),1),t=null,k(U);return}var q=t.getAttribute("id");q&&L.setAttribute("id",q);var Q=t.getAttribute("title");Q&&L.setAttribute("title",Q);var re=t.getAttribute("width");re&&L.setAttribute("width",re);var ne=t.getAttribute("height");ne&&L.setAttribute("height",ne);var J=Array.from(new Set(Df(Df(Df([],(L.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();L.setAttribute("class",J);var F=t.getAttribute("style");F&&L.setAttribute("style",F),L.setAttribute("data-src",C);var he=[].filter.call(t.attributes,function(qe){return/^data-\w[\w-]*$/.test(qe.name)});if(Array.prototype.forEach.call(he,function(qe){qe.name&&qe.value&&L.setAttribute(qe.name,qe.value)}),s){var ye={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"]},Ie,de,je,m,Ue;Object.keys(ye).forEach(function(qe){Ie=qe,je=ye[qe],de=L.querySelectorAll(Ie+"[id]");for(var lt=function(Xe,Qe){m=de[Xe].id,Ue=m+"-"+Px();var Ze;Array.prototype.forEach.call(je,function(Ft){Ze=L.querySelectorAll("["+Ft+'*="'+m+'"]');for(var Bt=0,Un=Ze.length;Bt<Un;Bt++){var ur=Ze[Bt].getAttribute(Ft);ur&&!ur.match(new RegExp('url\\("?#'+m+'"?\\)'))||Ze[Bt].setAttribute(Ft,"url(#"+Ue+")")}});for(var Ke=L.querySelectorAll("[*|href]"),ct=[],mt=0,wt=Ke.length;mt<wt;mt++){var gt=Ke[mt].getAttributeNS(Af,"href");gt&>.toString()==="#"+de[Xe].id&&ct.push(Ke[mt])}for(var Tt=0,Ge=ct.length;Tt<Ge;Tt++)ct[Tt].setAttributeNS(Af,"href","#"+Ue);de[Xe].id=Ue},Ce=0,Pe=de.length;Ce<Pe;Ce++)lt(Ce)})}L.removeAttribute("xmlns:a");for(var ke=L.querySelectorAll("script"),ht=[],Et,vt,dt=0,Ct=ke.length;dt<Ct;dt++)vt=ke[dt].getAttribute("type"),(!vt||vt==="application/ecmascript"||vt==="application/javascript"||vt==="text/javascript")&&(Et=ke[dt].innerText||ke[dt].textContent,Et&&ht.push(Et),L.removeChild(ke[dt]));if(ht.length>0&&(n==="always"||n==="once"&&!Cp[C])){for(var me=0,Le=ht.length;me<Le;me++)new Function(ht[me])(window);Cp[C]=!0}var Ve=L.querySelectorAll("style");if(Array.prototype.forEach.call(Ve,function(qe){qe.textContent+=""}),L.setAttribute("xmlns",Lx),L.setAttribute("xmlns:xlink",Af),g(L),!t.parentNode){Ga.splice(Ga.indexOf(t),1),t=null,k(new Error("Parent node is null"));return}t.parentNode.replaceChild(L,t),Ga.splice(Ga.indexOf(t),1),t=null,k(null,L)})},Mx=function(t,n){var s=n===void 0?{}:n,o=s.afterAll,l=o===void 0?function(){}:o,g=s.afterEach,k=g===void 0?function(){}:g,C=s.beforeEach,A=C===void 0?function(){}:C,U=s.cacheRequests,L=U===void 0?!0:U,q=s.evalScripts,Q=q===void 0?"never":q,re=s.httpRequestWithCredentials,ne=re===void 0?!1:re,J=s.renumerateIRIElements,F=J===void 0?!0:J;if(t&&"length"in t)for(var he=0,ye=0,Ie=t.length;ye<Ie;ye++)Ep(t[ye],Q,F,L,ne,A,function(de,je){k(de,je),t&&"length"in t&&t.length===++he&&l(he)});else t?Ep(t,Q,F,L,ne,A,function(de,je){k(de,je),l(1),t=null}):l(0)},Fx=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},Nx=function(t,n){for(var s in t)if(!(s in n))return!0;for(var o in n)if(t[o]!==n[o])return!0;return!1},Bx=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],_c="http://www.w3.org/2000/svg",kp="http://www.w3.org/1999/xlink",hd=function(i){kg(t,i);function t(){for(var s,o=arguments.length,l=new Array(o),g=0;g<o;g++)l[g]=arguments[g];return s=i.call.apply(i,[this].concat(l))||this,s.initialState={hasError:!1,isLoading:!0},s.state=s.initialState,s._isMounted=!1,s.reactWrapper=void 0,s.nonReactWrapper=void 0,s.refCallback=function(k){s.reactWrapper=k},s}var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof Fx(this.reactWrapper).Node){var l=this.props,g=l.desc,k=l.evalScripts,C=l.httpRequestWithCredentials,A=l.renumerateIRIElements,U=l.src,L=l.title,q=l.useRequestCache,Q=this.props.onError,re=this.props.beforeInjection,ne=this.props.afterInjection,J=this.props.wrapper,F,he;J==="svg"?(F=document.createElementNS(_c,J),F.setAttribute("xmlns",_c),F.setAttribute("xmlns:xlink",kp),he=document.createElementNS(_c,J)):(F=document.createElement(J),he=document.createElement(J)),F.appendChild(he),he.dataset.src=U,this.nonReactWrapper=this.reactWrapper.appendChild(F);var ye=function(m){if(o.removeSVG(),!o._isMounted){Q(m);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){Q(m)})},Ie=function(m,Ue){if(m){ye(m);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{ne(Ue)}catch(ke){ye(ke)}})},de=function(m){if(m.setAttribute("role","img"),g){var Ue=m.querySelector(":scope > desc");Ue&&m.removeChild(Ue);var ke=document.createElement("desc");ke.innerHTML=g,m.prepend(ke)}if(L){var ht=m.querySelector(":scope > title");ht&&m.removeChild(ht);var Et=document.createElement("title");Et.innerHTML=L,m.prepend(Et)}try{re(m)}catch(vt){ye(vt)}};Mx(he,{afterEach:Ie,beforeEach:de,cacheRequests:q,evalScripts:k,httpRequestWithCredentials:C,renumerateIRIElements:A})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var l=this;Nx(Fl({},o),this.props)&&this.setState(function(){return l.initialState},function(){l.removeSVG(),l.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var l=o.fallback;o.httpRequestWithCredentials;var g=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var k=o.wrapper,C=cd(o,Bx),A=k;return tl.createElement(A,Fl({},C,{ref:this.refCallback},k==="svg"?{xmlns:_c,xmlnsXlink:kp}:{}),this.state.isLoading&&g&&tl.createElement(g,null),this.state.hasError&&l&&tl.createElement(l,null))},t}(tl.Component);hd.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};hd.propTypes={afterInjection:vr.func,beforeInjection:vr.func,desc:vr.string,evalScripts:vr.oneOf(["always","once","never"]),fallback:vr.oneOfType([vr.func,vr.object,vr.string]),httpRequestWithCredentials:vr.bool,loading:vr.oneOfType([vr.func,vr.object,vr.string]),onError:vr.func,renumerateIRIElements:vr.bool,src:vr.string.isRequired,title:vr.string,useRequestCache:vr.bool,wrapper:vr.oneOf(["div","span","svg"])};const jx={"page-container":"_page-container_6iqty_1","page-main-content":"_page-main-content_6iqty_8","page-title":"_page-title_6iqty_19","text-base":"_text-base_6iqty_25","mt-4":"_mt-4_6iqty_32"};var Fc={exports:{}};/**
|
|
131
|
+
*/var wp=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Ex=/\\([\u000b\u0020-\u00ff])/g,kx=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Tx=_x;function _x(i){if(!i)throw new TypeError("argument string is required");var t=typeof i=="object"?Rx(i):i;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),s=n!==-1?t.slice(0,n).trim():t.trim();if(!kx.test(s))throw new TypeError("invalid media type");var o=new Ix(s.toLowerCase());if(n!==-1){var l,g,k;for(wp.lastIndex=n;g=wp.exec(t);){if(g.index!==n)throw new TypeError("invalid parameter format");n+=g[0].length,l=g[1].toLowerCase(),k=g[2],k.charCodeAt(0)===34&&(k=k.slice(1,-1),k.indexOf("\\")!==-1&&(k=k.replace(Ex,"$1"))),o.parameters[l]=k}if(n!==t.length)throw new TypeError("invalid parameter format")}return o}function Rx(i){var t;if(typeof i.getHeader=="function"?t=i.getHeader("content-type"):typeof i.headers=="object"&&(t=i.headers&&i.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function Ix(i){this.parameters=Object.create(null),this.type=i}var Ml=new Map,Tg=function(t){return t.cloneNode(!0)},Sp=function(){return window.location.protocol==="file:"},_g=function(t,n,s){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var l=o.getResponseHeader("Content-Type");if(!l)throw new Error("Content type not found");var g=Tx(l).type;if(!(g==="image/svg+xml"||g==="text/plain"))throw new Error("Invalid content type: ".concat(g))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error(Sp()?"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(o.status===200||Sp()&&o.status===0)s(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(k){if(o.abort(),k instanceof Error)s(k,o);else throw k}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},fu={},xp=function(t,n){fu[t]=fu[t]||[],fu[t].push(n)},Ox=function(t){for(var n=function(g,k){setTimeout(function(){if(Array.isArray(fu[t])){var C=Ml.get(t),A=fu[t][g];C instanceof SVGSVGElement&&A(null,Tg(C)),C instanceof Error&&A(C),g===fu[t].length-1&&delete fu[t]}},0)},s=0,o=fu[t].length;s<o;s++)n(s)},Dx=function(t,n,s){if(Ml.has(t)){var o=Ml.get(t);if(o===void 0){xp(t,s);return}if(o instanceof SVGSVGElement){s(null,Tg(o));return}}Ml.set(t,void 0),xp(t,s),_g(t,n,function(l,g){var k;l?Ml.set(t,l):((k=g.responseXML)===null||k===void 0?void 0:k.documentElement)instanceof SVGSVGElement&&Ml.set(t,g.responseXML.documentElement),Ox(t)})},Ax=function(t,n,s){_g(t,n,function(o,l){var g;o?s(o):((g=l.responseXML)===null||g===void 0?void 0:g.documentElement)instanceof SVGSVGElement&&s(null,l.responseXML.documentElement)})},Px=0,Lx=function(){return++Px},Ga=[],Cp={},Mx="http://www.w3.org/2000/svg",Af="http://www.w3.org/1999/xlink",Ep=function(t,n,s,o,l,g,k){var C=t.getAttribute("data-src")||t.getAttribute("src");if(!C){k(new Error("Invalid data-src or src attribute"));return}if(Ga.indexOf(t)!==-1){Ga.splice(Ga.indexOf(t),1),t=null;return}Ga.push(t),t.setAttribute("src","");var A=o?Dx:Ax;A(C,l,function(U,L){if(!L){Ga.splice(Ga.indexOf(t),1),t=null,k(U);return}var q=t.getAttribute("id");q&&L.setAttribute("id",q);var Q=t.getAttribute("title");Q&&L.setAttribute("title",Q);var re=t.getAttribute("width");re&&L.setAttribute("width",re);var ne=t.getAttribute("height");ne&&L.setAttribute("height",ne);var J=Array.from(new Set(Df(Df(Df([],(L.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();L.setAttribute("class",J);var F=t.getAttribute("style");F&&L.setAttribute("style",F),L.setAttribute("data-src",C);var he=[].filter.call(t.attributes,function(qe){return/^data-\w[\w-]*$/.test(qe.name)});if(Array.prototype.forEach.call(he,function(qe){qe.name&&qe.value&&L.setAttribute(qe.name,qe.value)}),s){var ye={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"]},Ie,de,je,m,Ue;Object.keys(ye).forEach(function(qe){Ie=qe,je=ye[qe],de=L.querySelectorAll(Ie+"[id]");for(var lt=function(Xe,Qe){m=de[Xe].id,Ue=m+"-"+Lx();var Ze;Array.prototype.forEach.call(je,function(Ft){Ze=L.querySelectorAll("["+Ft+'*="'+m+'"]');for(var Bt=0,Un=Ze.length;Bt<Un;Bt++){var ur=Ze[Bt].getAttribute(Ft);ur&&!ur.match(new RegExp('url\\("?#'+m+'"?\\)'))||Ze[Bt].setAttribute(Ft,"url(#"+Ue+")")}});for(var Ke=L.querySelectorAll("[*|href]"),ct=[],mt=0,wt=Ke.length;mt<wt;mt++){var gt=Ke[mt].getAttributeNS(Af,"href");gt&>.toString()==="#"+de[Xe].id&&ct.push(Ke[mt])}for(var Tt=0,Ge=ct.length;Tt<Ge;Tt++)ct[Tt].setAttributeNS(Af,"href","#"+Ue);de[Xe].id=Ue},Ce=0,Pe=de.length;Ce<Pe;Ce++)lt(Ce)})}L.removeAttribute("xmlns:a");for(var ke=L.querySelectorAll("script"),ht=[],Et,vt,dt=0,Ct=ke.length;dt<Ct;dt++)vt=ke[dt].getAttribute("type"),(!vt||vt==="application/ecmascript"||vt==="application/javascript"||vt==="text/javascript")&&(Et=ke[dt].innerText||ke[dt].textContent,Et&&ht.push(Et),L.removeChild(ke[dt]));if(ht.length>0&&(n==="always"||n==="once"&&!Cp[C])){for(var me=0,Le=ht.length;me<Le;me++)new Function(ht[me])(window);Cp[C]=!0}var Ve=L.querySelectorAll("style");if(Array.prototype.forEach.call(Ve,function(qe){qe.textContent+=""}),L.setAttribute("xmlns",Mx),L.setAttribute("xmlns:xlink",Af),g(L),!t.parentNode){Ga.splice(Ga.indexOf(t),1),t=null,k(new Error("Parent node is null"));return}t.parentNode.replaceChild(L,t),Ga.splice(Ga.indexOf(t),1),t=null,k(null,L)})},Fx=function(t,n){var s=n===void 0?{}:n,o=s.afterAll,l=o===void 0?function(){}:o,g=s.afterEach,k=g===void 0?function(){}:g,C=s.beforeEach,A=C===void 0?function(){}:C,U=s.cacheRequests,L=U===void 0?!0:U,q=s.evalScripts,Q=q===void 0?"never":q,re=s.httpRequestWithCredentials,ne=re===void 0?!1:re,J=s.renumerateIRIElements,F=J===void 0?!0:J;if(t&&"length"in t)for(var he=0,ye=0,Ie=t.length;ye<Ie;ye++)Ep(t[ye],Q,F,L,ne,A,function(de,je){k(de,je),t&&"length"in t&&t.length===++he&&l(he)});else t?Ep(t,Q,F,L,ne,A,function(de,je){k(de,je),l(1),t=null}):l(0)},Nx=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},Bx=function(t,n){for(var s in t)if(!(s in n))return!0;for(var o in n)if(t[o]!==n[o])return!0;return!1},jx=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],_c="http://www.w3.org/2000/svg",kp="http://www.w3.org/1999/xlink",hd=function(i){kg(t,i);function t(){for(var s,o=arguments.length,l=new Array(o),g=0;g<o;g++)l[g]=arguments[g];return s=i.call.apply(i,[this].concat(l))||this,s.initialState={hasError:!1,isLoading:!0},s.state=s.initialState,s._isMounted=!1,s.reactWrapper=void 0,s.nonReactWrapper=void 0,s.refCallback=function(k){s.reactWrapper=k},s}var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof Nx(this.reactWrapper).Node){var l=this.props,g=l.desc,k=l.evalScripts,C=l.httpRequestWithCredentials,A=l.renumerateIRIElements,U=l.src,L=l.title,q=l.useRequestCache,Q=this.props.onError,re=this.props.beforeInjection,ne=this.props.afterInjection,J=this.props.wrapper,F,he;J==="svg"?(F=document.createElementNS(_c,J),F.setAttribute("xmlns",_c),F.setAttribute("xmlns:xlink",kp),he=document.createElementNS(_c,J)):(F=document.createElement(J),he=document.createElement(J)),F.appendChild(he),he.dataset.src=U,this.nonReactWrapper=this.reactWrapper.appendChild(F);var ye=function(m){if(o.removeSVG(),!o._isMounted){Q(m);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){Q(m)})},Ie=function(m,Ue){if(m){ye(m);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{ne(Ue)}catch(ke){ye(ke)}})},de=function(m){if(m.setAttribute("role","img"),g){var Ue=m.querySelector(":scope > desc");Ue&&m.removeChild(Ue);var ke=document.createElement("desc");ke.innerHTML=g,m.prepend(ke)}if(L){var ht=m.querySelector(":scope > title");ht&&m.removeChild(ht);var Et=document.createElement("title");Et.innerHTML=L,m.prepend(Et)}try{re(m)}catch(vt){ye(vt)}};Fx(he,{afterEach:Ie,beforeEach:de,cacheRequests:q,evalScripts:k,httpRequestWithCredentials:C,renumerateIRIElements:A})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var l=this;Bx(Fl({},o),this.props)&&this.setState(function(){return l.initialState},function(){l.removeSVG(),l.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var l=o.fallback;o.httpRequestWithCredentials;var g=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var k=o.wrapper,C=cd(o,jx),A=k;return tl.createElement(A,Fl({},C,{ref:this.refCallback},k==="svg"?{xmlns:_c,xmlnsXlink:kp}:{}),this.state.isLoading&&g&&tl.createElement(g,null),this.state.hasError&&l&&tl.createElement(l,null))},t}(tl.Component);hd.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};hd.propTypes={afterInjection:vr.func,beforeInjection:vr.func,desc:vr.string,evalScripts:vr.oneOf(["always","once","never"]),fallback:vr.oneOfType([vr.func,vr.object,vr.string]),httpRequestWithCredentials:vr.bool,loading:vr.oneOfType([vr.func,vr.object,vr.string]),onError:vr.func,renumerateIRIElements:vr.bool,src:vr.string.isRequired,title:vr.string,useRequestCache:vr.bool,wrapper:vr.oneOf(["div","span","svg"])};const Hx={"page-container":"_page-container_6iqty_1","page-main-content":"_page-main-content_6iqty_8","page-title":"_page-title_6iqty_19","text-base":"_text-base_6iqty_25","mt-4":"_mt-4_6iqty_32"};var Fc={exports:{}};/**
|
|
132
132
|
* @license
|
|
133
133
|
* Lodash <https://lodash.com/>
|
|
134
134
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -154,7 +154,7 @@ __p += '`),Qt&&(ze+=`' +
|
|
|
154
154
|
function print() { __p += __j.call(arguments, '') }
|
|
155
155
|
`:`;
|
|
156
156
|
`)+ze+`return __p
|
|
157
|
-
}`;var Xt=vh(function(){return nt(W,xt+"return "+ze).apply(n,ee)});if(Xt.source=ze,lf(Xt))throw Xt;return Xt}function Xb(e){return hn(e).toLowerCase()}function Kb(e){return hn(e).toUpperCase()}function Jb(e,r,d){if(e=hn(e),e&&(d||r===n))return We(e);if(!e||!(r=qr(r)))return e;var x=nr(e),P=nr(r),W=bt(x,P),ee=Dn(x,P)+1;return ji(x,W,ee).join("")}function Zb(e,r,d){if(e=hn(e),e&&(d||r===n))return e.slice(0,es(e)+1);if(!e||!(r=qr(r)))return e;var x=nr(e),P=Dn(x,nr(r))+1;return ji(x,0,P).join("")}function Qb(e,r,d){if(e=hn(e),e&&(d||r===n))return e.replace(on,"");if(!e||!(r=qr(r)))return e;var x=nr(e),P=bt(x,nr(r));return ji(x,P).join("")}function e0(e,r){var d=ht,x=Et;if(Gn(r)){var P="separator"in r?r.separator:P;d="length"in r?qt(r.length):d,x="omission"in r?qr(r.omission):x}e=hn(e);var W=e.length;if(Vr(e)){var ee=nr(e);W=ee.length}if(d>=W)return e;var ue=d-Ji(x);if(ue<1)return x;var pe=ee?ji(ee,0,ue).join(""):e.slice(0,ue);if(P===n)return pe+x;if(ee&&(ue+=pe.length-ue),cf(P)){if(e.slice(ue).search(P)){var Ne,Be=pe;for(P.global||(P=Dt(P.source,hn(ni.exec(P))+"g")),P.lastIndex=0;Ne=P.exec(Be);)var ze=Ne.index;pe=pe.slice(0,ze===n?ue:ze)}}else if(e.indexOf(qr(P),ue)!=ue){var ot=pe.lastIndexOf(P);ot>-1&&(pe=pe.slice(0,ot))}return pe+x}function t0(e){return e=hn(e),e&&Zr.test(e)?e.replace(Xn,Ta):e}var n0=Z(function(e,r,d){return e+(d?" ":"")+r.toUpperCase()}),hf=$("toUpperCase");function gh(e,r,d){return e=hn(e),r=d?n:r,r===n?Za(e)?le(e):Ht(e):e.match(r)||[]}var vh=$t(function(e,r){try{return M(e,n,r)}catch(d){return lf(d)?d:new Me(d)}}),r0=_s(function(e,r){return K(r,function(d){d=Ya(d),rr(e,d,sf(e[d],e))}),e});function i0(e){var r=e==null?0:e.length,d=It();return e=r?tt(e,function(x){if(typeof x[1]!="function")throw new Wt(g);return[d(x[0]),x[1]]}):[],$t(function(x){for(var P=-1;++P<r;){var W=e[P];if(M(W[0],this,x))return M(W[1],this,x)}})}function o0(e){return Iu(Pr(e,L))}function pf(e){return function(){return e}}function a0(e,r){return e==null||e!==e?r:e}var s0=h(),u0=h(!0);function ao(e){return e}function gf(e){return Ha(typeof e=="function"?e:Pr(e,L))}function l0(e){return xo(Pr(e,L))}function c0(e,r){return Bi(e,Pr(r,L))}var f0=$t(function(e,r){return function(d){return vi(d,e,r)}}),d0=$t(function(e,r){return function(d){return vi(e,d,r)}});function vf(e,r,d){var x=Kr(r),P=Zs(r,x);d==null&&!(Gn(r)&&(P.length||!x.length))&&(d=r,r=e,e=this,P=Zs(r,Kr(r)));var W=!(Gn(d)&&"chain"in d)||!!d.chain,ee=Is(e);return K(P,function(ue){var pe=r[ue];e[ue]=pe,ee&&(e.prototype[ue]=function(){var Ne=this.__chain__;if(W||Ne){var Be=e(this.__wrapped__),ze=Be.__actions__=or(this.__actions__);return ze.push({func:pe,args:arguments,thisArg:e}),Be.__chain__=Ne,Be}return pe.apply(e,_t([this.value()],arguments))})}),e}function h0(){return dn._===this&&(dn._=xn),this}function mf(){}function p0(e){return e=qt(e),$t(function(r){return va(r,e)})}var g0=X(tt),v0=X(Re),m0=X(an);function mh(e){return ef(e)?b(Ya(e)):ju(e)}function y0(e){return function(r){return e==null?n:ha(e,r)}}var b0=He(),w0=He(!0);function yf(){return[]}function bf(){return!1}function S0(){return{}}function x0(){return""}function C0(){return!0}function E0(e,r){if(e=qt(e),e<1||e>qe)return[];var d=Pe,x=On(e,Pe);r=It(r),e-=Pe;for(var P=ve(x,r);++d<e;)r(d);return P}function k0(e){return Yt(e)?tt(e,Ya):ko(e)?[e]:or(Nd(hn(e)))}function T0(e){var r=++fl;return hn(e)+r}var _0=B(function(e,r){return e+r},0),R0=Rt("ceil"),I0=B(function(e,r){return e/r},1),O0=Rt("floor");function D0(e){return e&&e.length?Js(e,ao,fs):n}function A0(e,r){return e&&e.length?Js(e,It(r,2),fs):n}function P0(e){return pr(e,ao)}function L0(e,r){return pr(e,It(r,2))}function M0(e){return e&&e.length?Js(e,ao,Ni):n}function F0(e,r){return e&&e.length?Js(e,It(r,2),Ni):n}var N0=B(function(e,r){return e*r},1),B0=Rt("round"),j0=B(function(e,r){return e-r},0);function H0(e){return e&&e.length?ge(e,ao):0}function U0(e,r){return e&&e.length?ge(e,It(r,2)):0}return j.after=ly,j.ary=qd,j.assign=Ky,j.assignIn=uh,j.assignInWith=yc,j.assignWith=Jy,j.at=Zy,j.before=Xd,j.bind=sf,j.bindAll=r0,j.bindKey=Kd,j.castArray=Sy,j.chain=Yd,j.chunk=Ov,j.compact=Dv,j.concat=Av,j.cond=i0,j.conforms=o0,j.constant=pf,j.countBy=Hm,j.create=Qy,j.curry=Jd,j.curryRight=Zd,j.debounce=Qd,j.defaults=eb,j.defaultsDeep=tb,j.defer=cy,j.delay=fy,j.difference=Pv,j.differenceBy=Lv,j.differenceWith=Mv,j.drop=Fv,j.dropRight=Nv,j.dropRightWhile=Bv,j.dropWhile=jv,j.fill=Hv,j.filter=Wm,j.flatMap=Ym,j.flatMapDeep=Vm,j.flatMapDepth=Gm,j.flatten=Ud,j.flattenDeep=Uv,j.flattenDepth=Wv,j.flip=dy,j.flow=s0,j.flowRight=u0,j.fromPairs=$v,j.functions=ub,j.functionsIn=lb,j.groupBy=qm,j.initial=Yv,j.intersection=Vv,j.intersectionBy=Gv,j.intersectionWith=qv,j.invert=fb,j.invertBy=db,j.invokeMap=Km,j.iteratee=gf,j.keyBy=Jm,j.keys=Kr,j.keysIn=oo,j.map=dc,j.mapKeys=pb,j.mapValues=gb,j.matches=l0,j.matchesProperty=c0,j.memoize=pc,j.merge=vb,j.mergeWith=lh,j.method=f0,j.methodOf=d0,j.mixin=vf,j.negate=gc,j.nthArg=p0,j.omit=mb,j.omitBy=yb,j.once=hy,j.orderBy=Zm,j.over=g0,j.overArgs=py,j.overEvery=v0,j.overSome=m0,j.partial=uf,j.partialRight=eh,j.partition=Qm,j.pick=bb,j.pickBy=ch,j.property=mh,j.propertyOf=y0,j.pull=Zv,j.pullAll=$d,j.pullAllBy=Qv,j.pullAllWith=em,j.pullAt=tm,j.range=b0,j.rangeRight=w0,j.rearg=gy,j.reject=ny,j.remove=nm,j.rest=vy,j.reverse=of,j.sampleSize=iy,j.set=Sb,j.setWith=xb,j.shuffle=oy,j.slice=rm,j.sortBy=uy,j.sortedUniq=cm,j.sortedUniqBy=fm,j.split=Yb,j.spread=my,j.tail=dm,j.take=hm,j.takeRight=pm,j.takeRightWhile=gm,j.takeWhile=vm,j.tap=Dm,j.throttle=yy,j.thru=fc,j.toArray=oh,j.toPairs=fh,j.toPairsIn=dh,j.toPath=k0,j.toPlainObject=sh,j.transform=Cb,j.unary=by,j.union=mm,j.unionBy=ym,j.unionWith=bm,j.uniq=wm,j.uniqBy=Sm,j.uniqWith=xm,j.unset=Eb,j.unzip=af,j.unzipWith=zd,j.update=kb,j.updateWith=Tb,j.values=Al,j.valuesIn=_b,j.without=Cm,j.words=gh,j.wrap=wy,j.xor=Em,j.xorBy=km,j.xorWith=Tm,j.zip=_m,j.zipObject=Rm,j.zipObjectDeep=Im,j.zipWith=Om,j.entries=fh,j.entriesIn=dh,j.extend=uh,j.extendWith=yc,vf(j,j),j.add=_0,j.attempt=vh,j.camelCase=Db,j.capitalize=hh,j.ceil=R0,j.clamp=Rb,j.clone=xy,j.cloneDeep=Ey,j.cloneDeepWith=ky,j.cloneWith=Cy,j.conformsTo=Ty,j.deburr=ph,j.defaultTo=a0,j.divide=I0,j.endsWith=Ab,j.eq=ba,j.escape=Pb,j.escapeRegExp=Lb,j.every=Um,j.find=$m,j.findIndex=jd,j.findKey=nb,j.findLast=zm,j.findLastIndex=Hd,j.findLastKey=rb,j.floor=O0,j.forEach=Vd,j.forEachRight=Gd,j.forIn=ib,j.forInRight=ob,j.forOwn=ab,j.forOwnRight=sb,j.get=ff,j.gt=_y,j.gte=Ry,j.has=cb,j.hasIn=df,j.head=Wd,j.identity=ao,j.includes=Xm,j.indexOf=zv,j.inRange=Ib,j.invoke=hb,j.isArguments=Ju,j.isArray=Yt,j.isArrayBuffer=Iy,j.isArrayLike=io,j.isArrayLikeObject=ar,j.isBoolean=Oy,j.isBuffer=cu,j.isDate=Dy,j.isElement=Ay,j.isEmpty=Py,j.isEqual=Ly,j.isEqualWith=My,j.isError=lf,j.isFinite=Fy,j.isFunction=Is,j.isInteger=th,j.isLength=vc,j.isMap=nh,j.isMatch=Ny,j.isMatchWith=By,j.isNaN=jy,j.isNative=Hy,j.isNil=Wy,j.isNull=Uy,j.isNumber=rh,j.isObject=Gn,j.isObjectLike=Qn,j.isPlainObject=Xl,j.isRegExp=cf,j.isSafeInteger=$y,j.isSet=ih,j.isString=mc,j.isSymbol=ko,j.isTypedArray=Dl,j.isUndefined=zy,j.isWeakMap=Yy,j.isWeakSet=Vy,j.join=Xv,j.kebabCase=Mb,j.last=Xo,j.lastIndexOf=Kv,j.lowerCase=Fb,j.lowerFirst=Nb,j.lt=Gy,j.lte=qy,j.max=D0,j.maxBy=A0,j.mean=P0,j.meanBy=L0,j.min=M0,j.minBy=F0,j.stubArray=yf,j.stubFalse=bf,j.stubObject=S0,j.stubString=x0,j.stubTrue=C0,j.multiply=N0,j.nth=Jv,j.noConflict=h0,j.noop=mf,j.now=hc,j.pad=Bb,j.padEnd=jb,j.padStart=Hb,j.parseInt=Ub,j.random=Ob,j.reduce=ey,j.reduceRight=ty,j.repeat=Wb,j.replace=$b,j.result=wb,j.round=B0,j.runInContext=z,j.sample=ry,j.size=ay,j.snakeCase=zb,j.some=sy,j.sortedIndex=im,j.sortedIndexBy=om,j.sortedIndexOf=am,j.sortedLastIndex=sm,j.sortedLastIndexBy=um,j.sortedLastIndexOf=lm,j.startCase=Vb,j.startsWith=Gb,j.subtract=j0,j.sum=H0,j.sumBy=U0,j.template=qb,j.times=E0,j.toFinite=Os,j.toInteger=qt,j.toLength=ah,j.toLower=Xb,j.toNumber=Ko,j.toSafeInteger=Xy,j.toString=hn,j.toUpper=Kb,j.trim=Jb,j.trimEnd=Zb,j.trimStart=Qb,j.truncate=e0,j.unescape=t0,j.uniqueId=T0,j.upperCase=n0,j.upperFirst=hf,j.each=Vd,j.eachRight=Gd,j.first=Wd,vf(j,function(){var e={};return to(j,function(r,d){At.call(j.prototype,d)||(e[d]=r)}),e}(),{chain:!1}),j.VERSION=s,K(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){j[e].placeholder=j}),K(["drop","take"],function(e,r){zt.prototype[e]=function(d){d=d===n?1:In(qt(d),0);var x=this.__filtered__&&!r?new zt(this):this.clone();return x.__filtered__?x.__takeCount__=On(d,x.__takeCount__):x.__views__.push({size:On(d,Pe),type:e+(x.__dir__<0?"Right":"")}),x},zt.prototype[e+"Right"]=function(d){return this.reverse()[e](d).reverse()}}),K(["filter","map","takeWhile"],function(e,r){var d=r+1,x=d==Ct||d==Le;zt.prototype[e]=function(P){var W=this.clone();return W.__iteratees__.push({iteratee:It(P,3),type:d}),W.__filtered__=W.__filtered__||x,W}}),K(["head","last"],function(e,r){var d="take"+(r?"Right":"");zt.prototype[e]=function(){return this[d](1).value()[0]}}),K(["initial","tail"],function(e,r){var d="drop"+(r?"":"Right");zt.prototype[e]=function(){return this.__filtered__?new zt(this):this[d](1)}}),zt.prototype.compact=function(){return this.filter(ao)},zt.prototype.find=function(e){return this.filter(e).head()},zt.prototype.findLast=function(e){return this.reverse().find(e)},zt.prototype.invokeMap=$t(function(e,r){return typeof e=="function"?new zt(this):this.map(function(d){return vi(d,e,r)})}),zt.prototype.reject=function(e){return this.filter(gc(It(e)))},zt.prototype.slice=function(e,r){e=qt(e);var d=this;return d.__filtered__&&(e>0||r<0)?new zt(d):(e<0?d=d.takeRight(-e):e&&(d=d.drop(e)),r!==n&&(r=qt(r),d=r<0?d.dropRight(-r):d.take(r-e)),d)},zt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zt.prototype.toArray=function(){return this.take(Pe)},to(zt.prototype,function(e,r){var d=/^(?:filter|find|map|reject)|While$/.test(r),x=/^(?:head|last)$/.test(r),P=j[x?"take"+(r=="last"?"Right":""):r],W=x||/^find/.test(r);P&&(j.prototype[r]=function(){var ee=this.__wrapped__,ue=x?[1]:arguments,pe=ee instanceof zt,Ne=ue[0],Be=pe||Yt(ee),ze=function(Jt){var Qt=P.apply(j,_t([Jt],ue));return x&&ot?Qt[0]:Qt};Be&&d&&typeof Ne=="function"&&Ne.length!=1&&(pe=Be=!1);var ot=this.__chain__,xt=!!this.__actions__.length,Pt=W&&!ot,Xt=pe&&!xt;if(!W&&Be){ee=Xt?ee:new zt(this);var Lt=e.apply(ee,ue);return Lt.__actions__.push({func:fc,args:[ze],thisArg:n}),new Ar(Lt,ot)}return Pt&&Xt?e.apply(this,ue):(Lt=this.thru(ze),Pt?x?Lt.value()[0]:Lt.value():Lt)})}),K(["pop","push","shift","sort","splice","unshift"],function(e){var r=Rn[e],d=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",x=/^(?:pop|shift)$/.test(e);j.prototype[e]=function(){var P=arguments;if(x&&!this.__chain__){var W=this.value();return r.apply(Yt(W)?W:[],P)}return this[d](function(ee){return r.apply(Yt(ee)?ee:[],P)})}}),to(zt.prototype,function(e,r){var d=j[r];if(d){var x=d.name+"";At.call($o,x)||($o[x]=[]),$o[x].push({name:r,func:d})}}),$o[S(n,F).name]=[{name:"wrapper",func:n}],zt.prototype.clone=Ws,zt.prototype.reverse=Ma,zt.prototype.value=ls,j.prototype.at=Am,j.prototype.chain=Pm,j.prototype.commit=Lm,j.prototype.next=Mm,j.prototype.plant=Nm,j.prototype.reverse=Bm,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=jm,j.prototype.first=j.prototype.head,go&&(j.prototype[go]=Fm),j},we=xe();si?((si.exports=we)._=we,po._=we):dn._=we}).call(Ro)})(Fc,Fc.exports);var Rg=Fc.exports;const Hx=ac(Rg);function Tp(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i}function Ux(i){var t=i.lastRenderedStartIndex,n=i.lastRenderedStopIndex,s=i.startIndex,o=i.stopIndex;return!(s>n||o<t)}function Wx(i){for(var t=i.isItemLoaded,n=i.itemCount,s=i.minimumBatchSize,o=i.startIndex,l=i.stopIndex,g=[],k=null,C=null,A=o;A<=l;A++){var U=t(A);U?C!==null&&(g.push(k,C),k=C=null):(C=A,k===null&&(k=A))}if(C!==null){for(var L=Math.min(Math.max(C,k+s-1),n-1),q=C+1;q<=L&&!t(q);q++)C=q;g.push(k,C)}if(g.length)for(;g[1]-g[0]+1<s&&g[0]>0;){var Q=g[0]-1;if(!t(Q))g[0]=Q;else break}return g}var $x=function(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")},zx=function(){function i(t,n){for(var s=0;s<n.length;s++){var o=n[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,s){return n&&i(t.prototype,n),s&&i(t,s),t}}(),Yx=function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t)},_p=function(i,t){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:i},Vx=function(i){Yx(t,i);function t(){var n,s,o,l;$x(this,t);for(var g=arguments.length,k=Array(g),C=0;C<g;C++)k[C]=arguments[C];return l=(s=(o=_p(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(k))),o),o._lastRenderedStartIndex=-1,o._lastRenderedStopIndex=-1,o._memoizedUnloadedRanges=[],o._onItemsRendered=function(A){var U=A.visibleStartIndex,L=A.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!Tp(U)||!Tp(L))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof o.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),o._lastRenderedStartIndex=U,o._lastRenderedStopIndex=L,o._ensureRowsLoaded(U,L)},o._setRef=function(A){o._listRef=A},s),_p(o,l)}return zx(t,[{key:"resetloadMoreItemsCache",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],s&&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 s=this.props.children;return s({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(s,o){var l=this.props,g=l.isItemLoaded,k=l.itemCount,C=l.minimumBatchSize,A=C===void 0?10:C,U=l.threshold,L=U===void 0?15:U,q=Wx({isItemLoaded:g,itemCount:k,minimumBatchSize:A,startIndex:Math.max(0,s-L),stopIndex:Math.min(k-1,o+L)});(this._memoizedUnloadedRanges.length!==q.length||this._memoizedUnloadedRanges.some(function(Q,re){return q[re]!==Q}))&&(this._memoizedUnloadedRanges=q,this._loadUnloadedRanges(q))}},{key:"_loadUnloadedRanges",value:function(s){for(var o=this,l=this.props.loadMoreItems||this.props.loadMoreRows,g=function(A){var U=s[A],L=s[A+1],q=l(U,L);q!=null&&q.then(function(){if(Ux({lastRenderedStartIndex:o._lastRenderedStartIndex,lastRenderedStopIndex:o._lastRenderedStopIndex,startIndex:U,stopIndex:L})){if(o._listRef==null)return;typeof o._listRef.resetAfterIndex=="function"?o._listRef.resetAfterIndex(U,!0):(typeof o._listRef._getItemStyleCache=="function"&&o._listRef._getItemStyleCache(-1),o._listRef.forceUpdate())}})},k=0;k<s.length;k+=2)g(k)}}]),t}(Je.PureComponent);const Rp=window.location.href,Ig=Je.createContext({}),Gx=({children:i,baseUrl:t,userData:n})=>{const s=()=>{window.location.href=`${t}/authentication/login?callbackUrl=${Rp}`},o=()=>{window.location.href=`${t}/authentication/logout?callbackUrl=${Rp}`};return n!=null&&n.isFetching?Hn.jsx(Ic.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Hn.jsx(Ic.CircularProgress,{})}):Hn.jsx(Ig.Provider,{value:{user:n==null?void 0:n.data,login:s,logout:o},children:i})},qx=()=>{const{login:i,logout:t,user:n}=Je.useContext(Ig);return{login:i,logout:t,user:n}};function Xx(i,t,n){return n.some(s=>{const o=i[s];return String(o).toLowerCase().includes(t.toLowerCase())})}var Og={exports:{}};/*!
|
|
157
|
+
}`;var Xt=vh(function(){return nt(W,xt+"return "+ze).apply(n,ee)});if(Xt.source=ze,lf(Xt))throw Xt;return Xt}function Xb(e){return hn(e).toLowerCase()}function Kb(e){return hn(e).toUpperCase()}function Jb(e,r,d){if(e=hn(e),e&&(d||r===n))return We(e);if(!e||!(r=qr(r)))return e;var x=nr(e),P=nr(r),W=bt(x,P),ee=Dn(x,P)+1;return ji(x,W,ee).join("")}function Zb(e,r,d){if(e=hn(e),e&&(d||r===n))return e.slice(0,es(e)+1);if(!e||!(r=qr(r)))return e;var x=nr(e),P=Dn(x,nr(r))+1;return ji(x,0,P).join("")}function Qb(e,r,d){if(e=hn(e),e&&(d||r===n))return e.replace(on,"");if(!e||!(r=qr(r)))return e;var x=nr(e),P=bt(x,nr(r));return ji(x,P).join("")}function e0(e,r){var d=ht,x=Et;if(Gn(r)){var P="separator"in r?r.separator:P;d="length"in r?qt(r.length):d,x="omission"in r?qr(r.omission):x}e=hn(e);var W=e.length;if(Vr(e)){var ee=nr(e);W=ee.length}if(d>=W)return e;var ue=d-Ji(x);if(ue<1)return x;var pe=ee?ji(ee,0,ue).join(""):e.slice(0,ue);if(P===n)return pe+x;if(ee&&(ue+=pe.length-ue),cf(P)){if(e.slice(ue).search(P)){var Ne,Be=pe;for(P.global||(P=Dt(P.source,hn(ni.exec(P))+"g")),P.lastIndex=0;Ne=P.exec(Be);)var ze=Ne.index;pe=pe.slice(0,ze===n?ue:ze)}}else if(e.indexOf(qr(P),ue)!=ue){var ot=pe.lastIndexOf(P);ot>-1&&(pe=pe.slice(0,ot))}return pe+x}function t0(e){return e=hn(e),e&&Zr.test(e)?e.replace(Xn,Ta):e}var n0=Z(function(e,r,d){return e+(d?" ":"")+r.toUpperCase()}),hf=$("toUpperCase");function gh(e,r,d){return e=hn(e),r=d?n:r,r===n?Za(e)?le(e):Ht(e):e.match(r)||[]}var vh=$t(function(e,r){try{return M(e,n,r)}catch(d){return lf(d)?d:new Me(d)}}),r0=_s(function(e,r){return K(r,function(d){d=Ya(d),rr(e,d,sf(e[d],e))}),e});function i0(e){var r=e==null?0:e.length,d=It();return e=r?tt(e,function(x){if(typeof x[1]!="function")throw new Wt(g);return[d(x[0]),x[1]]}):[],$t(function(x){for(var P=-1;++P<r;){var W=e[P];if(M(W[0],this,x))return M(W[1],this,x)}})}function o0(e){return Iu(Pr(e,L))}function pf(e){return function(){return e}}function a0(e,r){return e==null||e!==e?r:e}var s0=h(),u0=h(!0);function ao(e){return e}function gf(e){return Ha(typeof e=="function"?e:Pr(e,L))}function l0(e){return xo(Pr(e,L))}function c0(e,r){return Bi(e,Pr(r,L))}var f0=$t(function(e,r){return function(d){return vi(d,e,r)}}),d0=$t(function(e,r){return function(d){return vi(e,d,r)}});function vf(e,r,d){var x=Kr(r),P=Zs(r,x);d==null&&!(Gn(r)&&(P.length||!x.length))&&(d=r,r=e,e=this,P=Zs(r,Kr(r)));var W=!(Gn(d)&&"chain"in d)||!!d.chain,ee=Is(e);return K(P,function(ue){var pe=r[ue];e[ue]=pe,ee&&(e.prototype[ue]=function(){var Ne=this.__chain__;if(W||Ne){var Be=e(this.__wrapped__),ze=Be.__actions__=or(this.__actions__);return ze.push({func:pe,args:arguments,thisArg:e}),Be.__chain__=Ne,Be}return pe.apply(e,_t([this.value()],arguments))})}),e}function h0(){return dn._===this&&(dn._=xn),this}function mf(){}function p0(e){return e=qt(e),$t(function(r){return va(r,e)})}var g0=X(tt),v0=X(Re),m0=X(an);function mh(e){return ef(e)?b(Ya(e)):ju(e)}function y0(e){return function(r){return e==null?n:ha(e,r)}}var b0=He(),w0=He(!0);function yf(){return[]}function bf(){return!1}function S0(){return{}}function x0(){return""}function C0(){return!0}function E0(e,r){if(e=qt(e),e<1||e>qe)return[];var d=Pe,x=On(e,Pe);r=It(r),e-=Pe;for(var P=ve(x,r);++d<e;)r(d);return P}function k0(e){return Yt(e)?tt(e,Ya):ko(e)?[e]:or(Nd(hn(e)))}function T0(e){var r=++fl;return hn(e)+r}var _0=B(function(e,r){return e+r},0),R0=Rt("ceil"),I0=B(function(e,r){return e/r},1),O0=Rt("floor");function D0(e){return e&&e.length?Js(e,ao,fs):n}function A0(e,r){return e&&e.length?Js(e,It(r,2),fs):n}function P0(e){return pr(e,ao)}function L0(e,r){return pr(e,It(r,2))}function M0(e){return e&&e.length?Js(e,ao,Ni):n}function F0(e,r){return e&&e.length?Js(e,It(r,2),Ni):n}var N0=B(function(e,r){return e*r},1),B0=Rt("round"),j0=B(function(e,r){return e-r},0);function H0(e){return e&&e.length?ge(e,ao):0}function U0(e,r){return e&&e.length?ge(e,It(r,2)):0}return j.after=ly,j.ary=qd,j.assign=Ky,j.assignIn=uh,j.assignInWith=yc,j.assignWith=Jy,j.at=Zy,j.before=Xd,j.bind=sf,j.bindAll=r0,j.bindKey=Kd,j.castArray=Sy,j.chain=Yd,j.chunk=Ov,j.compact=Dv,j.concat=Av,j.cond=i0,j.conforms=o0,j.constant=pf,j.countBy=Hm,j.create=Qy,j.curry=Jd,j.curryRight=Zd,j.debounce=Qd,j.defaults=eb,j.defaultsDeep=tb,j.defer=cy,j.delay=fy,j.difference=Pv,j.differenceBy=Lv,j.differenceWith=Mv,j.drop=Fv,j.dropRight=Nv,j.dropRightWhile=Bv,j.dropWhile=jv,j.fill=Hv,j.filter=Wm,j.flatMap=Ym,j.flatMapDeep=Vm,j.flatMapDepth=Gm,j.flatten=Ud,j.flattenDeep=Uv,j.flattenDepth=Wv,j.flip=dy,j.flow=s0,j.flowRight=u0,j.fromPairs=$v,j.functions=ub,j.functionsIn=lb,j.groupBy=qm,j.initial=Yv,j.intersection=Vv,j.intersectionBy=Gv,j.intersectionWith=qv,j.invert=fb,j.invertBy=db,j.invokeMap=Km,j.iteratee=gf,j.keyBy=Jm,j.keys=Kr,j.keysIn=oo,j.map=dc,j.mapKeys=pb,j.mapValues=gb,j.matches=l0,j.matchesProperty=c0,j.memoize=pc,j.merge=vb,j.mergeWith=lh,j.method=f0,j.methodOf=d0,j.mixin=vf,j.negate=gc,j.nthArg=p0,j.omit=mb,j.omitBy=yb,j.once=hy,j.orderBy=Zm,j.over=g0,j.overArgs=py,j.overEvery=v0,j.overSome=m0,j.partial=uf,j.partialRight=eh,j.partition=Qm,j.pick=bb,j.pickBy=ch,j.property=mh,j.propertyOf=y0,j.pull=Zv,j.pullAll=$d,j.pullAllBy=Qv,j.pullAllWith=em,j.pullAt=tm,j.range=b0,j.rangeRight=w0,j.rearg=gy,j.reject=ny,j.remove=nm,j.rest=vy,j.reverse=of,j.sampleSize=iy,j.set=Sb,j.setWith=xb,j.shuffle=oy,j.slice=rm,j.sortBy=uy,j.sortedUniq=cm,j.sortedUniqBy=fm,j.split=Yb,j.spread=my,j.tail=dm,j.take=hm,j.takeRight=pm,j.takeRightWhile=gm,j.takeWhile=vm,j.tap=Dm,j.throttle=yy,j.thru=fc,j.toArray=oh,j.toPairs=fh,j.toPairsIn=dh,j.toPath=k0,j.toPlainObject=sh,j.transform=Cb,j.unary=by,j.union=mm,j.unionBy=ym,j.unionWith=bm,j.uniq=wm,j.uniqBy=Sm,j.uniqWith=xm,j.unset=Eb,j.unzip=af,j.unzipWith=zd,j.update=kb,j.updateWith=Tb,j.values=Al,j.valuesIn=_b,j.without=Cm,j.words=gh,j.wrap=wy,j.xor=Em,j.xorBy=km,j.xorWith=Tm,j.zip=_m,j.zipObject=Rm,j.zipObjectDeep=Im,j.zipWith=Om,j.entries=fh,j.entriesIn=dh,j.extend=uh,j.extendWith=yc,vf(j,j),j.add=_0,j.attempt=vh,j.camelCase=Db,j.capitalize=hh,j.ceil=R0,j.clamp=Rb,j.clone=xy,j.cloneDeep=Ey,j.cloneDeepWith=ky,j.cloneWith=Cy,j.conformsTo=Ty,j.deburr=ph,j.defaultTo=a0,j.divide=I0,j.endsWith=Ab,j.eq=ba,j.escape=Pb,j.escapeRegExp=Lb,j.every=Um,j.find=$m,j.findIndex=jd,j.findKey=nb,j.findLast=zm,j.findLastIndex=Hd,j.findLastKey=rb,j.floor=O0,j.forEach=Vd,j.forEachRight=Gd,j.forIn=ib,j.forInRight=ob,j.forOwn=ab,j.forOwnRight=sb,j.get=ff,j.gt=_y,j.gte=Ry,j.has=cb,j.hasIn=df,j.head=Wd,j.identity=ao,j.includes=Xm,j.indexOf=zv,j.inRange=Ib,j.invoke=hb,j.isArguments=Ju,j.isArray=Yt,j.isArrayBuffer=Iy,j.isArrayLike=io,j.isArrayLikeObject=ar,j.isBoolean=Oy,j.isBuffer=cu,j.isDate=Dy,j.isElement=Ay,j.isEmpty=Py,j.isEqual=Ly,j.isEqualWith=My,j.isError=lf,j.isFinite=Fy,j.isFunction=Is,j.isInteger=th,j.isLength=vc,j.isMap=nh,j.isMatch=Ny,j.isMatchWith=By,j.isNaN=jy,j.isNative=Hy,j.isNil=Wy,j.isNull=Uy,j.isNumber=rh,j.isObject=Gn,j.isObjectLike=Qn,j.isPlainObject=Xl,j.isRegExp=cf,j.isSafeInteger=$y,j.isSet=ih,j.isString=mc,j.isSymbol=ko,j.isTypedArray=Dl,j.isUndefined=zy,j.isWeakMap=Yy,j.isWeakSet=Vy,j.join=Xv,j.kebabCase=Mb,j.last=Xo,j.lastIndexOf=Kv,j.lowerCase=Fb,j.lowerFirst=Nb,j.lt=Gy,j.lte=qy,j.max=D0,j.maxBy=A0,j.mean=P0,j.meanBy=L0,j.min=M0,j.minBy=F0,j.stubArray=yf,j.stubFalse=bf,j.stubObject=S0,j.stubString=x0,j.stubTrue=C0,j.multiply=N0,j.nth=Jv,j.noConflict=h0,j.noop=mf,j.now=hc,j.pad=Bb,j.padEnd=jb,j.padStart=Hb,j.parseInt=Ub,j.random=Ob,j.reduce=ey,j.reduceRight=ty,j.repeat=Wb,j.replace=$b,j.result=wb,j.round=B0,j.runInContext=z,j.sample=ry,j.size=ay,j.snakeCase=zb,j.some=sy,j.sortedIndex=im,j.sortedIndexBy=om,j.sortedIndexOf=am,j.sortedLastIndex=sm,j.sortedLastIndexBy=um,j.sortedLastIndexOf=lm,j.startCase=Vb,j.startsWith=Gb,j.subtract=j0,j.sum=H0,j.sumBy=U0,j.template=qb,j.times=E0,j.toFinite=Os,j.toInteger=qt,j.toLength=ah,j.toLower=Xb,j.toNumber=Ko,j.toSafeInteger=Xy,j.toString=hn,j.toUpper=Kb,j.trim=Jb,j.trimEnd=Zb,j.trimStart=Qb,j.truncate=e0,j.unescape=t0,j.uniqueId=T0,j.upperCase=n0,j.upperFirst=hf,j.each=Vd,j.eachRight=Gd,j.first=Wd,vf(j,function(){var e={};return to(j,function(r,d){At.call(j.prototype,d)||(e[d]=r)}),e}(),{chain:!1}),j.VERSION=s,K(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){j[e].placeholder=j}),K(["drop","take"],function(e,r){zt.prototype[e]=function(d){d=d===n?1:In(qt(d),0);var x=this.__filtered__&&!r?new zt(this):this.clone();return x.__filtered__?x.__takeCount__=On(d,x.__takeCount__):x.__views__.push({size:On(d,Pe),type:e+(x.__dir__<0?"Right":"")}),x},zt.prototype[e+"Right"]=function(d){return this.reverse()[e](d).reverse()}}),K(["filter","map","takeWhile"],function(e,r){var d=r+1,x=d==Ct||d==Le;zt.prototype[e]=function(P){var W=this.clone();return W.__iteratees__.push({iteratee:It(P,3),type:d}),W.__filtered__=W.__filtered__||x,W}}),K(["head","last"],function(e,r){var d="take"+(r?"Right":"");zt.prototype[e]=function(){return this[d](1).value()[0]}}),K(["initial","tail"],function(e,r){var d="drop"+(r?"":"Right");zt.prototype[e]=function(){return this.__filtered__?new zt(this):this[d](1)}}),zt.prototype.compact=function(){return this.filter(ao)},zt.prototype.find=function(e){return this.filter(e).head()},zt.prototype.findLast=function(e){return this.reverse().find(e)},zt.prototype.invokeMap=$t(function(e,r){return typeof e=="function"?new zt(this):this.map(function(d){return vi(d,e,r)})}),zt.prototype.reject=function(e){return this.filter(gc(It(e)))},zt.prototype.slice=function(e,r){e=qt(e);var d=this;return d.__filtered__&&(e>0||r<0)?new zt(d):(e<0?d=d.takeRight(-e):e&&(d=d.drop(e)),r!==n&&(r=qt(r),d=r<0?d.dropRight(-r):d.take(r-e)),d)},zt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zt.prototype.toArray=function(){return this.take(Pe)},to(zt.prototype,function(e,r){var d=/^(?:filter|find|map|reject)|While$/.test(r),x=/^(?:head|last)$/.test(r),P=j[x?"take"+(r=="last"?"Right":""):r],W=x||/^find/.test(r);P&&(j.prototype[r]=function(){var ee=this.__wrapped__,ue=x?[1]:arguments,pe=ee instanceof zt,Ne=ue[0],Be=pe||Yt(ee),ze=function(Jt){var Qt=P.apply(j,_t([Jt],ue));return x&&ot?Qt[0]:Qt};Be&&d&&typeof Ne=="function"&&Ne.length!=1&&(pe=Be=!1);var ot=this.__chain__,xt=!!this.__actions__.length,Pt=W&&!ot,Xt=pe&&!xt;if(!W&&Be){ee=Xt?ee:new zt(this);var Lt=e.apply(ee,ue);return Lt.__actions__.push({func:fc,args:[ze],thisArg:n}),new Ar(Lt,ot)}return Pt&&Xt?e.apply(this,ue):(Lt=this.thru(ze),Pt?x?Lt.value()[0]:Lt.value():Lt)})}),K(["pop","push","shift","sort","splice","unshift"],function(e){var r=Rn[e],d=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",x=/^(?:pop|shift)$/.test(e);j.prototype[e]=function(){var P=arguments;if(x&&!this.__chain__){var W=this.value();return r.apply(Yt(W)?W:[],P)}return this[d](function(ee){return r.apply(Yt(ee)?ee:[],P)})}}),to(zt.prototype,function(e,r){var d=j[r];if(d){var x=d.name+"";At.call($o,x)||($o[x]=[]),$o[x].push({name:r,func:d})}}),$o[S(n,F).name]=[{name:"wrapper",func:n}],zt.prototype.clone=Ws,zt.prototype.reverse=Ma,zt.prototype.value=ls,j.prototype.at=Am,j.prototype.chain=Pm,j.prototype.commit=Lm,j.prototype.next=Mm,j.prototype.plant=Nm,j.prototype.reverse=Bm,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=jm,j.prototype.first=j.prototype.head,go&&(j.prototype[go]=Fm),j},we=xe();si?((si.exports=we)._=we,po._=we):dn._=we}).call(Ro)})(Fc,Fc.exports);var Rg=Fc.exports;const Ux=ac(Rg);function Tp(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i}function Wx(i){var t=i.lastRenderedStartIndex,n=i.lastRenderedStopIndex,s=i.startIndex,o=i.stopIndex;return!(s>n||o<t)}function $x(i){for(var t=i.isItemLoaded,n=i.itemCount,s=i.minimumBatchSize,o=i.startIndex,l=i.stopIndex,g=[],k=null,C=null,A=o;A<=l;A++){var U=t(A);U?C!==null&&(g.push(k,C),k=C=null):(C=A,k===null&&(k=A))}if(C!==null){for(var L=Math.min(Math.max(C,k+s-1),n-1),q=C+1;q<=L&&!t(q);q++)C=q;g.push(k,C)}if(g.length)for(;g[1]-g[0]+1<s&&g[0]>0;){var Q=g[0]-1;if(!t(Q))g[0]=Q;else break}return g}var zx=function(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")},Yx=function(){function i(t,n){for(var s=0;s<n.length;s++){var o=n[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,s){return n&&i(t.prototype,n),s&&i(t,s),t}}(),Vx=function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t)},_p=function(i,t){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:i},Gx=function(i){Vx(t,i);function t(){var n,s,o,l;zx(this,t);for(var g=arguments.length,k=Array(g),C=0;C<g;C++)k[C]=arguments[C];return l=(s=(o=_p(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(k))),o),o._lastRenderedStartIndex=-1,o._lastRenderedStopIndex=-1,o._memoizedUnloadedRanges=[],o._onItemsRendered=function(A){var U=A.visibleStartIndex,L=A.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!Tp(U)||!Tp(L))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof o.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),o._lastRenderedStartIndex=U,o._lastRenderedStopIndex=L,o._ensureRowsLoaded(U,L)},o._setRef=function(A){o._listRef=A},s),_p(o,l)}return Yx(t,[{key:"resetloadMoreItemsCache",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],s&&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 s=this.props.children;return s({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(s,o){var l=this.props,g=l.isItemLoaded,k=l.itemCount,C=l.minimumBatchSize,A=C===void 0?10:C,U=l.threshold,L=U===void 0?15:U,q=$x({isItemLoaded:g,itemCount:k,minimumBatchSize:A,startIndex:Math.max(0,s-L),stopIndex:Math.min(k-1,o+L)});(this._memoizedUnloadedRanges.length!==q.length||this._memoizedUnloadedRanges.some(function(Q,re){return q[re]!==Q}))&&(this._memoizedUnloadedRanges=q,this._loadUnloadedRanges(q))}},{key:"_loadUnloadedRanges",value:function(s){for(var o=this,l=this.props.loadMoreItems||this.props.loadMoreRows,g=function(A){var U=s[A],L=s[A+1],q=l(U,L);q!=null&&q.then(function(){if(Wx({lastRenderedStartIndex:o._lastRenderedStartIndex,lastRenderedStopIndex:o._lastRenderedStopIndex,startIndex:U,stopIndex:L})){if(o._listRef==null)return;typeof o._listRef.resetAfterIndex=="function"?o._listRef.resetAfterIndex(U,!0):(typeof o._listRef._getItemStyleCache=="function"&&o._listRef._getItemStyleCache(-1),o._listRef.forceUpdate())}})},k=0;k<s.length;k+=2)g(k)}}]),t}(Je.PureComponent);const Rp=window.location.href,Ig=Je.createContext({}),qx=({children:i,baseUrl:t,userData:n})=>{const s=()=>{window.location.href=`${t}/authentication/login?callbackUrl=${Rp}`},o=()=>{window.location.href=`${t}/authentication/logout?callbackUrl=${Rp}`};return n!=null&&n.isFetching?Hn.jsx(Ic.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Hn.jsx(Ic.CircularProgress,{})}):Hn.jsx(Ig.Provider,{value:{user:n==null?void 0:n.data,login:s,logout:o},children:i})},Xx=()=>{const{login:i,logout:t,user:n}=Je.useContext(Ig);return{login:i,logout:t,user:n}};function Kx(i,t,n){return n.some(s=>{const o=i[s];return String(o).toLowerCase().includes(t.toLowerCase())})}var Og={exports:{}};/*!
|
|
158
158
|
* jQuery JavaScript Library v3.7.1
|
|
159
159
|
* https://jquery.com/
|
|
160
160
|
*
|
|
@@ -166,13 +166,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
166
166
|
*/(function(i){(function(t,n){i.exports=t.document?n(t,!0):function(s){if(!s.document)throw new Error("jQuery requires a window with a document");return n(s)}})(typeof window<"u"?window:Ro,function(t,n){var s=[],o=Object.getPrototypeOf,l=s.slice,g=s.flat?function(a){return s.flat.call(a)}:function(a){return s.concat.apply([],a)},k=s.push,C=s.indexOf,A={},U=A.toString,L=A.hasOwnProperty,q=L.toString,Q=q.call(Object),re={},ne=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},J=function(f){return f!=null&&f===f.window},F=t.document,he={type:!0,src:!0,nonce:!0,noModule:!0};function ye(a,f,v){v=v||F;var w,R,O=v.createElement("script");if(O.text=a,f)for(w in he)R=f[w]||f.getAttribute&&f.getAttribute(w),R&&O.setAttribute(w,R);v.head.appendChild(O).parentNode.removeChild(O)}function Ie(a){return a==null?a+"":typeof a=="object"||typeof a=="function"?A[U.call(a)]||"object":typeof a}var de="3.7.1",je=/HTML$/i,m=function(a,f){return new m.fn.init(a,f)};m.fn=m.prototype={jquery:de,constructor:m,length:0,toArray:function(){return l.call(this)},get:function(a){return a==null?l.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var f=m.merge(this.constructor(),a);return f.prevObject=this,f},each:function(a){return m.each(this,a)},map:function(a){return this.pushStack(m.map(this,function(f,v){return a.call(f,v,f)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(m.grep(this,function(a,f){return(f+1)%2}))},odd:function(){return this.pushStack(m.grep(this,function(a,f){return f%2}))},eq:function(a){var f=this.length,v=+a+(a<0?f:0);return this.pushStack(v>=0&&v<f?[this[v]]:[])},end:function(){return this.prevObject||this.constructor()},push:k,sort:s.sort,splice:s.splice},m.extend=m.fn.extend=function(){var a,f,v,w,R,O,M=arguments[0]||{},te=1,K=arguments.length,fe=!1;for(typeof M=="boolean"&&(fe=M,M=arguments[te]||{},te++),typeof M!="object"&&!ne(M)&&(M={}),te===K&&(M=this,te--);te<K;te++)if((a=arguments[te])!=null)for(f in a)w=a[f],!(f==="__proto__"||M===w)&&(fe&&w&&(m.isPlainObject(w)||(R=Array.isArray(w)))?(v=M[f],R&&!Array.isArray(v)?O=[]:!R&&!m.isPlainObject(v)?O={}:O=v,R=!1,M[f]=m.extend(fe,O,w)):w!==void 0&&(M[f]=w));return M},m.extend({expando:"jQuery"+(de+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isPlainObject:function(a){var f,v;return!a||U.call(a)!=="[object Object]"?!1:(f=o(a),f?(v=L.call(f,"constructor")&&f.constructor,typeof v=="function"&&q.call(v)===Q):!0)},isEmptyObject:function(a){var f;for(f in a)return!1;return!0},globalEval:function(a,f,v){ye(a,{nonce:f&&f.nonce},v)},each:function(a,f){var v,w=0;if(Ue(a))for(v=a.length;w<v&&f.call(a[w],w,a[w])!==!1;w++);else for(w in a)if(f.call(a[w],w,a[w])===!1)break;return a},text:function(a){var f,v="",w=0,R=a.nodeType;if(!R)for(;f=a[w++];)v+=m.text(f);return R===1||R===11?a.textContent:R===9?a.documentElement.textContent:R===3||R===4?a.nodeValue:v},makeArray:function(a,f){var v=f||[];return a!=null&&(Ue(Object(a))?m.merge(v,typeof a=="string"?[a]:a):k.call(v,a)),v},inArray:function(a,f,v){return f==null?-1:C.call(f,a,v)},isXMLDoc:function(a){var f=a&&a.namespaceURI,v=a&&(a.ownerDocument||a).documentElement;return!je.test(f||v&&v.nodeName||"HTML")},merge:function(a,f){for(var v=+f.length,w=0,R=a.length;w<v;w++)a[R++]=f[w];return a.length=R,a},grep:function(a,f,v){for(var w,R=[],O=0,M=a.length,te=!v;O<M;O++)w=!f(a[O],O),w!==te&&R.push(a[O]);return R},map:function(a,f,v){var w,R,O=0,M=[];if(Ue(a))for(w=a.length;O<w;O++)R=f(a[O],O,v),R!=null&&M.push(R);else for(O in a)R=f(a[O],O,v),R!=null&&M.push(R);return g(M)},guid:1,support:re}),typeof Symbol=="function"&&(m.fn[Symbol.iterator]=s[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,f){A["[object "+f+"]"]=f.toLowerCase()});function Ue(a){var f=!!a&&"length"in a&&a.length,v=Ie(a);return ne(a)||J(a)?!1:v==="array"||f===0||typeof f=="number"&&f>0&&f-1 in a}function ke(a,f){return a.nodeName&&a.nodeName.toLowerCase()===f.toLowerCase()}var ht=s.pop,Et=s.sort,vt=s.splice,dt="[\\x20\\t\\r\\n\\f]",Ct=new RegExp("^"+dt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+dt+"+$","g");m.contains=function(a,f){var v=f&&f.parentNode;return a===v||!!(v&&v.nodeType===1&&(a.contains?a.contains(v):a.compareDocumentPosition&&a.compareDocumentPosition(v)&16))};var me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Le(a,f){return f?a==="\0"?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a}m.escapeSelector=function(a){return(a+"").replace(me,Le)};var Ve=F,qe=k;(function(){var a,f,v,w,R,O=qe,M,te,K,fe,Re,Oe=m.expando,be=0,Fe=0,tt=Dn(),_t=Dn(),Ot=Dn(),_n=Dn(),an=function(Y,le){return Y===le&&(R=!0),0},_r="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Rr="(?:\\\\[\\da-fA-F]{1,6}"+dt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ht="\\["+dt+"*("+Rr+")(?:"+dt+"*([*^$|!~]?=)"+dt+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Rr+"))|)"+dt+"*\\]",Ir=":("+Rr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ht+")*)|.*)\\)|)",Ut=new RegExp(dt+"+","g"),Zt=new RegExp("^"+dt+"*,"+dt+"*"),qi=new RegExp("^"+dt+"*([>+~]|"+dt+")"+dt+"*"),Xi=new RegExp(dt+"|>"),pr=new RegExp(Ir),b=new RegExp("^"+Rr+"$"),_={ID:new RegExp("^#("+Rr+")"),CLASS:new RegExp("^\\.("+Rr+")"),TAG:new RegExp("^("+Rr+"|[*])"),ATTR:new RegExp("^"+Ht),PSEUDO:new RegExp("^"+Ir),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+dt+"*(even|odd|(([+-]|)(\\d*)n|)"+dt+"*(?:([+-]|)"+dt+"*(\\d+)|))"+dt+"*\\)|)","i"),bool:new RegExp("^(?:"+_r+")$","i"),needsContext:new RegExp("^"+dt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+dt+"*((?:-\\d)?\\d*)"+dt+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,De=new RegExp("\\\\[\\da-fA-F]{1,6}"+dt+"?|\\\\([^\\r\\n\\f])","g"),We=function(Y,le){var xe="0x"+Y.slice(1)-65536;return le||(xe<0?String.fromCharCode(xe+65536):String.fromCharCode(xe>>10|55296,xe&1023|56320))},ft=function(){Ki()},Mt=Di(function(Y){return Y.disabled===!0&&ke(Y,"fieldset")},{dir:"parentNode",next:"legend"});function kt(){try{return M.activeElement}catch{}}try{O.apply(s=l.call(Ve.childNodes),Ve.childNodes),s[Ve.childNodes.length].nodeType}catch{O={apply:function(le,xe){qe.apply(le,l.call(xe))},call:function(le){qe.apply(le,l.call(arguments,1))}}}function bt(Y,le,xe,we){var z,ae,oe,Ae,Me,nt,rt,et=le&&le.ownerDocument,Dt=le?le.nodeType:9;if(xe=xe||[],typeof Y!="string"||!Y||Dt!==1&&Dt!==9&&Dt!==11)return xe;if(!we&&(Ki(le),le=le||M,K)){if(Dt!==11&&(Me=ge.exec(Y)))if(z=Me[1]){if(Dt===9)if(oe=le.getElementById(z)){if(oe.id===z)return O.call(xe,oe),xe}else return xe;else if(et&&(oe=et.getElementById(z))&&bt.contains(le,oe)&&oe.id===z)return O.call(xe,oe),xe}else{if(Me[2])return O.apply(xe,le.getElementsByTagName(Y)),xe;if((z=Me[3])&&le.getElementsByClassName)return O.apply(xe,le.getElementsByClassName(z)),xe}if(!_n[Y+" "]&&(!fe||!fe.test(Y))){if(rt=Y,et=le,Dt===1&&(Xi.test(Y)||qi.test(Y))){for(et=ve.test(Y)&&Za(le.parentNode)||le,(et!=le||!re.scope)&&((Ae=le.getAttribute("id"))?Ae=m.escapeSelector(Ae):le.setAttribute("id",Ae=Oe)),nt=No(Y),ae=nt.length;ae--;)nt[ae]=(Ae?"#"+Ae:":scope")+" "+ui(nt[ae]);rt=nt.join(",")}try{return O.apply(xe,et.querySelectorAll(rt)),xe}catch{_n(Y,!0)}finally{Ae===Oe&&le.removeAttribute("id")}}}return _a(Y.replace(Ct,"$1"),le,xe,we)}function Dn(){var Y=[];function le(xe,we){return Y.push(xe+" ")>f.cacheLength&&delete le[Y.shift()],le[xe+" "]=we}return le}function vn(Y){return Y[Oe]=!0,Y}function Nn(Y){var le=M.createElement("fieldset");try{return!!Y(le)}catch{return!1}finally{le.parentNode&&le.parentNode.removeChild(le),le=null}}function Mo(Y){return function(le){return ke(le,"input")&&le.type===Y}}function Ea(Y){return function(le){return(ke(le,"input")||ke(le,"button"))&&le.type===Y}}function Fo(Y){return function(le){return"form"in le?le.parentNode&&le.disabled===!1?"label"in le?"label"in le.parentNode?le.parentNode.disabled===Y:le.disabled===Y:le.isDisabled===Y||le.isDisabled!==!Y&&Mt(le)===Y:le.disabled===Y:"label"in le?le.disabled===Y:!1}}function Vr(Y){return vn(function(le){return le=+le,vn(function(xe,we){for(var z,ae=Y([],xe.length,le),oe=ae.length;oe--;)xe[z=ae[oe]]&&(xe[z]=!(we[z]=xe[z]))})})}function Za(Y){return Y&&typeof Y.getElementsByTagName<"u"&&Y}function Ki(Y){var le,xe=Y?Y.ownerDocument||Y:Ve;return xe==M||xe.nodeType!==9||!xe.documentElement||(M=xe,te=M.documentElement,K=!m.isXMLDoc(M),Re=te.matches||te.webkitMatchesSelector||te.msMatchesSelector,te.msMatchesSelector&&Ve!=M&&(le=M.defaultView)&&le.top!==le&&le.addEventListener("unload",ft),re.getById=Nn(function(we){return te.appendChild(we).id=m.expando,!M.getElementsByName||!M.getElementsByName(m.expando).length}),re.disconnectedMatch=Nn(function(we){return Re.call(we,"*")}),re.scope=Nn(function(){return M.querySelectorAll(":scope")}),re.cssHas=Nn(function(){try{return M.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),re.getById?(f.filter.ID=function(we){var z=we.replace(De,We);return function(ae){return ae.getAttribute("id")===z}},f.find.ID=function(we,z){if(typeof z.getElementById<"u"&&K){var ae=z.getElementById(we);return ae?[ae]:[]}}):(f.filter.ID=function(we){var z=we.replace(De,We);return function(ae){var oe=typeof ae.getAttributeNode<"u"&&ae.getAttributeNode("id");return oe&&oe.value===z}},f.find.ID=function(we,z){if(typeof z.getElementById<"u"&&K){var ae,oe,Ae,Me=z.getElementById(we);if(Me){if(ae=Me.getAttributeNode("id"),ae&&ae.value===we)return[Me];for(Ae=z.getElementsByName(we),oe=0;Me=Ae[oe++];)if(ae=Me.getAttributeNode("id"),ae&&ae.value===we)return[Me]}return[]}}),f.find.TAG=function(we,z){return typeof z.getElementsByTagName<"u"?z.getElementsByTagName(we):z.querySelectorAll(we)},f.find.CLASS=function(we,z){if(typeof z.getElementsByClassName<"u"&&K)return z.getElementsByClassName(we)},fe=[],Nn(function(we){var z;te.appendChild(we).innerHTML="<a id='"+Oe+"' href='' disabled='disabled'></a><select id='"+Oe+"-\r\\' disabled='disabled'><option selected=''></option></select>",we.querySelectorAll("[selected]").length||fe.push("\\["+dt+"*(?:value|"+_r+")"),we.querySelectorAll("[id~="+Oe+"-]").length||fe.push("~="),we.querySelectorAll("a#"+Oe+"+*").length||fe.push(".#.+[+~]"),we.querySelectorAll(":checked").length||fe.push(":checked"),z=M.createElement("input"),z.setAttribute("type","hidden"),we.appendChild(z).setAttribute("name","D"),te.appendChild(we).disabled=!0,we.querySelectorAll(":disabled").length!==2&&fe.push(":enabled",":disabled"),z=M.createElement("input"),z.setAttribute("name",""),we.appendChild(z),we.querySelectorAll("[name='']").length||fe.push("\\["+dt+"*name"+dt+"*="+dt+`*(?:''|"")`)}),re.cssHas||fe.push(":has"),fe=fe.length&&new RegExp(fe.join("|")),an=function(we,z){if(we===z)return R=!0,0;var ae=!we.compareDocumentPosition-!z.compareDocumentPosition;return ae||(ae=(we.ownerDocument||we)==(z.ownerDocument||z)?we.compareDocumentPosition(z):1,ae&1||!re.sortDetached&&z.compareDocumentPosition(we)===ae?we===M||we.ownerDocument==Ve&&bt.contains(Ve,we)?-1:z===M||z.ownerDocument==Ve&&bt.contains(Ve,z)?1:w?C.call(w,we)-C.call(w,z):0:ae&4?-1:1)}),M}bt.matches=function(Y,le){return bt(Y,null,null,le)},bt.matchesSelector=function(Y,le){if(Ki(Y),K&&!_n[le+" "]&&(!fe||!fe.test(le)))try{var xe=Re.call(Y,le);if(xe||re.disconnectedMatch||Y.document&&Y.document.nodeType!==11)return xe}catch{_n(le,!0)}return bt(le,M,null,[Y]).length>0},bt.contains=function(Y,le){return(Y.ownerDocument||Y)!=M&&Ki(Y),m.contains(Y,le)},bt.attr=function(Y,le){(Y.ownerDocument||Y)!=M&&Ki(Y);var xe=f.attrHandle[le.toLowerCase()],we=xe&&L.call(f.attrHandle,le.toLowerCase())?xe(Y,le,!K):void 0;return we!==void 0?we:Y.getAttribute(le)},bt.error=function(Y){throw new Error("Syntax error, unrecognized expression: "+Y)},m.uniqueSort=function(Y){var le,xe=[],we=0,z=0;if(R=!re.sortStable,w=!re.sortStable&&l.call(Y,0),Et.call(Y,an),R){for(;le=Y[z++];)le===Y[z]&&(we=xe.push(z));for(;we--;)vt.call(Y,xe[we],1)}return w=null,Y},m.fn.uniqueSort=function(){return this.pushStack(m.uniqueSort(l.apply(this)))},f=m.expr={cacheLength:50,createPseudo:vn,match:_,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Y){return Y[1]=Y[1].replace(De,We),Y[3]=(Y[3]||Y[4]||Y[5]||"").replace(De,We),Y[2]==="~="&&(Y[3]=" "+Y[3]+" "),Y.slice(0,4)},CHILD:function(Y){return Y[1]=Y[1].toLowerCase(),Y[1].slice(0,3)==="nth"?(Y[3]||bt.error(Y[0]),Y[4]=+(Y[4]?Y[5]+(Y[6]||1):2*(Y[3]==="even"||Y[3]==="odd")),Y[5]=+(Y[7]+Y[8]||Y[3]==="odd")):Y[3]&&bt.error(Y[0]),Y},PSEUDO:function(Y){var le,xe=!Y[6]&&Y[2];return _.CHILD.test(Y[0])?null:(Y[3]?Y[2]=Y[4]||Y[5]||"":xe&&pr.test(xe)&&(le=No(xe,!0))&&(le=xe.indexOf(")",xe.length-le)-xe.length)&&(Y[0]=Y[0].slice(0,le),Y[2]=xe.slice(0,le)),Y.slice(0,3))}},filter:{TAG:function(Y){var le=Y.replace(De,We).toLowerCase();return Y==="*"?function(){return!0}:function(xe){return ke(xe,le)}},CLASS:function(Y){var le=tt[Y+" "];return le||(le=new RegExp("(^|"+dt+")"+Y+"("+dt+"|$)"))&&tt(Y,function(xe){return le.test(typeof xe.className=="string"&&xe.className||typeof xe.getAttribute<"u"&&xe.getAttribute("class")||"")})},ATTR:function(Y,le,xe){return function(we){var z=bt.attr(we,Y);return z==null?le==="!=":le?(z+="",le==="="?z===xe:le==="!="?z!==xe:le==="^="?xe&&z.indexOf(xe)===0:le==="*="?xe&&z.indexOf(xe)>-1:le==="$="?xe&&z.slice(-xe.length)===xe:le==="~="?(" "+z.replace(Ut," ")+" ").indexOf(xe)>-1:le==="|="?z===xe||z.slice(0,xe.length+1)===xe+"-":!1):!0}},CHILD:function(Y,le,xe,we,z){var ae=Y.slice(0,3)!=="nth",oe=Y.slice(-4)!=="last",Ae=le==="of-type";return we===1&&z===0?function(Me){return!!Me.parentNode}:function(Me,nt,rt){var et,Dt,St,Wt,Rn,Jn=ae!==oe?"nextSibling":"previousSibling",Bn=Me.parentNode,Or=Ae&&Me.nodeName.toLowerCase(),Ai=!rt&&!Ae,At=!1;if(Bn){if(ae){for(;Jn;){for(St=Me;St=St[Jn];)if(Ae?ke(St,Or):St.nodeType===1)return!1;Rn=Jn=Y==="only"&&!Rn&&"nextSibling"}return!0}if(Rn=[oe?Bn.firstChild:Bn.lastChild],oe&&Ai){for(Dt=Bn[Oe]||(Bn[Oe]={}),et=Dt[Y]||[],Wt=et[0]===be&&et[1],At=Wt&&et[2],St=Wt&&Bn.childNodes[Wt];St=++Wt&&St&&St[Jn]||(At=Wt=0)||Rn.pop();)if(St.nodeType===1&&++At&&St===Me){Dt[Y]=[be,Wt,At];break}}else if(Ai&&(Dt=Me[Oe]||(Me[Oe]={}),et=Dt[Y]||[],Wt=et[0]===be&&et[1],At=Wt),At===!1)for(;(St=++Wt&&St&&St[Jn]||(At=Wt=0)||Rn.pop())&&!((Ae?ke(St,Or):St.nodeType===1)&&++At&&(Ai&&(Dt=St[Oe]||(St[Oe]={}),Dt[Y]=[be,At]),St===Me)););return At-=z,At===we||At%we===0&&At/we>=0}}},PSEUDO:function(Y,le){var xe,we=f.pseudos[Y]||f.setFilters[Y.toLowerCase()]||bt.error("unsupported pseudo: "+Y);return we[Oe]?we(le):we.length>1?(xe=[Y,Y,"",le],f.setFilters.hasOwnProperty(Y.toLowerCase())?vn(function(z,ae){for(var oe,Ae=we(z,le),Me=Ae.length;Me--;)oe=C.call(z,Ae[Me]),z[oe]=!(ae[oe]=Ae[Me])}):function(z){return we(z,0,xe)}):we}},pseudos:{not:vn(function(Y){var le=[],xe=[],we=Ta(Y.replace(Ct,"$1"));return we[Oe]?vn(function(z,ae,oe,Ae){for(var Me,nt=we(z,null,Ae,[]),rt=z.length;rt--;)(Me=nt[rt])&&(z[rt]=!(ae[rt]=Me))}):function(z,ae,oe){return le[0]=z,we(le,null,oe,xe),le[0]=null,!xe.pop()}}),has:vn(function(Y){return function(le){return bt(Y,le).length>0}}),contains:vn(function(Y){return Y=Y.replace(De,We),function(le){return(le.textContent||m.text(le)).indexOf(Y)>-1}}),lang:vn(function(Y){return b.test(Y||"")||bt.error("unsupported lang: "+Y),Y=Y.replace(De,We).toLowerCase(),function(le){var xe;do if(xe=K?le.lang:le.getAttribute("xml:lang")||le.getAttribute("lang"))return xe=xe.toLowerCase(),xe===Y||xe.indexOf(Y+"-")===0;while((le=le.parentNode)&&le.nodeType===1);return!1}}),target:function(Y){var le=t.location&&t.location.hash;return le&&le.slice(1)===Y.id},root:function(Y){return Y===te},focus:function(Y){return Y===kt()&&M.hasFocus()&&!!(Y.type||Y.href||~Y.tabIndex)},enabled:Fo(!1),disabled:Fo(!0),checked:function(Y){return ke(Y,"input")&&!!Y.checked||ke(Y,"option")&&!!Y.selected},selected:function(Y){return Y.parentNode&&Y.parentNode.selectedIndex,Y.selected===!0},empty:function(Y){for(Y=Y.firstChild;Y;Y=Y.nextSibling)if(Y.nodeType<6)return!1;return!0},parent:function(Y){return!f.pseudos.empty(Y)},header:function(Y){return V.test(Y.nodeName)},input:function(Y){return N.test(Y.nodeName)},button:function(Y){return ke(Y,"input")&&Y.type==="button"||ke(Y,"button")},text:function(Y){var le;return ke(Y,"input")&&Y.type==="text"&&((le=Y.getAttribute("type"))==null||le.toLowerCase()==="text")},first:Vr(function(){return[0]}),last:Vr(function(Y,le){return[le-1]}),eq:Vr(function(Y,le,xe){return[xe<0?xe+le:xe]}),even:Vr(function(Y,le){for(var xe=0;xe<le;xe+=2)Y.push(xe);return Y}),odd:Vr(function(Y,le){for(var xe=1;xe<le;xe+=2)Y.push(xe);return Y}),lt:Vr(function(Y,le,xe){var we;for(xe<0?we=xe+le:xe>le?we=le:we=xe;--we>=0;)Y.push(we);return Y}),gt:Vr(function(Y,le,xe){for(var we=xe<0?xe+le:xe;++we<le;)Y.push(we);return Y})}},f.pseudos.nth=f.pseudos.eq;for(a in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})f.pseudos[a]=Mo(a);for(a in{submit:!0,reset:!0})f.pseudos[a]=Ea(a);function ka(){}ka.prototype=f.filters=f.pseudos,f.setFilters=new ka;function No(Y,le){var xe,we,z,ae,oe,Ae,Me,nt=_t[Y+" "];if(nt)return le?0:nt.slice(0);for(oe=Y,Ae=[],Me=f.preFilter;oe;){(!xe||(we=Zt.exec(oe)))&&(we&&(oe=oe.slice(we[0].length)||oe),Ae.push(z=[])),xe=!1,(we=qi.exec(oe))&&(xe=we.shift(),z.push({value:xe,type:we[0].replace(Ct," ")}),oe=oe.slice(xe.length));for(ae in f.filter)(we=_[ae].exec(oe))&&(!Me[ae]||(we=Me[ae](we)))&&(xe=we.shift(),z.push({value:xe,type:ae,matches:we}),oe=oe.slice(xe.length));if(!xe)break}return le?oe.length:oe?bt.error(Y):_t(Y,Ae).slice(0)}function ui(Y){for(var le=0,xe=Y.length,we="";le<xe;le++)we+=Y[le].value;return we}function Di(Y,le,xe){var we=le.dir,z=le.next,ae=z||we,oe=xe&&ae==="parentNode",Ae=Fe++;return le.first?function(Me,nt,rt){for(;Me=Me[we];)if(Me.nodeType===1||oe)return Y(Me,nt,rt);return!1}:function(Me,nt,rt){var et,Dt,St=[be,Ae];if(rt){for(;Me=Me[we];)if((Me.nodeType===1||oe)&&Y(Me,nt,rt))return!0}else for(;Me=Me[we];)if(Me.nodeType===1||oe)if(Dt=Me[Oe]||(Me[Oe]={}),z&&ke(Me,z))Me=Me[we]||Me;else{if((et=Dt[ae])&&et[0]===be&&et[1]===Ae)return St[2]=et[2];if(Dt[ae]=St,St[2]=Y(Me,nt,rt))return!0}return!1}}function Qa(Y){return Y.length>1?function(le,xe,we){for(var z=Y.length;z--;)if(!Y[z](le,xe,we))return!1;return!0}:Y[0]}function mu(Y,le,xe){for(var we=0,z=le.length;we<z;we++)bt(Y,le[we],xe);return xe}function Bo(Y,le,xe,we,z){for(var ae,oe=[],Ae=0,Me=Y.length,nt=le!=null;Ae<Me;Ae++)(ae=Y[Ae])&&(!xe||xe(ae,we,z))&&(oe.push(ae),nt&&le.push(Ae));return oe}function Ji(Y,le,xe,we,z,ae){return we&&!we[Oe]&&(we=Ji(we)),z&&!z[Oe]&&(z=Ji(z,ae)),vn(function(oe,Ae,Me,nt){var rt,et,Dt,St,Wt=[],Rn=[],Jn=Ae.length,Bn=oe||mu(le||"*",Me.nodeType?[Me]:Me,[]),Or=Y&&(oe||!le)?Bo(Bn,Wt,Y,Me,nt):Bn;if(xe?(St=z||(oe?Y:Jn||we)?[]:Ae,xe(Or,St,Me,nt)):St=Or,we)for(rt=Bo(St,Rn),we(rt,[],Me,nt),et=rt.length;et--;)(Dt=rt[et])&&(St[Rn[et]]=!(Or[Rn[et]]=Dt));if(oe){if(z||Y){if(z){for(rt=[],et=St.length;et--;)(Dt=St[et])&&rt.push(Or[et]=Dt);z(null,St=[],rt,nt)}for(et=St.length;et--;)(Dt=St[et])&&(rt=z?C.call(oe,Dt):Wt[et])>-1&&(oe[rt]=!(Ae[rt]=Dt))}}else St=Bo(St===Ae?St.splice(Jn,St.length):St),z?z(null,Ae,St,nt):O.apply(Ae,St)})}function nr(Y){for(var le,xe,we,z=Y.length,ae=f.relative[Y[0].type],oe=ae||f.relative[" "],Ae=ae?1:0,Me=Di(function(et){return et===le},oe,!0),nt=Di(function(et){return C.call(le,et)>-1},oe,!0),rt=[function(et,Dt,St){var Wt=!ae&&(St||Dt!=v)||((le=Dt).nodeType?Me(et,Dt,St):nt(et,Dt,St));return le=null,Wt}];Ae<z;Ae++)if(xe=f.relative[Y[Ae].type])rt=[Di(Qa(rt),xe)];else{if(xe=f.filter[Y[Ae].type].apply(null,Y[Ae].matches),xe[Oe]){for(we=++Ae;we<z&&!f.relative[Y[we].type];we++);return Ji(Ae>1&&Qa(rt),Ae>1&&ui(Y.slice(0,Ae-1).concat({value:Y[Ae-2].type===" "?"*":""})).replace(Ct,"$1"),xe,Ae<we&&nr(Y.slice(Ae,we)),we<z&&nr(Y=Y.slice(we)),we<z&&ui(Y))}rt.push(xe)}return Qa(rt)}function es(Y,le){var xe=le.length>0,we=Y.length>0,z=function(ae,oe,Ae,Me,nt){var rt,et,Dt,St=0,Wt="0",Rn=ae&&[],Jn=[],Bn=v,Or=ae||we&&f.find.TAG("*",nt),Ai=be+=Bn==null?1:Math.random()||.1,At=Or.length;for(nt&&(v=oe==M||oe||nt);Wt!==At&&(rt=Or[Wt])!=null;Wt++){if(we&&rt){for(et=0,!oe&&rt.ownerDocument!=M&&(Ki(rt),Ae=!K);Dt=Y[et++];)if(Dt(rt,oe||M,Ae)){O.call(Me,rt);break}nt&&(be=Ai)}xe&&((rt=!Dt&&rt)&&St--,ae&&Rn.push(rt))}if(St+=Wt,xe&&Wt!==St){for(et=0;Dt=le[et++];)Dt(Rn,Jn,oe,Ae);if(ae){if(St>0)for(;Wt--;)Rn[Wt]||Jn[Wt]||(Jn[Wt]=ht.call(Me));Jn=Bo(Jn)}O.apply(Me,Jn),nt&&!ae&&Jn.length>0&&St+le.length>1&&m.uniqueSort(Me)}return nt&&(be=Ai,v=Bn),Rn};return xe?vn(z):z}function Ta(Y,le){var xe,we=[],z=[],ae=Ot[Y+" "];if(!ae){for(le||(le=No(Y)),xe=le.length;xe--;)ae=nr(le[xe]),ae[Oe]?we.push(ae):z.push(ae);ae=Ot(Y,es(z,we)),ae.selector=Y}return ae}function _a(Y,le,xe,we){var z,ae,oe,Ae,Me,nt=typeof Y=="function"&&Y,rt=!we&&No(Y=nt.selector||Y);if(xe=xe||[],rt.length===1){if(ae=rt[0]=rt[0].slice(0),ae.length>2&&(oe=ae[0]).type==="ID"&&le.nodeType===9&&K&&f.relative[ae[1].type]){if(le=(f.find.ID(oe.matches[0].replace(De,We),le)||[])[0],le)nt&&(le=le.parentNode);else return xe;Y=Y.slice(ae.shift().value.length)}for(z=_.needsContext.test(Y)?0:ae.length;z--&&(oe=ae[z],!f.relative[Ae=oe.type]);)if((Me=f.find[Ae])&&(we=Me(oe.matches[0].replace(De,We),ve.test(ae[0].type)&&Za(le.parentNode)||le))){if(ae.splice(z,1),Y=we.length&&ui(ae),!Y)return O.apply(xe,we),xe;break}}return(nt||Ta(Y,rt))(we,le,!K,xe,!le||ve.test(Y)&&Za(le.parentNode)||le),xe}re.sortStable=Oe.split("").sort(an).join("")===Oe,Ki(),re.sortDetached=Nn(function(Y){return Y.compareDocumentPosition(M.createElement("fieldset"))&1}),m.find=bt,m.expr[":"]=m.expr.pseudos,m.unique=m.uniqueSort,bt.compile=Ta,bt.select=_a,bt.setDocument=Ki,bt.tokenize=No,bt.escape=m.escapeSelector,bt.getText=m.text,bt.isXML=m.isXMLDoc,bt.selectors=m.expr,bt.support=m.support,bt.uniqueSort=m.uniqueSort})();var lt=function(a,f,v){for(var w=[],R=v!==void 0;(a=a[f])&&a.nodeType!==9;)if(a.nodeType===1){if(R&&m(a).is(v))break;w.push(a)}return w},Ce=function(a,f){for(var v=[];a;a=a.nextSibling)a.nodeType===1&&a!==f&&v.push(a);return v},Pe=m.expr.match.needsContext,Ye=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Xe(a,f,v){return ne(f)?m.grep(a,function(w,R){return!!f.call(w,R,w)!==v}):f.nodeType?m.grep(a,function(w){return w===f!==v}):typeof f!="string"?m.grep(a,function(w){return C.call(f,w)>-1!==v}):m.filter(f,a,v)}m.filter=function(a,f,v){var w=f[0];return v&&(a=":not("+a+")"),f.length===1&&w.nodeType===1?m.find.matchesSelector(w,a)?[w]:[]:m.find.matches(a,m.grep(f,function(R){return R.nodeType===1}))},m.fn.extend({find:function(a){var f,v,w=this.length,R=this;if(typeof a!="string")return this.pushStack(m(a).filter(function(){for(f=0;f<w;f++)if(m.contains(R[f],this))return!0}));for(v=this.pushStack([]),f=0;f<w;f++)m.find(a,R[f],v);return w>1?m.uniqueSort(v):v},filter:function(a){return this.pushStack(Xe(this,a||[],!1))},not:function(a){return this.pushStack(Xe(this,a||[],!0))},is:function(a){return!!Xe(this,typeof a=="string"&&Pe.test(a)?m(a):a||[],!1).length}});var Qe,Ze=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ke=m.fn.init=function(a,f,v){var w,R;if(!a)return this;if(v=v||Qe,typeof a=="string")if(a[0]==="<"&&a[a.length-1]===">"&&a.length>=3?w=[null,a,null]:w=Ze.exec(a),w&&(w[1]||!f))if(w[1]){if(f=f instanceof m?f[0]:f,m.merge(this,m.parseHTML(w[1],f&&f.nodeType?f.ownerDocument||f:F,!0)),Ye.test(w[1])&&m.isPlainObject(f))for(w in f)ne(this[w])?this[w](f[w]):this.attr(w,f[w]);return this}else return R=F.getElementById(w[2]),R&&(this[0]=R,this.length=1),this;else return!f||f.jquery?(f||v).find(a):this.constructor(f).find(a);else{if(a.nodeType)return this[0]=a,this.length=1,this;if(ne(a))return v.ready!==void 0?v.ready(a):a(m)}return m.makeArray(a,this)};Ke.prototype=m.fn,Qe=m(F);var ct=/^(?:parents|prev(?:Until|All))/,mt={children:!0,contents:!0,next:!0,prev:!0};m.fn.extend({has:function(a){var f=m(a,this),v=f.length;return this.filter(function(){for(var w=0;w<v;w++)if(m.contains(this,f[w]))return!0})},closest:function(a,f){var v,w=0,R=this.length,O=[],M=typeof a!="string"&&m(a);if(!Pe.test(a)){for(;w<R;w++)for(v=this[w];v&&v!==f;v=v.parentNode)if(v.nodeType<11&&(M?M.index(v)>-1:v.nodeType===1&&m.find.matchesSelector(v,a))){O.push(v);break}}return this.pushStack(O.length>1?m.uniqueSort(O):O)},index:function(a){return a?typeof a=="string"?C.call(m(a),this[0]):C.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,f){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(a,f))))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}});function wt(a,f){for(;(a=a[f])&&a.nodeType!==1;);return a}m.each({parent:function(a){var f=a.parentNode;return f&&f.nodeType!==11?f:null},parents:function(a){return lt(a,"parentNode")},parentsUntil:function(a,f,v){return lt(a,"parentNode",v)},next:function(a){return wt(a,"nextSibling")},prev:function(a){return wt(a,"previousSibling")},nextAll:function(a){return lt(a,"nextSibling")},prevAll:function(a){return lt(a,"previousSibling")},nextUntil:function(a,f,v){return lt(a,"nextSibling",v)},prevUntil:function(a,f,v){return lt(a,"previousSibling",v)},siblings:function(a){return Ce((a.parentNode||{}).firstChild,a)},children:function(a){return Ce(a.firstChild)},contents:function(a){return a.contentDocument!=null&&o(a.contentDocument)?a.contentDocument:(ke(a,"template")&&(a=a.content||a),m.merge([],a.childNodes))}},function(a,f){m.fn[a]=function(v,w){var R=m.map(this,f,v);return a.slice(-5)!=="Until"&&(w=v),w&&typeof w=="string"&&(R=m.filter(w,R)),this.length>1&&(mt[a]||m.uniqueSort(R),ct.test(a)&&R.reverse()),this.pushStack(R)}});var gt=/[^\x20\t\r\n\f]+/g;function Tt(a){var f={};return m.each(a.match(gt)||[],function(v,w){f[w]=!0}),f}m.Callbacks=function(a){a=typeof a=="string"?Tt(a):m.extend({},a);var f,v,w,R,O=[],M=[],te=-1,K=function(){for(R=R||a.once,w=f=!0;M.length;te=-1)for(v=M.shift();++te<O.length;)O[te].apply(v[0],v[1])===!1&&a.stopOnFalse&&(te=O.length,v=!1);a.memory||(v=!1),f=!1,R&&(v?O=[]:O="")},fe={add:function(){return O&&(v&&!f&&(te=O.length-1,M.push(v)),function Re(Oe){m.each(Oe,function(be,Fe){ne(Fe)?(!a.unique||!fe.has(Fe))&&O.push(Fe):Fe&&Fe.length&&Ie(Fe)!=="string"&&Re(Fe)})}(arguments),v&&!f&&K()),this},remove:function(){return m.each(arguments,function(Re,Oe){for(var be;(be=m.inArray(Oe,O,be))>-1;)O.splice(be,1),be<=te&&te--}),this},has:function(Re){return Re?m.inArray(Re,O)>-1:O.length>0},empty:function(){return O&&(O=[]),this},disable:function(){return R=M=[],O=v="",this},disabled:function(){return!O},lock:function(){return R=M=[],!v&&!f&&(O=v=""),this},locked:function(){return!!R},fireWith:function(Re,Oe){return R||(Oe=Oe||[],Oe=[Re,Oe.slice?Oe.slice():Oe],M.push(Oe),f||K()),this},fire:function(){return fe.fireWith(this,arguments),this},fired:function(){return!!w}};return fe};function Ge(a){return a}function Ft(a){throw a}function Bt(a,f,v,w){var R;try{a&&ne(R=a.promise)?R.call(a).done(f).fail(v):a&&ne(R=a.then)?R.call(a,f,v):f.apply(void 0,[a].slice(w))}catch(O){v.apply(void 0,[O])}}m.extend({Deferred:function(a){var f=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],v="pending",w={state:function(){return v},always:function(){return R.done(arguments).fail(arguments),this},catch:function(O){return w.then(null,O)},pipe:function(){var O=arguments;return m.Deferred(function(M){m.each(f,function(te,K){var fe=ne(O[K[4]])&&O[K[4]];R[K[1]](function(){var Re=fe&&fe.apply(this,arguments);Re&&ne(Re.promise)?Re.promise().progress(M.notify).done(M.resolve).fail(M.reject):M[K[0]+"With"](this,fe?[Re]:arguments)})}),O=null}).promise()},then:function(O,M,te){var K=0;function fe(Re,Oe,be,Fe){return function(){var tt=this,_t=arguments,Ot=function(){var an,_r;if(!(Re<K)){if(an=be.apply(tt,_t),an===Oe.promise())throw new TypeError("Thenable self-resolution");_r=an&&(typeof an=="object"||typeof an=="function")&&an.then,ne(_r)?Fe?_r.call(an,fe(K,Oe,Ge,Fe),fe(K,Oe,Ft,Fe)):(K++,_r.call(an,fe(K,Oe,Ge,Fe),fe(K,Oe,Ft,Fe),fe(K,Oe,Ge,Oe.notifyWith))):(be!==Ge&&(tt=void 0,_t=[an]),(Fe||Oe.resolveWith)(tt,_t))}},_n=Fe?Ot:function(){try{Ot()}catch(an){m.Deferred.exceptionHook&&m.Deferred.exceptionHook(an,_n.error),Re+1>=K&&(be!==Ft&&(tt=void 0,_t=[an]),Oe.rejectWith(tt,_t))}};Re?_n():(m.Deferred.getErrorHook?_n.error=m.Deferred.getErrorHook():m.Deferred.getStackHook&&(_n.error=m.Deferred.getStackHook()),t.setTimeout(_n))}}return m.Deferred(function(Re){f[0][3].add(fe(0,Re,ne(te)?te:Ge,Re.notifyWith)),f[1][3].add(fe(0,Re,ne(O)?O:Ge)),f[2][3].add(fe(0,Re,ne(M)?M:Ft))}).promise()},promise:function(O){return O!=null?m.extend(O,w):w}},R={};return m.each(f,function(O,M){var te=M[2],K=M[5];w[M[1]]=te.add,K&&te.add(function(){v=K},f[3-O][2].disable,f[3-O][3].disable,f[0][2].lock,f[0][3].lock),te.add(M[3].fire),R[M[0]]=function(){return R[M[0]+"With"](this===R?void 0:this,arguments),this},R[M[0]+"With"]=te.fireWith}),w.promise(R),a&&a.call(R,R),R},when:function(a){var f=arguments.length,v=f,w=Array(v),R=l.call(arguments),O=m.Deferred(),M=function(te){return function(K){w[te]=this,R[te]=arguments.length>1?l.call(arguments):K,--f||O.resolveWith(w,R)}};if(f<=1&&(Bt(a,O.done(M(v)).resolve,O.reject,!f),O.state()==="pending"||ne(R[v]&&R[v].then)))return O.then();for(;v--;)Bt(R[v],M(v),O.reject);return O.promise()}});var Un=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(a,f){t.console&&t.console.warn&&a&&Un.test(a.name)&&t.console.warn("jQuery.Deferred exception: "+a.message,a.stack,f)},m.readyException=function(a){t.setTimeout(function(){throw a})};var ur=m.Deferred();m.fn.ready=function(a){return ur.then(a).catch(function(f){m.readyException(f)}),this},m.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--m.readyWait:m.isReady)||(m.isReady=!0,!(a!==!0&&--m.readyWait>0)&&ur.resolveWith(F,[m]))}}),m.ready.then=ur.then;function Wn(){F.removeEventListener("DOMContentLoaded",Wn),t.removeEventListener("load",Wn),m.ready()}F.readyState==="complete"||F.readyState!=="loading"&&!F.documentElement.doScroll?t.setTimeout(m.ready):(F.addEventListener("DOMContentLoaded",Wn),t.addEventListener("load",Wn));var bn=function(a,f,v,w,R,O,M){var te=0,K=a.length,fe=v==null;if(Ie(v)==="object"){R=!0;for(te in v)bn(a,f,te,v[te],!0,O,M)}else if(w!==void 0&&(R=!0,ne(w)||(M=!0),fe&&(M?(f.call(a,w),f=null):(fe=f,f=function(Re,Oe,be){return fe.call(m(Re),be)})),f))for(;te<K;te++)f(a[te],v,M?w:w.call(a[te],te,f(a[te],v)));return R?a:fe?f.call(a):K?f(a[0],v):O},xi=/^-ms-/,mr=/-([a-z])/g;function qn(a,f){return f.toUpperCase()}function rn(a){return a.replace(xi,"ms-").replace(mr,qn)}var sn=function(a){return a.nodeType===1||a.nodeType===9||!+a.nodeType};function un(){this.expando=m.expando+un.uid++}un.uid=1,un.prototype={cache:function(a){var f=a[this.expando];return f||(f={},sn(a)&&(a.nodeType?a[this.expando]=f:Object.defineProperty(a,this.expando,{value:f,configurable:!0}))),f},set:function(a,f,v){var w,R=this.cache(a);if(typeof f=="string")R[rn(f)]=v;else for(w in f)R[rn(w)]=f[w];return R},get:function(a,f){return f===void 0?this.cache(a):a[this.expando]&&a[this.expando][rn(f)]},access:function(a,f,v){return f===void 0||f&&typeof f=="string"&&v===void 0?this.get(a,f):(this.set(a,f,v),v!==void 0?v:f)},remove:function(a,f){var v,w=a[this.expando];if(w!==void 0){if(f!==void 0)for(Array.isArray(f)?f=f.map(rn):(f=rn(f),f=f in w?[f]:f.match(gt)||[]),v=f.length;v--;)delete w[f[v]];(f===void 0||m.isEmptyObject(w))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var f=a[this.expando];return f!==void 0&&!m.isEmptyObject(f)}};var at=new un,En=new un,Jr=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nn=/[A-Z]/g;function Ci(a){return a==="true"?!0:a==="false"?!1:a==="null"?null:a===+a+""?+a:Jr.test(a)?JSON.parse(a):a}function Ei(a,f,v){var w;if(v===void 0&&a.nodeType===1)if(w="data-"+f.replace(nn,"-$&").toLowerCase(),v=a.getAttribute(w),typeof v=="string"){try{v=Ci(v)}catch{}En.set(a,f,v)}else v=void 0;return v}m.extend({hasData:function(a){return En.hasData(a)||at.hasData(a)},data:function(a,f,v){return En.access(a,f,v)},removeData:function(a,f){En.remove(a,f)},_data:function(a,f,v){return at.access(a,f,v)},_removeData:function(a,f){at.remove(a,f)}}),m.fn.extend({data:function(a,f){var v,w,R,O=this[0],M=O&&O.attributes;if(a===void 0){if(this.length&&(R=En.get(O),O.nodeType===1&&!at.get(O,"hasDataAttrs"))){for(v=M.length;v--;)M[v]&&(w=M[v].name,w.indexOf("data-")===0&&(w=rn(w.slice(5)),Ei(O,w,R[w])));at.set(O,"hasDataAttrs",!0)}return R}return typeof a=="object"?this.each(function(){En.set(this,a)}):bn(this,function(te){var K;if(O&&te===void 0)return K=En.get(O,a),K!==void 0||(K=Ei(O,a),K!==void 0)?K:void 0;this.each(function(){En.set(this,a,te)})},null,f,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){En.remove(this,a)})}}),m.extend({queue:function(a,f,v){var w;if(a)return f=(f||"fx")+"queue",w=at.get(a,f),v&&(!w||Array.isArray(v)?w=at.access(a,f,m.makeArray(v)):w.push(v)),w||[]},dequeue:function(a,f){f=f||"fx";var v=m.queue(a,f),w=v.length,R=v.shift(),O=m._queueHooks(a,f),M=function(){m.dequeue(a,f)};R==="inprogress"&&(R=v.shift(),w--),R&&(f==="fx"&&v.unshift("inprogress"),delete O.stop,R.call(a,M,O)),!w&&O&&O.empty.fire()},_queueHooks:function(a,f){var v=f+"queueHooks";return at.get(a,v)||at.access(a,v,{empty:m.Callbacks("once memory").add(function(){at.remove(a,[f+"queue",v])})})}}),m.fn.extend({queue:function(a,f){var v=2;return typeof a!="string"&&(f=a,a="fx",v--),arguments.length<v?m.queue(this[0],a):f===void 0?this:this.each(function(){var w=m.queue(this,a,f);m._queueHooks(this,a),a==="fx"&&w[0]!=="inprogress"&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,f){var v,w=1,R=m.Deferred(),O=this,M=this.length,te=function(){--w||R.resolveWith(O,[O])};for(typeof a!="string"&&(f=a,a=void 0),a=a||"fx";M--;)v=at.get(O[M],a+"queueHooks"),v&&v.empty&&(w++,v.empty.add(te));return te(),R.promise(f)}});var ki=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,yr=new RegExp("^(?:([+-])=|)("+ki+")([a-z%]*)$","i"),Ln=["Top","Right","Bottom","Left"],br=F.documentElement,lr=function(a){return m.contains(a.ownerDocument,a)},Fr={composed:!0};br.getRootNode&&(lr=function(a){return m.contains(a.ownerDocument,a)||a.getRootNode(Fr)===a.ownerDocument});var Nr=function(a,f){return a=f||a,a.style.display==="none"||a.style.display===""&&lr(a)&&m.css(a,"display")==="none"};function so(a,f,v,w){var R,O,M=20,te=w?function(){return w.cur()}:function(){return m.css(a,f,"")},K=te(),fe=v&&v[3]||(m.cssNumber[f]?"":"px"),Re=a.nodeType&&(m.cssNumber[f]||fe!=="px"&&+K)&&yr.exec(m.css(a,f));if(Re&&Re[3]!==fe){for(K=K/2,fe=fe||Re[3],Re=+K||1;M--;)m.style(a,f,Re+fe),(1-O)*(1-(O=te()/K||.5))<=0&&(M=0),Re=Re/O;Re=Re*2,m.style(a,f,Re+fe),v=v||[]}return v&&(Re=+Re||+K||0,R=v[1]?Re+(v[1]+1)*v[2]:+v[2],w&&(w.unit=fe,w.start=Re,w.end=R)),R}var $n={};function Br(a){var f,v=a.ownerDocument,w=a.nodeName,R=$n[w];return R||(f=v.body.appendChild(v.createElement(w)),R=m.css(f,"display"),f.parentNode.removeChild(f),R==="none"&&(R="block"),$n[w]=R,R)}function Xn(a,f){for(var v,w,R=[],O=0,M=a.length;O<M;O++)w=a[O],w.style&&(v=w.style.display,f?(v==="none"&&(R[O]=at.get(w,"display")||null,R[O]||(w.style.display="")),w.style.display===""&&Nr(w)&&(R[O]=Br(w))):v!=="none"&&(R[O]="none",at.set(w,"display",v)));for(O=0;O<M;O++)R[O]!=null&&(a[O].style.display=R[O]);return a}m.fn.extend({show:function(){return Xn(this,!0)},hide:function(){return Xn(this)},toggle:function(a){return typeof a=="boolean"?a?this.show():this.hide():this.each(function(){Nr(this)?m(this).show():m(this).hide()})}});var Vt=/^(?:checkbox|radio)$/i,Zr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ti=/^$|^module$|\/(?:java|ecma)script/i;(function(){var a=F.createDocumentFragment(),f=a.appendChild(F.createElement("div")),v=F.createElement("input");v.setAttribute("type","radio"),v.setAttribute("checked","checked"),v.setAttribute("name","t"),f.appendChild(v),re.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked,f.innerHTML="<textarea>x</textarea>",re.noCloneChecked=!!f.cloneNode(!0).lastChild.defaultValue,f.innerHTML="<option></option>",re.option=!!f.lastChild})();var kn={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,"",""]};kn.tbody=kn.tfoot=kn.colgroup=kn.caption=kn.thead,kn.th=kn.td,re.option||(kn.optgroup=kn.option=[1,"<select multiple='multiple'>","</select>"]);function ln(a,f){var v;return typeof a.getElementsByTagName<"u"?v=a.getElementsByTagName(f||"*"):typeof a.querySelectorAll<"u"?v=a.querySelectorAll(f||"*"):v=[],f===void 0||f&&ke(a,f)?m.merge([a],v):v}function Qr(a,f){for(var v=0,w=a.length;v<w;v++)at.set(a[v],"globalEval",!f||at.get(f[v],"globalEval"))}var ei=/<|&#?\w+;/;function fn(a,f,v,w,R){for(var O,M,te,K,fe,Re,Oe=f.createDocumentFragment(),be=[],Fe=0,tt=a.length;Fe<tt;Fe++)if(O=a[Fe],O||O===0)if(Ie(O)==="object")m.merge(be,O.nodeType?[O]:O);else if(!ei.test(O))be.push(f.createTextNode(O));else{for(M=M||Oe.appendChild(f.createElement("div")),te=(Zr.exec(O)||["",""])[1].toLowerCase(),K=kn[te]||kn._default,M.innerHTML=K[1]+m.htmlPrefilter(O)+K[2],Re=K[0];Re--;)M=M.lastChild;m.merge(be,M.childNodes),M=Oe.firstChild,M.textContent=""}for(Oe.textContent="",Fe=0;O=be[Fe++];){if(w&&m.inArray(O,w)>-1){R&&R.push(O);continue}if(fe=lr(O),M=ln(Oe.appendChild(O),"script"),fe&&Qr(M),v)for(Re=0;O=M[Re++];)Ti.test(O.type||"")&&v.push(O)}return Oe}var $i=/^([^.]*)(?:\.(.+)|)/;function cr(){return!0}function ti(){return!1}function on(a,f,v,w,R,O){var M,te;if(typeof f=="object"){typeof v!="string"&&(w=w||v,v=void 0);for(te in f)on(a,te,v,w,f[te],O);return a}if(w==null&&R==null?(R=v,w=v=void 0):R==null&&(typeof v=="string"?(R=w,w=void 0):(R=w,w=v,v=void 0)),R===!1)R=ti;else if(!R)return a;return O===1&&(M=R,R=function(K){return m().off(K),M.apply(this,arguments)},R.guid=M.guid||(M.guid=m.guid++)),a.each(function(){m.event.add(this,f,R,w,v)})}m.event={global:{},add:function(a,f,v,w,R){var O,M,te,K,fe,Re,Oe,be,Fe,tt,_t,Ot=at.get(a);if(sn(a))for(v.handler&&(O=v,v=O.handler,R=O.selector),R&&m.find.matchesSelector(br,R),v.guid||(v.guid=m.guid++),(K=Ot.events)||(K=Ot.events=Object.create(null)),(M=Ot.handle)||(M=Ot.handle=function(_n){return typeof m<"u"&&m.event.triggered!==_n.type?m.event.dispatch.apply(a,arguments):void 0}),f=(f||"").match(gt)||[""],fe=f.length;fe--;)te=$i.exec(f[fe])||[],Fe=_t=te[1],tt=(te[2]||"").split(".").sort(),Fe&&(Oe=m.event.special[Fe]||{},Fe=(R?Oe.delegateType:Oe.bindType)||Fe,Oe=m.event.special[Fe]||{},Re=m.extend({type:Fe,origType:_t,data:w,handler:v,guid:v.guid,selector:R,needsContext:R&&m.expr.match.needsContext.test(R),namespace:tt.join(".")},O),(be=K[Fe])||(be=K[Fe]=[],be.delegateCount=0,(!Oe.setup||Oe.setup.call(a,w,tt,M)===!1)&&a.addEventListener&&a.addEventListener(Fe,M)),Oe.add&&(Oe.add.call(a,Re),Re.handler.guid||(Re.handler.guid=v.guid)),R?be.splice(be.delegateCount++,0,Re):be.push(Re),m.event.global[Fe]=!0)},remove:function(a,f,v,w,R){var O,M,te,K,fe,Re,Oe,be,Fe,tt,_t,Ot=at.hasData(a)&&at.get(a);if(!(!Ot||!(K=Ot.events))){for(f=(f||"").match(gt)||[""],fe=f.length;fe--;){if(te=$i.exec(f[fe])||[],Fe=_t=te[1],tt=(te[2]||"").split(".").sort(),!Fe){for(Fe in K)m.event.remove(a,Fe+f[fe],v,w,!0);continue}for(Oe=m.event.special[Fe]||{},Fe=(w?Oe.delegateType:Oe.bindType)||Fe,be=K[Fe]||[],te=te[2]&&new RegExp("(^|\\.)"+tt.join("\\.(?:.*\\.|)")+"(\\.|$)"),M=O=be.length;O--;)Re=be[O],(R||_t===Re.origType)&&(!v||v.guid===Re.guid)&&(!te||te.test(Re.namespace))&&(!w||w===Re.selector||w==="**"&&Re.selector)&&(be.splice(O,1),Re.selector&&be.delegateCount--,Oe.remove&&Oe.remove.call(a,Re));M&&!be.length&&((!Oe.teardown||Oe.teardown.call(a,tt,Ot.handle)===!1)&&m.removeEvent(a,Fe,Ot.handle),delete K[Fe])}m.isEmptyObject(K)&&at.remove(a,"handle events")}},dispatch:function(a){var f,v,w,R,O,M,te=new Array(arguments.length),K=m.event.fix(a),fe=(at.get(this,"events")||Object.create(null))[K.type]||[],Re=m.event.special[K.type]||{};for(te[0]=K,f=1;f<arguments.length;f++)te[f]=arguments[f];if(K.delegateTarget=this,!(Re.preDispatch&&Re.preDispatch.call(this,K)===!1)){for(M=m.event.handlers.call(this,K,fe),f=0;(R=M[f++])&&!K.isPropagationStopped();)for(K.currentTarget=R.elem,v=0;(O=R.handlers[v++])&&!K.isImmediatePropagationStopped();)(!K.rnamespace||O.namespace===!1||K.rnamespace.test(O.namespace))&&(K.handleObj=O,K.data=O.data,w=((m.event.special[O.origType]||{}).handle||O.handler).apply(R.elem,te),w!==void 0&&(K.result=w)===!1&&(K.preventDefault(),K.stopPropagation()));return Re.postDispatch&&Re.postDispatch.call(this,K),K.result}},handlers:function(a,f){var v,w,R,O,M,te=[],K=f.delegateCount,fe=a.target;if(K&&fe.nodeType&&!(a.type==="click"&&a.button>=1)){for(;fe!==this;fe=fe.parentNode||this)if(fe.nodeType===1&&!(a.type==="click"&&fe.disabled===!0)){for(O=[],M={},v=0;v<K;v++)w=f[v],R=w.selector+" ",M[R]===void 0&&(M[R]=w.needsContext?m(R,this).index(fe)>-1:m.find(R,this,null,[fe]).length),M[R]&&O.push(w);O.length&&te.push({elem:fe,handlers:O})}}return fe=this,K<f.length&&te.push({elem:fe,handlers:f.slice(K)}),te},addProp:function(a,f){Object.defineProperty(m.Event.prototype,a,{enumerable:!0,configurable:!0,get:ne(f)?function(){if(this.originalEvent)return f(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(v){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:v})}})},fix:function(a){return a[m.expando]?a:new m.Event(a)},special:{load:{noBubble:!0},click:{setup:function(a){var f=this||a;return Vt.test(f.type)&&f.click&&ke(f,"input")&&li(f,"click",!0),!1},trigger:function(a){var f=this||a;return Vt.test(f.type)&&f.click&&ke(f,"input")&&li(f,"click"),!0},_default:function(a){var f=a.target;return Vt.test(f.type)&&f.click&&ke(f,"input")&&at.get(f,"click")||ke(f,"a")}},beforeunload:{postDispatch:function(a){a.result!==void 0&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}};function li(a,f,v){if(!v){at.get(a,f)===void 0&&m.event.add(a,f,cr);return}at.set(a,f,!1),m.event.add(a,f,{namespace:!1,handler:function(w){var R,O=at.get(this,f);if(w.isTrigger&1&&this[f]){if(O)(m.event.special[f]||{}).delegateType&&w.stopPropagation();else if(O=l.call(arguments),at.set(this,f,O),this[f](),R=at.get(this,f),at.set(this,f,!1),O!==R)return w.stopImmediatePropagation(),w.preventDefault(),R}else O&&(at.set(this,f,m.event.trigger(O[0],O.slice(1),this)),w.stopPropagation(),w.isImmediatePropagationStopped=cr)}})}m.removeEvent=function(a,f,v){a.removeEventListener&&a.removeEventListener(f,v)},m.Event=function(a,f){if(!(this instanceof m.Event))return new m.Event(a,f);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.defaultPrevented===void 0&&a.returnValue===!1?cr:ti,this.target=a.target&&a.target.nodeType===3?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,f&&m.extend(this,f),this.timeStamp=a&&a.timeStamp||Date.now(),this[m.expando]=!0},m.Event.prototype={constructor:m.Event,isDefaultPrevented:ti,isPropagationStopped:ti,isImmediatePropagationStopped:ti,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=cr,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=cr,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=cr,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},m.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},m.event.addProp),m.each({focus:"focusin",blur:"focusout"},function(a,f){function v(w){if(F.documentMode){var R=at.get(this,"handle"),O=m.event.fix(w);O.type=w.type==="focusin"?"focus":"blur",O.isSimulated=!0,R(w),O.target===O.currentTarget&&R(O)}else m.event.simulate(f,w.target,m.event.fix(w))}m.event.special[a]={setup:function(){var w;if(li(this,a,!0),F.documentMode)w=at.get(this,f),w||this.addEventListener(f,v),at.set(this,f,(w||0)+1);else return!1},trigger:function(){return li(this,a),!0},teardown:function(){var w;if(F.documentMode)w=at.get(this,f)-1,w?at.set(this,f,w):(this.removeEventListener(f,v),at.remove(this,f));else return!1},_default:function(w){return at.get(w.target,a)},delegateType:f},m.event.special[f]={setup:function(){var w=this.ownerDocument||this.document||this,R=F.documentMode?this:w,O=at.get(R,f);O||(F.documentMode?this.addEventListener(f,v):w.addEventListener(a,v,!0)),at.set(R,f,(O||0)+1)},teardown:function(){var w=this.ownerDocument||this.document||this,R=F.documentMode?this:w,O=at.get(R,f)-1;O?at.set(R,f,O):(F.documentMode?this.removeEventListener(f,v):w.removeEventListener(a,v,!0),at.remove(R,f))}}}),m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,f){m.event.special[a]={delegateType:f,bindType:f,handle:function(v){var w,R=this,O=v.relatedTarget,M=v.handleObj;return(!O||O!==R&&!m.contains(R,O))&&(v.type=M.origType,w=M.handler.apply(this,arguments),v.type=f),w}}}),m.fn.extend({on:function(a,f,v,w){return on(this,a,f,v,w)},one:function(a,f,v,w){return on(this,a,f,v,w,1)},off:function(a,f,v){var w,R;if(a&&a.preventDefault&&a.handleObj)return w=a.handleObj,m(a.delegateTarget).off(w.namespace?w.origType+"."+w.namespace:w.origType,w.selector,w.handler),this;if(typeof a=="object"){for(R in a)this.off(R,f,a[R]);return this}return(f===!1||typeof f=="function")&&(v=f,f=void 0),v===!1&&(v=ti),this.each(function(){m.event.remove(this,a,v,f)})}});var Zo=/<script|<style|<link/i,Qo=/checked\s*(?:[^=]|=\s*.checked.)/i,jr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zi(a,f){return ke(a,"table")&&ke(f.nodeType!==11?f:f.firstChild,"tr")&&m(a).children("tbody")[0]||a}function Yi(a){return a.type=(a.getAttribute("type")!==null)+"/"+a.type,a}function uo(a){return(a.type||"").slice(0,5)==="true/"?a.type=a.type.slice(5):a.removeAttribute("type"),a}function ci(a,f){var v,w,R,O,M,te,K;if(f.nodeType===1){if(at.hasData(a)&&(O=at.get(a),K=O.events,K)){at.remove(f,"handle events");for(R in K)for(v=0,w=K[R].length;v<w;v++)m.event.add(f,R,K[R][v])}En.hasData(a)&&(M=En.access(a),te=m.extend({},M),En.set(f,te))}}function ni(a,f){var v=f.nodeName.toLowerCase();v==="input"&&Vt.test(a.type)?f.checked=a.checked:(v==="input"||v==="textarea")&&(f.defaultValue=a.defaultValue)}function fi(a,f,v,w){f=g(f);var R,O,M,te,K,fe,Re=0,Oe=a.length,be=Oe-1,Fe=f[0],tt=ne(Fe);if(tt||Oe>1&&typeof Fe=="string"&&!re.checkClone&&Qo.test(Fe))return a.each(function(_t){var Ot=a.eq(_t);tt&&(f[0]=Fe.call(this,_t,Ot.html())),fi(Ot,f,v,w)});if(Oe&&(R=fn(f,a[0].ownerDocument,!1,a,w),O=R.firstChild,R.childNodes.length===1&&(R=O),O||w)){for(M=m.map(ln(R,"script"),Yi),te=M.length;Re<Oe;Re++)K=R,Re!==be&&(K=m.clone(K,!0,!0),te&&m.merge(M,ln(K,"script"))),v.call(a[Re],K,Re);if(te)for(fe=M[M.length-1].ownerDocument,m.map(M,uo),Re=0;Re<te;Re++)K=M[Re],Ti.test(K.type||"")&&!at.access(K,"globalEval")&&m.contains(fe,K)&&(K.src&&(K.type||"").toLowerCase()!=="module"?m._evalUrl&&!K.noModule&&m._evalUrl(K.src,{nonce:K.nonce||K.getAttribute("nonce")},fe):ye(K.textContent.replace(jr,""),K,fe))}return a}function Vi(a,f,v){for(var w,R=f?m.filter(f,a):a,O=0;(w=R[O])!=null;O++)!v&&w.nodeType===1&&m.cleanData(ln(w)),w.parentNode&&(v&&lr(w)&&Qr(ln(w,"script")),w.parentNode.removeChild(w));return a}m.extend({htmlPrefilter:function(a){return a},clone:function(a,f,v){var w,R,O,M,te=a.cloneNode(!0),K=lr(a);if(!re.noCloneChecked&&(a.nodeType===1||a.nodeType===11)&&!m.isXMLDoc(a))for(M=ln(te),O=ln(a),w=0,R=O.length;w<R;w++)ni(O[w],M[w]);if(f)if(v)for(O=O||ln(a),M=M||ln(te),w=0,R=O.length;w<R;w++)ci(O[w],M[w]);else ci(a,te);return M=ln(te,"script"),M.length>0&&Qr(M,!K&&ln(a,"script")),te},cleanData:function(a){for(var f,v,w,R=m.event.special,O=0;(v=a[O])!==void 0;O++)if(sn(v)){if(f=v[at.expando]){if(f.events)for(w in f.events)R[w]?m.event.remove(v,w):m.removeEvent(v,w,f.handle);v[at.expando]=void 0}v[En.expando]&&(v[En.expando]=void 0)}}}),m.fn.extend({detach:function(a){return Vi(this,a,!0)},remove:function(a){return Vi(this,a)},text:function(a){return bn(this,function(f){return f===void 0?m.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=f)})},null,a,arguments.length)},append:function(){return fi(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=zi(this,a);f.appendChild(a)}})},prepend:function(){return fi(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=zi(this,a);f.insertBefore(a,f.firstChild)}})},before:function(){return fi(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return fi(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,f=0;(a=this[f])!=null;f++)a.nodeType===1&&(m.cleanData(ln(a,!1)),a.textContent="");return this},clone:function(a,f){return a=a??!1,f=f??a,this.map(function(){return m.clone(this,a,f)})},html:function(a){return bn(this,function(f){var v=this[0]||{},w=0,R=this.length;if(f===void 0&&v.nodeType===1)return v.innerHTML;if(typeof f=="string"&&!Zo.test(f)&&!kn[(Zr.exec(f)||["",""])[1].toLowerCase()]){f=m.htmlPrefilter(f);try{for(;w<R;w++)v=this[w]||{},v.nodeType===1&&(m.cleanData(ln(v,!1)),v.innerHTML=f);v=0}catch{}}v&&this.empty().append(f)},null,a,arguments.length)},replaceWith:function(){var a=[];return fi(this,arguments,function(f){var v=this.parentNode;m.inArray(this,a)<0&&(m.cleanData(ln(this)),v&&v.replaceChild(f,this))},a)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,f){m.fn[a]=function(v){for(var w,R=[],O=m(v),M=O.length-1,te=0;te<=M;te++)w=te===M?this:this.clone(!0),m(O[te])[f](w),k.apply(R,w.get());return this.pushStack(R)}});var di=new RegExp("^("+ki+")(?!px)[a-z%]+$","i"),Hr=/^--/,fr=function(a){var f=a.ownerDocument.defaultView;return(!f||!f.opener)&&(f=t),f.getComputedStyle(a)},wr=function(a,f,v){var w,R,O={};for(R in f)O[R]=a.style[R],a.style[R]=f[R];w=v.call(a);for(R in f)a.style[R]=O[R];return w},Ur=new RegExp(Ln.join("|"),"i");(function(){function a(){if(fe){K.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",fe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",br.appendChild(K).appendChild(fe);var Re=t.getComputedStyle(fe);v=Re.top!=="1%",te=f(Re.marginLeft)===12,fe.style.right="60%",O=f(Re.right)===36,w=f(Re.width)===36,fe.style.position="absolute",R=f(fe.offsetWidth/3)===12,br.removeChild(K),fe=null}}function f(Re){return Math.round(parseFloat(Re))}var v,w,R,O,M,te,K=F.createElement("div"),fe=F.createElement("div");fe.style&&(fe.style.backgroundClip="content-box",fe.cloneNode(!0).style.backgroundClip="",re.clearCloneStyle=fe.style.backgroundClip==="content-box",m.extend(re,{boxSizingReliable:function(){return a(),w},pixelBoxStyles:function(){return a(),O},pixelPosition:function(){return a(),v},reliableMarginLeft:function(){return a(),te},scrollboxSize:function(){return a(),R},reliableTrDimensions:function(){var Re,Oe,be,Fe;return M==null&&(Re=F.createElement("table"),Oe=F.createElement("tr"),be=F.createElement("div"),Re.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Oe.style.cssText="box-sizing:content-box;border:1px solid",Oe.style.height="1px",be.style.height="9px",be.style.display="block",br.appendChild(Re).appendChild(Oe).appendChild(be),Fe=t.getComputedStyle(Oe),M=parseInt(Fe.height,10)+parseInt(Fe.borderTopWidth,10)+parseInt(Fe.borderBottomWidth,10)===Oe.offsetHeight,br.removeChild(Re)),M}}))})();function Sr(a,f,v){var w,R,O,M,te=Hr.test(f),K=a.style;return v=v||fr(a),v&&(M=v.getPropertyValue(f)||v[f],te&&M&&(M=M.replace(Ct,"$1")||void 0),M===""&&!lr(a)&&(M=m.style(a,f)),!re.pixelBoxStyles()&&di.test(M)&&Ur.test(f)&&(w=K.width,R=K.minWidth,O=K.maxWidth,K.minWidth=K.maxWidth=K.width=M,M=v.width,K.width=w,K.minWidth=R,K.maxWidth=O)),M!==void 0?M+"":M}function Mn(a,f){return{get:function(){if(a()){delete this.get;return}return(this.get=f).apply(this,arguments)}}}var cn=["Webkit","Moz","ms"],xr=F.createElement("div").style,dr={};function Tn(a){for(var f=a[0].toUpperCase()+a.slice(1),v=cn.length;v--;)if(a=cn[v]+f,a in xr)return a}function ri(a){var f=m.cssProps[a]||dr[a];return f||(a in xr?a:dr[a]=Tn(a)||a)}var Cr=/^(none|table(?!-c[ea]).+)/,Wr={position:"absolute",visibility:"hidden",display:"block"},zn={letterSpacing:"0",fontWeight:"400"};function $r(a,f,v){var w=yr.exec(f);return w?Math.max(0,w[2]-(v||0))+(w[3]||"px"):f}function zr(a,f,v,w,R,O){var M=f==="width"?1:0,te=0,K=0,fe=0;if(v===(w?"border":"content"))return 0;for(;M<4;M+=2)v==="margin"&&(fe+=m.css(a,v+Ln[M],!0,R)),w?(v==="content"&&(K-=m.css(a,"padding"+Ln[M],!0,R)),v!=="margin"&&(K-=m.css(a,"border"+Ln[M]+"Width",!0,R))):(K+=m.css(a,"padding"+Ln[M],!0,R),v!=="padding"?K+=m.css(a,"border"+Ln[M]+"Width",!0,R):te+=m.css(a,"border"+Ln[M]+"Width",!0,R));return!w&&O>=0&&(K+=Math.max(0,Math.ceil(a["offset"+f[0].toUpperCase()+f.slice(1)]-O-K-te-.5))||0),K+fe}function _i(a,f,v){var w=fr(a),R=!re.boxSizingReliable()||v,O=R&&m.css(a,"boxSizing",!1,w)==="border-box",M=O,te=Sr(a,f,w),K="offset"+f[0].toUpperCase()+f.slice(1);if(di.test(te)){if(!v)return te;te="auto"}return(!re.boxSizingReliable()&&O||!re.reliableTrDimensions()&&ke(a,"tr")||te==="auto"||!parseFloat(te)&&m.css(a,"display",!1,w)==="inline")&&a.getClientRects().length&&(O=m.css(a,"boxSizing",!1,w)==="border-box",M=K in a,M&&(te=a[K])),te=parseFloat(te)||0,te+zr(a,f,v||(O?"border":"content"),M,w,te)+"px"}m.extend({cssHooks:{opacity:{get:function(a,f){if(f){var v=Sr(a,"opacity");return v===""?"1":v}}}},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(a,f,v,w){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var R,O,M,te=rn(f),K=Hr.test(f),fe=a.style;if(K||(f=ri(te)),M=m.cssHooks[f]||m.cssHooks[te],v!==void 0){if(O=typeof v,O==="string"&&(R=yr.exec(v))&&R[1]&&(v=so(a,f,R),O="number"),v==null||v!==v)return;O==="number"&&!K&&(v+=R&&R[3]||(m.cssNumber[te]?"":"px")),!re.clearCloneStyle&&v===""&&f.indexOf("background")===0&&(fe[f]="inherit"),(!M||!("set"in M)||(v=M.set(a,v,w))!==void 0)&&(K?fe.setProperty(f,v):fe[f]=v)}else return M&&"get"in M&&(R=M.get(a,!1,w))!==void 0?R:fe[f]}},css:function(a,f,v,w){var R,O,M,te=rn(f),K=Hr.test(f);return K||(f=ri(te)),M=m.cssHooks[f]||m.cssHooks[te],M&&"get"in M&&(R=M.get(a,!0,v)),R===void 0&&(R=Sr(a,f,w)),R==="normal"&&f in zn&&(R=zn[f]),v===""||v?(O=parseFloat(R),v===!0||isFinite(O)?O||0:R):R}}),m.each(["height","width"],function(a,f){m.cssHooks[f]={get:function(v,w,R){if(w)return Cr.test(m.css(v,"display"))&&(!v.getClientRects().length||!v.getBoundingClientRect().width)?wr(v,Wr,function(){return _i(v,f,R)}):_i(v,f,R)},set:function(v,w,R){var O,M=fr(v),te=!re.scrollboxSize()&&M.position==="absolute",K=te||R,fe=K&&m.css(v,"boxSizing",!1,M)==="border-box",Re=R?zr(v,f,R,fe,M):0;return fe&&te&&(Re-=Math.ceil(v["offset"+f[0].toUpperCase()+f.slice(1)]-parseFloat(M[f])-zr(v,f,"border",!1,M)-.5)),Re&&(O=yr.exec(w))&&(O[3]||"px")!=="px"&&(v.style[f]=w,w=m.css(v,f)),$r(v,w,Re)}}}),m.cssHooks.marginLeft=Mn(re.reliableMarginLeft,function(a,f){if(f)return(parseFloat(Sr(a,"marginLeft"))||a.getBoundingClientRect().left-wr(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),m.each({margin:"",padding:"",border:"Width"},function(a,f){m.cssHooks[a+f]={expand:function(v){for(var w=0,R={},O=typeof v=="string"?v.split(" "):[v];w<4;w++)R[a+Ln[w]+f]=O[w]||O[w-2]||O[0];return R}},a!=="margin"&&(m.cssHooks[a+f].set=$r)}),m.fn.extend({css:function(a,f){return bn(this,function(v,w,R){var O,M,te={},K=0;if(Array.isArray(w)){for(O=fr(v),M=w.length;K<M;K++)te[w[K]]=m.css(v,w[K],!1,O);return te}return R!==void 0?m.style(v,w,R):m.css(v,w)},a,f,arguments.length>1)}});function Cn(a,f,v,w,R){return new Cn.prototype.init(a,f,v,w,R)}m.Tween=Cn,Cn.prototype={constructor:Cn,init:function(a,f,v,w,R,O){this.elem=a,this.prop=v,this.easing=R||m.easing._default,this.options=f,this.start=this.now=this.cur(),this.end=w,this.unit=O||(m.cssNumber[v]?"":"px")},cur:function(){var a=Cn.propHooks[this.prop];return a&&a.get?a.get(this):Cn.propHooks._default.get(this)},run:function(a){var f,v=Cn.propHooks[this.prop];return this.options.duration?this.pos=f=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=f=a,this.now=(this.end-this.start)*f+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),v&&v.set?v.set(this):Cn.propHooks._default.set(this),this}},Cn.prototype.init.prototype=Cn.prototype,Cn.propHooks={_default:{get:function(a){var f;return a.elem.nodeType!==1||a.elem[a.prop]!=null&&a.elem.style[a.prop]==null?a.elem[a.prop]:(f=m.css(a.elem,a.prop,""),!f||f==="auto"?0:f)},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.nodeType===1&&(m.cssHooks[a.prop]||a.elem.style[ri(a.prop)]!=null)?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Cn.propHooks.scrollTop=Cn.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return .5-Math.cos(a*Math.PI)/2},_default:"swing"},m.fx=Cn.prototype.init,m.fx.step={};var hr,er,lo=/^(?:toggle|show|hide)$/,Ri=/queueHooks$/;function Er(){er&&(F.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Er):t.setTimeout(Er,m.fx.interval),m.fx.tick())}function y(){return t.setTimeout(function(){hr=void 0}),hr=Date.now()}function I(a,f){var v,w=0,R={height:a};for(f=f?1:0;w<4;w+=2-f)v=Ln[w],R["margin"+v]=R["padding"+v]=a;return f&&(R.opacity=R.width=a),R}function H(a,f,v){for(var w,R=(ce.tweeners[f]||[]).concat(ce.tweeners["*"]),O=0,M=R.length;O<M;O++)if(w=R[O].call(v,f,a))return w}function G(a,f,v){var w,R,O,M,te,K,fe,Re,Oe="width"in f||"height"in f,be=this,Fe={},tt=a.style,_t=a.nodeType&&Nr(a),Ot=at.get(a,"fxshow");v.queue||(M=m._queueHooks(a,"fx"),M.unqueued==null&&(M.unqueued=0,te=M.empty.fire,M.empty.fire=function(){M.unqueued||te()}),M.unqueued++,be.always(function(){be.always(function(){M.unqueued--,m.queue(a,"fx").length||M.empty.fire()})}));for(w in f)if(R=f[w],lo.test(R)){if(delete f[w],O=O||R==="toggle",R===(_t?"hide":"show"))if(R==="show"&&Ot&&Ot[w]!==void 0)_t=!0;else continue;Fe[w]=Ot&&Ot[w]||m.style(a,w)}if(K=!m.isEmptyObject(f),!(!K&&m.isEmptyObject(Fe))){Oe&&a.nodeType===1&&(v.overflow=[tt.overflow,tt.overflowX,tt.overflowY],fe=Ot&&Ot.display,fe==null&&(fe=at.get(a,"display")),Re=m.css(a,"display"),Re==="none"&&(fe?Re=fe:(Xn([a],!0),fe=a.style.display||fe,Re=m.css(a,"display"),Xn([a]))),(Re==="inline"||Re==="inline-block"&&fe!=null)&&m.css(a,"float")==="none"&&(K||(be.done(function(){tt.display=fe}),fe==null&&(Re=tt.display,fe=Re==="none"?"":Re)),tt.display="inline-block")),v.overflow&&(tt.overflow="hidden",be.always(function(){tt.overflow=v.overflow[0],tt.overflowX=v.overflow[1],tt.overflowY=v.overflow[2]})),K=!1;for(w in Fe)K||(Ot?"hidden"in Ot&&(_t=Ot.hidden):Ot=at.access(a,"fxshow",{display:fe}),O&&(Ot.hidden=!_t),_t&&Xn([a],!0),be.done(function(){_t||Xn([a]),at.remove(a,"fxshow");for(w in Fe)m.style(a,w,Fe[w])})),K=H(_t?Ot[w]:0,w,be),w in Ot||(Ot[w]=K.start,_t&&(K.end=K.start,K.start=0))}}function Se(a,f){var v,w,R,O,M;for(v in a)if(w=rn(v),R=f[w],O=a[v],Array.isArray(O)&&(R=O[1],O=a[v]=O[0]),v!==w&&(a[w]=O,delete a[v]),M=m.cssHooks[w],M&&"expand"in M){O=M.expand(O),delete a[w];for(v in O)v in a||(a[v]=O[v],f[v]=R)}else f[w]=R}function ce(a,f,v){var w,R,O=0,M=ce.prefilters.length,te=m.Deferred().always(function(){delete K.elem}),K=function(){if(R)return!1;for(var Oe=hr||y(),be=Math.max(0,fe.startTime+fe.duration-Oe),Fe=be/fe.duration||0,tt=1-Fe,_t=0,Ot=fe.tweens.length;_t<Ot;_t++)fe.tweens[_t].run(tt);return te.notifyWith(a,[fe,tt,be]),tt<1&&Ot?be:(Ot||te.notifyWith(a,[fe,1,0]),te.resolveWith(a,[fe]),!1)},fe=te.promise({elem:a,props:m.extend({},f),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},v),originalProperties:f,originalOptions:v,startTime:hr||y(),duration:v.duration,tweens:[],createTween:function(Oe,be){var Fe=m.Tween(a,fe.opts,Oe,be,fe.opts.specialEasing[Oe]||fe.opts.easing);return fe.tweens.push(Fe),Fe},stop:function(Oe){var be=0,Fe=Oe?fe.tweens.length:0;if(R)return this;for(R=!0;be<Fe;be++)fe.tweens[be].run(1);return Oe?(te.notifyWith(a,[fe,1,0]),te.resolveWith(a,[fe,Oe])):te.rejectWith(a,[fe,Oe]),this}}),Re=fe.props;for(Se(Re,fe.opts.specialEasing);O<M;O++)if(w=ce.prefilters[O].call(fe,a,Re,fe.opts),w)return ne(w.stop)&&(m._queueHooks(fe.elem,fe.opts.queue).stop=w.stop.bind(w)),w;return m.map(Re,H,fe),ne(fe.opts.start)&&fe.opts.start.call(a,fe),fe.progress(fe.opts.progress).done(fe.opts.done,fe.opts.complete).fail(fe.opts.fail).always(fe.opts.always),m.fx.timer(m.extend(K,{elem:a,anim:fe,queue:fe.opts.queue})),fe}m.Animation=m.extend(ce,{tweeners:{"*":[function(a,f){var v=this.createTween(a,f);return so(v.elem,a,yr.exec(f),v),v}]},tweener:function(a,f){ne(a)?(f=a,a=["*"]):a=a.match(gt);for(var v,w=0,R=a.length;w<R;w++)v=a[w],ce.tweeners[v]=ce.tweeners[v]||[],ce.tweeners[v].unshift(f)},prefilters:[G],prefilter:function(a,f){f?ce.prefilters.unshift(a):ce.prefilters.push(a)}}),m.speed=function(a,f,v){var w=a&&typeof a=="object"?m.extend({},a):{complete:v||!v&&f||ne(a)&&a,duration:a,easing:v&&f||f&&!ne(f)&&f};return m.fx.off?w.duration=0:typeof w.duration!="number"&&(w.duration in m.fx.speeds?w.duration=m.fx.speeds[w.duration]:w.duration=m.fx.speeds._default),(w.queue==null||w.queue===!0)&&(w.queue="fx"),w.old=w.complete,w.complete=function(){ne(w.old)&&w.old.call(this),w.queue&&m.dequeue(this,w.queue)},w},m.fn.extend({fadeTo:function(a,f,v,w){return this.filter(Nr).css("opacity",0).show().end().animate({opacity:f},a,v,w)},animate:function(a,f,v,w){var R=m.isEmptyObject(a),O=m.speed(f,v,w),M=function(){var te=ce(this,m.extend({},a),O);(R||at.get(this,"finish"))&&te.stop(!0)};return M.finish=M,R||O.queue===!1?this.each(M):this.queue(O.queue,M)},stop:function(a,f,v){var w=function(R){var O=R.stop;delete R.stop,O(v)};return typeof a!="string"&&(v=f,f=a,a=void 0),f&&this.queue(a||"fx",[]),this.each(function(){var R=!0,O=a!=null&&a+"queueHooks",M=m.timers,te=at.get(this);if(O)te[O]&&te[O].stop&&w(te[O]);else for(O in te)te[O]&&te[O].stop&&Ri.test(O)&&w(te[O]);for(O=M.length;O--;)M[O].elem===this&&(a==null||M[O].queue===a)&&(M[O].anim.stop(v),R=!1,M.splice(O,1));(R||!v)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var f,v=at.get(this),w=v[a+"queue"],R=v[a+"queueHooks"],O=m.timers,M=w?w.length:0;for(v.finish=!0,m.queue(this,a,[]),R&&R.stop&&R.stop.call(this,!0),f=O.length;f--;)O[f].elem===this&&O[f].queue===a&&(O[f].anim.stop(!0),O.splice(f,1));for(f=0;f<M;f++)w[f]&&w[f].finish&&w[f].finish.call(this);delete v.finish})}}),m.each(["toggle","show","hide"],function(a,f){var v=m.fn[f];m.fn[f]=function(w,R,O){return w==null||typeof w=="boolean"?v.apply(this,arguments):this.animate(I(f,!0),w,R,O)}}),m.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,f){m.fn[a]=function(v,w,R){return this.animate(f,v,w,R)}}),m.timers=[],m.fx.tick=function(){var a,f=0,v=m.timers;for(hr=Date.now();f<v.length;f++)a=v[f],!a()&&v[f]===a&&v.splice(f--,1);v.length||m.fx.stop(),hr=void 0},m.fx.timer=function(a){m.timers.push(a),m.fx.start()},m.fx.interval=13,m.fx.start=function(){er||(er=!0,Er())},m.fx.stop=function(){er=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,f){return a=m.fx&&m.fx.speeds[a]||a,f=f||"fx",this.queue(f,function(v,w){var R=t.setTimeout(v,a);w.stop=function(){t.clearTimeout(R)}})},function(){var a=F.createElement("input"),f=F.createElement("select"),v=f.appendChild(F.createElement("option"));a.type="checkbox",re.checkOn=a.value!=="",re.optSelected=v.selected,a=F.createElement("input"),a.value="t",a.type="radio",re.radioValue=a.value==="t"}();var _e,$e=m.expr.attrHandle;m.fn.extend({attr:function(a,f){return bn(this,m.attr,a,f,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,f,v){var w,R,O=a.nodeType;if(!(O===3||O===8||O===2)){if(typeof a.getAttribute>"u")return m.prop(a,f,v);if((O!==1||!m.isXMLDoc(a))&&(R=m.attrHooks[f.toLowerCase()]||(m.expr.match.bool.test(f)?_e:void 0)),v!==void 0){if(v===null){m.removeAttr(a,f);return}return R&&"set"in R&&(w=R.set(a,v,f))!==void 0?w:(a.setAttribute(f,v+""),v)}return R&&"get"in R&&(w=R.get(a,f))!==null?w:(w=m.find.attr(a,f),w??void 0)}},attrHooks:{type:{set:function(a,f){if(!re.radioValue&&f==="radio"&&ke(a,"input")){var v=a.value;return a.setAttribute("type",f),v&&(a.value=v),f}}}},removeAttr:function(a,f){var v,w=0,R=f&&f.match(gt);if(R&&a.nodeType===1)for(;v=R[w++];)a.removeAttribute(v)}}),_e={set:function(a,f,v){return f===!1?m.removeAttr(a,v):a.setAttribute(v,v),v}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,f){var v=$e[f]||m.find.attr;$e[f]=function(w,R,O){var M,te,K=R.toLowerCase();return O||(te=$e[K],$e[K]=M,M=v(w,R,O)!=null?K:null,$e[K]=te),M}});var st=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;m.fn.extend({prop:function(a,f){return bn(this,m.prop,a,f,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[m.propFix[a]||a]})}}),m.extend({prop:function(a,f,v){var w,R,O=a.nodeType;if(!(O===3||O===8||O===2))return(O!==1||!m.isXMLDoc(a))&&(f=m.propFix[f]||f,R=m.propHooks[f]),v!==void 0?R&&"set"in R&&(w=R.set(a,v,f))!==void 0?w:a[f]=v:R&&"get"in R&&(w=R.get(a,f))!==null?w:a[f]},propHooks:{tabIndex:{get:function(a){var f=m.find.attr(a,"tabindex");return f?parseInt(f,10):st.test(a.nodeName)||yt.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),re.optSelected||(m.propHooks.selected={get:function(a){var f=a.parentNode;return f&&f.parentNode&&f.parentNode.selectedIndex,null},set:function(a){var f=a.parentNode;f&&(f.selectedIndex,f.parentNode&&f.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});function ut(a){var f=a.match(gt)||[];return f.join(" ")}function jt(a){return a.getAttribute&&a.getAttribute("class")||""}function Yn(a){return Array.isArray(a)?a:typeof a=="string"?a.match(gt)||[]:[]}m.fn.extend({addClass:function(a){var f,v,w,R,O,M;return ne(a)?this.each(function(te){m(this).addClass(a.call(this,te,jt(this)))}):(f=Yn(a),f.length?this.each(function(){if(w=jt(this),v=this.nodeType===1&&" "+ut(w)+" ",v){for(O=0;O<f.length;O++)R=f[O],v.indexOf(" "+R+" ")<0&&(v+=R+" ");M=ut(v),w!==M&&this.setAttribute("class",M)}}):this)},removeClass:function(a){var f,v,w,R,O,M;return ne(a)?this.each(function(te){m(this).removeClass(a.call(this,te,jt(this)))}):arguments.length?(f=Yn(a),f.length?this.each(function(){if(w=jt(this),v=this.nodeType===1&&" "+ut(w)+" ",v){for(O=0;O<f.length;O++)for(R=f[O];v.indexOf(" "+R+" ")>-1;)v=v.replace(" "+R+" "," ");M=ut(v),w!==M&&this.setAttribute("class",M)}}):this):this.attr("class","")},toggleClass:function(a,f){var v,w,R,O,M=typeof a,te=M==="string"||Array.isArray(a);return ne(a)?this.each(function(K){m(this).toggleClass(a.call(this,K,jt(this),f),f)}):typeof f=="boolean"&&te?f?this.addClass(a):this.removeClass(a):(v=Yn(a),this.each(function(){if(te)for(O=m(this),R=0;R<v.length;R++)w=v[R],O.hasClass(w)?O.removeClass(w):O.addClass(w);else(a===void 0||M==="boolean")&&(w=jt(this),w&&at.set(this,"__className__",w),this.setAttribute&&this.setAttribute("class",w||a===!1?"":at.get(this,"__className__")||""))}))},hasClass:function(a){var f,v,w=0;for(f=" "+a+" ";v=this[w++];)if(v.nodeType===1&&(" "+ut(jt(v))+" ").indexOf(f)>-1)return!0;return!1}});var Fn=/\r/g;m.fn.extend({val:function(a){var f,v,w,R=this[0];return arguments.length?(w=ne(a),this.each(function(O){var M;this.nodeType===1&&(w?M=a.call(this,O,m(this).val()):M=a,M==null?M="":typeof M=="number"?M+="":Array.isArray(M)&&(M=m.map(M,function(te){return te==null?"":te+""})),f=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],(!f||!("set"in f)||f.set(this,M,"value")===void 0)&&(this.value=M))})):R?(f=m.valHooks[R.type]||m.valHooks[R.nodeName.toLowerCase()],f&&"get"in f&&(v=f.get(R,"value"))!==void 0?v:(v=R.value,typeof v=="string"?v.replace(Fn,""):v??"")):void 0}}),m.extend({valHooks:{option:{get:function(a){var f=m.find.attr(a,"value");return f??ut(m.text(a))}},select:{get:function(a){var f,v,w,R=a.options,O=a.selectedIndex,M=a.type==="select-one",te=M?null:[],K=M?O+1:R.length;for(O<0?w=K:w=M?O:0;w<K;w++)if(v=R[w],(v.selected||w===O)&&!v.disabled&&(!v.parentNode.disabled||!ke(v.parentNode,"optgroup"))){if(f=m(v).val(),M)return f;te.push(f)}return te},set:function(a,f){for(var v,w,R=a.options,O=m.makeArray(f),M=R.length;M--;)w=R[M],(w.selected=m.inArray(m.valHooks.option.get(w),O)>-1)&&(v=!0);return v||(a.selectedIndex=-1),O}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,f){if(Array.isArray(f))return a.checked=m.inArray(m(a).val(),f)>-1}},re.checkOn||(m.valHooks[this].get=function(a){return a.getAttribute("value")===null?"on":a.value})});var wn=t.location,kr={guid:Date.now()},Kn=/\?/;m.parseXML=function(a){var f,v;if(!a||typeof a!="string")return null;try{f=new t.DOMParser().parseFromString(a,"text/xml")}catch{}return v=f&&f.getElementsByTagName("parsererror")[0],(!f||v)&&m.error("Invalid XML: "+(v?m.map(v.childNodes,function(w){return w.textContent}).join(`
|
|
167
167
|
`):a)),f};var Ii=/^(?:focusinfocus|focusoutblur)$/,ii=function(a){a.stopPropagation()};m.extend(m.event,{trigger:function(a,f,v,w){var R,O,M,te,K,fe,Re,Oe,be=[v||F],Fe=L.call(a,"type")?a.type:a,tt=L.call(a,"namespace")?a.namespace.split("."):[];if(O=Oe=M=v=v||F,!(v.nodeType===3||v.nodeType===8)&&!Ii.test(Fe+m.event.triggered)&&(Fe.indexOf(".")>-1&&(tt=Fe.split("."),Fe=tt.shift(),tt.sort()),K=Fe.indexOf(":")<0&&"on"+Fe,a=a[m.expando]?a:new m.Event(Fe,typeof a=="object"&&a),a.isTrigger=w?2:3,a.namespace=tt.join("."),a.rnamespace=a.namespace?new RegExp("(^|\\.)"+tt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=v),f=f==null?[a]:m.makeArray(f,[a]),Re=m.event.special[Fe]||{},!(!w&&Re.trigger&&Re.trigger.apply(v,f)===!1))){if(!w&&!Re.noBubble&&!J(v)){for(te=Re.delegateType||Fe,Ii.test(te+Fe)||(O=O.parentNode);O;O=O.parentNode)be.push(O),M=O;M===(v.ownerDocument||F)&&be.push(M.defaultView||M.parentWindow||t)}for(R=0;(O=be[R++])&&!a.isPropagationStopped();)Oe=O,a.type=R>1?te:Re.bindType||Fe,fe=(at.get(O,"events")||Object.create(null))[a.type]&&at.get(O,"handle"),fe&&fe.apply(O,f),fe=K&&O[K],fe&&fe.apply&&sn(O)&&(a.result=fe.apply(O,f),a.result===!1&&a.preventDefault());return a.type=Fe,!w&&!a.isDefaultPrevented()&&(!Re._default||Re._default.apply(be.pop(),f)===!1)&&sn(v)&&K&&ne(v[Fe])&&!J(v)&&(M=v[K],M&&(v[K]=null),m.event.triggered=Fe,a.isPropagationStopped()&&Oe.addEventListener(Fe,ii),v[Fe](),a.isPropagationStopped()&&Oe.removeEventListener(Fe,ii),m.event.triggered=void 0,M&&(v[K]=M)),a.result}},simulate:function(a,f,v){var w=m.extend(new m.Event,v,{type:a,isSimulated:!0});m.event.trigger(w,null,f)}}),m.fn.extend({trigger:function(a,f){return this.each(function(){m.event.trigger(a,f,this)})},triggerHandler:function(a,f){var v=this[0];if(v)return m.event.trigger(a,f,v,!0)}});var Oi=/\[\]$/,Tr=/\r?\n/g,co=/^(?:submit|button|image|reset|file)$/i,Ja=/^(?:input|select|textarea|keygen)/i;function ea(a,f,v,w){var R;if(Array.isArray(f))m.each(f,function(O,M){v||Oi.test(a)?w(a,M):ea(a+"["+(typeof M=="object"&&M!=null?O:"")+"]",M,v,w)});else if(!v&&Ie(f)==="object")for(R in f)ea(a+"["+R+"]",f[R],v,w);else w(a,f)}m.param=function(a,f){var v,w=[],R=function(O,M){var te=ne(M)?M():M;w[w.length]=encodeURIComponent(O)+"="+encodeURIComponent(te??"")};if(a==null)return"";if(Array.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){R(this.name,this.value)});else for(v in a)ea(v,a[v],f,R);return w.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ja.test(this.nodeName)&&!co.test(a)&&(this.checked||!Vt.test(a))}).map(function(a,f){var v=m(this).val();return v==null?null:Array.isArray(v)?m.map(v,function(w){return{name:f.name,value:w.replace(Tr,`\r
|
|
168
168
|
`)}}):{name:f.name,value:v.replace(Tr,`\r
|
|
169
|
-
`)}}).get()}});var ta=/%20/g,na=/#.*$/,ra=/([?&])_=[^&]*/,oi=/^(.*?):[ \t]*([^\r\n]*)$/mg,fo=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Po=/^(?:GET|HEAD)$/,en=/^\/\//,Gt={},Nt={},hi="*/".concat("*"),Yr=F.createElement("a");Yr.href=wn.href;function ho(a){return function(f,v){typeof f!="string"&&(v=f,f="*");var w,R=0,O=f.toLowerCase().match(gt)||[];if(ne(v))for(;w=O[R++];)w[0]==="+"?(w=w.slice(1)||"*",(a[w]=a[w]||[]).unshift(v)):(a[w]=a[w]||[]).push(v)}}function ai(a,f,v,w){var R={},O=a===Nt;function M(te){var K;return R[te]=!0,m.each(a[te]||[],function(fe,Re){var Oe=Re(f,v,w);if(typeof Oe=="string"&&!O&&!R[Oe])return f.dataTypes.unshift(Oe),M(Oe),!1;if(O)return!(K=Oe)}),K}return M(f.dataTypes[0])||!R["*"]&&M("*")}function tr(a,f){var v,w,R=m.ajaxSettings.flatOptions||{};for(v in f)f[v]!==void 0&&((R[v]?a:w||(w={}))[v]=f[v]);return w&&m.extend(!0,a,w),a}function ia(a,f,v){for(var w,R,O,M,te=a.contents,K=a.dataTypes;K[0]==="*";)K.shift(),w===void 0&&(w=a.mimeType||f.getResponseHeader("Content-Type"));if(w){for(R in te)if(te[R]&&te[R].test(w)){K.unshift(R);break}}if(K[0]in v)O=K[0];else{for(R in v){if(!K[0]||a.converters[R+" "+K[0]]){O=R;break}M||(M=R)}O=O||M}if(O)return O!==K[0]&&K.unshift(O),v[O]}function Lo(a,f,v,w){var R,O,M,te,K,fe={},Re=a.dataTypes.slice();if(Re[1])for(M in a.converters)fe[M.toLowerCase()]=a.converters[M];for(O=Re.shift();O;)if(a.responseFields[O]&&(v[a.responseFields[O]]=f),!K&&w&&a.dataFilter&&(f=a.dataFilter(f,a.dataType)),K=O,O=Re.shift(),O){if(O==="*")O=K;else if(K!=="*"&&K!==O){if(M=fe[K+" "+O]||fe["* "+O],!M){for(R in fe)if(te=R.split(" "),te[1]===O&&(M=fe[K+" "+te[0]]||fe["* "+te[0]],M)){M===!0?M=fe[R]:fe[R]!==!0&&(O=te[0],Re.unshift(te[1]));break}}if(M!==!0)if(M&&a.throws)f=M(f);else try{f=M(f)}catch(Oe){return{state:"parsererror",error:M?Oe:"No conversion from "+K+" to "+O}}}}return{state:"success",data:f}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wn.href,type:"GET",isLocal:fo.test(wn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":hi,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":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,f){return f?tr(tr(a,m.ajaxSettings),f):tr(m.ajaxSettings,a)},ajaxPrefilter:ho(Gt),ajaxTransport:ho(Nt),ajax:function(a,f){typeof a=="object"&&(f=a,a=void 0),f=f||{};var v,w,R,O,M,te,K,fe,Re,Oe,be=m.ajaxSetup({},f),Fe=be.context||be,tt=be.context&&(Fe.nodeType||Fe.jquery)?m(Fe):m.event,_t=m.Deferred(),Ot=m.Callbacks("once memory"),_n=be.statusCode||{},an={},_r={},Rr="canceled",Ht={readyState:0,getResponseHeader:function(Ut){var Zt;if(K){if(!O)for(O={};Zt=oi.exec(R);)O[Zt[1].toLowerCase()+" "]=(O[Zt[1].toLowerCase()+" "]||[]).concat(Zt[2]);Zt=O[Ut.toLowerCase()+" "]}return Zt==null?null:Zt.join(", ")},getAllResponseHeaders:function(){return K?R:null},setRequestHeader:function(Ut,Zt){return K==null&&(Ut=_r[Ut.toLowerCase()]=_r[Ut.toLowerCase()]||Ut,an[Ut]=Zt),this},overrideMimeType:function(Ut){return K==null&&(be.mimeType=Ut),this},statusCode:function(Ut){var Zt;if(Ut)if(K)Ht.always(Ut[Ht.status]);else for(Zt in Ut)_n[Zt]=[_n[Zt],Ut[Zt]];return this},abort:function(Ut){var Zt=Ut||Rr;return v&&v.abort(Zt),Ir(0,Zt),this}};if(_t.promise(Ht),be.url=((a||be.url||wn.href)+"").replace(en,wn.protocol+"//"),be.type=f.method||f.type||be.method||be.type,be.dataTypes=(be.dataType||"*").toLowerCase().match(gt)||[""],be.crossDomain==null){te=F.createElement("a");try{te.href=be.url,te.href=te.href,be.crossDomain=Yr.protocol+"//"+Yr.host!=te.protocol+"//"+te.host}catch{be.crossDomain=!0}}if(be.data&&be.processData&&typeof be.data!="string"&&(be.data=m.param(be.data,be.traditional)),ai(Gt,be,f,Ht),K)return Ht;fe=m.event&&be.global,fe&&m.active++===0&&m.event.trigger("ajaxStart"),be.type=be.type.toUpperCase(),be.hasContent=!Po.test(be.type),w=be.url.replace(na,""),be.hasContent?be.data&&be.processData&&(be.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(be.data=be.data.replace(ta,"+")):(Oe=be.url.slice(w.length),be.data&&(be.processData||typeof be.data=="string")&&(w+=(Kn.test(w)?"&":"?")+be.data,delete be.data),be.cache===!1&&(w=w.replace(ra,"$1"),Oe=(Kn.test(w)?"&":"?")+"_="+kr.guid+++Oe),be.url=w+Oe),be.ifModified&&(m.lastModified[w]&&Ht.setRequestHeader("If-Modified-Since",m.lastModified[w]),m.etag[w]&&Ht.setRequestHeader("If-None-Match",m.etag[w])),(be.data&&be.hasContent&&be.contentType!==!1||f.contentType)&&Ht.setRequestHeader("Content-Type",be.contentType),Ht.setRequestHeader("Accept",be.dataTypes[0]&&be.accepts[be.dataTypes[0]]?be.accepts[be.dataTypes[0]]+(be.dataTypes[0]!=="*"?", "+hi+"; q=0.01":""):be.accepts["*"]);for(Re in be.headers)Ht.setRequestHeader(Re,be.headers[Re]);if(be.beforeSend&&(be.beforeSend.call(Fe,Ht,be)===!1||K))return Ht.abort();if(Rr="abort",Ot.add(be.complete),Ht.done(be.success),Ht.fail(be.error),v=ai(Nt,be,f,Ht),!v)Ir(-1,"No Transport");else{if(Ht.readyState=1,fe&&tt.trigger("ajaxSend",[Ht,be]),K)return Ht;be.async&&be.timeout>0&&(M=t.setTimeout(function(){Ht.abort("timeout")},be.timeout));try{K=!1,v.send(an,Ir)}catch(Ut){if(K)throw Ut;Ir(-1,Ut)}}function Ir(Ut,Zt,qi,Xi){var pr,b,_,N,V,ge=Zt;K||(K=!0,M&&t.clearTimeout(M),v=void 0,R=Xi||"",Ht.readyState=Ut>0?4:0,pr=Ut>=200&&Ut<300||Ut===304,qi&&(N=ia(be,Ht,qi)),!pr&&m.inArray("script",be.dataTypes)>-1&&m.inArray("json",be.dataTypes)<0&&(be.converters["text script"]=function(){}),N=Lo(be,N,Ht,pr),pr?(be.ifModified&&(V=Ht.getResponseHeader("Last-Modified"),V&&(m.lastModified[w]=V),V=Ht.getResponseHeader("etag"),V&&(m.etag[w]=V)),Ut===204||be.type==="HEAD"?ge="nocontent":Ut===304?ge="notmodified":(ge=N.state,b=N.data,_=N.error,pr=!_)):(_=ge,(Ut||!ge)&&(ge="error",Ut<0&&(Ut=0))),Ht.status=Ut,Ht.statusText=(Zt||ge)+"",pr?_t.resolveWith(Fe,[b,ge,Ht]):_t.rejectWith(Fe,[Ht,ge,_]),Ht.statusCode(_n),_n=void 0,fe&&tt.trigger(pr?"ajaxSuccess":"ajaxError",[Ht,be,pr?b:_]),Ot.fireWith(Fe,[Ht,ge]),fe&&(tt.trigger("ajaxComplete",[Ht,be]),--m.active||m.event.trigger("ajaxStop")))}return Ht},getJSON:function(a,f,v){return m.get(a,f,v,"json")},getScript:function(a,f){return m.get(a,void 0,f,"script")}}),m.each(["get","post"],function(a,f){m[f]=function(v,w,R,O){return ne(w)&&(O=O||R,R=w,w=void 0),m.ajax(m.extend({url:v,type:f,dataType:O,data:w,success:R},m.isPlainObject(v)&&v))}}),m.ajaxPrefilter(function(a){var f;for(f in a.headers)f.toLowerCase()==="content-type"&&(a.contentType=a.headers[f]||"")}),m._evalUrl=function(a,f,v){return m.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(w){m.globalEval(w,f,v)}})},m.fn.extend({wrapAll:function(a){var f;return this[0]&&(ne(a)&&(a=a.call(this[0])),f=m(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var v=this;v.firstElementChild;)v=v.firstElementChild;return v}).append(this)),this},wrapInner:function(a){return ne(a)?this.each(function(f){m(this).wrapInner(a.call(this,f))}):this.each(function(){var f=m(this),v=f.contents();v.length?v.wrapAll(a):f.append(a)})},wrap:function(a){var f=ne(a);return this.each(function(v){m(this).wrapAll(f?a.call(this,v):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){m(this).replaceWith(this.childNodes)}),this}}),m.expr.pseudos.hidden=function(a){return!m.expr.pseudos.visible(a)},m.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var xa={0:200,1223:204},dn=m.ajaxSettings.xhr();re.cors=!!dn&&"withCredentials"in dn,re.ajax=dn=!!dn,m.ajaxTransport(function(a){var f,v;if(re.cors||dn&&!a.crossDomain)return{send:function(w,R){var O,M=a.xhr();if(M.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(O in a.xhrFields)M[O]=a.xhrFields[O];a.mimeType&&M.overrideMimeType&&M.overrideMimeType(a.mimeType),!a.crossDomain&&!w["X-Requested-With"]&&(w["X-Requested-With"]="XMLHttpRequest");for(O in w)M.setRequestHeader(O,w[O]);f=function(te){return function(){f&&(f=v=M.onload=M.onerror=M.onabort=M.ontimeout=M.onreadystatechange=null,te==="abort"?M.abort():te==="error"?typeof M.status!="number"?R(0,"error"):R(M.status,M.statusText):R(xa[M.status]||M.status,M.statusText,(M.responseType||"text")!=="text"||typeof M.responseText!="string"?{binary:M.response}:{text:M.responseText},M.getAllResponseHeaders()))}},M.onload=f(),v=M.onerror=M.ontimeout=f("error"),M.onabort!==void 0?M.onabort=v:M.onreadystatechange=function(){M.readyState===4&&t.setTimeout(function(){f&&v()})},f=f("abort");try{M.send(a.hasContent&&a.data||null)}catch(te){if(f)throw te}},abort:function(){f&&f()}}}),m.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){a.cache===void 0&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),m.ajaxTransport("script",function(a){if(a.crossDomain||a.scriptAttrs){var f,v;return{send:function(w,R){f=m("<script>").attr(a.scriptAttrs||{}).prop({charset:a.scriptCharset,src:a.url}).on("load error",v=function(O){f.remove(),v=null,O&&R(O.type==="error"?404:200,O.type)}),F.head.appendChild(f[0])},abort:function(){v&&v()}}}});var po=[],si=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=po.pop()||m.expando+"_"+kr.guid++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(a,f,v){var w,R,O,M=a.jsonp!==!1&&(si.test(a.url)?"url":typeof a.data=="string"&&(a.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&si.test(a.data)&&"data");if(M||a.dataTypes[0]==="jsonp")return w=a.jsonpCallback=ne(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,M?a[M]=a[M].replace(si,"$1"+w):a.jsonp!==!1&&(a.url+=(Kn.test(a.url)?"&":"?")+a.jsonp+"="+w),a.converters["script json"]=function(){return O||m.error(w+" was not called"),O[0]},a.dataTypes[0]="json",R=t[w],t[w]=function(){O=arguments},v.always(function(){R===void 0?m(t).removeProp(w):t[w]=R,a[w]&&(a.jsonpCallback=f.jsonpCallback,po.push(w)),O&&ne(R)&&R(O[0]),O=R=void 0}),"script"}),re.createHTMLDocument=function(){var a=F.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",a.childNodes.length===2}(),m.parseHTML=function(a,f,v){if(typeof a!="string")return[];typeof f=="boolean"&&(v=f,f=!1);var w,R,O;return f||(re.createHTMLDocument?(f=F.implementation.createHTMLDocument(""),w=f.createElement("base"),w.href=F.location.href,f.head.appendChild(w)):f=F),R=Ye.exec(a),O=!v&&[],R?[f.createElement(R[1])]:(R=fn([a],f,O),O&&O.length&&m(O).remove(),m.merge([],R.childNodes))},m.fn.load=function(a,f,v){var w,R,O,M=this,te=a.indexOf(" ");return te>-1&&(w=ut(a.slice(te)),a=a.slice(0,te)),ne(f)?(v=f,f=void 0):f&&typeof f=="object"&&(R="POST"),M.length>0&&m.ajax({url:a,type:R||"GET",dataType:"html",data:f}).done(function(K){O=arguments,M.html(w?m("<div>").append(m.parseHTML(K)).find(w):K)}).always(v&&function(K,fe){M.each(function(){v.apply(this,O||[K.responseText,fe,K])})}),this},m.expr.pseudos.animated=function(a){return m.grep(m.timers,function(f){return a===f.elem}).length},m.offset={setOffset:function(a,f,v){var w,R,O,M,te,K,fe,Re=m.css(a,"position"),Oe=m(a),be={};Re==="static"&&(a.style.position="relative"),te=Oe.offset(),O=m.css(a,"top"),K=m.css(a,"left"),fe=(Re==="absolute"||Re==="fixed")&&(O+K).indexOf("auto")>-1,fe?(w=Oe.position(),M=w.top,R=w.left):(M=parseFloat(O)||0,R=parseFloat(K)||0),ne(f)&&(f=f.call(a,v,m.extend({},te))),f.top!=null&&(be.top=f.top-te.top+M),f.left!=null&&(be.left=f.left-te.left+R),"using"in f?f.using.call(a,be):Oe.css(be)}},m.fn.extend({offset:function(a){if(arguments.length)return a===void 0?this:this.each(function(R){m.offset.setOffset(this,a,R)});var f,v,w=this[0];if(w)return w.getClientRects().length?(f=w.getBoundingClientRect(),v=w.ownerDocument.defaultView,{top:f.top+v.pageYOffset,left:f.left+v.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var a,f,v,w=this[0],R={top:0,left:0};if(m.css(w,"position")==="fixed")f=w.getBoundingClientRect();else{for(f=this.offset(),v=w.ownerDocument,a=w.offsetParent||v.documentElement;a&&(a===v.body||a===v.documentElement)&&m.css(a,"position")==="static";)a=a.parentNode;a&&a!==w&&a.nodeType===1&&(R=m(a).offset(),R.top+=m.css(a,"borderTopWidth",!0),R.left+=m.css(a,"borderLeftWidth",!0))}return{top:f.top-R.top-m.css(w,"marginTop",!0),left:f.left-R.left-m.css(w,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&m.css(a,"position")==="static";)a=a.offsetParent;return a||br})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,f){var v=f==="pageYOffset";m.fn[a]=function(w){return bn(this,function(R,O,M){var te;if(J(R)?te=R:R.nodeType===9&&(te=R.defaultView),M===void 0)return te?te[f]:R[O];te?te.scrollTo(v?te.pageXOffset:M,v?M:te.pageYOffset):R[O]=M},a,w,arguments.length)}}),m.each(["top","left"],function(a,f){m.cssHooks[f]=Mn(re.pixelPosition,function(v,w){if(w)return w=Sr(v,f),di.test(w)?m(v).position()[f]+"px":w})}),m.each({Height:"height",Width:"width"},function(a,f){m.each({padding:"inner"+a,content:f,"":"outer"+a},function(v,w){m.fn[w]=function(R,O){var M=arguments.length&&(v||typeof R!="boolean"),te=v||(R===!0||O===!0?"margin":"border");return bn(this,function(K,fe,Re){var Oe;return J(K)?w.indexOf("outer")===0?K["inner"+a]:K.document.documentElement["client"+a]:K.nodeType===9?(Oe=K.documentElement,Math.max(K.body["scroll"+a],Oe["scroll"+a],K.body["offset"+a],Oe["offset"+a],Oe["client"+a])):Re===void 0?m.css(K,fe,te):m.style(K,fe,Re,te)},f,M?R:void 0,M)}})}),m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,f){m.fn[f]=function(v){return this.on(f,v)}}),m.fn.extend({bind:function(a,f,v){return this.on(a,null,f,v)},unbind:function(a,f){return this.off(a,null,f)},delegate:function(a,f,v,w){return this.on(f,a,v,w)},undelegate:function(a,f,v){return arguments.length===1?this.off(a,"**"):this.off(f,a||"**",v)},hover:function(a,f){return this.on("mouseenter",a).on("mouseleave",f||a)}}),m.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(a,f){m.fn[f]=function(v,w){return arguments.length>0?this.on(f,null,v,w):this.trigger(f)}});var Ca=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;m.proxy=function(a,f){var v,w,R;if(typeof f=="string"&&(v=a[f],f=a,a=v),!!ne(a))return w=l.call(arguments,2),R=function(){return a.apply(f||this,w.concat(l.call(arguments)))},R.guid=a.guid=a.guid||m.guid++,R},m.holdReady=function(a){a?m.readyWait++:m.ready(!0)},m.isArray=Array.isArray,m.parseJSON=JSON.parse,m.nodeName=ke,m.isFunction=ne,m.isWindow=J,m.camelCase=rn,m.type=Ie,m.now=Date.now,m.isNumeric=function(a){var f=m.type(a);return(f==="number"||f==="string")&&!isNaN(a-parseFloat(a))},m.trim=function(a){return a==null?"":(a+"").replace(Ca,"$1")};var Gi=t.jQuery,Vn=t.$;return m.noConflict=function(a){return t.$===m&&(t.$=Vn),a&&t.jQuery===m&&(t.jQuery=Gi),m},typeof n>"u"&&(t.jQuery=t.$=m),m})})(Og);var Dg=Og.exports;const Kx=ac(Dg);var Jx={exports:{}};/**
|
|
169
|
+
`)}}).get()}});var ta=/%20/g,na=/#.*$/,ra=/([?&])_=[^&]*/,oi=/^(.*?):[ \t]*([^\r\n]*)$/mg,fo=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Po=/^(?:GET|HEAD)$/,en=/^\/\//,Gt={},Nt={},hi="*/".concat("*"),Yr=F.createElement("a");Yr.href=wn.href;function ho(a){return function(f,v){typeof f!="string"&&(v=f,f="*");var w,R=0,O=f.toLowerCase().match(gt)||[];if(ne(v))for(;w=O[R++];)w[0]==="+"?(w=w.slice(1)||"*",(a[w]=a[w]||[]).unshift(v)):(a[w]=a[w]||[]).push(v)}}function ai(a,f,v,w){var R={},O=a===Nt;function M(te){var K;return R[te]=!0,m.each(a[te]||[],function(fe,Re){var Oe=Re(f,v,w);if(typeof Oe=="string"&&!O&&!R[Oe])return f.dataTypes.unshift(Oe),M(Oe),!1;if(O)return!(K=Oe)}),K}return M(f.dataTypes[0])||!R["*"]&&M("*")}function tr(a,f){var v,w,R=m.ajaxSettings.flatOptions||{};for(v in f)f[v]!==void 0&&((R[v]?a:w||(w={}))[v]=f[v]);return w&&m.extend(!0,a,w),a}function ia(a,f,v){for(var w,R,O,M,te=a.contents,K=a.dataTypes;K[0]==="*";)K.shift(),w===void 0&&(w=a.mimeType||f.getResponseHeader("Content-Type"));if(w){for(R in te)if(te[R]&&te[R].test(w)){K.unshift(R);break}}if(K[0]in v)O=K[0];else{for(R in v){if(!K[0]||a.converters[R+" "+K[0]]){O=R;break}M||(M=R)}O=O||M}if(O)return O!==K[0]&&K.unshift(O),v[O]}function Lo(a,f,v,w){var R,O,M,te,K,fe={},Re=a.dataTypes.slice();if(Re[1])for(M in a.converters)fe[M.toLowerCase()]=a.converters[M];for(O=Re.shift();O;)if(a.responseFields[O]&&(v[a.responseFields[O]]=f),!K&&w&&a.dataFilter&&(f=a.dataFilter(f,a.dataType)),K=O,O=Re.shift(),O){if(O==="*")O=K;else if(K!=="*"&&K!==O){if(M=fe[K+" "+O]||fe["* "+O],!M){for(R in fe)if(te=R.split(" "),te[1]===O&&(M=fe[K+" "+te[0]]||fe["* "+te[0]],M)){M===!0?M=fe[R]:fe[R]!==!0&&(O=te[0],Re.unshift(te[1]));break}}if(M!==!0)if(M&&a.throws)f=M(f);else try{f=M(f)}catch(Oe){return{state:"parsererror",error:M?Oe:"No conversion from "+K+" to "+O}}}}return{state:"success",data:f}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wn.href,type:"GET",isLocal:fo.test(wn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":hi,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":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,f){return f?tr(tr(a,m.ajaxSettings),f):tr(m.ajaxSettings,a)},ajaxPrefilter:ho(Gt),ajaxTransport:ho(Nt),ajax:function(a,f){typeof a=="object"&&(f=a,a=void 0),f=f||{};var v,w,R,O,M,te,K,fe,Re,Oe,be=m.ajaxSetup({},f),Fe=be.context||be,tt=be.context&&(Fe.nodeType||Fe.jquery)?m(Fe):m.event,_t=m.Deferred(),Ot=m.Callbacks("once memory"),_n=be.statusCode||{},an={},_r={},Rr="canceled",Ht={readyState:0,getResponseHeader:function(Ut){var Zt;if(K){if(!O)for(O={};Zt=oi.exec(R);)O[Zt[1].toLowerCase()+" "]=(O[Zt[1].toLowerCase()+" "]||[]).concat(Zt[2]);Zt=O[Ut.toLowerCase()+" "]}return Zt==null?null:Zt.join(", ")},getAllResponseHeaders:function(){return K?R:null},setRequestHeader:function(Ut,Zt){return K==null&&(Ut=_r[Ut.toLowerCase()]=_r[Ut.toLowerCase()]||Ut,an[Ut]=Zt),this},overrideMimeType:function(Ut){return K==null&&(be.mimeType=Ut),this},statusCode:function(Ut){var Zt;if(Ut)if(K)Ht.always(Ut[Ht.status]);else for(Zt in Ut)_n[Zt]=[_n[Zt],Ut[Zt]];return this},abort:function(Ut){var Zt=Ut||Rr;return v&&v.abort(Zt),Ir(0,Zt),this}};if(_t.promise(Ht),be.url=((a||be.url||wn.href)+"").replace(en,wn.protocol+"//"),be.type=f.method||f.type||be.method||be.type,be.dataTypes=(be.dataType||"*").toLowerCase().match(gt)||[""],be.crossDomain==null){te=F.createElement("a");try{te.href=be.url,te.href=te.href,be.crossDomain=Yr.protocol+"//"+Yr.host!=te.protocol+"//"+te.host}catch{be.crossDomain=!0}}if(be.data&&be.processData&&typeof be.data!="string"&&(be.data=m.param(be.data,be.traditional)),ai(Gt,be,f,Ht),K)return Ht;fe=m.event&&be.global,fe&&m.active++===0&&m.event.trigger("ajaxStart"),be.type=be.type.toUpperCase(),be.hasContent=!Po.test(be.type),w=be.url.replace(na,""),be.hasContent?be.data&&be.processData&&(be.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(be.data=be.data.replace(ta,"+")):(Oe=be.url.slice(w.length),be.data&&(be.processData||typeof be.data=="string")&&(w+=(Kn.test(w)?"&":"?")+be.data,delete be.data),be.cache===!1&&(w=w.replace(ra,"$1"),Oe=(Kn.test(w)?"&":"?")+"_="+kr.guid+++Oe),be.url=w+Oe),be.ifModified&&(m.lastModified[w]&&Ht.setRequestHeader("If-Modified-Since",m.lastModified[w]),m.etag[w]&&Ht.setRequestHeader("If-None-Match",m.etag[w])),(be.data&&be.hasContent&&be.contentType!==!1||f.contentType)&&Ht.setRequestHeader("Content-Type",be.contentType),Ht.setRequestHeader("Accept",be.dataTypes[0]&&be.accepts[be.dataTypes[0]]?be.accepts[be.dataTypes[0]]+(be.dataTypes[0]!=="*"?", "+hi+"; q=0.01":""):be.accepts["*"]);for(Re in be.headers)Ht.setRequestHeader(Re,be.headers[Re]);if(be.beforeSend&&(be.beforeSend.call(Fe,Ht,be)===!1||K))return Ht.abort();if(Rr="abort",Ot.add(be.complete),Ht.done(be.success),Ht.fail(be.error),v=ai(Nt,be,f,Ht),!v)Ir(-1,"No Transport");else{if(Ht.readyState=1,fe&&tt.trigger("ajaxSend",[Ht,be]),K)return Ht;be.async&&be.timeout>0&&(M=t.setTimeout(function(){Ht.abort("timeout")},be.timeout));try{K=!1,v.send(an,Ir)}catch(Ut){if(K)throw Ut;Ir(-1,Ut)}}function Ir(Ut,Zt,qi,Xi){var pr,b,_,N,V,ge=Zt;K||(K=!0,M&&t.clearTimeout(M),v=void 0,R=Xi||"",Ht.readyState=Ut>0?4:0,pr=Ut>=200&&Ut<300||Ut===304,qi&&(N=ia(be,Ht,qi)),!pr&&m.inArray("script",be.dataTypes)>-1&&m.inArray("json",be.dataTypes)<0&&(be.converters["text script"]=function(){}),N=Lo(be,N,Ht,pr),pr?(be.ifModified&&(V=Ht.getResponseHeader("Last-Modified"),V&&(m.lastModified[w]=V),V=Ht.getResponseHeader("etag"),V&&(m.etag[w]=V)),Ut===204||be.type==="HEAD"?ge="nocontent":Ut===304?ge="notmodified":(ge=N.state,b=N.data,_=N.error,pr=!_)):(_=ge,(Ut||!ge)&&(ge="error",Ut<0&&(Ut=0))),Ht.status=Ut,Ht.statusText=(Zt||ge)+"",pr?_t.resolveWith(Fe,[b,ge,Ht]):_t.rejectWith(Fe,[Ht,ge,_]),Ht.statusCode(_n),_n=void 0,fe&&tt.trigger(pr?"ajaxSuccess":"ajaxError",[Ht,be,pr?b:_]),Ot.fireWith(Fe,[Ht,ge]),fe&&(tt.trigger("ajaxComplete",[Ht,be]),--m.active||m.event.trigger("ajaxStop")))}return Ht},getJSON:function(a,f,v){return m.get(a,f,v,"json")},getScript:function(a,f){return m.get(a,void 0,f,"script")}}),m.each(["get","post"],function(a,f){m[f]=function(v,w,R,O){return ne(w)&&(O=O||R,R=w,w=void 0),m.ajax(m.extend({url:v,type:f,dataType:O,data:w,success:R},m.isPlainObject(v)&&v))}}),m.ajaxPrefilter(function(a){var f;for(f in a.headers)f.toLowerCase()==="content-type"&&(a.contentType=a.headers[f]||"")}),m._evalUrl=function(a,f,v){return m.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(w){m.globalEval(w,f,v)}})},m.fn.extend({wrapAll:function(a){var f;return this[0]&&(ne(a)&&(a=a.call(this[0])),f=m(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var v=this;v.firstElementChild;)v=v.firstElementChild;return v}).append(this)),this},wrapInner:function(a){return ne(a)?this.each(function(f){m(this).wrapInner(a.call(this,f))}):this.each(function(){var f=m(this),v=f.contents();v.length?v.wrapAll(a):f.append(a)})},wrap:function(a){var f=ne(a);return this.each(function(v){m(this).wrapAll(f?a.call(this,v):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){m(this).replaceWith(this.childNodes)}),this}}),m.expr.pseudos.hidden=function(a){return!m.expr.pseudos.visible(a)},m.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var xa={0:200,1223:204},dn=m.ajaxSettings.xhr();re.cors=!!dn&&"withCredentials"in dn,re.ajax=dn=!!dn,m.ajaxTransport(function(a){var f,v;if(re.cors||dn&&!a.crossDomain)return{send:function(w,R){var O,M=a.xhr();if(M.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(O in a.xhrFields)M[O]=a.xhrFields[O];a.mimeType&&M.overrideMimeType&&M.overrideMimeType(a.mimeType),!a.crossDomain&&!w["X-Requested-With"]&&(w["X-Requested-With"]="XMLHttpRequest");for(O in w)M.setRequestHeader(O,w[O]);f=function(te){return function(){f&&(f=v=M.onload=M.onerror=M.onabort=M.ontimeout=M.onreadystatechange=null,te==="abort"?M.abort():te==="error"?typeof M.status!="number"?R(0,"error"):R(M.status,M.statusText):R(xa[M.status]||M.status,M.statusText,(M.responseType||"text")!=="text"||typeof M.responseText!="string"?{binary:M.response}:{text:M.responseText},M.getAllResponseHeaders()))}},M.onload=f(),v=M.onerror=M.ontimeout=f("error"),M.onabort!==void 0?M.onabort=v:M.onreadystatechange=function(){M.readyState===4&&t.setTimeout(function(){f&&v()})},f=f("abort");try{M.send(a.hasContent&&a.data||null)}catch(te){if(f)throw te}},abort:function(){f&&f()}}}),m.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){a.cache===void 0&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),m.ajaxTransport("script",function(a){if(a.crossDomain||a.scriptAttrs){var f,v;return{send:function(w,R){f=m("<script>").attr(a.scriptAttrs||{}).prop({charset:a.scriptCharset,src:a.url}).on("load error",v=function(O){f.remove(),v=null,O&&R(O.type==="error"?404:200,O.type)}),F.head.appendChild(f[0])},abort:function(){v&&v()}}}});var po=[],si=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=po.pop()||m.expando+"_"+kr.guid++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(a,f,v){var w,R,O,M=a.jsonp!==!1&&(si.test(a.url)?"url":typeof a.data=="string"&&(a.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&si.test(a.data)&&"data");if(M||a.dataTypes[0]==="jsonp")return w=a.jsonpCallback=ne(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,M?a[M]=a[M].replace(si,"$1"+w):a.jsonp!==!1&&(a.url+=(Kn.test(a.url)?"&":"?")+a.jsonp+"="+w),a.converters["script json"]=function(){return O||m.error(w+" was not called"),O[0]},a.dataTypes[0]="json",R=t[w],t[w]=function(){O=arguments},v.always(function(){R===void 0?m(t).removeProp(w):t[w]=R,a[w]&&(a.jsonpCallback=f.jsonpCallback,po.push(w)),O&&ne(R)&&R(O[0]),O=R=void 0}),"script"}),re.createHTMLDocument=function(){var a=F.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",a.childNodes.length===2}(),m.parseHTML=function(a,f,v){if(typeof a!="string")return[];typeof f=="boolean"&&(v=f,f=!1);var w,R,O;return f||(re.createHTMLDocument?(f=F.implementation.createHTMLDocument(""),w=f.createElement("base"),w.href=F.location.href,f.head.appendChild(w)):f=F),R=Ye.exec(a),O=!v&&[],R?[f.createElement(R[1])]:(R=fn([a],f,O),O&&O.length&&m(O).remove(),m.merge([],R.childNodes))},m.fn.load=function(a,f,v){var w,R,O,M=this,te=a.indexOf(" ");return te>-1&&(w=ut(a.slice(te)),a=a.slice(0,te)),ne(f)?(v=f,f=void 0):f&&typeof f=="object"&&(R="POST"),M.length>0&&m.ajax({url:a,type:R||"GET",dataType:"html",data:f}).done(function(K){O=arguments,M.html(w?m("<div>").append(m.parseHTML(K)).find(w):K)}).always(v&&function(K,fe){M.each(function(){v.apply(this,O||[K.responseText,fe,K])})}),this},m.expr.pseudos.animated=function(a){return m.grep(m.timers,function(f){return a===f.elem}).length},m.offset={setOffset:function(a,f,v){var w,R,O,M,te,K,fe,Re=m.css(a,"position"),Oe=m(a),be={};Re==="static"&&(a.style.position="relative"),te=Oe.offset(),O=m.css(a,"top"),K=m.css(a,"left"),fe=(Re==="absolute"||Re==="fixed")&&(O+K).indexOf("auto")>-1,fe?(w=Oe.position(),M=w.top,R=w.left):(M=parseFloat(O)||0,R=parseFloat(K)||0),ne(f)&&(f=f.call(a,v,m.extend({},te))),f.top!=null&&(be.top=f.top-te.top+M),f.left!=null&&(be.left=f.left-te.left+R),"using"in f?f.using.call(a,be):Oe.css(be)}},m.fn.extend({offset:function(a){if(arguments.length)return a===void 0?this:this.each(function(R){m.offset.setOffset(this,a,R)});var f,v,w=this[0];if(w)return w.getClientRects().length?(f=w.getBoundingClientRect(),v=w.ownerDocument.defaultView,{top:f.top+v.pageYOffset,left:f.left+v.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var a,f,v,w=this[0],R={top:0,left:0};if(m.css(w,"position")==="fixed")f=w.getBoundingClientRect();else{for(f=this.offset(),v=w.ownerDocument,a=w.offsetParent||v.documentElement;a&&(a===v.body||a===v.documentElement)&&m.css(a,"position")==="static";)a=a.parentNode;a&&a!==w&&a.nodeType===1&&(R=m(a).offset(),R.top+=m.css(a,"borderTopWidth",!0),R.left+=m.css(a,"borderLeftWidth",!0))}return{top:f.top-R.top-m.css(w,"marginTop",!0),left:f.left-R.left-m.css(w,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&m.css(a,"position")==="static";)a=a.offsetParent;return a||br})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,f){var v=f==="pageYOffset";m.fn[a]=function(w){return bn(this,function(R,O,M){var te;if(J(R)?te=R:R.nodeType===9&&(te=R.defaultView),M===void 0)return te?te[f]:R[O];te?te.scrollTo(v?te.pageXOffset:M,v?M:te.pageYOffset):R[O]=M},a,w,arguments.length)}}),m.each(["top","left"],function(a,f){m.cssHooks[f]=Mn(re.pixelPosition,function(v,w){if(w)return w=Sr(v,f),di.test(w)?m(v).position()[f]+"px":w})}),m.each({Height:"height",Width:"width"},function(a,f){m.each({padding:"inner"+a,content:f,"":"outer"+a},function(v,w){m.fn[w]=function(R,O){var M=arguments.length&&(v||typeof R!="boolean"),te=v||(R===!0||O===!0?"margin":"border");return bn(this,function(K,fe,Re){var Oe;return J(K)?w.indexOf("outer")===0?K["inner"+a]:K.document.documentElement["client"+a]:K.nodeType===9?(Oe=K.documentElement,Math.max(K.body["scroll"+a],Oe["scroll"+a],K.body["offset"+a],Oe["offset"+a],Oe["client"+a])):Re===void 0?m.css(K,fe,te):m.style(K,fe,Re,te)},f,M?R:void 0,M)}})}),m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,f){m.fn[f]=function(v){return this.on(f,v)}}),m.fn.extend({bind:function(a,f,v){return this.on(a,null,f,v)},unbind:function(a,f){return this.off(a,null,f)},delegate:function(a,f,v,w){return this.on(f,a,v,w)},undelegate:function(a,f,v){return arguments.length===1?this.off(a,"**"):this.off(f,a||"**",v)},hover:function(a,f){return this.on("mouseenter",a).on("mouseleave",f||a)}}),m.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(a,f){m.fn[f]=function(v,w){return arguments.length>0?this.on(f,null,v,w):this.trigger(f)}});var Ca=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;m.proxy=function(a,f){var v,w,R;if(typeof f=="string"&&(v=a[f],f=a,a=v),!!ne(a))return w=l.call(arguments,2),R=function(){return a.apply(f||this,w.concat(l.call(arguments)))},R.guid=a.guid=a.guid||m.guid++,R},m.holdReady=function(a){a?m.readyWait++:m.ready(!0)},m.isArray=Array.isArray,m.parseJSON=JSON.parse,m.nodeName=ke,m.isFunction=ne,m.isWindow=J,m.camelCase=rn,m.type=Ie,m.now=Date.now,m.isNumeric=function(a){var f=m.type(a);return(f==="number"||f==="string")&&!isNaN(a-parseFloat(a))},m.trim=function(a){return a==null?"":(a+"").replace(Ca,"$1")};var Gi=t.jQuery,Vn=t.$;return m.noConflict=function(a){return t.$===m&&(t.$=Vn),a&&t.jQuery===m&&(t.jQuery=Gi),m},typeof n>"u"&&(t.jQuery=t.$=m),m})})(Og);var Dg=Og.exports;const Jx=ac(Dg);var Zx={exports:{}};/**
|
|
170
170
|
* @version: 3.1
|
|
171
171
|
* @author: Dan Grossman http://www.dangrossman.info/
|
|
172
172
|
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
173
173
|
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
174
174
|
* @website: http://www.daterangepicker.com/
|
|
175
|
-
*/(function(i){(function(t,n){if(i.exports){var s=typeof window<"u"?window.jQuery:void 0;s||(s=Dg,s.fn||(s.fn={}));var o=typeof window<"u"&&typeof window.moment<"u"?window.moment:W0;i.exports=n(o,s)}else t.daterangepicker=n(t.moment,t.jQuery)})(Ro,function(t,n){var s=function(o,l,g){if(this.parentEl="body",this.element=n(o),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 l!="object"||l===null)&&(l={}),l=n.extend(this.element.data(),l),typeof l.template!="string"&&!(l.template instanceof n)&&(l.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=l.parentEl&&n(l.parentEl).length?n(l.parentEl):n(this.parentEl),this.container=n(l.template).appendTo(this.parentEl),typeof l.locale=="object"&&(typeof l.locale.direction=="string"&&(this.locale.direction=l.locale.direction),typeof l.locale.format=="string"&&(this.locale.format=l.locale.format),typeof l.locale.separator=="string"&&(this.locale.separator=l.locale.separator),typeof l.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=l.locale.daysOfWeek.slice()),typeof l.locale.monthNames=="object"&&(this.locale.monthNames=l.locale.monthNames.slice()),typeof l.locale.firstDay=="number"&&(this.locale.firstDay=l.locale.firstDay),typeof l.locale.applyLabel=="string"&&(this.locale.applyLabel=l.locale.applyLabel),typeof l.locale.cancelLabel=="string"&&(this.locale.cancelLabel=l.locale.cancelLabel),typeof l.locale.weekLabel=="string"&&(this.locale.weekLabel=l.locale.weekLabel),typeof l.locale.customRangeLabel=="string")){var k=document.createElement("textarea");k.innerHTML=l.locale.customRangeLabel;var C=k.value;this.locale.customRangeLabel=C}if(this.container.addClass(this.locale.direction),typeof l.startDate=="string"&&(this.startDate=t(l.startDate,this.locale.format)),typeof l.endDate=="string"&&(this.endDate=t(l.endDate,this.locale.format)),typeof l.minDate=="string"&&(this.minDate=t(l.minDate,this.locale.format)),typeof l.maxDate=="string"&&(this.maxDate=t(l.maxDate,this.locale.format)),typeof l.startDate=="object"&&(this.startDate=t(l.startDate)),typeof l.endDate=="object"&&(this.endDate=t(l.endDate)),typeof l.minDate=="object"&&(this.minDate=t(l.minDate)),typeof l.maxDate=="object"&&(this.maxDate=t(l.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 l.applyButtonClasses=="string"&&(this.applyButtonClasses=l.applyButtonClasses),typeof l.applyClass=="string"&&(this.applyButtonClasses=l.applyClass),typeof l.cancelButtonClasses=="string"&&(this.cancelButtonClasses=l.cancelButtonClasses),typeof l.cancelClass=="string"&&(this.cancelButtonClasses=l.cancelClass),typeof l.maxSpan=="object"&&(this.maxSpan=l.maxSpan),typeof l.dateLimit=="object"&&(this.maxSpan=l.dateLimit),typeof l.opens=="string"&&(this.opens=l.opens),typeof l.drops=="string"&&(this.drops=l.drops),typeof l.showWeekNumbers=="boolean"&&(this.showWeekNumbers=l.showWeekNumbers),typeof l.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=l.showISOWeekNumbers),typeof l.buttonClasses=="string"&&(this.buttonClasses=l.buttonClasses),typeof l.buttonClasses=="object"&&(this.buttonClasses=l.buttonClasses.join(" ")),typeof l.showDropdowns=="boolean"&&(this.showDropdowns=l.showDropdowns),typeof l.minYear=="number"&&(this.minYear=l.minYear),typeof l.maxYear=="number"&&(this.maxYear=l.maxYear),typeof l.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=l.showCustomRangeLabel),typeof l.singleDatePicker=="boolean"&&(this.singleDatePicker=l.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof l.timePicker=="boolean"&&(this.timePicker=l.timePicker),typeof l.timePickerSeconds=="boolean"&&(this.timePickerSeconds=l.timePickerSeconds),typeof l.timePickerIncrement=="number"&&(this.timePickerIncrement=l.timePickerIncrement),typeof l.timePicker24Hour=="boolean"&&(this.timePicker24Hour=l.timePicker24Hour),typeof l.autoApply=="boolean"&&(this.autoApply=l.autoApply),typeof l.autoUpdateInput=="boolean"&&(this.autoUpdateInput=l.autoUpdateInput),typeof l.linkedCalendars=="boolean"&&(this.linkedCalendars=l.linkedCalendars),typeof l.isInvalidDate=="function"&&(this.isInvalidDate=l.isInvalidDate),typeof l.isCustomDate=="function"&&(this.isCustomDate=l.isCustomDate),typeof l.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=l.alwaysShowCalendars),this.locale.firstDay!=0)for(var A=this.locale.firstDay;A>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),A--;var U,L,q;if(typeof l.startDate>"u"&&typeof l.endDate>"u"&&n(this.element).is(":text")){var Q=n(this.element).val(),re=Q.split(this.locale.separator);U=L=null,re.length==2?(U=t(re[0],this.locale.format),L=t(re[1],this.locale.format)):this.singleDatePicker&&Q!==""&&(U=t(Q,this.locale.format),L=t(Q,this.locale.format)),U!==null&&L!==null&&(this.setStartDate(U),this.setEndDate(L))}if(typeof l.ranges=="object"){for(q in l.ranges){typeof l.ranges[q][0]=="string"?U=t(l.ranges[q][0],this.locale.format):U=t(l.ranges[q][0]),typeof l.ranges[q][1]=="string"?L=t(l.ranges[q][1],this.locale.format):L=t(l.ranges[q][1]),this.minDate&&U.isBefore(this.minDate)&&(U=this.minDate.clone());var ne=this.maxDate;if(this.maxSpan&&ne&&U.clone().add(this.maxSpan).isAfter(ne)&&(ne=U.clone().add(this.maxSpan)),ne&&L.isAfter(ne)&&(L=ne.clone()),!(this.minDate&&L.isBefore(this.minDate,this.timepicker?"minute":"day")||ne&&U.isAfter(ne,this.timepicker?"minute":"day"))){var k=document.createElement("textarea");k.innerHTML=q;var C=k.value;this.ranges[C]=[U,L]}}var J="<ul>";for(q in this.ranges)J+='<li data-range-key="'+q+'">'+q+"</li>";this.showCustomRangeLabel&&(J+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),J+="</ul>",this.container.find(".ranges").prepend(J)}typeof g=="function"&&(this.callback=g),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 l.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 l.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 s.prototype={constructor:s,setStartDate:function(o){typeof o=="string"&&(this.startDate=t(o,this.locale.format)),typeof o=="object"&&(this.startDate=t(o)),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(o){typeof o=="string"&&(this.endDate=t(o,this.locale.format)),typeof o=="object"&&(this.endDate=t(o)),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 o,l,g;if(this.endDate){if(o=parseInt(this.container.find(".left .hourselect").val(),10),l=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(l)&&(l=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),g=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var k=this.container.find(".left .ampmselect").val();k==="PM"&&o<12&&(o+=12),k==="AM"&&o===12&&(o=0)}}else if(o=parseInt(this.container.find(".right .hourselect").val(),10),l=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(l)&&(l=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),g=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var k=this.container.find(".right .ampmselect").val();k==="PM"&&o<12&&(o+=12),k==="AM"&&o===12&&(o=0)}this.leftCalendar.month.hour(o).minute(l).second(g),this.rightCalendar.month.hour(o).minute(l).second(g)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(o){var F=o=="left"?this.leftCalendar:this.rightCalendar,l=F.month.month(),g=F.month.year(),k=F.month.hour(),C=F.month.minute(),A=F.month.second(),U=t([g,l]).daysInMonth(),L=t([g,l,1]),q=t([g,l,U]),Q=t(L).subtract(1,"month").month(),re=t(L).subtract(1,"month").year(),ne=t([re,Q]).daysInMonth(),J=L.day(),F=[];F.firstDay=L,F.lastDay=q;for(var he=0;he<6;he++)F[he]=[];var ye=ne-J+this.locale.firstDay+1;ye>ne&&(ye-=7),J==this.locale.firstDay&&(ye=ne-6);for(var Ie=t([re,Q,ye,12,C,A]),de,je,he=0,de=0,je=0;he<42;he++,de++,Ie=t(Ie).add(24,"hour"))he>0&&de%7===0&&(de=0,je++),F[je][de]=Ie.clone().hour(k).minute(C).second(A),Ie.hour(12),this.minDate&&F[je][de].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&F[je][de].isBefore(this.minDate)&&o=="left"&&(F[je][de]=this.minDate.clone()),this.maxDate&&F[je][de].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&F[je][de].isAfter(this.maxDate)&&o=="right"&&(F[je][de]=this.maxDate.clone());o=="left"?this.leftCalendar.calendar=F:this.rightCalendar.calendar=F;var m=o=="left"?this.minDate:this.startDate,Ue=this.maxDate;o=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ke='<table class="table-condensed">';ke+="<thead>",ke+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ke+="<th></th>"),(!m||m.isBefore(F.firstDay))&&(!this.linkedCalendars||o=="left")?ke+='<th class="prev available"><span></span></th>':ke+="<th></th>";var ht=this.locale.monthNames[F[1][1].month()]+F[1][1].format(" YYYY");if(this.showDropdowns){for(var Et=F[1][1].month(),vt=F[1][1].year(),dt=Ue&&Ue.year()||this.maxYear,Ct=m&&m.year()||this.minYear,me=vt==Ct,Le=vt==dt,Ve='<select class="monthselect">',qe=0;qe<12;qe++)(!me||m&&qe>=m.month())&&(!Le||Ue&&qe<=Ue.month())?Ve+="<option value='"+qe+"'"+(qe===Et?" selected='selected'":"")+">"+this.locale.monthNames[qe]+"</option>":Ve+="<option value='"+qe+"'"+(qe===Et?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[qe]+"</option>";Ve+="</select>";for(var lt='<select class="yearselect">',Ce=Ct;Ce<=dt;Ce++)lt+='<option value="'+Ce+'"'+(Ce===vt?' selected="selected"':"")+">"+Ce+"</option>";lt+="</select>",ht=Ve+lt}if(ke+='<th colspan="5" class="month">'+ht+"</th>",(!Ue||Ue.isAfter(F.lastDay))&&(!this.linkedCalendars||o=="right"||this.singleDatePicker)?ke+='<th class="next available"><span></span></th>':ke+="<th></th>",ke+="</tr>",ke+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ke+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Ke,ct){ke+="<th>"+ct+"</th>"}),ke+="</tr>",ke+="</thead>",ke+="<tbody>",this.endDate==null&&this.maxSpan){var Pe=this.startDate.clone().add(this.maxSpan).endOf("day");(!Ue||Pe.isBefore(Ue))&&(Ue=Pe)}for(var je=0;je<6;je++){ke+="<tr>",this.showWeekNumbers?ke+='<td class="week">'+F[je][0].week()+"</td>":this.showISOWeekNumbers&&(ke+='<td class="week">'+F[je][0].isoWeek()+"</td>");for(var de=0;de<7;de++){var Ye=[];F[je][de].isSame(new Date,"day")&&Ye.push("today"),F[je][de].isoWeekday()>5&&Ye.push("weekend"),F[je][de].month()!=F[1][1].month()&&Ye.push("off","ends"),this.minDate&&F[je][de].isBefore(this.minDate,"day")&&Ye.push("off","disabled"),Ue&&F[je][de].isAfter(Ue,"day")&&Ye.push("off","disabled"),this.isInvalidDate(F[je][de])&&Ye.push("off","disabled"),F[je][de].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Ye.push("active","start-date"),this.endDate!=null&&F[je][de].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Ye.push("active","end-date"),this.endDate!=null&&F[je][de]>this.startDate&&F[je][de]<this.endDate&&Ye.push("in-range");var Xe=this.isCustomDate(F[je][de]);Xe!==!1&&(typeof Xe=="string"?Ye.push(Xe):Array.prototype.push.apply(Ye,Xe));for(var Qe="",Ze=!1,he=0;he<Ye.length;he++)Qe+=Ye[he]+" ",Ye[he]=="disabled"&&(Ze=!0);Ze||(Qe+="available"),ke+='<td class="'+Qe.replace(/^\s+|\s+$/g,"")+'" data-title="r'+je+"c"+de+'">'+F[je][de].date()+"</td>"}ke+="</tr>"}ke+="</tbody>",ke+="</table>",this.container.find(".drp-calendar."+o+" .calendar-table").html(ke)},renderTimePicker:function(o){if(!(o=="right"&&!this.endDate)){var l,g,k,C=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(C=this.startDate.clone().add(this.maxSpan)),o=="left")g=this.startDate.clone(),k=this.minDate;else if(o=="right"){g=this.endDate.clone(),k=this.startDate;var A=this.container.find(".drp-calendar.right .calendar-time");if(A.html()!=""&&(g.hour(isNaN(g.hour())?A.find(".hourselect option:selected").val():g.hour()),g.minute(isNaN(g.minute())?A.find(".minuteselect option:selected").val():g.minute()),g.second(isNaN(g.second())?A.find(".secondselect option:selected").val():g.second()),!this.timePicker24Hour)){var U=A.find(".ampmselect option:selected").val();U==="PM"&&g.hour()<12&&g.hour(g.hour()+12),U==="AM"&&g.hour()===12&&g.hour(0)}g.isBefore(this.startDate)&&(g=this.startDate.clone()),C&&g.isAfter(C)&&(g=C.clone())}l='<select class="hourselect">';for(var L=this.timePicker24Hour?0:1,q=this.timePicker24Hour?23:12,Q=L;Q<=q;Q++){var re=Q;this.timePicker24Hour||(re=g.hour()>=12?Q==12?12:Q+12:Q==12?0:Q);var ne=g.clone().hour(re),J=!1;k&&ne.minute(59).isBefore(k)&&(J=!0),C&&ne.minute(0).isAfter(C)&&(J=!0),re==g.hour()&&!J?l+='<option value="'+Q+'" selected="selected">'+Q+"</option>":J?l+='<option value="'+Q+'" disabled="disabled" class="disabled">'+Q+"</option>":l+='<option value="'+Q+'">'+Q+"</option>"}l+="</select> ",l+=': <select class="minuteselect">';for(var Q=0;Q<60;Q+=this.timePickerIncrement){var F=Q<10?"0"+Q:Q,ne=g.clone().minute(Q),J=!1;k&&ne.second(59).isBefore(k)&&(J=!0),C&&ne.second(0).isAfter(C)&&(J=!0),g.minute()==Q&&!J?l+='<option value="'+Q+'" selected="selected">'+F+"</option>":J?l+='<option value="'+Q+'" disabled="disabled" class="disabled">'+F+"</option>":l+='<option value="'+Q+'">'+F+"</option>"}if(l+="</select> ",this.timePickerSeconds){l+=': <select class="secondselect">';for(var Q=0;Q<60;Q++){var F=Q<10?"0"+Q:Q,ne=g.clone().second(Q),J=!1;k&&ne.isBefore(k)&&(J=!0),C&&ne.isAfter(C)&&(J=!0),g.second()==Q&&!J?l+='<option value="'+Q+'" selected="selected">'+F+"</option>":J?l+='<option value="'+Q+'" disabled="disabled" class="disabled">'+F+"</option>":l+='<option value="'+Q+'">'+F+"</option>"}l+="</select> "}if(!this.timePicker24Hour){l+='<select class="ampmselect">';var he="",ye="";k&&g.clone().hour(12).minute(0).second(0).isBefore(k)&&(he=' disabled="disabled" class="disabled"'),C&&g.clone().hour(0).minute(0).second(0).isAfter(C)&&(ye=' disabled="disabled" class="disabled"'),g.hour()>=12?l+='<option value="AM"'+he+'>AM</option><option value="PM" selected="selected"'+ye+">PM</option>":l+='<option value="AM" selected="selected"'+he+'>AM</option><option value="PM"'+ye+">PM</option>",l+="</select>"}this.container.find(".drp-calendar."+o+" .calendar-time").html(l)}},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 o={top:0,left:0},l,g=this.drops,k=n(window).width();switch(this.parentEl.is("body")||(o={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},k=this.parentEl[0].clientWidth+this.parentEl.offset().left),g){case"auto":l=this.element.offset().top+this.element.outerHeight()-o.top,l+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(l=this.element.offset().top-this.container.outerHeight()-o.top,g="up");break;case"up":l=this.element.offset().top-this.container.outerHeight()-o.top;break;default:l=this.element.offset().top+this.element.outerHeight()-o.top;break}this.container.css({top:0,left:0,right:"auto"});var C=this.container.outerWidth();if(this.container.toggleClass("drop-up",g=="up"),this.opens=="left"){var A=k-this.element.offset().left-this.element.outerWidth();C+A>n(window).width()?this.container.css({top:l,right:"auto",left:9}):this.container.css({top:l,right:A,left:"auto"})}else if(this.opens=="center"){var U=this.element.offset().left-o.left+this.element.outerWidth()/2-C/2;U<0?this.container.css({top:l,right:"auto",left:9}):U+C>n(window).width()?this.container.css({top:l,left:"auto",right:0}):this.container.css({top:l,left:U,right:"auto"})}else{var U=this.element.offset().left-o.left;U+C>n(window).width()?this.container.css({top:l,left:"auto",right:0}):this.container.css({top:l,left:U,right:"auto"})}},show:function(o){this.isShowing||(this._outsideClickProxy=n.proxy(function(l){this.outsideClick(l)},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(l){this.move(l)},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(o){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(o){this.isShowing?this.hide():this.show()},outsideClick:function(o){var l=n(o.target);o.type=="focusin"||l.closest(this.element).length||l.closest(this.container).length||l.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(o){var l=o.target.getAttribute("data-range-key");if(this.chosenLabel=l,l==this.locale.customRangeLabel)this.showCalendars();else{var g=this.ranges[l];this.startDate=g[0],this.endDate=g[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(o){var l=n(o.target).parents(".drp-calendar");l.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(o){var l=n(o.target).parents(".drp-calendar");l.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(o){if(n(o.target).hasClass("available")){var l=n(o.target).attr("data-title"),g=l.substr(1,1),k=l.substr(3,1),C=n(o.target).parents(".drp-calendar"),A=C.hasClass("left")?this.leftCalendar.calendar[g][k]:this.rightCalendar.calendar[g][k],U=this.leftCalendar,L=this.rightCalendar,q=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(Q,re){if(!n(re).hasClass("week")){var ne=n(re).attr("data-title"),J=ne.substr(1,1),F=ne.substr(3,1),he=n(re).parents(".drp-calendar"),ye=he.hasClass("left")?U.calendar[J][F]:L.calendar[J][F];ye.isAfter(q)&&ye.isBefore(A)||ye.isSame(A,"day")?n(re).addClass("in-range"):n(re).removeClass("in-range")}})}},clickDate:function(o){if(n(o.target).hasClass("available")){var l=n(o.target).attr("data-title"),g=l.substr(1,1),k=l.substr(3,1),C=n(o.target).parents(".drp-calendar"),A=C.hasClass("left")?this.leftCalendar.calendar[g][k]:this.rightCalendar.calendar[g][k];if(this.endDate||A.isBefore(this.startDate,"day")){if(this.timePicker){var U=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var L=this.container.find(".left .ampmselect").val();L==="PM"&&U<12&&(U+=12),L==="AM"&&U===12&&(U=0)}var q=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(q)&&(q=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var Q=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;A=A.clone().hour(U).minute(q).second(Q)}this.endDate=null,this.setStartDate(A.clone())}else if(!this.endDate&&A.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var U=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var L=this.container.find(".right .ampmselect").val();L==="PM"&&U<12&&(U+=12),L==="AM"&&U===12&&(U=0)}var q=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(q)&&(q=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var Q=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;A=A.clone().hour(U).minute(q).second(Q)}this.setEndDate(A.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),o.stopPropagation()}},calculateChosenLabel:function(){var o=!0,l=0;for(var g in this.ranges){if(this.timePicker){var k=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(k)==this.ranges[g][0].format(k)&&this.endDate.format(k)==this.ranges[g][1].format(k)){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+l+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[g][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[g][1].format("YYYY-MM-DD")){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+l+")").addClass("active").attr("data-range-key");break}l++}o&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(o){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(o){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(o){var l=n(o.target).closest(".drp-calendar").hasClass("left"),g=l?"left":"right",k=this.container.find(".drp-calendar."+g),C=parseInt(k.find(".monthselect").val(),10),A=k.find(".yearselect").val();l||(A<this.startDate.year()||A==this.startDate.year()&&C<this.startDate.month())&&(C=this.startDate.month(),A=this.startDate.year()),this.minDate&&(A<this.minDate.year()||A==this.minDate.year()&&C<this.minDate.month())&&(C=this.minDate.month(),A=this.minDate.year()),this.maxDate&&(A>this.maxDate.year()||A==this.maxDate.year()&&C>this.maxDate.month())&&(C=this.maxDate.month(),A=this.maxDate.year()),l?(this.leftCalendar.month.month(C).year(A),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(C).year(A),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(o){var l=n(o.target).closest(".drp-calendar"),g=l.hasClass("left"),k=parseInt(l.find(".hourselect").val(),10),C=parseInt(l.find(".minuteselect").val(),10);isNaN(C)&&(C=parseInt(l.find(".minuteselect option:last").val(),10));var A=this.timePickerSeconds?parseInt(l.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var U=l.find(".ampmselect").val();U==="PM"&&k<12&&(k+=12),U==="AM"&&k===12&&(k=0)}if(g){var L=this.startDate.clone();L.hour(k),L.minute(C),L.second(A),this.setStartDate(L),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==L.format("YYYY-MM-DD")&&this.endDate.isBefore(L)&&this.setEndDate(L.clone())}else if(this.endDate){var q=this.endDate.clone();q.hour(k),q.minute(C),q.second(A),this.setEndDate(q)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var o=this.element.val().split(this.locale.separator),l=null,g=null;o.length===2&&(l=t(o[0],this.locale.format),g=t(o[1],this.locale.format)),(this.singleDatePicker||l===null||g===null)&&(l=t(this.element.val(),this.locale.format),g=l),!(!l.isValid()||!g.isValid())&&(this.setStartDate(l),this.setEndDate(g),this.updateView())}},keydown:function(o){(o.keyCode===9||o.keyCode===13)&&this.hide(),o.keyCode===27&&(o.preventDefault(),o.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var o=this.startDate.format(this.locale.format);this.singleDatePicker||(o+=this.locale.separator+this.endDate.format(this.locale.format)),o!==this.element.val()&&this.element.val(o).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(o,l){var g=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,o);return this.each(function(){var k=n(this);k.data("daterangepicker")&&k.data("daterangepicker").remove(),k.data("daterangepicker",new s(k,g,l))}),this},s})})(Jx);var ed=function(i,t){return ed=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},ed(i,t)};function Zx(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ed(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Qx=function(i){Zx(t,i);function t(n){var s=i.call(this,n)||this;return s.ref=null,s.$picker=null,s}return t.prototype.componentDidMount=function(){var n=this;this.$picker=Kx(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(s){var o,l=s.charAt(0).toLowerCase()+s.slice(1);(o=n.$picker)===null||o===void 0||o.on(l+".daterangepicker",n.makeEventHandler("on"+s))})},t.prototype.componentWillUnmount=function(){var n,s;(s=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||s===void 0||s.remove()},t.prototype.handleCallback=function(){for(var n,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,s)},t.prototype.makeEventHandler=function(n){var s=this,o=this.props.onEvent;return function(l,g){typeof o=="function"&&o(l,g),typeof s.props[n]=="function"&&s.props[n](l,g)}},t.prototype.setStartDate=function(n){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setStartDate(n)},t.prototype.setEndDate=function(n){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setEndDate(n)},t.prototype.render=function(){var n=this,s=tl.Children.only(this.props.children);return tl.cloneElement(s,{ref:function(o){return n.ref=o}})},t}(tl.Component);Ic.styled(i=>Hn.jsx(Ic.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...i}))(({theme:i})=>({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:du.color.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:i.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}}));/**
|
|
175
|
+
*/(function(i){(function(t,n){if(i.exports){var s=typeof window<"u"?window.jQuery:void 0;s||(s=Dg,s.fn||(s.fn={}));var o=typeof window<"u"&&typeof window.moment<"u"?window.moment:W0;i.exports=n(o,s)}else t.daterangepicker=n(t.moment,t.jQuery)})(Ro,function(t,n){var s=function(o,l,g){if(this.parentEl="body",this.element=n(o),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 l!="object"||l===null)&&(l={}),l=n.extend(this.element.data(),l),typeof l.template!="string"&&!(l.template instanceof n)&&(l.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=l.parentEl&&n(l.parentEl).length?n(l.parentEl):n(this.parentEl),this.container=n(l.template).appendTo(this.parentEl),typeof l.locale=="object"&&(typeof l.locale.direction=="string"&&(this.locale.direction=l.locale.direction),typeof l.locale.format=="string"&&(this.locale.format=l.locale.format),typeof l.locale.separator=="string"&&(this.locale.separator=l.locale.separator),typeof l.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=l.locale.daysOfWeek.slice()),typeof l.locale.monthNames=="object"&&(this.locale.monthNames=l.locale.monthNames.slice()),typeof l.locale.firstDay=="number"&&(this.locale.firstDay=l.locale.firstDay),typeof l.locale.applyLabel=="string"&&(this.locale.applyLabel=l.locale.applyLabel),typeof l.locale.cancelLabel=="string"&&(this.locale.cancelLabel=l.locale.cancelLabel),typeof l.locale.weekLabel=="string"&&(this.locale.weekLabel=l.locale.weekLabel),typeof l.locale.customRangeLabel=="string")){var k=document.createElement("textarea");k.innerHTML=l.locale.customRangeLabel;var C=k.value;this.locale.customRangeLabel=C}if(this.container.addClass(this.locale.direction),typeof l.startDate=="string"&&(this.startDate=t(l.startDate,this.locale.format)),typeof l.endDate=="string"&&(this.endDate=t(l.endDate,this.locale.format)),typeof l.minDate=="string"&&(this.minDate=t(l.minDate,this.locale.format)),typeof l.maxDate=="string"&&(this.maxDate=t(l.maxDate,this.locale.format)),typeof l.startDate=="object"&&(this.startDate=t(l.startDate)),typeof l.endDate=="object"&&(this.endDate=t(l.endDate)),typeof l.minDate=="object"&&(this.minDate=t(l.minDate)),typeof l.maxDate=="object"&&(this.maxDate=t(l.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 l.applyButtonClasses=="string"&&(this.applyButtonClasses=l.applyButtonClasses),typeof l.applyClass=="string"&&(this.applyButtonClasses=l.applyClass),typeof l.cancelButtonClasses=="string"&&(this.cancelButtonClasses=l.cancelButtonClasses),typeof l.cancelClass=="string"&&(this.cancelButtonClasses=l.cancelClass),typeof l.maxSpan=="object"&&(this.maxSpan=l.maxSpan),typeof l.dateLimit=="object"&&(this.maxSpan=l.dateLimit),typeof l.opens=="string"&&(this.opens=l.opens),typeof l.drops=="string"&&(this.drops=l.drops),typeof l.showWeekNumbers=="boolean"&&(this.showWeekNumbers=l.showWeekNumbers),typeof l.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=l.showISOWeekNumbers),typeof l.buttonClasses=="string"&&(this.buttonClasses=l.buttonClasses),typeof l.buttonClasses=="object"&&(this.buttonClasses=l.buttonClasses.join(" ")),typeof l.showDropdowns=="boolean"&&(this.showDropdowns=l.showDropdowns),typeof l.minYear=="number"&&(this.minYear=l.minYear),typeof l.maxYear=="number"&&(this.maxYear=l.maxYear),typeof l.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=l.showCustomRangeLabel),typeof l.singleDatePicker=="boolean"&&(this.singleDatePicker=l.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof l.timePicker=="boolean"&&(this.timePicker=l.timePicker),typeof l.timePickerSeconds=="boolean"&&(this.timePickerSeconds=l.timePickerSeconds),typeof l.timePickerIncrement=="number"&&(this.timePickerIncrement=l.timePickerIncrement),typeof l.timePicker24Hour=="boolean"&&(this.timePicker24Hour=l.timePicker24Hour),typeof l.autoApply=="boolean"&&(this.autoApply=l.autoApply),typeof l.autoUpdateInput=="boolean"&&(this.autoUpdateInput=l.autoUpdateInput),typeof l.linkedCalendars=="boolean"&&(this.linkedCalendars=l.linkedCalendars),typeof l.isInvalidDate=="function"&&(this.isInvalidDate=l.isInvalidDate),typeof l.isCustomDate=="function"&&(this.isCustomDate=l.isCustomDate),typeof l.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=l.alwaysShowCalendars),this.locale.firstDay!=0)for(var A=this.locale.firstDay;A>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),A--;var U,L,q;if(typeof l.startDate>"u"&&typeof l.endDate>"u"&&n(this.element).is(":text")){var Q=n(this.element).val(),re=Q.split(this.locale.separator);U=L=null,re.length==2?(U=t(re[0],this.locale.format),L=t(re[1],this.locale.format)):this.singleDatePicker&&Q!==""&&(U=t(Q,this.locale.format),L=t(Q,this.locale.format)),U!==null&&L!==null&&(this.setStartDate(U),this.setEndDate(L))}if(typeof l.ranges=="object"){for(q in l.ranges){typeof l.ranges[q][0]=="string"?U=t(l.ranges[q][0],this.locale.format):U=t(l.ranges[q][0]),typeof l.ranges[q][1]=="string"?L=t(l.ranges[q][1],this.locale.format):L=t(l.ranges[q][1]),this.minDate&&U.isBefore(this.minDate)&&(U=this.minDate.clone());var ne=this.maxDate;if(this.maxSpan&&ne&&U.clone().add(this.maxSpan).isAfter(ne)&&(ne=U.clone().add(this.maxSpan)),ne&&L.isAfter(ne)&&(L=ne.clone()),!(this.minDate&&L.isBefore(this.minDate,this.timepicker?"minute":"day")||ne&&U.isAfter(ne,this.timepicker?"minute":"day"))){var k=document.createElement("textarea");k.innerHTML=q;var C=k.value;this.ranges[C]=[U,L]}}var J="<ul>";for(q in this.ranges)J+='<li data-range-key="'+q+'">'+q+"</li>";this.showCustomRangeLabel&&(J+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),J+="</ul>",this.container.find(".ranges").prepend(J)}typeof g=="function"&&(this.callback=g),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 l.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 l.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 s.prototype={constructor:s,setStartDate:function(o){typeof o=="string"&&(this.startDate=t(o,this.locale.format)),typeof o=="object"&&(this.startDate=t(o)),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(o){typeof o=="string"&&(this.endDate=t(o,this.locale.format)),typeof o=="object"&&(this.endDate=t(o)),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 o,l,g;if(this.endDate){if(o=parseInt(this.container.find(".left .hourselect").val(),10),l=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(l)&&(l=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),g=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var k=this.container.find(".left .ampmselect").val();k==="PM"&&o<12&&(o+=12),k==="AM"&&o===12&&(o=0)}}else if(o=parseInt(this.container.find(".right .hourselect").val(),10),l=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(l)&&(l=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),g=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var k=this.container.find(".right .ampmselect").val();k==="PM"&&o<12&&(o+=12),k==="AM"&&o===12&&(o=0)}this.leftCalendar.month.hour(o).minute(l).second(g),this.rightCalendar.month.hour(o).minute(l).second(g)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(o){var F=o=="left"?this.leftCalendar:this.rightCalendar,l=F.month.month(),g=F.month.year(),k=F.month.hour(),C=F.month.minute(),A=F.month.second(),U=t([g,l]).daysInMonth(),L=t([g,l,1]),q=t([g,l,U]),Q=t(L).subtract(1,"month").month(),re=t(L).subtract(1,"month").year(),ne=t([re,Q]).daysInMonth(),J=L.day(),F=[];F.firstDay=L,F.lastDay=q;for(var he=0;he<6;he++)F[he]=[];var ye=ne-J+this.locale.firstDay+1;ye>ne&&(ye-=7),J==this.locale.firstDay&&(ye=ne-6);for(var Ie=t([re,Q,ye,12,C,A]),de,je,he=0,de=0,je=0;he<42;he++,de++,Ie=t(Ie).add(24,"hour"))he>0&&de%7===0&&(de=0,je++),F[je][de]=Ie.clone().hour(k).minute(C).second(A),Ie.hour(12),this.minDate&&F[je][de].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&F[je][de].isBefore(this.minDate)&&o=="left"&&(F[je][de]=this.minDate.clone()),this.maxDate&&F[je][de].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&F[je][de].isAfter(this.maxDate)&&o=="right"&&(F[je][de]=this.maxDate.clone());o=="left"?this.leftCalendar.calendar=F:this.rightCalendar.calendar=F;var m=o=="left"?this.minDate:this.startDate,Ue=this.maxDate;o=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ke='<table class="table-condensed">';ke+="<thead>",ke+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ke+="<th></th>"),(!m||m.isBefore(F.firstDay))&&(!this.linkedCalendars||o=="left")?ke+='<th class="prev available"><span></span></th>':ke+="<th></th>";var ht=this.locale.monthNames[F[1][1].month()]+F[1][1].format(" YYYY");if(this.showDropdowns){for(var Et=F[1][1].month(),vt=F[1][1].year(),dt=Ue&&Ue.year()||this.maxYear,Ct=m&&m.year()||this.minYear,me=vt==Ct,Le=vt==dt,Ve='<select class="monthselect">',qe=0;qe<12;qe++)(!me||m&&qe>=m.month())&&(!Le||Ue&&qe<=Ue.month())?Ve+="<option value='"+qe+"'"+(qe===Et?" selected='selected'":"")+">"+this.locale.monthNames[qe]+"</option>":Ve+="<option value='"+qe+"'"+(qe===Et?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[qe]+"</option>";Ve+="</select>";for(var lt='<select class="yearselect">',Ce=Ct;Ce<=dt;Ce++)lt+='<option value="'+Ce+'"'+(Ce===vt?' selected="selected"':"")+">"+Ce+"</option>";lt+="</select>",ht=Ve+lt}if(ke+='<th colspan="5" class="month">'+ht+"</th>",(!Ue||Ue.isAfter(F.lastDay))&&(!this.linkedCalendars||o=="right"||this.singleDatePicker)?ke+='<th class="next available"><span></span></th>':ke+="<th></th>",ke+="</tr>",ke+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ke+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Ke,ct){ke+="<th>"+ct+"</th>"}),ke+="</tr>",ke+="</thead>",ke+="<tbody>",this.endDate==null&&this.maxSpan){var Pe=this.startDate.clone().add(this.maxSpan).endOf("day");(!Ue||Pe.isBefore(Ue))&&(Ue=Pe)}for(var je=0;je<6;je++){ke+="<tr>",this.showWeekNumbers?ke+='<td class="week">'+F[je][0].week()+"</td>":this.showISOWeekNumbers&&(ke+='<td class="week">'+F[je][0].isoWeek()+"</td>");for(var de=0;de<7;de++){var Ye=[];F[je][de].isSame(new Date,"day")&&Ye.push("today"),F[je][de].isoWeekday()>5&&Ye.push("weekend"),F[je][de].month()!=F[1][1].month()&&Ye.push("off","ends"),this.minDate&&F[je][de].isBefore(this.minDate,"day")&&Ye.push("off","disabled"),Ue&&F[je][de].isAfter(Ue,"day")&&Ye.push("off","disabled"),this.isInvalidDate(F[je][de])&&Ye.push("off","disabled"),F[je][de].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Ye.push("active","start-date"),this.endDate!=null&&F[je][de].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Ye.push("active","end-date"),this.endDate!=null&&F[je][de]>this.startDate&&F[je][de]<this.endDate&&Ye.push("in-range");var Xe=this.isCustomDate(F[je][de]);Xe!==!1&&(typeof Xe=="string"?Ye.push(Xe):Array.prototype.push.apply(Ye,Xe));for(var Qe="",Ze=!1,he=0;he<Ye.length;he++)Qe+=Ye[he]+" ",Ye[he]=="disabled"&&(Ze=!0);Ze||(Qe+="available"),ke+='<td class="'+Qe.replace(/^\s+|\s+$/g,"")+'" data-title="r'+je+"c"+de+'">'+F[je][de].date()+"</td>"}ke+="</tr>"}ke+="</tbody>",ke+="</table>",this.container.find(".drp-calendar."+o+" .calendar-table").html(ke)},renderTimePicker:function(o){if(!(o=="right"&&!this.endDate)){var l,g,k,C=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(C=this.startDate.clone().add(this.maxSpan)),o=="left")g=this.startDate.clone(),k=this.minDate;else if(o=="right"){g=this.endDate.clone(),k=this.startDate;var A=this.container.find(".drp-calendar.right .calendar-time");if(A.html()!=""&&(g.hour(isNaN(g.hour())?A.find(".hourselect option:selected").val():g.hour()),g.minute(isNaN(g.minute())?A.find(".minuteselect option:selected").val():g.minute()),g.second(isNaN(g.second())?A.find(".secondselect option:selected").val():g.second()),!this.timePicker24Hour)){var U=A.find(".ampmselect option:selected").val();U==="PM"&&g.hour()<12&&g.hour(g.hour()+12),U==="AM"&&g.hour()===12&&g.hour(0)}g.isBefore(this.startDate)&&(g=this.startDate.clone()),C&&g.isAfter(C)&&(g=C.clone())}l='<select class="hourselect">';for(var L=this.timePicker24Hour?0:1,q=this.timePicker24Hour?23:12,Q=L;Q<=q;Q++){var re=Q;this.timePicker24Hour||(re=g.hour()>=12?Q==12?12:Q+12:Q==12?0:Q);var ne=g.clone().hour(re),J=!1;k&&ne.minute(59).isBefore(k)&&(J=!0),C&&ne.minute(0).isAfter(C)&&(J=!0),re==g.hour()&&!J?l+='<option value="'+Q+'" selected="selected">'+Q+"</option>":J?l+='<option value="'+Q+'" disabled="disabled" class="disabled">'+Q+"</option>":l+='<option value="'+Q+'">'+Q+"</option>"}l+="</select> ",l+=': <select class="minuteselect">';for(var Q=0;Q<60;Q+=this.timePickerIncrement){var F=Q<10?"0"+Q:Q,ne=g.clone().minute(Q),J=!1;k&&ne.second(59).isBefore(k)&&(J=!0),C&&ne.second(0).isAfter(C)&&(J=!0),g.minute()==Q&&!J?l+='<option value="'+Q+'" selected="selected">'+F+"</option>":J?l+='<option value="'+Q+'" disabled="disabled" class="disabled">'+F+"</option>":l+='<option value="'+Q+'">'+F+"</option>"}if(l+="</select> ",this.timePickerSeconds){l+=': <select class="secondselect">';for(var Q=0;Q<60;Q++){var F=Q<10?"0"+Q:Q,ne=g.clone().second(Q),J=!1;k&&ne.isBefore(k)&&(J=!0),C&&ne.isAfter(C)&&(J=!0),g.second()==Q&&!J?l+='<option value="'+Q+'" selected="selected">'+F+"</option>":J?l+='<option value="'+Q+'" disabled="disabled" class="disabled">'+F+"</option>":l+='<option value="'+Q+'">'+F+"</option>"}l+="</select> "}if(!this.timePicker24Hour){l+='<select class="ampmselect">';var he="",ye="";k&&g.clone().hour(12).minute(0).second(0).isBefore(k)&&(he=' disabled="disabled" class="disabled"'),C&&g.clone().hour(0).minute(0).second(0).isAfter(C)&&(ye=' disabled="disabled" class="disabled"'),g.hour()>=12?l+='<option value="AM"'+he+'>AM</option><option value="PM" selected="selected"'+ye+">PM</option>":l+='<option value="AM" selected="selected"'+he+'>AM</option><option value="PM"'+ye+">PM</option>",l+="</select>"}this.container.find(".drp-calendar."+o+" .calendar-time").html(l)}},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 o={top:0,left:0},l,g=this.drops,k=n(window).width();switch(this.parentEl.is("body")||(o={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},k=this.parentEl[0].clientWidth+this.parentEl.offset().left),g){case"auto":l=this.element.offset().top+this.element.outerHeight()-o.top,l+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(l=this.element.offset().top-this.container.outerHeight()-o.top,g="up");break;case"up":l=this.element.offset().top-this.container.outerHeight()-o.top;break;default:l=this.element.offset().top+this.element.outerHeight()-o.top;break}this.container.css({top:0,left:0,right:"auto"});var C=this.container.outerWidth();if(this.container.toggleClass("drop-up",g=="up"),this.opens=="left"){var A=k-this.element.offset().left-this.element.outerWidth();C+A>n(window).width()?this.container.css({top:l,right:"auto",left:9}):this.container.css({top:l,right:A,left:"auto"})}else if(this.opens=="center"){var U=this.element.offset().left-o.left+this.element.outerWidth()/2-C/2;U<0?this.container.css({top:l,right:"auto",left:9}):U+C>n(window).width()?this.container.css({top:l,left:"auto",right:0}):this.container.css({top:l,left:U,right:"auto"})}else{var U=this.element.offset().left-o.left;U+C>n(window).width()?this.container.css({top:l,left:"auto",right:0}):this.container.css({top:l,left:U,right:"auto"})}},show:function(o){this.isShowing||(this._outsideClickProxy=n.proxy(function(l){this.outsideClick(l)},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(l){this.move(l)},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(o){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(o){this.isShowing?this.hide():this.show()},outsideClick:function(o){var l=n(o.target);o.type=="focusin"||l.closest(this.element).length||l.closest(this.container).length||l.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(o){var l=o.target.getAttribute("data-range-key");if(this.chosenLabel=l,l==this.locale.customRangeLabel)this.showCalendars();else{var g=this.ranges[l];this.startDate=g[0],this.endDate=g[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(o){var l=n(o.target).parents(".drp-calendar");l.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(o){var l=n(o.target).parents(".drp-calendar");l.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(o){if(n(o.target).hasClass("available")){var l=n(o.target).attr("data-title"),g=l.substr(1,1),k=l.substr(3,1),C=n(o.target).parents(".drp-calendar"),A=C.hasClass("left")?this.leftCalendar.calendar[g][k]:this.rightCalendar.calendar[g][k],U=this.leftCalendar,L=this.rightCalendar,q=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(Q,re){if(!n(re).hasClass("week")){var ne=n(re).attr("data-title"),J=ne.substr(1,1),F=ne.substr(3,1),he=n(re).parents(".drp-calendar"),ye=he.hasClass("left")?U.calendar[J][F]:L.calendar[J][F];ye.isAfter(q)&&ye.isBefore(A)||ye.isSame(A,"day")?n(re).addClass("in-range"):n(re).removeClass("in-range")}})}},clickDate:function(o){if(n(o.target).hasClass("available")){var l=n(o.target).attr("data-title"),g=l.substr(1,1),k=l.substr(3,1),C=n(o.target).parents(".drp-calendar"),A=C.hasClass("left")?this.leftCalendar.calendar[g][k]:this.rightCalendar.calendar[g][k];if(this.endDate||A.isBefore(this.startDate,"day")){if(this.timePicker){var U=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var L=this.container.find(".left .ampmselect").val();L==="PM"&&U<12&&(U+=12),L==="AM"&&U===12&&(U=0)}var q=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(q)&&(q=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var Q=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;A=A.clone().hour(U).minute(q).second(Q)}this.endDate=null,this.setStartDate(A.clone())}else if(!this.endDate&&A.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var U=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var L=this.container.find(".right .ampmselect").val();L==="PM"&&U<12&&(U+=12),L==="AM"&&U===12&&(U=0)}var q=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(q)&&(q=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var Q=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;A=A.clone().hour(U).minute(q).second(Q)}this.setEndDate(A.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),o.stopPropagation()}},calculateChosenLabel:function(){var o=!0,l=0;for(var g in this.ranges){if(this.timePicker){var k=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(k)==this.ranges[g][0].format(k)&&this.endDate.format(k)==this.ranges[g][1].format(k)){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+l+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[g][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[g][1].format("YYYY-MM-DD")){o=!1,this.chosenLabel=this.container.find(".ranges li:eq("+l+")").addClass("active").attr("data-range-key");break}l++}o&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(o){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(o){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(o){var l=n(o.target).closest(".drp-calendar").hasClass("left"),g=l?"left":"right",k=this.container.find(".drp-calendar."+g),C=parseInt(k.find(".monthselect").val(),10),A=k.find(".yearselect").val();l||(A<this.startDate.year()||A==this.startDate.year()&&C<this.startDate.month())&&(C=this.startDate.month(),A=this.startDate.year()),this.minDate&&(A<this.minDate.year()||A==this.minDate.year()&&C<this.minDate.month())&&(C=this.minDate.month(),A=this.minDate.year()),this.maxDate&&(A>this.maxDate.year()||A==this.maxDate.year()&&C>this.maxDate.month())&&(C=this.maxDate.month(),A=this.maxDate.year()),l?(this.leftCalendar.month.month(C).year(A),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(C).year(A),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(o){var l=n(o.target).closest(".drp-calendar"),g=l.hasClass("left"),k=parseInt(l.find(".hourselect").val(),10),C=parseInt(l.find(".minuteselect").val(),10);isNaN(C)&&(C=parseInt(l.find(".minuteselect option:last").val(),10));var A=this.timePickerSeconds?parseInt(l.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var U=l.find(".ampmselect").val();U==="PM"&&k<12&&(k+=12),U==="AM"&&k===12&&(k=0)}if(g){var L=this.startDate.clone();L.hour(k),L.minute(C),L.second(A),this.setStartDate(L),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==L.format("YYYY-MM-DD")&&this.endDate.isBefore(L)&&this.setEndDate(L.clone())}else if(this.endDate){var q=this.endDate.clone();q.hour(k),q.minute(C),q.second(A),this.setEndDate(q)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var o=this.element.val().split(this.locale.separator),l=null,g=null;o.length===2&&(l=t(o[0],this.locale.format),g=t(o[1],this.locale.format)),(this.singleDatePicker||l===null||g===null)&&(l=t(this.element.val(),this.locale.format),g=l),!(!l.isValid()||!g.isValid())&&(this.setStartDate(l),this.setEndDate(g),this.updateView())}},keydown:function(o){(o.keyCode===9||o.keyCode===13)&&this.hide(),o.keyCode===27&&(o.preventDefault(),o.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var o=this.startDate.format(this.locale.format);this.singleDatePicker||(o+=this.locale.separator+this.endDate.format(this.locale.format)),o!==this.element.val()&&this.element.val(o).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(o,l){var g=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,o);return this.each(function(){var k=n(this);k.data("daterangepicker")&&k.data("daterangepicker").remove(),k.data("daterangepicker",new s(k,g,l))}),this},s})})(Zx);var ed=function(i,t){return ed=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(n[o]=s[o])},ed(i,t)};function Qx(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ed(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var e1=function(i){Qx(t,i);function t(n){var s=i.call(this,n)||this;return s.ref=null,s.$picker=null,s}return t.prototype.componentDidMount=function(){var n=this;this.$picker=Jx(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(s){var o,l=s.charAt(0).toLowerCase()+s.slice(1);(o=n.$picker)===null||o===void 0||o.on(l+".daterangepicker",n.makeEventHandler("on"+s))})},t.prototype.componentWillUnmount=function(){var n,s;(s=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||s===void 0||s.remove()},t.prototype.handleCallback=function(){for(var n,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,s)},t.prototype.makeEventHandler=function(n){var s=this,o=this.props.onEvent;return function(l,g){typeof o=="function"&&o(l,g),typeof s.props[n]=="function"&&s.props[n](l,g)}},t.prototype.setStartDate=function(n){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setStartDate(n)},t.prototype.setEndDate=function(n){var s,o;(o=(s=this.$picker)===null||s===void 0?void 0:s.data("daterangepicker"))===null||o===void 0||o.setEndDate(n)},t.prototype.render=function(){var n=this,s=tl.Children.only(this.props.children);return tl.cloneElement(s,{ref:function(o){return n.ref=o}})},t}(tl.Component);Ic.styled(i=>Hn.jsx(Ic.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...i}))(({theme:i})=>({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:du.color.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:i.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}}));/**
|
|
176
176
|
* @license
|
|
177
177
|
* Copyright 2017 Google LLC
|
|
178
178
|
*
|
|
@@ -202,7 +202,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
202
202
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
203
203
|
* See the License for the specific language governing permissions and
|
|
204
204
|
* limitations under the License.
|
|
205
|
-
*/const Ag=function(i){const t=[];let n=0;for(let s=0;s<i.length;s++){let o=i.charCodeAt(s);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=o&63|128):(o&64512)===55296&&s+1<i.length&&(i.charCodeAt(s+1)&64512)===56320?(o=65536+((o&1023)<<10)+(i.charCodeAt(++s)&1023),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=o&63|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=o&63|128)}return t},
|
|
205
|
+
*/const Ag=function(i){const t=[];let n=0;for(let s=0;s<i.length;s++){let o=i.charCodeAt(s);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=o&63|128):(o&64512)===55296&&s+1<i.length&&(i.charCodeAt(s+1)&64512)===56320?(o=65536+((o&1023)<<10)+(i.charCodeAt(++s)&1023),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=o&63|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=o&63|128)}return t},t1=function(i){const t=[];let n=0,s=0;for(;n<i.length;){const o=i[n++];if(o<128)t[s++]=String.fromCharCode(o);else if(o>191&&o<224){const l=i[n++];t[s++]=String.fromCharCode((o&31)<<6|l&63)}else if(o>239&&o<365){const l=i[n++],g=i[n++],k=i[n++],C=((o&7)<<18|(l&63)<<12|(g&63)<<6|k&63)-65536;t[s++]=String.fromCharCode(55296+(C>>10)),t[s++]=String.fromCharCode(56320+(C&1023))}else{const l=i[n++],g=i[n++];t[s++]=String.fromCharCode((o&15)<<12|(l&63)<<6|g&63)}}return t.join("")},Pg={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(i,t){if(!Array.isArray(i))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let o=0;o<i.length;o+=3){const l=i[o],g=o+1<i.length,k=g?i[o+1]:0,C=o+2<i.length,A=C?i[o+2]:0,U=l>>2,L=(l&3)<<4|k>>4;let q=(k&15)<<2|A>>6,Q=A&63;C||(Q=64,g||(q=64)),s.push(n[U],n[L],n[q],n[Q])}return s.join("")},encodeString(i,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(i):this.encodeByteArray(Ag(i),t)},decodeString(i,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(i):t1(this.decodeStringToByteArray(i,t))},decodeStringToByteArray(i,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let o=0;o<i.length;){const l=n[i.charAt(o++)],k=o<i.length?n[i.charAt(o)]:0;++o;const A=o<i.length?n[i.charAt(o)]:64;++o;const L=o<i.length?n[i.charAt(o)]:64;if(++o,l==null||k==null||A==null||L==null)throw new n1;const q=l<<2|k>>4;if(s.push(q),A!==64){const Q=k<<4&240|A>>2;if(s.push(Q),L!==64){const re=A<<6&192|L;s.push(re)}}}return s},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let i=0;i<this.ENCODED_VALS.length;i++)this.byteToCharMap_[i]=this.ENCODED_VALS.charAt(i),this.charToByteMap_[this.byteToCharMap_[i]]=i,this.byteToCharMapWebSafe_[i]=this.ENCODED_VALS_WEBSAFE.charAt(i),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]]=i,i>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)]=i,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)]=i)}}};class n1 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const r1=function(i){const t=Ag(i);return Pg.encodeByteArray(t,!0)},Lg=function(i){return r1(i).replace(/\./g,"")},i1=function(i){try{return Pg.decodeString(i,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
|
|
206
206
|
* @license
|
|
207
207
|
* Copyright 2022 Google LLC
|
|
208
208
|
*
|
|
@@ -217,7 +217,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
217
217
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
218
218
|
* See the License for the specific language governing permissions and
|
|
219
219
|
* limitations under the License.
|
|
220
|
-
*/function
|
|
220
|
+
*/function o1(){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.")}/**
|
|
221
221
|
* @license
|
|
222
222
|
* Copyright 2022 Google LLC
|
|
223
223
|
*
|
|
@@ -232,7 +232,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
232
232
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
233
233
|
* See the License for the specific language governing permissions and
|
|
234
234
|
* limitations under the License.
|
|
235
|
-
*/const
|
|
235
|
+
*/const a1=()=>o1().__FIREBASE_DEFAULTS__,s1=()=>{if(typeof process>"u"||typeof process.env>"u")return;const i=process.env.__FIREBASE_DEFAULTS__;if(i)return JSON.parse(i)},u1=()=>{if(typeof document>"u")return;let i;try{i=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=i&&i1(i[1]);return t&&JSON.parse(t)},l1=()=>{try{return a1()||s1()||u1()}catch(i){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${i}`);return}},Mg=()=>{var i;return(i=l1())===null||i===void 0?void 0:i.config};/**
|
|
236
236
|
* @license
|
|
237
237
|
* Copyright 2017 Google LLC
|
|
238
238
|
*
|
|
@@ -247,7 +247,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
247
247
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
248
248
|
* See the License for the specific language governing permissions and
|
|
249
249
|
* limitations under the License.
|
|
250
|
-
*/class
|
|
250
|
+
*/class c1{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,s)=>{n?this.reject(n):this.resolve(s),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,s))}}}function Fg(){try{return typeof indexedDB=="object"}catch{return!1}}function Ng(){return new Promise((i,t)=>{try{let n=!0;const s="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(s);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(s),i(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var l;t(((l=o.error)===null||l===void 0?void 0:l.message)||"")}}catch(n){t(n)}})}function f1(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
251
251
|
* @license
|
|
252
252
|
* Copyright 2017 Google LLC
|
|
253
253
|
*
|
|
@@ -262,7 +262,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
262
262
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
263
263
|
* See the License for the specific language governing permissions and
|
|
264
264
|
* limitations under the License.
|
|
265
|
-
*/const
|
|
265
|
+
*/const d1="FirebaseError";class Nl extends Error{constructor(t,n,s){super(n),this.code=t,this.customData=s,this.name=d1,Object.setPrototypeOf(this,Nl.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,$c.prototype.create)}}class $c{constructor(t,n,s){this.service=t,this.serviceName=n,this.errors=s}create(t,...n){const s=n[0]||{},o=`${this.service}/${t}`,l=this.errors[t],g=l?h1(l,s):"Error",k=`${this.serviceName}: ${g} (${o}).`;return new Nl(o,k,s)}}function h1(i,t){return i.replace(p1,(n,s)=>{const o=t[s];return o!=null?String(o):`<${s}?>`})}const p1=/\{\$([^}]+)}/g;function td(i,t){if(i===t)return!0;const n=Object.keys(i),s=Object.keys(t);for(const o of n){if(!s.includes(o))return!1;const l=i[o],g=t[o];if(Ip(l)&&Ip(g)){if(!td(l,g))return!1}else if(l!==g)return!1}for(const o of s)if(!n.includes(o))return!1;return!0}function Ip(i){return i!==null&&typeof i=="object"}/**
|
|
266
266
|
* @license
|
|
267
267
|
* Copyright 2021 Google LLC
|
|
268
268
|
*
|
|
@@ -307,7 +307,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
307
307
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
308
308
|
* See the License for the specific language governing permissions and
|
|
309
309
|
* limitations under the License.
|
|
310
|
-
*/class
|
|
310
|
+
*/class g1{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 s=new c1;if(this.instancesDeferred.set(n,s),this.isInitialized(n)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:n});o&&s.resolve(o)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const s=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),o=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(l){if(o)return null;throw l}else{if(o)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(m1(t))try{this.getOrInitializeService({instanceIdentifier:el})}catch{}for(const[n,s]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(n);try{const l=this.getOrInitializeService({instanceIdentifier:o});s.resolve(l)}catch{}}}}clearInstance(t=el){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=el){return this.instances.has(t)}getOptions(t=el){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,s=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(s))throw Error(`${this.name}(${s}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:s,options:n});for(const[l,g]of this.instancesDeferred.entries()){const k=this.normalizeInstanceIdentifier(l);s===k&&g.resolve(o)}return o}onInit(t,n){var s;const o=this.normalizeInstanceIdentifier(n),l=(s=this.onInitCallbacks.get(o))!==null&&s!==void 0?s:new Set;l.add(t),this.onInitCallbacks.set(o,l);const g=this.instances.get(o);return g&&t(g,o),()=>{l.delete(t)}}invokeOnInitCallbacks(t,n){const s=this.onInitCallbacks.get(n);if(s)for(const o of s)try{o(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let s=this.instances.get(t);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:v1(t),options:n}),this.instances.set(t,s),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(s,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,s)}catch{}return s||null}normalizeInstanceIdentifier(t=el){return this.component?this.component.multipleInstances?t:el:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function v1(i){return i===el?void 0:i}function m1(i){return i.instantiationMode==="EAGER"}/**
|
|
311
311
|
* @license
|
|
312
312
|
* Copyright 2019 Google LLC
|
|
313
313
|
*
|
|
@@ -322,7 +322,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
322
322
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
323
323
|
* See the License for the specific language governing permissions and
|
|
324
324
|
* limitations under the License.
|
|
325
|
-
*/class
|
|
325
|
+
*/class y1{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 g1(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
326
326
|
* @license
|
|
327
327
|
* Copyright 2017 Google LLC
|
|
328
328
|
*
|
|
@@ -337,7 +337,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
337
337
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
338
338
|
* See the License for the specific language governing permissions and
|
|
339
339
|
* limitations under the License.
|
|
340
|
-
*/var Pn;(function(i){i[i.DEBUG=0]="DEBUG",i[i.VERBOSE=1]="VERBOSE",i[i.INFO=2]="INFO",i[i.WARN=3]="WARN",i[i.ERROR=4]="ERROR",i[i.SILENT=5]="SILENT"})(Pn||(Pn={}));const
|
|
340
|
+
*/var Pn;(function(i){i[i.DEBUG=0]="DEBUG",i[i.VERBOSE=1]="VERBOSE",i[i.INFO=2]="INFO",i[i.WARN=3]="WARN",i[i.ERROR=4]="ERROR",i[i.SILENT=5]="SILENT"})(Pn||(Pn={}));const b1={debug:Pn.DEBUG,verbose:Pn.VERBOSE,info:Pn.INFO,warn:Pn.WARN,error:Pn.ERROR,silent:Pn.SILENT},w1=Pn.INFO,S1={[Pn.DEBUG]:"log",[Pn.VERBOSE]:"log",[Pn.INFO]:"info",[Pn.WARN]:"warn",[Pn.ERROR]:"error"},x1=(i,t,...n)=>{if(t<i.logLevel)return;const s=new Date().toISOString(),o=S1[t];if(o)console[o](`[${s}] ${i.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class C1{constructor(t){this.name=t,this._logLevel=w1,this._logHandler=x1,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Pn))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?b1[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,Pn.DEBUG,...t),this._logHandler(this,Pn.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Pn.VERBOSE,...t),this._logHandler(this,Pn.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Pn.INFO,...t),this._logHandler(this,Pn.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Pn.WARN,...t),this._logHandler(this,Pn.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Pn.ERROR,...t),this._logHandler(this,Pn.ERROR,...t)}}const E1=(i,t)=>t.some(n=>i instanceof n);let Op,Dp;function k1(){return Op||(Op=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function T1(){return Dp||(Dp=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Bg=new WeakMap,nd=new WeakMap,jg=new WeakMap,Pf=new WeakMap,gd=new WeakMap;function _1(i){const t=new Promise((n,s)=>{const o=()=>{i.removeEventListener("success",l),i.removeEventListener("error",g)},l=()=>{n(Ns(i.result)),o()},g=()=>{s(i.error),o()};i.addEventListener("success",l),i.addEventListener("error",g)});return t.then(n=>{n instanceof IDBCursor&&Bg.set(n,i)}).catch(()=>{}),gd.set(t,i),t}function R1(i){if(nd.has(i))return;const t=new Promise((n,s)=>{const o=()=>{i.removeEventListener("complete",l),i.removeEventListener("error",g),i.removeEventListener("abort",g)},l=()=>{n(),o()},g=()=>{s(i.error||new DOMException("AbortError","AbortError")),o()};i.addEventListener("complete",l),i.addEventListener("error",g),i.addEventListener("abort",g)});nd.set(i,t)}let rd={get(i,t,n){if(i instanceof IDBTransaction){if(t==="done")return nd.get(i);if(t==="objectStoreNames")return i.objectStoreNames||jg.get(i);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ns(i[t])},set(i,t,n){return i[t]=n,!0},has(i,t){return i instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in i}};function I1(i){rd=i(rd)}function O1(i){return i===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const s=i.call(Lf(this),t,...n);return jg.set(s,t.sort?t.sort():[t]),Ns(s)}:T1().includes(i)?function(...t){return i.apply(Lf(this),t),Ns(Bg.get(this))}:function(...t){return Ns(i.apply(Lf(this),t))}}function D1(i){return typeof i=="function"?O1(i):(i instanceof IDBTransaction&&R1(i),E1(i,k1())?new Proxy(i,rd):i)}function Ns(i){if(i instanceof IDBRequest)return _1(i);if(Pf.has(i))return Pf.get(i);const t=D1(i);return t!==i&&(Pf.set(i,t),gd.set(t,i)),t}const Lf=i=>gd.get(i);function zc(i,t,{blocked:n,upgrade:s,blocking:o,terminated:l}={}){const g=indexedDB.open(i,t),k=Ns(g);return s&&g.addEventListener("upgradeneeded",C=>{s(Ns(g.result),C.oldVersion,C.newVersion,Ns(g.transaction),C)}),n&&g.addEventListener("blocked",C=>n(C.oldVersion,C.newVersion,C)),k.then(C=>{l&&C.addEventListener("close",()=>l()),o&&C.addEventListener("versionchange",A=>o(A.oldVersion,A.newVersion,A))}).catch(()=>{}),k}function Mf(i,{blocked:t}={}){const n=indexedDB.deleteDatabase(i);return t&&n.addEventListener("blocked",s=>t(s.oldVersion,s)),Ns(n).then(()=>{})}const A1=["get","getKey","getAll","getAllKeys","count"],P1=["put","add","delete","clear"],Ff=new Map;function Ap(i,t){if(!(i instanceof IDBDatabase&&!(t in i)&&typeof t=="string"))return;if(Ff.get(t))return Ff.get(t);const n=t.replace(/FromIndex$/,""),s=t!==n,o=P1.includes(n);if(!(n in(s?IDBIndex:IDBObjectStore).prototype)||!(o||A1.includes(n)))return;const l=async function(g,...k){const C=this.transaction(g,o?"readwrite":"readonly");let A=C.store;return s&&(A=A.index(k.shift())),(await Promise.all([A[n](...k),o&&C.done]))[0]};return Ff.set(t,l),l}I1(i=>({...i,get:(t,n,s)=>Ap(t,n)||i.get(t,n,s),has:(t,n)=>!!Ap(t,n)||i.has(t,n)}));/**
|
|
341
341
|
* @license
|
|
342
342
|
* Copyright 2019 Google LLC
|
|
343
343
|
*
|
|
@@ -352,7 +352,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
352
352
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
353
353
|
* See the License for the specific language governing permissions and
|
|
354
354
|
* limitations under the License.
|
|
355
|
-
*/class
|
|
355
|
+
*/class L1{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(M1(n)){const s=n.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(n=>n).join(" ")}}function M1(i){const t=i.getComponent();return(t==null?void 0:t.type)==="VERSION"}const id="@firebase/app",Pp="0.9.28";/**
|
|
356
356
|
* @license
|
|
357
357
|
* Copyright 2019 Google LLC
|
|
358
358
|
*
|
|
@@ -367,7 +367,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
367
367
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
368
368
|
* See the License for the specific language governing permissions and
|
|
369
369
|
* limitations under the License.
|
|
370
|
-
*/const al=new
|
|
370
|
+
*/const al=new C1("@firebase/app"),F1="@firebase/app-compat",N1="@firebase/analytics-compat",B1="@firebase/analytics",j1="@firebase/app-check-compat",H1="@firebase/app-check",U1="@firebase/auth",W1="@firebase/auth-compat",$1="@firebase/database",z1="@firebase/database-compat",Y1="@firebase/functions",V1="@firebase/functions-compat",G1="@firebase/installations",q1="@firebase/installations-compat",X1="@firebase/messaging",K1="@firebase/messaging-compat",J1="@firebase/performance",Z1="@firebase/performance-compat",Q1="@firebase/remote-config",eC="@firebase/remote-config-compat",tC="@firebase/storage",nC="@firebase/storage-compat",rC="@firebase/firestore",iC="@firebase/firestore-compat",oC="firebase";/**
|
|
371
371
|
* @license
|
|
372
372
|
* Copyright 2019 Google LLC
|
|
373
373
|
*
|
|
@@ -382,7 +382,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
382
382
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
383
383
|
* See the License for the specific language governing permissions and
|
|
384
384
|
* limitations under the License.
|
|
385
|
-
*/const od="[DEFAULT]",
|
|
385
|
+
*/const od="[DEFAULT]",aC={[id]:"fire-core",[F1]:"fire-core-compat",[B1]:"fire-analytics",[N1]:"fire-analytics-compat",[H1]:"fire-app-check",[j1]:"fire-app-check-compat",[U1]:"fire-auth",[W1]:"fire-auth-compat",[$1]:"fire-rtdb",[z1]:"fire-rtdb-compat",[Y1]:"fire-fn",[V1]:"fire-fn-compat",[G1]:"fire-iid",[q1]:"fire-iid-compat",[X1]:"fire-fcm",[K1]:"fire-fcm-compat",[J1]:"fire-perf",[Z1]:"fire-perf-compat",[Q1]:"fire-rc",[eC]:"fire-rc-compat",[tC]:"fire-gcs",[nC]:"fire-gcs-compat",[rC]:"fire-fst",[iC]:"fire-fst-compat","fire-js":"fire-js",[oC]:"fire-js-all"};/**
|
|
386
386
|
* @license
|
|
387
387
|
* Copyright 2019 Google LLC
|
|
388
388
|
*
|
|
@@ -397,7 +397,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
397
397
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
398
398
|
* See the License for the specific language governing permissions and
|
|
399
399
|
* limitations under the License.
|
|
400
|
-
*/const Nc=new Map,ad=new Map;function
|
|
400
|
+
*/const Nc=new Map,ad=new Map;function sC(i,t){try{i.container.addComponent(t)}catch(n){al.debug(`Component ${t.name} failed to register with FirebaseApp ${i.name}`,n)}}function sl(i){const t=i.name;if(ad.has(t))return al.debug(`There were multiple attempts to register component ${t}.`),!1;ad.set(t,i);for(const n of Nc.values())sC(n,i);return!0}function vd(i,t){const n=i.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),i.container.getProvider(t)}/**
|
|
401
401
|
* @license
|
|
402
402
|
* Copyright 2019 Google LLC
|
|
403
403
|
*
|
|
@@ -412,7 +412,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
412
412
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
413
413
|
* See the License for the specific language governing permissions and
|
|
414
414
|
* limitations under the License.
|
|
415
|
-
*/const
|
|
415
|
+
*/const uC={"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}."},hu=new $c("app","Firebase",uC);/**
|
|
416
416
|
* @license
|
|
417
417
|
* Copyright 2019 Google LLC
|
|
418
418
|
*
|
|
@@ -427,7 +427,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
427
427
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
428
428
|
* See the License for the specific language governing permissions and
|
|
429
429
|
* limitations under the License.
|
|
430
|
-
*/class
|
|
430
|
+
*/class lC{constructor(t,n,s){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new vu("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 hu.create("app-deleted",{appName:this._name})}}function md(i,t={}){let n=i;typeof t!="object"&&(t={name:t});const s=Object.assign({name:od,automaticDataCollectionEnabled:!1},t),o=s.name;if(typeof o!="string"||!o)throw hu.create("bad-app-name",{appName:String(o)});if(n||(n=Mg()),!n)throw hu.create("no-options");const l=Nc.get(o);if(l){if(td(n,l.options)&&td(s,l.config))return l;throw hu.create("duplicate-app",{appName:o})}const g=new y1(o);for(const C of ad.values())g.addComponent(C);const k=new lC(n,s,g);return Nc.set(o,k),k}function cC(i=od){const t=Nc.get(i);if(!t&&i===od&&Mg())return md();if(!t)throw hu.create("no-app",{appName:i});return t}function pu(i,t,n){var s;let o=(s=aC[i])!==null&&s!==void 0?s:i;n&&(o+=`-${n}`);const l=o.match(/\s|\//),g=t.match(/\s|\//);if(l||g){const k=[`Unable to register library "${o}" with version "${t}":`];l&&k.push(`library name "${o}" contains illegal characters (whitespace or "/")`),l&&g&&k.push("and"),g&&k.push(`version name "${t}" contains illegal characters (whitespace or "/")`),al.warn(k.join(" "));return}sl(new vu(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/**
|
|
431
431
|
* @license
|
|
432
432
|
* Copyright 2021 Google LLC
|
|
433
433
|
*
|
|
@@ -442,7 +442,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
442
442
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
443
443
|
* See the License for the specific language governing permissions and
|
|
444
444
|
* limitations under the License.
|
|
445
|
-
*/const
|
|
445
|
+
*/const fC="firebase-heartbeat-database",dC=1,ic="firebase-heartbeat-store";let Nf=null;function Hg(){return Nf||(Nf=zc(fC,dC,{upgrade:(i,t)=>{switch(t){case 0:try{i.createObjectStore(ic)}catch(n){console.warn(n)}}}}).catch(i=>{throw hu.create("idb-open",{originalErrorMessage:i.message})})),Nf}async function hC(i){try{const n=(await Hg()).transaction(ic),s=await n.objectStore(ic).get(Ug(i));return await n.done,s}catch(t){if(t instanceof Nl)al.warn(t.message);else{const n=hu.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});al.warn(n.message)}}}async function Lp(i,t){try{const s=(await Hg()).transaction(ic,"readwrite");await s.objectStore(ic).put(t,Ug(i)),await s.done}catch(n){if(n instanceof Nl)al.warn(n.message);else{const s=hu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});al.warn(s.message)}}}function Ug(i){return`${i.name}!${i.options.appId}`}/**
|
|
446
446
|
* @license
|
|
447
447
|
* Copyright 2021 Google LLC
|
|
448
448
|
*
|
|
@@ -457,7 +457,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
457
457
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
458
458
|
* See the License for the specific language governing permissions and
|
|
459
459
|
* limitations under the License.
|
|
460
|
-
*/const
|
|
460
|
+
*/const pC=1024,gC=30*24*60*60*1e3;class vC{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new yC(n),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){var t,n;const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),l=Mp();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===l||this._heartbeatsCache.heartbeats.some(g=>g.date===l)))return this._heartbeatsCache.heartbeats.push({date:l,agent:o}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(g=>{const k=new Date(g.date).valueOf();return Date.now()-k<=gC}),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=Mp(),{heartbeatsToSend:s,unsentEntries:o}=mC(this._heartbeatsCache.heartbeats),l=Lg(JSON.stringify({version:2,heartbeats:s}));return this._heartbeatsCache.lastSentHeartbeatDate=n,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),l}}function Mp(){return new Date().toISOString().substring(0,10)}function mC(i,t=pC){const n=[];let s=i.slice();for(const o of i){const l=n.find(g=>g.agent===o.agent);if(l){if(l.dates.push(o.date),Fp(n)>t){l.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),Fp(n)>t){n.pop();break}s=s.slice(1)}return{heartbeatsToSend:n,unsentEntries:s}}class yC{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Fg()?Ng().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await hC(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return Lp(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return Lp(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function Fp(i){return Lg(JSON.stringify({version:2,heartbeats:i})).length}/**
|
|
461
461
|
* @license
|
|
462
462
|
* Copyright 2019 Google LLC
|
|
463
463
|
*
|
|
@@ -472,7 +472,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
472
472
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
473
473
|
* See the License for the specific language governing permissions and
|
|
474
474
|
* limitations under the License.
|
|
475
|
-
*/function
|
|
475
|
+
*/function bC(i){sl(new vu("platform-logger",t=>new L1(t),"PRIVATE")),sl(new vu("heartbeat",t=>new vC(t),"PRIVATE")),pu(id,Pp,i),pu(id,Pp,"esm2017"),pu("fire-js","")}bC("");var wC="firebase",SC="10.8.1";/**
|
|
476
476
|
* @license
|
|
477
477
|
* Copyright 2020 Google LLC
|
|
478
478
|
*
|
|
@@ -487,7 +487,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
487
487
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
488
488
|
* See the License for the specific language governing permissions and
|
|
489
489
|
* limitations under the License.
|
|
490
|
-
*/pu(
|
|
490
|
+
*/pu(wC,SC,"app");const Wg="@firebase/installations",yd="0.6.5";/**
|
|
491
491
|
* @license
|
|
492
492
|
* Copyright 2019 Google LLC
|
|
493
493
|
*
|
|
@@ -502,7 +502,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
502
502
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
503
503
|
* See the License for the specific language governing permissions and
|
|
504
504
|
* limitations under the License.
|
|
505
|
-
*/const $g=1e4,zg=`w:${yd}`,Yg="FIS_v2",
|
|
505
|
+
*/const $g=1e4,zg=`w:${yd}`,Yg="FIS_v2",xC="https://firebaseinstallations.googleapis.com/v1",CC=60*60*1e3,EC="installations",kC="Installations";/**
|
|
506
506
|
* @license
|
|
507
507
|
* Copyright 2019 Google LLC
|
|
508
508
|
*
|
|
@@ -517,7 +517,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
517
517
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
518
518
|
* See the License for the specific language governing permissions and
|
|
519
519
|
* limitations under the License.
|
|
520
|
-
*/const
|
|
520
|
+
*/const TC={"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."},ul=new $c(EC,kC,TC);function Vg(i){return i instanceof Nl&&i.code.includes("request-failed")}/**
|
|
521
521
|
* @license
|
|
522
522
|
* Copyright 2019 Google LLC
|
|
523
523
|
*
|
|
@@ -532,7 +532,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
532
532
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
533
533
|
* See the License for the specific language governing permissions and
|
|
534
534
|
* limitations under the License.
|
|
535
|
-
*/function Gg({projectId:i}){return`${
|
|
535
|
+
*/function Gg({projectId:i}){return`${xC}/projects/${i}/installations`}function qg(i){return{token:i.token,requestStatus:2,expiresIn:RC(i.expiresIn),creationTime:Date.now()}}async function Xg(i,t){const s=(await t.json()).error;return ul.create("request-failed",{requestName:i,serverCode:s.code,serverMessage:s.message,serverStatus:s.status})}function Kg({apiKey:i}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":i})}function _C(i,{refreshToken:t}){const n=Kg(i);return n.append("Authorization",IC(t)),n}async function Jg(i){const t=await i();return t.status>=500&&t.status<600?i():t}function RC(i){return Number(i.replace("s","000"))}function IC(i){return`${Yg} ${i}`}/**
|
|
536
536
|
* @license
|
|
537
537
|
* Copyright 2019 Google LLC
|
|
538
538
|
*
|
|
@@ -547,7 +547,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
547
547
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
548
548
|
* See the License for the specific language governing permissions and
|
|
549
549
|
* limitations under the License.
|
|
550
|
-
*/async function
|
|
550
|
+
*/async function OC({appConfig:i,heartbeatServiceProvider:t},{fid:n}){const s=Gg(i),o=Kg(i),l=t.getImmediate({optional:!0});if(l){const A=await l.getHeartbeatsHeader();A&&o.append("x-firebase-client",A)}const g={fid:n,authVersion:Yg,appId:i.appId,sdkVersion:zg},k={method:"POST",headers:o,body:JSON.stringify(g)},C=await Jg(()=>fetch(s,k));if(C.ok){const A=await C.json();return{fid:A.fid||n,registrationStatus:2,refreshToken:A.refreshToken,authToken:qg(A.authToken)}}else throw await Xg("Create Installation",C)}/**
|
|
551
551
|
* @license
|
|
552
552
|
* Copyright 2019 Google LLC
|
|
553
553
|
*
|
|
@@ -577,7 +577,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
577
577
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
578
578
|
* See the License for the specific language governing permissions and
|
|
579
579
|
* limitations under the License.
|
|
580
|
-
*/function
|
|
580
|
+
*/function DC(i){return btoa(String.fromCharCode(...i)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
581
581
|
* @license
|
|
582
582
|
* Copyright 2019 Google LLC
|
|
583
583
|
*
|
|
@@ -592,7 +592,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
592
592
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
593
593
|
* See the License for the specific language governing permissions and
|
|
594
594
|
* limitations under the License.
|
|
595
|
-
*/const
|
|
595
|
+
*/const AC=/^[cdef][\w-]{21}$/,sd="";function PC(){try{const i=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(i),i[0]=112+i[0]%16;const n=LC(i);return AC.test(n)?n:sd}catch{return sd}}function LC(i){return DC(i).substr(0,22)}/**
|
|
596
596
|
* @license
|
|
597
597
|
* Copyright 2019 Google LLC
|
|
598
598
|
*
|
|
@@ -622,7 +622,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
622
622
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
623
623
|
* See the License for the specific language governing permissions and
|
|
624
624
|
* limitations under the License.
|
|
625
|
-
*/const Qg=new Map;function ev(i,t){const n=Yc(i);tv(n,t),
|
|
625
|
+
*/const Qg=new Map;function ev(i,t){const n=Yc(i);tv(n,t),MC(n,t)}function tv(i,t){const n=Qg.get(i);if(n)for(const s of n)s(t)}function MC(i,t){const n=FC();n&&n.postMessage({key:i,fid:t}),NC()}let nl=null;function FC(){return!nl&&"BroadcastChannel"in self&&(nl=new BroadcastChannel("[Firebase] FID Change"),nl.onmessage=i=>{tv(i.data.key,i.data.fid)}),nl}function NC(){Qg.size===0&&nl&&(nl.close(),nl=null)}/**
|
|
626
626
|
* @license
|
|
627
627
|
* Copyright 2019 Google LLC
|
|
628
628
|
*
|
|
@@ -637,7 +637,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
637
637
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
638
638
|
* See the License for the specific language governing permissions and
|
|
639
639
|
* limitations under the License.
|
|
640
|
-
*/const
|
|
640
|
+
*/const BC="firebase-installations-database",jC=1,ll="firebase-installations-store";let Bf=null;function bd(){return Bf||(Bf=zc(BC,jC,{upgrade:(i,t)=>{switch(t){case 0:i.createObjectStore(ll)}}})),Bf}async function Bc(i,t){const n=Yc(i),o=(await bd()).transaction(ll,"readwrite"),l=o.objectStore(ll),g=await l.get(n);return await l.put(t,n),await o.done,(!g||g.fid!==t.fid)&&ev(i,t.fid),t}async function nv(i){const t=Yc(i),s=(await bd()).transaction(ll,"readwrite");await s.objectStore(ll).delete(t),await s.done}async function Vc(i,t){const n=Yc(i),o=(await bd()).transaction(ll,"readwrite"),l=o.objectStore(ll),g=await l.get(n),k=t(g);return k===void 0?await l.delete(n):await l.put(k,n),await o.done,k&&(!g||g.fid!==k.fid)&&ev(i,k.fid),k}/**
|
|
641
641
|
* @license
|
|
642
642
|
* Copyright 2019 Google LLC
|
|
643
643
|
*
|
|
@@ -652,7 +652,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
652
652
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
653
653
|
* See the License for the specific language governing permissions and
|
|
654
654
|
* limitations under the License.
|
|
655
|
-
*/async function wd(i){let t;const n=await Vc(i.appConfig,s=>{const o=
|
|
655
|
+
*/async function wd(i){let t;const n=await Vc(i.appConfig,s=>{const o=HC(s),l=UC(i,o);return t=l.registrationPromise,l.installationEntry});return n.fid===sd?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function HC(i){const t=i||{fid:PC(),registrationStatus:0};return rv(t)}function UC(i,t){if(t.registrationStatus===0){if(!navigator.onLine){const o=Promise.reject(ul.create("app-offline"));return{installationEntry:t,registrationPromise:o}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},s=WC(i,n);return{installationEntry:n,registrationPromise:s}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:$C(i)}:{installationEntry:t}}async function WC(i,t){try{const n=await OC(i,t);return Bc(i.appConfig,n)}catch(n){throw Vg(n)&&n.customData.serverCode===409?await nv(i.appConfig):await Bc(i.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function $C(i){let t=await Np(i.appConfig);for(;t.registrationStatus===1;)await Zg(100),t=await Np(i.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:s}=await wd(i);return s||n}return t}function Np(i){return Vc(i,t=>{if(!t)throw ul.create("installation-not-found");return rv(t)})}function rv(i){return zC(i)?{fid:i.fid,registrationStatus:0}:i}function zC(i){return i.registrationStatus===1&&i.registrationTime+$g<Date.now()}/**
|
|
656
656
|
* @license
|
|
657
657
|
* Copyright 2019 Google LLC
|
|
658
658
|
*
|
|
@@ -667,7 +667,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
667
667
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
668
668
|
* See the License for the specific language governing permissions and
|
|
669
669
|
* limitations under the License.
|
|
670
|
-
*/async function
|
|
670
|
+
*/async function YC({appConfig:i,heartbeatServiceProvider:t},n){const s=VC(i,n),o=_C(i,n),l=t.getImmediate({optional:!0});if(l){const A=await l.getHeartbeatsHeader();A&&o.append("x-firebase-client",A)}const g={installation:{sdkVersion:zg,appId:i.appId}},k={method:"POST",headers:o,body:JSON.stringify(g)},C=await Jg(()=>fetch(s,k));if(C.ok){const A=await C.json();return qg(A)}else throw await Xg("Generate Auth Token",C)}function VC(i,{fid:t}){return`${Gg(i)}/${t}/authTokens:generate`}/**
|
|
671
671
|
* @license
|
|
672
672
|
* Copyright 2019 Google LLC
|
|
673
673
|
*
|
|
@@ -682,7 +682,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
682
682
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
683
683
|
* See the License for the specific language governing permissions and
|
|
684
684
|
* limitations under the License.
|
|
685
|
-
*/async function Sd(i,t=!1){let n;const s=await Vc(i.appConfig,l=>{if(!iv(l))throw ul.create("not-registered");const g=l.authToken;if(!t&&
|
|
685
|
+
*/async function Sd(i,t=!1){let n;const s=await Vc(i.appConfig,l=>{if(!iv(l))throw ul.create("not-registered");const g=l.authToken;if(!t&&XC(g))return l;if(g.requestStatus===1)return n=GC(i,t),l;{if(!navigator.onLine)throw ul.create("app-offline");const k=JC(l);return n=qC(i,k),k}});return n?await n:s.authToken}async function GC(i,t){let n=await Bp(i.appConfig);for(;n.authToken.requestStatus===1;)await Zg(100),n=await Bp(i.appConfig);const s=n.authToken;return s.requestStatus===0?Sd(i,t):s}function Bp(i){return Vc(i,t=>{if(!iv(t))throw ul.create("not-registered");const n=t.authToken;return ZC(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function qC(i,t){try{const n=await YC(i,t),s=Object.assign(Object.assign({},t),{authToken:n});return await Bc(i.appConfig,s),n}catch(n){if(Vg(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await nv(i.appConfig);else{const s=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Bc(i.appConfig,s)}throw n}}function iv(i){return i!==void 0&&i.registrationStatus===2}function XC(i){return i.requestStatus===2&&!KC(i)}function KC(i){const t=Date.now();return t<i.creationTime||i.creationTime+i.expiresIn<t+CC}function JC(i){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},i),{authToken:t})}function ZC(i){return i.requestStatus===1&&i.requestTime+$g<Date.now()}/**
|
|
686
686
|
* @license
|
|
687
687
|
* Copyright 2019 Google LLC
|
|
688
688
|
*
|
|
@@ -697,7 +697,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
697
697
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
698
698
|
* See the License for the specific language governing permissions and
|
|
699
699
|
* limitations under the License.
|
|
700
|
-
*/async function
|
|
700
|
+
*/async function QC(i){const t=i,{installationEntry:n,registrationPromise:s}=await wd(t);return s?s.catch(console.error):Sd(t).catch(console.error),n.fid}/**
|
|
701
701
|
* @license
|
|
702
702
|
* Copyright 2019 Google LLC
|
|
703
703
|
*
|
|
@@ -712,7 +712,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
712
712
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
713
713
|
* See the License for the specific language governing permissions and
|
|
714
714
|
* limitations under the License.
|
|
715
|
-
*/async function
|
|
715
|
+
*/async function eE(i,t=!1){const n=i;return await tE(n),(await Sd(n,t)).token}async function tE(i){const{registrationPromise:t}=await wd(i);t&&await t}/**
|
|
716
716
|
* @license
|
|
717
717
|
* Copyright 2019 Google LLC
|
|
718
718
|
*
|
|
@@ -727,7 +727,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
727
727
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
728
728
|
* See the License for the specific language governing permissions and
|
|
729
729
|
* limitations under the License.
|
|
730
|
-
*/function
|
|
730
|
+
*/function nE(i){if(!i||!i.options)throw jf("App Configuration");if(!i.name)throw jf("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!i.options[n])throw jf(n);return{appName:i.name,projectId:i.options.projectId,apiKey:i.options.apiKey,appId:i.options.appId}}function jf(i){return ul.create("missing-app-config-values",{valueName:i})}/**
|
|
731
731
|
* @license
|
|
732
732
|
* Copyright 2020 Google LLC
|
|
733
733
|
*
|
|
@@ -742,7 +742,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
742
742
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
743
743
|
* See the License for the specific language governing permissions and
|
|
744
744
|
* limitations under the License.
|
|
745
|
-
*/const ov="installations",
|
|
745
|
+
*/const ov="installations",rE="installations-internal",iE=i=>{const t=i.getProvider("app").getImmediate(),n=nE(t),s=vd(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:s,_delete:()=>Promise.resolve()}},oE=i=>{const t=i.getProvider("app").getImmediate(),n=vd(t,ov).getImmediate();return{getId:()=>QC(n),getToken:o=>eE(n,o)}};function aE(){sl(new vu(ov,iE,"PUBLIC")),sl(new vu(rE,oE,"PRIVATE"))}aE();pu(Wg,yd);pu(Wg,yd,"esm2017");/**
|
|
746
746
|
* @license
|
|
747
747
|
* Copyright 2019 Google LLC
|
|
748
748
|
*
|
|
@@ -757,7 +757,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
757
757
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
758
758
|
* See the License for the specific language governing permissions and
|
|
759
759
|
* limitations under the License.
|
|
760
|
-
*/const
|
|
760
|
+
*/const sE="/firebase-messaging-sw.js",uE="/firebase-cloud-messaging-push-scope",av="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",lE="https://fcmregistrations.googleapis.com/v1",sv="google.c.a.c_id",cE="google.c.a.c_l",fE="google.c.a.ts",dE="google.c.a.e";var jp;(function(i){i[i.DATA_MESSAGE=1]="DATA_MESSAGE",i[i.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(jp||(jp={}));/**
|
|
761
761
|
* @license
|
|
762
762
|
* Copyright 2018 Google LLC
|
|
763
763
|
*
|
|
@@ -785,7 +785,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
785
785
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
786
786
|
* See the License for the specific language governing permissions and
|
|
787
787
|
* limitations under the License.
|
|
788
|
-
*/function Ps(i){const t=new Uint8Array(i);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function
|
|
788
|
+
*/function Ps(i){const t=new Uint8Array(i);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function hE(i){const t="=".repeat((4-i.length%4)%4),n=(i+t).replace(/\-/g,"+").replace(/_/g,"/"),s=atob(n),o=new Uint8Array(s.length);for(let l=0;l<s.length;++l)o[l]=s.charCodeAt(l);return o}/**
|
|
789
789
|
* @license
|
|
790
790
|
* Copyright 2019 Google LLC
|
|
791
791
|
*
|
|
@@ -800,7 +800,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
800
800
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
801
801
|
* See the License for the specific language governing permissions and
|
|
802
802
|
* limitations under the License.
|
|
803
|
-
*/const Hf="fcm_token_details_db",
|
|
803
|
+
*/const Hf="fcm_token_details_db",pE=5,Hp="fcm_token_object_Store";async function gE(i){if("databases"in indexedDB&&!(await indexedDB.databases()).map(l=>l.name).includes(Hf))return null;let t=null;return(await zc(Hf,pE,{upgrade:async(s,o,l,g)=>{var k;if(o<2||!s.objectStoreNames.contains(Hp))return;const C=g.objectStore(Hp),A=await C.index("fcmSenderId").get(i);if(await C.clear(),!!A){if(o===2){const U=A;if(!U.auth||!U.p256dh||!U.endpoint)return;t={token:U.fcmToken,createTime:(k=U.createTime)!==null&&k!==void 0?k:Date.now(),subscriptionOptions:{auth:U.auth,p256dh:U.p256dh,endpoint:U.endpoint,swScope:U.swScope,vapidKey:typeof U.vapidKey=="string"?U.vapidKey:Ps(U.vapidKey)}}}else if(o===3){const U=A;t={token:U.fcmToken,createTime:U.createTime,subscriptionOptions:{auth:Ps(U.auth),p256dh:Ps(U.p256dh),endpoint:U.endpoint,swScope:U.swScope,vapidKey:Ps(U.vapidKey)}}}else if(o===4){const U=A;t={token:U.fcmToken,createTime:U.createTime,subscriptionOptions:{auth:Ps(U.auth),p256dh:Ps(U.p256dh),endpoint:U.endpoint,swScope:U.swScope,vapidKey:Ps(U.vapidKey)}}}}}})).close(),await Mf(Hf),await Mf("fcm_vapid_details_db"),await Mf("undefined"),vE(t)?t:null}function vE(i){if(!i||!i.subscriptionOptions)return!1;const{subscriptionOptions:t}=i;return typeof i.createTime=="number"&&i.createTime>0&&typeof i.token=="string"&&i.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}/**
|
|
804
804
|
* @license
|
|
805
805
|
* Copyright 2019 Google LLC
|
|
806
806
|
*
|
|
@@ -815,7 +815,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
815
815
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
816
816
|
* See the License for the specific language governing permissions and
|
|
817
817
|
* limitations under the License.
|
|
818
|
-
*/const
|
|
818
|
+
*/const mE="firebase-messaging-database",yE=1,cl="firebase-messaging-store";let Uf=null;function xd(){return Uf||(Uf=zc(mE,yE,{upgrade:(i,t)=>{switch(t){case 0:i.createObjectStore(cl)}}})),Uf}async function uv(i){const t=Ed(i),s=await(await xd()).transaction(cl).objectStore(cl).get(t);if(s)return s;{const o=await gE(i.appConfig.senderId);if(o)return await Cd(i,o),o}}async function Cd(i,t){const n=Ed(i),o=(await xd()).transaction(cl,"readwrite");return await o.objectStore(cl).put(t,n),await o.done,t}async function bE(i){const t=Ed(i),s=(await xd()).transaction(cl,"readwrite");await s.objectStore(cl).delete(t),await s.done}function Ed({appConfig:i}){return i.appId}/**
|
|
819
819
|
* @license
|
|
820
820
|
* Copyright 2017 Google LLC
|
|
821
821
|
*
|
|
@@ -830,7 +830,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
830
830
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
831
831
|
* See the License for the specific language governing permissions and
|
|
832
832
|
* limitations under the License.
|
|
833
|
-
*/const
|
|
833
|
+
*/const wE={"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."},Si=new $c("messaging","Messaging",wE);/**
|
|
834
834
|
* @license
|
|
835
835
|
* Copyright 2019 Google LLC
|
|
836
836
|
*
|
|
@@ -845,7 +845,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
845
845
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
846
846
|
* See the License for the specific language governing permissions and
|
|
847
847
|
* limitations under the License.
|
|
848
|
-
*/async function
|
|
848
|
+
*/async function SE(i,t){const n=await Td(i),s=cv(t),o={method:"POST",headers:n,body:JSON.stringify(s)};let l;try{l=await(await fetch(kd(i.appConfig),o)).json()}catch(g){throw Si.create("token-subscribe-failed",{errorInfo:g==null?void 0:g.toString()})}if(l.error){const g=l.error.message;throw Si.create("token-subscribe-failed",{errorInfo:g})}if(!l.token)throw Si.create("token-subscribe-no-token");return l.token}async function xE(i,t){const n=await Td(i),s=cv(t.subscriptionOptions),o={method:"PATCH",headers:n,body:JSON.stringify(s)};let l;try{l=await(await fetch(`${kd(i.appConfig)}/${t.token}`,o)).json()}catch(g){throw Si.create("token-update-failed",{errorInfo:g==null?void 0:g.toString()})}if(l.error){const g=l.error.message;throw Si.create("token-update-failed",{errorInfo:g})}if(!l.token)throw Si.create("token-update-no-token");return l.token}async function lv(i,t){const s={method:"DELETE",headers:await Td(i)};try{const l=await(await fetch(`${kd(i.appConfig)}/${t}`,s)).json();if(l.error){const g=l.error.message;throw Si.create("token-unsubscribe-failed",{errorInfo:g})}}catch(o){throw Si.create("token-unsubscribe-failed",{errorInfo:o==null?void 0:o.toString()})}}function kd({projectId:i}){return`${lE}/projects/${i}/registrations`}async function Td({appConfig:i,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":i.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function cv({p256dh:i,auth:t,endpoint:n,vapidKey:s}){const o={web:{endpoint:n,auth:t,p256dh:i}};return s!==av&&(o.web.applicationPubKey=s),o}/**
|
|
849
849
|
* @license
|
|
850
850
|
* Copyright 2019 Google LLC
|
|
851
851
|
*
|
|
@@ -860,7 +860,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
860
860
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
861
861
|
* See the License for the specific language governing permissions and
|
|
862
862
|
* limitations under the License.
|
|
863
|
-
*/const
|
|
863
|
+
*/const CE=7*24*60*60*1e3;async function EE(i){const t=await _E(i.swRegistration,i.vapidKey),n={vapidKey:i.vapidKey,swScope:i.swRegistration.scope,endpoint:t.endpoint,auth:Ps(t.getKey("auth")),p256dh:Ps(t.getKey("p256dh"))},s=await uv(i.firebaseDependencies);if(s){if(RE(s.subscriptionOptions,n))return Date.now()>=s.createTime+CE?TE(i,{token:s.token,createTime:Date.now(),subscriptionOptions:n}):s.token;try{await lv(i.firebaseDependencies,s.token)}catch(o){console.warn(o)}return Up(i.firebaseDependencies,n)}else return Up(i.firebaseDependencies,n)}async function kE(i){const t=await uv(i.firebaseDependencies);t&&(await lv(i.firebaseDependencies,t.token),await bE(i.firebaseDependencies));const n=await i.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0}async function TE(i,t){try{const n=await xE(i.firebaseDependencies,t),s=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await Cd(i.firebaseDependencies,s),n}catch(n){throw await kE(i),n}}async function Up(i,t){const s={token:await SE(i,t),createTime:Date.now(),subscriptionOptions:t};return await Cd(i,s),s.token}async function _E(i,t){const n=await i.pushManager.getSubscription();return n||i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:hE(t)})}function RE(i,t){const n=t.vapidKey===i.vapidKey,s=t.endpoint===i.endpoint,o=t.auth===i.auth,l=t.p256dh===i.p256dh;return n&&s&&o&&l}/**
|
|
864
864
|
* @license
|
|
865
865
|
* Copyright 2020 Google LLC
|
|
866
866
|
*
|
|
@@ -875,7 +875,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
875
875
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
876
876
|
* See the License for the specific language governing permissions and
|
|
877
877
|
* limitations under the License.
|
|
878
|
-
*/function Wp(i){const t={from:i.from,collapseKey:i.collapse_key,messageId:i.fcmMessageId};return
|
|
878
|
+
*/function Wp(i){const t={from:i.from,collapseKey:i.collapse_key,messageId:i.fcmMessageId};return IE(t,i),OE(t,i),DE(t,i),t}function IE(i,t){if(!t.notification)return;i.notification={};const n=t.notification.title;n&&(i.notification.title=n);const s=t.notification.body;s&&(i.notification.body=s);const o=t.notification.image;o&&(i.notification.image=o);const l=t.notification.icon;l&&(i.notification.icon=l)}function OE(i,t){t.data&&(i.data=t.data)}function DE(i,t){var n,s,o,l,g;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;i.fcmOptions={};const k=(o=(s=t.fcmOptions)===null||s===void 0?void 0:s.link)!==null&&o!==void 0?o:(l=t.notification)===null||l===void 0?void 0:l.click_action;k&&(i.fcmOptions.link=k);const C=(g=t.fcmOptions)===null||g===void 0?void 0:g.analytics_label;C&&(i.fcmOptions.analyticsLabel=C)}/**
|
|
879
879
|
* @license
|
|
880
880
|
* Copyright 2019 Google LLC
|
|
881
881
|
*
|
|
@@ -890,7 +890,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
890
890
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
891
891
|
* See the License for the specific language governing permissions and
|
|
892
892
|
* limitations under the License.
|
|
893
|
-
*/function
|
|
893
|
+
*/function AE(i){return typeof i=="object"&&!!i&&sv in i}/**
|
|
894
894
|
* @license
|
|
895
895
|
* Copyright 2019 Google LLC
|
|
896
896
|
*
|
|
@@ -920,7 +920,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
920
920
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
921
921
|
* See the License for the specific language governing permissions and
|
|
922
922
|
* limitations under the License.
|
|
923
|
-
*/function
|
|
923
|
+
*/function PE(i){if(!i||!i.options)throw Wf("App Configuration Object");if(!i.name)throw Wf("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=i;for(const s of t)if(!n[s])throw Wf(s);return{appName:i.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Wf(i){return Si.create("missing-app-config-values",{valueName:i})}/**
|
|
924
924
|
* @license
|
|
925
925
|
* Copyright 2020 Google LLC
|
|
926
926
|
*
|
|
@@ -935,7 +935,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
935
935
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
936
936
|
* See the License for the specific language governing permissions and
|
|
937
937
|
* limitations under the License.
|
|
938
|
-
*/class
|
|
938
|
+
*/class LE{constructor(t,n,s){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const o=PE(t);this.firebaseDependencies={app:t,appConfig:o,installations:n,analyticsProvider:s}}_delete(){return Promise.resolve()}}/**
|
|
939
939
|
* @license
|
|
940
940
|
* Copyright 2020 Google LLC
|
|
941
941
|
*
|
|
@@ -950,7 +950,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
950
950
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
951
951
|
* See the License for the specific language governing permissions and
|
|
952
952
|
* limitations under the License.
|
|
953
|
-
*/async function
|
|
953
|
+
*/async function ME(i){try{i.swRegistration=await navigator.serviceWorker.register(sE,{scope:uE}),i.swRegistration.update().catch(()=>{})}catch(t){throw Si.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
|
|
954
954
|
* @license
|
|
955
955
|
* Copyright 2020 Google LLC
|
|
956
956
|
*
|
|
@@ -965,7 +965,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
965
965
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
966
966
|
* See the License for the specific language governing permissions and
|
|
967
967
|
* limitations under the License.
|
|
968
|
-
*/async function
|
|
968
|
+
*/async function FE(i,t){if(!t&&!i.swRegistration&&await ME(i),!(!t&&i.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw Si.create("invalid-sw-registration");i.swRegistration=t}}/**
|
|
969
969
|
* @license
|
|
970
970
|
* Copyright 2020 Google LLC
|
|
971
971
|
*
|
|
@@ -980,7 +980,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
980
980
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
981
981
|
* See the License for the specific language governing permissions and
|
|
982
982
|
* limitations under the License.
|
|
983
|
-
*/async function
|
|
983
|
+
*/async function NE(i,t){t?i.vapidKey=t:i.vapidKey||(i.vapidKey=av)}/**
|
|
984
984
|
* @license
|
|
985
985
|
* Copyright 2020 Google LLC
|
|
986
986
|
*
|
|
@@ -995,7 +995,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
995
995
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
996
996
|
* See the License for the specific language governing permissions and
|
|
997
997
|
* limitations under the License.
|
|
998
|
-
*/async function dv(i,t){if(!navigator)throw Si.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Si.create("permission-blocked");return await
|
|
998
|
+
*/async function dv(i,t){if(!navigator)throw Si.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Si.create("permission-blocked");return await NE(i,t==null?void 0:t.vapidKey),await FE(i,t==null?void 0:t.serviceWorkerRegistration),EE(i)}/**
|
|
999
999
|
* @license
|
|
1000
1000
|
* Copyright 2019 Google LLC
|
|
1001
1001
|
*
|
|
@@ -1010,7 +1010,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1010
1010
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1011
1011
|
* See the License for the specific language governing permissions and
|
|
1012
1012
|
* limitations under the License.
|
|
1013
|
-
*/async function
|
|
1013
|
+
*/async function BE(i,t,n){const s=jE(t);(await i.firebaseDependencies.analyticsProvider.get()).logEvent(s,{message_id:n[sv],message_name:n[cE],message_time:n[fE],message_device_time:Math.floor(Date.now()/1e3)})}function jE(i){switch(i){case oc.NOTIFICATION_CLICKED:return"notification_open";case oc.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
1014
1014
|
* @license
|
|
1015
1015
|
* Copyright 2017 Google LLC
|
|
1016
1016
|
*
|
|
@@ -1025,7 +1025,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1025
1025
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1026
1026
|
* See the License for the specific language governing permissions and
|
|
1027
1027
|
* limitations under the License.
|
|
1028
|
-
*/async function
|
|
1028
|
+
*/async function HE(i,t){const n=t.data;if(!n.isFirebaseMessaging)return;i.onMessageHandler&&n.messageType===oc.PUSH_RECEIVED&&(typeof i.onMessageHandler=="function"?i.onMessageHandler(Wp(n)):i.onMessageHandler.next(Wp(n)));const s=n.data;AE(s)&&s[dE]==="1"&&await BE(i,n.messageType,s)}const $p="@firebase/messaging",zp="0.12.6";/**
|
|
1029
1029
|
* @license
|
|
1030
1030
|
* Copyright 2020 Google LLC
|
|
1031
1031
|
*
|
|
@@ -1040,7 +1040,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1040
1040
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1041
1041
|
* See the License for the specific language governing permissions and
|
|
1042
1042
|
* limitations under the License.
|
|
1043
|
-
*/const
|
|
1043
|
+
*/const UE=i=>{const t=new LE(i.getProvider("app").getImmediate(),i.getProvider("installations-internal").getImmediate(),i.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>HE(t,n)),t},WE=i=>{const t=i.getProvider("messaging").getImmediate();return{getToken:s=>dv(t,s)}};function $E(){sl(new vu("messaging",UE,"PUBLIC")),sl(new vu("messaging-internal",WE,"PRIVATE")),pu($p,zp),pu($p,zp,"esm2017")}/**
|
|
1044
1044
|
* @license
|
|
1045
1045
|
* Copyright 2020 Google LLC
|
|
1046
1046
|
*
|
|
@@ -1055,7 +1055,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1055
1055
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1056
1056
|
* See the License for the specific language governing permissions and
|
|
1057
1057
|
* limitations under the License.
|
|
1058
|
-
*/async function
|
|
1058
|
+
*/async function zE(){try{await Ng()}catch{return!1}return typeof window<"u"&&Fg()&&f1()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
1059
1059
|
* @license
|
|
1060
1060
|
* Copyright 2020 Google LLC
|
|
1061
1061
|
*
|
|
@@ -1070,7 +1070,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1070
1070
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1071
1071
|
* See the License for the specific language governing permissions and
|
|
1072
1072
|
* limitations under the License.
|
|
1073
|
-
*/function
|
|
1073
|
+
*/function YE(i,t){if(!navigator)throw Si.create("only-available-in-window");return i.onMessageHandler=t,()=>{i.onMessageHandler=null}}/**
|
|
1074
1074
|
* @license
|
|
1075
1075
|
* Copyright 2017 Google LLC
|
|
1076
1076
|
*
|
|
@@ -1085,4 +1085,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1085
1085
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1086
1086
|
* See the License for the specific language governing permissions and
|
|
1087
1087
|
* limitations under the License.
|
|
1088
|
-
*/function hv(i=
|
|
1088
|
+
*/function hv(i=cC()){return zE().then(t=>{if(!t)throw Si.create("unsupported-browser")},t=>{throw Si.create("indexed-db-unsupported")}),vd(pd(i),"messaging").getImmediate()}async function VE(i,t){return i=pd(i),dv(i,t)}function GE(i,t){return i=pd(i),YE(i,t)}$E();const qE=i=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(i.path).then(function(t){console.log("Registration successful, scope is:",t.scope),console.log("initialize service worker props ",i);const n=hv(md({apiKey:i.apiKey,authDomain:i.authDomain,projectId:i.projectId,storageBucket:i.storageBucket,messagingSenderId:i.messagingSenderId,appId:i.appId,measurementId:i.measurementId}));VE(n,{serviceWorkerRegistration:t,vapidKey:i.vapidKey}).then(async s=>{var o,l;if(s){console.log("current token for client: ",s);try{const g="/notification-management/api/v1/notifications/registrations",k=i.baseUrl+g;await $0.post(k,{deviceToken:s},{withCredentials:!0})}catch(g){console.log(g),Eg(((l=(o=g.response)==null?void 0:o.data)==null?void 0:l.errorMessage)||"Have error when get notification list")}}else console.log("No registration token available. Request permission to generate one.")}).catch(s=>{console.log("An error occurred while retrieving token. ",s)})}).catch(function(t){console.log("Service worker registration failed, error:",t)})},XE=new BroadcastChannel("my-channel");XE.onmessage=i=>{console.log("Broadcast chanel message",i)};const KE=i=>new Promise(t=>{const n=hv(md({apiKey:i.apiKey,authDomain:i.authDomain,projectId:i.projectId,storageBucket:i.storageBucket,messagingSenderId:i.messagingSenderId,appId:i.appId,measurementId:i.measurementId}));GE(n,s=>{console.log("payload",s),t(s)})}),JE={"subscription-diaglog":"_subscription-diaglog_12x9u_2","subscription-container":"_subscription-container_12x9u_15","subscription-title":"_subscription-title_12x9u_24","subscription-text":"_subscription-text_12x9u_33","subscription-btn__container":"_subscription-btn__container_12x9u_37","btn-success":"_btn-success_12x9u_43","btn-cancel":"_btn-cancel_12x9u_44"},ZE={"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.AuthProvider=qx;exports.C=bw;exports.CustomOpenList=Yp;exports.CustomOpenListProvider=G0;exports.DateRangePicker=e1;exports.ERROR_MESSAGE=tx;exports.InfiniteLoader=Gx;exports.Language=fd;exports.PropTypes=Jo;exports.Q=gx;exports.ReactSVG=hd;exports.TranslationProvider=ex;exports._=Ux;exports._assertThisInitialized=Ms;exports._extends=Fl;exports._extends$1=Cx;exports._inheritsLoose=kg;exports._objectWithoutPropertiesLoose=cd;exports.clsx=Ls;exports.commonjsGlobal=Ro;exports.getAugmentedNamespace=q0;exports.getDefaultExportFromCjs=ac;exports.instance=Mr;exports.lodashExports=Rg;exports.login=nx;exports.logout=rx;exports.notify=xx;exports.objectWithoutPropertiesLoose=fS;exports.onMessageListener=KE;exports.pushError=Eg;exports.pushSuccess=wx;exports.pushWarning=Sx;exports.requestForToken=qE;exports.search=Kx;exports.styles=Hx;exports.styles$1=JE;exports.styles$2=ZE;exports.t=rg;exports.translate=ZS;exports.translationConfig=JS;exports.useAuth=Xx;exports.useCustomTranslation=KS;exports.useTranslation=lg;exports.useTranslation$1=QS;
|