UNPKG

iwelp

Version:
8 lines 234 kB
(function(be,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(be=typeof globalThis<"u"?globalThis:be||self,P(be.iwelp={},be.React))})(this,(function(be,P){"use strict";function Ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var St={exports:{}},rt={};var sr;function lo(){if(sr)return rt;sr=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(r,i,l){var o=null;if(l!==void 0&&(o=""+l),i.key!==void 0&&(o=""+i.key),"key"in i){l={};for(var a in i)a!=="key"&&(l[a]=i[a])}else l=i;return i=l.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:l}}return rt.Fragment=n,rt.jsx=t,rt.jsxs=t,rt}var it={};var ur;function oo(){return ur||(ur=1,process.env.NODE_ENV!=="production"&&(function(){function e(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===z?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case w:return"Fragment";case E:return"Profiler";case y:return"StrictMode";case C:return"Suspense";case H:return"SuspenseList";case v:return"Activity"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case b:return"Portal";case A:return x.displayName||"Context";case k:return(x._context.displayName||"Context")+".Consumer";case _:var $=x.render;return x=x.displayName,x||(x=$.displayName||$.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case V:return $=x.displayName||null,$!==null?$:e(x.type)||"Memo";case B:$=x._payload,x=x._init;try{return e(x($))}catch{}}return null}function n(x){return""+x}function t(x){try{n(x);var $=!1}catch{$=!0}if($){$=console;var m=$.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return m.call($,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),n(x)}}function r(x){if(x===w)return"<>";if(typeof x=="object"&&x!==null&&x.$$typeof===B)return"<...>";try{var $=e(x);return $?"<"+$+">":"<...>"}catch{return"<...>"}}function i(){var x=O.A;return x===null?null:x.getOwner()}function l(){return Error("react-stack-top-frame")}function o(x){if(q.call(x,"key")){var $=Object.getOwnPropertyDescriptor(x,"key").get;if($&&$.isReactWarning)return!1}return x.key!==void 0}function a(x,$){function m(){U||(U=!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)",$))}m.isReactWarning=!0,Object.defineProperty(x,"key",{get:m,configurable:!0})}function u(){var x=e(this.type);return Y[x]||(Y[x]=!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.")),x=this.props.ref,x!==void 0?x:null}function s(x,$,m,F,G,j){var D=m.ref;return x={$$typeof:g,type:x,key:$,props:m,_owner:F},(D!==void 0?D:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:u}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(x,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(x,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function f(x,$,m,F,G,j){var D=$.children;if(D!==void 0)if(F)if(N(D)){for(F=0;F<D.length;F++)c(D[F]);Object.freeze&&Object.freeze(D)}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 c(D);if(q.call($,"key")){D=e(x);var K=Object.keys($).filter(function(Q){return Q!=="key"});F=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",d[D+F]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,F,D,K,D),d[D+F]=!0)}if(D=null,m!==void 0&&(t(m),D=""+m),o($)&&(t($.key),D=""+$.key),"key"in $){m={};for(var Z in $)Z!=="key"&&(m[Z]=$[Z])}else m=$;return D&&a(m,typeof x=="function"?x.displayName||x.name||"Unknown":x),s(x,D,m,i(),G,j)}function c(x){h(x)?x._store&&(x._store.validated=1):typeof x=="object"&&x!==null&&x.$$typeof===B&&(x._payload.status==="fulfilled"?h(x._payload.value)&&x._payload.value._store&&(x._payload.value._store.validated=1):x._store&&(x._store.validated=1))}function h(x){return typeof x=="object"&&x!==null&&x.$$typeof===g}var p=P,g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),A=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),O=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,N=Array.isArray,I=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(x){return x()}};var U,Y={},te=p.react_stack_bottom_frame.bind(p,l)(),ce=I(r(l)),d={};it.Fragment=w,it.jsx=function(x,$,m){var F=1e4>O.recentlyCreatedOwnerStacks++;return f(x,$,m,!1,F?Error("react-stack-top-frame"):te,F?I(r(x)):ce)},it.jsxs=function(x,$,m){var F=1e4>O.recentlyCreatedOwnerStacks++;return f(x,$,m,!0,F?Error("react-stack-top-frame"):te,F?I(r(x)):ce)}})()),it}var cr;function ao(){return cr||(cr=1,process.env.NODE_ENV==="production"?St.exports=lo():St.exports=oo()),St.exports}var S=ao(),Et={exports:{}},_t={exports:{}},le={};var fr;function so(){if(fr)return le;fr=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function k(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case n:switch(_=_.type,_){case u:case s:case r:case l:case i:case c:return _;default:switch(_=_&&_.$$typeof,_){case a:case f:case g:case p:case o:return _;default:return C}}case t:return C}}}function A(_){return k(_)===s}return le.AsyncMode=u,le.ConcurrentMode=s,le.ContextConsumer=a,le.ContextProvider=o,le.Element=n,le.ForwardRef=f,le.Fragment=r,le.Lazy=g,le.Memo=p,le.Portal=t,le.Profiler=l,le.StrictMode=i,le.Suspense=c,le.isAsyncMode=function(_){return A(_)||k(_)===u},le.isConcurrentMode=A,le.isContextConsumer=function(_){return k(_)===a},le.isContextProvider=function(_){return k(_)===o},le.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===n},le.isForwardRef=function(_){return k(_)===f},le.isFragment=function(_){return k(_)===r},le.isLazy=function(_){return k(_)===g},le.isMemo=function(_){return k(_)===p},le.isPortal=function(_){return k(_)===t},le.isProfiler=function(_){return k(_)===l},le.isStrictMode=function(_){return k(_)===i},le.isSuspense=function(_){return k(_)===c},le.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===s||_===l||_===i||_===c||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===p||_.$$typeof===o||_.$$typeof===a||_.$$typeof===f||_.$$typeof===w||_.$$typeof===y||_.$$typeof===E||_.$$typeof===b)},le.typeOf=k,le}var oe={};var pr;function uo(){return pr||(pr=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function k(M){return typeof M=="string"||typeof M=="function"||M===r||M===s||M===l||M===i||M===c||M===h||typeof M=="object"&&M!==null&&(M.$$typeof===g||M.$$typeof===p||M.$$typeof===o||M.$$typeof===a||M.$$typeof===f||M.$$typeof===w||M.$$typeof===y||M.$$typeof===E||M.$$typeof===b)}function A(M){if(typeof M=="object"&&M!==null){var Ee=M.$$typeof;switch(Ee){case n:var tt=M.type;switch(tt){case u:case s:case r:case l:case i:case c:return tt;default:var kt=tt&&tt.$$typeof;switch(kt){case a:case f:case g:case p:case o:return kt;default:return Ee}}case t:return Ee}}}var _=u,C=s,H=a,V=o,B=n,v=f,z=r,O=g,q=p,N=t,I=l,U=i,Y=c,te=!1;function ce(M){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),d(M)||A(M)===u}function d(M){return A(M)===s}function x(M){return A(M)===a}function $(M){return A(M)===o}function m(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function F(M){return A(M)===f}function G(M){return A(M)===r}function j(M){return A(M)===g}function D(M){return A(M)===p}function K(M){return A(M)===t}function Z(M){return A(M)===l}function Q(M){return A(M)===i}function pe(M){return A(M)===c}oe.AsyncMode=_,oe.ConcurrentMode=C,oe.ContextConsumer=H,oe.ContextProvider=V,oe.Element=B,oe.ForwardRef=v,oe.Fragment=z,oe.Lazy=O,oe.Memo=q,oe.Portal=N,oe.Profiler=I,oe.StrictMode=U,oe.Suspense=Y,oe.isAsyncMode=ce,oe.isConcurrentMode=d,oe.isContextConsumer=x,oe.isContextProvider=$,oe.isElement=m,oe.isForwardRef=F,oe.isFragment=G,oe.isLazy=j,oe.isMemo=D,oe.isPortal=K,oe.isProfiler=Z,oe.isStrictMode=Q,oe.isSuspense=pe,oe.isValidElementType=k,oe.typeOf=A})()),oe}var hr;function dr(){return hr||(hr=1,process.env.NODE_ENV==="production"?_t.exports=so():_t.exports=uo()),_t.exports}var Gt,mr;function co(){if(mr)return Gt;mr=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function r(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function i(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var u=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(u.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(f){s[f]=f}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Gt=i()?Object.assign:function(l,o){for(var a,u=r(l),s,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var c in a)n.call(a,c)&&(u[c]=a[c]);if(e){s=e(a);for(var h=0;h<s.length;h++)t.call(a,s[h])&&(u[s[h]]=a[s[h]])}}return u},Gt}var Kt,gr;function Xt(){if(gr)return Kt;gr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kt=e,Kt}var Jt,yr;function br(){return yr||(yr=1,Jt=Function.call.bind(Object.prototype.hasOwnProperty)),Jt}var Qt,xr;function fo(){if(xr)return Qt;xr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Xt(),t={},r=br();e=function(l){var o="Warning: "+l;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(l,o,a,u,s){if(process.env.NODE_ENV!=="production"){for(var f in l)if(r(l,f)){var c;try{if(typeof l[f]!="function"){var h=Error((u||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}c=l[f](o,f,u,a,null,n)}catch(g){c=g}if(c&&!(c instanceof Error)&&e((u||"React class")+": type specification of "+a+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in t)){t[c.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+c.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Qt=i,Qt}var Zt,kr;function po(){if(kr)return Zt;kr=1;var e=dr(),n=co(),t=Xt(),r=br(),i=fo(),l=function(){};process.env.NODE_ENV!=="production"&&(l=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Zt=function(a,u){var s=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function c(d){var x=d&&(s&&d[s]||d[f]);if(typeof x=="function")return x}var h="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:E(),arrayOf:k,element:A(),elementType:_(),instanceOf:C,node:v(),objectOf:V,oneOf:H,oneOfType:B,shape:O,exact:q};function g(d,x){return d===x?d!==0||1/d===1/x:d!==d&&x!==x}function b(d,x){this.message=d,this.data=x&&typeof x=="object"?x:{},this.stack=""}b.prototype=Error.prototype;function w(d){if(process.env.NODE_ENV!=="production")var x={},$=0;function m(G,j,D,K,Z,Q,pe){if(K=K||h,Q=Q||D,pe!==t){if(u){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=K+":"+D;!x[Ee]&&$<3&&(l("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),x[Ee]=!0,$++)}}return j[D]==null?G?j[D]===null?new b("The "+Z+" `"+Q+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new b("The "+Z+" `"+Q+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:d(j,D,K,Z,Q)}var F=m.bind(null,!1);return F.isRequired=m.bind(null,!0),F}function y(d){function x($,m,F,G,j,D){var K=$[m],Z=U(K);if(Z!==d){var Q=Y(K);return new b("Invalid "+G+" `"+j+"` of type "+("`"+Q+"` supplied to `"+F+"`, expected ")+("`"+d+"`."),{expectedType:d})}return null}return w(x)}function E(){return w(o)}function k(d){function x($,m,F,G,j){if(typeof d!="function")return new b("Property `"+j+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var D=$[m];if(!Array.isArray(D)){var K=U(D);return new b("Invalid "+G+" `"+j+"` of type "+("`"+K+"` supplied to `"+F+"`, expected an array."))}for(var Z=0;Z<D.length;Z++){var Q=d(D,Z,F,G,j+"["+Z+"]",t);if(Q instanceof Error)return Q}return null}return w(x)}function A(){function d(x,$,m,F,G){var j=x[$];if(!a(j)){var D=U(j);return new b("Invalid "+F+" `"+G+"` of type "+("`"+D+"` supplied to `"+m+"`, expected a single ReactElement."))}return null}return w(d)}function _(){function d(x,$,m,F,G){var j=x[$];if(!e.isValidElementType(j)){var D=U(j);return new b("Invalid "+F+" `"+G+"` of type "+("`"+D+"` supplied to `"+m+"`, expected a single ReactElement type."))}return null}return w(d)}function C(d){function x($,m,F,G,j){if(!($[m]instanceof d)){var D=d.name||h,K=ce($[m]);return new b("Invalid "+G+" `"+j+"` of type "+("`"+K+"` supplied to `"+F+"`, expected ")+("instance of `"+D+"`."))}return null}return w(x)}function H(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&(arguments.length>1?l("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):l("Invalid argument supplied to oneOf, expected an array.")),o;function x($,m,F,G,j){for(var D=$[m],K=0;K<d.length;K++)if(g(D,d[K]))return null;var Z=JSON.stringify(d,function(pe,M){var Ee=Y(M);return Ee==="symbol"?String(M):M});return new b("Invalid "+G+" `"+j+"` of value `"+String(D)+"` "+("supplied to `"+F+"`, expected one of "+Z+"."))}return w(x)}function V(d){function x($,m,F,G,j){if(typeof d!="function")return new b("Property `"+j+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var D=$[m],K=U(D);if(K!=="object")return new b("Invalid "+G+" `"+j+"` of type "+("`"+K+"` supplied to `"+F+"`, expected an object."));for(var Z in D)if(r(D,Z)){var Q=d(D,Z,F,G,j+"."+Z,t);if(Q instanceof Error)return Q}return null}return w(x)}function B(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&l("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var x=0;x<d.length;x++){var $=d[x];if(typeof $!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te($)+" at index "+x+"."),o}function m(F,G,j,D,K){for(var Z=[],Q=0;Q<d.length;Q++){var pe=d[Q],M=pe(F,G,j,D,K,t);if(M==null)return null;M.data&&r(M.data,"expectedType")&&Z.push(M.data.expectedType)}var Ee=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new b("Invalid "+D+" `"+K+"` supplied to "+("`"+j+"`"+Ee+"."))}return w(m)}function v(){function d(x,$,m,F,G){return N(x[$])?null:new b("Invalid "+F+" `"+G+"` supplied to "+("`"+m+"`, expected a ReactNode."))}return w(d)}function z(d,x,$,m,F){return new b((d||"React class")+": "+x+" type `"+$+"."+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function O(d){function x($,m,F,G,j){var D=$[m],K=U(D);if(K!=="object")return new b("Invalid "+G+" `"+j+"` of type `"+K+"` "+("supplied to `"+F+"`, expected `object`."));for(var Z in d){var Q=d[Z];if(typeof Q!="function")return z(F,G,j,Z,Y(Q));var pe=Q(D,Z,F,G,j+"."+Z,t);if(pe)return pe}return null}return w(x)}function q(d){function x($,m,F,G,j){var D=$[m],K=U(D);if(K!=="object")return new b("Invalid "+G+" `"+j+"` of type `"+K+"` "+("supplied to `"+F+"`, expected `object`."));var Z=n({},$[m],d);for(var Q in Z){var pe=d[Q];if(r(d,Q)&&typeof pe!="function")return z(F,G,j,Q,Y(pe));if(!pe)return new b("Invalid "+G+" `"+j+"` key `"+Q+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify($[m],null," ")+` Valid keys: `+JSON.stringify(Object.keys(d),null," "));var M=pe(D,Q,F,G,j+"."+Q,t);if(M)return M}return null}return w(x)}function N(d){switch(typeof d){case"number":case"string":case"undefined":return!0;case"boolean":return!d;case"object":if(Array.isArray(d))return d.every(N);if(d===null||a(d))return!0;var x=c(d);if(x){var $=x.call(d),m;if(x!==d.entries){for(;!(m=$.next()).done;)if(!N(m.value))return!1}else for(;!(m=$.next()).done;){var F=m.value;if(F&&!N(F[1]))return!1}}else return!1;return!0;default:return!1}}function I(d,x){return d==="symbol"?!0:x?x["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&x instanceof Symbol:!1}function U(d){var x=typeof d;return Array.isArray(d)?"array":d instanceof RegExp?"object":I(x,d)?"symbol":x}function Y(d){if(typeof d>"u"||d===null)return""+d;var x=U(d);if(x==="object"){if(d instanceof Date)return"date";if(d instanceof RegExp)return"regexp"}return x}function te(d){var x=Y(d);switch(x){case"array":case"object":return"an "+x;case"boolean":case"date":case"regexp":return"a "+x;default:return x}}function ce(d){return!d.constructor||!d.constructor.name?h:d.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Zt}var en,wr;function ho(){if(wr)return en;wr=1;var e=Xt();function n(){}function t(){}return t.resetWarningCache=n,en=function(){function r(o,a,u,s,f,c){if(c!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:t,resetWarningCache:n};return l.PropTypes=l,l},en}var vr;function mo(){if(vr)return Et.exports;if(vr=1,process.env.NODE_ENV!=="production"){var e=dr(),n=!0;Et.exports=po()(e.isElement,n)}else Et.exports=ho()();return Et.exports}var go=mo();const he=Ct(go);var tn={exports:{}};var Cr;function yo(){return Cr||(Cr=1,(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var l="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(l=i(l,r(a)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return t.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var o="";for(var a in l)n.call(l,a)&&l[a]&&(o=i(o,a));return o}function i(l,o){return o?l?l+" "+o:l+o:l}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(tn)),tn.exports}var bo=yo();const ie=Ct(bo),xo=({prefix:e="",className:n,viewBox:t="0 0 24 24",ariaHidden:r=!0,children:i,...l})=>S.jsx("svg",{viewBox:t,focusable:"false",width:"24",height:"24",...l,"aria-hidden":r,className:`${e}svg-icon${n?` ${n}`:""}`,children:i});var ko=e=>{const{prefix:n="",viewBox:t="0 0 24 24",paths:r,className:i,modifier:l,ariaHidden:o=!0,...a}=e,u=ie(i,l&&`${n}svg-icon--${l}`);return r?S.jsx(xo,{viewBox:t,prefix:n,...a,className:u,ariaHidden:o,children:r().map((s,f)=>P.cloneElement(s,{key:f}))}):null},je=ko;const wo=[{tag:"path",att:{d:"M11.9999 15.0002c-1.3965 0-2.5725-.9551-2.9056-2.2492l-1.9368.4985c.555 2.1563 2.5112 3.7507 4.8424 3.7507 2.3312 0 4.2874-1.5944 4.8424-3.7507l-1.9369-.4985c-.3331 1.2941-1.509 2.2492-2.9055 2.2492zM11 9.5c0 .8284-.6716 1.5-1.5 1.5S8 10.3284 8 9.5 8.6716 8 9.5 8s1.5.6716 1.5 1.5zm3.5 1.5c.8284 0 1.5-.6716 1.5-1.5S15.3284 8 14.5 8 13 8.6716 13 9.5s.6716 1.5 1.5 1.5z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 12c0 4.9706-4.0294 9-9 9s-9-4.0294-9-9 4.0294-9 9-9 9 4.0294 9 9zm-2 0c0 3.866-3.134 7-7 7s-7-3.134-7-7 3.134-7 7-7 7 3.134 7 7z"}}];function vo(e){return e.replace(/-([a-z])/g,(n,t)=>t.toUpperCase())}function Co(e){return Object.entries(e).reduce((n,[t,r])=>(n[vo(t)]=r,n),{})}function de(e){if(e)return e.map(n=>P.createElement(n.tag,Co(n.att),de(n.nds)))}var Sr=()=>de(wo);const Tt=({position:e="rightCenter",bgcolor:n="#FFD700",style:t,className:r,onClick:i})=>S.jsx(S.Fragment,{children:S.jsx("div",{onClick:i,className:`iwelp-Content iwelp-${e} `+r,style:{...t,"--backgroundColor":n},children:S.jsx("div",{className:"iwelp-Text",children:"Feedback"})})});Tt.propTypes={position:he.oneOf(["leftCenter","rightCenter","topLeft","topRight","bottomLeft","bottomRight"]),bgcolor:he.string,style:he.object,className:he.string,onClick:he.func.isRequired},Tt.displayName="iWelpButton";const So="100ms",Er=[{tag:"path",att:{d:"M11.0036 14.2509h2v-6h-2v6zm1 1.5c-.6904 0-1.25.5596-1.25 1.25 0 .6903.5596 1.25 1.25 1.25.6903 0 1.25-.5597 1.25-1.25 0-.6904-.5597-1.25-1.25-1.25z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m1.1152 20.5351 10-19h1.7699l10 19-.8849 1.4658h-20l-.885-1.4658zm2.5413-.5342h16.6873l-8.3436-15.853-8.3437 15.853z"}}];var Eo=()=>de(Er);const _o=["primary","emphasised","secondary","tertiary"],_r=P.forwardRef((e,n)=>{const{href:t="",newWindow:r=!1,loadingSrText:i="Loading…",ssrIcon:l,iconOnly:o=!1,prefix:a="",htmlType:u="button",disabled:s=!1,className:f="",onClick:c,text:h="",type:p="secondary",expanding:g=!1,loading:b=!1,iconPosition:w="leading",fluid:y=!1,inverseTheme:E=!1,children:k,expandedOnTouchDevice:A=!1,size:_="medium",staticColour:C=!1,...H}=e,V=Y=>{if(s||b||Y.key!==" ")return;Y.target.click()};let B=p||"secondary";o&&l&&(B=`icon-${B}`),E&&p!=="danger"&&p!=="plain"&&p!=="image-overlay"&&_o.indexOf(p)>-1&&(B=`${B}-inverse`);const v=ie(`${a}btn__inner`),z=`${a}btn__icon`,O=p==="danger"?Eo:l,q=O?S.jsx(je,{className:z,prefix:a,paths:O}):null,N=ie(`${a}btn`,b&&`${a}btn--loading`,_!=="medium"&&`${a}btn--${_}`,!o&&O&&w&&`${a}${w}-icon`,p&&`${a}btn--${B}`,y&&!o&&`${a}btn--fluid`,g&&`${a}btn--expanding`,g&&A&&`${a}btn--touch-device-expanded`,C&&`${a}btn--static-colour`,f),I=Y=>{if(b||s){Y.stopPropagation();return}c&&typeof c=="function"&&c(Y)},U=S.jsxs("span",{className:v,children:[q,h&&S.jsx("span",{className:`${a}btn__label`,children:h})||null,!b&&k||null,b&&S.jsx("span",{className:`${a}btn__loader`,children:i})||null]});return t?S.jsx("a",{ref:n,className:N,"aria-disabled":b?!0:void 0,onClick:I,onKeyUp:V,href:s?void 0:t,target:r?"_blank":void 0,rel:r?"noreferrer":void 0,...H,children:U}):S.jsx("button",{ref:n,className:N,disabled:s,type:u,onClick:I,...H,children:U})});_r.displayName="Button";var To=_r,lt=To;const Io=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m12 13.4139 4.9497 4.9498 1.4142-1.4142-4.9497-4.9498L18.3639 7.05l-1.4142-1.4143L12 10.5855 7.0502 5.6357 5.636 7.05l4.9497 4.9497-4.9497 4.9498 1.4142 1.4142L12 13.4139z"}}];var Ao=()=>de(Io);const Po=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m3.999 11.9997 8 8.0011 1.4143-1.4141-5.5859-5.5866H20v-2H7.8273l5.5871-5.5868-1.4142-1.4143-8.0012 8.0007z"}}];var Lo=()=>de(Po);const $o=e=>{const{title:n="",titleId:t="",prefix:r="",className:i="",closeBtnClick:l,ariaCloseTxt:o="Close",backBtnClick:a,ariaBackBtnTxt:u="Back",floating:s=!1,children:f,...c}=e,h=ie(`${r}modal-header__title-wrapper`,!a&&`${r}modal-header__title-wrapper--padded`),p=ie(`${r}modal-header`,s&&`${r}modal-header--floating-header`,i);return S.jsxs("div",{className:p,...c,children:[S.jsx(lt,{prefix:r,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:Ao,onClick:l,className:`${r}modal-header__close`,"aria-label":o}),!s&&(n||f)&&S.jsxs("div",{className:h,children:[n&&S.jsx("h2",{id:t,className:`${r}modal-header__title`,children:n}),f]}),a&&S.jsx(lt,{prefix:r,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:Lo,onClick:a,className:`${r}modal-header__back-button`,"aria-label":u})]})},Oo=e=>{const{prefix:n="",children:t,className:r="",...i}=e;return S.jsx("div",{...i,className:ie(`${n}modal-body`,r),children:t})},Ro=e=>e?!!!e.querySelectorAll("*[data-autofocus],*[autofocus]").length:!1;var zo=()=>{const e=P.useRef(null),[n,t]=P.useState(void 0);return P.useEffect(()=>{if(e.current){const r=e.current;t(Ro(r))}},[]),[n,e]};const Fo=e=>{const{className:n="",fullSize:t=!1,prefix:r="",children:i,open:l=!1,closeBtnClick:o,header:a,alignment:u="right",preserveAlignment:s=!1,footer:f,size:c="small",describedById:h,labelledById:p,ariaLabel:g,...b}=e,w=ie(`${r}sheets`,`${r}sheets--${c}`,t&&`${r}sheets--mobile-full-size`,u==="left"&&`${r}sheets--mirrored`,s&&`${r}sheets--preserve-alignment`,l?`${r}sheets--enter`:`${r}sheets--close`,n),y=a?P.cloneElement(a,{closeBtnClick:o,prefix:r}):null,E=f&&P.cloneElement(f,{prefix:r,closeBtnClick:o,stacked:c==="small"?f.props.stacked:!1})||null,k=P.Children.map(i,C=>P.isValidElement(C)?P.cloneElement(C,{prefix:r}):C),[A,_]=zo();return S.jsxs("div",{"aria-describedby":h,"aria-labelledby":p,"aria-label":g,...b,className:w,"aria-modal":"true",role:"dialog",tabIndex:-1,children:[A!==void 0&&y,S.jsx("div",{className:`${r}sheets__content-wrapper`,role:"document",tabIndex:0,ref:_,"data-autofocus":A,children:k}),E]})},ze={Enable:"skapa-focus-lock-enable",Disable:"skapa-focus-lock-disable",Escape:"skapa-focus-lock-escape-hotkey"};class nn extends Event{constructor(n,t){super(n),this.SkapaFocusLockReference=t}}const De=new Set;function No(e){if(!e)return;const n=e.getRootNode();if("host"in n)return n.host}function jo(e){return e.parentElement||e.getRootNode()&&e.getRootNode().host}function Do(e){const n=[e];let t=e,r;for(;r=jo(t);)n.push(t=r);return n}function Ve(e,n,t){var r;const i=[...e];n&&i.reverse();const l=typeof window<"u";for(let o=0;o<i.length;o++){const a=i[o];if(!(l&&!ln(a,t))&&!a.matches("[disabled], [hidden], [inert]")){if(a.matches('button, a[href], input:not([type="hidden"]), select, textarea, audio, video, details, [tabindex], [contenteditable]:not([contenteditable="false"])')&&a.matches(':not([tabindex="-1"])')){if(!((r=a.closest("fieldset"))===null||r===void 0)&&r.hasAttribute("disabled"))continue;return a}if(a.shadowRoot){const u=Ve(Array.from(a.shadowRoot.querySelectorAll("*")),n,a);if(u)return u}if(a.tagName==="SLOT"){const u=Ve(Array.from(a.assignedElements({flatten:!0})),n,a);if(u)return u}}}}function Mo(e){const n=e.SkapaFocusLockReference;if(e.type===ze.Enable){const t=[...De.values()].reverse()[0];t&&(t.passive=!0),De.add(n)}else{De.delete(n);const t=[...De.values()].reverse()[0];t&&(t.passive=!1)}}function Bo(e){De.forEach(n=>n.handlePointer(e))}function qo(e){e.key,De.forEach(n=>n.handleKeyboard(e))}const Ho=["mousedown","pointerup","touchstart","click"],Vo=["keydown","keyup"],Uo=[ze.Enable,ze.Disable];let Tr=!1;function Ir(e=!0){if(Tr===e||!e&&De.size)return;const n=(e?document.addEventListener:document.removeEventListener).bind(document);Ho.forEach(t=>n(t,Bo,{capture:!0})),Vo.forEach(t=>n(t,qo)),Uo.forEach(t=>n(t,Mo)),Tr=e}let rn=-1;const Ar={cache:new WeakMap};function Wo(){rn=-1,Ar.cache=new WeakMap}function ln(e,n){if(!e)return!1;if(e===n)return!0;const t=Ar.cache;if(t.has(e))return!!t.get(e);rn===-1&&(rn=requestAnimationFrame(Wo));const{display:r,visibility:i}=window.getComputedStyle(e);if(r==="none"||i==="hidden")return t.set(e,!1),!1;const l=e.parentNode;if(l&&l===n)return t.set(e,!0),!0;if(l&&l.nodeType===1){const o=ln(l,n);return t.set(e,o),o}if(l&&l.nodeType===11&&"host"in l){const o=ln(l.host,n);return t.set(e,o),o}return t.set(e,!0),!0}function Pr(e=document){if(e.activeElement)return e.activeElement.shadowRoot&&Pr(e.activeElement.shadowRoot)||e.activeElement}const Lr="skapa-focus-region-boundary";let Pe;function $r(){return Pe||(Pe=document.createElement("div"),Pe.tabIndex=0,Pe.toggleAttribute(Lr,!0),Pe.style.position="fixed",Pe.style.top="0",Pe.style.left="0",Pe.style.width="1px"),Pe.cloneNode(!0)}const It=new Map;function Or(e,n){e.preventDefault(),e.stopImmediatePropagation(),n.focus()}function Yo(e){const n=e.container;if(n.isConnected&&n.parentNode){It.has(e)&&Rr(e);const t=$r(),r=$r(),i=function(o){const a=Ve([n,...Array.from(n.querySelectorAll("*"))],!0,n);a&&Or(o,a)},l=function(o){const a=Ve([n,...Array.from(n.querySelectorAll("*"))],!1,n);a&&Or(o,a)};t.addEventListener("focusin",i,{capture:!0}),r.addEventListener("focusin",l,{capture:!0}),n.before(t),n.after(r),It.set(e,{nodes:[t,r],listeners:[i,l]})}}function Rr(e){const n=It.get(e);n&&(n.nodes.forEach((t,r)=>{t.removeEventListener("focusin",n.listeners[r],{capture:!0}),t&&t.isConnected&&t.remove()}),It.delete(e))}class Go extends EventTarget{constructor(n){super(),this.autoFocus=!1,this.passive=!1,this.capturePointerEvents=!0,this.autoFocusReturn=!0,this.__active=!1,this.__disableKeyConfig={key:"Escape",shift:!1,ctrl:!1},this.__shiftKeyDown=!1,this.handleKeyboard=t=>{if(!this.passive){if(t.type==="keydown"&&typeof t.key=="string"&&t.key.toLowerCase()===this.__disableKeyConfig.key.toLowerCase()){const{shift:r,ctrl:i}=this.__disableKeyConfig;if(r===t.shiftKey&&i===t.ctrlKey){this.active=!1,this.dispatchEvent(new nn(ze.Escape,this));return}}t.key==="Shift"&&(this.__shiftKeyDown=t.type==="keydown")}},this.disconnectedLockWrapper=()=>{const t=!(this.container&&this.container.isConnected);return t&&console.warn("Focus lock feature was not disabled before removing the container from the DOM tree."),t},this.handlePointer=t=>{if(this.passive||!this.capturePointerEvents||this.disconnectedLockWrapper())return;const r=t.composedPath();r.includes(this.container)||r.find(i=>Element.prototype.isPrototypeOf(i)&&(i.classList.contains("skapa-focus-portal")||(i.getAttribute("role")||"").includes("dialog")))||this.isElementWithin(r[0])||(t.cancelable&&t.preventDefault(),t.type==="click"&&t.stopImmediatePropagation())},this.enableLock=()=>{this.container.addEventListener("focusout",this.handleFocus),Ir(!0),Yo(this),document.dispatchEvent(new nn(ze.Enable,this)),this.captureFocus()},this.disableLock=()=>{Rr(this),Ir(!1),this.container.removeEventListener("focusout",this.handleFocus),this.returnFocus(),document.dispatchEvent(new nn(ze.Disable,this))},this.captureFocus=()=>{document.activeElement&&(this._activeElementBeforeFocusLock=Pr());const t=this.autoFocus&&this.container.querySelector('*[data-autofocus]:not([tabindex="-1"]):not(:disabled)'),r=Ve(t?[t]:[this.container,...Array.from(this.container.querySelectorAll("*"))],!1,this.container);r?Fr(r):this.noFocusTargetException()},this.returnFocus=()=>{this.autoFocusReturn&&this._activeElementBeforeFocusLock&&this._activeElementBeforeFocusLock.isConnected&&Fr(this._activeElementBeforeFocusLock)},this.handleFocus=t=>{if(this.passive||!this.container.isConnected)return;const r=t.relatedTarget&&"nodeType"in t.relatedTarget&&t.relatedTarget.nodeType===1?t.relatedTarget:null;if(!(!r||r.hasAttribute(Lr))&&!this.isElementWithin(r)){t.preventDefault();const l=t.composedPath()[0]||Ve([this.container,...Array.from(this.container.querySelectorAll("*"))],this.__shiftKeyDown,this.container);l?l.focus():this.noFocusTargetException()}},this.isElementWithin=(t,r=this.container)=>{var i;return!!(t&&(r.contains(t)||r.shadowRoot&&r.shadowRoot.contains(t)||!((i=No(r))===null||i===void 0)&&i.contains(t)||Do(t).includes(r)))},this.noFocusTargetException=()=>{console.warn(`Warning! Skapa Focus-lock found no focusable elements on ${this.container}. Focus lock remains disabled.`),this.disableLock()},this.container=n}get active(){return this.__active}set active(n){this.__active!==n&&(this.__active=n,n?this.enableLock():this.disableLock())}get disableKey(){return this.__disableKeyConfig}setDisableKey(n){this.__disableKeyConfig=Object.assign({key:"Escape",shift:!1,ctrl:!1},n)}}let zr=-1;function Fr(e){clearTimeout(zr),!(typeof window>"u")&&(zr=window.setTimeout(()=>{e&&e.isConnected&&e.focus()},50))}var Ko=e=>{const{prefix:n="",locked:t=!1,autoFocus:r=!1,escapeHotkey:i,capturePointerEvents:l=!0,onEscaped:o,autoFocusReturn:a=!0,children:u,className:s,...f}=e,c=P.useRef(null),h=P.useRef(),[p,g]=P.useState(!1),b=`${n}skapa-focus-lock`,w=ie(b,(!t||p)&&`${b}--disabled`,s),y=function(){o&&o(),g(!0)};return P.useEffect(()=>{if(c.current){h.current||(h.current=new Go(c.current));const E=h.current;i&&E.setDisableKey(i),E.capturePointerEvents=l,E.autoFocus=r,E.autoFocusReturn=a,E.active=t}return()=>{h.current&&(h.current.active=!1,g(!1))}},[]),P.useEffect(()=>{const E=h.current;return E&&E.addEventListener(ze.Escape,y),()=>{E&&E.removeEventListener(ze.Escape,y)}},[o,h.current]),P.useEffect(()=>{h.current&&(h.current.active=t),g(!1)},[t]),P.useEffect(()=>{h.current&&(h.current.autoFocus=r)},[r]),P.useEffect(()=>{h.current&&(h.current.autoFocusReturn=a)},[a]),P.useEffect(()=>{h.current&&h.current.setDisableKey(i)},[i]),P.useEffect(()=>{h.current&&(h.current.capturePointerEvents=l)},[l]),S.jsx("div",{ref:c,className:w,...f,children:u})},Xo=Ko;const on=[],Jo=e=>{const n=document.body;if(on.push(!0),n.classList.toString().indexOf(`${e}prevent-scroll-y`)===-1){const t=window.pageYOffset||window.scrollY;n.setAttribute("data-skapa--scroll",t.toString());const r=n.style.paddingRight;n.setAttribute("data-skapa--pad",r);let i=n.clientWidth;n.classList.add(`${e}prevent-scroll-y`),i=n.clientWidth-i,n.style.top=`-${t}px`,i&&(n.style.paddingRight=`calc(${r||"0px"} + ${i}px)`),window.scrollTo(0,0)}},Nr=e=>{const n=document.body;if(on.pop(),on.length===0&&n.classList.toString().indexOf(`${e}prevent-scroll-y`)>-1){const t=Number(n.getAttribute("data-skapa--scroll")),r=n.getAttribute("data-skapa--pad");n.classList.remove(`${e}prevent-scroll-y`),n.style.paddingRight=r,window.scrollTo(0,t),n.style.top="",n.removeAttribute("data-skapa--scroll"),n.removeAttribute("data-skapa--pad"),n.style.length||n.removeAttribute("style")}return!0},jr=(e,n)=>{e(!1),n(!0)},Dr=(e,n,t)=>{e(!0),n&&Jo(t)},Qo=(e,n,t,r,i,l)=>{(!e.target.closest||e.target.closest(`.${n}`)===e.currentTarget)&&t&&e.key==="Escape"&&(r&&r(e),jr(i,l))},Zo=(e,n,t)=>{n&&e.target===e.currentTarget&&t(e)},ea=(e,n,t,r,i,l,o,a,u)=>{cancelAnimationFrame(n),t?r&&(n=requestAnimationFrame(()=>{r(e)})):o&&(l&&Nr(u),a(!1),i&&(n=requestAnimationFrame(()=>{i(e)})))},ta=(e,n,t,r,i,l)=>{n!==r&&(n?Dr(i,t,e):jr(i,l))};var na=e=>{const{className:n,visible:t=!1,prefix:r="",children:i,handleCloseBtn:l,focusLockProps:o={},keepContentMounted:a=!1,escapable:u=!0,onModalClosed:s=()=>{},onModalOpened:f=()=>{},onKeyDown:c=()=>{},scrollLock:h=!0,...p}=e,[g,b]=P.useState(t),[w,y]=P.useState(!1),E=P.useRef(-1),k=`${r}modal-wrapper`;P.useEffect(()=>{ta(r,t,h,g,b,y)},[t]),P.useEffect(()=>(t&&Dr(b,h,r),()=>{h&&Nr(r),cancelAnimationFrame(E.current)}),[]);const A=ie(k,g?`${k}--open`:`${k}--close`,n),_=ie(`${k}__backdrop`,`${k}__backdrop--dark`),C=P.Children.map(i,v=>P.cloneElement(v,{open:g,closeBtnClick:l,prefix:r})),H=v=>{c(v),Qo(v,k,u,l,b,y)},V=v=>{Zo(v,u,l)},B=v=>{ea(v,E.current,g,f,s,h,w,y,r)};return S.jsxs("div",{...p,onKeyDown:H,className:A,tabIndex:-1,children:[S.jsx("div",{className:_,onMouseDown:V,onAnimationEnd:B}),(a||g||w)&&S.jsx(Xo,{prefix:r,autoFocus:!0,onEscaped:l,locked:g,capturePointerEvents:!1,...o,children:C})]})},ra=na;const Mr=P.forwardRef((e,n)=>{const{prefix:t="",children:r,text:i="",url:l="#",subtle:o,disabled:a=!1,button:u=!1,colour:s,className:f,onClick:c,newWindow:h=!1,ariaControls:p,...g}=e;function b(E){E.preventDefault()}const w=ie(f,`${t}link`,s&&`${t}link--${s}`,o&&`${t}link--subtle`,a&&`${t}link--disabled`);let y=u?"button":void 0;return y=a?"link":y,S.jsxs("a",{ref:n,target:h?"_blank":void 0,...g,href:a?void 0:l,className:w,role:y,"aria-disabled":a&&`${a}`,"aria-controls":p||void 0,onClick:u&&a?b:c,children:[i,i&&r?" ":null,r]})});Mr.displayName="Hyperlink";var ia=Mr,la=ia;const At=P.createContext({}),oa=({children:e,shouldValidate:n,setCharacterCount:t,valid:r})=>S.jsx(At.Provider,{value:{shouldValidate:n,setCharacterCount:t,valid:r},children:e}),aa=[{tag:"path",att:{d:"M17 9c0 4.4183-3.5817 8-8 8s-8-3.5817-8-8 3.5817-8 8-8 8 3.5817 8 8z",fill:"rgb(var(--colour-semantic-positive, 10, 138, 0))"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m13.7083 7.207-5.7086 5.7062-3.7069-3.707L5.7071 7.792 8 10.085l4.2942-4.2925 1.414 1.4145z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}}];var sa=()=>de(aa);const ua=[{tag:"path",att:{d:"m1.0154 15.457 7.336-13.9228h1.3041l7.3599 13.9291-.6598 1.0709H1.6671l-.6517-1.0772z",fill:"rgb(var(--colour-semantic-caution, 242, 106, 47))"}},{tag:"path",att:{d:"M10.2485 13.25c0 .6904-.5597 1.25-1.25 1.25-.6904 0-1.25-.5596-1.25-1.25S8.308 12 8.9985 12c.6903 0 1.25.5596 1.25 1.25z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 10.5V6h2v4.5H8z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}}];var ca=()=>de(ua);const fa=[{tag:"path",att:{d:"M17 9c0 4.4183-3.5817 8-8 8s-8-3.5817-8-8 3.5817-8 8-8 8 3.5817 8 8z",fill:"rgb(var(--colour-semantic-negative, 224, 7, 81))"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 9.5V5h2v4.5H8z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}},{tag:"path",att:{d:"M10.25 12.25c0 .6904-.5596 1.25-1.25 1.25s-1.25-.5596-1.25-1.25S8.3096 11 9 11s1.25.5596 1.25 1.25z",fill:"rgb(var(--colour-text-and-icon-5, 255, 255, 255))"}}];var pa=()=>de(fa);const ha=e=>e===!0?"success":e===!1?"error":e==="warning"||e==="success"||e==="error"?e:"",Br=e=>{const{prefix:n="",children:t,className:r,shouldValidate:i=!1,valid:l=!1,textOnly:o=!1,...a}=e,u=`${n}helper-text`,s=ha(l),f={success:sa,warning:ca,error:pa},c=ie(u,i&&s!==""&&`${u}--${s}`,o&&`${u}--text-only`,r);return S.jsxs("span",{...a,className:c,children:[i&&s!==""&&S.jsx(je,{viewBox:"0 0 18 18",prefix:n,className:`${u}__icon`,paths:f[s]}),t]})};Br.displayName="HelperText";var qr=Br;const Hr=e=>{const{prefix:n="",targetID:t,limit:r=0,characterCount:i,onStateChange:l,...o}=e,[a,u]=P.useState(0);function s(c){const h=c.target;h&&u((h.value||h.textContent||"").length)}P.useEffect(()=>{if(i||i===0){u(i);return}if(!t)return;const c=document.getElementById(t);return c&&(c.addEventListener("input",s,{passive:!0}),c.addEventListener("change",s,{passive:!0}),c.value&&u(String(c.value).length)),()=>{c&&(c.removeEventListener("input",s),c.removeEventListener("change",s))}},[t,i]);const f=P.useRef(!1);return P.useEffect(()=>{const c=a<=r;l&&f.current!==c&&l(c),f.current=c},[a]),S.jsx(qr,{prefix:n,...o,className:ie(`${n}helper-text--character-count`,o.className),textOnly:!0,shouldValidate:a>r,valid:!1,children:`${a}/${r}`})};Hr.displayName="CharacterCount";var da=qr;const ma=e=>{if(e===!0)return"success";if(e===!1)return"error";if(e==="warning"||e==="success"||e==="error")return e};var ga=e=>{const{prefix:n="",characterLimit:t=0,children:r,validation:i={type:"error"},fieldHelper:l={},shouldValidate:o=!1,valid:a,className:u,disabled:s=!1,...f}=e,c=o&&a!==!0&&a!=="success",{id:h,msg:p,linkText:g,link:b,...w}=c?i:l,y=c?i.type||"error":l.type,E=`${n}form-field`,k=ie(`${E}`,y&&`${E}--${y}`,t&&`${E}--with-character-limit`,s&&`${n}disabled`,u),A=h,[_,C]=P.useState(0),H=t!==0&&t>0;return S.jsx(oa,{valid:ma(a),shouldValidate:o,setCharacterCount:C,children:S.jsxs("div",{className:k,...f,children:[P.Children.map(r,V=>{if(!P.isValidElement(V))return null;if(V.props.list)return V;const B={describedById:p?A:void 0};return P.cloneElement(V,B)}),!s&&(p||H)&&S.jsxs("div",{className:`${E}__content`,children:[S.jsxs(da,{prefix:n,id:h,shouldValidate:o,valid:a,...w,children:[p,g&&b&&S.jsx(la,{prefix:n,url:b,text:g})]}),H&&S.jsx(Hr,{prefix:n,characterCount:_,limit:t})]})]})})},an=ga,ya=e=>{const{prefix:n="",label:t="Label",reqText:r,htmlFor:i,className:l,...o}=e;return S.jsxs("label",{htmlFor:i,className:l,...o,children:[t,r&&S.jsxs("em",{className:`${n}required`,children:[" ",r]})]})},Pt=ya,ba=e=>{const{className:n,onChange:t,prefix:r="",id:i,describedById:l,label:o="Label",placeholder:a,disabled:u=!1,req:s=!1,readOnly:f=!1,...c}=e,{shouldValidate:h,valid:p,setCharacterCount:g}=P.useContext(At),b=B=>{g&&g(B.target.value.length),t&&t(B)},{value:w,defaultValue:y}=c;let E=0;w&&w.length?E=w.length:y&&y.length&&(E=y.length);const k=`${r}text-area`;P.useEffect(()=>{g&&g(E)},[E]);const A=ie(n,`${k}`,u&&`${k}--disabled`,f&&`${k}--read-only`,`${r}label-wrapper ${r}label-wrapper--text-input`),_=`${r}validation-border`,C=ie(`${_}`,h&&`${_}--${p}`,u&&`${_}--disabled`,f&&`${_}--read-only`),H=p==="error",V=P.useRef(null);return S.jsxs("div",{className:A,children:[S.jsx(Pt,{prefix:r,htmlFor:i,label:o}),S.jsxs("div",{className:`${k}__wrapper`,children:[S.jsx("textarea",{ref:V,id:i,"aria-describedby":l,disabled:u,required:s,"aria-invalid":h?H:void 0,readOnly:f,"aria-required":s,onChange:b,...c}),S.jsx("span",{className:C})]})]})},xa=ba;const Vr=P.forwardRef((e,n)=>{const{prefix:t="",iconOnly:r=!1,label:i,selected:l=!1,disabled:o=!1,size:a="medium",thumbnail:u,ssrIcon:s,iconPosition:f="leading",thumbnailAlt:c,className:h,onClick:p,...g}=e,b=`${t}pill`,w=ie(`${b}`,a!=="medium"&&`${b}--${a}`,r&&s&&!u&&`${b}--icon`,!r&&s&&!u&&`${t}${f}-icon`,u&&`${b}--thumbnail`,l&&!o&&`${b}--active`,h);return S.jsxs("button",{ref:n,className:w,disabled:o,"aria-pressed":l?"true":"false",onClick:p,...g,children:[u&&S.jsx("img",{className:`${b}__thumbnail`,src:u,alt:c}),s&&!u&&S.jsx(je,{prefix:t,paths:s,className:`${b}__icon`}),i&&S.jsx("span",{className:`${b}__label`,children:i})]})});Vr.displayName="Pill";var ka=Vr,ot=ka;const wa=[{tag:"path",att:{d:"M11.9922 15.9922c.9712 0 1.8155.3236 2.3738.7812l1.2679-1.5467c-.9434-.7734-2.2451-1.2345-3.6417-1.2345-1.4001 0-2.6853.4632-3.6262 1.2345l1.268 1.5467c.5607-.4597 1.3904-.7812 2.3582-.7812zM11 9.5c0 .8284-.6716 1.5-1.5 1.5S8 10.3284 8 9.5 8.6716 8 9.5 8s1.5.6716 1.5 1.5zm3.5 1.5c.8284 0 1.5-.6716 1.5-1.5S15.3284 8 14.5 8 13 8.6716 13 9.5s.6716 1.5 1.5 1.5z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 12c0 4.9706-4.0294 9-9 9s-9-4.0294-9-9 4.0294-9 9-9 9 4.0294 9 9zm-2 0c0 3.866-3.134 7-7 7s-7-3.134-7-7 3.134-7 7-7 7 3.134 7 7z"}}];var Ur=()=>de(wa);const va=[{tag:"path",att:{d:"M9 14v2h6v-2H9zm2-4.5c0 .8284-.6716 1.5-1.5 1.5S8 10.3284 8 9.5 8.6716 8 9.5 8s1.5.6716 1.5 1.5zm3.5 1.5c.8284 0 1.5-.6716 1.5-1.5S15.3284 8 14.5 8 13 8.6716 13 9.5s.6716 1.5 1.5 1.5z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 12c0 4.9706-4.0294 9-9 9s-9-4.0294-9-9 4.0294-9 9-9 9 4.0294 9 9zm-2 0c0 3.866-3.134 7-7 7s-7-3.134-7-7 3.134-7 7-7 7 3.134 7 7z"}}];var Wr=()=>de(va);const Ca=[{tag:"path",att:{d:"M9.5 11c.8284 0 1.5-.6716 1.5-1.5S10.3284 8 9.5 8 8 8.6716 8 9.5 8.6716 11 9.5 11zM16 9.5c0 .8284-.6716 1.5-1.5 1.5S13 10.3284 13 9.5 13.6716 8 14.5 8s1.5.6716 1.5 1.5zm-6.5993 7.0007C9.921 15.6014 10.8908 15 12 15c1.1091 0 2.079.6014 2.5992 1.5007l1.7313-1.0014C15.4674 14.0074 13.8519 13 12 13c-1.852 0-3.4675 1.0074-4.3305 2.4993l1.7312 1.0014z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 12c0 4.9706-4.0294 9-9 9s-9-4.0294-9-9 4.0294-9 9-9 9 4.0294 9 9zm-2 0c0 3.866-3.134 7-7 7s-7-3.134-7-7 3.134-7 7-7 7 3.134 7 7z"}}];var Yr=()=>de(Ca);const Sa=[{tag:"path",att:{d:"M12.002 16.9999c1.3913-.0008 2.6868-.4518 3.632-1.2266l-1.2679-1.5467c-.5553.4551-1.3919.7729-2.3661.7733-.9741-.0004-1.8108-.3182-2.366-.7733l-1.268 1.5467c.9453.7748 2.2431 1.2258 3.6344 1.2266h.0016zM11 9.5c0 .8284-.6716 1.5-1.5 1.5S8 10.3284 8 9.5 8.6716 8 9.5 8s1.5.6716 1.5 1.5zm3.5 1.5c.8284 0 1.5-.6716 1.5-1.5S15.3284 8 14.5 8 13 8.6716 13 9.5s.6716 1.5 1.5 1.5z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 12c0 4.9706-4.0294 9-9 9s-9-4.0294-9-9 4.0294-9 9-9 9 4.0294 9 9zm-2 0c0 3.866-3.134 7-7 7s-7-3.134-7-7 3.134-7 7-7 7 3.134 7 7z"}}];var Gr=()=>de(Sa);const Ea="1.9.8",_a=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m14.8614 16.2679-.8295-.8295a3.9815 3.9815 0 0 1-2.032.5539c-2.2091 0-4-1.7909-4-4 0-.7418.202-1.4365.5538-2.032L7.4102 8.8168c-.9654.7303-1.7915 1.5635-2.4132 2.2691a18.748 18.748 0 0 0-.7567.9149c.4214.5445 1.1436 1.4084 2.0731 2.2644C7.8884 15.7158 9.9 17.0008 12 17.0008c.979 0 1.9432-.2788 2.8615-.7329zm1.4779 1.4779 2.2479 2.2479 1.4142-1.4142L5.4297 4.0078 4.0155 5.422l1.9688 1.9688c-1.011.7937-1.8575 1.6574-2.4879 2.3729-.6233.7074-1.1763 1.4554-1.7005 2.2371.3449.545.7284 1.0657 1.1341 1.5668.4773.5895 1.1695 1.3776 2.0285 2.1688C6.641 17.2859 9.1295 19.0008 12 19.0008c1.5965 0 3.0694-.5312 4.3394-1.255zm-6.2716-6.2716 2.4503 2.4503c-1.4541.3889-2.8315-1.0251-2.4503-2.4503zm5.8949 1.0666c.3491-2.5455-1.9453-4.8631-4.5112-4.5112l4.5112 4.5112zm4.5412 1.6968a20.267 20.267 0 0 1-1.4017 1.4426l-1.4153-1.4153c.9217-.849 1.6508-1.7187 2.0728-2.2641-.4214-.5445-1.1436-1.4083-2.0732-2.2644-1.5749-1.4505-3.5864-2.7356-5.6865-2.7356-.4698 0-.9363.0642-1.396.1812L9.0206 5.5987c.924-.366 1.9247-.5979 2.9793-.5979 2.8705 0 5.359 1.715 7.0415 3.2644 1.194 1.0998 2.299 2.3566 3.1631 3.7356-.2386.3554-.4747.7116-.7328 1.0534a20.4696 20.4696 0 0 1-.9679 1.1834z"}}];var Ta=()=>de(_a);const Ia=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.9995 8c-2.2091 0-4 1.7909-4 4 0 2.2091 1.7908 4 4 4 2.2091 0 4-1.7909 4-4 0-2.2091-1.7909-4-4-4zm-2 4c0-1.1046.8954-2 2-2s2 .8954 2 2-.8954 2-2 2-2-.8954-2-2z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.2041 12c-.191.2843-.3779.5712-.58.8478a18.5559 18.5559 0 0 1-.5547.719c-.4773.5895-1.1694 1.3776-2.0285 2.1688C17.3585 17.2851 14.87 19 11.9995 19c-2.8705 0-5.359-1.7149-7.0414-3.2644-.859-.7912-1.5512-1.5793-2.0285-2.1688a18.5293 18.5293 0 0 1-.5547-.719c-.202-.2765-.389-.5636-.58-.8478l.3748-.558c.2366-.3481.4952-.6818.7599-1.0088.4773-.5895 1.1694-1.3776 2.0285-2.1688C6.6405 6.715 9.129 5 11.9995 5c2.8705 0 5.359 1.715 7.0414 3.2644.8591.7912 1.5512 1.5793 2.0285 2.1688.2393.2956.4262.5432.5547.719.202.2765.3891.5635.58.8478zM4.2399 12c.4213-.5445 1.1436-1.4084 2.073-2.2644C7.888 8.285 9.8995 7 11.9996 7c2.1001 0 4.1116 1.285 5.6865 2.7356.9295.8561 1.6518 1.7199 2.0731 2.2644-.4213.5445-1.1436 1.4083-2.0731 2.2644C16.1111 15.7149 14.0996 17 11.9995 17c-2.1 0-4.1116-1.2851-5.6865-2.7356-.9295-.8561-1.6518-1.7199-2.0731-2.2644z"}}];var Aa=()=>de(Ia);const Kr=P.forwardRef((e,n)=>{const{prefix:t="",type:r="text",label:i,placeholder:l,req:o=!1,inputMode:a,disabled:u=!1,readOnly:s=!1,hidePasswordText:f="Hide password",showPasswordText:c="Show password",className:h,prefixLabel:p,suffixLabel:g,id:b,describedById:w,ssrIcon:y,iconPosition:E,iconOnClick:k,iconClickDescription:A,onChange:_,...C}