iwelp
Version:
A feedback component library
54 lines (52 loc) • 77.4 kB
JavaScript
(function(fe,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],b):(fe=typeof globalThis<"u"?globalThis:fe||self,b(fe.iwelp={},fe.React))})(this,function(fe,b){"use strict";function gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var He={exports:{}},Pe={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _t;function xr(){if(_t)return Pe;_t=1;var e=b,a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(o,d,i){var v,m={},y=null,T=null;i!==void 0&&(y=""+i),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(T=d.ref);for(v in d)t.call(d,v)&&!s.hasOwnProperty(v)&&(m[v]=d[v]);if(o&&o.defaultProps)for(v in d=o.defaultProps,d)m[v]===void 0&&(m[v]=d[v]);return{$$typeof:a,type:o,key:y,ref:T,props:m,_owner:l.current}}return Pe.Fragment=r,Pe.jsx=c,Pe.jsxs=c,Pe}var Oe={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xt;function Er(){return xt||(xt=1,process.env.NODE_ENV!=="production"&&function(){var e=b,a=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),o=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),w=Symbol.iterator,_="@@iterator";function $(n){if(n===null||typeof n!="object")return null;var p=w&&n[w]||n[_];return typeof p=="function"?p:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(n){{for(var p=arguments.length,E=new Array(p>1?p-1:0),L=1;L<p;L++)E[L-1]=arguments[L];P("error",n,E)}}function P(n,p,E){{var L=S.ReactDebugCurrentFrame,H=L.getStackAddendum();H!==""&&(p+="%s",E=E.concat([H]));var K=E.map(function(B){return String(B)});K.unshift("Warning: "+p),Function.prototype.apply.call(console[n],console,K)}}var F=!1,f=!1,O=!1,Z=!1,Q=!1,U;U=Symbol.for("react.module.reference");function te(n){return!!(typeof n=="string"||typeof n=="function"||n===t||n===s||Q||n===l||n===i||n===v||Z||n===T||F||f||O||typeof n=="object"&&n!==null&&(n.$$typeof===y||n.$$typeof===m||n.$$typeof===c||n.$$typeof===o||n.$$typeof===d||n.$$typeof===U||n.getModuleId!==void 0))}function pe(n,p,E){var L=n.displayName;if(L)return L;var H=p.displayName||p.name||"";return H!==""?E+"("+H+")":E}function ae(n){return n.displayName||"Context"}function N(n){if(n==null)return null;if(typeof n.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case t:return"Fragment";case r:return"Portal";case s:return"Profiler";case l:return"StrictMode";case i:return"Suspense";case v:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case o:var p=n;return ae(p)+".Consumer";case c:var E=n;return ae(E._context)+".Provider";case d:return pe(n,n.render,"ForwardRef");case m:var L=n.displayName||null;return L!==null?L:N(n.type)||"Memo";case y:{var H=n,K=H._payload,B=H._init;try{return N(B(K))}catch{return null}}}return null}var J=Object.assign,X=0,ee,re,ie,he,h,g,I;function R(){}R.__reactDisabledLog=!0;function A(){{if(X===0){ee=console.log,re=console.info,ie=console.warn,he=console.error,h=console.group,g=console.groupCollapsed,I=console.groupEnd;var n={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}X++}}function M(){{if(X--,X===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},n,{value:ee}),info:J({},n,{value:re}),warn:J({},n,{value:ie}),error:J({},n,{value:he}),group:J({},n,{value:h}),groupCollapsed:J({},n,{value:g}),groupEnd:J({},n,{value:I})})}X<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var j=S.ReactCurrentDispatcher,k;function D(n,p,E){{if(k===void 0)try{throw Error()}catch(H){var L=H.stack.trim().match(/\n( *(at )?)/);k=L&&L[1]||""}return`
`+k+n}}var q=!1,z;{var le=typeof WeakMap=="function"?WeakMap:Map;z=new le}function x(n,p){if(!n||q)return"";{var E=z.get(n);if(E!==void 0)return E}var L;q=!0;var H=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=j.current,j.current=null,A();try{if(p){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(de){L=de}Reflect.construct(n,[],B)}else{try{B.call()}catch(de){L=de}n.call(B.prototype)}}else{try{throw Error()}catch(de){L=de}n()}}catch(de){if(de&&L&&typeof de.stack=="string"){for(var W=de.stack.split(`
`),ue=L.stack.split(`
`),ne=W.length-1,oe=ue.length-1;ne>=1&&oe>=0&&W[ne]!==ue[oe];)oe--;for(;ne>=1&&oe>=0;ne--,oe--)if(W[ne]!==ue[oe]){if(ne!==1||oe!==1)do if(ne--,oe--,oe<0||W[ne]!==ue[oe]){var me=`
`+W[ne].replace(" at new "," at ");return n.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",n.displayName)),typeof n=="function"&&z.set(n,me),me}while(ne>=1&&oe>=0);break}}}finally{q=!1,j.current=K,M(),Error.prepareStackTrace=H}var ke=n?n.displayName||n.name:"",Ce=ke?D(ke):"";return typeof n=="function"&&z.set(n,Ce),Ce}function ve(n,p,E){return x(n,!1)}function Se(n){var p=n.prototype;return!!(p&&p.isReactComponent)}function Ee(n,p,E){if(n==null)return"";if(typeof n=="function")return x(n,Se(n));if(typeof n=="string")return D(n);switch(n){case i:return D("Suspense");case v:return D("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case d:return ve(n.render);case m:return Ee(n.type,p,E);case y:{var L=n,H=L._payload,K=L._init;try{return Ee(K(H),p,E)}catch{}}}return""}var Fe=Object.prototype.hasOwnProperty,lr={},cr=S.ReactDebugCurrentFrame;function Ve(n){if(n){var p=n._owner,E=Ee(n.type,n._source,p?p.type:null);cr.setExtraStackFrame(E)}else cr.setExtraStackFrame(null)}function ca(n,p,E,L,H){{var K=Function.call.bind(Fe);for(var B in n)if(K(n,B)){var W=void 0;try{if(typeof n[B]!="function"){var ue=Error((L||"React class")+": "+E+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ue.name="Invariant Violation",ue}W=n[B](p,B,L,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ne){W=ne}W&&!(W instanceof Error)&&(Ve(H),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",E,B,typeof W),Ve(null)),W instanceof Error&&!(W.message in lr)&&(lr[W.message]=!0,Ve(H),C("Failed %s type: %s",E,W.message),Ve(null))}}}var ua=Array.isArray;function pt(n){return ua(n)}function fa(n){{var p=typeof Symbol=="function"&&Symbol.toStringTag,E=p&&n[Symbol.toStringTag]||n.constructor.name||"Object";return E}}function da(n){try{return ur(n),!1}catch{return!0}}function ur(n){return""+n}function fr(n){if(da(n))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fa(n)),ur(n)}var Ne=S.ReactCurrentOwner,pa={key:!0,ref:!0,__self:!0,__source:!0},dr,pr,ht;ht={};function ha(n){if(Fe.call(n,"ref")){var p=Object.getOwnPropertyDescriptor(n,"ref").get;if(p&&p.isReactWarning)return!1}return n.ref!==void 0}function va(n){if(Fe.call(n,"key")){var p=Object.getOwnPropertyDescriptor(n,"key").get;if(p&&p.isReactWarning)return!1}return n.key!==void 0}function ma(n,p){if(typeof n.ref=="string"&&Ne.current&&p&&Ne.current.stateNode!==p){var E=N(Ne.current.type);ht[E]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N(Ne.current.type),n.ref),ht[E]=!0)}}function ya(n,p){{var E=function(){dr||(dr=!0,C("%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://reactjs.org/link/special-props)",p))};E.isReactWarning=!0,Object.defineProperty(n,"key",{get:E,configurable:!0})}}function ba(n,p){{var E=function(){pr||(pr=!0,C("%s: `ref` 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://reactjs.org/link/special-props)",p))};E.isReactWarning=!0,Object.defineProperty(n,"ref",{get:E,configurable:!0})}}var ga=function(n,p,E,L,H,K,B){var W={$$typeof:a,type:n,key:p,ref:E,props:B,_owner:K};return W._store={},Object.defineProperty(W._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(W,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(W,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W};function _a(n,p,E,L,H){{var K,B={},W=null,ue=null;E!==void 0&&(fr(E),W=""+E),va(p)&&(fr(p.key),W=""+p.key),ha(p)&&(ue=p.ref,ma(p,H));for(K in p)Fe.call(p,K)&&!pa.hasOwnProperty(K)&&(B[K]=p[K]);if(n&&n.defaultProps){var ne=n.defaultProps;for(K in ne)B[K]===void 0&&(B[K]=ne[K])}if(W||ue){var oe=typeof n=="function"?n.displayName||n.name||"Unknown":n;W&&ya(B,oe),ue&&ba(B,oe)}return ga(n,W,ue,H,L,Ne.current,B)}}var vt=S.ReactCurrentOwner,hr=S.ReactDebugCurrentFrame;function je(n){if(n){var p=n._owner,E=Ee(n.type,n._source,p?p.type:null);hr.setExtraStackFrame(E)}else hr.setExtraStackFrame(null)}var mt;mt=!1;function yt(n){return typeof n=="object"&&n!==null&&n.$$typeof===a}function vr(){{if(vt.current){var n=N(vt.current.type);if(n)return`
Check the render method of \``+n+"`."}return""}}function xa(n){return""}var mr={};function Ea(n){{var p=vr();if(!p){var E=typeof n=="string"?n:n.displayName||n.name;E&&(p=`
Check the top-level render call using <`+E+">.")}return p}}function yr(n,p){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var E=Ea(p);if(mr[E])return;mr[E]=!0;var L="";n&&n._owner&&n._owner!==vt.current&&(L=" It was passed a child from "+N(n._owner.type)+"."),je(n),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,L),je(null)}}function br(n,p){{if(typeof n!="object")return;if(pt(n))for(var E=0;E<n.length;E++){var L=n[E];yt(L)&&yr(L,p)}else if(yt(n))n._store&&(n._store.validated=!0);else if(n){var H=$(n);if(typeof H=="function"&&H!==n.entries)for(var K=H.call(n),B;!(B=K.next()).done;)yt(B.value)&&yr(B.value,p)}}}function Ca(n){{var p=n.type;if(p==null||typeof p=="string")return;var E;if(typeof p=="function")E=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===d||p.$$typeof===m))E=p.propTypes;else return;if(E){var L=N(p);ca(E,n.props,"prop",L,n)}else if(p.PropTypes!==void 0&&!mt){mt=!0;var H=N(p);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ta(n){{for(var p=Object.keys(n.props),E=0;E<p.length;E++){var L=p[E];if(L!=="children"&&L!=="key"){je(n),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),je(null);break}}n.ref!==null&&(je(n),C("Invalid attribute `ref` supplied to `React.Fragment`."),je(null))}}var gr={};function _r(n,p,E,L,H,K){{var B=te(n);if(!B){var W="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(W+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ue=xa();ue?W+=ue:W+=vr();var ne;n===null?ne="null":pt(n)?ne="array":n!==void 0&&n.$$typeof===a?(ne="<"+(N(n.type)||"Unknown")+" />",W=" Did you accidentally export a JSX literal instead of a component?"):ne=typeof n,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ne,W)}var oe=_a(n,p,E,H,K);if(oe==null)return oe;if(B){var me=p.children;if(me!==void 0)if(L)if(pt(me)){for(var ke=0;ke<me.length;ke++)br(me[ke],n);Object.freeze&&Object.freeze(me)}else C("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 br(me,n)}if(Fe.call(p,"key")){var Ce=N(n),de=Object.keys(p).filter(function(Pa){return Pa!=="key"}),bt=de.length>0?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}";if(!gr[Ce+bt]){var ka=de.length>0?"{"+de.join(": ..., ")+": ...}":"{}";C(`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} />`,bt,Ce,ka,Ce),gr[Ce+bt]=!0}}return n===t?Ta(oe):Ca(oe),oe}}function wa(n,p,E){return _r(n,p,E,!0)}function $a(n,p,E){return _r(n,p,E,!1)}var Sa=$a,ja=wa;Oe.Fragment=t,Oe.jsx=Sa,Oe.jsxs=ja}()),Oe}process.env.NODE_ENV==="production"?He.exports=xr():He.exports=Er();var u=He.exports,Ue={exports:{}},Me={exports:{}},Y={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Et;function Cr(){if(Et)return Y;Et=1;var e=typeof Symbol=="function"&&Symbol.for,a=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,t=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,i=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function P(f){if(typeof f=="object"&&f!==null){var O=f.$$typeof;switch(O){case a:switch(f=f.type,f){case d:case i:case t:case s:case l:case m:return f;default:switch(f=f&&f.$$typeof,f){case o:case v:case w:case T:case c:return f;default:return O}}case r:return O}}}function F(f){return P(f)===i}return Y.AsyncMode=d,Y.ConcurrentMode=i,Y.ContextConsumer=o,Y.ContextProvider=c,Y.Element=a,Y.ForwardRef=v,Y.Fragment=t,Y.Lazy=w,Y.Memo=T,Y.Portal=r,Y.Profiler=s,Y.StrictMode=l,Y.Suspense=m,Y.isAsyncMode=function(f){return F(f)||P(f)===d},Y.isConcurrentMode=F,Y.isContextConsumer=function(f){return P(f)===o},Y.isContextProvider=function(f){return P(f)===c},Y.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===a},Y.isForwardRef=function(f){return P(f)===v},Y.isFragment=function(f){return P(f)===t},Y.isLazy=function(f){return P(f)===w},Y.isMemo=function(f){return P(f)===T},Y.isPortal=function(f){return P(f)===r},Y.isProfiler=function(f){return P(f)===s},Y.isStrictMode=function(f){return P(f)===l},Y.isSuspense=function(f){return P(f)===m},Y.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===t||f===i||f===s||f===l||f===m||f===y||typeof f=="object"&&f!==null&&(f.$$typeof===w||f.$$typeof===T||f.$$typeof===c||f.$$typeof===o||f.$$typeof===v||f.$$typeof===$||f.$$typeof===S||f.$$typeof===C||f.$$typeof===_)},Y.typeOf=P,Y}var V={};/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ct;function Tr(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,a=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,t=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,i=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function P(x){return typeof x=="string"||typeof x=="function"||x===t||x===i||x===s||x===l||x===m||x===y||typeof x=="object"&&x!==null&&(x.$$typeof===w||x.$$typeof===T||x.$$typeof===c||x.$$typeof===o||x.$$typeof===v||x.$$typeof===$||x.$$typeof===S||x.$$typeof===C||x.$$typeof===_)}function F(x){if(typeof x=="object"&&x!==null){var ve=x.$$typeof;switch(ve){case a:var Se=x.type;switch(Se){case d:case i:case t:case s:case l:case m:return Se;default:var Ee=Se&&Se.$$typeof;switch(Ee){case o:case v:case w:case T:case c:return Ee;default:return ve}}case r:return ve}}}var f=d,O=i,Z=o,Q=c,U=a,te=v,pe=t,ae=w,N=T,J=r,X=s,ee=l,re=m,ie=!1;function he(x){return ie||(ie=!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.")),h(x)||F(x)===d}function h(x){return F(x)===i}function g(x){return F(x)===o}function I(x){return F(x)===c}function R(x){return typeof x=="object"&&x!==null&&x.$$typeof===a}function A(x){return F(x)===v}function M(x){return F(x)===t}function j(x){return F(x)===w}function k(x){return F(x)===T}function D(x){return F(x)===r}function q(x){return F(x)===s}function z(x){return F(x)===l}function le(x){return F(x)===m}V.AsyncMode=f,V.ConcurrentMode=O,V.ContextConsumer=Z,V.ContextProvider=Q,V.Element=U,V.ForwardRef=te,V.Fragment=pe,V.Lazy=ae,V.Memo=N,V.Portal=J,V.Profiler=X,V.StrictMode=ee,V.Suspense=re,V.isAsyncMode=he,V.isConcurrentMode=h,V.isContextConsumer=g,V.isContextProvider=I,V.isElement=R,V.isForwardRef=A,V.isFragment=M,V.isLazy=j,V.isMemo=k,V.isPortal=D,V.isProfiler=q,V.isStrictMode=z,V.isSuspense=le,V.isValidElementType=P,V.typeOf=F}()),V}var Tt;function wt(){return Tt||(Tt=1,process.env.NODE_ENV==="production"?Me.exports=Cr():Me.exports=Tr()),Me.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Ke,$t;function wr(){if($t)return Ke;$t=1;var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function t(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function l(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var c={},o=0;o<10;o++)c["_"+String.fromCharCode(o)]=o;var d=Object.getOwnPropertyNames(c).map(function(v){return c[v]});if(d.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(v){i[v]=v}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ke=l()?Object.assign:function(s,c){for(var o,d=t(s),i,v=1;v<arguments.length;v++){o=Object(arguments[v]);for(var m in o)a.call(o,m)&&(d[m]=o[m]);if(e){i=e(o);for(var y=0;y<i.length;y++)r.call(o,i[y])&&(d[i[y]]=o[i[y]])}}return d},Ke}var Ge,St;function Je(){if(St)return Ge;St=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ge=e,Ge}var Xe,jt;function kt(){return jt||(jt=1,Xe=Function.call.bind(Object.prototype.hasOwnProperty)),Xe}var Ze,Pt;function $r(){if(Pt)return Ze;Pt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var a=Je(),r={},t=kt();e=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function l(s,c,o,d,i){if(process.env.NODE_ENV!=="production"){for(var v in s)if(t(s,v)){var m;try{if(typeof s[v]!="function"){var y=Error((d||"React class")+": "+o+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}m=s[v](c,v,d,o,null,a)}catch(w){m=w}if(m&&!(m instanceof Error)&&e((d||"React class")+": type specification of "+o+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var T=i?i():"";e("Failed "+o+" type: "+m.message+(T??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ze=l,Ze}var Qe,Ot;function Sr(){if(Ot)return Qe;Ot=1;var e=wt(),a=wr(),r=Je(),t=kt(),l=$r(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var d="Warning: "+o;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function c(){return null}return Qe=function(o,d){var i=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function m(h){var g=h&&(i&&h[i]||h[v]);if(typeof g=="function")return g}var y="<<anonymous>>",T={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:C(),arrayOf:P,element:F(),elementType:f(),instanceOf:O,node:te(),objectOf:Q,oneOf:Z,oneOfType:U,shape:ae,exact:N};function w(h,g){return h===g?h!==0||1/h===1/g:h!==h&&g!==g}function _(h,g){this.message=h,this.data=g&&typeof g=="object"?g:{},this.stack=""}_.prototype=Error.prototype;function $(h){if(process.env.NODE_ENV!=="production")var g={},I=0;function R(M,j,k,D,q,z,le){if(D=D||y,z=z||k,le!==r){if(d){var x=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 x.name="Invariant Violation",x}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ve=D+":"+k;!g[ve]&&I<3&&(s("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+D+"`. 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."),g[ve]=!0,I++)}}return j[k]==null?M?j[k]===null?new _("The "+q+" `"+z+"` is marked as required "+("in `"+D+"`, but its value is `null`.")):new _("The "+q+" `"+z+"` is marked as required in "+("`"+D+"`, but its value is `undefined`.")):null:h(j,k,D,q,z)}var A=R.bind(null,!1);return A.isRequired=R.bind(null,!0),A}function S(h){function g(I,R,A,M,j,k){var D=I[R],q=ee(D);if(q!==h){var z=re(D);return new _("Invalid "+M+" `"+j+"` of type "+("`"+z+"` supplied to `"+A+"`, expected ")+("`"+h+"`."),{expectedType:h})}return null}return $(g)}function C(){return $(c)}function P(h){function g(I,R,A,M,j){if(typeof h!="function")return new _("Property `"+j+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var k=I[R];if(!Array.isArray(k)){var D=ee(k);return new _("Invalid "+M+" `"+j+"` of type "+("`"+D+"` supplied to `"+A+"`, expected an array."))}for(var q=0;q<k.length;q++){var z=h(k,q,A,M,j+"["+q+"]",r);if(z instanceof Error)return z}return null}return $(g)}function F(){function h(g,I,R,A,M){var j=g[I];if(!o(j)){var k=ee(j);return new _("Invalid "+A+" `"+M+"` of type "+("`"+k+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return $(h)}function f(){function h(g,I,R,A,M){var j=g[I];if(!e.isValidElementType(j)){var k=ee(j);return new _("Invalid "+A+" `"+M+"` of type "+("`"+k+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return $(h)}function O(h){function g(I,R,A,M,j){if(!(I[R]instanceof h)){var k=h.name||y,D=he(I[R]);return new _("Invalid "+M+" `"+j+"` of type "+("`"+D+"` supplied to `"+A+"`, expected ")+("instance of `"+k+"`."))}return null}return $(g)}function Z(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),c;function g(I,R,A,M,j){for(var k=I[R],D=0;D<h.length;D++)if(w(k,h[D]))return null;var q=JSON.stringify(h,function(le,x){var ve=re(x);return ve==="symbol"?String(x):x});return new _("Invalid "+M+" `"+j+"` of value `"+String(k)+"` "+("supplied to `"+A+"`, expected one of "+q+"."))}return $(g)}function Q(h){function g(I,R,A,M,j){if(typeof h!="function")return new _("Property `"+j+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var k=I[R],D=ee(k);if(D!=="object")return new _("Invalid "+M+" `"+j+"` of type "+("`"+D+"` supplied to `"+A+"`, expected an object."));for(var q in k)if(t(k,q)){var z=h(k,q,A,M,j+"."+q,r);if(z instanceof Error)return z}return null}return $(g)}function U(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var g=0;g<h.length;g++){var I=h[g];if(typeof I!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(I)+" at index "+g+"."),c}function R(A,M,j,k,D){for(var q=[],z=0;z<h.length;z++){var le=h[z],x=le(A,M,j,k,D,r);if(x==null)return null;x.data&&t(x.data,"expectedType")&&q.push(x.data.expectedType)}var ve=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new _("Invalid "+k+" `"+D+"` supplied to "+("`"+j+"`"+ve+"."))}return $(R)}function te(){function h(g,I,R,A,M){return J(g[I])?null:new _("Invalid "+A+" `"+M+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return $(h)}function pe(h,g,I,R,A){return new _((h||"React class")+": "+g+" type `"+I+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function ae(h){function g(I,R,A,M,j){var k=I[R],D=ee(k);if(D!=="object")return new _("Invalid "+M+" `"+j+"` of type `"+D+"` "+("supplied to `"+A+"`, expected `object`."));for(var q in h){var z=h[q];if(typeof z!="function")return pe(A,M,j,q,re(z));var le=z(k,q,A,M,j+"."+q,r);if(le)return le}return null}return $(g)}function N(h){function g(I,R,A,M,j){var k=I[R],D=ee(k);if(D!=="object")return new _("Invalid "+M+" `"+j+"` of type `"+D+"` "+("supplied to `"+A+"`, expected `object`."));var q=a({},I[R],h);for(var z in q){var le=h[z];if(t(h,z)&&typeof le!="function")return pe(A,M,j,z,re(le));if(!le)return new _("Invalid "+M+" `"+j+"` key `"+z+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(I[R],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(h),null," "));var x=le(k,z,A,M,j+"."+z,r);if(x)return x}return null}return $(g)}function J(h){switch(typeof h){case"number":case"string":case"undefined":return!0;case"boolean":return!h;case"object":if(Array.isArray(h))return h.every(J);if(h===null||o(h))return!0;var g=m(h);if(g){var I=g.call(h),R;if(g!==h.entries){for(;!(R=I.next()).done;)if(!J(R.value))return!1}else for(;!(R=I.next()).done;){var A=R.value;if(A&&!J(A[1]))return!1}}else return!1;return!0;default:return!1}}function X(h,g){return h==="symbol"?!0:g?g["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&g instanceof Symbol:!1}function ee(h){var g=typeof h;return Array.isArray(h)?"array":h instanceof RegExp?"object":X(g,h)?"symbol":g}function re(h){if(typeof h>"u"||h===null)return""+h;var g=ee(h);if(g==="object"){if(h instanceof Date)return"date";if(h instanceof RegExp)return"regexp"}return g}function ie(h){var g=re(h);switch(g){case"array":case"object":return"an "+g;case"boolean":case"date":case"regexp":return"a "+g;default:return g}}function he(h){return!h.constructor||!h.constructor.name?y:h.constructor.name}return T.checkPropTypes=l,T.resetWarningCache=l.resetWarningCache,T.PropTypes=T,T},Qe}var et,Rt;function jr(){if(Rt)return et;Rt=1;var e=Je();function a(){}function r(){}return r.resetWarningCache=a,et=function(){function t(c,o,d,i,v,m){if(m!==e){var y=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 y.name="Invariant Violation",y}}t.isRequired=t;function l(){return t}var s={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:l,element:t,elementType:t,instanceOf:l,node:t,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:r,resetWarningCache:a};return s.PropTypes=s,s},et}if(process.env.NODE_ENV!=="production"){var kr=wt(),Pr=!0;Ue.exports=Sr()(kr.isElement,Pr)}else Ue.exports=jr()();var Or=Ue.exports;const ce=gt(Or);var At={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var a={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var o=arguments[c];o&&(s=l(s,t(o)))}return s}function t(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var o in s)a.call(s,o)&&s[o]&&(c=l(c,o));return c}function l(s,c){return c?s?s+" "+c:s+c:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(At);var Rr=At.exports;const G=gt(Rr),Ar=({prefix:e="",className:a,viewBox:r="0 0 24 24",ariaHidden:t=!0,children:l,...s})=>u.jsx("svg",{viewBox:r,focusable:"false",width:"24",height:"24",...s,"aria-hidden":t,className:`${e}svg-icon${a?` ${a}`:""}`,children:l});var Lr=e=>{const{prefix:a="",viewBox:r="0 0 24 24",paths:t,className:l,modifier:s,ariaHidden:c=!0,...o}=e,d=G(l,s&&`${a}svg-icon--${s}`);return t?u.jsx(Ar,{viewBox:r,prefix:a,...o,className:d,ariaHidden:c,children:t().map((i,v)=>b.cloneElement(i,{key:v}))}):null},_e=Lr;const Ir=[{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 Fr(e){return e.replace(/-([a-z])/g,(a,r)=>r.toUpperCase())}function Nr(e){return Object.entries(e).reduce((a,[r,t])=>(a[Fr(r)]=t,a),{})}function se(e){if(e)return e.map(a=>b.createElement(a.tag,Nr(a.att),se(a.nds)))}var Lt=()=>se(Ir);const tt={WelpButton:"_WelpButton_ab7c9_1",WelpText:"_WelpText_ab7c9_12",topRight:"_topRight_ab7c9_24",Content:"_Content_ab7c9_24",bottomRight:"_bottomRight_ab7c9_30",bottomLeft:"_bottomLeft_ab7c9_34",topLeft:"_topLeft_ab7c9_36",rightCenter:"_rightCenter_ab7c9_29",leftCenter:"_leftCenter_ab7c9_35",WelpIcon:"_WelpIcon_ab7c9_65",Text:"_Text_ab7c9_81"},De=({position:e="rightCenter",bgcolor:a="#FFD700",style:r,className:t,onClick:l})=>u.jsx(u.Fragment,{children:u.jsx("div",{onClick:l,className:tt.Content+" "+tt[e]+" "+t,style:{...r,backgroundColor:a},children:u.jsx("div",{className:tt.Text,children:"Share your Feedback"})})});De.propTypes={position:ce.oneOf(["leftCenter","rightCenter","topLeft","topRight","bottomLeft","bottomRight"]),bgcolor:ce.string,style:ce.object,className:ce.string,onClick:ce.func.isRequired},De.displayName="iWelpButton";const Mr="100ms",Dr=[{tag:"path",att:{d:"M11.0036 14.2499h2v-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.5341 10-19h1.7699l10 19-.8849 1.4658h-20l-.885-1.4658zm2.5413-.5342h16.6873l-8.3436-15.853L3.6565 20z"}}];var zr=()=>se(Dr);const Wr=["primary","emphasised","secondary","tertiary"],It=b.forwardRef((e,a)=>{const{href:r="",newWindow:t=!1,loadingSrText:l="Loading…",ssrIcon:s,iconOnly:c=!1,prefix:o="",htmlType:d="button",disabled:i=!1,className:v="",onClick:m,text:y="",type:T="secondary",expanding:w=!1,loading:_=!1,iconPosition:$="leading",fluid:S=!1,inverseTheme:C=!1,children:P,expandedOnTouchDevice:F=!1,size:f="medium",staticColour:O=!1,...Z}=e,Q=re=>{if(i||_||re.key!==" ")return;re.target.click()};let U=T||"secondary";c&&s&&(U=`icon-${U}`),C&&T!=="danger"&&T!=="plain"&&T!=="image-overlay"&&Wr.indexOf(T)>-1&&(U=`${U}-inverse`);const te=G(`${o}btn__inner`),pe=`${o}btn__icon`,ae=T==="danger"?zr:s,N=ae?u.jsx(_e,{className:pe,prefix:o,paths:ae}):null,J=G(`${o}btn`,_&&`${o}btn--loading`,f!=="medium"&&`${o}btn--${f}`,!c&&ae&&$&&`${o}${$}-icon`,T&&`${o}btn--${U}`,S&&!c&&`${o}btn--fluid`,w&&`${o}btn--expanding`,w&&F&&`${o}btn--touch-device-expanded`,O&&`${o}btn--static-colour`,v),X=re=>{if(_||i){re.stopPropagation();return}m&&typeof m=="function"&&m(re)},ee=u.jsxs("span",{className:te,children:[N,y&&u.jsx("span",{className:`${o}btn__label`,children:y})||null,!_&&P||null,_&&u.jsx("span",{className:`${o}btn__loader`,children:l})||null]});return r?u.jsx("a",{ref:a,className:J,"aria-disabled":_?!0:void 0,onClick:X,onKeyUp:Q,href:i?void 0:r,target:t?"_blank":void 0,rel:t?"noreferrer":void 0,...Z,children:ee}):u.jsx("button",{ref:a,className:J,disabled:i,type:d,onClick:X,...Z,children:ee})});It.displayName="Button";var Br=It,Re=Br;const qr=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m12 13.4142 4.9497 4.9497 1.4142-1.4142L13.4142 12l4.9497-4.9498-1.4142-1.4142L12 10.5857 7.0502 5.636 5.636 7.0502 10.5857 12 5.636 16.9497l1.4142 1.4142L12 13.4142z"}}];var Yr=()=>se(qr);const Vr=[{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 Hr=()=>se(Vr);const Ur=e=>{const{title:a="",titleId:r="",prefix:t="",className:l="",closeBtnClick:s,ariaCloseTxt:c="Close",backBtnClick:o,ariaBackBtnTxt:d="Back",floating:i=!1,children:v,...m}=e,y=G(`${t}modal-header__title-wrapper`,!o&&`${t}modal-header__title-wrapper--padded`),T=G(`${t}modal-header`,i&&`${t}modal-header--floating-header`,l);return u.jsxs("div",{className:T,...m,children:[u.jsx(Re,{prefix:t,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:Yr,onClick:s,className:`${t}modal-header__close`,"aria-label":c}),!i&&(a||v)&&u.jsxs("div",{className:y,children:[a&&u.jsx("h2",{id:r,className:`${t}modal-header__title`,children:a}),v]}),o&&u.jsx(Re,{prefix:t,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:Hr,onClick:o,className:`${t}modal-header__back-button`,"aria-label":d})]})},Kr=e=>{const{prefix:a="",children:r,className:t="",...l}=e;return u.jsx("div",{...l,className:G(`${a}modal-body`,t),children:r})},Gr=e=>e?!!!e.querySelectorAll("*[data-autofocus],*[autofocus]").length:!1;var Jr=()=>{const e=b.useRef(null),[a,r]=b.useState(void 0);return b.useEffect(()=>{if(e.current){const t=e.current;r(Gr(t))}},[]),[a,e]};const Xr=e=>{const{className:a="",fullSize:r=!1,prefix:t="",children:l,open:s=!1,closeBtnClick:c,header:o,alignment:d="right",preserveAlignment:i=!1,footer:v,size:m="small",describedById:y,labelledById:T,ariaLabel:w,..._}=e,$=G(`${t}sheets`,`${t}sheets--${m}`,r&&`${t}sheets--mobile-full-size`,d==="left"&&`${t}sheets--mirrored`,i&&`${t}sheets--preserve-alignment`,s?`${t}sheets--enter`:`${t}sheets--close`,a),S=o?b.cloneElement(o,{closeBtnClick:c,prefix:t}):null,C=v&&b.cloneElement(v,{prefix:t,closeBtnClick:c,stacked:m==="small"?v.props.stacked:!1})||null,P=b.Children.map(l,O=>b.isValidElement(O)?b.cloneElement(O,{prefix:t}):O),[F,f]=Jr();return u.jsxs("div",{"aria-describedby":y,"aria-labelledby":T,"aria-label":w,..._,className:$,"aria-modal":"true",role:"dialog",tabIndex:-1,children:[F!==void 0&&S,u.jsx("div",{className:`${t}sheets__content-wrapper`,role:"document",tabIndex:0,ref:f,"data-autofocus":F,children:P}),C]})},ge={Enable:"skapa-focus-lock-enable",Disable:"skapa-focus-lock-disable",Escape:"skapa-focus-lock-escape-hotkey"};class rt extends Event{constructor(a,r){super(a),this.SkapaFocusLockReference=r}}const xe=new Set;function Zr(e){if(!e)return;const a=e.getRootNode();if("host"in a)return a.host}function Qr(e){return e.parentElement||e.getRootNode()&&e.getRootNode().host}function en(e){const a=[e];let r=e,t;for(;t=Qr(r);)a.push(r=t);return a}function Te(e,a,r){var t;const l=[...e];a&&l.reverse();const s=typeof window<"u";for(let c=0;c<l.length;c++){const o=l[c];if(!(s&&!at(o,r))&&!o.matches("[disabled], [hidden], [inert]")){if(o.matches('button, a[href], input:not([type="hidden"]), select, textarea, audio, video, details, [tabindex], [contenteditable]:not([contenteditable="false"])')&&o.matches(':not([tabindex="-1"])')){if(!((t=o.closest("fieldset"))===null||t===void 0)&&t.hasAttribute("disabled"))continue;return o}if(o.shadowRoot){const d=Te(Array.from(o.shadowRoot.querySelectorAll("*")),a,o);if(d)return d}if(o.tagName==="SLOT"){const d=Te(Array.from(o.assignedElements({flatten:!0})),a,o);if(d)return d}}}}function tn(e){const a=e.SkapaFocusLockReference;if(e.type===ge.Enable){const r=[...xe.values()].reverse()[0];r&&(r.passive=!0),xe.add(a)}else{xe.delete(a);const r=[...xe.values()].reverse()[0];r&&(r.passive=!1)}}function rn(e){xe.forEach(a=>a.handlePointer(e))}function nn(e){e.key,xe.forEach(a=>a.handleKeyboard(e))}const an=["mousedown","pointerup","touchstart","click"],on=["keydown","keyup"],sn=[ge.Enable,ge.Disable];let Ft=!1;function Nt(e=!0){if(Ft===e||!e&&xe.size)return;const a=(e?document.addEventListener:document.removeEventListener).bind(document);an.forEach(r=>a(r,rn,{capture:!0})),on.forEach(r=>a(r,nn)),sn.forEach(r=>a(r,tn)),Ft=e}let nt=-1;const Mt={cache:new WeakMap};function ln(){nt=-1,Mt.cache=new WeakMap}function at(e,a){if(!e)return!1;if(e===a)return!0;const r=Mt.cache;if(r.has(e))return!!r.get(e);nt===-1&&(nt=requestAnimationFrame(ln));const{display:t,visibility:l}=window.getComputedStyle(e);if(t==="none"||l==="hidden")return r.set(e,!1),!1;const s=e.parentNode;if(s&&s===a)return r.set(e,!0),!0;if(s&&s.nodeType===1){const c=at(s,a);return r.set(e,c),c}if(s&&s.nodeType===11&&"host"in s){const c=at(s.host,a);return r.set(e,c),c}return r.set(e,!0),!0}function Dt(e=document){if(e.activeElement)return e.activeElement.shadowRoot&&Dt(e.activeElement.shadowRoot)||e.activeElement}const zt="skapa-focus-region-boundary";let ye;function Wt(){return ye||(ye=document.createElement("div"),ye.tabIndex=0,ye.toggleAttribute(zt,!0),ye.style.position="fixed",ye.style.top="0",ye.style.left="0",ye.style.width="1px"),ye.cloneNode(!0)}const ze=new Map;function Bt(e,a){e.preventDefault(),e.stopImmediatePropagation(),a.focus()}function cn(e){const a=e.container;if(a.isConnected&&a.parentNode){ze.has(e)&&qt(e);const r=Wt(),t=Wt(),l=function(c){const o=Te([a,...Array.from(a.querySelectorAll("*"))],!0,a);o&&Bt(c,o)},s=function(c){const o=Te([a,...Array.from(a.querySelectorAll("*"))],!1,a);o&&Bt(c,o)};r.addEventListener("focusin",l,{capture:!0}),t.addEventListener("focusin",s,{capture:!0}),a.before(r),a.after(t),ze.set(e,{nodes:[r,t],listeners:[l,s]})}}function qt(e){const a=ze.get(e);a&&(a.nodes.forEach((r,t)=>{r.removeEventListener("focusin",a.listeners[t],{capture:!0}),r&&r.isConnected&&r.remove()}),ze.delete(e))}class un extends EventTarget{constructor(a){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=r=>{if(!this.passive){if(r.type==="keydown"&&typeof r.key=="string"&&r.key.toLowerCase()===this.__disableKeyConfig.key.toLowerCase()){const{shift:t,ctrl:l}=this.__disableKeyConfig;if(t===r.shiftKey&&l===r.ctrlKey){this.active=!1,this.dispatchEvent(new rt(ge.Escape,this));return}}r.key==="Shift"&&(this.__shiftKeyDown=r.type==="keydown")}},this.disconnectedLockWrapper=()=>{const r=!(this.container&&this.container.isConnected);return r&&console.warn("Focus lock feature was not disabled before removing the container from the DOM tree."),r},this.handlePointer=r=>{if(this.passive||!this.capturePointerEvents||this.disconnectedLockWrapper())return;const t=r.composedPath();t.includes(this.container)||t.find(l=>Element.prototype.isPrototypeOf(l)&&(l.classList.contains("skapa-focus-portal")||(l.getAttribute("role")||"").includes("dialog")))||this.isElementWithin(t[0])||(r.cancelable&&r.preventDefault(),r.type==="click"&&r.stopImmediatePropagation())},this.enableLock=()=>{this.container.addEventListener("focusout",this.handleFocus),Nt(!0),cn(this),document.dispatchEvent(new rt(ge.Enable,this)),this.captureFocus()},this.disableLock=()=>{qt(this),Nt(!1),this.container.removeEventListener("focusout",this.handleFocus),this.returnFocus(),document.dispatchEvent(new rt(ge.Disable,this))},this.captureFocus=()=>{document.activeElement&&(this._activeElementBeforeFocusLock=Dt());const r=this.autoFocus&&this.container.querySelector('*[data-autofocus]:not([tabindex="-1"]):not(:disabled)'),t=Te(r?[r]:[this.container,...Array.from(this.container.querySelectorAll("*"))],!1,this.container);t?Vt(t):this.noFocusTargetException()},this.returnFocus=()=>{this.autoFocusReturn&&this._activeElementBeforeFocusLock&&this._activeElementBeforeFocusLock.isConnected&&Vt(this._activeElementBeforeFocusLock)},this.handleFocus=r=>{if(this.passive||!this.container.isConnected)return;const t=r.relatedTarget&&"nodeType"in r.relatedTarget&&r.relatedTarget.nodeType===1?r.relatedTarget:null;if(!(!t||t.hasAttribute(zt))&&!this.isElementWithin(t)){r.preventDefault();const s=r.composedPath()[0]||Te([this.container,...Array.from(this.container.querySelectorAll("*"))],this.__shiftKeyDown,this.container);s?s.focus():this.noFocusTargetException()}},this.isElementWithin=(r,t=this.container)=>{var l;return!!(r&&(t.contains(r)||t.shadowRoot&&t.shadowRoot.contains(r)||!((l=Zr(t))===null||l===void 0)&&l.contains(r)||en(r).includes(t)))},this.noFocusTargetException=()=>{console.warn(`Warning! Skapa Focus-lock found no focusable elements on ${this.container}.
Focus lock remains disabled.`),this.disableLock()},this.container=a}get active(){return this.__active}set active(a){this.__active!==a&&(this.__active=a,a?this.enableLock():this.disableLock())}get disableKey(){return this.__disableKeyConfig}setDisableKey(a){this.__disableKeyConfig=Object.assign({key:"Escape",shift:!1,ctrl:!1},a)}}let Yt=-1;function Vt(e){clearTimeout(Yt),!(typeof window>"u")&&(Yt=window.setTimeout(()=>{e&&e.isConnected&&e.focus()},50))}var fn=e=>{const{prefix:a="",locked:r=!1,autoFocus:t=!1,escapeHotkey:l,capturePointerEvents:s=!0,onEscaped:c,autoFocusReturn:o=!0,children:d,className:i,...v}=e,m=b.useRef(null),y=b.useRef(),[T,w]=b.useState(!1),_=`${a}skapa-focus-lock`,$=G(_,(!r||T)&&`${_}--disabled`,i),S=function(){c&&c(),w(!0)};return b.useEffect(()=>{if(m.current){y.current||(y.current=new un(m.current));const C=y.current;l&&C.setDisableKey(l),C.capturePointerEvents=s,C.autoFocus=t,C.autoFocusReturn=o,C.active=r}return()=>{y.current&&(y.current.active=!1,w(!1))}},[]),b.useEffect(()=>{const C=y.current;return C&&C.addEventListener(ge.Escape,S),()=>{C&&C.removeEventListener(ge.Escape,S)}},[c,y.current]),b.useEffect(()=>{y.current&&(y.current.active=r),w(!1)},[r]),b.useEffect(()=>{y.current&&(y.current.autoFocus=t)},[t]),b.useEffect(()=>{y.current&&(y.current.autoFocusReturn=o)},[o]),b.useEffect(()=>{y.current&&y.current.setDisableKey(l)},[l]),b.useEffect(()=>{y.current&&(y.current.capturePointerEvents=s)},[s]),u.jsx("div",{ref:m,className:$,...v,children:d})},dn=fn;const ot=[],pn=e=>{const a=document.body;if(ot.push(!0),a.classList.toString().indexOf(`${e}prevent-scroll-y`)===-1){const r=window.pageYOffset||window.scrollY;a.setAttribute("data-skapa--scroll",r.toString());const t=a.style.paddingRight;a.setAttribute("data-skapa--pad",t);let l=a.clientWidth;a.classList.add(`${e}prevent-scroll-y`),l=a.clientWidth-l,a.style.top=`-${r}px`,l&&(a.style.paddingRight=`calc(${t||"0px"} + ${l}px)`),window.scrollTo(0,0)}},Ht=e=>{const a=document.body;if(ot.pop(),ot.length===0&&a.classList.toString().indexOf(`${e}prevent-scroll-y`)>-1){const r=Number(a.getAttribute("data-skapa--scroll")),t=a.getAttribute("data-skapa--pad");a.classList.remove(`${e}prevent-scroll-y`),a.style.paddingRight=t,window.scrollTo(0,r),a.style.top="",a.removeAttribute("data-skapa--scroll"),a.removeAttribute("data-skapa--pad"),a.style.length||a.removeAttribute("style")}return!0},Ut=(e,a)=>{e(!1),a(!0)},Kt=(e,a,r)=>{e(!0),a&&pn(r)},hn=(e,a,r,t,l,s)=>{(!e.target.closest||e.target.closest(`.${a}`)===e.currentTarget)&&r&&e.key==="Escape"&&(t&&t(e),Ut(l,s))},vn=(e,a,r)=>{a&&e.target===e.currentTarget&&r(e)},mn=(e,a,r,t,l,s,c,o,d)=>{cancelAnimationFrame(a),r?t&&(a=requestAnimationFrame(()=>{t(e)})):c&&(s&&Ht(d),o(!1),l&&(a=requestAnimationFrame(()=>{l(e)})))},yn=(e,a,r,t,l,s)=>{a!==t&&(a?Kt(l,r,e):Ut(l,s))};var bn=e=>{const{className:a,visible:r=!1,prefix:t="",children:l,handleCloseBtn:s,focusLockProps:c={},keepContentMounted:o=!1,escapable:d=!0,onModalClosed:i=()=>{},onModalOpened:v=()=>{},onKeyDown:m=()=>{},scrollLock:y=!0,...T}=e,[w,_]=b.useState(r),[$,S]=b.useState(!1),C=b.useRef(-1),P=`${t}modal-wrapper`;b.useEffect(()=>{yn(t,r,y,w,_,S)},[r]),b.useEffect(()=>(r&&Kt(_,y,t),()=>{y&&Ht(t),cancelAnimationFrame(C.current)}),[]);const F=G(P,w?`${P}--open`:`${P}--close`,a),f=G(`${P}__backdrop`,`${P}__backdrop--dark`),O=b.Children.map(l,te=>b.cloneElement(te,{open:w,closeBtnClick:s,prefix:t})),Z=te=>{m(te),hn(te,P,d,s,_,S)},Q=te=>{vn(te,d,s)},U=te=>{mn(te,C.current,w,v,i,y,$,S,t)};return u.jsxs("div",{...T,onKeyDown:Z,className:F,tabIndex:-1,children:[u.jsx("div",{className:f,onMouseDown:Q,onAnimationEnd:U}),(o||w||$)&&u.jsx(dn,{prefix:t,autoFocus:!0,onEscaped:s,locked:w,capturePointerEvents:!1,...c,children:O})]})},gn=bn;const Gt=b.forwardRef((e,a)=>{const{prefix:r="",children:t,text:l="",url:s="#",subtle:c,disabled:o=!1,button:d=!1,colour:i,className:v,onClick:m,newWindow:y=!1,ariaControls:T,...w}=e;function _(C){C.preventDefault()}const $=G(v,`${r}link`,i&&`${r}link--${i}`,c&&`${r}link--subtle`,o&&`${r}link--disabled`);let S=d?"button":void 0;return S=o?"link":S,u.jsxs("a",{ref:a,target:y?"_blank":void 0,...w,href:o?void 0:s,className:$,role:S,"aria-disabled":o&&`${o}`,"aria-controls":T||void 0,onClick:d&&o?_:m,children:[l,l&&t?" ":null,t]})});Gt.displayName="Hyperlink";var _n=Gt,xn=_n;const We=b.createContext({}),En=({children:e,shouldValidate:a,setCharacterCount:r,valid:t})=>u.jsx(We.Provider,{value:{shouldValidate:a,setCharacterCount:r,valid:t},children:e}),Cn=[{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 Tn=()=>se(Cn);const wn=[{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 $n=()=>se(wn);const Sn=[{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 jn=()=>se(Sn);const kn=e=>e===!0?"success":e===!1?"error":e==="warning"||e==="success"||e==="error"?e:"",Jt=e=>{const{prefix:a="",children:r,className:t,shouldValidate:l=!1,valid:s=!1,textOnly:c=!1,...o}=e,d=`${a}helper-text`,i=