little-wheels 1.1.13 → 1.1.15

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.
@@ -14,12 +14,12 @@
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 nt;function Pn(){return nt||(nt=1,process.env.NODE_ENV!=="production"&&function(){function e(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===k?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case b:return"Fragment";case u:return"Profiler";case i:return"StrictMode";case P:return"Suspense";case A:return"SuspenseList";case q:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case p:return"Portal";case S:return(c.displayName||"Context")+".Provider";case l:return(c._context.displayName||"Context")+".Consumer";case d:var _=c.render;return c=c.displayName,c||(c=_.displayName||_.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case E:return _=c.displayName||null,_!==null?_:e(c.type)||"Memo";case T:_=c._payload,c=c._init;try{return e(c(_))}catch{}}return null}function r(c){return""+c}function t(c){try{r(c);var _=!1}catch{_=!0}if(_){_=console;var N=_.error,L=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return N.call(_,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",L),r(c)}}function o(c){if(c===b)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===T)return"<...>";try{var _=e(c);return _?"<"+_+">":"<...>"}catch{return"<...>"}}function s(){var c=C.A;return c===null?null:c.getOwner()}function y(){return Error("react-stack-top-frame")}function O(c){if(I.call(c,"key")){var _=Object.getOwnPropertyDescriptor(c,"key").get;if(_&&_.isReactWarning)return!1}return c.key!==void 0}function v(c,_){function N(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",_))}N.isReactWarning=!0,Object.defineProperty(c,"key",{get:N,configurable:!0})}function R(){var c=e(this.type);return ae[c]||(ae[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function w(c,_,N,L,Y,H,X,ie){return N=H.ref,c={$$typeof:f,type:c,key:_,props:H,_owner:Y},(N!==void 0?N:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:R}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function h(c,_,N,L,Y,H,X,ie){var B=_.children;if(B!==void 0)if(L)if(J(B)){for(L=0;L<B.length;L++)m(B[L]);Object.freeze&&Object.freeze(B)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(B);if(I.call(_,"key")){B=e(c);var G=Object.keys(_).filter(function(z){return z!=="key"});L=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",Q[B+L]||(G=0<G.length?"{"+G.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var nt;function Pn(){return nt||(nt=1,process.env.NODE_ENV!=="production"&&function(){function e(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===k?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case b:return"Fragment";case u:return"Profiler";case i:return"StrictMode";case P:return"Suspense";case A:return"SuspenseList";case q:return"Activity"}if(typeof c=="object")switch(typeof c.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),c.$$typeof){case p:return"Portal";case S:return(c.displayName||"Context")+".Provider";case l:return(c._context.displayName||"Context")+".Consumer";case d:var _=c.render;return c=c.displayName,c||(c=_.displayName||_.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case E:return _=c.displayName||null,_!==null?_:e(c.type)||"Memo";case T:_=c._payload,c=c._init;try{return e(c(_))}catch{}}return null}function r(c){return""+c}function t(c){try{r(c);var _=!1}catch{_=!0}if(_){_=console;var N=_.error,L=typeof Symbol=="function"&&Symbol.toStringTag&&c[Symbol.toStringTag]||c.constructor.name||"Object";return N.call(_,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",L),r(c)}}function o(c){if(c===b)return"<>";if(typeof c=="object"&&c!==null&&c.$$typeof===T)return"<...>";try{var _=e(c);return _?"<"+_+">":"<...>"}catch{return"<...>"}}function s(){var c=C.A;return c===null?null:c.getOwner()}function y(){return Error("react-stack-top-frame")}function O(c){if(I.call(c,"key")){var _=Object.getOwnPropertyDescriptor(c,"key").get;if(_&&_.isReactWarning)return!1}return c.key!==void 0}function v(c,_){function N(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",_))}N.isReactWarning=!0,Object.defineProperty(c,"key",{get:N,configurable:!0})}function R(){var c=e(this.type);return ie[c]||(ie[c]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),c=this.props.ref,c!==void 0?c:null}function w(c,_,N,L,Y,H,X,le){return N=H.ref,c={$$typeof:f,type:c,key:_,props:H,_owner:Y},(N!==void 0?N:null)!==null?Object.defineProperty(c,"ref",{enumerable:!1,get:R}):Object.defineProperty(c,"ref",{enumerable:!1,value:null}),c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(c,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(c,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(c,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}function h(c,_,N,L,Y,H,X,le){var B=_.children;if(B!==void 0)if(L)if(V(B)){for(L=0;L<B.length;L++)m(B[L]);Object.freeze&&Object.freeze(B)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(B);if(I.call(_,"key")){B=e(c);var W=Object.keys(_).filter(function(z){return z!=="key"});L=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",Q[B+L]||(W=0<W.length?"{"+W.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,L,B,G,B),Q[B+L]=!0)}if(B=null,N!==void 0&&(t(N),B=""+N),O(_)&&(t(_.key),B=""+_.key),"key"in _){N={};for(var $ in _)$!=="key"&&(N[$]=_[$])}else N=_;return B&&v(N,typeof c=="function"?c.displayName||c.name||"Unknown":c),w(c,B,H,Y,s(),N,X,ie)}function m(c){typeof c=="object"&&c!==null&&c.$$typeof===f&&c._store&&(c._store.validated=1)}var g=gn,f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),S=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),C=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,J=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(c){return c()}};var K,ae={},oe=g["react-stack-bottom-frame"].bind(g,y)(),x=W(o(y)),Q={};Te.Fragment=b,Te.jsx=function(c,_,N,L,Y){var H=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!1,L,Y,H?Error("react-stack-top-frame"):oe,H?W(o(c)):x)},Te.jsxs=function(c,_,N,L,Y){var H=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!0,L,Y,H?Error("react-stack-top-frame"):oe,H?W(o(c)):x)}}()),Te}var at;function An(){return at||(at=1,process.env.NODE_ENV==="production"?qe.exports=bn():qe.exports=Pn()),qe.exports}var Ne=An();const Kt=({data:e,onChange:r})=>Ne.jsx("div",{children:e.map(t=>Ne.jsxs("div",{className:"tree-node",children:[Ne.jsx("input",{type:"checkbox",checked:t.selected,disabled:t.disabled,onChange:()=>r==null?void 0:r(t)}),t.name,t.children&&Ne.jsx(Kt,{data:t.children,onChange:r})]},t.id))});class ne{static setItem(r,t){const o=localStorage.getItem("APPID");typeof t=="object"?localStorage.setItem(o+"-"+r,JSON.stringify(t)):localStorage.setItem(o+"-"+r,t)}static getItem(r){const t=localStorage.getItem("APPID"),o=localStorage.getItem(t+"-"+r);if(o)try{return JSON.parse(o)}catch{return o}return null}static removeItem(r){const t=localStorage.getItem("APPID");localStorage.removeItem(t+"-"+r)}static clear(){const r=localStorage.getItem("APPID");Object.keys(localStorage).forEach(t=>{t.startsWith(r+"-")&&localStorage.removeItem(t)})}static clearAll(){localStorage.clear()}}var Ve,ot;function Oe(){return ot||(ot=1,Ve=TypeError),Ve}const En={},On=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Rn=wn(On);var Je,it;function Fe(){if(it)return Je;it=1;var e=typeof Map=="function"&&Map.prototype,r=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=e&&r&&typeof r.get=="function"?r.get:null,o=e&&Map.prototype.forEach,s=typeof Set=="function"&&Set.prototype,y=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,O=s&&y&&typeof y.get=="function"?y.get:null,v=s&&Set.prototype.forEach,R=typeof WeakMap=="function"&&WeakMap.prototype,w=R?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,m=h?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,f=g?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,i=Function.prototype.toString,u=String.prototype.match,l=String.prototype.slice,S=String.prototype.replace,d=String.prototype.toUpperCase,P=String.prototype.toLowerCase,A=RegExp.prototype.test,E=Array.prototype.concat,T=Array.prototype.join,q=Array.prototype.slice,k=Math.floor,C=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",K=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,ae=Object.prototype.propertyIsEnumerable,oe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function x(n,a){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||A.call(/e/,a))return a;var F=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var U=n<0?-k(-n):k(n);if(U!==n){var j=String(U),D=l.call(a,j.length+1);return S.call(j,F,"$&_")+"."+S.call(S.call(D,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(a,F,"$&_")}var Q=Rn,c=Q.custom,_=Z(c)?c:null,N={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Je=function n(a,F,U,j){var D=F||{};if(re(D,"quoteStyle")&&!re(N,D.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(re(D,"maxStringLength")&&(typeof D.maxStringLength=="number"?D.maxStringLength<0&&D.maxStringLength!==1/0:D.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ye=re(D,"customInspect")?D.customInspect:!0;if(typeof ye!="boolean"&&ye!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(re(D,"indent")&&D.indent!==null&&D.indent!==" "&&!(parseInt(D.indent,10)===D.indent&&D.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(re(D,"numericSeparator")&&typeof D.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var me=D.numericSeparator;if(typeof a>"u")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return Gr(a,D);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var te=String(a);return me?x(a,te):te}if(typeof a=="bigint"){var de=String(a)+"n";return me?x(a,de):de}var Le=typeof D.depth>"u"?5:D.depth;if(typeof U>"u"&&(U=0),U>=Le&&Le>0&&typeof a=="object")return ie(a)?"[Array]":"[Object]";var Ae=yn(D,U);if(typeof j>"u")j=[];else if(pe(j,a)>=0)return"[Circular]";function se(Ee,$e,vn){if($e&&(j=q.call(j),j.push($e)),vn){var Zr={depth:D.depth};return re(D,"quoteStyle")&&(Zr.quoteStyle=D.quoteStyle),n(Ee,Zr,U+1,j)}return n(Ee,D,U+1,j)}if(typeof a=="function"&&!G(a)){var Hr=Se(a),Vr=xe(a,se);return"[Function"+(Hr?": "+Hr:" (anonymous)")+"]"+(Vr.length>0?" { "+T.call(Vr,", ")+" }":"")}if(Z(a)){var Jr=W?S.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(a);return typeof a=="object"&&!W?Re(Jr):Jr}if(cn(a)){for(var Ie="<"+P.call(String(a.nodeName)),Be=a.attributes||[],De=0;De<Be.length;De++)Ie+=" "+Be[De].name+"="+Y(H(Be[De].value),"double",D);return Ie+=">",a.childNodes&&a.childNodes.length&&(Ie+="..."),Ie+="</"+P.call(String(a.nodeName))+">",Ie}if(ie(a)){if(a.length===0)return"[]";var je=xe(a,se);return Ae&&!pn(je)?"["+Ue(je,Ae)+"]":"[ "+T.call(je,", ")+" ]"}if($(a)){var We=xe(a,se);return!("cause"in Error.prototype)&&"cause"in a&&!ae.call(a,"cause")?"{ ["+String(a)+"] "+T.call(E.call("[cause]: "+se(a.cause),We),", ")+" }":We.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+T.call(We,", ")+" }"}if(typeof a=="object"&&ye){if(_&&typeof a[_]=="function"&&Q)return Q(a,{depth:Le-U});if(ye!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(ce(a)){var Yr=[];return o&&o.call(a,function(Ee,$e){Yr.push(se($e,a,!0)+" => "+se(Ee,a))}),zr("Map",t.call(a),Yr,Ae)}if(Pe(a)){var Kr=[];return v&&v.call(a,function(Ee){Kr.push(se(Ee,a))}),zr("Set",O.call(a),Kr,Ae)}if(we(a))return Me("WeakMap");if(fn(a))return Me("WeakSet");if(be(a))return Me("WeakRef");if(M(a))return Re(se(Number(a)));if(ue(a))return Re(se(C.call(a)));if(V(a))return Re(p.call(a));if(z(a))return Re(se(String(a)));if(typeof window<"u"&&a===window)return"{ [object Window] }";if(typeof globalThis<"u"&&a===globalThis||typeof rt<"u"&&a===rt)return"{ [object globalThis] }";if(!B(a)&&!G(a)){var Ge=xe(a,se),Qr=oe?oe(a)===Object.prototype:a instanceof Object||a.constructor===Object,ze=a instanceof Object?"":"null prototype",Xr=!Qr&&K&&Object(a)===a&&K in a?l.call(le(a),8,-1):ze?"Object":"",dn=Qr||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",He=dn+(Xr||ze?"["+T.call(E.call([],Xr||[],ze||[]),": ")+"] ":"");return Ge.length===0?He+"{}":Ae?He+"{"+Ue(Ge,Ae)+"}":He+"{ "+T.call(Ge,", ")+" }"}return String(a)};function Y(n,a,F){var U=F.quoteStyle||a,j=N[U];return j+n+j}function H(n){return S.call(String(n),/"/g,"&quot;")}function X(n){return!K||!(typeof n=="object"&&(K in n||typeof n[K]<"u"))}function ie(n){return le(n)==="[object Array]"&&X(n)}function B(n){return le(n)==="[object Date]"&&X(n)}function G(n){return le(n)==="[object RegExp]"&&X(n)}function $(n){return le(n)==="[object Error]"&&X(n)}function z(n){return le(n)==="[object String]"&&X(n)}function M(n){return le(n)==="[object Number]"&&X(n)}function V(n){return le(n)==="[object Boolean]"&&X(n)}function Z(n){if(W)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!J)return!1;try{return J.call(n),!0}catch{}return!1}function ue(n){if(!n||typeof n!="object"||!C)return!1;try{return C.call(n),!0}catch{}return!1}var ee=Object.prototype.hasOwnProperty||function(n){return n in this};function re(n,a){return ee.call(n,a)}function le(n){return b.call(n)}function Se(n){if(n.name)return n.name;var a=u.call(i.call(n),/^function\s*([\w$]+)/);return a?a[1]:null}function pe(n,a){if(n.indexOf)return n.indexOf(a);for(var F=0,U=n.length;F<U;F++)if(n[F]===a)return F;return-1}function ce(n){if(!t||!n||typeof n!="object")return!1;try{t.call(n);try{O.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function we(n){if(!w||!n||typeof n!="object")return!1;try{w.call(n,w);try{m.call(n,m)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function be(n){if(!f||!n||typeof n!="object")return!1;try{return f.call(n),!0}catch{}return!1}function Pe(n){if(!O||!n||typeof n!="object")return!1;try{O.call(n);try{t.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function fn(n){if(!m||!n||typeof n!="object")return!1;try{m.call(n,m);try{w.call(n,w)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function cn(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function Gr(n,a){if(n.length>a.maxStringLength){var F=n.length-a.maxStringLength,U="... "+F+" more character"+(F>1?"s":"");return Gr(l.call(n,0,a.maxStringLength),a)+U}var j=L[a.quoteStyle||"single"];j.lastIndex=0;var D=S.call(S.call(n,j,"\\$1"),/[\x00-\x1f]/g,sn);return Y(D,"single",a)}function sn(n){var a=n.charCodeAt(0),F={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return F?"\\"+F:"\\x"+(a<16?"0":"")+d.call(a.toString(16))}function Re(n){return"Object("+n+")"}function Me(n){return n+" { ? }"}function zr(n,a,F,U){var j=U?Ue(F,U):T.call(F,", ");return n+" ("+a+") {"+j+"}"}function pn(n){for(var a=0;a<n.length;a++)if(pe(n[a],`
22
+ <%s key={someKey} {...props} />`,L,B,W,B),Q[B+L]=!0)}if(B=null,N!==void 0&&(t(N),B=""+N),O(_)&&(t(_.key),B=""+_.key),"key"in _){N={};for(var $ in _)$!=="key"&&(N[$]=_[$])}else N=_;return B&&v(N,typeof c=="function"?c.displayName||c.name||"Unknown":c),w(c,B,H,Y,s(),N,X,le)}function m(c){typeof c=="object"&&c!==null&&c.$$typeof===f&&c._store&&(c._store.validated=1)}var g=gn,f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),S=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),C=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,V=Array.isArray,G=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(c){return c()}};var K,ie={},ue=g["react-stack-bottom-frame"].bind(g,y)(),x=G(o(y)),Q={};Te.Fragment=b,Te.jsx=function(c,_,N,L,Y){var H=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!1,L,Y,H?Error("react-stack-top-frame"):ue,H?G(o(c)):x)},Te.jsxs=function(c,_,N,L,Y){var H=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!0,L,Y,H?Error("react-stack-top-frame"):ue,H?G(o(c)):x)}}()),Te}var at;function An(){return at||(at=1,process.env.NODE_ENV==="production"?qe.exports=bn():qe.exports=Pn()),qe.exports}var Ne=An();const Kt=({data:e,onChange:r})=>Ne.jsx("div",{children:e.map(t=>Ne.jsxs("div",{className:"tree-node",children:[Ne.jsx("input",{type:"checkbox",checked:t.selected,disabled:t.disabled,onChange:()=>r==null?void 0:r(t)}),t.name,t.children&&Ne.jsx(Kt,{data:t.children,onChange:r})]},t.id))});class oe{static setItem(r,t){const o=localStorage.getItem("APPID");typeof t=="object"?localStorage.setItem(o+"-"+r,JSON.stringify(t)):localStorage.setItem(o+"-"+r,t)}static getItem(r){const t=localStorage.getItem("APPID"),o=localStorage.getItem(t+"-"+r);if(o)try{return JSON.parse(o)}catch{return o}return null}static removeItem(r){const t=localStorage.getItem("APPID");localStorage.removeItem(t+"-"+r)}static clear(){const r=localStorage.getItem("APPID");Object.keys(localStorage).forEach(t=>{t.startsWith(r+"-")&&localStorage.removeItem(t)})}static clearAll(){localStorage.clear()}}var Je,ot;function Oe(){return ot||(ot=1,Je=TypeError),Je}const En={},On=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Rn=wn(On);var Ve,it;function Fe(){if(it)return Ve;it=1;var e=typeof Map=="function"&&Map.prototype,r=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=e&&r&&typeof r.get=="function"?r.get:null,o=e&&Map.prototype.forEach,s=typeof Set=="function"&&Set.prototype,y=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,O=s&&y&&typeof y.get=="function"?y.get:null,v=s&&Set.prototype.forEach,R=typeof WeakMap=="function"&&WeakMap.prototype,w=R?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,m=h?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,f=g?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,i=Function.prototype.toString,u=String.prototype.match,l=String.prototype.slice,S=String.prototype.replace,d=String.prototype.toUpperCase,P=String.prototype.toLowerCase,A=RegExp.prototype.test,E=Array.prototype.concat,T=Array.prototype.join,q=Array.prototype.slice,k=Math.floor,C=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,G=typeof Symbol=="function"&&typeof Symbol.iterator=="object",K=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===G||!0)?Symbol.toStringTag:null,ie=Object.prototype.propertyIsEnumerable,ue=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function x(n,a){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||A.call(/e/,a))return a;var F=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var U=n<0?-k(-n):k(n);if(U!==n){var j=String(U),D=l.call(a,j.length+1);return S.call(j,F,"$&_")+"."+S.call(S.call(D,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(a,F,"$&_")}var Q=Rn,c=Q.custom,_=Z(c)?c:null,N={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ve=function n(a,F,U,j){var D=F||{};if(ne(D,"quoteStyle")&&!ne(N,D.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ne(D,"maxStringLength")&&(typeof D.maxStringLength=="number"?D.maxStringLength<0&&D.maxStringLength!==1/0:D.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ve=ne(D,"customInspect")?D.customInspect:!0;if(typeof ve!="boolean"&&ve!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ne(D,"indent")&&D.indent!==null&&D.indent!==" "&&!(parseInt(D.indent,10)===D.indent&&D.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ne(D,"numericSeparator")&&typeof D.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ge=D.numericSeparator;if(typeof a>"u")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return Wr(a,D);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var ae=String(a);return ge?x(a,ae):ae}if(typeof a=="bigint"){var he=String(a)+"n";return ge?x(a,he):he}var Le=typeof D.depth>"u"?5:D.depth;if(typeof U>"u"&&(U=0),U>=Le&&Le>0&&typeof a=="object")return le(a)?"[Array]":"[Object]";var Ae=yn(D,U);if(typeof j>"u")j=[];else if(de(j,a)>=0)return"[Circular]";function ye(Ee,$e,vn){if($e&&(j=q.call(j),j.push($e)),vn){var Zr={depth:D.depth};return ne(D,"quoteStyle")&&(Zr.quoteStyle=D.quoteStyle),n(Ee,Zr,U+1,j)}return n(Ee,D,U+1,j)}if(typeof a=="function"&&!W(a)){var Hr=Se(a),Jr=xe(a,ye);return"[Function"+(Hr?": "+Hr:" (anonymous)")+"]"+(Jr.length>0?" { "+T.call(Jr,", ")+" }":"")}if(Z(a)){var Vr=G?S.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(a);return typeof a=="object"&&!G?Re(Vr):Vr}if(cn(a)){for(var Ie="<"+P.call(String(a.nodeName)),Be=a.attributes||[],De=0;De<Be.length;De++)Ie+=" "+Be[De].name+"="+Y(H(Be[De].value),"double",D);return Ie+=">",a.childNodes&&a.childNodes.length&&(Ie+="..."),Ie+="</"+P.call(String(a.nodeName))+">",Ie}if(le(a)){if(a.length===0)return"[]";var je=xe(a,ye);return Ae&&!pn(je)?"["+Ue(je,Ae)+"]":"[ "+T.call(je,", ")+" ]"}if($(a)){var Ge=xe(a,ye);return!("cause"in Error.prototype)&&"cause"in a&&!ie.call(a,"cause")?"{ ["+String(a)+"] "+T.call(E.call("[cause]: "+ye(a.cause),Ge),", ")+" }":Ge.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+T.call(Ge,", ")+" }"}if(typeof a=="object"&&ve){if(_&&typeof a[_]=="function"&&Q)return Q(a,{depth:Le-U});if(ve!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(pe(a)){var Yr=[];return o&&o.call(a,function(Ee,$e){Yr.push(ye($e,a,!0)+" => "+ye(Ee,a))}),zr("Map",t.call(a),Yr,Ae)}if(Pe(a)){var Kr=[];return v&&v.call(a,function(Ee){Kr.push(ye(Ee,a))}),zr("Set",O.call(a),Kr,Ae)}if(we(a))return Me("WeakMap");if(fn(a))return Me("WeakSet");if(be(a))return Me("WeakRef");if(M(a))return Re(ye(Number(a)));if(fe(a))return Re(ye(C.call(a)));if(J(a))return Re(p.call(a));if(z(a))return Re(ye(String(a)));if(typeof window<"u"&&a===window)return"{ [object Window] }";if(typeof globalThis<"u"&&a===globalThis||typeof rt<"u"&&a===rt)return"{ [object globalThis] }";if(!B(a)&&!W(a)){var We=xe(a,ye),Qr=ue?ue(a)===Object.prototype:a instanceof Object||a.constructor===Object,ze=a instanceof Object?"":"null prototype",Xr=!Qr&&K&&Object(a)===a&&K in a?l.call(ce(a),8,-1):ze?"Object":"",dn=Qr||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",He=dn+(Xr||ze?"["+T.call(E.call([],Xr||[],ze||[]),": ")+"] ":"");return We.length===0?He+"{}":Ae?He+"{"+Ue(We,Ae)+"}":He+"{ "+T.call(We,", ")+" }"}return String(a)};function Y(n,a,F){var U=F.quoteStyle||a,j=N[U];return j+n+j}function H(n){return S.call(String(n),/"/g,"&quot;")}function X(n){return!K||!(typeof n=="object"&&(K in n||typeof n[K]<"u"))}function le(n){return ce(n)==="[object Array]"&&X(n)}function B(n){return ce(n)==="[object Date]"&&X(n)}function W(n){return ce(n)==="[object RegExp]"&&X(n)}function $(n){return ce(n)==="[object Error]"&&X(n)}function z(n){return ce(n)==="[object String]"&&X(n)}function M(n){return ce(n)==="[object Number]"&&X(n)}function J(n){return ce(n)==="[object Boolean]"&&X(n)}function Z(n){if(G)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!V)return!1;try{return V.call(n),!0}catch{}return!1}function fe(n){if(!n||typeof n!="object"||!C)return!1;try{return C.call(n),!0}catch{}return!1}var ee=Object.prototype.hasOwnProperty||function(n){return n in this};function ne(n,a){return ee.call(n,a)}function ce(n){return b.call(n)}function Se(n){if(n.name)return n.name;var a=u.call(i.call(n),/^function\s*([\w$]+)/);return a?a[1]:null}function de(n,a){if(n.indexOf)return n.indexOf(a);for(var F=0,U=n.length;F<U;F++)if(n[F]===a)return F;return-1}function pe(n){if(!t||!n||typeof n!="object")return!1;try{t.call(n);try{O.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function we(n){if(!w||!n||typeof n!="object")return!1;try{w.call(n,w);try{m.call(n,m)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function be(n){if(!f||!n||typeof n!="object")return!1;try{return f.call(n),!0}catch{}return!1}function Pe(n){if(!O||!n||typeof n!="object")return!1;try{O.call(n);try{t.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function fn(n){if(!m||!n||typeof n!="object")return!1;try{m.call(n,m);try{w.call(n,w)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function cn(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function Wr(n,a){if(n.length>a.maxStringLength){var F=n.length-a.maxStringLength,U="... "+F+" more character"+(F>1?"s":"");return Wr(l.call(n,0,a.maxStringLength),a)+U}var j=L[a.quoteStyle||"single"];j.lastIndex=0;var D=S.call(S.call(n,j,"\\$1"),/[\x00-\x1f]/g,sn);return Y(D,"single",a)}function sn(n){var a=n.charCodeAt(0),F={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return F?"\\"+F:"\\x"+(a<16?"0":"")+d.call(a.toString(16))}function Re(n){return"Object("+n+")"}function Me(n){return n+" { ? }"}function zr(n,a,F,U){var j=U?Ue(F,U):T.call(F,", ");return n+" ("+a+") {"+j+"}"}function pn(n){for(var a=0;a<n.length;a++)if(de(n[a],`
23
23
  `)>=0)return!1;return!0}function yn(n,a){var F;if(n.indent===" ")F=" ";else if(typeof n.indent=="number"&&n.indent>0)F=T.call(Array(n.indent+1)," ");else return null;return{base:F,prev:T.call(Array(a+1),F)}}function Ue(n,a){if(n.length===0)return"";var F=`
24
24
  `+a.prev+a.base;return F+T.call(n,","+F)+`
25
- `+a.prev}function xe(n,a){var F=ie(n),U=[];if(F){U.length=n.length;for(var j=0;j<n.length;j++)U[j]=re(n,j)?a(n[j],n):""}var D=typeof I=="function"?I(n):[],ye;if(W){ye={};for(var me=0;me<D.length;me++)ye["$"+D[me]]=D[me]}for(var te in n)re(n,te)&&(F&&String(Number(te))===te&&te<n.length||W&&ye["$"+te]instanceof Symbol||(A.call(/[^\w$]/,te)?U.push(a(te,n)+": "+a(n[te],n)):U.push(te+": "+a(n[te],n))));if(typeof I=="function")for(var de=0;de<D.length;de++)ae.call(n,D[de])&&U.push("["+a(D[de])+"]: "+a(n[D[de]],n));return U}return Je}var Ye,ut;function In(){if(ut)return Ye;ut=1;var e=Fe(),r=Oe(),t=function(v,R,w){for(var h=v,m;(m=h.next)!=null;h=m)if(m.key===R)return h.next=m.next,w||(m.next=v.next,v.next=m),m},o=function(v,R){if(v){var w=t(v,R);return w&&w.value}},s=function(v,R,w){var h=t(v,R);h?h.value=w:v.next={key:R,next:v.next,value:w}},y=function(v,R){return v?!!t(v,R):!1},O=function(v,R){if(v)return t(v,R,!0)};return Ye=function(){var R,w={assert:function(h){if(!w.has(h))throw new r("Side channel does not contain "+e(h))},delete:function(h){var m=R&&R.next,g=O(R,h);return g&&m&&m===g&&(R=void 0),!!g},get:function(h){return o(R,h)},has:function(h){return y(R,h)},set:function(h,m){R||(R={next:void 0}),s(R,h,m)}};return w},Ye}var Ke,lt;function Qt(){return lt||(lt=1,Ke=Object),Ke}var Qe,ft;function _n(){return ft||(ft=1,Qe=Error),Qe}var Xe,ct;function Tn(){return ct||(ct=1,Xe=EvalError),Xe}var Ze,st;function kn(){return st||(st=1,Ze=RangeError),Ze}var er,pt;function xn(){return pt||(pt=1,er=ReferenceError),er}var rr,yt;function Dn(){return yt||(yt=1,rr=SyntaxError),rr}var tr,dt;function $n(){return dt||(dt=1,tr=URIError),tr}var nr,vt;function qn(){return vt||(vt=1,nr=Math.abs),nr}var ar,ht;function Nn(){return ht||(ht=1,ar=Math.floor),ar}var or,mt;function Fn(){return mt||(mt=1,or=Math.max),or}var ir,gt;function Cn(){return gt||(gt=1,ir=Math.min),ir}var ur,St;function Mn(){return St||(St=1,ur=Math.pow),ur}var lr,wt;function Un(){return wt||(wt=1,lr=Math.round),lr}var fr,bt;function Ln(){return bt||(bt=1,fr=Number.isNaN||function(r){return r!==r}),fr}var cr,Pt;function Bn(){if(Pt)return cr;Pt=1;var e=Ln();return cr=function(t){return e(t)||t===0?t:t<0?-1:1},cr}var sr,At;function jn(){return At||(At=1,sr=Object.getOwnPropertyDescriptor),sr}var pr,Et;function Xt(){if(Et)return pr;Et=1;var e=jn();if(e)try{e([],"length")}catch{e=null}return pr=e,pr}var yr,Ot;function Wn(){if(Ot)return yr;Ot=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return yr=e,yr}var dr,Rt;function Gn(){return Rt||(Rt=1,dr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),o=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;r[t]=s;for(var y in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var O=Object.getOwnPropertySymbols(r);if(O.length!==1||O[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(r,t);if(v.value!==s||v.enumerable!==!0)return!1}return!0}),dr}var vr,It;function zn(){if(It)return vr;It=1;var e=typeof Symbol<"u"&&Symbol,r=Gn();return vr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},vr}var hr,_t;function Zt(){return _t||(_t=1,hr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),hr}var mr,Tt;function en(){if(Tt)return mr;Tt=1;var e=Qt();return mr=e.getPrototypeOf||null,mr}var gr,kt;function Hn(){if(kt)return gr;kt=1;var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,t=Math.max,o="[object Function]",s=function(R,w){for(var h=[],m=0;m<R.length;m+=1)h[m]=R[m];for(var g=0;g<w.length;g+=1)h[g+R.length]=w[g];return h},y=function(R,w){for(var h=[],m=w,g=0;m<R.length;m+=1,g+=1)h[g]=R[m];return h},O=function(v,R){for(var w="",h=0;h<v.length;h+=1)w+=v[h],h+1<v.length&&(w+=R);return w};return gr=function(R){var w=this;if(typeof w!="function"||r.apply(w)!==o)throw new TypeError(e+w);for(var h=y(arguments,1),m,g=function(){if(this instanceof m){var u=w.apply(this,s(h,arguments));return Object(u)===u?u:this}return w.apply(R,s(h,arguments))},f=t(0,w.length-h.length),p=[],b=0;b<f;b++)p[b]="$"+b;if(m=Function("binder","return function ("+O(p,",")+"){ return binder.apply(this,arguments); }")(g),w.prototype){var i=function(){};i.prototype=w.prototype,m.prototype=new i,i.prototype=null}return m},gr}var Sr,xt;function Ce(){if(xt)return Sr;xt=1;var e=Hn();return Sr=Function.prototype.bind||e,Sr}var wr,Dt;function Br(){return Dt||(Dt=1,wr=Function.prototype.call),wr}var br,$t;function rn(){return $t||($t=1,br=Function.prototype.apply),br}var Pr,qt;function Vn(){return qt||(qt=1,Pr=typeof Reflect<"u"&&Reflect&&Reflect.apply),Pr}var Ar,Nt;function Jn(){if(Nt)return Ar;Nt=1;var e=Ce(),r=rn(),t=Br(),o=Vn();return Ar=o||e.call(t,r),Ar}var Er,Ft;function tn(){if(Ft)return Er;Ft=1;var e=Ce(),r=Oe(),t=Br(),o=Jn();return Er=function(y){if(y.length<1||typeof y[0]!="function")throw new r("a function is required");return o(e,t,y)},Er}var Or,Ct;function Yn(){if(Ct)return Or;Ct=1;var e=tn(),r=Xt(),t;try{t=[].__proto__===Array.prototype}catch(O){if(!O||typeof O!="object"||!("code"in O)||O.code!=="ERR_PROTO_ACCESS")throw O}var o=!!t&&r&&r(Object.prototype,"__proto__"),s=Object,y=s.getPrototypeOf;return Or=o&&typeof o.get=="function"?e([o.get]):typeof y=="function"?function(v){return y(v==null?v:s(v))}:!1,Or}var Rr,Mt;function Kn(){if(Mt)return Rr;Mt=1;var e=Zt(),r=en(),t=Yn();return Rr=e?function(s){return e(s)}:r?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return r(s)}:t?function(s){return t(s)}:null,Rr}var Ir,Ut;function Qn(){if(Ut)return Ir;Ut=1;var e=Function.prototype.call,r=Object.prototype.hasOwnProperty,t=Ce();return Ir=t.call(e,r),Ir}var _r,Lt;function jr(){if(Lt)return _r;Lt=1;var e,r=Qt(),t=_n(),o=Tn(),s=kn(),y=xn(),O=Dn(),v=Oe(),R=$n(),w=qn(),h=Nn(),m=Fn(),g=Cn(),f=Mn(),p=Un(),b=Bn(),i=Function,u=function(G){try{return i('"use strict"; return ('+G+").constructor;")()}catch{}},l=Xt(),S=Wn(),d=function(){throw new v},P=l?function(){try{return arguments.callee,d}catch{try{return l(arguments,"callee").get}catch{return d}}}():d,A=zn()(),E=Kn(),T=en(),q=Zt(),k=rn(),C=Br(),I={},J=typeof Uint8Array>"u"||!E?e:E(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&E?E(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":O,"%ThrowTypeError%":P,"%TypedArray%":J,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":R,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":w,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":b,"%Reflect.getPrototypeOf%":q};if(E)try{null.error}catch(G){var K=E(E(G));W["%Error.prototype%"]=K}var ae=function G($){var z;if($==="%AsyncFunction%")z=u("async function () {}");else if($==="%GeneratorFunction%")z=u("function* () {}");else if($==="%AsyncGeneratorFunction%")z=u("async function* () {}");else if($==="%AsyncGenerator%"){var M=G("%AsyncGeneratorFunction%");M&&(z=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var V=G("%AsyncGenerator%");V&&E&&(z=E(V.prototype))}return W[$]=z,z},oe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=Ce(),Q=Qn(),c=x.call(C,Array.prototype.concat),_=x.call(k,Array.prototype.splice),N=x.call(C,String.prototype.replace),L=x.call(C,String.prototype.slice),Y=x.call(C,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,ie=function($){var z=L($,0,1),M=L($,-1);if(z==="%"&&M!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&z!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var V=[];return N($,H,function(Z,ue,ee,re){V[V.length]=ee?N(re,X,"$1"):ue||Z}),V},B=function($,z){var M=$,V;if(Q(oe,M)&&(V=oe[M],M="%"+V[0]+"%"),Q(W,M)){var Z=W[M];if(Z===I&&(Z=ae(M)),typeof Z>"u"&&!z)throw new v("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:V,name:M,value:Z}}throw new O("intrinsic "+$+" does not exist!")};return _r=function($,z){if(typeof $!="string"||$.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new v('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,$)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=ie($),V=M.length>0?M[0]:"",Z=B("%"+V+"%",z),ue=Z.name,ee=Z.value,re=!1,le=Z.alias;le&&(V=le[0],_(M,c([0,1],le)));for(var Se=1,pe=!0;Se<M.length;Se+=1){var ce=M[Se],we=L(ce,0,1),be=L(ce,-1);if((we==='"'||we==="'"||we==="`"||be==='"'||be==="'"||be==="`")&&we!==be)throw new O("property names with quotes must have matching quotes");if((ce==="constructor"||!pe)&&(re=!0),V+="."+ce,ue="%"+V+"%",Q(W,ue))ee=W[ue];else if(ee!=null){if(!(ce in ee)){if(!z)throw new v("base intrinsic for "+$+" exists, but the property is not available.");return}if(l&&Se+1>=M.length){var Pe=l(ee,ce);pe=!!Pe,pe&&"get"in Pe&&!("originalValue"in Pe.get)?ee=Pe.get:ee=ee[ce]}else pe=Q(ee,ce),ee=ee[ce];pe&&!re&&(W[ue]=ee)}}return ee},_r}var Tr,Bt;function nn(){if(Bt)return Tr;Bt=1;var e=jr(),r=tn(),t=r([e("%String.prototype.indexOf%")]);return Tr=function(s,y){var O=e(s,!!y);return typeof O=="function"&&t(s,".prototype.")>-1?r([O]):O},Tr}var kr,jt;function an(){if(jt)return kr;jt=1;var e=jr(),r=nn(),t=Fe(),o=Oe(),s=e("%Map%",!0),y=r("Map.prototype.get",!0),O=r("Map.prototype.set",!0),v=r("Map.prototype.has",!0),R=r("Map.prototype.delete",!0),w=r("Map.prototype.size",!0);return kr=!!s&&function(){var m,g={assert:function(f){if(!g.has(f))throw new o("Side channel does not contain "+t(f))},delete:function(f){if(m){var p=R(m,f);return w(m)===0&&(m=void 0),p}return!1},get:function(f){if(m)return y(m,f)},has:function(f){return m?v(m,f):!1},set:function(f,p){m||(m=new s),O(m,f,p)}};return g},kr}var xr,Wt;function Xn(){if(Wt)return xr;Wt=1;var e=jr(),r=nn(),t=Fe(),o=an(),s=Oe(),y=e("%WeakMap%",!0),O=r("WeakMap.prototype.get",!0),v=r("WeakMap.prototype.set",!0),R=r("WeakMap.prototype.has",!0),w=r("WeakMap.prototype.delete",!0);return xr=y?function(){var m,g,f={assert:function(p){if(!f.has(p))throw new s("Side channel does not contain "+t(p))},delete:function(p){if(y&&p&&(typeof p=="object"||typeof p=="function")){if(m)return w(m,p)}else if(o&&g)return g.delete(p);return!1},get:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?O(m,p):g&&g.get(p)},has:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?R(m,p):!!g&&g.has(p)},set:function(p,b){y&&p&&(typeof p=="object"||typeof p=="function")?(m||(m=new y),v(m,p,b)):o&&(g||(g=o()),g.set(p,b))}};return f}:o,xr}var Dr,Gt;function Zn(){if(Gt)return Dr;Gt=1;var e=Oe(),r=Fe(),t=In(),o=an(),s=Xn(),y=s||o||t;return Dr=function(){var v,R={assert:function(w){if(!R.has(w))throw new e("Side channel does not contain "+r(w))},delete:function(w){return!!v&&v.delete(w)},get:function(w){return v&&v.get(w)},has:function(w){return!!v&&v.has(w)},set:function(w,h){v||(v=y()),v.set(w,h)}};return R},Dr}var $r,zt;function Wr(){if(zt)return $r;zt=1;var e=String.prototype.replace,r=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return $r={default:t.RFC3986,formatters:{RFC1738:function(o){return e.call(o,r,"+")},RFC3986:function(o){return String(o)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},$r}var qr,Ht;function on(){if(Ht)return qr;Ht=1;var e=Wr(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o=function(){for(var i=[],u=0;u<256;++u)i.push("%"+((u<16?"0":"")+u.toString(16)).toUpperCase());return i}(),s=function(u){for(;u.length>1;){var l=u.pop(),S=l.obj[l.prop];if(t(S)){for(var d=[],P=0;P<S.length;++P)typeof S[P]<"u"&&d.push(S[P]);l.obj[l.prop]=d}}},y=function(u,l){for(var S=l&&l.plainObjects?{__proto__:null}:{},d=0;d<u.length;++d)typeof u[d]<"u"&&(S[d]=u[d]);return S},O=function i(u,l,S){if(!l)return u;if(typeof l!="object"&&typeof l!="function"){if(t(u))u.push(l);else if(u&&typeof u=="object")(S&&(S.plainObjects||S.allowPrototypes)||!r.call(Object.prototype,l))&&(u[l]=!0);else return[u,l];return u}if(!u||typeof u!="object")return[u].concat(l);var d=u;return t(u)&&!t(l)&&(d=y(u,S)),t(u)&&t(l)?(l.forEach(function(P,A){if(r.call(u,A)){var E=u[A];E&&typeof E=="object"&&P&&typeof P=="object"?u[A]=i(E,P,S):u.push(P)}else u[A]=P}),u):Object.keys(l).reduce(function(P,A){var E=l[A];return r.call(P,A)?P[A]=i(P[A],E,S):P[A]=E,P},d)},v=function(u,l){return Object.keys(l).reduce(function(S,d){return S[d]=l[d],S},u)},R=function(i,u,l){var S=i.replace(/\+/g," ");if(l==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},w=1024,h=function(u,l,S,d,P){if(u.length===0)return u;var A=u;if(typeof u=="symbol"?A=Symbol.prototype.toString.call(u):typeof u!="string"&&(A=String(u)),S==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var E="",T=0;T<A.length;T+=w){for(var q=A.length>=w?A.slice(T,T+w):A,k=[],C=0;C<q.length;++C){var I=q.charCodeAt(C);if(I===45||I===46||I===95||I===126||I>=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||P===e.RFC1738&&(I===40||I===41)){k[k.length]=q.charAt(C);continue}if(I<128){k[k.length]=o[I];continue}if(I<2048){k[k.length]=o[192|I>>6]+o[128|I&63];continue}if(I<55296||I>=57344){k[k.length]=o[224|I>>12]+o[128|I>>6&63]+o[128|I&63];continue}C+=1,I=65536+((I&1023)<<10|q.charCodeAt(C)&1023),k[k.length]=o[240|I>>18]+o[128|I>>12&63]+o[128|I>>6&63]+o[128|I&63]}E+=k.join("")}return E},m=function(u){for(var l=[{obj:{o:u},prop:"o"}],S=[],d=0;d<l.length;++d)for(var P=l[d],A=P.obj[P.prop],E=Object.keys(A),T=0;T<E.length;++T){var q=E[T],k=A[q];typeof k=="object"&&k!==null&&S.indexOf(k)===-1&&(l.push({obj:A,prop:q}),S.push(k))}return s(l),u},g=function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},f=function(u){return!u||typeof u!="object"?!1:!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},p=function(u,l){return[].concat(u,l)},b=function(u,l){if(t(u)){for(var S=[],d=0;d<u.length;d+=1)S.push(l(u[d]));return S}return l(u)};return qr={arrayToObject:y,assign:v,combine:p,compact:m,decode:R,encode:h,isBuffer:f,isRegExp:g,maybeMap:b,merge:O},qr}var Nr,Vt;function ea(){if(Vt)return Nr;Vt=1;var e=Zn(),r=on(),t=Wr(),o=Object.prototype.hasOwnProperty,s={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,u){return i+"["+u+"]"},repeat:function(i){return i}},y=Array.isArray,O=Array.prototype.push,v=function(b,i){O.apply(b,y(i)?i:[i])},R=Date.prototype.toISOString,w=t.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:w,formatter:t.formatters[w],indices:!1,serializeDate:function(i){return R.call(i)},skipNulls:!1,strictNullHandling:!1},m=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},g={},f=function b(i,u,l,S,d,P,A,E,T,q,k,C,I,J,W,K,ae,oe){for(var x=i,Q=oe,c=0,_=!1;(Q=Q.get(g))!==void 0&&!_;){var N=Q.get(i);if(c+=1,typeof N<"u"){if(N===c)throw new RangeError("Cyclic object value");_=!0}typeof Q.get(g)>"u"&&(c=0)}if(typeof q=="function"?x=q(u,x):x instanceof Date?x=I(x):l==="comma"&&y(x)&&(x=r.maybeMap(x,function(ue){return ue instanceof Date?I(ue):ue})),x===null){if(P)return T&&!K?T(u,h.encoder,ae,"key",J):u;x=""}if(m(x)||r.isBuffer(x)){if(T){var L=K?u:T(u,h.encoder,ae,"key",J);return[W(L)+"="+W(T(x,h.encoder,ae,"value",J))]}return[W(u)+"="+W(String(x))]}var Y=[];if(typeof x>"u")return Y;var H;if(l==="comma"&&y(x))K&&T&&(x=r.maybeMap(x,T)),H=[{value:x.length>0?x.join(",")||null:void 0}];else if(y(q))H=q;else{var X=Object.keys(x);H=k?X.sort(k):X}var ie=E?String(u).replace(/\./g,"%2E"):String(u),B=S&&y(x)&&x.length===1?ie+"[]":ie;if(d&&y(x)&&x.length===0)return B+"[]";for(var G=0;G<H.length;++G){var $=H[G],z=typeof $=="object"&&$&&typeof $.value<"u"?$.value:x[$];if(!(A&&z===null)){var M=C&&E?String($).replace(/\./g,"%2E"):String($),V=y(x)?typeof l=="function"?l(B,M):B:B+(C?"."+M:"["+M+"]");oe.set(i,c);var Z=e();Z.set(g,oe),v(Y,b(z,V,l,S,d,P,A,E,l==="comma"&&K&&y(x)?null:T,q,k,C,I,J,W,K,ae,Z))}}return Y},p=function(i){if(!i)return h;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=i.charset||h.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var l=t.default;if(typeof i.format<"u"){if(!o.call(t.formatters,i.format))throw new TypeError("Unknown format option provided.");l=i.format}var S=t.formatters[l],d=h.filter;(typeof i.filter=="function"||y(i.filter))&&(d=i.filter);var P;if(i.arrayFormat in s?P=i.arrayFormat:"indices"in i?P=i.indices?"indices":"repeat":P=h.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:h.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:h.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:P,charset:u,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?h.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:h.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:h.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:h.encodeValuesOnly,filter:d,format:l,formatter:S,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:h.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:h.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:h.strictNullHandling}};return Nr=function(b,i){var u=b,l=p(i),S,d;typeof l.filter=="function"?(d=l.filter,u=d("",u)):y(l.filter)&&(d=l.filter,S=d);var P=[];if(typeof u!="object"||u===null)return"";var A=s[l.arrayFormat],E=A==="comma"&&l.commaRoundTrip;S||(S=Object.keys(u)),l.sort&&S.sort(l.sort);for(var T=e(),q=0;q<S.length;++q){var k=S[q],C=u[k];l.skipNulls&&C===null||v(P,f(C,k,A,E,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,T))}var I=P.join(l.delimiter),J=l.addQueryPrefix===!0?"?":"";return l.charsetSentinel&&(l.charset==="iso-8859-1"?J+="utf8=%26%2310003%3B&":J+="utf8=%E2%9C%93&"),I.length>0?J+I:""},Nr}var Fr,Jt;function ra(){if(Jt)return Fr;Jt=1;var e=on(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(g){return g.replace(/&#(\d+);/g,function(f,p){return String.fromCharCode(parseInt(p,10))})},y=function(g,f,p){if(g&&typeof g=="string"&&f.comma&&g.indexOf(",")>-1)return g.split(",");if(f.throwOnLimitExceeded&&p>=f.arrayLimit)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");return g},O="utf8=%26%2310003%3B",v="utf8=%E2%9C%93",R=function(f,p){var b={__proto__:null},i=p.ignoreQueryPrefix?f.replace(/^\?/,""):f;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=p.parameterLimit===1/0?void 0:p.parameterLimit,l=i.split(p.delimiter,p.throwOnLimitExceeded?u+1:u);if(p.throwOnLimitExceeded&&l.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(u===1?"":"s")+" allowed.");var S=-1,d,P=p.charset;if(p.charsetSentinel)for(d=0;d<l.length;++d)l[d].indexOf("utf8=")===0&&(l[d]===v?P="utf-8":l[d]===O&&(P="iso-8859-1"),S=d,d=l.length);for(d=0;d<l.length;++d)if(d!==S){var A=l[d],E=A.indexOf("]="),T=E===-1?A.indexOf("="):E+1,q,k;T===-1?(q=p.decoder(A,o.decoder,P,"key"),k=p.strictNullHandling?null:""):(q=p.decoder(A.slice(0,T),o.decoder,P,"key"),k=e.maybeMap(y(A.slice(T+1),p,t(b[q])?b[q].length:0),function(I){return p.decoder(I,o.decoder,P,"value")})),k&&p.interpretNumericEntities&&P==="iso-8859-1"&&(k=s(String(k))),A.indexOf("[]=")>-1&&(k=t(k)?[k]:k);var C=r.call(b,q);C&&p.duplicates==="combine"?b[q]=e.combine(b[q],k):(!C||p.duplicates==="last")&&(b[q]=k)}return b},w=function(g,f,p,b){var i=0;if(g.length>0&&g[g.length-1]==="[]"){var u=g.slice(0,-1).join("");i=Array.isArray(f)&&f[u]?f[u].length:0}for(var l=b?f:y(f,p,i),S=g.length-1;S>=0;--S){var d,P=g[S];if(P==="[]"&&p.parseArrays)d=p.allowEmptyArrays&&(l===""||p.strictNullHandling&&l===null)?[]:e.combine([],l);else{d=p.plainObjects?{__proto__:null}:{};var A=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,E=p.decodeDotInKeys?A.replace(/%2E/g,"."):A,T=parseInt(E,10);!p.parseArrays&&E===""?d={0:l}:!isNaN(T)&&P!==E&&String(T)===E&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(d=[],d[T]=l):E!=="__proto__"&&(d[E]=l)}l=d}return l},h=function(f,p,b,i){if(f){var u=b.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,l=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,d=b.depth>0&&l.exec(u),P=d?u.slice(0,d.index):u,A=[];if(P){if(!b.plainObjects&&r.call(Object.prototype,P)&&!b.allowPrototypes)return;A.push(P)}for(var E=0;b.depth>0&&(d=S.exec(u))!==null&&E<b.depth;){if(E+=1,!b.plainObjects&&r.call(Object.prototype,d[1].slice(1,-1))&&!b.allowPrototypes)return;A.push(d[1])}if(d){if(b.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+b.depth+" and strictDepth is true");A.push("["+u.slice(d.index)+"]")}return w(A,p,b,i)}},m=function(f){if(!f)return o;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof f.throwOnLimitExceeded<"u"&&typeof f.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var p=typeof f.charset>"u"?o.charset:f.charset,b=typeof f.duplicates>"u"?o.duplicates:f.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:o.allowDots:!!f.allowDots;return{allowDots:i,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:o.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:o.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:o.arrayLimit,charset:p,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:o.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:o.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:o.decoder,delimiter:typeof f.delimiter=="string"||e.isRegExp(f.delimiter)?f.delimiter:o.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:o.depth,duplicates:b,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:o.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:o.plainObjects,strictDepth:typeof f.strictDepth=="boolean"?!!f.strictDepth:o.strictDepth,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof f.throwOnLimitExceeded=="boolean"?f.throwOnLimitExceeded:!1}};return Fr=function(g,f){var p=m(f);if(g===""||g===null||typeof g>"u")return p.plainObjects?{__proto__:null}:{};for(var b=typeof g=="string"?R(g,p):g,i=p.plainObjects?{__proto__:null}:{},u=Object.keys(b),l=0;l<u.length;++l){var S=u[l],d=h(S,b[S],p,typeof g=="string");i=e.merge(i,d,p)}return p.allowSparse===!0?i:e.compact(i)},Fr}var Cr,Yt;function ta(){if(Yt)return Cr;Yt=1;var e=ea(),r=ra(),t=Wr();return Cr={formats:t,parse:r,stringify:e},Cr}var na=ta();const Ur=Sn(na),ge={token:"/lxwork/api/auth/token",permissionTicket:"/lxwork/api/auth/create-permission-ticket",authToken:"/sso/realms/myrealm/protocol/openid-connect/token",refreshToken:"/lxwork/api/auth/refresh",userGroup:"/lxwork/api/auth/users/groups",groups:"/lxwork/api/auth/groups",allCompany:"/lxwork/api/auth/groups/branch"};let Mr=0;async function ve(e,r){const t=await fetch(e,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+fe.getToken()},...r||{}});if(!t.ok){console.dir(t,await t.json());const o=localStorage.getItem("APPID");if(t.status===401&&o&&Mr<10)return Mr+=1,await new fe({APPID:o}).SSOLogin(),await ve(e,r);throw new Error(`HTTP error! status: ${t.status}`)}return Mr=0,await t.json()}const he=()=>({getTokenInfo:e=>ve(`${ge.token}?${Ur.stringify(e)}`),createPermissionTicket:e=>ve(`${ge.permissionTicket}`,{method:"POST",body:JSON.stringify(e)}),getAuthTokenInfo:e=>{const r=new URLSearchParams;return r.append("grant_type",e.grant_type),r.append("ticket",e.ticket),ve(`${ge.authToken}`,{method:"POST",body:r,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Bearer "+fe.getToken()}})},refreshAuthToken:()=>ve(`${ge.refreshToken}`,{}),getCompanyList:()=>ve(`${ge.allCompany}`,{}),getUserGroupList:()=>ve(`${ge.userGroup}`,{}),getGroupDetail:({id:e})=>ve(`${ge.groups}/${e}`)});function Lr(e){try{const t=new URL(e).hostname,o=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;return!!(o.test(t)||s.test(t))}catch{return!1}}function un(e){const r={};return new URL(e).searchParams.forEach((o,s)=>{r[s]=o}),r}function aa(e,r){const t=e.indexOf(r);return t!==-1?e.substring(0,t):e}function ln(e){const r=window.location.href,t=new URL(r),o=new URLSearchParams(t.search);e.forEach(s=>{o.delete(s)}),t.search=o.toString(),window.history.pushState({},"",t.href)}class ke extends Error{}ke.prototype.name="InvalidTokenError";function oa(e){return decodeURIComponent(atob(e).replace(/(.)/g,(r,t)=>{let o=t.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function ia(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return oa(r)}catch{return atob(r)}}function ua(e,r){if(typeof e!="string")throw new ke("Invalid token specified: must be a string");r||(r={});const t=r.header===!0?0:1,o=e.split(".")[t];if(typeof o!="string")throw new ke(`Invalid token specified: missing part #${t+1}`);let s;try{s=ia(o)}catch(y){throw new ke(`Invalid token specified: invalid base64 for part #${t+1} (${y.message})`)}try{return JSON.parse(s)}catch(y){throw new ke(`Invalid token specified: invalid json for part #${t+1} (${y.message})`)}}class fe{constructor({APPID:r}){et(this,"APPID");this.APPID=r,localStorage.setItem("APPID",this.APPID)}async SSOLogin(){const r=un(location.href),t=["state","code","iss","session_state"],o=t.length;if(Object.keys(r).length!==o){this.login();return}let s=[],y=0;for(;y<o;)Object.keys(r).includes(t[y])&&s.length<=o?s.push(t[y]):s=[],y++;if(s.length===o){fe.removeToken();let O;const v=ne.getItem("login_redirect_uri"),{code:R,state:w}=r;try{O=await he().getTokenInfo({code:R,client_id:this.APPID,state:w,redirect_uri:v}),this.setToken(O);const{ticket:h}=await he().createPermissionTicket({client_id:this.APPID}),m=await he().getAuthTokenInfo({grant_type:"urn:ietf:params:oauth:grant-type:uma-ticket",ticket:h});this.setToken(m,"auth"),ln(t)}catch{fe.removeToken(),window.location.href=v}}else{this.login();return}}login(){const{href:r,origin:t}=window.location,o={redirect_uri:r,client_id:this.APPID,scope:"openid"};ne.setItem("login_redirect_uri",o.redirect_uri),Lr(t)&&window.location.hostname!=="localhost"&&(o.keycloak_host=t+"/sso/");let s=`/lxwork/api/auth/login?${Ur.stringify(o)}`;window.location.replace(s)}logout(){const{href:r,origin:t}=window.location,{id_token:o}=fe.getTokenInfo()||{};fe.removeToken(),ne.removeItem("login_redirect_uri");const s={id_token_hint:o,post_logout_redirect_uri:r};Lr(t)&&window.location.hostname!=="localhost"&&(s.keycloak_host=t+"/sso/");let y=`/lxwork/api/auth/endsession?${Ur.stringify(s)}`;window.location.href=y}setToken(r,t){if(t==="auth"){const o=ne.getItem("SSO-tokenInfo");!r.id_token&&o&&(r.id_token=o.id_token),ne.setItem("tokenInfo",r)}else ne.setItem("SSO-tokenInfo",r)}async getCompanyList(){return await he().getCompanyList()}async getUserBranchGroup(){const r=await he().getUserGroupList(),t=r.find(y=>y.attributes.type.includes("3"));if(t)return t.name;const o=async y=>{if(y.attributes.type.includes("3"))return y.name;if(y.parentId){const O=await he().getGroupDetail({id:y.parentId});if(O)return o(O)}return""};let s="";for(let y=0;y<r.length&&(s=await o(r[y]),!s);y+=1);return s}async refreshToken(r){const{exp:t}=fe.getDecodeToken(),o=Date.now()/1e3;if(r||o>t-200&&o<t){const s=await he().refreshAuthToken();this.setToken(s),this.setToken(s,"auth")}}static getTokenInfo(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const t=ne.getItem("SSO-tokenInfo");return ne.getItem("tokenInfo")||t||null}static getToken(){const r=fe.getTokenInfo();return r==null?void 0:r.access_token}static getRefreshToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const t=ne.getItem("SSO-tokenInfo"),o=ne.getItem("tokenInfo");return(o==null?void 0:o.refresh_token)||(t==null?void 0:t.refresh_token)||""}static getDecodeToken(){const r=fe.getToken();return ua(r)}static removeToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");ne.removeItem("tokenInfo"),ne.removeItem("SSO-tokenInfo")}}exports.AuthLogin=fe;exports.LocalStorageUtil=ne;exports.Tree=Kt;exports.getUrlParams=un;exports.isIpAddress=Lr;exports.removeUrlParam=ln;exports.subBefore=aa;exports.useSSOApi=he;
25
+ `+a.prev}function xe(n,a){var F=le(n),U=[];if(F){U.length=n.length;for(var j=0;j<n.length;j++)U[j]=ne(n,j)?a(n[j],n):""}var D=typeof I=="function"?I(n):[],ve;if(G){ve={};for(var ge=0;ge<D.length;ge++)ve["$"+D[ge]]=D[ge]}for(var ae in n)ne(n,ae)&&(F&&String(Number(ae))===ae&&ae<n.length||G&&ve["$"+ae]instanceof Symbol||(A.call(/[^\w$]/,ae)?U.push(a(ae,n)+": "+a(n[ae],n)):U.push(ae+": "+a(n[ae],n))));if(typeof I=="function")for(var he=0;he<D.length;he++)ie.call(n,D[he])&&U.push("["+a(D[he])+"]: "+a(n[D[he]],n));return U}return Ve}var Ye,ut;function In(){if(ut)return Ye;ut=1;var e=Fe(),r=Oe(),t=function(v,R,w){for(var h=v,m;(m=h.next)!=null;h=m)if(m.key===R)return h.next=m.next,w||(m.next=v.next,v.next=m),m},o=function(v,R){if(v){var w=t(v,R);return w&&w.value}},s=function(v,R,w){var h=t(v,R);h?h.value=w:v.next={key:R,next:v.next,value:w}},y=function(v,R){return v?!!t(v,R):!1},O=function(v,R){if(v)return t(v,R,!0)};return Ye=function(){var R,w={assert:function(h){if(!w.has(h))throw new r("Side channel does not contain "+e(h))},delete:function(h){var m=R&&R.next,g=O(R,h);return g&&m&&m===g&&(R=void 0),!!g},get:function(h){return o(R,h)},has:function(h){return y(R,h)},set:function(h,m){R||(R={next:void 0}),s(R,h,m)}};return w},Ye}var Ke,lt;function Qt(){return lt||(lt=1,Ke=Object),Ke}var Qe,ft;function _n(){return ft||(ft=1,Qe=Error),Qe}var Xe,ct;function Tn(){return ct||(ct=1,Xe=EvalError),Xe}var Ze,st;function kn(){return st||(st=1,Ze=RangeError),Ze}var er,pt;function xn(){return pt||(pt=1,er=ReferenceError),er}var rr,yt;function Dn(){return yt||(yt=1,rr=SyntaxError),rr}var tr,dt;function $n(){return dt||(dt=1,tr=URIError),tr}var nr,vt;function qn(){return vt||(vt=1,nr=Math.abs),nr}var ar,ht;function Nn(){return ht||(ht=1,ar=Math.floor),ar}var or,mt;function Fn(){return mt||(mt=1,or=Math.max),or}var ir,gt;function Cn(){return gt||(gt=1,ir=Math.min),ir}var ur,St;function Mn(){return St||(St=1,ur=Math.pow),ur}var lr,wt;function Un(){return wt||(wt=1,lr=Math.round),lr}var fr,bt;function Ln(){return bt||(bt=1,fr=Number.isNaN||function(r){return r!==r}),fr}var cr,Pt;function Bn(){if(Pt)return cr;Pt=1;var e=Ln();return cr=function(t){return e(t)||t===0?t:t<0?-1:1},cr}var sr,At;function jn(){return At||(At=1,sr=Object.getOwnPropertyDescriptor),sr}var pr,Et;function Xt(){if(Et)return pr;Et=1;var e=jn();if(e)try{e([],"length")}catch{e=null}return pr=e,pr}var yr,Ot;function Gn(){if(Ot)return yr;Ot=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return yr=e,yr}var dr,Rt;function Wn(){return Rt||(Rt=1,dr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),o=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;r[t]=s;for(var y in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var O=Object.getOwnPropertySymbols(r);if(O.length!==1||O[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(r,t);if(v.value!==s||v.enumerable!==!0)return!1}return!0}),dr}var vr,It;function zn(){if(It)return vr;It=1;var e=typeof Symbol<"u"&&Symbol,r=Wn();return vr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},vr}var hr,_t;function Zt(){return _t||(_t=1,hr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),hr}var mr,Tt;function en(){if(Tt)return mr;Tt=1;var e=Qt();return mr=e.getPrototypeOf||null,mr}var gr,kt;function Hn(){if(kt)return gr;kt=1;var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,t=Math.max,o="[object Function]",s=function(R,w){for(var h=[],m=0;m<R.length;m+=1)h[m]=R[m];for(var g=0;g<w.length;g+=1)h[g+R.length]=w[g];return h},y=function(R,w){for(var h=[],m=w,g=0;m<R.length;m+=1,g+=1)h[g]=R[m];return h},O=function(v,R){for(var w="",h=0;h<v.length;h+=1)w+=v[h],h+1<v.length&&(w+=R);return w};return gr=function(R){var w=this;if(typeof w!="function"||r.apply(w)!==o)throw new TypeError(e+w);for(var h=y(arguments,1),m,g=function(){if(this instanceof m){var u=w.apply(this,s(h,arguments));return Object(u)===u?u:this}return w.apply(R,s(h,arguments))},f=t(0,w.length-h.length),p=[],b=0;b<f;b++)p[b]="$"+b;if(m=Function("binder","return function ("+O(p,",")+"){ return binder.apply(this,arguments); }")(g),w.prototype){var i=function(){};i.prototype=w.prototype,m.prototype=new i,i.prototype=null}return m},gr}var Sr,xt;function Ce(){if(xt)return Sr;xt=1;var e=Hn();return Sr=Function.prototype.bind||e,Sr}var wr,Dt;function Br(){return Dt||(Dt=1,wr=Function.prototype.call),wr}var br,$t;function rn(){return $t||($t=1,br=Function.prototype.apply),br}var Pr,qt;function Jn(){return qt||(qt=1,Pr=typeof Reflect<"u"&&Reflect&&Reflect.apply),Pr}var Ar,Nt;function Vn(){if(Nt)return Ar;Nt=1;var e=Ce(),r=rn(),t=Br(),o=Jn();return Ar=o||e.call(t,r),Ar}var Er,Ft;function tn(){if(Ft)return Er;Ft=1;var e=Ce(),r=Oe(),t=Br(),o=Vn();return Er=function(y){if(y.length<1||typeof y[0]!="function")throw new r("a function is required");return o(e,t,y)},Er}var Or,Ct;function Yn(){if(Ct)return Or;Ct=1;var e=tn(),r=Xt(),t;try{t=[].__proto__===Array.prototype}catch(O){if(!O||typeof O!="object"||!("code"in O)||O.code!=="ERR_PROTO_ACCESS")throw O}var o=!!t&&r&&r(Object.prototype,"__proto__"),s=Object,y=s.getPrototypeOf;return Or=o&&typeof o.get=="function"?e([o.get]):typeof y=="function"?function(v){return y(v==null?v:s(v))}:!1,Or}var Rr,Mt;function Kn(){if(Mt)return Rr;Mt=1;var e=Zt(),r=en(),t=Yn();return Rr=e?function(s){return e(s)}:r?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return r(s)}:t?function(s){return t(s)}:null,Rr}var Ir,Ut;function Qn(){if(Ut)return Ir;Ut=1;var e=Function.prototype.call,r=Object.prototype.hasOwnProperty,t=Ce();return Ir=t.call(e,r),Ir}var _r,Lt;function jr(){if(Lt)return _r;Lt=1;var e,r=Qt(),t=_n(),o=Tn(),s=kn(),y=xn(),O=Dn(),v=Oe(),R=$n(),w=qn(),h=Nn(),m=Fn(),g=Cn(),f=Mn(),p=Un(),b=Bn(),i=Function,u=function(W){try{return i('"use strict"; return ('+W+").constructor;")()}catch{}},l=Xt(),S=Gn(),d=function(){throw new v},P=l?function(){try{return arguments.callee,d}catch{try{return l(arguments,"callee").get}catch{return d}}}():d,A=zn()(),E=Kn(),T=en(),q=Zt(),k=rn(),C=Br(),I={},V=typeof Uint8Array>"u"||!E?e:E(Uint8Array),G={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&E?E(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":O,"%ThrowTypeError%":P,"%TypedArray%":V,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":R,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":w,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":b,"%Reflect.getPrototypeOf%":q};if(E)try{null.error}catch(W){var K=E(E(W));G["%Error.prototype%"]=K}var ie=function W($){var z;if($==="%AsyncFunction%")z=u("async function () {}");else if($==="%GeneratorFunction%")z=u("function* () {}");else if($==="%AsyncGeneratorFunction%")z=u("async function* () {}");else if($==="%AsyncGenerator%"){var M=W("%AsyncGeneratorFunction%");M&&(z=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var J=W("%AsyncGenerator%");J&&E&&(z=E(J.prototype))}return G[$]=z,z},ue={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=Ce(),Q=Qn(),c=x.call(C,Array.prototype.concat),_=x.call(k,Array.prototype.splice),N=x.call(C,String.prototype.replace),L=x.call(C,String.prototype.slice),Y=x.call(C,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,le=function($){var z=L($,0,1),M=L($,-1);if(z==="%"&&M!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&z!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var J=[];return N($,H,function(Z,fe,ee,ne){J[J.length]=ee?N(ne,X,"$1"):fe||Z}),J},B=function($,z){var M=$,J;if(Q(ue,M)&&(J=ue[M],M="%"+J[0]+"%"),Q(G,M)){var Z=G[M];if(Z===I&&(Z=ie(M)),typeof Z>"u"&&!z)throw new v("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:J,name:M,value:Z}}throw new O("intrinsic "+$+" does not exist!")};return _r=function($,z){if(typeof $!="string"||$.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new v('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,$)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=le($),J=M.length>0?M[0]:"",Z=B("%"+J+"%",z),fe=Z.name,ee=Z.value,ne=!1,ce=Z.alias;ce&&(J=ce[0],_(M,c([0,1],ce)));for(var Se=1,de=!0;Se<M.length;Se+=1){var pe=M[Se],we=L(pe,0,1),be=L(pe,-1);if((we==='"'||we==="'"||we==="`"||be==='"'||be==="'"||be==="`")&&we!==be)throw new O("property names with quotes must have matching quotes");if((pe==="constructor"||!de)&&(ne=!0),J+="."+pe,fe="%"+J+"%",Q(G,fe))ee=G[fe];else if(ee!=null){if(!(pe in ee)){if(!z)throw new v("base intrinsic for "+$+" exists, but the property is not available.");return}if(l&&Se+1>=M.length){var Pe=l(ee,pe);de=!!Pe,de&&"get"in Pe&&!("originalValue"in Pe.get)?ee=Pe.get:ee=ee[pe]}else de=Q(ee,pe),ee=ee[pe];de&&!ne&&(G[fe]=ee)}}return ee},_r}var Tr,Bt;function nn(){if(Bt)return Tr;Bt=1;var e=jr(),r=tn(),t=r([e("%String.prototype.indexOf%")]);return Tr=function(s,y){var O=e(s,!!y);return typeof O=="function"&&t(s,".prototype.")>-1?r([O]):O},Tr}var kr,jt;function an(){if(jt)return kr;jt=1;var e=jr(),r=nn(),t=Fe(),o=Oe(),s=e("%Map%",!0),y=r("Map.prototype.get",!0),O=r("Map.prototype.set",!0),v=r("Map.prototype.has",!0),R=r("Map.prototype.delete",!0),w=r("Map.prototype.size",!0);return kr=!!s&&function(){var m,g={assert:function(f){if(!g.has(f))throw new o("Side channel does not contain "+t(f))},delete:function(f){if(m){var p=R(m,f);return w(m)===0&&(m=void 0),p}return!1},get:function(f){if(m)return y(m,f)},has:function(f){return m?v(m,f):!1},set:function(f,p){m||(m=new s),O(m,f,p)}};return g},kr}var xr,Gt;function Xn(){if(Gt)return xr;Gt=1;var e=jr(),r=nn(),t=Fe(),o=an(),s=Oe(),y=e("%WeakMap%",!0),O=r("WeakMap.prototype.get",!0),v=r("WeakMap.prototype.set",!0),R=r("WeakMap.prototype.has",!0),w=r("WeakMap.prototype.delete",!0);return xr=y?function(){var m,g,f={assert:function(p){if(!f.has(p))throw new s("Side channel does not contain "+t(p))},delete:function(p){if(y&&p&&(typeof p=="object"||typeof p=="function")){if(m)return w(m,p)}else if(o&&g)return g.delete(p);return!1},get:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?O(m,p):g&&g.get(p)},has:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?R(m,p):!!g&&g.has(p)},set:function(p,b){y&&p&&(typeof p=="object"||typeof p=="function")?(m||(m=new y),v(m,p,b)):o&&(g||(g=o()),g.set(p,b))}};return f}:o,xr}var Dr,Wt;function Zn(){if(Wt)return Dr;Wt=1;var e=Oe(),r=Fe(),t=In(),o=an(),s=Xn(),y=s||o||t;return Dr=function(){var v,R={assert:function(w){if(!R.has(w))throw new e("Side channel does not contain "+r(w))},delete:function(w){return!!v&&v.delete(w)},get:function(w){return v&&v.get(w)},has:function(w){return!!v&&v.has(w)},set:function(w,h){v||(v=y()),v.set(w,h)}};return R},Dr}var $r,zt;function Gr(){if(zt)return $r;zt=1;var e=String.prototype.replace,r=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return $r={default:t.RFC3986,formatters:{RFC1738:function(o){return e.call(o,r,"+")},RFC3986:function(o){return String(o)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},$r}var qr,Ht;function on(){if(Ht)return qr;Ht=1;var e=Gr(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o=function(){for(var i=[],u=0;u<256;++u)i.push("%"+((u<16?"0":"")+u.toString(16)).toUpperCase());return i}(),s=function(u){for(;u.length>1;){var l=u.pop(),S=l.obj[l.prop];if(t(S)){for(var d=[],P=0;P<S.length;++P)typeof S[P]<"u"&&d.push(S[P]);l.obj[l.prop]=d}}},y=function(u,l){for(var S=l&&l.plainObjects?{__proto__:null}:{},d=0;d<u.length;++d)typeof u[d]<"u"&&(S[d]=u[d]);return S},O=function i(u,l,S){if(!l)return u;if(typeof l!="object"&&typeof l!="function"){if(t(u))u.push(l);else if(u&&typeof u=="object")(S&&(S.plainObjects||S.allowPrototypes)||!r.call(Object.prototype,l))&&(u[l]=!0);else return[u,l];return u}if(!u||typeof u!="object")return[u].concat(l);var d=u;return t(u)&&!t(l)&&(d=y(u,S)),t(u)&&t(l)?(l.forEach(function(P,A){if(r.call(u,A)){var E=u[A];E&&typeof E=="object"&&P&&typeof P=="object"?u[A]=i(E,P,S):u.push(P)}else u[A]=P}),u):Object.keys(l).reduce(function(P,A){var E=l[A];return r.call(P,A)?P[A]=i(P[A],E,S):P[A]=E,P},d)},v=function(u,l){return Object.keys(l).reduce(function(S,d){return S[d]=l[d],S},u)},R=function(i,u,l){var S=i.replace(/\+/g," ");if(l==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},w=1024,h=function(u,l,S,d,P){if(u.length===0)return u;var A=u;if(typeof u=="symbol"?A=Symbol.prototype.toString.call(u):typeof u!="string"&&(A=String(u)),S==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(V){return"%26%23"+parseInt(V.slice(2),16)+"%3B"});for(var E="",T=0;T<A.length;T+=w){for(var q=A.length>=w?A.slice(T,T+w):A,k=[],C=0;C<q.length;++C){var I=q.charCodeAt(C);if(I===45||I===46||I===95||I===126||I>=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||P===e.RFC1738&&(I===40||I===41)){k[k.length]=q.charAt(C);continue}if(I<128){k[k.length]=o[I];continue}if(I<2048){k[k.length]=o[192|I>>6]+o[128|I&63];continue}if(I<55296||I>=57344){k[k.length]=o[224|I>>12]+o[128|I>>6&63]+o[128|I&63];continue}C+=1,I=65536+((I&1023)<<10|q.charCodeAt(C)&1023),k[k.length]=o[240|I>>18]+o[128|I>>12&63]+o[128|I>>6&63]+o[128|I&63]}E+=k.join("")}return E},m=function(u){for(var l=[{obj:{o:u},prop:"o"}],S=[],d=0;d<l.length;++d)for(var P=l[d],A=P.obj[P.prop],E=Object.keys(A),T=0;T<E.length;++T){var q=E[T],k=A[q];typeof k=="object"&&k!==null&&S.indexOf(k)===-1&&(l.push({obj:A,prop:q}),S.push(k))}return s(l),u},g=function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},f=function(u){return!u||typeof u!="object"?!1:!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},p=function(u,l){return[].concat(u,l)},b=function(u,l){if(t(u)){for(var S=[],d=0;d<u.length;d+=1)S.push(l(u[d]));return S}return l(u)};return qr={arrayToObject:y,assign:v,combine:p,compact:m,decode:R,encode:h,isBuffer:f,isRegExp:g,maybeMap:b,merge:O},qr}var Nr,Jt;function ea(){if(Jt)return Nr;Jt=1;var e=Zn(),r=on(),t=Gr(),o=Object.prototype.hasOwnProperty,s={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,u){return i+"["+u+"]"},repeat:function(i){return i}},y=Array.isArray,O=Array.prototype.push,v=function(b,i){O.apply(b,y(i)?i:[i])},R=Date.prototype.toISOString,w=t.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:w,formatter:t.formatters[w],indices:!1,serializeDate:function(i){return R.call(i)},skipNulls:!1,strictNullHandling:!1},m=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},g={},f=function b(i,u,l,S,d,P,A,E,T,q,k,C,I,V,G,K,ie,ue){for(var x=i,Q=ue,c=0,_=!1;(Q=Q.get(g))!==void 0&&!_;){var N=Q.get(i);if(c+=1,typeof N<"u"){if(N===c)throw new RangeError("Cyclic object value");_=!0}typeof Q.get(g)>"u"&&(c=0)}if(typeof q=="function"?x=q(u,x):x instanceof Date?x=I(x):l==="comma"&&y(x)&&(x=r.maybeMap(x,function(fe){return fe instanceof Date?I(fe):fe})),x===null){if(P)return T&&!K?T(u,h.encoder,ie,"key",V):u;x=""}if(m(x)||r.isBuffer(x)){if(T){var L=K?u:T(u,h.encoder,ie,"key",V);return[G(L)+"="+G(T(x,h.encoder,ie,"value",V))]}return[G(u)+"="+G(String(x))]}var Y=[];if(typeof x>"u")return Y;var H;if(l==="comma"&&y(x))K&&T&&(x=r.maybeMap(x,T)),H=[{value:x.length>0?x.join(",")||null:void 0}];else if(y(q))H=q;else{var X=Object.keys(x);H=k?X.sort(k):X}var le=E?String(u).replace(/\./g,"%2E"):String(u),B=S&&y(x)&&x.length===1?le+"[]":le;if(d&&y(x)&&x.length===0)return B+"[]";for(var W=0;W<H.length;++W){var $=H[W],z=typeof $=="object"&&$&&typeof $.value<"u"?$.value:x[$];if(!(A&&z===null)){var M=C&&E?String($).replace(/\./g,"%2E"):String($),J=y(x)?typeof l=="function"?l(B,M):B:B+(C?"."+M:"["+M+"]");ue.set(i,c);var Z=e();Z.set(g,ue),v(Y,b(z,J,l,S,d,P,A,E,l==="comma"&&K&&y(x)?null:T,q,k,C,I,V,G,K,ie,Z))}}return Y},p=function(i){if(!i)return h;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=i.charset||h.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var l=t.default;if(typeof i.format<"u"){if(!o.call(t.formatters,i.format))throw new TypeError("Unknown format option provided.");l=i.format}var S=t.formatters[l],d=h.filter;(typeof i.filter=="function"||y(i.filter))&&(d=i.filter);var P;if(i.arrayFormat in s?P=i.arrayFormat:"indices"in i?P=i.indices?"indices":"repeat":P=h.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:h.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:h.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:P,charset:u,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?h.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:h.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:h.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:h.encodeValuesOnly,filter:d,format:l,formatter:S,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:h.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:h.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:h.strictNullHandling}};return Nr=function(b,i){var u=b,l=p(i),S,d;typeof l.filter=="function"?(d=l.filter,u=d("",u)):y(l.filter)&&(d=l.filter,S=d);var P=[];if(typeof u!="object"||u===null)return"";var A=s[l.arrayFormat],E=A==="comma"&&l.commaRoundTrip;S||(S=Object.keys(u)),l.sort&&S.sort(l.sort);for(var T=e(),q=0;q<S.length;++q){var k=S[q],C=u[k];l.skipNulls&&C===null||v(P,f(C,k,A,E,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,T))}var I=P.join(l.delimiter),V=l.addQueryPrefix===!0?"?":"";return l.charsetSentinel&&(l.charset==="iso-8859-1"?V+="utf8=%26%2310003%3B&":V+="utf8=%E2%9C%93&"),I.length>0?V+I:""},Nr}var Fr,Vt;function ra(){if(Vt)return Fr;Vt=1;var e=on(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(g){return g.replace(/&#(\d+);/g,function(f,p){return String.fromCharCode(parseInt(p,10))})},y=function(g,f,p){if(g&&typeof g=="string"&&f.comma&&g.indexOf(",")>-1)return g.split(",");if(f.throwOnLimitExceeded&&p>=f.arrayLimit)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");return g},O="utf8=%26%2310003%3B",v="utf8=%E2%9C%93",R=function(f,p){var b={__proto__:null},i=p.ignoreQueryPrefix?f.replace(/^\?/,""):f;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=p.parameterLimit===1/0?void 0:p.parameterLimit,l=i.split(p.delimiter,p.throwOnLimitExceeded?u+1:u);if(p.throwOnLimitExceeded&&l.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(u===1?"":"s")+" allowed.");var S=-1,d,P=p.charset;if(p.charsetSentinel)for(d=0;d<l.length;++d)l[d].indexOf("utf8=")===0&&(l[d]===v?P="utf-8":l[d]===O&&(P="iso-8859-1"),S=d,d=l.length);for(d=0;d<l.length;++d)if(d!==S){var A=l[d],E=A.indexOf("]="),T=E===-1?A.indexOf("="):E+1,q,k;T===-1?(q=p.decoder(A,o.decoder,P,"key"),k=p.strictNullHandling?null:""):(q=p.decoder(A.slice(0,T),o.decoder,P,"key"),k=e.maybeMap(y(A.slice(T+1),p,t(b[q])?b[q].length:0),function(I){return p.decoder(I,o.decoder,P,"value")})),k&&p.interpretNumericEntities&&P==="iso-8859-1"&&(k=s(String(k))),A.indexOf("[]=")>-1&&(k=t(k)?[k]:k);var C=r.call(b,q);C&&p.duplicates==="combine"?b[q]=e.combine(b[q],k):(!C||p.duplicates==="last")&&(b[q]=k)}return b},w=function(g,f,p,b){var i=0;if(g.length>0&&g[g.length-1]==="[]"){var u=g.slice(0,-1).join("");i=Array.isArray(f)&&f[u]?f[u].length:0}for(var l=b?f:y(f,p,i),S=g.length-1;S>=0;--S){var d,P=g[S];if(P==="[]"&&p.parseArrays)d=p.allowEmptyArrays&&(l===""||p.strictNullHandling&&l===null)?[]:e.combine([],l);else{d=p.plainObjects?{__proto__:null}:{};var A=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,E=p.decodeDotInKeys?A.replace(/%2E/g,"."):A,T=parseInt(E,10);!p.parseArrays&&E===""?d={0:l}:!isNaN(T)&&P!==E&&String(T)===E&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(d=[],d[T]=l):E!=="__proto__"&&(d[E]=l)}l=d}return l},h=function(f,p,b,i){if(f){var u=b.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,l=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,d=b.depth>0&&l.exec(u),P=d?u.slice(0,d.index):u,A=[];if(P){if(!b.plainObjects&&r.call(Object.prototype,P)&&!b.allowPrototypes)return;A.push(P)}for(var E=0;b.depth>0&&(d=S.exec(u))!==null&&E<b.depth;){if(E+=1,!b.plainObjects&&r.call(Object.prototype,d[1].slice(1,-1))&&!b.allowPrototypes)return;A.push(d[1])}if(d){if(b.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+b.depth+" and strictDepth is true");A.push("["+u.slice(d.index)+"]")}return w(A,p,b,i)}},m=function(f){if(!f)return o;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof f.throwOnLimitExceeded<"u"&&typeof f.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var p=typeof f.charset>"u"?o.charset:f.charset,b=typeof f.duplicates>"u"?o.duplicates:f.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:o.allowDots:!!f.allowDots;return{allowDots:i,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:o.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:o.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:o.arrayLimit,charset:p,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:o.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:o.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:o.decoder,delimiter:typeof f.delimiter=="string"||e.isRegExp(f.delimiter)?f.delimiter:o.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:o.depth,duplicates:b,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:o.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:o.plainObjects,strictDepth:typeof f.strictDepth=="boolean"?!!f.strictDepth:o.strictDepth,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof f.throwOnLimitExceeded=="boolean"?f.throwOnLimitExceeded:!1}};return Fr=function(g,f){var p=m(f);if(g===""||g===null||typeof g>"u")return p.plainObjects?{__proto__:null}:{};for(var b=typeof g=="string"?R(g,p):g,i=p.plainObjects?{__proto__:null}:{},u=Object.keys(b),l=0;l<u.length;++l){var S=u[l],d=h(S,b[S],p,typeof g=="string");i=e.merge(i,d,p)}return p.allowSparse===!0?i:e.compact(i)},Fr}var Cr,Yt;function ta(){if(Yt)return Cr;Yt=1;var e=ea(),r=ra(),t=Gr();return Cr={formats:t,parse:r,stringify:e},Cr}var na=ta();const Ur=Sn(na),te={token:"/lxwork/api/auth/token",permissionTicket:"/lxwork/api/auth/create-permission-ticket",authToken:"/sso/realms/myrealm/protocol/openid-connect/token",refreshToken:"/lxwork/api/auth/refresh",userGroup:"/lxwork/api/auth/users/groups",groups:"/lxwork/api/auth/groups",allCompany:"/lxwork/api/auth/groups/branch",userinfo:"/lxwork/api/auth/userinfo",user:"/lxwork/api/auth/users"};let Mr=0;async function re(e,r){const t=await fetch(e,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+se.getToken()},...r||{}});if(!t.ok){console.dir(t,await t.json());const o=localStorage.getItem("APPID");if(t.status===401&&o&&Mr<10)return Mr+=1,await new se({APPID:o}).SSOLogin(),await re(e,r);throw new Error(`HTTP error! status: ${t.status}`)}return Mr=0,await t.json()}const me=()=>({getTokenInfo:e=>re(`${te.token}?${Ur.stringify(e)}`),createPermissionTicket:e=>re(`${te.permissionTicket}`,{method:"POST",body:JSON.stringify(e)}),getAuthTokenInfo:e=>{const r=new URLSearchParams;return r.append("grant_type",e.grant_type),r.append("ticket",e.ticket),re(`${te.authToken}`,{method:"POST",body:r,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Bearer "+se.getToken()}})},refreshAuthToken:()=>re(`${te.refreshToken}`,{}),getCompanyList:()=>re(`${te.allCompany}`,{}),getUserGroupList:()=>re(`${te.userGroup}`,{}),getGroupDetail:({id:e})=>re(`${te.groups}/${e}`),getUserInfo:()=>re(`${te.userinfo}`),getUserDetail:()=>re(`${te.user}/detail`),getUserDetailById:({id:e})=>re(`${te.user}/${e}`),getUsers:e=>re(`${te.user}/search`,{method:"GET",body:JSON.stringify(e)}),getUsersByRole:e=>re(`${te.user}/search-by-role`,{method:"GET",body:JSON.stringify(e)}),getCurUserGroupList:()=>re(`${te.user}/group/list`,{method:"GET"}),getAllRoles:()=>re(`${te.user}/all-roles`,{method:"GET"}),getCurUserRoles:()=>re(`${te.user}/role-mappings`,{method:"GET"})});function Lr(e){try{const t=new URL(e).hostname,o=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;return!!(o.test(t)||s.test(t))}catch{return!1}}function un(e){const r={};return new URL(e).searchParams.forEach((o,s)=>{r[s]=o}),r}function aa(e,r){const t=e.indexOf(r);return t!==-1?e.substring(0,t):e}function ln(e){const r=window.location.href,t=new URL(r),o=new URLSearchParams(t.search);e.forEach(s=>{o.delete(s)}),t.search=o.toString(),window.history.pushState({},"",t.href)}class ke extends Error{}ke.prototype.name="InvalidTokenError";function oa(e){return decodeURIComponent(atob(e).replace(/(.)/g,(r,t)=>{let o=t.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function ia(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return oa(r)}catch{return atob(r)}}function ua(e,r){if(typeof e!="string")throw new ke("Invalid token specified: must be a string");r||(r={});const t=r.header===!0?0:1,o=e.split(".")[t];if(typeof o!="string")throw new ke(`Invalid token specified: missing part #${t+1}`);let s;try{s=ia(o)}catch(y){throw new ke(`Invalid token specified: invalid base64 for part #${t+1} (${y.message})`)}try{return JSON.parse(s)}catch(y){throw new ke(`Invalid token specified: invalid json for part #${t+1} (${y.message})`)}}class se{constructor({APPID:r}){et(this,"APPID");this.APPID=r,localStorage.setItem("APPID",this.APPID)}async SSOLogin(){const r=un(location.href),t=["state","code","iss","session_state"],o=t.length;if(Object.keys(r).length!==o){this.login();return}let s=[],y=0;for(;y<o;)Object.keys(r).includes(t[y])&&s.length<=o?s.push(t[y]):s=[],y++;if(s.length===o){se.removeToken();let O;const v=oe.getItem("login_redirect_uri"),{code:R,state:w}=r;try{O=await me().getTokenInfo({code:R,client_id:this.APPID,state:w,redirect_uri:v}),this.setToken(O);const{ticket:h}=await me().createPermissionTicket({client_id:this.APPID}),m=await me().getAuthTokenInfo({grant_type:"urn:ietf:params:oauth:grant-type:uma-ticket",ticket:h});this.setToken(m,"auth"),ln(t)}catch{se.removeToken(),window.location.href=v}}else{this.login();return}}login(){const{href:r,origin:t}=window.location,o={redirect_uri:r,client_id:this.APPID,scope:"openid"};oe.setItem("login_redirect_uri",o.redirect_uri),Lr(t)&&window.location.hostname!=="localhost"&&(o.keycloak_host=t+"/sso/");let s=`/lxwork/api/auth/login?${Ur.stringify(o)}`;window.location.replace(s)}logout(){const{href:r,origin:t}=window.location,{id_token:o}=se.getTokenInfo()||{};oe.removeItem("login_redirect_uri");const s={id_token_hint:o,post_logout_redirect_uri:r};Lr(t)&&window.location.hostname!=="localhost"&&(s.keycloak_host=t+"/sso/");let y=`/lxwork/api/auth/endsession?${Ur.stringify(s)}`;se.removeToken(),window.location.href=y}setToken(r,t){if(t==="auth"){const o=oe.getItem("SSO-tokenInfo");!r.id_token&&o&&(r.id_token=o.id_token),oe.setItem("tokenInfo",r)}else oe.setItem("SSO-tokenInfo",r)}async getCompanyList(){return await me().getCompanyList()}async getUserBranchGroup(){const r=await me().getUserGroupList(),t=r.find(y=>y.attributes.type.includes("3"));if(t)return t.name;const o=async y=>{if(y.attributes.type.includes("3"))return y.name;if(y.parentId){const O=await me().getGroupDetail({id:y.parentId});if(O)return o(O)}return""};let s="";for(let y=0;y<r.length&&(s=await o(r[y]),!s);y+=1);return s}async refreshToken(r){const{exp:t}=se.getDecodeToken(),o=Date.now()/1e3;if(r||o>t-200&&o<t){const s=await me().refreshAuthToken();this.setToken(s),this.setToken(s,"auth")}}static getTokenInfo(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const t=oe.getItem("SSO-tokenInfo");return oe.getItem("tokenInfo")||t||null}static getToken(){const r=se.getTokenInfo();return r==null?void 0:r.access_token}static getRefreshToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const t=oe.getItem("SSO-tokenInfo"),o=oe.getItem("tokenInfo");return(o==null?void 0:o.refresh_token)||(t==null?void 0:t.refresh_token)||""}static getDecodeToken(){const r=se.getToken();return ua(r)}static removeToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");oe.removeItem("tokenInfo"),oe.removeItem("SSO-tokenInfo")}}exports.AuthLogin=se;exports.LocalStorageUtil=oe;exports.Tree=Kt;exports.getUrlParams=un;exports.isIpAddress=Lr;exports.removeUrlParam=ln;exports.subBefore=aa;exports.useSSOApi=me;
@@ -148,8 +148,89 @@ export declare interface DecodeTokenType {
148
148
 
149
149
  export declare function getUrlParams(url: string): Record<string, string>;
150
150
 
151
+ export declare interface GroupItem {
152
+ id: string;
153
+ name: string;
154
+ path: string;
155
+ parentId: string;
156
+ subGroupCount: any;
157
+ attributes: IAttributes;
158
+ subGroups: any;
159
+ type: string;
160
+ sfejfgs: string;
161
+ }
162
+
163
+ declare interface IAccess {
164
+ manageGroupMembership: boolean;
165
+ view: boolean;
166
+ mapRoles: boolean;
167
+ impersonate: boolean;
168
+ manage: boolean;
169
+ }
170
+
171
+ declare interface IAccess {
172
+ manageGroupMembership: boolean;
173
+ view: boolean;
174
+ mapRoles: boolean;
175
+ impersonate: boolean;
176
+ manage: boolean;
177
+ }
178
+
179
+ declare interface IAttributes {
180
+ birthdate: any[];
181
+ gender: string[];
182
+ phone: string[];
183
+ customer: any[];
184
+ [key: string]: any[];
185
+ }
186
+
187
+ declare interface IAttributes {
188
+ birthdate: any[];
189
+ gender: string[];
190
+ phone: string[];
191
+ customer: any[];
192
+ }
193
+
194
+ declare interface IDetail {
195
+ id: string;
196
+ name: string;
197
+ enabled: boolean;
198
+ username: string;
199
+ attributes: IAttributes;
200
+ original_obj: IOriginalObj;
201
+ position: any;
202
+ group: any;
203
+ }
204
+
205
+ declare interface IOriginalObj {
206
+ id: string;
207
+ origin: string;
208
+ createdTimestamp: number;
209
+ username: string;
210
+ enabled: boolean;
211
+ totp: boolean;
212
+ emailVerified: boolean;
213
+ firstName: string;
214
+ lastName: string;
215
+ email: string;
216
+ attributes: IAttributes;
217
+ disableableCredentialTypes: any[];
218
+ requiredActions: any[];
219
+ notBefore: number;
220
+ access: IAccess;
221
+ }
222
+
151
223
  export declare function isIpAddress(url: string): boolean;
152
224
 
225
+ export declare interface ListRes<T> {
226
+ pageNumber: number;
227
+ pageInfo: {
228
+ totalResults: number;
229
+ resultsPerPage: number;
230
+ };
231
+ items: T[];
232
+ }
233
+
153
234
  export declare class LocalStorageUtil {
154
235
  static setItem(key: string, value: any): void;
155
236
  static getItem<T>(key: string): T | null;
@@ -158,6 +239,24 @@ export declare class LocalStorageUtil {
158
239
  static clearAll(): void;
159
240
  }
160
241
 
242
+ export declare interface OriginUserDetail {
243
+ id: string;
244
+ origin: string;
245
+ createdTimestamp: number;
246
+ username: string;
247
+ enabled: boolean;
248
+ totp: boolean;
249
+ emailVerified: boolean;
250
+ firstName: string;
251
+ lastName: string;
252
+ email: string;
253
+ attributes: IAttributes;
254
+ disableableCredentialTypes: any[];
255
+ requiredActions: any[];
256
+ notBefore: number;
257
+ access: IAccess;
258
+ }
259
+
161
260
  export declare interface PermissionItem {
162
261
  rsid: string;
163
262
  rsname: string;
@@ -166,6 +265,15 @@ export declare interface PermissionItem {
166
265
 
167
266
  export declare function removeUrlParam(paramsArr: string[]): void;
168
267
 
268
+ export declare interface RoleItem {
269
+ id: number;
270
+ position_type_id: number;
271
+ position_name: string;
272
+ job_name: string;
273
+ position_code: string;
274
+ remark: string;
275
+ }
276
+
169
277
  export declare interface SearchTokenParams {
170
278
  code: string;
171
279
  client_id: string;
@@ -173,6 +281,17 @@ export declare interface SearchTokenParams {
173
281
  redirect_uri: string;
174
282
  }
175
283
 
284
+ export declare interface SearchUserItem {
285
+ id: string;
286
+ name: string;
287
+ enabled: boolean;
288
+ username: string;
289
+ attributes: IAttributes;
290
+ original_obj: OriginUserDetail;
291
+ position?: string;
292
+ group?: GroupItem;
293
+ }
294
+
176
295
  export declare function subBefore(str: string, separator: string): string;
177
296
 
178
297
  export declare interface TokenInfoType<T> {
@@ -215,6 +334,16 @@ export declare interface TreeProps {
215
334
  onChange?: (node: TreeNode) => void;
216
335
  }
217
336
 
337
+ export declare interface UserDetail {
338
+ user_name: string;
339
+ name: string;
340
+ phone: string;
341
+ gender: string;
342
+ position?: string;
343
+ detail: IDetail;
344
+ customer: any[];
345
+ }
346
+
218
347
  export declare interface UserGroupItem {
219
348
  id: string;
220
349
  name: string;
@@ -229,6 +358,24 @@ export declare interface UserGroupItem {
229
358
  sfejfgs: any;
230
359
  }
231
360
 
361
+ export declare interface UserInfo {
362
+ user_name: string;
363
+ gender: string;
364
+ name: string;
365
+ sid: string;
366
+ token_info: DecodeTokenType;
367
+ }
368
+
369
+ export declare interface UserRoleItem {
370
+ client_role: boolean;
371
+ composite: boolean;
372
+ container_id: string;
373
+ id: string;
374
+ name: string;
375
+ client: any;
376
+ client_id: any;
377
+ }
378
+
232
379
  export declare const useSSOApi: () => {
233
380
  getTokenInfo: (params: SearchTokenParams) => Promise<TokenInfoType<number>>;
234
381
  createPermissionTicket: (data: {
@@ -246,6 +393,67 @@ export declare const useSSOApi: () => {
246
393
  getGroupDetail: ({ id }: {
247
394
  id: string;
248
395
  }) => Promise<UserGroupItem>;
396
+ getUserInfo: () => Promise<UserInfo>;
397
+ /**
398
+ * 获取当前登录用户详细信息
399
+ */
400
+ getUserDetail: () => Promise<UserDetail>;
401
+ /**
402
+ * 获取当前登录用户详细信息
403
+ * @param id 用户id
404
+ */
405
+ getUserDetailById: ({ id }: {
406
+ id: string;
407
+ }) => Promise<OriginUserDetail>;
408
+ /**
409
+ * 根据工号姓名等搜索用户
410
+ * @param params.username 工号 至少四个字符
411
+ * @param params.real_name 姓名 至少两个字符
412
+ * @param params.exact 是否精确查找, 如果为 true 只返回完全匹配的记录, 否则返回模糊匹配的记录
413
+ * @param params.enable 用户是否可用,如果为 true 只返回 enabled 的用户
414
+ * @param params.first Pagination offset, 从 0 开始
415
+ * @param params.max_size Maximum results size (defaults to 100)
416
+ * @param params.extend 如果为 true 返回 position 和 department 字段,,代表用户的岗位和部门
417
+ */
418
+ getUsers: (params: {
419
+ real_name?: string;
420
+ exact?: boolean;
421
+ enable?: boolean;
422
+ first?: number;
423
+ max_size?: number;
424
+ extend?: boolean;
425
+ }) => Promise<SearchUserItem[]>;
426
+ /**
427
+ * 根据角色名称搜索用户列表(带分页)
428
+ * @param params 查询参数对象
429
+ * @param params.role_name 必填,角色名称(需完全匹配)
430
+ * @param params.name 可选,用户姓名模糊搜索(支持部分匹配)
431
+ * @param params.page 可选,分页页码(从1开始计数,默认1)
432
+ * @param params.page_size 可选,每页数据量(默认10)
433
+ * @returns Promise<ListRes<SearchUserItem>> 返回分页格式的用户列表数据
434
+ */
435
+ getUsersByRole: (params: {
436
+ role_name: string;
437
+ name?: string;
438
+ page?: number;
439
+ page_size?: number;
440
+ }) => Promise<ListRes<SearchUserItem>>;
441
+ /**
442
+ * 获取当前用户可用的分公司或业务组
443
+ * 如果当前用户属于分公司,则返回分公司及下属分公司,如果属于分公司下的部门,则返回部门下的业务组, 如果属于业务组,则返回业务组
444
+ * @returns Promise<CompanyItem[]>
445
+ */
446
+ getCurUserGroupList: () => Promise<CompanyItem[]>;
447
+ /**
448
+ * 获取所有岗位角色名称
449
+ * @returns Promise<RoleItem[]>
450
+ */
451
+ getAllRoles: () => Promise<RoleItem[]>;
452
+ /**
453
+ * 获取当前用户Roles
454
+ * @returns Promise<UserRoleItem[]>
455
+ */
456
+ getCurUserRoles: () => Promise<UserRoleItem[]>;
249
457
  };
250
458
 
251
459
  export { }