dibk-design 9.3.5 → 9.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react");function Jt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const p=Jt(w);var Le={exports:{}},ye={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react");function Gt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const _=Gt(x);var Le={exports:{}},be={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ot;function Gt(){if(ot)return ye;ot=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,r,s){var c=null;if(s!==void 0&&(c=""+s),r.key!==void 0&&(c=""+r.key),"key"in r){s={};for(var u in r)u!=="key"&&(s[u]=r[u])}else s=r;return r=s.ref,{$$typeof:e,type:a,key:c,ref:r!==void 0?r:null,props:s}}return ye.Fragment=t,ye.jsx=n,ye.jsxs=n,ye}var xe={};/**
9
+ */var ot;function Kt(){if(ot)return be;ot=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,r,s){var c=null;if(s!==void 0&&(c=""+s),r.key!==void 0&&(c=""+r.key),"key"in r){s={};for(var u in r)u!=="key"&&(s[u]=r[u])}else s=r;return r=s.ref,{$$typeof:e,type:a,key:c,ref:r!==void 0?r:null,props:s}}return be.Fragment=t,be.jsx=n,be.jsxs=n,be}var we={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var lt;function Kt(){return lt||(lt=1,process.env.NODE_ENV!=="production"&&function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===I?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case y:return"Fragment";case f:return"Profiler";case C:return"StrictMode";case $:return"Suspense";case L:return"SuspenseList";case R:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case m:return"Portal";case b:return(_.displayName||"Context")+".Provider";case x:return(_._context.displayName||"Context")+".Consumer";case k:var j=_.render;return _=_.displayName,_||(_=j.displayName||j.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case z:return j=_.displayName||null,j!==null?j:e(_.type)||"Memo";case N:j=_._payload,_=_._init;try{return e(_(j))}catch{}}return null}function t(_){return""+_}function n(_){try{t(_);var j=!1}catch{j=!0}if(j){j=console;var B=j.error,q=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return B.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",q),t(_)}}function a(_){if(_===y)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===N)return"<...>";try{var j=e(_);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function r(){var _=H.A;return _===null?null:_.getOwner()}function s(){return Error("react-stack-top-frame")}function c(_){if(J.call(_,"key")){var j=Object.getOwnPropertyDescriptor(_,"key").get;if(j&&j.isReactWarning)return!1}return _.key!==void 0}function u(_,j){function B(){le||(le=!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)",j))}B.isReactWarning=!0,Object.defineProperty(_,"key",{get:B,configurable:!0})}function l(){var _=e(this.type);return E[_]||(E[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function i(_,j,B,q,te,W,De,Ae){return B=W.ref,_={$$typeof:v,type:_,key:j,props:W,_owner:te},(B!==void 0?B:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:l}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:De}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ae}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function d(_,j,B,q,te,W,De,Ae){var V=j.children;if(V!==void 0)if(q)if(S(V)){for(q=0;q<V.length;q++)g(V[q]);Object.freeze&&Object.freeze(V)}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 g(V);if(J.call(j,"key")){V=e(_);var ie=Object.keys(j).filter(function(Yt){return Yt!=="key"});q=0<ie.length?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}",X[V+q]||(ie=0<ie.length?"{"+ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var it;function Zt(){return it||(it=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===z?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case v:return"Fragment";case p:return"Profiler";case b:return"StrictMode";case L:return"Suspense";case S:return"SuspenseList";case k:return"Activity"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case f:return"Portal";case C:return(g.displayName||"Context")+".Provider";case w:return(g._context.displayName||"Context")+".Consumer";case $:var j=g.render;return g=g.displayName,g||(g=j.displayName||j.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case R:return j=g.displayName||null,j!==null?j:e(g.type)||"Memo";case N:j=g._payload,g=g._init;try{return e(g(j))}catch{}}return null}function t(g){return""+g}function n(g){try{t(g);var j=!1}catch{j=!0}if(j){j=console;var B=j.error,V=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return B.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",V),t(g)}}function a(g){if(g===v)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===N)return"<...>";try{var j=e(g);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function r(){var g=q.A;return g===null?null:g.getOwner()}function s(){return Error("react-stack-top-frame")}function c(g){if(W.call(g,"key")){var j=Object.getOwnPropertyDescriptor(g,"key").get;if(j&&j.isReactWarning)return!1}return g.key!==void 0}function u(g,j){function B(){E||(E=!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)",j))}B.isReactWarning=!0,Object.defineProperty(g,"key",{get:B,configurable:!0})}function i(){var g=e(this.type);return I[g]||(I[g]=!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.")),g=this.props.ref,g!==void 0?g:null}function l(g,j,B,V,re,J,Pe,Ae){return B=J.ref,g={$$typeof:y,type:g,key:j,props:J,_owner:re},(B!==void 0?B:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:i}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(g,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ae}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function d(g,j,B,V,re,J,Pe,Ae){var H=j.children;if(H!==void 0)if(V)if(M(H)){for(V=0;V<H.length;V++)m(H[V]);Object.freeze&&Object.freeze(H)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(H);if(W.call(j,"key")){H=e(g);var ue=Object.keys(j).filter(function(Jt){return Jt!=="key"});V=0<ue.length?"{key: someKey, "+ue.join(": ..., ")+": ...}":"{key: someKey}",ce[H+V]||(ue=0<ue.length?"{"+ue.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,q,V,ie,V),X[V+q]=!0)}if(V=null,B!==void 0&&(n(B),V=""+B),c(j)&&(n(j.key),V=""+j.key),"key"in j){B={};for(var Fe in j)Fe!=="key"&&(B[Fe]=j[Fe])}else B=j;return V&&u(B,typeof _=="function"?_.displayName||_.name||"Unknown":_),i(_,V,W,te,r(),B,De,Ae)}function g(_){typeof _=="object"&&_!==null&&_.$$typeof===v&&_._store&&(_._store.validated=1)}var h=w,v=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),b=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),I=Symbol.for("react.client.reference"),H=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,S=Array.isArray,T=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(_){return _()}};var le,E={},M=h["react-stack-bottom-frame"].bind(h,s)(),A=T(a(s)),X={};xe.Fragment=y,xe.jsx=function(_,j,B,q,te){var W=1e4>H.recentlyCreatedOwnerStacks++;return d(_,j,B,!1,q,te,W?Error("react-stack-top-frame"):M,W?T(a(_)):A)},xe.jsxs=function(_,j,B,q,te){var W=1e4>H.recentlyCreatedOwnerStacks++;return d(_,j,B,!0,q,te,W?Error("react-stack-top-frame"):M,W?T(a(_)):A)}}()),xe}var it;function Zt(){return it||(it=1,process.env.NODE_ENV==="production"?Le.exports=Gt():Le.exports=Kt()),Le.exports}var o=Zt();const P=e=>(e==null?void 0:e.filter(Boolean).join(" "))||"",Ct=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),Qt=e=>!(e!=null&&e.colors)||!Object.entries(e.colors).length?{}:Object.entries(e.colors).reduce((t,[n,a])=>(n&&a&&(t[`--color-${Ct(n)}`]=a),t),{}),en=e=>!(e!=null&&e.sizes)||!Object.entries(e.sizes).length?{}:Object.entries(e.sizes).reduce((t,[n,a])=>(n&&a&&(t[`--size-${Ct(n)}`]=a),t),{}),tn=e=>({...Qt(e),...en(e)}),nn=(e,t)=>{if(typeof document>"u")return;const n=document.createElement("style");n.setAttribute("id",e),n.textContent=t;const a=document.getElementById(e);a&&a.remove(),document.head.appendChild(n)},rn=e=>Object.entries(e).map(([t,n])=>`${t}: ${n};`).join(""),ge=e=>{const t=[];return w.Children.forEach(e,n=>{if(w.isValidElement(n)){const a=n;if(a.type===w.Fragment){const r=ge(a.props.children);t.push(...r)}else t.push(w.cloneElement(a,{...a.props}))}else t.push(n)}),t},an=e=>{if(typeof document>"u")return;const t=document.createElement("button");t.style.position="absolute",t.style.opacity="0",e.prepend(t),t.focus(),t.remove()},sn=e=>Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter(n=>!!n),Et=e=>{an(e);const t=sn(e),n=t[0],a=t[t.length-1]||n;n&&(n.onkeydown=r=>{r.key==="Tab"&&r.shiftKey&&(r.preventDefault(),a.focus())}),a&&(a.onclick=()=>{n==null||n.focus()},a.onkeydown=r=>{r.key==="Tab"&&!r.shiftKey&&(r.preventDefault(),n==null||n.focus())})},on="_accordion_kwqaf_67",ln="_panel_kwqaf_76",cn="_content_kwqaf_77",un="_secondary_kwqaf_80",dn="_info_kwqaf_88",hn="_contrast_kwqaf_96",mn="_margin_kwqaf_104",fn="_panelText_kwqaf_138",pn="_panelChevron_kwqaf_144",_n="_expanded_kwqaf_171",gn="_initialized_kwqaf_187",vn="_hide_kwqaf_1",yn="_show_kwqaf_1",U={accordion:on,default:"_default_kwqaf_73",panel:ln,content:cn,secondary:un,info:dn,contrast:hn,margin:mn,panelText:fn,panelChevron:pn,expanded:_n,initialized:gn,hide:vn,show:yn},xn=({title:e,color:t="default",expanded:n=!1,onToggleExpand:a,buttonProps:r,noMargin:s=!1,initialized:c,children:u,...l})=>{const[i,d]=w.useState(n),[g,h]=w.useState(c),v=()=>{d(!i),h(!0),a&&a()};w.useEffect(()=>{d(n)},[n]);const m=()=>o.jsxs("button",{...r,className:U.panel,onClick:v,"aria-expanded":i?"true":"false",children:[o.jsx("span",{className:U.panelText,children:e}),o.jsx("span",{className:`${U.panelChevron} ${i?U.expanded:""}`})]}),y=P([U.accordion,t&&U[t],!s&&U.margin,l.className]);return o.jsxs("div",{className:y,...l,children:[o.jsx(m,{}),o.jsx("div",{className:`${U.content} ${g?U.initialized:""} ${i?U.expanded:""}`,children:u})]})};var be={},ct;function bn(){if(ct)return be;ct=1,Object.defineProperty(be,"__esModule",{value:!0}),be.parse=c,be.serialize=i;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,r=Object.prototype.toString,s=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function c(h,v){const m=new s,y=h.length;if(y<2)return m;const C=(v==null?void 0:v.decode)||d;let f=0;do{const x=h.indexOf("=",f);if(x===-1)break;const b=h.indexOf(";",f),k=b===-1?y:b;if(x>k){f=h.lastIndexOf(";",x-1)+1;continue}const $=u(h,f,x),L=l(h,x,$),z=h.slice($,L);if(m[z]===void 0){let N=u(h,x+1,k),R=l(h,k,N);const I=C(h.slice(N,R));m[z]=I}f=k+1}while(f<y);return m}function u(h,v,m){do{const y=h.charCodeAt(v);if(y!==32&&y!==9)return v}while(++v<m);return m}function l(h,v,m){for(;v>m;){const y=h.charCodeAt(--v);if(y!==32&&y!==9)return v+1}return m}function i(h,v,m){const y=(m==null?void 0:m.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const C=y(v);if(!t.test(C))throw new TypeError(`argument val is invalid: ${v}`);let f=h+"="+C;if(!m)return f;if(m.maxAge!==void 0){if(!Number.isInteger(m.maxAge))throw new TypeError(`option maxAge is invalid: ${m.maxAge}`);f+="; Max-Age="+m.maxAge}if(m.domain){if(!n.test(m.domain))throw new TypeError(`option domain is invalid: ${m.domain}`);f+="; Domain="+m.domain}if(m.path){if(!a.test(m.path))throw new TypeError(`option path is invalid: ${m.path}`);f+="; Path="+m.path}if(m.expires){if(!g(m.expires)||!Number.isFinite(m.expires.valueOf()))throw new TypeError(`option expires is invalid: ${m.expires}`);f+="; Expires="+m.expires.toUTCString()}if(m.httpOnly&&(f+="; HttpOnly"),m.secure&&(f+="; Secure"),m.partitioned&&(f+="; Partitioned"),m.priority)switch(typeof m.priority=="string"?m.priority.toLowerCase():void 0){case"low":f+="; Priority=Low";break;case"medium":f+="; Priority=Medium";break;case"high":f+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${m.priority}`)}if(m.sameSite)switch(typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.sameSite){case!0:case"strict":f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"none":f+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${m.sameSite}`)}return f}function d(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function g(h){return r.call(h)==="[object Date]"}return be}bn();/**
22
+ <%s key={someKey} {...props} />`,V,H,ue,H),ce[H+V]=!0)}if(H=null,B!==void 0&&(n(B),H=""+B),c(j)&&(n(j.key),H=""+j.key),"key"in j){B={};for(var Fe in j)Fe!=="key"&&(B[Fe]=j[Fe])}else B=j;return H&&u(B,typeof g=="function"?g.displayName||g.name||"Unknown":g),l(g,H,J,re,r(),B,Pe,Ae)}function m(g){typeof g=="object"&&g!==null&&g.$$typeof===y&&g._store&&(g._store.validated=1)}var h=x,y=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),q=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,M=Array.isArray,P=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(g){return g()}};var E,I={},T=h["react-stack-bottom-frame"].bind(h,s)(),X=P(a(s)),ce={};we.Fragment=v,we.jsx=function(g,j,B,V,re){var J=1e4>q.recentlyCreatedOwnerStacks++;return d(g,j,B,!1,V,re,J?Error("react-stack-top-frame"):T,J?P(a(g)):X)},we.jsxs=function(g,j,B,V,re){var J=1e4>q.recentlyCreatedOwnerStacks++;return d(g,j,B,!0,V,re,J?Error("react-stack-top-frame"):T,J?P(a(g)):X)}}()),we}var lt;function Qt(){return lt||(lt=1,process.env.NODE_ENV==="production"?Le.exports=Kt():Le.exports=Zt()),Le.exports}var o=Qt();const D=e=>(e==null?void 0:e.filter(Boolean).join(" "))||"",Et=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),en=e=>!(e!=null&&e.colors)||!Object.entries(e.colors).length?{}:Object.entries(e.colors).reduce((t,[n,a])=>(n&&a&&(t[`--color-${Et(n)}`]=a),t),{}),tn=e=>!(e!=null&&e.sizes)||!Object.entries(e.sizes).length?{}:Object.entries(e.sizes).reduce((t,[n,a])=>(n&&a&&(t[`--size-${Et(n)}`]=a),t),{}),nn=e=>({...en(e),...tn(e)}),rn=(e,t)=>{if(typeof document>"u")return;const n=document.createElement("style");n.setAttribute("id",e),n.textContent=t;const a=document.getElementById(e);a&&a.remove(),document.head.appendChild(n)},an=e=>Object.entries(e).map(([t,n])=>`${t}: ${n};`).join(""),ye=e=>{const t=[];return x.Children.forEach(e,n=>{if(x.isValidElement(n)){const a=n;if(a.type===x.Fragment){const r=ye(a.props.children);t.push(...r)}else t.push(x.cloneElement(a,{...a.props}))}else t.push(n)}),t},sn=e=>{if(typeof document>"u")return;const t=document.createElement("button");t.style.position="absolute",t.style.opacity="0",e.prepend(t),t.focus(),t.remove()},on=e=>Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter(n=>!!n),kt=e=>{sn(e);const t=on(e),n=t[0],a=t[t.length-1]||n;n&&(n.onkeydown=r=>{r.key==="Tab"&&r.shiftKey&&(r.preventDefault(),a.focus())}),a&&(a.onclick=()=>{n==null||n.focus()},a.onkeydown=r=>{r.key==="Tab"&&!r.shiftKey&&(r.preventDefault(),n==null||n.focus())})},ln="_accordion_kwqaf_67",cn="_panel_kwqaf_76",un="_content_kwqaf_77",dn="_secondary_kwqaf_80",hn="_info_kwqaf_88",fn="_contrast_kwqaf_96",mn="_margin_kwqaf_104",pn="_panelText_kwqaf_138",_n="_panelChevron_kwqaf_144",gn="_expanded_kwqaf_171",vn="_initialized_kwqaf_187",yn="_hide_kwqaf_1",xn="_show_kwqaf_1",K={accordion:ln,default:"_default_kwqaf_73",panel:cn,content:un,secondary:dn,info:hn,contrast:fn,margin:mn,panelText:pn,panelChevron:_n,expanded:gn,initialized:vn,hide:yn,show:xn},bn=({title:e,buttonProps:t,expanded:n,handleToggleExpand:a})=>o.jsxs("button",{...t,className:K.panel,onClick:a,"aria-expanded":n?"true":"false",children:[o.jsx("span",{className:K.panelText,children:e}),o.jsx("span",{className:`${K.panelChevron} ${n?K.expanded:""}`})]}),wn=({title:e,color:t="default",expanded:n=!1,onToggleExpand:a,buttonProps:r,noMargin:s=!1,initialized:c,children:u,...i})=>{const[l,d]=x.useState(n),[m,h]=x.useState(c),y=()=>{d(!l),h(!0),a&&a()};x.useEffect(()=>{d(n)},[n]);const f=D([K.accordion,t&&K[t],!s&&K.margin,i.className]);return o.jsxs("div",{className:f,...i,children:[o.jsx(bn,{title:e??"",buttonProps:r??{},expanded:l??!1,handleToggleExpand:y}),o.jsx("div",{className:`${K.content} ${m?K.initialized:""} ${l?K.expanded:""}`,children:u})]})};var Ce={},ct;function Cn(){if(ct)return Ce;ct=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.parse=c,Ce.serialize=l;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,r=Object.prototype.toString,s=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function c(h,y){const f=new s,v=h.length;if(v<2)return f;const b=(y==null?void 0:y.decode)||d;let p=0;do{const w=h.indexOf("=",p);if(w===-1)break;const C=h.indexOf(";",p),$=C===-1?v:C;if(w>$){p=h.lastIndexOf(";",w-1)+1;continue}const L=u(h,p,w),S=i(h,w,L),R=h.slice(L,S);if(f[R]===void 0){let N=u(h,w+1,$),k=i(h,$,N);const z=b(h.slice(N,k));f[R]=z}p=$+1}while(p<v);return f}function u(h,y,f){do{const v=h.charCodeAt(y);if(v!==32&&v!==9)return y}while(++y<f);return f}function i(h,y,f){for(;y>f;){const v=h.charCodeAt(--y);if(v!==32&&v!==9)return y+1}return f}function l(h,y,f){const v=(f==null?void 0:f.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const b=v(y);if(!t.test(b))throw new TypeError(`argument val is invalid: ${y}`);let p=h+"="+b;if(!f)return p;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);p+="; Max-Age="+f.maxAge}if(f.domain){if(!n.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);p+="; Domain="+f.domain}if(f.path){if(!a.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);p+="; Path="+f.path}if(f.expires){if(!m(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);p+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(p+="; HttpOnly"),f.secure&&(p+="; Secure"),f.partitioned&&(p+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"none":p+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return p}function d(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function m(h){return r.call(h)==="[object Date]"}return Ce}Cn();/**
23
23
  * react-router v7.6.2
24
24
  *
25
25
  * Copyright (c) Remix Software Inc.
@@ -28,7 +28,7 @@ React keys must be passed directly to JSX without using spread:
28
28
  * LICENSE.md file in the root directory of this source tree.
29
29
  *
30
30
  * @license MIT
31
- */function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Z(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ye({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ke(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function kt(e,t,n="/"){return wn(e,t,n,!1)}function wn(e,t,n,a){let r=typeof t=="string"?Ke(t):t,s=re(r.pathname||"/",n);if(s==null)return null;let c=jt(e);Cn(c);let u=null;for(let l=0;u==null&&l<c.length;++l){let i=zn(s);u=Mn(c[l],i,a)}return u}function jt(e,t=[],n=[],a=""){let r=(s,c,u)=>{let l={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};l.relativePath.startsWith("/")&&(O(l.relativePath.startsWith(a),`Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(a.length));let i=K([a,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${i}".`),jt(s.children,t,d,i)),!(s.path==null&&!s.index)&&t.push({path:i,score:In(i,s.index),routesMeta:d})};return e.forEach((s,c)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))r(s,c);else for(let l of Lt(s.path))r(s,c,l)}),t}function Lt(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return r?[s,""]:[s];let c=Lt(a.join("/")),u=[];return u.push(...c.map(l=>l===""?s:[s,l].join("/"))),r&&u.push(...c),u.map(l=>e.startsWith("/")&&l===""?"/":l)}function Cn(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Rn(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var En=/^:[\w-]+$/,kn=3,jn=2,Ln=1,Sn=10,$n=-2,ut=e=>e==="*";function In(e,t){let n=e.split("/"),a=n.length;return n.some(ut)&&(a+=$n),t&&(a+=jn),n.filter(r=>!ut(r)).reduce((r,s)=>r+(En.test(s)?kn:s===""?Ln:Sn),a)}function Rn(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function Mn(e,t,n=!1){let{routesMeta:a}=e,r={},s="/",c=[];for(let u=0;u<a.length;++u){let l=a[u],i=u===a.length-1,d=s==="/"?t:t.slice(s.length)||"/",g=ze({path:l.relativePath,caseSensitive:l.caseSensitive,end:i},d),h=l.route;if(!g&&i&&n&&!a[a.length-1].route.index&&(g=ze({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!g)return null;Object.assign(r,g.params),c.push({params:r,pathname:K([s,g.pathname]),pathnameBase:Dn(K([s,g.pathnameBase])),route:h}),g.pathnameBase!=="/"&&(s=K([s,g.pathnameBase]))}return c}function ze(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=Nn(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let s=r[0],c=s.replace(/(.)\/+$/,"$1"),u=r.slice(1);return{params:a.reduce((i,{paramName:d,isOptional:g},h)=>{if(d==="*"){let m=u[h]||"";c=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const v=u[h];return g&&!v?i[d]=void 0:i[d]=(v||"").replace(/%2F/g,"/"),i},{}),pathname:s,pathnameBase:c,pattern:e}}function Nn(e,t=!1,n=!0){Z(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,l)=>(a.push({paramName:u,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function zn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Z(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function re(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function Tn(e,t="/"){let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?Ke(e):e;return{pathname:n?n.startsWith("/")?n:Bn(n,t):t,search:An(a),hash:Fn(r)}}function Bn(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Oe(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Pn(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function St(e){let t=Pn(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function $t(e,t,n,a=!1){let r;typeof e=="string"?r=Ke(e):(r={...e},O(!r.pathname||!r.pathname.includes("?"),Oe("?","pathname","search",r)),O(!r.pathname||!r.pathname.includes("#"),Oe("#","pathname","hash",r)),O(!r.search||!r.search.includes("#"),Oe("#","search","hash",r)));let s=e===""||r.pathname==="",c=s?"/":r.pathname,u;if(c==null)u=n;else{let g=t.length-1;if(!a&&c.startsWith("..")){let h=c.split("/");for(;h[0]==="..";)h.shift(),g-=1;r.pathname=h.join("/")}u=g>=0?t[g]:"/"}let l=Tn(r,u),i=c&&c!=="/"&&c.endsWith("/"),d=(s||c===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(i||d)&&(l.pathname+="/"),l}var K=e=>e.join("/").replace(/\/\/+/g,"/"),Dn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),An=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Fn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function On(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var It=["POST","PUT","PATCH","DELETE"];new Set(It);var qn=["GET",...It];new Set(qn);var ve=p.createContext(null);ve.displayName="DataRouter";var Te=p.createContext(null);Te.displayName="DataRouterState";var Rt=p.createContext({isTransitioning:!1});Rt.displayName="ViewTransition";var Vn=p.createContext(new Map);Vn.displayName="Fetchers";var Hn=p.createContext(null);Hn.displayName="Await";var Q=p.createContext(null);Q.displayName="Navigation";var Ze=p.createContext(null);Ze.displayName="Location";var ee=p.createContext({outlet:null,matches:[],isDataRoute:!1});ee.displayName="Route";var Qe=p.createContext(null);Qe.displayName="RouteError";function Xn(e,{relative:t}={}){O(Be(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=p.useContext(Q),{hash:r,pathname:s,search:c}=ke(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:K([n,s])),a.createHref({pathname:u,search:c,hash:r})}function Be(){return p.useContext(Ze)!=null}function oe(){return O(Be(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Ze).location}var Mt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nt(e){p.useContext(Q).static||p.useLayoutEffect(e)}function Wn(){let{isDataRoute:e}=p.useContext(ee);return e?sr():Un()}function Un(){O(Be(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(ve),{basename:t,navigator:n}=p.useContext(Q),{matches:a}=p.useContext(ee),{pathname:r}=oe(),s=JSON.stringify(St(a)),c=p.useRef(!1);return Nt(()=>{c.current=!0}),p.useCallback((l,i={})=>{if(Z(c.current,Mt),!c.current)return;if(typeof l=="number"){n.go(l);return}let d=$t(l,JSON.parse(s),r,i.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:K([t,d.pathname])),(i.replace?n.replace:n.push)(d,i.state,i)},[t,n,s,r,e])}p.createContext(null);function ke(e,{relative:t}={}){let{matches:n}=p.useContext(ee),{pathname:a}=oe(),r=JSON.stringify(St(n));return p.useMemo(()=>$t(e,JSON.parse(r),a,t==="path"),[e,r,a,t])}function Yn(e,t,n,a){O(Be(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=p.useContext(Q),{matches:s}=p.useContext(ee),c=s[s.length-1],u=c?c.params:{},l=c?c.pathname:"/",i=c?c.pathnameBase:"/",d=c&&c.route;{let f=d&&d.path||"";zt(l,!d||f.endsWith("*")||f.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${f}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
31
+ */function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Q(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ye({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ke(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function jt(e,t,n="/"){return En(e,t,n,!1)}function En(e,t,n,a){let r=typeof t=="string"?Ke(t):t,s=oe(r.pathname||"/",n);if(s==null)return null;let c=Lt(e);kn(c);let u=null;for(let i=0;u==null&&i<c.length;++i){let l=Bn(s);u=Tn(c[i],l,a)}return u}function Lt(e,t=[],n=[],a=""){let r=(s,c,u)=>{let i={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};i.relativePath.startsWith("/")&&(O(i.relativePath.startsWith(a),`Absolute route path "${i.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(a.length));let l=Z([a,i.relativePath]),d=n.concat(i);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Lt(s.children,t,d,l)),!(s.path==null&&!s.index)&&t.push({path:l,score:Rn(l,s.index),routesMeta:d})};return e.forEach((s,c)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))r(s,c);else for(let i of St(s.path))r(s,c,i)}),t}function St(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return r?[s,""]:[s];let c=St(a.join("/")),u=[];return u.push(...c.map(i=>i===""?s:[s,i].join("/"))),r&&u.push(...c),u.map(i=>e.startsWith("/")&&i===""?"/":i)}function kn(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Mn(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var jn=/^:[\w-]+$/,Ln=3,Sn=2,$n=1,In=10,Nn=-2,ut=e=>e==="*";function Rn(e,t){let n=e.split("/"),a=n.length;return n.some(ut)&&(a+=Nn),t&&(a+=Sn),n.filter(r=>!ut(r)).reduce((r,s)=>r+(jn.test(s)?Ln:s===""?$n:In),a)}function Mn(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function Tn(e,t,n=!1){let{routesMeta:a}=e,r={},s="/",c=[];for(let u=0;u<a.length;++u){let i=a[u],l=u===a.length-1,d=s==="/"?t:t.slice(s.length)||"/",m=Te({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},d),h=i.route;if(!m&&l&&n&&!a[a.length-1].route.index&&(m=Te({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},d)),!m)return null;Object.assign(r,m.params),c.push({params:r,pathname:Z([s,m.pathname]),pathnameBase:Fn(Z([s,m.pathnameBase])),route:h}),m.pathnameBase!=="/"&&(s=Z([s,m.pathnameBase]))}return c}function Te(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=zn(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let s=r[0],c=s.replace(/(.)\/+$/,"$1"),u=r.slice(1);return{params:a.reduce((l,{paramName:d,isOptional:m},h)=>{if(d==="*"){let f=u[h]||"";c=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const y=u[h];return m&&!y?l[d]=void 0:l[d]=(y||"").replace(/%2F/g,"/"),l},{}),pathname:s,pathnameBase:c,pattern:e}}function zn(e,t=!1,n=!0){Q(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,i)=>(a.push({paramName:u,isOptional:i!=null}),i?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function Bn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Q(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function oe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function Dn(e,t="/"){let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?Ke(e):e;return{pathname:n?n.startsWith("/")?n:Pn(n,t):t,search:On(a),hash:Vn(r)}}function Pn(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Oe(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function An(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $t(e){let t=An(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function It(e,t,n,a=!1){let r;typeof e=="string"?r=Ke(e):(r={...e},O(!r.pathname||!r.pathname.includes("?"),Oe("?","pathname","search",r)),O(!r.pathname||!r.pathname.includes("#"),Oe("#","pathname","hash",r)),O(!r.search||!r.search.includes("#"),Oe("#","search","hash",r)));let s=e===""||r.pathname==="",c=s?"/":r.pathname,u;if(c==null)u=n;else{let m=t.length-1;if(!a&&c.startsWith("..")){let h=c.split("/");for(;h[0]==="..";)h.shift(),m-=1;r.pathname=h.join("/")}u=m>=0?t[m]:"/"}let i=Dn(r,u),l=c&&c!=="/"&&c.endsWith("/"),d=(s||c===".")&&n.endsWith("/");return!i.pathname.endsWith("/")&&(l||d)&&(i.pathname+="/"),i}var Z=e=>e.join("/").replace(/\/\/+/g,"/"),Fn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),On=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Vn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Hn(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Nt=["POST","PUT","PATCH","DELETE"];new Set(Nt);var qn=["GET",...Nt];new Set(qn);var xe=_.createContext(null);xe.displayName="DataRouter";var ze=_.createContext(null);ze.displayName="DataRouterState";var Rt=_.createContext({isTransitioning:!1});Rt.displayName="ViewTransition";var Xn=_.createContext(new Map);Xn.displayName="Fetchers";var Wn=_.createContext(null);Wn.displayName="Await";var te=_.createContext(null);te.displayName="Navigation";var Ze=_.createContext(null);Ze.displayName="Location";var ne=_.createContext({outlet:null,matches:[],isDataRoute:!1});ne.displayName="Route";var Qe=_.createContext(null);Qe.displayName="RouteError";function Un(e,{relative:t}={}){O(Be(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=_.useContext(te),{hash:r,pathname:s,search:c}=je(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:Z([n,s])),a.createHref({pathname:u,search:c,hash:r})}function Be(){return _.useContext(Ze)!=null}function le(){return O(Be(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Ze).location}var Mt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tt(e){_.useContext(te).static||_.useLayoutEffect(e)}function Yn(){let{isDataRoute:e}=_.useContext(ne);return e?ir():Jn()}function Jn(){O(Be(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(xe),{basename:t,navigator:n}=_.useContext(te),{matches:a}=_.useContext(ne),{pathname:r}=le(),s=JSON.stringify($t(a)),c=_.useRef(!1);return Tt(()=>{c.current=!0}),_.useCallback((i,l={})=>{if(Q(c.current,Mt),!c.current)return;if(typeof i=="number"){n.go(i);return}let d=It(i,JSON.parse(s),r,l.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Z([t,d.pathname])),(l.replace?n.replace:n.push)(d,l.state,l)},[t,n,s,r,e])}_.createContext(null);function je(e,{relative:t}={}){let{matches:n}=_.useContext(ne),{pathname:a}=le(),r=JSON.stringify($t(n));return _.useMemo(()=>It(e,JSON.parse(r),a,t==="path"),[e,r,a,t])}function Gn(e,t,n,a){O(Be(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=_.useContext(te),{matches:s}=_.useContext(ne),c=s[s.length-1],u=c?c.params:{},i=c?c.pathname:"/",l=c?c.pathnameBase:"/",d=c&&c.route;{let p=d&&d.path||"";zt(i,!d||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${i}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
32
32
 
33
- Please change the parent <Route path="${f}"> to <Route path="${f==="/"?"*":`${f}/*`}">.`)}let g=oe(),h;h=g;let v=h.pathname||"/",m=v;if(i!=="/"){let f=i.replace(/^\//,"").split("/");m="/"+v.replace(/^\//,"").split("/").slice(f.length).join("/")}let y=kt(e,{pathname:m});return Z(d||y!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Z(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Qn(y&&y.map(f=>Object.assign({},f,{params:Object.assign({},u,f.params),pathname:K([i,r.encodeLocation?r.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?i:K([i,r.encodeLocation?r.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),s,n,a)}function Jn(){let e=ar(),t=On(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:s},"ErrorBoundary")," or"," ",p.createElement("code",{style:s},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:r},n):null,c)}var Gn=p.createElement(Jn,null),Kn=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?p.createElement(ee.Provider,{value:this.props.routeContext},p.createElement(Qe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Zn({routeContext:e,match:t,children:n}){let a=p.useContext(ve);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(ee.Provider,{value:e},n)}function Qn(e,t=[],n=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let r=e,s=n==null?void 0:n.errors;if(s!=null){let l=r.findIndex(i=>i.route.id&&(s==null?void 0:s[i.route.id])!==void 0);O(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),r=r.slice(0,Math.min(r.length,l+1))}let c=!1,u=-1;if(n)for(let l=0;l<r.length;l++){let i=r[l];if((i.route.HydrateFallback||i.route.hydrateFallbackElement)&&(u=l),i.route.id){let{loaderData:d,errors:g}=n,h=i.route.loader&&!d.hasOwnProperty(i.route.id)&&(!g||g[i.route.id]===void 0);if(i.route.lazy||h){c=!0,u>=0?r=r.slice(0,u+1):r=[r[0]];break}}}return r.reduceRight((l,i,d)=>{let g,h=!1,v=null,m=null;n&&(g=s&&i.route.id?s[i.route.id]:void 0,v=i.route.errorElement||Gn,c&&(u<0&&d===0?(zt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,m=null):u===d&&(h=!0,m=i.route.hydrateFallbackElement||null)));let y=t.concat(r.slice(0,d+1)),C=()=>{let f;return g?f=v:h?f=m:i.route.Component?f=p.createElement(i.route.Component,null):i.route.element?f=i.route.element:f=l,p.createElement(Zn,{match:i,routeContext:{outlet:l,matches:y,isDataRoute:n!=null},children:f})};return n&&(i.route.ErrorBoundary||i.route.errorElement||d===0)?p.createElement(Kn,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:C(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):C()},null)}function et(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function er(e){let t=p.useContext(ve);return O(t,et(e)),t}function tr(e){let t=p.useContext(Te);return O(t,et(e)),t}function nr(e){let t=p.useContext(ee);return O(t,et(e)),t}function tt(e){let t=nr(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rr(){return tt("useRouteId")}function ar(){var a;let e=p.useContext(Qe),t=tr("useRouteError"),n=tt("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function sr(){let{router:e}=er("useNavigate"),t=tt("useNavigate"),n=p.useRef(!1);return Nt(()=>{n.current=!0}),p.useCallback(async(r,s={})=>{Z(n.current,Mt),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...s}))},[e,t])}var dt={};function zt(e,t,n){!t&&!dt[e]&&(dt[e]=!0,Z(!1,n))}p.memo(or);function or({routes:e,future:t,state:n}){return Yn(e,void 0,n,t)}var Me="get",Ne="application/x-www-form-urlencoded";function Pe(e){return e!=null&&typeof e.tagName=="string"}function lr(e){return Pe(e)&&e.tagName.toLowerCase()==="button"}function ir(e){return Pe(e)&&e.tagName.toLowerCase()==="form"}function cr(e){return Pe(e)&&e.tagName.toLowerCase()==="input"}function ur(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dr(e,t){return e.button===0&&(!t||t==="_self")&&!ur(e)}var Se=null;function hr(){if(Se===null)try{new FormData(document.createElement("form"),0),Se=!1}catch{Se=!0}return Se}var mr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qe(e){return e!=null&&!mr.has(e)?(Z(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ne}"`),null):e}function fr(e,t){let n,a,r,s,c;if(ir(e)){let u=e.getAttribute("action");a=u?re(u,t):null,n=e.getAttribute("method")||Me,r=qe(e.getAttribute("enctype"))||Ne,s=new FormData(e)}else if(lr(e)||cr(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||u.getAttribute("action");if(a=l?re(l,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Me,r=qe(e.getAttribute("formenctype"))||qe(u.getAttribute("enctype"))||Ne,s=new FormData(u,e),!hr()){let{name:i,type:d,value:g}=e;if(d==="image"){let h=i?`${i}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else i&&s.append(i,g)}}else{if(Pe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Me,a=null,r=Ne,c=e}return s&&r==="text/plain"&&(c=s,s=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:s,body:c}}function nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function pr(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _r(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function gr(e,t,n){let a=await Promise.all(e.map(async r=>{let s=t.routes[r.route.id];if(s){let c=await pr(s,n);return c.links?c.links():[]}return[]}));return br(a.flat(1).filter(_r).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function ht(e,t,n,a,r,s){let c=(l,i)=>n[i]?l.route.id!==n[i].route.id:!0,u=(l,i)=>{var d;return n[i].pathname!==l.pathname||((d=n[i].route.path)==null?void 0:d.endsWith("*"))&&n[i].params["*"]!==l.params["*"]};return s==="assets"?t.filter((l,i)=>c(l,i)||u(l,i)):s==="data"?t.filter((l,i)=>{var g;let d=a.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(c(l,i)||u(l,i))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function vr(e,t,{includeHydrateFallback:n}={}){return yr(e.map(a=>{let r=t.routes[a.route.id];if(!r)return[];let s=[r.module];return r.clientActionModule&&(s=s.concat(r.clientActionModule)),r.clientLoaderModule&&(s=s.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(s=s.concat(r.hydrateFallbackModule)),r.imports&&(s=s.concat(r.imports)),s}).flat(1))}function yr(e){return[...new Set(e)]}function xr(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function br(e,t){let n=new Set;return new Set(t),e.reduce((a,r)=>{let s=JSON.stringify(xr(r));return n.has(s)||(n.add(s),a.push({key:s,link:r})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wr=new Set([100,101,204,205]);function Cr(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&re(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function Tt(){let e=p.useContext(ve);return nt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Er(){let e=p.useContext(Te);return nt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var rt=p.createContext(void 0);rt.displayName="FrameworkContext";function Bt(){let e=p.useContext(rt);return nt(e,"You must render this element inside a <HydratedRouter> element"),e}function kr(e,t){let n=p.useContext(rt),[a,r]=p.useState(!1),[s,c]=p.useState(!1),{onFocus:u,onBlur:l,onMouseEnter:i,onMouseLeave:d,onTouchStart:g}=t,h=p.useRef(null);p.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let y=f=>{f.forEach(x=>{c(x.isIntersecting)})},C=new IntersectionObserver(y,{threshold:.5});return h.current&&C.observe(h.current),()=>{C.disconnect()}}},[e]),p.useEffect(()=>{if(a){let y=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(y)}}},[a]);let v=()=>{r(!0)},m=()=>{r(!1),c(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:we(u,v),onBlur:we(l,m),onMouseEnter:we(i,v),onMouseLeave:we(d,m),onTouchStart:we(g,v)}]:[!1,h,{}]}function we(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function jr({page:e,...t}){let{router:n}=Tt(),a=p.useMemo(()=>kt(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?p.createElement(Sr,{page:e,matches:a,...t}):null}function Lr(e){let{manifest:t,routeModules:n}=Bt(),[a,r]=p.useState([]);return p.useEffect(()=>{let s=!1;return gr(e,t,n).then(c=>{s||r(c)}),()=>{s=!0}},[e,t,n]),a}function Sr({page:e,matches:t,...n}){let a=oe(),{manifest:r,routeModules:s}=Bt(),{basename:c}=Tt(),{loaderData:u,matches:l}=Er(),i=p.useMemo(()=>ht(e,t,l,r,a,"data"),[e,t,l,r,a]),d=p.useMemo(()=>ht(e,t,l,r,a,"assets"),[e,t,l,r,a]),g=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let m=new Set,y=!1;if(t.forEach(f=>{var b;let x=r.routes[f.route.id];!x||!x.hasLoader||(!i.some(k=>k.route.id===f.route.id)&&f.route.id in u&&((b=s[f.route.id])!=null&&b.shouldRevalidate)||x.hasClientLoader?y=!0:m.add(f.route.id))}),m.size===0)return[];let C=Cr(e,c);return y&&m.size>0&&C.searchParams.set("_routes",t.filter(f=>m.has(f.route.id)).map(f=>f.route.id).join(",")),[C.pathname+C.search]},[c,u,a,r,i,t,e,s]),h=p.useMemo(()=>vr(d,r),[d,r]),v=Lr(d);return p.createElement(p.Fragment,null,g.map(m=>p.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),h.map(m=>p.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),v.map(({key:m,link:y})=>p.createElement("link",{key:m,...y})))}function $r(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Pt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Pt&&(window.__reactRouterVersion="7.6.2")}catch{}var Dt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ce=p.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:r,reloadDocument:s,replace:c,state:u,target:l,to:i,preventScrollReset:d,viewTransition:g,...h},v){let{basename:m}=p.useContext(Q),y=typeof i=="string"&&Dt.test(i),C,f=!1;if(typeof i=="string"&&y&&(C=i,Pt))try{let R=new URL(window.location.href),I=i.startsWith("//")?new URL(R.protocol+i):new URL(i),H=re(I.pathname,m);I.origin===R.origin&&H!=null?i=H+I.search+I.hash:f=!0}catch{Z(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=Xn(i,{relative:r}),[b,k,$]=kr(a,h),L=Nr(i,{replace:c,state:u,target:l,preventScrollReset:d,relative:r,viewTransition:g});function z(R){t&&t(R),R.defaultPrevented||L(R)}let N=p.createElement("a",{...h,...$,href:C||x,onClick:f||s?t:z,ref:$r(v,k),target:l,"data-discover":!y&&n==="render"?"true":void 0});return b&&!y?p.createElement(p.Fragment,null,N,p.createElement(jr,{page:x})):N});Ce.displayName="Link";var Ir=p.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:r=!1,style:s,to:c,viewTransition:u,children:l,...i},d){let g=ke(c,{relative:i.relative}),h=oe(),v=p.useContext(Te),{navigator:m,basename:y}=p.useContext(Q),C=v!=null&&Dr(g)&&u===!0,f=m.encodeLocation?m.encodeLocation(g).pathname:g.pathname,x=h.pathname,b=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(x=x.toLowerCase(),b=b?b.toLowerCase():null,f=f.toLowerCase()),b&&y&&(b=re(b,y)||b);const k=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let $=x===f||!r&&x.startsWith(f)&&x.charAt(k)==="/",L=b!=null&&(b===f||!r&&b.startsWith(f)&&b.charAt(f.length)==="/"),z={isActive:$,isPending:L,isTransitioning:C},N=$?t:void 0,R;typeof a=="function"?R=a(z):R=[a,$?"active":null,L?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let I=typeof s=="function"?s(z):s;return p.createElement(Ce,{...i,"aria-current":N,className:R,ref:d,style:I,to:c,viewTransition:u},typeof l=="function"?l(z):l)});Ir.displayName="NavLink";var Rr=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:r,state:s,method:c=Me,action:u,onSubmit:l,relative:i,preventScrollReset:d,viewTransition:g,...h},v)=>{let m=Br(),y=Pr(u,{relative:i}),C=c.toLowerCase()==="get"?"get":"post",f=typeof u=="string"&&Dt.test(u),x=b=>{if(l&&l(b),b.defaultPrevented)return;b.preventDefault();let k=b.nativeEvent.submitter,$=(k==null?void 0:k.getAttribute("formmethod"))||c;m(k||b.currentTarget,{fetcherKey:t,method:$,navigate:n,replace:r,state:s,relative:i,preventScrollReset:d,viewTransition:g})};return p.createElement("form",{ref:v,method:C,action:y,onSubmit:a?l:x,...h,"data-discover":!f&&e==="render"?"true":void 0})});Rr.displayName="Form";function Mr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function At(e){let t=p.useContext(ve);return O(t,Mr(e)),t}function Nr(e,{target:t,replace:n,state:a,preventScrollReset:r,relative:s,viewTransition:c}={}){let u=Wn(),l=oe(),i=ke(e,{relative:s});return p.useCallback(d=>{if(dr(d,t)){d.preventDefault();let g=n!==void 0?n:Ye(l)===Ye(i);u(e,{replace:g,state:a,preventScrollReset:r,relative:s,viewTransition:c})}},[l,u,i,n,a,t,e,r,s,c])}var zr=0,Tr=()=>`__${String(++zr)}__`;function Br(){let{router:e}=At("useSubmit"),{basename:t}=p.useContext(Q),n=rr();return p.useCallback(async(a,r={})=>{let{action:s,method:c,encType:u,formData:l,body:i}=fr(a,t);if(r.navigate===!1){let d=r.fetcherKey||Tr();await e.fetch(d,n,r.action||s,{preventScrollReset:r.preventScrollReset,formData:l,body:i,formMethod:r.method||c,formEncType:r.encType||u,flushSync:r.flushSync})}else await e.navigate(r.action||s,{preventScrollReset:r.preventScrollReset,formData:l,body:i,formMethod:r.method||c,formEncType:r.encType||u,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}function Pr(e,{relative:t}={}){let{basename:n}=p.useContext(Q),a=p.useContext(ee);O(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),s={...ke(e||".",{relative:t})},c=oe();if(e==null){s.search=c.search;let u=new URLSearchParams(s.search),l=u.getAll("index");if(l.some(d=>d==="")){u.delete("index"),l.filter(g=>g).forEach(g=>u.append("index",g));let d=u.toString();s.search=d?`?${d}`:""}}return(!e||e===".")&&r.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:K([n,s.pathname])),Ye(s)}function Dr(e,t={}){let n=p.useContext(Rt);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=At("useViewTransitionState"),r=ke(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=re(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=re(n.nextLocation.pathname,a)||n.nextLocation.pathname;return ze(r.pathname,c)!=null||ze(r.pathname,s)!=null}[...wr];const Ar="_button_1jbpj_161",Fr="_noMargin_1jbpj_189",Or="_regular_1jbpj_199",qr="_small_1jbpj_202",Vr="_primary_1jbpj_213",Hr="_noHover_1jbpj_217",Xr="_secondary_1jbpj_233",Wr="_disabled_1jbpj_252",Ur="_hasErrors_1jbpj_272",Yr="_rounded_1jbpj_278",Jr="_hasArrowLeft_1jbpj_282",Gr="_pushprev_1jbpj_1",Kr="_hasArrowRight_1jbpj_320",Zr="_pushnext_1jbpj_1",Qr="_hasIcon_1jbpj_358",ea="_buttonContent_1jbpj_362",F={button:Ar,noMargin:Fr,regular:Or,small:qr,primary:Vr,noHover:Hr,secondary:Xr,disabled:Wr,hasErrors:Ur,rounded:Yr,hasArrowLeft:Jr,pushprev:Gr,hasArrowRight:Kr,pushnext:Zr,hasIcon:Qr,buttonContent:ea},at=({content:e,color:t="primary",size:n="regular",arrow:a="none",disabled:r=!1,inputType:s,defaultChecked:c,hasErrors:u=!1,noHover:l=!1,rounded:i=!1,noMargin:d=!1,href:g,children:h,iconLeft:v,iconRight:m,...y})=>{const C=L=>{switch(L){case"left":return F.hasArrowLeft;case"right":return F.hasArrowRight;default:return""}},f=s==="radio"?c?"primary":"secondary":t,x=P([F.button,F[f],F[n],C(a),l||s==="radio"?F.noHover:null,i&&F.rounded,u&&F.hasErrors,r?F.disabled:null,d?F.noMargin:null,v||m?F.hasIcon:null]),b={"aria-invalid":u||void 0,href:!r&&(g!=null&&g.length)?g:void 0,className:x,...y},k=L=>w.Children.toArray(ge(L)).map((N,R)=>{if(!w.isValidElement(N))return null;const I=N,H=I.type===Ce&&typeof I.props=="object"&&I.props!==null&&"to"in I.props;return!r&&H?w.cloneElement(I,{className:x,key:`button-${R}`,to:I.props.to},v,o.jsx("span",{className:F.buttonContent,children:I.props.children}),m):w.createElement("button",{...b,key:`button-${R}`},v,o.jsx("span",{className:F.buttonContent,children:e||I.props&&I.props.children}),m)});if(s==="button")return o.jsxs("button",{type:"button",...b,children:[v,o.jsx("span",{className:F.buttonContent,children:e||h}),m]});if(s==="radio"){const L={...b};return delete L.href,o.jsxs("label",{className:x,children:[o.jsx("input",{...L,type:"radio"}),v,o.jsx("span",{className:F.buttonContent,children:e}),m]})}if(g!=null&&g.length&&!r){const L={...b};return"type"in L&&delete L.type,o.jsxs("a",{...L,children:[v,o.jsx("span",{className:F.buttonContent,children:e||h}),m]})}return w.isValidElement(h)&&h.type===Ce?o.jsx(w.Fragment,{children:k(w.Children.toArray(h))}):o.jsxs("button",{...b,children:[v,o.jsx("span",{className:F.buttonContent,children:e||h}),m]})},ta="_checkBoxIcon_1kc3w_1",na="_showBox_1kc3w_22",ra="_hasErrors_1kc3w_27",aa="_checked_1kc3w_37",sa="_disabled_1kc3w_53",oa="_checkmark_1kc3w_58",ce={checkBoxIcon:ta,showBox:na,hasErrors:ra,checked:aa,disabled:sa,checkmark:oa},Je=({size:e="20px",checked:t=!1,disabled:n=!1,showBox:a=!0,hasErrors:r=!1,checkmarkCharacter:s="✔"})=>{const c={height:e,width:e,fontSize:e},u=[ce.checkBoxIcon,t&&ce.checked,n&&ce.disabled,a&&ce.showBox,r&&ce.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:u,style:c,children:o.jsx("span",{"aria-hidden":!0,className:ce.checkmark,children:t?s:""})})},ae="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32.275'%20height='30.469'%20focusable='false'%3e%3cpath%20fill='%239d2024'%20d='m0%2014.355%202.246-6.933c5.176%201.823%208.936%203.402%2011.28%204.736-.62-5.892-.945-9.944-.977-12.158h7.08c-.098%203.223-.472%207.26-1.123%2012.11%203.353-1.693%207.194-3.256%2011.523-4.688l2.246%206.933c-4.134%201.368-8.186%202.28-12.158%202.735%201.986%201.725%204.785%204.801%208.399%209.228l-5.86%204.15c-1.888-2.57-4.118-6.07-6.69-10.497-2.408%204.59-4.524%208.089-6.347%2010.498l-5.762-4.15c3.776-4.656%206.478-7.732%208.106-9.23-4.2-.813-8.187-1.724-11.963-2.734'/%3e%3c/svg%3e",la="_checkBoxInput_f1w9m_1",ia="_requiredSymbol_f1w9m_6",ca="_contentOnly_f1w9m_13",ua="_disabled_f1w9m_13",da="_labelText_f1w9m_19",ha="_hasErrors_f1w9m_27",ue={checkBoxInput:la,requiredSymbol:ia,contentOnly:ca,disabled:ua,labelText:da,hasErrors:ha},Ft=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:u=!1,hasErrors:l=!1,checkmarkCharacter:i="✔",tabIndex:d=0,children:g,"aria-controls":h,"aria-describedby":v,value:m})=>{const y=[ue.checkBoxInput,u&&ue.contentOnly,t&&ue.disabled,l&&ue.hasErrors].filter(Boolean).join(" "),C={checked:e,disabled:t,showBox:!u,hasErrors:u&&l,checkmarkCharacter:i},f={id:r,name:s,type:"checkbox",checked:e,disabled:t,required:n||a,onChange:c,tabIndex:d,"aria-controls":h,"aria-invalid":l?"true":void 0,"aria-describedby":v,value:m};return o.jsxs("label",{htmlFor:r,className:y,children:[u?o.jsx(Je,{...C}):o.jsxs(o.Fragment,{children:[o.jsx(Je,{...C}),o.jsx("input",{...f})]}),o.jsxs("span",{className:ue.labelText,children:[g,n&&o.jsx("img",{src:ae,alt:"",className:ue.requiredSymbol})]})]})},ma="_checkBoxList_1sp8d_1",fa="_requiredSymbol_1sp8d_16",mt={checkBoxList:ma,requiredSymbol:fa},pa="_headerContainer_t2si7_1",_a="_header_t2si7_1",ga="_bigHeader_t2si7_16",$e={headerContainer:pa,header:_a,"size-1":"_size-1_t2si7_8",bigHeader:ga,"size-2":"_size-2_t2si7_28","size-3":"_size-3_t2si7_36","size-4":"_size-4_t2si7_44","size-5":"_size-5_t2si7_52"},st=({id:e,content:t,size:n=1,big:a,label:r,htmlTag:s,htmlFor:c,children:u})=>{const l=s||`h${n}`,i=P([$e.header,$e[`size-${n}`],a&&$e.bigHeader]),d=r!=null&&r.length&&typeof r=="string"?{"--label":`"${r}"`}:void 0,g=w.createElement(l,{className:i,id:e||void 0,htmlFor:c||void 0,style:d},t!=null&&t.length?t:u);return o.jsx("div",{className:$e.headerContainer,children:g})},Ot=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>ge(c).map((l,i)=>{var d;return w.isValidElement(l)&&((d=l.type)==null?void 0:d.displayName)==="RadioButtonListItem"?w.cloneElement(l,{requiredGroup:n,compact:a,key:`checkboxListItem-${i}`}):l});return o.jsxs("fieldset",{className:mt.checkBoxList,children:[!!(e!=null&&e.length)&&o.jsxs("legend",{children:[t?o.jsx(st,{size:t,children:e}):e,n&&o.jsx("img",{src:ae,alt:"",className:mt.requiredSymbol})]}),s(w.Children.toArray(r))]})},va="_checkBoxListItem_jnb8z_1",ya="_contentOnly_jnb8z_26",xa="_compact_jnb8z_26",ba="_disabled_jnb8z_41",wa="_checked_jnb8z_44",de={checkBoxListItem:va,contentOnly:ya,compact:xa,disabled:ba,checked:wa},qt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:u=!1,compact:l=!1,hasErrors:i=!1,checkmarkCharacter:d="✔","aria-controls":g,"aria-describedby":h,children:v,value:m})=>{const y=P([de.checkBoxListItem,e&&de.checked,t&&de.disabled,l&&de.compact,u&&de.contentOnly,i&&de.hasErrors]),C={onChange:c??(()=>{}),checked:e,disabled:t,required:n,requiredGroup:a,contentOnly:u,hasErrors:i,"aria-controls":g,"aria-describedby":h,id:r,name:s,checkmarkCharacter:d,value:m};return o.jsx("div",{className:y,children:o.jsx(Ft,{...C,children:v})})},Ca="_container_f8z49_1",Ea={container:Ca},Vt=({maxWidth:e,children:t})=>{const n={"--max-width":e!=null&&e.length?e:void 0};return o.jsx("div",{className:Ea.container,style:n,children:t})},ka="_contentBox_1ndvc_1",ja="_link_1ndvc_8",La="_content_1ndvc_1",Sa="_title_1ndvc_25",$a="_secondary_1ndvc_28",Ia="_regular_1ndvc_36",Ra="_large_1ndvc_45",he={contentBox:ka,link:ja,default:"_default_1ndvc_21",content:La,title:Sa,secondary:$a,regular:Ia,large:Ra},Ma=({title:e=null,titleSize:t="regular",content:n="",children:a,color:r="default",href:s=null})=>{const c=()=>{if(!e)return null;const h=`${he.title} ${he[t]}`;return o.jsx("h2",{className:h,children:e})},u=he[r]||"",l=s?he.link:"",i=`${he.contentBox} ${u} ${l}`.trim(),d=n!=null&&n.length?n:a,g=o.jsxs(o.Fragment,{children:[c(),o.jsx("div",{className:he.content,children:d})]});return s?o.jsx("a",{href:s,className:i,children:g}):o.jsx("div",{className:i,children:g})},Na="_descriptionDetails_1d1dj_1",za="_compact_1d1dj_7",ft={descriptionDetails:Na,compact:za},Ta=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dd",{className:P([ft.descriptionDetails,e&&ft.compact]),style:{"--title-width":t||void 0},children:n}),Ba="_descriptionList_w11ua_1",Pa="_compact_w11ua_13",pt={descriptionList:Ba,compact:Pa},Da=({compact:e=!1,titleWidth:t,children:n})=>{const a=r=>ge(r).map((c,u)=>w.isValidElement(c)?w.cloneElement(c,{compact:e,titleWidth:t,key:`descriptionListItem-${u}`}):c);return w.createElement("dl",{className:P([pt.descriptionList,e&&pt.compact]),style:{"--title-width":t||void 0}},a(w.Children.toArray(n)))},Aa="_descriptionTerm_uuapd_1",Fa="_compact_uuapd_8",_t={descriptionTerm:Aa,compact:Fa},Oa=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dt",{className:P([_t.descriptionTerm,e&&_t.compact]),style:{"--title-width":t||void 0},children:n}),qa="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='25'%3e%3cpath%20fill='%23072938'%20stroke='%23072938'%20stroke-linecap='round'%20stroke-width='3.23'%20d='m3.97%203.57%2017.44%2018.2m-17.44.01L21.41%203.57'/%3e%3c/svg%3e",Va="_dialog_1qsqp_19",Ha="_dialogContainer_1qsqp_33",Xa="_dialogContent_1qsqp_38",Wa="_closeButton_1qsqp_45",Ua="_isSidebar_1qsqp_60",Ya="_modalInVertical_1qsqp_1",Ja="_noPadding_1qsqp_74",Ga="_left_1qsqp_113",Ka="_modalInHorizontalLeft_1qsqp_1",Za="_right_1qsqp_120",Qa="_modalInHorizontalRight_1qsqp_1",es="_dialogOverlay_1qsqp_128",ne={dialog:Va,dialogContainer:Ha,dialogContent:Xa,closeButton:Wa,isSidebar:Ua,modalInVertical:Ya,noPadding:Ja,left:Ga,modalInHorizontalLeft:Ka,right:Za,modalInHorizontalRight:Qa,dialogOverlay:es},ts=({maxWidth:e="none",noPadding:t,closeButton:n,onClickOutside:a,modal:r=!1,attachTo:s,hidden:c=!1,children:u})=>{const l=w.useRef(null),i=w.useRef(null),d=w.useCallback(v=>{v&&Et(v)},[]);w.useEffect(()=>{const v=y=>{y.key==="Escape"&&a&&a()},m=y=>{i.current&&!i.current.contains(y.target)&&a()};return document.addEventListener("mousedown",m),document.addEventListener("keydown",v,!1),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("keydown",v,!1)}},[a]),w.useEffect(()=>{l.current&&(l.current.close(),c||(r?l.current.showModal():l.current.show()))},[c,r]);const g=s&&P([ne.isSidebar,ne[s]]),h={"--max-width":e};return o.jsx("dialog",{className:P([ne.dialog,g]),ref:l,children:o.jsx("div",{ref:i,className:ne.dialogContainer,style:h,children:o.jsxs("div",{ref:d,className:P([ne.dialogContent,t&&ne.noPadding]),children:[n&&o.jsx("button",{"aria-label":"Lukk dialog",onClick:a,className:P([ne.closeButton,t&&ne.noPadding]),children:o.jsx("img",{src:qa,alt:""})}),o.jsx("div",{"aria-live":"assertive",role:"dialog",children:u})]})})})},ns="_label_18de6_1",rs="_inline_18de6_11",as="_normalCursor_18de6_14",Ve={label:ns,inline:rs,normalCursor:as},_e=({inline:e=!1,normalCursor:t=!1,htmlTag:n="label",children:a,id:r,...s})=>{const c=[Ve.label,e&&Ve.inline,t&&Ve.normalCursor].filter(Boolean).join(" "),u={...s,className:c,id:r||void 0};return w.createElement(n,u,a)},ss="_dragAndDropFileInput_l98z1_1",os="_requiredSymbol_l98z1_1",ls="_dragAndDropContainer_l98z1_8",is="_highlighted_l98z1_26",Ie={dragAndDropFileInput:ss,requiredSymbol:os,dragAndDropContainer:ls,highlighted:is},cs="_errorMessage_i8u6b_7",us="_errorSign_i8u6b_19",gt={errorMessage:cs,errorSign:us},ds="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20role='presentation'%3e%3cg%20clip-path='url(%23clip0_1089_7422)'%3e%3cmask%20id='mask0_1089_7422'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%20style='fill:%20white;'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7422)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.4775%204.4775%200%2010%200C15.5225%200%2020%204.4775%2020%2010C20%2015.5225%2015.5225%2020%2010%2020C4.4775%2020%200%2015.5225%200%2010ZM11%2014.0766C11%2014.8122%2010.5188%2015.3333%209.83335%2015.3333C9.13335%2015.3333%208.66669%2014.8122%208.66669%2014.0766C8.66669%2013.341%209.13335%2012.8046%209.83335%2012.8046C10.5188%2012.8046%2011%2013.341%2011%2014.0766ZM10.65%2011.9463H8.98752L8.75419%204.66663H10.8834L10.65%2011.9463Z'%20style='fill:%20rgb(219,%200,%200);'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1089_7422'%3e%3crect%20width='20'%20height='20'%20fill='white'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",je=({id:e,content:t=""})=>{const n=()=>({id:e!=null&&e.length?e:void 0,className:gt.errorMessage});return(typeof t=="string"?t.trim().length>0:!!t)?o.jsxs("span",{"aria-live":"polite",...n(),children:[o.jsx("img",{src:ds,alt:"",className:gt.errorSign}),t]}):null},hs=({id:e,name:t,onSelectChange:n,onDragAndDropChange:a,label:r="",contentOnly:s=!1,buttonColor:c="primary",buttonContent:u,buttonContentWhenSelectedFile:l,selectedFileName:i,defaultContent:d="",hasErrors:g=!1,errorMessage:h="",required:v=!1,children:m,"data-transaction-name":y})=>{const[C,f]=w.useState(!1),x=w.useRef(null),b=w.useRef(null),k=S=>{S.preventDefault(),S.stopPropagation()},$=(S,T)=>S||T,L=()=>{var S;(S=b.current)==null||S.click()},z=()=>`${e}-errorMessage`,N={id:e,"aria-describedby":g&&(h!=null&&h.toString().length)?z():void 0,"aria-invalid":g?"true":void 0,name:t,required:v},R=i&&l||u,I=w.useCallback(()=>f(!0),[]),H=w.useCallback(()=>f(!1),[]),J=w.useCallback(S=>{var T;k(S),(T=S.dataTransfer)!=null&&T.files&&a(S.dataTransfer.files),f(!1)},[a]);return w.useEffect(()=>{const S=x.current;if(S)return["dragenter","dragover"].forEach(T=>S.addEventListener(T,I)),["dragleave","drop"].forEach(T=>S.addEventListener(T,H)),["dragenter","dragover","dragleave","drop"].forEach(T=>S.addEventListener(T,k)),S.addEventListener("drop",J),()=>{["dragenter","dragover","dragleave","drop"].forEach(T=>{S.removeEventListener(T,k),S.removeEventListener(T,I),S.removeEventListener(T,H)}),S.removeEventListener("drop",J)}},[a]),o.jsxs("div",{className:Ie.dragAndDropFileInput,children:[o.jsxs(_e,{htmlFor:e,children:[r,v&&o.jsx("img",{src:ae,alt:"",className:Ie.requiredSymbol})]}),o.jsx("div",{children:m}),!s&&o.jsxs("div",{ref:x,className:`${Ie.dragAndDropContainer} ${C?Ie.highlighted:""}`,children:[i?o.jsx("div",{children:o.jsxs("span",{children:[o.jsx("b",{children:"Valgt fil:"})," ",i]})}):o.jsx("div",{children:"Slipp fil her"}),o.jsx("input",{...N,ref:b,type:"file",onChange:n}),u&&o.jsxs(o.Fragment,{children:[o.jsx("div",{children:i?"":"eller klikk på knappen for å velge fil"}),o.jsx(at,{size:"small",inputType:"button",color:c,onClick:L,content:R,hasErrors:g,"data-transaction-name":y})]})]}),s&&o.jsx("span",{children:$(i,d)}),o.jsx(je,{id:z(),content:h})]})},ms="_errorBoxContainer_88ulw_7",fs="_messageIn_88ulw_1",ps="_warning_88ulw_14",_s="_error_88ulw_7",gs="_fullScreen_88ulw_22",vs="_errorBox_88ulw_7",ys="_infoSign_88ulw_38",me={errorBoxContainer:ms,messageIn:fs,warning:ps,error:_s,fullScreen:gs,errorBox:vs,infoSign:ys},Ht="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20role='presentation'%3e%3cpath%20d='M10%200C4.4775%200%200%204.4775%200%2010C0%2015.5225%204.4775%2020%2010%2020C15.5225%2020%2020%2015.5225%2020%2010C20%204.4775%2015.5225%200%2010%200ZM8.30583%2013.3417C8.77583%2011.8508%209.66583%2010.065%209.82333%209.61333C10.0508%208.9575%209.6475%208.66667%208.37333%209.7875L8.09%209.25417C9.54333%207.67333%2012.5358%207.31583%2011.5175%209.765C10.8817%2011.2942%2010.4267%2012.3267%2010.1667%2013.1233C9.7875%2014.2842%2010.745%2013.8133%2011.6825%2012.9475C11.81%2013.1558%2011.8517%2013.2233%2011.9792%2013.4633C9.8975%2015.445%207.58667%2015.62%208.30583%2013.3417ZM12.2575%206.53417C11.8142%206.91167%2011.1575%206.90333%2010.79%206.51583C10.4225%206.12833%2010.4842%205.50917%2010.9267%205.13167C11.37%204.75417%2012.0267%204.76333%2012.3942%205.15C12.76%205.53833%2012.7%206.1575%2012.2575%206.53417Z'%20style='fill:%20rgb(0,%2048,%2069);'%3e%3c/path%3e%3c/svg%3e",xs=({type:e="warning",fullScreen:t=!1,children:n=""})=>o.jsx("div",{className:P([me.errorBoxContainer,me[e],t&&me.fullScreen]),children:o.jsxs("div",{className:P([me.errorBox,t&&me.fullScreen]),children:[o.jsx("img",{src:Ht,alt:"",className:me.infoSign}),n]})}),bs="_footer_19fad_1",ws={footer:bs},Cs=({children:e})=>o.jsx("footer",{className:ws.footer,children:o.jsx(Vt,{children:e})}),Es="_infoBox_1mh67_7",ks="_infoSign_1mh67_15",vt={infoBox:Es,infoSign:ks},js=({children:e=""})=>o.jsxs("div",{className:vt.infoBox,children:[o.jsx("img",{src:Ht,alt:"",className:vt.infoSign}),e]}),Ls="_inputField_17rmz_1",Ss="_noMargin_17rmz_4",$s="_requiredSymbol_17rmz_10",Is="_file_17rmz_17",Rs="_input_17rmz_1",Ms="_hasErrors_17rmz_50",Ns="_fileInputContainer_17rmz_62",se={inputField:Ls,noMargin:Ss,requiredSymbol:$s,file:Is,input:Rs,hasErrors:Ms,fileInputContainer:Ns},zs=({id:e,onChange:t,onBlur:n,name:a="",type:r="text",disabled:s=!1,required:c=!1,readOnly:u,width:l,value:i,defaultValue:d,elementKey:g,label:h="",contentOnly:v=!1,buttonColor:m="primary",buttonContent:y,selectedFileName:C,placeholder:f="",defaultContent:x="",min:b,max:k,role:$,"aria-describedby":L,"aria-autocomplete":z,hasErrors:N=!1,errorMessage:R="",noMargin:I=!1})=>{const H=E=>{const M=new Date(E);return`${String(M.getDate()).padStart(2,"0")}.${String(M.getMonth()+1).padStart(2,"0")}.${M.getFullYear()}`},J=(E,M)=>r==="date"?E?H(E):M:E||M,S=()=>`${e}-errorMessage`,T=l?{maxWidth:l}:{},le={name:a,readOnly:u,disabled:s,required:c,type:r,role:$,id:e,min:b,max:k,onChange:t,onBlur:n,...i!==void 0?{value:i}:d!==void 0?{defaultValue:d}:{},placeholder:f,className:N?se.hasErrors:void 0,"aria-describedby":N&&R?S():L,"aria-invalid":N?"true":void 0,"aria-autocomplete":z||void 0,style:T};return o.jsxs("div",{className:P([se.inputField,se[r],I&&se.noMargin]),children:[o.jsxs(_e,{htmlFor:e,children:[h,c&&o.jsx("img",{src:ae,alt:"",className:se.requiredSymbol}),r==="file"&&o.jsxs("div",{className:se.fileInputContainer,children:[o.jsx("span",{className:se.input,children:C}),y&&o.jsx(at,{color:m,inputType:"button",onClick:()=>{const E=document==null?void 0:document.getElementById(e);E==null||E.click()},content:y})]})]}),v?o.jsx("span",{children:J(i??d,x)}):o.jsx("input",{...le},g||e),o.jsx(je,{id:S(),content:R})]})},Ts="_lead_176gy_1",Bs={lead:Ts},Ps=({id:e,htmlTag:t="p",children:n})=>w.createElement(t,{className:Bs.lead,id:e||void 0},n),Ds="_list_16gsl_1",As="_compact_16gsl_10",yt={list:Ds,compact:As},Fs=({listStyle:e,compact:t=!1,ordered:n=!1,children:a})=>{const r=l=>ge(l).map((d,g)=>w.isValidElement(d)?w.cloneElement(d,{compact:t,key:`listItem-${g}`}):d),s=n?"ol":"ul",c=n?"decimal":"disc";return w.createElement(s,{className:`${yt.list} ${t?yt.compact:""}`,style:{["--listStyle"]:e||c}},r(w.Children.toArray(a)))},Os="_listItem_33xs0_1",qs="_compact_33xs0_5",xt={listItem:Os,compact:qs},Vs=({compact:e=!1,children:t})=>{const n=P([xt.listItem,e&&xt.compact]);return o.jsx("li",{className:n,children:t})},Hs="_loadingAnimation_hzd5u_1",Xs="_fixed_hzd5u_17",He={loadingAnimation:Hs,fixed:Xs},Ws=({fixed:e=!1,message:t=""})=>{const n=e?`${He.loadingAnimation} ${He.fixed}`:He.loadingAnimation;return o.jsx("div",{className:n,children:t})},Ge=({listItem:e})=>typeof e=="string"?o.jsx("li",{children:o.jsx("span",{children:e})}):typeof e=="object"?o.jsx("li",{children:o.jsx("a",{href:e.href,children:e.name})}):null,Us="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='14%20337%20406%20110'%20style='enable-background:new%2014%20337%20406%20110;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;}%20.st1{fill:%23003045;}%20.st2{fill:%2389BAD6;}%20.st3{fill:%23FFFFFF;}%20.st4{display:inline;fill:%23FFFFFF;}%20.st5{display:inline;fill:%23D7D4D1;}%20%3c/style%3e%3cg%20id='skisse__x28_forstørret_x29_'%20class='st0'%3e%3c/g%3e%3cg%20id='logo'%3e%3crect%20id='XMLID_5_'%20x='14'%20y='337'%20class='st1'%20width='640'%20height='110'/%3e%3cg%20id='XMLID_82_'%3e%3crect%20id='XMLID_80_'%20x='14'%20y='337'%20class='st2'%20width='150'%20height='110'/%3e%3cg%20id='XMLID_74_'%3e%3cpolygon%20id='XMLID_79_'%20class='st3'%20points='75.1,420.7%2083.2,426.1%2083.2,389.4%20103,402.2%20103,384%2075.1,365.9%20'/%3e%3cpolygon%20id='XMLID_78_'%20class='st3'%20points='41.9,424.2%2041.9,404.7%2060.9,392.4%2060.9,350.3%2027.3,372.1%2027.3,433.7%20'/%3e%3cpolygon%20id='XMLID_77_'%20class='st3'%20points='106.1,381.9%20106.1,417.1%20118.9,425.4%20118.9,354.7%2091.6,372.5%20'/%3e%3cpolygon%20id='XMLID_76_'%20class='st3'%20points='64,350.3%2064,409.8%2071.9,404.7%2071.9,363.9%2071.9,355.5%20'/%3e%3cpolygon%20id='XMLID_75_'%20class='st3'%20points='128.4,385.6%20122.1,389.7%20122.1,423.4%20128.4,419.3%20150.7,433.7%20150.7,399.9%20'/%3e%3c/g%3e%3c/g%3e%3cg%20id='XMLID_6_'%3e%3crect%20id='XMLID_81_'%20x='164.5'%20y='367.5'%20class='st1'%20width='255.5'%20height='79.5'/%3e%3cg%20id='XMLID_7_'%3e%3cg%20id='XMLID_44_'%3e%3cpath%20id='XMLID_71_'%20class='st3'%20d='M187.3,385.6h4.7c5.5,0,8.7,2.2,8.7,8.2s-4,8.2-8.7,8.2h-4.7V385.6z%20M191.9,399.4%20c4.2,0,5.5-1.6,5.5-5.4c0-3.7-1.3-5.6-5.5-5.6h-1.5v11H191.9z'/%3e%3cpath%20id='XMLID_69_'%20class='st3'%20d='M203.5,385.6h3.2v16.5h-3.2V385.6z'/%3e%3cpath%20id='XMLID_66_'%20class='st3'%20d='M213.7,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L213.7,396z%20M215,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_64_'%20class='st3'%20d='M224.6,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_62_'%20class='st3'%20d='M238,385.6h3.2v7.4l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5H238V385.6z'/%3e%3cpath%20id='XMLID_60_'%20class='st3'%20d='M256.8,388.4H252v-2.7h12.6v2.7H260v13.7h-3.2V388.4z'/%3e%3cpath%20id='XMLID_57_'%20class='st3'%20d='M265.7,393.9c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C269,402.5,265.7,399.6,265.7,393.9z%20M278.7,394c0-3.9-1.9-6-4.8-6s-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C276.7,399.8,278.7,397.7,278.7,394z'/%3e%3cpath%20id='XMLID_54_'%20class='st3'%20d='M288,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L288,396z%20M289.3,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_51_'%20class='st3'%20d='M303.1,387.3l-0.6-1.7h3.3l6.5,16.5H309l-1.3-3.4h-6.1l-1.3,3.4h-3.1L303.1,387.3z%20M302.5,396.4h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L302.5,396.4z'/%3e%3cpath%20id='XMLID_49_'%20class='st3'%20d='M316,388.4h-4.7v-2.7h12.6v2.7h-4.7v13.7H316V388.4z'/%3e%3cpath%20id='XMLID_47_'%20class='st3'%20d='M326.2,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_45_'%20class='st3'%20d='M343.1,388.4h-4.7v-2.7H351v2.7h-4.7v13.7h-3.2L343.1,388.4L343.1,388.4z'/%3e%3c/g%3e%3cg%20id='XMLID_8_'%3e%3cpath%20id='XMLID_42_'%20class='st3'%20d='M187.3,412.3h10.3v2.7h-7.1v4.1h4.7v2.4h-4.7v7.2h-3.2V412.3z'/%3e%3cpath%20id='XMLID_39_'%20class='st3'%20d='M198.8,420.5c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C202.1,429.1,198.8,426.2,198.8,420.5z%20M211.7,420.6c0-3.9-1.9-6-4.8-6c-2.9,0-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C209.8,426.4,211.7,424.3,211.7,420.6z'/%3e%3cpath%20id='XMLID_36_'%20class='st3'%20d='M221.1,422.6h-0.2v6.1h-3.2v-16.4h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L221.1,422.6z%20M222.4,420.3c2,0,3.2-1,3.2-2.9s-1.2-2.7-3.2-2.7h-1.5v5.5L222.4,420.3L222.4,420.3z'/%3e%3cpath%20id='XMLID_32_'%20class='st3'%20d='M237.8,412.3h4.9c4.5,0,6.4,1.5,6.4,4.1c0,2.3-1.3,3.4-3.1,3.8l0,0c2,0.3,3.3,1.3,3.3,3.9%20s-1.8,4.7-6.5,4.7h-5L237.8,412.3L237.8,412.3z%20M242.8,419c2.4,0,3.1-0.8,3.1-2.2c0-1.4-0.9-2-3.1-2H241v4.2H242.8z%20M243,426.1%20c2.4,0,3.2-0.8,3.2-2.3c0-1.4-0.8-2.3-3.2-2.3h-2v4.5h2V426.1z'/%3e%3cpath%20id='XMLID_30_'%20class='st3'%20d='M255.5,422l-5.4-9.7h3.5l3.6,6.9l3.7-6.9h3.2l-5.4,9.7v6.8h-3.2L255.5,422L255.5,422z'/%3e%3cpath%20id='XMLID_28_'%20class='st3'%20d='M264.5,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C267.7,429.1,264.5,426.3,264.5,420.5z'/%3e%3cpath%20id='XMLID_26_'%20class='st3'%20d='M280,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C283.2,429.1,280,426.3,280,420.5z'/%3e%3cpath%20id='XMLID_24_'%20class='st3'%20d='M296.5,412.3h3.2v7.3l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5h-3.2%20L296.5,412.3L296.5,412.3z'/%3e%3cpath%20id='XMLID_22_'%20class='st3'%20d='M310.1,412.3h3.3l3.9,11.5h0.1l4-11.5h3.1l-5.9,16.5H316L310.1,412.3z'/%3e%3cpath%20id='XMLID_19_'%20class='st3'%20d='M329.2,413.9l-0.6-1.7h3.3l6.5,16.5h-3.3l-1.3-3.4h-6.1l-1.3,3.4h-3.1L329.2,413.9z%20M328.6,423h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L328.6,423z'/%3e%3cpath%20id='XMLID_17_'%20class='st3'%20d='M340.4,412.3h3.2V426h6.1v2.8h-9.3L340.4,412.3L340.4,412.3z'/%3e%3cpath%20id='XMLID_15_'%20class='st3'%20d='M352.1,412.3h3.2v16.5h-3.2V412.3z'/%3e%3cpath%20id='XMLID_13_'%20class='st3'%20d='M362.3,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L362.3,415L362.3,415z'/%3e%3cpath%20id='XMLID_11_'%20class='st3'%20d='M372.6,412.3h10.5v2.7h-7.3v3.9h4.9v2.5h-4.9v4.6h7.3v2.7h-10.5V412.3z'/%3e%3cpath%20id='XMLID_9_'%20class='st3'%20d='M389.4,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L389.4,415L389.4,415z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='hamburgermeny'%20class='st0'%3e%3crect%20id='XMLID_94_'%20x='578'%20y='386'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_95_'%20x='578'%20y='423'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_96_'%20x='578'%20y='405'%20class='st4'%20width='60'%20height='6'/%3e%3c/g%3e%3cg%20id='hamburgermeny__hover'%20class='st0'%3e%3crect%20id='XMLID_97_'%20x='578'%20y='386'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_93_'%20x='578'%20y='423'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_91_'%20x='578'%20y='405'%20class='st5'%20width='60'%20height='6'/%3e%3c/g%3e%3c/svg%3e",Ys="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20viewBox='0%200%20340.2%20412.5'%20style='enable-background:new%200%200%20340.2%20412.5;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23003045;}%20.st1{fill:%2389BAD6;}%20.st2{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3crect%20x='0'%20y='253.2'%20class='st0'%20width='340.2'%20height='105.8'/%3e%3crect%20x='0'%20class='st1'%20width='340.2'%20height='249.4'/%3e%3cg%3e%3cpolygon%20class='st2'%20points='138.5,189.9%20157,202%20157,118.8%20201.7,147.8%20201.7,106.6%20138.5,65.5%20'/%3e%3cpolygon%20class='st2'%20points='63.3,197.7%2063.3,153.5%20106.3,125.5%20106.3,30.2%2030.2,79.7%2030.2,219.2%20'/%3e%3cpolygon%20class='st2'%20points='208.9,101.9%20208.9,181.7%20238,200.5%20238,40.1%20175.9,80.4%20'/%3e%3cpolygon%20class='st2'%20points='113.4,30.2%20113.4,165.2%20131.4,153.5%20131.4,60.9%20131.4,41.9%20'/%3e%3cpolygon%20class='st2'%20points='259.5,110.2%20245.1,119.6%20245.1,195.9%20259.5,186.5%20309.9,219.2%20309.9,142.6%20'/%3e%3c/g%3e%3cpolygon%20class='st0'%20points='0,362.8%2075.6,412%2075.6,362.8%20'/%3e%3cg%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,277.5h6.2c7.3,0,11.6,2.9,11.6,11s-5.3,11-11.6,11h-6.2V277.5z%20M36.5,295.7c5.6,0,7.3-2.2,7.3-7.2%20c0-5-1.7-7.5-7.3-7.5h-2v14.6H36.5z'/%3e%3cpath%20class='st2'%20d='M51.9,277.5h4.3v21.9h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M65.5,291.2h-0.2v8.2H61v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L65.5,291.2z%20M67.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.6-3.5-4.3-3.5h-1.9v7.4H67.2z'/%3e%3cpath%20class='st2'%20d='M80,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6H94v3.6H80V277.5z'/%3e%3cpath%20class='st2'%20d='M97.8,277.5h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M122.8,281.1h-6.3v-3.6h16.8v3.6H127v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M134.7,288.4c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C139.1,299.9,134.7,296,134.7,288.4z%20M151.9,288.6c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C149.4,296.3,151.9,293.5,151.9,288.6z'/%3e%3cpath%20class='st2'%20d='M164.4,291.2h-0.2v8.2h-4.3v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L164.4,291.2z%20M166.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H166.2z'/%3e%3cpath%20class='st2'%20d='M184.5,279.7l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L184.5,279.7z%20M183.6,291.7h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L183.6,291.7z'/%3e%3cpath%20class='st2'%20d='M201.7,281.1h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M215.3,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V277.5z'/%3e%3cpath%20class='st2'%20d='M237.7,281.1h-6.3v-3.6h16.8v3.6H242v18.3h-4.3V281.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,312.9H44v3.6h-9.5v5.5h6.2v3.3h-6.2v9.6h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M45.6,323.9c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C50,335.3,45.6,331.4,45.6,323.9z%20M62.8,324c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C60.3,331.7,62.8,328.9,62.8,324z'/%3e%3cpath%20class='st2'%20d='M75.3,326.7h-0.2v8.2h-4.3v-21.9H77c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L75.3,326.7z%20M77,323.7c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H77z'/%3e%3cpath%20class='st2'%20d='M97.6,312.9h6.5c6,0,8.5,2,8.5,5.5c0,3-1.7,4.5-4.1,5.1v0.1c2.6,0.5,4.5,1.7,4.5,5.1c0,3.5-2.5,6.2-8.6,6.2%20h-6.7V312.9z%20M104.3,321.9c3.2,0,4.1-1.1,4.1-2.9c0-1.8-1.2-2.6-4.1-2.6h-2.4v5.5H104.3z%20M104.4,331.3c3.2,0,4.3-1.1,4.3-3%20c0-1.9-1.1-3-4.3-3h-2.6v6H104.4z'/%3e%3cpath%20class='st2'%20d='M121.2,325.8l-7.2-12.9h4.7l4.8,9.2l4.9-9.2h4.2l-7.2,12.9v9h-4.3V325.8z'/%3e%3cpath%20class='st2'%20d='M133,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C137.3,335.3,133,331.5,133,323.9z'/%3e%3cpath%20class='st2'%20d='M153.8,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C158,335.3,153.8,331.5,153.8,323.9z'/%3e%3cpath%20class='st2'%20d='M175.7,312.9h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M193.8,312.9h4.4l5.2,15.4h0.1l5.3-15.4h4.1l-7.9,21.9h-3.5L193.8,312.9z'/%3e%3cpath%20class='st2'%20d='M219.3,315.1l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L219.3,315.1z%20M218.4,327.1h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L218.4,327.1z'/%3e%3cpath%20class='st2'%20d='M234.1,312.9h4.3v18.3h8.2v3.7h-12.4V312.9z'/%3e%3cpath%20class='st2'%20d='M249.7,312.9h4.3v21.9h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M263.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3cpath%20class='st2'%20d='M277,312.9h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V312.9z'/%3e%3cpath%20class='st2'%20d='M299.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Js="_navigationBarContainer_n1cc0_1",Gs="_mainContentLink_n1cc0_1",Ks="_compact_n1cc0_30",Zs="_navigationBar_n1cc0_1",Qs="_preventStacking_n1cc0_63",eo="_logoContainer_n1cc0_82",to="_childElements_n1cc0_91",no="_menuToggle_n1cc0_97",ro="_hamburgerIcon_n1cc0_125",ao="_active_n1cc0_161",so="_dropdownContainer_n1cc0_170",oo="_dropdown_n1cc0_170",lo="_primaryList_n1cc0_195",io="_secondaryList_n1cc0_196",co="_line_n1cc0_392",D={navigationBarContainer:Js,mainContentLink:Gs,compact:Ks,navigationBar:Zs,preventStacking:Qs,logoContainer:eo,childElements:to,menuToggle:no,hamburgerIcon:ro,active:ao,dropdownContainer:so,dropdown:oo,primaryList:lo,secondaryList:io,line:co},uo=e=>(e==null?void 0:e.logo)??"",ho=e=>(e==null?void 0:e.logoPadding)??"",mo=e=>(e==null?void 0:e.appName)??"",fo=({primaryListItems:e=[],secondaryListItems:t=[],logoLink:n="",logoLinkTitle:a,openLogoLinkInNewTab:r,theme:s,compact:c,mainContentId:u,preventChildElementStacking:l=!1,children:i})=>{const[d,g]=w.useState(!1),h=()=>g(!d),v=x=>({padding:ho(x)}),m=(x=e,b=0)=>x.length?o.jsx("ul",{className:D.primaryList,children:x.map((k,$)=>{const L=`${b}-${$}`;return k.listItems?o.jsxs("li",{children:[o.jsx("span",{children:k.name}),m(k.listItems,b+1)]},L):o.jsx(Ge,{listItem:k},L)})}):null,y=()=>t.length?o.jsx("ul",{className:D.secondaryList,children:t.map((x,b)=>o.jsx(Ge,{listItem:x},b))}):null,C=(x,b)=>{const k=uo(s),$=mo(s),L=x&&b?"":k&&$?`${$} logo`:"DIBK logo",z=k?o.jsx("img",{alt:L,src:k,style:v(s)}):o.jsx("img",{alt:L,src:c?Us:Ys});return x!=null&&x.length?o.jsx("a",{href:x,title:b,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,children:z}):z},f=e.length>0||t.length>0;return o.jsxs("div",{className:P([c&&D.compact,D.navigationBarContainer]),children:[u&&o.jsx("a",{id:"main-content-link",href:`#${u}`,className:D.mainContentLink,children:o.jsx("span",{id:"main-content-link-text",children:"Hopp til hovedinnhold"})}),o.jsxs("div",{className:P([D.navigationBar,l&&D.preventStacking]),children:[o.jsx("div",{className:D.logoContainer,children:C(n,a)}),i&&o.jsx("div",{className:D.childElements,children:i}),f&&o.jsxs("button",{type:"button",className:`${D.menuToggle} ${d?D.active:""}`,onClick:h,"aria-expanded":d?"true":"false","aria-controls":"main-menu-dropdown",children:[!c&&"Meny",o.jsxs("span",{className:D.hamburgerIcon,children:[o.jsx("span",{className:D.line}),o.jsx("span",{className:D.line}),o.jsx("span",{className:D.line})]})]})]}),f&&o.jsx(w.Fragment,{children:o.jsx("div",{className:P([D.dropdownContainer,d&&D.active]),children:o.jsxs("div",{id:"main-menu-dropdown",className:D.dropdown,children:[m(),y()]})})})]})},po="_paper_1lgl3_1",_o="_noMargin_1lgl3_6",go="_noPadding_1lgl3_9",Xe={paper:po,noMargin:_o,noPadding:go},vo=({noMargin:e=!1,noPadding:t=!1,children:n})=>{const a=[Xe.paper,e&&Xe.noMargin,t&&Xe.noPadding].filter(Boolean).join(" ");return o.jsx("div",{className:a,children:n})},yo="_progressBar_t5aid_1",xo="_hasErrors_t5aid_23",bt={progressBar:yo,hasErrors:xo},bo=({progress:e=0,hasErrors:t=!1})=>o.jsx("div",{className:`${bt.progressBar} ${t?bt.hasErrors:""}`,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,style:{"--value":e}}),wo="_radioButtonIcon_32fe0_1",Co="_hasErrors_32fe0_22",Eo="_checked_32fe0_32",ko="_disabled_32fe0_48",Re={radioButtonIcon:wo,hasErrors:Co,checked:Eo,disabled:ko},Xt=({size:e="10px",checked:t=!1,disabled:n=!1,hasErrors:a=!1})=>{const r={height:e,width:e},s=[Re.radioButtonIcon,t&&Re.checked,n&&Re.disabled,a&&Re.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:s,style:r})},jo="_radioButtonInput_1i7cy_1",Lo="_requiredSymbol_1i7cy_6",So="_disabled_1i7cy_13",$o="_labelText_1i7cy_19",Io="_hasErrors_1i7cy_27",fe={radioButtonInput:jo,requiredSymbol:Lo,disabled:So,labelText:$o,hasErrors:Io},Wt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:u=!1,hasErrors:l=!1,inputValue:i,tabIndex:d,children:g,"aria-controls":h,"aria-describedby":v})=>{const m=[fe.radioButtonInput,e&&fe.checked,t&&fe.disabled,l&&fe.hasErrors].filter(Boolean).join(" "),y={checked:e,disabled:t,hasErrors:!u&&l},C={id:r,name:s,type:"radio",value:i,checked:e,disabled:t,required:n||a,onChange:c,tabIndex:d??void 0,"aria-controls":h,"aria-invalid":l?"true":void 0,"aria-describedby":v};return o.jsxs("label",{htmlFor:r,className:m,children:[!u&&o.jsxs(o.Fragment,{children:[o.jsx(Xt,{...y}),o.jsx("input",{...C})]}),o.jsxs("span",{className:fe.labelText,children:[g,n&&o.jsx("img",{src:ae,alt:"",className:fe.requiredSymbol})]})]})},Ro="_radioButtonList_1cyu3_1",Mo="_requiredSymbol_1cyu3_16",wt={radioButtonList:Ro,requiredSymbol:Mo},No=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>ge(c).map((l,i)=>{var d;return w.isValidElement(l)&&((d=l.type)==null?void 0:d.displayName)==="RadioButtonListItem"?w.cloneElement(l,{requiredGroup:n,compact:a,key:`radioButtonListItem-${i}`}):l});return o.jsxs("fieldset",{className:wt.radioButtonList,children:[!!(e!=null&&e.length)&&o.jsxs("legend",{children:[t?o.jsx(st,{size:t,children:e}):e,n&&o.jsx("img",{src:ae,alt:"",className:wt.requiredSymbol})]}),s(w.Children.toArray(r))]})},zo="_radioButtonListItem_1ggab_1",To="_contentOnly_1ggab_26",Bo="_compact_1ggab_26",Po="_disabled_1ggab_41",Do="_checked_1ggab_44",pe={radioButtonListItem:zo,contentOnly:To,compact:Bo,disabled:Po,checked:Do},Ao=({inputValue:e,checked:t=!1,disabled:n=!1,required:a=!1,requiredGroup:r=!1,name:s="",id:c,onChange:u,contentOnly:l=!1,compact:i=!1,hasErrors:d=!1,"aria-controls":g,"aria-describedby":h,children:v})=>{const m=P([pe.radioButtonListItem,t&&pe.checked,n&&pe.disabled,i&&pe.compact,l&&pe.contentOnly,d&&pe.hasErrors]),y={onChange:u,inputValue:e,checked:t,disabled:n,required:a,requiredGroup:r,contentOnly:l,hasErrors:d,"aria-controls":g,"aria-describedby":h,id:c,name:s};return o.jsx("div",{className:m,children:o.jsx(Wt,{...y,children:v})})},Fo="_select_18o2z_1",Oo="_requiredSymbol_18o2z_1",qo="_selectContainer_18o2z_8",Vo="_selectListArrow_18o2z_11",Ho="_multipleSelectDropdown_18o2z_40",Xo="_multipleSelectElement_18o2z_52",Wo="_multiple_18o2z_40",Uo="_hasErrors_18o2z_100",G={select:Fo,requiredSymbol:Oo,selectContainer:qo,selectListArrow:Vo,multipleSelectDropdown:Ho,multipleSelectElement:Xo,multiple:Wo,hasErrors:Uo},Yo=({id:e,onChange:t,name:n="",required:a=!1,disabled:r=!1,multiple:s=!1,options:c=[],width:u,value:l,defaultValue:i,label:d="",contentOnly:g=!1,keyAsContent:h=!1,placeholder:v="",placeholderValue:m="",defaultContent:y="",role:C,"aria-describedby":f,hasErrors:x=!1,errorMessage:b=""})=>{const[k,$]=w.useState(!1),L=w.useRef(null),z=w.useCallback(E=>{E&&Et(E)},[]),N=()=>$(!1);w.useEffect(()=>{const E=A=>{A.key==="Escape"&&N()},M=A=>{L.current&&!L.current.contains(A.target)&&N()};return document.addEventListener("mousedown",M),document.addEventListener("keydown",E),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",E)}},[]);const R=(E,M)=>{const A=M.find(X=>typeof X=="object"?X.value===E:X===E);return typeof A=="object"?A.key??A.value:A},I=E=>typeof E=="object"?{key:E.key,value:E.value}:{key:E,value:E},H=()=>{var E;return((E=i||l)==null?void 0:E.map(M=>R(M,c)).join(", "))||null},J=E=>{const M=l??i??[],A=M.includes(E)?M.filter(X=>X!==E):[...M,E];t(A)},S=()=>c.map((E,M)=>{const{key:A,value:X}=I(E),_=(i||l||[]).includes(X);return o.jsx(qt,{id:`${e}-${M}`,value:X,checked:_,onChange:()=>J(X),children:A},M)}),T=()=>`${e}-errorMessage`;if(g){const E=i||l||null;return o.jsxs("div",{className:G.select,children:[o.jsx(_e,{htmlFor:e,children:d}),o.jsx("span",{children:E?h?R(E,c):E:y})]})}const le={name:n,multiple:s,required:a,disabled:r,onChange:E=>t(E.target.value),id:e,role:C,className:P([x&&G.hasErrors,s&&G.multiple]),"aria-describedby":x&&b?T():f,"aria-invalid":x||void 0,style:u?{maxWidth:u}:void 0,...i!==void 0&&l===void 0?{defaultValue:i}:{value:l||""}};return o.jsxs("div",{className:G.select,children:[o.jsxs(_e,{htmlFor:e,children:[d,a&&o.jsx("img",{src:ae,alt:"",className:G.requiredSymbol})]}),o.jsxs("div",{className:G.selectContainer,style:u?{maxWidth:u}:void 0,children:[o.jsx("span",{className:G.selectListArrow}),s?o.jsxs("div",{ref:L,children:[o.jsx("div",{onClick:()=>$(!k),className:G.multipleSelectElement,children:H()}),k&&o.jsx("div",{ref:z,className:G.multipleSelectDropdown,children:o.jsx(Ot,{compact:!0,children:S()})})]}):o.jsxs("select",{...le,children:[v&&o.jsx("option",{value:m,disabled:!0,children:v}),c.map(E=>{const{key:M,value:A}=I(E);return o.jsx("option",{value:A,children:M},M)})]})]}),o.jsx(je,{id:T(),content:b})]})},Jo="_table_miy9l_1",Ee={table:Jo,"captionSide-top":"_captionSide-top_miy9l_14","captionSide-bottom":"_captionSide-bottom_miy9l_18","captionAlign-left":"_captionAlign-left_miy9l_22","captionAlign-center":"_captionAlign-center_miy9l_25","captionAlign-right":"_captionAlign-right_miy9l_28"},Go=e=>e&&["left","center","right"].includes(e)?Ee[`captionAlign-${e}`]:Ee["captionAlign-left"],Ko=e=>e&&["top","bottom"].includes(e)?Ee[`captionSide-${e}`]:Ee["captionSide-top"],Zo=({captionAlign:e,captionSide:t,children:n})=>{const a=P([Ee.table,Go(e),Ko(t)]);return o.jsx("table",{className:a,children:n})},Qo="_textarea_1596u_1",el="_requiredSymbol_1596u_4",tl="_hasErrors_1596u_55",We={textarea:Qo,requiredSymbol:el,hasErrors:tl},nl=e=>{let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length;for(let r=0;r<e;r++)t+=n.charAt(Math.floor(Math.random()*a));return t},rl=({id:e,onChange:t,onBlur:n,name:a="",required:r=!1,readOnly:s,disabled:c,width:u,resize:l="both",value:i,defaultValue:d,elementKey:g,rows:h,label:v="",contentOnly:m=!1,placeholder:y="",defaultContent:C="","aria-describedby":f,hasErrors:x=!1,errorMessage:b=""})=>{const k=()=>`${e}-errorMessage`,$=!(i!=null&&i.length)&&(d!=null&&d.length)?d:void 0,L=g||`${e}-${nl(6)}`,z={...u&&{maxWidth:u},...l&&{resize:l}},N={name:a,readOnly:s,disabled:c,required:r,id:e,onChange:t,onBlur:n,value:$?void 0:i,defaultValue:$||void 0,placeholder:y,rows:h?parseInt(h,10):void 0,className:x?We.hasErrors:"","aria-describedby":x&&b?k():f,"aria-invalid":x?"true":void 0,style:z};return o.jsxs("div",{className:We.textarea,children:[o.jsxs(_e,{htmlFor:e,children:[v,r&&o.jsx("img",{src:ae,alt:"",className:We.requiredSymbol})]}),m?o.jsx("span",{children:i||d||C}):o.jsx("textarea",{...N},L),o.jsx(je,{id:k(),content:b})]})},al=({theme:e,children:t})=>{const n=tn(e),a=rn(n);return nn("theme-provider",`:root {${a}}`),t},sl="_toggleNavigationButton_1eb2w_1",ol={toggleNavigationButton:sl},ll=({id:e,htmlTag:t="button",showText:n,hideText:a,buttonProps:r={},isOpen:s=!1})=>w.createElement(t,{...r,className:ol.toggleNavigationButton,id:e||void 0},s?a:n),il="_wizardTopnavItem_5ar16_1",cl="_wizardTopnavItemContent_5ar16_4",ul="_vertical_5ar16_7",dl="_stepNumber_5ar16_24",hl="_stepName_5ar16_36",ml="_active_5ar16_46",fl="_finished_5ar16_46",pl="_hasErrors_5ar16_46",_l="_horizontal_5ar16_64",Y={wizardTopnavItem:il,wizardTopnavItemContent:cl,vertical:ul,stepNumber:dl,stepName:hl,active:ml,finished:fl,hasErrors:pl,horizontal:_l},gl="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20aria-label='Ferdig'%20style='fill:%20rgb(23,%20121,%2018);'%3e%3cmask%20id='mask0_1089_7430'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7430)'%3e%3cpath%20d='M5.71427%208.57149L3.80951%2010.4762L8.57141%2015.2382L17.1428%206.66672L15.2381%204.76196L8.57141%2011.4286L5.71427%208.57149Z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",Ut=({step:e,index:t,activeStepId:n,direction:a="vertical"})=>{const r=n===e.id,s=a==="vertical",c=P([Y.wizardTopnavItem,r&&Y.active,e.finished&&Y.finished,e.hasErrors&&Y.hasErrors,Y[a]]),u=r?"step":void 0,l=()=>o.jsxs(o.Fragment,{children:[o.jsx("span",{className:Y.stepNumber,children:t+1}),o.jsx("span",{className:Y.stepName,children:e.name}),s&&e.finished&&!r&&o.jsx("img",{src:gl,alt:"",className:Y.checkmarkSymbol})]});return e.link&&Object.keys(e.link).length>0?o.jsx("li",{className:c,children:o.jsx(Ce,{to:e.link,"aria-current":u,className:Y.wizardTopnavItemContent,children:l()})}):o.jsx("li",{className:c,children:o.jsx("span",{"aria-current":u,className:Y.wizardTopnavItemContent,children:l()})})},vl="_wizardTopnavContainer_qiy2o_1",yl="_wizardTopnav_qiy2o_1",xl="_vertical_qiy2o_6",bl="_horizontal_qiy2o_11",Ue={wizardTopnavContainer:vl,wizardTopnav:yl,vertical:xl,horizontal:bl},wl=({steps:e,activeStepId:t,direction:n="vertical","aria-label":a})=>{const r=Object.keys(e),c=`I dette skjemaet er det totalt ${r.length} steg som du skal gå igjennom`,u=a!=null&&a.length?a:c;return o.jsx("nav",{"aria-label":u,className:P([Ue.wizardTopnavContainer,Ue[n]]),children:o.jsx("ol",{className:Ue.wizardTopnav,children:r.map((l,i)=>o.jsx(Ut,{step:e[l],activeStepId:t,direction:n,index:i},l))})})};exports.Accordion=xn;exports.Button=at;exports.CheckBoxIcon=Je;exports.CheckBoxInput=Ft;exports.CheckBoxList=Ot;exports.CheckBoxListItem=qt;exports.Container=Vt;exports.ContentBox=Ma;exports.DescriptionDetails=Ta;exports.DescriptionList=Da;exports.DescriptionTerm=Oa;exports.Dialog=ts;exports.DragAndDropFileInput=hs;exports.ErrorBox=xs;exports.ErrorMessage=je;exports.Footer=Cs;exports.Header=st;exports.InfoBox=js;exports.InputField=zs;exports.Label=_e;exports.Lead=Ps;exports.List=Fs;exports.ListItem=Vs;exports.LoadingAnimation=Ws;exports.NavigationBar=fo;exports.NavigationBarListItem=Ge;exports.Paper=vo;exports.ProgressBar=bo;exports.RadioButtonIcon=Xt;exports.RadioButtonInput=Wt;exports.RadioButtonList=No;exports.RadioButtonListItem=Ao;exports.Select=Yo;exports.Table=Zo;exports.Textarea=rl;exports.ThemeProvider=al;exports.ToggleNavigationButton=ll;exports.WizardNavigation=wl;exports.WizardNavigationStep=Ut;
33
+ Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let m=le(),h;h=m;let y=h.pathname||"/",f=y;if(l!=="/"){let p=l.replace(/^\//,"").split("/");f="/"+y.replace(/^\//,"").split("/").slice(p.length).join("/")}let v=jt(e,{pathname:f});return Q(d||v!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Q(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),tr(v&&v.map(p=>Object.assign({},p,{params:Object.assign({},u,p.params),pathname:Z([l,r.encodeLocation?r.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:Z([l,r.encodeLocation?r.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),s,n,a)}function Kn(){let e=or(),t=Hn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:s},"ErrorBoundary")," or"," ",_.createElement("code",{style:s},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:r},n):null,c)}var Zn=_.createElement(Kn,null),Qn=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?_.createElement(ne.Provider,{value:this.props.routeContext},_.createElement(Qe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function er({routeContext:e,match:t,children:n}){let a=_.useContext(xe);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(ne.Provider,{value:e},n)}function tr(e,t=[],n=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let r=e,s=n==null?void 0:n.errors;if(s!=null){let i=r.findIndex(l=>l.route.id&&(s==null?void 0:s[l.route.id])!==void 0);O(i>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),r=r.slice(0,Math.min(r.length,i+1))}let c=!1,u=-1;if(n)for(let i=0;i<r.length;i++){let l=r[i];if((l.route.HydrateFallback||l.route.hydrateFallbackElement)&&(u=i),l.route.id){let{loaderData:d,errors:m}=n,h=l.route.loader&&!d.hasOwnProperty(l.route.id)&&(!m||m[l.route.id]===void 0);if(l.route.lazy||h){c=!0,u>=0?r=r.slice(0,u+1):r=[r[0]];break}}}return r.reduceRight((i,l,d)=>{let m,h=!1,y=null,f=null;n&&(m=s&&l.route.id?s[l.route.id]:void 0,y=l.route.errorElement||Zn,c&&(u<0&&d===0?(zt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):u===d&&(h=!0,f=l.route.hydrateFallbackElement||null)));let v=t.concat(r.slice(0,d+1)),b=()=>{let p;return m?p=y:h?p=f:l.route.Component?p=_.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=i,_.createElement(er,{match:l,routeContext:{outlet:i,matches:v,isDataRoute:n!=null},children:p})};return n&&(l.route.ErrorBoundary||l.route.errorElement||d===0)?_.createElement(Qn,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}function et(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nr(e){let t=_.useContext(xe);return O(t,et(e)),t}function rr(e){let t=_.useContext(ze);return O(t,et(e)),t}function ar(e){let t=_.useContext(ne);return O(t,et(e)),t}function tt(e){let t=ar(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function sr(){return tt("useRouteId")}function or(){var a;let e=_.useContext(Qe),t=rr("useRouteError"),n=tt("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function ir(){let{router:e}=nr("useNavigate"),t=tt("useNavigate"),n=_.useRef(!1);return Tt(()=>{n.current=!0}),_.useCallback(async(r,s={})=>{Q(n.current,Mt),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...s}))},[e,t])}var dt={};function zt(e,t,n){!t&&!dt[e]&&(dt[e]=!0,Q(!1,n))}_.memo(lr);function lr({routes:e,future:t,state:n}){return Gn(e,void 0,n,t)}var Re="get",Me="application/x-www-form-urlencoded";function De(e){return e!=null&&typeof e.tagName=="string"}function cr(e){return De(e)&&e.tagName.toLowerCase()==="button"}function ur(e){return De(e)&&e.tagName.toLowerCase()==="form"}function dr(e){return De(e)&&e.tagName.toLowerCase()==="input"}function hr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fr(e,t){return e.button===0&&(!t||t==="_self")&&!hr(e)}var Se=null;function mr(){if(Se===null)try{new FormData(document.createElement("form"),0),Se=!1}catch{Se=!0}return Se}var pr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ve(e){return e!=null&&!pr.has(e)?(Q(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Me}"`),null):e}function _r(e,t){let n,a,r,s,c;if(ur(e)){let u=e.getAttribute("action");a=u?oe(u,t):null,n=e.getAttribute("method")||Re,r=Ve(e.getAttribute("enctype"))||Me,s=new FormData(e)}else if(cr(e)||dr(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||u.getAttribute("action");if(a=i?oe(i,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Re,r=Ve(e.getAttribute("formenctype"))||Ve(u.getAttribute("enctype"))||Me,s=new FormData(u,e),!mr()){let{name:l,type:d,value:m}=e;if(d==="image"){let h=l?`${l}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else l&&s.append(l,m)}}else{if(De(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Re,a=null,r=Me,c=e}return s&&r==="text/plain"&&(c=s,s=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:s,body:c}}function nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function gr(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function vr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function yr(e,t,n){let a=await Promise.all(e.map(async r=>{let s=t.routes[r.route.id];if(s){let c=await gr(s,n);return c.links?c.links():[]}return[]}));return Cr(a.flat(1).filter(vr).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function ht(e,t,n,a,r,s){let c=(i,l)=>n[l]?i.route.id!==n[l].route.id:!0,u=(i,l)=>{var d;return n[l].pathname!==i.pathname||((d=n[l].route.path)==null?void 0:d.endsWith("*"))&&n[l].params["*"]!==i.params["*"]};return s==="assets"?t.filter((i,l)=>c(i,l)||u(i,l)):s==="data"?t.filter((i,l)=>{var m;let d=a.routes[i.route.id];if(!d||!d.hasLoader)return!1;if(c(i,l)||u(i,l))return!0;if(i.route.shouldRevalidate){let h=i.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:i.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function xr(e,t,{includeHydrateFallback:n}={}){return br(e.map(a=>{let r=t.routes[a.route.id];if(!r)return[];let s=[r.module];return r.clientActionModule&&(s=s.concat(r.clientActionModule)),r.clientLoaderModule&&(s=s.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(s=s.concat(r.hydrateFallbackModule)),r.imports&&(s=s.concat(r.imports)),s}).flat(1))}function br(e){return[...new Set(e)]}function wr(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function Cr(e,t){let n=new Set;return new Set(t),e.reduce((a,r)=>{let s=JSON.stringify(wr(r));return n.has(s)||(n.add(s),a.push({key:s,link:r})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Er=new Set([100,101,204,205]);function kr(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&oe(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function Bt(){let e=_.useContext(xe);return nt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function jr(){let e=_.useContext(ze);return nt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var rt=_.createContext(void 0);rt.displayName="FrameworkContext";function Dt(){let e=_.useContext(rt);return nt(e,"You must render this element inside a <HydratedRouter> element"),e}function Lr(e,t){let n=_.useContext(rt),[a,r]=_.useState(!1),[s,c]=_.useState(!1),{onFocus:u,onBlur:i,onMouseEnter:l,onMouseLeave:d,onTouchStart:m}=t,h=_.useRef(null);_.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let v=p=>{p.forEach(w=>{c(w.isIntersecting)})},b=new IntersectionObserver(v,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),_.useEffect(()=>{if(a){let v=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(v)}}},[a]);let y=()=>{r(!0)},f=()=>{r(!1),c(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:Ee(u,y),onBlur:Ee(i,f),onMouseEnter:Ee(l,y),onMouseLeave:Ee(d,f),onTouchStart:Ee(m,y)}]:[!1,h,{}]}function Ee(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Sr({page:e,...t}){let{router:n}=Bt(),a=_.useMemo(()=>jt(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?_.createElement(Ir,{page:e,matches:a,...t}):null}function $r(e){let{manifest:t,routeModules:n}=Dt(),[a,r]=_.useState([]);return _.useEffect(()=>{let s=!1;return yr(e,t,n).then(c=>{s||r(c)}),()=>{s=!0}},[e,t,n]),a}function Ir({page:e,matches:t,...n}){let a=le(),{manifest:r,routeModules:s}=Dt(),{basename:c}=Bt(),{loaderData:u,matches:i}=jr(),l=_.useMemo(()=>ht(e,t,i,r,a,"data"),[e,t,i,r,a]),d=_.useMemo(()=>ht(e,t,i,r,a,"assets"),[e,t,i,r,a]),m=_.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let f=new Set,v=!1;if(t.forEach(p=>{var C;let w=r.routes[p.route.id];!w||!w.hasLoader||(!l.some($=>$.route.id===p.route.id)&&p.route.id in u&&((C=s[p.route.id])!=null&&C.shouldRevalidate)||w.hasClientLoader?v=!0:f.add(p.route.id))}),f.size===0)return[];let b=kr(e,c);return v&&f.size>0&&b.searchParams.set("_routes",t.filter(p=>f.has(p.route.id)).map(p=>p.route.id).join(",")),[b.pathname+b.search]},[c,u,a,r,l,t,e,s]),h=_.useMemo(()=>xr(d,r),[d,r]),y=$r(d);return _.createElement(_.Fragment,null,m.map(f=>_.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...n})),h.map(f=>_.createElement("link",{key:f,rel:"modulepreload",href:f,...n})),y.map(({key:f,link:v})=>_.createElement("link",{key:f,...v})))}function Nr(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Pt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Pt&&(window.__reactRouterVersion="7.6.2")}catch{}var At=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ke=_.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:r,reloadDocument:s,replace:c,state:u,target:i,to:l,preventScrollReset:d,viewTransition:m,...h},y){let{basename:f}=_.useContext(te),v=typeof l=="string"&&At.test(l),b,p=!1;if(typeof l=="string"&&v&&(b=l,Pt))try{let k=new URL(window.location.href),z=l.startsWith("//")?new URL(k.protocol+l):new URL(l),q=oe(z.pathname,f);z.origin===k.origin&&q!=null?l=q+z.search+z.hash:p=!0}catch{Q(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=Un(l,{relative:r}),[C,$,L]=Lr(a,h),S=zr(l,{replace:c,state:u,target:i,preventScrollReset:d,relative:r,viewTransition:m});function R(k){t&&t(k),k.defaultPrevented||S(k)}let N=_.createElement("a",{...h,...L,href:b||w,onClick:p||s?t:R,ref:Nr(y,$),target:i,"data-discover":!v&&n==="render"?"true":void 0});return C&&!v?_.createElement(_.Fragment,null,N,_.createElement(Sr,{page:w})):N});ke.displayName="Link";var Rr=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:r=!1,style:s,to:c,viewTransition:u,children:i,...l},d){let m=je(c,{relative:l.relative}),h=le(),y=_.useContext(ze),{navigator:f,basename:v}=_.useContext(te),b=y!=null&&Fr(m)&&u===!0,p=f.encodeLocation?f.encodeLocation(m).pathname:m.pathname,w=h.pathname,C=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(w=w.toLowerCase(),C=C?C.toLowerCase():null,p=p.toLowerCase()),C&&v&&(C=oe(C,v)||C);const $=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let L=w===p||!r&&w.startsWith(p)&&w.charAt($)==="/",S=C!=null&&(C===p||!r&&C.startsWith(p)&&C.charAt(p.length)==="/"),R={isActive:L,isPending:S,isTransitioning:b},N=L?t:void 0,k;typeof a=="function"?k=a(R):k=[a,L?"active":null,S?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let z=typeof s=="function"?s(R):s;return _.createElement(ke,{...l,"aria-current":N,className:k,ref:d,style:z,to:c,viewTransition:u},typeof i=="function"?i(R):i)});Rr.displayName="NavLink";var Mr=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:r,state:s,method:c=Re,action:u,onSubmit:i,relative:l,preventScrollReset:d,viewTransition:m,...h},y)=>{let f=Pr(),v=Ar(u,{relative:l}),b=c.toLowerCase()==="get"?"get":"post",p=typeof u=="string"&&At.test(u),w=C=>{if(i&&i(C),C.defaultPrevented)return;C.preventDefault();let $=C.nativeEvent.submitter,L=($==null?void 0:$.getAttribute("formmethod"))||c;f($||C.currentTarget,{fetcherKey:t,method:L,navigate:n,replace:r,state:s,relative:l,preventScrollReset:d,viewTransition:m})};return _.createElement("form",{ref:y,method:b,action:v,onSubmit:a?i:w,...h,"data-discover":!p&&e==="render"?"true":void 0})});Mr.displayName="Form";function Tr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ft(e){let t=_.useContext(xe);return O(t,Tr(e)),t}function zr(e,{target:t,replace:n,state:a,preventScrollReset:r,relative:s,viewTransition:c}={}){let u=Yn(),i=le(),l=je(e,{relative:s});return _.useCallback(d=>{if(fr(d,t)){d.preventDefault();let m=n!==void 0?n:Ye(i)===Ye(l);u(e,{replace:m,state:a,preventScrollReset:r,relative:s,viewTransition:c})}},[i,u,l,n,a,t,e,r,s,c])}var Br=0,Dr=()=>`__${String(++Br)}__`;function Pr(){let{router:e}=Ft("useSubmit"),{basename:t}=_.useContext(te),n=sr();return _.useCallback(async(a,r={})=>{let{action:s,method:c,encType:u,formData:i,body:l}=_r(a,t);if(r.navigate===!1){let d=r.fetcherKey||Dr();await e.fetch(d,n,r.action||s,{preventScrollReset:r.preventScrollReset,formData:i,body:l,formMethod:r.method||c,formEncType:r.encType||u,flushSync:r.flushSync})}else await e.navigate(r.action||s,{preventScrollReset:r.preventScrollReset,formData:i,body:l,formMethod:r.method||c,formEncType:r.encType||u,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}function Ar(e,{relative:t}={}){let{basename:n}=_.useContext(te),a=_.useContext(ne);O(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),s={...je(e||".",{relative:t})},c=le();if(e==null){s.search=c.search;let u=new URLSearchParams(s.search),i=u.getAll("index");if(i.some(d=>d==="")){u.delete("index"),i.filter(m=>m).forEach(m=>u.append("index",m));let d=u.toString();s.search=d?`?${d}`:""}}return(!e||e===".")&&r.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Z([n,s.pathname])),Ye(s)}function Fr(e,t={}){let n=_.useContext(Rt);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Ft("useViewTransitionState"),r=je(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=oe(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=oe(n.nextLocation.pathname,a)||n.nextLocation.pathname;return Te(r.pathname,c)!=null||Te(r.pathname,s)!=null}[...Er];const Or="_button_1jbpj_161",Vr="_noMargin_1jbpj_189",Hr="_regular_1jbpj_199",qr="_small_1jbpj_202",Xr="_primary_1jbpj_213",Wr="_noHover_1jbpj_217",Ur="_secondary_1jbpj_233",Yr="_disabled_1jbpj_252",Jr="_hasErrors_1jbpj_272",Gr="_rounded_1jbpj_278",Kr="_hasArrowLeft_1jbpj_282",Zr="_pushprev_1jbpj_1",Qr="_hasArrowRight_1jbpj_320",ea="_pushnext_1jbpj_1",ta="_hasIcon_1jbpj_358",na="_buttonContent_1jbpj_362",F={button:Or,noMargin:Vr,regular:Hr,small:qr,primary:Xr,noHover:Wr,secondary:Ur,disabled:Yr,hasErrors:Jr,rounded:Gr,hasArrowLeft:Kr,pushprev:Zr,hasArrowRight:Qr,pushnext:ea,hasIcon:ta,buttonContent:na},at=({content:e,color:t="primary",size:n="regular",arrow:a="none",disabled:r=!1,inputType:s,defaultChecked:c,hasErrors:u=!1,noHover:i=!1,rounded:l=!1,noMargin:d=!1,href:m,children:h,iconLeft:y,iconRight:f,...v})=>{const b=S=>{switch(S){case"left":return F.hasArrowLeft;case"right":return F.hasArrowRight;default:return""}},p=s==="radio"?c?"primary":"secondary":t,w=D([F.button,F[p],F[n],b(a),i||s==="radio"?F.noHover:null,l&&F.rounded,u&&F.hasErrors,r?F.disabled:null,d?F.noMargin:null,y||f?F.hasIcon:null]),C={"aria-invalid":u||void 0,href:!r&&(m!=null&&m.length)?m:void 0,className:w,...v},$=S=>x.Children.toArray(ye(S)).map(N=>{if(!x.isValidElement(N))return null;const k=N,z=k.type===ke&&typeof k.props=="object"&&k.props!==null&&"to"in k.props;return!r&&z?x.cloneElement(k,{className:w,key:`button-${k.key}`,to:k.props.to},y,o.jsx("span",{className:F.buttonContent,children:k.props.children}),f):x.createElement("button",{...C,key:`button-${k.key}`},y,o.jsx("span",{className:F.buttonContent,children:e||(k.props?k.props.children:null)}),f)});if(s==="button")return o.jsxs("button",{type:"button",...C,children:[y,o.jsx("span",{className:F.buttonContent,children:e||h}),f]});if(s==="radio"){const S={...C};return delete S.href,o.jsxs("label",{className:w,children:[o.jsx("input",{...S,type:"radio"}),y,o.jsx("span",{className:F.buttonContent,children:e}),f]})}if(m!=null&&m.length&&!r){const S={...C};return"type"in S&&delete S.type,o.jsxs("a",{...S,children:[y,o.jsx("span",{className:F.buttonContent,children:e||h}),f]})}return x.isValidElement(h)&&h.type===ke?o.jsx(x.Fragment,{children:$(x.Children.toArray(h))}):o.jsxs("button",{...C,children:[y,o.jsx("span",{className:F.buttonContent,children:e||h}),f]})},ra="_checkBoxIcon_1kc3w_1",aa="_showBox_1kc3w_22",sa="_hasErrors_1kc3w_27",oa="_checked_1kc3w_37",ia="_disabled_1kc3w_53",la="_checkmark_1kc3w_58",de={checkBoxIcon:ra,showBox:aa,hasErrors:sa,checked:oa,disabled:ia,checkmark:la},Je=({size:e="20px",checked:t=!1,disabled:n=!1,showBox:a=!0,hasErrors:r=!1,checkmarkCharacter:s="✔"})=>{const c={height:e,width:e,fontSize:e},u=[de.checkBoxIcon,t&&de.checked,n&&de.disabled,a&&de.showBox,r&&de.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:u,style:c,children:o.jsx("span",{"aria-hidden":!0,className:de.checkmark,children:t?s:""})})},ee="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32.275'%20height='30.469'%20focusable='false'%3e%3cpath%20fill='%239d2024'%20d='m0%2014.355%202.246-6.933c5.176%201.823%208.936%203.402%2011.28%204.736-.62-5.892-.945-9.944-.977-12.158h7.08c-.098%203.223-.472%207.26-1.123%2012.11%203.353-1.693%207.194-3.256%2011.523-4.688l2.246%206.933c-4.134%201.368-8.186%202.28-12.158%202.735%201.986%201.725%204.785%204.801%208.399%209.228l-5.86%204.15c-1.888-2.57-4.118-6.07-6.69-10.497-2.408%204.59-4.524%208.089-6.347%2010.498l-5.762-4.15c3.776-4.656%206.478-7.732%208.106-9.23-4.2-.813-8.187-1.724-11.963-2.734'/%3e%3c/svg%3e",ca="_checkBoxInput_f1w9m_1",ua="_requiredSymbol_f1w9m_6",da="_contentOnly_f1w9m_13",ha="_disabled_f1w9m_13",fa="_labelText_f1w9m_19",ma="_hasErrors_f1w9m_27",he={checkBoxInput:ca,requiredSymbol:ua,contentOnly:da,disabled:ha,labelText:fa,hasErrors:ma},Ot=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:u=!1,hasErrors:i=!1,checkmarkCharacter:l="✔",tabIndex:d=0,children:m,"aria-controls":h,"aria-describedby":y,value:f})=>{const v=[he.checkBoxInput,u&&he.contentOnly,t&&he.disabled,i&&he.hasErrors].filter(Boolean).join(" "),b={checked:e,disabled:t,showBox:!u,hasErrors:u&&i,checkmarkCharacter:l},p={id:r,name:s,type:"checkbox",checked:e,disabled:t,required:n||a,onChange:c,tabIndex:d,"aria-controls":h,"aria-invalid":i?"true":void 0,"aria-describedby":y,value:f};return o.jsxs("label",{htmlFor:r,className:v,children:[u?o.jsx(Je,{...b}):o.jsxs(o.Fragment,{children:[o.jsx(Je,{...b}),o.jsx("input",{...p})]}),o.jsxs("span",{className:he.labelText,children:[m,n&&o.jsx("img",{src:ee,alt:"",className:he.requiredSymbol})]})]})},pa="_checkBoxList_1sp8d_1",_a="_requiredSymbol_1sp8d_16",ft={checkBoxList:pa,requiredSymbol:_a},ga="_headerContainer_t2si7_1",va="_header_t2si7_1",ya="_bigHeader_t2si7_16",$e={headerContainer:ga,header:va,"size-1":"_size-1_t2si7_8",bigHeader:ya,"size-2":"_size-2_t2si7_28","size-3":"_size-3_t2si7_36","size-4":"_size-4_t2si7_44","size-5":"_size-5_t2si7_52"},st=({id:e,content:t,size:n=1,big:a,label:r,htmlTag:s,htmlFor:c,children:u})=>{const i=s||`h${n}`,l=D([$e.header,$e[`size-${n}`],a&&$e.bigHeader]),d=r!=null&&r.length&&typeof r=="string"?{"--label":`"${r}"`}:void 0,m=x.createElement(i,{className:l,id:e||void 0,htmlFor:c||void 0,style:d},t!=null&&t.length?t:u);return o.jsx("div",{className:$e.headerContainer,children:m})},Vt=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>ye(c).map(i=>{var l;return x.isValidElement(i)&&((l=i.type)==null?void 0:l.displayName)==="RadioButtonListItem"?x.cloneElement(i,{requiredGroup:n,compact:a,key:`checkboxListItem-${i.key}`}):i});return o.jsxs("fieldset",{className:ft.checkBoxList,children:[!!(e!=null&&e.length)&&o.jsxs("legend",{children:[t?o.jsx(st,{size:t,children:e}):e,n&&o.jsx("img",{src:ee,alt:"",className:ft.requiredSymbol})]}),s(x.Children.toArray(r))]})},xa="_checkBoxListItem_jnb8z_1",ba="_contentOnly_jnb8z_26",wa="_compact_jnb8z_26",Ca="_disabled_jnb8z_41",Ea="_checked_jnb8z_44",fe={checkBoxListItem:xa,contentOnly:ba,compact:wa,disabled:Ca,checked:Ea},Ht=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:u=!1,compact:i=!1,hasErrors:l=!1,checkmarkCharacter:d="✔","aria-controls":m,"aria-describedby":h,children:y,value:f})=>{const v=D([fe.checkBoxListItem,e&&fe.checked,t&&fe.disabled,i&&fe.compact,u&&fe.contentOnly,l&&fe.hasErrors]),b={onChange:c??(()=>{}),checked:e,disabled:t,required:n,requiredGroup:a,contentOnly:u,hasErrors:l,"aria-controls":m,"aria-describedby":h,id:r,name:s,checkmarkCharacter:d,value:f};return o.jsx("div",{className:v,children:o.jsx(Ot,{...b,children:y})})},ka="_container_f8z49_1",ja={container:ka},qt=({maxWidth:e,children:t})=>{const n={"--max-width":e!=null&&e.length?e:void 0};return o.jsx("div",{className:ja.container,style:n,children:t})},La="_contentBox_1ndvc_1",Sa="_link_1ndvc_8",$a="_content_1ndvc_1",Ia="_title_1ndvc_25",Na="_secondary_1ndvc_28",Ra="_regular_1ndvc_36",Ma="_large_1ndvc_45",me={contentBox:La,link:Sa,default:"_default_1ndvc_21",content:$a,title:Ia,secondary:Na,regular:Ra,large:Ma},Ta=({title:e=null,titleSize:t="regular",content:n="",children:a,color:r="default",href:s=null})=>{const c=()=>{if(!e)return null;const h=`${me.title} ${me[t]}`;return o.jsx("h2",{className:h,children:e})},u=me[r]||"",i=s?me.link:"",l=`${me.contentBox} ${u} ${i}`.trim(),d=n!=null&&n.length?n:a,m=o.jsxs(o.Fragment,{children:[c(),o.jsx("div",{className:me.content,children:d})]});return s?o.jsx("a",{href:s,className:l,children:m}):o.jsx("div",{className:l,children:m})},za="_descriptionDetails_1d1dj_1",Ba="_compact_1d1dj_7",mt={descriptionDetails:za,compact:Ba},Da=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dd",{className:D([mt.descriptionDetails,e&&mt.compact]),style:{"--title-width":t||void 0},children:n}),Pa="_descriptionList_w11ua_1",Aa="_compact_w11ua_13",pt={descriptionList:Pa,compact:Aa},Fa=({compact:e=!1,titleWidth:t,children:n})=>{const a=r=>ye(r).map(c=>x.isValidElement(c)?x.cloneElement(c,{compact:e,titleWidth:t,key:`descriptionListItem-${c.key}`}):c);return x.createElement("dl",{className:D([pt.descriptionList,e&&pt.compact]),style:{"--title-width":t||void 0}},a(x.Children.toArray(n)))},Oa="_descriptionTerm_uuapd_1",Va="_compact_uuapd_8",_t={descriptionTerm:Oa,compact:Va},Ha=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dt",{className:D([_t.descriptionTerm,e&&_t.compact]),style:{"--title-width":t||void 0},children:n}),qa="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='25'%3e%3cpath%20fill='%23072938'%20stroke='%23072938'%20stroke-linecap='round'%20stroke-width='3.23'%20d='m3.97%203.57%2017.44%2018.2m-17.44.01L21.41%203.57'/%3e%3c/svg%3e",Xa="_dialog_psz2f_19",Wa="_dialogContainer_psz2f_36",Ua="_dialogContent_psz2f_41",Ya="_closeButton_psz2f_48",Ja="_isSidebar_psz2f_63",Ga="_modalInVertical_psz2f_1",Ka="_noPadding_psz2f_77",Za="_left_psz2f_116",Qa="_modalInHorizontalLeft_psz2f_1",es="_right_psz2f_123",ts="_modalInHorizontalRight_psz2f_1",ns="_dialogOverlay_psz2f_131",ae={dialog:Xa,dialogContainer:Wa,dialogContent:Ua,closeButton:Ya,isSidebar:Ja,modalInVertical:Ga,noPadding:Ka,left:Za,modalInHorizontalLeft:Qa,right:es,modalInHorizontalRight:ts,dialogOverlay:ns},rs=({maxWidth:e="none",noPadding:t,closeButton:n,onClickOutside:a,modal:r=!0,attachTo:s,hidden:c=!1,children:u})=>{const i=x.useRef(null),l=x.useRef(null),d=x.useCallback(y=>{y&&kt(y)},[]);x.useEffect(()=>{const y=v=>{v.key==="Escape"&&a&&a()},f=v=>{l.current&&!l.current.contains(v.target)&&a()};return document.addEventListener("mousedown",f),document.addEventListener("keydown",y,!1),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",y,!1)}},[a]),x.useEffect(()=>{i.current&&(i.current.close(),c||(r?i.current.showModal():i.current.show()))},[c,r]);const m=s&&D([ae.isSidebar,ae[s]]),h={"--max-width":e};return o.jsx("dialog",{className:D([ae.dialog,m]),ref:i,children:o.jsx("div",{ref:l,className:ae.dialogContainer,style:h,children:o.jsxs("div",{ref:d,className:D([ae.dialogContent,t&&ae.noPadding]),children:[n&&o.jsx("button",{type:"button","aria-label":"Lukk dialog",onClick:a,className:D([ae.closeButton,t&&ae.noPadding]),children:o.jsx("img",{src:qa,alt:""})}),o.jsx("div",{"aria-live":"assertive",role:"dialog",children:u})]})})})},as="_dragAndDropFileInput_pfifv_1",ss="_requiredSymbol_pfifv_1",os="_dragAndDropContainer_pfifv_8",is="_highlighted_pfifv_25",Ie={dragAndDropFileInput:as,requiredSymbol:ss,dragAndDropContainer:os,highlighted:is},ls="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20role='presentation'%3e%3cg%20clip-path='url(%23clip0_1089_7422)'%3e%3cmask%20id='mask0_1089_7422'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%20style='fill:%20white;'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7422)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.4775%204.4775%200%2010%200C15.5225%200%2020%204.4775%2020%2010C20%2015.5225%2015.5225%2020%2010%2020C4.4775%2020%200%2015.5225%200%2010ZM11%2014.0766C11%2014.8122%2010.5188%2015.3333%209.83335%2015.3333C9.13335%2015.3333%208.66669%2014.8122%208.66669%2014.0766C8.66669%2013.341%209.13335%2012.8046%209.83335%2012.8046C10.5188%2012.8046%2011%2013.341%2011%2014.0766ZM10.65%2011.9463H8.98752L8.75419%204.66663H10.8834L10.65%2011.9463Z'%20style='fill:%20rgb(219,%200,%200);'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1089_7422'%3e%3crect%20width='20'%20height='20'%20fill='white'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",cs="_errorMessage_i8u6b_7",us="_errorSign_i8u6b_19",gt={errorMessage:cs,errorSign:us},ve=({id:e,content:t=""})=>{const n=()=>({id:e!=null&&e.length?e:void 0,className:gt.errorMessage});return(typeof t=="string"?t.trim().length>0:!!t)?o.jsxs("span",{"aria-live":"polite",...n(),children:[o.jsx("img",{src:ls,alt:"",className:gt.errorSign}),t]}):null},ds="_label_18de6_1",hs="_inline_18de6_11",fs="_normalCursor_18de6_14",He={label:ds,inline:hs,normalCursor:fs},ie=({inline:e=!1,normalCursor:t=!1,htmlTag:n="label",children:a,id:r,...s})=>{const c=[He.label,e&&He.inline,t&&He.normalCursor].filter(Boolean).join(" "),u={...s,className:c,id:r||void 0};return x.createElement(n,u,a)},ms=({id:e,name:t,onSelectChange:n,onDragAndDropChange:a,label:r="",contentOnly:s=!1,buttonColor:c="primary",buttonContent:u,buttonContentWhenSelectedFile:i,selectedFileName:l,defaultContent:d="",hasErrors:m=!1,errorMessage:h="",required:y=!1,children:f,"data-transaction-name":v})=>{const[b,p]=x.useState(!1),w=x.useRef(null),C=x.useRef(null),$=M=>{M.preventDefault(),M.stopPropagation()},L=(M,P)=>M||P,S=()=>{var M;(M=C.current)==null||M.click()},R=()=>`${e}-errorMessage`,N={id:e,"aria-describedby":m&&(h!=null&&h.toString().length)?R():void 0,"aria-invalid":m?"true":void 0,name:t,required:y},k=l&&i||u,z=x.useCallback(()=>p(!0),[]),q=x.useCallback(()=>p(!1),[]),W=x.useCallback(M=>{var P;$(M),(P=M.dataTransfer)!=null&&P.files&&a(M.dataTransfer.files),p(!1)},[a]);return x.useEffect(()=>{const M=w.current;if(M)return["dragenter","dragover"].forEach(P=>{M.addEventListener(P,z)}),["dragleave","drop"].forEach(P=>{M.addEventListener(P,q)}),["dragenter","dragover","dragleave","drop"].forEach(P=>{M.addEventListener(P,$)}),M.addEventListener("drop",W),()=>{["dragenter","dragover","dragleave","drop"].forEach(P=>{M.removeEventListener(P,$),M.removeEventListener(P,z),M.removeEventListener(P,q)}),M.removeEventListener("drop",W)}},[a]),o.jsxs("div",{className:Ie.dragAndDropFileInput,children:[o.jsxs(ie,{htmlFor:e,children:[r,y&&o.jsx("img",{src:ee,alt:"",className:Ie.requiredSymbol})]}),o.jsx("div",{children:f}),!s&&o.jsxs("div",{ref:w,className:`${Ie.dragAndDropContainer} ${b?Ie.highlighted:""}`,children:[l?o.jsx("div",{children:o.jsxs("span",{children:[o.jsx("b",{children:"Valgt fil:"})," ",l]})}):o.jsx("div",{children:"Slipp fil her"}),o.jsx("input",{...N,ref:C,type:"file",onChange:n}),u&&o.jsxs(o.Fragment,{children:[o.jsx("div",{children:l?"":"eller klikk på knappen for å velge fil"}),o.jsx(at,{size:"small",inputType:"button",color:c,onClick:S,content:k,hasErrors:m,"data-transaction-name":v})]})]}),s&&o.jsx("span",{children:L(l,d)}),o.jsx(ve,{id:R(),content:h})]})},Xt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20role='presentation'%3e%3cpath%20d='M10%200C4.4775%200%200%204.4775%200%2010C0%2015.5225%204.4775%2020%2010%2020C15.5225%2020%2020%2015.5225%2020%2010C20%204.4775%2015.5225%200%2010%200ZM8.30583%2013.3417C8.77583%2011.8508%209.66583%2010.065%209.82333%209.61333C10.0508%208.9575%209.6475%208.66667%208.37333%209.7875L8.09%209.25417C9.54333%207.67333%2012.5358%207.31583%2011.5175%209.765C10.8817%2011.2942%2010.4267%2012.3267%2010.1667%2013.1233C9.7875%2014.2842%2010.745%2013.8133%2011.6825%2012.9475C11.81%2013.1558%2011.8517%2013.2233%2011.9792%2013.4633C9.8975%2015.445%207.58667%2015.62%208.30583%2013.3417ZM12.2575%206.53417C11.8142%206.91167%2011.1575%206.90333%2010.79%206.51583C10.4225%206.12833%2010.4842%205.50917%2010.9267%205.13167C11.37%204.75417%2012.0267%204.76333%2012.3942%205.15C12.76%205.53833%2012.7%206.1575%2012.2575%206.53417Z'%20style='fill:%20rgb(0,%2048,%2069);'%3e%3c/path%3e%3c/svg%3e",ps="_errorBoxContainer_88ulw_7",_s="_messageIn_88ulw_1",gs="_warning_88ulw_14",vs="_error_88ulw_7",ys="_fullScreen_88ulw_22",xs="_errorBox_88ulw_7",bs="_infoSign_88ulw_38",pe={errorBoxContainer:ps,messageIn:_s,warning:gs,error:vs,fullScreen:ys,errorBox:xs,infoSign:bs},ws=({type:e="warning",fullScreen:t=!1,children:n=""})=>o.jsx("div",{className:D([pe.errorBoxContainer,pe[e],t&&pe.fullScreen]),children:o.jsxs("div",{className:D([pe.errorBox,t&&pe.fullScreen]),children:[o.jsx("img",{src:Xt,alt:"",className:pe.infoSign}),n]})}),Cs="_footer_19fad_1",Es={footer:Cs},ks=({children:e})=>o.jsx("footer",{className:Es.footer,children:o.jsx(qt,{children:e})}),js="_infoBox_1mh67_7",Ls="_infoSign_1mh67_15",vt={infoBox:js,infoSign:Ls},Ss=({children:e=""})=>o.jsxs("div",{className:vt.infoBox,children:[o.jsx("img",{src:Xt,alt:"",className:vt.infoSign}),e]}),$s="_inputField_9tnyr_1",Is="_noMargin_9tnyr_4",Ns="_requiredSymbol_9tnyr_10",Rs="_file_9tnyr_17",Ms="_input_9tnyr_1",Ts="_hasErrors_9tnyr_50",zs="_fileInputContainer_9tnyr_62",U={inputField:$s,noMargin:Is,requiredSymbol:Ns,file:Rs,input:Ms,hasErrors:Ts,fileInputContainer:zs},Bs=e=>{const t=typeof e=="string"?new Date(e):e;if(Number.isNaN(t.getTime()))return String(e??"");const n=String(t.getDate()).padStart(2,"0"),a=String(t.getMonth()+1).padStart(2,"0"),r=t.getFullYear();return`${n}.${a}.${r}`},yt=e=>{if(e==null||e==="")return;const t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;const n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`},Ds=e=>!e||["text","search","url","email","tel","password","number"].includes(e),Ps=({id:e,onChange:t=()=>{},onBlur:n,name:a="",type:r="text",disabled:s=!1,required:c=!1,readOnly:u,width:i,value:l,defaultValue:d,elementKey:m,label:h="",contentOnly:y=!1,buttonColor:f="primary",buttonContent:v,selectedFileName:b,placeholder:p="",defaultContent:w="",min:C,max:$,role:L,"aria-describedby":S,"aria-autocomplete":R,hasErrors:N=!1,errorMessage:k="",noMargin:z=!1})=>{const q=x.useRef(null),W=()=>`${e}-errorMessage`,M=i?{maxWidth:i}:{},P=(()=>{if(r==="file")return{};if(r==="date"){const T=l!==void 0?yt(l):void 0,X=l===void 0&&d!==void 0?yt(d):void 0;return l!==void 0?{value:T??""}:d!==void 0?{defaultValue:X}:{}}const I=T=>T instanceof Date?String(T.getTime()):T;return l!==void 0?{value:I(l)}:d!==void 0?{defaultValue:I(d)}:{}})(),E={name:a,readOnly:u,disabled:s,required:c,type:r,role:L,id:e,min:C,max:$,onChange:t,onBlur:n,placeholder:r==="file"?void 0:p,className:N?U.hasErrors:void 0,"aria-describedby":N&&k?W():S,"aria-invalid":N||void 0,"aria-autocomplete":Ds(r)?R:void 0,style:M,...P};if(y){const I=l??d??"",T=r==="date"?I?Bs(I):w:String(I??"")||w;return o.jsxs("div",{className:D([U.inputField,U[r],z&&U.noMargin]),children:[o.jsxs(ie,{htmlFor:e,children:[h,c&&o.jsx("img",{src:ee,alt:"",className:U.requiredSymbol})]}),o.jsx("span",{children:T}),N&&k?o.jsx(ve,{id:W(),content:k}):null]})}return o.jsxs("div",{className:D([U.inputField,U[r],z&&U.noMargin]),children:[o.jsxs(ie,{htmlFor:e,children:[h,c&&o.jsx("img",{src:ee,alt:"",className:U.requiredSymbol}),r==="file"&&o.jsxs("div",{className:U.fileInputContainer,children:[o.jsx("span",{className:U.input,children:b}),v&&o.jsx(at,{color:f,inputType:"button",onClick:()=>{var I;return(I=q.current)==null?void 0:I.click()},content:v})]})]}),o.jsx("input",{...E,ref:q},m||e),N&&k?o.jsx(ve,{id:W(),content:k}):null]})},As="_lead_176gy_1",Fs={lead:As},Os=({id:e,htmlTag:t="p",children:n})=>x.createElement(t,{className:Fs.lead,id:e||void 0},n),Vs="_list_16gsl_1",Hs="_compact_16gsl_10",xt={list:Vs,compact:Hs},qs=({listStyle:e,compact:t=!1,ordered:n=!1,children:a})=>{const r=i=>ye(i).map(d=>x.isValidElement(d)?x.cloneElement(d,{compact:t,key:`listItem-${d.key}`}):d),s=n?"ol":"ul",c=n?"decimal":"disc";return x.createElement(s,{className:`${xt.list} ${t?xt.compact:""}`,style:{["--listStyle"]:e||c}},r(x.Children.toArray(a)))},Xs="_listItem_33xs0_1",Ws="_compact_33xs0_5",bt={listItem:Xs,compact:Ws},Us=({compact:e=!1,children:t})=>{const n=D([bt.listItem,e&&bt.compact]);return o.jsx("li",{className:n,children:t})},Ys="_loadingAnimation_hzd5u_1",Js="_fixed_hzd5u_17",qe={loadingAnimation:Ys,fixed:Js},Gs=({fixed:e=!1,message:t=""})=>{const n=e?`${qe.loadingAnimation} ${qe.fixed}`:qe.loadingAnimation;return o.jsx("div",{className:n,children:t})},Ks="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20viewBox='0%200%20340.2%20412.5'%20style='enable-background:new%200%200%20340.2%20412.5;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23003045;}%20.st1{fill:%2389BAD6;}%20.st2{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3crect%20x='0'%20y='253.2'%20class='st0'%20width='340.2'%20height='105.8'/%3e%3crect%20x='0'%20class='st1'%20width='340.2'%20height='249.4'/%3e%3cg%3e%3cpolygon%20class='st2'%20points='138.5,189.9%20157,202%20157,118.8%20201.7,147.8%20201.7,106.6%20138.5,65.5%20'/%3e%3cpolygon%20class='st2'%20points='63.3,197.7%2063.3,153.5%20106.3,125.5%20106.3,30.2%2030.2,79.7%2030.2,219.2%20'/%3e%3cpolygon%20class='st2'%20points='208.9,101.9%20208.9,181.7%20238,200.5%20238,40.1%20175.9,80.4%20'/%3e%3cpolygon%20class='st2'%20points='113.4,30.2%20113.4,165.2%20131.4,153.5%20131.4,60.9%20131.4,41.9%20'/%3e%3cpolygon%20class='st2'%20points='259.5,110.2%20245.1,119.6%20245.1,195.9%20259.5,186.5%20309.9,219.2%20309.9,142.6%20'/%3e%3c/g%3e%3cpolygon%20class='st0'%20points='0,362.8%2075.6,412%2075.6,362.8%20'/%3e%3cg%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,277.5h6.2c7.3,0,11.6,2.9,11.6,11s-5.3,11-11.6,11h-6.2V277.5z%20M36.5,295.7c5.6,0,7.3-2.2,7.3-7.2%20c0-5-1.7-7.5-7.3-7.5h-2v14.6H36.5z'/%3e%3cpath%20class='st2'%20d='M51.9,277.5h4.3v21.9h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M65.5,291.2h-0.2v8.2H61v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L65.5,291.2z%20M67.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.6-3.5-4.3-3.5h-1.9v7.4H67.2z'/%3e%3cpath%20class='st2'%20d='M80,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6H94v3.6H80V277.5z'/%3e%3cpath%20class='st2'%20d='M97.8,277.5h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M122.8,281.1h-6.3v-3.6h16.8v3.6H127v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M134.7,288.4c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C139.1,299.9,134.7,296,134.7,288.4z%20M151.9,288.6c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C149.4,296.3,151.9,293.5,151.9,288.6z'/%3e%3cpath%20class='st2'%20d='M164.4,291.2h-0.2v8.2h-4.3v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L164.4,291.2z%20M166.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H166.2z'/%3e%3cpath%20class='st2'%20d='M184.5,279.7l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L184.5,279.7z%20M183.6,291.7h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L183.6,291.7z'/%3e%3cpath%20class='st2'%20d='M201.7,281.1h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M215.3,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V277.5z'/%3e%3cpath%20class='st2'%20d='M237.7,281.1h-6.3v-3.6h16.8v3.6H242v18.3h-4.3V281.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,312.9H44v3.6h-9.5v5.5h6.2v3.3h-6.2v9.6h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M45.6,323.9c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C50,335.3,45.6,331.4,45.6,323.9z%20M62.8,324c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C60.3,331.7,62.8,328.9,62.8,324z'/%3e%3cpath%20class='st2'%20d='M75.3,326.7h-0.2v8.2h-4.3v-21.9H77c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L75.3,326.7z%20M77,323.7c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H77z'/%3e%3cpath%20class='st2'%20d='M97.6,312.9h6.5c6,0,8.5,2,8.5,5.5c0,3-1.7,4.5-4.1,5.1v0.1c2.6,0.5,4.5,1.7,4.5,5.1c0,3.5-2.5,6.2-8.6,6.2%20h-6.7V312.9z%20M104.3,321.9c3.2,0,4.1-1.1,4.1-2.9c0-1.8-1.2-2.6-4.1-2.6h-2.4v5.5H104.3z%20M104.4,331.3c3.2,0,4.3-1.1,4.3-3%20c0-1.9-1.1-3-4.3-3h-2.6v6H104.4z'/%3e%3cpath%20class='st2'%20d='M121.2,325.8l-7.2-12.9h4.7l4.8,9.2l4.9-9.2h4.2l-7.2,12.9v9h-4.3V325.8z'/%3e%3cpath%20class='st2'%20d='M133,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C137.3,335.3,133,331.5,133,323.9z'/%3e%3cpath%20class='st2'%20d='M153.8,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C158,335.3,153.8,331.5,153.8,323.9z'/%3e%3cpath%20class='st2'%20d='M175.7,312.9h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M193.8,312.9h4.4l5.2,15.4h0.1l5.3-15.4h4.1l-7.9,21.9h-3.5L193.8,312.9z'/%3e%3cpath%20class='st2'%20d='M219.3,315.1l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L219.3,315.1z%20M218.4,327.1h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L218.4,327.1z'/%3e%3cpath%20class='st2'%20d='M234.1,312.9h4.3v18.3h8.2v3.7h-12.4V312.9z'/%3e%3cpath%20class='st2'%20d='M249.7,312.9h4.3v21.9h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M263.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3cpath%20class='st2'%20d='M277,312.9h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V312.9z'/%3e%3cpath%20class='st2'%20d='M299.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Zs="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='14%20337%20406%20110'%20style='enable-background:new%2014%20337%20406%20110;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;}%20.st1{fill:%23003045;}%20.st2{fill:%2389BAD6;}%20.st3{fill:%23FFFFFF;}%20.st4{display:inline;fill:%23FFFFFF;}%20.st5{display:inline;fill:%23D7D4D1;}%20%3c/style%3e%3cg%20id='skisse__x28_forstørret_x29_'%20class='st0'%3e%3c/g%3e%3cg%20id='logo'%3e%3crect%20id='XMLID_5_'%20x='14'%20y='337'%20class='st1'%20width='640'%20height='110'/%3e%3cg%20id='XMLID_82_'%3e%3crect%20id='XMLID_80_'%20x='14'%20y='337'%20class='st2'%20width='150'%20height='110'/%3e%3cg%20id='XMLID_74_'%3e%3cpolygon%20id='XMLID_79_'%20class='st3'%20points='75.1,420.7%2083.2,426.1%2083.2,389.4%20103,402.2%20103,384%2075.1,365.9%20'/%3e%3cpolygon%20id='XMLID_78_'%20class='st3'%20points='41.9,424.2%2041.9,404.7%2060.9,392.4%2060.9,350.3%2027.3,372.1%2027.3,433.7%20'/%3e%3cpolygon%20id='XMLID_77_'%20class='st3'%20points='106.1,381.9%20106.1,417.1%20118.9,425.4%20118.9,354.7%2091.6,372.5%20'/%3e%3cpolygon%20id='XMLID_76_'%20class='st3'%20points='64,350.3%2064,409.8%2071.9,404.7%2071.9,363.9%2071.9,355.5%20'/%3e%3cpolygon%20id='XMLID_75_'%20class='st3'%20points='128.4,385.6%20122.1,389.7%20122.1,423.4%20128.4,419.3%20150.7,433.7%20150.7,399.9%20'/%3e%3c/g%3e%3c/g%3e%3cg%20id='XMLID_6_'%3e%3crect%20id='XMLID_81_'%20x='164.5'%20y='367.5'%20class='st1'%20width='255.5'%20height='79.5'/%3e%3cg%20id='XMLID_7_'%3e%3cg%20id='XMLID_44_'%3e%3cpath%20id='XMLID_71_'%20class='st3'%20d='M187.3,385.6h4.7c5.5,0,8.7,2.2,8.7,8.2s-4,8.2-8.7,8.2h-4.7V385.6z%20M191.9,399.4%20c4.2,0,5.5-1.6,5.5-5.4c0-3.7-1.3-5.6-5.5-5.6h-1.5v11H191.9z'/%3e%3cpath%20id='XMLID_69_'%20class='st3'%20d='M203.5,385.6h3.2v16.5h-3.2V385.6z'/%3e%3cpath%20id='XMLID_66_'%20class='st3'%20d='M213.7,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L213.7,396z%20M215,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_64_'%20class='st3'%20d='M224.6,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_62_'%20class='st3'%20d='M238,385.6h3.2v7.4l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5H238V385.6z'/%3e%3cpath%20id='XMLID_60_'%20class='st3'%20d='M256.8,388.4H252v-2.7h12.6v2.7H260v13.7h-3.2V388.4z'/%3e%3cpath%20id='XMLID_57_'%20class='st3'%20d='M265.7,393.9c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C269,402.5,265.7,399.6,265.7,393.9z%20M278.7,394c0-3.9-1.9-6-4.8-6s-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C276.7,399.8,278.7,397.7,278.7,394z'/%3e%3cpath%20id='XMLID_54_'%20class='st3'%20d='M288,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L288,396z%20M289.3,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_51_'%20class='st3'%20d='M303.1,387.3l-0.6-1.7h3.3l6.5,16.5H309l-1.3-3.4h-6.1l-1.3,3.4h-3.1L303.1,387.3z%20M302.5,396.4h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L302.5,396.4z'/%3e%3cpath%20id='XMLID_49_'%20class='st3'%20d='M316,388.4h-4.7v-2.7h12.6v2.7h-4.7v13.7H316V388.4z'/%3e%3cpath%20id='XMLID_47_'%20class='st3'%20d='M326.2,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_45_'%20class='st3'%20d='M343.1,388.4h-4.7v-2.7H351v2.7h-4.7v13.7h-3.2L343.1,388.4L343.1,388.4z'/%3e%3c/g%3e%3cg%20id='XMLID_8_'%3e%3cpath%20id='XMLID_42_'%20class='st3'%20d='M187.3,412.3h10.3v2.7h-7.1v4.1h4.7v2.4h-4.7v7.2h-3.2V412.3z'/%3e%3cpath%20id='XMLID_39_'%20class='st3'%20d='M198.8,420.5c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C202.1,429.1,198.8,426.2,198.8,420.5z%20M211.7,420.6c0-3.9-1.9-6-4.8-6c-2.9,0-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C209.8,426.4,211.7,424.3,211.7,420.6z'/%3e%3cpath%20id='XMLID_36_'%20class='st3'%20d='M221.1,422.6h-0.2v6.1h-3.2v-16.4h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L221.1,422.6z%20M222.4,420.3c2,0,3.2-1,3.2-2.9s-1.2-2.7-3.2-2.7h-1.5v5.5L222.4,420.3L222.4,420.3z'/%3e%3cpath%20id='XMLID_32_'%20class='st3'%20d='M237.8,412.3h4.9c4.5,0,6.4,1.5,6.4,4.1c0,2.3-1.3,3.4-3.1,3.8l0,0c2,0.3,3.3,1.3,3.3,3.9%20s-1.8,4.7-6.5,4.7h-5L237.8,412.3L237.8,412.3z%20M242.8,419c2.4,0,3.1-0.8,3.1-2.2c0-1.4-0.9-2-3.1-2H241v4.2H242.8z%20M243,426.1%20c2.4,0,3.2-0.8,3.2-2.3c0-1.4-0.8-2.3-3.2-2.3h-2v4.5h2V426.1z'/%3e%3cpath%20id='XMLID_30_'%20class='st3'%20d='M255.5,422l-5.4-9.7h3.5l3.6,6.9l3.7-6.9h3.2l-5.4,9.7v6.8h-3.2L255.5,422L255.5,422z'/%3e%3cpath%20id='XMLID_28_'%20class='st3'%20d='M264.5,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C267.7,429.1,264.5,426.3,264.5,420.5z'/%3e%3cpath%20id='XMLID_26_'%20class='st3'%20d='M280,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C283.2,429.1,280,426.3,280,420.5z'/%3e%3cpath%20id='XMLID_24_'%20class='st3'%20d='M296.5,412.3h3.2v7.3l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5h-3.2%20L296.5,412.3L296.5,412.3z'/%3e%3cpath%20id='XMLID_22_'%20class='st3'%20d='M310.1,412.3h3.3l3.9,11.5h0.1l4-11.5h3.1l-5.9,16.5H316L310.1,412.3z'/%3e%3cpath%20id='XMLID_19_'%20class='st3'%20d='M329.2,413.9l-0.6-1.7h3.3l6.5,16.5h-3.3l-1.3-3.4h-6.1l-1.3,3.4h-3.1L329.2,413.9z%20M328.6,423h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L328.6,423z'/%3e%3cpath%20id='XMLID_17_'%20class='st3'%20d='M340.4,412.3h3.2V426h6.1v2.8h-9.3L340.4,412.3L340.4,412.3z'/%3e%3cpath%20id='XMLID_15_'%20class='st3'%20d='M352.1,412.3h3.2v16.5h-3.2V412.3z'/%3e%3cpath%20id='XMLID_13_'%20class='st3'%20d='M362.3,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L362.3,415L362.3,415z'/%3e%3cpath%20id='XMLID_11_'%20class='st3'%20d='M372.6,412.3h10.5v2.7h-7.3v3.9h4.9v2.5h-4.9v4.6h7.3v2.7h-10.5V412.3z'/%3e%3cpath%20id='XMLID_9_'%20class='st3'%20d='M389.4,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L389.4,415L389.4,415z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='hamburgermeny'%20class='st0'%3e%3crect%20id='XMLID_94_'%20x='578'%20y='386'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_95_'%20x='578'%20y='423'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_96_'%20x='578'%20y='405'%20class='st4'%20width='60'%20height='6'/%3e%3c/g%3e%3cg%20id='hamburgermeny__hover'%20class='st0'%3e%3crect%20id='XMLID_97_'%20x='578'%20y='386'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_93_'%20x='578'%20y='423'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_91_'%20x='578'%20y='405'%20class='st5'%20width='60'%20height='6'/%3e%3c/g%3e%3c/svg%3e",Qs=e=>(e==null?void 0:e.logo)??"",eo=e=>(e==null?void 0:e.logoPadding)??"",to=e=>(e==null?void 0:e.appName)??"",no="_navigationBarContainer_n1cc0_1",ro="_mainContentLink_n1cc0_1",ao="_compact_n1cc0_30",so="_navigationBar_n1cc0_1",oo="_preventStacking_n1cc0_63",io="_logoContainer_n1cc0_82",lo="_childElements_n1cc0_91",co="_menuToggle_n1cc0_97",uo="_hamburgerIcon_n1cc0_125",ho="_active_n1cc0_161",fo="_dropdownContainer_n1cc0_170",mo="_dropdown_n1cc0_170",po="_primaryList_n1cc0_195",_o="_secondaryList_n1cc0_196",go="_line_n1cc0_392",A={navigationBarContainer:no,mainContentLink:ro,compact:ao,navigationBar:so,preventStacking:oo,logoContainer:io,childElements:lo,menuToggle:co,hamburgerIcon:uo,active:ho,dropdownContainer:fo,dropdown:mo,primaryList:po,secondaryList:_o,line:go},Ge=({listItem:e})=>typeof e=="string"?o.jsx("li",{children:o.jsx("span",{children:e})}):typeof e=="object"?o.jsx("li",{children:o.jsx("a",{href:e.href,children:e.name})}):null,vo=({primaryListItems:e=[],secondaryListItems:t=[],logoLink:n="",logoLinkTitle:a,openLogoLinkInNewTab:r,theme:s,compact:c,mainContentId:u,preventChildElementStacking:i=!1,children:l})=>{const[d,m]=x.useState(!1),h=()=>m(!d),y=L=>({padding:eo(L)}),f=(L=e,S=0)=>L.length?o.jsx("ul",{className:A.primaryList,children:L.map((R,N)=>{const k=`${S}-${N}`;return R.listItems?o.jsxs("li",{children:[o.jsx("span",{children:R.name}),f(R.listItems,S+1)]},k):o.jsx(Ge,{listItem:R},k)})}):null,v=()=>t.length?o.jsx("ul",{className:A.secondaryList,children:t.map(L=>o.jsx(Ge,{listItem:L},L.name))}):null,b=(L,S)=>{const R=Qs(s),N=to(s),k=L&&S?"":R&&N?`${N} logo`:"DIBK logo",z=R?o.jsx("img",{alt:k,src:R,style:y(s)}):o.jsx("img",{alt:k,src:c?Zs:Ks});return L!=null&&L.length?o.jsx("a",{href:L,title:S,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,children:z}):z},p=e.length>0||t.length>0,w=x.useId(),C=x.useId(),$=x.useId();return o.jsxs("div",{className:D([c&&A.compact,A.navigationBarContainer]),children:[u&&o.jsx("a",{id:w,href:`#${u}`,className:A.mainContentLink,children:o.jsx("span",{id:C,children:"Hopp til hovedinnhold"})}),o.jsxs("div",{className:D([A.navigationBar,i&&A.preventStacking]),children:[o.jsx("div",{className:A.logoContainer,children:b(n,a)}),l&&o.jsx("div",{className:A.childElements,children:l}),p&&o.jsxs("button",{type:"button",className:`${A.menuToggle} ${d?A.active:""}`,onClick:h,"aria-expanded":d?"true":"false","aria-controls":"main-menu-dropdown",children:[!c&&"Meny",o.jsxs("span",{className:A.hamburgerIcon,children:[o.jsx("span",{className:A.line}),o.jsx("span",{className:A.line}),o.jsx("span",{className:A.line})]})]})]}),p&&o.jsx("div",{className:D([A.dropdownContainer,d&&A.active]),children:o.jsxs("div",{id:$,className:A.dropdown,children:[f(),v()]})})]})},yo="_paper_1lgl3_1",xo="_noMargin_1lgl3_6",bo="_noPadding_1lgl3_9",Xe={paper:yo,noMargin:xo,noPadding:bo},wo=({noMargin:e=!1,noPadding:t=!1,children:n})=>{const a=[Xe.paper,e&&Xe.noMargin,t&&Xe.noPadding].filter(Boolean).join(" ");return o.jsx("div",{className:a,children:n})},Co="_progressBar_t5aid_1",Eo="_hasErrors_t5aid_23",wt={progressBar:Co,hasErrors:Eo},ko=({progress:e=0,hasErrors:t=!1})=>o.jsx("div",{className:`${wt.progressBar} ${t?wt.hasErrors:""}`,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,style:{"--value":e}}),jo="_radioButtonIcon_32fe0_1",Lo="_hasErrors_32fe0_22",So="_checked_32fe0_32",$o="_disabled_32fe0_48",Ne={radioButtonIcon:jo,hasErrors:Lo,checked:So,disabled:$o},Wt=({size:e="10px",checked:t=!1,disabled:n=!1,hasErrors:a=!1})=>{const r={height:e,width:e},s=[Ne.radioButtonIcon,t&&Ne.checked,n&&Ne.disabled,a&&Ne.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:s,style:r})},Io="_radioButtonInput_1i7cy_1",No="_requiredSymbol_1i7cy_6",Ro="_disabled_1i7cy_13",Mo="_labelText_1i7cy_19",To="_hasErrors_1i7cy_27",_e={radioButtonInput:Io,requiredSymbol:No,disabled:Ro,labelText:Mo,hasErrors:To},Ut=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:u=!1,hasErrors:i=!1,inputValue:l,tabIndex:d,children:m,"aria-controls":h,"aria-describedby":y})=>{const f=[_e.radioButtonInput,e&&_e.checked,t&&_e.disabled,i&&_e.hasErrors].filter(Boolean).join(" "),v={checked:e,disabled:t,hasErrors:!u&&i},b={id:r,name:s,type:"radio",value:l,checked:e,disabled:t,required:n||a,onChange:c,tabIndex:d??void 0,"aria-controls":h,"aria-invalid":i?"true":void 0,"aria-describedby":y};return o.jsxs("label",{htmlFor:r,className:f,children:[!u&&o.jsxs(o.Fragment,{children:[o.jsx(Wt,{...v}),o.jsx("input",{...b})]}),o.jsxs("span",{className:_e.labelText,children:[m,n&&o.jsx("img",{src:ee,alt:"",className:_e.requiredSymbol})]})]})},zo="_radioButtonList_1cyu3_1",Bo="_requiredSymbol_1cyu3_16",Ct={radioButtonList:zo,requiredSymbol:Bo},Do=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>ye(c).map(i=>{var l;return x.isValidElement(i)&&((l=i.type)==null?void 0:l.displayName)==="RadioButtonListItem"?x.cloneElement(i,{requiredGroup:n,compact:a,key:`radioButtonListItem-${i.key}`}):i});return o.jsxs("fieldset",{className:Ct.radioButtonList,children:[!!(e!=null&&e.length)&&o.jsxs("legend",{children:[t?o.jsx(st,{size:t,children:e}):e,n&&o.jsx("img",{src:ee,alt:"",className:Ct.requiredSymbol})]}),s(x.Children.toArray(r))]})},Po="_radioButtonListItem_1ggab_1",Ao="_contentOnly_1ggab_26",Fo="_compact_1ggab_26",Oo="_disabled_1ggab_41",Vo="_checked_1ggab_44",ge={radioButtonListItem:Po,contentOnly:Ao,compact:Fo,disabled:Oo,checked:Vo},Ho=({inputValue:e,checked:t=!1,disabled:n=!1,required:a=!1,requiredGroup:r=!1,name:s="",id:c,onChange:u,contentOnly:i=!1,compact:l=!1,hasErrors:d=!1,"aria-controls":m,"aria-describedby":h,children:y})=>{const f=D([ge.radioButtonListItem,t&&ge.checked,n&&ge.disabled,l&&ge.compact,i&&ge.contentOnly,d&&ge.hasErrors]),v={onChange:u,inputValue:e,checked:t,disabled:n,required:a,requiredGroup:r,contentOnly:i,hasErrors:d,"aria-controls":m,"aria-describedby":h,id:c,name:s};return o.jsx("div",{className:f,children:o.jsx(Ut,{...v,children:y})})},qo="_select_11vnt_1",Xo="_requiredSymbol_11vnt_1",Wo="_selectContainer_11vnt_8",Uo="_selectListArrow_11vnt_11",Yo="_multipleSelectDropdown_11vnt_40",Jo="_multipleSelectElement_11vnt_50",Go="_hasErrors_11vnt_98",se={select:qo,requiredSymbol:Xo,selectContainer:Wo,selectListArrow:Uo,multipleSelectDropdown:Yo,multipleSelectElement:Jo,hasErrors:Go},Ko=e=>{const{id:t,name:n="",required:a=!1,disabled:r=!1,options:s=[],width:c,label:u="",contentOnly:i=!1,keyAsContent:l=!1,placeholder:d="",placeholderValue:m="",defaultContent:h="",role:y,"aria-describedby":f,hasErrors:v=!1,errorMessage:b=""}=e,[p,w]=x.useState(!1),C=x.useRef(null),$=x.useCallback(E=>{E&&kt(E)},[]),L=()=>w(!1);x.useEffect(()=>{const E=T=>{T.key==="Escape"&&L()},I=T=>{C.current&&!C.current.contains(T.target)&&L()};return document.addEventListener("mousedown",I),document.addEventListener("keydown",E),()=>{document.removeEventListener("mousedown",I),document.removeEventListener("keydown",E)}},[]);const S=E=>typeof E=="object"?{key:E.key,value:E.value}:{key:E,value:E},R=E=>{const I=s.map(S).find(T=>T.value===E||T.key===E);return I?I.key??I.value:E},N=E=>Array.isArray(E)?E:E==null?[]:[E],k=()=>e.value!==void 0?N(e.value):e.defaultValue!==void 0?N(e.defaultValue):[],z=()=>{const E=k();return E.length===0?d||h||"":E.map(R).join(", ")},q=E=>{const I=k(),X=I.includes(E)?I.filter(ce=>ce!==E):[...I,E];e.multiple&&e.onChange(X)},W=()=>{const E=k();return s.map(I=>{const{key:T,value:X}=S(I),ce=E.includes(X),g=`${t}-${String(X)}`;return o.jsx(Ht,{id:g,value:X,checked:ce,onChange:()=>q(X),children:T},String(X))})},M=()=>`${t}-errorMessage`;if(i){const E=k(),I=E.length===0?h:l?E.map(R).join(", "):E.join(", ");return o.jsxs("div",{className:se.select,children:[o.jsx(ie,{htmlFor:t,children:u}),o.jsx("span",{children:I})]})}const P=E=>{const I=s.map(S).find(T=>String(T.value)===E);return I?I.value:E};return o.jsxs("div",{className:se.select,children:[o.jsxs(ie,{htmlFor:t,children:[u,a&&o.jsx("img",{src:ee,alt:"",className:se.requiredSymbol})]}),o.jsxs("div",{className:se.selectContainer,style:c?{maxWidth:c}:void 0,children:[o.jsx("span",{className:se.selectListArrow}),e.multiple?o.jsxs("div",{ref:C,children:[o.jsx("button",{type:"button",id:t,"aria-haspopup":"listbox","aria-expanded":p,onClick:()=>w(E=>!E),className:se.multipleSelectElement,disabled:r,children:z()}),p&&o.jsx("div",{ref:$,className:se.multipleSelectDropdown,role:"listbox","aria-multiselectable":"true","aria-labelledby":t,children:o.jsx(Vt,{compact:!0,children:W()})})]}):o.jsxs("select",{name:n,required:a,disabled:r,onChange:E=>e.onChange(P(E.target.value)),id:t,role:y,className:D([v&&se.hasErrors]),"aria-describedby":v&&b?M():f,"aria-invalid":v||void 0,style:c?{maxWidth:c}:void 0,...e.value!==void 0?{value:e.value}:e.defaultValue!==void 0?{defaultValue:e.defaultValue}:{},children:[d&&o.jsx("option",{value:m,disabled:!0,children:d}),s.map(E=>{const{key:I,value:T}=S(E);return o.jsx("option",{value:String(T),children:I},String(T))})]})]}),o.jsx(ve,{id:M(),content:b})]})},Zo="_table_19a1d_1",Qo="_thButton_19a1d_30",ei="_sortable_19a1d_41",ti="_label_19a1d_51",ni="_sortIndicators_19a1d_55",ri="_sortArrow_19a1d_62",ai="_activeArrow_19a1d_65",si="_evenRow_19a1d_69",oi="_oddRow_19a1d_72",Y={table:Zo,thButton:Qo,sortable:ei,label:ti,sortIndicators:ni,sortArrow:ri,activeArrow:ai,evenRow:si,oddRow:oi},ii=({columns:e,data:t,caption:n,getRowId:a})=>{const[r,s]=x.useState(null);x.useEffect(()=>{const d=e.find(m=>m.sortable);s(d?{headerKey:d.key,direction:"asc"}:null)},[e]);const c=x.useMemo(()=>{const d=new Map;for(const m of e)d.set(m.key,m);return d},[e]),u=x.useMemo(()=>{if(!r)return t;const d=c.get(r.headerKey);if(!d)return t;const m=d.sortAccessor??d.accessor;if(!m)return t;const h=[...t];return h.sort((y,f)=>{const v=m(y),b=m(f);if(v==null||b==null)return 0;if(typeof v=="number"&&typeof b=="number")return r.direction==="asc"?v-b:b-v;if(v instanceof Date&&b instanceof Date)return r.direction==="asc"?v.getTime()-b.getTime():b.getTime()-v.getTime();const p=String(v),w=String(b);return r.direction==="asc"?p.localeCompare(w,void 0,{numeric:!0}):w.localeCompare(p,void 0,{numeric:!0})}),h},[t,r,c]),i=d=>{s(m=>!m||m.headerKey!==d?{headerKey:d,direction:"asc"}:{headerKey:d,direction:m.direction==="asc"?"desc":"asc"})},l=(d,m)=>{if(m)return(r==null?void 0:r.headerKey)!==d?"none":r.direction==="asc"?"ascending":"descending"};return o.jsxs("table",{className:Y.table,children:[n&&o.jsx("caption",{children:n}),o.jsx("thead",{children:o.jsx("tr",{children:e.map(({key:d,label:m,sortable:h,ariaLabel:y})=>{const f=(r==null?void 0:r.headerKey)===d,v=f&&r.direction==="asc",b=f&&r.direction==="desc";return o.jsx("th",{"aria-sort":l(d,h),children:o.jsxs("button",{type:"button",className:`${Y.thButton} ${h?Y.sortable:""}`,onClick:h?()=>i(d):void 0,disabled:!h,"aria-label":h?`${y??m}: sort ${f&&v?"descending":"ascending"}`:void 0,children:[o.jsx("span",{className:Y.label,children:m}),h&&o.jsxs("span",{className:Y.sortIndicators,"aria-hidden":"true",children:[o.jsx("span",{className:`${Y.sortArrow} ${v?Y.activeArrow:""}`,children:"▲"}),o.jsx("span",{className:`${Y.sortArrow} ${b?Y.activeArrow:""}`,children:"▼"})]})]})},d)})})}),o.jsx("tbody",{children:u.map((d,m)=>o.jsx("tr",{className:m%2===0?Y.evenRow:Y.oddRow,children:e.map(h=>{var y;return o.jsx("td",{children:h.render?h.render(d):String(((y=h.accessor)==null?void 0:y.call(h,d))??"")},h.key)})},a==null?void 0:a(d,m)))})]})},li=e=>{let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length;for(let r=0;r<e;r++)t+=n.charAt(Math.floor(Math.random()*a));return t},ci="_textarea_1596u_1",ui="_requiredSymbol_1596u_4",di="_hasErrors_1596u_55",We={textarea:ci,requiredSymbol:ui,hasErrors:di},hi=({id:e,onChange:t,onBlur:n,name:a="",required:r=!1,readOnly:s,disabled:c,width:u,resize:i="both",value:l,defaultValue:d,elementKey:m,rows:h,label:y="",contentOnly:f=!1,placeholder:v="",defaultContent:b="","aria-describedby":p,hasErrors:w=!1,errorMessage:C=""})=>{const $=()=>`${e}-errorMessage`,L=!(l!=null&&l.length)&&(d!=null&&d.length)?d:void 0,S=m||`${e}-${li(6)}`,R={...u&&{maxWidth:u},...i&&{resize:i}},N={name:a,readOnly:s,disabled:c,required:r,id:e,onChange:t,onBlur:n,value:L?void 0:l,defaultValue:L||void 0,placeholder:v,rows:h?parseInt(h,10):void 0,className:w?We.hasErrors:"","aria-describedby":w&&C?$():p,"aria-invalid":w?"true":void 0,style:R};return o.jsxs("div",{className:We.textarea,children:[o.jsxs(ie,{htmlFor:e,children:[y,r&&o.jsx("img",{src:ee,alt:"",className:We.requiredSymbol})]}),f?o.jsx("span",{children:l||d||b}):o.jsx("textarea",{...N},S),o.jsx(ve,{id:$(),content:C})]})},fi=({theme:e,children:t})=>{const n=nn(e),a=an(n);return rn("theme-provider",`:root {${a}}`),t},mi="_toggleNavigationButton_1eb2w_1",pi={toggleNavigationButton:mi},_i=({id:e,htmlTag:t="button",showText:n,hideText:a,buttonProps:r={},isOpen:s=!1})=>x.createElement(t,{...r,className:pi.toggleNavigationButton,id:e||void 0},s?a:n),gi="_wizardTopnavItem_5ar16_1",vi="_wizardTopnavItemContent_5ar16_4",yi="_vertical_5ar16_7",xi="_stepNumber_5ar16_24",bi="_stepName_5ar16_36",wi="_active_5ar16_46",Ci="_finished_5ar16_46",Ei="_hasErrors_5ar16_46",ki="_horizontal_5ar16_64",G={wizardTopnavItem:gi,wizardTopnavItemContent:vi,vertical:yi,stepNumber:xi,stepName:bi,active:wi,finished:Ci,hasErrors:Ei,horizontal:ki},ji="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20aria-label='Ferdig'%20style='fill:%20rgb(23,%20121,%2018);'%3e%3cmask%20id='mask0_1089_7430'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7430)'%3e%3cpath%20d='M5.71427%208.57149L3.80951%2010.4762L8.57141%2015.2382L17.1428%206.66672L15.2381%204.76196L8.57141%2011.4286L5.71427%208.57149Z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",Yt=({step:e,index:t,activeStepId:n,direction:a="vertical"})=>{const r=n===e.id,s=a==="vertical",c=D([G.wizardTopnavItem,r&&G.active,e.finished&&G.finished,e.hasErrors&&G.hasErrors,G[a]]),u=r?"step":void 0,i=()=>o.jsxs(o.Fragment,{children:[o.jsx("span",{className:G.stepNumber,children:t+1}),o.jsx("span",{className:G.stepName,children:e.name}),s&&e.finished&&!r&&o.jsx("img",{src:ji,alt:"",className:G.checkmarkSymbol})]});return e.link&&Object.keys(e.link).length>0?o.jsx("li",{className:c,children:o.jsx(ke,{to:e.link,"aria-current":u,className:G.wizardTopnavItemContent,children:i()})}):o.jsx("li",{className:c,children:o.jsx("span",{"aria-current":u,className:G.wizardTopnavItemContent,children:i()})})},Li="_wizardTopnavContainer_qiy2o_1",Si="_wizardTopnav_qiy2o_1",$i="_vertical_qiy2o_6",Ii="_horizontal_qiy2o_11",Ue={wizardTopnavContainer:Li,wizardTopnav:Si,vertical:$i,horizontal:Ii},Ni=({steps:e,activeStepId:t,direction:n="vertical","aria-label":a})=>{const r=Object.keys(e),c=`I dette skjemaet er det totalt ${r.length} steg som du skal gå igjennom`,u=a!=null&&a.length?a:c;return o.jsx("nav",{"aria-label":u,className:D([Ue.wizardTopnavContainer,Ue[n]]),children:o.jsx("ol",{className:Ue.wizardTopnav,children:r.map((i,l)=>o.jsx(Yt,{step:e[i],activeStepId:t,direction:n,index:l},i))})})};exports.Accordion=wn;exports.Button=at;exports.CheckBoxIcon=Je;exports.CheckBoxInput=Ot;exports.CheckBoxList=Vt;exports.CheckBoxListItem=Ht;exports.Container=qt;exports.ContentBox=Ta;exports.DescriptionDetails=Da;exports.DescriptionList=Fa;exports.DescriptionTerm=Ha;exports.Dialog=rs;exports.DragAndDropFileInput=ms;exports.ErrorBox=ws;exports.ErrorMessage=ve;exports.Footer=ks;exports.Header=st;exports.InfoBox=Ss;exports.InputField=Ps;exports.Label=ie;exports.Lead=Os;exports.List=qs;exports.ListItem=Us;exports.LoadingAnimation=Gs;exports.NavigationBar=vo;exports.NavigationBarListItem=Ge;exports.Paper=wo;exports.ProgressBar=ko;exports.RadioButtonIcon=Wt;exports.RadioButtonInput=Ut;exports.RadioButtonList=Do;exports.RadioButtonListItem=Ho;exports.Select=Ko;exports.Table=ii;exports.Textarea=hi;exports.ThemeProvider=fi;exports.ToggleNavigationButton=_i;exports.WizardNavigation=Ni;exports.WizardNavigationStep=Yt;
34
34
  //# sourceMappingURL=index.cjs.js.map