@paroicms/site-generator-plugin 0.5.0 → 0.5.2
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/gen-backend/dist/generator/fake-content-generator.ts/create-database-with-fake-content.js +16 -11
- package/gen-backend/dist/generator/fake-content-generator.ts/generate-fake-content.js +18 -4
- package/gen-backend/dist/generator/fake-content-generator.ts/invoke-generate-fake-content.js +11 -3
- package/gen-backend/dist/generator/llm-queries/invoke-update-site-schema.js +11 -1
- package/gen-backend/prompts/{generate-fake-content-multiple.md → generate-fake-content-multiple-documents.md} +3 -3
- package/gen-backend/prompts/generate-fake-content-multiple-parts.md +22 -0
- package/gen-backend/prompts/new-site-1-analysis.md +2 -1
- package/gen-backend/prompts/update-site-schema-1-write-details.md +1 -1
- package/gen-backend/prompts/update-site-schema-2-execute.md +23 -4
- package/gen-front/dist/gen-front.css +1 -1
- package/gen-front/dist/gen-front.mjs +96 -94
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ev=Object.defineProperty;var Cv=(i,n,e)=>n in i?Ev(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e;var gt=(i,n,e)=>Cv(i,typeof n!="symbol"?n+"":n,e);function Hc(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Mu={exports:{}},Yo={},Hu={exports:{}},Qe={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var xv=Object.defineProperty;var Ev=(o,n,e)=>n in o?xv(o,n,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Sp;function
|
|
9
|
+
*/var Sp;function kv(){if(Sp)return Qe;Sp=1;var i=Symbol.for("react.element"),n=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.iterator;function w(P){return P===null||typeof P!="object"?null:(P=b&&P[b]||P["@@iterator"],typeof P=="function"?P:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,C={};function O(P,U,ce){this.props=P,this.context=U,this.refs=C,this.updater=ce||x}O.prototype.isReactComponent={},O.prototype.setState=function(P,U){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,U,"setState")},O.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function _(){}_.prototype=O.prototype;function N(P,U,ce){this.props=P,this.context=U,this.refs=C,this.updater=ce||x}var j=N.prototype=new _;j.constructor=N,k(j,O.prototype),j.isPureReactComponent=!0;var $=Array.isArray,Y=Object.prototype.hasOwnProperty,ie={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function D(P,U,ce){var de,Te={},ze=null,Me=null;if(U!=null)for(de in U.ref!==void 0&&(Me=U.ref),U.key!==void 0&&(ze=""+U.key),U)Y.call(U,de)&&!Q.hasOwnProperty(de)&&(Te[de]=U[de]);var Ue=arguments.length-2;if(Ue===1)Te.children=ce;else if(1<Ue){for(var Ye=Array(Ue),st=0;st<Ue;st++)Ye[st]=arguments[st+2];Te.children=Ye}if(P&&P.defaultProps)for(de in Ue=P.defaultProps,Ue)Te[de]===void 0&&(Te[de]=Ue[de]);return{$$typeof:i,type:P,key:ze,ref:Me,props:Te,_owner:ie.current}}function F(P,U){return{$$typeof:i,type:P.type,key:U,ref:P.ref,props:P.props,_owner:P._owner}}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===i}function K(P){var U={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ce){return U[ce]})}var se=/\/+/g;function oe(P,U){return typeof P=="object"&&P!==null&&P.key!=null?K(""+P.key):U.toString(36)}function ye(P,U,ce,de,Te){var ze=typeof P;(ze==="undefined"||ze==="boolean")&&(P=null);var Me=!1;if(P===null)Me=!0;else switch(ze){case"string":case"number":Me=!0;break;case"object":switch(P.$$typeof){case i:case n:Me=!0}}if(Me)return Me=P,Te=Te(Me),P=de===""?"."+oe(Me,0):de,$(Te)?(ce="",P!=null&&(ce=P.replace(se,"$&/")+"/"),ye(Te,U,ce,"",function(st){return st})):Te!=null&&(q(Te)&&(Te=F(Te,ce+(!Te.key||Me&&Me.key===Te.key?"":(""+Te.key).replace(se,"$&/")+"/")+P)),U.push(Te)),1;if(Me=0,de=de===""?".":de+":",$(P))for(var Ue=0;Ue<P.length;Ue++){ze=P[Ue];var Ye=de+oe(ze,Ue);Me+=ye(ze,U,ce,Ye,Te)}else if(Ye=w(P),typeof Ye=="function")for(P=Ye.call(P),Ue=0;!(ze=P.next()).done;)ze=ze.value,Ye=de+oe(ze,Ue++),Me+=ye(ze,U,ce,Ye,Te);else if(ze==="object")throw U=String(P),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Me}function X(P,U,ce){if(P==null)return P;var de=[],Te=0;return ye(P,de,"","",function(ze){return U.call(ce,ze,Te++)}),de}function ve(P){if(P._status===-1){var U=P._result;U=U(),U.then(function(ce){(P._status===0||P._status===-1)&&(P._status=1,P._result=ce)},function(ce){(P._status===0||P._status===-1)&&(P._status=2,P._result=ce)}),P._status===-1&&(P._status=0,P._result=U)}if(P._status===1)return P._result.default;throw P._result}var ke={current:null},z={transition:null},J={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:z,ReactCurrentOwner:ie};function B(){throw Error("act(...) is not supported in production builds of React.")}return Qe.Children={map:X,forEach:function(P,U,ce){X(P,function(){U.apply(this,arguments)},ce)},count:function(P){var U=0;return X(P,function(){U++}),U},toArray:function(P){return X(P,function(U){return U})||[]},only:function(P){if(!q(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Qe.Component=O,Qe.Fragment=e,Qe.Profiler=a,Qe.PureComponent=N,Qe.StrictMode=o,Qe.Suspense=p,Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Qe.act=B,Qe.cloneElement=function(P,U,ce){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var de=k({},P.props),Te=P.key,ze=P.ref,Me=P._owner;if(U!=null){if(U.ref!==void 0&&(ze=U.ref,Me=ie.current),U.key!==void 0&&(Te=""+U.key),P.type&&P.type.defaultProps)var Ue=P.type.defaultProps;for(Ye in U)Y.call(U,Ye)&&!Q.hasOwnProperty(Ye)&&(de[Ye]=U[Ye]===void 0&&Ue!==void 0?Ue[Ye]:U[Ye])}var Ye=arguments.length-2;if(Ye===1)de.children=ce;else if(1<Ye){Ue=Array(Ye);for(var st=0;st<Ye;st++)Ue[st]=arguments[st+2];de.children=Ue}return{$$typeof:i,type:P.type,key:Te,ref:ze,props:de,_owner:Me}},Qe.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:u,_context:P},P.Consumer=P},Qe.createElement=D,Qe.createFactory=function(P){var U=D.bind(null,P);return U.type=P,U},Qe.createRef=function(){return{current:null}},Qe.forwardRef=function(P){return{$$typeof:f,render:P}},Qe.isValidElement=q,Qe.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:ve}},Qe.memo=function(P,U){return{$$typeof:h,type:P,compare:U===void 0?null:U}},Qe.startTransition=function(P){var U=z.transition;z.transition={};try{P()}finally{z.transition=U}},Qe.unstable_act=B,Qe.useCallback=function(P,U){return ke.current.useCallback(P,U)},Qe.useContext=function(P){return ke.current.useContext(P)},Qe.useDebugValue=function(){},Qe.useDeferredValue=function(P){return ke.current.useDeferredValue(P)},Qe.useEffect=function(P,U){return ke.current.useEffect(P,U)},Qe.useId=function(){return ke.current.useId()},Qe.useImperativeHandle=function(P,U,ce){return ke.current.useImperativeHandle(P,U,ce)},Qe.useInsertionEffect=function(P,U){return ke.current.useInsertionEffect(P,U)},Qe.useLayoutEffect=function(P,U){return ke.current.useLayoutEffect(P,U)},Qe.useMemo=function(P,U){return ke.current.useMemo(P,U)},Qe.useReducer=function(P,U,ce){return ke.current.useReducer(P,U,ce)},Qe.useRef=function(P){return ke.current.useRef(P)},Qe.useState=function(P){return ke.current.useState(P)},Qe.useSyncExternalStore=function(P,U,ce){return ke.current.useSyncExternalStore(P,U,ce)},Qe.useTransition=function(){return ke.current.useTransition()},Qe.version="18.3.1",Qe}var xp;function Vc(){return xp||(xp=1,Hu.exports=kv()),Hu.exports}/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var xv=Object.defineProperty;var Ev=(o,n,e)=>n in o?xv(o,n,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Ep;function
|
|
17
|
+
*/var Ep;function Ov(){if(Ep)return Yo;Ep=1;var i=Vc(),n=Symbol.for("react.element"),e=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(f,p,h){var m,b={},w=null,x=null;h!==void 0&&(w=""+h),p.key!==void 0&&(w=""+p.key),p.ref!==void 0&&(x=p.ref);for(m in p)o.call(p,m)&&!u.hasOwnProperty(m)&&(b[m]=p[m]);if(f&&f.defaultProps)for(m in p=f.defaultProps,p)b[m]===void 0&&(b[m]=p[m]);return{$$typeof:n,type:f,key:w,ref:x,props:b,_owner:a.current}}return Yo.Fragment=e,Yo.jsx=c,Yo.jsxs=c,Yo}var Cp;function Pv(){return Cp||(Cp=1,Mu.exports=Ov()),Mu.exports}var G=Pv(),v=Vc();const Tt=Hc(v);var xl={},Vu={exports:{}},Wn={},Bu={exports:{}},Uu={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var xv=Object.defineProperty;var Ev=(o,n,e)=>n in o?xv(o,n,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var kp;function
|
|
25
|
+
*/var kp;function Tv(){return kp||(kp=1,function(i){function n(z,J){var B=z.length;z.push(J);e:for(;0<B;){var P=B-1>>>1,U=z[P];if(0<a(U,J))z[P]=J,z[B]=U,B=P;else break e}}function e(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var J=z[0],B=z.pop();if(B!==J){z[0]=B;e:for(var P=0,U=z.length,ce=U>>>1;P<ce;){var de=2*(P+1)-1,Te=z[de],ze=de+1,Me=z[ze];if(0>a(Te,B))ze<U&&0>a(Me,Te)?(z[P]=Me,z[ze]=B,P=ze):(z[P]=Te,z[de]=B,P=de);else if(ze<U&&0>a(Me,B))z[P]=Me,z[ze]=B,P=ze;else break e}}return J}function a(z,J){var B=z.sortIndex-J.sortIndex;return B!==0?B:z.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;i.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();i.unstable_now=function(){return c.now()-f}}var p=[],h=[],m=1,b=null,w=3,x=!1,k=!1,C=!1,O=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(z){for(var J=e(h);J!==null;){if(J.callback===null)o(h);else if(J.startTime<=z)o(h),J.sortIndex=J.expirationTime,n(p,J);else break;J=e(h)}}function $(z){if(C=!1,j(z),!k)if(e(p)!==null)k=!0,ve(Y);else{var J=e(h);J!==null&&ke($,J.startTime-z)}}function Y(z,J){k=!1,C&&(C=!1,_(D),D=-1),x=!0;var B=w;try{for(j(J),b=e(p);b!==null&&(!(b.expirationTime>J)||z&&!K());){var P=b.callback;if(typeof P=="function"){b.callback=null,w=b.priorityLevel;var U=P(b.expirationTime<=J);J=i.unstable_now(),typeof U=="function"?b.callback=U:b===e(p)&&o(p),j(J)}else o(p);b=e(p)}if(b!==null)var ce=!0;else{var de=e(h);de!==null&&ke($,de.startTime-J),ce=!1}return ce}finally{b=null,w=B,x=!1}}var ie=!1,Q=null,D=-1,F=5,q=-1;function K(){return!(i.unstable_now()-q<F)}function se(){if(Q!==null){var z=i.unstable_now();q=z;var J=!0;try{J=Q(!0,z)}finally{J?oe():(ie=!1,Q=null)}}else ie=!1}var oe;if(typeof N=="function")oe=function(){N(se)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,X=ye.port2;ye.port1.onmessage=se,oe=function(){X.postMessage(null)}}else oe=function(){O(se,0)};function ve(z){Q=z,ie||(ie=!0,oe())}function ke(z,J){D=O(function(){z(i.unstable_now())},J)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(z){z.callback=null},i.unstable_continueExecution=function(){k||x||(k=!0,ve(Y))},i.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<z?Math.floor(1e3/z):5},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_getFirstCallbackNode=function(){return e(p)},i.unstable_next=function(z){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var B=w;w=J;try{return z()}finally{w=B}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var B=w;w=z;try{return J()}finally{w=B}},i.unstable_scheduleCallback=function(z,J,B){var P=i.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?P+B:P):B=P,z){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=B+U,z={id:m++,callback:J,priorityLevel:z,startTime:B,expirationTime:U,sortIndex:-1},B>P?(z.sortIndex=B,n(h,z),e(p)===null&&z===e(h)&&(C?(_(D),D=-1):C=!0,ke($,B-P))):(z.sortIndex=U,n(p,z),k||x||(k=!0,ve(Y))),z},i.unstable_shouldYield=K,i.unstable_wrapCallback=function(z){var J=w;return function(){var B=w;w=J;try{return z.apply(this,arguments)}finally{w=B}}}}(Uu)),Uu}var Op;function Iv(){return Op||(Op=1,Bu.exports=Tv()),Bu.exports}/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,29 +30,29 @@ var xv=Object.defineProperty;var Ev=(o,n,e)=>n in o?xv(o,n,{enumerable:!0,config
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Pp;function
|
|
33
|
+
*/var Pp;function Nv(){if(Pp)return Wn;Pp=1;var i=Vc(),n=Iv();function e(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,a={};function u(t,r){c(t,r),c(t+"Capture",r)}function c(t,r){for(a[t]=r,t=0;t<r.length;t++)o.add(r[t])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},b={};function w(t){return p.call(b,t)?!0:p.call(m,t)?!1:h.test(t)?b[t]=!0:(m[t]=!0,!1)}function x(t,r,l,s){if(l!==null&&l.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return s?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function k(t,r,l,s){if(r===null||typeof r>"u"||x(t,r,l,s))return!0;if(s)return!1;if(l!==null)switch(l.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function C(t,r,l,s,d,g,y){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=s,this.attributeNamespace=d,this.mustUseProperty=l,this.propertyName=t,this.type=r,this.sanitizeURL=g,this.removeEmptyString=y}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){O[t]=new C(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];O[r]=new C(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){O[t]=new C(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){O[t]=new C(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){O[t]=new C(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){O[t]=new C(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){O[t]=new C(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){O[t]=new C(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){O[t]=new C(t,5,!1,t.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function N(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(_,N);O[r]=new C(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(_,N);O[r]=new C(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(_,N);O[r]=new C(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){O[t]=new C(t,1,!1,t.toLowerCase(),null,!1,!1)}),O.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){O[t]=new C(t,1,!1,t.toLowerCase(),null,!0,!0)});function j(t,r,l,s){var d=O.hasOwnProperty(r)?O[r]:null;(d!==null?d.type!==0:s||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(k(r,l,d,s)&&(l=null),s||d===null?w(r)&&(l===null?t.removeAttribute(r):t.setAttribute(r,""+l)):d.mustUseProperty?t[d.propertyName]=l===null?d.type===3?!1:"":l:(r=d.attributeName,s=d.attributeNamespace,l===null?t.removeAttribute(r):(d=d.type,l=d===3||d===4&&l===!0?"":""+l,s?t.setAttributeNS(s,r,l):t.setAttribute(r,l))))}var $=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Y=Symbol.for("react.element"),ie=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),K=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),z=Symbol.iterator;function J(t){return t===null||typeof t!="object"?null:(t=z&&t[z]||t["@@iterator"],typeof t=="function"?t:null)}var B=Object.assign,P;function U(t){if(P===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);P=r&&r[1]||""}return`
|
|
34
34
|
`+P+t}var ce=!1;function de(t,r){if(!t||ce)return"";ce=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(A){var s=A}Reflect.construct(t,[],r)}else{try{r.call()}catch(A){s=A}t.call(r.prototype)}else{try{throw Error()}catch(A){s=A}t()}}catch(A){if(A&&s&&typeof A.stack=="string"){for(var d=A.stack.split(`
|
|
35
35
|
`),g=s.stack.split(`
|
|
36
36
|
`),y=d.length-1,E=g.length-1;1<=y&&0<=E&&d[y]!==g[E];)E--;for(;1<=y&&0<=E;y--,E--)if(d[y]!==g[E]){if(y!==1||E!==1)do if(y--,E--,0>E||d[y]!==g[E]){var T=`
|
|
37
|
-
`+d[y].replace(" at new "," at ");return t.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",t.displayName)),T}while(1<=y&&0<=E);break}}}finally{ce=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?U(t):""}function Te(t){switch(t.tag){case 5:return U(t.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return t=de(t.type,!1),t;case 11:return t=de(t.type.render,!1),t;case 1:return t=de(t.type,!0),t;default:return""}}function ze(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case ie:return"Portal";case F:return"Profiler";case D:return"StrictMode";case oe:return"Suspense";case ye:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case K:return(t.displayName||"Context")+".Consumer";case q:return(t._context.displayName||"Context")+".Provider";case se:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Q:return r=t.displayName||null,r!==null?r:ze(t.type)||"Memo";case ve:r=t._payload,t=t._init;try{return ze(t(r))}catch{}}return null}function Me(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ze(r);case 8:return r===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Ue(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ye(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function st(t){var r=Ye(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),s=""+t[r];if(!t.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,g=l.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return d.call(this)},set:function(y){s=""+y,g.call(this,y)}}),Object.defineProperty(t,r,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Ht(t){t._valueTracker||(t._valueTracker=st(t))}function $t(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var l=r.getValue(),s="";return t&&(s=Ye(t)?t.checked?"true":"false":t.value),t=s,t!==l?(r.setValue(t),!0):!1}function nt(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function rt(t,r){var l=r.checked;return B({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function fn(t,r){var l=r.defaultValue==null?"":r.defaultValue,s=r.checked!=null?r.checked:r.defaultChecked;l=Ue(r.value!=null?r.value:l),t._wrapperState={initialChecked:s,initialValue:l,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Et(t,r){r=r.checked,r!=null&&$(t,"checked",r,!1)}function It(t,r){Et(t,r);var l=Ue(r.value),s=r.type;if(l!=null)s==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(s==="submit"||s==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?en(t,r.type,l):r.hasOwnProperty("defaultValue")&&en(t,r.type,Ue(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Jt(t,r,l){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var s=r.type;if(!(s!=="submit"&&s!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,l||r===t.value||(t.value=r),t.defaultValue=r}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function en(t,r,l){(r!=="number"||nt(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var jt=Array.isArray;function ht(t,r,l,s){if(t=t.options,r){r={};for(var d=0;d<l.length;d++)r["$"+l[d]]=!0;for(l=0;l<t.length;l++)d=r.hasOwnProperty("$"+t[l].value),t[l].selected!==d&&(t[l].selected=d),d&&s&&(t[l].defaultSelected=!0)}else{for(l=""+Ue(l),r=null,d=0;d<t.length;d++){if(t[d].value===l){t[d].selected=!0,s&&(t[d].defaultSelected=!0);return}r!==null||t[d].disabled||(r=t[d])}r!==null&&(r.selected=!0)}}function ft(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(e(91));return B({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Pn(t,r){var l=r.value;if(l==null){if(l=r.children,r=r.defaultValue,l!=null){if(r!=null)throw Error(e(92));if(jt(l)){if(1<l.length)throw Error(e(93));l=l[0]}r=l}r==null&&(r=""),l=r}t._wrapperState={initialValue:Ue(l)}}function Nt(t,r){var l=Ue(r.value),s=Ue(r.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),r.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),s!=null&&(t.defaultValue=""+s)}function dn(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Rt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Tn(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Rt(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Yt,Qt=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,l,s,d){MSApp.execUnsafeLocalFunction(function(){return t(r,l,s,d)})}:t}(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(Yt=Yt||document.createElement("div"),Yt.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=Yt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function bt(t,r){if(r){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=r;return}}t.textContent=r}var Lt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","ms","Moz","O"];Object.keys(Lt).forEach(function(t){In.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),Lt[r]=Lt[t]})});function Ct(t,r,l){return r==null||typeof r=="boolean"||r===""?"":l||typeof r!="number"||r===0||Lt.hasOwnProperty(t)&&Lt[t]?(""+r).trim():r+"px"}function Nn(t,r){t=t.style;for(var l in r)if(r.hasOwnProperty(l)){var s=l.indexOf("--")===0,d=Ct(l,r[l],s);l==="float"&&(l="cssFloat"),s?t.setProperty(l,d):t[l]=d}}var tn=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fe(t,r){if(r){if(tn[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(e(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(e(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(e(61))}if(r.style!=null&&typeof r.style!="object")throw Error(e(62))}}function ae(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var he=null;function Ke(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Oe=null,M=null,me=null;function De(t){if(t=_o(t)){if(typeof Oe!="function")throw Error(e(280));var r=t.stateNode;r&&(r=Da(r),Oe(t.stateNode,t.type,r))}}function Le(t){M?me?me.push(t):me=[t]:M=t}function He(){if(M){var t=M,r=me;if(me=M=null,De(t),r)for(t=0;t<r.length;t++)De(r[t])}}function Ze(t,r){return t(r)}function Je(){}var pn=!1;function nn(t,r,l){if(pn)return t(r,l);pn=!0;try{return Ze(t,r,l)}finally{pn=!1,(M!==null||me!==null)&&(Je(),He())}}function Vt(t,r){var l=t.stateNode;if(l===null)return null;var s=Da(l);if(s===null)return null;l=s[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(e(231,r,typeof l));return l}var At=!1;if(f)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){At=!0}}),window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{At=!1}function rn(t,r,l,s,d,g,y,E,T){var A=Array.prototype.slice.call(arguments,3);try{r.apply(l,A)}catch(ne){this.onError(ne)}}var hn=!1,Mn=null,Rn=!1,tr=null,Ne={onError:function(t){hn=!0,Mn=t}};function te(t,r,l,s,d,g,y,E,T){hn=!1,Mn=null,rn.apply(Ne,arguments)}function $e(t,r,l,s,d,g,y,E,T){if(te.apply(this,arguments),hn){if(hn){var A=Mn;hn=!1,Mn=null}else throw Error(e(198));Rn||(Rn=!0,tr=A)}}function Ge(t){var r=t,l=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(l=r.return),t=r.return;while(t)}return r.tag===3?l:null}function pt(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function bn(t){if(Ge(t)!==t)throw Error(e(188))}function wn(t){var r=t.alternate;if(!r){if(r=Ge(t),r===null)throw Error(e(188));return r!==t?null:t}for(var l=t,s=r;;){var d=l.return;if(d===null)break;var g=d.alternate;if(g===null){if(s=d.return,s!==null){l=s;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===l)return bn(d),t;if(g===s)return bn(d),r;g=g.sibling}throw Error(e(188))}if(l.return!==s.return)l=d,s=g;else{for(var y=!1,E=d.child;E;){if(E===l){y=!0,l=d,s=g;break}if(E===s){y=!0,s=d,l=g;break}E=E.sibling}if(!y){for(E=g.child;E;){if(E===l){y=!0,l=g,s=d;break}if(E===s){y=!0,s=g,l=d;break}E=E.sibling}if(!y)throw Error(e(189))}}if(l.alternate!==s)throw Error(e(190))}if(l.tag!==3)throw Error(e(188));return l.stateNode.current===l?t:r}function Ee(t){return t=wn(t),t!==null?W(t):null}function W(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=W(t);if(r!==null)return r;t=t.sibling}return null}var fe=n.unstable_scheduleCallback,pe=n.unstable_cancelCallback,be=n.unstable_shouldYield,Se=n.unstable_requestPaint,ge=n.unstable_now,_e=n.unstable_getCurrentPriorityLevel,qe=n.unstable_ImmediatePriority,Xe=n.unstable_UserBlockingPriority,mt=n.unstable_NormalPriority,Xt=n.unstable_LowPriority,kt=n.unstable_IdlePriority,on=null,Bt=null;function hi(t){if(Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}}var mn=Math.clz32?Math.clz32:mi,xr=Math.log,zi=Math.LN2;function mi(t){return t>>>=0,t===0?32:31-(xr(t)/zi|0)|0}var Er=64,Cr=4194304;function vt(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Dt(t,r){var l=t.pendingLanes;if(l===0)return 0;var s=0,d=t.suspendedLanes,g=t.pingedLanes,y=l&268435455;if(y!==0){var E=y&~d;E!==0?s=vt(E):(g&=y,g!==0&&(s=vt(g)))}else y=l&~d,y!==0?s=vt(y):g!==0&&(s=vt(g));if(s===0)return 0;if(r!==0&&r!==s&&(r&d)===0&&(d=s&-s,g=r&-r,d>=g||d===16&&(g&4194240)!==0))return r;if((s&4)!==0&&(s|=l&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=s;0<r;)l=31-mn(r),d=1<<l,s|=t[l],r&=~d;return s}function zt(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sn(t,r){for(var l=t.suspendedLanes,s=t.pingedLanes,d=t.expirationTimes,g=t.pendingLanes;0<g;){var y=31-mn(g),E=1<<y,T=d[y];T===-1?((E&l)===0||(E&s)!==0)&&(d[y]=zt(E,r)):T<=r&&(t.expiredLanes|=E),g&=~E}}function nr(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function zr(){var t=Er;return Er<<=1,(Er&4194240)===0&&(Er=64),t}function Ln(t){for(var r=[],l=0;31>l;l++)r.push(t);return r}function _n(t,r,l){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-mn(r),t[r]=l}function Fr(t,r){var l=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var s=t.eventTimes;for(t=t.expirationTimes;0<l;){var d=31-mn(l),g=1<<d;r[d]=0,s[d]=-1,t[d]=-1,l&=~g}}function vo(t,r){var l=t.entangledLanes|=r;for(t=t.entanglements;l;){var s=31-mn(l),d=1<<s;d&r|t[s]&r&&(t[s]|=r),l&=~d}}var at=0;function Sa(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var xa,le,S,Z,Re,lt=!1,ut=[],$n=null,dr=null,rr=null,vi=new Map,yo=new Map,Zr=[],Uh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rf(t,r){switch(t){case"focusin":case"focusout":$n=null;break;case"dragenter":case"dragleave":dr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":vi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":yo.delete(r.pointerId)}}function bo(t,r,l,s,d,g){return t===null||t.nativeEvent!==g?(t={blockedOn:r,domEventName:l,eventSystemFlags:s,nativeEvent:g,targetContainers:[d]},r!==null&&(r=_o(r),r!==null&&le(r)),t):(t.eventSystemFlags|=s,r=t.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),t)}function Kh(t,r,l,s,d){switch(r){case"focusin":return $n=bo($n,t,r,l,s,d),!0;case"dragenter":return dr=bo(dr,t,r,l,s,d),!0;case"mouseover":return rr=bo(rr,t,r,l,s,d),!0;case"pointerover":var g=d.pointerId;return vi.set(g,bo(vi.get(g)||null,t,r,l,s,d)),!0;case"gotpointercapture":return g=d.pointerId,yo.set(g,bo(yo.get(g)||null,t,r,l,s,d)),!0}return!1}function of(t){var r=yi(t.target);if(r!==null){var l=Ge(r);if(l!==null){if(r=l.tag,r===13){if(r=pt(l),r!==null){t.blockedOn=r,Re(t.priority,function(){S(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ea(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var l=ps(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var s=new l.constructor(l.type,l);he=s,l.target.dispatchEvent(s),he=null}else return r=_o(l),r!==null&&le(r),t.blockedOn=l,!1;r.shift()}return!0}function af(t,r,l){Ea(t)&&l.delete(r)}function Wh(){lt=!1,$n!==null&&Ea($n)&&($n=null),dr!==null&&Ea(dr)&&(dr=null),rr!==null&&Ea(rr)&&(rr=null),vi.forEach(af),yo.forEach(af)}function wo(t,r){t.blockedOn===r&&(t.blockedOn=null,lt||(lt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Wh)))}function So(t){function r(d){return wo(d,t)}if(0<ut.length){wo(ut[0],t);for(var l=1;l<ut.length;l++){var s=ut[l];s.blockedOn===t&&(s.blockedOn=null)}}for($n!==null&&wo($n,t),dr!==null&&wo(dr,t),rr!==null&&wo(rr,t),vi.forEach(r),yo.forEach(r),l=0;l<Zr.length;l++)s=Zr[l],s.blockedOn===t&&(s.blockedOn=null);for(;0<Zr.length&&(l=Zr[0],l.blockedOn===null);)of(l),l.blockedOn===null&&Zr.shift()}var Fi=j.ReactCurrentBatchConfig,Ca=!0;function Gh(t,r,l,s){var d=at,g=Fi.transition;Fi.transition=null;try{at=1,ds(t,r,l,s)}finally{at=d,Fi.transition=g}}function Yh(t,r,l,s){var d=at,g=Fi.transition;Fi.transition=null;try{at=4,ds(t,r,l,s)}finally{at=d,Fi.transition=g}}function ds(t,r,l,s){if(Ca){var d=ps(t,r,l,s);if(d===null)Ns(t,r,s,ka,l),rf(t,s);else if(Kh(d,t,r,l,s))s.stopPropagation();else if(rf(t,s),r&4&&-1<Uh.indexOf(t)){for(;d!==null;){var g=_o(d);if(g!==null&&xa(g),g=ps(t,r,l,s),g===null&&Ns(t,r,s,ka,l),g===d)break;d=g}d!==null&&s.stopPropagation()}else Ns(t,r,s,null,l)}}var ka=null;function ps(t,r,l,s){if(ka=null,t=Ke(s),t=yi(t),t!==null)if(r=Ge(t),r===null)t=null;else if(l=r.tag,l===13){if(t=pt(r),t!==null)return t;t=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return ka=t,null}function lf(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_e()){case qe:return 1;case Xe:return 4;case mt:case Xt:return 16;case kt:return 536870912;default:return 16}default:return 16}}var Jr=null,gs=null,Oa=null;function sf(){if(Oa)return Oa;var t,r=gs,l=r.length,s,d="value"in Jr?Jr.value:Jr.textContent,g=d.length;for(t=0;t<l&&r[t]===d[t];t++);var y=l-t;for(s=1;s<=y&&r[l-s]===d[g-s];s++);return Oa=d.slice(t,1<s?1-s:void 0)}function Pa(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Ta(){return!0}function uf(){return!1}function Qn(t){function r(l,s,d,g,y){this._reactName=l,this._targetInst=d,this.type=s,this.nativeEvent=g,this.target=y,this.currentTarget=null;for(var E in t)t.hasOwnProperty(E)&&(l=t[E],this[E]=l?l(g):g[E]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ta:uf,this.isPropagationStopped=uf,this}return B(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ta)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ta)},persist:function(){},isPersistent:Ta}),r}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hs=Qn(Mi),xo=B({},Mi,{view:0,detail:0}),Qh=Qn(xo),ms,vs,Eo,Ia=B({},xo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bs,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Eo&&(Eo&&t.type==="mousemove"?(ms=t.screenX-Eo.screenX,vs=t.screenY-Eo.screenY):vs=ms=0,Eo=t),ms)},movementY:function(t){return"movementY"in t?t.movementY:vs}}),cf=Qn(Ia),Xh=B({},Ia,{dataTransfer:0}),qh=Qn(Xh),Zh=B({},xo,{relatedTarget:0}),ys=Qn(Zh),Jh=B({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),em=Qn(Jh),tm=B({},Mi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),nm=Qn(tm),rm=B({},Mi,{data:0}),ff=Qn(rm),im={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},om={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},am={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lm(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=am[t])?!!r[t]:!1}function bs(){return lm}var sm=B({},xo,{key:function(t){if(t.key){var r=im[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Pa(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?om[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bs,charCode:function(t){return t.type==="keypress"?Pa(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pa(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),um=Qn(sm),cm=B({},Ia,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),df=Qn(cm),fm=B({},xo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bs}),dm=Qn(fm),pm=B({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),gm=Qn(pm),hm=B({},Ia,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),mm=Qn(hm),vm=[9,13,27,32],ws=f&&"CompositionEvent"in window,Co=null;f&&"documentMode"in document&&(Co=document.documentMode);var ym=f&&"TextEvent"in window&&!Co,pf=f&&(!ws||Co&&8<Co&&11>=Co),gf=" ",hf=!1;function mf(t,r){switch(t){case"keyup":return vm.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Hi=!1;function bm(t,r){switch(t){case"compositionend":return vf(r);case"keypress":return r.which!==32?null:(hf=!0,gf);case"textInput":return t=r.data,t===gf&&hf?null:t;default:return null}}function wm(t,r){if(Hi)return t==="compositionend"||!ws&&mf(t,r)?(t=sf(),Oa=gs=Jr=null,Hi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return pf&&r.locale!=="ko"?null:r.data;default:return null}}var Sm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yf(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!Sm[t.type]:r==="textarea"}function bf(t,r,l,s){Le(s),r=$a(r,"onChange"),0<r.length&&(l=new hs("onChange","change",null,l,s),t.push({event:l,listeners:r}))}var ko=null,Oo=null;function xm(t){Df(t,0)}function Na(t){var r=Wi(t);if($t(r))return t}function Em(t,r){if(t==="change")return r}var wf=!1;if(f){var Ss;if(f){var xs="oninput"in document;if(!xs){var Sf=document.createElement("div");Sf.setAttribute("oninput","return;"),xs=typeof Sf.oninput=="function"}Ss=xs}else Ss=!1;wf=Ss&&(!document.documentMode||9<document.documentMode)}function xf(){ko&&(ko.detachEvent("onpropertychange",Ef),Oo=ko=null)}function Ef(t){if(t.propertyName==="value"&&Na(Oo)){var r=[];bf(r,Oo,t,Ke(t)),nn(xm,r)}}function Cm(t,r,l){t==="focusin"?(xf(),ko=r,Oo=l,ko.attachEvent("onpropertychange",Ef)):t==="focusout"&&xf()}function km(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Na(Oo)}function Om(t,r){if(t==="click")return Na(r)}function Pm(t,r){if(t==="input"||t==="change")return Na(r)}function Tm(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var pr=typeof Object.is=="function"?Object.is:Tm;function Po(t,r){if(pr(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var l=Object.keys(t),s=Object.keys(r);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var d=l[s];if(!p.call(r,d)||!pr(t[d],r[d]))return!1}return!0}function Cf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kf(t,r){var l=Cf(t);t=0;for(var s;l;){if(l.nodeType===3){if(s=t+l.textContent.length,t<=r&&s>=r)return{node:l,offset:r-t};t=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Cf(l)}}function Of(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Of(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Pf(){for(var t=window,r=nt();r instanceof t.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)t=r.contentWindow;else break;r=nt(t.document)}return r}function Es(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function Im(t){var r=Pf(),l=t.focusedElem,s=t.selectionRange;if(r!==l&&l&&l.ownerDocument&&Of(l.ownerDocument.documentElement,l)){if(s!==null&&Es(l)){if(r=s.start,t=s.end,t===void 0&&(t=r),"selectionStart"in l)l.selectionStart=r,l.selectionEnd=Math.min(t,l.value.length);else if(t=(r=l.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var d=l.textContent.length,g=Math.min(s.start,d);s=s.end===void 0?g:Math.min(s.end,d),!t.extend&&g>s&&(d=s,s=g,g=d),d=kf(l,g);var y=kf(l,s);d&&y&&(t.rangeCount!==1||t.anchorNode!==d.node||t.anchorOffset!==d.offset||t.focusNode!==y.node||t.focusOffset!==y.offset)&&(r=r.createRange(),r.setStart(d.node,d.offset),t.removeAllRanges(),g>s?(t.addRange(r),t.extend(y.node,y.offset)):(r.setEnd(y.node,y.offset),t.addRange(r)))}}for(r=[],t=l;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<r.length;l++)t=r[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Nm=f&&"documentMode"in document&&11>=document.documentMode,Vi=null,Cs=null,To=null,ks=!1;function Tf(t,r,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ks||Vi==null||Vi!==nt(s)||(s=Vi,"selectionStart"in s&&Es(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),To&&Po(To,s)||(To=s,s=$a(Cs,"onSelect"),0<s.length&&(r=new hs("onSelect","select",null,r,l),t.push({event:r,listeners:s}),r.target=Vi)))}function Ra(t,r){var l={};return l[t.toLowerCase()]=r.toLowerCase(),l["Webkit"+t]="webkit"+r,l["Moz"+t]="moz"+r,l}var Bi={animationend:Ra("Animation","AnimationEnd"),animationiteration:Ra("Animation","AnimationIteration"),animationstart:Ra("Animation","AnimationStart"),transitionend:Ra("Transition","TransitionEnd")},Os={},If={};f&&(If=document.createElement("div").style,"AnimationEvent"in window||(delete Bi.animationend.animation,delete Bi.animationiteration.animation,delete Bi.animationstart.animation),"TransitionEvent"in window||delete Bi.transitionend.transition);function La(t){if(Os[t])return Os[t];if(!Bi[t])return t;var r=Bi[t],l;for(l in r)if(r.hasOwnProperty(l)&&l in If)return Os[t]=r[l];return t}var Nf=La("animationend"),Rf=La("animationiteration"),Lf=La("animationstart"),_f=La("transitionend"),$f=new Map,jf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ei(t,r){$f.set(t,r),u(r,[t])}for(var Ps=0;Ps<jf.length;Ps++){var Ts=jf[Ps],Rm=Ts.toLowerCase(),Lm=Ts[0].toUpperCase()+Ts.slice(1);ei(Rm,"on"+Lm)}ei(Nf,"onAnimationEnd"),ei(Rf,"onAnimationIteration"),ei(Lf,"onAnimationStart"),ei("dblclick","onDoubleClick"),ei("focusin","onFocus"),ei("focusout","onBlur"),ei(_f,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Io="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_m=new Set("cancel close invalid load scroll toggle".split(" ").concat(Io));function Af(t,r,l){var s=t.type||"unknown-event";t.currentTarget=l,$e(s,r,void 0,t),t.currentTarget=null}function Df(t,r){r=(r&4)!==0;for(var l=0;l<t.length;l++){var s=t[l],d=s.event;s=s.listeners;e:{var g=void 0;if(r)for(var y=s.length-1;0<=y;y--){var E=s[y],T=E.instance,A=E.currentTarget;if(E=E.listener,T!==g&&d.isPropagationStopped())break e;Af(d,E,A),g=T}else for(y=0;y<s.length;y++){if(E=s[y],T=E.instance,A=E.currentTarget,E=E.listener,T!==g&&d.isPropagationStopped())break e;Af(d,E,A),g=T}}}if(Rn)throw t=tr,Rn=!1,tr=null,t}function wt(t,r){var l=r[As];l===void 0&&(l=r[As]=new Set);var s=t+"__bubble";l.has(s)||(zf(r,t,2,!1),l.add(s))}function Is(t,r,l){var s=0;r&&(s|=4),zf(l,t,s,r)}var _a="_reactListening"+Math.random().toString(36).slice(2);function No(t){if(!t[_a]){t[_a]=!0,i.forEach(function(l){l!=="selectionchange"&&(_m.has(l)||Is(l,!1,t),Is(l,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[_a]||(r[_a]=!0,Is("selectionchange",!1,r))}}function zf(t,r,l,s){switch(lf(r)){case 1:var d=Gh;break;case 4:d=Yh;break;default:d=ds}l=d.bind(null,r,l,t),d=void 0,!At||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),s?d!==void 0?t.addEventListener(r,l,{capture:!0,passive:d}):t.addEventListener(r,l,!0):d!==void 0?t.addEventListener(r,l,{passive:d}):t.addEventListener(r,l,!1)}function Ns(t,r,l,s,d){var g=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var y=s.tag;if(y===3||y===4){var E=s.stateNode.containerInfo;if(E===d||E.nodeType===8&&E.parentNode===d)break;if(y===4)for(y=s.return;y!==null;){var T=y.tag;if((T===3||T===4)&&(T=y.stateNode.containerInfo,T===d||T.nodeType===8&&T.parentNode===d))return;y=y.return}for(;E!==null;){if(y=yi(E),y===null)return;if(T=y.tag,T===5||T===6){s=g=y;continue e}E=E.parentNode}}s=s.return}nn(function(){var A=g,ne=Ke(l),re=[];e:{var ee=$f.get(t);if(ee!==void 0){var we=hs,Ce=t;switch(t){case"keypress":if(Pa(l)===0)break e;case"keydown":case"keyup":we=um;break;case"focusin":Ce="focus",we=ys;break;case"focusout":Ce="blur",we=ys;break;case"beforeblur":case"afterblur":we=ys;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":we=cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=qh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=dm;break;case Nf:case Rf:case Lf:we=em;break;case _f:we=gm;break;case"scroll":we=Qh;break;case"wheel":we=mm;break;case"copy":case"cut":case"paste":we=nm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=df}var Pe=(r&4)!==0,Ft=!Pe&&t==="scroll",R=Pe?ee!==null?ee+"Capture":null:ee;Pe=[];for(var I=A,_;I!==null;){_=I;var ue=_.stateNode;if(_.tag===5&&ue!==null&&(_=ue,R!==null&&(ue=Vt(I,R),ue!=null&&Pe.push(Ro(I,ue,_)))),Ft)break;I=I.return}0<Pe.length&&(ee=new we(ee,Ce,null,l,ne),re.push({event:ee,listeners:Pe}))}}if((r&7)===0){e:{if(ee=t==="mouseover"||t==="pointerover",we=t==="mouseout"||t==="pointerout",ee&&l!==he&&(Ce=l.relatedTarget||l.fromElement)&&(yi(Ce)||Ce[Mr]))break e;if((we||ee)&&(ee=ne.window===ne?ne:(ee=ne.ownerDocument)?ee.defaultView||ee.parentWindow:window,we?(Ce=l.relatedTarget||l.toElement,we=A,Ce=Ce?yi(Ce):null,Ce!==null&&(Ft=Ge(Ce),Ce!==Ft||Ce.tag!==5&&Ce.tag!==6)&&(Ce=null)):(we=null,Ce=A),we!==Ce)){if(Pe=cf,ue="onMouseLeave",R="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Pe=df,ue="onPointerLeave",R="onPointerEnter",I="pointer"),Ft=we==null?ee:Wi(we),_=Ce==null?ee:Wi(Ce),ee=new Pe(ue,I+"leave",we,l,ne),ee.target=Ft,ee.relatedTarget=_,ue=null,yi(ne)===A&&(Pe=new Pe(R,I+"enter",Ce,l,ne),Pe.target=_,Pe.relatedTarget=Ft,ue=Pe),Ft=ue,we&&Ce)t:{for(Pe=we,R=Ce,I=0,_=Pe;_;_=Ui(_))I++;for(_=0,ue=R;ue;ue=Ui(ue))_++;for(;0<I-_;)Pe=Ui(Pe),I--;for(;0<_-I;)R=Ui(R),_--;for(;I--;){if(Pe===R||R!==null&&Pe===R.alternate)break t;Pe=Ui(Pe),R=Ui(R)}Pe=null}else Pe=null;we!==null&&Ff(re,ee,we,Pe,!1),Ce!==null&&Ft!==null&&Ff(re,Ft,Ce,Pe,!0)}}e:{if(ee=A?Wi(A):window,we=ee.nodeName&&ee.nodeName.toLowerCase(),we==="select"||we==="input"&&ee.type==="file")var Ie=Em;else if(yf(ee))if(wf)Ie=Pm;else{Ie=km;var je=Cm}else(we=ee.nodeName)&&we.toLowerCase()==="input"&&(ee.type==="checkbox"||ee.type==="radio")&&(Ie=Om);if(Ie&&(Ie=Ie(t,A))){bf(re,Ie,l,ne);break e}je&&je(t,ee,A),t==="focusout"&&(je=ee._wrapperState)&&je.controlled&&ee.type==="number"&&en(ee,"number",ee.value)}switch(je=A?Wi(A):window,t){case"focusin":(yf(je)||je.contentEditable==="true")&&(Vi=je,Cs=A,To=null);break;case"focusout":To=Cs=Vi=null;break;case"mousedown":ks=!0;break;case"contextmenu":case"mouseup":case"dragend":ks=!1,Tf(re,l,ne);break;case"selectionchange":if(Nm)break;case"keydown":case"keyup":Tf(re,l,ne)}var Ae;if(ws)e:{switch(t){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else Hi?mf(t,l)&&(Ve="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Ve="onCompositionStart");Ve&&(pf&&l.locale!=="ko"&&(Hi||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&Hi&&(Ae=sf()):(Jr=ne,gs="value"in Jr?Jr.value:Jr.textContent,Hi=!0)),je=$a(A,Ve),0<je.length&&(Ve=new ff(Ve,t,null,l,ne),re.push({event:Ve,listeners:je}),Ae?Ve.data=Ae:(Ae=vf(l),Ae!==null&&(Ve.data=Ae)))),(Ae=ym?bm(t,l):wm(t,l))&&(A=$a(A,"onBeforeInput"),0<A.length&&(ne=new ff("onBeforeInput","beforeinput",null,l,ne),re.push({event:ne,listeners:A}),ne.data=Ae))}Df(re,r)})}function Ro(t,r,l){return{instance:t,listener:r,currentTarget:l}}function $a(t,r){for(var l=r+"Capture",s=[];t!==null;){var d=t,g=d.stateNode;d.tag===5&&g!==null&&(d=g,g=Vt(t,l),g!=null&&s.unshift(Ro(t,g,d)),g=Vt(t,r),g!=null&&s.push(Ro(t,g,d))),t=t.return}return s}function Ui(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Ff(t,r,l,s,d){for(var g=r._reactName,y=[];l!==null&&l!==s;){var E=l,T=E.alternate,A=E.stateNode;if(T!==null&&T===s)break;E.tag===5&&A!==null&&(E=A,d?(T=Vt(l,g),T!=null&&y.unshift(Ro(l,T,E))):d||(T=Vt(l,g),T!=null&&y.push(Ro(l,T,E)))),l=l.return}y.length!==0&&t.push({event:r,listeners:y})}var $m=/\r\n?/g,jm=/\u0000|\uFFFD/g;function Mf(t){return(typeof t=="string"?t:""+t).replace($m,`
|
|
38
|
-
`).replace(jm,"")}function ja(t,r,l){if(r=Mf(r),Mf(t)!==r&&l)throw Error(e(425))}function Aa(){}var Rs=null,Ls=null;function _s(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var $s=typeof setTimeout=="function"?setTimeout:void 0,Am=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Dm=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(t){return Hf.resolve(null).then(t).catch(zm)}:$s;function zm(t){setTimeout(function(){throw t})}function js(t,r){var l=r,s=0;do{var d=l.nextSibling;if(t.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(s===0){t.removeChild(d),So(r);return}s--}else l!=="$"&&l!=="$?"&&l!=="$!"||s++;l=d}while(l);So(r)}function ti(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Vf(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(r===0)return t;r--}else l==="/$"&&r++}t=t.previousSibling}return null}var Ki=Math.random().toString(36).slice(2),kr="__reactFiber$"+Ki,Lo="__reactProps$"+Ki,Mr="__reactContainer$"+Ki,As="__reactEvents$"+Ki,Fm="__reactListeners$"+Ki,Mm="__reactHandles$"+Ki;function yi(t){var r=t[kr];if(r)return r;for(var l=t.parentNode;l;){if(r=l[Mr]||l[kr]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(t=Vf(t);t!==null;){if(l=t[kr])return l;t=Vf(t)}return r}t=l,l=t.parentNode}return null}function _o(t){return t=t[kr]||t[Mr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Wi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(e(33))}function Da(t){return t[Lo]||null}var Ds=[],Gi=-1;function ni(t){return{current:t}}function St(t){0>Gi||(t.current=Ds[Gi],Ds[Gi]=null,Gi--)}function yt(t,r){Gi++,Ds[Gi]=t.current,t.current=r}var ri={},xn=ni(ri),Hn=ni(!1),bi=ri;function Yi(t,r){var l=t.type.contextTypes;if(!l)return ri;var s=t.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===r)return s.__reactInternalMemoizedMaskedChildContext;var d={},g;for(g in l)d[g]=r[g];return s&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=d),d}function Vn(t){return t=t.childContextTypes,t!=null}function za(){St(Hn),St(xn)}function Bf(t,r,l){if(xn.current!==ri)throw Error(e(168));yt(xn,r),yt(Hn,l)}function Uf(t,r,l){var s=t.stateNode;if(r=r.childContextTypes,typeof s.getChildContext!="function")return l;s=s.getChildContext();for(var d in s)if(!(d in r))throw Error(e(108,Me(t)||"Unknown",d));return B({},l,s)}function Fa(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ri,bi=xn.current,yt(xn,t),yt(Hn,Hn.current),!0}function Kf(t,r,l){var s=t.stateNode;if(!s)throw Error(e(169));l?(t=Uf(t,r,bi),s.__reactInternalMemoizedMergedChildContext=t,St(Hn),St(xn),yt(xn,t)):St(Hn),yt(Hn,l)}var Hr=null,Ma=!1,zs=!1;function Wf(t){Hr===null?Hr=[t]:Hr.push(t)}function Hm(t){Ma=!0,Wf(t)}function ii(){if(!zs&&Hr!==null){zs=!0;var t=0,r=at;try{var l=Hr;for(at=1;t<l.length;t++){var s=l[t];do s=s(!0);while(s!==null)}Hr=null,Ma=!1}catch(d){throw Hr!==null&&(Hr=Hr.slice(t+1)),fe(qe,ii),d}finally{at=r,zs=!1}}return null}var Qi=[],Xi=0,Ha=null,Va=0,ir=[],or=0,wi=null,Vr=1,Br="";function Si(t,r){Qi[Xi++]=Va,Qi[Xi++]=Ha,Ha=t,Va=r}function Gf(t,r,l){ir[or++]=Vr,ir[or++]=Br,ir[or++]=wi,wi=t;var s=Vr;t=Br;var d=32-mn(s)-1;s&=~(1<<d),l+=1;var g=32-mn(r)+d;if(30<g){var y=d-d%5;g=(s&(1<<y)-1).toString(32),s>>=y,d-=y,Vr=1<<32-mn(r)+d|l<<d|s,Br=g+t}else Vr=1<<g|l<<d|s,Br=t}function Fs(t){t.return!==null&&(Si(t,1),Gf(t,1,0))}function Ms(t){for(;t===Ha;)Ha=Qi[--Xi],Qi[Xi]=null,Va=Qi[--Xi],Qi[Xi]=null;for(;t===wi;)wi=ir[--or],ir[or]=null,Br=ir[--or],ir[or]=null,Vr=ir[--or],ir[or]=null}var Xn=null,qn=null,xt=!1,gr=null;function Yf(t,r){var l=ur(5,null,null,0);l.elementType="DELETED",l.stateNode=r,l.return=t,r=t.deletions,r===null?(t.deletions=[l],t.flags|=16):r.push(l)}function Qf(t,r){switch(t.tag){case 5:var l=t.type;return r=r.nodeType!==1||l.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,Xn=t,qn=ti(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,Xn=t,qn=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(l=wi!==null?{id:Vr,overflow:Br}:null,t.memoizedState={dehydrated:r,treeContext:l,retryLane:1073741824},l=ur(18,null,null,0),l.stateNode=r,l.return=t,t.child=l,Xn=t,qn=null,!0):!1;default:return!1}}function Hs(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Vs(t){if(xt){var r=qn;if(r){var l=r;if(!Qf(t,r)){if(Hs(t))throw Error(e(418));r=ti(l.nextSibling);var s=Xn;r&&Qf(t,r)?Yf(s,l):(t.flags=t.flags&-4097|2,xt=!1,Xn=t)}}else{if(Hs(t))throw Error(e(418));t.flags=t.flags&-4097|2,xt=!1,Xn=t}}}function Xf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Xn=t}function Ba(t){if(t!==Xn)return!1;if(!xt)return Xf(t),xt=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!_s(t.type,t.memoizedProps)),r&&(r=qn)){if(Hs(t))throw qf(),Error(e(418));for(;r;)Yf(t,r),r=ti(r.nextSibling)}if(Xf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(e(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(r===0){qn=ti(t.nextSibling);break e}r--}else l!=="$"&&l!=="$!"&&l!=="$?"||r++}t=t.nextSibling}qn=null}}else qn=Xn?ti(t.stateNode.nextSibling):null;return!0}function qf(){for(var t=qn;t;)t=ti(t.nextSibling)}function qi(){qn=Xn=null,xt=!1}function Bs(t){gr===null?gr=[t]:gr.push(t)}var Vm=j.ReactCurrentBatchConfig;function $o(t,r,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(e(309));var s=l.stateNode}if(!s)throw Error(e(147,t));var d=s,g=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===g?r.ref:(r=function(y){var E=d.refs;y===null?delete E[g]:E[g]=y},r._stringRef=g,r)}if(typeof t!="string")throw Error(e(284));if(!l._owner)throw Error(e(290,t))}return t}function Ua(t,r){throw t=Object.prototype.toString.call(r),Error(e(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function Zf(t){var r=t._init;return r(t._payload)}function Jf(t){function r(R,I){if(t){var _=R.deletions;_===null?(R.deletions=[I],R.flags|=16):_.push(I)}}function l(R,I){if(!t)return null;for(;I!==null;)r(R,I),I=I.sibling;return null}function s(R,I){for(R=new Map;I!==null;)I.key!==null?R.set(I.key,I):R.set(I.index,I),I=I.sibling;return R}function d(R,I){return R=di(R,I),R.index=0,R.sibling=null,R}function g(R,I,_){return R.index=_,t?(_=R.alternate,_!==null?(_=_.index,_<I?(R.flags|=2,I):_):(R.flags|=2,I)):(R.flags|=1048576,I)}function y(R){return t&&R.alternate===null&&(R.flags|=2),R}function E(R,I,_,ue){return I===null||I.tag!==6?(I=$u(_,R.mode,ue),I.return=R,I):(I=d(I,_),I.return=R,I)}function T(R,I,_,ue){var Ie=_.type;return Ie===Y?ne(R,I,_.props.children,ue,_.key):I!==null&&(I.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===ve&&Zf(Ie)===I.type)?(ue=d(I,_.props),ue.ref=$o(R,I,_),ue.return=R,ue):(ue=gl(_.type,_.key,_.props,null,R.mode,ue),ue.ref=$o(R,I,_),ue.return=R,ue)}function A(R,I,_,ue){return I===null||I.tag!==4||I.stateNode.containerInfo!==_.containerInfo||I.stateNode.implementation!==_.implementation?(I=ju(_,R.mode,ue),I.return=R,I):(I=d(I,_.children||[]),I.return=R,I)}function ne(R,I,_,ue,Ie){return I===null||I.tag!==7?(I=Ii(_,R.mode,ue,Ie),I.return=R,I):(I=d(I,_),I.return=R,I)}function re(R,I,_){if(typeof I=="string"&&I!==""||typeof I=="number")return I=$u(""+I,R.mode,_),I.return=R,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case G:return _=gl(I.type,I.key,I.props,null,R.mode,_),_.ref=$o(R,null,I),_.return=R,_;case ie:return I=ju(I,R.mode,_),I.return=R,I;case ve:var ue=I._init;return re(R,ue(I._payload),_)}if(jt(I)||J(I))return I=Ii(I,R.mode,_,null),I.return=R,I;Ua(R,I)}return null}function ee(R,I,_,ue){var Ie=I!==null?I.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return Ie!==null?null:E(R,I,""+_,ue);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case G:return _.key===Ie?T(R,I,_,ue):null;case ie:return _.key===Ie?A(R,I,_,ue):null;case ve:return Ie=_._init,ee(R,I,Ie(_._payload),ue)}if(jt(_)||J(_))return Ie!==null?null:ne(R,I,_,ue,null);Ua(R,_)}return null}function we(R,I,_,ue,Ie){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return R=R.get(_)||null,E(I,R,""+ue,Ie);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case G:return R=R.get(ue.key===null?_:ue.key)||null,T(I,R,ue,Ie);case ie:return R=R.get(ue.key===null?_:ue.key)||null,A(I,R,ue,Ie);case ve:var je=ue._init;return we(R,I,_,je(ue._payload),Ie)}if(jt(ue)||J(ue))return R=R.get(_)||null,ne(I,R,ue,Ie,null);Ua(I,ue)}return null}function Ce(R,I,_,ue){for(var Ie=null,je=null,Ae=I,Ve=I=0,sn=null;Ae!==null&&Ve<_.length;Ve++){Ae.index>Ve?(sn=Ae,Ae=null):sn=Ae.sibling;var it=ee(R,Ae,_[Ve],ue);if(it===null){Ae===null&&(Ae=sn);break}t&&Ae&&it.alternate===null&&r(R,Ae),I=g(it,I,Ve),je===null?Ie=it:je.sibling=it,je=it,Ae=sn}if(Ve===_.length)return l(R,Ae),xt&&Si(R,Ve),Ie;if(Ae===null){for(;Ve<_.length;Ve++)Ae=re(R,_[Ve],ue),Ae!==null&&(I=g(Ae,I,Ve),je===null?Ie=Ae:je.sibling=Ae,je=Ae);return xt&&Si(R,Ve),Ie}for(Ae=s(R,Ae);Ve<_.length;Ve++)sn=we(Ae,R,Ve,_[Ve],ue),sn!==null&&(t&&sn.alternate!==null&&Ae.delete(sn.key===null?Ve:sn.key),I=g(sn,I,Ve),je===null?Ie=sn:je.sibling=sn,je=sn);return t&&Ae.forEach(function(pi){return r(R,pi)}),xt&&Si(R,Ve),Ie}function Pe(R,I,_,ue){var Ie=J(_);if(typeof Ie!="function")throw Error(e(150));if(_=Ie.call(_),_==null)throw Error(e(151));for(var je=Ie=null,Ae=I,Ve=I=0,sn=null,it=_.next();Ae!==null&&!it.done;Ve++,it=_.next()){Ae.index>Ve?(sn=Ae,Ae=null):sn=Ae.sibling;var pi=ee(R,Ae,it.value,ue);if(pi===null){Ae===null&&(Ae=sn);break}t&&Ae&&pi.alternate===null&&r(R,Ae),I=g(pi,I,Ve),je===null?Ie=pi:je.sibling=pi,je=pi,Ae=sn}if(it.done)return l(R,Ae),xt&&Si(R,Ve),Ie;if(Ae===null){for(;!it.done;Ve++,it=_.next())it=re(R,it.value,ue),it!==null&&(I=g(it,I,Ve),je===null?Ie=it:je.sibling=it,je=it);return xt&&Si(R,Ve),Ie}for(Ae=s(R,Ae);!it.done;Ve++,it=_.next())it=we(Ae,R,Ve,it.value,ue),it!==null&&(t&&it.alternate!==null&&Ae.delete(it.key===null?Ve:it.key),I=g(it,I,Ve),je===null?Ie=it:je.sibling=it,je=it);return t&&Ae.forEach(function(Sv){return r(R,Sv)}),xt&&Si(R,Ve),Ie}function Ft(R,I,_,ue){if(typeof _=="object"&&_!==null&&_.type===Y&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case G:e:{for(var Ie=_.key,je=I;je!==null;){if(je.key===Ie){if(Ie=_.type,Ie===Y){if(je.tag===7){l(R,je.sibling),I=d(je,_.props.children),I.return=R,R=I;break e}}else if(je.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===ve&&Zf(Ie)===je.type){l(R,je.sibling),I=d(je,_.props),I.ref=$o(R,je,_),I.return=R,R=I;break e}l(R,je);break}else r(R,je);je=je.sibling}_.type===Y?(I=Ii(_.props.children,R.mode,ue,_.key),I.return=R,R=I):(ue=gl(_.type,_.key,_.props,null,R.mode,ue),ue.ref=$o(R,I,_),ue.return=R,R=ue)}return y(R);case ie:e:{for(je=_.key;I!==null;){if(I.key===je)if(I.tag===4&&I.stateNode.containerInfo===_.containerInfo&&I.stateNode.implementation===_.implementation){l(R,I.sibling),I=d(I,_.children||[]),I.return=R,R=I;break e}else{l(R,I);break}else r(R,I);I=I.sibling}I=ju(_,R.mode,ue),I.return=R,R=I}return y(R);case ve:return je=_._init,Ft(R,I,je(_._payload),ue)}if(jt(_))return Ce(R,I,_,ue);if(J(_))return Pe(R,I,_,ue);Ua(R,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,I!==null&&I.tag===6?(l(R,I.sibling),I=d(I,_),I.return=R,R=I):(l(R,I),I=$u(_,R.mode,ue),I.return=R,R=I),y(R)):l(R,I)}return Ft}var Zi=Jf(!0),ed=Jf(!1),Ka=ni(null),Wa=null,Ji=null,Us=null;function Ks(){Us=Ji=Wa=null}function Ws(t){var r=Ka.current;St(Ka),t._currentValue=r}function Gs(t,r,l){for(;t!==null;){var s=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),t===l)break;t=t.return}}function eo(t,r){Wa=t,Us=Ji=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(Bn=!0),t.firstContext=null)}function ar(t){var r=t._currentValue;if(Us!==t)if(t={context:t,memoizedValue:r,next:null},Ji===null){if(Wa===null)throw Error(e(308));Ji=t,Wa.dependencies={lanes:0,firstContext:t}}else Ji=Ji.next=t;return r}var xi=null;function Ys(t){xi===null?xi=[t]:xi.push(t)}function td(t,r,l,s){var d=r.interleaved;return d===null?(l.next=l,Ys(r)):(l.next=d.next,d.next=l),r.interleaved=l,Ur(t,s)}function Ur(t,r){t.lanes|=r;var l=t.alternate;for(l!==null&&(l.lanes|=r),l=t,t=t.return;t!==null;)t.childLanes|=r,l=t.alternate,l!==null&&(l.childLanes|=r),l=t,t=t.return;return l.tag===3?l.stateNode:null}var oi=!1;function Qs(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nd(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Kr(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function ai(t,r,l){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(et&2)!==0){var d=s.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),s.pending=r,Ur(t,l)}return d=s.interleaved,d===null?(r.next=r,Ys(s)):(r.next=d.next,d.next=r),s.interleaved=r,Ur(t,l)}function Ga(t,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194240)!==0)){var s=r.lanes;s&=t.pendingLanes,l|=s,r.lanes=l,vo(t,l)}}function rd(t,r){var l=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var d=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var y={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};g===null?d=g=y:g=g.next=y,l=l.next}while(l!==null);g===null?d=g=r:g=g.next=r}else d=g=r;l={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:s.shared,effects:s.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=r:t.next=r,l.lastBaseUpdate=r}function Ya(t,r,l,s){var d=t.updateQueue;oi=!1;var g=d.firstBaseUpdate,y=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var T=E,A=T.next;T.next=null,y===null?g=A:y.next=A,y=T;var ne=t.alternate;ne!==null&&(ne=ne.updateQueue,E=ne.lastBaseUpdate,E!==y&&(E===null?ne.firstBaseUpdate=A:E.next=A,ne.lastBaseUpdate=T))}if(g!==null){var re=d.baseState;y=0,ne=A=T=null,E=g;do{var ee=E.lane,we=E.eventTime;if((s&ee)===ee){ne!==null&&(ne=ne.next={eventTime:we,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var Ce=t,Pe=E;switch(ee=r,we=l,Pe.tag){case 1:if(Ce=Pe.payload,typeof Ce=="function"){re=Ce.call(we,re,ee);break e}re=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Pe.payload,ee=typeof Ce=="function"?Ce.call(we,re,ee):Ce,ee==null)break e;re=B({},re,ee);break e;case 2:oi=!0}}E.callback!==null&&E.lane!==0&&(t.flags|=64,ee=d.effects,ee===null?d.effects=[E]:ee.push(E))}else we={eventTime:we,lane:ee,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ne===null?(A=ne=we,T=re):ne=ne.next=we,y|=ee;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;ee=E,E=ee.next,ee.next=null,d.lastBaseUpdate=ee,d.shared.pending=null}}while(!0);if(ne===null&&(T=re),d.baseState=T,d.firstBaseUpdate=A,d.lastBaseUpdate=ne,r=d.shared.interleaved,r!==null){d=r;do y|=d.lane,d=d.next;while(d!==r)}else g===null&&(d.shared.lanes=0);ki|=y,t.lanes=y,t.memoizedState=re}}function id(t,r,l){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var s=t[r],d=s.callback;if(d!==null){if(s.callback=null,s=l,typeof d!="function")throw Error(e(191,d));d.call(s)}}}var jo={},Or=ni(jo),Ao=ni(jo),Do=ni(jo);function Ei(t){if(t===jo)throw Error(e(174));return t}function Xs(t,r){switch(yt(Do,r),yt(Ao,t),yt(Or,jo),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Tn(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Tn(r,t)}St(Or),yt(Or,r)}function to(){St(Or),St(Ao),St(Do)}function od(t){Ei(Do.current);var r=Ei(Or.current),l=Tn(r,t.type);r!==l&&(yt(Ao,t),yt(Or,l))}function qs(t){Ao.current===t&&(St(Or),St(Ao))}var Ot=ni(0);function Qa(t){for(var r=t;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Zs=[];function Js(){for(var t=0;t<Zs.length;t++)Zs[t]._workInProgressVersionPrimary=null;Zs.length=0}var Xa=j.ReactCurrentDispatcher,eu=j.ReactCurrentBatchConfig,Ci=0,Pt=null,qt=null,an=null,qa=!1,zo=!1,Fo=0,Bm=0;function En(){throw Error(e(321))}function tu(t,r){if(r===null)return!1;for(var l=0;l<r.length&&l<t.length;l++)if(!pr(t[l],r[l]))return!1;return!0}function nu(t,r,l,s,d,g){if(Ci=g,Pt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Xa.current=t===null||t.memoizedState===null?Gm:Ym,t=l(s,d),zo){g=0;do{if(zo=!1,Fo=0,25<=g)throw Error(e(301));g+=1,an=qt=null,r.updateQueue=null,Xa.current=Qm,t=l(s,d)}while(zo)}if(Xa.current=el,r=qt!==null&&qt.next!==null,Ci=0,an=qt=Pt=null,qa=!1,r)throw Error(e(300));return t}function ru(){var t=Fo!==0;return Fo=0,t}function Pr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?Pt.memoizedState=an=t:an=an.next=t,an}function lr(){if(qt===null){var t=Pt.alternate;t=t!==null?t.memoizedState:null}else t=qt.next;var r=an===null?Pt.memoizedState:an.next;if(r!==null)an=r,qt=t;else{if(t===null)throw Error(e(310));qt=t,t={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},an===null?Pt.memoizedState=an=t:an=an.next=t}return an}function Mo(t,r){return typeof r=="function"?r(t):r}function iu(t){var r=lr(),l=r.queue;if(l===null)throw Error(e(311));l.lastRenderedReducer=t;var s=qt,d=s.baseQueue,g=l.pending;if(g!==null){if(d!==null){var y=d.next;d.next=g.next,g.next=y}s.baseQueue=d=g,l.pending=null}if(d!==null){g=d.next,s=s.baseState;var E=y=null,T=null,A=g;do{var ne=A.lane;if((Ci&ne)===ne)T!==null&&(T=T.next={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),s=A.hasEagerState?A.eagerState:t(s,A.action);else{var re={lane:ne,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};T===null?(E=T=re,y=s):T=T.next=re,Pt.lanes|=ne,ki|=ne}A=A.next}while(A!==null&&A!==g);T===null?y=s:T.next=E,pr(s,r.memoizedState)||(Bn=!0),r.memoizedState=s,r.baseState=y,r.baseQueue=T,l.lastRenderedState=s}if(t=l.interleaved,t!==null){d=t;do g=d.lane,Pt.lanes|=g,ki|=g,d=d.next;while(d!==t)}else d===null&&(l.lanes=0);return[r.memoizedState,l.dispatch]}function ou(t){var r=lr(),l=r.queue;if(l===null)throw Error(e(311));l.lastRenderedReducer=t;var s=l.dispatch,d=l.pending,g=r.memoizedState;if(d!==null){l.pending=null;var y=d=d.next;do g=t(g,y.action),y=y.next;while(y!==d);pr(g,r.memoizedState)||(Bn=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),l.lastRenderedState=g}return[g,s]}function ad(){}function ld(t,r){var l=Pt,s=lr(),d=r(),g=!pr(s.memoizedState,d);if(g&&(s.memoizedState=d,Bn=!0),s=s.queue,au(cd.bind(null,l,s,t),[t]),s.getSnapshot!==r||g||an!==null&&an.memoizedState.tag&1){if(l.flags|=2048,Ho(9,ud.bind(null,l,s,d,r),void 0,null),ln===null)throw Error(e(349));(Ci&30)!==0||sd(l,r,d)}return d}function sd(t,r,l){t.flags|=16384,t={getSnapshot:r,value:l},r=Pt.updateQueue,r===null?(r={lastEffect:null,stores:null},Pt.updateQueue=r,r.stores=[t]):(l=r.stores,l===null?r.stores=[t]:l.push(t))}function ud(t,r,l,s){r.value=l,r.getSnapshot=s,fd(r)&&dd(t)}function cd(t,r,l){return l(function(){fd(r)&&dd(t)})}function fd(t){var r=t.getSnapshot;t=t.value;try{var l=r();return!pr(t,l)}catch{return!0}}function dd(t){var r=Ur(t,1);r!==null&&yr(r,t,1,-1)}function pd(t){var r=Pr();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:t},r.queue=t,t=t.dispatch=Wm.bind(null,Pt,t),[r.memoizedState,t]}function Ho(t,r,l,s){return t={tag:t,create:r,destroy:l,deps:s,next:null},r=Pt.updateQueue,r===null?(r={lastEffect:null,stores:null},Pt.updateQueue=r,r.lastEffect=t.next=t):(l=r.lastEffect,l===null?r.lastEffect=t.next=t:(s=l.next,l.next=t,t.next=s,r.lastEffect=t)),t}function gd(){return lr().memoizedState}function Za(t,r,l,s){var d=Pr();Pt.flags|=t,d.memoizedState=Ho(1|r,l,void 0,s===void 0?null:s)}function Ja(t,r,l,s){var d=lr();s=s===void 0?null:s;var g=void 0;if(qt!==null){var y=qt.memoizedState;if(g=y.destroy,s!==null&&tu(s,y.deps)){d.memoizedState=Ho(r,l,g,s);return}}Pt.flags|=t,d.memoizedState=Ho(1|r,l,g,s)}function hd(t,r){return Za(8390656,8,t,r)}function au(t,r){return Ja(2048,8,t,r)}function md(t,r){return Ja(4,2,t,r)}function vd(t,r){return Ja(4,4,t,r)}function yd(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function bd(t,r,l){return l=l!=null?l.concat([t]):null,Ja(4,4,yd.bind(null,r,t),l)}function lu(){}function wd(t,r){var l=lr();r=r===void 0?null:r;var s=l.memoizedState;return s!==null&&r!==null&&tu(r,s[1])?s[0]:(l.memoizedState=[t,r],t)}function Sd(t,r){var l=lr();r=r===void 0?null:r;var s=l.memoizedState;return s!==null&&r!==null&&tu(r,s[1])?s[0]:(t=t(),l.memoizedState=[t,r],t)}function xd(t,r,l){return(Ci&21)===0?(t.baseState&&(t.baseState=!1,Bn=!0),t.memoizedState=l):(pr(l,r)||(l=zr(),Pt.lanes|=l,ki|=l,t.baseState=!0),r)}function Um(t,r){var l=at;at=l!==0&&4>l?l:4,t(!0);var s=eu.transition;eu.transition={};try{t(!1),r()}finally{at=l,eu.transition=s}}function Ed(){return lr().memoizedState}function Km(t,r,l){var s=ci(t);if(l={lane:s,action:l,hasEagerState:!1,eagerState:null,next:null},Cd(t))kd(r,l);else if(l=td(t,r,l,s),l!==null){var d=An();yr(l,t,s,d),Od(l,r,s)}}function Wm(t,r,l){var s=ci(t),d={lane:s,action:l,hasEagerState:!1,eagerState:null,next:null};if(Cd(t))kd(r,d);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var y=r.lastRenderedState,E=g(y,l);if(d.hasEagerState=!0,d.eagerState=E,pr(E,y)){var T=r.interleaved;T===null?(d.next=d,Ys(r)):(d.next=T.next,T.next=d),r.interleaved=d;return}}catch{}finally{}l=td(t,r,d,s),l!==null&&(d=An(),yr(l,t,s,d),Od(l,r,s))}}function Cd(t){var r=t.alternate;return t===Pt||r!==null&&r===Pt}function kd(t,r){zo=qa=!0;var l=t.pending;l===null?r.next=r:(r.next=l.next,l.next=r),t.pending=r}function Od(t,r,l){if((l&4194240)!==0){var s=r.lanes;s&=t.pendingLanes,l|=s,r.lanes=l,vo(t,l)}}var el={readContext:ar,useCallback:En,useContext:En,useEffect:En,useImperativeHandle:En,useInsertionEffect:En,useLayoutEffect:En,useMemo:En,useReducer:En,useRef:En,useState:En,useDebugValue:En,useDeferredValue:En,useTransition:En,useMutableSource:En,useSyncExternalStore:En,useId:En,unstable_isNewReconciler:!1},Gm={readContext:ar,useCallback:function(t,r){return Pr().memoizedState=[t,r===void 0?null:r],t},useContext:ar,useEffect:hd,useImperativeHandle:function(t,r,l){return l=l!=null?l.concat([t]):null,Za(4194308,4,yd.bind(null,r,t),l)},useLayoutEffect:function(t,r){return Za(4194308,4,t,r)},useInsertionEffect:function(t,r){return Za(4,2,t,r)},useMemo:function(t,r){var l=Pr();return r=r===void 0?null:r,t=t(),l.memoizedState=[t,r],t},useReducer:function(t,r,l){var s=Pr();return r=l!==void 0?l(r):r,s.memoizedState=s.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},s.queue=t,t=t.dispatch=Km.bind(null,Pt,t),[s.memoizedState,t]},useRef:function(t){var r=Pr();return t={current:t},r.memoizedState=t},useState:pd,useDebugValue:lu,useDeferredValue:function(t){return Pr().memoizedState=t},useTransition:function(){var t=pd(!1),r=t[0];return t=Um.bind(null,t[1]),Pr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,l){var s=Pt,d=Pr();if(xt){if(l===void 0)throw Error(e(407));l=l()}else{if(l=r(),ln===null)throw Error(e(349));(Ci&30)!==0||sd(s,r,l)}d.memoizedState=l;var g={value:l,getSnapshot:r};return d.queue=g,hd(cd.bind(null,s,g,t),[t]),s.flags|=2048,Ho(9,ud.bind(null,s,g,l,r),void 0,null),l},useId:function(){var t=Pr(),r=ln.identifierPrefix;if(xt){var l=Br,s=Vr;l=(s&~(1<<32-mn(s)-1)).toString(32)+l,r=":"+r+"R"+l,l=Fo++,0<l&&(r+="H"+l.toString(32)),r+=":"}else l=Bm++,r=":"+r+"r"+l.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},Ym={readContext:ar,useCallback:wd,useContext:ar,useEffect:au,useImperativeHandle:bd,useInsertionEffect:md,useLayoutEffect:vd,useMemo:Sd,useReducer:iu,useRef:gd,useState:function(){return iu(Mo)},useDebugValue:lu,useDeferredValue:function(t){var r=lr();return xd(r,qt.memoizedState,t)},useTransition:function(){var t=iu(Mo)[0],r=lr().memoizedState;return[t,r]},useMutableSource:ad,useSyncExternalStore:ld,useId:Ed,unstable_isNewReconciler:!1},Qm={readContext:ar,useCallback:wd,useContext:ar,useEffect:au,useImperativeHandle:bd,useInsertionEffect:md,useLayoutEffect:vd,useMemo:Sd,useReducer:ou,useRef:gd,useState:function(){return ou(Mo)},useDebugValue:lu,useDeferredValue:function(t){var r=lr();return qt===null?r.memoizedState=t:xd(r,qt.memoizedState,t)},useTransition:function(){var t=ou(Mo)[0],r=lr().memoizedState;return[t,r]},useMutableSource:ad,useSyncExternalStore:ld,useId:Ed,unstable_isNewReconciler:!1};function hr(t,r){if(t&&t.defaultProps){r=B({},r),t=t.defaultProps;for(var l in t)r[l]===void 0&&(r[l]=t[l]);return r}return r}function su(t,r,l,s){r=t.memoizedState,l=l(s,r),l=l==null?r:B({},r,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var tl={isMounted:function(t){return(t=t._reactInternals)?Ge(t)===t:!1},enqueueSetState:function(t,r,l){t=t._reactInternals;var s=An(),d=ci(t),g=Kr(s,d);g.payload=r,l!=null&&(g.callback=l),r=ai(t,g,d),r!==null&&(yr(r,t,d,s),Ga(r,t,d))},enqueueReplaceState:function(t,r,l){t=t._reactInternals;var s=An(),d=ci(t),g=Kr(s,d);g.tag=1,g.payload=r,l!=null&&(g.callback=l),r=ai(t,g,d),r!==null&&(yr(r,t,d,s),Ga(r,t,d))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var l=An(),s=ci(t),d=Kr(l,s);d.tag=2,r!=null&&(d.callback=r),r=ai(t,d,s),r!==null&&(yr(r,t,s,l),Ga(r,t,s))}};function Pd(t,r,l,s,d,g,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,g,y):r.prototype&&r.prototype.isPureReactComponent?!Po(l,s)||!Po(d,g):!0}function Td(t,r,l){var s=!1,d=ri,g=r.contextType;return typeof g=="object"&&g!==null?g=ar(g):(d=Vn(r)?bi:xn.current,s=r.contextTypes,g=(s=s!=null)?Yi(t,d):ri),r=new r(l,g),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=tl,t.stateNode=r,r._reactInternals=t,s&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=d,t.__reactInternalMemoizedMaskedChildContext=g),r}function Id(t,r,l,s){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,s),r.state!==t&&tl.enqueueReplaceState(r,r.state,null)}function uu(t,r,l,s){var d=t.stateNode;d.props=l,d.state=t.memoizedState,d.refs={},Qs(t);var g=r.contextType;typeof g=="object"&&g!==null?d.context=ar(g):(g=Vn(r)?bi:xn.current,d.context=Yi(t,g)),d.state=t.memoizedState,g=r.getDerivedStateFromProps,typeof g=="function"&&(su(t,r,g,l),d.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(r=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),r!==d.state&&tl.enqueueReplaceState(d,d.state,null),Ya(t,l,d,s),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308)}function no(t,r){try{var l="",s=r;do l+=Te(s),s=s.return;while(s);var d=l}catch(g){d=`
|
|
37
|
+
`+d[y].replace(" at new "," at ");return t.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",t.displayName)),T}while(1<=y&&0<=E);break}}}finally{ce=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?U(t):""}function Te(t){switch(t.tag){case 5:return U(t.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return t=de(t.type,!1),t;case 11:return t=de(t.type.render,!1),t;case 1:return t=de(t.type,!0),t;default:return""}}function ze(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Q:return"Fragment";case ie:return"Portal";case F:return"Profiler";case D:return"StrictMode";case oe:return"Suspense";case ye:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case K:return(t.displayName||"Context")+".Consumer";case q:return(t._context.displayName||"Context")+".Provider";case se:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case X:return r=t.displayName||null,r!==null?r:ze(t.type)||"Memo";case ve:r=t._payload,t=t._init;try{return ze(t(r))}catch{}}return null}function Me(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ze(r);case 8:return r===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Ue(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ye(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function st(t){var r=Ye(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),s=""+t[r];if(!t.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,g=l.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return d.call(this)},set:function(y){s=""+y,g.call(this,y)}}),Object.defineProperty(t,r,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Ht(t){t._valueTracker||(t._valueTracker=st(t))}function jt(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var l=r.getValue(),s="";return t&&(s=Ye(t)?t.checked?"true":"false":t.value),t=s,t!==l?(r.setValue(t),!0):!1}function nt(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function rt(t,r){var l=r.checked;return B({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function fn(t,r){var l=r.defaultValue==null?"":r.defaultValue,s=r.checked!=null?r.checked:r.defaultChecked;l=Ue(r.value!=null?r.value:l),t._wrapperState={initialChecked:s,initialValue:l,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Et(t,r){r=r.checked,r!=null&&j(t,"checked",r,!1)}function It(t,r){Et(t,r);var l=Ue(r.value),s=r.type;if(l!=null)s==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(s==="submit"||s==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?en(t,r.type,l):r.hasOwnProperty("defaultValue")&&en(t,r.type,Ue(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Jt(t,r,l){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var s=r.type;if(!(s!=="submit"&&s!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,l||r===t.value||(t.value=r),t.defaultValue=r}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function en(t,r,l){(r!=="number"||nt(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var $t=Array.isArray;function ht(t,r,l,s){if(t=t.options,r){r={};for(var d=0;d<l.length;d++)r["$"+l[d]]=!0;for(l=0;l<t.length;l++)d=r.hasOwnProperty("$"+t[l].value),t[l].selected!==d&&(t[l].selected=d),d&&s&&(t[l].defaultSelected=!0)}else{for(l=""+Ue(l),r=null,d=0;d<t.length;d++){if(t[d].value===l){t[d].selected=!0,s&&(t[d].defaultSelected=!0);return}r!==null||t[d].disabled||(r=t[d])}r!==null&&(r.selected=!0)}}function ft(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(e(91));return B({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Pn(t,r){var l=r.value;if(l==null){if(l=r.children,r=r.defaultValue,l!=null){if(r!=null)throw Error(e(92));if($t(l)){if(1<l.length)throw Error(e(93));l=l[0]}r=l}r==null&&(r=""),l=r}t._wrapperState={initialValue:Ue(l)}}function Nt(t,r){var l=Ue(r.value),s=Ue(r.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),r.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),s!=null&&(t.defaultValue=""+s)}function dn(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Rt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Tn(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Rt(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Yt,Qt=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,l,s,d){MSApp.execUnsafeLocalFunction(function(){return t(r,l,s,d)})}:t}(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(Yt=Yt||document.createElement("div"),Yt.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=Yt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function bt(t,r){if(r){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=r;return}}t.textContent=r}var _t={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","ms","Moz","O"];Object.keys(_t).forEach(function(t){In.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),_t[r]=_t[t]})});function Ct(t,r,l){return r==null||typeof r=="boolean"||r===""?"":l||typeof r!="number"||r===0||_t.hasOwnProperty(t)&&_t[t]?(""+r).trim():r+"px"}function Nn(t,r){t=t.style;for(var l in r)if(r.hasOwnProperty(l)){var s=l.indexOf("--")===0,d=Ct(l,r[l],s);l==="float"&&(l="cssFloat"),s?t.setProperty(l,d):t[l]=d}}var tn=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fe(t,r){if(r){if(tn[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(e(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(e(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(e(61))}if(r.style!=null&&typeof r.style!="object")throw Error(e(62))}}function ae(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var he=null;function Ke(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Oe=null,M=null,me=null;function De(t){if(t=Lo(t)){if(typeof Oe!="function")throw Error(e(280));var r=t.stateNode;r&&(r=Da(r),Oe(t.stateNode,t.type,r))}}function _e(t){M?me?me.push(t):me=[t]:M=t}function He(){if(M){var t=M,r=me;if(me=M=null,De(t),r)for(t=0;t<r.length;t++)De(r[t])}}function Ze(t,r){return t(r)}function Je(){}var pn=!1;function nn(t,r,l){if(pn)return t(r,l);pn=!0;try{return Ze(t,r,l)}finally{pn=!1,(M!==null||me!==null)&&(Je(),He())}}function Vt(t,r){var l=t.stateNode;if(l===null)return null;var s=Da(l);if(s===null)return null;l=s[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(e(231,r,typeof l));return l}var At=!1;if(f)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){At=!0}}),window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{At=!1}function rn(t,r,l,s,d,g,y,E,T){var A=Array.prototype.slice.call(arguments,3);try{r.apply(l,A)}catch(ne){this.onError(ne)}}var hn=!1,Mn=null,Rn=!1,tr=null,Ne={onError:function(t){hn=!0,Mn=t}};function te(t,r,l,s,d,g,y,E,T){hn=!1,Mn=null,rn.apply(Ne,arguments)}function je(t,r,l,s,d,g,y,E,T){if(te.apply(this,arguments),hn){if(hn){var A=Mn;hn=!1,Mn=null}else throw Error(e(198));Rn||(Rn=!0,tr=A)}}function Ge(t){var r=t,l=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(l=r.return),t=r.return;while(t)}return r.tag===3?l:null}function pt(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function bn(t){if(Ge(t)!==t)throw Error(e(188))}function wn(t){var r=t.alternate;if(!r){if(r=Ge(t),r===null)throw Error(e(188));return r!==t?null:t}for(var l=t,s=r;;){var d=l.return;if(d===null)break;var g=d.alternate;if(g===null){if(s=d.return,s!==null){l=s;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===l)return bn(d),t;if(g===s)return bn(d),r;g=g.sibling}throw Error(e(188))}if(l.return!==s.return)l=d,s=g;else{for(var y=!1,E=d.child;E;){if(E===l){y=!0,l=d,s=g;break}if(E===s){y=!0,s=d,l=g;break}E=E.sibling}if(!y){for(E=g.child;E;){if(E===l){y=!0,l=g,s=d;break}if(E===s){y=!0,s=g,l=d;break}E=E.sibling}if(!y)throw Error(e(189))}}if(l.alternate!==s)throw Error(e(190))}if(l.tag!==3)throw Error(e(188));return l.stateNode.current===l?t:r}function Ee(t){return t=wn(t),t!==null?W(t):null}function W(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=W(t);if(r!==null)return r;t=t.sibling}return null}var fe=n.unstable_scheduleCallback,pe=n.unstable_cancelCallback,be=n.unstable_shouldYield,Se=n.unstable_requestPaint,ge=n.unstable_now,Le=n.unstable_getCurrentPriorityLevel,qe=n.unstable_ImmediatePriority,Xe=n.unstable_UserBlockingPriority,mt=n.unstable_NormalPriority,Xt=n.unstable_LowPriority,kt=n.unstable_IdlePriority,on=null,Bt=null;function mi(t){if(Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}}var mn=Math.clz32?Math.clz32:vi,xr=Math.log,zi=Math.LN2;function vi(t){return t>>>=0,t===0?32:31-(xr(t)/zi|0)|0}var Er=64,Cr=4194304;function vt(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Dt(t,r){var l=t.pendingLanes;if(l===0)return 0;var s=0,d=t.suspendedLanes,g=t.pingedLanes,y=l&268435455;if(y!==0){var E=y&~d;E!==0?s=vt(E):(g&=y,g!==0&&(s=vt(g)))}else y=l&~d,y!==0?s=vt(y):g!==0&&(s=vt(g));if(s===0)return 0;if(r!==0&&r!==s&&(r&d)===0&&(d=s&-s,g=r&-r,d>=g||d===16&&(g&4194240)!==0))return r;if((s&4)!==0&&(s|=l&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=s;0<r;)l=31-mn(r),d=1<<l,s|=t[l],r&=~d;return s}function zt(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sn(t,r){for(var l=t.suspendedLanes,s=t.pingedLanes,d=t.expirationTimes,g=t.pendingLanes;0<g;){var y=31-mn(g),E=1<<y,T=d[y];T===-1?((E&l)===0||(E&s)!==0)&&(d[y]=zt(E,r)):T<=r&&(t.expiredLanes|=E),g&=~E}}function nr(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function zr(){var t=Er;return Er<<=1,(Er&4194240)===0&&(Er=64),t}function _n(t){for(var r=[],l=0;31>l;l++)r.push(t);return r}function Ln(t,r,l){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-mn(r),t[r]=l}function Fr(t,r){var l=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var s=t.eventTimes;for(t=t.expirationTimes;0<l;){var d=31-mn(l),g=1<<d;r[d]=0,s[d]=-1,t[d]=-1,l&=~g}}function vo(t,r){var l=t.entangledLanes|=r;for(t=t.entanglements;l;){var s=31-mn(l),d=1<<s;d&r|t[s]&r&&(t[s]|=r),l&=~d}}var at=0;function Sa(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var xa,le,S,Z,Re,lt=!1,ut=[],jn=null,dr=null,rr=null,yi=new Map,yo=new Map,Zr=[],Kh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rf(t,r){switch(t){case"focusin":case"focusout":jn=null;break;case"dragenter":case"dragleave":dr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":yi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":yo.delete(r.pointerId)}}function bo(t,r,l,s,d,g){return t===null||t.nativeEvent!==g?(t={blockedOn:r,domEventName:l,eventSystemFlags:s,nativeEvent:g,targetContainers:[d]},r!==null&&(r=Lo(r),r!==null&&le(r)),t):(t.eventSystemFlags|=s,r=t.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),t)}function Wh(t,r,l,s,d){switch(r){case"focusin":return jn=bo(jn,t,r,l,s,d),!0;case"dragenter":return dr=bo(dr,t,r,l,s,d),!0;case"mouseover":return rr=bo(rr,t,r,l,s,d),!0;case"pointerover":var g=d.pointerId;return yi.set(g,bo(yi.get(g)||null,t,r,l,s,d)),!0;case"gotpointercapture":return g=d.pointerId,yo.set(g,bo(yo.get(g)||null,t,r,l,s,d)),!0}return!1}function of(t){var r=bi(t.target);if(r!==null){var l=Ge(r);if(l!==null){if(r=l.tag,r===13){if(r=pt(l),r!==null){t.blockedOn=r,Re(t.priority,function(){S(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ea(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var l=ps(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var s=new l.constructor(l.type,l);he=s,l.target.dispatchEvent(s),he=null}else return r=Lo(l),r!==null&&le(r),t.blockedOn=l,!1;r.shift()}return!0}function af(t,r,l){Ea(t)&&l.delete(r)}function Gh(){lt=!1,jn!==null&&Ea(jn)&&(jn=null),dr!==null&&Ea(dr)&&(dr=null),rr!==null&&Ea(rr)&&(rr=null),yi.forEach(af),yo.forEach(af)}function wo(t,r){t.blockedOn===r&&(t.blockedOn=null,lt||(lt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Gh)))}function So(t){function r(d){return wo(d,t)}if(0<ut.length){wo(ut[0],t);for(var l=1;l<ut.length;l++){var s=ut[l];s.blockedOn===t&&(s.blockedOn=null)}}for(jn!==null&&wo(jn,t),dr!==null&&wo(dr,t),rr!==null&&wo(rr,t),yi.forEach(r),yo.forEach(r),l=0;l<Zr.length;l++)s=Zr[l],s.blockedOn===t&&(s.blockedOn=null);for(;0<Zr.length&&(l=Zr[0],l.blockedOn===null);)of(l),l.blockedOn===null&&Zr.shift()}var Fi=$.ReactCurrentBatchConfig,Ca=!0;function Yh(t,r,l,s){var d=at,g=Fi.transition;Fi.transition=null;try{at=1,ds(t,r,l,s)}finally{at=d,Fi.transition=g}}function Qh(t,r,l,s){var d=at,g=Fi.transition;Fi.transition=null;try{at=4,ds(t,r,l,s)}finally{at=d,Fi.transition=g}}function ds(t,r,l,s){if(Ca){var d=ps(t,r,l,s);if(d===null)Ns(t,r,s,ka,l),rf(t,s);else if(Wh(d,t,r,l,s))s.stopPropagation();else if(rf(t,s),r&4&&-1<Kh.indexOf(t)){for(;d!==null;){var g=Lo(d);if(g!==null&&xa(g),g=ps(t,r,l,s),g===null&&Ns(t,r,s,ka,l),g===d)break;d=g}d!==null&&s.stopPropagation()}else Ns(t,r,s,null,l)}}var ka=null;function ps(t,r,l,s){if(ka=null,t=Ke(s),t=bi(t),t!==null)if(r=Ge(t),r===null)t=null;else if(l=r.tag,l===13){if(t=pt(r),t!==null)return t;t=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return ka=t,null}function lf(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Le()){case qe:return 1;case Xe:return 4;case mt:case Xt:return 16;case kt:return 536870912;default:return 16}default:return 16}}var Jr=null,gs=null,Oa=null;function sf(){if(Oa)return Oa;var t,r=gs,l=r.length,s,d="value"in Jr?Jr.value:Jr.textContent,g=d.length;for(t=0;t<l&&r[t]===d[t];t++);var y=l-t;for(s=1;s<=y&&r[l-s]===d[g-s];s++);return Oa=d.slice(t,1<s?1-s:void 0)}function Pa(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Ta(){return!0}function uf(){return!1}function Qn(t){function r(l,s,d,g,y){this._reactName=l,this._targetInst=d,this.type=s,this.nativeEvent=g,this.target=y,this.currentTarget=null;for(var E in t)t.hasOwnProperty(E)&&(l=t[E],this[E]=l?l(g):g[E]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ta:uf,this.isPropagationStopped=uf,this}return B(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ta)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ta)},persist:function(){},isPersistent:Ta}),r}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hs=Qn(Mi),xo=B({},Mi,{view:0,detail:0}),Xh=Qn(xo),ms,vs,Eo,Ia=B({},xo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bs,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Eo&&(Eo&&t.type==="mousemove"?(ms=t.screenX-Eo.screenX,vs=t.screenY-Eo.screenY):vs=ms=0,Eo=t),ms)},movementY:function(t){return"movementY"in t?t.movementY:vs}}),cf=Qn(Ia),qh=B({},Ia,{dataTransfer:0}),Zh=Qn(qh),Jh=B({},xo,{relatedTarget:0}),ys=Qn(Jh),em=B({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),tm=Qn(em),nm=B({},Mi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),rm=Qn(nm),im=B({},Mi,{data:0}),ff=Qn(im),om={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},am={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},lm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sm(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=lm[t])?!!r[t]:!1}function bs(){return sm}var um=B({},xo,{key:function(t){if(t.key){var r=om[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Pa(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?am[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bs,charCode:function(t){return t.type==="keypress"?Pa(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pa(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),cm=Qn(um),fm=B({},Ia,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),df=Qn(fm),dm=B({},xo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bs}),pm=Qn(dm),gm=B({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),hm=Qn(gm),mm=B({},Ia,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),vm=Qn(mm),ym=[9,13,27,32],ws=f&&"CompositionEvent"in window,Co=null;f&&"documentMode"in document&&(Co=document.documentMode);var bm=f&&"TextEvent"in window&&!Co,pf=f&&(!ws||Co&&8<Co&&11>=Co),gf=" ",hf=!1;function mf(t,r){switch(t){case"keyup":return ym.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Hi=!1;function wm(t,r){switch(t){case"compositionend":return vf(r);case"keypress":return r.which!==32?null:(hf=!0,gf);case"textInput":return t=r.data,t===gf&&hf?null:t;default:return null}}function Sm(t,r){if(Hi)return t==="compositionend"||!ws&&mf(t,r)?(t=sf(),Oa=gs=Jr=null,Hi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return pf&&r.locale!=="ko"?null:r.data;default:return null}}var xm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yf(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!xm[t.type]:r==="textarea"}function bf(t,r,l,s){_e(s),r=ja(r,"onChange"),0<r.length&&(l=new hs("onChange","change",null,l,s),t.push({event:l,listeners:r}))}var ko=null,Oo=null;function Em(t){Df(t,0)}function Na(t){var r=Wi(t);if(jt(r))return t}function Cm(t,r){if(t==="change")return r}var wf=!1;if(f){var Ss;if(f){var xs="oninput"in document;if(!xs){var Sf=document.createElement("div");Sf.setAttribute("oninput","return;"),xs=typeof Sf.oninput=="function"}Ss=xs}else Ss=!1;wf=Ss&&(!document.documentMode||9<document.documentMode)}function xf(){ko&&(ko.detachEvent("onpropertychange",Ef),Oo=ko=null)}function Ef(t){if(t.propertyName==="value"&&Na(Oo)){var r=[];bf(r,Oo,t,Ke(t)),nn(Em,r)}}function km(t,r,l){t==="focusin"?(xf(),ko=r,Oo=l,ko.attachEvent("onpropertychange",Ef)):t==="focusout"&&xf()}function Om(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Na(Oo)}function Pm(t,r){if(t==="click")return Na(r)}function Tm(t,r){if(t==="input"||t==="change")return Na(r)}function Im(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var pr=typeof Object.is=="function"?Object.is:Im;function Po(t,r){if(pr(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var l=Object.keys(t),s=Object.keys(r);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var d=l[s];if(!p.call(r,d)||!pr(t[d],r[d]))return!1}return!0}function Cf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kf(t,r){var l=Cf(t);t=0;for(var s;l;){if(l.nodeType===3){if(s=t+l.textContent.length,t<=r&&s>=r)return{node:l,offset:r-t};t=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Cf(l)}}function Of(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Of(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Pf(){for(var t=window,r=nt();r instanceof t.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)t=r.contentWindow;else break;r=nt(t.document)}return r}function Es(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function Nm(t){var r=Pf(),l=t.focusedElem,s=t.selectionRange;if(r!==l&&l&&l.ownerDocument&&Of(l.ownerDocument.documentElement,l)){if(s!==null&&Es(l)){if(r=s.start,t=s.end,t===void 0&&(t=r),"selectionStart"in l)l.selectionStart=r,l.selectionEnd=Math.min(t,l.value.length);else if(t=(r=l.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var d=l.textContent.length,g=Math.min(s.start,d);s=s.end===void 0?g:Math.min(s.end,d),!t.extend&&g>s&&(d=s,s=g,g=d),d=kf(l,g);var y=kf(l,s);d&&y&&(t.rangeCount!==1||t.anchorNode!==d.node||t.anchorOffset!==d.offset||t.focusNode!==y.node||t.focusOffset!==y.offset)&&(r=r.createRange(),r.setStart(d.node,d.offset),t.removeAllRanges(),g>s?(t.addRange(r),t.extend(y.node,y.offset)):(r.setEnd(y.node,y.offset),t.addRange(r)))}}for(r=[],t=l;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<r.length;l++)t=r[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Rm=f&&"documentMode"in document&&11>=document.documentMode,Vi=null,Cs=null,To=null,ks=!1;function Tf(t,r,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ks||Vi==null||Vi!==nt(s)||(s=Vi,"selectionStart"in s&&Es(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),To&&Po(To,s)||(To=s,s=ja(Cs,"onSelect"),0<s.length&&(r=new hs("onSelect","select",null,r,l),t.push({event:r,listeners:s}),r.target=Vi)))}function Ra(t,r){var l={};return l[t.toLowerCase()]=r.toLowerCase(),l["Webkit"+t]="webkit"+r,l["Moz"+t]="moz"+r,l}var Bi={animationend:Ra("Animation","AnimationEnd"),animationiteration:Ra("Animation","AnimationIteration"),animationstart:Ra("Animation","AnimationStart"),transitionend:Ra("Transition","TransitionEnd")},Os={},If={};f&&(If=document.createElement("div").style,"AnimationEvent"in window||(delete Bi.animationend.animation,delete Bi.animationiteration.animation,delete Bi.animationstart.animation),"TransitionEvent"in window||delete Bi.transitionend.transition);function _a(t){if(Os[t])return Os[t];if(!Bi[t])return t;var r=Bi[t],l;for(l in r)if(r.hasOwnProperty(l)&&l in If)return Os[t]=r[l];return t}var Nf=_a("animationend"),Rf=_a("animationiteration"),_f=_a("animationstart"),Lf=_a("transitionend"),jf=new Map,$f="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ei(t,r){jf.set(t,r),u(r,[t])}for(var Ps=0;Ps<$f.length;Ps++){var Ts=$f[Ps],_m=Ts.toLowerCase(),Lm=Ts[0].toUpperCase()+Ts.slice(1);ei(_m,"on"+Lm)}ei(Nf,"onAnimationEnd"),ei(Rf,"onAnimationIteration"),ei(_f,"onAnimationStart"),ei("dblclick","onDoubleClick"),ei("focusin","onFocus"),ei("focusout","onBlur"),ei(Lf,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Io="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Io));function Af(t,r,l){var s=t.type||"unknown-event";t.currentTarget=l,je(s,r,void 0,t),t.currentTarget=null}function Df(t,r){r=(r&4)!==0;for(var l=0;l<t.length;l++){var s=t[l],d=s.event;s=s.listeners;e:{var g=void 0;if(r)for(var y=s.length-1;0<=y;y--){var E=s[y],T=E.instance,A=E.currentTarget;if(E=E.listener,T!==g&&d.isPropagationStopped())break e;Af(d,E,A),g=T}else for(y=0;y<s.length;y++){if(E=s[y],T=E.instance,A=E.currentTarget,E=E.listener,T!==g&&d.isPropagationStopped())break e;Af(d,E,A),g=T}}}if(Rn)throw t=tr,Rn=!1,tr=null,t}function wt(t,r){var l=r[As];l===void 0&&(l=r[As]=new Set);var s=t+"__bubble";l.has(s)||(zf(r,t,2,!1),l.add(s))}function Is(t,r,l){var s=0;r&&(s|=4),zf(l,t,s,r)}var La="_reactListening"+Math.random().toString(36).slice(2);function No(t){if(!t[La]){t[La]=!0,o.forEach(function(l){l!=="selectionchange"&&(jm.has(l)||Is(l,!1,t),Is(l,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[La]||(r[La]=!0,Is("selectionchange",!1,r))}}function zf(t,r,l,s){switch(lf(r)){case 1:var d=Yh;break;case 4:d=Qh;break;default:d=ds}l=d.bind(null,r,l,t),d=void 0,!At||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),s?d!==void 0?t.addEventListener(r,l,{capture:!0,passive:d}):t.addEventListener(r,l,!0):d!==void 0?t.addEventListener(r,l,{passive:d}):t.addEventListener(r,l,!1)}function Ns(t,r,l,s,d){var g=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var y=s.tag;if(y===3||y===4){var E=s.stateNode.containerInfo;if(E===d||E.nodeType===8&&E.parentNode===d)break;if(y===4)for(y=s.return;y!==null;){var T=y.tag;if((T===3||T===4)&&(T=y.stateNode.containerInfo,T===d||T.nodeType===8&&T.parentNode===d))return;y=y.return}for(;E!==null;){if(y=bi(E),y===null)return;if(T=y.tag,T===5||T===6){s=g=y;continue e}E=E.parentNode}}s=s.return}nn(function(){var A=g,ne=Ke(l),re=[];e:{var ee=jf.get(t);if(ee!==void 0){var we=hs,Ce=t;switch(t){case"keypress":if(Pa(l)===0)break e;case"keydown":case"keyup":we=cm;break;case"focusin":Ce="focus",we=ys;break;case"focusout":Ce="blur",we=ys;break;case"beforeblur":case"afterblur":we=ys;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":we=cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=Zh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=pm;break;case Nf:case Rf:case _f:we=tm;break;case Lf:we=hm;break;case"scroll":we=Xh;break;case"wheel":we=vm;break;case"copy":case"cut":case"paste":we=rm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=df}var Pe=(r&4)!==0,Ft=!Pe&&t==="scroll",R=Pe?ee!==null?ee+"Capture":null:ee;Pe=[];for(var I=A,L;I!==null;){L=I;var ue=L.stateNode;if(L.tag===5&&ue!==null&&(L=ue,R!==null&&(ue=Vt(I,R),ue!=null&&Pe.push(Ro(I,ue,L)))),Ft)break;I=I.return}0<Pe.length&&(ee=new we(ee,Ce,null,l,ne),re.push({event:ee,listeners:Pe}))}}if((r&7)===0){e:{if(ee=t==="mouseover"||t==="pointerover",we=t==="mouseout"||t==="pointerout",ee&&l!==he&&(Ce=l.relatedTarget||l.fromElement)&&(bi(Ce)||Ce[Mr]))break e;if((we||ee)&&(ee=ne.window===ne?ne:(ee=ne.ownerDocument)?ee.defaultView||ee.parentWindow:window,we?(Ce=l.relatedTarget||l.toElement,we=A,Ce=Ce?bi(Ce):null,Ce!==null&&(Ft=Ge(Ce),Ce!==Ft||Ce.tag!==5&&Ce.tag!==6)&&(Ce=null)):(we=null,Ce=A),we!==Ce)){if(Pe=cf,ue="onMouseLeave",R="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Pe=df,ue="onPointerLeave",R="onPointerEnter",I="pointer"),Ft=we==null?ee:Wi(we),L=Ce==null?ee:Wi(Ce),ee=new Pe(ue,I+"leave",we,l,ne),ee.target=Ft,ee.relatedTarget=L,ue=null,bi(ne)===A&&(Pe=new Pe(R,I+"enter",Ce,l,ne),Pe.target=L,Pe.relatedTarget=Ft,ue=Pe),Ft=ue,we&&Ce)t:{for(Pe=we,R=Ce,I=0,L=Pe;L;L=Ui(L))I++;for(L=0,ue=R;ue;ue=Ui(ue))L++;for(;0<I-L;)Pe=Ui(Pe),I--;for(;0<L-I;)R=Ui(R),L--;for(;I--;){if(Pe===R||R!==null&&Pe===R.alternate)break t;Pe=Ui(Pe),R=Ui(R)}Pe=null}else Pe=null;we!==null&&Ff(re,ee,we,Pe,!1),Ce!==null&&Ft!==null&&Ff(re,Ft,Ce,Pe,!0)}}e:{if(ee=A?Wi(A):window,we=ee.nodeName&&ee.nodeName.toLowerCase(),we==="select"||we==="input"&&ee.type==="file")var Ie=Cm;else if(yf(ee))if(wf)Ie=Tm;else{Ie=Om;var $e=km}else(we=ee.nodeName)&&we.toLowerCase()==="input"&&(ee.type==="checkbox"||ee.type==="radio")&&(Ie=Pm);if(Ie&&(Ie=Ie(t,A))){bf(re,Ie,l,ne);break e}$e&&$e(t,ee,A),t==="focusout"&&($e=ee._wrapperState)&&$e.controlled&&ee.type==="number"&&en(ee,"number",ee.value)}switch($e=A?Wi(A):window,t){case"focusin":(yf($e)||$e.contentEditable==="true")&&(Vi=$e,Cs=A,To=null);break;case"focusout":To=Cs=Vi=null;break;case"mousedown":ks=!0;break;case"contextmenu":case"mouseup":case"dragend":ks=!1,Tf(re,l,ne);break;case"selectionchange":if(Rm)break;case"keydown":case"keyup":Tf(re,l,ne)}var Ae;if(ws)e:{switch(t){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else Hi?mf(t,l)&&(Ve="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Ve="onCompositionStart");Ve&&(pf&&l.locale!=="ko"&&(Hi||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&Hi&&(Ae=sf()):(Jr=ne,gs="value"in Jr?Jr.value:Jr.textContent,Hi=!0)),$e=ja(A,Ve),0<$e.length&&(Ve=new ff(Ve,t,null,l,ne),re.push({event:Ve,listeners:$e}),Ae?Ve.data=Ae:(Ae=vf(l),Ae!==null&&(Ve.data=Ae)))),(Ae=bm?wm(t,l):Sm(t,l))&&(A=ja(A,"onBeforeInput"),0<A.length&&(ne=new ff("onBeforeInput","beforeinput",null,l,ne),re.push({event:ne,listeners:A}),ne.data=Ae))}Df(re,r)})}function Ro(t,r,l){return{instance:t,listener:r,currentTarget:l}}function ja(t,r){for(var l=r+"Capture",s=[];t!==null;){var d=t,g=d.stateNode;d.tag===5&&g!==null&&(d=g,g=Vt(t,l),g!=null&&s.unshift(Ro(t,g,d)),g=Vt(t,r),g!=null&&s.push(Ro(t,g,d))),t=t.return}return s}function Ui(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Ff(t,r,l,s,d){for(var g=r._reactName,y=[];l!==null&&l!==s;){var E=l,T=E.alternate,A=E.stateNode;if(T!==null&&T===s)break;E.tag===5&&A!==null&&(E=A,d?(T=Vt(l,g),T!=null&&y.unshift(Ro(l,T,E))):d||(T=Vt(l,g),T!=null&&y.push(Ro(l,T,E)))),l=l.return}y.length!==0&&t.push({event:r,listeners:y})}var $m=/\r\n?/g,Am=/\u0000|\uFFFD/g;function Mf(t){return(typeof t=="string"?t:""+t).replace($m,`
|
|
38
|
+
`).replace(Am,"")}function $a(t,r,l){if(r=Mf(r),Mf(t)!==r&&l)throw Error(e(425))}function Aa(){}var Rs=null,_s=null;function Ls(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var js=typeof setTimeout=="function"?setTimeout:void 0,Dm=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,zm=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(t){return Hf.resolve(null).then(t).catch(Fm)}:js;function Fm(t){setTimeout(function(){throw t})}function $s(t,r){var l=r,s=0;do{var d=l.nextSibling;if(t.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(s===0){t.removeChild(d),So(r);return}s--}else l!=="$"&&l!=="$?"&&l!=="$!"||s++;l=d}while(l);So(r)}function ti(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Vf(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(r===0)return t;r--}else l==="/$"&&r++}t=t.previousSibling}return null}var Ki=Math.random().toString(36).slice(2),kr="__reactFiber$"+Ki,_o="__reactProps$"+Ki,Mr="__reactContainer$"+Ki,As="__reactEvents$"+Ki,Mm="__reactListeners$"+Ki,Hm="__reactHandles$"+Ki;function bi(t){var r=t[kr];if(r)return r;for(var l=t.parentNode;l;){if(r=l[Mr]||l[kr]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(t=Vf(t);t!==null;){if(l=t[kr])return l;t=Vf(t)}return r}t=l,l=t.parentNode}return null}function Lo(t){return t=t[kr]||t[Mr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Wi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(e(33))}function Da(t){return t[_o]||null}var Ds=[],Gi=-1;function ni(t){return{current:t}}function St(t){0>Gi||(t.current=Ds[Gi],Ds[Gi]=null,Gi--)}function yt(t,r){Gi++,Ds[Gi]=t.current,t.current=r}var ri={},xn=ni(ri),Hn=ni(!1),wi=ri;function Yi(t,r){var l=t.type.contextTypes;if(!l)return ri;var s=t.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===r)return s.__reactInternalMemoizedMaskedChildContext;var d={},g;for(g in l)d[g]=r[g];return s&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=d),d}function Vn(t){return t=t.childContextTypes,t!=null}function za(){St(Hn),St(xn)}function Bf(t,r,l){if(xn.current!==ri)throw Error(e(168));yt(xn,r),yt(Hn,l)}function Uf(t,r,l){var s=t.stateNode;if(r=r.childContextTypes,typeof s.getChildContext!="function")return l;s=s.getChildContext();for(var d in s)if(!(d in r))throw Error(e(108,Me(t)||"Unknown",d));return B({},l,s)}function Fa(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ri,wi=xn.current,yt(xn,t),yt(Hn,Hn.current),!0}function Kf(t,r,l){var s=t.stateNode;if(!s)throw Error(e(169));l?(t=Uf(t,r,wi),s.__reactInternalMemoizedMergedChildContext=t,St(Hn),St(xn),yt(xn,t)):St(Hn),yt(Hn,l)}var Hr=null,Ma=!1,zs=!1;function Wf(t){Hr===null?Hr=[t]:Hr.push(t)}function Vm(t){Ma=!0,Wf(t)}function ii(){if(!zs&&Hr!==null){zs=!0;var t=0,r=at;try{var l=Hr;for(at=1;t<l.length;t++){var s=l[t];do s=s(!0);while(s!==null)}Hr=null,Ma=!1}catch(d){throw Hr!==null&&(Hr=Hr.slice(t+1)),fe(qe,ii),d}finally{at=r,zs=!1}}return null}var Qi=[],Xi=0,Ha=null,Va=0,ir=[],or=0,Si=null,Vr=1,Br="";function xi(t,r){Qi[Xi++]=Va,Qi[Xi++]=Ha,Ha=t,Va=r}function Gf(t,r,l){ir[or++]=Vr,ir[or++]=Br,ir[or++]=Si,Si=t;var s=Vr;t=Br;var d=32-mn(s)-1;s&=~(1<<d),l+=1;var g=32-mn(r)+d;if(30<g){var y=d-d%5;g=(s&(1<<y)-1).toString(32),s>>=y,d-=y,Vr=1<<32-mn(r)+d|l<<d|s,Br=g+t}else Vr=1<<g|l<<d|s,Br=t}function Fs(t){t.return!==null&&(xi(t,1),Gf(t,1,0))}function Ms(t){for(;t===Ha;)Ha=Qi[--Xi],Qi[Xi]=null,Va=Qi[--Xi],Qi[Xi]=null;for(;t===Si;)Si=ir[--or],ir[or]=null,Br=ir[--or],ir[or]=null,Vr=ir[--or],ir[or]=null}var Xn=null,qn=null,xt=!1,gr=null;function Yf(t,r){var l=ur(5,null,null,0);l.elementType="DELETED",l.stateNode=r,l.return=t,r=t.deletions,r===null?(t.deletions=[l],t.flags|=16):r.push(l)}function Qf(t,r){switch(t.tag){case 5:var l=t.type;return r=r.nodeType!==1||l.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,Xn=t,qn=ti(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,Xn=t,qn=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(l=Si!==null?{id:Vr,overflow:Br}:null,t.memoizedState={dehydrated:r,treeContext:l,retryLane:1073741824},l=ur(18,null,null,0),l.stateNode=r,l.return=t,t.child=l,Xn=t,qn=null,!0):!1;default:return!1}}function Hs(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Vs(t){if(xt){var r=qn;if(r){var l=r;if(!Qf(t,r)){if(Hs(t))throw Error(e(418));r=ti(l.nextSibling);var s=Xn;r&&Qf(t,r)?Yf(s,l):(t.flags=t.flags&-4097|2,xt=!1,Xn=t)}}else{if(Hs(t))throw Error(e(418));t.flags=t.flags&-4097|2,xt=!1,Xn=t}}}function Xf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Xn=t}function Ba(t){if(t!==Xn)return!1;if(!xt)return Xf(t),xt=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!Ls(t.type,t.memoizedProps)),r&&(r=qn)){if(Hs(t))throw qf(),Error(e(418));for(;r;)Yf(t,r),r=ti(r.nextSibling)}if(Xf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(e(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(r===0){qn=ti(t.nextSibling);break e}r--}else l!=="$"&&l!=="$!"&&l!=="$?"||r++}t=t.nextSibling}qn=null}}else qn=Xn?ti(t.stateNode.nextSibling):null;return!0}function qf(){for(var t=qn;t;)t=ti(t.nextSibling)}function qi(){qn=Xn=null,xt=!1}function Bs(t){gr===null?gr=[t]:gr.push(t)}var Bm=$.ReactCurrentBatchConfig;function jo(t,r,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(e(309));var s=l.stateNode}if(!s)throw Error(e(147,t));var d=s,g=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===g?r.ref:(r=function(y){var E=d.refs;y===null?delete E[g]:E[g]=y},r._stringRef=g,r)}if(typeof t!="string")throw Error(e(284));if(!l._owner)throw Error(e(290,t))}return t}function Ua(t,r){throw t=Object.prototype.toString.call(r),Error(e(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function Zf(t){var r=t._init;return r(t._payload)}function Jf(t){function r(R,I){if(t){var L=R.deletions;L===null?(R.deletions=[I],R.flags|=16):L.push(I)}}function l(R,I){if(!t)return null;for(;I!==null;)r(R,I),I=I.sibling;return null}function s(R,I){for(R=new Map;I!==null;)I.key!==null?R.set(I.key,I):R.set(I.index,I),I=I.sibling;return R}function d(R,I){return R=di(R,I),R.index=0,R.sibling=null,R}function g(R,I,L){return R.index=L,t?(L=R.alternate,L!==null?(L=L.index,L<I?(R.flags|=2,I):L):(R.flags|=2,I)):(R.flags|=1048576,I)}function y(R){return t&&R.alternate===null&&(R.flags|=2),R}function E(R,I,L,ue){return I===null||I.tag!==6?(I=ju(L,R.mode,ue),I.return=R,I):(I=d(I,L),I.return=R,I)}function T(R,I,L,ue){var Ie=L.type;return Ie===Q?ne(R,I,L.props.children,ue,L.key):I!==null&&(I.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===ve&&Zf(Ie)===I.type)?(ue=d(I,L.props),ue.ref=jo(R,I,L),ue.return=R,ue):(ue=gl(L.type,L.key,L.props,null,R.mode,ue),ue.ref=jo(R,I,L),ue.return=R,ue)}function A(R,I,L,ue){return I===null||I.tag!==4||I.stateNode.containerInfo!==L.containerInfo||I.stateNode.implementation!==L.implementation?(I=$u(L,R.mode,ue),I.return=R,I):(I=d(I,L.children||[]),I.return=R,I)}function ne(R,I,L,ue,Ie){return I===null||I.tag!==7?(I=Ni(L,R.mode,ue,Ie),I.return=R,I):(I=d(I,L),I.return=R,I)}function re(R,I,L){if(typeof I=="string"&&I!==""||typeof I=="number")return I=ju(""+I,R.mode,L),I.return=R,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Y:return L=gl(I.type,I.key,I.props,null,R.mode,L),L.ref=jo(R,null,I),L.return=R,L;case ie:return I=$u(I,R.mode,L),I.return=R,I;case ve:var ue=I._init;return re(R,ue(I._payload),L)}if($t(I)||J(I))return I=Ni(I,R.mode,L,null),I.return=R,I;Ua(R,I)}return null}function ee(R,I,L,ue){var Ie=I!==null?I.key:null;if(typeof L=="string"&&L!==""||typeof L=="number")return Ie!==null?null:E(R,I,""+L,ue);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case Y:return L.key===Ie?T(R,I,L,ue):null;case ie:return L.key===Ie?A(R,I,L,ue):null;case ve:return Ie=L._init,ee(R,I,Ie(L._payload),ue)}if($t(L)||J(L))return Ie!==null?null:ne(R,I,L,ue,null);Ua(R,L)}return null}function we(R,I,L,ue,Ie){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return R=R.get(L)||null,E(I,R,""+ue,Ie);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case Y:return R=R.get(ue.key===null?L:ue.key)||null,T(I,R,ue,Ie);case ie:return R=R.get(ue.key===null?L:ue.key)||null,A(I,R,ue,Ie);case ve:var $e=ue._init;return we(R,I,L,$e(ue._payload),Ie)}if($t(ue)||J(ue))return R=R.get(L)||null,ne(I,R,ue,Ie,null);Ua(I,ue)}return null}function Ce(R,I,L,ue){for(var Ie=null,$e=null,Ae=I,Ve=I=0,sn=null;Ae!==null&&Ve<L.length;Ve++){Ae.index>Ve?(sn=Ae,Ae=null):sn=Ae.sibling;var it=ee(R,Ae,L[Ve],ue);if(it===null){Ae===null&&(Ae=sn);break}t&&Ae&&it.alternate===null&&r(R,Ae),I=g(it,I,Ve),$e===null?Ie=it:$e.sibling=it,$e=it,Ae=sn}if(Ve===L.length)return l(R,Ae),xt&&xi(R,Ve),Ie;if(Ae===null){for(;Ve<L.length;Ve++)Ae=re(R,L[Ve],ue),Ae!==null&&(I=g(Ae,I,Ve),$e===null?Ie=Ae:$e.sibling=Ae,$e=Ae);return xt&&xi(R,Ve),Ie}for(Ae=s(R,Ae);Ve<L.length;Ve++)sn=we(Ae,R,Ve,L[Ve],ue),sn!==null&&(t&&sn.alternate!==null&&Ae.delete(sn.key===null?Ve:sn.key),I=g(sn,I,Ve),$e===null?Ie=sn:$e.sibling=sn,$e=sn);return t&&Ae.forEach(function(pi){return r(R,pi)}),xt&&xi(R,Ve),Ie}function Pe(R,I,L,ue){var Ie=J(L);if(typeof Ie!="function")throw Error(e(150));if(L=Ie.call(L),L==null)throw Error(e(151));for(var $e=Ie=null,Ae=I,Ve=I=0,sn=null,it=L.next();Ae!==null&&!it.done;Ve++,it=L.next()){Ae.index>Ve?(sn=Ae,Ae=null):sn=Ae.sibling;var pi=ee(R,Ae,it.value,ue);if(pi===null){Ae===null&&(Ae=sn);break}t&&Ae&&pi.alternate===null&&r(R,Ae),I=g(pi,I,Ve),$e===null?Ie=pi:$e.sibling=pi,$e=pi,Ae=sn}if(it.done)return l(R,Ae),xt&&xi(R,Ve),Ie;if(Ae===null){for(;!it.done;Ve++,it=L.next())it=re(R,it.value,ue),it!==null&&(I=g(it,I,Ve),$e===null?Ie=it:$e.sibling=it,$e=it);return xt&&xi(R,Ve),Ie}for(Ae=s(R,Ae);!it.done;Ve++,it=L.next())it=we(Ae,R,Ve,it.value,ue),it!==null&&(t&&it.alternate!==null&&Ae.delete(it.key===null?Ve:it.key),I=g(it,I,Ve),$e===null?Ie=it:$e.sibling=it,$e=it);return t&&Ae.forEach(function(xv){return r(R,xv)}),xt&&xi(R,Ve),Ie}function Ft(R,I,L,ue){if(typeof L=="object"&&L!==null&&L.type===Q&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case Y:e:{for(var Ie=L.key,$e=I;$e!==null;){if($e.key===Ie){if(Ie=L.type,Ie===Q){if($e.tag===7){l(R,$e.sibling),I=d($e,L.props.children),I.return=R,R=I;break e}}else if($e.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===ve&&Zf(Ie)===$e.type){l(R,$e.sibling),I=d($e,L.props),I.ref=jo(R,$e,L),I.return=R,R=I;break e}l(R,$e);break}else r(R,$e);$e=$e.sibling}L.type===Q?(I=Ni(L.props.children,R.mode,ue,L.key),I.return=R,R=I):(ue=gl(L.type,L.key,L.props,null,R.mode,ue),ue.ref=jo(R,I,L),ue.return=R,R=ue)}return y(R);case ie:e:{for($e=L.key;I!==null;){if(I.key===$e)if(I.tag===4&&I.stateNode.containerInfo===L.containerInfo&&I.stateNode.implementation===L.implementation){l(R,I.sibling),I=d(I,L.children||[]),I.return=R,R=I;break e}else{l(R,I);break}else r(R,I);I=I.sibling}I=$u(L,R.mode,ue),I.return=R,R=I}return y(R);case ve:return $e=L._init,Ft(R,I,$e(L._payload),ue)}if($t(L))return Ce(R,I,L,ue);if(J(L))return Pe(R,I,L,ue);Ua(R,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,I!==null&&I.tag===6?(l(R,I.sibling),I=d(I,L),I.return=R,R=I):(l(R,I),I=ju(L,R.mode,ue),I.return=R,R=I),y(R)):l(R,I)}return Ft}var Zi=Jf(!0),ed=Jf(!1),Ka=ni(null),Wa=null,Ji=null,Us=null;function Ks(){Us=Ji=Wa=null}function Ws(t){var r=Ka.current;St(Ka),t._currentValue=r}function Gs(t,r,l){for(;t!==null;){var s=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),t===l)break;t=t.return}}function eo(t,r){Wa=t,Us=Ji=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(Bn=!0),t.firstContext=null)}function ar(t){var r=t._currentValue;if(Us!==t)if(t={context:t,memoizedValue:r,next:null},Ji===null){if(Wa===null)throw Error(e(308));Ji=t,Wa.dependencies={lanes:0,firstContext:t}}else Ji=Ji.next=t;return r}var Ei=null;function Ys(t){Ei===null?Ei=[t]:Ei.push(t)}function td(t,r,l,s){var d=r.interleaved;return d===null?(l.next=l,Ys(r)):(l.next=d.next,d.next=l),r.interleaved=l,Ur(t,s)}function Ur(t,r){t.lanes|=r;var l=t.alternate;for(l!==null&&(l.lanes|=r),l=t,t=t.return;t!==null;)t.childLanes|=r,l=t.alternate,l!==null&&(l.childLanes|=r),l=t,t=t.return;return l.tag===3?l.stateNode:null}var oi=!1;function Qs(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nd(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Kr(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function ai(t,r,l){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(et&2)!==0){var d=s.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),s.pending=r,Ur(t,l)}return d=s.interleaved,d===null?(r.next=r,Ys(s)):(r.next=d.next,d.next=r),s.interleaved=r,Ur(t,l)}function Ga(t,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194240)!==0)){var s=r.lanes;s&=t.pendingLanes,l|=s,r.lanes=l,vo(t,l)}}function rd(t,r){var l=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var d=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var y={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};g===null?d=g=y:g=g.next=y,l=l.next}while(l!==null);g===null?d=g=r:g=g.next=r}else d=g=r;l={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:s.shared,effects:s.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=r:t.next=r,l.lastBaseUpdate=r}function Ya(t,r,l,s){var d=t.updateQueue;oi=!1;var g=d.firstBaseUpdate,y=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var T=E,A=T.next;T.next=null,y===null?g=A:y.next=A,y=T;var ne=t.alternate;ne!==null&&(ne=ne.updateQueue,E=ne.lastBaseUpdate,E!==y&&(E===null?ne.firstBaseUpdate=A:E.next=A,ne.lastBaseUpdate=T))}if(g!==null){var re=d.baseState;y=0,ne=A=T=null,E=g;do{var ee=E.lane,we=E.eventTime;if((s&ee)===ee){ne!==null&&(ne=ne.next={eventTime:we,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var Ce=t,Pe=E;switch(ee=r,we=l,Pe.tag){case 1:if(Ce=Pe.payload,typeof Ce=="function"){re=Ce.call(we,re,ee);break e}re=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Pe.payload,ee=typeof Ce=="function"?Ce.call(we,re,ee):Ce,ee==null)break e;re=B({},re,ee);break e;case 2:oi=!0}}E.callback!==null&&E.lane!==0&&(t.flags|=64,ee=d.effects,ee===null?d.effects=[E]:ee.push(E))}else we={eventTime:we,lane:ee,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ne===null?(A=ne=we,T=re):ne=ne.next=we,y|=ee;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;ee=E,E=ee.next,ee.next=null,d.lastBaseUpdate=ee,d.shared.pending=null}}while(!0);if(ne===null&&(T=re),d.baseState=T,d.firstBaseUpdate=A,d.lastBaseUpdate=ne,r=d.shared.interleaved,r!==null){d=r;do y|=d.lane,d=d.next;while(d!==r)}else g===null&&(d.shared.lanes=0);Oi|=y,t.lanes=y,t.memoizedState=re}}function id(t,r,l){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var s=t[r],d=s.callback;if(d!==null){if(s.callback=null,s=l,typeof d!="function")throw Error(e(191,d));d.call(s)}}}var $o={},Or=ni($o),Ao=ni($o),Do=ni($o);function Ci(t){if(t===$o)throw Error(e(174));return t}function Xs(t,r){switch(yt(Do,r),yt(Ao,t),yt(Or,$o),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Tn(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Tn(r,t)}St(Or),yt(Or,r)}function to(){St(Or),St(Ao),St(Do)}function od(t){Ci(Do.current);var r=Ci(Or.current),l=Tn(r,t.type);r!==l&&(yt(Ao,t),yt(Or,l))}function qs(t){Ao.current===t&&(St(Or),St(Ao))}var Ot=ni(0);function Qa(t){for(var r=t;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Zs=[];function Js(){for(var t=0;t<Zs.length;t++)Zs[t]._workInProgressVersionPrimary=null;Zs.length=0}var Xa=$.ReactCurrentDispatcher,eu=$.ReactCurrentBatchConfig,ki=0,Pt=null,qt=null,an=null,qa=!1,zo=!1,Fo=0,Um=0;function En(){throw Error(e(321))}function tu(t,r){if(r===null)return!1;for(var l=0;l<r.length&&l<t.length;l++)if(!pr(t[l],r[l]))return!1;return!0}function nu(t,r,l,s,d,g){if(ki=g,Pt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Xa.current=t===null||t.memoizedState===null?Ym:Qm,t=l(s,d),zo){g=0;do{if(zo=!1,Fo=0,25<=g)throw Error(e(301));g+=1,an=qt=null,r.updateQueue=null,Xa.current=Xm,t=l(s,d)}while(zo)}if(Xa.current=el,r=qt!==null&&qt.next!==null,ki=0,an=qt=Pt=null,qa=!1,r)throw Error(e(300));return t}function ru(){var t=Fo!==0;return Fo=0,t}function Pr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?Pt.memoizedState=an=t:an=an.next=t,an}function lr(){if(qt===null){var t=Pt.alternate;t=t!==null?t.memoizedState:null}else t=qt.next;var r=an===null?Pt.memoizedState:an.next;if(r!==null)an=r,qt=t;else{if(t===null)throw Error(e(310));qt=t,t={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},an===null?Pt.memoizedState=an=t:an=an.next=t}return an}function Mo(t,r){return typeof r=="function"?r(t):r}function iu(t){var r=lr(),l=r.queue;if(l===null)throw Error(e(311));l.lastRenderedReducer=t;var s=qt,d=s.baseQueue,g=l.pending;if(g!==null){if(d!==null){var y=d.next;d.next=g.next,g.next=y}s.baseQueue=d=g,l.pending=null}if(d!==null){g=d.next,s=s.baseState;var E=y=null,T=null,A=g;do{var ne=A.lane;if((ki&ne)===ne)T!==null&&(T=T.next={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),s=A.hasEagerState?A.eagerState:t(s,A.action);else{var re={lane:ne,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};T===null?(E=T=re,y=s):T=T.next=re,Pt.lanes|=ne,Oi|=ne}A=A.next}while(A!==null&&A!==g);T===null?y=s:T.next=E,pr(s,r.memoizedState)||(Bn=!0),r.memoizedState=s,r.baseState=y,r.baseQueue=T,l.lastRenderedState=s}if(t=l.interleaved,t!==null){d=t;do g=d.lane,Pt.lanes|=g,Oi|=g,d=d.next;while(d!==t)}else d===null&&(l.lanes=0);return[r.memoizedState,l.dispatch]}function ou(t){var r=lr(),l=r.queue;if(l===null)throw Error(e(311));l.lastRenderedReducer=t;var s=l.dispatch,d=l.pending,g=r.memoizedState;if(d!==null){l.pending=null;var y=d=d.next;do g=t(g,y.action),y=y.next;while(y!==d);pr(g,r.memoizedState)||(Bn=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),l.lastRenderedState=g}return[g,s]}function ad(){}function ld(t,r){var l=Pt,s=lr(),d=r(),g=!pr(s.memoizedState,d);if(g&&(s.memoizedState=d,Bn=!0),s=s.queue,au(cd.bind(null,l,s,t),[t]),s.getSnapshot!==r||g||an!==null&&an.memoizedState.tag&1){if(l.flags|=2048,Ho(9,ud.bind(null,l,s,d,r),void 0,null),ln===null)throw Error(e(349));(ki&30)!==0||sd(l,r,d)}return d}function sd(t,r,l){t.flags|=16384,t={getSnapshot:r,value:l},r=Pt.updateQueue,r===null?(r={lastEffect:null,stores:null},Pt.updateQueue=r,r.stores=[t]):(l=r.stores,l===null?r.stores=[t]:l.push(t))}function ud(t,r,l,s){r.value=l,r.getSnapshot=s,fd(r)&&dd(t)}function cd(t,r,l){return l(function(){fd(r)&&dd(t)})}function fd(t){var r=t.getSnapshot;t=t.value;try{var l=r();return!pr(t,l)}catch{return!0}}function dd(t){var r=Ur(t,1);r!==null&&yr(r,t,1,-1)}function pd(t){var r=Pr();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:t},r.queue=t,t=t.dispatch=Gm.bind(null,Pt,t),[r.memoizedState,t]}function Ho(t,r,l,s){return t={tag:t,create:r,destroy:l,deps:s,next:null},r=Pt.updateQueue,r===null?(r={lastEffect:null,stores:null},Pt.updateQueue=r,r.lastEffect=t.next=t):(l=r.lastEffect,l===null?r.lastEffect=t.next=t:(s=l.next,l.next=t,t.next=s,r.lastEffect=t)),t}function gd(){return lr().memoizedState}function Za(t,r,l,s){var d=Pr();Pt.flags|=t,d.memoizedState=Ho(1|r,l,void 0,s===void 0?null:s)}function Ja(t,r,l,s){var d=lr();s=s===void 0?null:s;var g=void 0;if(qt!==null){var y=qt.memoizedState;if(g=y.destroy,s!==null&&tu(s,y.deps)){d.memoizedState=Ho(r,l,g,s);return}}Pt.flags|=t,d.memoizedState=Ho(1|r,l,g,s)}function hd(t,r){return Za(8390656,8,t,r)}function au(t,r){return Ja(2048,8,t,r)}function md(t,r){return Ja(4,2,t,r)}function vd(t,r){return Ja(4,4,t,r)}function yd(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function bd(t,r,l){return l=l!=null?l.concat([t]):null,Ja(4,4,yd.bind(null,r,t),l)}function lu(){}function wd(t,r){var l=lr();r=r===void 0?null:r;var s=l.memoizedState;return s!==null&&r!==null&&tu(r,s[1])?s[0]:(l.memoizedState=[t,r],t)}function Sd(t,r){var l=lr();r=r===void 0?null:r;var s=l.memoizedState;return s!==null&&r!==null&&tu(r,s[1])?s[0]:(t=t(),l.memoizedState=[t,r],t)}function xd(t,r,l){return(ki&21)===0?(t.baseState&&(t.baseState=!1,Bn=!0),t.memoizedState=l):(pr(l,r)||(l=zr(),Pt.lanes|=l,Oi|=l,t.baseState=!0),r)}function Km(t,r){var l=at;at=l!==0&&4>l?l:4,t(!0);var s=eu.transition;eu.transition={};try{t(!1),r()}finally{at=l,eu.transition=s}}function Ed(){return lr().memoizedState}function Wm(t,r,l){var s=ci(t);if(l={lane:s,action:l,hasEagerState:!1,eagerState:null,next:null},Cd(t))kd(r,l);else if(l=td(t,r,l,s),l!==null){var d=An();yr(l,t,s,d),Od(l,r,s)}}function Gm(t,r,l){var s=ci(t),d={lane:s,action:l,hasEagerState:!1,eagerState:null,next:null};if(Cd(t))kd(r,d);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var y=r.lastRenderedState,E=g(y,l);if(d.hasEagerState=!0,d.eagerState=E,pr(E,y)){var T=r.interleaved;T===null?(d.next=d,Ys(r)):(d.next=T.next,T.next=d),r.interleaved=d;return}}catch{}finally{}l=td(t,r,d,s),l!==null&&(d=An(),yr(l,t,s,d),Od(l,r,s))}}function Cd(t){var r=t.alternate;return t===Pt||r!==null&&r===Pt}function kd(t,r){zo=qa=!0;var l=t.pending;l===null?r.next=r:(r.next=l.next,l.next=r),t.pending=r}function Od(t,r,l){if((l&4194240)!==0){var s=r.lanes;s&=t.pendingLanes,l|=s,r.lanes=l,vo(t,l)}}var el={readContext:ar,useCallback:En,useContext:En,useEffect:En,useImperativeHandle:En,useInsertionEffect:En,useLayoutEffect:En,useMemo:En,useReducer:En,useRef:En,useState:En,useDebugValue:En,useDeferredValue:En,useTransition:En,useMutableSource:En,useSyncExternalStore:En,useId:En,unstable_isNewReconciler:!1},Ym={readContext:ar,useCallback:function(t,r){return Pr().memoizedState=[t,r===void 0?null:r],t},useContext:ar,useEffect:hd,useImperativeHandle:function(t,r,l){return l=l!=null?l.concat([t]):null,Za(4194308,4,yd.bind(null,r,t),l)},useLayoutEffect:function(t,r){return Za(4194308,4,t,r)},useInsertionEffect:function(t,r){return Za(4,2,t,r)},useMemo:function(t,r){var l=Pr();return r=r===void 0?null:r,t=t(),l.memoizedState=[t,r],t},useReducer:function(t,r,l){var s=Pr();return r=l!==void 0?l(r):r,s.memoizedState=s.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},s.queue=t,t=t.dispatch=Wm.bind(null,Pt,t),[s.memoizedState,t]},useRef:function(t){var r=Pr();return t={current:t},r.memoizedState=t},useState:pd,useDebugValue:lu,useDeferredValue:function(t){return Pr().memoizedState=t},useTransition:function(){var t=pd(!1),r=t[0];return t=Km.bind(null,t[1]),Pr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,l){var s=Pt,d=Pr();if(xt){if(l===void 0)throw Error(e(407));l=l()}else{if(l=r(),ln===null)throw Error(e(349));(ki&30)!==0||sd(s,r,l)}d.memoizedState=l;var g={value:l,getSnapshot:r};return d.queue=g,hd(cd.bind(null,s,g,t),[t]),s.flags|=2048,Ho(9,ud.bind(null,s,g,l,r),void 0,null),l},useId:function(){var t=Pr(),r=ln.identifierPrefix;if(xt){var l=Br,s=Vr;l=(s&~(1<<32-mn(s)-1)).toString(32)+l,r=":"+r+"R"+l,l=Fo++,0<l&&(r+="H"+l.toString(32)),r+=":"}else l=Um++,r=":"+r+"r"+l.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},Qm={readContext:ar,useCallback:wd,useContext:ar,useEffect:au,useImperativeHandle:bd,useInsertionEffect:md,useLayoutEffect:vd,useMemo:Sd,useReducer:iu,useRef:gd,useState:function(){return iu(Mo)},useDebugValue:lu,useDeferredValue:function(t){var r=lr();return xd(r,qt.memoizedState,t)},useTransition:function(){var t=iu(Mo)[0],r=lr().memoizedState;return[t,r]},useMutableSource:ad,useSyncExternalStore:ld,useId:Ed,unstable_isNewReconciler:!1},Xm={readContext:ar,useCallback:wd,useContext:ar,useEffect:au,useImperativeHandle:bd,useInsertionEffect:md,useLayoutEffect:vd,useMemo:Sd,useReducer:ou,useRef:gd,useState:function(){return ou(Mo)},useDebugValue:lu,useDeferredValue:function(t){var r=lr();return qt===null?r.memoizedState=t:xd(r,qt.memoizedState,t)},useTransition:function(){var t=ou(Mo)[0],r=lr().memoizedState;return[t,r]},useMutableSource:ad,useSyncExternalStore:ld,useId:Ed,unstable_isNewReconciler:!1};function hr(t,r){if(t&&t.defaultProps){r=B({},r),t=t.defaultProps;for(var l in t)r[l]===void 0&&(r[l]=t[l]);return r}return r}function su(t,r,l,s){r=t.memoizedState,l=l(s,r),l=l==null?r:B({},r,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var tl={isMounted:function(t){return(t=t._reactInternals)?Ge(t)===t:!1},enqueueSetState:function(t,r,l){t=t._reactInternals;var s=An(),d=ci(t),g=Kr(s,d);g.payload=r,l!=null&&(g.callback=l),r=ai(t,g,d),r!==null&&(yr(r,t,d,s),Ga(r,t,d))},enqueueReplaceState:function(t,r,l){t=t._reactInternals;var s=An(),d=ci(t),g=Kr(s,d);g.tag=1,g.payload=r,l!=null&&(g.callback=l),r=ai(t,g,d),r!==null&&(yr(r,t,d,s),Ga(r,t,d))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var l=An(),s=ci(t),d=Kr(l,s);d.tag=2,r!=null&&(d.callback=r),r=ai(t,d,s),r!==null&&(yr(r,t,s,l),Ga(r,t,s))}};function Pd(t,r,l,s,d,g,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,g,y):r.prototype&&r.prototype.isPureReactComponent?!Po(l,s)||!Po(d,g):!0}function Td(t,r,l){var s=!1,d=ri,g=r.contextType;return typeof g=="object"&&g!==null?g=ar(g):(d=Vn(r)?wi:xn.current,s=r.contextTypes,g=(s=s!=null)?Yi(t,d):ri),r=new r(l,g),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=tl,t.stateNode=r,r._reactInternals=t,s&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=d,t.__reactInternalMemoizedMaskedChildContext=g),r}function Id(t,r,l,s){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,s),r.state!==t&&tl.enqueueReplaceState(r,r.state,null)}function uu(t,r,l,s){var d=t.stateNode;d.props=l,d.state=t.memoizedState,d.refs={},Qs(t);var g=r.contextType;typeof g=="object"&&g!==null?d.context=ar(g):(g=Vn(r)?wi:xn.current,d.context=Yi(t,g)),d.state=t.memoizedState,g=r.getDerivedStateFromProps,typeof g=="function"&&(su(t,r,g,l),d.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(r=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),r!==d.state&&tl.enqueueReplaceState(d,d.state,null),Ya(t,l,d,s),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308)}function no(t,r){try{var l="",s=r;do l+=Te(s),s=s.return;while(s);var d=l}catch(g){d=`
|
|
39
39
|
Error generating stack: `+g.message+`
|
|
40
|
-
`+g.stack}return{value:t,source:r,stack:d,digest:null}}function cu(t,r,l){return{value:t,source:null,stack:l??null,digest:r??null}}function fu(t,r){try{console.error(r.value)}catch(l){setTimeout(function(){throw l})}}var Xm=typeof WeakMap=="function"?WeakMap:Map;function Nd(t,r,l){l=Kr(-1,l),l.tag=3,l.payload={element:null};var s=r.value;return l.callback=function(){sl||(sl=!0,Ou=s),fu(t,r)},l}function Rd(t,r,l){l=Kr(-1,l),l.tag=3;var s=t.type.getDerivedStateFromError;if(typeof s=="function"){var d=r.value;l.payload=function(){return s(d)},l.callback=function(){fu(t,r)}}var g=t.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){fu(t,r),typeof s!="function"&&(si===null?si=new Set([this]):si.add(this));var y=r.stack;this.componentDidCatch(r.value,{componentStack:y!==null?y:""})}),l}function Ld(t,r,l){var s=t.pingCache;if(s===null){s=t.pingCache=new Xm;var d=new Set;s.set(r,d)}else d=s.get(r),d===void 0&&(d=new Set,s.set(r,d));d.has(l)||(d.add(l),t=cv.bind(null,t,r,l),r.then(t,t))}function _d(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function $d(t,r,l,s,d){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(r=Kr(-1,1),r.tag=2,ai(l,r,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=d,t)}var qm=j.ReactCurrentOwner,Bn=!1;function jn(t,r,l,s){r.child=t===null?ed(r,null,l,s):Zi(r,t.child,l,s)}function jd(t,r,l,s,d){l=l.render;var g=r.ref;return eo(r,d),s=nu(t,r,l,s,g,d),l=ru(),t!==null&&!Bn?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~d,Wr(t,r,d)):(xt&&l&&Fs(r),r.flags|=1,jn(t,r,s,d),r.child)}function Ad(t,r,l,s,d){if(t===null){var g=l.type;return typeof g=="function"&&!_u(g)&&g.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(r.tag=15,r.type=g,Dd(t,r,g,s,d)):(t=gl(l.type,null,s,r,r.mode,d),t.ref=r.ref,t.return=r,r.child=t)}if(g=t.child,(t.lanes&d)===0){var y=g.memoizedProps;if(l=l.compare,l=l!==null?l:Po,l(y,s)&&t.ref===r.ref)return Wr(t,r,d)}return r.flags|=1,t=di(g,s),t.ref=r.ref,t.return=r,r.child=t}function Dd(t,r,l,s,d){if(t!==null){var g=t.memoizedProps;if(Po(g,s)&&t.ref===r.ref)if(Bn=!1,r.pendingProps=s=g,(t.lanes&d)!==0)(t.flags&131072)!==0&&(Bn=!0);else return r.lanes=t.lanes,Wr(t,r,d)}return du(t,r,l,s,d)}function zd(t,r,l){var s=r.pendingProps,d=s.children,g=t!==null?t.memoizedState:null;if(s.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(io,Zn),Zn|=l;else{if((l&1073741824)===0)return t=g!==null?g.baseLanes|l:l,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,yt(io,Zn),Zn|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=g!==null?g.baseLanes:l,yt(io,Zn),Zn|=s}else g!==null?(s=g.baseLanes|l,r.memoizedState=null):s=l,yt(io,Zn),Zn|=s;return jn(t,r,d,l),r.child}function Fd(t,r){var l=r.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(r.flags|=512,r.flags|=2097152)}function du(t,r,l,s,d){var g=Vn(l)?bi:xn.current;return g=Yi(r,g),eo(r,d),l=nu(t,r,l,s,g,d),s=ru(),t!==null&&!Bn?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~d,Wr(t,r,d)):(xt&&s&&Fs(r),r.flags|=1,jn(t,r,l,d),r.child)}function Md(t,r,l,s,d){if(Vn(l)){var g=!0;Fa(r)}else g=!1;if(eo(r,d),r.stateNode===null)rl(t,r),Td(r,l,s),uu(r,l,s,d),s=!0;else if(t===null){var y=r.stateNode,E=r.memoizedProps;y.props=E;var T=y.context,A=l.contextType;typeof A=="object"&&A!==null?A=ar(A):(A=Vn(l)?bi:xn.current,A=Yi(r,A));var ne=l.getDerivedStateFromProps,re=typeof ne=="function"||typeof y.getSnapshotBeforeUpdate=="function";re||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(E!==s||T!==A)&&Id(r,y,s,A),oi=!1;var ee=r.memoizedState;y.state=ee,Ya(r,s,y,d),T=r.memoizedState,E!==s||ee!==T||Hn.current||oi?(typeof ne=="function"&&(su(r,l,ne,s),T=r.memoizedState),(E=oi||Pd(r,l,E,s,ee,T,A))?(re||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=T),y.props=s,y.state=T,y.context=A,s=E):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{y=r.stateNode,nd(t,r),E=r.memoizedProps,A=r.type===r.elementType?E:hr(r.type,E),y.props=A,re=r.pendingProps,ee=y.context,T=l.contextType,typeof T=="object"&&T!==null?T=ar(T):(T=Vn(l)?bi:xn.current,T=Yi(r,T));var we=l.getDerivedStateFromProps;(ne=typeof we=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(E!==re||ee!==T)&&Id(r,y,s,T),oi=!1,ee=r.memoizedState,y.state=ee,Ya(r,s,y,d);var Ce=r.memoizedState;E!==re||ee!==Ce||Hn.current||oi?(typeof we=="function"&&(su(r,l,we,s),Ce=r.memoizedState),(A=oi||Pd(r,l,A,s,ee,Ce,T)||!1)?(ne||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(s,Ce,T),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(s,Ce,T)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||E===t.memoizedProps&&ee===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&ee===t.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=Ce),y.props=s,y.state=Ce,y.context=T,s=A):(typeof y.componentDidUpdate!="function"||E===t.memoizedProps&&ee===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&ee===t.memoizedState||(r.flags|=1024),s=!1)}return pu(t,r,l,s,g,d)}function pu(t,r,l,s,d,g){Fd(t,r);var y=(r.flags&128)!==0;if(!s&&!y)return d&&Kf(r,l,!1),Wr(t,r,g);s=r.stateNode,qm.current=r;var E=y&&typeof l.getDerivedStateFromError!="function"?null:s.render();return r.flags|=1,t!==null&&y?(r.child=Zi(r,t.child,null,g),r.child=Zi(r,null,E,g)):jn(t,r,E,g),r.memoizedState=s.state,d&&Kf(r,l,!0),r.child}function Hd(t){var r=t.stateNode;r.pendingContext?Bf(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Bf(t,r.context,!1),Xs(t,r.containerInfo)}function Vd(t,r,l,s,d){return qi(),Bs(d),r.flags|=256,jn(t,r,l,s),r.child}var gu={dehydrated:null,treeContext:null,retryLane:0};function hu(t){return{baseLanes:t,cachePool:null,transitions:null}}function Bd(t,r,l){var s=r.pendingProps,d=Ot.current,g=!1,y=(r.flags&128)!==0,E;if((E=y)||(E=t!==null&&t.memoizedState===null?!1:(d&2)!==0),E?(g=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(d|=1),yt(Ot,d&1),t===null)return Vs(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(y=s.children,t=s.fallback,g?(s=r.mode,g=r.child,y={mode:"hidden",children:y},(s&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=y):g=hl(y,s,0,null),t=Ii(t,s,l,null),g.return=r,t.return=r,g.sibling=t,r.child=g,r.child.memoizedState=hu(l),r.memoizedState=gu,t):mu(r,y));if(d=t.memoizedState,d!==null&&(E=d.dehydrated,E!==null))return Zm(t,r,y,s,E,d,l);if(g){g=s.fallback,y=r.mode,d=t.child,E=d.sibling;var T={mode:"hidden",children:s.children};return(y&1)===0&&r.child!==d?(s=r.child,s.childLanes=0,s.pendingProps=T,r.deletions=null):(s=di(d,T),s.subtreeFlags=d.subtreeFlags&14680064),E!==null?g=di(E,g):(g=Ii(g,y,l,null),g.flags|=2),g.return=r,s.return=r,s.sibling=g,r.child=s,s=g,g=r.child,y=t.child.memoizedState,y=y===null?hu(l):{baseLanes:y.baseLanes|l,cachePool:null,transitions:y.transitions},g.memoizedState=y,g.childLanes=t.childLanes&~l,r.memoizedState=gu,s}return g=t.child,t=g.sibling,s=di(g,{mode:"visible",children:s.children}),(r.mode&1)===0&&(s.lanes=l),s.return=r,s.sibling=null,t!==null&&(l=r.deletions,l===null?(r.deletions=[t],r.flags|=16):l.push(t)),r.child=s,r.memoizedState=null,s}function mu(t,r){return r=hl({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function nl(t,r,l,s){return s!==null&&Bs(s),Zi(r,t.child,null,l),t=mu(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Zm(t,r,l,s,d,g,y){if(l)return r.flags&256?(r.flags&=-257,s=cu(Error(e(422))),nl(t,r,y,s)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(g=s.fallback,d=r.mode,s=hl({mode:"visible",children:s.children},d,0,null),g=Ii(g,d,y,null),g.flags|=2,s.return=r,g.return=r,s.sibling=g,r.child=s,(r.mode&1)!==0&&Zi(r,t.child,null,y),r.child.memoizedState=hu(y),r.memoizedState=gu,g);if((r.mode&1)===0)return nl(t,r,y,null);if(d.data==="$!"){if(s=d.nextSibling&&d.nextSibling.dataset,s)var E=s.dgst;return s=E,g=Error(e(419)),s=cu(g,s,void 0),nl(t,r,y,s)}if(E=(y&t.childLanes)!==0,Bn||E){if(s=ln,s!==null){switch(y&-y){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(s.suspendedLanes|y))!==0?0:d,d!==0&&d!==g.retryLane&&(g.retryLane=d,Ur(t,d),yr(s,t,d,-1))}return Lu(),s=cu(Error(e(421))),nl(t,r,y,s)}return d.data==="$?"?(r.flags|=128,r.child=t.child,r=fv.bind(null,t),d._reactRetry=r,null):(t=g.treeContext,qn=ti(d.nextSibling),Xn=r,xt=!0,gr=null,t!==null&&(ir[or++]=Vr,ir[or++]=Br,ir[or++]=wi,Vr=t.id,Br=t.overflow,wi=r),r=mu(r,s.children),r.flags|=4096,r)}function Ud(t,r,l){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r),Gs(t.return,r,l)}function vu(t,r,l,s,d){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:d}:(g.isBackwards=r,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=l,g.tailMode=d)}function Kd(t,r,l){var s=r.pendingProps,d=s.revealOrder,g=s.tail;if(jn(t,r,s.children,l),s=Ot.current,(s&2)!==0)s=s&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ud(t,l,r);else if(t.tag===19)Ud(t,l,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}s&=1}if(yt(Ot,s),(r.mode&1)===0)r.memoizedState=null;else switch(d){case"forwards":for(l=r.child,d=null;l!==null;)t=l.alternate,t!==null&&Qa(t)===null&&(d=l),l=l.sibling;l=d,l===null?(d=r.child,r.child=null):(d=l.sibling,l.sibling=null),vu(r,!1,d,l,g);break;case"backwards":for(l=null,d=r.child,r.child=null;d!==null;){if(t=d.alternate,t!==null&&Qa(t)===null){r.child=d;break}t=d.sibling,d.sibling=l,l=d,d=t}vu(r,!0,l,null,g);break;case"together":vu(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function rl(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function Wr(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),ki|=r.lanes,(l&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(e(153));if(r.child!==null){for(t=r.child,l=di(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=di(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function Jm(t,r,l){switch(r.tag){case 3:Hd(r),qi();break;case 5:od(r);break;case 1:Vn(r.type)&&Fa(r);break;case 4:Xs(r,r.stateNode.containerInfo);break;case 10:var s=r.type._context,d=r.memoizedProps.value;yt(Ka,s._currentValue),s._currentValue=d;break;case 13:if(s=r.memoizedState,s!==null)return s.dehydrated!==null?(yt(Ot,Ot.current&1),r.flags|=128,null):(l&r.child.childLanes)!==0?Bd(t,r,l):(yt(Ot,Ot.current&1),t=Wr(t,r,l),t!==null?t.sibling:null);yt(Ot,Ot.current&1);break;case 19:if(s=(l&r.childLanes)!==0,(t.flags&128)!==0){if(s)return Kd(t,r,l);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),yt(Ot,Ot.current),s)break;return null;case 22:case 23:return r.lanes=0,zd(t,r,l)}return Wr(t,r,l)}var Wd,yu,Gd,Yd;Wd=function(t,r){for(var l=r.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},yu=function(){},Gd=function(t,r,l,s){var d=t.memoizedProps;if(d!==s){t=r.stateNode,Ei(Or.current);var g=null;switch(l){case"input":d=rt(t,d),s=rt(t,s),g=[];break;case"select":d=B({},d,{value:void 0}),s=B({},s,{value:void 0}),g=[];break;case"textarea":d=ft(t,d),s=ft(t,s),g=[];break;default:typeof d.onClick!="function"&&typeof s.onClick=="function"&&(t.onclick=Aa)}Fe(l,s);var y;l=null;for(A in d)if(!s.hasOwnProperty(A)&&d.hasOwnProperty(A)&&d[A]!=null)if(A==="style"){var E=d[A];for(y in E)E.hasOwnProperty(y)&&(l||(l={}),l[y]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(a.hasOwnProperty(A)?g||(g=[]):(g=g||[]).push(A,null));for(A in s){var T=s[A];if(E=d!=null?d[A]:void 0,s.hasOwnProperty(A)&&T!==E&&(T!=null||E!=null))if(A==="style")if(E){for(y in E)!E.hasOwnProperty(y)||T&&T.hasOwnProperty(y)||(l||(l={}),l[y]="");for(y in T)T.hasOwnProperty(y)&&E[y]!==T[y]&&(l||(l={}),l[y]=T[y])}else l||(g||(g=[]),g.push(A,l)),l=T;else A==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,E=E?E.__html:void 0,T!=null&&E!==T&&(g=g||[]).push(A,T)):A==="children"?typeof T!="string"&&typeof T!="number"||(g=g||[]).push(A,""+T):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(a.hasOwnProperty(A)?(T!=null&&A==="onScroll"&&wt("scroll",t),g||E===T||(g=[])):(g=g||[]).push(A,T))}l&&(g=g||[]).push("style",l);var A=g;(r.updateQueue=A)&&(r.flags|=4)}},Yd=function(t,r,l,s){l!==s&&(r.flags|=4)};function Vo(t,r){if(!xt)switch(t.tailMode){case"hidden":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Cn(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,s=0;if(r)for(var d=t.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags&14680064,s|=d.flags&14680064,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=s,t.childLanes=l,r}function ev(t,r,l){var s=r.pendingProps;switch(Ms(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cn(r),null;case 1:return Vn(r.type)&&za(),Cn(r),null;case 3:return s=r.stateNode,to(),St(Hn),St(xn),Js(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(Ba(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,gr!==null&&(Iu(gr),gr=null))),yu(t,r),Cn(r),null;case 5:qs(r);var d=Ei(Do.current);if(l=r.type,t!==null&&r.stateNode!=null)Gd(t,r,l,s,d),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!s){if(r.stateNode===null)throw Error(e(166));return Cn(r),null}if(t=Ei(Or.current),Ba(r)){s=r.stateNode,l=r.type;var g=r.memoizedProps;switch(s[kr]=r,s[Lo]=g,t=(r.mode&1)!==0,l){case"dialog":wt("cancel",s),wt("close",s);break;case"iframe":case"object":case"embed":wt("load",s);break;case"video":case"audio":for(d=0;d<Io.length;d++)wt(Io[d],s);break;case"source":wt("error",s);break;case"img":case"image":case"link":wt("error",s),wt("load",s);break;case"details":wt("toggle",s);break;case"input":fn(s,g),wt("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!g.multiple},wt("invalid",s);break;case"textarea":Pn(s,g),wt("invalid",s)}Fe(l,g),d=null;for(var y in g)if(g.hasOwnProperty(y)){var E=g[y];y==="children"?typeof E=="string"?s.textContent!==E&&(g.suppressHydrationWarning!==!0&&ja(s.textContent,E,t),d=["children",E]):typeof E=="number"&&s.textContent!==""+E&&(g.suppressHydrationWarning!==!0&&ja(s.textContent,E,t),d=["children",""+E]):a.hasOwnProperty(y)&&E!=null&&y==="onScroll"&&wt("scroll",s)}switch(l){case"input":Ht(s),Jt(s,g,!0);break;case"textarea":Ht(s),dn(s);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(s.onclick=Aa)}s=d,r.updateQueue=s,s!==null&&(r.flags|=4)}else{y=d.nodeType===9?d:d.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Rt(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=y.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof s.is=="string"?t=y.createElement(l,{is:s.is}):(t=y.createElement(l),l==="select"&&(y=t,s.multiple?y.multiple=!0:s.size&&(y.size=s.size))):t=y.createElementNS(t,l),t[kr]=r,t[Lo]=s,Wd(t,r,!1,!1),r.stateNode=t;e:{switch(y=ae(l,s),l){case"dialog":wt("cancel",t),wt("close",t),d=s;break;case"iframe":case"object":case"embed":wt("load",t),d=s;break;case"video":case"audio":for(d=0;d<Io.length;d++)wt(Io[d],t);d=s;break;case"source":wt("error",t),d=s;break;case"img":case"image":case"link":wt("error",t),wt("load",t),d=s;break;case"details":wt("toggle",t),d=s;break;case"input":fn(t,s),d=rt(t,s),wt("invalid",t);break;case"option":d=s;break;case"select":t._wrapperState={wasMultiple:!!s.multiple},d=B({},s,{value:void 0}),wt("invalid",t);break;case"textarea":Pn(t,s),d=ft(t,s),wt("invalid",t);break;default:d=s}Fe(l,d),E=d;for(g in E)if(E.hasOwnProperty(g)){var T=E[g];g==="style"?Nn(t,T):g==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&Qt(t,T)):g==="children"?typeof T=="string"?(l!=="textarea"||T!=="")&&bt(t,T):typeof T=="number"&&bt(t,""+T):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(a.hasOwnProperty(g)?T!=null&&g==="onScroll"&&wt("scroll",t):T!=null&&$(t,g,T,y))}switch(l){case"input":Ht(t),Jt(t,s,!1);break;case"textarea":Ht(t),dn(t);break;case"option":s.value!=null&&t.setAttribute("value",""+Ue(s.value));break;case"select":t.multiple=!!s.multiple,g=s.value,g!=null?ht(t,!!s.multiple,g,!1):s.defaultValue!=null&&ht(t,!!s.multiple,s.defaultValue,!0);break;default:typeof d.onClick=="function"&&(t.onclick=Aa)}switch(l){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return Cn(r),null;case 6:if(t&&r.stateNode!=null)Yd(t,r,t.memoizedProps,s);else{if(typeof s!="string"&&r.stateNode===null)throw Error(e(166));if(l=Ei(Do.current),Ei(Or.current),Ba(r)){if(s=r.stateNode,l=r.memoizedProps,s[kr]=r,(g=s.nodeValue!==l)&&(t=Xn,t!==null))switch(t.tag){case 3:ja(s.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&ja(s.nodeValue,l,(t.mode&1)!==0)}g&&(r.flags|=4)}else s=(l.nodeType===9?l:l.ownerDocument).createTextNode(s),s[kr]=r,r.stateNode=s}return Cn(r),null;case 13:if(St(Ot),s=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(xt&&qn!==null&&(r.mode&1)!==0&&(r.flags&128)===0)qf(),qi(),r.flags|=98560,g=!1;else if(g=Ba(r),s!==null&&s.dehydrated!==null){if(t===null){if(!g)throw Error(e(318));if(g=r.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(e(317));g[kr]=r}else qi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Cn(r),g=!1}else gr!==null&&(Iu(gr),gr=null),g=!0;if(!g)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=l,r):(s=s!==null,s!==(t!==null&&t.memoizedState!==null)&&s&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Ot.current&1)!==0?Zt===0&&(Zt=3):Lu())),r.updateQueue!==null&&(r.flags|=4),Cn(r),null);case 4:return to(),yu(t,r),t===null&&No(r.stateNode.containerInfo),Cn(r),null;case 10:return Ws(r.type._context),Cn(r),null;case 17:return Vn(r.type)&&za(),Cn(r),null;case 19:if(St(Ot),g=r.memoizedState,g===null)return Cn(r),null;if(s=(r.flags&128)!==0,y=g.rendering,y===null)if(s)Vo(g,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(y=Qa(t),y!==null){for(r.flags|=128,Vo(g,!1),s=y.updateQueue,s!==null&&(r.updateQueue=s,r.flags|=4),r.subtreeFlags=0,s=l,l=r.child;l!==null;)g=l,t=s,g.flags&=14680066,y=g.alternate,y===null?(g.childLanes=0,g.lanes=t,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=y.childLanes,g.lanes=y.lanes,g.child=y.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=y.memoizedProps,g.memoizedState=y.memoizedState,g.updateQueue=y.updateQueue,g.type=y.type,t=y.dependencies,g.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return yt(Ot,Ot.current&1|2),r.child}t=t.sibling}g.tail!==null&&ge()>oo&&(r.flags|=128,s=!0,Vo(g,!1),r.lanes=4194304)}else{if(!s)if(t=Qa(y),t!==null){if(r.flags|=128,s=!0,l=t.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),Vo(g,!0),g.tail===null&&g.tailMode==="hidden"&&!y.alternate&&!xt)return Cn(r),null}else 2*ge()-g.renderingStartTime>oo&&l!==1073741824&&(r.flags|=128,s=!0,Vo(g,!1),r.lanes=4194304);g.isBackwards?(y.sibling=r.child,r.child=y):(l=g.last,l!==null?l.sibling=y:r.child=y,g.last=y)}return g.tail!==null?(r=g.tail,g.rendering=r,g.tail=r.sibling,g.renderingStartTime=ge(),r.sibling=null,l=Ot.current,yt(Ot,s?l&1|2:l&1),r):(Cn(r),null);case 22:case 23:return Ru(),s=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==s&&(r.flags|=8192),s&&(r.mode&1)!==0?(Zn&1073741824)!==0&&(Cn(r),r.subtreeFlags&6&&(r.flags|=8192)):Cn(r),null;case 24:return null;case 25:return null}throw Error(e(156,r.tag))}function tv(t,r){switch(Ms(r),r.tag){case 1:return Vn(r.type)&&za(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return to(),St(Hn),St(xn),Js(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return qs(r),null;case 13:if(St(Ot),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(e(340));qi()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return St(Ot),null;case 4:return to(),null;case 10:return Ws(r.type._context),null;case 22:case 23:return Ru(),null;case 24:return null;default:return null}}var il=!1,kn=!1,nv=typeof WeakSet=="function"?WeakSet:Set,xe=null;function ro(t,r){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(s){_t(t,r,s)}else l.current=null}function bu(t,r,l){try{l()}catch(s){_t(t,r,s)}}var Qd=!1;function rv(t,r){if(Rs=Ca,t=Pf(),Es(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var d=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var y=0,E=-1,T=-1,A=0,ne=0,re=t,ee=null;t:for(;;){for(var we;re!==l||d!==0&&re.nodeType!==3||(E=y+d),re!==g||s!==0&&re.nodeType!==3||(T=y+s),re.nodeType===3&&(y+=re.nodeValue.length),(we=re.firstChild)!==null;)ee=re,re=we;for(;;){if(re===t)break t;if(ee===l&&++A===d&&(E=y),ee===g&&++ne===s&&(T=y),(we=re.nextSibling)!==null)break;re=ee,ee=re.parentNode}re=we}l=E===-1||T===-1?null:{start:E,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ls={focusedElem:t,selectionRange:l},Ca=!1,xe=r;xe!==null;)if(r=xe,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,xe=t;else for(;xe!==null;){r=xe;try{var Ce=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Ce!==null){var Pe=Ce.memoizedProps,Ft=Ce.memoizedState,R=r.stateNode,I=R.getSnapshotBeforeUpdate(r.elementType===r.type?Pe:hr(r.type,Pe),Ft);R.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var _=r.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(e(163))}}catch(ue){_t(r,r.return,ue)}if(t=r.sibling,t!==null){t.return=r.return,xe=t;break}xe=r.return}return Ce=Qd,Qd=!1,Ce}function Bo(t,r,l){var s=r.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var d=s=s.next;do{if((d.tag&t)===t){var g=d.destroy;d.destroy=void 0,g!==void 0&&bu(r,l,g)}d=d.next}while(d!==s)}}function ol(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&t)===t){var s=l.create;l.destroy=s()}l=l.next}while(l!==r)}}function wu(t){var r=t.ref;if(r!==null){var l=t.stateNode;switch(t.tag){case 5:t=l;break;default:t=l}typeof r=="function"?r(t):r.current=t}}function Xd(t){var r=t.alternate;r!==null&&(t.alternate=null,Xd(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[kr],delete r[Lo],delete r[As],delete r[Fm],delete r[Mm])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function qd(t){return t.tag===5||t.tag===3||t.tag===4}function Zd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||qd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Su(t,r,l){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?l.nodeType===8?l.parentNode.insertBefore(t,r):l.insertBefore(t,r):(l.nodeType===8?(r=l.parentNode,r.insertBefore(t,l)):(r=l,r.appendChild(t)),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=Aa));else if(s!==4&&(t=t.child,t!==null))for(Su(t,r,l),t=t.sibling;t!==null;)Su(t,r,l),t=t.sibling}function xu(t,r,l){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?l.insertBefore(t,r):l.appendChild(t);else if(s!==4&&(t=t.child,t!==null))for(xu(t,r,l),t=t.sibling;t!==null;)xu(t,r,l),t=t.sibling}var vn=null,mr=!1;function li(t,r,l){for(l=l.child;l!==null;)Jd(t,r,l),l=l.sibling}function Jd(t,r,l){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(on,l)}catch{}switch(l.tag){case 5:kn||ro(l,r);case 6:var s=vn,d=mr;vn=null,li(t,r,l),vn=s,mr=d,vn!==null&&(mr?(t=vn,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):vn.removeChild(l.stateNode));break;case 18:vn!==null&&(mr?(t=vn,l=l.stateNode,t.nodeType===8?js(t.parentNode,l):t.nodeType===1&&js(t,l),So(t)):js(vn,l.stateNode));break;case 4:s=vn,d=mr,vn=l.stateNode.containerInfo,mr=!0,li(t,r,l),vn=s,mr=d;break;case 0:case 11:case 14:case 15:if(!kn&&(s=l.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){d=s=s.next;do{var g=d,y=g.destroy;g=g.tag,y!==void 0&&((g&2)!==0||(g&4)!==0)&&bu(l,r,y),d=d.next}while(d!==s)}li(t,r,l);break;case 1:if(!kn&&(ro(l,r),s=l.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=l.memoizedProps,s.state=l.memoizedState,s.componentWillUnmount()}catch(E){_t(l,r,E)}li(t,r,l);break;case 21:li(t,r,l);break;case 22:l.mode&1?(kn=(s=kn)||l.memoizedState!==null,li(t,r,l),kn=s):li(t,r,l);break;default:li(t,r,l)}}function ep(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new nv),r.forEach(function(s){var d=dv.bind(null,t,s);l.has(s)||(l.add(s),s.then(d,d))})}}function vr(t,r){var l=r.deletions;if(l!==null)for(var s=0;s<l.length;s++){var d=l[s];try{var g=t,y=r,E=y;e:for(;E!==null;){switch(E.tag){case 5:vn=E.stateNode,mr=!1;break e;case 3:vn=E.stateNode.containerInfo,mr=!0;break e;case 4:vn=E.stateNode.containerInfo,mr=!0;break e}E=E.return}if(vn===null)throw Error(e(160));Jd(g,y,d),vn=null,mr=!1;var T=d.alternate;T!==null&&(T.return=null),d.return=null}catch(A){_t(d,r,A)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)tp(r,t),r=r.sibling}function tp(t,r){var l=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(vr(r,t),Tr(t),s&4){try{Bo(3,t,t.return),ol(3,t)}catch(Pe){_t(t,t.return,Pe)}try{Bo(5,t,t.return)}catch(Pe){_t(t,t.return,Pe)}}break;case 1:vr(r,t),Tr(t),s&512&&l!==null&&ro(l,l.return);break;case 5:if(vr(r,t),Tr(t),s&512&&l!==null&&ro(l,l.return),t.flags&32){var d=t.stateNode;try{bt(d,"")}catch(Pe){_t(t,t.return,Pe)}}if(s&4&&(d=t.stateNode,d!=null)){var g=t.memoizedProps,y=l!==null?l.memoizedProps:g,E=t.type,T=t.updateQueue;if(t.updateQueue=null,T!==null)try{E==="input"&&g.type==="radio"&&g.name!=null&&Et(d,g),ae(E,y);var A=ae(E,g);for(y=0;y<T.length;y+=2){var ne=T[y],re=T[y+1];ne==="style"?Nn(d,re):ne==="dangerouslySetInnerHTML"?Qt(d,re):ne==="children"?bt(d,re):$(d,ne,re,A)}switch(E){case"input":It(d,g);break;case"textarea":Nt(d,g);break;case"select":var ee=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!g.multiple;var we=g.value;we!=null?ht(d,!!g.multiple,we,!1):ee!==!!g.multiple&&(g.defaultValue!=null?ht(d,!!g.multiple,g.defaultValue,!0):ht(d,!!g.multiple,g.multiple?[]:"",!1))}d[Lo]=g}catch(Pe){_t(t,t.return,Pe)}}break;case 6:if(vr(r,t),Tr(t),s&4){if(t.stateNode===null)throw Error(e(162));d=t.stateNode,g=t.memoizedProps;try{d.nodeValue=g}catch(Pe){_t(t,t.return,Pe)}}break;case 3:if(vr(r,t),Tr(t),s&4&&l!==null&&l.memoizedState.isDehydrated)try{So(r.containerInfo)}catch(Pe){_t(t,t.return,Pe)}break;case 4:vr(r,t),Tr(t);break;case 13:vr(r,t),Tr(t),d=t.child,d.flags&8192&&(g=d.memoizedState!==null,d.stateNode.isHidden=g,!g||d.alternate!==null&&d.alternate.memoizedState!==null||(ku=ge())),s&4&&ep(t);break;case 22:if(ne=l!==null&&l.memoizedState!==null,t.mode&1?(kn=(A=kn)||ne,vr(r,t),kn=A):vr(r,t),Tr(t),s&8192){if(A=t.memoizedState!==null,(t.stateNode.isHidden=A)&&!ne&&(t.mode&1)!==0)for(xe=t,ne=t.child;ne!==null;){for(re=xe=ne;xe!==null;){switch(ee=xe,we=ee.child,ee.tag){case 0:case 11:case 14:case 15:Bo(4,ee,ee.return);break;case 1:ro(ee,ee.return);var Ce=ee.stateNode;if(typeof Ce.componentWillUnmount=="function"){s=ee,l=ee.return;try{r=s,Ce.props=r.memoizedProps,Ce.state=r.memoizedState,Ce.componentWillUnmount()}catch(Pe){_t(s,l,Pe)}}break;case 5:ro(ee,ee.return);break;case 22:if(ee.memoizedState!==null){ip(re);continue}}we!==null?(we.return=ee,xe=we):ip(re)}ne=ne.sibling}e:for(ne=null,re=t;;){if(re.tag===5){if(ne===null){ne=re;try{d=re.stateNode,A?(g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(E=re.stateNode,T=re.memoizedProps.style,y=T!=null&&T.hasOwnProperty("display")?T.display:null,E.style.display=Ct("display",y))}catch(Pe){_t(t,t.return,Pe)}}}else if(re.tag===6){if(ne===null)try{re.stateNode.nodeValue=A?"":re.memoizedProps}catch(Pe){_t(t,t.return,Pe)}}else if((re.tag!==22&&re.tag!==23||re.memoizedState===null||re===t)&&re.child!==null){re.child.return=re,re=re.child;continue}if(re===t)break e;for(;re.sibling===null;){if(re.return===null||re.return===t)break e;ne===re&&(ne=null),re=re.return}ne===re&&(ne=null),re.sibling.return=re.return,re=re.sibling}}break;case 19:vr(r,t),Tr(t),s&4&&ep(t);break;case 21:break;default:vr(r,t),Tr(t)}}function Tr(t){var r=t.flags;if(r&2){try{e:{for(var l=t.return;l!==null;){if(qd(l)){var s=l;break e}l=l.return}throw Error(e(160))}switch(s.tag){case 5:var d=s.stateNode;s.flags&32&&(bt(d,""),s.flags&=-33);var g=Zd(t);xu(t,g,d);break;case 3:case 4:var y=s.stateNode.containerInfo,E=Zd(t);Su(t,E,y);break;default:throw Error(e(161))}}catch(T){_t(t,t.return,T)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function iv(t,r,l){xe=t,np(t)}function np(t,r,l){for(var s=(t.mode&1)!==0;xe!==null;){var d=xe,g=d.child;if(d.tag===22&&s){var y=d.memoizedState!==null||il;if(!y){var E=d.alternate,T=E!==null&&E.memoizedState!==null||kn;E=il;var A=kn;if(il=y,(kn=T)&&!A)for(xe=d;xe!==null;)y=xe,T=y.child,y.tag===22&&y.memoizedState!==null?op(d):T!==null?(T.return=y,xe=T):op(d);for(;g!==null;)xe=g,np(g),g=g.sibling;xe=d,il=E,kn=A}rp(t)}else(d.subtreeFlags&8772)!==0&&g!==null?(g.return=d,xe=g):rp(t)}}function rp(t){for(;xe!==null;){var r=xe;if((r.flags&8772)!==0){var l=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:kn||ol(5,r);break;case 1:var s=r.stateNode;if(r.flags&4&&!kn)if(l===null)s.componentDidMount();else{var d=r.elementType===r.type?l.memoizedProps:hr(r.type,l.memoizedProps);s.componentDidUpdate(d,l.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var g=r.updateQueue;g!==null&&id(r,g,s);break;case 3:var y=r.updateQueue;if(y!==null){if(l=null,r.child!==null)switch(r.child.tag){case 5:l=r.child.stateNode;break;case 1:l=r.child.stateNode}id(r,y,l)}break;case 5:var E=r.stateNode;if(l===null&&r.flags&4){l=E;var T=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&l.focus();break;case"img":T.src&&(l.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var A=r.alternate;if(A!==null){var ne=A.memoizedState;if(ne!==null){var re=ne.dehydrated;re!==null&&So(re)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(e(163))}kn||r.flags&512&&wu(r)}catch(ee){_t(r,r.return,ee)}}if(r===t){xe=null;break}if(l=r.sibling,l!==null){l.return=r.return,xe=l;break}xe=r.return}}function ip(t){for(;xe!==null;){var r=xe;if(r===t){xe=null;break}var l=r.sibling;if(l!==null){l.return=r.return,xe=l;break}xe=r.return}}function op(t){for(;xe!==null;){var r=xe;try{switch(r.tag){case 0:case 11:case 15:var l=r.return;try{ol(4,r)}catch(T){_t(r,l,T)}break;case 1:var s=r.stateNode;if(typeof s.componentDidMount=="function"){var d=r.return;try{s.componentDidMount()}catch(T){_t(r,d,T)}}var g=r.return;try{wu(r)}catch(T){_t(r,g,T)}break;case 5:var y=r.return;try{wu(r)}catch(T){_t(r,y,T)}}}catch(T){_t(r,r.return,T)}if(r===t){xe=null;break}var E=r.sibling;if(E!==null){E.return=r.return,xe=E;break}xe=r.return}}var ov=Math.ceil,al=j.ReactCurrentDispatcher,Eu=j.ReactCurrentOwner,sr=j.ReactCurrentBatchConfig,et=0,ln=null,Ut=null,yn=0,Zn=0,io=ni(0),Zt=0,Uo=null,ki=0,ll=0,Cu=0,Ko=null,Un=null,ku=0,oo=1/0,Gr=null,sl=!1,Ou=null,si=null,ul=!1,ui=null,cl=0,Wo=0,Pu=null,fl=-1,dl=0;function An(){return(et&6)!==0?ge():fl!==-1?fl:fl=ge()}function ci(t){return(t.mode&1)===0?1:(et&2)!==0&&yn!==0?yn&-yn:Vm.transition!==null?(dl===0&&(dl=zr()),dl):(t=at,t!==0||(t=window.event,t=t===void 0?16:lf(t.type)),t)}function yr(t,r,l,s){if(50<Wo)throw Wo=0,Pu=null,Error(e(185));_n(t,l,s),((et&2)===0||t!==ln)&&(t===ln&&((et&2)===0&&(ll|=l),Zt===4&&fi(t,yn)),Kn(t,s),l===1&&et===0&&(r.mode&1)===0&&(oo=ge()+500,Ma&&ii()))}function Kn(t,r){var l=t.callbackNode;Sn(t,r);var s=Dt(t,t===ln?yn:0);if(s===0)l!==null&&pe(l),t.callbackNode=null,t.callbackPriority=0;else if(r=s&-s,t.callbackPriority!==r){if(l!=null&&pe(l),r===1)t.tag===0?Hm(lp.bind(null,t)):Wf(lp.bind(null,t)),Dm(function(){(et&6)===0&&ii()}),l=null;else{switch(Sa(s)){case 1:l=qe;break;case 4:l=Xe;break;case 16:l=mt;break;case 536870912:l=kt;break;default:l=mt}l=hp(l,ap.bind(null,t))}t.callbackPriority=r,t.callbackNode=l}}function ap(t,r){if(fl=-1,dl=0,(et&6)!==0)throw Error(e(327));var l=t.callbackNode;if(ao()&&t.callbackNode!==l)return null;var s=Dt(t,t===ln?yn:0);if(s===0)return null;if((s&30)!==0||(s&t.expiredLanes)!==0||r)r=pl(t,s);else{r=s;var d=et;et|=2;var g=up();(ln!==t||yn!==r)&&(Gr=null,oo=ge()+500,Pi(t,r));do try{sv();break}catch(E){sp(t,E)}while(!0);Ks(),al.current=g,et=d,Ut!==null?r=0:(ln=null,yn=0,r=Zt)}if(r!==0){if(r===2&&(d=nr(t),d!==0&&(s=d,r=Tu(t,d))),r===1)throw l=Uo,Pi(t,0),fi(t,s),Kn(t,ge()),l;if(r===6)fi(t,s);else{if(d=t.current.alternate,(s&30)===0&&!av(d)&&(r=pl(t,s),r===2&&(g=nr(t),g!==0&&(s=g,r=Tu(t,g))),r===1))throw l=Uo,Pi(t,0),fi(t,s),Kn(t,ge()),l;switch(t.finishedWork=d,t.finishedLanes=s,r){case 0:case 1:throw Error(e(345));case 2:Ti(t,Un,Gr);break;case 3:if(fi(t,s),(s&130023424)===s&&(r=ku+500-ge(),10<r)){if(Dt(t,0)!==0)break;if(d=t.suspendedLanes,(d&s)!==s){An(),t.pingedLanes|=t.suspendedLanes&d;break}t.timeoutHandle=$s(Ti.bind(null,t,Un,Gr),r);break}Ti(t,Un,Gr);break;case 4:if(fi(t,s),(s&4194240)===s)break;for(r=t.eventTimes,d=-1;0<s;){var y=31-mn(s);g=1<<y,y=r[y],y>d&&(d=y),s&=~g}if(s=d,s=ge()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*ov(s/1960))-s,10<s){t.timeoutHandle=$s(Ti.bind(null,t,Un,Gr),s);break}Ti(t,Un,Gr);break;case 5:Ti(t,Un,Gr);break;default:throw Error(e(329))}}}return Kn(t,ge()),t.callbackNode===l?ap.bind(null,t):null}function Tu(t,r){var l=Ko;return t.current.memoizedState.isDehydrated&&(Pi(t,r).flags|=256),t=pl(t,r),t!==2&&(r=Un,Un=l,r!==null&&Iu(r)),t}function Iu(t){Un===null?Un=t:Un.push.apply(Un,t)}function av(t){for(var r=t;;){if(r.flags&16384){var l=r.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var s=0;s<l.length;s++){var d=l[s],g=d.getSnapshot;d=d.value;try{if(!pr(g(),d))return!1}catch{return!1}}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function fi(t,r){for(r&=~Cu,r&=~ll,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var l=31-mn(r),s=1<<l;t[l]=-1,r&=~s}}function lp(t){if((et&6)!==0)throw Error(e(327));ao();var r=Dt(t,0);if((r&1)===0)return Kn(t,ge()),null;var l=pl(t,r);if(t.tag!==0&&l===2){var s=nr(t);s!==0&&(r=s,l=Tu(t,s))}if(l===1)throw l=Uo,Pi(t,0),fi(t,r),Kn(t,ge()),l;if(l===6)throw Error(e(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,Ti(t,Un,Gr),Kn(t,ge()),null}function Nu(t,r){var l=et;et|=1;try{return t(r)}finally{et=l,et===0&&(oo=ge()+500,Ma&&ii())}}function Oi(t){ui!==null&&ui.tag===0&&(et&6)===0&&ao();var r=et;et|=1;var l=sr.transition,s=at;try{if(sr.transition=null,at=1,t)return t()}finally{at=s,sr.transition=l,et=r,(et&6)===0&&ii()}}function Ru(){Zn=io.current,St(io)}function Pi(t,r){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,Am(l)),Ut!==null)for(l=Ut.return;l!==null;){var s=l;switch(Ms(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&za();break;case 3:to(),St(Hn),St(xn),Js();break;case 5:qs(s);break;case 4:to();break;case 13:St(Ot);break;case 19:St(Ot);break;case 10:Ws(s.type._context);break;case 22:case 23:Ru()}l=l.return}if(ln=t,Ut=t=di(t.current,null),yn=Zn=r,Zt=0,Uo=null,Cu=ll=ki=0,Un=Ko=null,xi!==null){for(r=0;r<xi.length;r++)if(l=xi[r],s=l.interleaved,s!==null){l.interleaved=null;var d=s.next,g=l.pending;if(g!==null){var y=g.next;g.next=d,s.next=y}l.pending=s}xi=null}return t}function sp(t,r){do{var l=Ut;try{if(Ks(),Xa.current=el,qa){for(var s=Pt.memoizedState;s!==null;){var d=s.queue;d!==null&&(d.pending=null),s=s.next}qa=!1}if(Ci=0,an=qt=Pt=null,zo=!1,Fo=0,Eu.current=null,l===null||l.return===null){Zt=1,Uo=r,Ut=null;break}e:{var g=t,y=l.return,E=l,T=r;if(r=yn,E.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var A=T,ne=E,re=ne.tag;if((ne.mode&1)===0&&(re===0||re===11||re===15)){var ee=ne.alternate;ee?(ne.updateQueue=ee.updateQueue,ne.memoizedState=ee.memoizedState,ne.lanes=ee.lanes):(ne.updateQueue=null,ne.memoizedState=null)}var we=_d(y);if(we!==null){we.flags&=-257,$d(we,y,E,g,r),we.mode&1&&Ld(g,A,r),r=we,T=A;var Ce=r.updateQueue;if(Ce===null){var Pe=new Set;Pe.add(T),r.updateQueue=Pe}else Ce.add(T);break e}else{if((r&1)===0){Ld(g,A,r),Lu();break e}T=Error(e(426))}}else if(xt&&E.mode&1){var Ft=_d(y);if(Ft!==null){(Ft.flags&65536)===0&&(Ft.flags|=256),$d(Ft,y,E,g,r),Bs(no(T,E));break e}}g=T=no(T,E),Zt!==4&&(Zt=2),Ko===null?Ko=[g]:Ko.push(g),g=y;do{switch(g.tag){case 3:g.flags|=65536,r&=-r,g.lanes|=r;var R=Nd(g,T,r);rd(g,R);break e;case 1:E=T;var I=g.type,_=g.stateNode;if((g.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(si===null||!si.has(_)))){g.flags|=65536,r&=-r,g.lanes|=r;var ue=Rd(g,E,r);rd(g,ue);break e}}g=g.return}while(g!==null)}fp(l)}catch(Ie){r=Ie,Ut===l&&l!==null&&(Ut=l=l.return);continue}break}while(!0)}function up(){var t=al.current;return al.current=el,t===null?el:t}function Lu(){(Zt===0||Zt===3||Zt===2)&&(Zt=4),ln===null||(ki&268435455)===0&&(ll&268435455)===0||fi(ln,yn)}function pl(t,r){var l=et;et|=2;var s=up();(ln!==t||yn!==r)&&(Gr=null,Pi(t,r));do try{lv();break}catch(d){sp(t,d)}while(!0);if(Ks(),et=l,al.current=s,Ut!==null)throw Error(e(261));return ln=null,yn=0,Zt}function lv(){for(;Ut!==null;)cp(Ut)}function sv(){for(;Ut!==null&&!be();)cp(Ut)}function cp(t){var r=gp(t.alternate,t,Zn);t.memoizedProps=t.pendingProps,r===null?fp(t):Ut=r,Eu.current=null}function fp(t){var r=t;do{var l=r.alternate;if(t=r.return,(r.flags&32768)===0){if(l=ev(l,r,Zn),l!==null){Ut=l;return}}else{if(l=tv(l,r),l!==null){l.flags&=32767,Ut=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Zt=6,Ut=null;return}}if(r=r.sibling,r!==null){Ut=r;return}Ut=r=t}while(r!==null);Zt===0&&(Zt=5)}function Ti(t,r,l){var s=at,d=sr.transition;try{sr.transition=null,at=1,uv(t,r,l,s)}finally{sr.transition=d,at=s}return null}function uv(t,r,l,s){do ao();while(ui!==null);if((et&6)!==0)throw Error(e(327));l=t.finishedWork;var d=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(e(177));t.callbackNode=null,t.callbackPriority=0;var g=l.lanes|l.childLanes;if(Fr(t,g),t===ln&&(Ut=ln=null,yn=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||ul||(ul=!0,hp(mt,function(){return ao(),null})),g=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||g){g=sr.transition,sr.transition=null;var y=at;at=1;var E=et;et|=4,Eu.current=null,rv(t,l),tp(l,t),Im(Ls),Ca=!!Rs,Ls=Rs=null,t.current=l,iv(l),Se(),et=E,at=y,sr.transition=g}else t.current=l;if(ul&&(ul=!1,ui=t,cl=d),g=t.pendingLanes,g===0&&(si=null),hi(l.stateNode),Kn(t,ge()),r!==null)for(s=t.onRecoverableError,l=0;l<r.length;l++)d=r[l],s(d.value,{componentStack:d.stack,digest:d.digest});if(sl)throw sl=!1,t=Ou,Ou=null,t;return(cl&1)!==0&&t.tag!==0&&ao(),g=t.pendingLanes,(g&1)!==0?t===Pu?Wo++:(Wo=0,Pu=t):Wo=0,ii(),null}function ao(){if(ui!==null){var t=Sa(cl),r=sr.transition,l=at;try{if(sr.transition=null,at=16>t?16:t,ui===null)var s=!1;else{if(t=ui,ui=null,cl=0,(et&6)!==0)throw Error(e(331));var d=et;for(et|=4,xe=t.current;xe!==null;){var g=xe,y=g.child;if((xe.flags&16)!==0){var E=g.deletions;if(E!==null){for(var T=0;T<E.length;T++){var A=E[T];for(xe=A;xe!==null;){var ne=xe;switch(ne.tag){case 0:case 11:case 15:Bo(8,ne,g)}var re=ne.child;if(re!==null)re.return=ne,xe=re;else for(;xe!==null;){ne=xe;var ee=ne.sibling,we=ne.return;if(Xd(ne),ne===A){xe=null;break}if(ee!==null){ee.return=we,xe=ee;break}xe=we}}}var Ce=g.alternate;if(Ce!==null){var Pe=Ce.child;if(Pe!==null){Ce.child=null;do{var Ft=Pe.sibling;Pe.sibling=null,Pe=Ft}while(Pe!==null)}}xe=g}}if((g.subtreeFlags&2064)!==0&&y!==null)y.return=g,xe=y;else e:for(;xe!==null;){if(g=xe,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Bo(9,g,g.return)}var R=g.sibling;if(R!==null){R.return=g.return,xe=R;break e}xe=g.return}}var I=t.current;for(xe=I;xe!==null;){y=xe;var _=y.child;if((y.subtreeFlags&2064)!==0&&_!==null)_.return=y,xe=_;else e:for(y=I;xe!==null;){if(E=xe,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:ol(9,E)}}catch(Ie){_t(E,E.return,Ie)}if(E===y){xe=null;break e}var ue=E.sibling;if(ue!==null){ue.return=E.return,xe=ue;break e}xe=E.return}}if(et=d,ii(),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(on,t)}catch{}s=!0}return s}finally{at=l,sr.transition=r}}return!1}function dp(t,r,l){r=no(l,r),r=Nd(t,r,1),t=ai(t,r,1),r=An(),t!==null&&(_n(t,1,r),Kn(t,r))}function _t(t,r,l){if(t.tag===3)dp(t,t,l);else for(;r!==null;){if(r.tag===3){dp(r,t,l);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(si===null||!si.has(s))){t=no(l,t),t=Rd(r,t,1),r=ai(r,t,1),t=An(),r!==null&&(_n(r,1,t),Kn(r,t));break}}r=r.return}}function cv(t,r,l){var s=t.pingCache;s!==null&&s.delete(r),r=An(),t.pingedLanes|=t.suspendedLanes&l,ln===t&&(yn&l)===l&&(Zt===4||Zt===3&&(yn&130023424)===yn&&500>ge()-ku?Pi(t,0):Cu|=l),Kn(t,r)}function pp(t,r){r===0&&((t.mode&1)===0?r=1:(r=Cr,Cr<<=1,(Cr&130023424)===0&&(Cr=4194304)));var l=An();t=Ur(t,r),t!==null&&(_n(t,r,l),Kn(t,l))}function fv(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),pp(t,l)}function dv(t,r){var l=0;switch(t.tag){case 13:var s=t.stateNode,d=t.memoizedState;d!==null&&(l=d.retryLane);break;case 19:s=t.stateNode;break;default:throw Error(e(314))}s!==null&&s.delete(r),pp(t,l)}var gp;gp=function(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps||Hn.current)Bn=!0;else{if((t.lanes&l)===0&&(r.flags&128)===0)return Bn=!1,Jm(t,r,l);Bn=(t.flags&131072)!==0}else Bn=!1,xt&&(r.flags&1048576)!==0&&Gf(r,Va,r.index);switch(r.lanes=0,r.tag){case 2:var s=r.type;rl(t,r),t=r.pendingProps;var d=Yi(r,xn.current);eo(r,l),d=nu(null,r,s,t,d,l);var g=ru();return r.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Vn(s)?(g=!0,Fa(r)):g=!1,r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Qs(r),d.updater=tl,r.stateNode=d,d._reactInternals=r,uu(r,s,t,l),r=pu(null,r,s,!0,g,l)):(r.tag=0,xt&&g&&Fs(r),jn(null,r,d,l),r=r.child),r;case 16:s=r.elementType;e:{switch(rl(t,r),t=r.pendingProps,d=s._init,s=d(s._payload),r.type=s,d=r.tag=gv(s),t=hr(s,t),d){case 0:r=du(null,r,s,t,l);break e;case 1:r=Md(null,r,s,t,l);break e;case 11:r=jd(null,r,s,t,l);break e;case 14:r=Ad(null,r,s,hr(s.type,t),l);break e}throw Error(e(306,s,""))}return r;case 0:return s=r.type,d=r.pendingProps,d=r.elementType===s?d:hr(s,d),du(t,r,s,d,l);case 1:return s=r.type,d=r.pendingProps,d=r.elementType===s?d:hr(s,d),Md(t,r,s,d,l);case 3:e:{if(Hd(r),t===null)throw Error(e(387));s=r.pendingProps,g=r.memoizedState,d=g.element,nd(t,r),Ya(r,s,null,l);var y=r.memoizedState;if(s=y.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){d=no(Error(e(423)),r),r=Vd(t,r,s,l,d);break e}else if(s!==d){d=no(Error(e(424)),r),r=Vd(t,r,s,l,d);break e}else for(qn=ti(r.stateNode.containerInfo.firstChild),Xn=r,xt=!0,gr=null,l=ed(r,null,s,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(qi(),s===d){r=Wr(t,r,l);break e}jn(t,r,s,l)}r=r.child}return r;case 5:return od(r),t===null&&Vs(r),s=r.type,d=r.pendingProps,g=t!==null?t.memoizedProps:null,y=d.children,_s(s,d)?y=null:g!==null&&_s(s,g)&&(r.flags|=32),Fd(t,r),jn(t,r,y,l),r.child;case 6:return t===null&&Vs(r),null;case 13:return Bd(t,r,l);case 4:return Xs(r,r.stateNode.containerInfo),s=r.pendingProps,t===null?r.child=Zi(r,null,s,l):jn(t,r,s,l),r.child;case 11:return s=r.type,d=r.pendingProps,d=r.elementType===s?d:hr(s,d),jd(t,r,s,d,l);case 7:return jn(t,r,r.pendingProps,l),r.child;case 8:return jn(t,r,r.pendingProps.children,l),r.child;case 12:return jn(t,r,r.pendingProps.children,l),r.child;case 10:e:{if(s=r.type._context,d=r.pendingProps,g=r.memoizedProps,y=d.value,yt(Ka,s._currentValue),s._currentValue=y,g!==null)if(pr(g.value,y)){if(g.children===d.children&&!Hn.current){r=Wr(t,r,l);break e}}else for(g=r.child,g!==null&&(g.return=r);g!==null;){var E=g.dependencies;if(E!==null){y=g.child;for(var T=E.firstContext;T!==null;){if(T.context===s){if(g.tag===1){T=Kr(-1,l&-l),T.tag=2;var A=g.updateQueue;if(A!==null){A=A.shared;var ne=A.pending;ne===null?T.next=T:(T.next=ne.next,ne.next=T),A.pending=T}}g.lanes|=l,T=g.alternate,T!==null&&(T.lanes|=l),Gs(g.return,l,r),E.lanes|=l;break}T=T.next}}else if(g.tag===10)y=g.type===r.type?null:g.child;else if(g.tag===18){if(y=g.return,y===null)throw Error(e(341));y.lanes|=l,E=y.alternate,E!==null&&(E.lanes|=l),Gs(y,l,r),y=g.sibling}else y=g.child;if(y!==null)y.return=g;else for(y=g;y!==null;){if(y===r){y=null;break}if(g=y.sibling,g!==null){g.return=y.return,y=g;break}y=y.return}g=y}jn(t,r,d.children,l),r=r.child}return r;case 9:return d=r.type,s=r.pendingProps.children,eo(r,l),d=ar(d),s=s(d),r.flags|=1,jn(t,r,s,l),r.child;case 14:return s=r.type,d=hr(s,r.pendingProps),d=hr(s.type,d),Ad(t,r,s,d,l);case 15:return Dd(t,r,r.type,r.pendingProps,l);case 17:return s=r.type,d=r.pendingProps,d=r.elementType===s?d:hr(s,d),rl(t,r),r.tag=1,Vn(s)?(t=!0,Fa(r)):t=!1,eo(r,l),Td(r,s,d),uu(r,s,d,l),pu(null,r,s,!0,t,l);case 19:return Kd(t,r,l);case 22:return zd(t,r,l)}throw Error(e(156,r.tag))};function hp(t,r){return fe(t,r)}function pv(t,r,l,s){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ur(t,r,l,s){return new pv(t,r,l,s)}function _u(t){return t=t.prototype,!(!t||!t.isReactComponent)}function gv(t){if(typeof t=="function")return _u(t)?1:0;if(t!=null){if(t=t.$$typeof,t===se)return 11;if(t===Q)return 14}return 2}function di(t,r){var l=t.alternate;return l===null?(l=ur(t.tag,r,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=r,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,r=t.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function gl(t,r,l,s,d,g){var y=2;if(s=t,typeof t=="function")_u(t)&&(y=1);else if(typeof t=="string")y=5;else e:switch(t){case Y:return Ii(l.children,d,g,r);case D:y=8,d|=8;break;case F:return t=ur(12,l,r,d|2),t.elementType=F,t.lanes=g,t;case oe:return t=ur(13,l,r,d),t.elementType=oe,t.lanes=g,t;case ye:return t=ur(19,l,r,d),t.elementType=ye,t.lanes=g,t;case ke:return hl(l,d,g,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case q:y=10;break e;case K:y=9;break e;case se:y=11;break e;case Q:y=14;break e;case ve:y=16,s=null;break e}throw Error(e(130,t==null?t:typeof t,""))}return r=ur(y,l,r,d),r.elementType=t,r.type=s,r.lanes=g,r}function Ii(t,r,l,s){return t=ur(7,t,s,r),t.lanes=l,t}function hl(t,r,l,s){return t=ur(22,t,s,r),t.elementType=ke,t.lanes=l,t.stateNode={isHidden:!1},t}function $u(t,r,l){return t=ur(6,t,null,r),t.lanes=l,t}function ju(t,r,l){return r=ur(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function hv(t,r,l,s,d){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ln(0),this.expirationTimes=Ln(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ln(0),this.identifierPrefix=s,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Au(t,r,l,s,d,g,y,E,T){return t=new hv(t,r,l,E,T),r===1?(r=1,g===!0&&(r|=8)):r=0,g=ur(3,null,null,r),t.current=g,g.stateNode=t,g.memoizedState={element:s,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qs(g),t}function mv(t,r,l){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:s==null?null:""+s,children:t,containerInfo:r,implementation:l}}function mp(t){if(!t)return ri;t=t._reactInternals;e:{if(Ge(t)!==t||t.tag!==1)throw Error(e(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(Vn(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(e(171))}if(t.tag===1){var l=t.type;if(Vn(l))return Uf(t,l,r)}return r}function vp(t,r,l,s,d,g,y,E,T){return t=Au(l,s,!0,t,d,g,y,E,T),t.context=mp(null),l=t.current,s=An(),d=ci(l),g=Kr(s,d),g.callback=r??null,ai(l,g,d),t.current.lanes=d,_n(t,d,s),Kn(t,s),t}function ml(t,r,l,s){var d=r.current,g=An(),y=ci(d);return l=mp(l),r.context===null?r.context=l:r.pendingContext=l,r=Kr(g,y),r.payload={element:t},s=s===void 0?null:s,s!==null&&(r.callback=s),t=ai(d,r,y),t!==null&&(yr(t,d,y,g),Ga(t,d,y)),y}function vl(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function yp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function Du(t,r){yp(t,r),(t=t.alternate)&&yp(t,r)}function vv(){return null}var bp=typeof reportError=="function"?reportError:function(t){console.error(t)};function zu(t){this._internalRoot=t}yl.prototype.render=zu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(e(409));ml(t,r,null,null)},yl.prototype.unmount=zu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Oi(function(){ml(null,t,null,null)}),r[Mr]=null}};function yl(t){this._internalRoot=t}yl.prototype.unstable_scheduleHydration=function(t){if(t){var r=Z();t={blockedOn:null,target:t,priority:r};for(var l=0;l<Zr.length&&r!==0&&r<Zr[l].priority;l++);Zr.splice(l,0,t),l===0&&of(t)}};function Fu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function bl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function wp(){}function yv(t,r,l,s,d){if(d){if(typeof s=="function"){var g=s;s=function(){var A=vl(y);g.call(A)}}var y=vp(r,s,t,0,null,!1,!1,"",wp);return t._reactRootContainer=y,t[Mr]=y.current,No(t.nodeType===8?t.parentNode:t),Oi(),y}for(;d=t.lastChild;)t.removeChild(d);if(typeof s=="function"){var E=s;s=function(){var A=vl(T);E.call(A)}}var T=Au(t,0,!1,null,null,!1,!1,"",wp);return t._reactRootContainer=T,t[Mr]=T.current,No(t.nodeType===8?t.parentNode:t),Oi(function(){ml(r,T,l,s)}),T}function wl(t,r,l,s,d){var g=l._reactRootContainer;if(g){var y=g;if(typeof d=="function"){var E=d;d=function(){var T=vl(y);E.call(T)}}ml(r,y,t,d)}else y=yv(l,r,t,d,s);return vl(y)}xa=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var l=vt(r.pendingLanes);l!==0&&(vo(r,l|1),Kn(r,ge()),(et&6)===0&&(oo=ge()+500,ii()))}break;case 13:Oi(function(){var s=Ur(t,1);if(s!==null){var d=An();yr(s,t,1,d)}}),Du(t,1)}},le=function(t){if(t.tag===13){var r=Ur(t,134217728);if(r!==null){var l=An();yr(r,t,134217728,l)}Du(t,134217728)}},S=function(t){if(t.tag===13){var r=ci(t),l=Ur(t,r);if(l!==null){var s=An();yr(l,t,r,s)}Du(t,r)}},Z=function(){return at},Re=function(t,r){var l=at;try{return at=t,r()}finally{at=l}},Oe=function(t,r,l){switch(r){case"input":if(It(t,l),r=l.name,l.type==="radio"&&r!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<l.length;r++){var s=l[r];if(s!==t&&s.form===t.form){var d=Da(s);if(!d)throw Error(e(90));$t(s),It(s,d)}}}break;case"textarea":Nt(t,l);break;case"select":r=l.value,r!=null&&ht(t,!!l.multiple,r,!1)}},Ze=Nu,Je=Oi;var bv={usingClientEntryPoint:!1,Events:[_o,Wi,Da,Le,He,Nu]},Go={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wv={bundleType:Go.bundleType,version:Go.version,rendererPackageName:Go.rendererPackageName,rendererConfig:Go.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Ee(t),t===null?null:t.stateNode},findFiberByHostInstance:Go.findFiberByHostInstance||vv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sl.isDisabled&&Sl.supportsFiber)try{on=Sl.inject(wv),Bt=Sl}catch{}}return Wn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bv,Wn.createPortal=function(t,r){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fu(r))throw Error(e(200));return mv(t,r,null,l)},Wn.createRoot=function(t,r){if(!Fu(t))throw Error(e(299));var l=!1,s="",d=bp;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(d=r.onRecoverableError)),r=Au(t,1,!1,null,null,l,!1,s,d),t[Mr]=r.current,No(t.nodeType===8?t.parentNode:t),new zu(r)},Wn.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(e(188)):(t=Object.keys(t).join(","),Error(e(268,t)));return t=Ee(r),t=t===null?null:t.stateNode,t},Wn.flushSync=function(t){return Oi(t)},Wn.hydrate=function(t,r,l){if(!bl(r))throw Error(e(200));return wl(null,t,r,!0,l)},Wn.hydrateRoot=function(t,r,l){if(!Fu(t))throw Error(e(405));var s=l!=null&&l.hydratedSources||null,d=!1,g="",y=bp;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(y=l.onRecoverableError)),r=vp(r,null,t,1,l??null,d,!1,g,y),t[Mr]=r.current,No(t),s)for(t=0;t<s.length;t++)l=s[t],d=l._getVersion,d=d(l._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[l,d]:r.mutableSourceEagerHydrationData.push(l,d);return new yl(r)},Wn.render=function(t,r,l){if(!bl(r))throw Error(e(200));return wl(null,t,r,!1,l)},Wn.unmountComponentAtNode=function(t){if(!bl(t))throw Error(e(40));return t._reactRootContainer?(Oi(function(){wl(null,null,t,!1,function(){t._reactRootContainer=null,t[Mr]=null})}),!0):!1},Wn.unstable_batchedUpdates=Nu,Wn.unstable_renderSubtreeIntoContainer=function(t,r,l,s){if(!bl(l))throw Error(e(200));if(t==null||t._reactInternals===void 0)throw Error(e(38));return wl(t,r,l,!1,s)},Wn.version="18.3.1-next-f1338f8080-20240426",Wn}var Tp;function zg(){if(Tp)return Vu.exports;Tp=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(n){console.error(n)}}return o(),Vu.exports=Iv(),Vu.exports}var Ip;function Nv(){if(Ip)return xl;Ip=1;var o=zg();return xl.createRoot=o.createRoot,xl.hydrateRoot=o.hydrateRoot,xl}var Rv=Nv();const Lv=Hc(Rv);var _v={};function $v(o){if(Array.isArray(o))return o}function jv(o,n){var e=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(e!=null){var i,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(o)).next,n!==0)for(;!(p=(i=u.call(e)).done)&&(f.push(i.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function ec(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}function Fg(o,n){if(o){if(typeof o=="string")return ec(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ec(o,n)}}function Av(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dl(
|
|
42
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hl(
|
|
43
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,c=!1,f;return{s:function(){e=e.call(o)},n:function(){var h=e.next();return u=h.done,h},e:function(h){c=!0,f=h},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(c)throw f}}}}function Vv(o,n){if(o){if(typeof o=="string")return Np(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Np(o,n)}}function Np(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}var H=function(){function o(){Bc(this,o)}return Uc(o,null,[{key:"innerWidth",value:function(e){if(e){var i=e.offsetWidth,a=getComputedStyle(e);return i=i+(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)),i}return 0}},{key:"width",value:function(e){if(e){var i=e.offsetWidth,a=getComputedStyle(e);return i=i-(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)),i}return 0}},{key:"getBrowserLanguage",value:function(){return navigator.userLanguage||navigator.languages&&navigator.languages.length&&navigator.languages[0]||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"en"}},{key:"getWindowScrollTop",value:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},{key:"getOuterWidth",value:function(e,i){if(e){var a=e.getBoundingClientRect().width||e.offsetWidth;if(i){var u=getComputedStyle(e);a=a+(parseFloat(u.marginLeft)+parseFloat(u.marginRight))}return a}return 0}},{key:"getOuterHeight",value:function(e,i){if(e){var a=e.getBoundingClientRect().height||e.offsetHeight;if(i){var u=getComputedStyle(e);a=a+(parseFloat(u.marginTop)+parseFloat(u.marginBottom))}return a}return 0}},{key:"getClientHeight",value:function(e,i){if(e){var a=e.clientHeight;if(i){var u=getComputedStyle(e);a=a+(parseFloat(u.marginTop)+parseFloat(u.marginBottom))}return a}return 0}},{key:"getClientWidth",value:function(e,i){if(e){var a=e.clientWidth;if(i){var u=getComputedStyle(e);a=a+(parseFloat(u.marginLeft)+parseFloat(u.marginRight))}return a}return 0}},{key:"getViewport",value:function(){var e=window,i=document,a=i.documentElement,u=i.getElementsByTagName("body")[0],c=e.innerWidth||a.clientWidth||u.clientWidth,f=e.innerHeight||a.clientHeight||u.clientHeight;return{width:c,height:f}}},{key:"getOffset",value:function(e){if(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(e){if(e)for(var i=e.parentNode.childNodes,a=0,u=0;u<i.length;u++){if(i[u]===e)return a;i[u].nodeType===1&&a++}return-1}},{key:"addMultipleClasses",value:function(e,i){if(e&&i)if(e.classList)for(var a=i.split(" "),u=0;u<a.length;u++)e.classList.add(a[u]);else for(var c=i.split(" "),f=0;f<c.length;f++)e.className=e.className+(" "+c[f])}},{key:"removeMultipleClasses",value:function(e,i){if(e&&i)if(e.classList)for(var a=i.split(" "),u=0;u<a.length;u++)e.classList.remove(a[u]);else for(var c=i.split(" "),f=0;f<c.length;f++)e.className=e.className.replace(new RegExp("(^|\\b)"+c[f].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(e,i){e&&i&&(e.classList?e.classList.add(i):e.className=e.className+(" "+i))}},{key:"removeClass",value:function(e,i){e&&i&&(e.classList?e.classList.remove(i):e.className=e.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(e,i){return e?e.classList?e.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(e.className):!1}},{key:"addStyles",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e&&Object.entries(i).forEach(function(a){var u=Dl(a,2),c=u[0],f=u[1];return e.style[c]=f})}},{key:"find",value:function(e,i){return e?Array.from(e.querySelectorAll(i)):[]}},{key:"findSingle",value:function(e,i){return e?e.querySelector(i):null}},{key:"setAttributes",value:function(e){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e){var u=function(f,p){var h,m,b=e!=null&&(h=e.$attrs)!==null&&h!==void 0&&h[f]?[e==null||(m=e.$attrs)===null||m===void 0?void 0:m[f]]:[];return[p].flat().reduce(function(w,x){if(x!=null){var k=cn(x);if(k==="string"||k==="number")w.push(x);else if(k==="object"){var C=Array.isArray(x)?u(f,x):Object.entries(x).map(function(O){var L=Dl(O,2),N=L[0],$=L[1];return f==="style"&&($||$===0)?"".concat(N.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat($):$?N:void 0});w=C.length?w.concat(C.filter(function(O){return!!O})):w}}return w},b)};Object.entries(a).forEach(function(c){var f=Dl(c,2),p=f[0],h=f[1];if(h!=null){var m=p.match(/^on(.+)/);m?e.addEventListener(m[1].toLowerCase(),h):p==="p-bind"?i.setAttributes(e,h):(h=p==="class"?Hl(new Set(u("class",h))).join(" ").trim():p==="style"?u("style",h).join(";").trim():h,(e.$attrs=e.$attrs||{})&&(e.$attrs[p]=h),e.setAttribute(p,h))}})}}},{key:"getAttribute",value:function(e,i){if(e){var a=e.getAttribute(i);return isNaN(a)?a==="true"||a==="false"?a==="true":a:+a}}},{key:"isAttributeEquals",value:function(e,i,a){return e?this.getAttribute(e,i)===a:!1}},{key:"isAttributeNotEquals",value:function(e,i,a){return!this.isAttributeEquals(e,i,a)}},{key:"getHeight",value:function(e){if(e){var i=e.offsetHeight,a=getComputedStyle(e);return i=i-(parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)+parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth)),i}return 0}},{key:"getWidth",value:function(e){if(e){var i=e.offsetWidth,a=getComputedStyle(e);return i=i-(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)+parseFloat(a.borderLeftWidth)+parseFloat(a.borderRightWidth)),i}return 0}},{key:"alignOverlay",value:function(e,i,a){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;e&&i&&(a==="self"?this.relativePosition(e,i):(u&&(e.style.minWidth=o.getOuterWidth(i)+"px"),this.absolutePosition(e,i)))}},{key:"absolutePosition",value:function(e,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left";if(e&&i){var u=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),c=u.height,f=u.width,p=i.offsetHeight,h=i.offsetWidth,m=i.getBoundingClientRect(),b=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),x=this.getViewport(),k,C;m.top+p+c>x.height?(k=m.top+b-c,k<0&&(k=b),e.style.transformOrigin="bottom"):(k=p+m.top+b,e.style.transformOrigin="top");var O=m.left,L=a==="left"?0:f-h;O+h+f>x.width?C=Math.max(0,O+w+h-f):C=O-L+w,e.style.top=k+"px",e.style.left=C+"px"}}},{key:"relativePosition",value:function(e,i){if(e&&i){var a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),u=i.offsetHeight,c=i.getBoundingClientRect(),f=this.getViewport(),p,h;c.top+u+a.height>f.height?(p=-1*a.height,c.top+p<0&&(p=-1*c.top),e.style.transformOrigin="bottom"):(p=u,e.style.transformOrigin="top"),a.width>f.width?h=c.left*-1:c.left+a.width>f.width?h=(c.left+a.width-f.width)*-1:h=0,e.style.top=p+"px",e.style.left=h+"px"}}},{key:"flipfitCollision",value:function(e,i){var a=this,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left top",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"left bottom",f=arguments.length>4?arguments[4]:void 0;if(e&&i){var p=i.getBoundingClientRect(),h=this.getViewport(),m=u.split(" "),b=c.split(" "),w=function(L,N){return N?+L.substring(L.search(/(\+|-)/g))||0:L.substring(0,L.search(/(\+|-)/g))||L},x={my:{x:w(m[0]),y:w(m[1]||m[0]),offsetX:w(m[0],!0),offsetY:w(m[1]||m[0],!0)},at:{x:w(b[0]),y:w(b[1]||b[0]),offsetX:w(b[0],!0),offsetY:w(b[1]||b[0],!0)}},k={left:function(){var L=x.my.offsetX+x.at.offsetX;return L+p.left+(x.my.x==="left"?0:-1*(x.my.x==="center"?a.getOuterWidth(e)/2:a.getOuterWidth(e)))},top:function(){var L=x.my.offsetY+x.at.offsetY;return L+p.top+(x.my.y==="top"?0:-1*(x.my.y==="center"?a.getOuterHeight(e)/2:a.getOuterHeight(e)))}},C={count:{x:0,y:0},left:function(){var L=k.left(),N=o.getWindowScrollLeft();e.style.left=L+N+"px",this.count.x===2?(e.style.left=N+"px",this.count.x=0):L<0&&(this.count.x++,x.my.x="left",x.at.x="right",x.my.offsetX*=-1,x.at.offsetX*=-1,this.right())},right:function(){var L=k.left()+o.getOuterWidth(i),N=o.getWindowScrollLeft();e.style.left=L+N+"px",this.count.x===2?(e.style.left=h.width-o.getOuterWidth(e)+N+"px",this.count.x=0):L+o.getOuterWidth(e)>h.width&&(this.count.x++,x.my.x="right",x.at.x="left",x.my.offsetX*=-1,x.at.offsetX*=-1,this.left())},top:function(){var L=k.top(),N=o.getWindowScrollTop();e.style.top=L+N+"px",this.count.y===2?(e.style.left=N+"px",this.count.y=0):L<0&&(this.count.y++,x.my.y="top",x.at.y="bottom",x.my.offsetY*=-1,x.at.offsetY*=-1,this.bottom())},bottom:function(){var L=k.top()+o.getOuterHeight(i),N=o.getWindowScrollTop();e.style.top=L+N+"px",this.count.y===2?(e.style.left=h.height-o.getOuterHeight(e)+N+"px",this.count.y=0):L+o.getOuterHeight(i)>h.height&&(this.count.y++,x.my.y="bottom",x.at.y="top",x.my.offsetY*=-1,x.at.offsetY*=-1,this.top())},center:function(L){if(L==="y"){var N=k.top()+o.getOuterHeight(i)/2;e.style.top=N+o.getWindowScrollTop()+"px",N<0?this.bottom():N+o.getOuterHeight(i)>h.height&&this.top()}else{var $=k.left()+o.getOuterWidth(i)/2;e.style.left=$+o.getWindowScrollLeft()+"px",$<0?this.left():$+o.getOuterWidth(e)>h.width&&this.right()}}};C[x.at.x]("x"),C[x.at.y]("y"),this.isFunction(f)&&f(x)}}},{key:"findCollisionPosition",value:function(e){if(e){var i=e==="top"||e==="bottom",a=e==="left"?"right":"left",u=e==="top"?"bottom":"top";return i?{axis:"y",my:"center ".concat(u),at:"center ".concat(e)}:{axis:"x",my:"".concat(a," center"),at:"".concat(e," center")}}}},{key:"getParents",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.parentNode===null?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}},{key:"getScrollableParents",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=[];if(e){var u=this.getParents(e),c=/(auto|scroll)/,f=function(j){var G=j?getComputedStyle(j):null;return G&&(c.test(G.getPropertyValue("overflow"))||c.test(G.getPropertyValue("overflow-x"))||c.test(G.getPropertyValue("overflow-y")))},p=function(j){i&&a.push(j.nodeName==="BODY"||j.nodeName==="HTML"||j.nodeType===9?window:j)},h=Ku(u),m;try{for(h.s();!(m=h.n()).done;){var b,w=m.value,x=w.nodeType===1&&((b=w.dataset)===null||b===void 0?void 0:b.scrollselectors);if(x){var k=x.split(","),C=Ku(k),O;try{for(C.s();!(O=C.n()).done;){var L=O.value,N=this.findSingle(w,L);N&&f(N)&&p(N)}}catch($){C.e($)}finally{C.f()}}w.nodeType===1&&f(w)&&p(w)}}catch($){h.e($)}finally{h.f()}}return a.some(function($){return $===document.body||$===window})||a.push(i?window:document.body),a}},{key:"getHiddenElementOuterHeight",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}return 0}},{key:"getHiddenElementOuterWidth",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}return 0}},{key:"getHiddenElementDimensions",value:function(e){var i={};return e&&(e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),i}},{key:"fadeIn",value:function(e,i){if(e){e.style.opacity=0;var a=+new Date,u=0,c=function(){u=+e.style.opacity+(new Date().getTime()-a)/i,e.style.opacity=u,a=+new Date,+u<1&&(window.requestAnimationFrame&&requestAnimationFrame(c)||setTimeout(c,16))};c()}}},{key:"fadeOut",value:function(e,i){if(e)var a=1,u=50,c=u/i,f=setInterval(function(){a=a-c,a<=0&&(a=0,clearInterval(f)),e.style.opacity=a},u)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"appendChild",value:function(e,i){if(this.isElement(i))i.appendChild(e);else if(i.el&&i.el.nativeElement)i.el.nativeElement.appendChild(e);else throw new Error("Cannot append "+i+" to "+e)}},{key:"removeChild",value:function(e,i){if(this.isElement(i))i.removeChild(e);else if(i.el&&i.el.nativeElement)i.el.nativeElement.removeChild(e);else throw new Error("Cannot remove "+e+" from "+i)}},{key:"isElement",value:function(e){return(typeof HTMLElement>"u"?"undefined":cn(HTMLElement))==="object"?e instanceof HTMLElement:e&&cn(e)==="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}},{key:"scrollInView",value:function(e,i){var a=getComputedStyle(e).getPropertyValue("border-top-width"),u=a?parseFloat(a):0,c=getComputedStyle(e).getPropertyValue("padding-top"),f=c?parseFloat(c):0,p=e.getBoundingClientRect(),h=i.getBoundingClientRect(),m=h.top+document.body.scrollTop-(p.top+document.body.scrollTop)-u-f,b=e.scrollTop,w=e.clientHeight,x=this.getOuterHeight(i);m<0?e.scrollTop=b+m:m+x>w&&(e.scrollTop=b+m-w+x)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}},{key:"calculateScrollbarWidth",value:function(e){if(e){var i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var a=document.createElement("div");a.className="p-scrollbar-measure",document.body.appendChild(a);var u=a.offsetWidth-a.clientWidth;return document.body.removeChild(a),this.calculatedScrollbarWidth=u,u}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var e=navigator.userAgent.toLowerCase(),i=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}},{key:"blockBodyScroll",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden",i=!!document.body.style.getPropertyValue("--scrollbar-width");!i&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}},{key:"unblockBodyScroll",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}},{key:"isVisible",value:function(e){return e&&(e.clientHeight!==0||e.getClientRects().length!==0||getComputedStyle(e).display!=="none")}},{key:"isExist",value:function(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&e.parentNode)}},{key:"getFocusableElements",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=o.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(i,`,
|
|
44
|
-
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(
|
|
45
|
-
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(
|
|
46
|
-
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(
|
|
47
|
-
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(
|
|
48
|
-
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(
|
|
49
|
-
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(
|
|
50
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,c=!1,f;return{s:function(){e=e.call(o)},n:function(){var h=e.next();return u=h.done,h},e:function(h){c=!0,f=h},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(c)throw f}}}}function Kv(o,n){if(o){if(typeof o=="string")return Rp(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Rp(o,n)}}function Rp(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}var V=function(){function o(){Bc(this,o)}return Uc(o,null,[{key:"equals",value:function(e,i,a){return a&&e&&cn(e)==="object"&&i&&cn(i)==="object"?this.deepEquals(this.resolveFieldData(e,a),this.resolveFieldData(i,a)):this.deepEquals(e,i)}},{key:"deepEquals",value:function(e,i){if(e===i)return!0;if(e&&i&&cn(e)==="object"&&cn(i)==="object"){var a=Array.isArray(e),u=Array.isArray(i),c,f,p;if(a&&u){if(f=e.length,f!==i.length)return!1;for(c=f;c--!==0;)if(!this.deepEquals(e[c],i[c]))return!1;return!0}if(a!==u)return!1;var h=e instanceof Date,m=i instanceof Date;if(h!==m)return!1;if(h&&m)return e.getTime()===i.getTime();var b=e instanceof RegExp,w=i instanceof RegExp;if(b!==w)return!1;if(b&&w)return e.toString()===i.toString();var x=Object.keys(e);if(f=x.length,f!==Object.keys(i).length)return!1;for(c=f;c--!==0;)if(!Object.prototype.hasOwnProperty.call(i,x[c]))return!1;for(c=f;c--!==0;)if(p=x[c],!this.deepEquals(e[p],i[p]))return!1;return!0}return e!==e&&i!==i}},{key:"resolveFieldData",value:function(e,i){if(!e||!i)return null;try{var a=e[i];if(this.isNotEmpty(a))return a}catch{}if(Object.keys(e).length){if(this.isFunction(i))return i(e);if(this.isNotEmpty(e[i]))return e[i];if(i.indexOf(".")===-1)return e[i];for(var u=i.split("."),c=e,f=0,p=u.length;f<p;++f){if(c==null)return null;c=c[u[f]]}return c}return null}},{key:"findDiffKeys",value:function(e,i){return!e||!i?{}:Object.keys(e).filter(function(a){return!i.hasOwnProperty(a)}).reduce(function(a,u){return a[u]=e[u],a},{})}},{key:"reduceKeys",value:function(e,i){var a={};return!e||!i||i.length===0||Object.keys(e).filter(function(u){return i.some(function(c){return u.startsWith(c)})}).forEach(function(u){a[u]=e[u],delete e[u]}),a}},{key:"reorderArray",value:function(e,i,a){e&&i!==a&&(a>=e.length&&(a=a%e.length,i=i%e.length),e.splice(a,0,e.splice(i,1)[0]))}},{key:"findIndexInList",value:function(e,i,a){var u=this;return i?a?i.findIndex(function(c){return u.equals(c,e,a)}):i.findIndex(function(c){return c===e}):-1}},{key:"getJSXElement",value:function(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];return this.isFunction(e)?e.apply(void 0,a):e}},{key:"getItemValue",value:function(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];return this.isFunction(e)?e.apply(void 0,a):e}},{key:"getProp",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=e?e[i]:void 0;return u===void 0?a[i]:u}},{key:"getPropCaseInsensitive",value:function(e,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=this.toFlatCase(i);for(var c in e)if(e.hasOwnProperty(c)&&this.toFlatCase(c)===u)return e[c];for(var f in a)if(a.hasOwnProperty(f)&&this.toFlatCase(f)===u)return a[f]}},{key:"getMergedProps",value:function(e,i){return Object.assign({},i,e)}},{key:"getDiffProps",value:function(e,i){return this.findDiffKeys(e,i)}},{key:"getPropValue",value:function(e){if(!this.isFunction(e))return e;for(var i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];if(a.length===1){var c=a[0];return e(Array.isArray(c)?c[0]:c)}return e(a)}},{key:"getComponentProp",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.isNotEmpty(e)?this.getProp(e.props,i,a):void 0}},{key:"getComponentProps",value:function(e,i){return this.isNotEmpty(e)?this.getMergedProps(e.props,i):void 0}},{key:"getComponentDiffProps",value:function(e,i){return this.isNotEmpty(e)?this.getDiffProps(e.props,i):void 0}},{key:"isValidChild",value:function(e,i,a){if(e){var u,c=this.getComponentProp(e,"__TYPE")||(e.type?e.type.displayName:void 0);!c&&e!==null&&e!==void 0&&(u=e.type)!==null&&u!==void 0&&(u=u._payload)!==null&&u!==void 0&&u.value&&(c=e.type._payload.value.find(function(h){return h===i}));var f=c===i;try{var p}catch{}return f}return!1}},{key:"getRefElement",value:function(e){return e?cn(e)==="object"&&e.hasOwnProperty("current")?e.current:e:null}},{key:"combinedRefs",value:function(e,i){e&&i&&(typeof i=="function"?i(e.current):i.current=e.current)}},{key:"removeAccents",value:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}},{key:"toFlatCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}},{key:"toCapitalCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e[0].toUpperCase()+e.slice(1):e}},{key:"trim",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.trim():e}},{key:"isEmpty",value:function(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&cn(e)==="object"&&Object.keys(e).length===0}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isObject",value:function(e){return e!==null&&e instanceof Object&&e.constructor===Object}},{key:"isDate",value:function(e){return e!==null&&e instanceof Date&&e.constructor===Date}},{key:"isArray",value:function(e){return e!==null&&Array.isArray(e)}},{key:"isString",value:function(e){return e!==null&&typeof e=="string"}},{key:"isPrintableCharacter",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return this.isNotEmpty(e)&&e.length===1&&e.match(/\S| /)}},{key:"isLetter",value:function(e){return/^[a-zA-Z\u00C0-\u017F]$/.test(e)}},{key:"isScalar",value:function(e){return e!=null&&(typeof e=="string"||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean")}},{key:"findLast",value:function(e,i){var a;if(this.isNotEmpty(e))try{a=e.findLast(i)}catch{a=Hl(e).reverse().find(i)}return a}},{key:"findLastIndex",value:function(e,i){var a=-1;if(this.isNotEmpty(e))try{a=e.findLastIndex(i)}catch{a=e.lastIndexOf(Hl(e).reverse().find(i))}return a}},{key:"sort",value:function(e,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3?arguments[3]:void 0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,f=this.compare(e,i,u,a),p=a;return(this.isEmpty(e)||this.isEmpty(i))&&(p=c===1?a:c),p*f}},{key:"compare",value:function(e,i,a){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,c=-1,f=this.isEmpty(e),p=this.isEmpty(i);return f&&p?c=0:f?c=u:p?c=-u:typeof e=="string"&&typeof i=="string"?c=a(e,i):c=e<i?-1:e>i?1:0,c}},{key:"localeComparator",value:function(e){return new Intl.Collator(e,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(e,i){var a=Uv(e),u;try{for(a.s();!(u=a.n()).done;){var c=u.value;if(c.key===i)return c.children||[];if(c.children){var f=this.findChildrenByKey(c.children,i);if(f.length>0)return f}}}catch(p){a.e(p)}finally{a.f()}return[]}},{key:"mutateFieldData",value:function(e,i,a){if(!(cn(e)!=="object"||typeof i!="string"))for(var u=i.split("."),c=e,f=0,p=u.length;f<p;++f){if(f+1-p===0){c[u[f]]=a;break}c[u[f]]||(c[u[f]]={}),c=c[u[f]]}}}])}(),Lp=0;function ba(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pr_id_";return Lp++,"".concat(o).concat(Lp)}function _p(o,n){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),e.push.apply(e,i)}return e}function Wv(o){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?_p(Object(e),!0).forEach(function(i){es(o,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):_p(Object(e)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(e,i))})}return o}var $r=function(){function o(){Bc(this,o)}return Uc(o,null,[{key:"getJSXIcon",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=null;if(e!==null){var c=cn(e),f=Be(i.className,c==="string"&&e);if(u=v.createElement("span",tc({},i,{className:f,key:ba("icon")})),c!=="string"){var p=Wv({iconProps:i,element:u},a);return V.getJSXElement(e,p)}}return u}}])}();function $p(o,n){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),e.push.apply(e,i)}return e}function jp(o){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?$p(Object(e),!0).forEach(function(i){es(o,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):$p(Object(e)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(e,i))})}return o}function Vl(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o){var e=function(c){return typeof c=="function"},i=n.classNameMergeFunction,a=e(i);return o.reduce(function(u,c){if(!c)return u;var f=function(){var m=c[p];if(p==="style")u.style=jp(jp({},u.style),c.style);else if(p==="className"){var b="";a?b=i(u.className,c.className):b=[u.className,c.className].join(" ").trim(),u.className=b||void 0}else if(e(m)){var w=u[p];u[p]=w?function(){w.apply(void 0,arguments),m.apply(void 0,arguments)}:m}else u[p]=m};for(var p in c)f();return u},{})}}function Gv(){var o=[],n=function(f,p){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:999,m=a(f,p,h),b=m.value+(m.key===f?0:h)+1;return o.push({key:f,value:b}),b},e=function(f){o=o.filter(function(p){return p.value!==f})},i=function(f,p){return a(f,p).value},a=function(f,p){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Hl(o).reverse().find(function(m){return p?!0:m.key===f})||{key:f,value:h}},u=function(f){return f&&parseInt(f.style.zIndex,10)||0};return{get:u,set:function(f,p,h,m){p&&(p.style.zIndex=String(n(f,h,m)))},clear:function(f){f&&(e(Sr.get(f)),f.style.zIndex="")},getCurrent:function(f,p){return i(f,p)}}}var Sr=Gv(),ot=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});function Ap(o,n){var e=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!e){if(Array.isArray(o)||(e=Yv(o))||n){e&&(o=e);var i=0,a=function(){};return{s:a,n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(h){throw h},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
51
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,c=!1,f;return{s:function(){e=e.call(o)},n:function(){var h=e.next();return u=h.done,h},e:function(h){c=!0,f=h},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(c)throw f}}}}function Yv(o,n){if(o){if(typeof o=="string")return Dp(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Dp(o,n)}}function Dp(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}var zp={filter:function(n,e,i,a,u){var c=[];if(!n)return c;var f=Ap(n),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;if(typeof h=="string"){if(this.filters[a](h,i,u)){c.push(h);continue}}else{var m=Ap(e),b;try{for(m.s();!(b=m.n()).done;){var w=b.value,x=V.resolveFieldData(h,w);if(this.filters[a](x,i,u)){c.push(h);break}}}catch(k){m.e(k)}finally{m.f()}}}}catch(k){f.e(k)}finally{f.f()}return c},filters:{startsWith:function(n,e,i){if(e==null||e.trim()==="")return!0;if(n==null)return!1;var a=V.removeAccents(e.toString()).toLocaleLowerCase(i),u=V.removeAccents(n.toString()).toLocaleLowerCase(i);return u.slice(0,a.length)===a},contains:function(n,e,i){if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(n==null)return!1;var a=V.removeAccents(e.toString()).toLocaleLowerCase(i),u=V.removeAccents(n.toString()).toLocaleLowerCase(i);return u.indexOf(a)!==-1},notContains:function(n,e,i){if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(n==null)return!1;var a=V.removeAccents(e.toString()).toLocaleLowerCase(i),u=V.removeAccents(n.toString()).toLocaleLowerCase(i);return u.indexOf(a)===-1},endsWith:function(n,e,i){if(e==null||e.trim()==="")return!0;if(n==null)return!1;var a=V.removeAccents(e.toString()).toLocaleLowerCase(i),u=V.removeAccents(n.toString()).toLocaleLowerCase(i);return u.indexOf(a,u.length-a.length)!==-1},equals:function(n,e,i){return e==null||typeof e=="string"&&e.trim()===""?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()===e.getTime():V.removeAccents(n.toString()).toLocaleLowerCase(i)===V.removeAccents(e.toString()).toLocaleLowerCase(i)},notEquals:function(n,e,i){return e==null||typeof e=="string"&&e.trim()===""||n==null?!0:n.getTime&&e.getTime?n.getTime()!==e.getTime():V.removeAccents(n.toString()).toLocaleLowerCase(i)!==V.removeAccents(e.toString()).toLocaleLowerCase(i)},in:function(n,e){if(e==null||e.length===0)return!0;for(var i=0;i<e.length;i++)if(V.equals(n,e[i]))return!0;return!1},notIn:function(n,e){if(e==null||e.length===0)return!0;for(var i=0;i<e.length;i++)if(V.equals(n,e[i]))return!1;return!0},between:function(n,e){return e==null||e[0]==null||e[1]==null?!0:n==null?!1:n.getTime?e[0].getTime()<=n.getTime()&&n.getTime()<=e[1].getTime():e[0]<=n&&n<=e[1]},lt:function(n,e){return e==null?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()<e.getTime():n<e},lte:function(n,e){return e==null?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()<=e.getTime():n<=e},gt:function(n,e){return e==null?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()>e.getTime():n>e},gte:function(n,e){return e==null?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()>=e.getTime():n>=e},dateIs:function(n,e){return e==null?!0:n==null?!1:n.toDateString()===e.toDateString()},dateIsNot:function(n,e){return e==null?!0:n==null?!1:n.toDateString()!==e.toDateString()},dateBefore:function(n,e){return e==null?!0:n==null?!1:n.getTime()<e.getTime()},dateAfter:function(n,e){return e==null?!0:n==null?!1:n.getTime()>e.getTime()}},register:function(n,e){this.filters[n]=e}};function la(o){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},la(o)}function Qv(o,n){if(la(o)!=="object"||o===null)return o;var e=o[Symbol.toPrimitive];if(e!==void 0){var i=e.call(o,n);if(la(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Xv(o){var n=Qv(o,"string");return la(n)==="symbol"?n:String(n)}function er(o,n,e){return n=Xv(n),n in o?Object.defineProperty(o,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[n]=e,o}function qv(o,n,e){return Object.defineProperty(o,"prototype",{writable:!1}),o}function Zv(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}var Wt=qv(function o(){Zv(this,o)});er(Wt,"ripple",!1);er(Wt,"inputStyle","outlined");er(Wt,"locale","en");er(Wt,"appendTo",null);er(Wt,"cssTransition",!0);er(Wt,"autoZIndex",!0);er(Wt,"hideOverlaysOnDocumentScrolling",!1);er(Wt,"nonce",null);er(Wt,"nullSortOrder",1);er(Wt,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200});er(Wt,"pt",void 0);er(Wt,"filterMatchModeOptions",{text:[ot.STARTS_WITH,ot.CONTAINS,ot.NOT_CONTAINS,ot.ENDS_WITH,ot.EQUALS,ot.NOT_EQUALS],numeric:[ot.EQUALS,ot.NOT_EQUALS,ot.LESS_THAN,ot.LESS_THAN_OR_EQUAL_TO,ot.GREATER_THAN,ot.GREATER_THAN_OR_EQUAL_TO],date:[ot.DATE_IS,ot.DATE_IS_NOT,ot.DATE_BEFORE,ot.DATE_AFTER]});er(Wt,"changeTheme",function(o,n,e,i){var a,u=document.getElementById(e);if(!u)throw Error("Element with id ".concat(e," not found."));var c=u.getAttribute("href").replace(o,n),f=document.createElement("link");f.setAttribute("rel","stylesheet"),f.setAttribute("id",e),f.setAttribute("href",c),f.addEventListener("load",function(){i&&i()}),(a=u.parentNode)===null||a===void 0||a.replaceChild(f,u)});var Jv={en:{accept:"Yes",addRule:"Add Rule",am:"AM",apply:"Apply",cancel:"Cancel",choose:"Choose",chooseDate:"Choose Date",chooseMonth:"Choose Month",chooseYear:"Choose Year",clear:"Clear",completed:"Completed",contains:"Contains",custom:"Custom",dateAfter:"Date is after",dateBefore:"Date is before",dateFormat:"mm/dd/yy",dateIs:"Date is",dateIsNot:"Date is not",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],emptyFilterMessage:"No results found",emptyMessage:"No available options",emptySearchMessage:"No results found",emptySelectionMessage:"No selected item",endsWith:"Ends with",equals:"Equals",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],filter:"Filter",firstDayOfWeek:0,gt:"Greater than",gte:"Greater than or equal to",lt:"Less than",lte:"Less than or equal to",matchAll:"Match All",matchAny:"Match Any",medium:"Medium",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],nextDecade:"Next Decade",nextHour:"Next Hour",nextMinute:"Next Minute",nextMonth:"Next Month",nextSecond:"Next Second",nextYear:"Next Year",noFilter:"No Filter",notContains:"Not contains",notEquals:"Not equals",now:"Now",passwordPrompt:"Enter a password",pending:"Pending",pm:"PM",prevDecade:"Previous Decade",prevHour:"Previous Hour",prevMinute:"Previous Minute",prevMonth:"Previous Month",prevSecond:"Previous Second",prevYear:"Previous Year",reject:"No",removeRule:"Remove Rule",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",showMonthAfterYear:!1,startsWith:"Starts with",strong:"Strong",today:"Today",upload:"Upload",weak:"Weak",weekHeader:"Wk",aria:{cancelEdit:"Cancel Edit",close:"Close",collapseRow:"Row Collapsed",editRow:"Edit Row",expandRow:"Row Expanded",falseLabel:"False",filterConstraint:"Filter Constraint",filterOperator:"Filter Operator",firstPageLabel:"First Page",gridView:"Grid View",hideFilterMenu:"Hide Filter Menu",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",lastPageLabel:"Last Page",listLabel:"Option List",listView:"List View",moveAllToSource:"Move All to Source",moveAllToTarget:"Move All to Target",moveBottom:"Move Bottom",moveDown:"Move Down",moveToSource:"Move to Source",moveToTarget:"Move to Target",moveTop:"Move Top",moveUp:"Move Up",navigation:"Navigation",next:"Next",nextPageLabel:"Next Page",nullLabel:"Not Selected",pageLabel:"Page {page}",otpLabel:"Please enter one time password character {0}",passwordHide:"Hide Password",passwordShow:"Show Password",previous:"Previous",prevPageLabel:"Previous Page",rotateLeft:"Rotate Left",rotateRight:"Rotate Right",rowsPerPageLabel:"Rows per page",saveEdit:"Save Edit",scrollTop:"Scroll Top",selectAll:"All items selected",selectRow:"Row Selected",showFilterMenu:"Show Filter Menu",slide:"Slide",slideNumber:"{slideNumber}",star:"1 star",stars:"{star} stars",trueLabel:"True",unselectAll:"All items unselected",unselectRow:"Row Unselected",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out"}}};function nc(o,n){if(o.includes("__proto__")||o.includes("prototype"))throw new Error("Unsafe key detected");var e=Wt.locale;try{return Hg(e)[o]}catch{throw new Error("The ".concat(o," option is not found in the current locale('").concat(e,"')."))}}function rc(o,n){if(o.includes("__proto__")||o.includes("prototype"))throw new Error("Unsafe ariaKey detected");var e=Wt.locale;try{var i=Hg(e).aria[o];if(i)for(var a in n)n.hasOwnProperty(a)&&(i=i.replace("{".concat(a,"}"),n[a]));return i}catch{throw new Error("The ".concat(o," option is not found in the current locale('").concat(e,"')."))}}function Hg(o){var n=o||Wt.locale;if(n.includes("__proto__")||n.includes("prototype"))throw new Error("Unsafe locale detected");return Jv[n]}function ey(o){if(Array.isArray(o))return o}function ty(o,n){var e=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(e!=null){var i,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(o)).next,n!==0)for(;!(p=(i=u.call(e)).done)&&(f.push(i.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function Fp(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}function ny(o,n){if(o){if(typeof o=="string")return Fp(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Fp(o,n)}}function ry(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
52
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(
|
|
53
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nr(
|
|
54
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hp(
|
|
55
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vp(
|
|
40
|
+
`+g.stack}return{value:t,source:r,stack:d,digest:null}}function cu(t,r,l){return{value:t,source:null,stack:l??null,digest:r??null}}function fu(t,r){try{console.error(r.value)}catch(l){setTimeout(function(){throw l})}}var qm=typeof WeakMap=="function"?WeakMap:Map;function Nd(t,r,l){l=Kr(-1,l),l.tag=3,l.payload={element:null};var s=r.value;return l.callback=function(){sl||(sl=!0,Ou=s),fu(t,r)},l}function Rd(t,r,l){l=Kr(-1,l),l.tag=3;var s=t.type.getDerivedStateFromError;if(typeof s=="function"){var d=r.value;l.payload=function(){return s(d)},l.callback=function(){fu(t,r)}}var g=t.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){fu(t,r),typeof s!="function"&&(si===null?si=new Set([this]):si.add(this));var y=r.stack;this.componentDidCatch(r.value,{componentStack:y!==null?y:""})}),l}function _d(t,r,l){var s=t.pingCache;if(s===null){s=t.pingCache=new qm;var d=new Set;s.set(r,d)}else d=s.get(r),d===void 0&&(d=new Set,s.set(r,d));d.has(l)||(d.add(l),t=fv.bind(null,t,r,l),r.then(t,t))}function Ld(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function jd(t,r,l,s,d){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(r=Kr(-1,1),r.tag=2,ai(l,r,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=d,t)}var Zm=$.ReactCurrentOwner,Bn=!1;function $n(t,r,l,s){r.child=t===null?ed(r,null,l,s):Zi(r,t.child,l,s)}function $d(t,r,l,s,d){l=l.render;var g=r.ref;return eo(r,d),s=nu(t,r,l,s,g,d),l=ru(),t!==null&&!Bn?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~d,Wr(t,r,d)):(xt&&l&&Fs(r),r.flags|=1,$n(t,r,s,d),r.child)}function Ad(t,r,l,s,d){if(t===null){var g=l.type;return typeof g=="function"&&!Lu(g)&&g.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(r.tag=15,r.type=g,Dd(t,r,g,s,d)):(t=gl(l.type,null,s,r,r.mode,d),t.ref=r.ref,t.return=r,r.child=t)}if(g=t.child,(t.lanes&d)===0){var y=g.memoizedProps;if(l=l.compare,l=l!==null?l:Po,l(y,s)&&t.ref===r.ref)return Wr(t,r,d)}return r.flags|=1,t=di(g,s),t.ref=r.ref,t.return=r,r.child=t}function Dd(t,r,l,s,d){if(t!==null){var g=t.memoizedProps;if(Po(g,s)&&t.ref===r.ref)if(Bn=!1,r.pendingProps=s=g,(t.lanes&d)!==0)(t.flags&131072)!==0&&(Bn=!0);else return r.lanes=t.lanes,Wr(t,r,d)}return du(t,r,l,s,d)}function zd(t,r,l){var s=r.pendingProps,d=s.children,g=t!==null?t.memoizedState:null;if(s.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(io,Zn),Zn|=l;else{if((l&1073741824)===0)return t=g!==null?g.baseLanes|l:l,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,yt(io,Zn),Zn|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=g!==null?g.baseLanes:l,yt(io,Zn),Zn|=s}else g!==null?(s=g.baseLanes|l,r.memoizedState=null):s=l,yt(io,Zn),Zn|=s;return $n(t,r,d,l),r.child}function Fd(t,r){var l=r.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(r.flags|=512,r.flags|=2097152)}function du(t,r,l,s,d){var g=Vn(l)?wi:xn.current;return g=Yi(r,g),eo(r,d),l=nu(t,r,l,s,g,d),s=ru(),t!==null&&!Bn?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~d,Wr(t,r,d)):(xt&&s&&Fs(r),r.flags|=1,$n(t,r,l,d),r.child)}function Md(t,r,l,s,d){if(Vn(l)){var g=!0;Fa(r)}else g=!1;if(eo(r,d),r.stateNode===null)rl(t,r),Td(r,l,s),uu(r,l,s,d),s=!0;else if(t===null){var y=r.stateNode,E=r.memoizedProps;y.props=E;var T=y.context,A=l.contextType;typeof A=="object"&&A!==null?A=ar(A):(A=Vn(l)?wi:xn.current,A=Yi(r,A));var ne=l.getDerivedStateFromProps,re=typeof ne=="function"||typeof y.getSnapshotBeforeUpdate=="function";re||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(E!==s||T!==A)&&Id(r,y,s,A),oi=!1;var ee=r.memoizedState;y.state=ee,Ya(r,s,y,d),T=r.memoizedState,E!==s||ee!==T||Hn.current||oi?(typeof ne=="function"&&(su(r,l,ne,s),T=r.memoizedState),(E=oi||Pd(r,l,E,s,ee,T,A))?(re||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=T),y.props=s,y.state=T,y.context=A,s=E):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{y=r.stateNode,nd(t,r),E=r.memoizedProps,A=r.type===r.elementType?E:hr(r.type,E),y.props=A,re=r.pendingProps,ee=y.context,T=l.contextType,typeof T=="object"&&T!==null?T=ar(T):(T=Vn(l)?wi:xn.current,T=Yi(r,T));var we=l.getDerivedStateFromProps;(ne=typeof we=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(E!==re||ee!==T)&&Id(r,y,s,T),oi=!1,ee=r.memoizedState,y.state=ee,Ya(r,s,y,d);var Ce=r.memoizedState;E!==re||ee!==Ce||Hn.current||oi?(typeof we=="function"&&(su(r,l,we,s),Ce=r.memoizedState),(A=oi||Pd(r,l,A,s,ee,Ce,T)||!1)?(ne||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(s,Ce,T),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(s,Ce,T)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||E===t.memoizedProps&&ee===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&ee===t.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=Ce),y.props=s,y.state=Ce,y.context=T,s=A):(typeof y.componentDidUpdate!="function"||E===t.memoizedProps&&ee===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&ee===t.memoizedState||(r.flags|=1024),s=!1)}return pu(t,r,l,s,g,d)}function pu(t,r,l,s,d,g){Fd(t,r);var y=(r.flags&128)!==0;if(!s&&!y)return d&&Kf(r,l,!1),Wr(t,r,g);s=r.stateNode,Zm.current=r;var E=y&&typeof l.getDerivedStateFromError!="function"?null:s.render();return r.flags|=1,t!==null&&y?(r.child=Zi(r,t.child,null,g),r.child=Zi(r,null,E,g)):$n(t,r,E,g),r.memoizedState=s.state,d&&Kf(r,l,!0),r.child}function Hd(t){var r=t.stateNode;r.pendingContext?Bf(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Bf(t,r.context,!1),Xs(t,r.containerInfo)}function Vd(t,r,l,s,d){return qi(),Bs(d),r.flags|=256,$n(t,r,l,s),r.child}var gu={dehydrated:null,treeContext:null,retryLane:0};function hu(t){return{baseLanes:t,cachePool:null,transitions:null}}function Bd(t,r,l){var s=r.pendingProps,d=Ot.current,g=!1,y=(r.flags&128)!==0,E;if((E=y)||(E=t!==null&&t.memoizedState===null?!1:(d&2)!==0),E?(g=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(d|=1),yt(Ot,d&1),t===null)return Vs(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(y=s.children,t=s.fallback,g?(s=r.mode,g=r.child,y={mode:"hidden",children:y},(s&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=y):g=hl(y,s,0,null),t=Ni(t,s,l,null),g.return=r,t.return=r,g.sibling=t,r.child=g,r.child.memoizedState=hu(l),r.memoizedState=gu,t):mu(r,y));if(d=t.memoizedState,d!==null&&(E=d.dehydrated,E!==null))return Jm(t,r,y,s,E,d,l);if(g){g=s.fallback,y=r.mode,d=t.child,E=d.sibling;var T={mode:"hidden",children:s.children};return(y&1)===0&&r.child!==d?(s=r.child,s.childLanes=0,s.pendingProps=T,r.deletions=null):(s=di(d,T),s.subtreeFlags=d.subtreeFlags&14680064),E!==null?g=di(E,g):(g=Ni(g,y,l,null),g.flags|=2),g.return=r,s.return=r,s.sibling=g,r.child=s,s=g,g=r.child,y=t.child.memoizedState,y=y===null?hu(l):{baseLanes:y.baseLanes|l,cachePool:null,transitions:y.transitions},g.memoizedState=y,g.childLanes=t.childLanes&~l,r.memoizedState=gu,s}return g=t.child,t=g.sibling,s=di(g,{mode:"visible",children:s.children}),(r.mode&1)===0&&(s.lanes=l),s.return=r,s.sibling=null,t!==null&&(l=r.deletions,l===null?(r.deletions=[t],r.flags|=16):l.push(t)),r.child=s,r.memoizedState=null,s}function mu(t,r){return r=hl({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function nl(t,r,l,s){return s!==null&&Bs(s),Zi(r,t.child,null,l),t=mu(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Jm(t,r,l,s,d,g,y){if(l)return r.flags&256?(r.flags&=-257,s=cu(Error(e(422))),nl(t,r,y,s)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(g=s.fallback,d=r.mode,s=hl({mode:"visible",children:s.children},d,0,null),g=Ni(g,d,y,null),g.flags|=2,s.return=r,g.return=r,s.sibling=g,r.child=s,(r.mode&1)!==0&&Zi(r,t.child,null,y),r.child.memoizedState=hu(y),r.memoizedState=gu,g);if((r.mode&1)===0)return nl(t,r,y,null);if(d.data==="$!"){if(s=d.nextSibling&&d.nextSibling.dataset,s)var E=s.dgst;return s=E,g=Error(e(419)),s=cu(g,s,void 0),nl(t,r,y,s)}if(E=(y&t.childLanes)!==0,Bn||E){if(s=ln,s!==null){switch(y&-y){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(s.suspendedLanes|y))!==0?0:d,d!==0&&d!==g.retryLane&&(g.retryLane=d,Ur(t,d),yr(s,t,d,-1))}return _u(),s=cu(Error(e(421))),nl(t,r,y,s)}return d.data==="$?"?(r.flags|=128,r.child=t.child,r=dv.bind(null,t),d._reactRetry=r,null):(t=g.treeContext,qn=ti(d.nextSibling),Xn=r,xt=!0,gr=null,t!==null&&(ir[or++]=Vr,ir[or++]=Br,ir[or++]=Si,Vr=t.id,Br=t.overflow,Si=r),r=mu(r,s.children),r.flags|=4096,r)}function Ud(t,r,l){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r),Gs(t.return,r,l)}function vu(t,r,l,s,d){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:d}:(g.isBackwards=r,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=l,g.tailMode=d)}function Kd(t,r,l){var s=r.pendingProps,d=s.revealOrder,g=s.tail;if($n(t,r,s.children,l),s=Ot.current,(s&2)!==0)s=s&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ud(t,l,r);else if(t.tag===19)Ud(t,l,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}s&=1}if(yt(Ot,s),(r.mode&1)===0)r.memoizedState=null;else switch(d){case"forwards":for(l=r.child,d=null;l!==null;)t=l.alternate,t!==null&&Qa(t)===null&&(d=l),l=l.sibling;l=d,l===null?(d=r.child,r.child=null):(d=l.sibling,l.sibling=null),vu(r,!1,d,l,g);break;case"backwards":for(l=null,d=r.child,r.child=null;d!==null;){if(t=d.alternate,t!==null&&Qa(t)===null){r.child=d;break}t=d.sibling,d.sibling=l,l=d,d=t}vu(r,!0,l,null,g);break;case"together":vu(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function rl(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function Wr(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),Oi|=r.lanes,(l&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(e(153));if(r.child!==null){for(t=r.child,l=di(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=di(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function ev(t,r,l){switch(r.tag){case 3:Hd(r),qi();break;case 5:od(r);break;case 1:Vn(r.type)&&Fa(r);break;case 4:Xs(r,r.stateNode.containerInfo);break;case 10:var s=r.type._context,d=r.memoizedProps.value;yt(Ka,s._currentValue),s._currentValue=d;break;case 13:if(s=r.memoizedState,s!==null)return s.dehydrated!==null?(yt(Ot,Ot.current&1),r.flags|=128,null):(l&r.child.childLanes)!==0?Bd(t,r,l):(yt(Ot,Ot.current&1),t=Wr(t,r,l),t!==null?t.sibling:null);yt(Ot,Ot.current&1);break;case 19:if(s=(l&r.childLanes)!==0,(t.flags&128)!==0){if(s)return Kd(t,r,l);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),yt(Ot,Ot.current),s)break;return null;case 22:case 23:return r.lanes=0,zd(t,r,l)}return Wr(t,r,l)}var Wd,yu,Gd,Yd;Wd=function(t,r){for(var l=r.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},yu=function(){},Gd=function(t,r,l,s){var d=t.memoizedProps;if(d!==s){t=r.stateNode,Ci(Or.current);var g=null;switch(l){case"input":d=rt(t,d),s=rt(t,s),g=[];break;case"select":d=B({},d,{value:void 0}),s=B({},s,{value:void 0}),g=[];break;case"textarea":d=ft(t,d),s=ft(t,s),g=[];break;default:typeof d.onClick!="function"&&typeof s.onClick=="function"&&(t.onclick=Aa)}Fe(l,s);var y;l=null;for(A in d)if(!s.hasOwnProperty(A)&&d.hasOwnProperty(A)&&d[A]!=null)if(A==="style"){var E=d[A];for(y in E)E.hasOwnProperty(y)&&(l||(l={}),l[y]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(a.hasOwnProperty(A)?g||(g=[]):(g=g||[]).push(A,null));for(A in s){var T=s[A];if(E=d!=null?d[A]:void 0,s.hasOwnProperty(A)&&T!==E&&(T!=null||E!=null))if(A==="style")if(E){for(y in E)!E.hasOwnProperty(y)||T&&T.hasOwnProperty(y)||(l||(l={}),l[y]="");for(y in T)T.hasOwnProperty(y)&&E[y]!==T[y]&&(l||(l={}),l[y]=T[y])}else l||(g||(g=[]),g.push(A,l)),l=T;else A==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,E=E?E.__html:void 0,T!=null&&E!==T&&(g=g||[]).push(A,T)):A==="children"?typeof T!="string"&&typeof T!="number"||(g=g||[]).push(A,""+T):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(a.hasOwnProperty(A)?(T!=null&&A==="onScroll"&&wt("scroll",t),g||E===T||(g=[])):(g=g||[]).push(A,T))}l&&(g=g||[]).push("style",l);var A=g;(r.updateQueue=A)&&(r.flags|=4)}},Yd=function(t,r,l,s){l!==s&&(r.flags|=4)};function Vo(t,r){if(!xt)switch(t.tailMode){case"hidden":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Cn(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,s=0;if(r)for(var d=t.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags&14680064,s|=d.flags&14680064,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=s,t.childLanes=l,r}function tv(t,r,l){var s=r.pendingProps;switch(Ms(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cn(r),null;case 1:return Vn(r.type)&&za(),Cn(r),null;case 3:return s=r.stateNode,to(),St(Hn),St(xn),Js(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(Ba(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,gr!==null&&(Iu(gr),gr=null))),yu(t,r),Cn(r),null;case 5:qs(r);var d=Ci(Do.current);if(l=r.type,t!==null&&r.stateNode!=null)Gd(t,r,l,s,d),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!s){if(r.stateNode===null)throw Error(e(166));return Cn(r),null}if(t=Ci(Or.current),Ba(r)){s=r.stateNode,l=r.type;var g=r.memoizedProps;switch(s[kr]=r,s[_o]=g,t=(r.mode&1)!==0,l){case"dialog":wt("cancel",s),wt("close",s);break;case"iframe":case"object":case"embed":wt("load",s);break;case"video":case"audio":for(d=0;d<Io.length;d++)wt(Io[d],s);break;case"source":wt("error",s);break;case"img":case"image":case"link":wt("error",s),wt("load",s);break;case"details":wt("toggle",s);break;case"input":fn(s,g),wt("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!g.multiple},wt("invalid",s);break;case"textarea":Pn(s,g),wt("invalid",s)}Fe(l,g),d=null;for(var y in g)if(g.hasOwnProperty(y)){var E=g[y];y==="children"?typeof E=="string"?s.textContent!==E&&(g.suppressHydrationWarning!==!0&&$a(s.textContent,E,t),d=["children",E]):typeof E=="number"&&s.textContent!==""+E&&(g.suppressHydrationWarning!==!0&&$a(s.textContent,E,t),d=["children",""+E]):a.hasOwnProperty(y)&&E!=null&&y==="onScroll"&&wt("scroll",s)}switch(l){case"input":Ht(s),Jt(s,g,!0);break;case"textarea":Ht(s),dn(s);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(s.onclick=Aa)}s=d,r.updateQueue=s,s!==null&&(r.flags|=4)}else{y=d.nodeType===9?d:d.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Rt(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=y.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof s.is=="string"?t=y.createElement(l,{is:s.is}):(t=y.createElement(l),l==="select"&&(y=t,s.multiple?y.multiple=!0:s.size&&(y.size=s.size))):t=y.createElementNS(t,l),t[kr]=r,t[_o]=s,Wd(t,r,!1,!1),r.stateNode=t;e:{switch(y=ae(l,s),l){case"dialog":wt("cancel",t),wt("close",t),d=s;break;case"iframe":case"object":case"embed":wt("load",t),d=s;break;case"video":case"audio":for(d=0;d<Io.length;d++)wt(Io[d],t);d=s;break;case"source":wt("error",t),d=s;break;case"img":case"image":case"link":wt("error",t),wt("load",t),d=s;break;case"details":wt("toggle",t),d=s;break;case"input":fn(t,s),d=rt(t,s),wt("invalid",t);break;case"option":d=s;break;case"select":t._wrapperState={wasMultiple:!!s.multiple},d=B({},s,{value:void 0}),wt("invalid",t);break;case"textarea":Pn(t,s),d=ft(t,s),wt("invalid",t);break;default:d=s}Fe(l,d),E=d;for(g in E)if(E.hasOwnProperty(g)){var T=E[g];g==="style"?Nn(t,T):g==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&Qt(t,T)):g==="children"?typeof T=="string"?(l!=="textarea"||T!=="")&&bt(t,T):typeof T=="number"&&bt(t,""+T):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(a.hasOwnProperty(g)?T!=null&&g==="onScroll"&&wt("scroll",t):T!=null&&j(t,g,T,y))}switch(l){case"input":Ht(t),Jt(t,s,!1);break;case"textarea":Ht(t),dn(t);break;case"option":s.value!=null&&t.setAttribute("value",""+Ue(s.value));break;case"select":t.multiple=!!s.multiple,g=s.value,g!=null?ht(t,!!s.multiple,g,!1):s.defaultValue!=null&&ht(t,!!s.multiple,s.defaultValue,!0);break;default:typeof d.onClick=="function"&&(t.onclick=Aa)}switch(l){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return Cn(r),null;case 6:if(t&&r.stateNode!=null)Yd(t,r,t.memoizedProps,s);else{if(typeof s!="string"&&r.stateNode===null)throw Error(e(166));if(l=Ci(Do.current),Ci(Or.current),Ba(r)){if(s=r.stateNode,l=r.memoizedProps,s[kr]=r,(g=s.nodeValue!==l)&&(t=Xn,t!==null))switch(t.tag){case 3:$a(s.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&$a(s.nodeValue,l,(t.mode&1)!==0)}g&&(r.flags|=4)}else s=(l.nodeType===9?l:l.ownerDocument).createTextNode(s),s[kr]=r,r.stateNode=s}return Cn(r),null;case 13:if(St(Ot),s=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(xt&&qn!==null&&(r.mode&1)!==0&&(r.flags&128)===0)qf(),qi(),r.flags|=98560,g=!1;else if(g=Ba(r),s!==null&&s.dehydrated!==null){if(t===null){if(!g)throw Error(e(318));if(g=r.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(e(317));g[kr]=r}else qi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Cn(r),g=!1}else gr!==null&&(Iu(gr),gr=null),g=!0;if(!g)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=l,r):(s=s!==null,s!==(t!==null&&t.memoizedState!==null)&&s&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Ot.current&1)!==0?Zt===0&&(Zt=3):_u())),r.updateQueue!==null&&(r.flags|=4),Cn(r),null);case 4:return to(),yu(t,r),t===null&&No(r.stateNode.containerInfo),Cn(r),null;case 10:return Ws(r.type._context),Cn(r),null;case 17:return Vn(r.type)&&za(),Cn(r),null;case 19:if(St(Ot),g=r.memoizedState,g===null)return Cn(r),null;if(s=(r.flags&128)!==0,y=g.rendering,y===null)if(s)Vo(g,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(y=Qa(t),y!==null){for(r.flags|=128,Vo(g,!1),s=y.updateQueue,s!==null&&(r.updateQueue=s,r.flags|=4),r.subtreeFlags=0,s=l,l=r.child;l!==null;)g=l,t=s,g.flags&=14680066,y=g.alternate,y===null?(g.childLanes=0,g.lanes=t,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=y.childLanes,g.lanes=y.lanes,g.child=y.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=y.memoizedProps,g.memoizedState=y.memoizedState,g.updateQueue=y.updateQueue,g.type=y.type,t=y.dependencies,g.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return yt(Ot,Ot.current&1|2),r.child}t=t.sibling}g.tail!==null&&ge()>oo&&(r.flags|=128,s=!0,Vo(g,!1),r.lanes=4194304)}else{if(!s)if(t=Qa(y),t!==null){if(r.flags|=128,s=!0,l=t.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),Vo(g,!0),g.tail===null&&g.tailMode==="hidden"&&!y.alternate&&!xt)return Cn(r),null}else 2*ge()-g.renderingStartTime>oo&&l!==1073741824&&(r.flags|=128,s=!0,Vo(g,!1),r.lanes=4194304);g.isBackwards?(y.sibling=r.child,r.child=y):(l=g.last,l!==null?l.sibling=y:r.child=y,g.last=y)}return g.tail!==null?(r=g.tail,g.rendering=r,g.tail=r.sibling,g.renderingStartTime=ge(),r.sibling=null,l=Ot.current,yt(Ot,s?l&1|2:l&1),r):(Cn(r),null);case 22:case 23:return Ru(),s=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==s&&(r.flags|=8192),s&&(r.mode&1)!==0?(Zn&1073741824)!==0&&(Cn(r),r.subtreeFlags&6&&(r.flags|=8192)):Cn(r),null;case 24:return null;case 25:return null}throw Error(e(156,r.tag))}function nv(t,r){switch(Ms(r),r.tag){case 1:return Vn(r.type)&&za(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return to(),St(Hn),St(xn),Js(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return qs(r),null;case 13:if(St(Ot),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(e(340));qi()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return St(Ot),null;case 4:return to(),null;case 10:return Ws(r.type._context),null;case 22:case 23:return Ru(),null;case 24:return null;default:return null}}var il=!1,kn=!1,rv=typeof WeakSet=="function"?WeakSet:Set,xe=null;function ro(t,r){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(s){Lt(t,r,s)}else l.current=null}function bu(t,r,l){try{l()}catch(s){Lt(t,r,s)}}var Qd=!1;function iv(t,r){if(Rs=Ca,t=Pf(),Es(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var d=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var y=0,E=-1,T=-1,A=0,ne=0,re=t,ee=null;t:for(;;){for(var we;re!==l||d!==0&&re.nodeType!==3||(E=y+d),re!==g||s!==0&&re.nodeType!==3||(T=y+s),re.nodeType===3&&(y+=re.nodeValue.length),(we=re.firstChild)!==null;)ee=re,re=we;for(;;){if(re===t)break t;if(ee===l&&++A===d&&(E=y),ee===g&&++ne===s&&(T=y),(we=re.nextSibling)!==null)break;re=ee,ee=re.parentNode}re=we}l=E===-1||T===-1?null:{start:E,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(_s={focusedElem:t,selectionRange:l},Ca=!1,xe=r;xe!==null;)if(r=xe,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,xe=t;else for(;xe!==null;){r=xe;try{var Ce=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Ce!==null){var Pe=Ce.memoizedProps,Ft=Ce.memoizedState,R=r.stateNode,I=R.getSnapshotBeforeUpdate(r.elementType===r.type?Pe:hr(r.type,Pe),Ft);R.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var L=r.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(e(163))}}catch(ue){Lt(r,r.return,ue)}if(t=r.sibling,t!==null){t.return=r.return,xe=t;break}xe=r.return}return Ce=Qd,Qd=!1,Ce}function Bo(t,r,l){var s=r.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var d=s=s.next;do{if((d.tag&t)===t){var g=d.destroy;d.destroy=void 0,g!==void 0&&bu(r,l,g)}d=d.next}while(d!==s)}}function ol(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&t)===t){var s=l.create;l.destroy=s()}l=l.next}while(l!==r)}}function wu(t){var r=t.ref;if(r!==null){var l=t.stateNode;switch(t.tag){case 5:t=l;break;default:t=l}typeof r=="function"?r(t):r.current=t}}function Xd(t){var r=t.alternate;r!==null&&(t.alternate=null,Xd(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[kr],delete r[_o],delete r[As],delete r[Mm],delete r[Hm])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function qd(t){return t.tag===5||t.tag===3||t.tag===4}function Zd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||qd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Su(t,r,l){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?l.nodeType===8?l.parentNode.insertBefore(t,r):l.insertBefore(t,r):(l.nodeType===8?(r=l.parentNode,r.insertBefore(t,l)):(r=l,r.appendChild(t)),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=Aa));else if(s!==4&&(t=t.child,t!==null))for(Su(t,r,l),t=t.sibling;t!==null;)Su(t,r,l),t=t.sibling}function xu(t,r,l){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?l.insertBefore(t,r):l.appendChild(t);else if(s!==4&&(t=t.child,t!==null))for(xu(t,r,l),t=t.sibling;t!==null;)xu(t,r,l),t=t.sibling}var vn=null,mr=!1;function li(t,r,l){for(l=l.child;l!==null;)Jd(t,r,l),l=l.sibling}function Jd(t,r,l){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(on,l)}catch{}switch(l.tag){case 5:kn||ro(l,r);case 6:var s=vn,d=mr;vn=null,li(t,r,l),vn=s,mr=d,vn!==null&&(mr?(t=vn,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):vn.removeChild(l.stateNode));break;case 18:vn!==null&&(mr?(t=vn,l=l.stateNode,t.nodeType===8?$s(t.parentNode,l):t.nodeType===1&&$s(t,l),So(t)):$s(vn,l.stateNode));break;case 4:s=vn,d=mr,vn=l.stateNode.containerInfo,mr=!0,li(t,r,l),vn=s,mr=d;break;case 0:case 11:case 14:case 15:if(!kn&&(s=l.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){d=s=s.next;do{var g=d,y=g.destroy;g=g.tag,y!==void 0&&((g&2)!==0||(g&4)!==0)&&bu(l,r,y),d=d.next}while(d!==s)}li(t,r,l);break;case 1:if(!kn&&(ro(l,r),s=l.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=l.memoizedProps,s.state=l.memoizedState,s.componentWillUnmount()}catch(E){Lt(l,r,E)}li(t,r,l);break;case 21:li(t,r,l);break;case 22:l.mode&1?(kn=(s=kn)||l.memoizedState!==null,li(t,r,l),kn=s):li(t,r,l);break;default:li(t,r,l)}}function ep(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new rv),r.forEach(function(s){var d=pv.bind(null,t,s);l.has(s)||(l.add(s),s.then(d,d))})}}function vr(t,r){var l=r.deletions;if(l!==null)for(var s=0;s<l.length;s++){var d=l[s];try{var g=t,y=r,E=y;e:for(;E!==null;){switch(E.tag){case 5:vn=E.stateNode,mr=!1;break e;case 3:vn=E.stateNode.containerInfo,mr=!0;break e;case 4:vn=E.stateNode.containerInfo,mr=!0;break e}E=E.return}if(vn===null)throw Error(e(160));Jd(g,y,d),vn=null,mr=!1;var T=d.alternate;T!==null&&(T.return=null),d.return=null}catch(A){Lt(d,r,A)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)tp(r,t),r=r.sibling}function tp(t,r){var l=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(vr(r,t),Tr(t),s&4){try{Bo(3,t,t.return),ol(3,t)}catch(Pe){Lt(t,t.return,Pe)}try{Bo(5,t,t.return)}catch(Pe){Lt(t,t.return,Pe)}}break;case 1:vr(r,t),Tr(t),s&512&&l!==null&&ro(l,l.return);break;case 5:if(vr(r,t),Tr(t),s&512&&l!==null&&ro(l,l.return),t.flags&32){var d=t.stateNode;try{bt(d,"")}catch(Pe){Lt(t,t.return,Pe)}}if(s&4&&(d=t.stateNode,d!=null)){var g=t.memoizedProps,y=l!==null?l.memoizedProps:g,E=t.type,T=t.updateQueue;if(t.updateQueue=null,T!==null)try{E==="input"&&g.type==="radio"&&g.name!=null&&Et(d,g),ae(E,y);var A=ae(E,g);for(y=0;y<T.length;y+=2){var ne=T[y],re=T[y+1];ne==="style"?Nn(d,re):ne==="dangerouslySetInnerHTML"?Qt(d,re):ne==="children"?bt(d,re):j(d,ne,re,A)}switch(E){case"input":It(d,g);break;case"textarea":Nt(d,g);break;case"select":var ee=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!g.multiple;var we=g.value;we!=null?ht(d,!!g.multiple,we,!1):ee!==!!g.multiple&&(g.defaultValue!=null?ht(d,!!g.multiple,g.defaultValue,!0):ht(d,!!g.multiple,g.multiple?[]:"",!1))}d[_o]=g}catch(Pe){Lt(t,t.return,Pe)}}break;case 6:if(vr(r,t),Tr(t),s&4){if(t.stateNode===null)throw Error(e(162));d=t.stateNode,g=t.memoizedProps;try{d.nodeValue=g}catch(Pe){Lt(t,t.return,Pe)}}break;case 3:if(vr(r,t),Tr(t),s&4&&l!==null&&l.memoizedState.isDehydrated)try{So(r.containerInfo)}catch(Pe){Lt(t,t.return,Pe)}break;case 4:vr(r,t),Tr(t);break;case 13:vr(r,t),Tr(t),d=t.child,d.flags&8192&&(g=d.memoizedState!==null,d.stateNode.isHidden=g,!g||d.alternate!==null&&d.alternate.memoizedState!==null||(ku=ge())),s&4&&ep(t);break;case 22:if(ne=l!==null&&l.memoizedState!==null,t.mode&1?(kn=(A=kn)||ne,vr(r,t),kn=A):vr(r,t),Tr(t),s&8192){if(A=t.memoizedState!==null,(t.stateNode.isHidden=A)&&!ne&&(t.mode&1)!==0)for(xe=t,ne=t.child;ne!==null;){for(re=xe=ne;xe!==null;){switch(ee=xe,we=ee.child,ee.tag){case 0:case 11:case 14:case 15:Bo(4,ee,ee.return);break;case 1:ro(ee,ee.return);var Ce=ee.stateNode;if(typeof Ce.componentWillUnmount=="function"){s=ee,l=ee.return;try{r=s,Ce.props=r.memoizedProps,Ce.state=r.memoizedState,Ce.componentWillUnmount()}catch(Pe){Lt(s,l,Pe)}}break;case 5:ro(ee,ee.return);break;case 22:if(ee.memoizedState!==null){ip(re);continue}}we!==null?(we.return=ee,xe=we):ip(re)}ne=ne.sibling}e:for(ne=null,re=t;;){if(re.tag===5){if(ne===null){ne=re;try{d=re.stateNode,A?(g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(E=re.stateNode,T=re.memoizedProps.style,y=T!=null&&T.hasOwnProperty("display")?T.display:null,E.style.display=Ct("display",y))}catch(Pe){Lt(t,t.return,Pe)}}}else if(re.tag===6){if(ne===null)try{re.stateNode.nodeValue=A?"":re.memoizedProps}catch(Pe){Lt(t,t.return,Pe)}}else if((re.tag!==22&&re.tag!==23||re.memoizedState===null||re===t)&&re.child!==null){re.child.return=re,re=re.child;continue}if(re===t)break e;for(;re.sibling===null;){if(re.return===null||re.return===t)break e;ne===re&&(ne=null),re=re.return}ne===re&&(ne=null),re.sibling.return=re.return,re=re.sibling}}break;case 19:vr(r,t),Tr(t),s&4&&ep(t);break;case 21:break;default:vr(r,t),Tr(t)}}function Tr(t){var r=t.flags;if(r&2){try{e:{for(var l=t.return;l!==null;){if(qd(l)){var s=l;break e}l=l.return}throw Error(e(160))}switch(s.tag){case 5:var d=s.stateNode;s.flags&32&&(bt(d,""),s.flags&=-33);var g=Zd(t);xu(t,g,d);break;case 3:case 4:var y=s.stateNode.containerInfo,E=Zd(t);Su(t,E,y);break;default:throw Error(e(161))}}catch(T){Lt(t,t.return,T)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function ov(t,r,l){xe=t,np(t)}function np(t,r,l){for(var s=(t.mode&1)!==0;xe!==null;){var d=xe,g=d.child;if(d.tag===22&&s){var y=d.memoizedState!==null||il;if(!y){var E=d.alternate,T=E!==null&&E.memoizedState!==null||kn;E=il;var A=kn;if(il=y,(kn=T)&&!A)for(xe=d;xe!==null;)y=xe,T=y.child,y.tag===22&&y.memoizedState!==null?op(d):T!==null?(T.return=y,xe=T):op(d);for(;g!==null;)xe=g,np(g),g=g.sibling;xe=d,il=E,kn=A}rp(t)}else(d.subtreeFlags&8772)!==0&&g!==null?(g.return=d,xe=g):rp(t)}}function rp(t){for(;xe!==null;){var r=xe;if((r.flags&8772)!==0){var l=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:kn||ol(5,r);break;case 1:var s=r.stateNode;if(r.flags&4&&!kn)if(l===null)s.componentDidMount();else{var d=r.elementType===r.type?l.memoizedProps:hr(r.type,l.memoizedProps);s.componentDidUpdate(d,l.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var g=r.updateQueue;g!==null&&id(r,g,s);break;case 3:var y=r.updateQueue;if(y!==null){if(l=null,r.child!==null)switch(r.child.tag){case 5:l=r.child.stateNode;break;case 1:l=r.child.stateNode}id(r,y,l)}break;case 5:var E=r.stateNode;if(l===null&&r.flags&4){l=E;var T=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&l.focus();break;case"img":T.src&&(l.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var A=r.alternate;if(A!==null){var ne=A.memoizedState;if(ne!==null){var re=ne.dehydrated;re!==null&&So(re)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(e(163))}kn||r.flags&512&&wu(r)}catch(ee){Lt(r,r.return,ee)}}if(r===t){xe=null;break}if(l=r.sibling,l!==null){l.return=r.return,xe=l;break}xe=r.return}}function ip(t){for(;xe!==null;){var r=xe;if(r===t){xe=null;break}var l=r.sibling;if(l!==null){l.return=r.return,xe=l;break}xe=r.return}}function op(t){for(;xe!==null;){var r=xe;try{switch(r.tag){case 0:case 11:case 15:var l=r.return;try{ol(4,r)}catch(T){Lt(r,l,T)}break;case 1:var s=r.stateNode;if(typeof s.componentDidMount=="function"){var d=r.return;try{s.componentDidMount()}catch(T){Lt(r,d,T)}}var g=r.return;try{wu(r)}catch(T){Lt(r,g,T)}break;case 5:var y=r.return;try{wu(r)}catch(T){Lt(r,y,T)}}}catch(T){Lt(r,r.return,T)}if(r===t){xe=null;break}var E=r.sibling;if(E!==null){E.return=r.return,xe=E;break}xe=r.return}}var av=Math.ceil,al=$.ReactCurrentDispatcher,Eu=$.ReactCurrentOwner,sr=$.ReactCurrentBatchConfig,et=0,ln=null,Ut=null,yn=0,Zn=0,io=ni(0),Zt=0,Uo=null,Oi=0,ll=0,Cu=0,Ko=null,Un=null,ku=0,oo=1/0,Gr=null,sl=!1,Ou=null,si=null,ul=!1,ui=null,cl=0,Wo=0,Pu=null,fl=-1,dl=0;function An(){return(et&6)!==0?ge():fl!==-1?fl:fl=ge()}function ci(t){return(t.mode&1)===0?1:(et&2)!==0&&yn!==0?yn&-yn:Bm.transition!==null?(dl===0&&(dl=zr()),dl):(t=at,t!==0||(t=window.event,t=t===void 0?16:lf(t.type)),t)}function yr(t,r,l,s){if(50<Wo)throw Wo=0,Pu=null,Error(e(185));Ln(t,l,s),((et&2)===0||t!==ln)&&(t===ln&&((et&2)===0&&(ll|=l),Zt===4&&fi(t,yn)),Kn(t,s),l===1&&et===0&&(r.mode&1)===0&&(oo=ge()+500,Ma&&ii()))}function Kn(t,r){var l=t.callbackNode;Sn(t,r);var s=Dt(t,t===ln?yn:0);if(s===0)l!==null&&pe(l),t.callbackNode=null,t.callbackPriority=0;else if(r=s&-s,t.callbackPriority!==r){if(l!=null&&pe(l),r===1)t.tag===0?Vm(lp.bind(null,t)):Wf(lp.bind(null,t)),zm(function(){(et&6)===0&&ii()}),l=null;else{switch(Sa(s)){case 1:l=qe;break;case 4:l=Xe;break;case 16:l=mt;break;case 536870912:l=kt;break;default:l=mt}l=hp(l,ap.bind(null,t))}t.callbackPriority=r,t.callbackNode=l}}function ap(t,r){if(fl=-1,dl=0,(et&6)!==0)throw Error(e(327));var l=t.callbackNode;if(ao()&&t.callbackNode!==l)return null;var s=Dt(t,t===ln?yn:0);if(s===0)return null;if((s&30)!==0||(s&t.expiredLanes)!==0||r)r=pl(t,s);else{r=s;var d=et;et|=2;var g=up();(ln!==t||yn!==r)&&(Gr=null,oo=ge()+500,Ti(t,r));do try{uv();break}catch(E){sp(t,E)}while(!0);Ks(),al.current=g,et=d,Ut!==null?r=0:(ln=null,yn=0,r=Zt)}if(r!==0){if(r===2&&(d=nr(t),d!==0&&(s=d,r=Tu(t,d))),r===1)throw l=Uo,Ti(t,0),fi(t,s),Kn(t,ge()),l;if(r===6)fi(t,s);else{if(d=t.current.alternate,(s&30)===0&&!lv(d)&&(r=pl(t,s),r===2&&(g=nr(t),g!==0&&(s=g,r=Tu(t,g))),r===1))throw l=Uo,Ti(t,0),fi(t,s),Kn(t,ge()),l;switch(t.finishedWork=d,t.finishedLanes=s,r){case 0:case 1:throw Error(e(345));case 2:Ii(t,Un,Gr);break;case 3:if(fi(t,s),(s&130023424)===s&&(r=ku+500-ge(),10<r)){if(Dt(t,0)!==0)break;if(d=t.suspendedLanes,(d&s)!==s){An(),t.pingedLanes|=t.suspendedLanes&d;break}t.timeoutHandle=js(Ii.bind(null,t,Un,Gr),r);break}Ii(t,Un,Gr);break;case 4:if(fi(t,s),(s&4194240)===s)break;for(r=t.eventTimes,d=-1;0<s;){var y=31-mn(s);g=1<<y,y=r[y],y>d&&(d=y),s&=~g}if(s=d,s=ge()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*av(s/1960))-s,10<s){t.timeoutHandle=js(Ii.bind(null,t,Un,Gr),s);break}Ii(t,Un,Gr);break;case 5:Ii(t,Un,Gr);break;default:throw Error(e(329))}}}return Kn(t,ge()),t.callbackNode===l?ap.bind(null,t):null}function Tu(t,r){var l=Ko;return t.current.memoizedState.isDehydrated&&(Ti(t,r).flags|=256),t=pl(t,r),t!==2&&(r=Un,Un=l,r!==null&&Iu(r)),t}function Iu(t){Un===null?Un=t:Un.push.apply(Un,t)}function lv(t){for(var r=t;;){if(r.flags&16384){var l=r.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var s=0;s<l.length;s++){var d=l[s],g=d.getSnapshot;d=d.value;try{if(!pr(g(),d))return!1}catch{return!1}}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function fi(t,r){for(r&=~Cu,r&=~ll,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var l=31-mn(r),s=1<<l;t[l]=-1,r&=~s}}function lp(t){if((et&6)!==0)throw Error(e(327));ao();var r=Dt(t,0);if((r&1)===0)return Kn(t,ge()),null;var l=pl(t,r);if(t.tag!==0&&l===2){var s=nr(t);s!==0&&(r=s,l=Tu(t,s))}if(l===1)throw l=Uo,Ti(t,0),fi(t,r),Kn(t,ge()),l;if(l===6)throw Error(e(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,Ii(t,Un,Gr),Kn(t,ge()),null}function Nu(t,r){var l=et;et|=1;try{return t(r)}finally{et=l,et===0&&(oo=ge()+500,Ma&&ii())}}function Pi(t){ui!==null&&ui.tag===0&&(et&6)===0&&ao();var r=et;et|=1;var l=sr.transition,s=at;try{if(sr.transition=null,at=1,t)return t()}finally{at=s,sr.transition=l,et=r,(et&6)===0&&ii()}}function Ru(){Zn=io.current,St(io)}function Ti(t,r){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,Dm(l)),Ut!==null)for(l=Ut.return;l!==null;){var s=l;switch(Ms(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&za();break;case 3:to(),St(Hn),St(xn),Js();break;case 5:qs(s);break;case 4:to();break;case 13:St(Ot);break;case 19:St(Ot);break;case 10:Ws(s.type._context);break;case 22:case 23:Ru()}l=l.return}if(ln=t,Ut=t=di(t.current,null),yn=Zn=r,Zt=0,Uo=null,Cu=ll=Oi=0,Un=Ko=null,Ei!==null){for(r=0;r<Ei.length;r++)if(l=Ei[r],s=l.interleaved,s!==null){l.interleaved=null;var d=s.next,g=l.pending;if(g!==null){var y=g.next;g.next=d,s.next=y}l.pending=s}Ei=null}return t}function sp(t,r){do{var l=Ut;try{if(Ks(),Xa.current=el,qa){for(var s=Pt.memoizedState;s!==null;){var d=s.queue;d!==null&&(d.pending=null),s=s.next}qa=!1}if(ki=0,an=qt=Pt=null,zo=!1,Fo=0,Eu.current=null,l===null||l.return===null){Zt=1,Uo=r,Ut=null;break}e:{var g=t,y=l.return,E=l,T=r;if(r=yn,E.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var A=T,ne=E,re=ne.tag;if((ne.mode&1)===0&&(re===0||re===11||re===15)){var ee=ne.alternate;ee?(ne.updateQueue=ee.updateQueue,ne.memoizedState=ee.memoizedState,ne.lanes=ee.lanes):(ne.updateQueue=null,ne.memoizedState=null)}var we=Ld(y);if(we!==null){we.flags&=-257,jd(we,y,E,g,r),we.mode&1&&_d(g,A,r),r=we,T=A;var Ce=r.updateQueue;if(Ce===null){var Pe=new Set;Pe.add(T),r.updateQueue=Pe}else Ce.add(T);break e}else{if((r&1)===0){_d(g,A,r),_u();break e}T=Error(e(426))}}else if(xt&&E.mode&1){var Ft=Ld(y);if(Ft!==null){(Ft.flags&65536)===0&&(Ft.flags|=256),jd(Ft,y,E,g,r),Bs(no(T,E));break e}}g=T=no(T,E),Zt!==4&&(Zt=2),Ko===null?Ko=[g]:Ko.push(g),g=y;do{switch(g.tag){case 3:g.flags|=65536,r&=-r,g.lanes|=r;var R=Nd(g,T,r);rd(g,R);break e;case 1:E=T;var I=g.type,L=g.stateNode;if((g.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(si===null||!si.has(L)))){g.flags|=65536,r&=-r,g.lanes|=r;var ue=Rd(g,E,r);rd(g,ue);break e}}g=g.return}while(g!==null)}fp(l)}catch(Ie){r=Ie,Ut===l&&l!==null&&(Ut=l=l.return);continue}break}while(!0)}function up(){var t=al.current;return al.current=el,t===null?el:t}function _u(){(Zt===0||Zt===3||Zt===2)&&(Zt=4),ln===null||(Oi&268435455)===0&&(ll&268435455)===0||fi(ln,yn)}function pl(t,r){var l=et;et|=2;var s=up();(ln!==t||yn!==r)&&(Gr=null,Ti(t,r));do try{sv();break}catch(d){sp(t,d)}while(!0);if(Ks(),et=l,al.current=s,Ut!==null)throw Error(e(261));return ln=null,yn=0,Zt}function sv(){for(;Ut!==null;)cp(Ut)}function uv(){for(;Ut!==null&&!be();)cp(Ut)}function cp(t){var r=gp(t.alternate,t,Zn);t.memoizedProps=t.pendingProps,r===null?fp(t):Ut=r,Eu.current=null}function fp(t){var r=t;do{var l=r.alternate;if(t=r.return,(r.flags&32768)===0){if(l=tv(l,r,Zn),l!==null){Ut=l;return}}else{if(l=nv(l,r),l!==null){l.flags&=32767,Ut=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Zt=6,Ut=null;return}}if(r=r.sibling,r!==null){Ut=r;return}Ut=r=t}while(r!==null);Zt===0&&(Zt=5)}function Ii(t,r,l){var s=at,d=sr.transition;try{sr.transition=null,at=1,cv(t,r,l,s)}finally{sr.transition=d,at=s}return null}function cv(t,r,l,s){do ao();while(ui!==null);if((et&6)!==0)throw Error(e(327));l=t.finishedWork;var d=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(e(177));t.callbackNode=null,t.callbackPriority=0;var g=l.lanes|l.childLanes;if(Fr(t,g),t===ln&&(Ut=ln=null,yn=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||ul||(ul=!0,hp(mt,function(){return ao(),null})),g=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||g){g=sr.transition,sr.transition=null;var y=at;at=1;var E=et;et|=4,Eu.current=null,iv(t,l),tp(l,t),Nm(_s),Ca=!!Rs,_s=Rs=null,t.current=l,ov(l),Se(),et=E,at=y,sr.transition=g}else t.current=l;if(ul&&(ul=!1,ui=t,cl=d),g=t.pendingLanes,g===0&&(si=null),mi(l.stateNode),Kn(t,ge()),r!==null)for(s=t.onRecoverableError,l=0;l<r.length;l++)d=r[l],s(d.value,{componentStack:d.stack,digest:d.digest});if(sl)throw sl=!1,t=Ou,Ou=null,t;return(cl&1)!==0&&t.tag!==0&&ao(),g=t.pendingLanes,(g&1)!==0?t===Pu?Wo++:(Wo=0,Pu=t):Wo=0,ii(),null}function ao(){if(ui!==null){var t=Sa(cl),r=sr.transition,l=at;try{if(sr.transition=null,at=16>t?16:t,ui===null)var s=!1;else{if(t=ui,ui=null,cl=0,(et&6)!==0)throw Error(e(331));var d=et;for(et|=4,xe=t.current;xe!==null;){var g=xe,y=g.child;if((xe.flags&16)!==0){var E=g.deletions;if(E!==null){for(var T=0;T<E.length;T++){var A=E[T];for(xe=A;xe!==null;){var ne=xe;switch(ne.tag){case 0:case 11:case 15:Bo(8,ne,g)}var re=ne.child;if(re!==null)re.return=ne,xe=re;else for(;xe!==null;){ne=xe;var ee=ne.sibling,we=ne.return;if(Xd(ne),ne===A){xe=null;break}if(ee!==null){ee.return=we,xe=ee;break}xe=we}}}var Ce=g.alternate;if(Ce!==null){var Pe=Ce.child;if(Pe!==null){Ce.child=null;do{var Ft=Pe.sibling;Pe.sibling=null,Pe=Ft}while(Pe!==null)}}xe=g}}if((g.subtreeFlags&2064)!==0&&y!==null)y.return=g,xe=y;else e:for(;xe!==null;){if(g=xe,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Bo(9,g,g.return)}var R=g.sibling;if(R!==null){R.return=g.return,xe=R;break e}xe=g.return}}var I=t.current;for(xe=I;xe!==null;){y=xe;var L=y.child;if((y.subtreeFlags&2064)!==0&&L!==null)L.return=y,xe=L;else e:for(y=I;xe!==null;){if(E=xe,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:ol(9,E)}}catch(Ie){Lt(E,E.return,Ie)}if(E===y){xe=null;break e}var ue=E.sibling;if(ue!==null){ue.return=E.return,xe=ue;break e}xe=E.return}}if(et=d,ii(),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(on,t)}catch{}s=!0}return s}finally{at=l,sr.transition=r}}return!1}function dp(t,r,l){r=no(l,r),r=Nd(t,r,1),t=ai(t,r,1),r=An(),t!==null&&(Ln(t,1,r),Kn(t,r))}function Lt(t,r,l){if(t.tag===3)dp(t,t,l);else for(;r!==null;){if(r.tag===3){dp(r,t,l);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(si===null||!si.has(s))){t=no(l,t),t=Rd(r,t,1),r=ai(r,t,1),t=An(),r!==null&&(Ln(r,1,t),Kn(r,t));break}}r=r.return}}function fv(t,r,l){var s=t.pingCache;s!==null&&s.delete(r),r=An(),t.pingedLanes|=t.suspendedLanes&l,ln===t&&(yn&l)===l&&(Zt===4||Zt===3&&(yn&130023424)===yn&&500>ge()-ku?Ti(t,0):Cu|=l),Kn(t,r)}function pp(t,r){r===0&&((t.mode&1)===0?r=1:(r=Cr,Cr<<=1,(Cr&130023424)===0&&(Cr=4194304)));var l=An();t=Ur(t,r),t!==null&&(Ln(t,r,l),Kn(t,l))}function dv(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),pp(t,l)}function pv(t,r){var l=0;switch(t.tag){case 13:var s=t.stateNode,d=t.memoizedState;d!==null&&(l=d.retryLane);break;case 19:s=t.stateNode;break;default:throw Error(e(314))}s!==null&&s.delete(r),pp(t,l)}var gp;gp=function(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps||Hn.current)Bn=!0;else{if((t.lanes&l)===0&&(r.flags&128)===0)return Bn=!1,ev(t,r,l);Bn=(t.flags&131072)!==0}else Bn=!1,xt&&(r.flags&1048576)!==0&&Gf(r,Va,r.index);switch(r.lanes=0,r.tag){case 2:var s=r.type;rl(t,r),t=r.pendingProps;var d=Yi(r,xn.current);eo(r,l),d=nu(null,r,s,t,d,l);var g=ru();return r.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Vn(s)?(g=!0,Fa(r)):g=!1,r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Qs(r),d.updater=tl,r.stateNode=d,d._reactInternals=r,uu(r,s,t,l),r=pu(null,r,s,!0,g,l)):(r.tag=0,xt&&g&&Fs(r),$n(null,r,d,l),r=r.child),r;case 16:s=r.elementType;e:{switch(rl(t,r),t=r.pendingProps,d=s._init,s=d(s._payload),r.type=s,d=r.tag=hv(s),t=hr(s,t),d){case 0:r=du(null,r,s,t,l);break e;case 1:r=Md(null,r,s,t,l);break e;case 11:r=$d(null,r,s,t,l);break e;case 14:r=Ad(null,r,s,hr(s.type,t),l);break e}throw Error(e(306,s,""))}return r;case 0:return s=r.type,d=r.pendingProps,d=r.elementType===s?d:hr(s,d),du(t,r,s,d,l);case 1:return s=r.type,d=r.pendingProps,d=r.elementType===s?d:hr(s,d),Md(t,r,s,d,l);case 3:e:{if(Hd(r),t===null)throw Error(e(387));s=r.pendingProps,g=r.memoizedState,d=g.element,nd(t,r),Ya(r,s,null,l);var y=r.memoizedState;if(s=y.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){d=no(Error(e(423)),r),r=Vd(t,r,s,l,d);break e}else if(s!==d){d=no(Error(e(424)),r),r=Vd(t,r,s,l,d);break e}else for(qn=ti(r.stateNode.containerInfo.firstChild),Xn=r,xt=!0,gr=null,l=ed(r,null,s,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(qi(),s===d){r=Wr(t,r,l);break e}$n(t,r,s,l)}r=r.child}return r;case 5:return od(r),t===null&&Vs(r),s=r.type,d=r.pendingProps,g=t!==null?t.memoizedProps:null,y=d.children,Ls(s,d)?y=null:g!==null&&Ls(s,g)&&(r.flags|=32),Fd(t,r),$n(t,r,y,l),r.child;case 6:return t===null&&Vs(r),null;case 13:return Bd(t,r,l);case 4:return Xs(r,r.stateNode.containerInfo),s=r.pendingProps,t===null?r.child=Zi(r,null,s,l):$n(t,r,s,l),r.child;case 11:return s=r.type,d=r.pendingProps,d=r.elementType===s?d:hr(s,d),$d(t,r,s,d,l);case 7:return $n(t,r,r.pendingProps,l),r.child;case 8:return $n(t,r,r.pendingProps.children,l),r.child;case 12:return $n(t,r,r.pendingProps.children,l),r.child;case 10:e:{if(s=r.type._context,d=r.pendingProps,g=r.memoizedProps,y=d.value,yt(Ka,s._currentValue),s._currentValue=y,g!==null)if(pr(g.value,y)){if(g.children===d.children&&!Hn.current){r=Wr(t,r,l);break e}}else for(g=r.child,g!==null&&(g.return=r);g!==null;){var E=g.dependencies;if(E!==null){y=g.child;for(var T=E.firstContext;T!==null;){if(T.context===s){if(g.tag===1){T=Kr(-1,l&-l),T.tag=2;var A=g.updateQueue;if(A!==null){A=A.shared;var ne=A.pending;ne===null?T.next=T:(T.next=ne.next,ne.next=T),A.pending=T}}g.lanes|=l,T=g.alternate,T!==null&&(T.lanes|=l),Gs(g.return,l,r),E.lanes|=l;break}T=T.next}}else if(g.tag===10)y=g.type===r.type?null:g.child;else if(g.tag===18){if(y=g.return,y===null)throw Error(e(341));y.lanes|=l,E=y.alternate,E!==null&&(E.lanes|=l),Gs(y,l,r),y=g.sibling}else y=g.child;if(y!==null)y.return=g;else for(y=g;y!==null;){if(y===r){y=null;break}if(g=y.sibling,g!==null){g.return=y.return,y=g;break}y=y.return}g=y}$n(t,r,d.children,l),r=r.child}return r;case 9:return d=r.type,s=r.pendingProps.children,eo(r,l),d=ar(d),s=s(d),r.flags|=1,$n(t,r,s,l),r.child;case 14:return s=r.type,d=hr(s,r.pendingProps),d=hr(s.type,d),Ad(t,r,s,d,l);case 15:return Dd(t,r,r.type,r.pendingProps,l);case 17:return s=r.type,d=r.pendingProps,d=r.elementType===s?d:hr(s,d),rl(t,r),r.tag=1,Vn(s)?(t=!0,Fa(r)):t=!1,eo(r,l),Td(r,s,d),uu(r,s,d,l),pu(null,r,s,!0,t,l);case 19:return Kd(t,r,l);case 22:return zd(t,r,l)}throw Error(e(156,r.tag))};function hp(t,r){return fe(t,r)}function gv(t,r,l,s){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ur(t,r,l,s){return new gv(t,r,l,s)}function Lu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function hv(t){if(typeof t=="function")return Lu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===se)return 11;if(t===X)return 14}return 2}function di(t,r){var l=t.alternate;return l===null?(l=ur(t.tag,r,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=r,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,r=t.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function gl(t,r,l,s,d,g){var y=2;if(s=t,typeof t=="function")Lu(t)&&(y=1);else if(typeof t=="string")y=5;else e:switch(t){case Q:return Ni(l.children,d,g,r);case D:y=8,d|=8;break;case F:return t=ur(12,l,r,d|2),t.elementType=F,t.lanes=g,t;case oe:return t=ur(13,l,r,d),t.elementType=oe,t.lanes=g,t;case ye:return t=ur(19,l,r,d),t.elementType=ye,t.lanes=g,t;case ke:return hl(l,d,g,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case q:y=10;break e;case K:y=9;break e;case se:y=11;break e;case X:y=14;break e;case ve:y=16,s=null;break e}throw Error(e(130,t==null?t:typeof t,""))}return r=ur(y,l,r,d),r.elementType=t,r.type=s,r.lanes=g,r}function Ni(t,r,l,s){return t=ur(7,t,s,r),t.lanes=l,t}function hl(t,r,l,s){return t=ur(22,t,s,r),t.elementType=ke,t.lanes=l,t.stateNode={isHidden:!1},t}function ju(t,r,l){return t=ur(6,t,null,r),t.lanes=l,t}function $u(t,r,l){return r=ur(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function mv(t,r,l,s,d){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_n(0),this.expirationTimes=_n(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_n(0),this.identifierPrefix=s,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Au(t,r,l,s,d,g,y,E,T){return t=new mv(t,r,l,E,T),r===1?(r=1,g===!0&&(r|=8)):r=0,g=ur(3,null,null,r),t.current=g,g.stateNode=t,g.memoizedState={element:s,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qs(g),t}function vv(t,r,l){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:s==null?null:""+s,children:t,containerInfo:r,implementation:l}}function mp(t){if(!t)return ri;t=t._reactInternals;e:{if(Ge(t)!==t||t.tag!==1)throw Error(e(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(Vn(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(e(171))}if(t.tag===1){var l=t.type;if(Vn(l))return Uf(t,l,r)}return r}function vp(t,r,l,s,d,g,y,E,T){return t=Au(l,s,!0,t,d,g,y,E,T),t.context=mp(null),l=t.current,s=An(),d=ci(l),g=Kr(s,d),g.callback=r??null,ai(l,g,d),t.current.lanes=d,Ln(t,d,s),Kn(t,s),t}function ml(t,r,l,s){var d=r.current,g=An(),y=ci(d);return l=mp(l),r.context===null?r.context=l:r.pendingContext=l,r=Kr(g,y),r.payload={element:t},s=s===void 0?null:s,s!==null&&(r.callback=s),t=ai(d,r,y),t!==null&&(yr(t,d,y,g),Ga(t,d,y)),y}function vl(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function yp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function Du(t,r){yp(t,r),(t=t.alternate)&&yp(t,r)}function yv(){return null}var bp=typeof reportError=="function"?reportError:function(t){console.error(t)};function zu(t){this._internalRoot=t}yl.prototype.render=zu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(e(409));ml(t,r,null,null)},yl.prototype.unmount=zu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Pi(function(){ml(null,t,null,null)}),r[Mr]=null}};function yl(t){this._internalRoot=t}yl.prototype.unstable_scheduleHydration=function(t){if(t){var r=Z();t={blockedOn:null,target:t,priority:r};for(var l=0;l<Zr.length&&r!==0&&r<Zr[l].priority;l++);Zr.splice(l,0,t),l===0&&of(t)}};function Fu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function bl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function wp(){}function bv(t,r,l,s,d){if(d){if(typeof s=="function"){var g=s;s=function(){var A=vl(y);g.call(A)}}var y=vp(r,s,t,0,null,!1,!1,"",wp);return t._reactRootContainer=y,t[Mr]=y.current,No(t.nodeType===8?t.parentNode:t),Pi(),y}for(;d=t.lastChild;)t.removeChild(d);if(typeof s=="function"){var E=s;s=function(){var A=vl(T);E.call(A)}}var T=Au(t,0,!1,null,null,!1,!1,"",wp);return t._reactRootContainer=T,t[Mr]=T.current,No(t.nodeType===8?t.parentNode:t),Pi(function(){ml(r,T,l,s)}),T}function wl(t,r,l,s,d){var g=l._reactRootContainer;if(g){var y=g;if(typeof d=="function"){var E=d;d=function(){var T=vl(y);E.call(T)}}ml(r,y,t,d)}else y=bv(l,r,t,d,s);return vl(y)}xa=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var l=vt(r.pendingLanes);l!==0&&(vo(r,l|1),Kn(r,ge()),(et&6)===0&&(oo=ge()+500,ii()))}break;case 13:Pi(function(){var s=Ur(t,1);if(s!==null){var d=An();yr(s,t,1,d)}}),Du(t,1)}},le=function(t){if(t.tag===13){var r=Ur(t,134217728);if(r!==null){var l=An();yr(r,t,134217728,l)}Du(t,134217728)}},S=function(t){if(t.tag===13){var r=ci(t),l=Ur(t,r);if(l!==null){var s=An();yr(l,t,r,s)}Du(t,r)}},Z=function(){return at},Re=function(t,r){var l=at;try{return at=t,r()}finally{at=l}},Oe=function(t,r,l){switch(r){case"input":if(It(t,l),r=l.name,l.type==="radio"&&r!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<l.length;r++){var s=l[r];if(s!==t&&s.form===t.form){var d=Da(s);if(!d)throw Error(e(90));jt(s),It(s,d)}}}break;case"textarea":Nt(t,l);break;case"select":r=l.value,r!=null&&ht(t,!!l.multiple,r,!1)}},Ze=Nu,Je=Pi;var wv={usingClientEntryPoint:!1,Events:[Lo,Wi,Da,_e,He,Nu]},Go={findFiberByHostInstance:bi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Sv={bundleType:Go.bundleType,version:Go.version,rendererPackageName:Go.rendererPackageName,rendererConfig:Go.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Ee(t),t===null?null:t.stateNode},findFiberByHostInstance:Go.findFiberByHostInstance||yv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sl.isDisabled&&Sl.supportsFiber)try{on=Sl.inject(Sv),Bt=Sl}catch{}}return Wn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wv,Wn.createPortal=function(t,r){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fu(r))throw Error(e(200));return vv(t,r,null,l)},Wn.createRoot=function(t,r){if(!Fu(t))throw Error(e(299));var l=!1,s="",d=bp;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(d=r.onRecoverableError)),r=Au(t,1,!1,null,null,l,!1,s,d),t[Mr]=r.current,No(t.nodeType===8?t.parentNode:t),new zu(r)},Wn.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(e(188)):(t=Object.keys(t).join(","),Error(e(268,t)));return t=Ee(r),t=t===null?null:t.stateNode,t},Wn.flushSync=function(t){return Pi(t)},Wn.hydrate=function(t,r,l){if(!bl(r))throw Error(e(200));return wl(null,t,r,!0,l)},Wn.hydrateRoot=function(t,r,l){if(!Fu(t))throw Error(e(405));var s=l!=null&&l.hydratedSources||null,d=!1,g="",y=bp;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(y=l.onRecoverableError)),r=vp(r,null,t,1,l??null,d,!1,g,y),t[Mr]=r.current,No(t),s)for(t=0;t<s.length;t++)l=s[t],d=l._getVersion,d=d(l._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[l,d]:r.mutableSourceEagerHydrationData.push(l,d);return new yl(r)},Wn.render=function(t,r,l){if(!bl(r))throw Error(e(200));return wl(null,t,r,!1,l)},Wn.unmountComponentAtNode=function(t){if(!bl(t))throw Error(e(40));return t._reactRootContainer?(Pi(function(){wl(null,null,t,!1,function(){t._reactRootContainer=null,t[Mr]=null})}),!0):!1},Wn.unstable_batchedUpdates=Nu,Wn.unstable_renderSubtreeIntoContainer=function(t,r,l,s){if(!bl(l))throw Error(e(200));if(t==null||t._reactInternals===void 0)throw Error(e(38));return wl(t,r,l,!1,s)},Wn.version="18.3.1-next-f1338f8080-20240426",Wn}var Tp;function Fg(){if(Tp)return Vu.exports;Tp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Vu.exports=Nv(),Vu.exports}var Ip;function Rv(){if(Ip)return xl;Ip=1;var i=Fg();return xl.createRoot=i.createRoot,xl.hydrateRoot=i.hydrateRoot,xl}var _v=Rv();const Lv=Hc(_v);var jv={};function $v(i){if(Array.isArray(i))return i}function Av(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n!==0)for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function ec(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function Mg(i,n){if(i){if(typeof i=="string")return ec(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ec(i,n)}}function Dv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dl(i,n){return $v(i)||Av(i,n)||Mg(i,n)||Dv()}function cn(i){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cn(i)}function Be(){for(var i=arguments.length,n=new Array(i),e=0;e<i;e++)n[e]=arguments[e];if(n){for(var o=[],a=0;a<n.length;a++){var u=n[a];if(u){var c=cn(u);if(c==="string"||c==="number")o.push(u);else if(c==="object"){var f=Array.isArray(u)?u:Object.entries(u).map(function(p){var h=Dl(p,2),m=h[0],b=h[1];return b?m:null});o=f.length?o.concat(f.filter(function(p){return!!p})):o}}}return o.join(" ").trim()}}function zv(i){if(Array.isArray(i))return ec(i)}function Fv(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Mv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hl(i){return zv(i)||Fv(i)||Mg(i)||Mv()}function Bc(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Hv(i,n){if(cn(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(cn(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}function Hg(i){var n=Hv(i,"string");return cn(n)==="symbol"?n:String(n)}function Vv(i,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,Hg(o.key),o)}}function Uc(i,n,e){return e&&Vv(i,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function es(i,n,e){return n=Hg(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function Ku(i,n){var e=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!e){if(Array.isArray(i)||(e=Bv(i))||n){e&&(i=e);var o=0,a=function(){};return{s:a,n:function(){return o>=i.length?{done:!0}:{done:!1,value:i[o++]}},e:function(h){throw h},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,c=!1,f;return{s:function(){e=e.call(i)},n:function(){var h=e.next();return u=h.done,h},e:function(h){c=!0,f=h},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(c)throw f}}}}function Bv(i,n){if(i){if(typeof i=="string")return Np(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Np(i,n)}}function Np(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}var H=function(){function i(){Bc(this,i)}return Uc(i,null,[{key:"innerWidth",value:function(e){if(e){var o=e.offsetWidth,a=getComputedStyle(e);return o=o+(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)),o}return 0}},{key:"width",value:function(e){if(e){var o=e.offsetWidth,a=getComputedStyle(e);return o=o-(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)),o}return 0}},{key:"getBrowserLanguage",value:function(){return navigator.userLanguage||navigator.languages&&navigator.languages.length&&navigator.languages[0]||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"en"}},{key:"getWindowScrollTop",value:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},{key:"getOuterWidth",value:function(e,o){if(e){var a=e.getBoundingClientRect().width||e.offsetWidth;if(o){var u=getComputedStyle(e);a=a+(parseFloat(u.marginLeft)+parseFloat(u.marginRight))}return a}return 0}},{key:"getOuterHeight",value:function(e,o){if(e){var a=e.getBoundingClientRect().height||e.offsetHeight;if(o){var u=getComputedStyle(e);a=a+(parseFloat(u.marginTop)+parseFloat(u.marginBottom))}return a}return 0}},{key:"getClientHeight",value:function(e,o){if(e){var a=e.clientHeight;if(o){var u=getComputedStyle(e);a=a+(parseFloat(u.marginTop)+parseFloat(u.marginBottom))}return a}return 0}},{key:"getClientWidth",value:function(e,o){if(e){var a=e.clientWidth;if(o){var u=getComputedStyle(e);a=a+(parseFloat(u.marginLeft)+parseFloat(u.marginRight))}return a}return 0}},{key:"getViewport",value:function(){var e=window,o=document,a=o.documentElement,u=o.getElementsByTagName("body")[0],c=e.innerWidth||a.clientWidth||u.clientWidth,f=e.innerHeight||a.clientHeight||u.clientHeight;return{width:c,height:f}}},{key:"getOffset",value:function(e){if(e){var o=e.getBoundingClientRect();return{top:o.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:o.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(e){if(e)for(var o=e.parentNode.childNodes,a=0,u=0;u<o.length;u++){if(o[u]===e)return a;o[u].nodeType===1&&a++}return-1}},{key:"addMultipleClasses",value:function(e,o){if(e&&o)if(e.classList)for(var a=o.split(" "),u=0;u<a.length;u++)e.classList.add(a[u]);else for(var c=o.split(" "),f=0;f<c.length;f++)e.className=e.className+(" "+c[f])}},{key:"removeMultipleClasses",value:function(e,o){if(e&&o)if(e.classList)for(var a=o.split(" "),u=0;u<a.length;u++)e.classList.remove(a[u]);else for(var c=o.split(" "),f=0;f<c.length;f++)e.className=e.className.replace(new RegExp("(^|\\b)"+c[f].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(e,o){e&&o&&(e.classList?e.classList.add(o):e.className=e.className+(" "+o))}},{key:"removeClass",value:function(e,o){e&&o&&(e.classList?e.classList.remove(o):e.className=e.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(e,o){return e?e.classList?e.classList.contains(o):new RegExp("(^| )"+o+"( |$)","gi").test(e.className):!1}},{key:"addStyles",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e&&Object.entries(o).forEach(function(a){var u=Dl(a,2),c=u[0],f=u[1];return e.style[c]=f})}},{key:"find",value:function(e,o){return e?Array.from(e.querySelectorAll(o)):[]}},{key:"findSingle",value:function(e,o){return e?e.querySelector(o):null}},{key:"setAttributes",value:function(e){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e){var u=function(f,p){var h,m,b=e!=null&&(h=e.$attrs)!==null&&h!==void 0&&h[f]?[e==null||(m=e.$attrs)===null||m===void 0?void 0:m[f]]:[];return[p].flat().reduce(function(w,x){if(x!=null){var k=cn(x);if(k==="string"||k==="number")w.push(x);else if(k==="object"){var C=Array.isArray(x)?u(f,x):Object.entries(x).map(function(O){var _=Dl(O,2),N=_[0],j=_[1];return f==="style"&&(j||j===0)?"".concat(N.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(j):j?N:void 0});w=C.length?w.concat(C.filter(function(O){return!!O})):w}}return w},b)};Object.entries(a).forEach(function(c){var f=Dl(c,2),p=f[0],h=f[1];if(h!=null){var m=p.match(/^on(.+)/);m?e.addEventListener(m[1].toLowerCase(),h):p==="p-bind"?o.setAttributes(e,h):(h=p==="class"?Hl(new Set(u("class",h))).join(" ").trim():p==="style"?u("style",h).join(";").trim():h,(e.$attrs=e.$attrs||{})&&(e.$attrs[p]=h),e.setAttribute(p,h))}})}}},{key:"getAttribute",value:function(e,o){if(e){var a=e.getAttribute(o);return isNaN(a)?a==="true"||a==="false"?a==="true":a:+a}}},{key:"isAttributeEquals",value:function(e,o,a){return e?this.getAttribute(e,o)===a:!1}},{key:"isAttributeNotEquals",value:function(e,o,a){return!this.isAttributeEquals(e,o,a)}},{key:"getHeight",value:function(e){if(e){var o=e.offsetHeight,a=getComputedStyle(e);return o=o-(parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)+parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth)),o}return 0}},{key:"getWidth",value:function(e){if(e){var o=e.offsetWidth,a=getComputedStyle(e);return o=o-(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)+parseFloat(a.borderLeftWidth)+parseFloat(a.borderRightWidth)),o}return 0}},{key:"alignOverlay",value:function(e,o,a){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;e&&o&&(a==="self"?this.relativePosition(e,o):(u&&(e.style.minWidth=i.getOuterWidth(o)+"px"),this.absolutePosition(e,o)))}},{key:"absolutePosition",value:function(e,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left";if(e&&o){var u=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),c=u.height,f=u.width,p=o.offsetHeight,h=o.offsetWidth,m=o.getBoundingClientRect(),b=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),x=this.getViewport(),k,C;m.top+p+c>x.height?(k=m.top+b-c,k<0&&(k=b),e.style.transformOrigin="bottom"):(k=p+m.top+b,e.style.transformOrigin="top");var O=m.left,_=a==="left"?0:f-h;O+h+f>x.width?C=Math.max(0,O+w+h-f):C=O-_+w,e.style.top=k+"px",e.style.left=C+"px"}}},{key:"relativePosition",value:function(e,o){if(e&&o){var a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),u=o.offsetHeight,c=o.getBoundingClientRect(),f=this.getViewport(),p,h;c.top+u+a.height>f.height?(p=-1*a.height,c.top+p<0&&(p=-1*c.top),e.style.transformOrigin="bottom"):(p=u,e.style.transformOrigin="top"),a.width>f.width?h=c.left*-1:c.left+a.width>f.width?h=(c.left+a.width-f.width)*-1:h=0,e.style.top=p+"px",e.style.left=h+"px"}}},{key:"flipfitCollision",value:function(e,o){var a=this,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left top",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"left bottom",f=arguments.length>4?arguments[4]:void 0;if(e&&o){var p=o.getBoundingClientRect(),h=this.getViewport(),m=u.split(" "),b=c.split(" "),w=function(_,N){return N?+_.substring(_.search(/(\+|-)/g))||0:_.substring(0,_.search(/(\+|-)/g))||_},x={my:{x:w(m[0]),y:w(m[1]||m[0]),offsetX:w(m[0],!0),offsetY:w(m[1]||m[0],!0)},at:{x:w(b[0]),y:w(b[1]||b[0]),offsetX:w(b[0],!0),offsetY:w(b[1]||b[0],!0)}},k={left:function(){var _=x.my.offsetX+x.at.offsetX;return _+p.left+(x.my.x==="left"?0:-1*(x.my.x==="center"?a.getOuterWidth(e)/2:a.getOuterWidth(e)))},top:function(){var _=x.my.offsetY+x.at.offsetY;return _+p.top+(x.my.y==="top"?0:-1*(x.my.y==="center"?a.getOuterHeight(e)/2:a.getOuterHeight(e)))}},C={count:{x:0,y:0},left:function(){var _=k.left(),N=i.getWindowScrollLeft();e.style.left=_+N+"px",this.count.x===2?(e.style.left=N+"px",this.count.x=0):_<0&&(this.count.x++,x.my.x="left",x.at.x="right",x.my.offsetX*=-1,x.at.offsetX*=-1,this.right())},right:function(){var _=k.left()+i.getOuterWidth(o),N=i.getWindowScrollLeft();e.style.left=_+N+"px",this.count.x===2?(e.style.left=h.width-i.getOuterWidth(e)+N+"px",this.count.x=0):_+i.getOuterWidth(e)>h.width&&(this.count.x++,x.my.x="right",x.at.x="left",x.my.offsetX*=-1,x.at.offsetX*=-1,this.left())},top:function(){var _=k.top(),N=i.getWindowScrollTop();e.style.top=_+N+"px",this.count.y===2?(e.style.left=N+"px",this.count.y=0):_<0&&(this.count.y++,x.my.y="top",x.at.y="bottom",x.my.offsetY*=-1,x.at.offsetY*=-1,this.bottom())},bottom:function(){var _=k.top()+i.getOuterHeight(o),N=i.getWindowScrollTop();e.style.top=_+N+"px",this.count.y===2?(e.style.left=h.height-i.getOuterHeight(e)+N+"px",this.count.y=0):_+i.getOuterHeight(o)>h.height&&(this.count.y++,x.my.y="bottom",x.at.y="top",x.my.offsetY*=-1,x.at.offsetY*=-1,this.top())},center:function(_){if(_==="y"){var N=k.top()+i.getOuterHeight(o)/2;e.style.top=N+i.getWindowScrollTop()+"px",N<0?this.bottom():N+i.getOuterHeight(o)>h.height&&this.top()}else{var j=k.left()+i.getOuterWidth(o)/2;e.style.left=j+i.getWindowScrollLeft()+"px",j<0?this.left():j+i.getOuterWidth(e)>h.width&&this.right()}}};C[x.at.x]("x"),C[x.at.y]("y"),this.isFunction(f)&&f(x)}}},{key:"findCollisionPosition",value:function(e){if(e){var o=e==="top"||e==="bottom",a=e==="left"?"right":"left",u=e==="top"?"bottom":"top";return o?{axis:"y",my:"center ".concat(u),at:"center ".concat(e)}:{axis:"x",my:"".concat(a," center"),at:"".concat(e," center")}}}},{key:"getParents",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.parentNode===null?o:this.getParents(e.parentNode,o.concat([e.parentNode]))}},{key:"getScrollableParents",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=[];if(e){var u=this.getParents(e),c=/(auto|scroll)/,f=function($){var Y=$?getComputedStyle($):null;return Y&&(c.test(Y.getPropertyValue("overflow"))||c.test(Y.getPropertyValue("overflow-x"))||c.test(Y.getPropertyValue("overflow-y")))},p=function($){o&&a.push($.nodeName==="BODY"||$.nodeName==="HTML"||$.nodeType===9?window:$)},h=Ku(u),m;try{for(h.s();!(m=h.n()).done;){var b,w=m.value,x=w.nodeType===1&&((b=w.dataset)===null||b===void 0?void 0:b.scrollselectors);if(x){var k=x.split(","),C=Ku(k),O;try{for(C.s();!(O=C.n()).done;){var _=O.value,N=this.findSingle(w,_);N&&f(N)&&p(N)}}catch(j){C.e(j)}finally{C.f()}}w.nodeType===1&&f(w)&&p(w)}}catch(j){h.e(j)}finally{h.f()}}return a.some(function(j){return j===document.body||j===window})||a.push(o?window:document.body),a}},{key:"getHiddenElementOuterHeight",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var o=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",o}return 0}},{key:"getHiddenElementOuterWidth",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var o=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",o}return 0}},{key:"getHiddenElementDimensions",value:function(e){var o={};return e&&(e.style.visibility="hidden",e.style.display="block",o.width=e.offsetWidth,o.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),o}},{key:"fadeIn",value:function(e,o){if(e){e.style.opacity=0;var a=+new Date,u=0,c=function(){u=+e.style.opacity+(new Date().getTime()-a)/o,e.style.opacity=u,a=+new Date,+u<1&&(window.requestAnimationFrame&&requestAnimationFrame(c)||setTimeout(c,16))};c()}}},{key:"fadeOut",value:function(e,o){if(e)var a=1,u=50,c=u/o,f=setInterval(function(){a=a-c,a<=0&&(a=0,clearInterval(f)),e.style.opacity=a},u)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"appendChild",value:function(e,o){if(this.isElement(o))o.appendChild(e);else if(o.el&&o.el.nativeElement)o.el.nativeElement.appendChild(e);else throw new Error("Cannot append "+o+" to "+e)}},{key:"removeChild",value:function(e,o){if(this.isElement(o))o.removeChild(e);else if(o.el&&o.el.nativeElement)o.el.nativeElement.removeChild(e);else throw new Error("Cannot remove "+e+" from "+o)}},{key:"isElement",value:function(e){return(typeof HTMLElement>"u"?"undefined":cn(HTMLElement))==="object"?e instanceof HTMLElement:e&&cn(e)==="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}},{key:"scrollInView",value:function(e,o){var a=getComputedStyle(e).getPropertyValue("border-top-width"),u=a?parseFloat(a):0,c=getComputedStyle(e).getPropertyValue("padding-top"),f=c?parseFloat(c):0,p=e.getBoundingClientRect(),h=o.getBoundingClientRect(),m=h.top+document.body.scrollTop-(p.top+document.body.scrollTop)-u-f,b=e.scrollTop,w=e.clientHeight,x=this.getOuterHeight(o);m<0?e.scrollTop=b+m:m+x>w&&(e.scrollTop=b+m-w+x)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}},{key:"calculateScrollbarWidth",value:function(e){if(e){var o=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(o.borderLeftWidth)-parseFloat(o.borderRightWidth)}if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var a=document.createElement("div");a.className="p-scrollbar-measure",document.body.appendChild(a);var u=a.offsetWidth-a.clientWidth;return document.body.removeChild(a),this.calculatedScrollbarWidth=u,u}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var e=navigator.userAgent.toLowerCase(),o=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:o[1]||"",version:o[2]||"0"}}},{key:"blockBodyScroll",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden",o=!!document.body.style.getPropertyValue("--scrollbar-width");!o&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}},{key:"unblockBodyScroll",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}},{key:"isVisible",value:function(e){return e&&(e.clientHeight!==0||e.getClientRects().length!==0||getComputedStyle(e).display!=="none")}},{key:"isExist",value:function(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&e.parentNode)}},{key:"getFocusableElements",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=i.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(o,`,
|
|
44
|
+
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(o,`,
|
|
45
|
+
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(o,`,
|
|
46
|
+
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(o,`,
|
|
47
|
+
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(o,`,
|
|
48
|
+
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(o,`,
|
|
49
|
+
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(o)),u=[],c=Ku(a),f;try{for(c.s();!(f=c.n()).done;){var p=f.value;getComputedStyle(p).display!=="none"&&getComputedStyle(p).visibility!=="hidden"&&u.push(p)}}catch(h){c.e(h)}finally{c.f()}return u}},{key:"getFirstFocusableElement",value:function(e,o){var a=i.getFocusableElements(e,o);return a.length>0?a[0]:null}},{key:"getLastFocusableElement",value:function(e,o){var a=i.getFocusableElements(e,o);return a.length>0?a[a.length-1]:null}},{key:"focus",value:function(e,o){var a=o===void 0?!0:!o;e&&document.activeElement!==e&&e.focus({preventScroll:a})}},{key:"focusFirstElement",value:function(e,o){if(e){var a=i.getFirstFocusableElement(e);return a&&i.focus(a,o),a}}},{key:"getCursorOffset",value:function(e,o,a,u){if(e){var c=getComputedStyle(e),f=document.createElement("div");f.style.position="absolute",f.style.top="0px",f.style.left="0px",f.style.visibility="hidden",f.style.pointerEvents="none",f.style.overflow=c.overflow,f.style.width=c.width,f.style.height=c.height,f.style.padding=c.padding,f.style.border=c.border,f.style.overflowWrap=c.overflowWrap,f.style.whiteSpace=c.whiteSpace,f.style.lineHeight=c.lineHeight,f.innerHTML=o.replace(/\r\n|\r|\n/g,"<br />");var p=document.createElement("span");p.textContent=u,f.appendChild(p);var h=document.createTextNode(a);f.appendChild(h),document.body.appendChild(f);var m=p.offsetLeft,b=p.offsetTop,w=p.clientHeight;return document.body.removeChild(f),{left:Math.abs(m-e.scrollLeft),top:Math.abs(b-e.scrollTop)+w}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(e,o,a){e[o].apply(e,a)}},{key:"isClickable",value:function(e){var o=e.nodeName,a=e.parentElement&&e.parentElement.nodeName;return o==="INPUT"||o==="TEXTAREA"||o==="BUTTON"||o==="A"||a==="INPUT"||a==="TEXTAREA"||a==="BUTTON"||a==="A"||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(e,o){if(typeof o=="string")e.style.cssText=o;else for(var a in o)e.style[a]=o[a]}},{key:"exportCSV",value:function(e,o){var a=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(a,o+".csv");else{var u=i.saveAs({name:o+".csv",src:URL.createObjectURL(a)});u||(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}}},{key:"saveAs",value:function(e){if(e){var o=document.createElement("a");if(o.download!==void 0){var a=e.name,u=e.src;return o.setAttribute("href",u),o.setAttribute("download",a),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),!0}}return!1}},{key:"createInlineStyle",value:function(e,o){var a=document.createElement("style");return i.addNonce(a,e),o||(o=document.head),o.appendChild(a),a}},{key:"removeInlineStyle",value:function(e){if(this.isExist(e)){try{e.parentNode.removeChild(e)}catch{}e=null}return e}},{key:"addNonce",value:function(e,o){try{o||(o=jv.REACT_APP_CSS_NONCE)}catch{}o&&e.setAttribute("nonce",o)}},{key:"getTargetElement",value:function(e){if(!e)return null;if(e==="document")return document;if(e==="window")return window;if(cn(e)==="object"&&e.hasOwnProperty("current"))return this.isExist(e.current)?e.current:null;var o=function(c){return!!(c&&c.constructor&&c.call&&c.apply)},a=o(e)?e():e;return a&&a.nodeType===9||this.isExist(a)?a:null}},{key:"getAttributeNames",value:function(e){var o,a,u;for(a=[],u=e.attributes,o=0;o<u.length;++o)a.push(u[o].nodeName);return a.sort(),a}},{key:"isEqualElement",value:function(e,o){var a,u,c,f,p;if(a=i.getAttributeNames(e),u=i.getAttributeNames(o),a.join(",")!==u.join(","))return!1;for(var h=0;h<a.length;++h)if(c=a[h],c==="style")for(var m=e.style,b=o.style,w=/^\d+$/,x=0,k=Object.keys(m);x<k.length;x++){var C=k[x];if(!w.test(C)&&m[C]!==b[C])return!1}else if(e.getAttribute(c)!==o.getAttribute(c))return!1;for(f=e.firstChild,p=o.firstChild;f&&p;f=f.nextSibling,p=p.nextSibling){if(f.nodeType!==p.nodeType)return!1;if(f.nodeType===1){if(!i.isEqualElement(f,p))return!1}else if(f.nodeValue!==p.nodeValue)return!1}return!(f||p)}},{key:"hasCSSAnimation",value:function(e){if(e){var o=getComputedStyle(e),a=parseFloat(o.getPropertyValue("animation-duration")||"0");return a>0}return!1}},{key:"hasCSSTransition",value:function(e){if(e){var o=getComputedStyle(e),a=parseFloat(o.getPropertyValue("transition-duration")||"0");return a>0}return!1}}])}();es(H,"DATA_PROPS",["data-"]);es(H,"ARIA_PROPS",["aria","focus-target"]);function Uv(){var i=new Map;return{on:function(e,o){var a=i.get(e);a?a.push(o):a=[o],i.set(e,a)},off:function(e,o){var a=i.get(e);a&&a.splice(a.indexOf(o)>>>0,1)},emit:function(e,o){var a=i.get(e);a&&a.slice().forEach(function(u){return u(o)})}}}function tc(){return tc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},tc.apply(this,arguments)}function Kv(i,n){var e=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!e){if(Array.isArray(i)||(e=Wv(i))||n){e&&(i=e);var o=0,a=function(){};return{s:a,n:function(){return o>=i.length?{done:!0}:{done:!1,value:i[o++]}},e:function(h){throw h},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
50
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,c=!1,f;return{s:function(){e=e.call(i)},n:function(){var h=e.next();return u=h.done,h},e:function(h){c=!0,f=h},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(c)throw f}}}}function Wv(i,n){if(i){if(typeof i=="string")return Rp(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Rp(i,n)}}function Rp(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}var V=function(){function i(){Bc(this,i)}return Uc(i,null,[{key:"equals",value:function(e,o,a){return a&&e&&cn(e)==="object"&&o&&cn(o)==="object"?this.deepEquals(this.resolveFieldData(e,a),this.resolveFieldData(o,a)):this.deepEquals(e,o)}},{key:"deepEquals",value:function(e,o){if(e===o)return!0;if(e&&o&&cn(e)==="object"&&cn(o)==="object"){var a=Array.isArray(e),u=Array.isArray(o),c,f,p;if(a&&u){if(f=e.length,f!==o.length)return!1;for(c=f;c--!==0;)if(!this.deepEquals(e[c],o[c]))return!1;return!0}if(a!==u)return!1;var h=e instanceof Date,m=o instanceof Date;if(h!==m)return!1;if(h&&m)return e.getTime()===o.getTime();var b=e instanceof RegExp,w=o instanceof RegExp;if(b!==w)return!1;if(b&&w)return e.toString()===o.toString();var x=Object.keys(e);if(f=x.length,f!==Object.keys(o).length)return!1;for(c=f;c--!==0;)if(!Object.prototype.hasOwnProperty.call(o,x[c]))return!1;for(c=f;c--!==0;)if(p=x[c],!this.deepEquals(e[p],o[p]))return!1;return!0}return e!==e&&o!==o}},{key:"resolveFieldData",value:function(e,o){if(!e||!o)return null;try{var a=e[o];if(this.isNotEmpty(a))return a}catch{}if(Object.keys(e).length){if(this.isFunction(o))return o(e);if(this.isNotEmpty(e[o]))return e[o];if(o.indexOf(".")===-1)return e[o];for(var u=o.split("."),c=e,f=0,p=u.length;f<p;++f){if(c==null)return null;c=c[u[f]]}return c}return null}},{key:"findDiffKeys",value:function(e,o){return!e||!o?{}:Object.keys(e).filter(function(a){return!o.hasOwnProperty(a)}).reduce(function(a,u){return a[u]=e[u],a},{})}},{key:"reduceKeys",value:function(e,o){var a={};return!e||!o||o.length===0||Object.keys(e).filter(function(u){return o.some(function(c){return u.startsWith(c)})}).forEach(function(u){a[u]=e[u],delete e[u]}),a}},{key:"reorderArray",value:function(e,o,a){e&&o!==a&&(a>=e.length&&(a=a%e.length,o=o%e.length),e.splice(a,0,e.splice(o,1)[0]))}},{key:"findIndexInList",value:function(e,o,a){var u=this;return o?a?o.findIndex(function(c){return u.equals(c,e,a)}):o.findIndex(function(c){return c===e}):-1}},{key:"getJSXElement",value:function(e){for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];return this.isFunction(e)?e.apply(void 0,a):e}},{key:"getItemValue",value:function(e){for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];return this.isFunction(e)?e.apply(void 0,a):e}},{key:"getProp",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=e?e[o]:void 0;return u===void 0?a[o]:u}},{key:"getPropCaseInsensitive",value:function(e,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=this.toFlatCase(o);for(var c in e)if(e.hasOwnProperty(c)&&this.toFlatCase(c)===u)return e[c];for(var f in a)if(a.hasOwnProperty(f)&&this.toFlatCase(f)===u)return a[f]}},{key:"getMergedProps",value:function(e,o){return Object.assign({},o,e)}},{key:"getDiffProps",value:function(e,o){return this.findDiffKeys(e,o)}},{key:"getPropValue",value:function(e){if(!this.isFunction(e))return e;for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];if(a.length===1){var c=a[0];return e(Array.isArray(c)?c[0]:c)}return e(a)}},{key:"getComponentProp",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.isNotEmpty(e)?this.getProp(e.props,o,a):void 0}},{key:"getComponentProps",value:function(e,o){return this.isNotEmpty(e)?this.getMergedProps(e.props,o):void 0}},{key:"getComponentDiffProps",value:function(e,o){return this.isNotEmpty(e)?this.getDiffProps(e.props,o):void 0}},{key:"isValidChild",value:function(e,o,a){if(e){var u,c=this.getComponentProp(e,"__TYPE")||(e.type?e.type.displayName:void 0);!c&&e!==null&&e!==void 0&&(u=e.type)!==null&&u!==void 0&&(u=u._payload)!==null&&u!==void 0&&u.value&&(c=e.type._payload.value.find(function(h){return h===o}));var f=c===o;try{var p}catch{}return f}return!1}},{key:"getRefElement",value:function(e){return e?cn(e)==="object"&&e.hasOwnProperty("current")?e.current:e:null}},{key:"combinedRefs",value:function(e,o){e&&o&&(typeof o=="function"?o(e.current):o.current=e.current)}},{key:"removeAccents",value:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}},{key:"toFlatCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}},{key:"toCapitalCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e[0].toUpperCase()+e.slice(1):e}},{key:"trim",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.trim():e}},{key:"isEmpty",value:function(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&cn(e)==="object"&&Object.keys(e).length===0}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isObject",value:function(e){return e!==null&&e instanceof Object&&e.constructor===Object}},{key:"isDate",value:function(e){return e!==null&&e instanceof Date&&e.constructor===Date}},{key:"isArray",value:function(e){return e!==null&&Array.isArray(e)}},{key:"isString",value:function(e){return e!==null&&typeof e=="string"}},{key:"isPrintableCharacter",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return this.isNotEmpty(e)&&e.length===1&&e.match(/\S| /)}},{key:"isLetter",value:function(e){return/^[a-zA-Z\u00C0-\u017F]$/.test(e)}},{key:"isScalar",value:function(e){return e!=null&&(typeof e=="string"||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean")}},{key:"findLast",value:function(e,o){var a;if(this.isNotEmpty(e))try{a=e.findLast(o)}catch{a=Hl(e).reverse().find(o)}return a}},{key:"findLastIndex",value:function(e,o){var a=-1;if(this.isNotEmpty(e))try{a=e.findLastIndex(o)}catch{a=e.lastIndexOf(Hl(e).reverse().find(o))}return a}},{key:"sort",value:function(e,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3?arguments[3]:void 0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,f=this.compare(e,o,u,a),p=a;return(this.isEmpty(e)||this.isEmpty(o))&&(p=c===1?a:c),p*f}},{key:"compare",value:function(e,o,a){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,c=-1,f=this.isEmpty(e),p=this.isEmpty(o);return f&&p?c=0:f?c=u:p?c=-u:typeof e=="string"&&typeof o=="string"?c=a(e,o):c=e<o?-1:e>o?1:0,c}},{key:"localeComparator",value:function(e){return new Intl.Collator(e,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(e,o){var a=Kv(e),u;try{for(a.s();!(u=a.n()).done;){var c=u.value;if(c.key===o)return c.children||[];if(c.children){var f=this.findChildrenByKey(c.children,o);if(f.length>0)return f}}}catch(p){a.e(p)}finally{a.f()}return[]}},{key:"mutateFieldData",value:function(e,o,a){if(!(cn(e)!=="object"||typeof o!="string"))for(var u=o.split("."),c=e,f=0,p=u.length;f<p;++f){if(f+1-p===0){c[u[f]]=a;break}c[u[f]]||(c[u[f]]={}),c=c[u[f]]}}}])}(),_p=0;function ba(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pr_id_";return _p++,"".concat(i).concat(_p)}function Lp(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function Gv(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Lp(Object(e),!0).forEach(function(o){es(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Lp(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var jr=function(){function i(){Bc(this,i)}return Uc(i,null,[{key:"getJSXIcon",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=null;if(e!==null){var c=cn(e),f=Be(o.className,c==="string"&&e);if(u=v.createElement("span",tc({},o,{className:f,key:ba("icon")})),c!=="string"){var p=Gv({iconProps:o,element:u},a);return V.getJSXElement(e,p)}}return u}}])}();function jp(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function $p(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?jp(Object(e),!0).forEach(function(o){es(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):jp(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}function Vl(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i){var e=function(c){return typeof c=="function"},o=n.classNameMergeFunction,a=e(o);return i.reduce(function(u,c){if(!c)return u;var f=function(){var m=c[p];if(p==="style")u.style=$p($p({},u.style),c.style);else if(p==="className"){var b="";a?b=o(u.className,c.className):b=[u.className,c.className].join(" ").trim(),u.className=b||void 0}else if(e(m)){var w=u[p];u[p]=w?function(){w.apply(void 0,arguments),m.apply(void 0,arguments)}:m}else u[p]=m};for(var p in c)f();return u},{})}}function Yv(){var i=[],n=function(f,p){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:999,m=a(f,p,h),b=m.value+(m.key===f?0:h)+1;return i.push({key:f,value:b}),b},e=function(f){i=i.filter(function(p){return p.value!==f})},o=function(f,p){return a(f,p).value},a=function(f,p){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Hl(i).reverse().find(function(m){return p?!0:m.key===f})||{key:f,value:h}},u=function(f){return f&&parseInt(f.style.zIndex,10)||0};return{get:u,set:function(f,p,h,m){p&&(p.style.zIndex=String(n(f,h,m)))},clear:function(f){f&&(e(Sr.get(f)),f.style.zIndex="")},getCurrent:function(f,p){return o(f,p)}}}var Sr=Yv(),ot=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});function Ap(i,n){var e=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!e){if(Array.isArray(i)||(e=Qv(i))||n){e&&(i=e);var o=0,a=function(){};return{s:a,n:function(){return o>=i.length?{done:!0}:{done:!1,value:i[o++]}},e:function(h){throw h},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
51
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,c=!1,f;return{s:function(){e=e.call(i)},n:function(){var h=e.next();return u=h.done,h},e:function(h){c=!0,f=h},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(c)throw f}}}}function Qv(i,n){if(i){if(typeof i=="string")return Dp(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Dp(i,n)}}function Dp(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}var zp={filter:function(n,e,o,a,u){var c=[];if(!n)return c;var f=Ap(n),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;if(typeof h=="string"){if(this.filters[a](h,o,u)){c.push(h);continue}}else{var m=Ap(e),b;try{for(m.s();!(b=m.n()).done;){var w=b.value,x=V.resolveFieldData(h,w);if(this.filters[a](x,o,u)){c.push(h);break}}}catch(k){m.e(k)}finally{m.f()}}}}catch(k){f.e(k)}finally{f.f()}return c},filters:{startsWith:function(n,e,o){if(e==null||e.trim()==="")return!0;if(n==null)return!1;var a=V.removeAccents(e.toString()).toLocaleLowerCase(o),u=V.removeAccents(n.toString()).toLocaleLowerCase(o);return u.slice(0,a.length)===a},contains:function(n,e,o){if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(n==null)return!1;var a=V.removeAccents(e.toString()).toLocaleLowerCase(o),u=V.removeAccents(n.toString()).toLocaleLowerCase(o);return u.indexOf(a)!==-1},notContains:function(n,e,o){if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(n==null)return!1;var a=V.removeAccents(e.toString()).toLocaleLowerCase(o),u=V.removeAccents(n.toString()).toLocaleLowerCase(o);return u.indexOf(a)===-1},endsWith:function(n,e,o){if(e==null||e.trim()==="")return!0;if(n==null)return!1;var a=V.removeAccents(e.toString()).toLocaleLowerCase(o),u=V.removeAccents(n.toString()).toLocaleLowerCase(o);return u.indexOf(a,u.length-a.length)!==-1},equals:function(n,e,o){return e==null||typeof e=="string"&&e.trim()===""?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()===e.getTime():V.removeAccents(n.toString()).toLocaleLowerCase(o)===V.removeAccents(e.toString()).toLocaleLowerCase(o)},notEquals:function(n,e,o){return e==null||typeof e=="string"&&e.trim()===""||n==null?!0:n.getTime&&e.getTime?n.getTime()!==e.getTime():V.removeAccents(n.toString()).toLocaleLowerCase(o)!==V.removeAccents(e.toString()).toLocaleLowerCase(o)},in:function(n,e){if(e==null||e.length===0)return!0;for(var o=0;o<e.length;o++)if(V.equals(n,e[o]))return!0;return!1},notIn:function(n,e){if(e==null||e.length===0)return!0;for(var o=0;o<e.length;o++)if(V.equals(n,e[o]))return!1;return!0},between:function(n,e){return e==null||e[0]==null||e[1]==null?!0:n==null?!1:n.getTime?e[0].getTime()<=n.getTime()&&n.getTime()<=e[1].getTime():e[0]<=n&&n<=e[1]},lt:function(n,e){return e==null?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()<e.getTime():n<e},lte:function(n,e){return e==null?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()<=e.getTime():n<=e},gt:function(n,e){return e==null?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()>e.getTime():n>e},gte:function(n,e){return e==null?!0:n==null?!1:n.getTime&&e.getTime?n.getTime()>=e.getTime():n>=e},dateIs:function(n,e){return e==null?!0:n==null?!1:n.toDateString()===e.toDateString()},dateIsNot:function(n,e){return e==null?!0:n==null?!1:n.toDateString()!==e.toDateString()},dateBefore:function(n,e){return e==null?!0:n==null?!1:n.getTime()<e.getTime()},dateAfter:function(n,e){return e==null?!0:n==null?!1:n.getTime()>e.getTime()}},register:function(n,e){this.filters[n]=e}};function la(i){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},la(i)}function Xv(i,n){if(la(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(la(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function qv(i){var n=Xv(i,"string");return la(n)==="symbol"?n:String(n)}function er(i,n,e){return n=qv(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function Zv(i,n,e){return Object.defineProperty(i,"prototype",{writable:!1}),i}function Jv(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}var Wt=Zv(function i(){Jv(this,i)});er(Wt,"ripple",!1);er(Wt,"inputStyle","outlined");er(Wt,"locale","en");er(Wt,"appendTo",null);er(Wt,"cssTransition",!0);er(Wt,"autoZIndex",!0);er(Wt,"hideOverlaysOnDocumentScrolling",!1);er(Wt,"nonce",null);er(Wt,"nullSortOrder",1);er(Wt,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200});er(Wt,"pt",void 0);er(Wt,"filterMatchModeOptions",{text:[ot.STARTS_WITH,ot.CONTAINS,ot.NOT_CONTAINS,ot.ENDS_WITH,ot.EQUALS,ot.NOT_EQUALS],numeric:[ot.EQUALS,ot.NOT_EQUALS,ot.LESS_THAN,ot.LESS_THAN_OR_EQUAL_TO,ot.GREATER_THAN,ot.GREATER_THAN_OR_EQUAL_TO],date:[ot.DATE_IS,ot.DATE_IS_NOT,ot.DATE_BEFORE,ot.DATE_AFTER]});er(Wt,"changeTheme",function(i,n,e,o){var a,u=document.getElementById(e);if(!u)throw Error("Element with id ".concat(e," not found."));var c=u.getAttribute("href").replace(i,n),f=document.createElement("link");f.setAttribute("rel","stylesheet"),f.setAttribute("id",e),f.setAttribute("href",c),f.addEventListener("load",function(){o&&o()}),(a=u.parentNode)===null||a===void 0||a.replaceChild(f,u)});var ey={en:{accept:"Yes",addRule:"Add Rule",am:"AM",apply:"Apply",cancel:"Cancel",choose:"Choose",chooseDate:"Choose Date",chooseMonth:"Choose Month",chooseYear:"Choose Year",clear:"Clear",completed:"Completed",contains:"Contains",custom:"Custom",dateAfter:"Date is after",dateBefore:"Date is before",dateFormat:"mm/dd/yy",dateIs:"Date is",dateIsNot:"Date is not",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],emptyFilterMessage:"No results found",emptyMessage:"No available options",emptySearchMessage:"No results found",emptySelectionMessage:"No selected item",endsWith:"Ends with",equals:"Equals",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],filter:"Filter",firstDayOfWeek:0,gt:"Greater than",gte:"Greater than or equal to",lt:"Less than",lte:"Less than or equal to",matchAll:"Match All",matchAny:"Match Any",medium:"Medium",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],nextDecade:"Next Decade",nextHour:"Next Hour",nextMinute:"Next Minute",nextMonth:"Next Month",nextSecond:"Next Second",nextYear:"Next Year",noFilter:"No Filter",notContains:"Not contains",notEquals:"Not equals",now:"Now",passwordPrompt:"Enter a password",pending:"Pending",pm:"PM",prevDecade:"Previous Decade",prevHour:"Previous Hour",prevMinute:"Previous Minute",prevMonth:"Previous Month",prevSecond:"Previous Second",prevYear:"Previous Year",reject:"No",removeRule:"Remove Rule",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",showMonthAfterYear:!1,startsWith:"Starts with",strong:"Strong",today:"Today",upload:"Upload",weak:"Weak",weekHeader:"Wk",aria:{cancelEdit:"Cancel Edit",close:"Close",collapseRow:"Row Collapsed",editRow:"Edit Row",expandRow:"Row Expanded",falseLabel:"False",filterConstraint:"Filter Constraint",filterOperator:"Filter Operator",firstPageLabel:"First Page",gridView:"Grid View",hideFilterMenu:"Hide Filter Menu",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",lastPageLabel:"Last Page",listLabel:"Option List",listView:"List View",moveAllToSource:"Move All to Source",moveAllToTarget:"Move All to Target",moveBottom:"Move Bottom",moveDown:"Move Down",moveToSource:"Move to Source",moveToTarget:"Move to Target",moveTop:"Move Top",moveUp:"Move Up",navigation:"Navigation",next:"Next",nextPageLabel:"Next Page",nullLabel:"Not Selected",pageLabel:"Page {page}",otpLabel:"Please enter one time password character {0}",passwordHide:"Hide Password",passwordShow:"Show Password",previous:"Previous",prevPageLabel:"Previous Page",rotateLeft:"Rotate Left",rotateRight:"Rotate Right",rowsPerPageLabel:"Rows per page",saveEdit:"Save Edit",scrollTop:"Scroll Top",selectAll:"All items selected",selectRow:"Row Selected",showFilterMenu:"Show Filter Menu",slide:"Slide",slideNumber:"{slideNumber}",star:"1 star",stars:"{star} stars",trueLabel:"True",unselectAll:"All items unselected",unselectRow:"Row Unselected",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out"}}};function nc(i,n){if(i.includes("__proto__")||i.includes("prototype"))throw new Error("Unsafe key detected");var e=Wt.locale;try{return Vg(e)[i]}catch{throw new Error("The ".concat(i," option is not found in the current locale('").concat(e,"')."))}}function rc(i,n){if(i.includes("__proto__")||i.includes("prototype"))throw new Error("Unsafe ariaKey detected");var e=Wt.locale;try{var o=Vg(e).aria[i];if(o)for(var a in n)n.hasOwnProperty(a)&&(o=o.replace("{".concat(a,"}"),n[a]));return o}catch{throw new Error("The ".concat(i," option is not found in the current locale('").concat(e,"')."))}}function Vg(i){var n=i||Wt.locale;if(n.includes("__proto__")||n.includes("prototype"))throw new Error("Unsafe locale detected");return ey[n]}function ty(i){if(Array.isArray(i))return i}function ny(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n!==0)for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function Fp(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function ry(i,n){if(i){if(typeof i=="string")return Fp(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Fp(i,n)}}function iy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
52
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(i,n){return ty(i)||ny(i,n)||ry(i,n)||iy()}var Gt=Tt.createContext(),Mp=function(n){var e,o,a,u,c,f,p,h,m,b,w,x,k,C,O,_,N=(e=n.value)!==null&&e!==void 0?e:{},j=v.useState((o=N.ripple)!==null&&o!==void 0?o:!1),$=Dn(j,2),Y=$[0],ie=$[1],Q=v.useState((a=N.inputStyle)!==null&&a!==void 0?a:"outlined"),D=Dn(Q,2),F=D[0],q=D[1],K=v.useState((u=N.locale)!==null&&u!==void 0?u:"en"),se=Dn(K,2),oe=se[0],ye=se[1],X=v.useState((c=N.appendTo)!==null&&c!==void 0?c:null),ve=Dn(X,2),ke=ve[0],z=ve[1],J=v.useState((f=N.styleContainer)!==null&&f!==void 0?f:null),B=Dn(J,2),P=B[0],U=B[1],ce=v.useState((p=N.cssTransition)!==null&&p!==void 0?p:!0),de=Dn(ce,2),Te=de[0],ze=de[1],Me=v.useState((h=N.autoZIndex)!==null&&h!==void 0?h:!0),Ue=Dn(Me,2),Ye=Ue[0],st=Ue[1],Ht=v.useState((m=N.hideOverlaysOnDocumentScrolling)!==null&&m!==void 0?m:!1),jt=Dn(Ht,2),nt=jt[0],rt=jt[1],fn=v.useState((b=N.nonce)!==null&&b!==void 0?b:null),Et=Dn(fn,2),It=Et[0],Jt=Et[1],en=v.useState((w=N.nullSortOrder)!==null&&w!==void 0?w:1),$t=Dn(en,2),ht=$t[0],ft=$t[1],Pn=v.useState((x=N.zIndex)!==null&&x!==void 0?x:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),Nt=Dn(Pn,2),dn=Nt[0],Rt=Nt[1],Tn=v.useState((k=N.ptOptions)!==null&&k!==void 0?k:{mergeSections:!0,mergeProps:!0}),Yt=Dn(Tn,2),Qt=Yt[0],bt=Yt[1],_t=v.useState((C=N.pt)!==null&&C!==void 0?C:void 0),In=Dn(_t,2),Ct=In[0],Nn=In[1],tn=v.useState((O=N.unstyled)!==null&&O!==void 0?O:!1),Fe=Dn(tn,2),ae=Fe[0],he=Fe[1],Ke=v.useState((_=N.filterMatchModeOptions)!==null&&_!==void 0?_:{text:[ot.STARTS_WITH,ot.CONTAINS,ot.NOT_CONTAINS,ot.ENDS_WITH,ot.EQUALS,ot.NOT_EQUALS],numeric:[ot.EQUALS,ot.NOT_EQUALS,ot.LESS_THAN,ot.LESS_THAN_OR_EQUAL_TO,ot.GREATER_THAN,ot.GREATER_THAN_OR_EQUAL_TO],date:[ot.DATE_IS,ot.DATE_IS_NOT,ot.DATE_BEFORE,ot.DATE_AFTER]}),Oe=Dn(Ke,2),M=Oe[0],me=Oe[1],De=function(Ze,Je,pn,nn){var Vt,At=document.getElementById(pn);if(!At)throw Error("Element with id ".concat(pn," not found."));var gn=At.getAttribute("href").replace(Ze,Je),rn=document.createElement("link");rn.setAttribute("rel","stylesheet"),rn.setAttribute("id",pn),rn.setAttribute("href",gn),rn.addEventListener("load",function(){nn&&nn()}),(Vt=At.parentNode)===null||Vt===void 0||Vt.replaceChild(rn,At)};Tt.useEffect(function(){Wt.ripple=Y},[Y]),Tt.useEffect(function(){Wt.inputStyle=F},[F]),Tt.useEffect(function(){Wt.locale=oe},[oe]);var _e={changeTheme:De,ripple:Y,setRipple:ie,inputStyle:F,setInputStyle:q,locale:oe,setLocale:ye,appendTo:ke,setAppendTo:z,styleContainer:P,setStyleContainer:U,cssTransition:Te,setCssTransition:ze,autoZIndex:Ye,setAutoZIndex:st,hideOverlaysOnDocumentScrolling:nt,setHideOverlaysOnDocumentScrolling:rt,nonce:It,setNonce:Jt,nullSortOrder:ht,setNullSortOrder:ft,zIndex:dn,setZIndex:Rt,ptOptions:Qt,setPtOptions:bt,pt:Ct,setPt:Nn,filterMatchModeOptions:M,setFilterMatchModeOptions:me,unstyled:ae,setUnstyled:he};return Tt.createElement(Gt.Provider,{value:_e},n.children)},Mt=Wt;function oy(i){if(Array.isArray(i))return i}function ay(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n===0){if(Object(e)!==e)return;p=!1}else for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function ic(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function Bg(i,n){if(i){if(typeof i=="string")return ic(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ic(i,n)}}function ly(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
53
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nr(i,n){return oy(i)||ay(i,n)||Bg(i,n)||ly()}var sa=function(n){var e=v.useRef(null);return v.useEffect(function(){return e.current=n,function(){e.current=null}},[n]),e.current},$r=function(n){return v.useEffect(function(){return n},[])},Rr=function(n){var e=n.target,o=e===void 0?"document":e,a=n.type,u=n.listener,c=n.options,f=n.when,p=f===void 0?!0:f,h=v.useRef(null),m=v.useRef(null),b=sa(u),w=sa(c),x=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=N.target;V.isNotEmpty(j)&&(k(),(N.when||p)&&(h.current=H.getTargetElement(j))),!m.current&&h.current&&(m.current=function($){return u&&u($)},h.current.addEventListener(a,m.current,c))},k=function(){m.current&&(h.current.removeEventListener(a,m.current,c),m.current=null)},C=function(){k(),b=null,w=null},O=v.useCallback(function(){p?h.current=H.getTargetElement(o):(k(),h.current=null)},[o,p]);return v.useEffect(function(){O()},[O]),v.useEffect(function(){var _="".concat(b)!=="".concat(u),N=w!==c,j=m.current;j&&(_||N)?(k(),p&&x()):j||C()},[u,c,p]),$r(function(){C()}),[x,k]},sy=function(n,e){var o=v.useState(n),a=Nr(o,2),u=a[0],c=a[1],f=v.useState(n),p=Nr(f,2),h=p[0],m=p[1],b=v.useRef(!1),w=v.useRef(null),x=function(){return window.clearTimeout(w.current)};return Ar(function(){b.current=!0}),$r(function(){x()}),v.useEffect(function(){b.current&&(x(),w.current=window.setTimeout(function(){m(u)},e))},[u,e]),[u,h,c]},Ri={},Ug=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=v.useState(function(){return ba()}),a=Nr(o,1),u=a[0],c=v.useState(0),f=Nr(c,2),p=f[0],h=f[1];return v.useEffect(function(){if(e){Ri[n]||(Ri[n]=[]);var m=Ri[n].push(u);return h(m),function(){delete Ri[n][m-1];var b=Ri[n].length-1,w=V.findLastIndex(Ri[n],function(x){return x!==void 0});w!==b&&Ri[n].splice(w+1),h(void 0)}}},[n,u,e]),p};function uy(i){if(Array.isArray(i))return ic(i)}function cy(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function fy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
54
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hp(i){return uy(i)||cy(i)||Bg(i)||fy()}var Kg={DIALOG:300,TOOLTIP:1200},Wg={escKeyListeners:new Map,onGlobalKeyDown:function(n){if(n.code==="Escape"){var e=Wg.escKeyListeners,o=Math.max.apply(Math,Hp(e.keys())),a=e.get(o),u=Math.max.apply(Math,Hp(a.keys())),c=a.get(u);c(n)}},refreshGlobalKeyDownListener:function(){var n=H.getTargetElement("document");this.escKeyListeners.size>0?n.addEventListener("keydown",this.onGlobalKeyDown):n.removeEventListener("keydown",this.onGlobalKeyDown)},addListener:function(n,e){var o=this,a=Nr(e,2),u=a[0],c=a[1],f=this.escKeyListeners;f.has(u)||f.set(u,new Map);var p=f.get(u);if(p.has(c))throw new Error("Unexpected: global esc key listener with priority [".concat(u,", ").concat(c,"] already exists."));return p.set(c,n),this.refreshGlobalKeyDownListener(),function(){p.delete(c),p.size===0&&f.delete(u),o.refreshGlobalKeyDownListener()}}},Gg=function(n){var e=n.callback,o=n.when,a=n.priority;v.useEffect(function(){if(o)return Wg.addListener(e,a)},[e,o,a])},Yn=function(){var n=v.useContext(Gt);return function(){for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];return Vl(o,n==null?void 0:n.ptOptions)}},Ar=function(n){var e=v.useRef(!1);return v.useEffect(function(){if(!e.current)return e.current=!0,n&&n()},[])},Yg=function(n){var e=n.target,o=n.listener,a=n.options,u=n.when,c=u===void 0?!0:u,f=v.useContext(Gt),p=v.useRef(null),h=v.useRef(null),m=v.useRef([]),b=sa(o),w=sa(a),x=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(V.isNotEmpty(N.target)&&(k(),(N.when||c)&&(p.current=H.getTargetElement(N.target))),!h.current&&p.current){var j=f?f.hideOverlaysOnDocumentScrolling:Mt.hideOverlaysOnDocumentScrolling,$=m.current=H.getScrollableParents(p.current,j);h.current=function(Y){return o&&o(Y)},$.forEach(function(Y){return Y.addEventListener("scroll",h.current,a)})}},k=function(){if(h.current){var N=m.current;N.forEach(function(j){return j.removeEventListener("scroll",h.current,a)}),h.current=null}},C=function(){k(),m.current=null,b=null,w=null},O=v.useCallback(function(){c?p.current=H.getTargetElement(e):(k(),p.current=null)},[e,c]);return v.useEffect(function(){O()},[O]),v.useEffect(function(){var _="".concat(b)!=="".concat(o),N=w!==a,j=h.current;j&&(_||N)?(k(),c&&x()):j||C()},[o,a,c]),$r(function(){C()}),[x,k]},Kc=function(n){var e=n.listener,o=n.when,a=o===void 0?!0:o;return Rr({target:"window",type:"resize",listener:e,when:a})},dy=function(n){var e=n.target,o=n.overlay,a=n.listener,u=n.when,c=u===void 0?!0:u,f=n.type,p=f===void 0?"click":f,h=v.useRef(null),m=v.useRef(null),b=Rr({target:"window",type:p,listener:function(X){a&&a(X,{type:"outside",valid:X.which!==3&&K(X)})}}),w=Nr(b,2),x=w[0],k=w[1],C=Kc({listener:function(X){a&&a(X,{type:"resize",valid:!H.isTouchDevice()})}}),O=Nr(C,2),_=O[0],N=O[1],j=Rr({target:"window",type:"orientationchange",listener:function(X){a&&a(X,{type:"orientationchange",valid:!0})}}),$=Nr(j,2),Y=$[0],ie=$[1],Q=Yg({target:e,listener:function(X){a&&a(X,{type:"scroll",valid:!0})}}),D=Nr(Q,2),F=D[0],q=D[1],K=function(X){return h.current&&!(h.current.isSameNode(X.target)||h.current.contains(X.target)||m.current&&m.current.contains(X.target))},se=function(){x(),_(),Y(),F()},oe=function(){k(),N(),ie(),q()};return v.useEffect(function(){c?(h.current=H.getTargetElement(e),m.current=H.getTargetElement(o)):(oe(),h.current=m.current=null)},[e,o,c]),$r(function(){oe()}),[se,oe]},py=0,ji=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=v.useState(!1),a=Nr(o,2),u=a[0],c=a[1],f=v.useRef(null),p=v.useContext(Gt),h=H.isClient()?window.document:void 0,m=e.document,b=m===void 0?h:m,w=e.manual,x=w===void 0?!1:w,k=e.name,C=k===void 0?"style_".concat(++py):k,O=e.id,_=O===void 0?void 0:O,N=e.media,j=N===void 0?void 0:N,$=function(F){var q=F.querySelector('style[data-primereact-style-id="'.concat(C,'"]'));if(q)return q;if(_!==void 0){var K=b.getElementById(_);if(K)return K}return b.createElement("style")},Y=function(F){u&&n!==F&&(f.current.textContent=F)},ie=function(){if(!(!b||u)){var F=(p==null?void 0:p.styleContainer)||b.head;f.current=$(F),f.current.isConnected||(f.current.type="text/css",_&&(f.current.id=_),j&&(f.current.media=j),H.addNonce(f.current,p&&p.nonce||Mt.nonce),F.appendChild(f.current),C&&f.current.setAttribute("data-primereact-style-id",C)),f.current.textContent=n,c(!0)}},Q=function(){!b||!f.current||(H.removeInlineStyle(f.current),c(!1))};return v.useEffect(function(){x||ie()},[x]),{id:_,name:C,update:Y,unload:Q,load:ie,isLoaded:u}},Kt=function(n,e){var o=v.useRef(!1);return v.useEffect(function(){if(!o.current){o.current=!0;return}return n&&n()},e)};function oc(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function gy(i){if(Array.isArray(i))return oc(i)}function hy(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function my(i,n){if(i){if(typeof i=="string")return oc(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return oc(i,n)}}function vy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
55
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vp(i){return gy(i)||hy(i)||my(i)||vy()}function ua(i){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ua(i)}function yy(i,n){if(ua(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(ua(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function by(i){var n=yy(i,"string");return ua(n)==="symbol"?n:String(n)}function ac(i,n,e){return n=by(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function Bp(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function un(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Bp(Object(e),!0).forEach(function(o){ac(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Bp(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var wy=`
|
|
56
56
|
.p-hidden-accessible {
|
|
57
57
|
border: 0;
|
|
58
58
|
clip: rect(0 0 0 0);
|
|
@@ -71,7 +71,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
71
71
|
overflow: hidden;
|
|
72
72
|
padding-right: var(--scrollbar-width);
|
|
73
73
|
}
|
|
74
|
-
`,
|
|
74
|
+
`,Sy=`
|
|
75
75
|
.p-button {
|
|
76
76
|
margin: 0;
|
|
77
77
|
display: inline-flex;
|
|
@@ -150,7 +150,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
150
150
|
border-top-left-radius: var(--border-radius) !important;
|
|
151
151
|
border-bottom-left-radius: var(--border-radius) !important;
|
|
152
152
|
}
|
|
153
|
-
`,
|
|
153
|
+
`,xy=`
|
|
154
154
|
.p-inputtext {
|
|
155
155
|
margin: 0;
|
|
156
156
|
}
|
|
@@ -257,7 +257,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
257
257
|
display: block;
|
|
258
258
|
width: 100%;
|
|
259
259
|
}
|
|
260
|
-
`,
|
|
260
|
+
`,Ey=`
|
|
261
261
|
.p-icon {
|
|
262
262
|
display: inline-block;
|
|
263
263
|
}
|
|
@@ -297,7 +297,7 @@ svg.p-icon g,
|
|
|
297
297
|
transform: rotate(359deg);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
`,
|
|
300
|
+
`,Cy=`
|
|
301
301
|
@layer primereact {
|
|
302
302
|
.p-component, .p-component * {
|
|
303
303
|
box-sizing: border-box;
|
|
@@ -448,13 +448,13 @@ svg.p-icon g,
|
|
|
448
448
|
position: relative;
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
-
`.concat(
|
|
452
|
-
`).concat(Sy,`
|
|
451
|
+
`.concat(Sy,`
|
|
453
452
|
`).concat(xy,`
|
|
453
|
+
`).concat(Ey,`
|
|
454
454
|
}
|
|
455
|
-
`),tt={cProps:void 0,cParams:void 0,cName:void 0,defaultProps:{pt:void 0,ptOptions:void 0,unstyled:!1},context:{},globalCSS:void 0,classes:{},styles:"",extend:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.css,
|
|
456
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Up(
|
|
457
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function El(
|
|
455
|
+
`),tt={cProps:void 0,cParams:void 0,cName:void 0,defaultProps:{pt:void 0,ptOptions:void 0,unstyled:!1},context:{},globalCSS:void 0,classes:{},styles:"",extend:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.css,o=un(un({},n.defaultProps),tt.defaultProps),a={},u=function(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return tt.context=b,tt.cProps=m,V.getMergedProps(m,o)},c=function(m){return V.getDiffProps(m,o)},f=function(){var m,b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;b.hasOwnProperty("pt")&&b.pt!==void 0&&(b=b.pt);var C=w,O=/./g.test(C)&&!!x[C.split(".")[0]],_=O?V.toFlatCase(C.split(".")[1]):V.toFlatCase(C),N=x.hostName&&V.toFlatCase(x.hostName),j=N||x.props&&x.props.__TYPE&&V.toFlatCase(x.props.__TYPE)||"",$=_==="transition",Y="data-pc-",ie=function(z){return z!=null&&z.props?z.hostName?z.props.__TYPE===z.hostName?z.props:ie(z.parent):z.parent:void 0},Q=function(z){var J,B;return((J=x.props)===null||J===void 0?void 0:J[z])||((B=ie(x))===null||B===void 0?void 0:B[z])};tt.cParams=x,tt.cName=j;var D=Q("ptOptions")||tt.context.ptOptions||{},F=D.mergeSections,q=F===void 0?!0:F,K=D.mergeProps,se=K===void 0?!1:K,oe=function(){var z=Xr.apply(void 0,arguments);return Array.isArray(z)?{className:Be.apply(void 0,Vp(z))}:V.isString(z)?{className:z}:z!=null&&z.hasOwnProperty("className")&&Array.isArray(z.className)?{className:Be.apply(void 0,Vp(z.className))}:z},ye=k?O?Qg(oe,C,x):Xg(oe,C,x):void 0,X=O?void 0:ns(ts(b,j),oe,C,x),ve=!$&&un(un({},_==="root"&&ac({},"".concat(Y,"name"),x.props&&x.props.__parentMetadata?V.toFlatCase(x.props.__TYPE):j)),{},ac({},"".concat(Y,"section"),_));return q||!q&&X?se?Vl([ye,X,Object.keys(ve).length?ve:{}],{classNameMergeFunction:(m=tt.context.ptOptions)===null||m===void 0?void 0:m.classNameMergeFunction}):un(un(un({},ye),X),Object.keys(ve).length?ve:{}):un(un({},X),Object.keys(ve).length?ve:{})},p=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=m.props,w=m.state,x=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return f((b||{}).pt,j,un(un({},m),$))},k=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return f(j,$,Y,!1)},C=function(){return tt.context.unstyled||Mt.unstyled||b.unstyled},O=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C()?void 0:Xr(e&&e.classes,j,un({props:b,state:w},$))},_=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Y){var ie,Q=Xr(e&&e.inlineStyles,j,un({props:b,state:w},$)),D=Xr(a,j,un({props:b,state:w},$));return Vl([D,Q],{classNameMergeFunction:(ie=tt.context.ptOptions)===null||ie===void 0?void 0:ie.classNameMergeFunction})}};return{ptm:x,ptmo:k,sx:_,cx:O,isUnstyled:C}};return un(un({getProps:u,getOtherProps:c,setMetaData:p},n),{},{defaultProps:o})}},Xr=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=String(V.toFlatCase(e)).split("."),u=a.shift(),c=V.isNotEmpty(n)?Object.keys(n).find(function(f){return V.toFlatCase(f)===u}):"";return u?V.isObject(n)?Xr(V.getItemValue(n[c],o),a.join("."),o):void 0:V.getItemValue(n,o)},ts=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=n==null?void 0:n._usept,u=function(f){var p,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=o?o(f):f,b=V.toFlatCase(e);return(p=h?b!==tt.cName?m==null?void 0:m[b]:void 0:m==null?void 0:m[b])!==null&&p!==void 0?p:m};return V.isNotEmpty(a)?{_usept:a,originalValue:u(n.originalValue),value:u(n.value)}:u(n,!0)},ns=function(n,e,o,a){var u=function(C){return e(C,o,a)};if(n!=null&&n.hasOwnProperty("_usept")){var c=n._usept||tt.context.ptOptions||{},f=c.mergeSections,p=f===void 0?!0:f,h=c.mergeProps,m=h===void 0?!1:h,b=c.classNameMergeFunction,w=u(n.originalValue),x=u(n.value);return w===void 0&&x===void 0?void 0:V.isString(x)?x:V.isString(w)?w:p||!p&&x?m?Vl([w,x],{classNameMergeFunction:b}):un(un({},w),x):x}return u(n)},ky=function(){return ts(tt.context.pt||Mt.pt,void 0,function(n){return V.getItemValue(n,tt.cParams)})},Oy=function(){return ts(tt.context.pt||Mt.pt,void 0,function(n){return Xr(n,tt.cName,tt.cParams)||V.getItemValue(n,tt.cParams)})},Qg=function(n,e,o){return ns(ky(),n,e,o)},Xg=function(n,e,o){return ns(Oy(),n,e,o)},Dr=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},o=arguments.length>2?arguments[2]:void 0,a=o.name,u=o.styled,c=u===void 0?!1:u,f=o.hostName,p=f===void 0?"":f,h=Qg(Xr,"global.css",tt.cParams),m=V.toFlatCase(a),b=ji(wy,{name:"base",manual:!0}),w=b.load,x=ji(Cy,{name:"common",manual:!0}),k=x.load,C=ji(h,{name:"global",manual:!0}),O=C.load,_=ji(n,{name:a,manual:!0}),N=_.load,j=function(Y){if(!p){var ie=ns(ts((tt.cProps||{}).pt,m),Xr,"hooks.".concat(Y)),Q=Xg(Xr,"hooks.".concat(Y));ie==null||ie(),Q==null||Q()}};j("useMountEffect"),Ar(function(){w(),O(),e()||(k(),c||N())}),Kt(function(){j("useUpdateEffect")}),$r(function(){j("useUnmountEffect")})};function lc(){return lc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},lc.apply(this,arguments)}function sc(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function Py(i){if(Array.isArray(i))return sc(i)}function Ty(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function qg(i,n){if(i){if(typeof i=="string")return sc(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return sc(i,n)}}function Iy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
456
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Up(i){return Py(i)||Ty(i)||qg(i)||Iy()}function ca(i){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ca(i)}function Ny(i,n){if(ca(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(ca(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function Ry(i){var n=Ny(i,"string");return ca(n)==="symbol"?n:String(n)}function _y(i,n,e){return n=Ry(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function Ly(i){if(Array.isArray(i))return i}function jy(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n!==0)for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function $y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
457
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function El(i,n){return Ly(i)||jy(i,n)||qg(i,n)||$y()}var Ay={root:function(n){var e=n.props;return Be("p-splitter p-component p-splitter-".concat(e.layout))},gutter:"p-splitter-gutter",gutterHandler:"p-splitter-gutter-handle",panel:{root:"p-splitter-panel"}},Dy=`
|
|
458
458
|
@layer primereact {
|
|
459
459
|
.p-splitter {
|
|
460
460
|
display: flex;
|
|
@@ -516,8 +516,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
`,Cl=tt.extend({defaultProps:{__TYPE:"Splitter",className:null,gutterSize:4,id:null,step:5,layout:"horizontal",onResizeEnd:null,stateKey:null,stateStorage:"session",style:null,children:void 0},css:{classes:jy,styles:Ay}}),zl=tt.extend({defaultProps:{__TYPE:"SplitterPanel",className:null,minSize:null,size:null,style:null,children:void 0},getCProps:function(n){return V.getComponentProps(n,zl.defaultProps)},getCOtherProps:function(n){return V.getComponentDiffProps(n,zl.defaultProps)},getCProp:function(n,e){return V.getComponentProp(n,e,zl.defaultProps)}});function Kp(o,n){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),e.push.apply(e,i)}return e}function Wu(o){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Kp(Object(e),!0).forEach(function(i){Ry(o,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):Kp(Object(e)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(e,i))})}return o}var uc=function(){},qg=v.memo(v.forwardRef(function(o,n){var e=Yn(),i=v.useContext(Gt),a=Cl.getProps(o,i),u=v.useRef(""),c=v.useRef(null),f=v.useRef(),p=v.useRef({}),h=v.useRef(null),m=v.useRef(null),b=v.useRef(null),w=v.useRef(null),x=v.useRef(null),k=v.useRef(null),C=v.useRef(null),O=v.useRef(null),L=v.useRef(null),N=v.useRef(null),$=v.useRef(null),j=v.useRef(null),G=v.useState([]),ie=El(G,2),Y=ie[0],D=ie[1],F=v.useState(!1),q=El(F,2),K=q[0],se=q[1],oe=a.stateKey!=null,ye=a.children&&a.children.length||1,Q=function(ae,he){return he in ae?ae[he]:a.children&&[].concat(a.children)[he].props.size||100/ye},ve=a.layout==="horizontal",ke={props:a,state:{panelSizes:Y,nested:H.getAttribute(c.current&&c.current.parentElement,"data-p-splitter-panel-nested")===!0}},z=Cl.setMetaData(Wu({},ke)),J=z.ptm,B=z.cx,P=z.isUnstyled;Dr(Cl.css.styles,P,{name:"splitter"});var U=function(ae){return J(ae,{context:{nested:K}})},ce=Rr({type:"mousemove",listener:function(ae){return jt(ae)}}),de=El(ce,2),Te=de[0],ze=de[1],Me=Rr({type:"mouseup",listener:function(ae){ht(ae),$t()}}),Ue=El(Me,2),Ye=Ue[0],st=Ue[1],Ht=function(){Te(),Ye()},$t=function(){ze(),st()},nt=function(ae,he){return zl.getCProp(ae,he)},rt=function(ae,he){return!(ae>100||ae<0||he>100||he<0||a.children[$.current].props&&a.children[$.current].props.minSize&&a.children[$.current].props.minSize>ae||a.children[$.current+1].props&&a.children[$.current+1].props.minSize&&a.children[$.current+1].props.minSize>he)},fn=function(){m.current=!1,h.current=null,b.current=null,w.current=null,x.current=null,k.current=null,O.current=null,L.current=null,N.current=null,$.current=null},Et=v.useCallback(function(){switch(a.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(a.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},[a.stateStorage]),It=function(ae){V.isArray(ae)&&Et().setItem(a.stateKey,JSON.stringify(ae))},Jt=v.useCallback(function(){var Fe=Et().getItem(a.stateKey);Fe&&D(JSON.parse(Fe))},[Et,a.stateKey]),en=function(ae,he,Ke){var Oe=ae.type==="touchstart"?ae.touches[0].pageX:ae.pageX,M=ae.type==="touchstart"?ae.touches[0].pageY:ae.pageY;f.current=p.current[he],h.current=ve?H.getWidth(c.current):H.getHeight(c.current),m.current=!0,b.current=ve?Oe:M,w.current=f.current.previousElementSibling,x.current=f.current.nextElementSibling,Ke?(k.current=ve?H.getOuterWidth(w.current,!0):H.getOuterHeight(w.current,!0),L.current=ve?H.getOuterWidth(x.current,!0):H.getOuterHeight(x.current,!0)):(k.current=100*(ve?H.getOuterWidth(w.current,!0):H.getOuterHeight(w.current,!0))/h.current,L.current=100*(ve?H.getOuterWidth(x.current,!0):H.getOuterHeight(x.current,!0))/h.current),O.current=k.current,N.current=L.current,$.current=he,!P()&&H.addClass(f.current,"p-splitter-gutter-resizing"),f.current.setAttribute("data-p-splitter-gutter-resizing",!0),!P()&&H.addClass(c.current,"p-splitter-resizing"),c.current.setAttribute("data-p-splitter-resizing",!0)},jt=function(ae){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Oe,M,me,De=ae.type==="touchmove"?ae.touches[0].pageX:ae.pageX,Le=ae.type==="touchmove"?ae.touches[0].pageY:ae.pageY;Ke?ve?(me=100*(k.current+he)/h.current,M=100*(L.current-he)/h.current):(me=100*(k.current-he)/h.current,M=100*(L.current+he)/h.current):(ve?Oe=De*100/h.current-b.current*100/h.current:Oe=Le*100/h.current-b.current*100/h.current,me=k.current+Oe,M=L.current-Oe),Nt($.current,me,M)},ht=function(ae){var he=Up(Y);he[$.current]=O.current,he[$.current+1]=N.current,a.onResizeEnd&&a.onResizeEnd({originalEvent:ae,sizes:he}),oe&&It(he),D(he),!P()&&H.removeClass(f.current,"p-splitter-gutter-resizing"),p.current&&Object.keys(p.current).forEach(function(Ke){return p.current[Ke].setAttribute("data-p-splitter-gutter-resizing",!1)}),!P()&&H.removeClass(c.current,"p-splitter-resizing"),c.current.setAttribute("data-p-splitter-resizing",!1),fn()},ft=function(){Tn(),ht()},Pn=function(ae,he){var Ke=a.children[he].props&&a.children[he].props.minSize||0;switch(ae.code){case"ArrowLeft":{ve&&Rt(ae,he,a.step*-1),ae.preventDefault();break}case"ArrowRight":{ve&&Rt(ae,he,a.step),ae.preventDefault();break}case"ArrowDown":{ve||Rt(ae,he,a.step*-1),ae.preventDefault();break}case"ArrowUp":{ve||Rt(ae,he,a.step),ae.preventDefault();break}case"Home":{Nt(he,100-Ke,Ke),ae.preventDefault();break}case"End":{Nt(he,Ke,100-Ke),ae.preventDefault();break}case"NumpadEnter":case"Enter":{C.current>=100-(Ke||5)?Nt(he,Ke,100-Ke):Nt(he,100-Ke,Ke),ae.preventDefault();break}}},Nt=function(ae,he,Ke){$.current=ae,f.current=p.current[ae],h.current=ve?H.getWidth(c.current):H.getHeight(c.current),w.current=f.current.previousElementSibling,x.current=f.current.nextElementSibling,rt(he,Ke)&&(O.current=he,N.current=Ke,w.current.style.flexBasis="calc("+he+"% - "+(a.children.length-1)*a.gutterSize+"px)",x.current.style.flexBasis="calc("+Ke+"% - "+(a.children.length-1)*a.gutterSize+"px)",C.current=parseFloat(he).toFixed(4))},dn=function(ae,he,Ke){en(ae,he,!0),jt(ae,Ke,!0)},Rt=function(ae,he,Ke){j.current||(j.current=setInterval(function(){dn(ae,he,Ke)},40))},Tn=function(){j.current&&(clearInterval(j.current),j.current=null)},Yt=function(ae,he){en(ae,he,!1),Ht()},Qt=function(ae,he){en(ae,he,!1),window.addEventListener("touchmove",bt,{passive:!1,cancelable:!1}),window.addEventListener("touchend",Lt)},bt=function(ae){jt(ae)},Lt=function(ae){ht(ae),window.removeEventListener("touchmove",bt),window.removeEventListener("touchend",Lt)};v.useImperativeHandle(n,function(){return{props:a,getElement:function(){return c.current}}}),Ar(function(){c.current&&(u.current=ba())}),v.useEffect(function(){var Fe=Up(c.current.children).filter(function(he){return H.getAttribute(he,"data-pc-section")==="splitterpanel.root"}),ae=[];Fe.map(function(he,Ke){C.current=Q(Y,0),ae[Ke]=Q(Y,Ke),he.childNodes&&V.isNotEmpty(H.find(he,"[data-pc-name='splitter']")&&H.find(he,"[data-pc-section='root']"))&&(!P()&&H.addClass(he,"p-splitter-panel-nested"),he.setAttribute("data-p-splitter-panel-nested",!0),se(!0))}),D(ae)},[]),v.useEffect(function(){oe&&Jt()},[Jt,oe]);var In=function(ae,he){var Ke=nt(ae,"id")||"".concat(u.current,"_").concat(he),Oe=Be(nt(ae,"className"),B("panel.root")),M=e({ref:function(Je){return p.current[he]=Je},className:B("gutter"),style:ve?{width:a.gutterSize+"px"}:{height:a.gutterSize+"px"},onMouseDown:function(Je){return Yt(Je,he)},onKeyDown:function(Je){return Pn(Je,he)},onKeyUp:ft,onTouchStart:function(Je){return Qt(Je,he)},onTouchMove:function(Je){return bt(Je)},onTouchEnd:function(Je){return Lt(Je)},"data-p-splitter-gutter-resizing":!1},J("gutter")),me=e({tabIndex:nt(ae,"tabIndex")||0,className:B("gutterHandler"),role:"separator","aria-orientation":ve?"vertical":"horizontal","aria-controls":Ke,"aria-label":nt(ae,"aria-label"),"aria-labelledby":nt(ae,"aria-labelledby"),"aria-valuenow":C.current,"aria-valuetext":parseFloat(C.current).toFixed(0)+"%","aria-valuemin":nt(ae,"minSize")||"0","aria-valuemax":"100"},J("gutterHandler")),De=he!==a.children.length-1&&v.createElement("div",M,v.createElement("div",me)),Le="calc("+Q(Y,he)+"% - "+(ye-1)*a.gutterSize+"px)",He=e({key:he,id:Ke,className:Oe,style:Wu(Wu({},nt(ae,"style")),{},{flexBasis:Le}),role:"presentation","data-p-splitter-panel-nested":!1,onClick:nt(ae,"onClick")},U("splitterpanel.root"));return v.createElement(v.Fragment,null,v.createElement("div",He,nt(ae,"children")),De)},Ct=function(){return v.Children.map(a.children,In)},Nn=e({id:a.id,style:a.style,className:Be(a.className,B("root")),"data-p-splitter-resizing":!1},Cl.getOtherProps(a),J("root")),tn=Ct();return v.createElement("div",lc({ref:c},Nn),tn)}));uc.displayName="SplitterPanel";qg.displayName="Splitter";const Dy=(o,n,e,i)=>{var u,c,f,p;const a=[e,{code:n,...i||{}}];if((c=(u=o==null?void 0:o.services)==null?void 0:u.logger)!=null&&c.forward)return o.services.logger.forward(a,"warn","react-i18next::",!0);$i(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(p=(f=o==null?void 0:o.services)==null?void 0:f.logger)!=null&&p.warn?o.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},Wp={},cc=(o,n,e,i)=>{$i(e)&&Wp[e]||($i(e)&&(Wp[e]=new Date),Dy(o,n,e,i))},Zg=(o,n)=>()=>{if(o.isInitialized)n();else{const e=()=>{setTimeout(()=>{o.off("initialized",e)},0),n()};o.on("initialized",e)}},fc=(o,n,e)=>{o.loadNamespaces(n,Zg(o,e))},Gp=(o,n,e,i)=>{if($i(e)&&(e=[e]),o.options.preload&&o.options.preload.indexOf(n)>-1)return fc(o,e,i);e.forEach(a=>{o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),o.loadLanguages(n,Zg(o,i))},zy=(o,n,e={})=>!n.languages||!n.languages.length?(cc(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(o,{lng:e.lng,precheck:(i,a)=>{var u;if(((u=e.bindI18n)==null?void 0:u.indexOf("languageChanging"))>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,o))return!1}}),$i=o=>typeof o=="string",Fy=o=>typeof o=="object"&&o!==null,My=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Hy={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Vy=o=>Hy[o],By=o=>o.replace(My,Vy);let dc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:By};const Uy=(o={})=>{dc={...dc,...o}},Ky=()=>dc;let Jg;const Wy=o=>{Jg=o},Gy=()=>Jg,Yy={type:"3rdParty",init(o){Uy(o.options.react),Wy(o)}},Qy=v.createContext();class Xy{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const qy=(o,n)=>{const e=v.useRef();return v.useEffect(()=>{e.current=o},[o,n]),e.current},eh=(o,n,e,i)=>o.getFixedT(n,e,i),Zy=(o,n,e,i)=>v.useCallback(eh(o,n,e,i),[o,n,e,i]),Ai=(o,n={})=>{var j,G,ie,Y;const{i18n:e}=n,{i18n:i,defaultNS:a}=v.useContext(Qy)||{},u=e||i||Gy();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new Xy),!u){cc(u,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const D=(q,K)=>$i(K)?K:Fy(K)&&$i(K.defaultValue)?K.defaultValue:Array.isArray(q)?q[q.length-1]:q,F=[D,{},!1];return F.t=D,F.i18n={},F.ready=!1,F}(j=u.options.react)!=null&&j.wait&&cc(u,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...Ky(),...u.options.react,...n},{useSuspense:f,keyPrefix:p}=c;let h=a||((G=u.options)==null?void 0:G.defaultNS);h=$i(h)?[h]:h||["translation"],(Y=(ie=u.reportNamespaces).addUsedNamespaces)==null||Y.call(ie,h);const m=(u.isInitialized||u.initializedStoreOnce)&&h.every(D=>zy(D,u,c)),b=Zy(u,n.lng||null,c.nsMode==="fallback"?h:h[0],p),w=()=>b,x=()=>eh(u,n.lng||null,c.nsMode==="fallback"?h:h[0],p),[k,C]=v.useState(w);let O=h.join();n.lng&&(O=`${n.lng}${O}`);const L=qy(O),N=v.useRef(!0);v.useEffect(()=>{const{bindI18n:D,bindI18nStore:F}=c;N.current=!0,!m&&!f&&(n.lng?Gp(u,n.lng,h,()=>{N.current&&C(x)}):fc(u,h,()=>{N.current&&C(x)})),m&&L&&L!==O&&N.current&&C(x);const q=()=>{N.current&&C(x)};return D&&(u==null||u.on(D,q)),F&&(u==null||u.store.on(F,q)),()=>{N.current=!1,u&&(D==null||D.split(" ").forEach(K=>u.off(K,q))),F&&u&&F.split(" ").forEach(K=>u.store.off(K,q))}},[u,O]),v.useEffect(()=>{N.current&&m&&C(w)},[u,p,m]);const $=[k,u,m];if($.t=k,$.i18n=u,$.ready=m,m||!m&&!f)return $;throw new Promise(D=>{n.lng?Gp(u,n.lng,h,()=>D()):fc(u,h,()=>D())})};var Gn={defaultProps:{__TYPE:"IconBase",className:null,label:null,spin:!1},getProps:function(n){return V.getMergedProps(n,Gn.defaultProps)},getOtherProps:function(n){return V.getDiffProps(n,Gn.defaultProps)},getPTI:function(n){var e=V.isEmpty(n.label),i=Gn.getOtherProps(n),a={className:Be("p-icon",{"p-icon-spin":n.spin},n.className),role:e?void 0:"img","aria-label":e?void 0:n.label,"aria-hidden":n.label?e:void 0};return V.getMergedProps(i,a)}};function pc(){return pc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},pc.apply(this,arguments)}var rs=v.memo(v.forwardRef(function(o,n){var e=Gn.getPTI(o);return v.createElement("svg",pc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"}))}));rs.displayName="SpinnerIcon";function gc(){return gc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},gc.apply(this,arguments)}function fa(o){"@babel/helpers - typeof";return fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fa(o)}function Jy(o,n){if(fa(o)!=="object"||o===null)return o;var e=o[Symbol.toPrimitive];if(e!==void 0){var i=e.call(o,n);if(fa(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function e1(o){var n=Jy(o,"string");return fa(n)==="symbol"?n:String(n)}function t1(o,n,e){return n=e1(n),n in o?Object.defineProperty(o,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[n]=e,o}function n1(o){if(Array.isArray(o))return o}function r1(o,n){var e=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(e!=null){var i,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(o)).next,n!==0)for(;!(p=(i=u.call(e)).done)&&(f.push(i.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function Yp(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}function i1(o,n){if(o){if(typeof o=="string")return Yp(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Yp(o,n)}}function o1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
520
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
519
|
+
`,Cl=tt.extend({defaultProps:{__TYPE:"Splitter",className:null,gutterSize:4,id:null,step:5,layout:"horizontal",onResizeEnd:null,stateKey:null,stateStorage:"session",style:null,children:void 0},css:{classes:Ay,styles:Dy}}),zl=tt.extend({defaultProps:{__TYPE:"SplitterPanel",className:null,minSize:null,size:null,style:null,children:void 0},getCProps:function(n){return V.getComponentProps(n,zl.defaultProps)},getCOtherProps:function(n){return V.getComponentDiffProps(n,zl.defaultProps)},getCProp:function(n,e){return V.getComponentProp(n,e,zl.defaultProps)}});function Kp(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function Wu(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Kp(Object(e),!0).forEach(function(o){_y(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Kp(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var uc=function(){},Zg=v.memo(v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=Cl.getProps(i,o),u=v.useRef(""),c=v.useRef(null),f=v.useRef(),p=v.useRef({}),h=v.useRef(null),m=v.useRef(null),b=v.useRef(null),w=v.useRef(null),x=v.useRef(null),k=v.useRef(null),C=v.useRef(null),O=v.useRef(null),_=v.useRef(null),N=v.useRef(null),j=v.useRef(null),$=v.useRef(null),Y=v.useState([]),ie=El(Y,2),Q=ie[0],D=ie[1],F=v.useState(!1),q=El(F,2),K=q[0],se=q[1],oe=a.stateKey!=null,ye=a.children&&a.children.length||1,X=function(ae,he){return he in ae?ae[he]:a.children&&[].concat(a.children)[he].props.size||100/ye},ve=a.layout==="horizontal",ke={props:a,state:{panelSizes:Q,nested:H.getAttribute(c.current&&c.current.parentElement,"data-p-splitter-panel-nested")===!0}},z=Cl.setMetaData(Wu({},ke)),J=z.ptm,B=z.cx,P=z.isUnstyled;Dr(Cl.css.styles,P,{name:"splitter"});var U=function(ae){return J(ae,{context:{nested:K}})},ce=Rr({type:"mousemove",listener:function(ae){return $t(ae)}}),de=El(ce,2),Te=de[0],ze=de[1],Me=Rr({type:"mouseup",listener:function(ae){ht(ae),jt()}}),Ue=El(Me,2),Ye=Ue[0],st=Ue[1],Ht=function(){Te(),Ye()},jt=function(){ze(),st()},nt=function(ae,he){return zl.getCProp(ae,he)},rt=function(ae,he){return!(ae>100||ae<0||he>100||he<0||a.children[j.current].props&&a.children[j.current].props.minSize&&a.children[j.current].props.minSize>ae||a.children[j.current+1].props&&a.children[j.current+1].props.minSize&&a.children[j.current+1].props.minSize>he)},fn=function(){m.current=!1,h.current=null,b.current=null,w.current=null,x.current=null,k.current=null,O.current=null,_.current=null,N.current=null,j.current=null},Et=v.useCallback(function(){switch(a.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(a.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},[a.stateStorage]),It=function(ae){V.isArray(ae)&&Et().setItem(a.stateKey,JSON.stringify(ae))},Jt=v.useCallback(function(){var Fe=Et().getItem(a.stateKey);Fe&&D(JSON.parse(Fe))},[Et,a.stateKey]),en=function(ae,he,Ke){var Oe=ae.type==="touchstart"?ae.touches[0].pageX:ae.pageX,M=ae.type==="touchstart"?ae.touches[0].pageY:ae.pageY;f.current=p.current[he],h.current=ve?H.getWidth(c.current):H.getHeight(c.current),m.current=!0,b.current=ve?Oe:M,w.current=f.current.previousElementSibling,x.current=f.current.nextElementSibling,Ke?(k.current=ve?H.getOuterWidth(w.current,!0):H.getOuterHeight(w.current,!0),_.current=ve?H.getOuterWidth(x.current,!0):H.getOuterHeight(x.current,!0)):(k.current=100*(ve?H.getOuterWidth(w.current,!0):H.getOuterHeight(w.current,!0))/h.current,_.current=100*(ve?H.getOuterWidth(x.current,!0):H.getOuterHeight(x.current,!0))/h.current),O.current=k.current,N.current=_.current,j.current=he,!P()&&H.addClass(f.current,"p-splitter-gutter-resizing"),f.current.setAttribute("data-p-splitter-gutter-resizing",!0),!P()&&H.addClass(c.current,"p-splitter-resizing"),c.current.setAttribute("data-p-splitter-resizing",!0)},$t=function(ae){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Oe,M,me,De=ae.type==="touchmove"?ae.touches[0].pageX:ae.pageX,_e=ae.type==="touchmove"?ae.touches[0].pageY:ae.pageY;Ke?ve?(me=100*(k.current+he)/h.current,M=100*(_.current-he)/h.current):(me=100*(k.current-he)/h.current,M=100*(_.current+he)/h.current):(ve?Oe=De*100/h.current-b.current*100/h.current:Oe=_e*100/h.current-b.current*100/h.current,me=k.current+Oe,M=_.current-Oe),Nt(j.current,me,M)},ht=function(ae){var he=Up(Q);he[j.current]=O.current,he[j.current+1]=N.current,a.onResizeEnd&&a.onResizeEnd({originalEvent:ae,sizes:he}),oe&&It(he),D(he),!P()&&H.removeClass(f.current,"p-splitter-gutter-resizing"),p.current&&Object.keys(p.current).forEach(function(Ke){return p.current[Ke].setAttribute("data-p-splitter-gutter-resizing",!1)}),!P()&&H.removeClass(c.current,"p-splitter-resizing"),c.current.setAttribute("data-p-splitter-resizing",!1),fn()},ft=function(){Tn(),ht()},Pn=function(ae,he){var Ke=a.children[he].props&&a.children[he].props.minSize||0;switch(ae.code){case"ArrowLeft":{ve&&Rt(ae,he,a.step*-1),ae.preventDefault();break}case"ArrowRight":{ve&&Rt(ae,he,a.step),ae.preventDefault();break}case"ArrowDown":{ve||Rt(ae,he,a.step*-1),ae.preventDefault();break}case"ArrowUp":{ve||Rt(ae,he,a.step),ae.preventDefault();break}case"Home":{Nt(he,100-Ke,Ke),ae.preventDefault();break}case"End":{Nt(he,Ke,100-Ke),ae.preventDefault();break}case"NumpadEnter":case"Enter":{C.current>=100-(Ke||5)?Nt(he,Ke,100-Ke):Nt(he,100-Ke,Ke),ae.preventDefault();break}}},Nt=function(ae,he,Ke){j.current=ae,f.current=p.current[ae],h.current=ve?H.getWidth(c.current):H.getHeight(c.current),w.current=f.current.previousElementSibling,x.current=f.current.nextElementSibling,rt(he,Ke)&&(O.current=he,N.current=Ke,w.current.style.flexBasis="calc("+he+"% - "+(a.children.length-1)*a.gutterSize+"px)",x.current.style.flexBasis="calc("+Ke+"% - "+(a.children.length-1)*a.gutterSize+"px)",C.current=parseFloat(he).toFixed(4))},dn=function(ae,he,Ke){en(ae,he,!0),$t(ae,Ke,!0)},Rt=function(ae,he,Ke){$.current||($.current=setInterval(function(){dn(ae,he,Ke)},40))},Tn=function(){$.current&&(clearInterval($.current),$.current=null)},Yt=function(ae,he){en(ae,he,!1),Ht()},Qt=function(ae,he){en(ae,he,!1),window.addEventListener("touchmove",bt,{passive:!1,cancelable:!1}),window.addEventListener("touchend",_t)},bt=function(ae){$t(ae)},_t=function(ae){ht(ae),window.removeEventListener("touchmove",bt),window.removeEventListener("touchend",_t)};v.useImperativeHandle(n,function(){return{props:a,getElement:function(){return c.current}}}),Ar(function(){c.current&&(u.current=ba())}),v.useEffect(function(){var Fe=Up(c.current.children).filter(function(he){return H.getAttribute(he,"data-pc-section")==="splitterpanel.root"}),ae=[];Fe.map(function(he,Ke){C.current=X(Q,0),ae[Ke]=X(Q,Ke),he.childNodes&&V.isNotEmpty(H.find(he,"[data-pc-name='splitter']")&&H.find(he,"[data-pc-section='root']"))&&(!P()&&H.addClass(he,"p-splitter-panel-nested"),he.setAttribute("data-p-splitter-panel-nested",!0),se(!0))}),D(ae)},[]),v.useEffect(function(){oe&&Jt()},[Jt,oe]);var In=function(ae,he){var Ke=nt(ae,"id")||"".concat(u.current,"_").concat(he),Oe=Be(nt(ae,"className"),B("panel.root")),M=e({ref:function(Je){return p.current[he]=Je},className:B("gutter"),style:ve?{width:a.gutterSize+"px"}:{height:a.gutterSize+"px"},onMouseDown:function(Je){return Yt(Je,he)},onKeyDown:function(Je){return Pn(Je,he)},onKeyUp:ft,onTouchStart:function(Je){return Qt(Je,he)},onTouchMove:function(Je){return bt(Je)},onTouchEnd:function(Je){return _t(Je)},"data-p-splitter-gutter-resizing":!1},J("gutter")),me=e({tabIndex:nt(ae,"tabIndex")||0,className:B("gutterHandler"),role:"separator","aria-orientation":ve?"vertical":"horizontal","aria-controls":Ke,"aria-label":nt(ae,"aria-label"),"aria-labelledby":nt(ae,"aria-labelledby"),"aria-valuenow":C.current,"aria-valuetext":parseFloat(C.current).toFixed(0)+"%","aria-valuemin":nt(ae,"minSize")||"0","aria-valuemax":"100"},J("gutterHandler")),De=he!==a.children.length-1&&v.createElement("div",M,v.createElement("div",me)),_e="calc("+X(Q,he)+"% - "+(ye-1)*a.gutterSize+"px)",He=e({key:he,id:Ke,className:Oe,style:Wu(Wu({},nt(ae,"style")),{},{flexBasis:_e}),role:"presentation","data-p-splitter-panel-nested":!1,onClick:nt(ae,"onClick")},U("splitterpanel.root"));return v.createElement(v.Fragment,null,v.createElement("div",He,nt(ae,"children")),De)},Ct=function(){return v.Children.map(a.children,In)},Nn=e({id:a.id,style:a.style,className:Be(a.className,B("root")),"data-p-splitter-resizing":!1},Cl.getOtherProps(a),J("root")),tn=Ct();return v.createElement("div",lc({ref:c},Nn),tn)}));uc.displayName="SplitterPanel";Zg.displayName="Splitter";const zy=(i,n,e,o)=>{var u,c,f,p;const a=[e,{code:n,...o||{}}];if((c=(u=i==null?void 0:i.services)==null?void 0:u.logger)!=null&&c.forward)return i.services.logger.forward(a,"warn","react-i18next::",!0);$i(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(p=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&p.warn?i.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},Wp={},cc=(i,n,e,o)=>{$i(e)&&Wp[e]||($i(e)&&(Wp[e]=new Date),zy(i,n,e,o))},Jg=(i,n)=>()=>{if(i.isInitialized)n();else{const e=()=>{setTimeout(()=>{i.off("initialized",e)},0),n()};i.on("initialized",e)}},fc=(i,n,e)=>{i.loadNamespaces(n,Jg(i,e))},Gp=(i,n,e,o)=>{if($i(e)&&(e=[e]),i.options.preload&&i.options.preload.indexOf(n)>-1)return fc(i,e,o);e.forEach(a=>{i.options.ns.indexOf(a)<0&&i.options.ns.push(a)}),i.loadLanguages(n,Jg(i,o))},Fy=(i,n,e={})=>!n.languages||!n.languages.length?(cc(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(i,{lng:e.lng,precheck:(o,a)=>{var u;if(((u=e.bindI18n)==null?void 0:u.indexOf("languageChanging"))>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,i))return!1}}),$i=i=>typeof i=="string",My=i=>typeof i=="object"&&i!==null,Hy=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Vy={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},By=i=>Vy[i],Uy=i=>i.replace(Hy,By);let dc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Uy};const Ky=(i={})=>{dc={...dc,...i}},Wy=()=>dc;let eh;const Gy=i=>{eh=i},Yy=()=>eh,Qy={type:"3rdParty",init(i){Ky(i.options.react),Gy(i)}},Xy=v.createContext();class qy{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Zy=(i,n)=>{const e=v.useRef();return v.useEffect(()=>{e.current=i},[i,n]),e.current},th=(i,n,e,o)=>i.getFixedT(n,e,o),Jy=(i,n,e,o)=>v.useCallback(th(i,n,e,o),[i,n,e,o]),hi=(i,n={})=>{var $,Y,ie,Q;const{i18n:e}=n,{i18n:o,defaultNS:a}=v.useContext(Xy)||{},u=e||o||Yy();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new qy),!u){cc(u,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const D=(q,K)=>$i(K)?K:My(K)&&$i(K.defaultValue)?K.defaultValue:Array.isArray(q)?q[q.length-1]:q,F=[D,{},!1];return F.t=D,F.i18n={},F.ready=!1,F}($=u.options.react)!=null&&$.wait&&cc(u,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...Wy(),...u.options.react,...n},{useSuspense:f,keyPrefix:p}=c;let h=a||((Y=u.options)==null?void 0:Y.defaultNS);h=$i(h)?[h]:h||["translation"],(Q=(ie=u.reportNamespaces).addUsedNamespaces)==null||Q.call(ie,h);const m=(u.isInitialized||u.initializedStoreOnce)&&h.every(D=>Fy(D,u,c)),b=Jy(u,n.lng||null,c.nsMode==="fallback"?h:h[0],p),w=()=>b,x=()=>th(u,n.lng||null,c.nsMode==="fallback"?h:h[0],p),[k,C]=v.useState(w);let O=h.join();n.lng&&(O=`${n.lng}${O}`);const _=Zy(O),N=v.useRef(!0);v.useEffect(()=>{const{bindI18n:D,bindI18nStore:F}=c;N.current=!0,!m&&!f&&(n.lng?Gp(u,n.lng,h,()=>{N.current&&C(x)}):fc(u,h,()=>{N.current&&C(x)})),m&&_&&_!==O&&N.current&&C(x);const q=()=>{N.current&&C(x)};return D&&(u==null||u.on(D,q)),F&&(u==null||u.store.on(F,q)),()=>{N.current=!1,u&&(D==null||D.split(" ").forEach(K=>u.off(K,q))),F&&u&&F.split(" ").forEach(K=>u.store.off(K,q))}},[u,O]),v.useEffect(()=>{N.current&&m&&C(w)},[u,p,m]);const j=[k,u,m];if(j.t=k,j.i18n=u,j.ready=m,m||!m&&!f)return j;throw new Promise(D=>{n.lng?Gp(u,n.lng,h,()=>D()):fc(u,h,()=>D())})};function Yp(){const{t:i}=hi();return G.jsx("footer",{className:"App-footer",children:G.jsx("div",{className:"InlineText",dangerouslySetInnerHTML:{__html:i("footerText")}})})}var Gn={defaultProps:{__TYPE:"IconBase",className:null,label:null,spin:!1},getProps:function(n){return V.getMergedProps(n,Gn.defaultProps)},getOtherProps:function(n){return V.getDiffProps(n,Gn.defaultProps)},getPTI:function(n){var e=V.isEmpty(n.label),o=Gn.getOtherProps(n),a={className:Be("p-icon",{"p-icon-spin":n.spin},n.className),role:e?void 0:"img","aria-label":e?void 0:n.label,"aria-hidden":n.label?e:void 0};return V.getMergedProps(o,a)}};function pc(){return pc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},pc.apply(this,arguments)}var rs=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",pc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"}))}));rs.displayName="SpinnerIcon";function gc(){return gc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},gc.apply(this,arguments)}function fa(i){"@babel/helpers - typeof";return fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fa(i)}function e1(i,n){if(fa(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(fa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function t1(i){var n=e1(i,"string");return fa(n)==="symbol"?n:String(n)}function n1(i,n,e){return n=t1(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function r1(i){if(Array.isArray(i))return i}function i1(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n!==0)for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function Qp(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function o1(i,n){if(i){if(typeof i=="string")return Qp(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Qp(i,n)}}function a1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
520
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l1(i,n){return r1(i)||i1(i,n)||o1(i,n)||a1()}var s1=`
|
|
521
521
|
@layer primereact {
|
|
522
522
|
.p-ripple {
|
|
523
523
|
overflow: hidden;
|
|
@@ -548,10 +548,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
|
|
551
|
-
`,
|
|
552
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
553
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
554
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lo(
|
|
551
|
+
`,u1={root:"p-ink"},go=tt.extend({defaultProps:{__TYPE:"Ripple",children:void 0},css:{styles:s1,classes:u1},getProps:function(n){return V.getMergedProps(n,go.defaultProps)},getOtherProps:function(n){return V.getDiffProps(n,go.defaultProps)}});function Xp(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function c1(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Xp(Object(e),!0).forEach(function(o){n1(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Xp(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var ho=v.memo(v.forwardRef(function(i,n){var e=v.useState(!1),o=l1(e,2),a=o[0],u=o[1],c=v.useRef(null),f=v.useRef(null),p=Yn(),h=v.useContext(Gt),m=go.getProps(i,h),b=h&&h.ripple||Mt.ripple,w={props:m};ji(go.css.styles,{name:"ripple",manual:!b});var x=go.setMetaData(c1({},w)),k=x.ptm,C=x.cx,O=function(){return c.current&&c.current.parentElement},_=function(){f.current&&f.current.addEventListener("pointerdown",j)},N=function(){f.current&&f.current.removeEventListener("pointerdown",j)},j=function(F){var q=H.getOffset(f.current),K=F.pageX-q.left+document.body.scrollTop-H.getWidth(c.current)/2,se=F.pageY-q.top+document.body.scrollLeft-H.getHeight(c.current)/2;$(K,se)},$=function(F,q){!c.current||getComputedStyle(c.current,null).display==="none"||(H.removeClass(c.current,"p-ink-active"),ie(),c.current.style.top=q+"px",c.current.style.left=F+"px",H.addClass(c.current,"p-ink-active"))},Y=function(F){H.removeClass(F.currentTarget,"p-ink-active")},ie=function(){if(c.current&&!H.getHeight(c.current)&&!H.getWidth(c.current)){var F=Math.max(H.getOuterWidth(f.current),H.getOuterHeight(f.current));c.current.style.height=F+"px",c.current.style.width=F+"px"}};if(v.useImperativeHandle(n,function(){return{props:m,getInk:function(){return c.current},getTarget:function(){return f.current}}}),Ar(function(){u(!0)}),Kt(function(){a&&c.current&&(f.current=O(),ie(),_())},[a]),Kt(function(){c.current&&!f.current&&(f.current=O(),ie(),_())}),$r(function(){c.current&&(f.current=null,N())}),!b)return null;var Q=p({"aria-hidden":!0,className:Be(C("root"))},go.getOtherProps(m),k("root"));return v.createElement("span",gc({role:"presentation",ref:c},Q,{onAnimationEnd:Y}))}));ho.displayName="Ripple";var f1=Fg();const Jo=Hc(f1);function d1(i){if(Array.isArray(i))return i}function p1(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n!==0)for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function qp(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function g1(i,n){if(i){if(typeof i=="string")return qp(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return qp(i,n)}}function h1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
552
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m1(i,n){return d1(i)||p1(i,n)||g1(i,n)||h1()}var hc={defaultProps:{__TYPE:"Portal",element:null,appendTo:null,visible:!1,onMounted:null,onUnmounted:null,children:void 0},getProps:function(n){return V.getMergedProps(n,hc.defaultProps)},getOtherProps:function(n){return V.getDiffProps(n,hc.defaultProps)}},is=v.memo(function(i){var n=hc.getProps(i),e=v.useContext(Gt),o=v.useState(n.visible&&H.isClient()),a=m1(o,2),u=a[0],c=a[1];Ar(function(){H.isClient()&&!u&&(c(!0),n.onMounted&&n.onMounted())}),Kt(function(){n.onMounted&&n.onMounted()},[u]),$r(function(){n.onUnmounted&&n.onUnmounted()});var f=n.element||n.children;if(f&&u){var p=n.appendTo||e&&e.appendTo||Mt.appendTo;return V.isFunction(p)&&(p=p()),p||(p=document.body),p==="self"?f:Jo.createPortal(f,p)}return null});is.displayName="Portal";function Bl(){return Bl=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Bl.apply(this,arguments)}function da(i){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},da(i)}function v1(i,n){if(da(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(da(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function y1(i){var n=v1(i,"string");return da(n)==="symbol"?n:String(n)}function nh(i,n,e){return n=y1(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function mc(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function b1(i){if(Array.isArray(i))return mc(i)}function w1(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function rh(i,n){if(i){if(typeof i=="string")return mc(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return mc(i,n)}}function S1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
553
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x1(i){return b1(i)||w1(i)||rh(i)||S1()}function E1(i){if(Array.isArray(i))return i}function C1(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n!==0)for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function k1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
554
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lo(i,n){return E1(i)||C1(i,n)||rh(i,n)||k1()}var O1={root:function(n){var e=n.positionState,o=n.classNameState;return Be("p-tooltip p-component",nh({},"p-tooltip-".concat(e),!0),o)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},P1={arrow:function(n){var e=n.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:e.right||!e.right&&!e.left&&!e.top&&!e.bottom?"0":e.top||e.bottom?"50%":null,right:e.left?"0":null}}},T1=`
|
|
555
555
|
@layer primereact {
|
|
556
556
|
.p-tooltip {
|
|
557
557
|
position: absolute;
|
|
@@ -620,7 +620,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
620
620
|
display: inline-flex;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
`,kl=tt.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:k1,styles:P1,inlineStyles:O1}});function qp(o,n){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),e.push.apply(e,i)}return e}function T1(o){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?qp(Object(e),!0).forEach(function(i){th(o,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):qp(Object(e)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(e,i))})}return o}var os=v.memo(v.forwardRef(function(o,n){var e=Yn(),i=v.useContext(Gt),a=kl.getProps(o,i),u=v.useState(!1),c=lo(u,2),f=c[0],p=c[1],h=v.useState(a.position||"right"),m=lo(h,2),b=m[0],w=m[1],x=v.useState(""),k=lo(x,2),C=k[0],O=k[1],L=v.useState(!1),N=lo(L,2),$=N[0],j=N[1],G=f&&a.closeOnEscape,ie=Bg("tooltip",G),Y={props:a,state:{visible:f,position:b,className:C},context:{right:b==="right",left:b==="left",top:b==="top",bottom:b==="bottom"}},D=kl.setMetaData(Y),F=D.ptm,q=D.cx,K=D.sx,se=D.isUnstyled;Dr(kl.css.styles,se,{name:"tooltip"}),Wg({callback:function(){ft()},when:G,priority:[Ug.TOOLTIP,ie]});var oe=v.useRef(null),ye=v.useRef(null),Q=v.useRef(null),ve=v.useRef(null),ke=v.useRef(!0),z=v.useRef({}),J=v.useRef(null),B=Kc({listener:function(M){!H.isTouchDevice()&&ft(M)}}),P=lo(B,2),U=P[0],ce=P[1],de=Gg({target:Q.current,listener:function(M){ft(M)},when:f}),Te=lo(de,2),ze=Te[0],Me=Te[1],Ue=function(M){return!(a.content||rt(M,"tooltip"))},Ye=function(M){return!(a.content||rt(M,"tooltip")||a.children)},st=function(M){return rt(M,"mousetrack")||a.mouseTrack},Ht=function(M){return rt(M,"disabled")==="true"||fn(M,"disabled")||a.disabled},$t=function(M){return rt(M,"showondisabled")||a.showOnDisabled},nt=function(){return rt(Q.current,"autohide")||a.autoHide},rt=function(M,me){return fn(M,"data-pr-".concat(me))?M.getAttribute("data-pr-".concat(me)):null},fn=function(M,me){return M&&M.hasAttribute(me)},Et=function(M){var me=[rt(M,"showevent")||a.showEvent],De=[rt(M,"hideevent")||a.hideEvent];if(st(M))me=["mousemove"],De=["mouseleave"];else{var Le=rt(M,"event")||a.event;Le==="focus"&&(me=["focus"],De=["blur"]),Le==="both"&&(me=["focus","mouseenter"],De=$?["blur"]:["mouseleave","blur"])}return{showEvents:me,hideEvents:De}},It=function(M){return rt(M,"position")||b},Jt=function(M){var me=rt(M,"mousetracktop")||a.mouseTrackTop,De=rt(M,"mousetrackleft")||a.mouseTrackLeft;return{top:me,left:De}},en=function(M,me){if(ye.current){var De=rt(M,"tooltip")||a.content;De?(ye.current.innerHTML="",ye.current.appendChild(document.createTextNode(De)),me()):a.children&&me()}},jt=function(M){en(Q.current,function(){var me=J.current,De=me.pageX,Le=me.pageY;a.autoZIndex&&!Sr.get(oe.current)&&Sr.set("tooltip",oe.current,i&&i.autoZIndex||Mt.autoZIndex,a.baseZIndex||i&&i.zIndex.tooltip||Mt.zIndex.tooltip),oe.current.style.left="",oe.current.style.top="",nt()&&(oe.current.style.pointerEvents="none");var He=st(Q.current)||M==="mouse";(He&&!ve.current||He)&&(ve.current={width:H.getOuterWidth(oe.current),height:H.getOuterHeight(oe.current)}),Pn(Q.current,{x:De,y:Le},M)})},ht=function(M){M.type&&M.type==="focus"&&j(!0),Q.current=M.currentTarget;var me=Ht(Q.current),De=Ye($t(Q.current)&&me?Q.current.firstChild:Q.current);if(!(De||me))if(J.current=M,f)bt("updateDelay",jt);else{var Le=Lt(a.onBeforeShow,{originalEvent:M,target:Q.current});Le&&bt("showDelay",function(){p(!0),Lt(a.onShow,{originalEvent:M,target:Q.current})})}},ft=function(M){if(M&&M.type==="blur"&&j(!1),In(),f){var me=Lt(a.onBeforeHide,{originalEvent:M,target:Q.current});me&&bt("hideDelay",function(){!nt()&&ke.current===!1||(Sr.clear(oe.current),H.removeClass(oe.current,"p-tooltip-active"),p(!1),Lt(a.onHide,{originalEvent:M,target:Q.current}))})}else!a.onBeforeHide&&!Qt("hideDelay")&&p(!1)},Pn=function(M,me,De){var Le=0,He=0,Ze=De||b;if((st(M)||Ze=="mouse")&&me){var Je={width:H.getOuterWidth(oe.current),height:H.getOuterHeight(oe.current)};Le=me.x,He=me.y;var pn=Jt(M),nn=pn.top,Vt=pn.left;switch(Ze){case"left":Le=Le-(Je.width+Vt),He=He-(Je.height/2-nn);break;case"right":case"mouse":Le=Le+Vt,He=He-(Je.height/2-nn);break;case"top":Le=Le-(Je.width/2-Vt),He=He-(Je.height+nn);break;case"bottom":Le=Le-(Je.width/2-Vt),He=He+nn;break}Le<=0||ve.current.width>Je.width?(oe.current.style.left="0px",oe.current.style.right=window.innerWidth-Je.width-Le+"px"):(oe.current.style.right="",oe.current.style.left=Le+"px"),oe.current.style.top=He+"px",H.addClass(oe.current,"p-tooltip-active")}else{var At=H.findCollisionPosition(Ze),gn=rt(M,"my")||a.my||At.my,rn=rt(M,"at")||a.at||At.at;oe.current.style.padding="0px",H.flipfitCollision(oe.current,M,gn,rn,function(hn){var Mn=hn.at,Rn=Mn.x,tr=Mn.y,Ne=hn.my.x,te=a.at?Rn!=="center"&&Rn!==Ne?Rn:tr:hn.at["".concat(At.axis)];oe.current.style.padding="",w(te),Nt(te),H.addClass(oe.current,"p-tooltip-active")})}},Nt=function(M){if(oe.current){var me=getComputedStyle(oe.current);M==="left"?oe.current.style.left=parseFloat(me.left)-parseFloat(me.paddingLeft)*2+"px":M==="top"&&(oe.current.style.top=parseFloat(me.top)-parseFloat(me.paddingTop)*2+"px")}},dn=function(){nt()||(ke.current=!1)},Rt=function(M){nt()||(ke.current=!0,ft(M))},Tn=function(M){if(M){var me=Et(M),De=me.showEvents,Le=me.hideEvents,He=Ct(M);De.forEach(function(Ze){return He==null?void 0:He.addEventListener(Ze,ht)}),Le.forEach(function(Ze){return He==null?void 0:He.addEventListener(Ze,ft)})}},Yt=function(M){if(M){var me=Et(M),De=me.showEvents,Le=me.hideEvents,He=Ct(M);De.forEach(function(Ze){return He==null?void 0:He.removeEventListener(Ze,ht)}),Le.forEach(function(Ze){return He==null?void 0:He.removeEventListener(Ze,ft)})}},Qt=function(M){return rt(Q.current,M.toLowerCase())||a[M]},bt=function(M,me){In();var De=Qt(M);De?z.current["".concat(M)]=setTimeout(function(){return me()},De):me()},Lt=function(M){if(M){for(var me=arguments.length,De=new Array(me>1?me-1:0),Le=1;Le<me;Le++)De[Le-1]=arguments[Le];var He=M.apply(void 0,De);return He===void 0&&(He=!0),He}return!0},In=function(){Object.values(z.current).forEach(function(M){return clearTimeout(M)})},Ct=function(M){if(M){if($t(M)){if(!M.hasWrapper){var me=document.createElement("div"),De=M.nodeName==="INPUT";return De?H.addMultipleClasses(me,"p-tooltip-target-wrapper p-inputwrapper"):H.addClass(me,"p-tooltip-target-wrapper"),M.parentNode.insertBefore(me,M),me.appendChild(M),M.hasWrapper=!0,me}return M.parentElement}else if(M.hasWrapper){var Le;(Le=M.parentElement).replaceWith.apply(Le,S1(M.parentElement.childNodes)),delete M.hasWrapper}return M}return null},Nn=function(M){Fe(M),tn(M)},tn=function(M){ae(M||a.target,Tn)},Fe=function(M){ae(M||a.target,Yt)},ae=function(M,me){if(M=V.getRefElement(M),M)if(H.isElement(M))me(M);else{var De=function(He){var Ze=H.find(document,He);Ze.forEach(function(Je){me(Je)})};M instanceof Array?M.forEach(function(Le){De(Le)}):De(M)}};Ar(function(){f&&Q.current&&Ht(Q.current)&&ft()}),Kt(function(){return tn(),function(){Fe()}},[ht,ft,a.target]),Kt(function(){if(f){var Oe=It(Q.current),M=rt(Q.current,"classname");w(Oe),O(M),jt(Oe),U(),ze()}else w(a.position||"right"),O(""),Q.current=null,ve.current=null,ke.current=!0;return function(){ce(),Me()}},[f]),Kt(function(){var Oe=It(Q.current);f&&Oe!=="mouse"&&bt("updateDelay",function(){en(Q.current,function(){Pn(Q.current)})})},[a.content]),jr(function(){ft(),Sr.clear(oe.current)}),v.useImperativeHandle(n,function(){return{props:a,updateTargetEvents:Nn,loadTargetEvents:tn,unloadTargetEvents:Fe,show:ht,hide:ft,getElement:function(){return oe.current},getTarget:function(){return Q.current}}});var he=function(){var M=Ue(Q.current),me=e({id:a.id,className:Be(a.className,q("root",{positionState:b,classNameState:C})),style:a.style,role:"tooltip","aria-hidden":f,onMouseEnter:function(Ze){return dn()},onMouseLeave:function(Ze){return Rt(Ze)}},kl.getOtherProps(a),F("root")),De=e({className:q("arrow"),style:K("arrow",T1({},Y))},F("arrow")),Le=e({className:q("text")},F("text"));return v.createElement("div",Bl({ref:oe},me),v.createElement("div",De),v.createElement("div",Bl({ref:ye},Le),M&&a.children))};if(f){var Ke=he();return v.createElement(is,{element:Ke,appendTo:a.appendTo,visible:!0})}return null}));os.displayName="Tooltip";function ta(){return ta=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},ta.apply(this,arguments)}function pa(o){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pa(o)}function I1(o,n){if(pa(o)!=="object"||o===null)return o;var e=o[Symbol.toPrimitive];if(e!==void 0){var i=e.call(o,n);if(pa(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function N1(o){var n=I1(o,"string");return pa(n)==="symbol"?n:String(n)}function Qr(o,n,e){return n=N1(n),n in o?Object.defineProperty(o,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[n]=e,o}var R1={root:function(n){var e=n.props;return Be("p-badge p-component",Qr({"p-badge-no-gutter":V.isNotEmpty(e.value)&&String(e.value).length===1,"p-badge-dot":V.isEmpty(e.value),"p-badge-lg":e.size==="large","p-badge-xl":e.size==="xlarge"},"p-badge-".concat(e.severity),e.severity!==null))}},L1=`
|
|
623
|
+
`,kl=tt.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:O1,styles:T1,inlineStyles:P1}});function Zp(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function I1(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Zp(Object(e),!0).forEach(function(o){nh(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Zp(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var os=v.memo(v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=kl.getProps(i,o),u=v.useState(!1),c=lo(u,2),f=c[0],p=c[1],h=v.useState(a.position||"right"),m=lo(h,2),b=m[0],w=m[1],x=v.useState(""),k=lo(x,2),C=k[0],O=k[1],_=v.useState(!1),N=lo(_,2),j=N[0],$=N[1],Y=f&&a.closeOnEscape,ie=Ug("tooltip",Y),Q={props:a,state:{visible:f,position:b,className:C},context:{right:b==="right",left:b==="left",top:b==="top",bottom:b==="bottom"}},D=kl.setMetaData(Q),F=D.ptm,q=D.cx,K=D.sx,se=D.isUnstyled;Dr(kl.css.styles,se,{name:"tooltip"}),Gg({callback:function(){ft()},when:Y,priority:[Kg.TOOLTIP,ie]});var oe=v.useRef(null),ye=v.useRef(null),X=v.useRef(null),ve=v.useRef(null),ke=v.useRef(!0),z=v.useRef({}),J=v.useRef(null),B=Kc({listener:function(M){!H.isTouchDevice()&&ft(M)}}),P=lo(B,2),U=P[0],ce=P[1],de=Yg({target:X.current,listener:function(M){ft(M)},when:f}),Te=lo(de,2),ze=Te[0],Me=Te[1],Ue=function(M){return!(a.content||rt(M,"tooltip"))},Ye=function(M){return!(a.content||rt(M,"tooltip")||a.children)},st=function(M){return rt(M,"mousetrack")||a.mouseTrack},Ht=function(M){return rt(M,"disabled")==="true"||fn(M,"disabled")||a.disabled},jt=function(M){return rt(M,"showondisabled")||a.showOnDisabled},nt=function(){return rt(X.current,"autohide")||a.autoHide},rt=function(M,me){return fn(M,"data-pr-".concat(me))?M.getAttribute("data-pr-".concat(me)):null},fn=function(M,me){return M&&M.hasAttribute(me)},Et=function(M){var me=[rt(M,"showevent")||a.showEvent],De=[rt(M,"hideevent")||a.hideEvent];if(st(M))me=["mousemove"],De=["mouseleave"];else{var _e=rt(M,"event")||a.event;_e==="focus"&&(me=["focus"],De=["blur"]),_e==="both"&&(me=["focus","mouseenter"],De=j?["blur"]:["mouseleave","blur"])}return{showEvents:me,hideEvents:De}},It=function(M){return rt(M,"position")||b},Jt=function(M){var me=rt(M,"mousetracktop")||a.mouseTrackTop,De=rt(M,"mousetrackleft")||a.mouseTrackLeft;return{top:me,left:De}},en=function(M,me){if(ye.current){var De=rt(M,"tooltip")||a.content;De?(ye.current.innerHTML="",ye.current.appendChild(document.createTextNode(De)),me()):a.children&&me()}},$t=function(M){en(X.current,function(){var me=J.current,De=me.pageX,_e=me.pageY;a.autoZIndex&&!Sr.get(oe.current)&&Sr.set("tooltip",oe.current,o&&o.autoZIndex||Mt.autoZIndex,a.baseZIndex||o&&o.zIndex.tooltip||Mt.zIndex.tooltip),oe.current.style.left="",oe.current.style.top="",nt()&&(oe.current.style.pointerEvents="none");var He=st(X.current)||M==="mouse";(He&&!ve.current||He)&&(ve.current={width:H.getOuterWidth(oe.current),height:H.getOuterHeight(oe.current)}),Pn(X.current,{x:De,y:_e},M)})},ht=function(M){M.type&&M.type==="focus"&&$(!0),X.current=M.currentTarget;var me=Ht(X.current),De=Ye(jt(X.current)&&me?X.current.firstChild:X.current);if(!(De||me))if(J.current=M,f)bt("updateDelay",$t);else{var _e=_t(a.onBeforeShow,{originalEvent:M,target:X.current});_e&&bt("showDelay",function(){p(!0),_t(a.onShow,{originalEvent:M,target:X.current})})}},ft=function(M){if(M&&M.type==="blur"&&$(!1),In(),f){var me=_t(a.onBeforeHide,{originalEvent:M,target:X.current});me&&bt("hideDelay",function(){!nt()&&ke.current===!1||(Sr.clear(oe.current),H.removeClass(oe.current,"p-tooltip-active"),p(!1),_t(a.onHide,{originalEvent:M,target:X.current}))})}else!a.onBeforeHide&&!Qt("hideDelay")&&p(!1)},Pn=function(M,me,De){var _e=0,He=0,Ze=De||b;if((st(M)||Ze=="mouse")&&me){var Je={width:H.getOuterWidth(oe.current),height:H.getOuterHeight(oe.current)};_e=me.x,He=me.y;var pn=Jt(M),nn=pn.top,Vt=pn.left;switch(Ze){case"left":_e=_e-(Je.width+Vt),He=He-(Je.height/2-nn);break;case"right":case"mouse":_e=_e+Vt,He=He-(Je.height/2-nn);break;case"top":_e=_e-(Je.width/2-Vt),He=He-(Je.height+nn);break;case"bottom":_e=_e-(Je.width/2-Vt),He=He+nn;break}_e<=0||ve.current.width>Je.width?(oe.current.style.left="0px",oe.current.style.right=window.innerWidth-Je.width-_e+"px"):(oe.current.style.right="",oe.current.style.left=_e+"px"),oe.current.style.top=He+"px",H.addClass(oe.current,"p-tooltip-active")}else{var At=H.findCollisionPosition(Ze),gn=rt(M,"my")||a.my||At.my,rn=rt(M,"at")||a.at||At.at;oe.current.style.padding="0px",H.flipfitCollision(oe.current,M,gn,rn,function(hn){var Mn=hn.at,Rn=Mn.x,tr=Mn.y,Ne=hn.my.x,te=a.at?Rn!=="center"&&Rn!==Ne?Rn:tr:hn.at["".concat(At.axis)];oe.current.style.padding="",w(te),Nt(te),H.addClass(oe.current,"p-tooltip-active")})}},Nt=function(M){if(oe.current){var me=getComputedStyle(oe.current);M==="left"?oe.current.style.left=parseFloat(me.left)-parseFloat(me.paddingLeft)*2+"px":M==="top"&&(oe.current.style.top=parseFloat(me.top)-parseFloat(me.paddingTop)*2+"px")}},dn=function(){nt()||(ke.current=!1)},Rt=function(M){nt()||(ke.current=!0,ft(M))},Tn=function(M){if(M){var me=Et(M),De=me.showEvents,_e=me.hideEvents,He=Ct(M);De.forEach(function(Ze){return He==null?void 0:He.addEventListener(Ze,ht)}),_e.forEach(function(Ze){return He==null?void 0:He.addEventListener(Ze,ft)})}},Yt=function(M){if(M){var me=Et(M),De=me.showEvents,_e=me.hideEvents,He=Ct(M);De.forEach(function(Ze){return He==null?void 0:He.removeEventListener(Ze,ht)}),_e.forEach(function(Ze){return He==null?void 0:He.removeEventListener(Ze,ft)})}},Qt=function(M){return rt(X.current,M.toLowerCase())||a[M]},bt=function(M,me){In();var De=Qt(M);De?z.current["".concat(M)]=setTimeout(function(){return me()},De):me()},_t=function(M){if(M){for(var me=arguments.length,De=new Array(me>1?me-1:0),_e=1;_e<me;_e++)De[_e-1]=arguments[_e];var He=M.apply(void 0,De);return He===void 0&&(He=!0),He}return!0},In=function(){Object.values(z.current).forEach(function(M){return clearTimeout(M)})},Ct=function(M){if(M){if(jt(M)){if(!M.hasWrapper){var me=document.createElement("div"),De=M.nodeName==="INPUT";return De?H.addMultipleClasses(me,"p-tooltip-target-wrapper p-inputwrapper"):H.addClass(me,"p-tooltip-target-wrapper"),M.parentNode.insertBefore(me,M),me.appendChild(M),M.hasWrapper=!0,me}return M.parentElement}else if(M.hasWrapper){var _e;(_e=M.parentElement).replaceWith.apply(_e,x1(M.parentElement.childNodes)),delete M.hasWrapper}return M}return null},Nn=function(M){Fe(M),tn(M)},tn=function(M){ae(M||a.target,Tn)},Fe=function(M){ae(M||a.target,Yt)},ae=function(M,me){if(M=V.getRefElement(M),M)if(H.isElement(M))me(M);else{var De=function(He){var Ze=H.find(document,He);Ze.forEach(function(Je){me(Je)})};M instanceof Array?M.forEach(function(_e){De(_e)}):De(M)}};Ar(function(){f&&X.current&&Ht(X.current)&&ft()}),Kt(function(){return tn(),function(){Fe()}},[ht,ft,a.target]),Kt(function(){if(f){var Oe=It(X.current),M=rt(X.current,"classname");w(Oe),O(M),$t(Oe),U(),ze()}else w(a.position||"right"),O(""),X.current=null,ve.current=null,ke.current=!0;return function(){ce(),Me()}},[f]),Kt(function(){var Oe=It(X.current);f&&Oe!=="mouse"&&bt("updateDelay",function(){en(X.current,function(){Pn(X.current)})})},[a.content]),$r(function(){ft(),Sr.clear(oe.current)}),v.useImperativeHandle(n,function(){return{props:a,updateTargetEvents:Nn,loadTargetEvents:tn,unloadTargetEvents:Fe,show:ht,hide:ft,getElement:function(){return oe.current},getTarget:function(){return X.current}}});var he=function(){var M=Ue(X.current),me=e({id:a.id,className:Be(a.className,q("root",{positionState:b,classNameState:C})),style:a.style,role:"tooltip","aria-hidden":f,onMouseEnter:function(Ze){return dn()},onMouseLeave:function(Ze){return Rt(Ze)}},kl.getOtherProps(a),F("root")),De=e({className:q("arrow"),style:K("arrow",I1({},Q))},F("arrow")),_e=e({className:q("text")},F("text"));return v.createElement("div",Bl({ref:oe},me),v.createElement("div",De),v.createElement("div",Bl({ref:ye},_e),M&&a.children))};if(f){var Ke=he();return v.createElement(is,{element:Ke,appendTo:a.appendTo,visible:!0})}return null}));os.displayName="Tooltip";function ta(){return ta=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},ta.apply(this,arguments)}function pa(i){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pa(i)}function N1(i,n){if(pa(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(pa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function R1(i){var n=N1(i,"string");return pa(n)==="symbol"?n:String(n)}function Qr(i,n,e){return n=R1(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}var _1={root:function(n){var e=n.props;return Be("p-badge p-component",Qr({"p-badge-no-gutter":V.isNotEmpty(e.value)&&String(e.value).length===1,"p-badge-dot":V.isEmpty(e.value),"p-badge-lg":e.size==="large","p-badge-xl":e.size==="xlarge"},"p-badge-".concat(e.severity),e.severity!==null))}},L1=`
|
|
624
624
|
@layer primereact {
|
|
625
625
|
.p-badge {
|
|
626
626
|
display: inline-block;
|
|
@@ -655,13 +655,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
655
655
|
border-radius: 50%;
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
`,Ol=tt.extend({defaultProps:{__TYPE:"Badge",__parentMetadata:null,value:null,severity:null,size:null,style:null,className:null,children:void 0},css:{classes:
|
|
658
|
+
`,Ol=tt.extend({defaultProps:{__TYPE:"Badge",__parentMetadata:null,value:null,severity:null,size:null,style:null,className:null,children:void 0},css:{classes:_1,styles:L1}});function Jp(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function j1(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Jp(Object(e),!0).forEach(function(o){Qr(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Jp(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var ih=v.memo(v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=Ol.getProps(i,o),u=Ol.setMetaData(j1({props:a},a.__parentMetadata)),c=u.ptm,f=u.cx,p=u.isUnstyled;Dr(Ol.css.styles,p,{name:"badge"});var h=v.useRef(null);v.useImperativeHandle(n,function(){return{props:a,getElement:function(){return h.current}}});var m=e({ref:h,style:a.style,className:Be(a.className,f("root"))},Ol.getOtherProps(a),c("root"));return v.createElement("span",m,a.value)}));ih.displayName="Badge";var $1={icon:function(n){var e=n.props;return Be("p-button-icon p-c",Qr({},"p-button-icon-".concat(e.iconPos),e.label))},loadingIcon:function(n){var e=n.props,o=n.className;return Be(o,{"p-button-loading-icon":e.loading})},label:"p-button-label p-c",root:function(n){var e=n.props,o=n.size,a=n.disabled;return Be("p-button p-component",Qr(Qr(Qr(Qr({"p-button-icon-only":(e.icon||e.loading)&&!e.label&&!e.children,"p-button-vertical":(e.iconPos==="top"||e.iconPos==="bottom")&&e.label,"p-disabled":a,"p-button-loading":e.loading,"p-button-outlined":e.outlined,"p-button-raised":e.raised,"p-button-link":e.link,"p-button-text":e.text,"p-button-rounded":e.rounded,"p-button-loading-label-only":e.loading&&!e.icon&&e.label},"p-button-loading-".concat(e.iconPos),e.loading&&e.label),"p-button-".concat(o),o),"p-button-".concat(e.severity),e.severity),"p-button-plain",e.plain))}},Pl=tt.extend({defaultProps:{__TYPE:"Button",__parentMetadata:null,badge:null,badgeClassName:null,className:null,children:void 0,disabled:!1,icon:null,iconPos:"left",label:null,link:!1,loading:!1,loadingIcon:null,outlined:!1,plain:!1,raised:!1,rounded:!1,severity:null,size:null,text:!1,tooltip:null,tooltipOptions:null,visible:!0},css:{classes:$1}});function eg(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function Gu(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?eg(Object(e),!0).forEach(function(o){Qr(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):eg(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var Jn=v.memo(v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=Pl.getProps(i,o),u=a.disabled||a.loading,c=Gu(Gu({props:a},a.__parentMetadata),{},{context:{disabled:u}}),f=Pl.setMetaData(c),p=f.ptm,h=f.cx,m=f.isUnstyled;Dr(Pl.css.styles,m,{name:"button",styled:!0});var b=v.useRef(n);if(v.useEffect(function(){V.combinedRefs(b,n)},[b,n]),a.visible===!1)return null;var w=function(){var F=Be("p-button-icon p-c",Qr({},"p-button-icon-".concat(a.iconPos),a.label)),q=e({className:h("icon")},p("icon"));F=Be(F,{"p-button-loading-icon":a.loading});var K=e({className:h("loadingIcon",{className:F})},p("loadingIcon")),se=a.loading?a.loadingIcon||v.createElement(rs,ta({},K,{spin:!0})):a.icon;return jr.getJSXIcon(se,Gu({},q),{props:a})},x=function(){var F=e({className:h("label")},p("label"));return a.label?v.createElement("span",F,a.label):!a.children&&!a.label&&v.createElement("span",ta({},F,{dangerouslySetInnerHTML:{__html:" "}}))},k=function(){if(a.badge){var F=e({className:Be(a.badgeClassName),value:a.badge,unstyled:a.unstyled,__parentMetadata:{parent:c}},p("badge"));return v.createElement(ih,F,a.badge)}return null},C=!u||a.tooltipOptions&&a.tooltipOptions.showOnDisabled,O=V.isNotEmpty(a.tooltip)&&C,_={large:"lg",small:"sm"},N=_[a.size],j=w(),$=x(),Y=k(),ie=a.label?a.label+(a.badge?" "+a.badge:""):a["aria-label"],Q=e({ref:b,"aria-label":ie,"data-pc-autofocus":a.autoFocus,className:Be(a.className,h("root",{size:N,disabled:u})),disabled:u},Pl.getOtherProps(a),p("root"));return v.createElement(v.Fragment,null,v.createElement("button",Q,j,$,a.children,Y,v.createElement(ho,null)),O&&v.createElement(os,ta({target:b,content:a.tooltip,pt:p("tooltip")},a.tooltipOptions)))}));Jn.displayName="Button";function A1(i){return i.varName?` for '${i.varName}'`:""}function D1(i,n={}){if(i==null||i===""&&!n.allowEmpty)throw new Error(`Missing string value${A1(n)}`);return typeof i=="string"?i:i.toString()}const z1=`${`//${document.location.host}`}/api/plugin/site-generator`;let oh;const[Yu]=document.getElementsByClassName("js-script-site-generator");Yu&&Yu instanceof HTMLScriptElement&&(oh=D1(Yu.dataset.googleRecaptchaKey,{varName:"data-google-recaptcha-key"}));const Qu=oh;async function Ul(i){try{const n=await fetch(z1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});return n.ok?n.json():{success:!1,userMessage:`Failed to execute command: ${n.statusText}`}}catch(n){return{success:!1,userMessage:`Communication error: ${n.message}`}}}function tg({onVerified:i}){const{t:n}=hi(),[e,o]=v.useState(),[a,u]=v.useState(),[c,f]=v.useState(!1),[p,h]=v.useState(),[m,b]=v.useState(!!window.grecaptcha),w=Qu;v.useEffect(()=>{if(w){if(window.onRecaptchaSubmitted=k=>{o(k)},window.onRecaptchaExpired=()=>{o(void 0)},m===!1&&!window.grecaptcha){b("loading");const k=document.createElement("script");k.src="https://www.google.com/recaptcha/api.js",k.async=!0,k.defer=!0,k.onload=()=>b(!0),document.head.appendChild(k)}else b(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[]),v.useEffect(()=>{(async()=>{var C;if(e){f(!0),h(void 0);try{const O=await Ul({command:"newSession",recaptchaToken:e});O.success&&((C=O.result)!=null&&C.token)?u(O.result.token):h("Failed to create session")}catch(O){h("Error connecting to server"),console.error(O)}finally{f(!1)}}})()},[e]);const x=()=>{a&&i(a)};return G.jsx("div",{className:"flex flex-column align-items-center justify-content-center p-4",children:G.jsxs("div",{className:"card p-4 shadow-2",style:{maxWidth:"650px"},children:[G.jsx("h2",{className:"text-center",children:n("title")}),G.jsx("div",{className:"my-4 Text",dangerouslySetInnerHTML:{__html:n("introduction")}}),p&&G.jsx("div",{className:"my-2 p-3 bg-red-100 text-red-800 border-round",children:G.jsx("p",{className:"m-0",children:p})}),G.jsxs("div",{className:"flex flex-row align-items-center gap-3 justify-content-center flex-wrap",children:[Qu&&m===!0?G.jsx("div",{className:"g-recaptcha","data-sitekey":Qu,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):G.jsx("div",{className:"border-1 border-round p-3 bg-gray-100",children:G.jsx("p",{className:"m-0",children:"Loading reCAPTCHA…"})}),G.jsx(Jn,{label:n(c?"loading":"agree"),onClick:x,className:"p-button-primary w-10rem",disabled:!a||c,loading:c})]})]})})}var F1={root:"p-card p-component",header:"p-card-header",title:"p-card-title",subTitle:"p-card-subtitle",content:"p-card-content",footer:"p-card-footer",body:"p-card-body"},M1=`
|
|
659
659
|
@layer primereact {
|
|
660
660
|
.p-card-header img {
|
|
661
661
|
width: 100%;
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
`,Tl=tt.extend({defaultProps:{__TYPE:"Card",id:null,header:null,footer:null,title:null,subTitle:null,style:null,className:null,children:void 0},css:{classes:
|
|
664
|
+
`,Tl=tt.extend({defaultProps:{__TYPE:"Card",id:null,header:null,footer:null,title:null,subTitle:null,style:null,className:null,children:void 0},css:{classes:F1,styles:M1}}),Fl=v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=Tl.getProps(i,o),u=v.useRef(n),c=Tl.setMetaData({props:a}),f=c.ptm,p=c.cx,h=c.isUnstyled;Dr(Tl.css.styles,h,{name:"card"});var m=function(){var O=e({className:p("header")},f("header"));return a.header?v.createElement("div",O,V.getJSXElement(a.header,a)):null},b=function(){var O=e({className:p("title")},f("title")),_=a.title&&v.createElement("div",O,V.getJSXElement(a.title,a)),N=e({className:p("subTitle")},f("subTitle")),j=a.subTitle&&v.createElement("div",N,V.getJSXElement(a.subTitle,a)),$=e({className:p("content")},f("content")),Y=a.children&&v.createElement("div",$,a.children),ie=e({className:p("footer")},f("footer")),Q=a.footer&&v.createElement("div",ie,V.getJSXElement(a.footer,a)),D=e({className:p("body")},f("body"));return v.createElement("div",D,_,j,Y,Q)};v.useEffect(function(){V.combinedRefs(u,n)},[u,n]);var w=e({id:a.id,ref:u,style:a.style,className:Be(a.className,p("root"))},Tl.getOtherProps(a),f("root")),x=m(),k=b();return v.createElement("div",w,x,k)});Fl.displayName="Card";var H1={root:"p-progress-spinner",spinner:"p-progress-spinner-svg",circle:"p-progress-spinner-circle"},V1=`
|
|
665
665
|
@layer primereact {
|
|
666
666
|
.p-progress-spinner {
|
|
667
667
|
position: relative;
|
|
@@ -736,71 +736,71 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
736
736
|
stroke: #ffa700;
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
`,
|
|
739
|
+
`,B1={spinner:function(n){var e=n.props;return{animationDuration:e.animationDuration}}},Il=tt.extend({defaultProps:{__TYPE:"ProgressSpinner",id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s",children:void 0},css:{classes:H1,styles:V1,inlineStyles:B1}}),ah=v.memo(v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=Il.getProps(i,o),u=v.useRef(null),c=Il.setMetaData({props:a}),f=c.ptm,p=c.cx,h=c.sx,m=c.isUnstyled;Dr(Il.css.styles,m,{name:"progressspinner"}),v.useImperativeHandle(n,function(){return{props:a,getElement:function(){return u.current}}});var b=e({id:a.id,ref:u,style:a.style,className:Be(a.className,p("root")),role:"progressbar","aria-busy":!0},Il.getOtherProps(a),f("root")),w=e({className:p("spinner"),viewBox:"25 25 50 50",style:h("spinner")},f("spinner")),x=e({className:p("circle"),cx:"50",cy:"50",r:"20",fill:a.fill,strokeWidth:a.strokeWidth,strokeMiterlimit:"10"},f("circle"));return v.createElement("div",b,v.createElement("svg",w,v.createElement("circle",x)))}));ah.displayName="ProgressSpinner";function U1(i){try{const n=i.split(".");if(n.length===3){const e=JSON.parse(atob(n[1])),o=15*60*1e3;if(e.exp&&e.exp*1e3>Date.now()+o)return!0}return!1}catch{return!1}}function vc(){const i=sessionStorage.getItem("sessionToken");if(!i)throw new Error("Session token not found");return i}function K1({generatedSchema:i,withFakeContent:n,generatedSite:e,onGenerated:o,onReset:a}){const{t:u}=hi(),[c,f]=v.useState(e),[p,h]=v.useState(),[m,b]=v.useState(!e);v.useEffect(()=>{if(e)return;(async()=>{b(!0),h(void 0);try{const k=await Ul({command:"generateSite",sessionToken:vc(),generatedSchema:i,withFakeContent:n});k.success?(f(k.result),o&&o(k.result)):h(u("errorOccurred",{message:k.userMessage??u("unknownError")}))}finally{b(!1)}})()},[i,n,u,e,o]);const w=()=>{a&&a()};return G.jsx("div",{className:"flex flex-column align-items-center justify-content-center mt-4",children:m?G.jsx(Fl,{className:"shadow-3 p-4",style:{maxWidth:"650px"},children:G.jsxs("div",{className:"bg-green-50 p-4 border-round flex flex-column align-items-center gap-3",children:[G.jsx(ah,{style:{width:"50px",height:"50px"}}),G.jsx("div",{className:"text-xl",children:u("generatingSite")})]})}):c?G.jsxs(Fl,{className:"shadow-3 p-0",style:{maxWidth:"650px"},children:[G.jsxs("div",{className:"relative",children:[G.jsx(Jn,{icon:"pi pi-times",onClick:w,title:u("reset"),severity:"secondary",className:"p-button-rounded p-button-text absolute right-0 top-0 mt-2 mr-2"}),G.jsx("h1",{className:"text-center font-bold text-2xl p-3 text-primary",children:u("siteGenerated")})]}),G.jsx("div",{className:"mb-3 px-4 Text",dangerouslySetInnerHTML:{__html:u("userManual")}}),G.jsxs("div",{className:"bg-green-100 p-3",children:[G.jsxs("div",{className:"flex flex-column gap-1 w-full",children:[G.jsxs("div",{className:"flex align-items-center w-full",children:[G.jsx("div",{className:"font-bold w-7rem",children:u("email")}),G.jsx("div",{className:"flex-grow flex align-items-center",children:G.jsx("input",{type:"text",value:c.account.email,readOnly:!0,className:"w-full border-none bg-transparent"})})]}),c.account.kind==="local"&&G.jsxs("div",{className:"flex align-items-center w-full",children:[G.jsx("div",{className:"font-bold w-7rem",children:u("password")}),G.jsx("div",{className:"flex-grow flex align-items-center",children:G.jsx("input",{type:"text",value:c.account.password,readOnly:!0,className:"w-full border-none bg-transparent"})})]}),G.jsxs("div",{className:"flex align-items-center w-full",children:[G.jsx("div",{className:"font-bold w-7rem",children:u("siteUrl")}),G.jsx("div",{className:"flex-grow flex align-items-center",children:G.jsx("input",{type:"text",value:c.url,readOnly:!0,className:"w-full border-none bg-transparent"})}),G.jsx(Jn,{icon:"pi pi-external-link",onClick:()=>window.open(c.url,"_blank"),title:u("viewSite"),className:"p-button-rounded p-button-sm p-button-outlined ml-2"})]}),G.jsxs("div",{className:"flex align-items-center w-full",children:[G.jsx("div",{className:"font-bold w-7rem",children:u("adminUrl")}),G.jsx("div",{className:"flex-grow flex align-items-center",children:G.jsx("input",{type:"text",value:c.boUrl,readOnly:!0,className:"w-full border-none bg-transparent"})}),G.jsx(Jn,{icon:"pi pi-external-link",onClick:()=>window.open(c.boUrl,"_blank"),title:u("administration"),className:"p-button-rounded p-button-sm p-button-outlined ml-2"})]})]}),G.jsx("div",{className:"flex justify-content-center mt-3",children:G.jsx(Jn,{icon:"pi pi-copy",label:u("copyToClipboard"),onClick:()=>{const x=`
|
|
740
740
|
${u("siteGenerated")}
|
|
741
741
|
${u("email")}: ${c.account.email}
|
|
742
742
|
${c.account.kind==="local"?`${u("password")}: ${c.account.password}
|
|
743
743
|
`:""}
|
|
744
744
|
${u("siteUrl")}: ${c.url}
|
|
745
745
|
${u("adminUrl")}: ${c.boUrl}
|
|
746
|
-
`.trim();navigator.clipboard.writeText(x)},className:"p-button-outlined"})})]})]}):p?
|
|
747
|
-
]`).replace("lheading",
|
|
746
|
+
`.trim();navigator.clipboard.writeText(x)},className:"p-button-outlined"})})]})]}):p?G.jsxs(Fl,{className:"shadow-3 bg-red-50 border-red-300",style:{maxWidth:"600px"},children:[G.jsxs("div",{className:"flex align-items-center gap-2",children:[G.jsx("i",{className:"pi pi-exclamation-triangle text-red-500 text-xl"}),G.jsx("span",{className:"text-red-700",children:p})]}),G.jsx("div",{className:"flex justify-content-center mt-3",children:G.jsx(Jn,{label:u("reset"),onClick:w,severity:"secondary",className:"p-button"})})]}):null})}function Wc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Di=Wc();function lh(i){Di=i}const na={exec:()=>null};function ct(i,n=""){let e=typeof i=="string"?i:i.source;const o={replace:(a,u)=>{let c=typeof u=="string"?u:u.source;return c=c.replace(Fn.caret,"$1"),e=e.replace(a,c),o},getRegex:()=>new RegExp(e,n)};return o}const Fn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},W1=/^(?:[ \t]*(?:\n|$))+/,G1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Y1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,wa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Q1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Gc=/(?:[*+-]|\d{1,9}[.)])/,sh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,uh=ct(sh).replace(/bull/g,Gc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),X1=ct(sh).replace(/bull/g,Gc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Yc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,q1=/^[^\n]+/,Qc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Z1=ct(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Qc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),J1=ct(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Gc).getRegex(),as="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Xc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,e0=ct("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Xc).replace("tag",as).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ch=ct(Yc).replace("hr",wa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",as).getRegex(),t0=ct(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ch).getRegex(),qc={blockquote:t0,code:G1,def:Z1,fences:Y1,heading:Q1,hr:wa,html:e0,lheading:uh,list:J1,newline:W1,paragraph:ch,table:na,text:q1},ng=ct("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",wa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",as).getRegex(),n0={...qc,lheading:X1,table:ng,paragraph:ct(Yc).replace("hr",wa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ng).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",as).getRegex()},r0={...qc,html:ct(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:na,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ct(Yc).replace("hr",wa).replace("heading",` *#{1,6} *[^
|
|
747
|
+
]`).replace("lheading",uh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},i0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,o0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,fh=/^( {2,}|\\)\n(?!\s*$)/,a0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ls=/[\p{P}\p{S}]/u,Zc=/[\s\p{P}\p{S}]/u,dh=/[^\s\p{P}\p{S}]/u,l0=ct(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Zc).getRegex(),ph=/(?!~)[\p{P}\p{S}]/u,s0=/(?!~)[\s\p{P}\p{S}]/u,u0=/(?:[^\s\p{P}\p{S}]|~)/u,c0=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,gh=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,f0=ct(gh,"u").replace(/punct/g,ls).getRegex(),d0=ct(gh,"u").replace(/punct/g,ph).getRegex(),hh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",p0=ct(hh,"gu").replace(/notPunctSpace/g,dh).replace(/punctSpace/g,Zc).replace(/punct/g,ls).getRegex(),g0=ct(hh,"gu").replace(/notPunctSpace/g,u0).replace(/punctSpace/g,s0).replace(/punct/g,ph).getRegex(),h0=ct("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,dh).replace(/punctSpace/g,Zc).replace(/punct/g,ls).getRegex(),m0=ct(/\\(punct)/,"gu").replace(/punct/g,ls).getRegex(),v0=ct(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),y0=ct(Xc).replace("(?:-->|$)","-->").getRegex(),b0=ct("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",y0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Kl=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,w0=ct(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Kl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),mh=ct(/^!?\[(label)\]\[(ref)\]/).replace("label",Kl).replace("ref",Qc).getRegex(),vh=ct(/^!?\[(ref)\](?:\[\])?/).replace("ref",Qc).getRegex(),S0=ct("reflink|nolink(?!\\()","g").replace("reflink",mh).replace("nolink",vh).getRegex(),Jc={_backpedal:na,anyPunctuation:m0,autolink:v0,blockSkip:c0,br:fh,code:o0,del:na,emStrongLDelim:f0,emStrongRDelimAst:p0,emStrongRDelimUnd:h0,escape:i0,link:w0,nolink:vh,punctuation:l0,reflink:mh,reflinkSearch:S0,tag:b0,text:a0,url:na},x0={...Jc,link:ct(/^!?\[(label)\]\((.*?)\)/).replace("label",Kl).getRegex(),reflink:ct(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Kl).getRegex()},yc={...Jc,emStrongRDelimAst:g0,emStrongLDelim:d0,url:ct(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},E0={...yc,br:ct(fh).replace("{2,}","*").getRegex(),text:ct(yc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Nl={normal:qc,gfm:n0,pedantic:r0},Qo={normal:Jc,gfm:yc,breaks:E0,pedantic:x0},C0={"&":"&","<":"<",">":">",'"':""","'":"'"},rg=i=>C0[i];function Ir(i,n){if(n){if(Fn.escapeTest.test(i))return i.replace(Fn.escapeReplace,rg)}else if(Fn.escapeTestNoEncode.test(i))return i.replace(Fn.escapeReplaceNoEncode,rg);return i}function ig(i){try{i=encodeURI(i).replace(Fn.percentDecode,"%")}catch{return null}return i}function og(i,n){var u;const e=i.replace(Fn.findPipe,(c,f,p)=>{let h=!1,m=f;for(;--m>=0&&p[m]==="\\";)h=!h;return h?"|":" |"}),o=e.split(Fn.splitPipe);let a=0;if(o[0].trim()||o.shift(),o.length>0&&!((u=o.at(-1))!=null&&u.trim())&&o.pop(),n)if(o.length>n)o.splice(n);else for(;o.length<n;)o.push("");for(;a<o.length;a++)o[a]=o[a].trim().replace(Fn.slashPipe,"|");return o}function Xo(i,n,e){const o=i.length;if(o===0)return"";let a=0;for(;a<o&&i.charAt(o-a-1)===n;)a++;return i.slice(0,o-a)}function k0(i,n){if(i.indexOf(n[1])===-1)return-1;let e=0;for(let o=0;o<i.length;o++)if(i[o]==="\\")o++;else if(i[o]===n[0])e++;else if(i[o]===n[1]&&(e--,e<0))return o;return-1}function ag(i,n,e,o,a){const u=n.href,c=n.title||null,f=i[1].replace(a.other.outputLinkReplace,"$1");if(i[0].charAt(0)!=="!"){o.state.inLink=!0;const p={type:"link",raw:e,href:u,title:c,text:f,tokens:o.inlineTokens(f)};return o.state.inLink=!1,p}return{type:"image",raw:e,href:u,title:c,text:f}}function O0(i,n,e){const o=i.match(e.other.indentCodeCompensation);if(o===null)return n;const a=o[1];return n.split(`
|
|
748
748
|
`).map(u=>{const c=u.match(e.other.beginningSpace);if(c===null)return u;const[f]=c;return f.length>=a.length?u.slice(a.length):u}).join(`
|
|
749
|
-
`)}class Wl{constructor(n){gt(this,"options");gt(this,"rules");gt(this,"lexer");this.options=n||Di}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const
|
|
750
|
-
`)}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const
|
|
751
|
-
`)}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){let
|
|
749
|
+
`)}class Wl{constructor(n){gt(this,"options");gt(this,"rules");gt(this,"lexer");this.options=n||Di}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const o=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Xo(o,`
|
|
750
|
+
`)}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const o=e[0],a=O0(o,e[3]||"",this.rules);return{type:"code",raw:o,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:a}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let o=e[2].trim();if(this.rules.other.endingHash.test(o)){const a=Xo(o,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(o=a.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:Xo(e[0],`
|
|
751
|
+
`)}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){let o=Xo(e[0],`
|
|
752
752
|
`).split(`
|
|
753
|
-
`),a="",u="";const c=[];for(;
|
|
753
|
+
`),a="",u="";const c=[];for(;o.length>0;){let f=!1;const p=[];let h;for(h=0;h<o.length;h++)if(this.rules.other.blockquoteStart.test(o[h]))p.push(o[h]),f=!0;else if(!f)p.push(o[h]);else break;o=o.slice(h);const m=p.join(`
|
|
754
754
|
`),b=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
755
755
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
|
|
756
756
|
${m}`:m,u=u?`${u}
|
|
757
|
-
${b}`:b;const w=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,c,!0),this.lexer.state.top=w,
|
|
758
|
-
`+
|
|
757
|
+
${b}`:b;const w=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,c,!0),this.lexer.state.top=w,o.length===0)break;const x=c.at(-1);if((x==null?void 0:x.type)==="code")break;if((x==null?void 0:x.type)==="blockquote"){const k=x,C=k.raw+`
|
|
758
|
+
`+o.join(`
|
|
759
759
|
`),O=this.blockquote(C);c[c.length-1]=O,a=a.substring(0,a.length-k.raw.length)+O.raw,u=u.substring(0,u.length-k.text.length)+O.text;break}else if((x==null?void 0:x.type)==="list"){const k=x,C=k.raw+`
|
|
760
|
-
`+
|
|
761
|
-
`),O=this.list(C);c[c.length-1]=O,a=a.substring(0,a.length-x.raw.length)+O.raw,u=u.substring(0,u.length-k.raw.length)+O.raw,
|
|
762
|
-
`);continue}}return{type:"blockquote",raw:a,tokens:c,text:u}}}list(n){let e=this.rules.block.list.exec(n);if(e){let
|
|
760
|
+
`+o.join(`
|
|
761
|
+
`),O=this.list(C);c[c.length-1]=O,a=a.substring(0,a.length-x.raw.length)+O.raw,u=u.substring(0,u.length-k.raw.length)+O.raw,o=C.substring(c.at(-1).raw.length).split(`
|
|
762
|
+
`);continue}}return{type:"blockquote",raw:a,tokens:c,text:u}}}list(n){let e=this.rules.block.list.exec(n);if(e){let o=e[1].trim();const a=o.length>1,u={type:"list",raw:"",ordered:a,start:a?+o.slice(0,-1):"",loose:!1,items:[]};o=a?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=a?o:"[*+-]");const c=this.rules.other.listItemRegex(o);let f=!1;for(;n;){let h=!1,m="",b="";if(!(e=c.exec(n))||this.rules.block.hr.test(n))break;m=e[0],n=n.substring(m.length);let w=e[2].split(`
|
|
763
763
|
`,1)[0].replace(this.rules.other.listReplaceTabs,N=>" ".repeat(3*N.length)),x=n.split(`
|
|
764
764
|
`,1)[0],k=!w.trim(),C=0;if(this.options.pedantic?(C=2,b=w.trimStart()):k?C=e[1].length+1:(C=e[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,b=w.slice(C),C+=e[1].length),k&&this.rules.other.blankLine.test(x)&&(m+=x+`
|
|
765
|
-
`,n=n.substring(x.length+1),h=!0),!h){const N=this.rules.other.nextBulletRegex(C)
|
|
766
|
-
`,1)[0];let D;if(x=
|
|
767
|
-
`+D.slice(C);else{if(k||w.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4
|
|
768
|
-
`+x}!k&&!x.trim()&&(k=!0),m+=
|
|
769
|
-
`,n=n.substring(
|
|
770
|
-
`):[],c={type:"table",raw:e[0],header:[],align:[],rows:[]};if(
|
|
771
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:
|
|
772
|
-
`),this.blockTokens(n,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const
|
|
765
|
+
`,n=n.substring(x.length+1),h=!0),!h){const N=this.rules.other.nextBulletRegex(C),j=this.rules.other.hrRegex(C),$=this.rules.other.fencesBeginRegex(C),Y=this.rules.other.headingBeginRegex(C),ie=this.rules.other.htmlBeginRegex(C);for(;n;){const Q=n.split(`
|
|
766
|
+
`,1)[0];let D;if(x=Q,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),D=x):D=x.replace(this.rules.other.tabCharGlobal," "),$.test(x)||Y.test(x)||ie.test(x)||N.test(x)||j.test(x))break;if(D.search(this.rules.other.nonSpaceChar)>=C||!x.trim())b+=`
|
|
767
|
+
`+D.slice(C);else{if(k||w.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||$.test(w)||Y.test(w)||j.test(w))break;b+=`
|
|
768
|
+
`+x}!k&&!x.trim()&&(k=!0),m+=Q+`
|
|
769
|
+
`,n=n.substring(Q.length+1),w=D.slice(C)}}u.loose||(f?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(f=!0));let O=null,_;this.options.gfm&&(O=this.rules.other.listIsTask.exec(b),O&&(_=O[0]!=="[ ] ",b=b.replace(this.rules.other.listReplaceTask,""))),u.items.push({type:"list_item",raw:m,task:!!O,checked:_,loose:!1,text:b,tokens:[]}),u.raw+=m}const p=u.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let h=0;h<u.items.length;h++)if(this.lexer.state.top=!1,u.items[h].tokens=this.lexer.blockTokens(u.items[h].text,[]),!u.loose){const m=u.items[h].tokens.filter(w=>w.type==="space"),b=m.length>0&&m.some(w=>this.rules.other.anyLine.test(w.raw));u.loose=b}if(u.loose)for(let h=0;h<u.items.length;h++)u.items[h].loose=!0;return u}}html(n){const e=this.rules.block.html.exec(n);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){const e=this.rules.block.def.exec(n);if(e){const o=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:o,raw:e[0],href:a,title:u}}}table(n){var f;const e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;const o=og(e[1]),a=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(f=e[3])!=null&&f.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
770
|
+
`):[],c={type:"table",raw:e[0],header:[],align:[],rows:[]};if(o.length===a.length){for(const p of a)this.rules.other.tableAlignRight.test(p)?c.align.push("right"):this.rules.other.tableAlignCenter.test(p)?c.align.push("center"):this.rules.other.tableAlignLeft.test(p)?c.align.push("left"):c.align.push(null);for(let p=0;p<o.length;p++)c.header.push({text:o[p],tokens:this.lexer.inline(o[p]),header:!0,align:c.align[p]});for(const p of u)c.rows.push(og(p,c.header.length).map((h,m)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:c.align[m]})));return c}}lheading(n){const e=this.rules.block.lheading.exec(n);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(n){const e=this.rules.block.paragraph.exec(n);if(e){const o=e[1].charAt(e[1].length-1)===`
|
|
771
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:o,tokens:this.lexer.inline(o)}}}text(n){const e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){const e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){const e=this.rules.inline.tag.exec(n);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const o=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;const c=Xo(o.slice(0,-1),"\\");if((o.length-c.length)%2===0)return}else{const c=k0(e[2],"()");if(c>-1){const p=(e[0].indexOf("!")===0?5:4)+e[1].length+c;e[2]=e[2].substring(0,c),e[0]=e[0].substring(0,p).trim(),e[3]=""}}let a=e[2],u="";if(this.options.pedantic){const c=this.rules.other.pedanticHrefTitle.exec(a);c&&(a=c[1],u=c[3])}else u=e[3]?e[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?a=a.slice(1):a=a.slice(1,-1)),ag(e,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let o;if((o=this.rules.inline.reflink.exec(n))||(o=this.rules.inline.nolink.exec(n))){const a=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=e[a.toLowerCase()];if(!u){const c=o[0].charAt(0);return{type:"text",raw:c,text:c}}return ag(o,u,o[0],this.lexer,this.rules)}}emStrong(n,e,o=""){let a=this.rules.inline.emStrongLDelim.exec(n);if(!a||a[3]&&o.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2]||"")||!o||this.rules.inline.punctuation.exec(o)){const c=[...a[0]].length-1;let f,p,h=c,m=0;const b=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(b.lastIndex=0,e=e.slice(-1*n.length+c);(a=b.exec(e))!=null;){if(f=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!f)continue;if(p=[...f].length,a[3]||a[4]){h+=p;continue}else if((a[5]||a[6])&&c%3&&!((c+p)%3)){m+=p;continue}if(h-=p,h>0)continue;p=Math.min(p,p+h+m);const w=[...a[0]][0].length,x=n.slice(0,c+a.index+w+p);if(Math.min(c,p)%2){const C=x.slice(1,-1);return{type:"em",raw:x,text:C,tokens:this.lexer.inlineTokens(C)}}const k=x.slice(2,-2);return{type:"strong",raw:x,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let o=e[2].replace(this.rules.other.newLineCharGlobal," ");const a=this.rules.other.nonSpaceChar.test(o),u=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return a&&u&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:e[0],text:o}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){const e=this.rules.inline.autolink.exec(n);if(e){let o,a;return e[2]==="@"?(o=e[1],a="mailto:"+o):(o=e[1],a=o),{type:"link",raw:e[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}url(n){var o;let e;if(e=this.rules.inline.url.exec(n)){let a,u;if(e[2]==="@")a=e[0],u="mailto:"+a;else{let c;do c=e[0],e[0]=((o=this.rules.inline._backpedal.exec(e[0]))==null?void 0:o[0])??"";while(c!==e[0]);a=e[0],e[1]==="www."?u="http://"+e[0]:u=e[0]}return{type:"link",raw:e[0],text:a,href:u,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(n){const e=this.rules.inline.text.exec(n);if(e){const o=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:o}}}}class cr{constructor(n){gt(this,"tokens");gt(this,"options");gt(this,"state");gt(this,"tokenizer");gt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=n||Di,this.options.tokenizer=this.options.tokenizer||new Wl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={other:Fn,block:Nl.normal,inline:Qo.normal};this.options.pedantic?(e.block=Nl.pedantic,e.inline=Qo.pedantic):this.options.gfm&&(e.block=Nl.gfm,this.options.breaks?e.inline=Qo.breaks:e.inline=Qo.gfm),this.tokenizer.rules=e}static get rules(){return{block:Nl,inline:Qo}}static lex(n,e){return new cr(e).lex(n)}static lexInline(n,e){return new cr(e).inlineTokens(n)}lex(n){n=n.replace(Fn.carriageReturn,`
|
|
772
|
+
`),this.blockTokens(n,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const o=this.inlineQueue[e];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,e=[],o=!1){var a,u,c;for(this.options.pedantic&&(n=n.replace(Fn.tabCharGlobal," ").replace(Fn.spaceLine,""));n;){let f;if((u=(a=this.options.extensions)==null?void 0:a.block)!=null&&u.some(h=>(f=h.call({lexer:this},n,e))?(n=n.substring(f.raw.length),e.push(f),!0):!1))continue;if(f=this.tokenizer.space(n)){n=n.substring(f.raw.length);const h=e.at(-1);f.raw.length===1&&h!==void 0?h.raw+=`
|
|
773
773
|
`:e.push(f);continue}if(f=this.tokenizer.code(n)){n=n.substring(f.raw.length);const h=e.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
774
774
|
`+f.raw,h.text+=`
|
|
775
775
|
`+f.text,this.inlineQueue.at(-1).src=h.text):e.push(f);continue}if(f=this.tokenizer.fences(n)){n=n.substring(f.raw.length),e.push(f);continue}if(f=this.tokenizer.heading(n)){n=n.substring(f.raw.length),e.push(f);continue}if(f=this.tokenizer.hr(n)){n=n.substring(f.raw.length),e.push(f);continue}if(f=this.tokenizer.blockquote(n)){n=n.substring(f.raw.length),e.push(f);continue}if(f=this.tokenizer.list(n)){n=n.substring(f.raw.length),e.push(f);continue}if(f=this.tokenizer.html(n)){n=n.substring(f.raw.length),e.push(f);continue}if(f=this.tokenizer.def(n)){n=n.substring(f.raw.length);const h=e.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
776
776
|
`+f.raw,h.text+=`
|
|
777
|
-
`+f.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title});continue}if(f=this.tokenizer.table(n)){n=n.substring(f.raw.length),e.push(f);continue}if(f=this.tokenizer.lheading(n)){n=n.substring(f.raw.length),e.push(f);continue}let p=n;if((c=this.options.extensions)!=null&&c.startBlock){let h=1/0;const m=n.slice(1);let b;this.options.extensions.startBlock.forEach(w=>{b=w.call({lexer:this},m),typeof b=="number"&&b>=0&&(h=Math.min(h,b))}),h<1/0&&h>=0&&(p=n.substring(0,h+1))}if(this.state.top&&(f=this.tokenizer.paragraph(p))){const h=e.at(-1);
|
|
777
|
+
`+f.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title});continue}if(f=this.tokenizer.table(n)){n=n.substring(f.raw.length),e.push(f);continue}if(f=this.tokenizer.lheading(n)){n=n.substring(f.raw.length),e.push(f);continue}let p=n;if((c=this.options.extensions)!=null&&c.startBlock){let h=1/0;const m=n.slice(1);let b;this.options.extensions.startBlock.forEach(w=>{b=w.call({lexer:this},m),typeof b=="number"&&b>=0&&(h=Math.min(h,b))}),h<1/0&&h>=0&&(p=n.substring(0,h+1))}if(this.state.top&&(f=this.tokenizer.paragraph(p))){const h=e.at(-1);o&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=`
|
|
778
778
|
`+f.raw,h.text+=`
|
|
779
|
-
`+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):e.push(f),
|
|
779
|
+
`+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):e.push(f),o=p.length!==n.length,n=n.substring(f.raw.length);continue}if(f=this.tokenizer.text(n)){n=n.substring(f.raw.length);const h=e.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
780
780
|
`+f.raw,h.text+=`
|
|
781
|
-
`+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):e.push(f);continue}if(n){const h="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){var f,p,h;let
|
|
782
|
-
`;return a?'<pre><code class="language-'+Ir(a)+'">'+(
|
|
783
|
-
`:"<pre><code>"+(
|
|
781
|
+
`+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):e.push(f);continue}if(n){const h="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){var f,p,h;let o=n,a=null;if(this.tokens.links){const m=Object.keys(this.tokens.links);if(m.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)m.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let u=!1,c="";for(;n;){u||(c=""),u=!1;let m;if((p=(f=this.options.extensions)==null?void 0:f.inline)!=null&&p.some(w=>(m=w.call({lexer:this},n,e))?(n=n.substring(m.raw.length),e.push(m),!0):!1))continue;if(m=this.tokenizer.escape(n)){n=n.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.tag(n)){n=n.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.link(n)){n=n.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(m.raw.length);const w=e.at(-1);m.type==="text"&&(w==null?void 0:w.type)==="text"?(w.raw+=m.raw,w.text+=m.text):e.push(m);continue}if(m=this.tokenizer.emStrong(n,o,c)){n=n.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.codespan(n)){n=n.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.br(n)){n=n.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.del(n)){n=n.substring(m.raw.length),e.push(m);continue}if(m=this.tokenizer.autolink(n)){n=n.substring(m.raw.length),e.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(n))){n=n.substring(m.raw.length),e.push(m);continue}let b=n;if((h=this.options.extensions)!=null&&h.startInline){let w=1/0;const x=n.slice(1);let k;this.options.extensions.startInline.forEach(C=>{k=C.call({lexer:this},x),typeof k=="number"&&k>=0&&(w=Math.min(w,k))}),w<1/0&&w>=0&&(b=n.substring(0,w+1))}if(m=this.tokenizer.inlineText(b)){n=n.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(c=m.raw.slice(-1)),u=!0;const w=e.at(-1);(w==null?void 0:w.type)==="text"?(w.raw+=m.raw,w.text+=m.text):e.push(m);continue}if(n){const w="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(w);break}else throw new Error(w)}}return e}}class Gl{constructor(n){gt(this,"options");gt(this,"parser");this.options=n||Di}space(n){return""}code({text:n,lang:e,escaped:o}){var c;const a=(c=(e||"").match(Fn.notSpaceStart))==null?void 0:c[0],u=n.replace(Fn.endingNewline,"")+`
|
|
782
|
+
`;return a?'<pre><code class="language-'+Ir(a)+'">'+(o?u:Ir(u,!0))+`</code></pre>
|
|
783
|
+
`:"<pre><code>"+(o?u:Ir(u,!0))+`</code></pre>
|
|
784
784
|
`}blockquote({tokens:n}){return`<blockquote>
|
|
785
785
|
${this.parser.parse(n)}</blockquote>
|
|
786
786
|
`}html({text:n}){return n}heading({tokens:n,depth:e}){return`<h${e}>${this.parser.parseInline(n)}</h${e}>
|
|
787
787
|
`}hr(n){return`<hr>
|
|
788
|
-
`}list(n){const e=n.ordered,
|
|
788
|
+
`}list(n){const e=n.ordered,o=n.start;let a="";for(let f=0;f<n.items.length;f++){const p=n.items[f];a+=this.listitem(p)}const u=e?"ol":"ul",c=e&&o!==1?' start="'+o+'"':"";return"<"+u+c+`>
|
|
789
789
|
`+a+"</"+u+`>
|
|
790
|
-
`}listitem(n){var
|
|
790
|
+
`}listitem(n){var o;let e="";if(n.task){const a=this.checkbox({checked:!!n.checked});n.loose?((o=n.tokens[0])==null?void 0:o.type)==="paragraph"?(n.tokens[0].text=a+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&n.tokens[0].tokens[0].type==="text"&&(n.tokens[0].tokens[0].text=a+" "+Ir(n.tokens[0].tokens[0].text),n.tokens[0].tokens[0].escaped=!0)):n.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):e+=a+" "}return e+=this.parser.parse(n.tokens,!!n.loose),`<li>${e}</li>
|
|
791
791
|
`}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p>
|
|
792
|
-
`}table(n){let e="",
|
|
792
|
+
`}table(n){let e="",o="";for(let u=0;u<n.header.length;u++)o+=this.tablecell(n.header[u]);e+=this.tablerow({text:o});let a="";for(let u=0;u<n.rows.length;u++){const c=n.rows[u];o="";for(let f=0;f<c.length;f++)o+=this.tablecell(c[f]);a+=this.tablerow({text:o})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
793
793
|
<thead>
|
|
794
794
|
`+e+`</thead>
|
|
795
795
|
`+a+`</table>
|
|
796
796
|
`}tablerow({text:n}){return`<tr>
|
|
797
797
|
${n}</tr>
|
|
798
|
-
`}tablecell(n){const e=this.parser.parseInline(n.tokens),
|
|
799
|
-
`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${Ir(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:
|
|
800
|
-
`+this.renderer.text(h);e?
|
|
801
|
-
Please report this to https://github.com/markedjs/marked.`,n){const a="<p>An error occurred:</p><pre>"+Ir(i.message+"",!0)+"</pre>";return e?Promise.resolve(a):a}if(e)return Promise.reject(i);throw i}}}const ji=new O0;function dt(o,n){return ji.parse(o,n)}dt.options=dt.setOptions=function(o){return ji.setOptions(o),dt.defaults=ji.defaults,ah(dt.defaults),dt};dt.getDefaults=Wc;dt.defaults=Di;dt.use=function(...o){return ji.use(...o),dt.defaults=ji.defaults,ah(dt.defaults),dt};dt.walkTokens=function(o,n){return ji.walkTokens(o,n)};dt.parseInline=ji.parseInline;dt.Parser=fr;dt.parser=fr.parse;dt.Renderer=Gl;dt.TextRenderer=ef;dt.Lexer=cr;dt.lexer=cr.lex;dt.Tokenizer=Wl;dt.Hooks=ra;dt.parse=dt;dt.options;dt.setOptions;dt.use;dt.walkTokens;dt.parseInline;fr.parse;cr.lex;function bc(){return bc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)({}).hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},bc.apply(null,arguments)}function vh(o,n){if(o==null)return{};var e={};for(var i in o)if({}.hasOwnProperty.call(o,i)){if(n.indexOf(i)!==-1)continue;e[i]=o[i]}return e}function wc(o,n){return wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e},wc(o,n)}function yh(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,wc(o,n)}function P0(o,n){return o.classList?!!n&&o.classList.contains(n):(" "+(o.className.baseVal||o.className)+" ").indexOf(" "+n+" ")!==-1}function T0(o,n){o.classList?o.classList.add(n):P0(o,n)||(typeof o.className=="string"?o.className=o.className+" "+n:o.setAttribute("class",(o.className&&o.className.baseVal||"")+" "+n))}function ag(o,n){return o.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function I0(o,n){o.classList?o.classList.remove(n):typeof o.className=="string"?o.className=ag(o.className,n):o.setAttribute("class",ag(o.className&&o.className.baseVal||"",n))}const lg={disabled:!1},bh=Tt.createContext(null);var wh=function(n){return n.scrollTop},ea="unmounted",Ri="exited",Li="entering",po="entered",Sc="exiting",qr=function(o){yh(n,o);function n(i,a){var u;u=o.call(this,i,a)||this;var c=a,f=c&&!c.isMounting?i.enter:i.appear,p;return u.appearStatus=null,i.in?f?(p=Ri,u.appearStatus=Li):p=po:i.unmountOnExit||i.mountOnEnter?p=ea:p=Ri,u.state={status:p},u.nextCallback=null,u}n.getDerivedStateFromProps=function(a,u){var c=a.in;return c&&u.status===ea?{status:Ri}:null};var e=n.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(a){var u=null;if(a!==this.props){var c=this.state.status;this.props.in?c!==Li&&c!==po&&(u=Li):(c===Li||c===po)&&(u=Sc)}this.updateStatus(!1,u)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var a=this.props.timeout,u,c,f;return u=c=f=a,a!=null&&typeof a!="number"&&(u=a.exit,c=a.enter,f=a.appear!==void 0?a.appear:c),{exit:u,enter:c,appear:f}},e.updateStatus=function(a,u){if(a===void 0&&(a=!1),u!==null)if(this.cancelNextCallback(),u===Li){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Jo.findDOMNode(this);c&&wh(c)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ri&&this.setState({status:ea})},e.performEnter=function(a){var u=this,c=this.props.enter,f=this.context?this.context.isMounting:a,p=this.props.nodeRef?[f]:[Jo.findDOMNode(this),f],h=p[0],m=p[1],b=this.getTimeouts(),w=f?b.appear:b.enter;if(!a&&!c||lg.disabled){this.safeSetState({status:po},function(){u.props.onEntered(h)});return}this.props.onEnter(h,m),this.safeSetState({status:Li},function(){u.props.onEntering(h,m),u.onTransitionEnd(w,function(){u.safeSetState({status:po},function(){u.props.onEntered(h,m)})})})},e.performExit=function(){var a=this,u=this.props.exit,c=this.getTimeouts(),f=this.props.nodeRef?void 0:Jo.findDOMNode(this);if(!u||lg.disabled){this.safeSetState({status:Ri},function(){a.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:Sc},function(){a.props.onExiting(f),a.onTransitionEnd(c.exit,function(){a.safeSetState({status:Ri},function(){a.props.onExited(f)})})})},e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(a,u){u=this.setNextCallback(u),this.setState(a,u)},e.setNextCallback=function(a){var u=this,c=!0;return this.nextCallback=function(f){c&&(c=!1,u.nextCallback=null,a(f))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},e.onTransitionEnd=function(a,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:Jo.findDOMNode(this),f=a==null&&!this.props.addEndListener;if(!c||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],h=p[0],m=p[1];this.props.addEndListener(h,m)}a!=null&&setTimeout(this.nextCallback,a)},e.render=function(){var a=this.state.status;if(a===ea)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var f=vh(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Tt.createElement(bh.Provider,{value:null},typeof c=="function"?c(a,f):Tt.cloneElement(Tt.Children.only(c),f))},n}(Tt.Component);qr.contextType=bh;qr.propTypes={};function so(){}qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:so,onEntering:so,onEntered:so,onExit:so,onExiting:so,onExited:so};qr.UNMOUNTED=ea;qr.EXITED=Ri;qr.ENTERING=Li;qr.ENTERED=po;qr.EXITING=Sc;var N0=function(n,e){return n&&e&&e.split(" ").forEach(function(i){return T0(n,i)})},Xu=function(n,e){return n&&e&&e.split(" ").forEach(function(i){return I0(n,i)})},tf=function(o){yh(n,o);function n(){for(var i,a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return i=o.call.apply(o,[this].concat(u))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(f,p){var h=i.resolveArguments(f,p),m=h[0],b=h[1];i.removeClasses(m,"exit"),i.addClass(m,b?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(f,p)},i.onEntering=function(f,p){var h=i.resolveArguments(f,p),m=h[0],b=h[1],w=b?"appear":"enter";i.addClass(m,w,"active"),i.props.onEntering&&i.props.onEntering(f,p)},i.onEntered=function(f,p){var h=i.resolveArguments(f,p),m=h[0],b=h[1],w=b?"appear":"enter";i.removeClasses(m,w),i.addClass(m,w,"done"),i.props.onEntered&&i.props.onEntered(f,p)},i.onExit=function(f){var p=i.resolveArguments(f),h=p[0];i.removeClasses(h,"appear"),i.removeClasses(h,"enter"),i.addClass(h,"exit","base"),i.props.onExit&&i.props.onExit(f)},i.onExiting=function(f){var p=i.resolveArguments(f),h=p[0];i.addClass(h,"exit","active"),i.props.onExiting&&i.props.onExiting(f)},i.onExited=function(f){var p=i.resolveArguments(f),h=p[0];i.removeClasses(h,"exit"),i.addClass(h,"exit","done"),i.props.onExited&&i.props.onExited(f)},i.resolveArguments=function(f,p){return i.props.nodeRef?[i.props.nodeRef.current,f]:[f,p]},i.getClassNames=function(f){var p=i.props.classNames,h=typeof p=="string",m=h&&p?p+"-":"",b=h?""+m+f:p[f],w=h?b+"-active":p[f+"Active"],x=h?b+"-done":p[f+"Done"];return{baseClassName:b,activeClassName:w,doneClassName:x}},i}var e=n.prototype;return e.addClass=function(a,u,c){var f=this.getClassNames(u)[c+"ClassName"],p=this.getClassNames("enter"),h=p.doneClassName;u==="appear"&&c==="done"&&h&&(f+=" "+h),c==="active"&&a&&wh(a),f&&(this.appliedClasses[u][c]=f,N0(a,f))},e.removeClasses=function(a,u){var c=this.appliedClasses[u],f=c.base,p=c.active,h=c.done;this.appliedClasses[u]={},f&&Xu(a,f),p&&Xu(a,p),h&&Xu(a,h)},e.render=function(){var a=this.props;a.classNames;var u=vh(a,["classNames"]);return Tt.createElement(qr,bc({},u,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(Tt.Component);tf.defaultProps={classNames:""};tf.propTypes={};function ga(o){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ga(o)}function R0(o,n){if(ga(o)!=="object"||o===null)return o;var e=o[Symbol.toPrimitive];if(e!==void 0){var i=e.call(o,n);if(ga(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function L0(o){var n=R0(o,"string");return ga(n)==="symbol"?n:String(n)}function _0(o,n,e){return n=L0(n),n in o?Object.defineProperty(o,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[n]=e,o}var xc={defaultProps:{__TYPE:"CSSTransition",children:void 0},getProps:function(n){return V.getMergedProps(n,xc.defaultProps)},getOtherProps:function(n){return V.getDiffProps(n,xc.defaultProps)}};function sg(o,n){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),e.push.apply(e,i)}return e}function qu(o){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?sg(Object(e),!0).forEach(function(i){_0(o,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):sg(Object(e)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(e,i))})}return o}var ss=v.forwardRef(function(o,n){var e=xc.getProps(o),i=v.useContext(Gt),a=e.disabled||e.options&&e.options.disabled||i&&!i.cssTransition||!Mt.cssTransition,u=function(C,O){e.onEnter&&e.onEnter(C,O),e.options&&e.options.onEnter&&e.options.onEnter(C,O)},c=function(C,O){e.onEntering&&e.onEntering(C,O),e.options&&e.options.onEntering&&e.options.onEntering(C,O)},f=function(C,O){e.onEntered&&e.onEntered(C,O),e.options&&e.options.onEntered&&e.options.onEntered(C,O)},p=function(C){e.onExit&&e.onExit(C),e.options&&e.options.onExit&&e.options.onExit(C)},h=function(C){e.onExiting&&e.onExiting(C),e.options&&e.options.onExiting&&e.options.onExiting(C)},m=function(C){e.onExited&&e.onExited(C),e.options&&e.options.onExited&&e.options.onExited(C)};if(Kt(function(){if(a){var k=V.getRefElement(e.nodeRef);e.in?(u(k,!0),c(k,!0),f(k,!0)):(p(k),h(k),m(k))}},[e.in]),a)return e.in?e.children:null;var b={nodeRef:e.nodeRef,in:e.in,appear:e.appear,onEnter:u,onEntering:c,onEntered:f,onExit:p,onExiting:h,onExited:m},w={classNames:e.classNames,timeout:e.timeout,unmountOnExit:e.unmountOnExit},x=qu(qu(qu({},w),e.options||{}),b);return v.createElement(tf,x,e.children)});ss.displayName="CSSTransition";function Ec(){return Ec=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},Ec.apply(this,arguments)}var us=v.memo(v.forwardRef(function(o,n){var e=Gn.getPTI(o);return v.createElement("svg",Ec({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"}))}));us.displayName="TimesIcon";function Cc(){return Cc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},Cc.apply(this,arguments)}var Sh=v.memo(v.forwardRef(function(o,n){var e=Gn.getPTI(o);return v.createElement("svg",Cc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"}))}));Sh.displayName="WindowMaximizeIcon";function kc(){return kc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},kc.apply(this,arguments)}var xh=v.memo(v.forwardRef(function(o,n){var e=Gn.getPTI(o);return v.createElement("svg",kc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"}))}));xh.displayName="WindowMinimizeIcon";function Oc(){return Oc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},Oc.apply(this,arguments)}function ha(o){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ha(o)}function Pc(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}function $0(o){if(Array.isArray(o))return Pc(o)}function j0(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function Eh(o,n){if(o){if(typeof o=="string")return Pc(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Pc(o,n)}}function A0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
802
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
803
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gi(
|
|
798
|
+
`}tablecell(n){const e=this.parser.parseInline(n.tokens),o=n.header?"th":"td";return(n.align?`<${o} align="${n.align}">`:`<${o}>`)+e+`</${o}>
|
|
799
|
+
`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${Ir(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:o}){const a=this.parser.parseInline(o),u=ig(n);if(u===null)return a;n=u;let c='<a href="'+n+'"';return e&&(c+=' title="'+Ir(e)+'"'),c+=">"+a+"</a>",c}image({href:n,title:e,text:o}){const a=ig(n);if(a===null)return Ir(o);n=a;let u=`<img src="${n}" alt="${o}"`;return e&&(u+=` title="${Ir(e)}"`),u+=">",u}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:Ir(n.text)}}class ef{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}}class fr{constructor(n){gt(this,"options");gt(this,"renderer");gt(this,"textRenderer");this.options=n||Di,this.options.renderer=this.options.renderer||new Gl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ef}static parse(n,e){return new fr(e).parse(n)}static parseInline(n,e){return new fr(e).parseInline(n)}parse(n,e=!0){var a,u;let o="";for(let c=0;c<n.length;c++){const f=n[c];if((u=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&u[f.type]){const h=f,m=this.options.extensions.renderers[h.type].call({parser:this},h);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)){o+=m||"";continue}}const p=f;switch(p.type){case"space":{o+=this.renderer.space(p);continue}case"hr":{o+=this.renderer.hr(p);continue}case"heading":{o+=this.renderer.heading(p);continue}case"code":{o+=this.renderer.code(p);continue}case"table":{o+=this.renderer.table(p);continue}case"blockquote":{o+=this.renderer.blockquote(p);continue}case"list":{o+=this.renderer.list(p);continue}case"html":{o+=this.renderer.html(p);continue}case"paragraph":{o+=this.renderer.paragraph(p);continue}case"text":{let h=p,m=this.renderer.text(h);for(;c+1<n.length&&n[c+1].type==="text";)h=n[++c],m+=`
|
|
800
|
+
`+this.renderer.text(h);e?o+=this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):o+=m;continue}default:{const h='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return o}parseInline(n,e=this.renderer){var a,u;let o="";for(let c=0;c<n.length;c++){const f=n[c];if((u=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&u[f.type]){const h=this.options.extensions.renderers[f.type].call({parser:this},f);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(f.type)){o+=h||"";continue}}const p=f;switch(p.type){case"escape":{o+=e.text(p);break}case"html":{o+=e.html(p);break}case"link":{o+=e.link(p);break}case"image":{o+=e.image(p);break}case"strong":{o+=e.strong(p);break}case"em":{o+=e.em(p);break}case"codespan":{o+=e.codespan(p);break}case"br":{o+=e.br(p);break}case"del":{o+=e.del(p);break}case"text":{o+=e.text(p);break}default:{const h='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return o}}class ra{constructor(n){gt(this,"options");gt(this,"block");this.options=n||Di}preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}provideLexer(){return this.block?cr.lex:cr.lexInline}provideParser(){return this.block?fr.parse:fr.parseInline}}gt(ra,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class P0{constructor(...n){gt(this,"defaults",Wc());gt(this,"options",this.setOptions);gt(this,"parse",this.parseMarkdown(!0));gt(this,"parseInline",this.parseMarkdown(!1));gt(this,"Parser",fr);gt(this,"Renderer",Gl);gt(this,"TextRenderer",ef);gt(this,"Lexer",cr);gt(this,"Tokenizer",Wl);gt(this,"Hooks",ra);this.use(...n)}walkTokens(n,e){var a,u;let o=[];for(const c of n)switch(o=o.concat(e.call(this,c)),c.type){case"table":{const f=c;for(const p of f.header)o=o.concat(this.walkTokens(p.tokens,e));for(const p of f.rows)for(const h of p)o=o.concat(this.walkTokens(h.tokens,e));break}case"list":{const f=c;o=o.concat(this.walkTokens(f.items,e));break}default:{const f=c;(u=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&u[f.type]?this.defaults.extensions.childTokens[f.type].forEach(p=>{const h=f[p].flat(1/0);o=o.concat(this.walkTokens(h,e))}):f.tokens&&(o=o.concat(this.walkTokens(f.tokens,e)))}}return o}use(...n){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(o=>{const a={...o};if(a.async=this.defaults.async||a.async||!1,o.extensions&&(o.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){const c=e.renderers[u.name];c?e.renderers[u.name]=function(...f){let p=u.renderer.apply(this,f);return p===!1&&(p=c.apply(this,f)),p}:e.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const c=e[u.level];c?c.unshift(u.tokenizer):e[u.level]=[u.tokenizer],u.start&&(u.level==="block"?e.startBlock?e.startBlock.push(u.start):e.startBlock=[u.start]:u.level==="inline"&&(e.startInline?e.startInline.push(u.start):e.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(e.childTokens[u.name]=u.childTokens)}),a.extensions=e),o.renderer){const u=this.defaults.renderer||new Gl(this.defaults);for(const c in o.renderer){if(!(c in u))throw new Error(`renderer '${c}' does not exist`);if(["options","parser"].includes(c))continue;const f=c,p=o.renderer[f],h=u[f];u[f]=(...m)=>{let b=p.apply(u,m);return b===!1&&(b=h.apply(u,m)),b||""}}a.renderer=u}if(o.tokenizer){const u=this.defaults.tokenizer||new Wl(this.defaults);for(const c in o.tokenizer){if(!(c in u))throw new Error(`tokenizer '${c}' does not exist`);if(["options","rules","lexer"].includes(c))continue;const f=c,p=o.tokenizer[f],h=u[f];u[f]=(...m)=>{let b=p.apply(u,m);return b===!1&&(b=h.apply(u,m)),b}}a.tokenizer=u}if(o.hooks){const u=this.defaults.hooks||new ra;for(const c in o.hooks){if(!(c in u))throw new Error(`hook '${c}' does not exist`);if(["options","block"].includes(c))continue;const f=c,p=o.hooks[f],h=u[f];ra.passThroughHooks.has(c)?u[f]=m=>{if(this.defaults.async)return Promise.resolve(p.call(u,m)).then(w=>h.call(u,w));const b=p.call(u,m);return h.call(u,b)}:u[f]=(...m)=>{let b=p.apply(u,m);return b===!1&&(b=h.apply(u,m)),b}}a.hooks=u}if(o.walkTokens){const u=this.defaults.walkTokens,c=o.walkTokens;a.walkTokens=function(f){let p=[];return p.push(c.call(this,f)),u&&(p=p.concat(u.call(this,f))),p}}this.defaults={...this.defaults,...a}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return cr.lex(n,e??this.defaults)}parser(n,e){return fr.parse(n,e??this.defaults)}parseMarkdown(n){return(o,a)=>{const u={...a},c={...this.defaults,...u},f=this.onError(!!c.silent,!!c.async);if(this.defaults.async===!0&&u.async===!1)return f(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof o>"u"||o===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof o!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(o)+", string expected"));c.hooks&&(c.hooks.options=c,c.hooks.block=n);const p=c.hooks?c.hooks.provideLexer():n?cr.lex:cr.lexInline,h=c.hooks?c.hooks.provideParser():n?fr.parse:fr.parseInline;if(c.async)return Promise.resolve(c.hooks?c.hooks.preprocess(o):o).then(m=>p(m,c)).then(m=>c.hooks?c.hooks.processAllTokens(m):m).then(m=>c.walkTokens?Promise.all(this.walkTokens(m,c.walkTokens)).then(()=>m):m).then(m=>h(m,c)).then(m=>c.hooks?c.hooks.postprocess(m):m).catch(f);try{c.hooks&&(o=c.hooks.preprocess(o));let m=p(o,c);c.hooks&&(m=c.hooks.processAllTokens(m)),c.walkTokens&&this.walkTokens(m,c.walkTokens);let b=h(m,c);return c.hooks&&(b=c.hooks.postprocess(b)),b}catch(m){return f(m)}}}onError(n,e){return o=>{if(o.message+=`
|
|
801
|
+
Please report this to https://github.com/markedjs/marked.`,n){const a="<p>An error occurred:</p><pre>"+Ir(o.message+"",!0)+"</pre>";return e?Promise.resolve(a):a}if(e)return Promise.reject(o);throw o}}}const Ai=new P0;function dt(i,n){return Ai.parse(i,n)}dt.options=dt.setOptions=function(i){return Ai.setOptions(i),dt.defaults=Ai.defaults,lh(dt.defaults),dt};dt.getDefaults=Wc;dt.defaults=Di;dt.use=function(...i){return Ai.use(...i),dt.defaults=Ai.defaults,lh(dt.defaults),dt};dt.walkTokens=function(i,n){return Ai.walkTokens(i,n)};dt.parseInline=Ai.parseInline;dt.Parser=fr;dt.parser=fr.parse;dt.Renderer=Gl;dt.TextRenderer=ef;dt.Lexer=cr;dt.lexer=cr.lex;dt.Tokenizer=Wl;dt.Hooks=ra;dt.parse=dt;dt.options;dt.setOptions;dt.use;dt.walkTokens;dt.parseInline;fr.parse;cr.lex;function bc(){return bc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)({}).hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},bc.apply(null,arguments)}function yh(i,n){if(i==null)return{};var e={};for(var o in i)if({}.hasOwnProperty.call(i,o)){if(n.indexOf(o)!==-1)continue;e[o]=i[o]}return e}function wc(i,n){return wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},wc(i,n)}function bh(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,wc(i,n)}function T0(i,n){return i.classList?!!n&&i.classList.contains(n):(" "+(i.className.baseVal||i.className)+" ").indexOf(" "+n+" ")!==-1}function I0(i,n){i.classList?i.classList.add(n):T0(i,n)||(typeof i.className=="string"?i.className=i.className+" "+n:i.setAttribute("class",(i.className&&i.className.baseVal||"")+" "+n))}function lg(i,n){return i.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function N0(i,n){i.classList?i.classList.remove(n):typeof i.className=="string"?i.className=lg(i.className,n):i.setAttribute("class",lg(i.className&&i.className.baseVal||"",n))}const sg={disabled:!1},wh=Tt.createContext(null);var Sh=function(n){return n.scrollTop},ea="unmounted",_i="exited",Li="entering",po="entered",Sc="exiting",qr=function(i){bh(n,i);function n(o,a){var u;u=i.call(this,o,a)||this;var c=a,f=c&&!c.isMounting?o.enter:o.appear,p;return u.appearStatus=null,o.in?f?(p=_i,u.appearStatus=Li):p=po:o.unmountOnExit||o.mountOnEnter?p=ea:p=_i,u.state={status:p},u.nextCallback=null,u}n.getDerivedStateFromProps=function(a,u){var c=a.in;return c&&u.status===ea?{status:_i}:null};var e=n.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(a){var u=null;if(a!==this.props){var c=this.state.status;this.props.in?c!==Li&&c!==po&&(u=Li):(c===Li||c===po)&&(u=Sc)}this.updateStatus(!1,u)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var a=this.props.timeout,u,c,f;return u=c=f=a,a!=null&&typeof a!="number"&&(u=a.exit,c=a.enter,f=a.appear!==void 0?a.appear:c),{exit:u,enter:c,appear:f}},e.updateStatus=function(a,u){if(a===void 0&&(a=!1),u!==null)if(this.cancelNextCallback(),u===Li){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Jo.findDOMNode(this);c&&Sh(c)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_i&&this.setState({status:ea})},e.performEnter=function(a){var u=this,c=this.props.enter,f=this.context?this.context.isMounting:a,p=this.props.nodeRef?[f]:[Jo.findDOMNode(this),f],h=p[0],m=p[1],b=this.getTimeouts(),w=f?b.appear:b.enter;if(!a&&!c||sg.disabled){this.safeSetState({status:po},function(){u.props.onEntered(h)});return}this.props.onEnter(h,m),this.safeSetState({status:Li},function(){u.props.onEntering(h,m),u.onTransitionEnd(w,function(){u.safeSetState({status:po},function(){u.props.onEntered(h,m)})})})},e.performExit=function(){var a=this,u=this.props.exit,c=this.getTimeouts(),f=this.props.nodeRef?void 0:Jo.findDOMNode(this);if(!u||sg.disabled){this.safeSetState({status:_i},function(){a.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:Sc},function(){a.props.onExiting(f),a.onTransitionEnd(c.exit,function(){a.safeSetState({status:_i},function(){a.props.onExited(f)})})})},e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(a,u){u=this.setNextCallback(u),this.setState(a,u)},e.setNextCallback=function(a){var u=this,c=!0;return this.nextCallback=function(f){c&&(c=!1,u.nextCallback=null,a(f))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},e.onTransitionEnd=function(a,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:Jo.findDOMNode(this),f=a==null&&!this.props.addEndListener;if(!c||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],h=p[0],m=p[1];this.props.addEndListener(h,m)}a!=null&&setTimeout(this.nextCallback,a)},e.render=function(){var a=this.state.status;if(a===ea)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var f=yh(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Tt.createElement(wh.Provider,{value:null},typeof c=="function"?c(a,f):Tt.cloneElement(Tt.Children.only(c),f))},n}(Tt.Component);qr.contextType=wh;qr.propTypes={};function so(){}qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:so,onEntering:so,onEntered:so,onExit:so,onExiting:so,onExited:so};qr.UNMOUNTED=ea;qr.EXITED=_i;qr.ENTERING=Li;qr.ENTERED=po;qr.EXITING=Sc;var R0=function(n,e){return n&&e&&e.split(" ").forEach(function(o){return I0(n,o)})},Xu=function(n,e){return n&&e&&e.split(" ").forEach(function(o){return N0(n,o)})},tf=function(i){bh(n,i);function n(){for(var o,a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return o=i.call.apply(i,[this].concat(u))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(f,p){var h=o.resolveArguments(f,p),m=h[0],b=h[1];o.removeClasses(m,"exit"),o.addClass(m,b?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(f,p)},o.onEntering=function(f,p){var h=o.resolveArguments(f,p),m=h[0],b=h[1],w=b?"appear":"enter";o.addClass(m,w,"active"),o.props.onEntering&&o.props.onEntering(f,p)},o.onEntered=function(f,p){var h=o.resolveArguments(f,p),m=h[0],b=h[1],w=b?"appear":"enter";o.removeClasses(m,w),o.addClass(m,w,"done"),o.props.onEntered&&o.props.onEntered(f,p)},o.onExit=function(f){var p=o.resolveArguments(f),h=p[0];o.removeClasses(h,"appear"),o.removeClasses(h,"enter"),o.addClass(h,"exit","base"),o.props.onExit&&o.props.onExit(f)},o.onExiting=function(f){var p=o.resolveArguments(f),h=p[0];o.addClass(h,"exit","active"),o.props.onExiting&&o.props.onExiting(f)},o.onExited=function(f){var p=o.resolveArguments(f),h=p[0];o.removeClasses(h,"exit"),o.addClass(h,"exit","done"),o.props.onExited&&o.props.onExited(f)},o.resolveArguments=function(f,p){return o.props.nodeRef?[o.props.nodeRef.current,f]:[f,p]},o.getClassNames=function(f){var p=o.props.classNames,h=typeof p=="string",m=h&&p?p+"-":"",b=h?""+m+f:p[f],w=h?b+"-active":p[f+"Active"],x=h?b+"-done":p[f+"Done"];return{baseClassName:b,activeClassName:w,doneClassName:x}},o}var e=n.prototype;return e.addClass=function(a,u,c){var f=this.getClassNames(u)[c+"ClassName"],p=this.getClassNames("enter"),h=p.doneClassName;u==="appear"&&c==="done"&&h&&(f+=" "+h),c==="active"&&a&&Sh(a),f&&(this.appliedClasses[u][c]=f,R0(a,f))},e.removeClasses=function(a,u){var c=this.appliedClasses[u],f=c.base,p=c.active,h=c.done;this.appliedClasses[u]={},f&&Xu(a,f),p&&Xu(a,p),h&&Xu(a,h)},e.render=function(){var a=this.props;a.classNames;var u=yh(a,["classNames"]);return Tt.createElement(qr,bc({},u,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(Tt.Component);tf.defaultProps={classNames:""};tf.propTypes={};function ga(i){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ga(i)}function _0(i,n){if(ga(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(ga(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function L0(i){var n=_0(i,"string");return ga(n)==="symbol"?n:String(n)}function j0(i,n,e){return n=L0(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}var xc={defaultProps:{__TYPE:"CSSTransition",children:void 0},getProps:function(n){return V.getMergedProps(n,xc.defaultProps)},getOtherProps:function(n){return V.getDiffProps(n,xc.defaultProps)}};function ug(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function qu(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?ug(Object(e),!0).forEach(function(o){j0(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):ug(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var ss=v.forwardRef(function(i,n){var e=xc.getProps(i),o=v.useContext(Gt),a=e.disabled||e.options&&e.options.disabled||o&&!o.cssTransition||!Mt.cssTransition,u=function(C,O){e.onEnter&&e.onEnter(C,O),e.options&&e.options.onEnter&&e.options.onEnter(C,O)},c=function(C,O){e.onEntering&&e.onEntering(C,O),e.options&&e.options.onEntering&&e.options.onEntering(C,O)},f=function(C,O){e.onEntered&&e.onEntered(C,O),e.options&&e.options.onEntered&&e.options.onEntered(C,O)},p=function(C){e.onExit&&e.onExit(C),e.options&&e.options.onExit&&e.options.onExit(C)},h=function(C){e.onExiting&&e.onExiting(C),e.options&&e.options.onExiting&&e.options.onExiting(C)},m=function(C){e.onExited&&e.onExited(C),e.options&&e.options.onExited&&e.options.onExited(C)};if(Kt(function(){if(a){var k=V.getRefElement(e.nodeRef);e.in?(u(k,!0),c(k,!0),f(k,!0)):(p(k),h(k),m(k))}},[e.in]),a)return e.in?e.children:null;var b={nodeRef:e.nodeRef,in:e.in,appear:e.appear,onEnter:u,onEntering:c,onEntered:f,onExit:p,onExiting:h,onExited:m},w={classNames:e.classNames,timeout:e.timeout,unmountOnExit:e.unmountOnExit},x=qu(qu(qu({},w),e.options||{}),b);return v.createElement(tf,x,e.children)});ss.displayName="CSSTransition";function Ec(){return Ec=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Ec.apply(this,arguments)}var us=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",Ec({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"}))}));us.displayName="TimesIcon";function Cc(){return Cc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Cc.apply(this,arguments)}var xh=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",Cc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"}))}));xh.displayName="WindowMaximizeIcon";function kc(){return kc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},kc.apply(this,arguments)}var Eh=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",kc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"}))}));Eh.displayName="WindowMinimizeIcon";function Oc(){return Oc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Oc.apply(this,arguments)}function ha(i){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ha(i)}function Pc(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function $0(i){if(Array.isArray(i))return Pc(i)}function A0(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Ch(i,n){if(i){if(typeof i=="string")return Pc(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Pc(i,n)}}function D0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
802
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z0(i){return $0(i)||A0(i)||Ch(i)||D0()}function F0(i,n){if(ha(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(ha(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function M0(i){var n=F0(i,"string");return ha(n)==="symbol"?n:String(n)}function nf(i,n,e){return n=M0(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function H0(i){if(Array.isArray(i))return i}function V0(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n!==0)for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function B0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
803
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gi(i,n){return H0(i)||V0(i,n)||Ch(i,n)||B0()}var U0="",ia=tt.extend({defaultProps:{__TYPE:"FocusTrap",children:void 0},css:{styles:U0},getProps:function(n){return V.getMergedProps(n,ia.defaultProps)},getOtherProps:function(n){return V.getDiffProps(n,ia.defaultProps)}});function cg(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function K0(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?cg(Object(e),!0).forEach(function(o){nf(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):cg(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var W0=Tt.memo(Tt.forwardRef(function(i,n){var e=Tt.useRef(null),o=Tt.useRef(null),a=Tt.useRef(null),u=Tt.useContext(Gt),c=ia.getProps(i,u),f={props:c};ji(ia.css.styles,{name:"focustrap"});var p=ia.setMetaData(K0({},f));p.ptm,Tt.useImperativeHandle(n,function(){return{props:c,getInk:function(){return o.current},getTarget:function(){return e.current}}}),Ar(function(){c.disabled||(e.current=h(),m(e.current))});var h=function(){return o.current&&o.current.parentElement},m=function(O){var _=c||{},N=_.autoFocusSelector,j=N===void 0?"":N,$=_.firstFocusableSelector,Y=$===void 0?"":$,ie=_.autoFocus,Q=ie===void 0?!1:ie,D="".concat(b(j)),F="[autofocus]".concat(D,", [data-pc-autofocus='true']").concat(D),q=H.getFirstFocusableElement(O,F);Q&&!q&&(q=H.getFirstFocusableElement(O,b(Y))),H.focus(q)},b=function(O){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(O??"")},w=function(O){var _,N=O.currentTarget,j=O.relatedTarget,$=j===N.$_pfocustrap_lasthiddenfocusableelement||!((_=e.current)!==null&&_!==void 0&&_.contains(j))?H.getFirstFocusableElement(N.parentElement,b(N.$_pfocustrap_focusableselector)):N.$_pfocustrap_lasthiddenfocusableelement;H.focus($)},x=function(O){var _,N=O.currentTarget,j=O.relatedTarget,$=j===N.$_pfocustrap_firsthiddenfocusableelement||!((_=e.current)!==null&&_!==void 0&&_.contains(j))?H.getLastFocusableElement(N.parentElement,b(N.$_pfocustrap_focusableselector)):N.$_pfocustrap_firsthiddenfocusableelement;H.focus($)},k=function(){var O=c||{},_=O.tabIndex,N=_===void 0?0:_,j=function(Q,D,F){return Tt.createElement("span",{ref:Q,className:"p-hidden-accessible p-hidden-focusable",tabIndex:N,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:D,"data-pc-section":F})},$=j(o,w,"firstfocusableelement"),Y=j(a,x,"lastfocusableelement");return o.current&&a.current&&(o.current.$_pfocustrap_lasthiddenfocusableelement=a.current,a.current.$_pfocustrap_firsthiddenfocusableelement=o.current),Tt.createElement(Tt.Fragment,null,$,c.children,Y)};return k()})),G0=W0;function fg(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function Y0(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?fg(Object(e),!0).forEach(function(o){nf(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):fg(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var Q0={closeButtonIcon:"p-dialog-header-close-icon",closeButton:"p-dialog-header-icon p-dialog-header-close p-link",maximizableIcon:"p-dialog-header-maximize-icon",maximizableButton:"p-dialog-header-icon p-dialog-header-maximize p-link",header:function(n){var e=n.props;return Be("p-dialog-header",e.headerClassName)},headerTitle:"p-dialog-title",headerIcons:"p-dialog-header-icons",content:function(n){var e=n.props;return Be("p-dialog-content",e.contentClassName)},footer:function(n){var e=n.props;return Be("p-dialog-footer",e.footerClassName)},mask:function(n){var e=n.props,o=n.maskVisibleState,a=["center","left","right","top","top-left","top-right","bottom","bottom-left","bottom-right"],u=a.find(function(c){return c===e.position||c.replace("-","")===e.position});return Be("p-dialog-mask",u?"p-dialog-".concat(u):"",{"p-component-overlay p-component-overlay-enter":e.modal,"p-dialog-visible":o,"p-dialog-draggable":e.draggable,"p-dialog-resizable":e.resizable},e.maskClassName)},root:function(n){var e=n.props,o=n.maximized,a=n.context;return Be("p-dialog p-component",{"p-dialog-rtl":e.rtl,"p-dialog-maximized":o,"p-dialog-default":!o,"p-input-filled":a&&a.inputStyle==="filled"||Mt.inputStyle==="filled","p-ripple-disabled":a&&a.ripple===!1||Mt.ripple===!1})},transition:"p-dialog"},X0=`
|
|
804
804
|
@layer primereact {
|
|
805
805
|
.p-dialog-mask {
|
|
806
806
|
background-color: transparent;
|
|
@@ -986,14 +986,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
986
986
|
cursor: move;
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
`,
|
|
990
|
-
@media screen and (max-width: `.concat(
|
|
989
|
+
`,q0={mask:function(n){var e=n.props;return Y0({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:e.position==="left"||e.position==="top-left"||e.position==="bottom-left"?"flex-start":e.position==="right"||e.position==="top-right"||e.position==="bottom-right"?"flex-end":"center",alignItems:e.position==="top"||e.position==="top-left"||e.position==="top-right"?"flex-start":e.position==="bottom"||e.position==="bottom-left"||e.position==="bottom-right"?"flex-end":"center",pointerEvents:!e.modal&&"none"},e.maskStyle)}},Rl=tt.extend({defaultProps:{__TYPE:"Dialog",__parentMetadata:null,appendTo:null,ariaCloseIconLabel:null,baseZIndex:0,blockScroll:!1,breakpoints:null,className:null,closable:!0,closeIcon:null,closeOnEscape:!0,content:null,contentClassName:null,contentStyle:null,dismissableMask:!1,draggable:!0,focusOnShow:!0,footer:null,footerClassName:null,header:null,headerClassName:null,headerStyle:null,icons:null,id:null,keepInViewport:!0,maskClassName:null,maskStyle:null,maximizable:!1,maximizeIcon:null,maximized:!1,minX:0,minY:0,minimizeIcon:null,modal:!0,onClick:null,onDrag:null,onDragEnd:null,onDragStart:null,onHide:null,onMaskClick:null,onMaximize:null,onResize:null,onResizeEnd:null,onResizeStart:null,onShow:null,position:"center",resizable:!0,rtl:!1,showHeader:!0,style:null,transitionOptions:null,visible:!1,children:void 0},css:{classes:Q0,styles:X0,inlineStyles:q0}});function dg(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function Zu(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?dg(Object(e),!0).forEach(function(o){nf(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):dg(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var kh=v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=Rl.getProps(i,o),u=a.id?a.id:ba(),c=v.useState(u),f=gi(c,2),p=f[0];f[1];var h=v.useState(!1),m=gi(h,2),b=m[0],w=m[1],x=v.useState(!1),k=gi(x,2),C=k[0],O=k[1],_=v.useState(a.maximized),N=gi(_,2),j=N[0],$=N[1],Y=v.useRef(null),ie=v.useRef(null),Q=v.useRef(null),D=v.useRef(null),F=v.useRef(null),q=v.useRef(null),K=v.useRef(null),se=v.useRef(!1),oe=v.useRef(!1),ye=v.useRef(null),X=v.useRef(null),ve=v.useRef(null),ke=v.useRef(u),z=v.useRef(null),J=a.onMaximize?a.maximized:j,B=C&&(a.blockScroll||a.maximizable&&J),P=a.closable&&a.closeOnEscape&&C,U=Ug("dialog",P),ce=Rl.setMetaData(Zu(Zu({props:a},a.__parentMetadata),{},{state:{id:p,maximized:J,containerVisible:b}})),de=ce.ptm,Te=ce.cx,ze=ce.sx,Me=ce.isUnstyled;Dr(Rl.css.styles,Me,{name:"dialog"}),Gg({callback:function(te){Nt(te)},when:P&&U,priority:[Kg.DIALOG,U]});var Ue=Rr({type:"mousemove",target:function(){return window.document},listener:function(te){return Nn(te)}}),Ye=gi(Ue,2),st=Ye[0],Ht=Ye[1],jt=Rr({type:"mouseup",target:function(){return window.document},listener:function(te){return tn(te)}}),nt=gi(jt,2),rt=nt[0],fn=nt[1],Et=Rr({type:"mousemove",target:function(){return window.document},listener:function(te){return bt(te)}}),It=gi(Et,2),Jt=It[0],en=It[1],$t=Rr({type:"mouseup",target:function(){return window.document},listener:function(te){return _t(te)}}),ht=gi($t,2),ft=ht[0],Pn=ht[1],Nt=function(te){a.onHide(te),te.preventDefault()},dn=function(){var te=document.activeElement,je=te&&Y.current&&Y.current.contains(te);!je&&a.closable&&a.showHeader&&K.current&&K.current.focus()},Rt=function(te){Q.current=te.target,a.onPointerDown&&a.onPointerDown(te)},Tn=function(te){a.dismissableMask&&a.modal&&ie.current===te.target&&!Q.current&&Nt(te),a.onMaskClick&&a.onMaskClick(te),Q.current=null},Yt=function(te){a.onMaximize?a.onMaximize({originalEvent:te,maximized:!J}):$(function(je){return!je}),te.preventDefault()},Qt=function(te){H.hasClass(te.target,"p-dialog-header-icon")||H.hasClass(te.target.parentElement,"p-dialog-header-icon")||a.draggable&&(se.current=!0,ye.current=te.pageX,X.current=te.pageY,H.addClass(document.body,"p-unselectable-text"),a.onDragStart&&a.onDragStart(te))},bt=function(te){if(se.current){var je=H.getOuterWidth(Y.current),Ge=H.getOuterHeight(Y.current),pt=te.pageX-ye.current,bn=te.pageY-X.current,wn=Y.current.getBoundingClientRect(),Ee=wn.left+pt,W=wn.top+bn,fe=H.getViewport(),pe=getComputedStyle(Y.current),be=parseFloat(pe.marginLeft),Se=parseFloat(pe.marginTop);Y.current.style.position="fixed",a.keepInViewport?(Ee>=a.minX&&Ee+je<fe.width&&(ye.current=te.pageX,Y.current.style.left=Ee-be+"px"),W>=a.minY&&W+Ge<fe.height&&(X.current=te.pageY,Y.current.style.top=W-Se+"px")):(ye.current=te.pageX,Y.current.style.left=Ee-be+"px",X.current=te.pageY,Y.current.style.top=W-Se+"px"),a.onDrag&&a.onDrag(te)}},_t=function(te){se.current&&(se.current=!1,H.removeClass(document.body,"p-unselectable-text"),a.onDragEnd&&a.onDragEnd(te))},In=function(te){a.resizable&&(oe.current=!0,ye.current=te.pageX,X.current=te.pageY,H.addClass(document.body,"p-unselectable-text"),a.onResizeStart&&a.onResizeStart(te))},Ct=function(te,je,Ge){!Ge&&(Ge=H.getViewport());var pt=parseInt(te);return/^(\d+|(\.\d+))(\.\d+)?%$/.test(te)?pt*(Ge[je]/100):pt},Nn=function(te){if(oe.current){var je=te.pageX-ye.current,Ge=te.pageY-X.current,pt=H.getOuterWidth(Y.current),bn=H.getOuterHeight(Y.current),wn=Y.current.getBoundingClientRect(),Ee=H.getViewport(),W=!parseInt(Y.current.style.top)||!parseInt(Y.current.style.left),fe=Ct(Y.current.style.minWidth,"width",Ee),pe=Ct(Y.current.style.minHeight,"height",Ee),be=pt+je,Se=bn+Ge;W&&(be=be+je,Se=Se+Ge),(!fe||be>fe)&&wn.left+be<Ee.width&&(Y.current.style.width=be+"px"),(!pe||Se>pe)&&wn.top+Se<Ee.height&&(Y.current.style.height=Se+"px"),ye.current=te.pageX,X.current=te.pageY,a.onResize&&a.onResize(te)}},tn=function(te){oe.current&&(oe.current=!1,H.removeClass(document.body,"p-unselectable-text"),a.onResizeEnd&&a.onResizeEnd(te))},Fe=function(){Y.current.style.position="",Y.current.style.left="",Y.current.style.top="",Y.current.style.margin=""},ae=function(){Y.current.setAttribute(ke.current,"")},he=function(){a.onShow&&a.onShow(),a.focusOnShow&&dn(),M()},Ke=function(){a.modal&&!Me()&&H.addClass(ie.current,"p-component-overlay-leave")},Oe=function(){se.current=!1,Sr.clear(ie.current),w(!1),me(),H.focus(z.current),z.current=null},M=function(){He()},me=function(){Ze()},De=function(){var te=document.primeDialogParams&&document.primeDialogParams.some(function(je){return je.hasBlockScroll});te?H.blockBodyScroll():H.unblockBodyScroll()},_e=function(te){if(te&&C){var je={id:p,hasBlockScroll:B};document.primeDialogParams||(document.primeDialogParams=[]);var Ge=document.primeDialogParams.findIndex(function(pt){return pt.id===p});Ge===-1?document.primeDialogParams=[].concat(z0(document.primeDialogParams),[je]):document.primeDialogParams=document.primeDialogParams.toSpliced(Ge,1,je)}else document.primeDialogParams=document.primeDialogParams&&document.primeDialogParams.filter(function(pt){return pt.id!==p});De()},He=function(){a.draggable&&(Jt(),ft()),a.resizable&&(st(),rt())},Ze=function(){en(),Pn(),Ht(),fn()},Je=function(){ve.current=H.createInlineStyle(o&&o.nonce||Mt.nonce,o&&o.styleContainer);var te="";for(var je in a.breakpoints)te=te+`
|
|
990
|
+
@media screen and (max-width: `.concat(je,`) {
|
|
991
991
|
[data-pc-name="dialog"][`).concat(ke.current,`] {
|
|
992
|
-
width: `).concat(a.breakpoints[
|
|
992
|
+
width: `).concat(a.breakpoints[je],` !important;
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
`);ve.current.innerHTML=te},pn=function(){ve.current=H.removeInlineStyle(ve.current)};Ar(function(){Le(!0),a.visible&&w(!0)}),v.useEffect(function(){return a.breakpoints&&Je(),function(){pn()}},[a.breakpoints]),Kt(function(){a.visible&&!b&&w(!0),a.visible!==C&&b&&O(a.visible),a.visible&&(z.current=document.activeElement)},[a.visible,b]),Kt(function(){b&&(Sr.set("modal",ie.current,i&&i.autoZIndex||Mt.autoZIndex,a.baseZIndex||i&&i.zIndex.modal||Mt.zIndex.modal),O(!0))},[b]),Kt(function(){Le(!0)},[B,C]),jr(function(){me(),Le(!1),H.removeInlineStyle(ve.current),Sr.clear(ie.current)}),v.useImperativeHandle(n,function(){return{props:a,resetPosition:Fe,getElement:function(){return G.current},getMask:function(){return ie.current},getContent:function(){return D.current},getHeader:function(){return F.current},getFooter:function(){return q.current},getCloseButton:function(){return K.current}}});var nn=function(){if(a.closable){var te=a.ariaCloseIconLabel||rc("close"),$e=e({className:Te("closeButtonIcon"),"aria-hidden":!0},de("closeButtonIcon")),Ge=a.closeIcon||v.createElement(us,$e),pt=$r.getJSXIcon(Ge,Zu({},$e),{props:a}),bn=e({ref:K,type:"button",className:Te("closeButton"),"aria-label":te,onClick:Nt,onKeyDown:function(Ee){Ee.key!=="Escape"&&Ee.stopPropagation()}},de("closeButton"));return v.createElement("button",bn,pt,v.createElement(ho,null))}return null},Vt=function(){var te,$e=e({className:Te("maximizableIcon")},de("maximizableIcon"));J?te=a.minimizeIcon||v.createElement(xh,$e):te=a.maximizeIcon||v.createElement(Sh,$e);var Ge=$r.getJSXIcon(te,$e,{props:a});if(a.maximizable){var pt=e({type:"button",className:Te("maximizableButton"),onClick:Yt},de("maximizableButton"));return v.createElement("button",pt,Ge,v.createElement(ho,null))}return null},At=function(){if(a.showHeader){var te=nn(),$e=Vt(),Ge=V.getJSXElement(a.icons,a),pt=V.getJSXElement(a.header,a),bn=p+"_header",wn=e({ref:F,style:a.headerStyle,className:Te("header"),onMouseDown:Qt},de("header")),Ee=e({id:bn,className:Te("headerTitle")},de("headerTitle")),W=e({className:Te("headerIcons")},de("headerIcons"));return v.createElement("div",wn,v.createElement("div",Ee,pt),v.createElement("div",W,Ge,$e,te))}return null},gn=function(){var te=p+"_content",$e=e({id:te,ref:D,style:a.contentStyle,className:Te("content")},de("content"));return v.createElement("div",$e,a.children)},rn=function(){var te=V.getJSXElement(a.footer,a),$e=e({ref:q,className:Te("footer")},de("footer"));return te&&v.createElement("div",$e,te)},hn=function(){return a.resizable?v.createElement("span",{className:"p-resizable-handle",style:{zIndex:90},onMouseDown:In}):null},Mn=function(){var te,$e={header:a.header,content:a.message,message:a==null||(te=a.children)===null||te===void 0||(te=te[1])===null||te===void 0||(te=te.props)===null||te===void 0?void 0:te.children},Ge={headerRef:F,contentRef:D,footerRef:q,closeRef:K,hide:Nt,message:$e};return V.getJSXElement(o.content,Ge)},Rn=function(){var te=At(),$e=gn(),Ge=rn(),pt=hn();return v.createElement(v.Fragment,null,te,$e,Ge,pt)},tr=function(){var te=p+"_header",$e=p+"_content",Ge={enter:a.position==="center"?150:300,exit:a.position==="center"?150:300},pt=e({ref:ie,style:ze("mask"),className:Te("mask"),onPointerUp:Tn},de("mask")),bn=e({ref:G,id:p,className:Be(a.className,Te("root",{props:a,maximized:J,context:i})),style:a.style,onClick:a.onClick,role:"dialog","aria-labelledby":te,"aria-describedby":$e,"aria-modal":a.modal,onPointerDown:Rt},Rl.getOtherProps(a),de("root")),wn=e({classNames:Te("transition"),timeout:Ge,in:C,options:a.transitionOptions,unmountOnExit:!0,onEnter:ae,onEntered:he,onExiting:Ke,onExited:Oe},de("transition")),Ee=null;o!=null&&o.content?Ee=Mn():Ee=Rn();var W=v.createElement("div",pt,v.createElement(ss,Oc({nodeRef:G},wn),v.createElement("div",bn,v.createElement(W0,{autoFocus:a.focusOnShow},Ee))));return v.createElement(is,{element:W,appendTo:a.appendTo,visible:!0})};return b&&tr()});Ch.displayName="Dialog";function Tc(){return Tc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},Tc.apply(this,arguments)}var kh=v.memo(v.forwardRef(function(o,n){var e=Gn.getPTI(o);return v.createElement("svg",Tc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"}))}));kh.displayName="ChevronDownIcon";function Ic(){return Ic=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},Ic.apply(this,arguments)}var Oh=v.memo(v.forwardRef(function(o,n){var e=Gn.getPTI(o);return v.createElement("svg",Ic({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z",fill:"currentColor"}))}));Oh.displayName="ChevronUpIcon";var q0=Bv();function Nc(){return Nc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},Nc.apply(this,arguments)}var Ph=v.memo(v.forwardRef(function(o,n){var e=Gn.getPTI(o);return v.createElement("svg",Nc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"}))}));Ph.displayName="SearchIcon";function Rc(){return Rc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},Rc.apply(this,arguments)}function ma(o){"@babel/helpers - typeof";return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ma(o)}function Z0(o,n){if(ma(o)!=="object"||o===null)return o;var e=o[Symbol.toPrimitive];if(e!==void 0){var i=e.call(o,n);if(ma(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function J0(o){var n=Z0(o,"string");return ma(n)==="symbol"?n:String(n)}function Th(o,n,e){return n=J0(n),n in o?Object.defineProperty(o,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[n]=e,o}function eb(o){if(Array.isArray(o))return o}function tb(o,n){var e=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(e!=null){var i,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(o)).next,n===0){if(Object(e)!==e)return;p=!1}else for(;!(p=(i=u.call(e)).done)&&(f.push(i.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function dg(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}function nb(o,n){if(o){if(typeof o=="string")return dg(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return dg(o,n)}}function rb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
996
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yr(
|
|
995
|
+
`);ve.current.innerHTML=te},pn=function(){ve.current=H.removeInlineStyle(ve.current)};Ar(function(){_e(!0),a.visible&&w(!0)}),v.useEffect(function(){return a.breakpoints&&Je(),function(){pn()}},[a.breakpoints]),Kt(function(){a.visible&&!b&&w(!0),a.visible!==C&&b&&O(a.visible),a.visible&&(z.current=document.activeElement)},[a.visible,b]),Kt(function(){b&&(Sr.set("modal",ie.current,o&&o.autoZIndex||Mt.autoZIndex,a.baseZIndex||o&&o.zIndex.modal||Mt.zIndex.modal),O(!0))},[b]),Kt(function(){_e(!0)},[B,C]),$r(function(){me(),_e(!1),H.removeInlineStyle(ve.current),Sr.clear(ie.current)}),v.useImperativeHandle(n,function(){return{props:a,resetPosition:Fe,getElement:function(){return Y.current},getMask:function(){return ie.current},getContent:function(){return D.current},getHeader:function(){return F.current},getFooter:function(){return q.current},getCloseButton:function(){return K.current}}});var nn=function(){if(a.closable){var te=a.ariaCloseIconLabel||rc("close"),je=e({className:Te("closeButtonIcon"),"aria-hidden":!0},de("closeButtonIcon")),Ge=a.closeIcon||v.createElement(us,je),pt=jr.getJSXIcon(Ge,Zu({},je),{props:a}),bn=e({ref:K,type:"button",className:Te("closeButton"),"aria-label":te,onClick:Nt,onKeyDown:function(Ee){Ee.key!=="Escape"&&Ee.stopPropagation()}},de("closeButton"));return v.createElement("button",bn,pt,v.createElement(ho,null))}return null},Vt=function(){var te,je=e({className:Te("maximizableIcon")},de("maximizableIcon"));J?te=a.minimizeIcon||v.createElement(Eh,je):te=a.maximizeIcon||v.createElement(xh,je);var Ge=jr.getJSXIcon(te,je,{props:a});if(a.maximizable){var pt=e({type:"button",className:Te("maximizableButton"),onClick:Yt},de("maximizableButton"));return v.createElement("button",pt,Ge,v.createElement(ho,null))}return null},At=function(){if(a.showHeader){var te=nn(),je=Vt(),Ge=V.getJSXElement(a.icons,a),pt=V.getJSXElement(a.header,a),bn=p+"_header",wn=e({ref:F,style:a.headerStyle,className:Te("header"),onMouseDown:Qt},de("header")),Ee=e({id:bn,className:Te("headerTitle")},de("headerTitle")),W=e({className:Te("headerIcons")},de("headerIcons"));return v.createElement("div",wn,v.createElement("div",Ee,pt),v.createElement("div",W,Ge,je,te))}return null},gn=function(){var te=p+"_content",je=e({id:te,ref:D,style:a.contentStyle,className:Te("content")},de("content"));return v.createElement("div",je,a.children)},rn=function(){var te=V.getJSXElement(a.footer,a),je=e({ref:q,className:Te("footer")},de("footer"));return te&&v.createElement("div",je,te)},hn=function(){return a.resizable?v.createElement("span",{className:"p-resizable-handle",style:{zIndex:90},onMouseDown:In}):null},Mn=function(){var te,je={header:a.header,content:a.message,message:a==null||(te=a.children)===null||te===void 0||(te=te[1])===null||te===void 0||(te=te.props)===null||te===void 0?void 0:te.children},Ge={headerRef:F,contentRef:D,footerRef:q,closeRef:K,hide:Nt,message:je};return V.getJSXElement(i.content,Ge)},Rn=function(){var te=At(),je=gn(),Ge=rn(),pt=hn();return v.createElement(v.Fragment,null,te,je,Ge,pt)},tr=function(){var te=p+"_header",je=p+"_content",Ge={enter:a.position==="center"?150:300,exit:a.position==="center"?150:300},pt=e({ref:ie,style:ze("mask"),className:Te("mask"),onPointerUp:Tn},de("mask")),bn=e({ref:Y,id:p,className:Be(a.className,Te("root",{props:a,maximized:J,context:o})),style:a.style,onClick:a.onClick,role:"dialog","aria-labelledby":te,"aria-describedby":je,"aria-modal":a.modal,onPointerDown:Rt},Rl.getOtherProps(a),de("root")),wn=e({classNames:Te("transition"),timeout:Ge,in:C,options:a.transitionOptions,unmountOnExit:!0,onEnter:ae,onEntered:he,onExiting:Ke,onExited:Oe},de("transition")),Ee=null;i!=null&&i.content?Ee=Mn():Ee=Rn();var W=v.createElement("div",pt,v.createElement(ss,Oc({nodeRef:Y},wn),v.createElement("div",bn,v.createElement(G0,{autoFocus:a.focusOnShow},Ee))));return v.createElement(is,{element:W,appendTo:a.appendTo,visible:!0})};return b&&tr()});kh.displayName="Dialog";function Tc(){return Tc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Tc.apply(this,arguments)}var Oh=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",Tc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"}))}));Oh.displayName="ChevronDownIcon";function Ic(){return Ic=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Ic.apply(this,arguments)}var Ph=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",Ic({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z",fill:"currentColor"}))}));Ph.displayName="ChevronUpIcon";var Z0=Uv();function Nc(){return Nc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Nc.apply(this,arguments)}var Th=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",Nc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"}))}));Th.displayName="SearchIcon";function Rc(){return Rc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Rc.apply(this,arguments)}function ma(i){"@babel/helpers - typeof";return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ma(i)}function J0(i,n){if(ma(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(ma(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function eb(i){var n=J0(i,"string");return ma(n)==="symbol"?n:String(n)}function Ih(i,n,e){return n=eb(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function tb(i){if(Array.isArray(i))return i}function nb(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n===0){if(Object(e)!==e)return;p=!1}else for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function pg(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function rb(i,n){if(i){if(typeof i=="string")return pg(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return pg(i,n)}}function ib(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
996
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yr(i,n){return tb(i)||nb(i,n)||rb(i,n)||ib()}var ob=`
|
|
997
997
|
.p-virtualscroller {
|
|
998
998
|
position: relative;
|
|
999
999
|
overflow: auto;
|
|
@@ -1049,8 +1049,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1049
1049
|
.p-virtualscroller-inline .p-virtualscroller-content {
|
|
1050
1050
|
position: static;
|
|
1051
1051
|
}
|
|
1052
|
-
`,Ll=tt.extend({defaultProps:{__TYPE:"VirtualScroller",__parentMetadata:null,id:null,style:null,className:null,tabIndex:0,items:null,itemSize:0,scrollHeight:null,scrollWidth:null,orientation:"vertical",step:0,numToleratedItems:null,delay:0,resizeDelay:10,appendOnly:!1,inline:!1,lazy:!1,disabled:!1,loaderDisabled:!1,loadingIcon:null,columns:null,loading:void 0,autoSize:!1,showSpacer:!0,showLoader:!1,loadingTemplate:null,loaderIconTemplate:null,itemTemplate:null,contentTemplate:null,onScroll:null,onScrollIndexChange:null,onLazyLoad:null,children:void 0},css:{styles:ib}});function pg(o,n){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),e.push.apply(e,i)}return e}function uo(o){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?pg(Object(e),!0).forEach(function(i){Th(o,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):pg(Object(e)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(e,i))})}return o}var Ih=v.memo(v.forwardRef(function(o,n){var e=Yn(),i=v.useContext(Gt),a=Ll.getProps(o,i),u=sa(o)||{},c=a.orientation==="vertical",f=a.orientation==="horizontal",p=a.orientation==="both",h=v.useState(p?{rows:0,cols:0}:0),m=Yr(h,2),b=m[0],w=m[1],x=v.useState(p?{rows:0,cols:0}:0),k=Yr(x,2),C=k[0],O=k[1],L=v.useState(0),N=Yr(L,2),$=N[0],j=N[1],G=v.useState(p?{rows:0,cols:0}:0),ie=Yr(G,2),Y=ie[0],D=ie[1],F=v.useState(a.numToleratedItems),q=Yr(F,2),K=q[0],se=q[1],oe=v.useState(a.loading||!1),ye=Yr(oe,2),Q=ye[0],ve=ye[1],ke=v.useState([]),z=Yr(ke,2),J=z[0],B=z[1],P=Ll.setMetaData({props:a,state:{first:b,last:C,page:$,numItemsInViewport:Y,numToleratedItems:K,loading:Q,loaderArr:J}}),U=P.ptm;_i(Ll.css.styles,{name:"virtualscroller"});var ce=v.useRef(null),de=v.useRef(null),Te=v.useRef(null),ze=v.useRef(null),Me=v.useRef(p?{top:0,left:0}:0),Ue=v.useRef(null),Ye=v.useRef(null),st=v.useRef({}),Ht=v.useRef({}),$t=v.useRef(null),nt=v.useRef(null),rt=v.useRef(null),fn=v.useRef(null),Et=v.useRef(!1),It=v.useRef(null),Jt=v.useRef(!1),en=Kc({listener:function(W){return Ze()},when:!a.disabled}),jt=Yr(en,1),ht=jt[0],ft=Rr({target:"window",type:"orientationchange",listener:function(W){return Ze()},when:!a.disabled}),Pn=Yr(ft,1),Nt=Pn[0],dn=function(){return ce},Rt=function(W){return Math.floor((W+K*4)/(a.step||1))},Tn=function(W){de.current=W||de.current||H.findSingle(ce.current,".p-virtualscroller-content")},Yt=function(W){return a.step?$!==Rt(W):!0},Qt=function(W){Me.current=p?{top:0,left:0}:0,ce.current&&ce.current.scrollTo(W)},bt=function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",pe=tn(),be=pe.numToleratedItems,Se=Ke(),ge=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,on=arguments.length>1?arguments[1]:void 0;return kt<=on?0:kt},_e=function(kt,on,Bt){return kt*on+Bt},qe=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Qt({left:kt,top:on,behavior:fe})},Xe=p?{rows:0,cols:0}:0,mt=!1;p?(Xe={rows:ge(W[0],be[0]),cols:ge(W[1],be[1])},qe(_e(Xe.cols,a.itemSize[1],Se.left),_e(Xe.rows,a.itemSize[0],Se.top)),mt=b.rows!==Xe.rows||b.cols!==Xe.cols):(Xe=ge(W,be),f?qe(_e(Xe,a.itemSize,Se.left),0):qe(0,_e(Xe,a.itemSize,Se.top)),mt=b!==Xe),Et.current=mt,w(Xe)},Lt=function(W,fe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(fe){var be=Nn(),Se=be.first,ge=be.viewport,_e=function(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Qt({left:on,top:Bt,behavior:pe})},qe=fe==="to-start",Xe=fe==="to-end";if(qe){if(p)ge.first.rows-Se.rows>W[0]?_e(ge.first.cols*a.itemSize[1],(ge.first.rows-1)*a.itemSize[0]):ge.first.cols-Se.cols>W[1]&&_e((ge.first.cols-1)*a.itemSize[1],ge.first.rows*a.itemSize[0]);else if(ge.first-Se>W){var mt=(ge.first-1)*a.itemSize;f?_e(mt,0):_e(0,mt)}}else if(Xe){if(p)ge.last.rows-Se.rows<=W[0]+1?_e(ge.first.cols*a.itemSize[1],(ge.first.rows+1)*a.itemSize[0]):ge.last.cols-Se.cols<=W[1]+1&&_e((ge.first.cols+1)*a.itemSize[1],ge.first.rows*a.itemSize[0]);else if(ge.last-Se<=W+1){var Xt=(ge.first+1)*a.itemSize;f?_e(Xt,0):_e(0,Xt)}}}else bt(W,pe)},In=function(){return Q?a.loaderDisabled?J:[]:nn()},Ct=function(){return a.columns&&p||f?Q&&a.loaderDisabled?p?J[0]:J:a.columns.slice(p?b.cols:b,p?C.cols:C):a.columns},Nn=function(){var W=function(Xe,mt){return Math.floor(Xe/(mt||Xe))},fe=b,pe=0;if(ce.current){var be=ce.current,Se=be.scrollTop,ge=be.scrollLeft;if(p)fe={rows:W(Se,a.itemSize[0]),cols:W(ge,a.itemSize[1])},pe={rows:fe.rows+Y.rows,cols:fe.cols+Y.cols};else{var _e=f?ge:Se;fe=W(_e,a.itemSize),pe=fe+Y}}return{first:b,last:C,viewport:{first:fe,last:pe}}},tn=function(){var W=Ke(),fe=ce.current?ce.current.offsetWidth-W.left:0,pe=ce.current?ce.current.offsetHeight-W.top:0,be=function(Xe,mt){return Math.ceil(Xe/(mt||Xe))},Se=function(Xe){return Math.ceil(Xe/2)},ge=p?{rows:be(pe,a.itemSize[0]),cols:be(fe,a.itemSize[1])}:be(f?fe:pe,a.itemSize),_e=K||(p?[Se(ge.rows),Se(ge.cols)]:Se(ge));return{numItemsInViewport:ge,numToleratedItems:_e}},Fe=function(){var W=tn(),fe=W.numItemsInViewport,pe=W.numToleratedItems,be=function(_e,qe,Xe){var mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return he(_e+qe+(_e<Xe?2:3)*Xe,mt)},Se=p?{rows:be(b.rows,fe.rows,pe[0]),cols:be(b.cols,fe.cols,pe[1],!0)}:be(b,fe,pe);D(fe),se(pe),O(Se),a.showLoader&&B(p?Array.from({length:fe.rows}).map(function(){return Array.from({length:fe.cols})}):Array.from({length:fe})),a.lazy&&Promise.resolve().then(function(){It.current={first:a.step?p?{rows:0,cols:b.cols}:0:b,last:Math.min(a.step?a.step:Se,(a.items||[]).length)},a.onLazyLoad&&a.onLazyLoad(It.current)})},ae=function(W){a.autoSize&&!W&&Promise.resolve().then(function(){if(de.current){de.current.style.minHeight=de.current.style.minWidth="auto",de.current.style.position="relative",ce.current.style.contain="none";var fe=[H.getWidth(ce.current),H.getHeight(ce.current)],pe=fe[0],be=fe[1];(p||f)&&(ce.current.style.width=(pe<$t.current?pe:a.scrollWidth||$t.current)+"px"),(p||c)&&(ce.current.style.height=(be<nt.current?be:a.scrollHeight||nt.current)+"px"),de.current.style.minHeight=de.current.style.minWidth="",de.current.style.position="",ce.current.style.contain=""}})},he=function(){var W,fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,pe=arguments.length>1?arguments[1]:void 0;return a.items?Math.min(pe?((W=a.columns||a.items[0])===null||W===void 0?void 0:W.length)||0:(a.items||[]).length,fe):0},Ke=function(){if(de.current){var W=getComputedStyle(de.current),fe=parseFloat(W.paddingLeft)+Math.max(parseFloat(W.left)||0,0),pe=parseFloat(W.paddingRight)+Math.max(parseFloat(W.right)||0,0),be=parseFloat(W.paddingTop)+Math.max(parseFloat(W.top)||0,0),Se=parseFloat(W.paddingBottom)+Math.max(parseFloat(W.bottom)||0,0);return{left:fe,right:pe,top:be,bottom:Se,x:fe+pe,y:be+Se}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},Oe=function(){if(ce.current){var W=ce.current.parentElement,fe=a.scrollWidth||"".concat(ce.current.offsetWidth||W.offsetWidth,"px"),pe=a.scrollHeight||"".concat(ce.current.offsetHeight||W.offsetHeight,"px"),be=function(ge,_e){return ce.current.style[ge]=_e};p||f?(be("height",pe),be("width",fe)):be("height",pe)}},M=function(){var W=a.items;if(W){var fe=Ke(),pe=function(Se,ge,_e){var qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return Ht.current=uo(uo({},Ht.current),Th({},"".concat(Se),(ge||[]).length*_e+qe+"px"))};p?(pe("height",W,a.itemSize[0],fe.y),pe("width",a.columns||W[1],a.itemSize[1],fe.x)):f?pe("width",a.columns||W,a.itemSize,fe.x):pe("height",W,a.itemSize,fe.y)}},me=function(W){if(de.current&&!a.appendOnly){var fe=W?W.first:b,pe=function(_e,qe){return _e*qe},be=function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ze.current&&(ze.current.style.top="-".concat(qe,"px")),st.current=uo(uo({},st.current),{transform:"translate3d(".concat(_e,"px, ").concat(qe,"px, 0)")})};if(p)be(pe(fe.cols,a.itemSize[1]),pe(fe.rows,a.itemSize[0]));else{var Se=pe(fe,a.itemSize);f?be(Se,0):be(0,Se)}}},De=function(W){var fe=W.target,pe=Ke(),be=function(zt,Sn){return zt?zt>Sn?zt-Sn:zt:0},Se=function(zt,Sn){return Math.floor(zt/(Sn||zt))},ge=function(zt,Sn,nr,zr,Ln,_n){return zt<=Ln?Ln:_n?nr-zr-Ln:Sn+Ln-1},_e=function(zt,Sn,nr,zr,Ln,_n,Fr){return zt<=_n?0:Math.max(0,Fr?zt<Sn?nr:zt-_n:zt>Sn?nr:zt-2*_n)},qe=function(zt,Sn,nr,zr,Ln,_n){var Fr=Sn+zr+2*Ln;return zt>=Ln&&(Fr=Fr+(Ln+1)),he(Fr,_n)},Xe=be(fe.scrollTop,pe.top),mt=be(fe.scrollLeft,pe.left),Xt=p?{rows:0,cols:0}:0,kt=C,on=!1,Bt=Me.current;if(p){var hi=Me.current.top<=Xe,mn=Me.current.left<=mt;if(!a.appendOnly||a.appendOnly&&(hi||mn)){var xr={rows:Se(Xe,a.itemSize[0]),cols:Se(mt,a.itemSize[1])},zi={rows:ge(xr.rows,b.rows,C.rows,Y.rows,K[0],hi),cols:ge(xr.cols,b.cols,C.cols,Y.cols,K[1],mn)};Xt={rows:_e(xr.rows,zi.rows,b.rows,C.rows,Y.rows,K[0],hi),cols:_e(xr.cols,zi.cols,b.cols,C.cols,Y.cols,K[1],mn)},kt={rows:qe(xr.rows,Xt.rows,C.rows,Y.rows,K[0]),cols:qe(xr.cols,Xt.cols,C.cols,Y.cols,K[1],!0)},on=Xt.rows!==b.rows||kt.rows!==C.rows||Xt.cols!==b.cols||kt.cols!==C.cols||Et.current,Bt={top:Xe,left:mt}}}else{var mi=f?mt:Xe,Er=Me.current<=mi;if(!a.appendOnly||a.appendOnly&&Er){var Cr=Se(mi,a.itemSize),vt=ge(Cr,b,C,Y,K,Er);Xt=_e(Cr,vt,b,C,Y,K,Er),kt=qe(Cr,Xt,C,Y,K),on=Xt!==b||kt!==C||Et.current,Bt=mi}}return{first:Xt,last:kt,isRangeChanged:on,scrollPos:Bt}},Le=function(W){var fe=De(W),pe=fe.first,be=fe.last,Se=fe.isRangeChanged,ge=fe.scrollPos;if(Se){var _e={first:pe,last:be};if(me(_e),w(pe),O(be),Me.current=ge,a.onScrollIndexChange&&a.onScrollIndexChange(_e),a.lazy&&Yt(pe)){var qe={first:a.step?Math.min(Rt(pe)*a.step,(a.items||[]).length-a.step):pe,last:Math.min(a.step?(Rt(pe)+1)*a.step:be,(a.items||[]).length)},Xe=!It.current||It.current.first!==qe.first||It.current.last!==qe.last;Xe&&a.onLazyLoad&&a.onLazyLoad(qe),It.current=qe}}},He=function(W){if(a.onScroll&&a.onScroll(W),a.delay){if(Ue.current&&clearTimeout(Ue.current),Yt(b)){if(!Q&&a.showLoader){var fe=De(W),pe=fe.isRangeChanged,be=pe||(a.step?Yt(b):!1);be&&ve(!0)}Ue.current=setTimeout(function(){Le(W),Q&&a.showLoader&&(!a.lazy||a.loading===void 0)&&(ve(!1),j(Rt(b)))},a.delay)}}else Le(W)},Ze=function(){Ye.current&&clearTimeout(Ye.current),Ye.current=setTimeout(function(){if(ce.current){var W=[H.getWidth(ce.current),H.getHeight(ce.current)],fe=W[0],pe=W[1],be=fe!==$t.current,Se=pe!==nt.current,ge=p?be||Se:f?be:c?Se:!1;ge&&(se(a.numToleratedItems),$t.current=fe,nt.current=pe,rt.current=H.getWidth(de.current),fn.current=H.getHeight(de.current))}},a.resizeDelay)},Je=function(W){var fe=(a.items||[]).length,pe=p?b.rows+W:b+W;return{index:pe,count:fe,first:pe===0,last:pe===fe-1,even:pe%2===0,odd:pe%2!==0,props:a}},pn=function(W,fe){var pe=J.length||0;return uo({index:W,count:pe,first:W===0,last:W===pe-1,even:W%2===0,odd:W%2!==0,props:a},fe)},nn=function(){var W=a.items;return W&&!Q?p?W.slice(a.appendOnly?0:b.rows,C.rows).map(function(fe){return a.columns?fe:fe.slice(a.appendOnly?0:b.cols,C.cols)}):f&&a.columns?W:W.slice(a.appendOnly?0:b,C):[]},Vt=function(){ce.current&&gn()&&(Tn(de.current),At(),ht(),Nt(),$t.current=H.getWidth(ce.current),nt.current=H.getHeight(ce.current),rt.current=H.getWidth(de.current),fn.current=H.getHeight(de.current))},At=function(){!a.disabled&&gn()&&(Oe(),Fe(),M())},gn=function(){if(H.isVisible(ce.current)){var W=ce.current.getBoundingClientRect();return W.width>0&&W.height>0}return!1};v.useEffect(function(){!Jt.current&&gn()&&(Vt(),Jt.current=!0)}),Kt(function(){At()},[a.itemSize,a.scrollHeight,a.scrollWidth]),Kt(function(){a.numToleratedItems!==K&&se(a.numToleratedItems)},[a.numToleratedItems]),Kt(function(){a.numToleratedItems===K&&At()},[K]),Kt(function(){var Ee=u.items!==void 0&&u.items!==null,W=a.items!==void 0&&a.items!==null,fe=Ee?u.items.length:0,pe=W?a.items.length:0,be=fe!==pe;if(p&&!be){var Se=Ee&&u.items.length>0?u.items[0].length:0,ge=W&&a.items.length>0?a.items[0].length:0;be=Se!==ge}(!Ee||be)&&At();var _e=Q;a.lazy&&u.loading!==a.loading&&a.loading!==Q&&(ve(a.loading),_e=a.loading),ae(_e)}),Kt(function(){Me.current=p?{top:0,left:0}:0},[a.orientation]),v.useImperativeHandle(n,function(){return{props:a,getElementRef:dn,scrollTo:Qt,scrollToIndex:bt,scrollInView:Lt,getRenderedRange:Nn}});var rn=function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=pn(W,fe),be=V.getJSXElement(a.loadingTemplate,pe);return v.createElement(v.Fragment,{key:W},be)},hn=function(){var W="p-virtualscroller-loading-icon",fe=e({className:W},U("loadingIcon")),pe=a.loadingIcon||v.createElement(rs,Rc({},fe,{spin:!0})),be=$r.getJSXIcon(pe,uo({},fe),{props:a});if(!a.loaderDisabled&&a.showLoader&&Q){var Se=Be("p-virtualscroller-loader",{"p-component-overlay":!a.loadingTemplate}),ge=be;if(a.loadingTemplate)ge=J.map(function(Xe,mt){return rn(mt,p&&{numCols:Y.cols})});else if(a.loaderIconTemplate){var _e={iconClassName:W,element:ge,props:a};ge=V.getJSXElement(a.loaderIconTemplate,_e)}var qe=e({className:Se},U("loader"));return v.createElement("div",qe,ge)}return null},Mn=function(){if(a.showSpacer){var W=e({ref:Te,style:Ht.current,className:"p-virtualscroller-spacer"},U("spacer"));return v.createElement("div",W)}return null},Rn=function(W,fe){var pe=Je(fe),be=V.getJSXElement(a.itemTemplate,W,pe);return v.createElement(v.Fragment,{key:pe.index},be)},tr=function(){var W=nn();return W.map(Rn)},Ne=function(){var W=tr(),fe=Be("p-virtualscroller-content",{"p-virtualscroller-loading":Q}),pe=e({ref:de,style:st.current,className:fe},U("content")),be=v.createElement("div",pe,W);if(a.contentTemplate){var Se={style:st.current,className:fe,spacerStyle:Ht.current,contentRef:function(_e){return de.current=V.getRefElement(_e)},spacerRef:function(_e){return Te.current=V.getRefElement(_e)},stickyRef:function(_e){return ze.current=V.getRefElement(_e)},items:nn(),getItemOptions:function(_e){return Je(_e)},children:W,element:be,props:a,loading:Q,getLoaderOptions:function(_e,qe){return pn(_e,qe)},loadingTemplate:a.loadingTemplate,itemSize:a.itemSize,rows:In(),columns:Ct(),vertical:c,horizontal:f,both:p};return V.getJSXElement(a.contentTemplate,Se)}return be};if(a.disabled){var te=V.getJSXElement(a.contentTemplate,{items:a.items,rows:a.items,columns:a.columns});return v.createElement(v.Fragment,null,a.children,te)}var $e=Be("p-virtualscroller",{"p-virtualscroller-inline":a.inline,"p-virtualscroller-both p-both-scroll":p,"p-virtualscroller-horizontal p-horizontal-scroll":f},a.className),Ge=hn(),pt=Ne(),bn=Mn(),wn=e({ref:ce,className:$e,tabIndex:a.tabIndex,style:a.style,onScroll:function(W){return He(W)}},Ll.getOtherProps(a),U("root"));return v.createElement("div",wn,pt,bn,Ge)}));Ih.displayName="VirtualScroller";function Lc(){return Lc=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},Lc.apply(this,arguments)}var Nh=v.memo(v.forwardRef(function(o,n){var e=Gn.getPTI(o);return v.createElement("svg",Lc({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"}))}));Nh.displayName="CheckIcon";function Lr(){return Lr=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},Lr.apply(this,arguments)}function mo(o){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mo(o)}function ob(o,n){if(mo(o)!=="object"||o===null)return o;var e=o[Symbol.toPrimitive];if(e!==void 0){var i=e.call(o,n);if(mo(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function ab(o){var n=ob(o,"string");return mo(n)==="symbol"?n:String(n)}function cs(o,n,e){return n=ab(n),n in o?Object.defineProperty(o,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[n]=e,o}function lb(o){if(Array.isArray(o))return o}function sb(o,n){var e=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(e!=null){var i,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(o)).next,n===0){if(Object(e)!==e)return;p=!1}else for(;!(p=(i=u.call(e)).done)&&(f.push(i.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function gg(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}function ub(o,n){if(o){if(typeof o=="string")return gg(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return gg(o,n)}}function cb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1053
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qo(
|
|
1052
|
+
`,_l=tt.extend({defaultProps:{__TYPE:"VirtualScroller",__parentMetadata:null,id:null,style:null,className:null,tabIndex:0,items:null,itemSize:0,scrollHeight:null,scrollWidth:null,orientation:"vertical",step:0,numToleratedItems:null,delay:0,resizeDelay:10,appendOnly:!1,inline:!1,lazy:!1,disabled:!1,loaderDisabled:!1,loadingIcon:null,columns:null,loading:void 0,autoSize:!1,showSpacer:!0,showLoader:!1,loadingTemplate:null,loaderIconTemplate:null,itemTemplate:null,contentTemplate:null,onScroll:null,onScrollIndexChange:null,onLazyLoad:null,children:void 0},css:{styles:ob}});function gg(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function uo(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?gg(Object(e),!0).forEach(function(o){Ih(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):gg(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var Nh=v.memo(v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=_l.getProps(i,o),u=sa(i)||{},c=a.orientation==="vertical",f=a.orientation==="horizontal",p=a.orientation==="both",h=v.useState(p?{rows:0,cols:0}:0),m=Yr(h,2),b=m[0],w=m[1],x=v.useState(p?{rows:0,cols:0}:0),k=Yr(x,2),C=k[0],O=k[1],_=v.useState(0),N=Yr(_,2),j=N[0],$=N[1],Y=v.useState(p?{rows:0,cols:0}:0),ie=Yr(Y,2),Q=ie[0],D=ie[1],F=v.useState(a.numToleratedItems),q=Yr(F,2),K=q[0],se=q[1],oe=v.useState(a.loading||!1),ye=Yr(oe,2),X=ye[0],ve=ye[1],ke=v.useState([]),z=Yr(ke,2),J=z[0],B=z[1],P=_l.setMetaData({props:a,state:{first:b,last:C,page:j,numItemsInViewport:Q,numToleratedItems:K,loading:X,loaderArr:J}}),U=P.ptm;ji(_l.css.styles,{name:"virtualscroller"});var ce=v.useRef(null),de=v.useRef(null),Te=v.useRef(null),ze=v.useRef(null),Me=v.useRef(p?{top:0,left:0}:0),Ue=v.useRef(null),Ye=v.useRef(null),st=v.useRef({}),Ht=v.useRef({}),jt=v.useRef(null),nt=v.useRef(null),rt=v.useRef(null),fn=v.useRef(null),Et=v.useRef(!1),It=v.useRef(null),Jt=v.useRef(!1),en=Kc({listener:function(W){return Ze()},when:!a.disabled}),$t=Yr(en,1),ht=$t[0],ft=Rr({target:"window",type:"orientationchange",listener:function(W){return Ze()},when:!a.disabled}),Pn=Yr(ft,1),Nt=Pn[0],dn=function(){return ce},Rt=function(W){return Math.floor((W+K*4)/(a.step||1))},Tn=function(W){de.current=W||de.current||H.findSingle(ce.current,".p-virtualscroller-content")},Yt=function(W){return a.step?j!==Rt(W):!0},Qt=function(W){Me.current=p?{top:0,left:0}:0,ce.current&&ce.current.scrollTo(W)},bt=function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",pe=tn(),be=pe.numToleratedItems,Se=Ke(),ge=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,on=arguments.length>1?arguments[1]:void 0;return kt<=on?0:kt},Le=function(kt,on,Bt){return kt*on+Bt},qe=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Qt({left:kt,top:on,behavior:fe})},Xe=p?{rows:0,cols:0}:0,mt=!1;p?(Xe={rows:ge(W[0],be[0]),cols:ge(W[1],be[1])},qe(Le(Xe.cols,a.itemSize[1],Se.left),Le(Xe.rows,a.itemSize[0],Se.top)),mt=b.rows!==Xe.rows||b.cols!==Xe.cols):(Xe=ge(W,be),f?qe(Le(Xe,a.itemSize,Se.left),0):qe(0,Le(Xe,a.itemSize,Se.top)),mt=b!==Xe),Et.current=mt,w(Xe)},_t=function(W,fe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(fe){var be=Nn(),Se=be.first,ge=be.viewport,Le=function(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Qt({left:on,top:Bt,behavior:pe})},qe=fe==="to-start",Xe=fe==="to-end";if(qe){if(p)ge.first.rows-Se.rows>W[0]?Le(ge.first.cols*a.itemSize[1],(ge.first.rows-1)*a.itemSize[0]):ge.first.cols-Se.cols>W[1]&&Le((ge.first.cols-1)*a.itemSize[1],ge.first.rows*a.itemSize[0]);else if(ge.first-Se>W){var mt=(ge.first-1)*a.itemSize;f?Le(mt,0):Le(0,mt)}}else if(Xe){if(p)ge.last.rows-Se.rows<=W[0]+1?Le(ge.first.cols*a.itemSize[1],(ge.first.rows+1)*a.itemSize[0]):ge.last.cols-Se.cols<=W[1]+1&&Le((ge.first.cols+1)*a.itemSize[1],ge.first.rows*a.itemSize[0]);else if(ge.last-Se<=W+1){var Xt=(ge.first+1)*a.itemSize;f?Le(Xt,0):Le(0,Xt)}}}else bt(W,pe)},In=function(){return X?a.loaderDisabled?J:[]:nn()},Ct=function(){return a.columns&&p||f?X&&a.loaderDisabled?p?J[0]:J:a.columns.slice(p?b.cols:b,p?C.cols:C):a.columns},Nn=function(){var W=function(Xe,mt){return Math.floor(Xe/(mt||Xe))},fe=b,pe=0;if(ce.current){var be=ce.current,Se=be.scrollTop,ge=be.scrollLeft;if(p)fe={rows:W(Se,a.itemSize[0]),cols:W(ge,a.itemSize[1])},pe={rows:fe.rows+Q.rows,cols:fe.cols+Q.cols};else{var Le=f?ge:Se;fe=W(Le,a.itemSize),pe=fe+Q}}return{first:b,last:C,viewport:{first:fe,last:pe}}},tn=function(){var W=Ke(),fe=ce.current?ce.current.offsetWidth-W.left:0,pe=ce.current?ce.current.offsetHeight-W.top:0,be=function(Xe,mt){return Math.ceil(Xe/(mt||Xe))},Se=function(Xe){return Math.ceil(Xe/2)},ge=p?{rows:be(pe,a.itemSize[0]),cols:be(fe,a.itemSize[1])}:be(f?fe:pe,a.itemSize),Le=K||(p?[Se(ge.rows),Se(ge.cols)]:Se(ge));return{numItemsInViewport:ge,numToleratedItems:Le}},Fe=function(){var W=tn(),fe=W.numItemsInViewport,pe=W.numToleratedItems,be=function(Le,qe,Xe){var mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return he(Le+qe+(Le<Xe?2:3)*Xe,mt)},Se=p?{rows:be(b.rows,fe.rows,pe[0]),cols:be(b.cols,fe.cols,pe[1],!0)}:be(b,fe,pe);D(fe),se(pe),O(Se),a.showLoader&&B(p?Array.from({length:fe.rows}).map(function(){return Array.from({length:fe.cols})}):Array.from({length:fe})),a.lazy&&Promise.resolve().then(function(){It.current={first:a.step?p?{rows:0,cols:b.cols}:0:b,last:Math.min(a.step?a.step:Se,(a.items||[]).length)},a.onLazyLoad&&a.onLazyLoad(It.current)})},ae=function(W){a.autoSize&&!W&&Promise.resolve().then(function(){if(de.current){de.current.style.minHeight=de.current.style.minWidth="auto",de.current.style.position="relative",ce.current.style.contain="none";var fe=[H.getWidth(ce.current),H.getHeight(ce.current)],pe=fe[0],be=fe[1];(p||f)&&(ce.current.style.width=(pe<jt.current?pe:a.scrollWidth||jt.current)+"px"),(p||c)&&(ce.current.style.height=(be<nt.current?be:a.scrollHeight||nt.current)+"px"),de.current.style.minHeight=de.current.style.minWidth="",de.current.style.position="",ce.current.style.contain=""}})},he=function(){var W,fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,pe=arguments.length>1?arguments[1]:void 0;return a.items?Math.min(pe?((W=a.columns||a.items[0])===null||W===void 0?void 0:W.length)||0:(a.items||[]).length,fe):0},Ke=function(){if(de.current){var W=getComputedStyle(de.current),fe=parseFloat(W.paddingLeft)+Math.max(parseFloat(W.left)||0,0),pe=parseFloat(W.paddingRight)+Math.max(parseFloat(W.right)||0,0),be=parseFloat(W.paddingTop)+Math.max(parseFloat(W.top)||0,0),Se=parseFloat(W.paddingBottom)+Math.max(parseFloat(W.bottom)||0,0);return{left:fe,right:pe,top:be,bottom:Se,x:fe+pe,y:be+Se}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},Oe=function(){if(ce.current){var W=ce.current.parentElement,fe=a.scrollWidth||"".concat(ce.current.offsetWidth||W.offsetWidth,"px"),pe=a.scrollHeight||"".concat(ce.current.offsetHeight||W.offsetHeight,"px"),be=function(ge,Le){return ce.current.style[ge]=Le};p||f?(be("height",pe),be("width",fe)):be("height",pe)}},M=function(){var W=a.items;if(W){var fe=Ke(),pe=function(Se,ge,Le){var qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return Ht.current=uo(uo({},Ht.current),Ih({},"".concat(Se),(ge||[]).length*Le+qe+"px"))};p?(pe("height",W,a.itemSize[0],fe.y),pe("width",a.columns||W[1],a.itemSize[1],fe.x)):f?pe("width",a.columns||W,a.itemSize,fe.x):pe("height",W,a.itemSize,fe.y)}},me=function(W){if(de.current&&!a.appendOnly){var fe=W?W.first:b,pe=function(Le,qe){return Le*qe},be=function(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ze.current&&(ze.current.style.top="-".concat(qe,"px")),st.current=uo(uo({},st.current),{transform:"translate3d(".concat(Le,"px, ").concat(qe,"px, 0)")})};if(p)be(pe(fe.cols,a.itemSize[1]),pe(fe.rows,a.itemSize[0]));else{var Se=pe(fe,a.itemSize);f?be(Se,0):be(0,Se)}}},De=function(W){var fe=W.target,pe=Ke(),be=function(zt,Sn){return zt?zt>Sn?zt-Sn:zt:0},Se=function(zt,Sn){return Math.floor(zt/(Sn||zt))},ge=function(zt,Sn,nr,zr,_n,Ln){return zt<=_n?_n:Ln?nr-zr-_n:Sn+_n-1},Le=function(zt,Sn,nr,zr,_n,Ln,Fr){return zt<=Ln?0:Math.max(0,Fr?zt<Sn?nr:zt-Ln:zt>Sn?nr:zt-2*Ln)},qe=function(zt,Sn,nr,zr,_n,Ln){var Fr=Sn+zr+2*_n;return zt>=_n&&(Fr=Fr+(_n+1)),he(Fr,Ln)},Xe=be(fe.scrollTop,pe.top),mt=be(fe.scrollLeft,pe.left),Xt=p?{rows:0,cols:0}:0,kt=C,on=!1,Bt=Me.current;if(p){var mi=Me.current.top<=Xe,mn=Me.current.left<=mt;if(!a.appendOnly||a.appendOnly&&(mi||mn)){var xr={rows:Se(Xe,a.itemSize[0]),cols:Se(mt,a.itemSize[1])},zi={rows:ge(xr.rows,b.rows,C.rows,Q.rows,K[0],mi),cols:ge(xr.cols,b.cols,C.cols,Q.cols,K[1],mn)};Xt={rows:Le(xr.rows,zi.rows,b.rows,C.rows,Q.rows,K[0],mi),cols:Le(xr.cols,zi.cols,b.cols,C.cols,Q.cols,K[1],mn)},kt={rows:qe(xr.rows,Xt.rows,C.rows,Q.rows,K[0]),cols:qe(xr.cols,Xt.cols,C.cols,Q.cols,K[1],!0)},on=Xt.rows!==b.rows||kt.rows!==C.rows||Xt.cols!==b.cols||kt.cols!==C.cols||Et.current,Bt={top:Xe,left:mt}}}else{var vi=f?mt:Xe,Er=Me.current<=vi;if(!a.appendOnly||a.appendOnly&&Er){var Cr=Se(vi,a.itemSize),vt=ge(Cr,b,C,Q,K,Er);Xt=Le(Cr,vt,b,C,Q,K,Er),kt=qe(Cr,Xt,C,Q,K),on=Xt!==b||kt!==C||Et.current,Bt=vi}}return{first:Xt,last:kt,isRangeChanged:on,scrollPos:Bt}},_e=function(W){var fe=De(W),pe=fe.first,be=fe.last,Se=fe.isRangeChanged,ge=fe.scrollPos;if(Se){var Le={first:pe,last:be};if(me(Le),w(pe),O(be),Me.current=ge,a.onScrollIndexChange&&a.onScrollIndexChange(Le),a.lazy&&Yt(pe)){var qe={first:a.step?Math.min(Rt(pe)*a.step,(a.items||[]).length-a.step):pe,last:Math.min(a.step?(Rt(pe)+1)*a.step:be,(a.items||[]).length)},Xe=!It.current||It.current.first!==qe.first||It.current.last!==qe.last;Xe&&a.onLazyLoad&&a.onLazyLoad(qe),It.current=qe}}},He=function(W){if(a.onScroll&&a.onScroll(W),a.delay){if(Ue.current&&clearTimeout(Ue.current),Yt(b)){if(!X&&a.showLoader){var fe=De(W),pe=fe.isRangeChanged,be=pe||(a.step?Yt(b):!1);be&&ve(!0)}Ue.current=setTimeout(function(){_e(W),X&&a.showLoader&&(!a.lazy||a.loading===void 0)&&(ve(!1),$(Rt(b)))},a.delay)}}else _e(W)},Ze=function(){Ye.current&&clearTimeout(Ye.current),Ye.current=setTimeout(function(){if(ce.current){var W=[H.getWidth(ce.current),H.getHeight(ce.current)],fe=W[0],pe=W[1],be=fe!==jt.current,Se=pe!==nt.current,ge=p?be||Se:f?be:c?Se:!1;ge&&(se(a.numToleratedItems),jt.current=fe,nt.current=pe,rt.current=H.getWidth(de.current),fn.current=H.getHeight(de.current))}},a.resizeDelay)},Je=function(W){var fe=(a.items||[]).length,pe=p?b.rows+W:b+W;return{index:pe,count:fe,first:pe===0,last:pe===fe-1,even:pe%2===0,odd:pe%2!==0,props:a}},pn=function(W,fe){var pe=J.length||0;return uo({index:W,count:pe,first:W===0,last:W===pe-1,even:W%2===0,odd:W%2!==0,props:a},fe)},nn=function(){var W=a.items;return W&&!X?p?W.slice(a.appendOnly?0:b.rows,C.rows).map(function(fe){return a.columns?fe:fe.slice(a.appendOnly?0:b.cols,C.cols)}):f&&a.columns?W:W.slice(a.appendOnly?0:b,C):[]},Vt=function(){ce.current&&gn()&&(Tn(de.current),At(),ht(),Nt(),jt.current=H.getWidth(ce.current),nt.current=H.getHeight(ce.current),rt.current=H.getWidth(de.current),fn.current=H.getHeight(de.current))},At=function(){!a.disabled&&gn()&&(Oe(),Fe(),M())},gn=function(){if(H.isVisible(ce.current)){var W=ce.current.getBoundingClientRect();return W.width>0&&W.height>0}return!1};v.useEffect(function(){!Jt.current&&gn()&&(Vt(),Jt.current=!0)}),Kt(function(){At()},[a.itemSize,a.scrollHeight,a.scrollWidth]),Kt(function(){a.numToleratedItems!==K&&se(a.numToleratedItems)},[a.numToleratedItems]),Kt(function(){a.numToleratedItems===K&&At()},[K]),Kt(function(){var Ee=u.items!==void 0&&u.items!==null,W=a.items!==void 0&&a.items!==null,fe=Ee?u.items.length:0,pe=W?a.items.length:0,be=fe!==pe;if(p&&!be){var Se=Ee&&u.items.length>0?u.items[0].length:0,ge=W&&a.items.length>0?a.items[0].length:0;be=Se!==ge}(!Ee||be)&&At();var Le=X;a.lazy&&u.loading!==a.loading&&a.loading!==X&&(ve(a.loading),Le=a.loading),ae(Le)}),Kt(function(){Me.current=p?{top:0,left:0}:0},[a.orientation]),v.useImperativeHandle(n,function(){return{props:a,getElementRef:dn,scrollTo:Qt,scrollToIndex:bt,scrollInView:_t,getRenderedRange:Nn}});var rn=function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=pn(W,fe),be=V.getJSXElement(a.loadingTemplate,pe);return v.createElement(v.Fragment,{key:W},be)},hn=function(){var W="p-virtualscroller-loading-icon",fe=e({className:W},U("loadingIcon")),pe=a.loadingIcon||v.createElement(rs,Rc({},fe,{spin:!0})),be=jr.getJSXIcon(pe,uo({},fe),{props:a});if(!a.loaderDisabled&&a.showLoader&&X){var Se=Be("p-virtualscroller-loader",{"p-component-overlay":!a.loadingTemplate}),ge=be;if(a.loadingTemplate)ge=J.map(function(Xe,mt){return rn(mt,p&&{numCols:Q.cols})});else if(a.loaderIconTemplate){var Le={iconClassName:W,element:ge,props:a};ge=V.getJSXElement(a.loaderIconTemplate,Le)}var qe=e({className:Se},U("loader"));return v.createElement("div",qe,ge)}return null},Mn=function(){if(a.showSpacer){var W=e({ref:Te,style:Ht.current,className:"p-virtualscroller-spacer"},U("spacer"));return v.createElement("div",W)}return null},Rn=function(W,fe){var pe=Je(fe),be=V.getJSXElement(a.itemTemplate,W,pe);return v.createElement(v.Fragment,{key:pe.index},be)},tr=function(){var W=nn();return W.map(Rn)},Ne=function(){var W=tr(),fe=Be("p-virtualscroller-content",{"p-virtualscroller-loading":X}),pe=e({ref:de,style:st.current,className:fe},U("content")),be=v.createElement("div",pe,W);if(a.contentTemplate){var Se={style:st.current,className:fe,spacerStyle:Ht.current,contentRef:function(Le){return de.current=V.getRefElement(Le)},spacerRef:function(Le){return Te.current=V.getRefElement(Le)},stickyRef:function(Le){return ze.current=V.getRefElement(Le)},items:nn(),getItemOptions:function(Le){return Je(Le)},children:W,element:be,props:a,loading:X,getLoaderOptions:function(Le,qe){return pn(Le,qe)},loadingTemplate:a.loadingTemplate,itemSize:a.itemSize,rows:In(),columns:Ct(),vertical:c,horizontal:f,both:p};return V.getJSXElement(a.contentTemplate,Se)}return be};if(a.disabled){var te=V.getJSXElement(a.contentTemplate,{items:a.items,rows:a.items,columns:a.columns});return v.createElement(v.Fragment,null,a.children,te)}var je=Be("p-virtualscroller",{"p-virtualscroller-inline":a.inline,"p-virtualscroller-both p-both-scroll":p,"p-virtualscroller-horizontal p-horizontal-scroll":f},a.className),Ge=hn(),pt=Ne(),bn=Mn(),wn=e({ref:ce,className:je,tabIndex:a.tabIndex,style:a.style,onScroll:function(W){return He(W)}},_l.getOtherProps(a),U("root"));return v.createElement("div",wn,pt,bn,Ge)}));Nh.displayName="VirtualScroller";function _c(){return _c=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},_c.apply(this,arguments)}var Rh=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",_c({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"}))}));Rh.displayName="CheckIcon";function _r(){return _r=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},_r.apply(this,arguments)}function mo(i){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mo(i)}function ab(i,n){if(mo(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(mo(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function lb(i){var n=ab(i,"string");return mo(n)==="symbol"?n:String(n)}function cs(i,n,e){return n=lb(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function sb(i){if(Array.isArray(i))return i}function ub(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n===0){if(Object(e)!==e)return;p=!1}else for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function hg(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function cb(i,n){if(i){if(typeof i=="string")return hg(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return hg(i,n)}}function fb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1053
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qo(i,n){return sb(i)||ub(i,n)||cb(i,n)||fb()}function mg(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function db(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?mg(Object(e),!0).forEach(function(o){cs(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):mg(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var pb={root:function(n){var e=n.props,o=n.focusedState,a=n.overlayVisibleState,u=n.context;return Be("p-dropdown p-component p-inputwrapper",{"p-disabled":e.disabled,"p-invalid":e.invalid,"p-focus":o,"p-variant-filled":e.variant?e.variant==="filled":u&&u.inputStyle==="filled","p-dropdown-clearable":e.showClear&&!e.disabled,"p-inputwrapper-filled":V.isNotEmpty(e.value),"p-inputwrapper-focus":o||a})},input:function(n){var e=n.props,o=n.label;return e.editable?"p-dropdown-label p-inputtext":Be("p-dropdown-label p-inputtext",{"p-placeholder":o===null&&e.placeholder,"p-dropdown-label-empty":o===null&&!e.placeholder})},trigger:"p-dropdown-trigger",emptyMessage:"p-dropdown-empty-message",itemGroup:function(n){var e=n.optionGroupLabel;return Be("p-dropdown-item-group",{"p-dropdown-item-empty":!e||e.length===0})},itemGroupLabel:"p-dropdown-item-group-label",dropdownIcon:"p-dropdown-trigger-icon p-clickable",loadingIcon:"p-dropdown-trigger-icon p-clickable",clearIcon:"p-dropdown-clear-icon p-clickable",filterIcon:"p-dropdown-filter-icon",filterClearIcon:"p-dropdown-filter-clear-icon",filterContainer:function(n){var e=n.clearIcon;return Be("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!e})},filterInput:function(n){var e=n.props,o=n.context;return Be("p-dropdown-filter p-inputtext p-component",{"p-variant-filled":e.variant?e.variant==="filled":o&&o.inputStyle==="filled"})},list:function(n){var e=n.virtualScrollerOptions;return"p-dropdown-items"},panel:function(n){var e=n.context;return Be("p-dropdown-panel p-component",{"p-input-filled":e&&e.inputStyle==="filled"||Mt.inputStyle==="filled","p-ripple-disabled":e&&e.ripple===!1||Mt.ripple===!1})},item:function(n){var e=n.selected,o=n.disabled,a=n.label,u=n.index,c=n.focusedOptionIndex,f=n.highlightOnSelect;return Be("p-dropdown-item",{"p-highlight":e&&f,"p-disabled":o,"p-focus":u===c,"p-dropdown-item-empty":!a||a.length===0})},itemLabel:"p-dropdown-item-label",checkIcon:"p-dropdown-check-icon",blankIcon:"p-dropdown-blank-icon",wrapper:"p-dropdown-items-wrapper",header:"p-dropdown-header",footer:"p-dropdown-footer",transition:"p-connected-overlay"},gb=`
|
|
1054
1054
|
@layer primereact {
|
|
1055
1055
|
.p-dropdown {
|
|
1056
1056
|
display: inline-flex;
|
|
@@ -1138,9 +1138,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1138
1138
|
width: 1%;
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
`,
|
|
1142
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,c=!1,f;return{s:function(){e=e.call(o)},n:function(){var h=e.next();return u=h.done,h},e:function(h){c=!0,f=h},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(c)throw f}}}}function mb(o,n){if(o){if(typeof o=="string")return vg(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return vg(o,n)}}function vg(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}function yg(o,n){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),e.push.apply(e,i)}return e}function wr(o){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?yg(Object(e),!0).forEach(function(i){cs(o,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):yg(Object(e)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(e,i))})}return o}var $h=v.memo(v.forwardRef(function(o,n){var e=Yn(),i=v.useContext(Gt),a=_l.getProps(o,i),u=ly("",a.filterDelay||0),c=qo(u,3),f=c[0],p=c[1],h=c[2],m=v.useState(!1),b=qo(m,2),w=b[0],x=b[1],k=v.useState(-1),C=qo(k,2),O=C[0],L=C[1],N=v.useState(!1),$=qo(N,2),j=$[0],G=$[1],ie=v.useRef(!1),Y=v.useRef(null),D=v.useRef(null),F=v.useRef(null),q=v.useRef(null),K=v.useRef(a.inputRef),se=v.useRef(a.focusInputRef),oe=v.useRef(null),ye=v.useRef(null),Q=v.useRef(null),ve=a.virtualScrollerOptions&&a.virtualScrollerOptions.lazy,ke=V.isNotEmpty(p),z=a.appendTo||i&&i.appendTo||Mt.appendTo,J=_l.setMetaData(wr(wr({props:a},a.__parentMetadata),{},{state:{filter:p,focused:w,overlayVisible:j}})),B=J.ptm,P=J.cx,U=J.sx,ce=J.isUnstyled;Dr(_l.css.styles,ce,{name:"dropdown"});var de=fy({target:Y,overlay:D,listener:function(S,Z){var Re=Z.type,lt=Z.valid;lt&&(Re==="outside"?!$t(S)&&Ge():Ge())},when:j}),Te=qo(de,2),ze=Te[0],Me=Te[1],Ue=function(S){return(S||[]).reduce(function(Z,Re,lt){Z.push(wr(wr({},Re),{},{group:!0,index:lt}));var ut=kt(Re);return ut&&ut.forEach(function($n){return Z.push($n)}),Z},[])},Ye=function(){var S=a.optionGroupLabel?Ue(a.options):a.options;if(ke&&!ve){var Z=p.trim().toLocaleLowerCase(a.filterLocale),Re=a.filterBy?a.filterBy.split(","):[a.optionLabel||"label"];if(a.optionGroupLabel){var lt=[],ut=hb(a.options),$n;try{for(ut.s();!($n=ut.n()).done;){var dr=$n.value,rr=zp.filter(kt(dr),Re,Z,a.filterMatchMode,a.filterLocale);rr&&rr.length&<.push(wr(wr({},dr),cs({},"".concat(a.optionGroupChildren),rr)))}}catch(vi){ut.e(vi)}finally{ut.f()}return Ue(lt)}return zp.filter(S,Re,Z,a.filterMatchMode,a.filterLocale)}return S},st=function(S){var Z=S.relatedTarget===se.current?H.getFirstFocusableElement(D.current,':not([data-p-hidden-focusable="true"])'):se.current;H.focus(Z)},Ht=function(S){var Z=S.relatedTarget===se.current?H.getLastFocusableElement(D.current,':not([data-p-hidden-focusable="true"])'):se.current;H.focus(Z)},$t=function(S){return H.isAttributeEquals(S.target,"data-pc-section","clearicon")||H.isAttributeEquals(S.target.parentElement||S.target,"data-pc-section","filterclearicon")},nt=function(S){a.disabled||a.loading||(a.onClick&&a.onClick(S),!S.defaultPrevented&&($t(S)||S.target.tagName==="INPUT"||((!D.current||!(D.current&&D.current.contains(S.target)))&&(H.focus(se.current),j?Ge():$e()),S.preventDefault(),ie.current=!0)))},rt=function(S){a.showOnFocus&&!j&&$e(),x(!0),a.onFocus&&a.onFocus(S)},fn=function(S){x(!1),a.onBlur&&setTimeout(function(){var Z=K.current?K.current.value:void 0;a.onBlur({originalEvent:S.originalEvent,value:Z,stopPropagation:function(){S.originalEvent.stopPropagation()},preventDefault:function(){S.originalEvent.preventDefault()},target:{name:a.name,id:a.id,value:Z}})},200)},Et=function(S,Z){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;Mn({originalEvent:S,option:Z}),Re&&(Ge(),H.focus(se.current))},It=function(S){q0.emit("overlay-click",{originalEvent:S,target:Y.current})},Jt=function(S){if(a.disabled){S.preventDefault();return}var Z=H.isAndroid()?S.key:S.code;switch(Z){case"ArrowDown":tn(S);break;case"ArrowUp":Fe(S);break;case"ArrowLeft":case"ArrowRight":ae(S,a.editable);break;case"Home":he(S);break;case"End":Ke(S);break;case"PageDown":M(S);break;case"PageUp":Oe(S);break;case"Space":me(S,a.editable);break;case"NumpadEnter":case"Enter":De(S);break;case"Escape":Le(S);break;case"Tab":He(S);break;case"Backspace":Ze(S,a.editable);break;case"ShiftLeft":case"ShiftRight":break;default:var Re=S.metaKey||S.ctrlKey||S.altKey;!Re&&V.isPrintableCharacter(S.key)&&(!j&&!a.editable&&$e(),!a.editable&&Tn(S,S.key));break}ie.current=!1},en=function(S){switch(S.code){case"ArrowDown":tn(S);break;case"ArrowUp":Fe(S);break;case"ArrowLeft":case"ArrowRight":ae(S,!0);break;case"Escape":case"Enter":case"NumpadEnter":De(S),S.preventDefault();break}},jt=function(){return H.getFocusableElements(D.current,':not([data-p-hidden-focusable="true"])').length>0},ht=function(S){var Z;return ft(S)&&((Z=Se(S))===null||Z===void 0?void 0:Z.toLocaleLowerCase(a.filterLocale).startsWith(Q.current.toLocaleLowerCase(a.filterLocale)))},ft=function(S){return V.isNotEmpty(S)&&!(Xe(S)||qe(S))},Pn=function(){return V.isNotEmpty(a.value)},Nt=function(S){return ft(S)&&te(S)},dn=function(){return Pn?vt.findIndex(function(S){return Nt(S)}):-1},Rt=function(){var S=dn();return S<0?Qt():S},Tn=function(S,Z){Q.current=(Q.current||"")+Z;var Re=-1,lt=!1;return V.isNotEmpty(Q.current)&&(O!==-1?(Re=vt.slice(O).findIndex(function(ut){return ht(ut)}),Re=Re===-1?vt.slice(0,O).findIndex(function(ut){return ht(ut)}):Re+O):Re=vt.findIndex(function(ut){return ht(ut)}),Re!==-1&&(lt=!0),Re===-1&&O===-1&&(Re=Rt()),Re!==-1&&Ct(S,Re)),ye.current&&clearTimeout(ye.current),ye.current=setTimeout(function(){Q.current="",ye.current=null},500),lt},Yt=function(){var S=dn();return S<0?bt():S},Qt=function(){return vt.findIndex(function(S){return ft(S)})},bt=function(){return V.findLastIndex(vt,function(S){return ft(S)})},Lt=function(S){var Z=S<vt.length-1?vt.slice(S+1).findIndex(function(Re){return ft(Re)}):-1;return Z>-1?Z+S+1:S},In=function(S){var Z=S>0?V.findLastIndex(vt.slice(0,S),function(Re){return ft(Re)}):-1;return Z>-1?Z:S},Ct=function(S,Z){O!==Z&&(L(Z),Nn(Z),a.selectOnFocus&&Et(S,vt[Z],!1))},Nn=function(S){var Z=H.findSingle(D.current,'li[id="dropdownItem_'.concat(S,'"]'));Z&&Z.focus()},tn=function(S){if(!j)$e(),a.editable&&Ct(S,dn());else{var Z=O!==-1?Lt(O):ie.current?Qt():Rt();Ct(S,Z)}S.preventDefault()},Fe=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(S.altKey&&!Z)O!==-1&&Et(S,vt[O]),state.overlayVisible&&Ge(),S.preventDefault();else{var Re=O!==-1?In(O):ie.current?bt():Yt();Ct(S,Re),!j&&$e(),S.preventDefault()}},ae=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Z&&L(-1)},he=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Z?(S.currentTarget.setSelectionRange(0,0),L(-1)):(Ct(S,Qt()),!j&&$e()),S.preventDefault()},Ke=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Z){var Re=S.currentTarget,lt=Re.value.length;Re.setSelectionRange(lt,lt),L(-1)}else Ct(S,bt()),!j&&$e();S.preventDefault()},Oe=function(S){S.preventDefault()},M=function(S){S.preventDefault()},me=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!Z&&De(S)},De=function(S){j?O!==-1&&Et(S,vt[O]):(L(-1),tn(S)),S.preventDefault()},Le=function(S){j&&Ge(),S.preventDefault()},He=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Z||(j&&!jt()?(H.focus(F.current),S.preventDefault()):(O!==-1&&Et(S,vt[O]),j&&Ge()))},Ze=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;S&&Z&&!j&&$e()},Je=function(S,Z){if(!Z||!(S!=null&&S.length))return-1;var Re=Z.toLocaleLowerCase(),lt=S.findIndex(function(ut){return Se(ut).toLocaleLowerCase()===Re});return lt!==-1?lt:S.findIndex(function(ut){return Se(ut).toLocaleLowerCase().startsWith(Re)})},pn=function(S){!j&&$e();var Z=null;S.target.value&&vt&&(Z=Je(vt,S.target.value)),L(Z),a.onChange&&a.onChange({originalEvent:S.originalEvent,value:S.target.value,stopPropagation:function(){S.originalEvent.stopPropagation()},preventDefault:function(){S.originalEvent.preventDefault()},target:{name:a.name,id:a.id,value:S.target.value}})},nn=function(S){x(!0),Ge(),a.onFocus&&a.onFocus(S)},Vt=function(S){var Z=S.option;Z.disabled||(Mn(S),H.focus(se.current)),Ge()},At=function(S){var Z=S.target.value;h(Z),a.onFilter&&a.onFilter({originalEvent:S,filter:Z})},gn=function(S){rn(S)},rn=function(S){h(""),a.onFilter&&a.onFilter({filter:""}),S&&S()},hn=function(S){a.onChange&&a.onChange({originalEvent:S,value:void 0,stopPropagation:function(){S==null||S.stopPropagation()},preventDefault:function(){S==null||S.preventDefault()},target:{name:a.name,id:a.id,value:void 0}}),a.filter&&rn(),be(),L(-1)},Mn=function(S){if(Dt!==S.option){be(S.option),L(-1);var Z=ge(S.option),Re=Ne(S.option,vt);a.onChange&&a.onChange({originalEvent:S.originalEvent,value:Z,stopPropagation:function(){S.originalEvent.stopPropagation()},preventDefault:function(){S.originalEvent.preventDefault()},target:{name:a.name,id:a.id,value:Z}}),Ct(S.originalEvent,Re)}},Rn=function(S){if(S=S||vt,S)if(a.optionGroupLabel)for(var Z=0;Z<S.length;Z++){var Re=Ne(a.value,kt(S[Z]));if(Re!==-1)return{group:Z,option:Re}}else return Ne(a.value,S);return-1},tr=function(){return a.optionValue?null:a.dataKey},Ne=function(S,Z){var Re=tr();return Z.findIndex(function(lt){return V.equals(S,ge(lt),Re)})},te=function(S){return V.equals(a.value,ge(S),tr())},$e=function(){L(O!==-1?O:a.autoOptionFocus?Rt():a.editable?-1:dn()),G(!0)},Ge=function(){G(!1),ie.current=!1},pt=function(){a.editable&&!j&&ie.current===!1&&H.focus(K.current)},bn=function(S){Sr.set("overlay",D.current,i&&i.autoZIndex||Mt.autoZIndex,i&&i.zIndex.overlay||Mt.zIndex.overlay),H.addStyles(D.current,{position:"absolute",top:"0",left:"0"}),fe(),S&&S()},wn=function(S){S&&S(),ze(),a.onShow&&a.onShow()},Ee=function(){Me()},W=function(){a.filter&&a.resetFilterOnHide&&rn(),Sr.clear(D.current),a.onHide&&a.onHide()},fe=function(){H.alignOverlay(D.current,K.current.parentElement,a.appendTo||i&&i.appendTo||Mt.appendTo)},pe=function(){var S=H.findSingle(D.current,'li[data-p-focused="true"]');if(S&&S.scrollIntoView)S.scrollIntoView({block:"nearest",inline:"nearest"});else{var Z=H.findSingle(D.current,'li[data-p-highlight="true"]');Z&&Z.scrollIntoView&&Z.scrollIntoView({block:"nearest",inline:"nearest"})}},be=function(S){K.current&&(K.current.value=S?Se(S):a.value||"",se.current&&(se.current.value=K.current.value))},Se=function(S){if(V.isScalar(S))return"".concat(S);var Z=a.optionLabel?V.resolveFieldData(S,a.optionLabel):S.label;return"".concat(Z)},ge=function(S){if(a.useOptionAsValue)return S;var Z=a.optionValue?V.resolveFieldData(S,a.optionValue):S?S.value:V.resolveFieldData(S,"value");return a.optionValue||V.isNotEmpty(Z)?Z:S},_e=function(S){return a.dataKey?V.resolveFieldData(S,a.dataKey):Se(S)},qe=function(S){return a.optionGroupLabel&&S.group},Xe=function(S){return a.optionDisabled?V.isFunction(a.optionDisabled)?a.optionDisabled(S):V.resolveFieldData(S,a.optionDisabled):S&&S.disabled!==void 0?S.disabled:!1},mt=function(S){return V.resolveFieldData(S,a.optionGroupLabel)},Xt=function(S){return V.resolveFieldData(S,a.optionGroupLabel)},kt=function(S){return V.resolveFieldData(S,a.optionGroupChildren)},on=function(){if(a.editable&&K.current){var S=Dt?Se(Dt):null,Z=S||a.value||"";K.current.value=Z,se.current&&(se.current.value=Z)}},Bt=function(){var S=Rn(a.options);return S!==-1?a.optionGroupLabel?kt(a.options[S.group])[S.option]:a.options[S]:null};v.useImperativeHandle(n,function(){return{props:a,show:$e,hide:Ge,clear:hn,focus:function(){return H.focus(se.current)},getElement:function(){return Y.current},getOverlay:function(){return D.current},getInput:function(){return K.current},getFocusInput:function(){return se.current},getVirtualScroller:function(){return oe.current}}}),v.useEffect(function(){V.combinedRefs(K,a.inputRef),V.combinedRefs(se,a.focusInputRef)},[K,a.inputRef,se,a.focusInputRef]),Ar(function(){a.autoFocus&&H.focus(se.current,a.autoFocus),fe()}),Kt(function(){j&&(a.value||O>=0)&&pe()},[j,a.value,O]),Kt(function(){j&&p&&a.filter&&fe()},[j,p,a.filter]),Kt(function(){oe.current&&oe.current.scrollInView(0)},[p]),Kt(function(){p&&(!a.options||a.options.length===0)&&h(""),on(),K.current&&(K.current.selectedIndex=1)}),jr(function(){Sr.clear(D.current)});var hi=function(){var S={value:"",label:a.placeholder};if(Dt){var Z=ge(Dt);S={value:mo(Z)==="object"?a.options.findIndex(function($n){return $n===Z}):Z,label:Se(Dt)}}var Re=e({className:"p-hidden-accessible p-dropdown-hidden-select"},B("hiddenSelectedMessage")),lt=e({ref:K,required:a.required,defaultValue:S.value,name:a.name,tabIndex:-1},B("select")),ut=e({value:S.value},B("option"));return v.createElement("div",Re,v.createElement("select",lt,v.createElement("option",ut,S.label)))},mn=function(){var S=V.isNotEmpty(Dt)?Se(Dt):null;a.editable&&(S=S||a.value||"");var Z=e({className:"p-hidden-accessible"},B("hiddenSelectedMessage")),Re=e(wr({ref:se,id:a.inputId,defaultValue:S,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:rt,onBlur:fn,onKeyDown:Jt,disabled:a.disabled,tabIndex:a.disabled?-1:a.tabIndex||0},nr),B("input"));return v.createElement("div",Z,v.createElement("input",Re))},xr=function(){var S=V.isNotEmpty(Dt)?Se(Dt):null;if(a.editable){var Z=S||a.value||"",Re=e(wr({ref:K,type:"text",defaultValue:Z,className:P("input",{label:S}),disabled:a.disabled,placeholder:a.placeholder,maxLength:a.maxLength,onInput:pn,onFocus:nn,onKeyDown:Jt,onBlur:fn,tabIndex:a.disabled?-1:a.tabIndex||0,"aria-haspopup":"listbox"},nr),B("input"));return v.createElement("input",Re)}var lt=a.valueTemplate?V.getJSXElement(a.valueTemplate,Dt,a):S||a.placeholder||a.emptyMessage||v.createElement(v.Fragment,null," "),ut=e({ref:K,className:P("input",{label:S}),tabIndex:"-1"},B("input"));return v.createElement("span",ut,lt)},zi=function(S){(S.key==="Enter"||S.code==="Space")&&(hn(S),S.preventDefault())},mi=function(){if(a.value!=null&&a.showClear&&!a.disabled&&!V.isEmpty(a.options)){var S=e({className:P("clearIcon"),onPointerUp:hn,tabIndex:a.editable?-1:a.tabIndex||"0",onKeyDown:zi,"aria-label":nc("clear")},B("clearIcon")),Z=a.clearIcon||v.createElement(us,S);return $r.getJSXIcon(Z,wr({},S),{props:a})}return null},Er=function(){var S=e({className:P("loadingIcon"),"data-pr-overlay-visible":j},B("loadingIcon")),Z=a.loadingIcon||v.createElement(rs,{spin:!0}),Re=$r.getJSXIcon(Z,wr({},S),{props:a}),lt=a.placeholder||a.ariaLabel,ut=e({className:P("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":j,"aria-label":lt},B("trigger"));return v.createElement("div",ut,Re)},Cr=function(){var S=e({className:P("dropdownIcon"),"data-pr-overlay-visible":j},B("dropdownIcon")),Z=j?a.collapseIcon||v.createElement(Oh,S):a.dropdownIcon||v.createElement(kh,S),Re=$r.getJSXIcon(Z,wr({},S),{props:a}),lt=a.placeholder||a.ariaLabel,ut=e({className:P("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":j,"aria-label":lt},B("trigger"));return v.createElement("div",ut,Re)},vt=Ye(),Dt=Bt(),zt=V.isNotEmpty(a.tooltip),Sn=_l.getOtherProps(a),nr=V.reduceKeys(Sn,H.ARIA_PROPS),zr=hi(),Ln=mn(),_n=xr(),Fr=a.loading?Er():Cr(),vo=mi(),at=e({id:a.id,ref:Y,className:Be(a.className,P("root",{context:i,focusedState:w,overlayVisibleState:j})),style:a.style,onClick:function(S){return nt(S)},onMouseDown:a.onMouseDown,onContextMenu:a.onContextMenu,onFocus:pt,"data-p-disabled":a.disabled,"data-p-focus":w,"aria-activedescendant":w?"dropdownItem_".concat(O):void 0},Sn,B("root")),Sa=e({ref:F,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:st,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},B("hiddenFirstFocusableEl")),xa=e({ref:q,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:Ht,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},B("hiddenLastFocusableEl"));return v.createElement(v.Fragment,null,v.createElement("div",at,Ln,zr,_n,vo,Fr,v.createElement(_h,Lr({hostName:"Dropdown",ref:D,visibleOptions:vt,virtualScrollerRef:oe},a,{appendTo:z,cx:P,filterValue:f,focusedOptionIndex:O,getOptionGroupChildren:kt,getOptionGroupLabel:Xt,getOptionGroupRenderKey:mt,getOptionLabel:Se,getOptionRenderKey:_e,getSelectedOptionIndex:Rn,hasFilter:ke,in:j,isOptionDisabled:Xe,isSelected:te,onClick:It,onEnter:bn,onEntered:wn,onExit:Ee,onExited:W,onFilterClearIconClick:gn,onFilterInputChange:At,onFilterInputKeyDown:en,onOptionClick:Vt,onInputKeyDown:Jt,ptm:B,resetFilter:rn,changeFocusedOptionIndex:Ct,firstFocusableElement:v.createElement("span",Sa),lastFocusableElement:v.createElement("span",xa),sx:U}))),zt&&v.createElement(os,Lr({target:Y,content:a.tooltip,pt:B("tooltip")},a.tooltipOptions)))}));$h.displayName="Dropdown";function _c(o,n){(n==null||n>o.length)&&(n=o.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=o[e];return i}function vb(o){if(Array.isArray(o))return _c(o)}function yb(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function bb(o,n){if(o){if(typeof o=="string")return _c(o,n);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _c(o,n)}}function wb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1143
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
1141
|
+
`,hb={wrapper:function(n){var e=n.props;return{maxHeight:e.scrollHeight||"auto"}},panel:function(n){var e=n.props;return db({},e.panelStyle)}},Ll=tt.extend({defaultProps:{__TYPE:"Dropdown",__parentMetadata:null,appendTo:null,ariaLabel:null,ariaLabelledBy:null,autoFocus:!1,autoOptionFocus:!1,checkmark:!1,children:void 0,className:null,clearIcon:null,collapseIcon:null,dataKey:null,disabled:!1,dropdownIcon:null,editable:!1,emptyFilterMessage:null,emptyMessage:null,filter:!1,filterBy:null,filterClearIcon:null,filterDelay:300,filterIcon:null,filterInputAutoFocus:!1,filterLocale:void 0,filterMatchMode:"contains",filterPlaceholder:null,filterTemplate:null,focusInputRef:null,focusOnHover:!0,highlightOnSelect:!0,id:null,inputId:null,inputRef:null,invalid:!1,itemTemplate:null,loading:!1,loadingIcon:null,maxLength:null,name:null,onBlur:null,onChange:null,onContextMenu:null,onFilter:null,onFocus:null,onHide:null,onMouseDown:null,onShow:null,optionDisabled:null,optionGroupChildren:"items",optionGroupLabel:null,optionGroupTemplate:null,optionLabel:null,options:null,optionValue:null,panelClassName:null,panelFooterTemplate:null,panelStyle:null,placeholder:null,required:!1,resetFilterOnHide:!1,scrollHeight:"200px",selectOnFocus:!1,showClear:!1,showFilterClear:!1,showOnFocus:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,useOptionAsValue:!1,value:null,valueTemplate:null,variant:null,virtualScrollerOptions:null},css:{classes:pb,styles:gb,inlineStyles:hb}}),_h=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",_r({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("rect",{width:"1",height:"1",fill:"currentColor",fillOpacity:"0"}))}));_h.displayName="BlankIcon";var Lh=v.memo(function(i){var n=Yn(),e=i.ptm,o=i.cx,a=i.selected,u=i.disabled,c=i.option,f=i.label,p=i.index,h=i.focusedOptionIndex,m=i.ariaSetSize,b=i.checkmark,w=i.highlightOnSelect,x=i.onInputKeyDown,k=function(Y){return e(Y,{context:{selected:a,disabled:u,focused:p===h}})},C=function(Y,ie){i.onClick&&i.onClick({originalEvent:Y,option:c})},O=i.template?V.getJSXElement(i.template,i.option):i.label,_=n({id:"dropdownItem_".concat(p),role:"option",className:Be(c.className,o("item",{selected:a,disabled:u,label:f,index:p,focusedOptionIndex:h,highlightOnSelect:w})),style:i.style,tabIndex:0,onClick:function(Y){return C(Y)},onKeyDown:function(Y){return x(Y)},onMouseMove:function(Y){return i==null?void 0:i.onMouseMove(Y,p)},"aria-setsize":m,"aria-posinset":p+1,"aria-label":f,"aria-selected":a,"data-p-highlight":a,"data-p-focused":h===p,"data-p-disabled":u},k("item")),N=n({className:o("itemLabel")},k("itemLabel")),j=function(){if(a){var Y=n({className:o("checkIcon")},k("checkIcon"));return v.createElement(Rh,Y)}var ie=n({className:o("blankIcon")},k("blankIcon"));return v.createElement(_h,ie)};return v.createElement("li",_r({key:i.label},_),b&&j(),v.createElement("span",N,O),v.createElement(ho,null))});Lh.displayName="DropdownItem";function vg(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function br(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?vg(Object(e),!0).forEach(function(o){cs(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):vg(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var jh=v.memo(v.forwardRef(function(i,n){var e=Yn(),o=i.ptm,a=i.cx,u=i.sx,c=v.useContext(Gt),f=v.useRef(null),p=!(i.visibleOptions&&i.visibleOptions.length)&&i.hasFilter,h=i.visibleOptions?i.visibleOptions.length:0,m={filter:function(q){return k(q)},reset:function(){return i.resetFilter()}},b=function(q,K){return o(q,br({hostName:i.hostName},K))},w=function(){i.onEnter(function(){if(i.virtualScrollerRef.current){var q=i.getSelectedOptionIndex();q!==-1&&setTimeout(function(){return i.virtualScrollerRef.current.scrollToIndex(q)},0)}})},x=function(){i.onEntered(function(){i.filter&&i.filterInputAutoFocus&&H.focus(f.current,!1)})},k=function(q){i.onFilterInputChange&&i.onFilterInputChange(q)},C=function(){if(i.panelFooterTemplate){var q=V.getJSXElement(i.panelFooterTemplate,i,i.onOverlayHide),K=e({className:a("footer")},b("footer"));return v.createElement("div",K,q)}return null},O=function(q,K){if(i.focusOnHover){var se;i==null||(se=i.changeFocusedOptionIndex)===null||se===void 0||se.call(i,q,K)}},_=function(q,K){var se=V.getJSXElement(q,i)||nc(K?"emptyFilterMessage":"emptyMessage"),oe=e({className:a("emptyMessage")},b("emptyMessage"));return v.createElement("li",oe,se)},N=function(q,K){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe={height:se.props?se.props.itemSize:void 0};if(oe=br(br({},oe),q.style),q.group&&i.optionGroupLabel){var ye=i.optionGroupLabel,X=i.optionGroupTemplate?V.getJSXElement(i.optionGroupTemplate,q,K):i.getOptionGroupLabel(q),ve=K+"_"+i.getOptionGroupRenderKey(q),ke=e({className:a("itemGroup",{optionGroupLabel:ye}),style:oe,"data-p-highlight":i.selected},b("itemGroup")),z=e({className:a("itemGroupLabel")},b("itemGroupLabel"));return v.createElement("li",_r({key:ve},ke),v.createElement("span",z,X))}var J=i.getOptionRenderKey(q)+"_"+K,B=i.getOptionLabel(q),P=i.isOptionDisabled(q);return v.createElement(Lh,{key:J,label:B,index:K,focusedOptionIndex:i.focusedOptionIndex,option:q,ariaSetSize:h,onInputKeyDown:i.onInputKeyDown,style:oe,template:i.itemTemplate,selected:i.isSelected(q),highlightOnSelect:i.highlightOnSelect,disabled:P,onClick:i.onOptionClick,onMouseMove:O,ptm:o,cx:a,checkmark:i.checkmark})},j=function(){return V.isNotEmpty(i.visibleOptions)?i.visibleOptions.map(N):i.hasFilter?_(i.emptyFilterMessage,!0):_(i.emptyMessage)},$=function(){if(i.showFilterClear&&i.filterValue){var q=nc("clear"),K=e({className:a("filterClearIcon"),"aria-label":q,onClick:function(){return i.onFilterClearIconClick(function(){return H.focus(f.current)})}},b("filterClearIcon")),se=i.filterClearIcon||v.createElement(us,K),oe=jr.getJSXIcon(se,br({},K),{props:i});return oe}return null},Y=function(){if(i.filter){var q=$(),K=e({className:a("filterIcon")},b("filterIcon")),se=i.filterIcon||v.createElement(Th,K),oe=jr.getJSXIcon(se,br({},K),{props:i}),ye=e({className:a("filterContainer",{clearIcon:q})},b("filterContainer")),X=e({ref:f,type:"text",autoComplete:"off",className:a("filterInput",{context:c}),placeholder:i.filterPlaceholder,onKeyDown:i.onFilterInputKeyDown,onChange:function(B){return k(B)},value:i.filterValue},b("filterInput")),ve=v.createElement("div",ye,v.createElement("input",X),q,oe);if(i.filterTemplate){var ke={className:Be("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!q}),element:ve,filterOptions:m,filterInputKeyDown:i.onFilterInputKeyDown,filterInputChange:k,filterIconClassName:"p-dropdown-filter-icon",clearIcon:q,props:i};ve=V.getJSXElement(i.filterTemplate,ke)}var z=e({className:a("header")},b("header"));return v.createElement("div",z,ve)}return null},ie=function(){if(i.virtualScrollerOptions){var q=br(br({},i.virtualScrollerOptions),{style:br(br({},i.virtualScrollerOptions.style),{height:i.scrollHeight}),className:Be("p-dropdown-items-wrapper",i.virtualScrollerOptions.className),items:i.visibleOptions,autoSize:!0,onLazyLoad:function(X){return i.virtualScrollerOptions.onLazyLoad(br(br({},X),{filter:i.filterValue}))},itemTemplate:function(X,ve){return X&&N(X,ve.index,ve)},contentTemplate:function(X){var ve=i.hasFilter?i.emptyFilterMessage:i.emptyMessage,ke=p?_(ve):X.children,z=e({ref:X.contentRef,style:X.style,className:Be(X.className,a("list",{virtualScrollerProps:i.virtualScrollerOptions})),role:"listbox","aria-label":rc("listLabel")},b("list"));return v.createElement("ul",z,ke)}});return v.createElement(Nh,_r({ref:i.virtualScrollerRef},q,{pt:o("virtualScroller")}))}var K=j(),se=e({className:a("wrapper"),style:u("wrapper")},b("wrapper")),oe=e({className:a("list"),role:"listbox","aria-label":rc("listLabel")},b("list"));return v.createElement("div",se,v.createElement("ul",oe,K))},Q=function(){var q=Y(),K=ie(),se=C(),oe=e({className:Be(i.panelClassName,a("panel",{context:c})),style:u("panel"),onClick:i.onClick},b("panel")),ye=e({classNames:a("transition"),in:i.in,timeout:{enter:120,exit:100},options:i.transitionOptions,unmountOnExit:!0,onEnter:w,onEntered:x,onExit:i.onExit,onExited:i.onExited},b("transition"));return v.createElement(ss,_r({nodeRef:n},ye),v.createElement("div",_r({ref:n},oe),i.firstFocusableElement,q,K,se,i.lastFocusableElement))},D=Q();return v.createElement(is,{element:D,appendTo:i.appendTo})}));jh.displayName="DropdownPanel";function mb(i,n){var e=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!e){if(Array.isArray(i)||(e=vb(i))||n){e&&(i=e);var o=0,a=function(){};return{s:a,n:function(){return o>=i.length?{done:!0}:{done:!1,value:i[o++]}},e:function(h){throw h},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1142
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,c=!1,f;return{s:function(){e=e.call(i)},n:function(){var h=e.next();return u=h.done,h},e:function(h){c=!0,f=h},f:function(){try{!u&&e.return!=null&&e.return()}finally{if(c)throw f}}}}function vb(i,n){if(i){if(typeof i=="string")return yg(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return yg(i,n)}}function yg(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function bg(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function wr(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?bg(Object(e),!0).forEach(function(o){cs(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):bg(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var $h=v.memo(v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=Ll.getProps(i,o),u=sy("",a.filterDelay||0),c=qo(u,3),f=c[0],p=c[1],h=c[2],m=v.useState(!1),b=qo(m,2),w=b[0],x=b[1],k=v.useState(-1),C=qo(k,2),O=C[0],_=C[1],N=v.useState(!1),j=qo(N,2),$=j[0],Y=j[1],ie=v.useRef(!1),Q=v.useRef(null),D=v.useRef(null),F=v.useRef(null),q=v.useRef(null),K=v.useRef(a.inputRef),se=v.useRef(a.focusInputRef),oe=v.useRef(null),ye=v.useRef(null),X=v.useRef(null),ve=a.virtualScrollerOptions&&a.virtualScrollerOptions.lazy,ke=V.isNotEmpty(p),z=a.appendTo||o&&o.appendTo||Mt.appendTo,J=Ll.setMetaData(wr(wr({props:a},a.__parentMetadata),{},{state:{filter:p,focused:w,overlayVisible:$}})),B=J.ptm,P=J.cx,U=J.sx,ce=J.isUnstyled;Dr(Ll.css.styles,ce,{name:"dropdown"});var de=dy({target:Q,overlay:D,listener:function(S,Z){var Re=Z.type,lt=Z.valid;lt&&(Re==="outside"?!jt(S)&&Ge():Ge())},when:$}),Te=qo(de,2),ze=Te[0],Me=Te[1],Ue=function(S){return(S||[]).reduce(function(Z,Re,lt){Z.push(wr(wr({},Re),{},{group:!0,index:lt}));var ut=kt(Re);return ut&&ut.forEach(function(jn){return Z.push(jn)}),Z},[])},Ye=function(){var S=a.optionGroupLabel?Ue(a.options):a.options;if(ke&&!ve){var Z=p.trim().toLocaleLowerCase(a.filterLocale),Re=a.filterBy?a.filterBy.split(","):[a.optionLabel||"label"];if(a.optionGroupLabel){var lt=[],ut=mb(a.options),jn;try{for(ut.s();!(jn=ut.n()).done;){var dr=jn.value,rr=zp.filter(kt(dr),Re,Z,a.filterMatchMode,a.filterLocale);rr&&rr.length&<.push(wr(wr({},dr),cs({},"".concat(a.optionGroupChildren),rr)))}}catch(yi){ut.e(yi)}finally{ut.f()}return Ue(lt)}return zp.filter(S,Re,Z,a.filterMatchMode,a.filterLocale)}return S},st=function(S){var Z=S.relatedTarget===se.current?H.getFirstFocusableElement(D.current,':not([data-p-hidden-focusable="true"])'):se.current;H.focus(Z)},Ht=function(S){var Z=S.relatedTarget===se.current?H.getLastFocusableElement(D.current,':not([data-p-hidden-focusable="true"])'):se.current;H.focus(Z)},jt=function(S){return H.isAttributeEquals(S.target,"data-pc-section","clearicon")||H.isAttributeEquals(S.target.parentElement||S.target,"data-pc-section","filterclearicon")},nt=function(S){a.disabled||a.loading||(a.onClick&&a.onClick(S),!S.defaultPrevented&&(jt(S)||S.target.tagName==="INPUT"||((!D.current||!(D.current&&D.current.contains(S.target)))&&(H.focus(se.current),$?Ge():je()),S.preventDefault(),ie.current=!0)))},rt=function(S){a.showOnFocus&&!$&&je(),x(!0),a.onFocus&&a.onFocus(S)},fn=function(S){x(!1),a.onBlur&&setTimeout(function(){var Z=K.current?K.current.value:void 0;a.onBlur({originalEvent:S.originalEvent,value:Z,stopPropagation:function(){S.originalEvent.stopPropagation()},preventDefault:function(){S.originalEvent.preventDefault()},target:{name:a.name,id:a.id,value:Z}})},200)},Et=function(S,Z){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;Mn({originalEvent:S,option:Z}),Re&&(Ge(),H.focus(se.current))},It=function(S){Z0.emit("overlay-click",{originalEvent:S,target:Q.current})},Jt=function(S){if(a.disabled){S.preventDefault();return}var Z=H.isAndroid()?S.key:S.code;switch(Z){case"ArrowDown":tn(S);break;case"ArrowUp":Fe(S);break;case"ArrowLeft":case"ArrowRight":ae(S,a.editable);break;case"Home":he(S);break;case"End":Ke(S);break;case"PageDown":M(S);break;case"PageUp":Oe(S);break;case"Space":me(S,a.editable);break;case"NumpadEnter":case"Enter":De(S);break;case"Escape":_e(S);break;case"Tab":He(S);break;case"Backspace":Ze(S,a.editable);break;case"ShiftLeft":case"ShiftRight":break;default:var Re=S.metaKey||S.ctrlKey||S.altKey;!Re&&V.isPrintableCharacter(S.key)&&(!$&&!a.editable&&je(),!a.editable&&Tn(S,S.key));break}ie.current=!1},en=function(S){switch(S.code){case"ArrowDown":tn(S);break;case"ArrowUp":Fe(S);break;case"ArrowLeft":case"ArrowRight":ae(S,!0);break;case"Escape":case"Enter":case"NumpadEnter":De(S),S.preventDefault();break}},$t=function(){return H.getFocusableElements(D.current,':not([data-p-hidden-focusable="true"])').length>0},ht=function(S){var Z;return ft(S)&&((Z=Se(S))===null||Z===void 0?void 0:Z.toLocaleLowerCase(a.filterLocale).startsWith(X.current.toLocaleLowerCase(a.filterLocale)))},ft=function(S){return V.isNotEmpty(S)&&!(Xe(S)||qe(S))},Pn=function(){return V.isNotEmpty(a.value)},Nt=function(S){return ft(S)&&te(S)},dn=function(){return Pn?vt.findIndex(function(S){return Nt(S)}):-1},Rt=function(){var S=dn();return S<0?Qt():S},Tn=function(S,Z){X.current=(X.current||"")+Z;var Re=-1,lt=!1;return V.isNotEmpty(X.current)&&(O!==-1?(Re=vt.slice(O).findIndex(function(ut){return ht(ut)}),Re=Re===-1?vt.slice(0,O).findIndex(function(ut){return ht(ut)}):Re+O):Re=vt.findIndex(function(ut){return ht(ut)}),Re!==-1&&(lt=!0),Re===-1&&O===-1&&(Re=Rt()),Re!==-1&&Ct(S,Re)),ye.current&&clearTimeout(ye.current),ye.current=setTimeout(function(){X.current="",ye.current=null},500),lt},Yt=function(){var S=dn();return S<0?bt():S},Qt=function(){return vt.findIndex(function(S){return ft(S)})},bt=function(){return V.findLastIndex(vt,function(S){return ft(S)})},_t=function(S){var Z=S<vt.length-1?vt.slice(S+1).findIndex(function(Re){return ft(Re)}):-1;return Z>-1?Z+S+1:S},In=function(S){var Z=S>0?V.findLastIndex(vt.slice(0,S),function(Re){return ft(Re)}):-1;return Z>-1?Z:S},Ct=function(S,Z){O!==Z&&(_(Z),Nn(Z),a.selectOnFocus&&Et(S,vt[Z],!1))},Nn=function(S){var Z=H.findSingle(D.current,'li[id="dropdownItem_'.concat(S,'"]'));Z&&Z.focus()},tn=function(S){if(!$)je(),a.editable&&Ct(S,dn());else{var Z=O!==-1?_t(O):ie.current?Qt():Rt();Ct(S,Z)}S.preventDefault()},Fe=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(S.altKey&&!Z)O!==-1&&Et(S,vt[O]),state.overlayVisible&&Ge(),S.preventDefault();else{var Re=O!==-1?In(O):ie.current?bt():Yt();Ct(S,Re),!$&&je(),S.preventDefault()}},ae=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Z&&_(-1)},he=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Z?(S.currentTarget.setSelectionRange(0,0),_(-1)):(Ct(S,Qt()),!$&&je()),S.preventDefault()},Ke=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Z){var Re=S.currentTarget,lt=Re.value.length;Re.setSelectionRange(lt,lt),_(-1)}else Ct(S,bt()),!$&&je();S.preventDefault()},Oe=function(S){S.preventDefault()},M=function(S){S.preventDefault()},me=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!Z&&De(S)},De=function(S){$?O!==-1&&Et(S,vt[O]):(_(-1),tn(S)),S.preventDefault()},_e=function(S){$&&Ge(),S.preventDefault()},He=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Z||($&&!$t()?(H.focus(F.current),S.preventDefault()):(O!==-1&&Et(S,vt[O]),$&&Ge()))},Ze=function(S){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;S&&Z&&!$&&je()},Je=function(S,Z){if(!Z||!(S!=null&&S.length))return-1;var Re=Z.toLocaleLowerCase(),lt=S.findIndex(function(ut){return Se(ut).toLocaleLowerCase()===Re});return lt!==-1?lt:S.findIndex(function(ut){return Se(ut).toLocaleLowerCase().startsWith(Re)})},pn=function(S){!$&&je();var Z=null;S.target.value&&vt&&(Z=Je(vt,S.target.value)),_(Z),a.onChange&&a.onChange({originalEvent:S.originalEvent,value:S.target.value,stopPropagation:function(){S.originalEvent.stopPropagation()},preventDefault:function(){S.originalEvent.preventDefault()},target:{name:a.name,id:a.id,value:S.target.value}})},nn=function(S){x(!0),Ge(),a.onFocus&&a.onFocus(S)},Vt=function(S){var Z=S.option;Z.disabled||(Mn(S),H.focus(se.current)),Ge()},At=function(S){var Z=S.target.value;h(Z),a.onFilter&&a.onFilter({originalEvent:S,filter:Z})},gn=function(S){rn(S)},rn=function(S){h(""),a.onFilter&&a.onFilter({filter:""}),S&&S()},hn=function(S){a.onChange&&a.onChange({originalEvent:S,value:void 0,stopPropagation:function(){S==null||S.stopPropagation()},preventDefault:function(){S==null||S.preventDefault()},target:{name:a.name,id:a.id,value:void 0}}),a.filter&&rn(),be(),_(-1)},Mn=function(S){if(Dt!==S.option){be(S.option),_(-1);var Z=ge(S.option),Re=Ne(S.option,vt);a.onChange&&a.onChange({originalEvent:S.originalEvent,value:Z,stopPropagation:function(){S.originalEvent.stopPropagation()},preventDefault:function(){S.originalEvent.preventDefault()},target:{name:a.name,id:a.id,value:Z}}),Ct(S.originalEvent,Re)}},Rn=function(S){if(S=S||vt,S)if(a.optionGroupLabel)for(var Z=0;Z<S.length;Z++){var Re=Ne(a.value,kt(S[Z]));if(Re!==-1)return{group:Z,option:Re}}else return Ne(a.value,S);return-1},tr=function(){return a.optionValue?null:a.dataKey},Ne=function(S,Z){var Re=tr();return Z.findIndex(function(lt){return V.equals(S,ge(lt),Re)})},te=function(S){return V.equals(a.value,ge(S),tr())},je=function(){_(O!==-1?O:a.autoOptionFocus?Rt():a.editable?-1:dn()),Y(!0)},Ge=function(){Y(!1),ie.current=!1},pt=function(){a.editable&&!$&&ie.current===!1&&H.focus(K.current)},bn=function(S){Sr.set("overlay",D.current,o&&o.autoZIndex||Mt.autoZIndex,o&&o.zIndex.overlay||Mt.zIndex.overlay),H.addStyles(D.current,{position:"absolute",top:"0",left:"0"}),fe(),S&&S()},wn=function(S){S&&S(),ze(),a.onShow&&a.onShow()},Ee=function(){Me()},W=function(){a.filter&&a.resetFilterOnHide&&rn(),Sr.clear(D.current),a.onHide&&a.onHide()},fe=function(){H.alignOverlay(D.current,K.current.parentElement,a.appendTo||o&&o.appendTo||Mt.appendTo)},pe=function(){var S=H.findSingle(D.current,'li[data-p-focused="true"]');if(S&&S.scrollIntoView)S.scrollIntoView({block:"nearest",inline:"nearest"});else{var Z=H.findSingle(D.current,'li[data-p-highlight="true"]');Z&&Z.scrollIntoView&&Z.scrollIntoView({block:"nearest",inline:"nearest"})}},be=function(S){K.current&&(K.current.value=S?Se(S):a.value||"",se.current&&(se.current.value=K.current.value))},Se=function(S){if(V.isScalar(S))return"".concat(S);var Z=a.optionLabel?V.resolveFieldData(S,a.optionLabel):S.label;return"".concat(Z)},ge=function(S){if(a.useOptionAsValue)return S;var Z=a.optionValue?V.resolveFieldData(S,a.optionValue):S?S.value:V.resolveFieldData(S,"value");return a.optionValue||V.isNotEmpty(Z)?Z:S},Le=function(S){return a.dataKey?V.resolveFieldData(S,a.dataKey):Se(S)},qe=function(S){return a.optionGroupLabel&&S.group},Xe=function(S){return a.optionDisabled?V.isFunction(a.optionDisabled)?a.optionDisabled(S):V.resolveFieldData(S,a.optionDisabled):S&&S.disabled!==void 0?S.disabled:!1},mt=function(S){return V.resolveFieldData(S,a.optionGroupLabel)},Xt=function(S){return V.resolveFieldData(S,a.optionGroupLabel)},kt=function(S){return V.resolveFieldData(S,a.optionGroupChildren)},on=function(){if(a.editable&&K.current){var S=Dt?Se(Dt):null,Z=S||a.value||"";K.current.value=Z,se.current&&(se.current.value=Z)}},Bt=function(){var S=Rn(a.options);return S!==-1?a.optionGroupLabel?kt(a.options[S.group])[S.option]:a.options[S]:null};v.useImperativeHandle(n,function(){return{props:a,show:je,hide:Ge,clear:hn,focus:function(){return H.focus(se.current)},getElement:function(){return Q.current},getOverlay:function(){return D.current},getInput:function(){return K.current},getFocusInput:function(){return se.current},getVirtualScroller:function(){return oe.current}}}),v.useEffect(function(){V.combinedRefs(K,a.inputRef),V.combinedRefs(se,a.focusInputRef)},[K,a.inputRef,se,a.focusInputRef]),Ar(function(){a.autoFocus&&H.focus(se.current,a.autoFocus),fe()}),Kt(function(){$&&(a.value||O>=0)&&pe()},[$,a.value,O]),Kt(function(){$&&p&&a.filter&&fe()},[$,p,a.filter]),Kt(function(){oe.current&&oe.current.scrollInView(0)},[p]),Kt(function(){p&&(!a.options||a.options.length===0)&&h(""),on(),K.current&&(K.current.selectedIndex=1)}),$r(function(){Sr.clear(D.current)});var mi=function(){var S={value:"",label:a.placeholder};if(Dt){var Z=ge(Dt);S={value:mo(Z)==="object"?a.options.findIndex(function(jn){return jn===Z}):Z,label:Se(Dt)}}var Re=e({className:"p-hidden-accessible p-dropdown-hidden-select"},B("hiddenSelectedMessage")),lt=e({ref:K,required:a.required,defaultValue:S.value,name:a.name,tabIndex:-1},B("select")),ut=e({value:S.value},B("option"));return v.createElement("div",Re,v.createElement("select",lt,v.createElement("option",ut,S.label)))},mn=function(){var S=V.isNotEmpty(Dt)?Se(Dt):null;a.editable&&(S=S||a.value||"");var Z=e({className:"p-hidden-accessible"},B("hiddenSelectedMessage")),Re=e(wr({ref:se,id:a.inputId,defaultValue:S,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:rt,onBlur:fn,onKeyDown:Jt,disabled:a.disabled,tabIndex:a.disabled?-1:a.tabIndex||0},nr),B("input"));return v.createElement("div",Z,v.createElement("input",Re))},xr=function(){var S=V.isNotEmpty(Dt)?Se(Dt):null;if(a.editable){var Z=S||a.value||"",Re=e(wr({ref:K,type:"text",defaultValue:Z,className:P("input",{label:S}),disabled:a.disabled,placeholder:a.placeholder,maxLength:a.maxLength,onInput:pn,onFocus:nn,onKeyDown:Jt,onBlur:fn,tabIndex:a.disabled?-1:a.tabIndex||0,"aria-haspopup":"listbox"},nr),B("input"));return v.createElement("input",Re)}var lt=a.valueTemplate?V.getJSXElement(a.valueTemplate,Dt,a):S||a.placeholder||a.emptyMessage||v.createElement(v.Fragment,null," "),ut=e({ref:K,className:P("input",{label:S}),tabIndex:"-1"},B("input"));return v.createElement("span",ut,lt)},zi=function(S){(S.key==="Enter"||S.code==="Space")&&(hn(S),S.preventDefault())},vi=function(){if(a.value!=null&&a.showClear&&!a.disabled&&!V.isEmpty(a.options)){var S=e({className:P("clearIcon"),onPointerUp:hn,tabIndex:a.editable?-1:a.tabIndex||"0",onKeyDown:zi,"aria-label":nc("clear")},B("clearIcon")),Z=a.clearIcon||v.createElement(us,S);return jr.getJSXIcon(Z,wr({},S),{props:a})}return null},Er=function(){var S=e({className:P("loadingIcon"),"data-pr-overlay-visible":$},B("loadingIcon")),Z=a.loadingIcon||v.createElement(rs,{spin:!0}),Re=jr.getJSXIcon(Z,wr({},S),{props:a}),lt=a.placeholder||a.ariaLabel,ut=e({className:P("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":$,"aria-label":lt},B("trigger"));return v.createElement("div",ut,Re)},Cr=function(){var S=e({className:P("dropdownIcon"),"data-pr-overlay-visible":$},B("dropdownIcon")),Z=$?a.collapseIcon||v.createElement(Ph,S):a.dropdownIcon||v.createElement(Oh,S),Re=jr.getJSXIcon(Z,wr({},S),{props:a}),lt=a.placeholder||a.ariaLabel,ut=e({className:P("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":$,"aria-label":lt},B("trigger"));return v.createElement("div",ut,Re)},vt=Ye(),Dt=Bt(),zt=V.isNotEmpty(a.tooltip),Sn=Ll.getOtherProps(a),nr=V.reduceKeys(Sn,H.ARIA_PROPS),zr=mi(),_n=mn(),Ln=xr(),Fr=a.loading?Er():Cr(),vo=vi(),at=e({id:a.id,ref:Q,className:Be(a.className,P("root",{context:o,focusedState:w,overlayVisibleState:$})),style:a.style,onClick:function(S){return nt(S)},onMouseDown:a.onMouseDown,onContextMenu:a.onContextMenu,onFocus:pt,"data-p-disabled":a.disabled,"data-p-focus":w,"aria-activedescendant":w?"dropdownItem_".concat(O):void 0},Sn,B("root")),Sa=e({ref:F,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:st,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},B("hiddenFirstFocusableEl")),xa=e({ref:q,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:Ht,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},B("hiddenLastFocusableEl"));return v.createElement(v.Fragment,null,v.createElement("div",at,_n,zr,Ln,vo,Fr,v.createElement(jh,_r({hostName:"Dropdown",ref:D,visibleOptions:vt,virtualScrollerRef:oe},a,{appendTo:z,cx:P,filterValue:f,focusedOptionIndex:O,getOptionGroupChildren:kt,getOptionGroupLabel:Xt,getOptionGroupRenderKey:mt,getOptionLabel:Se,getOptionRenderKey:Le,getSelectedOptionIndex:Rn,hasFilter:ke,in:$,isOptionDisabled:Xe,isSelected:te,onClick:It,onEnter:bn,onEntered:wn,onExit:Ee,onExited:W,onFilterClearIconClick:gn,onFilterInputChange:At,onFilterInputKeyDown:en,onOptionClick:Vt,onInputKeyDown:Jt,ptm:B,resetFilter:rn,changeFocusedOptionIndex:Ct,firstFocusableElement:v.createElement("span",Sa),lastFocusableElement:v.createElement("span",xa),sx:U}))),zt&&v.createElement(os,_r({target:Q,content:a.tooltip,pt:B("tooltip")},a.tooltipOptions)))}));$h.displayName="Dropdown";function Lc(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function yb(i){if(Array.isArray(i))return Lc(i)}function bb(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function wb(i,n){if(i){if(typeof i=="string")return Lc(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Lc(i,n)}}function Sb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xb(i){return yb(i)||bb(i)||wb(i)||Sb()}var oa={DEFAULT_MASKS:{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i},getRegex:function(n){return oa.DEFAULT_MASKS[n]?oa.DEFAULT_MASKS[n]:n},onBeforeInput:function(n,e,o){o||!H.isAndroid()||this.validateKey(n,n.data,e)},onKeyPress:function(n,e,o){o||H.isAndroid()||n.ctrlKey||n.altKey||n.metaKey||this.validateKey(n,n.key,e)},onPaste:function(n,e,o){if(!o){var a=this.getRegex(e),u=n.clipboardData.getData("text");xb(u).forEach(function(c){if(!a.test(c))return n.preventDefault(),!1})}},validateKey:function(n,e,o){if(e!=null){var a=e.length<=2;if(a){var u=this.getRegex(o);u.test(e)||n.preventDefault()}}},validate:function(n,e){var o=n.target.value,a=!0,u=this.getRegex(e);return o&&!u.test(o)&&(a=!1),a}};function jc(){return jc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},jc.apply(this,arguments)}function va(i){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},va(i)}function Eb(i,n){if(va(i)!=="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var o=e.call(i,n);if(va(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function Cb(i){var n=Eb(i,"string");return va(n)==="symbol"?n:String(n)}function kb(i,n,e){return n=Cb(n),n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}var Ob={root:function(n){var e=n.props,o=n.context,a=n.isFilled;return Be("p-inputtextarea p-inputtext p-component",{"p-disabled":e.disabled,"p-filled":a,"p-inputtextarea-resizable":e.autoResize,"p-invalid":e.invalid,"p-variant-filled":e.variant?e.variant==="filled":o&&o.inputStyle==="filled"})}},Pb=`
|
|
1144
1144
|
@layer primereact {
|
|
1145
1145
|
.p-inputtextarea-resizable {
|
|
1146
1146
|
overflow: hidden;
|
|
@@ -1151,8 +1151,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1151
1151
|
width: 100%;
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
|
|
1155
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
1154
|
+
`,jl=tt.extend({defaultProps:{__TYPE:"InputTextarea",__parentMetadata:null,autoResize:!1,invalid:!1,variant:null,keyfilter:null,onBlur:null,onFocus:null,onBeforeInput:null,onInput:null,onKeyDown:null,onKeyUp:null,onPaste:null,tooltip:null,tooltipOptions:null,validateOnly:!1,children:void 0,className:null},css:{classes:Ob,styles:Pb}});function wg(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);n&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function Sg(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?wg(Object(e),!0).forEach(function(o){kb(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):wg(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}var Ah=v.memo(v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=jl.getProps(i,o),u=v.useRef(n),c=v.useRef(0),f=jl.setMetaData(Sg(Sg({props:a},a.__parentMetadata),{},{context:{disabled:a.disabled}})),p=f.ptm,h=f.cx,m=f.isUnstyled;Dr(jl.css.styles,m,{name:"inputtextarea"});var b=function(D){a.autoResize&&N(),a.onFocus&&a.onFocus(D)},w=function(D){a.autoResize&&N(),a.onBlur&&a.onBlur(D)},x=function(D){a.autoResize&&N(),a.onKeyUp&&a.onKeyUp(D)},k=function(D){a.onKeyDown&&a.onKeyDown(D),a.keyfilter&&oa.onKeyPress(D,a.keyfilter,a.validateOnly)},C=function(D){a.onBeforeInput&&a.onBeforeInput(D),a.keyfilter&&oa.onBeforeInput(D,a.keyfilter,a.validateOnly)},O=function(D){a.onPaste&&a.onPaste(D),a.keyfilter&&oa.onPaste(D,a.keyfilter,a.validateOnly)},_=function(D){var F=D.target;a.autoResize&&N(V.isEmpty(F.value)),a.onInput&&a.onInput(D),V.isNotEmpty(F.value)?H.addClass(F,"p-filled"):H.removeClass(F,"p-filled")},N=function(D){var F=u.current;F&&j()&&(c.current||(c.current=F.scrollHeight,F.style.overflow="hidden"),(c.current!==F.scrollHeight||D)&&(F.style.height="",F.style.height=F.scrollHeight+"px",parseFloat(F.style.height)>=parseFloat(F.style.maxHeight)?(F.style.overflowY="scroll",F.style.height=F.style.maxHeight):F.style.overflow="hidden",c.current=F.scrollHeight))},j=function(){if(H.isVisible(u.current)){var D=u.current.getBoundingClientRect();return D.width>0&&D.height>0}return!1};v.useEffect(function(){V.combinedRefs(u,n)},[u,n]),v.useEffect(function(){a.autoResize&&N(!0)},[a.autoResize,a.value]);var $=v.useMemo(function(){return V.isNotEmpty(a.value)||V.isNotEmpty(a.defaultValue)},[a.value,a.defaultValue]),Y=V.isNotEmpty(a.tooltip),ie=e({ref:u,className:Be(a.className,h("root",{context:o,isFilled:$})),onFocus:b,onBlur:w,onKeyUp:x,onKeyDown:k,onBeforeInput:C,onInput:_,onPaste:O},jl.getOtherProps(a),p("root"));return v.createElement(v.Fragment,null,v.createElement("textarea",ie),Y&&v.createElement(os,jc({target:u,content:a.tooltip,pt:p("tooltip")},a.tooltipOptions)))}));Ah.displayName="InputTextarea";function Tb({onClose:i,onGenerate:n}){const{t:e}=hi();return G.jsxs("div",{className:"p-4",children:[G.jsx("p",{className:"mb-4 text-center",children:e("aboutToGenerateWebsite")}),G.jsxs("div",{className:"flex flex-column gap-3 md:flex-row justify-content-center",children:[G.jsx(Jn,{onClick:()=>n(!1),severity:"secondary",className:"p-button-raised",children:e("generateEmptySite")}),G.jsx(Jn,{onClick:()=>n(!0),className:"p-button-raised",children:e("generateSiteWithData")})]}),G.jsx("div",{className:"flex justify-content-center mt-3",children:G.jsx(Jn,{onClick:i,severity:"secondary",children:e("cancel")})})]})}function xg({promptState:i,setPromptState:n,onGenerateSite:e}){const{generatedSchema:o,explanation:a}=i,{t:u,i18n:c}=hi(),[f,p]=v.useState(""),[h,m]=v.useState(!1),[b,w]=v.useState(i.errorMessage),[x,k]=v.useState(!1),C=[{label:"English",value:"en"},{label:"Français",value:"fr"}],O=async()=>{m(!0),w(void 0);try{let N;if(o?N=await Ul({command:"updateSiteSchema",sessionToken:vc(),prompt:f,generatedSchema:o}):N=await Ul({command:"createSiteSchema",sessionToken:vc(),prompt:f}),N.success){const{explanation:j,...$}=N.result;p(""),n({generatedSchema:$,explanation:j})}else w(u("errorOccurred",{message:N.userMessage??u("unknownError")}))}catch(N){console.error(N),n({...i,errorMessage:u("errorOccurred",{message:N==null?void 0:N.message})})}finally{m(!1)}},_=()=>{n({generatedSchema:void 0})};return G.jsxs("div",{className:"PromptPanel ContentBg",children:[G.jsxs("div",{className:"flex justify-content-between items-center",children:[G.jsx("h1",{className:"AppTitle",children:u("title")}),G.jsx("div",{className:"flex align-items-center",children:G.jsx($h,{value:c.language,options:C,onChange:N=>c.changeLanguage(N.value),placeholder:u("languageSelector")})})]}),!o&&G.jsxs(G.Fragment,{children:[G.jsx("p",{children:u("promptDescription")}),G.jsx("p",{children:u("supportedLanguages")})]}),b&&G.jsx("p",{className:"mt-4 text-red-500",children:b}),a&&G.jsxs("div",{className:"mt-4",children:[G.jsx("h2",{children:u("explanation")}),G.jsx("div",{className:"Text",dangerouslySetInnerHTML:{__html:dt(a)}})]}),G.jsx(Ah,{className:"w-full",placeholder:u(o?"updatePromptPlaceholder":"createPromptPlaceholder"),rows:o?5:10,value:f,onChange:N=>p(N.target.value)}),G.jsxs("div",{className:"flex justify-content-center mt-4",children:[o&&G.jsx(Jn,{className:"mr-2",severity:"secondary",onClick:_,disabled:h,children:u("resetSchema")}),G.jsx(Jn,{onClick:O,loading:h,disabled:h||f.trim()==="",children:u(o?"modifySchema":"createSchema")}),o&&G.jsx(Jn,{className:"ml-2",severity:"success",onClick:()=>k(!0),disabled:h,children:u("generateTheWebsite")})]}),G.jsx(kh,{visible:x,onHide:()=>k(!1),header:u("generateTheWebsite"),modal:!0,style:{width:"450px"},children:o&&G.jsx(Tb,{onClose:()=>k(!1),onGenerate:N=>{k(!1),e&&e(N)}})})]})}function $c(){return $c=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},$c.apply(this,arguments)}var Dh=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",$c({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"}))}));Dh.displayName="MinusIcon";function Ac(){return Ac=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Ac.apply(this,arguments)}var zh=v.memo(v.forwardRef(function(i,n){var e=Gn.getPTI(i);return v.createElement("svg",Ac({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"}))}));zh.displayName="PlusIcon";function Dc(){return Dc=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Dc.apply(this,arguments)}function Ib(i){if(Array.isArray(i))return i}function Nb(i,n){var e=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(e!=null){var o,a,u,c,f=[],p=!0,h=!1;try{if(u=(e=e.call(i)).next,n!==0)for(;!(p=(o=u.call(e)).done)&&(f.push(o.value),f.length!==n);p=!0);}catch(m){h=!0,a=m}finally{try{if(!p&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(h)throw a}}return f}}function Eg(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=i[e];return o}function Rb(i,n){if(i){if(typeof i=="string")return Eg(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Eg(i,n)}}function _b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1155
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cg(i,n){return Ib(i)||Nb(i,n)||Rb(i,n)||_b()}var $l=tt.extend({defaultProps:{__TYPE:"Panel",id:null,header:null,headerTemplate:null,footer:null,footerTemplate:null,toggleable:null,style:null,className:null,collapsed:null,expandIcon:null,collapseIcon:null,icons:null,transitionOptions:null,onExpand:null,onCollapse:null,onToggle:null,children:void 0},css:{classes:{root:function(n){var e=n.props;return Be("p-panel p-component",{"p-panel-toggleable":e.toggleable})},header:"p-panel-header",title:"p-panel-title",icons:"p-panel-icons",toggler:"p-panel-header-icon p-panel-toggler p-link",togglerIcon:"p-panel-header-icon p-panel-toggler p-link",toggleableContent:"p-toggleable-content",content:"p-panel-content",footer:"p-panel-footer",transition:"p-toggleable-content"},styles:`
|
|
1156
1156
|
@layer primereact {
|
|
1157
1157
|
.p-panel-header {
|
|
1158
1158
|
display: flex;
|
|
@@ -1174,7 +1174,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1174
1174
|
position: relative;
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
|
-
`}}),Ml=v.forwardRef(function(o,n){var e=Yn(),i=v.useContext(Gt),a=jl.getProps(o,i),u=v.useState(a.id),c=Eg(u,2),f=c[0],p=c[1],h=v.useState(a.collapsed),m=Eg(h,2),b=m[0],w=m[1],x=v.useRef(null),k=v.useRef(null),C=a.toggleable?a.onToggle?a.collapsed:b:!1,O=f+"_header",L=f+"_content",N=jl.setMetaData({props:a,state:{id:f,collapsed:C}}),$=N.ptm,j=N.cx,G=N.isUnstyled;Dr(jl.css.styles,G,{name:"panel"});var ie=function(z){a.toggleable&&(C?Y(z):D(z),z&&(a.onToggle&&a.onToggle({originalEvent:z,value:!C}),z.preventDefault()))},Y=function(z){a.onToggle||w(!1),a.onExpand&&z&&a.onExpand(z)},D=function(z){a.onToggle||w(!0),a.onCollapse&&z&&a.onCollapse(z)};v.useImperativeHandle(n,function(){return{props:a,toggle:ie,expand:Y,collapse:D,getElement:function(){return x.current},getContent:function(){return k.current}}}),Ar(function(){f||p(ba())});var F=function(){if(a.toggleable){var z=f+"_label",J=e({className:j("toggler"),onClick:ie,id:z,"aria-controls":L,"aria-expanded":!C,type:"button",role:"button","aria-label":a.header},$("toggler")),B=e($("togglericon")),P=C?a.expandIcon||v.createElement(Dh,B):a.collapseIcon||v.createElement(Ah,B),U=$r.getJSXIcon(P,B,{props:a,collapsed:C});return v.createElement("button",J,U,v.createElement(ho,null))}return null},q=function(){var z=V.getJSXElement(a.header,a),J=V.getJSXElement(a.icons,a),B=F(),P=e({id:O,className:j("title")},$("title")),U=v.createElement("span",P,z),ce=e({className:j("icons")},$("icons")),de=v.createElement("div",ce,J,B),Te=e({className:j("header")},$("header")),ze=v.createElement("div",Te,U,de);if(a.headerTemplate){var Me={className:"p-panel-header",titleClassName:"p-panel-title",iconsClassName:"p-panel-icons",togglerClassName:"p-panel-header-icon p-panel-toggler p-link",onTogglerClick:ie,titleElement:U,iconsElement:de,togglerElement:B,element:ze,id:f+"_header",props:a,collapsed:C};return V.getJSXElement(a.headerTemplate,Me)}else if(a.header||a.toggleable)return ze;return null},K=function(){var z=V.getJSXElement(a.footer,a),J=e({className:j("footer")},$("footer")),B=v.createElement("div",J,z);if(a.footerTemplate){var P={className:j("footer"),element:B,props:a};return V.getJSXElement(a.footerTemplate,P)}else if(a.footer)return B;return null},se=function(){var z=e({ref:k,className:j("toggleableContent"),"aria-hidden":C,role:"region",id:L,"aria-labelledby":O},$("toggleablecontent")),J=e({className:j("content")},$("content")),B=e({classNames:j("transition"),timeout:{enter:1e3,exit:450},in:!C,unmountOnExit:!0,options:a.transitionOptions},$("transition"));return v.createElement(ss,Dc({nodeRef:k},B),v.createElement("div",z,v.createElement("div",J,a.children)))},oe=e({id:f,ref:x,style:a.style,className:Be(a.className,j("root"))},jl.getOtherProps(a),$("root")),ye=q(),Q=se(),ve=K();return v.createElement("div",oe,ye,Q,ve)});Ml.displayName="Panel";const Lb=o=>typeof o=="boolean"||o instanceof Boolean,_b=o=>typeof o=="number"||o instanceof Number,$b=o=>typeof o=="bigint"||o instanceof BigInt,zh=o=>!!o&&o instanceof Date,jb=o=>typeof o=="string"||o instanceof String,Ab=o=>Array.isArray(o),Db=o=>typeof o=="object"&&o!==null,Fh=o=>!!o&&o instanceof Object&&typeof o=="function";function Yl(o,n){return n===void 0&&(n=!1),!o||n?`"${o}"`:o}function zb(o,n,e){return e?JSON.stringify(o):n?`"${o}"`:o}function Mh(o){let{field:n,value:e,data:i,lastElement:a,openBracket:u,closeBracket:c,level:f,style:p,shouldExpandNode:h,clickToExpandNode:m,outerRef:b,beforeExpandChange:w}=o;const x=v.useRef(!1),[k,C]=v.useState(()=>h(f,e,n)),O=v.useRef(null);v.useEffect(()=>{x.current?C(h(f,e,n)):x.current=!0},[h]);const L=v.useId();if(i.length===0)return Fb({field:n,openBracket:u,closeBracket:c,lastElement:a,style:p});const N=k?p.collapseIcon:p.expandIcon,$=k?p.ariaLables.collapseJson:p.ariaLables.expandJson,j=f+1,G=i.length-1,ie=F=>{k!==F&&(!w||w({level:f,value:e,field:n,newExpandValue:F}))&&C(F)},Y=F=>{if(F.key==="ArrowRight"||F.key==="ArrowLeft")F.preventDefault(),ie(F.key==="ArrowRight");else if(F.key==="ArrowUp"||F.key==="ArrowDown"){F.preventDefault();const q=F.key==="ArrowUp"?-1:1;if(!b.current)return;const K=b.current.querySelectorAll("[role=button]");let se=-1;for(let ye=0;ye<K.length;ye++)if(K[ye].tabIndex===0){se=ye;break}if(se<0)return;const oe=(se+q+K.length)%K.length;K[se].tabIndex=-1,K[oe].tabIndex=0,K[oe].focus()}},D=()=>{var F;ie(!k);const q=O.current;if(!q)return;const K=(F=b.current)===null||F===void 0?void 0:F.querySelector('[role=button][tabindex="0"]');K&&(K.tabIndex=-1),q.tabIndex=0,q.focus()};return v.createElement("div",{className:p.basicChildStyle,role:"treeitem","aria-expanded":k,"aria-selected":void 0},v.createElement("span",{className:N,onClick:D,onKeyDown:Y,role:"button","aria-label":$,"aria-expanded":k,"aria-controls":k?L:void 0,ref:O,tabIndex:f===0?0:-1}),(n||n==="")&&(m?v.createElement("span",{className:p.clickableLabel,onClick:D,onKeyDown:Y},Yl(n,p.quotesForFieldNames),":"):v.createElement("span",{className:p.label},Yl(n,p.quotesForFieldNames),":")),v.createElement("span",{className:p.punctuation},u),k?v.createElement("ul",{id:L,role:"group",className:p.childFieldsContainer},i.map((F,q)=>v.createElement(Hh,{key:F[0]||q,field:F[0],value:F[1],style:p,lastElement:q===G,level:j,shouldExpandNode:h,clickToExpandNode:m,outerRef:b}))):v.createElement("span",{className:p.collapsedContent,onClick:D,onKeyDown:Y}),v.createElement("span",{className:p.punctuation},c),!a&&v.createElement("span",{className:p.punctuation},","))}function Fb(o){let{field:n,openBracket:e,closeBracket:i,lastElement:a,style:u}=o;return v.createElement("div",{className:u.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||n==="")&&v.createElement("span",{className:u.label},Yl(n,u.quotesForFieldNames),":"),v.createElement("span",{className:u.punctuation},e),v.createElement("span",{className:u.punctuation},i),!a&&v.createElement("span",{className:u.punctuation},","))}function Mb(o){let{field:n,value:e,style:i,lastElement:a,shouldExpandNode:u,clickToExpandNode:c,level:f,outerRef:p,beforeExpandChange:h}=o;return Mh({field:n,value:e,lastElement:a||!1,level:f,openBracket:"{",closeBracket:"}",style:i,shouldExpandNode:u,clickToExpandNode:c,data:Object.keys(e).map(m=>[m,e[m]]),outerRef:p,beforeExpandChange:h})}function Hb(o){let{field:n,value:e,style:i,lastElement:a,level:u,shouldExpandNode:c,clickToExpandNode:f,outerRef:p,beforeExpandChange:h}=o;return Mh({field:n,value:e,lastElement:a||!1,level:u,openBracket:"[",closeBracket:"]",style:i,shouldExpandNode:c,clickToExpandNode:f,data:e.map(m=>[void 0,m]),outerRef:p,beforeExpandChange:h})}function Vb(o){let{field:n,value:e,style:i,lastElement:a}=o,u,c=i.otherValue;return e===null?(u="null",c=i.nullValue):e===void 0?(u="undefined",c=i.undefinedValue):jb(e)?(u=zb(e,!i.noQuotesForStringValues,i.stringifyStringValues),c=i.stringValue):Lb(e)?(u=e?"true":"false",c=i.booleanValue):_b(e)?(u=e.toString(),c=i.numberValue):$b(e)?(u=`${e.toString()}n`,c=i.numberValue):zh(e)?u=e.toISOString():Fh(e)?u="function() { }":u=e.toString(),v.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||n==="")&&v.createElement("span",{className:i.label},Yl(n,i.quotesForFieldNames),":"),v.createElement("span",{className:c},u),!a&&v.createElement("span",{className:i.punctuation},","))}function Hh(o){const n=o.value;return Ab(n)?v.createElement(Hb,Object.assign({},o)):Db(n)&&!zh(n)&&!Fh(n)?v.createElement(Mb,Object.assign({},o)):v.createElement(Vb,Object.assign({},o))}var zn={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti"};const Bb={collapseJson:"collapse JSON",expandJson:"expand JSON"},Ql={container:zn["container-light"],basicChildStyle:zn["basic-element-style"],childFieldsContainer:zn["child-fields-container"],label:zn["label-light"],clickableLabel:zn["clickable-label-light"],nullValue:zn["value-null-light"],undefinedValue:zn["value-undefined-light"],stringValue:zn["value-string-light"],booleanValue:zn["value-boolean-light"],numberValue:zn["value-number-light"],otherValue:zn["value-other-light"],punctuation:zn["punctuation-light"],collapseIcon:zn["collapse-icon-light"],expandIcon:zn["expand-icon-light"],collapsedContent:zn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:Bb,stringifyStringValues:!1},zc=()=>!0,Cg=o=>{let{data:n,style:e=Ql,shouldExpandNode:i=zc,clickToExpandNode:a=!1,beforeExpandChange:u,...c}=o;const f=v.useRef(null);return v.createElement("div",Object.assign({"aria-label":"JSON view"},c,{className:e.container,ref:f,role:"tree"}),v.createElement(Hh,{value:n,style:{...Ql,...e},lastElement:!0,level:0,shouldExpandNode:i,clickToExpandNode:a,outerRef:f,beforeExpandChange:u}))};function Ub(o){const n=Object.keys(o),e=n.length>0?n[0]:void 0;return(i,a,u={})=>{if(!e)return u.default??i;const c=o[a]??o[e],f=i.split(".");let p=c;for(const h of f){if(typeof p=="string"||!p||!(h in p))return u.default??i;p=p[h]}return typeof p=="string"?p:u.default??i}}function Kb({siteSchema:o,schemaTranslate:n}){return X.jsx("ul",{children:X.jsx(Fc,{schema:o,schemaT:n,typeName:"home"})})}function Fc({schema:o,schemaT:n,typeName:e,depth:i=0}){const{i18n:a}=Ai(),u=Wb(o,e);if(!u)return null;const c=u.routingChildren||[],f=u.regularChildren||[],p=u.lists||[],h=u.documentKind==="routing",m=n(`nodeTypes.${e}.label`,a.language,{default:e});return X.jsxs("li",{children:[X.jsxs("div",{children:[h?X.jsx("strong",{children:m}):m," (",X.jsx("code",{children:e}),")"]}),p.map(b=>X.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[n(`nodeTypes.${e}.lists.${b.listName}.label`,a.language,{default:b.listName})," ","(",X.jsx("code",{children:b.listName})," [",X.jsx("code",{children:b.parts.join("</code>, <code>")}),"])"]},b.listName)),c.length>0&&X.jsx("ul",{children:c.map(b=>X.jsx(Fc,{schema:o,schemaT:n,typeName:b,depth:i+1},b))}),f.length>0&&X.jsx("ul",{children:f.map(b=>X.jsx(Fc,{schema:o,schemaT:n,typeName:b,depth:i+1},b))})]})}function Wb(o,n){var e;return(e=o.nodeTypes)==null?void 0:e.find(i=>i.kind==="document"&&i.typeName===n)}function Gb({generatedSchema:o}){const{t:n}=Ai(),{siteSchema:e,l10n:i}=o,a=Ub(i);return X.jsxs("div",{className:"SiteSchemaViewer",children:[X.jsx("h2",{children:n("generatedSchema")}),X.jsx(Ml,{header:n("treeView"),children:X.jsx(Kb,{siteSchema:e,schemaTranslate:a})}),X.jsx(Ml,{header:n("siteSchema"),className:"mt-2",children:X.jsx(Cg,{data:e,shouldExpandNode:zc,style:Ql})}),X.jsx(Ml,{header:n("labels"),className:"mt-2",children:X.jsx(Cg,{data:i,shouldExpandNode:zc,style:Ql})})]})}function Yb(){const{i18n:o}=Ai(),[n,e]=v.useState(),[i,a]=v.useState({generatedSchema:void 0,explanation:"",errorMessage:""}),[u,c]=v.useState(!1),[f,p]=v.useState(!1),[h,m]=v.useState();v.useEffect(()=>{const O=sessionStorage.getItem("promptState");O&&a(JSON.parse(O));const L=sessionStorage.getItem("sessionToken");L&&(B1(L)?e(L):sessionStorage.removeItem("sessionToken"));const N=sessionStorage.getItem("generatedSite");N&&m(JSON.parse(N))},[]);const b=O=>{if(a(O),!O.errorMessage&&(sessionStorage.setItem("promptState",JSON.stringify(O)),O.generatedSchema)){const L=O.generatedSchema.siteSchema.languages[0];L&&o.changeLanguage(L)}},w=O=>{e(O),sessionStorage.setItem("sessionToken",O)},x=O=>{c(!0),p(O)},k=O=>{m(O),sessionStorage.setItem("generatedSite",JSON.stringify(O))},C=()=>{a({generatedSchema:void 0,explanation:"",errorMessage:""}),c(!1),m(void 0),sessionStorage.removeItem("promptState"),sessionStorage.removeItem("generatedSite")};return n?X.jsx(Mp,{children:n?(u||h)&&i.generatedSchema?X.jsx(U1,{generatedSchema:i.generatedSchema,withFakeContent:f,generatedSite:h,onGenerated:k,onReset:C}):i.generatedSchema?X.jsx("div",{className:"flex flex-column align-items-center w-full",children:X.jsxs(qg,{className:"w-full",children:[X.jsx(uc,{size:40,children:X.jsx("div",{children:X.jsx(Sg,{promptState:i,setPromptState:b,onGenerateSite:x})})}),X.jsx(uc,{size:60,children:i.generatedSchema&&X.jsx(Gb,{generatedSchema:i.generatedSchema})})]})}):X.jsx(Sg,{promptState:i,setPromptState:b}):X.jsx(eg,{onVerified:w})}):X.jsx(Mp,{children:X.jsx(eg,{onVerified:w})})}const We=o=>typeof o=="string",Zo=()=>{let o,n;const e=new Promise((i,a)=>{o=i,n=a});return e.resolve=o,e.reject=n,e},kg=o=>o==null?"":""+o,Qb=(o,n,e)=>{o.forEach(i=>{n[i]&&(e[i]=n[i])})},Xb=/###/g,Og=o=>o&&o.indexOf("###")>-1?o.replace(Xb,"."):o,Pg=o=>!o||We(o),aa=(o,n,e)=>{const i=We(n)?n.split("."):n;let a=0;for(;a<i.length-1;){if(Pg(o))return{};const u=Og(i[a]);!o[u]&&e&&(o[u]=new e),Object.prototype.hasOwnProperty.call(o,u)?o=o[u]:o={},++a}return Pg(o)?{}:{obj:o,k:Og(i[a])}},Tg=(o,n,e)=>{const{obj:i,k:a}=aa(o,n,Object);if(i!==void 0||n.length===1){i[a]=e;return}let u=n[n.length-1],c=n.slice(0,n.length-1),f=aa(o,c,Object);for(;f.obj===void 0&&c.length;)u=`${c[c.length-1]}.${u}`,c=c.slice(0,c.length-1),f=aa(o,c,Object),f!=null&&f.obj&&typeof f.obj[`${f.k}.${u}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${u}`]=e},qb=(o,n,e,i)=>{const{obj:a,k:u}=aa(o,n,Object);a[u]=a[u]||[],a[u].push(e)},Xl=(o,n)=>{const{obj:e,k:i}=aa(o,n);if(e&&Object.prototype.hasOwnProperty.call(e,i))return e[i]},Zb=(o,n,e)=>{const i=Xl(o,e);return i!==void 0?i:Xl(n,e)},Vh=(o,n,e)=>{for(const i in n)i!=="__proto__"&&i!=="constructor"&&(i in o?We(o[i])||o[i]instanceof String||We(n[i])||n[i]instanceof String?e&&(o[i]=n[i]):Vh(o[i],n[i],e):o[i]=n[i]);return o},co=o=>o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Jb={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ew=o=>We(o)?o.replace(/[&<>"'\/]/g,n=>Jb[n]):o;class tw{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const e=this.regExpMap.get(n);if(e!==void 0)return e;const i=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,i),this.regExpQueue.push(n),i}}const nw=[" ",",","?","!",";"],rw=new tw(20),iw=(o,n,e)=>{n=n||"",e=e||"";const i=nw.filter(c=>n.indexOf(c)<0&&e.indexOf(c)<0);if(i.length===0)return!0;const a=rw.getRegExp(`(${i.map(c=>c==="?"?"\\?":c).join("|")})`);let u=!a.test(o);if(!u){const c=o.indexOf(e);c>0&&!a.test(o.substring(0,c))&&(u=!0)}return u},Mc=function(o,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!o)return;if(o[n])return Object.prototype.hasOwnProperty.call(o,n)?o[n]:void 0;const i=n.split(e);let a=o;for(let u=0;u<i.length;){if(!a||typeof a!="object")return;let c,f="";for(let p=u;p<i.length;++p)if(p!==u&&(f+=e),f+=i[p],c=a[f],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&p<i.length-1)continue;u+=p-u+1;break}a=c}return a},ql=o=>o==null?void 0:o.replace("_","-"),ow={type:"logger",log(o){this.output("log",o)},warn(o){this.output("warn",o)},error(o){this.output("error",o)},output(o,n){var e,i;(i=(e=console==null?void 0:console[o])==null?void 0:e.apply)==null||i.call(e,console,n)}};class Zl{constructor(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(n,e)}init(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=n||ow,this.options=e,this.debug=e.debug}log(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return this.forward(e,"log","",!0)}warn(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return this.forward(e,"warn","",!0)}error(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return this.forward(e,"error","")}deprecate(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(n,e,i,a){return a&&!this.debug?null:(We(n[0])&&(n[0]=`${i}${this.prefix} ${n[0]}`),this.logger[e](n))}create(n){return new Zl(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new Zl(this.logger,n)}}var _r=new Zl;class fs{constructor(){this.observers={}}on(n,e){return n.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const a=this.observers[i].get(e)||0;this.observers[i].set(e,a+1)}),this}off(n,e){if(this.observers[n]){if(!e){delete this.observers[n];return}this.observers[n].delete(e)}}emit(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];this.observers[n]&&Array.from(this.observers[n].entries()).forEach(c=>{let[f,p]=c;for(let h=0;h<p;h++)f(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(c=>{let[f,p]=c;for(let h=0;h<p;h++)f.apply(f,[n,...i])})}}class Ig extends fs{constructor(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=n||{},this.options=e,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const e=this.options.ns.indexOf(n);e>-1&&this.options.ns.splice(e,1)}getResource(n,e,i){var h,m;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;n.indexOf(".")>-1?f=n.split("."):(f=[n,e],i&&(Array.isArray(i)?f.push(...i):We(i)&&u?f.push(...i.split(u)):f.push(i)));const p=Xl(this.data,f);return!p&&!e&&!i&&n.indexOf(".")>-1&&(n=f[0],e=f[1],i=f.slice(2).join(".")),p||!c||!We(i)?p:Mc((m=(h=this.data)==null?void 0:h[n])==null?void 0:m[e],i,u)}addResource(n,e,i,a){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const c=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let f=[n,e];i&&(f=f.concat(c?i.split(c):i)),n.indexOf(".")>-1&&(f=n.split("."),a=e,e=f[1]),this.addNamespaces(e),Tg(this.data,f,a),u.silent||this.emit("added",n,e,i,a)}addResources(n,e,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const u in i)(We(i[u])||Array.isArray(i[u]))&&this.addResource(n,e,u,i[u],{silent:!0});a.silent||this.emit("added",n,e,i)}addResourceBundle(n,e,i,a,u){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},f=[n,e];n.indexOf(".")>-1&&(f=n.split("."),a=i,i=e,e=f[1]),this.addNamespaces(e);let p=Xl(this.data,f)||{};c.skipCopy||(i=JSON.parse(JSON.stringify(i))),a?Vh(p,i,u):p={...p,...i},Tg(this.data,f,p),c.silent||this.emit("added",n,e,i)}removeResourceBundle(n,e){this.hasResourceBundle(n,e)&&delete this.data[n][e],this.removeNamespaces(e),this.emit("removed",n,e)}hasResourceBundle(n,e){return this.getResource(n,e)!==void 0}getResourceBundle(n,e){return e||(e=this.options.defaultNS),this.getResource(n,e)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const e=this.getDataByLanguage(n);return!!(e&&Object.keys(e)||[]).find(a=>e[a]&&Object.keys(e[a]).length>0)}toJSON(){return this.data}}var Bh={processors:{},addPostProcessor(o){this.processors[o.name]=o},handle(o,n,e,i,a){return o.forEach(u=>{var c;n=((c=this.processors[u])==null?void 0:c.process(n,e,i,a))??n}),n}};const Ng={},Rg=o=>!We(o)&&typeof o!="boolean"&&typeof o!="number";class Jl extends fs{constructor(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Qb(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=e,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_r.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;const i=this.resolve(n,e);return(i==null?void 0:i.res)!==void 0}extractFromKey(n,e){let i=e.nsSeparator!==void 0?e.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=e.keySeparator!==void 0?e.keySeparator:this.options.keySeparator;let u=e.ns||this.options.defaultNS||[];const c=i&&n.indexOf(i)>-1,f=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!iw(n,i,a);if(c&&!f){const p=n.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:n,namespaces:We(u)?[u]:u};const h=n.split(i);(i!==a||i===a&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),n=h.join(a)}return{key:n,namespaces:We(u)?[u]:u}}translate(n,e,i){if(typeof e!="object"&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),typeof e=="object"&&(e={...e}),e||(e={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);const a=e.returnDetails!==void 0?e.returnDetails:this.options.returnDetails,u=e.keySeparator!==void 0?e.keySeparator:this.options.keySeparator,{key:c,namespaces:f}=this.extractFromKey(n[n.length-1],e),p=f[f.length-1],h=e.lng||this.language,m=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((h==null?void 0:h.toLowerCase())==="cimode"){if(m){const K=e.nsSeparator||this.options.nsSeparator;return a?{res:`${p}${K}${c}`,usedKey:c,exactUsedKey:c,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(e)}:`${p}${K}${c}`}return a?{res:c,usedKey:c,exactUsedKey:c,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(e)}:c}const b=this.resolve(n,e);let w=b==null?void 0:b.res;const x=(b==null?void 0:b.usedKey)||c,k=(b==null?void 0:b.exactUsedKey)||c,C=["[object Number]","[object Function]","[object RegExp]"],O=e.joinArrays!==void 0?e.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,N=e.count!==void 0&&!We(e.count),$=Jl.hasDefaultValue(e),j=N?this.pluralResolver.getSuffix(h,e.count,e):"",G=e.ordinal&&N?this.pluralResolver.getSuffix(h,e.count,{ordinal:!1}):"",ie=N&&!e.ordinal&&e.count===0,Y=ie&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${j}`]||e[`defaultValue${G}`]||e.defaultValue;let D=w;L&&!w&&$&&(D=Y);const F=Rg(D),q=Object.prototype.toString.apply(D);if(L&&D&&F&&C.indexOf(q)<0&&!(We(O)&&Array.isArray(D))){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,D,{...e,ns:f}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(b.res=K,b.usedParams=this.getUsedParamsDetails(e),b):K}if(u){const K=Array.isArray(D),se=K?[]:{},oe=K?k:x;for(const ye in D)if(Object.prototype.hasOwnProperty.call(D,ye)){const Q=`${oe}${u}${ye}`;$&&!w?se[ye]=this.translate(Q,{...e,defaultValue:Rg(Y)?Y[ye]:void 0,joinArrays:!1,ns:f}):se[ye]=this.translate(Q,{...e,joinArrays:!1,ns:f}),se[ye]===Q&&(se[ye]=D[ye])}w=se}}else if(L&&We(O)&&Array.isArray(w))w=w.join(O),w&&(w=this.extendTranslation(w,n,e,i));else{let K=!1,se=!1;!this.isValidLookup(w)&&$&&(K=!0,w=Y),this.isValidLookup(w)||(se=!0,w=c);const ye=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&se?void 0:w,Q=$&&Y!==w&&this.options.updateMissing;if(se||K||Q){if(this.logger.log(Q?"updateKey":"missingKey",h,p,c,Q?Y:w),u){const J=this.resolve(c,{...e,keySeparator:!1});J&&J.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.")}let ve=[];const ke=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ke&&ke[0])for(let J=0;J<ke.length;J++)ve.push(ke[J]);else this.options.saveMissingTo==="all"?ve=this.languageUtils.toResolveHierarchy(e.lng||this.language):ve.push(e.lng||this.language);const z=(J,B,P)=>{var ce;const U=$&&P!==w?P:ye;this.options.missingKeyHandler?this.options.missingKeyHandler(J,p,B,U,Q,e):(ce=this.backendConnector)!=null&&ce.saveMissing&&this.backendConnector.saveMissing(J,p,B,U,Q,e),this.emit("missingKey",J,p,B,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?ve.forEach(J=>{const B=this.pluralResolver.getSuffixes(J,e);ie&&e[`defaultValue${this.options.pluralSeparator}zero`]&&B.indexOf(`${this.options.pluralSeparator}zero`)<0&&B.push(`${this.options.pluralSeparator}zero`),B.forEach(P=>{z([J],c+P,e[`defaultValue${P}`]||Y)})}):z(ve,c,Y))}w=this.extendTranslation(w,n,e,b,i),se&&w===c&&this.options.appendNamespaceToMissingKey&&(w=`${p}:${c}`),(se||K)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}:${c}`:c,K?w:void 0))}return a?(b.res=w,b.usedParams=this.getUsedParamsDetails(e),b):w}extendTranslation(n,e,i,a,u){var h,m;var c=this;if((h=this.i18nFormat)!=null&&h.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const b=We(n)&&(((m=i==null?void 0:i.interpolation)==null?void 0:m.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let w;if(b){const k=n.match(this.interpolator.nestingRegexp);w=k&&k.length}let x=i.replace&&!We(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),n=this.interpolator.interpolate(n,x,i.lng||this.language||a.usedLng,i),b){const k=n.match(this.interpolator.nestingRegexp),C=k&&k.length;w<C&&(i.nest=!1)}!i.lng&&a&&a.res&&(i.lng=this.language||a.usedLng),i.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var k=arguments.length,C=new Array(k),O=0;O<k;O++)C[O]=arguments[O];return(u==null?void 0:u[0])===C[0]&&!i.context?(c.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${e[0]}`),null):c.translate(...C,e)},i)),i.interpolation&&this.interpolator.reset()}const f=i.postProcess||this.options.postProcess,p=We(f)?[f]:f;return n!=null&&(p!=null&&p.length)&&i.applyPostProcessor!==!1&&(n=Bh.handle(p,n,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),n}resolve(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,a,u,c,f;return We(n)&&(n=[n]),n.forEach(p=>{if(this.isValidLookup(i))return;const h=this.extractFromKey(p,e),m=h.key;a=m;let b=h.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const w=e.count!==void 0&&!We(e.count),x=w&&!e.ordinal&&e.count===0,k=e.context!==void 0&&(We(e.context)||typeof e.context=="number")&&e.context!=="",C=e.lngs?e.lngs:this.languageUtils.toResolveHierarchy(e.lng||this.language,e.fallbackLng);b.forEach(O=>{var L,N;this.isValidLookup(i)||(f=O,!Ng[`${C[0]}-${O}`]&&((L=this.utils)!=null&&L.hasLoadedNamespace)&&!((N=this.utils)!=null&&N.hasLoadedNamespace(f))&&(Ng[`${C[0]}-${O}`]=!0,this.logger.warn(`key "${a}" for languages "${C.join(", ")}" won't get resolved as namespace "${f}" 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!!!")),C.forEach($=>{var ie;if(this.isValidLookup(i))return;c=$;const j=[m];if((ie=this.i18nFormat)!=null&&ie.addLookupKeys)this.i18nFormat.addLookupKeys(j,m,$,O,e);else{let Y;w&&(Y=this.pluralResolver.getSuffix($,e.count,e));const D=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(j.push(m+Y),e.ordinal&&Y.indexOf(F)===0&&j.push(m+Y.replace(F,this.options.pluralSeparator)),x&&j.push(m+D)),k){const q=`${m}${this.options.contextSeparator}${e.context}`;j.push(q),w&&(j.push(q+Y),e.ordinal&&Y.indexOf(F)===0&&j.push(q+Y.replace(F,this.options.pluralSeparator)),x&&j.push(q+D))}}let G;for(;G=j.pop();)this.isValidLookup(i)||(u=G,i=this.getResource($,O,G,e))}))})}),{res:i,usedKey:a,exactUsedKey:u,usedLng:c,usedNS:f}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,e,i){var u;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(u=this.i18nFormat)!=null&&u.getResource?this.i18nFormat.getResource(n,e,i,a):this.resourceStore.getResource(n,e,i,a)}getUsedParamsDetails(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=n.replace&&!We(n.replace);let a=i?n.replace:n;if(i&&typeof n.count<"u"&&(a.count=n.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const u of e)delete a[u]}return a}static hasDefaultValue(n){const e="defaultValue";for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&e===i.substring(0,e.length)&&n[i]!==void 0)return!0;return!1}}class Lg{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_r.create("languageUtils")}getScriptPartFromCode(n){if(n=ql(n),!n||n.indexOf("-")<0)return null;const e=n.split("-");return e.length===2||(e.pop(),e[e.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(e.join("-"))}getLanguagePartFromCode(n){if(n=ql(n),!n||n.indexOf("-")<0)return n;const e=n.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(n){if(We(n)&&n.indexOf("-")>-1){let e;try{e=Intl.getCanonicalLocales(n)[0]}catch{}return e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let e;return n.forEach(i=>{if(e)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(e=a)}),!e&&this.options.supportedLngs&&n.forEach(i=>{if(e)return;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return e=a;e=this.options.supportedLngs.find(u=>{if(u===a)return u;if(!(u.indexOf("-")<0&&a.indexOf("-")<0)&&(u.indexOf("-")>0&&a.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===a||u.indexOf(a)===0&&a.length>1))return u})}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(n,e){if(!n)return[];if(typeof n=="function"&&(n=n(e)),We(n)&&(n=[n]),Array.isArray(n))return n;if(!e)return n.default||[];let i=n[e];return i||(i=n[this.getScriptPartFromCode(e)]),i||(i=n[this.formatLanguageCode(e)]),i||(i=n[this.getLanguagePartFromCode(e)]),i||(i=n.default),i||[]}toResolveHierarchy(n,e){const i=this.getFallbackCodes(e||this.options.fallbackLng||[],n),a=[],u=c=>{c&&(this.isSupportedCode(c)?a.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return We(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(n))):We(n)&&u(this.formatLanguageCode(n)),i.forEach(c=>{a.indexOf(c)<0&&u(this.formatLanguageCode(c))}),a}}const _g={zero:0,one:1,two:2,few:3,many:4,other:5},$g={select:o=>o===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class aw{constructor(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=n,this.options=e,this.logger=_r.create("pluralResolver"),this.pluralRulesCache={}}addRule(n,e){this.rules[n]=e}clearCache(){this.pluralRulesCache={}}getRule(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=ql(n==="dev"?"en":n),a=e.ordinal?"ordinal":"cardinal",u=JSON.stringify({cleanedCode:i,type:a});if(u in this.pluralRulesCache)return this.pluralRulesCache[u];let c;try{c=new Intl.PluralRules(i,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),$g;if(!n.match(/-|_/))return $g;const p=this.languageUtils.getLanguagePartFromCode(n);c=this.getRule(p,e)}return this.pluralRulesCache[u]=c,c}needsPlural(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,e);return i||(i=this.getRule("dev",e)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(n,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(a=>`${e}${a}`)}getSuffixes(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,e);return i||(i=this.getRule("dev",e)),i?i.resolvedOptions().pluralCategories.sort((a,u)=>_g[a]-_g[u]).map(a=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(n,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(n,i);return a?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(e)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",e,i))}}const jg=function(o,n,e){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,u=Zb(o,n,e);return!u&&a&&We(e)&&(u=Mc(o,e,i),u===void 0&&(u=Mc(n,e,i))),u},Ju=o=>o.replace(/\$/g,"$$$$");class lw{constructor(){var e;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_r.create("interpolator"),this.options=n,this.format=((e=n==null?void 0:n.interpolation)==null?void 0:e.format)||(i=>i),this.init(n)}init(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});const{escape:e,escapeValue:i,useRawValueToEscape:a,prefix:u,prefixEscaped:c,suffix:f,suffixEscaped:p,formatSeparator:h,unescapeSuffix:m,unescapePrefix:b,nestingPrefix:w,nestingPrefixEscaped:x,nestingSuffix:k,nestingSuffixEscaped:C,nestingOptionsSeparator:O,maxReplaces:L,alwaysFormat:N}=n.interpolation;this.escape=e!==void 0?e:ew,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=u?co(u):c||"{{",this.suffix=f?co(f):p||"}}",this.formatSeparator=h||",",this.unescapePrefix=m?"":b||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=w?co(w):x||co("$t("),this.nestingSuffix=k?co(k):C||co(")"),this.nestingOptionsSeparator=O||",",this.maxReplaces=L||1e3,this.alwaysFormat=N!==void 0?N:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(e,i)=>(e==null?void 0:e.source)===i?(e.lastIndex=0,e):new RegExp(i,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(n,e,i,a){var x;let u,c,f;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=k=>{if(k.indexOf(this.formatSeparator)<0){const N=jg(e,p,k,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(N,void 0,i,{...a,...e,interpolationkey:k}):N}const C=k.split(this.formatSeparator),O=C.shift().trim(),L=C.join(this.formatSeparator).trim();return this.format(jg(e,p,O,this.options.keySeparator,this.options.ignoreJSONStructure),L,i,{...a,...e,interpolationkey:O})};this.resetRegExp();const m=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,b=((x=a==null?void 0:a.interpolation)==null?void 0:x.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:k=>Ju(k)},{regex:this.regexp,safeValue:k=>this.escapeValue?Ju(this.escape(k)):Ju(k)}].forEach(k=>{for(f=0;u=k.regex.exec(n);){const C=u[1].trim();if(c=h(C),c===void 0)if(typeof m=="function"){const L=m(n,u,a);c=We(L)?L:""}else if(a&&Object.prototype.hasOwnProperty.call(a,C))c="";else if(b){c=u[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${n}`),c="";else!We(c)&&!this.useRawValueToEscape&&(c=kg(c));const O=k.safeValue(c);if(n=n.replace(u[0],O),b?(k.regex.lastIndex+=c.length,k.regex.lastIndex-=u[0].length):k.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),n}nest(n,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,u,c;const f=(p,h)=>{const m=this.nestingOptionsSeparator;if(p.indexOf(m)<0)return p;const b=p.split(new RegExp(`${m}[ ]*{`));let w=`{${b[1]}`;p=b[0],w=this.interpolate(w,c);const x=w.match(/'/g),k=w.match(/"/g);(((x==null?void 0:x.length)??0)%2===0&&!k||k.length%2!==0)&&(w=w.replace(/'/g,'"'));try{c=JSON.parse(w),h&&(c={...h,...c})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,C),`${p}${m}${w}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,p};for(;a=this.nestingRegexp.exec(n);){let p=[];c={...i},c=c.replace&&!We(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;let h=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const m=a[1].split(this.formatSeparator).map(b=>b.trim());a[1]=m.shift(),p=m,h=!0}if(u=e(f.call(this,a[1].trim(),c),c),u&&a[0]===n&&!We(u))return u;We(u)||(u=kg(u)),u||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${n}`),u=""),h&&(u=p.reduce((m,b)=>this.format(m,b,i.lng,{...i,interpolationkey:a[1].trim()}),u.trim())),n=n.replace(a[0],u),this.regexp.lastIndex=0}return n}}const sw=o=>{let n=o.toLowerCase().trim();const e={};if(o.indexOf("(")>-1){const i=o.split("(");n=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);n==="currency"&&a.indexOf(":")<0?e.currency||(e.currency=a.trim()):n==="relativetime"&&a.indexOf(":")<0?e.range||(e.range=a.trim()):a.split(";").forEach(c=>{if(c){const[f,...p]=c.split(":"),h=p.join(":").trim().replace(/^'+|'+$/g,""),m=f.trim();e[m]||(e[m]=h),h==="false"&&(e[m]=!1),h==="true"&&(e[m]=!0),isNaN(h)||(e[m]=parseInt(h,10))}})}return{formatName:n,formatOptions:e}},fo=o=>{const n={};return(e,i,a)=>{let u=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(u={...u,[a.interpolationkey]:void 0});const c=i+JSON.stringify(u);let f=n[c];return f||(f=o(ql(i),a),n[c]=f),f(e)}};class uw{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_r.create("formatter"),this.options=n,this.formats={number:fo((e,i)=>{const a=new Intl.NumberFormat(e,{...i});return u=>a.format(u)}),currency:fo((e,i)=>{const a=new Intl.NumberFormat(e,{...i,style:"currency"});return u=>a.format(u)}),datetime:fo((e,i)=>{const a=new Intl.DateTimeFormat(e,{...i});return u=>a.format(u)}),relativetime:fo((e,i)=>{const a=new Intl.RelativeTimeFormat(e,{...i});return u=>a.format(u,i.range||"day")}),list:fo((e,i)=>{const a=new Intl.ListFormat(e,{...i});return u=>a.format(u)})},this.init(n)}init(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(n,e){this.formats[n.toLowerCase().trim()]=e}addCached(n,e){this.formats[n.toLowerCase().trim()]=fo(e)}format(n,e,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const u=e.split(this.formatSeparator);if(u.length>1&&u[0].indexOf("(")>1&&u[0].indexOf(")")<0&&u.find(f=>f.indexOf(")")>-1)){const f=u.findIndex(p=>p.indexOf(")")>-1);u[0]=[u[0],...u.splice(1,f)].join(this.formatSeparator)}return u.reduce((f,p)=>{var b;const{formatName:h,formatOptions:m}=sw(p);if(this.formats[h]){let w=f;try{const x=((b=a==null?void 0:a.formatParams)==null?void 0:b[a.interpolationkey])||{},k=x.locale||x.lng||a.locale||a.lng||i;w=this.formats[h](f,k,{...m,...a,...x})}catch(x){this.logger.warn(x)}return w}else this.logger.warn(`there was no format function for ${h}`);return f},n)}}const cw=(o,n)=>{o.pending[n]!==void 0&&(delete o.pending[n],o.pendingCount--)};class fw extends fs{constructor(n,e,i){var u,c;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=n,this.store=e,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=_r.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(c=(u=this.backend)==null?void 0:u.init)==null||c.call(u,i,a.backend,a)}queueLoad(n,e,i,a){const u={},c={},f={},p={};return n.forEach(h=>{let m=!0;e.forEach(b=>{const w=`${h}|${b}`;!i.reload&&this.store.hasResourceBundle(h,b)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?c[w]===void 0&&(c[w]=!0):(this.state[w]=1,m=!1,c[w]===void 0&&(c[w]=!0),u[w]===void 0&&(u[w]=!0),p[b]===void 0&&(p[b]=!0)))}),m||(f[h]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(p)}}loaded(n,e,i){const a=n.split("|"),u=a[0],c=a[1];e&&this.emit("failedLoading",u,c,e),!e&&i&&this.store.addResourceBundle(u,c,i,void 0,void 0,{skipCopy:!0}),this.state[n]=e?-1:2,e&&i&&(this.state[n]=0);const f={};this.queue.forEach(p=>{qb(p.loaded,[u],c),cw(p,n),e&&p.errors.push(e),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(h=>{f[h]||(f[h]={});const m=p.loaded[h];m.length&&m.forEach(b=>{f[h][b]===void 0&&(f[h][b]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(p=>!p.done)}read(n,e,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!n.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:e,fcName:i,tried:a,wait:u,callback:c});return}this.readingCalls++;const f=(h,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(h&&m&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,n,e,i,a+1,u*2,c)},u);return}c(h,m)},p=this.backend[i].bind(this.backend);if(p.length===2){try{const h=p(n,e);h&&typeof h.then=="function"?h.then(m=>f(null,m)).catch(f):f(null,h)}catch(h){f(h)}return}return p(n,e,f)}prepareLoading(n,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();We(n)&&(n=this.languageUtils.toResolveHierarchy(n)),We(e)&&(e=[e]);const u=this.queueLoad(n,e,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(c=>{this.loadOne(c)})}load(n,e,i){this.prepareLoading(n,e,{},i)}reload(n,e,i){this.prepareLoading(n,e,{reload:!0},i)}loadOne(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${e}loading namespace ${u} for language ${a} failed`,c),!c&&f&&this.logger.log(`${e}loaded namespace ${u} for language ${a}`,f),this.loaded(n,c,f)})}saveMissing(n,e,i,a,u){var p,h,m,b,w;let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((h=(p=this.services)==null?void 0:p.utils)!=null&&h.hasLoadedNamespace&&!((b=(m=this.services)==null?void 0:m.utils)!=null&&b.hasLoadedNamespace(e))){this.logger.warn(`did not save key "${i}" as the namespace "${e}" 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(!(i==null||i==="")){if((w=this.backend)!=null&&w.create){const x={...c,isUpdate:u},k=this.backend.create.bind(this.backend);if(k.length<6)try{let C;k.length===5?C=k(n,e,i,a,x):C=k(n,e,i,a),C&&typeof C.then=="function"?C.then(O=>f(null,O)).catch(f):f(null,C)}catch(C){f(C)}else k(n,e,i,a,f,x)}!n||!n[0]||this.store.addResource(n[0],e,i,a)}}}const Ag=()=>({debug:!1,initAsync:!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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o=>{let n={};if(typeof o[1]=="object"&&(n=o[1]),We(o[1])&&(n.defaultValue=o[1]),We(o[2])&&(n.tDescription=o[2]),typeof o[2]=="object"||typeof o[3]=="object"){const e=o[3]||o[2];Object.keys(e).forEach(i=>{n[i]=e[i]})}return n},interpolation:{escapeValue:!0,format:o=>o,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Dg=o=>{var n,e;return We(o.ns)&&(o.ns=[o.ns]),We(o.fallbackLng)&&(o.fallbackLng=[o.fallbackLng]),We(o.fallbackNS)&&(o.fallbackNS=[o.fallbackNS]),((e=(n=o.supportedLngs)==null?void 0:n.indexOf)==null?void 0:e.call(n,"cimode"))<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),typeof o.initImmediate=="boolean"&&(o.initAsync=o.initImmediate),o},Al=()=>{},dw=o=>{Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach(e=>{typeof o[e]=="function"&&(o[e]=o[e].bind(o))})};class ya extends fs{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Dg(n),this.services={},this.logger=_r,this.modules={external:[]},dw(this),e&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,e),this;setTimeout(()=>{this.init(n,e)},0)}}init(){var n=this;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof e=="function"&&(i=e,e={}),e.defaultNS==null&&e.ns&&(We(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const a=Ag();this.options={...a,...this.options,...Dg(e)},this.options.interpolation={...a.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const u=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?_r.init(u(this.modules.logger),this.options):_r.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=uw;const b=new Lg(this.options);this.store=new Ig(this.options.resources,this.options);const w=this.services;w.logger=_r,w.resourceStore=this.store,w.languageUtils=b,w.pluralResolver=new aw(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(w.formatter=u(m),w.formatter.init(w,this.options),this.options.interpolation.format=w.formatter.format.bind(w.formatter)),w.interpolator=new lw(this.options),w.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},w.backendConnector=new fw(u(this.modules.backend),w.resourceStore,w,this.options),w.backendConnector.on("*",function(x){for(var k=arguments.length,C=new Array(k>1?k-1:0),O=1;O<k;O++)C[O-1]=arguments[O];n.emit(x,...C)}),this.modules.languageDetector&&(w.languageDetector=u(this.modules.languageDetector),w.languageDetector.init&&w.languageDetector.init(w,this.options.detection,this.options)),this.modules.i18nFormat&&(w.i18nFormat=u(this.modules.i18nFormat),w.i18nFormat.init&&w.i18nFormat.init(this)),this.translator=new Jl(this.services,this.options),this.translator.on("*",function(x){for(var k=arguments.length,C=new Array(k>1?k-1:0),O=1;O<k;O++)C[O-1]=arguments[O];n.emit(x,...C)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Al),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=function(){return n.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return n.store[m](...arguments),n}});const p=Zo(),h=()=>{const m=(b,w)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(w),i(b,w)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),p}loadResources(n){var u,c;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Al;const a=We(n)?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const f=[],p=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(b=>{b!=="cimode"&&f.indexOf(b)<0&&f.push(b)})};a?p(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>p(m)),(c=(u=this.options.preload)==null?void 0:u.forEach)==null||c.call(u,h=>p(h)),this.services.backendConnector.load(f,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(h)})}else i(null)}reloadResources(n,e,i){const a=Zo();return typeof n=="function"&&(i=n,n=void 0),typeof e=="function"&&(i=e,e=void 0),n||(n=this.languages),e||(e=this.options.ns),i||(i=Al),this.services.backendConnector.reload(n,e,u=>{a.resolve(),i(u)}),a}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Bh.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(let e=0;e<this.languages.length;e++){const i=this.languages[e];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(n,e){var i=this;this.isLanguageChangingTo=n;const a=Zo();this.emit("languageChanging",n);const u=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},c=(p,h)=>{h?(u(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,a.resolve(function(){return i.t(...arguments)}),e&&e(p,function(){return i.t(...arguments)})},f=p=>{var m,b;!n&&!p&&this.services.languageDetector&&(p=[]);const h=We(p)?p:this.services.languageUtils.getBestMatchFromCodes(p);h&&(this.language||u(h),this.translator.language||this.translator.changeLanguage(h),(b=(m=this.services.languageDetector)==null?void 0:m.cacheUserLanguage)==null||b.call(m,h)),this.loadResources(h,w=>{c(w,h)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(n),a}getFixedT(n,e,i){var a=this;const u=function(c,f){let p;if(typeof f!="object"){for(var h=arguments.length,m=new Array(h>2?h-2:0),b=2;b<h;b++)m[b-2]=arguments[b];p=a.options.overloadTranslationOptionHandler([c,f].concat(m))}else p={...f};p.lng=p.lng||u.lng,p.lngs=p.lngs||u.lngs,p.ns=p.ns||u.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||i||u.keyPrefix);const w=a.options.keySeparator||".";let x;return p.keyPrefix&&Array.isArray(c)?x=c.map(k=>`${p.keyPrefix}${w}${k}`):x=p.keyPrefix?`${p.keyPrefix}${w}${c}`:c,a.t(x,p)};return We(n)?u.lng=n:u.lngs=n,u.ns=e,u.keyPrefix=i,u}t(){var a;for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return(a=this.translator)==null?void 0:a.translate(...e)}exists(){var a;for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];return(a=this.translator)==null?void 0:a.exists(...e)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n){let e=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;const i=e.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const c=(f,p)=>{const h=this.services.backendConnector.state[`${f}|${p}`];return h===-1||h===0||h===2};if(e.precheck){const f=e.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(i,n)&&(!a||c(u,n)))}loadNamespaces(n,e){const i=Zo();return this.options.ns?(We(n)&&(n=[n]),n.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),e&&e(a)}),i):(e&&e(),Promise.resolve())}loadLanguages(n,e){const i=Zo();We(n)&&(n=[n]);const a=this.options.preload||[],u=n.filter(c=>a.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return u.length?(this.options.preload=a.concat(u),this.loadResources(c=>{i.resolve(),e&&e(c)}),i):(e&&e(),Promise.resolve())}dir(n){var a,u;if(n||(n=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!n)return"rtl";const e=["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"],i=((u=this.services)==null?void 0:u.languageUtils)||new Lg(Ag());return e.indexOf(i.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new ya(n,e)}cloneInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Al;const i=n.forkResourceStore;i&&delete n.forkResourceStore;const a={...this.options,...n,isClone:!0},u=new ya(a);if((n.debug!==void 0||n.prefix!==void 0)&&(u.logger=u.logger.clone(n)),["store","services","language"].forEach(f=>{u[f]=this[f]}),u.services={...this.services},u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},i){const f=Object.keys(this.store.data).reduce((p,h)=>(p[h]={...this.store.data[h]},Object.keys(p[h]).reduce((m,b)=>(m[b]={...p[h][b]},m),{})),{});u.store=new Ig(f,a),u.services.resourceStore=u.store}return u.translator=new Jl(u.services,a),u.translator.on("*",function(f){for(var p=arguments.length,h=new Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];u.emit(f,...h)}),u.init(a,e),u.translator.options=a,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const On=ya.createInstance();On.createInstance=ya.createInstance;On.createInstance;On.dir;On.init;On.loadResources;On.reloadResources;On.use;On.changeLanguage;On.getFixedT;On.t;On.exists;On.setDefaultNamespace;On.hasLoadedNamespace;On.loadNamespaces;On.loadLanguages;const pw="ParoiCMS Site Generator",gw="Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.",hw="Supported languages: English, French.",mw="Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.",vw="Add a new text field to the page…",yw="Modify the Site Schema",bw="Create a Site Schema",ww="Generate the website",Sw="Generate site with sample data (recommended)",xw="Generate an empty site",Ew="Open the back-office",Cw="Open the site",kw="Generated Schema",Ow="Tree View",Pw="Site Schema",Tw="Node Types",Iw="Labels",Nw="Select language",Rw="Explanations from the IA",Lw="An error occurred: {{ message }}",_w="Close and start again",$w="Reset Schema",jw="unknown error",Aw="Create New Site",Dw="Generating your site…",zw="The site is generated",Fw="Email:",Mw="Password:",Hw="I agree",Vw="You are about to generate your website.",Bw="Cancel",Uw="Site URL:",Kw="Admin URL:",Ww="Copy all information to clipboard",Gw={title:pw,promptDescription:gw,supportedLanguages:hw,createPromptPlaceholder:mw,updatePromptPlaceholder:vw,modifySchema:yw,createSchema:bw,generateTheWebsite:ww,generateSiteWithData:Sw,generateEmptySite:xw,administration:Ew,viewSite:Cw,generatedSchema:kw,treeView:Ow,siteSchema:Pw,nodeTypes:Tw,labels:Iw,languageSelector:Nw,explanation:Rw,errorOccurred:Lw,reset:_w,resetSchema:$w,unknownError:jw,createNewSite:Aw,generatingSite:Dw,siteGenerated:zw,email:Fw,password:Mw,agree:Hw,aboutToGenerateWebsite:Vw,cancel:Bw,siteUrl:Uw,adminUrl:Kw,copyToClipboard:Ww},Yw="ParoiCMS - Générateur de Site",Qw="Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.",Xw="Langages autorisés : Français, Anglais.",qw="Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.",Zw="Ajoute un nouveau champ texte à la page…",Jw="Modifier le schéma du site",eS="Créer un schéma de site",tS="Générer le site web",nS="Générer le site avec des données d'exemple (recommendé)",rS="Générer un site vide",iS="Ouvrir l'espace d'administration du site",oS="Ouvrir le site",aS="Schéma généré",lS="Arborescence",sS="Schéma du site",uS="Types de nœuds",cS="Libellés",fS="Sélectionner la langue",dS="Explications de l'IA",pS="Une erreur est survenue : {{ message }}",gS="Fermer et réinitialiser",hS="Réinitialiser le schéma",mS="erreur inconnue",vS="Créer un nouveau site",yS="Génération de votre site…",bS="Le site est généré",wS="Email :",SS="Mot de passe :",xS="J'accepte",ES="Vous êtes sur le point de générer votre site web.",CS="Annuler",kS="URL du site :",OS="URL d'admin :",PS="Copier toutes les informations dans le presse-papier",TS={title:Yw,promptDescription:Qw,supportedLanguages:Xw,createPromptPlaceholder:qw,updatePromptPlaceholder:Zw,modifySchema:Jw,createSchema:eS,generateTheWebsite:tS,generateSiteWithData:nS,generateEmptySite:rS,administration:iS,viewSite:oS,generatedSchema:aS,treeView:lS,siteSchema:sS,nodeTypes:uS,labels:cS,languageSelector:fS,explanation:dS,errorOccurred:pS,reset:gS,resetSchema:hS,unknownError:mS,createNewSite:vS,generatingSite:yS,siteGenerated:bS,email:wS,password:SS,agree:xS,aboutToGenerateWebsite:ES,cancel:CS,siteUrl:kS,adminUrl:OS,copyToClipboard:PS},IS=`<p>
|
|
1177
|
+
`}}),Ml=v.forwardRef(function(i,n){var e=Yn(),o=v.useContext(Gt),a=$l.getProps(i,o),u=v.useState(a.id),c=Cg(u,2),f=c[0],p=c[1],h=v.useState(a.collapsed),m=Cg(h,2),b=m[0],w=m[1],x=v.useRef(null),k=v.useRef(null),C=a.toggleable?a.onToggle?a.collapsed:b:!1,O=f+"_header",_=f+"_content",N=$l.setMetaData({props:a,state:{id:f,collapsed:C}}),j=N.ptm,$=N.cx,Y=N.isUnstyled;Dr($l.css.styles,Y,{name:"panel"});var ie=function(z){a.toggleable&&(C?Q(z):D(z),z&&(a.onToggle&&a.onToggle({originalEvent:z,value:!C}),z.preventDefault()))},Q=function(z){a.onToggle||w(!1),a.onExpand&&z&&a.onExpand(z)},D=function(z){a.onToggle||w(!0),a.onCollapse&&z&&a.onCollapse(z)};v.useImperativeHandle(n,function(){return{props:a,toggle:ie,expand:Q,collapse:D,getElement:function(){return x.current},getContent:function(){return k.current}}}),Ar(function(){f||p(ba())});var F=function(){if(a.toggleable){var z=f+"_label",J=e({className:$("toggler"),onClick:ie,id:z,"aria-controls":_,"aria-expanded":!C,type:"button",role:"button","aria-label":a.header},j("toggler")),B=e(j("togglericon")),P=C?a.expandIcon||v.createElement(zh,B):a.collapseIcon||v.createElement(Dh,B),U=jr.getJSXIcon(P,B,{props:a,collapsed:C});return v.createElement("button",J,U,v.createElement(ho,null))}return null},q=function(){var z=V.getJSXElement(a.header,a),J=V.getJSXElement(a.icons,a),B=F(),P=e({id:O,className:$("title")},j("title")),U=v.createElement("span",P,z),ce=e({className:$("icons")},j("icons")),de=v.createElement("div",ce,J,B),Te=e({className:$("header")},j("header")),ze=v.createElement("div",Te,U,de);if(a.headerTemplate){var Me={className:"p-panel-header",titleClassName:"p-panel-title",iconsClassName:"p-panel-icons",togglerClassName:"p-panel-header-icon p-panel-toggler p-link",onTogglerClick:ie,titleElement:U,iconsElement:de,togglerElement:B,element:ze,id:f+"_header",props:a,collapsed:C};return V.getJSXElement(a.headerTemplate,Me)}else if(a.header||a.toggleable)return ze;return null},K=function(){var z=V.getJSXElement(a.footer,a),J=e({className:$("footer")},j("footer")),B=v.createElement("div",J,z);if(a.footerTemplate){var P={className:$("footer"),element:B,props:a};return V.getJSXElement(a.footerTemplate,P)}else if(a.footer)return B;return null},se=function(){var z=e({ref:k,className:$("toggleableContent"),"aria-hidden":C,role:"region",id:_,"aria-labelledby":O},j("toggleablecontent")),J=e({className:$("content")},j("content")),B=e({classNames:$("transition"),timeout:{enter:1e3,exit:450},in:!C,unmountOnExit:!0,options:a.transitionOptions},j("transition"));return v.createElement(ss,Dc({nodeRef:k},B),v.createElement("div",z,v.createElement("div",J,a.children)))},oe=e({id:f,ref:x,style:a.style,className:Be(a.className,$("root"))},$l.getOtherProps(a),j("root")),ye=q(),X=se(),ve=K();return v.createElement("div",oe,ye,X,ve)});Ml.displayName="Panel";const Lb=i=>typeof i=="boolean"||i instanceof Boolean,jb=i=>typeof i=="number"||i instanceof Number,$b=i=>typeof i=="bigint"||i instanceof BigInt,Fh=i=>!!i&&i instanceof Date,Ab=i=>typeof i=="string"||i instanceof String,Db=i=>Array.isArray(i),zb=i=>typeof i=="object"&&i!==null,Mh=i=>!!i&&i instanceof Object&&typeof i=="function";function Yl(i,n){return n===void 0&&(n=!1),!i||n?`"${i}"`:i}function Fb(i,n,e){return e?JSON.stringify(i):n?`"${i}"`:i}function Hh(i){let{field:n,value:e,data:o,lastElement:a,openBracket:u,closeBracket:c,level:f,style:p,shouldExpandNode:h,clickToExpandNode:m,outerRef:b,beforeExpandChange:w}=i;const x=v.useRef(!1),[k,C]=v.useState(()=>h(f,e,n)),O=v.useRef(null);v.useEffect(()=>{x.current?C(h(f,e,n)):x.current=!0},[h]);const _=v.useId();if(o.length===0)return Mb({field:n,openBracket:u,closeBracket:c,lastElement:a,style:p});const N=k?p.collapseIcon:p.expandIcon,j=k?p.ariaLables.collapseJson:p.ariaLables.expandJson,$=f+1,Y=o.length-1,ie=F=>{k!==F&&(!w||w({level:f,value:e,field:n,newExpandValue:F}))&&C(F)},Q=F=>{if(F.key==="ArrowRight"||F.key==="ArrowLeft")F.preventDefault(),ie(F.key==="ArrowRight");else if(F.key==="ArrowUp"||F.key==="ArrowDown"){F.preventDefault();const q=F.key==="ArrowUp"?-1:1;if(!b.current)return;const K=b.current.querySelectorAll("[role=button]");let se=-1;for(let ye=0;ye<K.length;ye++)if(K[ye].tabIndex===0){se=ye;break}if(se<0)return;const oe=(se+q+K.length)%K.length;K[se].tabIndex=-1,K[oe].tabIndex=0,K[oe].focus()}},D=()=>{var F;ie(!k);const q=O.current;if(!q)return;const K=(F=b.current)===null||F===void 0?void 0:F.querySelector('[role=button][tabindex="0"]');K&&(K.tabIndex=-1),q.tabIndex=0,q.focus()};return v.createElement("div",{className:p.basicChildStyle,role:"treeitem","aria-expanded":k,"aria-selected":void 0},v.createElement("span",{className:N,onClick:D,onKeyDown:Q,role:"button","aria-label":j,"aria-expanded":k,"aria-controls":k?_:void 0,ref:O,tabIndex:f===0?0:-1}),(n||n==="")&&(m?v.createElement("span",{className:p.clickableLabel,onClick:D,onKeyDown:Q},Yl(n,p.quotesForFieldNames),":"):v.createElement("span",{className:p.label},Yl(n,p.quotesForFieldNames),":")),v.createElement("span",{className:p.punctuation},u),k?v.createElement("ul",{id:_,role:"group",className:p.childFieldsContainer},o.map((F,q)=>v.createElement(Vh,{key:F[0]||q,field:F[0],value:F[1],style:p,lastElement:q===Y,level:$,shouldExpandNode:h,clickToExpandNode:m,outerRef:b}))):v.createElement("span",{className:p.collapsedContent,onClick:D,onKeyDown:Q}),v.createElement("span",{className:p.punctuation},c),!a&&v.createElement("span",{className:p.punctuation},","))}function Mb(i){let{field:n,openBracket:e,closeBracket:o,lastElement:a,style:u}=i;return v.createElement("div",{className:u.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||n==="")&&v.createElement("span",{className:u.label},Yl(n,u.quotesForFieldNames),":"),v.createElement("span",{className:u.punctuation},e),v.createElement("span",{className:u.punctuation},o),!a&&v.createElement("span",{className:u.punctuation},","))}function Hb(i){let{field:n,value:e,style:o,lastElement:a,shouldExpandNode:u,clickToExpandNode:c,level:f,outerRef:p,beforeExpandChange:h}=i;return Hh({field:n,value:e,lastElement:a||!1,level:f,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:u,clickToExpandNode:c,data:Object.keys(e).map(m=>[m,e[m]]),outerRef:p,beforeExpandChange:h})}function Vb(i){let{field:n,value:e,style:o,lastElement:a,level:u,shouldExpandNode:c,clickToExpandNode:f,outerRef:p,beforeExpandChange:h}=i;return Hh({field:n,value:e,lastElement:a||!1,level:u,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:c,clickToExpandNode:f,data:e.map(m=>[void 0,m]),outerRef:p,beforeExpandChange:h})}function Bb(i){let{field:n,value:e,style:o,lastElement:a}=i,u,c=o.otherValue;return e===null?(u="null",c=o.nullValue):e===void 0?(u="undefined",c=o.undefinedValue):Ab(e)?(u=Fb(e,!o.noQuotesForStringValues,o.stringifyStringValues),c=o.stringValue):Lb(e)?(u=e?"true":"false",c=o.booleanValue):jb(e)?(u=e.toString(),c=o.numberValue):$b(e)?(u=`${e.toString()}n`,c=o.numberValue):Fh(e)?u=e.toISOString():Mh(e)?u="function() { }":u=e.toString(),v.createElement("div",{className:o.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||n==="")&&v.createElement("span",{className:o.label},Yl(n,o.quotesForFieldNames),":"),v.createElement("span",{className:c},u),!a&&v.createElement("span",{className:o.punctuation},","))}function Vh(i){const n=i.value;return Db(n)?v.createElement(Vb,Object.assign({},i)):zb(n)&&!Fh(n)&&!Mh(n)?v.createElement(Hb,Object.assign({},i)):v.createElement(Bb,Object.assign({},i))}var zn={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti"};const Ub={collapseJson:"collapse JSON",expandJson:"expand JSON"},Ql={container:zn["container-light"],basicChildStyle:zn["basic-element-style"],childFieldsContainer:zn["child-fields-container"],label:zn["label-light"],clickableLabel:zn["clickable-label-light"],nullValue:zn["value-null-light"],undefinedValue:zn["value-undefined-light"],stringValue:zn["value-string-light"],booleanValue:zn["value-boolean-light"],numberValue:zn["value-number-light"],otherValue:zn["value-other-light"],punctuation:zn["punctuation-light"],collapseIcon:zn["collapse-icon-light"],expandIcon:zn["expand-icon-light"],collapsedContent:zn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:Ub,stringifyStringValues:!1},zc=()=>!0,kg=i=>{let{data:n,style:e=Ql,shouldExpandNode:o=zc,clickToExpandNode:a=!1,beforeExpandChange:u,...c}=i;const f=v.useRef(null);return v.createElement("div",Object.assign({"aria-label":"JSON view"},c,{className:e.container,ref:f,role:"tree"}),v.createElement(Vh,{value:n,style:{...Ql,...e},lastElement:!0,level:0,shouldExpandNode:o,clickToExpandNode:a,outerRef:f,beforeExpandChange:u}))};function Kb(i){const n=Object.keys(i),e=n.length>0?n[0]:void 0;return(o,a,u={})=>{if(!e)return u.default??o;const c=i[a]??i[e],f=o.split(".");let p=c;for(const h of f){if(typeof p=="string"||!p||!(h in p))return u.default??o;p=p[h]}return typeof p=="string"?p:u.default??o}}function Wb({siteSchema:i,schemaTranslate:n}){return G.jsx("ul",{children:G.jsx(Fc,{schema:i,schemaT:n,typeName:"home"})})}function Fc({schema:i,schemaT:n,typeName:e,depth:o=0}){const{i18n:a}=hi(),u=Gb(i,e);if(!u)return null;const c=u.routingChildren||[],f=u.regularChildren||[],p=u.lists||[],h=u.documentKind==="routing",m=n(`nodeTypes.${e}.label`,a.language,{default:e});return G.jsxs("li",{children:[G.jsxs("div",{children:[h?G.jsx("strong",{children:m}):m," (",G.jsx("code",{children:e}),")"]}),p.map(b=>G.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[n(`nodeTypes.${e}.lists.${b.listName}.label`,a.language,{default:b.listName})," ","(",G.jsx("code",{children:b.listName})," [",G.jsx("code",{children:b.parts.join("</code>, <code>")}),"])"]},b.listName)),c.length>0&&G.jsx("ul",{children:c.map(b=>G.jsx(Fc,{schema:i,schemaT:n,typeName:b,depth:o+1},b))}),f.length>0&&G.jsx("ul",{children:f.map(b=>G.jsx(Fc,{schema:i,schemaT:n,typeName:b,depth:o+1},b))})]})}function Gb(i,n){var e;return(e=i.nodeTypes)==null?void 0:e.find(o=>o.kind==="document"&&o.typeName===n)}function Yb({generatedSchema:i}){const{t:n}=hi(),{siteSchema:e,l10n:o}=i,a=Kb(o);return G.jsxs("div",{className:"SiteSchemaViewer",children:[G.jsx("h2",{children:n("generatedSchema")}),G.jsx(Ml,{header:n("treeView"),children:G.jsx(Wb,{siteSchema:e,schemaTranslate:a})}),G.jsx(Ml,{header:n("siteSchema"),className:"mt-2",children:G.jsx(kg,{data:e,shouldExpandNode:zc,style:Ql})}),G.jsx(Ml,{header:n("labels"),className:"mt-2",children:G.jsx(kg,{data:o,shouldExpandNode:zc,style:Ql})})]})}function Qb(){const{i18n:i}=hi(),[n,e]=v.useState(),[o,a]=v.useState({generatedSchema:void 0,explanation:"",errorMessage:""}),[u,c]=v.useState(!1),[f,p]=v.useState(!1),[h,m]=v.useState();v.useEffect(()=>{const O=sessionStorage.getItem("promptState");O&&a(JSON.parse(O));const _=sessionStorage.getItem("sessionToken");_&&(U1(_)?e(_):sessionStorage.removeItem("sessionToken"));const N=sessionStorage.getItem("generatedSite");N&&m(JSON.parse(N))},[]);const b=O=>{if(a(O),!O.errorMessage&&(sessionStorage.setItem("promptState",JSON.stringify(O)),O.generatedSchema)){const _=O.generatedSchema.siteSchema.languages[0];_&&i.changeLanguage(_)}},w=O=>{e(O),sessionStorage.setItem("sessionToken",O)},x=O=>{c(!0),p(O)},k=O=>{m(O),sessionStorage.setItem("generatedSite",JSON.stringify(O))},C=()=>{a({generatedSchema:void 0,explanation:"",errorMessage:""}),c(!1),m(void 0),sessionStorage.removeItem("promptState"),sessionStorage.removeItem("generatedSite")};return n?G.jsx(Mp,{children:G.jsxs("div",{className:"App",children:[G.jsx("div",{className:"App-content",children:n?(u||h)&&o.generatedSchema?G.jsx(K1,{generatedSchema:o.generatedSchema,withFakeContent:f,generatedSite:h,onGenerated:k,onReset:C}):o.generatedSchema?G.jsx("div",{className:"flex flex-column align-items-center w-full",children:G.jsxs(Zg,{className:"w-full",children:[G.jsx(uc,{size:40,children:G.jsx("div",{children:G.jsx(xg,{promptState:o,setPromptState:b,onGenerateSite:x})})}),G.jsx(uc,{size:60,children:o.generatedSchema&&G.jsx(Yb,{generatedSchema:o.generatedSchema})})]})}):G.jsx(xg,{promptState:o,setPromptState:b}):G.jsx(tg,{onVerified:w})}),G.jsx(Yp,{})]})}):G.jsx(Mp,{children:G.jsxs("div",{className:"App",children:[G.jsx("div",{className:"App-content",children:G.jsx(tg,{onVerified:w})}),G.jsx(Yp,{})]})})}const We=i=>typeof i=="string",Zo=()=>{let i,n;const e=new Promise((o,a)=>{i=o,n=a});return e.resolve=i,e.reject=n,e},Og=i=>i==null?"":""+i,Xb=(i,n,e)=>{i.forEach(o=>{n[o]&&(e[o]=n[o])})},qb=/###/g,Pg=i=>i&&i.indexOf("###")>-1?i.replace(qb,"."):i,Tg=i=>!i||We(i),aa=(i,n,e)=>{const o=We(n)?n.split("."):n;let a=0;for(;a<o.length-1;){if(Tg(i))return{};const u=Pg(o[a]);!i[u]&&e&&(i[u]=new e),Object.prototype.hasOwnProperty.call(i,u)?i=i[u]:i={},++a}return Tg(i)?{}:{obj:i,k:Pg(o[a])}},Ig=(i,n,e)=>{const{obj:o,k:a}=aa(i,n,Object);if(o!==void 0||n.length===1){o[a]=e;return}let u=n[n.length-1],c=n.slice(0,n.length-1),f=aa(i,c,Object);for(;f.obj===void 0&&c.length;)u=`${c[c.length-1]}.${u}`,c=c.slice(0,c.length-1),f=aa(i,c,Object),f!=null&&f.obj&&typeof f.obj[`${f.k}.${u}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${u}`]=e},Zb=(i,n,e,o)=>{const{obj:a,k:u}=aa(i,n,Object);a[u]=a[u]||[],a[u].push(e)},Xl=(i,n)=>{const{obj:e,k:o}=aa(i,n);if(e&&Object.prototype.hasOwnProperty.call(e,o))return e[o]},Jb=(i,n,e)=>{const o=Xl(i,e);return o!==void 0?o:Xl(n,e)},Bh=(i,n,e)=>{for(const o in n)o!=="__proto__"&&o!=="constructor"&&(o in i?We(i[o])||i[o]instanceof String||We(n[o])||n[o]instanceof String?e&&(i[o]=n[o]):Bh(i[o],n[o],e):i[o]=n[o]);return i},co=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ew={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const tw=i=>We(i)?i.replace(/[&<>"'\/]/g,n=>ew[n]):i;class nw{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const e=this.regExpMap.get(n);if(e!==void 0)return e;const o=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,o),this.regExpQueue.push(n),o}}const rw=[" ",",","?","!",";"],iw=new nw(20),ow=(i,n,e)=>{n=n||"",e=e||"";const o=rw.filter(c=>n.indexOf(c)<0&&e.indexOf(c)<0);if(o.length===0)return!0;const a=iw.getRegExp(`(${o.map(c=>c==="?"?"\\?":c).join("|")})`);let u=!a.test(i);if(!u){const c=i.indexOf(e);c>0&&!a.test(i.substring(0,c))&&(u=!0)}return u},Mc=function(i,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!i)return;if(i[n])return Object.prototype.hasOwnProperty.call(i,n)?i[n]:void 0;const o=n.split(e);let a=i;for(let u=0;u<o.length;){if(!a||typeof a!="object")return;let c,f="";for(let p=u;p<o.length;++p)if(p!==u&&(f+=e),f+=o[p],c=a[f],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&p<o.length-1)continue;u+=p-u+1;break}a=c}return a},ql=i=>i==null?void 0:i.replace("_","-"),aw={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,n){var e,o;(o=(e=console==null?void 0:console[i])==null?void 0:e.apply)==null||o.call(e,console,n)}};class Zl{constructor(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(n,e)}init(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=n||aw,this.options=e,this.debug=e.debug}log(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return this.forward(e,"log","",!0)}warn(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return this.forward(e,"warn","",!0)}error(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return this.forward(e,"error","")}deprecate(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(n,e,o,a){return a&&!this.debug?null:(We(n[0])&&(n[0]=`${o}${this.prefix} ${n[0]}`),this.logger[e](n))}create(n){return new Zl(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new Zl(this.logger,n)}}var Lr=new Zl;class fs{constructor(){this.observers={}}on(n,e){return n.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const a=this.observers[o].get(e)||0;this.observers[o].set(e,a+1)}),this}off(n,e){if(this.observers[n]){if(!e){delete this.observers[n];return}this.observers[n].delete(e)}}emit(n){for(var e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];this.observers[n]&&Array.from(this.observers[n].entries()).forEach(c=>{let[f,p]=c;for(let h=0;h<p;h++)f(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(c=>{let[f,p]=c;for(let h=0;h<p;h++)f.apply(f,[n,...o])})}}class Ng extends fs{constructor(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=n||{},this.options=e,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const e=this.options.ns.indexOf(n);e>-1&&this.options.ns.splice(e,1)}getResource(n,e,o){var h,m;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;n.indexOf(".")>-1?f=n.split("."):(f=[n,e],o&&(Array.isArray(o)?f.push(...o):We(o)&&u?f.push(...o.split(u)):f.push(o)));const p=Xl(this.data,f);return!p&&!e&&!o&&n.indexOf(".")>-1&&(n=f[0],e=f[1],o=f.slice(2).join(".")),p||!c||!We(o)?p:Mc((m=(h=this.data)==null?void 0:h[n])==null?void 0:m[e],o,u)}addResource(n,e,o,a){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const c=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let f=[n,e];o&&(f=f.concat(c?o.split(c):o)),n.indexOf(".")>-1&&(f=n.split("."),a=e,e=f[1]),this.addNamespaces(e),Ig(this.data,f,a),u.silent||this.emit("added",n,e,o,a)}addResources(n,e,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const u in o)(We(o[u])||Array.isArray(o[u]))&&this.addResource(n,e,u,o[u],{silent:!0});a.silent||this.emit("added",n,e,o)}addResourceBundle(n,e,o,a,u){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},f=[n,e];n.indexOf(".")>-1&&(f=n.split("."),a=o,o=e,e=f[1]),this.addNamespaces(e);let p=Xl(this.data,f)||{};c.skipCopy||(o=JSON.parse(JSON.stringify(o))),a?Bh(p,o,u):p={...p,...o},Ig(this.data,f,p),c.silent||this.emit("added",n,e,o)}removeResourceBundle(n,e){this.hasResourceBundle(n,e)&&delete this.data[n][e],this.removeNamespaces(e),this.emit("removed",n,e)}hasResourceBundle(n,e){return this.getResource(n,e)!==void 0}getResourceBundle(n,e){return e||(e=this.options.defaultNS),this.getResource(n,e)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const e=this.getDataByLanguage(n);return!!(e&&Object.keys(e)||[]).find(a=>e[a]&&Object.keys(e[a]).length>0)}toJSON(){return this.data}}var Uh={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,n,e,o,a){return i.forEach(u=>{var c;n=((c=this.processors[u])==null?void 0:c.process(n,e,o,a))??n}),n}};const Rg={},_g=i=>!We(i)&&typeof i!="boolean"&&typeof i!="number";class Jl extends fs{constructor(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Xb(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=e,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Lr.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;const o=this.resolve(n,e);return(o==null?void 0:o.res)!==void 0}extractFromKey(n,e){let o=e.nsSeparator!==void 0?e.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const a=e.keySeparator!==void 0?e.keySeparator:this.options.keySeparator;let u=e.ns||this.options.defaultNS||[];const c=o&&n.indexOf(o)>-1,f=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!ow(n,o,a);if(c&&!f){const p=n.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:n,namespaces:We(u)?[u]:u};const h=n.split(o);(o!==a||o===a&&this.options.ns.indexOf(h[0])>-1)&&(u=h.shift()),n=h.join(a)}return{key:n,namespaces:We(u)?[u]:u}}translate(n,e,o){if(typeof e!="object"&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),typeof e=="object"&&(e={...e}),e||(e={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);const a=e.returnDetails!==void 0?e.returnDetails:this.options.returnDetails,u=e.keySeparator!==void 0?e.keySeparator:this.options.keySeparator,{key:c,namespaces:f}=this.extractFromKey(n[n.length-1],e),p=f[f.length-1],h=e.lng||this.language,m=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((h==null?void 0:h.toLowerCase())==="cimode"){if(m){const K=e.nsSeparator||this.options.nsSeparator;return a?{res:`${p}${K}${c}`,usedKey:c,exactUsedKey:c,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(e)}:`${p}${K}${c}`}return a?{res:c,usedKey:c,exactUsedKey:c,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(e)}:c}const b=this.resolve(n,e);let w=b==null?void 0:b.res;const x=(b==null?void 0:b.usedKey)||c,k=(b==null?void 0:b.exactUsedKey)||c,C=["[object Number]","[object Function]","[object RegExp]"],O=e.joinArrays!==void 0?e.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,N=e.count!==void 0&&!We(e.count),j=Jl.hasDefaultValue(e),$=N?this.pluralResolver.getSuffix(h,e.count,e):"",Y=e.ordinal&&N?this.pluralResolver.getSuffix(h,e.count,{ordinal:!1}):"",ie=N&&!e.ordinal&&e.count===0,Q=ie&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${$}`]||e[`defaultValue${Y}`]||e.defaultValue;let D=w;_&&!w&&j&&(D=Q);const F=_g(D),q=Object.prototype.toString.apply(D);if(_&&D&&F&&C.indexOf(q)<0&&!(We(O)&&Array.isArray(D))){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,D,{...e,ns:f}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(b.res=K,b.usedParams=this.getUsedParamsDetails(e),b):K}if(u){const K=Array.isArray(D),se=K?[]:{},oe=K?k:x;for(const ye in D)if(Object.prototype.hasOwnProperty.call(D,ye)){const X=`${oe}${u}${ye}`;j&&!w?se[ye]=this.translate(X,{...e,defaultValue:_g(Q)?Q[ye]:void 0,joinArrays:!1,ns:f}):se[ye]=this.translate(X,{...e,joinArrays:!1,ns:f}),se[ye]===X&&(se[ye]=D[ye])}w=se}}else if(_&&We(O)&&Array.isArray(w))w=w.join(O),w&&(w=this.extendTranslation(w,n,e,o));else{let K=!1,se=!1;!this.isValidLookup(w)&&j&&(K=!0,w=Q),this.isValidLookup(w)||(se=!0,w=c);const ye=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&se?void 0:w,X=j&&Q!==w&&this.options.updateMissing;if(se||K||X){if(this.logger.log(X?"updateKey":"missingKey",h,p,c,X?Q:w),u){const J=this.resolve(c,{...e,keySeparator:!1});J&&J.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.")}let ve=[];const ke=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ke&&ke[0])for(let J=0;J<ke.length;J++)ve.push(ke[J]);else this.options.saveMissingTo==="all"?ve=this.languageUtils.toResolveHierarchy(e.lng||this.language):ve.push(e.lng||this.language);const z=(J,B,P)=>{var ce;const U=j&&P!==w?P:ye;this.options.missingKeyHandler?this.options.missingKeyHandler(J,p,B,U,X,e):(ce=this.backendConnector)!=null&&ce.saveMissing&&this.backendConnector.saveMissing(J,p,B,U,X,e),this.emit("missingKey",J,p,B,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?ve.forEach(J=>{const B=this.pluralResolver.getSuffixes(J,e);ie&&e[`defaultValue${this.options.pluralSeparator}zero`]&&B.indexOf(`${this.options.pluralSeparator}zero`)<0&&B.push(`${this.options.pluralSeparator}zero`),B.forEach(P=>{z([J],c+P,e[`defaultValue${P}`]||Q)})}):z(ve,c,Q))}w=this.extendTranslation(w,n,e,b,o),se&&w===c&&this.options.appendNamespaceToMissingKey&&(w=`${p}:${c}`),(se||K)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}:${c}`:c,K?w:void 0))}return a?(b.res=w,b.usedParams=this.getUsedParamsDetails(e),b):w}extendTranslation(n,e,o,a,u){var h,m;var c=this;if((h=this.i18nFormat)!=null&&h.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const b=We(n)&&(((m=o==null?void 0:o.interpolation)==null?void 0:m.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let w;if(b){const k=n.match(this.interpolator.nestingRegexp);w=k&&k.length}let x=o.replace&&!We(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),n=this.interpolator.interpolate(n,x,o.lng||this.language||a.usedLng,o),b){const k=n.match(this.interpolator.nestingRegexp),C=k&&k.length;w<C&&(o.nest=!1)}!o.lng&&a&&a.res&&(o.lng=this.language||a.usedLng),o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var k=arguments.length,C=new Array(k),O=0;O<k;O++)C[O]=arguments[O];return(u==null?void 0:u[0])===C[0]&&!o.context?(c.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${e[0]}`),null):c.translate(...C,e)},o)),o.interpolation&&this.interpolator.reset()}const f=o.postProcess||this.options.postProcess,p=We(f)?[f]:f;return n!=null&&(p!=null&&p.length)&&o.applyPostProcessor!==!1&&(n=Uh.handle(p,n,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),n}resolve(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,a,u,c,f;return We(n)&&(n=[n]),n.forEach(p=>{if(this.isValidLookup(o))return;const h=this.extractFromKey(p,e),m=h.key;a=m;let b=h.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const w=e.count!==void 0&&!We(e.count),x=w&&!e.ordinal&&e.count===0,k=e.context!==void 0&&(We(e.context)||typeof e.context=="number")&&e.context!=="",C=e.lngs?e.lngs:this.languageUtils.toResolveHierarchy(e.lng||this.language,e.fallbackLng);b.forEach(O=>{var _,N;this.isValidLookup(o)||(f=O,!Rg[`${C[0]}-${O}`]&&((_=this.utils)!=null&&_.hasLoadedNamespace)&&!((N=this.utils)!=null&&N.hasLoadedNamespace(f))&&(Rg[`${C[0]}-${O}`]=!0,this.logger.warn(`key "${a}" for languages "${C.join(", ")}" won't get resolved as namespace "${f}" 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!!!")),C.forEach(j=>{var ie;if(this.isValidLookup(o))return;c=j;const $=[m];if((ie=this.i18nFormat)!=null&&ie.addLookupKeys)this.i18nFormat.addLookupKeys($,m,j,O,e);else{let Q;w&&(Q=this.pluralResolver.getSuffix(j,e.count,e));const D=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&($.push(m+Q),e.ordinal&&Q.indexOf(F)===0&&$.push(m+Q.replace(F,this.options.pluralSeparator)),x&&$.push(m+D)),k){const q=`${m}${this.options.contextSeparator}${e.context}`;$.push(q),w&&($.push(q+Q),e.ordinal&&Q.indexOf(F)===0&&$.push(q+Q.replace(F,this.options.pluralSeparator)),x&&$.push(q+D))}}let Y;for(;Y=$.pop();)this.isValidLookup(o)||(u=Y,o=this.getResource(j,O,Y,e))}))})}),{res:o,usedKey:a,exactUsedKey:u,usedLng:c,usedNS:f}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,e,o){var u;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(u=this.i18nFormat)!=null&&u.getResource?this.i18nFormat.getResource(n,e,o,a):this.resourceStore.getResource(n,e,o,a)}getUsedParamsDetails(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=n.replace&&!We(n.replace);let a=o?n.replace:n;if(o&&typeof n.count<"u"&&(a.count=n.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!o){a={...a};for(const u of e)delete a[u]}return a}static hasDefaultValue(n){const e="defaultValue";for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&e===o.substring(0,e.length)&&n[o]!==void 0)return!0;return!1}}class Lg{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Lr.create("languageUtils")}getScriptPartFromCode(n){if(n=ql(n),!n||n.indexOf("-")<0)return null;const e=n.split("-");return e.length===2||(e.pop(),e[e.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(e.join("-"))}getLanguagePartFromCode(n){if(n=ql(n),!n||n.indexOf("-")<0)return n;const e=n.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(n){if(We(n)&&n.indexOf("-")>-1){let e;try{e=Intl.getCanonicalLocales(n)[0]}catch{}return e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let e;return n.forEach(o=>{if(e)return;const a=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(a))&&(e=a)}),!e&&this.options.supportedLngs&&n.forEach(o=>{if(e)return;const a=this.getLanguagePartFromCode(o);if(this.isSupportedCode(a))return e=a;e=this.options.supportedLngs.find(u=>{if(u===a)return u;if(!(u.indexOf("-")<0&&a.indexOf("-")<0)&&(u.indexOf("-")>0&&a.indexOf("-")<0&&u.substring(0,u.indexOf("-"))===a||u.indexOf(a)===0&&a.length>1))return u})}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(n,e){if(!n)return[];if(typeof n=="function"&&(n=n(e)),We(n)&&(n=[n]),Array.isArray(n))return n;if(!e)return n.default||[];let o=n[e];return o||(o=n[this.getScriptPartFromCode(e)]),o||(o=n[this.formatLanguageCode(e)]),o||(o=n[this.getLanguagePartFromCode(e)]),o||(o=n.default),o||[]}toResolveHierarchy(n,e){const o=this.getFallbackCodes(e||this.options.fallbackLng||[],n),a=[],u=c=>{c&&(this.isSupportedCode(c)?a.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return We(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(n))):We(n)&&u(this.formatLanguageCode(n)),o.forEach(c=>{a.indexOf(c)<0&&u(this.formatLanguageCode(c))}),a}}const jg={zero:0,one:1,two:2,few:3,many:4,other:5},$g={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class lw{constructor(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=n,this.options=e,this.logger=Lr.create("pluralResolver"),this.pluralRulesCache={}}addRule(n,e){this.rules[n]=e}clearCache(){this.pluralRulesCache={}}getRule(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=ql(n==="dev"?"en":n),a=e.ordinal?"ordinal":"cardinal",u=JSON.stringify({cleanedCode:o,type:a});if(u in this.pluralRulesCache)return this.pluralRulesCache[u];let c;try{c=new Intl.PluralRules(o,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),$g;if(!n.match(/-|_/))return $g;const p=this.languageUtils.getLanguagePartFromCode(n);c=this.getRule(p,e)}return this.pluralRulesCache[u]=c,c}needsPlural(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,e);return o||(o=this.getRule("dev",e)),(o==null?void 0:o.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(n,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(a=>`${e}${a}`)}getSuffixes(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,e);return o||(o=this.getRule("dev",e)),o?o.resolvedOptions().pluralCategories.sort((a,u)=>jg[a]-jg[u]).map(a=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(n,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(n,o);return a?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${a.select(e)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",e,o))}}const Ag=function(i,n,e){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,u=Jb(i,n,e);return!u&&a&&We(e)&&(u=Mc(i,e,o),u===void 0&&(u=Mc(n,e,o))),u},Ju=i=>i.replace(/\$/g,"$$$$");class sw{constructor(){var e;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Lr.create("interpolator"),this.options=n,this.format=((e=n==null?void 0:n.interpolation)==null?void 0:e.format)||(o=>o),this.init(n)}init(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});const{escape:e,escapeValue:o,useRawValueToEscape:a,prefix:u,prefixEscaped:c,suffix:f,suffixEscaped:p,formatSeparator:h,unescapeSuffix:m,unescapePrefix:b,nestingPrefix:w,nestingPrefixEscaped:x,nestingSuffix:k,nestingSuffixEscaped:C,nestingOptionsSeparator:O,maxReplaces:_,alwaysFormat:N}=n.interpolation;this.escape=e!==void 0?e:tw,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=u?co(u):c||"{{",this.suffix=f?co(f):p||"}}",this.formatSeparator=h||",",this.unescapePrefix=m?"":b||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=w?co(w):x||co("$t("),this.nestingSuffix=k?co(k):C||co(")"),this.nestingOptionsSeparator=O||",",this.maxReplaces=_||1e3,this.alwaysFormat=N!==void 0?N:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(e,o)=>(e==null?void 0:e.source)===o?(e.lastIndex=0,e):new RegExp(o,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(n,e,o,a){var x;let u,c,f;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=k=>{if(k.indexOf(this.formatSeparator)<0){const N=Ag(e,p,k,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(N,void 0,o,{...a,...e,interpolationkey:k}):N}const C=k.split(this.formatSeparator),O=C.shift().trim(),_=C.join(this.formatSeparator).trim();return this.format(Ag(e,p,O,this.options.keySeparator,this.options.ignoreJSONStructure),_,o,{...a,...e,interpolationkey:O})};this.resetRegExp();const m=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,b=((x=a==null?void 0:a.interpolation)==null?void 0:x.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:k=>Ju(k)},{regex:this.regexp,safeValue:k=>this.escapeValue?Ju(this.escape(k)):Ju(k)}].forEach(k=>{for(f=0;u=k.regex.exec(n);){const C=u[1].trim();if(c=h(C),c===void 0)if(typeof m=="function"){const _=m(n,u,a);c=We(_)?_:""}else if(a&&Object.prototype.hasOwnProperty.call(a,C))c="";else if(b){c=u[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${n}`),c="";else!We(c)&&!this.useRawValueToEscape&&(c=Og(c));const O=k.safeValue(c);if(n=n.replace(u[0],O),b?(k.regex.lastIndex+=c.length,k.regex.lastIndex-=u[0].length):k.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),n}nest(n,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,u,c;const f=(p,h)=>{const m=this.nestingOptionsSeparator;if(p.indexOf(m)<0)return p;const b=p.split(new RegExp(`${m}[ ]*{`));let w=`{${b[1]}`;p=b[0],w=this.interpolate(w,c);const x=w.match(/'/g),k=w.match(/"/g);(((x==null?void 0:x.length)??0)%2===0&&!k||k.length%2!==0)&&(w=w.replace(/'/g,'"'));try{c=JSON.parse(w),h&&(c={...h,...c})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,C),`${p}${m}${w}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,p};for(;a=this.nestingRegexp.exec(n);){let p=[];c={...o},c=c.replace&&!We(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;let h=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const m=a[1].split(this.formatSeparator).map(b=>b.trim());a[1]=m.shift(),p=m,h=!0}if(u=e(f.call(this,a[1].trim(),c),c),u&&a[0]===n&&!We(u))return u;We(u)||(u=Og(u)),u||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${n}`),u=""),h&&(u=p.reduce((m,b)=>this.format(m,b,o.lng,{...o,interpolationkey:a[1].trim()}),u.trim())),n=n.replace(a[0],u),this.regexp.lastIndex=0}return n}}const uw=i=>{let n=i.toLowerCase().trim();const e={};if(i.indexOf("(")>-1){const o=i.split("(");n=o[0].toLowerCase().trim();const a=o[1].substring(0,o[1].length-1);n==="currency"&&a.indexOf(":")<0?e.currency||(e.currency=a.trim()):n==="relativetime"&&a.indexOf(":")<0?e.range||(e.range=a.trim()):a.split(";").forEach(c=>{if(c){const[f,...p]=c.split(":"),h=p.join(":").trim().replace(/^'+|'+$/g,""),m=f.trim();e[m]||(e[m]=h),h==="false"&&(e[m]=!1),h==="true"&&(e[m]=!0),isNaN(h)||(e[m]=parseInt(h,10))}})}return{formatName:n,formatOptions:e}},fo=i=>{const n={};return(e,o,a)=>{let u=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(u={...u,[a.interpolationkey]:void 0});const c=o+JSON.stringify(u);let f=n[c];return f||(f=i(ql(o),a),n[c]=f),f(e)}};class cw{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Lr.create("formatter"),this.options=n,this.formats={number:fo((e,o)=>{const a=new Intl.NumberFormat(e,{...o});return u=>a.format(u)}),currency:fo((e,o)=>{const a=new Intl.NumberFormat(e,{...o,style:"currency"});return u=>a.format(u)}),datetime:fo((e,o)=>{const a=new Intl.DateTimeFormat(e,{...o});return u=>a.format(u)}),relativetime:fo((e,o)=>{const a=new Intl.RelativeTimeFormat(e,{...o});return u=>a.format(u,o.range||"day")}),list:fo((e,o)=>{const a=new Intl.ListFormat(e,{...o});return u=>a.format(u)})},this.init(n)}init(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(n,e){this.formats[n.toLowerCase().trim()]=e}addCached(n,e){this.formats[n.toLowerCase().trim()]=fo(e)}format(n,e,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const u=e.split(this.formatSeparator);if(u.length>1&&u[0].indexOf("(")>1&&u[0].indexOf(")")<0&&u.find(f=>f.indexOf(")")>-1)){const f=u.findIndex(p=>p.indexOf(")")>-1);u[0]=[u[0],...u.splice(1,f)].join(this.formatSeparator)}return u.reduce((f,p)=>{var b;const{formatName:h,formatOptions:m}=uw(p);if(this.formats[h]){let w=f;try{const x=((b=a==null?void 0:a.formatParams)==null?void 0:b[a.interpolationkey])||{},k=x.locale||x.lng||a.locale||a.lng||o;w=this.formats[h](f,k,{...m,...a,...x})}catch(x){this.logger.warn(x)}return w}else this.logger.warn(`there was no format function for ${h}`);return f},n)}}const fw=(i,n)=>{i.pending[n]!==void 0&&(delete i.pending[n],i.pendingCount--)};class dw extends fs{constructor(n,e,o){var u,c;let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=n,this.store=e,this.services=o,this.languageUtils=o.languageUtils,this.options=a,this.logger=Lr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(c=(u=this.backend)==null?void 0:u.init)==null||c.call(u,o,a.backend,a)}queueLoad(n,e,o,a){const u={},c={},f={},p={};return n.forEach(h=>{let m=!0;e.forEach(b=>{const w=`${h}|${b}`;!o.reload&&this.store.hasResourceBundle(h,b)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?c[w]===void 0&&(c[w]=!0):(this.state[w]=1,m=!1,c[w]===void 0&&(c[w]=!0),u[w]===void 0&&(u[w]=!0),p[b]===void 0&&(p[b]=!0)))}),m||(f[h]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(p)}}loaded(n,e,o){const a=n.split("|"),u=a[0],c=a[1];e&&this.emit("failedLoading",u,c,e),!e&&o&&this.store.addResourceBundle(u,c,o,void 0,void 0,{skipCopy:!0}),this.state[n]=e?-1:2,e&&o&&(this.state[n]=0);const f={};this.queue.forEach(p=>{Zb(p.loaded,[u],c),fw(p,n),e&&p.errors.push(e),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(h=>{f[h]||(f[h]={});const m=p.loaded[h];m.length&&m.forEach(b=>{f[h][b]===void 0&&(f[h][b]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(p=>!p.done)}read(n,e,o){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!n.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:e,fcName:o,tried:a,wait:u,callback:c});return}this.readingCalls++;const f=(h,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(h&&m&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,n,e,o,a+1,u*2,c)},u);return}c(h,m)},p=this.backend[o].bind(this.backend);if(p.length===2){try{const h=p(n,e);h&&typeof h.then=="function"?h.then(m=>f(null,m)).catch(f):f(null,h)}catch(h){f(h)}return}return p(n,e,f)}prepareLoading(n,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();We(n)&&(n=this.languageUtils.toResolveHierarchy(n)),We(e)&&(e=[e]);const u=this.queueLoad(n,e,o,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(c=>{this.loadOne(c)})}load(n,e,o){this.prepareLoading(n,e,{},o)}reload(n,e,o){this.prepareLoading(n,e,{reload:!0},o)}loadOne(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=n.split("|"),a=o[0],u=o[1];this.read(a,u,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${e}loading namespace ${u} for language ${a} failed`,c),!c&&f&&this.logger.log(`${e}loaded namespace ${u} for language ${a}`,f),this.loaded(n,c,f)})}saveMissing(n,e,o,a,u){var p,h,m,b,w;let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((h=(p=this.services)==null?void 0:p.utils)!=null&&h.hasLoadedNamespace&&!((b=(m=this.services)==null?void 0:m.utils)!=null&&b.hasLoadedNamespace(e))){this.logger.warn(`did not save key "${o}" as the namespace "${e}" 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(!(o==null||o==="")){if((w=this.backend)!=null&&w.create){const x={...c,isUpdate:u},k=this.backend.create.bind(this.backend);if(k.length<6)try{let C;k.length===5?C=k(n,e,o,a,x):C=k(n,e,o,a),C&&typeof C.then=="function"?C.then(O=>f(null,O)).catch(f):f(null,C)}catch(C){f(C)}else k(n,e,o,a,f,x)}!n||!n[0]||this.store.addResource(n[0],e,o,a)}}}const Dg=()=>({debug:!1,initAsync:!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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let n={};if(typeof i[1]=="object"&&(n=i[1]),We(i[1])&&(n.defaultValue=i[1]),We(i[2])&&(n.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const e=i[3]||i[2];Object.keys(e).forEach(o=>{n[o]=e[o]})}return n},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),zg=i=>{var n,e;return We(i.ns)&&(i.ns=[i.ns]),We(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),We(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((e=(n=i.supportedLngs)==null?void 0:n.indexOf)==null?void 0:e.call(n,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},Al=()=>{},pw=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(e=>{typeof i[e]=="function"&&(i[e]=i[e].bind(i))})};class ya extends fs{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(super(),this.options=zg(n),this.services={},this.logger=Lr,this.modules={external:[]},pw(this),e&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,e),this;setTimeout(()=>{this.init(n,e)},0)}}init(){var n=this;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof e=="function"&&(o=e,e={}),e.defaultNS==null&&e.ns&&(We(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const a=Dg();this.options={...a,...this.options,...zg(e)},this.options.interpolation={...a.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const u=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Lr.init(u(this.modules.logger),this.options):Lr.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=cw;const b=new Lg(this.options);this.store=new Ng(this.options.resources,this.options);const w=this.services;w.logger=Lr,w.resourceStore=this.store,w.languageUtils=b,w.pluralResolver=new lw(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(w.formatter=u(m),w.formatter.init(w,this.options),this.options.interpolation.format=w.formatter.format.bind(w.formatter)),w.interpolator=new sw(this.options),w.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},w.backendConnector=new dw(u(this.modules.backend),w.resourceStore,w,this.options),w.backendConnector.on("*",function(x){for(var k=arguments.length,C=new Array(k>1?k-1:0),O=1;O<k;O++)C[O-1]=arguments[O];n.emit(x,...C)}),this.modules.languageDetector&&(w.languageDetector=u(this.modules.languageDetector),w.languageDetector.init&&w.languageDetector.init(w,this.options.detection,this.options)),this.modules.i18nFormat&&(w.i18nFormat=u(this.modules.i18nFormat),w.i18nFormat.init&&w.i18nFormat.init(this)),this.translator=new Jl(this.services,this.options),this.translator.on("*",function(x){for(var k=arguments.length,C=new Array(k>1?k-1:0),O=1;O<k;O++)C[O-1]=arguments[O];n.emit(x,...C)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Al),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=function(){return n.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return n.store[m](...arguments),n}});const p=Zo(),h=()=>{const m=(b,w)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(w),o(b,w)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),p}loadResources(n){var u,c;let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Al;const a=We(n)?n:this.language;if(typeof n=="function"&&(o=n),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const f=[],p=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(b=>{b!=="cimode"&&f.indexOf(b)<0&&f.push(b)})};a?p(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>p(m)),(c=(u=this.options.preload)==null?void 0:u.forEach)==null||c.call(u,h=>p(h)),this.services.backendConnector.load(f,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(h)})}else o(null)}reloadResources(n,e,o){const a=Zo();return typeof n=="function"&&(o=n,n=void 0),typeof e=="function"&&(o=e,e=void 0),n||(n=this.languages),e||(e=this.options.ns),o||(o=Al),this.services.backendConnector.reload(n,e,u=>{a.resolve(),o(u)}),a}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Uh.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(let e=0;e<this.languages.length;e++){const o=this.languages[e];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(n,e){var o=this;this.isLanguageChangingTo=n;const a=Zo();this.emit("languageChanging",n);const u=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},c=(p,h)=>{h?(u(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,a.resolve(function(){return o.t(...arguments)}),e&&e(p,function(){return o.t(...arguments)})},f=p=>{var m,b;!n&&!p&&this.services.languageDetector&&(p=[]);const h=We(p)?p:this.services.languageUtils.getBestMatchFromCodes(p);h&&(this.language||u(h),this.translator.language||this.translator.changeLanguage(h),(b=(m=this.services.languageDetector)==null?void 0:m.cacheUserLanguage)==null||b.call(m,h)),this.loadResources(h,w=>{c(w,h)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(n),a}getFixedT(n,e,o){var a=this;const u=function(c,f){let p;if(typeof f!="object"){for(var h=arguments.length,m=new Array(h>2?h-2:0),b=2;b<h;b++)m[b-2]=arguments[b];p=a.options.overloadTranslationOptionHandler([c,f].concat(m))}else p={...f};p.lng=p.lng||u.lng,p.lngs=p.lngs||u.lngs,p.ns=p.ns||u.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||o||u.keyPrefix);const w=a.options.keySeparator||".";let x;return p.keyPrefix&&Array.isArray(c)?x=c.map(k=>`${p.keyPrefix}${w}${k}`):x=p.keyPrefix?`${p.keyPrefix}${w}${c}`:c,a.t(x,p)};return We(n)?u.lng=n:u.lngs=n,u.ns=e,u.keyPrefix=o,u}t(){var a;for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return(a=this.translator)==null?void 0:a.translate(...e)}exists(){var a;for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return(a=this.translator)==null?void 0:a.exists(...e)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n){let e=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;const o=e.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const c=(f,p)=>{const h=this.services.backendConnector.state[`${f}|${p}`];return h===-1||h===0||h===2};if(e.precheck){const f=e.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(o,n)&&(!a||c(u,n)))}loadNamespaces(n,e){const o=Zo();return this.options.ns?(We(n)&&(n=[n]),n.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{o.resolve(),e&&e(a)}),o):(e&&e(),Promise.resolve())}loadLanguages(n,e){const o=Zo();We(n)&&(n=[n]);const a=this.options.preload||[],u=n.filter(c=>a.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return u.length?(this.options.preload=a.concat(u),this.loadResources(c=>{o.resolve(),e&&e(c)}),o):(e&&e(),Promise.resolve())}dir(n){var a,u;if(n||(n=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!n)return"rtl";const e=["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"],o=((u=this.services)==null?void 0:u.languageUtils)||new Lg(Dg());return e.indexOf(o.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new ya(n,e)}cloneInstance(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Al;const o=n.forkResourceStore;o&&delete n.forkResourceStore;const a={...this.options,...n,isClone:!0},u=new ya(a);if((n.debug!==void 0||n.prefix!==void 0)&&(u.logger=u.logger.clone(n)),["store","services","language"].forEach(f=>{u[f]=this[f]}),u.services={...this.services},u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},o){const f=Object.keys(this.store.data).reduce((p,h)=>(p[h]={...this.store.data[h]},Object.keys(p[h]).reduce((m,b)=>(m[b]={...p[h][b]},m),{})),{});u.store=new Ng(f,a),u.services.resourceStore=u.store}return u.translator=new Jl(u.services,a),u.translator.on("*",function(f){for(var p=arguments.length,h=new Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];u.emit(f,...h)}),u.init(a,e),u.translator.options=a,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const On=ya.createInstance();On.createInstance=ya.createInstance;On.createInstance;On.dir;On.init;On.loadResources;On.reloadResources;On.use;On.changeLanguage;On.getFixedT;On.t;On.exists;On.setDefaultNamespace;On.hasLoadedNamespace;On.loadNamespaces;On.loadLanguages;const gw="ParoiCMS Site Generator",hw="Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.",mw="Supported languages: English, French.",vw="Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.",yw="Add a new text field to the page…",bw="Modify the Site Schema",ww="Create a Site Schema",Sw="Generate the website",xw="Generate site with sample data (recommended)",Ew="Generate an empty site",Cw="Open the back-office",kw="Open the site",Ow="Generated Schema",Pw="Tree View",Tw="Site Schema",Iw="Node Types",Nw="Labels",Rw="Select language",_w="Explanations from the IA",Lw="An error occurred: {{ message }}",jw="Close and start again",$w="Reset Schema",Aw="unknown error",Dw="Create New Site",zw="Generating your site…",Fw="The site is generated",Mw="Email:",Hw="Password:",Vw="I agree",Bw="You are about to generate your website.",Uw="Cancel",Kw="Site URL:",Ww="Admin URL:",Gw="Copy all information to clipboard",Yw='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — ParoiCMS is a personal project, to contact me, come <a href="https://paroi.tech/en" target="_blank">here</a>.',Qw={title:gw,promptDescription:hw,supportedLanguages:mw,createPromptPlaceholder:vw,updatePromptPlaceholder:yw,modifySchema:bw,createSchema:ww,generateTheWebsite:Sw,generateSiteWithData:xw,generateEmptySite:Ew,administration:Cw,viewSite:kw,generatedSchema:Ow,treeView:Pw,siteSchema:Tw,nodeTypes:Iw,labels:Nw,languageSelector:Rw,explanation:_w,errorOccurred:Lw,reset:jw,resetSchema:$w,unknownError:Aw,createNewSite:Dw,generatingSite:zw,siteGenerated:Fw,email:Mw,password:Hw,agree:Vw,aboutToGenerateWebsite:Bw,cancel:Uw,siteUrl:Kw,adminUrl:Ww,copyToClipboard:Gw,footerText:Yw},Xw="ParoiCMS - Générateur de Site",qw="Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.",Zw="Langages autorisés : Français, Anglais.",Jw="Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.",eS="Ajoute un nouveau champ texte à la page…",tS="Modifier le schéma du site",nS="Créer un schéma de site",rS="Générer le site web",iS="Générer le site avec des données d'exemple (recommendé)",oS="Générer un site vide",aS="Ouvrir l'espace d'administration du site",lS="Ouvrir le site",sS="Schéma généré",uS="Arborescence",cS="Schéma du site",fS="Types de nœuds",dS="Libellés",pS="Sélectionner la langue",gS="Explications de l'IA",hS="Une erreur est survenue : {{ message }}",mS="Fermer et réinitialiser",vS="Réinitialiser le schéma",yS="erreur inconnue",bS="Créer un nouveau site",wS="Génération de votre site…",SS="Le site est généré",xS="Email :",ES="Mot de passe :",CS="J'accepte",kS="Vous êtes sur le point de générer votre site web.",OS="Annuler",PS="URL du site :",TS="URL d'admin :",IS="Copier toutes les informations dans le presse-papier",NS='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — ParoiCMS est un projet personnel, pour me contacter, passez <a href="https://paroi.tech/fr" target="_blank">par ici</a>.',RS={title:Xw,promptDescription:qw,supportedLanguages:Zw,createPromptPlaceholder:Jw,updatePromptPlaceholder:eS,modifySchema:tS,createSchema:nS,generateTheWebsite:rS,generateSiteWithData:iS,generateEmptySite:oS,administration:aS,viewSite:lS,generatedSchema:sS,treeView:uS,siteSchema:cS,nodeTypes:fS,labels:dS,languageSelector:pS,explanation:gS,errorOccurred:hS,reset:mS,resetSchema:vS,unknownError:yS,createNewSite:bS,generatingSite:wS,siteGenerated:SS,email:xS,password:ES,agree:CS,aboutToGenerateWebsite:kS,cancel:OS,siteUrl:PS,adminUrl:TS,copyToClipboard:IS,footerText:NS},_S=`<p>
|
|
1178
1178
|
Welcome to the Site Generator of ParoiCMS. ParoiCMS is:
|
|
1179
1179
|
</p>
|
|
1180
1180
|
<ul>
|
|
@@ -1205,8 +1205,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1205
1205
|
</p>
|
|
1206
1206
|
<p>
|
|
1207
1207
|
Your data won't be kept, except for debug purposes when there is an error. There are no
|
|
1208
|
-
tracking cookies except for those of the reCAPTCHA.
|
|
1209
|
-
|
|
1208
|
+
tracking cookies except for those of the reCAPTCHA. A session identifier will follow you on the
|
|
1209
|
+
tab of your browser, but it will be deleted when you close the tab.
|
|
1210
|
+
</p>`,LS=`<p>
|
|
1210
1211
|
Bienvenue dans le générateur de sites de ParoiCMS. ParoiCMS est :
|
|
1211
1212
|
</p>
|
|
1212
1213
|
<ul>
|
|
@@ -1239,8 +1240,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1239
1240
|
</p>
|
|
1240
1241
|
<p>
|
|
1241
1242
|
Vos données ne seront pas conservées, sauf à des fins de débogage en cas d'erreur. Aucun cookie de
|
|
1242
|
-
suivi n'est utilisé, excepté ceux de reCAPTCHA.
|
|
1243
|
-
|
|
1243
|
+
suivi n'est utilisé, excepté ceux de reCAPTCHA. Un identifiant de session vous suivra sur l'onglet
|
|
1244
|
+
de votre navigateur, mais il sera supprimé lorsque vous fermerez l'onglet.
|
|
1245
|
+
</p>`,jS=`<p>
|
|
1244
1246
|
Congratulations! Your website has been generated.
|
|
1245
1247
|
</p>
|
|
1246
1248
|
<p>
|
|
@@ -1267,7 +1269,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1267
1269
|
</ul>
|
|
1268
1270
|
<p>
|
|
1269
1271
|
Make sure to copy the following information, as it will be lost once you close this panel.
|
|
1270
|
-
</p
|
|
1272
|
+
</p>`,$S=`<p>
|
|
1271
1273
|
Félicitations ! Votre site web a été généré.
|
|
1272
1274
|
</p>
|
|
1273
1275
|
<p>
|
|
@@ -1295,4 +1297,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1295
1297
|
<p>
|
|
1296
1298
|
N'oubliez pas de copier les informations ci-dessous, car elles seront perdues dès que vous
|
|
1297
1299
|
fermerez ce panneau.
|
|
1298
|
-
</p>`,
|
|
1300
|
+
</p>`,AS={en:{translation:{...Qw,introduction:_S,userManual:jS}},fr:{translation:{...RS,introduction:LS,userManual:$S}}};On.use(Qy).init({resources:AS,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});async function DS(){const i=document.getElementById("site-generator-app");i&&Lv.createRoot(i).render(G.jsx(Tt.StrictMode,{children:G.jsx(Qb,{})}))}DS().catch(i=>console.error(i));
|