@equinor/fusion-framework-cli 1.2.10 → 1.2.12
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.2.12](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@1.2.11...@equinor/fusion-framework-cli@1.2.12) (2022-12-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @equinor/fusion-framework-cli
|
|
9
|
+
|
|
10
|
+
## [1.2.11](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@1.2.10...@equinor/fusion-framework-cli@1.2.11) (2022-12-21)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @equinor/fusion-framework-cli
|
|
13
|
+
|
|
6
14
|
## [1.2.10](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-cli@1.2.9...@equinor/fusion-framework-cli@1.2.10) (2022-12-19)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @equinor/fusion-framework-cli
|
|
@@ -19,7 +19,7 @@ Error Description: `+c.message)),[2,null];case 4:return n||(this.logger.warning(
|
|
|
19
19
|
`)}},e.deploy=function(){var n=this.sheet;if(!!n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=`
|
|
20
20
|
`+n.toString()+`
|
|
21
21
|
`}},e.insertRules=function(n,i){for(var o=0;o<n.index.length;o++)this.insertRule(n.index[o],o,i)},e.insertRule=function(n,i,o){if(o===void 0&&(o=this.element.sheet),n.rules){var a=n,s=o;if(n.type==="conditional"||n.type==="keyframes"){var c=Xm(o,i);if(s=Qm(o,a.toString({children:!1}),c),s===!1)return!1;this.refCssRule(n,c,s)}return this.insertRules(a.rules,s),s}var l=n.toString();if(!l)return!1;var d=Xm(o,i),h=Qm(o,l,d);return h===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(n,d,h),h)},e.refCssRule=function(n,i,o){n.renderable=o,n.options.parent instanceof O3&&this.cssRules.splice(i,0,o)},e.deleteRule=function(n){var i=this.element.sheet,o=this.indexOf(n);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},e.indexOf=function(n){return this.cssRules.indexOf(n)},e.replaceRule=function(n,i){var o=this.indexOf(n);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},e.getRules=function(){return this.element.sheet.cssRules},t}(),rE=0,nE=function(){function t(r){this.id=rE++,this.version="10.9.2",this.plugins=new $x,this.options={id:{minify:!1},createGenerateId:Ym,Renderer:Tc?tE:null,plugins:[]},this.generateId=Ym({minify:!1});for(var n=0;n<Gm.length;n++)this.plugins.use(Gm[n],{queue:"internal"});this.setup(r)}var e=t.prototype;return e.setup=function(n){return n===void 0&&(n={}),n.createGenerateId&&(this.options.createGenerateId=n.createGenerateId),n.id&&(this.options.id=ke({},this.options.id,n.id)),(n.createGenerateId||n.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),n.insertionPoint!=null&&(this.options.insertionPoint=n.insertionPoint),"Renderer"in n&&(this.options.Renderer=n.Renderer),n.plugins&&this.use.apply(this,n.plugins),this},e.createStyleSheet=function(n,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=$s.index===0?0:$s.index+1);var s=new O3(n,ke({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},e.removeStyleSheet=function(n){return n.detach(),$s.remove(n),this},e.createRule=function(n,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof n=="object")return this.createRule(void 0,n,i);var a=ke({},o,{name:n,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=p0(n,i,a);return s&&this.plugins.onProcessRule(s),s},e.use=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(s){n.plugins.use(s)}),this},t}(),V3=function(e){return new nE(e)},v0=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function F3(t){var e=null;for(var r in t){var n=t[r],i=typeof n;if(i==="function")e||(e={}),e[r]=n;else if(i==="object"&&n!==null&&!Array.isArray(n)){var o=F3(n);o&&(e||(e={}),e[r]=o)}}return e}V3();var U3=Date.now(),Hh="fnValues"+U3,Lh="fnStyle"+ ++U3,iE=function(){return{onCreateRule:function(r,n,i){if(typeof n!="function")return null;var o=p0(r,{},i);return o[Lh]=n,o},onProcessStyle:function(r,n){if(Hh in n||Lh in n)return r;var i={};for(var o in r){var a=r[o];typeof a=="function"&&(delete r[o],i[o]=a)}return n[Hh]=i,r},onUpdate:function(r,n,i,o){var a=n,s=a[Lh];s&&(a.style=s(r)||{});var c=a[Hh];if(c)for(var l in c)a.prop(l,c[l](r),o)}}};const oE=iE;var Ii="@global",k2="@global ",aE=function(){function t(r,n,i){this.type="global",this.at=Ii,this.isProcessed=!1,this.key=r,this.options=i,this.rules=new k1(ke({},i,{parent:this}));for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.indexOf=function(n){return this.rules.indexOf(n)},e.toString=function(n){return this.rules.toString(n)},t}(),sE=function(){function t(r,n,i){this.type="global",this.at=Ii,this.isProcessed=!1,this.key=r,this.options=i;var o=r.substr(k2.length);this.rule=i.jss.createRule(o,n,ke({},i,{parent:this}))}var e=t.prototype;return e.toString=function(n){return this.rule?this.rule.toString(n):""},t}(),cE=/\s*,\s*/g;function $3(t,e){for(var r=t.split(cE),n="",i=0;i<r.length;i++)n+=e+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}function lE(t,e){var r=t.options,n=t.style,i=n?n[Ii]:null;if(!!i){for(var o in i)e.addRule(o,i[o],ke({},r,{selector:$3(o,t.selector)}));delete n[Ii]}}function dE(t,e){var r=t.options,n=t.style;for(var i in n)if(!(i[0]!=="@"||i.substr(0,Ii.length)!==Ii)){var o=$3(i.substr(Ii.length),t.selector);e.addRule(o,n[i],ke({},r,{selector:o})),delete n[i]}}function hE(){function t(r,n,i){if(!r)return null;if(r===Ii)return new aE(r,n,i);if(r[0]==="@"&&r.substr(0,k2.length)===k2)return new sE(r,n,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=r),null}function e(r,n){r.type!=="style"||!n||(lE(r,n),dE(r,n))}return{onCreateRule:t,onProcessRule:e}}var Jm=/\s*,\s*/g,uE=/&/g,fE=/\$([\w-]+)/g;function pE(){function t(i,o){return function(a,s){var c=i.getRule(s)||o&&o.getRule(s);return c?c.selector:s}}function e(i,o){for(var a=o.split(Jm),s=i.split(Jm),c="",l=0;l<a.length;l++)for(var d=a[l],h=0;h<s.length;h++){var u=s[h];c&&(c+=", "),c+=u.indexOf("&")!==-1?u.replace(uE,d):d+" "+u}return c}function r(i,o,a){if(a)return ke({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var c=ke({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete c.name,c}function n(i,o,a){if(o.type!=="style")return i;var s=o,c=s.options.parent,l,d;for(var h in i){var u=h.indexOf("&")!==-1,f=h[0]==="@";if(!(!u&&!f)){if(l=r(s,c,l),u){var v=e(h,s.selector);d||(d=t(c,a)),v=v.replace(fE,d);var g=s.key+"-"+h;"replaceRule"in c?c.replaceRule(g,i[h],ke({},l,{selector:v})):c.addRule(g,i[h],ke({},l,{selector:v}))}else f&&c.addRule(h,{},l).addRule(s.key,i[h],{selector:s.selector});delete i[h]}}return i}return{onProcessStyle:n}}var mE=/[A-Z]/g,vE=/^ms-/,Oh={};function gE(t){return"-"+t.toLowerCase()}function j3(t){if(Oh.hasOwnProperty(t))return Oh[t];var e=t.replace(mE,gE);return Oh[t]=vE.test(e)?"-"+e:e}function e1(t){var e={};for(var r in t){var n=r.indexOf("--")===0?r:j3(r);e[n]=t[r]}return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(e1):e.fallbacks=e1(t.fallbacks)),e}function yE(){function t(r){if(Array.isArray(r)){for(var n=0;n<r.length;n++)r[n]=e1(r[n]);return r}return e1(r)}function e(r,n,i){if(n.indexOf("--")===0)return r;var o=j3(n);return n===o?r:(i.prop(o,r),null)}return{onProcessStyle:t,onChangeValue:e}}var C=v0&&CSS?CSS.px:"px",bl=v0&&CSS?CSS.ms:"ms",Uo=v0&&CSS?CSS.percent:"%",_E={"animation-delay":bl,"animation-duration":bl,"background-position":C,"background-position-x":C,"background-position-y":C,"background-size":C,border:C,"border-bottom":C,"border-bottom-left-radius":C,"border-bottom-right-radius":C,"border-bottom-width":C,"border-left":C,"border-left-width":C,"border-radius":C,"border-right":C,"border-right-width":C,"border-top":C,"border-top-left-radius":C,"border-top-right-radius":C,"border-top-width":C,"border-width":C,"border-block":C,"border-block-end":C,"border-block-end-width":C,"border-block-start":C,"border-block-start-width":C,"border-block-width":C,"border-inline":C,"border-inline-end":C,"border-inline-end-width":C,"border-inline-start":C,"border-inline-start-width":C,"border-inline-width":C,"border-start-start-radius":C,"border-start-end-radius":C,"border-end-start-radius":C,"border-end-end-radius":C,margin:C,"margin-bottom":C,"margin-left":C,"margin-right":C,"margin-top":C,"margin-block":C,"margin-block-end":C,"margin-block-start":C,"margin-inline":C,"margin-inline-end":C,"margin-inline-start":C,padding:C,"padding-bottom":C,"padding-left":C,"padding-right":C,"padding-top":C,"padding-block":C,"padding-block-end":C,"padding-block-start":C,"padding-inline":C,"padding-inline-end":C,"padding-inline-start":C,"mask-position-x":C,"mask-position-y":C,"mask-size":C,height:C,width:C,"min-height":C,"max-height":C,"min-width":C,"max-width":C,bottom:C,left:C,top:C,right:C,inset:C,"inset-block":C,"inset-block-end":C,"inset-block-start":C,"inset-inline":C,"inset-inline-end":C,"inset-inline-start":C,"box-shadow":C,"text-shadow":C,"column-gap":C,"column-rule":C,"column-rule-width":C,"column-width":C,"font-size":C,"font-size-delta":C,"letter-spacing":C,"text-decoration-thickness":C,"text-indent":C,"text-stroke":C,"text-stroke-width":C,"word-spacing":C,motion:C,"motion-offset":C,outline:C,"outline-offset":C,"outline-width":C,perspective:C,"perspective-origin-x":Uo,"perspective-origin-y":Uo,"transform-origin":Uo,"transform-origin-x":Uo,"transform-origin-y":Uo,"transform-origin-z":Uo,"transition-delay":bl,"transition-duration":bl,"vertical-align":C,"flex-basis":C,"shape-margin":C,size:C,gap:C,grid:C,"grid-gap":C,"row-gap":C,"grid-row-gap":C,"grid-column-gap":C,"grid-template-rows":C,"grid-template-columns":C,"grid-auto-rows":C,"grid-auto-columns":C,"box-shadow-x":C,"box-shadow-y":C,"box-shadow-blur":C,"box-shadow-spread":C,"font-line-height":C,"text-shadow-x":C,"text-shadow-y":C,"text-shadow-blur":C};function B3(t){var e=/(-[a-z])/g,r=function(a){return a[1].toUpperCase()},n={};for(var i in t)n[i]=t[i],n[i.replace(e,r)]=t[i];return n}var bE=B3(_E);function js(t,e,r){if(e==null)return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]=js(t,e[n],r);else if(typeof e=="object")if(t==="fallbacks")for(var i in e)e[i]=js(i,e[i],r);else for(var o in e)e[o]=js(t+"-"+o,e[o],r);else if(typeof e=="number"&&isNaN(e)===!1){var a=r[t]||bE[t];return a&&!(e===0&&a===C)?typeof a=="function"?a(e).toString():""+e+a:e.toString()}return e}function wE(t){t===void 0&&(t={});var e=B3(t);function r(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=js(a,i[a],e);return i}function n(i,o){return js(o,i,e)}return{onProcessStyle:r,onChangeValue:n}}function A2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xE(t){if(Array.isArray(t))return A2(t)}function EE(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function CE(t,e){if(!!t){if(typeof t=="string")return A2(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A2(t,e)}}function zE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SE(t){return xE(t)||EE(t)||CE(t)||zE()}var xs="",T2="",q3="",G3="",kE=Tc&&"ontouchstart"in document.documentElement;if(Tc){var Dh={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},AE=document.createElement("p"),Nh=AE.style,TE="Transform";for(var Vh in Dh)if(Vh+TE in Nh){xs=Vh,T2=Dh[Vh];break}xs==="Webkit"&&"msHyphens"in Nh&&(xs="ms",T2=Dh.ms,G3="edge"),xs==="Webkit"&&"-apple-trailing-word"in Nh&&(q3="apple")}var oe={js:xs,css:T2,vendor:q3,browser:G3,isTouch:kE};function IE(t){return t[1]==="-"||oe.js==="ms"?t:"@"+oe.css+"keyframes"+t.substr(10)}var ME={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:oe.js==="ms"?"-webkit-"+e:oe.css+e}},PE={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:oe.js==="Webkit"?oe.css+"print-"+e:e}},RE=/[-\s]+(.)?/g;function HE(t,e){return e?e.toUpperCase():""}function g0(t){return t.replace(RE,HE)}function Di(t){return g0("-"+t)}var LE={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if(oe.js==="Webkit"){var n="mask-image";if(g0(n)in r)return e;if(oe.js+Di(n)in r)return oe.css+e}return e}},OE={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:oe.vendor==="apple"&&!oe.isTouch?oe.css+e:e}},DE={noPrefill:["transform"],supportedProperty:function(e,r,n){return e!=="transform"?!1:n.transform?e:oe.css+e}},NE={noPrefill:["transition"],supportedProperty:function(e,r,n){return e!=="transition"?!1:n.transition?e:oe.css+e}},VE={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:oe.js==="Webkit"||oe.js==="ms"&&oe.browser!=="edge"?oe.css+e:e}},FE={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:oe.js==="Moz"||oe.js==="ms"||oe.vendor==="apple"?oe.css+e:e}},UE={supportedProperty:function(e,r){if(!/^break-/.test(e))return!1;if(oe.js==="Webkit"){var n="WebkitColumn"+Di(e);return n in r?oe.css+"column-"+e:!1}if(oe.js==="Moz"){var i="page"+Di(e);return i in r?"page-"+e:!1}return!1}},$E={supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(oe.js==="Moz")return e;var n=e.replace("-inline","");return oe.js+Di(n)in r?oe.css+n:!1}},jE={supportedProperty:function(e,r){return g0(e)in r?e:!1}},BE={supportedProperty:function(e,r){var n=Di(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:oe.js+n in r?oe.css+e:oe.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+e:!1}},qE={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:oe.js==="ms"?""+oe.css+e:e}},GE={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:oe.js==="ms"?oe.css+"scroll-chaining":e}},KE={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},WE={supportedProperty:function(e,r){var n=KE[e];return n&&oe.js+Di(n)in r?oe.css+n:!1}},K3={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},YE=Object.keys(K3),QE=function(e){return oe.css+e},XE={supportedProperty:function(e,r,n){var i=n.multiple;if(YE.indexOf(e)>-1){var o=K3[e];if(!Array.isArray(o))return oe.js+Di(o)in r?oe.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(oe.js+Di(o[0])in r))return!1;return o.map(QE)}return!1}},W3=[ME,PE,LE,OE,DE,NE,VE,FE,UE,$E,jE,BE,qE,GE,WE,XE],Zm=W3.filter(function(t){return t.supportedProperty}).map(function(t){return t.supportedProperty}),JE=W3.filter(function(t){return t.noPrefill}).reduce(function(t,e){return t.push.apply(t,SE(e.noPrefill)),t},[]),Es,io={};if(Tc){Es=document.createElement("p");var Fh=window.getComputedStyle(document.documentElement,"");for(var Uh in Fh)isNaN(Uh)||(io[Fh[Uh]]=Fh[Uh]);JE.forEach(function(t){return delete io[t]})}function I2(t,e){if(e===void 0&&(e={}),!Es)return t;if(io[t]!=null)return io[t];(t==="transition"||t==="transform")&&(e[t]=t in Es.style);for(var r=0;r<Zm.length&&(io[t]=Zm[r](t,Es.style,e),!io[t]);r++);try{Es.style[t]=""}catch{return!1}return io[t]}var $o={},ZE={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},eC=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,hi;function tC(t,e,r){if(e==="var")return"var";if(e==="all")return"all";if(r==="all")return", all";var n=e?I2(e):", "+I2(r);return n||e||r}Tc&&(hi=document.createElement("p"));function ev(t,e){var r=e;if(!hi||t==="content")return e;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=t+r;if($o[n]!=null)return $o[n];try{hi.style[t]=r}catch{return $o[n]=!1,!1}if(ZE[t])r=r.replace(eC,tC);else if(hi.style[t]===""&&(r=oe.css+r,r==="-ms-flex"&&(hi.style[t]="-ms-flexbox"),hi.style[t]=r,hi.style[t]===""))return $o[n]=!1,!1;return hi.style[t]="",$o[n]=r,$o[n]}function rC(){function t(i){if(i.type==="keyframes"){var o=i;o.at=IE(o.at)}}function e(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(e);continue}var s=!1,c=I2(o);c&&c!==o&&(s=!0);var l=!1,d=ev(c,go(a));d&&d!==a&&(l=!0),(s||l)&&(s&&delete i[o],i[c||o]=d||a)}return i}function r(i,o){return o.type!=="style"?i:e(i)}function n(i,o){return ev(o,go(i))||i}return{onProcessRule:t,onProcessStyle:r,onChangeValue:n}}function nC(){var t=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var i={},o=Object.keys(r).sort(t),a=0;a<o.length;a++)i[o[a]]=r[o[a]];return i}}}function iC(){return{plugins:[oE(),hE(),pE(),yE(),wE(),typeof window>"u"?null:rC(),nC()]}}function oC(t,e){if(t==null)return{};var r=H3(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}function Y3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.baseClasses,r=t.newClasses;if(t.Component,!r)return e;var n=ke({},e);return Object.keys(r).forEach(function(i){r[i]&&(n[i]="".concat(e[i]," ").concat(r[i]))}),n}var aC={set:function(e,r,n,i){var o=e.get(r);o||(o=new Map,e.set(r,o)),o.set(n,i)},get:function(e,r,n){var i=e.get(r);return i?i.get(n):void 0},delete:function(e,r,n){var i=e.get(r);i.delete(n)}};const fa=aC;var sC=mr.createContext(null);const Q3=sC;function X3(){var t=mr.useContext(Q3);return t}var cC=V3(iC()),lC=_x(),dC=new Map,hC={disableGeneration:!1,generateClassName:lC,jss:cC,sheetsCache:null,sheetsManager:dC,sheetsRegistry:null},uC=mr.createContext(hC),tv=-1e9;function fC(){return tv+=1,tv}var pC={};const mC=pC;function vC(t){var e=typeof t=="function";return{create:function(n,i){var o;try{o=e?t(n):t}catch(c){throw c}if(!i||!n.overrides||!n.overrides[i])return o;var a=n.overrides[i],s=ke({},o);return Object.keys(a).forEach(function(c){s[c]=I3(s[c],a[c])}),s},options:{}}}function gC(t,e,r){var n=t.state,i=t.stylesOptions;if(i.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,o=!0),o&&(n.cacheClasses.value=Y3({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}function yC(t,e){var r=t.state,n=t.theme,i=t.stylesOptions,o=t.stylesCreator,a=t.name;if(!i.disableGeneration){var s=fa.get(i.sheetsManager,o,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},fa.set(i.sheetsManager,o,n,s));var c=ke({},o.options,i,{theme:n,flip:typeof i.flip=="boolean"?i.flip:n.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;var l=i.sheetsRegistry;if(s.refs===0){var d;i.sheetsCache&&(d=fa.get(i.sheetsCache,o,n));var h=o.create(n,a);d||(d=i.jss.createStyleSheet(h,ke({link:!1},c)),d.attach(),i.sheetsCache&&fa.set(i.sheetsCache,o,n,d)),l&&l.add(d),s.staticSheet=d,s.dynamicStyles=F3(h)}if(s.dynamicStyles){var u=i.jss.createStyleSheet(s.dynamicStyles,ke({link:!0},c));u.update(e),u.attach(),r.dynamicSheet=u,r.classes=Y3({baseClasses:s.staticSheet.classes,newClasses:u.classes}),l&&l.add(u)}else r.classes=s.staticSheet.classes;s.refs+=1}}function _C(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}function bC(t){var e=t.state,r=t.theme,n=t.stylesOptions,i=t.stylesCreator;if(!n.disableGeneration){var o=fa.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;o.refs===0&&(fa.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}}function wC(t,e){var r=mr.useRef([]),n,i=mr.useMemo(function(){return{}},e);r.current!==i&&(r.current=i,n=t()),mr.useEffect(function(){return function(){n&&n()}},[i])}function xC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.name,n=e.classNamePrefix,i=e.Component,o=e.defaultTheme,a=o===void 0?mC:o,s=oC(e,["name","classNamePrefix","Component","defaultTheme"]),c=vC(t),l=r||n||"makeStyles";c.options={index:fC(),name:r,meta:l,classNamePrefix:l};var d=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=X3()||a,v=ke({},mr.useContext(uC),s),g=mr.useRef(),x=mr.useRef();wC(function(){var p={name:r,state:{},stylesCreator:c,stylesOptions:v,theme:f};return yC(p,u),x.current=!1,g.current=p,function(){bC(p)}},[f,c]),mr.useEffect(function(){x.current&&_C(g.current,u),x.current=!0});var m=gC(g.current,u.classes,i);return m};return d}function J3(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=J3(t[e]))&&(n&&(n+=" "),n+=r);else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function rv(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=J3(t))&&(n&&(n+=" "),n+=e);return n}function EC(t,e){if(typeof e=="function"){var r=e(t);return r}return ke({},t,e)}function CC(t){var e=t.children,r=t.theme,n=X3(),i=mr.useMemo(function(){var o=n===null?r:EC(n,r);return o!=null&&(o[M3]=n!==null),o},[r,n]);return mr.createElement(Q3.Provider,{value:i},e)}const zC={jumbo__base:"88px",default__base:"48px",default__input:"56px"},SC={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"rgba(61, 61, 61, 1)"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"rgba(86, 86, 86, 1)"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"rgba(111, 111, 111, 1)"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"rgba(0, 0, 0, 0.4)"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"rgba(0, 0, 0, 0.8)"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"rgba(140, 17, 89, 1)"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"rgba(226, 73, 115, 1)"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"rgba(255, 146, 168, 1)"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"rgba(0, 95, 87, 1)"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"rgba(0, 151, 123, 1)"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"rgba(64, 211, 143, 1)"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"rgba(0, 64, 136, 1)"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"rgba(0, 132, 196, 1)"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"rgba(82, 192, 255, 1)"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"rgba(115, 177, 181, 1)"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"rgba(168, 206, 209, 1)"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"rgba(201, 224, 226, 1)"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"rgba(255, 125, 152, 1)"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"rgba(255, 174, 191, 1)"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"rgba(255, 205, 215, 1)"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"rgba(255, 224, 231, 1)"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"rgba(125, 0, 35, 1)"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"rgba(195, 243, 210, 1)"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"rgba(0, 79, 85, 1)"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"rgba(23, 36, 47, 1)"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 0, 1)"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"rgba(255, 146, 0, 1)"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"rgba(75, 183, 72, 1)"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"rgba(190, 190, 190, 1)"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"rgba(151, 202, 206, 1)"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"rgba(0, 0, 0, 0.2)"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"}}},kC={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},AC={pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"1px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},TC={toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"48px",minWidth:"48px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},IC={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},MC={heading:{h1_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},h1:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},h2:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.429em",textAlign:"left"},h3:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.667em",textAlign:"left"},h4:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"}},input:{label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},ui:{tooltip:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},Zt={clickbounds:zC,colors:SC,elevation:kC,interactions:AC,shape:TC,spacings:IC,typography:MC},PC=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class Me{constructor(e,r){this.name=e,this.value=r}static makeCssVar(e,r){return`--fusion-${e}__${r}`}static makeCss(e){return Object.keys(e).map(r=>`${PC(r)}: ${e[r]}`).join(";")}static makeVariable({attribute:e,value:r}){return`var(${[e,r].filter(n=>!!n).join(",")})`}static extractVariables(e){return Object.values(e).reduce((r,n)=>r.concat(n.variables),[])}get style(){const{value:e,attributes:r}=this;return{...e,...Object.keys(r).reduce((n,i)=>Object.assign(n,{[i]:Me.makeVariable(r[i])}),{})}}get css(){const{attributes:e,style:r}=this;return Me.makeCss({...r,...Object.keys(e).reduce((n,i)=>Object.assign(n,{[i]:Me.makeVariable(e[i])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(r=>e||!r.base)}getVariable(e){return Me.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:r,value:n})=>[r,n].join(":"))}toString(){return this.css}}class Z3 extends Me{get attributes(){const{name:e,value:{rgba:r}}=this;return{color:{attribute:Me.makeCssVar("color",e),value:r}}}get style(){return{color:this.value.rgba}}}const as=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new Z3(`${e}-${n}`,t[n])}),{}),e6={infographic:as(Zt.colors.infographic,"infographic"),interactive:as(Zt.colors.interactive,"interactive"),logo:as(Zt.colors.logo,"logo"),text:as(Zt.colors.text,"text"),ui:as(Zt.colors.ui,"ui")},RC=Object.values(e6).reduce((t,e)=>t.concat(Z3.extractVariables(e)),[]);class A1 extends Me{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:A1.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:Me.makeVariable(this.attributes.shadow)}}}const HC=t=>new A1(t,Zt.elevation[t]),LC=Object.keys(Zt.elevation),t6=LC.reduce((t,e)=>Object.assign(t,{[e]:HC(e)}),{}),OC=A1.extractVariables(t6);class r6 extends Me{get attributes(){const{name:e,value:r}=this;return{padding:{attribute:Me.makeCssVar("spacing",e),value:r}}}get style(){return{padding:this.value}}}const DC=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new r6(`${e}-${n}`,t[n])}),{}),n6={comfortable:DC(Zt.spacings.comfortable,"comfortable")},NC=Object.values(n6).reduce((t,e)=>t.concat(r6.extractVariables(e)),[]);class VC extends Me{get attributes(){const{name:e,value:r}=this;return{color:{attribute:Me.makeCssVar("typography",`${e}__color`),value:Me.makeVariable({attribute:Me.makeCssVar("typography","base-color"),value:r.color}),base:!0},fontFamily:{attribute:Me.makeCssVar("typography",`${e}-fontFamily`),value:r.fontFamily},fontSize:{attribute:Me.makeCssVar("typography",`${e}-fontSize`),value:r.fontSize},fontWeight:{attribute:Me.makeCssVar("typography",`${e}-fontWeight`),value:r.fontWeight},lineHeight:{attribute:Me.makeCssVar("typography",`${e}-lineHeight`),value:r.lineHeight},textAlign:{attribute:Me.makeCssVar("typography",`${e}-textAlign`),value:r.textAlign},letterSpacing:{attribute:Me.makeCssVar("typography",`${e}-letterSpacing`),value:r.letterSpacing},fontStyle:{attribute:Me.makeCssVar("typography",`${e}-fontStyle`),value:r.fontStyle},textTransform:{attribute:Me.makeCssVar("typography",`${e}-textTransform`),value:r.textTransform},textDecoration:{attribute:Me.makeCssVar("typography",`${e}-textDecoration`),value:r.textDecoration},fontFeature:{attribute:Me.makeCssVar("typography",`${e}-fontFeature`),value:r.fontFeature}}}}const jo=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new VC(`${e}-${n}`,t[n])}),{}),i6={heading:jo(Zt.typography.heading,"heading"),input:jo(Zt.typography.input,"input"),navigation:jo(Zt.typography.navigation,"navigation"),paragraph:jo(Zt.typography.paragraph,"paragraph"),table:jo(Zt.typography.table,"table"),ui:jo(Zt.typography.ui,"ui")},nv={attribute:Me.makeCssVar("typography","base-color"),value:Zt.colors.text.static_icons__default.rgba},FC=[...Object.values(i6).reduce((t,e)=>t.concat(Me.extractVariables(e)),[]),[nv.attribute,nv.value].join(":")],H={colors:e6,elevation:t6,spacing:n6,typography:i6};[...RC,...OC,...NC,...FC];const UC=(t,e={})=>xC(t,{defaultTheme:H,...e}),$C=t=>t,jC=(t,e)=>(window.customElements.define(t,e),e),BC=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(i){window.customElements.define(t,i)}}},Wt=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?jC(t,e):BC(t,e)};const Zl=window,y0=Zl.ShadowRoot&&(Zl.ShadyCSS===void 0||Zl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_0=Symbol(),iv=new WeakMap;let o6=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==_0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(y0&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=iv.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&iv.set(r,e))}return e}toString(){return this.cssText}};const L=t=>new o6(typeof t=="string"?t:t+"",void 0,_0),ue=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((n,i,o)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1],t[0]);return new o6(r,t,_0)},qC=(t,e)=>{y0?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),i=Zl.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})},ov=y0?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return L(r)})(t):t;var $h;const t1=window,av=t1.trustedTypes,GC=av?av.emptyScript:"",sv=t1.reactiveElementPolyfillSupport,M2={toAttribute(t,e){switch(e){case Boolean:t=t?GC:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},b0=(t,e)=>e!==t&&(e==e||t==t),jh={attribute:!0,type:String,converter:M2,reflect:!1,hasChanged:b0};let Wo=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,n)=>{const i=this._$Ep(n,r);i!==void 0&&(this._$Ev.set(i,n),e.push(i))}),e}static createProperty(e,r=jh){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,r);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(i){const o=this[e];this[r]=i,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||jh}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const i of n)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(ov(i))}else e!==void 0&&r.push(ov(e));return r}static _$Ep(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return qC(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=jh){var i;const o=this.constructor._$Ep(e,n);if(o!==void 0&&n.reflect===!0){const a=(((i=n.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?n.converter:M2).toAttribute(r,n.type);this._$El=e,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(e,r){var n;const i=this.constructor,o=i._$Ev.get(e);if(o!==void 0&&this._$El!==o){const a=i.getPropertyOptions(o),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:M2;this._$El=o,this[o]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let i=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||b0)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,o)=>this[o]=i),this._$Ei=void 0);let r=!1;const n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(n)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var i;return(i=n.hostUpdated)===null||i===void 0?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Wo.finalized=!0,Wo.elementProperties=new Map,Wo.elementStyles=[],Wo.shadowRootOptions={mode:"open"},sv==null||sv({ReactiveElement:Wo}),(($h=t1.reactiveElementVersions)!==null&&$h!==void 0?$h:t1.reactiveElementVersions=[]).push("1.4.2");var Bh;const r1=window,Oa=r1.trustedTypes,cv=Oa?Oa.createPolicy("lit-html",{createHTML:t=>t}):void 0,_i=`lit$${(Math.random()+"").slice(9)}$`,a6="?"+_i,KC=`<${a6}>`,Da=document,gc=(t="")=>Da.createComment(t),yc=t=>t===null||typeof t!="object"&&typeof t!="function",s6=Array.isArray,WC=t=>s6(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",ss=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lv=/-->/g,dv=/>/g,Yi=RegExp(`>|[
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SE(t){return xE(t)||EE(t)||CE(t)||zE()}var xs="",T2="",q3="",G3="",kE=Tc&&"ontouchstart"in document.documentElement;if(Tc){var Dh={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},AE=document.createElement("p"),Nh=AE.style,TE="Transform";for(var Vh in Dh)if(Vh+TE in Nh){xs=Vh,T2=Dh[Vh];break}xs==="Webkit"&&"msHyphens"in Nh&&(xs="ms",T2=Dh.ms,G3="edge"),xs==="Webkit"&&"-apple-trailing-word"in Nh&&(q3="apple")}var ae={js:xs,css:T2,vendor:q3,browser:G3,isTouch:kE};function IE(t){return t[1]==="-"||ae.js==="ms"?t:"@"+ae.css+"keyframes"+t.substr(10)}var ME={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:ae.js==="ms"?"-webkit-"+e:ae.css+e}},PE={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:ae.js==="Webkit"?ae.css+"print-"+e:e}},RE=/[-\s]+(.)?/g;function HE(t,e){return e?e.toUpperCase():""}function g0(t){return t.replace(RE,HE)}function Di(t){return g0("-"+t)}var LE={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if(ae.js==="Webkit"){var n="mask-image";if(g0(n)in r)return e;if(ae.js+Di(n)in r)return ae.css+e}return e}},OE={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:ae.vendor==="apple"&&!ae.isTouch?ae.css+e:e}},DE={noPrefill:["transform"],supportedProperty:function(e,r,n){return e!=="transform"?!1:n.transform?e:ae.css+e}},NE={noPrefill:["transition"],supportedProperty:function(e,r,n){return e!=="transition"?!1:n.transition?e:ae.css+e}},VE={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:ae.js==="Webkit"||ae.js==="ms"&&ae.browser!=="edge"?ae.css+e:e}},FE={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:ae.js==="Moz"||ae.js==="ms"||ae.vendor==="apple"?ae.css+e:e}},UE={supportedProperty:function(e,r){if(!/^break-/.test(e))return!1;if(ae.js==="Webkit"){var n="WebkitColumn"+Di(e);return n in r?ae.css+"column-"+e:!1}if(ae.js==="Moz"){var i="page"+Di(e);return i in r?"page-"+e:!1}return!1}},$E={supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(ae.js==="Moz")return e;var n=e.replace("-inline","");return ae.js+Di(n)in r?ae.css+n:!1}},jE={supportedProperty:function(e,r){return g0(e)in r?e:!1}},BE={supportedProperty:function(e,r){var n=Di(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:ae.js+n in r?ae.css+e:ae.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+e:!1}},qE={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:ae.js==="ms"?""+ae.css+e:e}},GE={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:ae.js==="ms"?ae.css+"scroll-chaining":e}},KE={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},WE={supportedProperty:function(e,r){var n=KE[e];return n&&ae.js+Di(n)in r?ae.css+n:!1}},K3={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},YE=Object.keys(K3),QE=function(e){return ae.css+e},XE={supportedProperty:function(e,r,n){var i=n.multiple;if(YE.indexOf(e)>-1){var o=K3[e];if(!Array.isArray(o))return ae.js+Di(o)in r?ae.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(ae.js+Di(o[0])in r))return!1;return o.map(QE)}return!1}},W3=[ME,PE,LE,OE,DE,NE,VE,FE,UE,$E,jE,BE,qE,GE,WE,XE],Zm=W3.filter(function(t){return t.supportedProperty}).map(function(t){return t.supportedProperty}),JE=W3.filter(function(t){return t.noPrefill}).reduce(function(t,e){return t.push.apply(t,SE(e.noPrefill)),t},[]),Es,io={};if(Tc){Es=document.createElement("p");var Fh=window.getComputedStyle(document.documentElement,"");for(var Uh in Fh)isNaN(Uh)||(io[Fh[Uh]]=Fh[Uh]);JE.forEach(function(t){return delete io[t]})}function I2(t,e){if(e===void 0&&(e={}),!Es)return t;if(io[t]!=null)return io[t];(t==="transition"||t==="transform")&&(e[t]=t in Es.style);for(var r=0;r<Zm.length&&(io[t]=Zm[r](t,Es.style,e),!io[t]);r++);try{Es.style[t]=""}catch{return!1}return io[t]}var $o={},ZE={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},eC=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,hi;function tC(t,e,r){if(e==="var")return"var";if(e==="all")return"all";if(r==="all")return", all";var n=e?I2(e):", "+I2(r);return n||e||r}Tc&&(hi=document.createElement("p"));function ev(t,e){var r=e;if(!hi||t==="content")return e;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=t+r;if($o[n]!=null)return $o[n];try{hi.style[t]=r}catch{return $o[n]=!1,!1}if(ZE[t])r=r.replace(eC,tC);else if(hi.style[t]===""&&(r=ae.css+r,r==="-ms-flex"&&(hi.style[t]="-ms-flexbox"),hi.style[t]=r,hi.style[t]===""))return $o[n]=!1,!1;return hi.style[t]="",$o[n]=r,$o[n]}function rC(){function t(i){if(i.type==="keyframes"){var o=i;o.at=IE(o.at)}}function e(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(e);continue}var s=!1,c=I2(o);c&&c!==o&&(s=!0);var l=!1,d=ev(c,go(a));d&&d!==a&&(l=!0),(s||l)&&(s&&delete i[o],i[c||o]=d||a)}return i}function r(i,o){return o.type!=="style"?i:e(i)}function n(i,o){return ev(o,go(i))||i}return{onProcessRule:t,onProcessStyle:r,onChangeValue:n}}function nC(){var t=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var i={},o=Object.keys(r).sort(t),a=0;a<o.length;a++)i[o[a]]=r[o[a]];return i}}}function iC(){return{plugins:[oE(),hE(),pE(),yE(),wE(),typeof window>"u"?null:rC(),nC()]}}function oC(t,e){if(t==null)return{};var r=H3(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}function Y3(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.baseClasses,r=t.newClasses;if(t.Component,!r)return e;var n=ke({},e);return Object.keys(r).forEach(function(i){r[i]&&(n[i]="".concat(e[i]," ").concat(r[i]))}),n}var aC={set:function(e,r,n,i){var o=e.get(r);o||(o=new Map,e.set(r,o)),o.set(n,i)},get:function(e,r,n){var i=e.get(r);return i?i.get(n):void 0},delete:function(e,r,n){var i=e.get(r);i.delete(n)}};const fa=aC;var sC=mr.createContext(null);const Q3=sC;function X3(){var t=mr.useContext(Q3);return t}var cC=V3(iC()),lC=_x(),dC=new Map,hC={disableGeneration:!1,generateClassName:lC,jss:cC,sheetsCache:null,sheetsManager:dC,sheetsRegistry:null},uC=mr.createContext(hC),tv=-1e9;function fC(){return tv+=1,tv}var pC={};const mC=pC;function vC(t){var e=typeof t=="function";return{create:function(n,i){var o;try{o=e?t(n):t}catch(c){throw c}if(!i||!n.overrides||!n.overrides[i])return o;var a=n.overrides[i],s=ke({},o);return Object.keys(a).forEach(function(c){s[c]=I3(s[c],a[c])}),s},options:{}}}function gC(t,e,r){var n=t.state,i=t.stylesOptions;if(i.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,o=!0),o&&(n.cacheClasses.value=Y3({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}function yC(t,e){var r=t.state,n=t.theme,i=t.stylesOptions,o=t.stylesCreator,a=t.name;if(!i.disableGeneration){var s=fa.get(i.sheetsManager,o,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},fa.set(i.sheetsManager,o,n,s));var c=ke({},o.options,i,{theme:n,flip:typeof i.flip=="boolean"?i.flip:n.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;var l=i.sheetsRegistry;if(s.refs===0){var d;i.sheetsCache&&(d=fa.get(i.sheetsCache,o,n));var h=o.create(n,a);d||(d=i.jss.createStyleSheet(h,ke({link:!1},c)),d.attach(),i.sheetsCache&&fa.set(i.sheetsCache,o,n,d)),l&&l.add(d),s.staticSheet=d,s.dynamicStyles=F3(h)}if(s.dynamicStyles){var u=i.jss.createStyleSheet(s.dynamicStyles,ke({link:!0},c));u.update(e),u.attach(),r.dynamicSheet=u,r.classes=Y3({baseClasses:s.staticSheet.classes,newClasses:u.classes}),l&&l.add(u)}else r.classes=s.staticSheet.classes;s.refs+=1}}function _C(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}function bC(t){var e=t.state,r=t.theme,n=t.stylesOptions,i=t.stylesCreator;if(!n.disableGeneration){var o=fa.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;o.refs===0&&(fa.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}}function wC(t,e){var r=mr.useRef([]),n,i=mr.useMemo(function(){return{}},e);r.current!==i&&(r.current=i,n=t()),mr.useEffect(function(){return function(){n&&n()}},[i])}function xC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.name,n=e.classNamePrefix,i=e.Component,o=e.defaultTheme,a=o===void 0?mC:o,s=oC(e,["name","classNamePrefix","Component","defaultTheme"]),c=vC(t),l=r||n||"makeStyles";c.options={index:fC(),name:r,meta:l,classNamePrefix:l};var d=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=X3()||a,v=ke({},mr.useContext(uC),s),g=mr.useRef(),x=mr.useRef();wC(function(){var p={name:r,state:{},stylesCreator:c,stylesOptions:v,theme:f};return yC(p,u),x.current=!1,g.current=p,function(){bC(p)}},[f,c]),mr.useEffect(function(){x.current&&_C(g.current,u),x.current=!0});var m=gC(g.current,u.classes,i);return m};return d}function J3(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=J3(t[e]))&&(n&&(n+=" "),n+=r);else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function rv(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=J3(t))&&(n&&(n+=" "),n+=e);return n}function EC(t,e){if(typeof e=="function"){var r=e(t);return r}return ke({},t,e)}function CC(t){var e=t.children,r=t.theme,n=X3(),i=mr.useMemo(function(){var o=n===null?r:EC(n,r);return o!=null&&(o[M3]=n!==null),o},[r,n]);return mr.createElement(Q3.Provider,{value:i},e)}const zC={jumbo__base:"88px",default__base:"48px",default__input:"56px"},SC={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"rgba(61, 61, 61, 1)"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"rgba(86, 86, 86, 1)"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"rgba(111, 111, 111, 1)"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"rgba(0, 0, 0, 0.4)"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"rgba(0, 0, 0, 0.8)"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"rgba(140, 17, 89, 1)"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"rgba(226, 73, 115, 1)"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"rgba(255, 146, 168, 1)"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"rgba(0, 95, 87, 1)"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"rgba(0, 151, 123, 1)"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"rgba(64, 211, 143, 1)"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"rgba(0, 64, 136, 1)"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"rgba(0, 132, 196, 1)"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"rgba(82, 192, 255, 1)"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"rgba(115, 177, 181, 1)"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"rgba(168, 206, 209, 1)"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"rgba(201, 224, 226, 1)"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"rgba(255, 125, 152, 1)"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"rgba(255, 174, 191, 1)"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"rgba(255, 205, 215, 1)"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"rgba(255, 224, 231, 1)"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"rgba(125, 0, 35, 1)"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"rgba(195, 243, 210, 1)"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"rgba(0, 79, 85, 1)"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"rgba(23, 36, 47, 1)"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 0, 1)"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"rgba(255, 146, 0, 1)"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"rgba(75, 183, 72, 1)"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"rgba(190, 190, 190, 1)"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"rgba(151, 202, 206, 1)"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"rgba(0, 0, 0, 0.2)"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"}}},kC={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},AC={pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"1px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},TC={toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"48px",minWidth:"48px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},IC={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},MC={heading:{h1_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},h1:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},h2:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.429em",textAlign:"left"},h3:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.667em",textAlign:"left"},h4:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"}},input:{label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},ui:{tooltip:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},Zt={clickbounds:zC,colors:SC,elevation:kC,interactions:AC,shape:TC,spacings:IC,typography:MC},PC=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class Me{constructor(e,r){this.name=e,this.value=r}static makeCssVar(e,r){return`--fusion-${e}__${r}`}static makeCss(e){return Object.keys(e).map(r=>`${PC(r)}: ${e[r]}`).join(";")}static makeVariable({attribute:e,value:r}){return`var(${[e,r].filter(n=>!!n).join(",")})`}static extractVariables(e){return Object.values(e).reduce((r,n)=>r.concat(n.variables),[])}get style(){const{value:e,attributes:r}=this;return{...e,...Object.keys(r).reduce((n,i)=>Object.assign(n,{[i]:Me.makeVariable(r[i])}),{})}}get css(){const{attributes:e,style:r}=this;return Me.makeCss({...r,...Object.keys(e).reduce((n,i)=>Object.assign(n,{[i]:Me.makeVariable(e[i])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(r=>e||!r.base)}getVariable(e){return Me.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:r,value:n})=>[r,n].join(":"))}toString(){return this.css}}class Z3 extends Me{get attributes(){const{name:e,value:{rgba:r}}=this;return{color:{attribute:Me.makeCssVar("color",e),value:r}}}get style(){return{color:this.value.rgba}}}const as=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new Z3(`${e}-${n}`,t[n])}),{}),e6={infographic:as(Zt.colors.infographic,"infographic"),interactive:as(Zt.colors.interactive,"interactive"),logo:as(Zt.colors.logo,"logo"),text:as(Zt.colors.text,"text"),ui:as(Zt.colors.ui,"ui")},RC=Object.values(e6).reduce((t,e)=>t.concat(Z3.extractVariables(e)),[]);class A1 extends Me{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:A1.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:Me.makeVariable(this.attributes.shadow)}}}const HC=t=>new A1(t,Zt.elevation[t]),LC=Object.keys(Zt.elevation),t6=LC.reduce((t,e)=>Object.assign(t,{[e]:HC(e)}),{}),OC=A1.extractVariables(t6);class r6 extends Me{get attributes(){const{name:e,value:r}=this;return{padding:{attribute:Me.makeCssVar("spacing",e),value:r}}}get style(){return{padding:this.value}}}const DC=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new r6(`${e}-${n}`,t[n])}),{}),n6={comfortable:DC(Zt.spacings.comfortable,"comfortable")},NC=Object.values(n6).reduce((t,e)=>t.concat(r6.extractVariables(e)),[]);class VC extends Me{get attributes(){const{name:e,value:r}=this;return{color:{attribute:Me.makeCssVar("typography",`${e}__color`),value:Me.makeVariable({attribute:Me.makeCssVar("typography","base-color"),value:r.color}),base:!0},fontFamily:{attribute:Me.makeCssVar("typography",`${e}-fontFamily`),value:r.fontFamily},fontSize:{attribute:Me.makeCssVar("typography",`${e}-fontSize`),value:r.fontSize},fontWeight:{attribute:Me.makeCssVar("typography",`${e}-fontWeight`),value:r.fontWeight},lineHeight:{attribute:Me.makeCssVar("typography",`${e}-lineHeight`),value:r.lineHeight},textAlign:{attribute:Me.makeCssVar("typography",`${e}-textAlign`),value:r.textAlign},letterSpacing:{attribute:Me.makeCssVar("typography",`${e}-letterSpacing`),value:r.letterSpacing},fontStyle:{attribute:Me.makeCssVar("typography",`${e}-fontStyle`),value:r.fontStyle},textTransform:{attribute:Me.makeCssVar("typography",`${e}-textTransform`),value:r.textTransform},textDecoration:{attribute:Me.makeCssVar("typography",`${e}-textDecoration`),value:r.textDecoration},fontFeature:{attribute:Me.makeCssVar("typography",`${e}-fontFeature`),value:r.fontFeature}}}}const jo=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new VC(`${e}-${n}`,t[n])}),{}),i6={heading:jo(Zt.typography.heading,"heading"),input:jo(Zt.typography.input,"input"),navigation:jo(Zt.typography.navigation,"navigation"),paragraph:jo(Zt.typography.paragraph,"paragraph"),table:jo(Zt.typography.table,"table"),ui:jo(Zt.typography.ui,"ui")},nv={attribute:Me.makeCssVar("typography","base-color"),value:Zt.colors.text.static_icons__default.rgba},FC=[...Object.values(i6).reduce((t,e)=>t.concat(Me.extractVariables(e)),[]),[nv.attribute,nv.value].join(":")],H={colors:e6,elevation:t6,spacing:n6,typography:i6};[...RC,...OC,...NC,...FC];const UC=(t,e={})=>xC(t,{defaultTheme:H,...e}),$C=t=>t,jC=(t,e)=>(window.customElements.define(t,e),e),BC=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(i){window.customElements.define(t,i)}}},Wt=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?jC(t,e):BC(t,e)};const Zl=window,y0=Zl.ShadowRoot&&(Zl.ShadyCSS===void 0||Zl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_0=Symbol(),iv=new WeakMap;let o6=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==_0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(y0&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=iv.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&iv.set(r,e))}return e}toString(){return this.cssText}};const L=t=>new o6(typeof t=="string"?t:t+"",void 0,_0),ue=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((n,i,o)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1],t[0]);return new o6(r,t,_0)},qC=(t,e)=>{y0?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),i=Zl.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})},ov=y0?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return L(r)})(t):t;var $h;const t1=window,av=t1.trustedTypes,GC=av?av.emptyScript:"",sv=t1.reactiveElementPolyfillSupport,M2={toAttribute(t,e){switch(e){case Boolean:t=t?GC:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},b0=(t,e)=>e!==t&&(e==e||t==t),jh={attribute:!0,type:String,converter:M2,reflect:!1,hasChanged:b0};let Wo=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,n)=>{const i=this._$Ep(n,r);i!==void 0&&(this._$Ev.set(i,n),e.push(i))}),e}static createProperty(e,r=jh){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,r);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(i){const o=this[e];this[r]=i,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||jh}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const i of n)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(ov(i))}else e!==void 0&&r.push(ov(e));return r}static _$Ep(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return qC(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=jh){var i;const o=this.constructor._$Ep(e,n);if(o!==void 0&&n.reflect===!0){const a=(((i=n.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?n.converter:M2).toAttribute(r,n.type);this._$El=e,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(e,r){var n;const i=this.constructor,o=i._$Ev.get(e);if(o!==void 0&&this._$El!==o){const a=i.getPropertyOptions(o),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:M2;this._$El=o,this[o]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let i=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||b0)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,o)=>this[o]=i),this._$Ei=void 0);let r=!1;const n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(n)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var i;return(i=n.hostUpdated)===null||i===void 0?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Wo.finalized=!0,Wo.elementProperties=new Map,Wo.elementStyles=[],Wo.shadowRootOptions={mode:"open"},sv==null||sv({ReactiveElement:Wo}),(($h=t1.reactiveElementVersions)!==null&&$h!==void 0?$h:t1.reactiveElementVersions=[]).push("1.4.2");var Bh;const r1=window,Oa=r1.trustedTypes,cv=Oa?Oa.createPolicy("lit-html",{createHTML:t=>t}):void 0,_i=`lit$${(Math.random()+"").slice(9)}$`,a6="?"+_i,KC=`<${a6}>`,Da=document,gc=(t="")=>Da.createComment(t),yc=t=>t===null||typeof t!="object"&&typeof t!="function",s6=Array.isArray,WC=t=>s6(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",ss=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lv=/-->/g,dv=/>/g,Yi=RegExp(`>|[
|
|
23
23
|
\f\r](?:([^\\s"'>=/]+)([
|
|
24
24
|
\f\r]*=[
|
|
25
25
|
\f\r]*(?:[^
|
|
@@ -289,7 +289,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
289
289
|
class="progress">
|
|
290
290
|
</circle>
|
|
291
291
|
</svg>
|
|
292
|
-
`}}b([E({type:String,reflect:!0})],Hc.prototype,"size",void 0);b([E({type:String,reflect:!0})],Hc.prototype,"color",void 0);Hc.styles=Az;const m6="fwc-circular-progress";let xv=class extends Hc{};xv=b([Wt(m6)],xv);const v6=To(Pc,f6);To(Hc,m6);To(Rc,p6);var Tz=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Iz=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ed;class Mz{constructor(e,r={}){this.config=r,ed.set(this,void 0),Tz(this,ed,e,"f")}requireInstance(e){return Iz(this,ed,"f").requireInstance(e)}setAppClient(e,r=1*60*1e3){this.config.client={getAppManifest:typeof e.getAppManifest=="function"?{key:({appKey:n})=>n,client:{fn:e.getAppManifest},expire:r}:e.getAppManifest,getAppManifests:typeof e.getAppManifests=="function"?{key:()=>"app_manifests",client:{fn:e.getAppManifests},expire:r}:e.getAppManifests,getAppConfig:typeof e.getAppConfig=="function"?{key:n=>JSON.stringify(n),client:{fn:e.getAppConfig},expire:r}:e.getAppConfig}}}ed=new WeakMap;const Pz=()=>({setManifest:St("set_manifest",t=>({payload:t,meta:{created:Date.now()}})),fetchManifest:gl("fetch_manifest",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setConfig:St("set_config",t=>({payload:t})),fetchConfig:gl("fetch_config",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setModule:St("set_module",t=>({payload:t})),importApp:gl("import_app",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setInstance:St("set_instance",t=>({payload:t})),initialize:gl("initialize_app",()=>({payload:null}),()=>({payload:null}),t=>({payload:t}))}),ze=Pz();qb();const Rz=t=>h0(Object.assign(Object.assign({},t),{status:new Set}),e=>e.addCase(ze.setManifest,(r,n)=>{r.manifest=n.payload}).addCase(ze.setConfig,(r,n)=>{r.config=n.payload}).addCase(ze.setModule,(r,n)=>{r.modules=n.payload}).addCase(ze.setInstance,(r,n)=>{r.instance=n.payload}).addMatcher(Lb,(r,n)=>{r.status.add(_m(n))}).addMatcher(Nb,(r,n)=>{r.status.delete(_m(n))})),Hz="modulepreload",Lz=function(t){return"/"+t},Ev={},g6=function(e,r,n){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=Lz(o),o in Ev)return;Ev[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let d=i.length-1;d>=0;d--){const h=i[d];if(h.href===o&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":Hz,a||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),a)return new Promise((d,h)=>{l.addEventListener("load",d),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())},Oz=t=>e=>e.pipe(Gt(ze.fetchManifest.match),Bn(({payload:r})=>{const n=nr(t.getAppManifest(r)).pipe(Gt(i=>!!i),Ge(ze.setManifest));return Gg(n,n.pipe(Qf(),Ge(({payload:i})=>ze.fetchManifest.success(i)))).pipe(Kr(i=>Li(ze.fetchManifest.failure(i))))})),Dz=t=>e=>e.pipe(Gt(ze.fetchConfig.match),Bn(({payload:r})=>{const n=nr(t.getAppConfig(r)).pipe(Ge(ze.setConfig));return Gg(n,n.pipe(Qf(),Ge(({payload:i})=>ze.fetchConfig.success(i)))).pipe(Kr(i=>Li(ze.fetchConfig.failure(i))))})),Nz=()=>t=>t.pipe(Gt(ze.importApp.match),Bn(({payload:e})=>nr(g6(()=>import(e),[])).pipe(Ge(ze.importApp.success),Kr(r=>Li(ze.importApp.failure(r)))))),Vz=(t,e)=>{const r=Rz(t),n=new r0(r);return n.addFlow(Oz(e)),n.addFlow(Dz(e)),n.addFlow(Nz()),n};var Fz=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},le=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Uz=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},P2,ae,y6;function pa(){return Gt(t=>t!=null)}class Cv{get manifest$(){return le(this,ae,"f").pipe(Ge(({manifest:e})=>e),pa())}get config$(){return le(this,ae,"f").pipe(Ge(({config:e})=>e),pa())}get modules$(){return le(this,ae,"f").pipe(Ge(({modules:e})=>e),pa())}get instance$(){return le(this,ae,"f").pipe(Ge(({instance:e})=>e),pa())}get appKey(){return le(this,ae,"f").value.appKey}get manifest(){return on(this.manifest$)}get config(){return on(this.config$)}get instance(){return le(this,ae,"f").value.instance}constructor(e,r){P2.add(this),ae.set(this,void 0),Uz(this,ae,Vz(e,r.provider),"f");const{appKey:n}=e,{event:i}=r;i&&le(this,P2,"m",y6).call(this,i);const o=new un;i&&(o.add(()=>{i.dispatchEvent("onAppDispose",{detail:{appKey:n}})}),o.add(i.addEventListener("onAppModulesLoaded",a=>{a.detail.appKey===n&&le(this,ae,"f").next(ze.setInstance(a.detail.modules))}))),this.dispose=()=>{o==null||o.unsubscribe(),le(this,ae,"f").value.instance&&le(this,ae,"f").value.instance.dispose(),le(this,ae,"f").complete()}}initialize(){return new Pe(e=>{le(this,ae,"f").next(ze.initialize()),e.add(py([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([r,n,i])=>e.next({manifest:r,script:n,config:i}),error:r=>{e.error(r),le(this,ae,"f").next(ze.initialize.failure(r))},complete:()=>{le(this,ae,"f").next(ze.initialize.success()),e.complete()}}))})}loadConfig(){le(this,ae,"f").next(ze.fetchConfig(this.appKey))}loadManifest(){le(this,ae,"f").next(ze.fetchManifest(this.appKey))}loadAppModule(e=!0){return Fz(this,void 0,void 0,function*(){const r=yield this.getManifestAsync(e);le(this,ae,"f").next(ze.importApp(r.entry))})}getConfig(e=!1){return new Pe(r=>{if(le(this,ae,"f").value.config&&(r.next(le(this,ae,"f").value.config),!e))return r.complete();r.add(le(this,ae,"f").addEffect("set_config",({payload:n})=>{r.next(n)})),r.add(le(this,ae,"f").addEffect("fetch_config::success",({payload:n})=>{r.next(n),r.complete()})),r.add(le(this,ae,"f").addEffect("fetch_config::failure",({payload:n})=>{r.error(Error("failed to load application config",{cause:n}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?on:po)(this.getConfig(!e))}getManifest(e=!1){return new Pe(r=>{if(le(this,ae,"f").value.manifest&&(r.next(le(this,ae,"f").value.manifest),!e))return r.complete();r.add(le(this,ae,"f").addEffect("set_manifest",({payload:n})=>{r.next(n)})),r.add(le(this,ae,"f").addEffect("fetch_manifest::success",({payload:n})=>{r.next(n),r.complete()})),r.add(le(this,ae,"f").addEffect("fetch_manifest::failure",({payload:n})=>{r.error(Error("failed to load application manifest",{cause:n}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?on:po)(this.getManifest(!e))}getAppModule(e=!1){return new Pe(r=>{if(le(this,ae,"f").value.modules&&(r.next(le(this,ae,"f").value.modules),!e))return r.complete();r.add(le(this,ae,"f").addEffect("set_module",({payload:n})=>{r.next(n)})),r.add(le(this,ae,"f").addEffect("import_app::success",({payload:n})=>{r.next(n),r.complete()})),r.add(le(this,ae,"f").addEffect("import_app::failure",({payload:n})=>{r.error(Error("failed to load application modules from script",{cause:n}))})),r.add(this.getManifest().subscribe(n=>Li(le(this,ae,"f").next(ze.importApp(n.entry)))))})}getAppModuleAsync(e=!0){return(e?on:po)(this.getAppModule(!e))}}ae=new WeakMap,P2=new WeakSet,y6=function(e){const{appKey:r}=this;le(this,ae,"f").addEffect(ze.fetchManifest.success.type,n=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),le(this,ae,"f").addEffect(ze.fetchConfig.success.type,n=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),le(this,ae,"f").addEffect(ze.importApp.success.type,n=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),le(this,ae,"f").addEffect(ze.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:r},source:this})}),le(this,ae,"f").addEffect(ze.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:r},source:this})}),le(this,ae,"f").addEffect(ze.initialize.failure.type,({payload:n})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:r,error:n},source:this})})};class Mi extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new Mi("unauthorized","failed to load application manifest, request not authorized",r);case 404:return new Mi("not_found","application manifest not found",r)}return new Mi("unknown",`failed to load application manifest, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}class yo extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new yo("unauthorized","failed to load application config, request not authorized",r);case 404:return new yo("not_found","application config not found",r)}return new yo("unknown",`failed to load application config, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}var Xt=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},wl=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Cs,zs,ro,ui,td;class $z{static compareAppManifest(e,r){return JSON.stringify(e)===JSON.stringify(r)}get current(){return Xt(this,ro,"f").value}get current$(){return Xt(this,ro,"f").pipe(pa(),ky("appKey"))}constructor(e){Cs.set(this,void 0),zs.set(this,void 0),ro.set(this,void 0),ui.set(this,new un),td.set(this,void 0);const{event:r,config:n}=e;wl(this,td,r,"f"),wl(this,ro,new C1(void 0),"f"),this.appClient=new nn(n.client.getAppManifest),wl(this,Cs,new nn(n.client.getAppManifests),"f"),wl(this,zs,new nn(n.client.getAppConfig),"f"),Xt(this,ui,"f").add(()=>this.appClient.complete()),Xt(this,ui,"f").add(()=>Xt(this,Cs,"f").complete()),Xt(this,ui,"f").add(()=>Xt(this,zs,"f").complete()),Xt(this,ui,"f").add(this.current$.pipe(Zu(),Yg(()=>!!r)).subscribe(([i,o])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:i,next:o}})})),Xt(this,ui,"f").add(Xt(this,ro,"f").pipe(Zu(),Ge(([i])=>i),pa()).subscribe(i=>i.dispose()))}getAppManifest(e){return nn.extractQueryValue(this.appClient.query({appKey:e}).pipe(Kr(r=>{const{cause:n}=r;throw n instanceof Mi?n:n instanceof t2?Mi.fromHttpResponse(n.response,{cause:n}):new Mi("unknown","failed to load manifest",{cause:n})})))}getAllAppManifests(){return nn.extractQueryValue(Xt(this,Cs,"f").query())}getAppConfig(e,r){return nn.extractQueryValue(Xt(this,zs,"f").query({appKey:e,tag:r}).pipe(Kr(n=>{const{cause:i}=n;throw i instanceof yo?i:i instanceof t2?yo.fromHttpResponse(i.response,{cause:i}):new yo("unknown","failed to load config",{cause:i})})))}setCurrentApp(e){const r=typeof e=="string"?this.createApp({appKey:e}):Cv;Xt(this,ro,"f").next(r)}createApp(e){return new Cv(e,{provider:this,event:Xt(this,td,"f")})}dispose(){Xt(this,ui,"f").unsubscribe()}}Cs=new WeakMap,zs=new WeakMap,ro=new WeakMap,ui=new WeakMap,td=new WeakMap;var jz=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const R2="app",Bz={name:R2,configure:()=>new qz,initialize:t=>jz(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new $z({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var xl=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},zv=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},rd;class qz{constructor(){this.defaultExpireTime=1*60*1e3,rd.set(this,[])}addConfigBuilder(e){zv(this,rd,"f").push(e)}_createHttpClient(e){return xl(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");if(r.hasClient(R2))return r.createClient(R2);{const n=yield e.requireInstance("serviceDiscovery");try{return yield n.createClient("app")}catch{return yield n.createClient("portal")}}})}createConfig(e){var r;return xl(this,void 0,void 0,function*(){const n=yield zv(this,rd,"f").reduce((i,o)=>xl(this,void 0,void 0,function*(){const a=new Mz(e,yield i);return yield Promise.resolve(o(a)),Object.assign(i,a.config)}),Promise.resolve({}));return(r=n.client)!==null&&r!==void 0||(n.client=yield(()=>xl(this,void 0,void 0,function*(){const i=yield this._createHttpClient(e);return{getAppManifest:{client:{fn:({appKey:o})=>i.json$(`/api/apps/${o}`)},key:({appKey:o})=>o,expire:this.defaultExpireTime},getAppManifests:{client:{fn:()=>i.json$("/api/apps")},key:()=>"manifests",expire:this.defaultExpireTime},getAppConfig:{client:{fn:({appKey:o,tag:a})=>i.json$(`/api/apps/${o}/config${a?`?tag=${a}`:""}`)},key:o=>JSON.stringify(o),expire:this.defaultExpireTime}}}))()),n})}}rd=new WeakMap;const Gz=(t,e)=>{t.addConfig({module:Bz,configure:r=>{e&&r.addConfigBuilder(e)}})},Kz=async t=>{t.logger.level=4,t.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),t.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),Gz(t),t.onConfigured(()=>{console.log("framework config done")}),t.onInitialized(async e=>{e.auth.defaultClient.setLogger(new f3(0)),console.debug("📒 subscribing to all events"),e.event.subscribe(r=>console.debug(`🔔🌍 [${r.type}]`,r))})};function rt(){return rt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rt.apply(this,arguments)}var ht;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(ht||(ht={}));const Sv="popstate";function Wz(t){t===void 0&&(t={});function e(n,i){let{pathname:o,search:a,hash:s}=n.location;return bc("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Ni(i)}return Qz(e,r,null,t)}function fe(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Yz(){return Math.random().toString(36).substr(2,8)}function kv(t){return{usr:t.state,key:t.key}}function bc(t,e,r,n){return r===void 0&&(r=null),rt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ii(e):e,{state:r,key:e&&e.key||n||Yz()})}function Ni(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ii(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function wc(t){let e=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,r=typeof t=="string"?t:Ni(t);return fe(e,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,e)}function Qz(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=ht.Pop,c=null;function l(){s=ht.Pop,c&&c({action:s,location:u.location})}function d(f,v){s=ht.Push;let g=bc(u.location,f,v);r&&r(g,f);let x=kv(g),m=u.createHref(g);try{a.pushState(x,"",m)}catch{i.location.assign(m)}o&&c&&c({action:s,location:u.location})}function h(f,v){s=ht.Replace;let g=bc(u.location,f,v);r&&r(g,f);let x=kv(g),m=u.createHref(g);a.replaceState(x,"",m),o&&c&&c({action:s,location:u.location})}let u={get action(){return s},get location(){return t(i,a)},listen(f){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(Sv,l),c=f,()=>{i.removeEventListener(Sv,l),c=null}},createHref(f){return e(i,f)},encodeLocation(f){let v=wc(typeof f=="string"?f:Ni(f));return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:h,go(f){return a.go(f)}};return u}var zt;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(zt||(zt={}));function Xz(t){return t.index===!0}function _6(t,e,r){return e===void 0&&(e=[]),r===void 0&&(r=new Set),t.map((n,i)=>{let o=[...e,i],a=typeof n.id=="string"?n.id:o.join("-");return fe(n.index!==!0||!n.children,"Cannot specify children on an index route"),fe(!r.has(a),'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),r.add(a),Xz(n)?rt({},n,{id:a}):rt({},n,{id:a,children:n.children?_6(n.children,o,r):void 0})})}function Ss(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?ii(e):e,i=w6(n.pathname||"/",r);if(i==null)return null;let o=b6(t);Jz(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=sS(o[s],dS(i));return a}function b6(t,e,r,n){return e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n=""),t.forEach((i,o)=>{let a={relativePath:i.path||"",caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(fe(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(n.length));let s=_o([n,a.relativePath]),c=r.concat(a);i.children&&i.children.length>0&&(fe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),b6(i.children,e,c,s)),!(i.path==null&&!i.index)&&e.push({path:s,score:oS(s,i.index),routesMeta:c})}),e}function Jz(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:aS(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Zz=/^:\w+$/,eS=3,tS=2,rS=1,nS=10,iS=-2,Av=t=>t==="*";function oS(t,e){let r=t.split("/"),n=r.length;return r.some(Av)&&(n+=iS),e&&(n+=tS),r.filter(i=>!Av(i)).reduce((i,o)=>i+(Zz.test(o)?eS:o===""?rS:nS),n)}function aS(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function sS(t,e){let{routesMeta:r}=t,n={},i="/",o=[];for(let a=0;a<r.length;++a){let s=r[a],c=a===r.length-1,l=i==="/"?e:e.slice(i.length)||"/",d=cS({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l);if(!d)return null;Object.assign(n,d.params);let h=s.route;o.push({params:n,pathname:_o([i,d.pathname]),pathnameBase:mS(_o([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=_o([i,d.pathnameBase]))}return o}function cS(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=lS(t.path,t.caseSensitive,t.end),i=e.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((l,d,h)=>{if(d==="*"){let u=s[h]||"";a=o.slice(0,o.length-u.length).replace(/(.)\/+$/,"$1")}return l[d]=hS(s[h]||"",d),l},{}),pathname:o,pathnameBase:a,pattern:t}}function lS(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),w0(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(a,s)=>(n.push(s),"([^\\/]+)"));return t.endsWith("*")?(n.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function dS(t){try{return decodeURI(t)}catch(e){return w0(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function hS(t,e){try{return decodeURIComponent(t)}catch(r){return w0(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function w6(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function w0(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function uS(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?ii(t):t;return{pathname:r?r.startsWith("/")?r:fS(r,e):e,search:vS(n),hash:gS(i)}}function fS(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Wh(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function x6(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function pS(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=ii(t):(i=rt({},t),fe(!i.pathname||!i.pathname.includes("?"),Wh("?","pathname","search",i)),fe(!i.pathname||!i.pathname.includes("#"),Wh("#","pathname","hash",i)),fe(!i.search||!i.search.includes("#"),Wh("#","search","hash",i)));let o=t===""||i.pathname==="",a=o?"/":i.pathname,s;if(n||a==null)s=r;else{let h=e.length-1;if(a.startsWith("..")){let u=a.split("/");for(;u[0]==="..";)u.shift(),h-=1;i.pathname=u.join("/")}s=h>=0?e[h]:"/"}let c=uS(i,s),l=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||d)&&(c.pathname+="/"),c}const _o=t=>t.join("/").replace(/\/\/+/g,"/"),mS=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),vS=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,gS=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class Tv extends Error{}class yS{constructor(e){this.pendingKeys=new Set,this.subscriber=void 0,fe(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((i,o)=>r=o),this.controller=new AbortController;let n=()=>r(new Tv("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((i,o)=>{let[a,s]=o;return Object.assign(i,{[a]:this.trackPromise(a,s)})},{})}trackPromise(e,r){if(!(r instanceof Promise))return r;this.pendingKeys.add(e);let n=Promise.race([r,this.abortPromise]).then(i=>this.onSettle(n,e,null,i),i=>this.onSettle(n,e,i));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,r,n,i){if(this.controller.signal.aborted&&n instanceof Tv)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);this.pendingKeys.delete(r),this.done&&this.unlistenAbortSignal();const o=this.subscriber;return n?(Object.defineProperty(e,"_error",{get:()=>n}),o&&o(!1),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>i}),o&&o(!1),i)}subscribe(e){this.subscriber=e}cancel(){this.controller.abort(),this.pendingKeys.forEach((r,n)=>this.pendingKeys.delete(n));let e=this.subscriber;e&&e(!0)}async resolveData(e){let r=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),r=await new Promise(i=>{this.subscribe(o=>{e.removeEventListener("abort",n),(o||this.done)&&i(o)})})}return r}get done(){return this.pendingKeys.size===0}get unwrappedData(){return fe(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,r)=>{let[n,i]=r;return Object.assign(e,{[n]:bS(i)})},{})}}function _S(t){return t instanceof Promise&&t._tracked===!0}function bS(t){if(!_S(t))return t;if(t._error)throw t._error;return t._data}class H1{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function E6(t){return t instanceof H1}const C6=["post","put","patch","delete"],wS=new Set(C6),xS=["get",...C6],ES=new Set(xS),CS=new Set([301,302,303,307,308]),zS=new Set([307,308]),Yh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},SS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},kS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AS=!kS;function TS(t){fe(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=_6(t.routes),r=null,n=new Set,i=null,o=null,a=null,s=!1,c=Ss(e,t.history.location,t.basename),l=null;if(c==null){let z=oo(404,{pathname:t.history.location.pathname}),{matches:T,route:F}=Hv(e);c=T,l={[F.id]:z}}let d=!c.some(z=>z.route.loader)||t.hydrationData!=null,h,u={historyAction:t.history.action,location:t.history.location,matches:c,initialized:d,navigation:Yh,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||l,fetchers:new Map},f=ht.Pop,v=!1,g,x=!1,m=!1,p=[],y=[],w=new Map,A=0,O=-1,U=new Map,N=new Set,xe=new Map,Y=new Map;function Qt(){return r=t.history.listen(z=>{let{action:T,location:F}=z;return $(T,F)}),u.initialized||$(ht.Pop,u.location),h}function Bi(){r&&r(),n.clear(),g&&g.abort(),u.fetchers.forEach((z,T)=>j1(T))}function qi(z){return n.add(z),()=>n.delete(z)}function Lt(z){u=rt({},u,z),n.forEach(T=>T(u))}function Gi(z,T){var F;let X=u.actionData!=null&&u.navigation.formMethod!=null&&u.navigation.state==="loading"&&((F=u.navigation.formAction)==null?void 0:F.split("?")[0])===z.pathname,te=T.loaderData?{loaderData:Qh(u.loaderData,T.loaderData,T.matches||[])}:{};Lt(rt({},X?{}:{actionData:null},T,te,{historyAction:f,location:z,initialized:!0,navigation:Yh,revalidation:"idle",restoreScrollPosition:u.navigation.formData?!1:I0(z,T.matches||u.matches),preventScrollReset:v})),x||f===ht.Pop||(f===ht.Push?t.history.push(z,z.state):f===ht.Replace&&t.history.replace(z,z.state)),f=ht.Pop,v=!1,x=!1,m=!1,p=[],y=[]}async function Wa(z,T){if(typeof z=="number"){t.history.go(z);return}let{path:F,submission:X,error:te}=Iv(z,T),he=bc(u.location,F,T&&T.state);he=rt({},he,t.history.encodeLocation(he));let ge=(T&&T.replace)===!0||X!=null?ht.Replace:ht.Push,Ee=T&&"preventScrollReset"in T?T.preventScrollReset===!0:void 0;return await $(ge,he,{submission:X,pendingError:te,preventScrollReset:Ee,replace:T&&T.replace})}function Ya(){if(oi(),Lt({revalidation:"loading"}),u.navigation.state!=="submitting"){if(u.navigation.state==="idle"){$(u.historyAction,u.location,{startUninterruptedRevalidation:!0});return}$(f||u.historyAction,u.navigation.location,{overrideNavigation:u.navigation})}}async function $(z,T,F){g&&g.abort(),g=null,f=z,x=(F&&F.startUninterruptedRevalidation)===!0,W6(u.location,u.matches),v=(F&&F.preventScrollReset)===!0;let X=F&&F.overrideNavigation,te=Ss(e,T,t.basename);if(!te){let cr=oo(404,{pathname:T.pathname}),{matches:Po,route:Pn}=Hv(e);B1(),Gi(T,{matches:Po,loaderData:{},errors:{[Pn.id]:cr}});return}if(HS(u.location,T)){Gi(T,{matches:te});return}g=new AbortController;let he=ls(T,g.signal,F&&F.submission),ge,Ee;if(F&&F.pendingError)Ee={[ma(te).route.id]:F.pendingError};else if(F&&F.submission){let cr=await ie(he,T,F.submission,te,{replace:F.replace});if(cr.shortCircuited)return;ge=cr.pendingActionData,Ee=cr.pendingActionError,X=rt({state:"loading",location:T},F.submission),he=new Request(he.url,{signal:he.signal})}let{shortCircuited:Ie,loaderData:Ce,errors:Oe}=await ce(he,T,te,X,F&&F.submission,F&&F.replace,ge,Ee);Ie||(g=null,Gi(T,{matches:te,loaderData:Ce,errors:Oe}))}async function ie(z,T,F,X,te){oi();let he=rt({state:"submitting",location:T},F);Lt({navigation:he});let ge,Ee=Nv(X,T);if(!Ee.route.action)ge={type:zt.error,error:oo(405,{method:z.method,pathname:T.pathname,routeId:Ee.route.id})};else if(ge=await cs("action",z,Ee,X,h.basename),z.signal.aborted)return{shortCircuited:!0};if(za(ge))return await Mn(u,ge,te&&te.replace===!0),{shortCircuited:!0};if(Bs(ge)){let Ie=ma(X,Ee.route.id);return(te&&te.replace)!==!0&&(f=ht.Push),{pendingActionError:{[Ie.route.id]:ge.error}}}if(ho(ge))throw new Error("defer() is not supported in actions");return{pendingActionData:{[Ee.route.id]:ge.data}}}async function ce(z,T,F,X,te,he,ge,Ee){let Ie=X;Ie||(Ie={state:"loading",location:T,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0});let[Ce,Oe]=Mv(u,F,te,T,m,p,y,ge,Ee,xe);if(B1(lr=>!(F&&F.some(dr=>dr.route.id===lr))||Ce&&Ce.some(dr=>dr.route.id===lr)),Ce.length===0&&Oe.length===0)return Gi(T,{matches:F,loaderData:Qh(u.loaderData,{},F),errors:Ee||null,actionData:ge||null}),{shortCircuited:!0};x||(Oe.forEach(lr=>{let[dr]=lr,Lo=u.fetchers.get(dr),Gc={state:"loading",data:Lo&&Lo.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(dr,Gc)}),Lt(rt({navigation:Ie,actionData:ge||u.actionData||null},Oe.length>0?{fetchers:new Map(u.fetchers)}:{}))),O=++A,Oe.forEach(lr=>{let[dr]=lr;return w.set(dr,g)});let{results:cr,loaderResults:Po,fetcherResults:Pn}=await fn(u.matches,F,Ce,Oe,z);if(z.signal.aborted)return{shortCircuited:!0};Oe.forEach(lr=>{let[dr]=lr;return w.delete(dr)});let Ro=Lv(cr);if(Ro)return await Mn(u,Ro,he),{shortCircuited:!0};let{loaderData:q1,errors:qc}=Rv(u,F,Ce,Po,Ee,Oe,Pn,Y);Y.forEach((lr,dr)=>{lr.subscribe(Lo=>{(Lo||lr.done)&&Y.delete(dr)})}),G6();let Ho=T0(O);return rt({loaderData:q1,errors:qc},Ho||Oe.length>0?{fetchers:new Map(u.fetchers)}:{})}function $e(z){return u.fetchers.get(z)||SS}function it(z,T,F,X){if(AS)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");w.has(z)&&Bc(z);let te=Ss(e,F,t.basename);if(!te){$1(z,T,oo(404,{pathname:F}));return}let{path:he,submission:ge}=Iv(F,X,!0),Ee=Nv(te,he);if(ge){Mo(z,T,he,Ee,te,ge);return}xe.set(z,[he,Ee,te]),In(z,T,he,Ee,te)}async function Mo(z,T,F,X,te,he){if(oi(),xe.delete(z),!X.route.action){let Rn=oo(405,{method:he.formMethod,pathname:F,routeId:T});$1(z,T,Rn);return}let ge=u.fetchers.get(z),Ee=rt({state:"submitting"},he,{data:ge&&ge.data});u.fetchers.set(z,Ee),Lt({fetchers:new Map(u.fetchers)});let Ie=new AbortController,Ce=ls(F,Ie.signal,he);w.set(z,Ie);let Oe=await cs("action",Ce,X,te,h.basename);if(Ce.signal.aborted){w.get(z)===Ie&&w.delete(z);return}if(za(Oe)){w.delete(z),N.add(z);let Rn=rt({state:"loading"},he,{data:void 0});return u.fetchers.set(z,Rn),Lt({fetchers:new Map(u.fetchers)}),Mn(u,Oe)}if(Bs(Oe)){$1(z,T,Oe.error);return}ho(Oe)&&fe(!1,"defer() is not supported in actions");let cr=u.navigation.location||u.location,Po=ls(cr,Ie.signal),Pn=u.navigation.state!=="idle"?Ss(e,u.navigation.location,t.basename):u.matches;fe(Pn,"Didn't find any matches after fetcher action");let Ro=++A;U.set(z,Ro);let q1=rt({state:"loading",data:Oe.data},he);u.fetchers.set(z,q1);let[qc,Ho]=Mv(u,Pn,he,cr,m,p,y,{[X.route.id]:Oe.data},void 0,xe);Ho.filter(Rn=>{let[Ki]=Rn;return Ki!==z}).forEach(Rn=>{let[Ki]=Rn,R0=u.fetchers.get(Ki),X6={state:"loading",data:R0&&R0.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(Ki,X6),w.set(Ki,Ie)}),Lt({fetchers:new Map(u.fetchers)});let{results:lr,loaderResults:dr,fetcherResults:Lo}=await fn(u.matches,Pn,qc,Ho,Po);if(Ie.signal.aborted)return;U.delete(z),w.delete(z),Ho.forEach(Rn=>{let[Ki]=Rn;return w.delete(Ki)});let Gc=Lv(lr);if(Gc)return Mn(u,Gc);let{loaderData:M0,errors:P0}=Rv(u,u.matches,qc,dr,void 0,Ho,Lo,Y),Y6={state:"idle",data:Oe.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(z,Y6);let Q6=T0(Ro);u.navigation.state==="loading"&&Ro>O?(fe(f,"Expected pending action"),g&&g.abort(),Gi(u.navigation.location,{matches:Pn,loaderData:M0,errors:P0,fetchers:new Map(u.fetchers)})):(Lt(rt({errors:P0,loaderData:Qh(u.loaderData,M0,Pn)},Q6?{fetchers:new Map(u.fetchers)}:{})),m=!1)}async function In(z,T,F,X,te){let he=u.fetchers.get(z),ge={state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,data:he&&he.data};u.fetchers.set(z,ge),Lt({fetchers:new Map(u.fetchers)});let Ee=new AbortController,Ie=ls(F,Ee.signal);w.set(z,Ee);let Ce=await cs("loader",Ie,X,te,h.basename);if(ho(Ce)&&(Ce=await T6(Ce,Ie.signal,!0)||Ce),w.get(z)===Ee&&w.delete(z),Ie.signal.aborted)return;if(za(Ce)){await Mn(u,Ce);return}if(Bs(Ce)){let cr=ma(u.matches,T);u.fetchers.delete(z),Lt({fetchers:new Map(u.fetchers),errors:{[cr.route.id]:Ce.error}});return}fe(!ho(Ce),"Unhandled fetcher deferred data");let Oe={state:"idle",data:Ce.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(z,Oe),Lt({fetchers:new Map(u.fetchers)})}async function Mn(z,T,F){var X;T.revalidate&&(m=!0);let te=bc(z.location,T.location);if(fe(te,"Expected a location on the redirect navigation"),typeof((X=window)==null?void 0:X.location)<"u"){let Oe=wc(T.location).origin;if(window.location.origin!==Oe){F?window.location.replace(T.location):window.location.assign(T.location);return}}g=null;let he=F===!0?ht.Replace:ht.Push,{formMethod:ge,formAction:Ee,formEncType:Ie,formData:Ce}=z.navigation;zS.has(T.status)&&ge&&A6(ge)&&Ie&&Ce?await $(he,te,{submission:{formMethod:ge,formAction:T.location,formEncType:Ie,formData:Ce}}):await $(he,te,{overrideNavigation:{state:"loading",location:te,formMethod:ge||void 0,formAction:Ee||void 0,formEncType:Ie||void 0,formData:Ce||void 0}})}async function fn(z,T,F,X,te){let he=await Promise.all([...F.map(Ie=>cs("loader",te,Ie,T,h.basename)),...X.map(Ie=>{let[,Ce,Oe,cr]=Ie;return cs("loader",ls(Ce,te.signal),Oe,cr,h.basename)})]),ge=he.slice(0,F.length),Ee=he.slice(F.length);return await Promise.all([Ov(z,F,ge,te.signal,!1,u.loaderData),Ov(z,X.map(Ie=>{let[,,Ce]=Ie;return Ce}),Ee,te.signal,!0)]),{results:he,loaderResults:ge,fetcherResults:Ee}}function oi(){m=!0,p.push(...B1()),xe.forEach((z,T)=>{w.has(T)&&(y.push(T),Bc(T))})}function $1(z,T,F){let X=ma(u.matches,T);j1(z),Lt({errors:{[X.route.id]:F},fetchers:new Map(u.fetchers)})}function j1(z){w.has(z)&&Bc(z),xe.delete(z),U.delete(z),N.delete(z),u.fetchers.delete(z)}function Bc(z){let T=w.get(z);fe(T,"Expected fetch controller: "+z),T.abort(),w.delete(z)}function A0(z){for(let T of z){let X={state:"idle",data:$e(T).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(T,X)}}function G6(){let z=[];for(let T of N){let F=u.fetchers.get(T);fe(F,"Expected fetcher: "+T),F.state==="loading"&&(N.delete(T),z.push(T))}A0(z)}function T0(z){let T=[];for(let[F,X]of U)if(X<z){let te=u.fetchers.get(F);fe(te,"Expected fetcher: "+F),te.state==="loading"&&(Bc(F),U.delete(F),T.push(F))}return A0(T),T.length>0}function B1(z){let T=[];return Y.forEach((F,X)=>{(!z||z(X))&&(F.cancel(),T.push(X),Y.delete(X))}),T}function K6(z,T,F){if(i=z,a=T,o=F||(X=>X.key),!s&&u.navigation===Yh){s=!0;let X=I0(u.location,u.matches);X!=null&&Lt({restoreScrollPosition:X})}return()=>{i=null,a=null,o=null}}function W6(z,T){if(i&&o&&a){let F=T.map(te=>Dv(te,u.loaderData)),X=o(z,F)||z.key;i[X]=a()}}function I0(z,T){if(i&&o&&a){let F=T.map(he=>Dv(he,u.loaderData)),X=o(z,F)||z.key,te=i[X];if(typeof te=="number")return te}return null}return h={get basename(){return t.basename},get state(){return u},get routes(){return e},initialize:Qt,subscribe:qi,enableScrollRestoration:K6,navigate:Wa,fetch:it,revalidate:Ya,createHref:z=>t.history.createHref(z),encodeLocation:z=>t.history.encodeLocation(z),getFetcher:$e,deleteFetcher:j1,dispose:Bi,_internalFetchControllers:w,_internalActiveDeferreds:Y},h}function IS(t){return t!=null&&"formData"in t}function Iv(t,e,r){r===void 0&&(r=!1);let n=typeof t=="string"?t:Ni(t);if(!e||!IS(e))return{path:n};if(e.formMethod&&!OS(e.formMethod))return{path:n,error:oo(405,{method:e.formMethod})};if(e.formMethod&&A6(e.formMethod))return{path:n,submission:{formMethod:e.formMethod,formAction:k6(n),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData}};let i=ii(n);try{let o=S6(e.formData);r&&i.search&&I6(i.search)&&o.append("index",""),i.search="?"+o}catch{return{path:n,error:oo(400)}}return{path:Ni(i)}}function MS(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function Mv(t,e,r,n,i,o,a,s,c,l){let d=c?Object.values(c)[0]:s?Object.values(s)[0]:null,h=c?Object.keys(c)[0]:void 0,f=MS(e,h).filter((g,x)=>g.route.loader!=null&&(PS(t.loaderData,t.matches[x],g)||o.some(m=>m===g.route.id)||Pv(t.location,t.matches[x],r,n,g,i,d))),v=[];return l&&l.forEach((g,x)=>{let[m,p,y]=g;a.includes(x)?v.push([x,m,p,y]):i&&Pv(m,p,r,m,p,i,d)&&v.push([x,m,p,y])}),[f,v]}function PS(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function z6(t,e){let r=t.route.path;return t.pathname!==e.pathname||r&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function Pv(t,e,r,n,i,o,a){let s=wc(t),c=e.params,l=wc(n),d=i.params,h=z6(e,i)||s.toString()===l.toString()||s.search!==l.search||o;if(i.route.shouldRevalidate){let u=i.route.shouldRevalidate(rt({currentUrl:s,currentParams:c,nextUrl:l,nextParams:d},r,{actionResult:a,defaultShouldRevalidate:h}));if(typeof u=="boolean")return u}return h}async function cs(t,e,r,n,i,o,a,s){i===void 0&&(i="/"),o===void 0&&(o=!1),a===void 0&&(a=!1);let c,l,d,h=new Promise((f,v)=>d=v),u=()=>d();e.signal.addEventListener("abort",u);try{let f=r.route[t];fe(f,"Could not find the "+t+' to run on the "'+r.route.id+'" route'),l=await Promise.race([f({request:e,params:r.params,context:s}),h]),fe(l!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(f){c=zt.error,l=f}finally{e.signal.removeEventListener("abort",u)}if(LS(l)){let f=l.status;if(CS.has(f)){let x=l.headers.get("Location");if(fe(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!(/^[a-z+]+:\/\//i.test(x)||x.startsWith("//"))){let p=n.slice(0,n.indexOf(r)+1),y=x6(p).map(A=>A.pathnameBase),w=pS(x,y,new URL(e.url).pathname);if(fe(Ni(w),"Unable to resolve redirect location: "+x),i){let A=w.pathname;w.pathname=A==="/"?i:_o([i,A])}x=Ni(w)}if(o)throw l.headers.set("Location",x),l;return{type:zt.redirect,status:f,location:x,revalidate:l.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:c||zt.data,response:l};let v,g=l.headers.get("Content-Type");return g&&g.startsWith("application/json")?v=await l.json():v=await l.text(),c===zt.error?{type:c,error:new H1(f,l.statusText,v),headers:l.headers}:{type:zt.data,data:v,statusCode:l.status,headers:l.headers}}return c===zt.error?{type:c,error:l}:l instanceof yS?{type:zt.deferred,deferredData:l}:{type:zt.data,data:l}}function ls(t,e,r){let n=wc(k6(t)).toString(),i={signal:e};if(r){let{formMethod:o,formEncType:a,formData:s}=r;i.method=o.toUpperCase(),i.body=a==="application/x-www-form-urlencoded"?S6(s):s}return new Request(n,i)}function S6(t){let e=new URLSearchParams;for(let[r,n]of t.entries())fe(typeof n=="string",'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),e.append(r,n);return e}function RS(t,e,r,n,i){let o={},a=null,s,c=!1,l={};return r.forEach((d,h)=>{let u=e[h].route.id;if(fe(!za(d),"Cannot handle redirect results in processLoaderData"),Bs(d)){let f=ma(t,u),v=d.error;n&&(v=Object.values(n)[0],n=void 0),a=Object.assign(a||{},{[f.route.id]:v}),c||(c=!0,s=E6(d.error)?d.error.status:500),d.headers&&(l[u]=d.headers)}else ho(d)?(i&&i.set(u,d.deferredData),o[u]=d.deferredData.data):(o[u]=d.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(l[u]=d.headers))}),n&&(a=n),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:l}}function Rv(t,e,r,n,i,o,a,s){let{loaderData:c,errors:l}=RS(e,r,n,i,s);for(let d=0;d<o.length;d++){let[h,,u]=o[d];fe(a!==void 0&&a[d]!==void 0,"Did not find corresponding fetcher result");let f=a[d];if(Bs(f)){let v=ma(t.matches,u.route.id);l&&l[v.route.id]||(l=rt({},l,{[v.route.id]:f.error})),t.fetchers.delete(h)}else{if(za(f))throw new Error("Unhandled fetcher revalidation redirect");if(ho(f))throw new Error("Unhandled fetcher deferred data");{let v={state:"idle",data:f.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};t.fetchers.set(h,v)}}}return{loaderData:c,errors:l}}function Qh(t,e,r){let n=rt({},e);return r.forEach(i=>{let o=i.route.id;e[o]===void 0&&t[o]!==void 0&&(n[o]=t[o])}),n}function ma(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function Hv(t){let e=t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function oo(t,e){let{pathname:r,routeId:n,method:i}=e===void 0?{}:e,o="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&r&&n?a="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a="Cannot submit binary form data using GET"):t===403?(o="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):t===404?(o="Not Found",a='No route matches URL "'+r+'"'):t===405&&(o="Method Not Allowed",i&&r&&n?a="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new H1(t||500,o,new Error(a),!0)}function Lv(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(za(r))return r}}function k6(t){let e=typeof t=="string"?ii(t):t;return Ni(rt({},e,{hash:""}))}function HS(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash!==e.hash}function ho(t){return t.type===zt.deferred}function Bs(t){return t.type===zt.error}function za(t){return(t&&t.type)===zt.redirect}function LS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function OS(t){return ES.has(t)}function A6(t){return wS.has(t)}async function Ov(t,e,r,n,i,o){for(let a=0;a<r.length;a++){let s=r[a],c=e[a],l=t.find(h=>h.route.id===c.route.id),d=l!=null&&!z6(l,c)&&(o&&o[c.route.id])!==void 0;ho(s)&&(i||d)&&await T6(s,n,i).then(h=>{h&&(r[a]=h||r[a])})}}async function T6(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:zt.data,data:t.deferredData.unwrappedData}}catch(i){return{type:zt.error,error:i}}return{type:zt.data,data:t.deferredData.data}}}function I6(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Dv(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function Nv(t,e){let r=typeof e=="string"?ii(e).search:e.search;if(t[t.length-1].route.index&&I6(r||""))return t[t.length-1];let n=x6(t);return n[n.length-1]}function n1(){return n1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n1.apply(this,arguments)}function DS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const NS=typeof Object.is=="function"?Object.is:DS,{useState:VS,useEffect:FS,useLayoutEffect:US,useDebugValue:$S}=ru;function jS(t,e,r){const n=e(),[{inst:i},o]=VS({inst:{value:n,getSnapshot:e}});return US(()=>{i.value=n,i.getSnapshot=e,Xh(i)&&o({inst:i})},[t,n,e]),FS(()=>(Xh(i)&&o({inst:i}),t(()=>{Xh(i)&&o({inst:i})})),[t]),$S(n),n}function Xh(t){const e=t.getSnapshot,r=t.value;try{const n=e();return!NS(r,n)}catch{return!0}}function BS(t,e,r){return e()}const qS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",GS=!qS,KS=GS?BS:jS,WS="useSyncExternalStore"in ru?(t=>t.useSyncExternalStore)(ru):KS,YS=P.exports.createContext(null),M6=P.exports.createContext(null),x0=P.exports.createContext(null),P6=P.exports.createContext(null),L1=P.exports.createContext(null),Lc=P.exports.createContext({outlet:null,matches:[]}),R6=P.exports.createContext(null);function E0(){return P.exports.useContext(L1)!=null}function QS(){return E0()||fe(!1),P.exports.useContext(L1).location}const XS=P.exports.createContext(null);function JS(t){let e=P.exports.useContext(Lc).outlet;return e&&P.exports.createElement(XS.Provider,{value:t},e)}function ZS(){let{matches:t}=P.exports.useContext(Lc),e=t[t.length-1];return e?e.params:{}}function ek(t,e){E0()||fe(!1);let{navigator:r}=P.exports.useContext(P6),n=P.exports.useContext(x0),{matches:i}=P.exports.useContext(Lc),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let c=QS(),l;if(e){var d;let g=typeof e=="string"?ii(e):e;s==="/"||((d=g.pathname)==null?void 0:d.startsWith(s))||fe(!1),l=g}else l=c;let h=l.pathname||"/",u=s==="/"?h:h.slice(s.length)||"/",f=Ss(t,{pathname:u}),v=ik(f&&f.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:_o([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:_o([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n||void 0);return e&&v?P.exports.createElement(L1.Provider,{value:{location:n1({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:ht.Pop}},v):v}function tk(){let t=ak(),e=E6(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n};return P.exports.createElement(P.exports.Fragment,null,P.exports.createElement("h2",null,"Unhandled Thrown Error!"),P.exports.createElement("h3",{style:{fontStyle:"italic"}},e),r?P.exports.createElement("pre",{style:i},r):null,P.exports.createElement("p",null,"💿 Hey developer 👋"),P.exports.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.exports.createElement("code",{style:o},"errorElement")," props on ",P.exports.createElement("code",{style:o},"<Route>")))}class rk extends P.exports.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location?{error:e.error,location:e.location}:{error:e.error||r.error,location:r.location}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error?P.exports.createElement(R6.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function nk(t){let{routeContext:e,match:r,children:n}=t,i=P.exports.useContext(YS);return i&&r.route.errorElement&&(i._deepestRenderedBoundaryId=r.route.id),P.exports.createElement(Lc.Provider,{value:e},n)}function ik(t,e,r){if(e===void 0&&(e=[]),t==null)if(r!=null&&r.errors)t=r.matches;else return null;let n=t,i=r==null?void 0:r.errors;if(i!=null){let o=n.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||fe(!1),n=n.slice(0,Math.min(n.length,o+1))}return n.reduceRight((o,a,s)=>{let c=a.route.id?i==null?void 0:i[a.route.id]:null,l=r?a.route.errorElement||P.exports.createElement(tk,null):null,d=()=>P.exports.createElement(nk,{match:a,routeContext:{outlet:o,matches:e.concat(n.slice(0,s+1))}},c?l:a.route.element!==void 0?a.route.element:o);return r&&(a.route.errorElement||s===0)?P.exports.createElement(rk,{location:r.location,component:l,error:c,children:d()}):d()},null)}var Vv;(function(t){t.UseRevalidator="useRevalidator"})(Vv||(Vv={}));var H2;(function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"})(H2||(H2={}));function ok(t){let e=P.exports.useContext(x0);return e||fe(!1),e}function ak(){var t;let e=P.exports.useContext(R6),r=ok(H2.UseRouteError),n=P.exports.useContext(Lc),i=n.matches[n.matches.length-1];return e||(n||fe(!1),i.route.id||fe(!1),(t=r.errors)==null?void 0:t[i.route.id])}function sk(t){let{fallbackElement:e,router:r}=t,n=WS(r.subscribe,()=>r.state,()=>r.state),i=P.exports.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:a=>r.navigate(a),push:(a,s,c)=>r.navigate(a,{state:s,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(a,s,c)=>r.navigate(a,{replace:!0,state:s,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[r]),o=r.basename||"/";return P.exports.createElement(M6.Provider,{value:{router:r,navigator:i,static:!1,basename:o}},P.exports.createElement(x0.Provider,{value:n},P.exports.createElement(dk,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:i},r.state.initialized?P.exports.createElement(hk,null):e)))}function ck(t){return JS(t.context)}function lk(t){fe(!1)}function dk(t){let{basename:e="/",children:r=null,location:n,navigationType:i=ht.Pop,navigator:o,static:a=!1}=t;E0()&&fe(!1);let s=e.replace(/^\/*/,"/"),c=P.exports.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof n=="string"&&(n=ii(n));let{pathname:l="/",search:d="",hash:h="",state:u=null,key:f="default"}=n,v=P.exports.useMemo(()=>{let g=w6(l,s);return g==null?null:{pathname:g,search:d,hash:h,state:u,key:f}},[s,l,d,h,u,f]);return v==null?null:P.exports.createElement(P6.Provider,{value:c},P.exports.createElement(L1.Provider,{children:r,value:{location:v,navigationType:i}}))}function hk(t){let{children:e,location:r}=t,n=P.exports.useContext(M6),i=n&&!e?n.router.routes:L2(e);return ek(i,r)}var Fv;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(Fv||(Fv={}));new Promise(()=>{});function L2(t,e){e===void 0&&(e=[]);let r=[];return P.exports.Children.forEach(t,(n,i)=>{if(!P.exports.isValidElement(n))return;if(n.type===P.exports.Fragment){r.push.apply(r,L2(n.props.children,e));return}n.type!==lk&&fe(!1),!n.props.index||!n.props.children||fe(!1);let o=[...e,i],a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,hasErrorBoundary:n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle};n.props.children&&(a.children=L2(n.props.children,o)),r.push(a)}),r}function H6(t){return t.map(e=>{let r=n1({},e);return r.hasErrorBoundary==null&&(r.hasErrorBoundary=r.errorElement!=null),r.children&&(r.children=H6(r.children)),r})}function O2(){return O2=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},O2.apply(this,arguments)}function uk(t,e){return TS({basename:e==null?void 0:e.basename,history:Wz({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||fk(),routes:H6(t)}).initialize()}function fk(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=O2({},e,{errors:pk(e.errors)})),e}function pk(t){if(!t)return null;let e=Object.entries(t),r={};for(let[n,i]of e)i&&i.__type==="RouteErrorResponse"?r[n]=new H1(i.status,i.statusText,i.data,i.internal===!0):r[n]=i;return r}var Uv;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(Uv||(Uv={}));var $v;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})($v||($v={}));const mk=(t,e,r)=>{P.exports.useEffect(()=>{const n=t.subscribe(e);return n.add(r),()=>n.unsubscribe()},[t,e])},vk=(t,e,r)=>{P.exports.useLayoutEffect(()=>{const n=t.subscribe(e);return n.add(r),()=>n.unsubscribe()},[t,e])};function C0(t,e){e??(e=t.value);const[r,n]=P.exports.useState(e);return vk(t,n),r}const D2=({error:t})=>wn(w8,{children:[wn("div",{style:{marginTop:20,border:"1px solid"},children:[Q("h4",{style:{backgroundColor:"rgb(153, 0, 37)",color:"white",padding:10,margin:0},children:t.message}),Q("section",{style:{padding:10},children:t.stack&&Q("pre",{children:t.stack})})]}),t.cause&&Q(D2,{error:t.cause})]}),gk=t=>{const{appKey:e}=t,r=f0(),n=P.exports.useRef(null),i=P.exports.useRef(document.createElement("div")),[o,a]=P.exports.useState(!1),[s,c]=P.exports.useState(),l=C0(r.modules.app.current$);return P.exports.useEffect(()=>{r.modules.app.setCurrentApp(e)},[e]),P.exports.useEffect(()=>{a(!0),c(void 0);const d=new un;return d.add(l==null?void 0:l.initialize().subscribe({next:({manifest:h,script:u,config:f})=>{const[v]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""];i.current=document.createElement("div");const g=u.renderApp??u.default;d.add(g(i.current,{fusion:r,env:{basename:v,config:f,manifest:h}}))},complete:()=>{a(!1)},error:h=>{c(h)}})),()=>d.unsubscribe()},[l,i]),P.exports.useEffect(()=>{const d=n.current,h=i.current;if(!!(h&&d))return d.appendChild(h),()=>{try{d.removeChild(h)}catch(u){console.error(u)}}},[n.current,i.current]),s?s.cause instanceof Mi?wn("div",{children:[Q("h2",{children:"🔥 Failed to load application manifest 🤬"}),Q("h3",{children:s.cause.type}),Q(D2,{error:s}),";"]}):wn("div",{children:[Q("h2",{children:"🔥 Failed to load application 🤬"}),Q(D2,{error:s}),";"]}):o?Q(v6,{text:"Loading Application"}):Q("section",{ref:n})},yk=()=>{const t=f0().modules.app;if(!t)throw Error("Current framework does not have AppModule configured");const e=C0(t.current$),r=P.exports.useCallback(n=>t.setCurrentApp(n),[t]);return{currentApp:e,setCurrentApp:r}};globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;class Va extends CustomEvent{constructor(e){super(Va.eventName,e)}}Va.eventName="fwc-searchabledropdown-controller-connect";class L6 extends Bt{constructor(){super(...arguments),this.resolverCallbacks=[]}createRenderRoot(){return this}connectResolver(e){this.resolverCallbacks.forEach(r=>{r(e)})}removeResolver(){this.resolverCallbacks.forEach(e=>{e()})}connectedCallback(){super.connectedCallback(),this.addEventListener(Va.eventName,this.handleElementConnect)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Va.eventName,this.handleElementConnect)}handleElementConnect(e){const{disconnectedCallback:r,updateResolver:n}=e.detail;r(()=>{this.resolverCallbacks.filter(i=>i!==n)}),this.resolverCallbacks.push(n),e.preventDefault(),e.stopPropagation()}}const _k=Symbol();class bk{constructor(e,r,n){this.i=0,this.status=0,this.autoRun=!0,this.o=e,this.o.addController(this);const i=typeof r=="object"?r:{task:r,args:n};this.t=i.task,this.h=i.args,this.l=i.onComplete,this.u=i.onError,i.autoRun!==void 0&&(this.autoRun=i.autoRun),this.taskComplete=new Promise((o,a)=>{this.v=o,this._=a})}hostUpdated(){this.performTask()}async performTask(){var e;const r=(e=this.h)===null||e===void 0?void 0:e.call(this);this.shouldRun(r)&&this.run(r)}shouldRun(e){return this.autoRun&&this.m(e)}async run(e){var r,n,i;let o,a;e!=null||(e=(r=this.h)===null||r===void 0?void 0:r.call(this)),this.status!==2&&this.status!==3||(this.taskComplete=new Promise((c,l)=>{this.v=c,this._=l})),this.status=1,this.o.requestUpdate();const s=++this.i;try{o=await this.t(e)}catch(c){a=c}if(this.i===s){if(o===_k)this.status=0;else{if(a===void 0){try{(n=this.l)===null||n===void 0||n.call(this,o)}catch{}this.status=2,this.v(o)}else{try{(i=this.u)===null||i===void 0||i.call(this,a)}catch{}this.status=3,this._(a)}this.T=o,this.k=a}this.o.requestUpdate()}}get value(){return this.T}get error(){return this.k}render(e){var r,n,i,o;switch(this.status){case 0:return(r=e.initial)===null||r===void 0?void 0:r.call(e);case 1:return(n=e.pending)===null||n===void 0?void 0:n.call(e);case 2:return(i=e.complete)===null||i===void 0?void 0:i.call(e,this.value);case 3:return(o=e.error)===null||o===void 0?void 0:o.call(e,this.error);default:this.status}}m(e){const r=this.p;return this.p=e,Array.isArray(e)&&Array.isArray(r)?e.length===r.length&&e.some((n,i)=>b0(n,r[i])):e!==r}}class O1 extends CustomEvent{constructor(e){super(O1.eventName,e)}}O1.eventName="select";var ks,Qe,nd,As;class wk{constructor(e){this._isOpen=!1,this._listItems=[],this._selectedItems=[],ks.set(this,void 0),Qe.set(this,void 0),nd.set(this,""),As.set(this,[]),this.updateResolver=r=>{this.resolver=r,r!=null&&r.initialResult&&(dl(this,As,r.initialResult,"f"),this.task.run()),r!=null&&r.closeHandler&&dl(this,ks,r.closeHandler,"f"),je(this,Qe,"f").requestUpdate()},this._handleWindowClick=r=>{!r.target||r.target.nodeName!==je(this,Qe,"f").nodeName&&(this.isOpen=!1)},this.closeClick=r=>{je(this,Qe,"f").value="";const n=je(this,Qe,"f").renderRoot.querySelector("fwc-textinput");n&&(n.value=""),this.isOpen=!1,je(this,ks,"f")&&je(this,ks,"f").call(this,r)},dl(this,Qe,e,"f"),je(this,Qe,"f").addController(this),this.handleSelect=this.handleSelect.bind(this),this.handleKeyup=this.handleKeyup.bind(this),this.task=new bk(je(this,Qe,"f"),([r])=>x1(this,void 0,void 0,function*(){var n;if(!(!((n=this.resolver)===null||n===void 0)&&n.searchQuery))return[];let i;return r?i=yield this.resolver.searchQuery(r):je(this,As,"f").length?i=je(this,As,"f"):i=[{id:"initial",title:je(this,Qe,"f").initialText,isDisabled:!0}],this.result=this.mutateResult(i),this.result}),()=>[je(this,nd,"f")])}hostConnected(){const e=new Va({detail:{disconnectedCallback:r=>{this.disconnectProvider=r},updateResolver:this.updateResolver},bubbles:!0,composed:!0,cancelable:!1});je(this,Qe,"f").dispatchEvent(e),window.addEventListener("click",this._handleWindowClick)}hostDisconnected(){this.disconnectProvider&&this.disconnectProvider(),window.removeEventListener("click",this._handleWindowClick)}mutateResult(e){var r;if(this._selectedItems.length&&e)for(let n=0;n<e.length;n++){const i=e[n];if(i.type==="section"&&((r=i.children)===null||r===void 0?void 0:r.length))for(let o=0;o<i.children.length;o++){const a=i.children[o];this._selectedItems.find(s=>s.id===a.id)?a.isSelected=!0:a.isSelected=!1}else this._selectedItems.find(o=>o.id===i.id)?i.isSelected=!0:i.isSelected=!1}return e}handleSelect(e){if(e.stopPropagation(),this.result&&this._listItems){const r=this._listItems[e.detail.index];let n;for(const i of this.result)if(i.id===r)n=i;else if(i.children)for(const o of i.children)o.id===r&&(n=o);if(!(n!=null&&n.id))throw new Error("SearchableDropdownController could not find match in result provided by resolver.");je(this,Qe,"f").multiple?this._selectedItems.find(i=>i.id===(n==null?void 0:n.id))?(n.isSelected=!1,this._selectedItems=this._selectedItems.filter(i=>i.id!==(n==null?void 0:n.id)),je(this,Qe,"f").value=""):(n.isSelected=!0,this._selectedItems.push(n),je(this,Qe,"f").value=(n==null?void 0:n.title)||""):(this._selectedItems=[n],je(this,Qe,"f").value=(n==null?void 0:n.title)||"")}else this._selectedItems=[],je(this,Qe,"f").value="";je(this,Qe,"f").dispatchEvent(new O1({detail:{selected:this._selectedItems},bubbles:!0})),this.task.run(),je(this,Qe,"f").requestUpdate()}set isOpen(e){this._isOpen=e,je(this,Qe,"f").trailingIcon=e?"close":"",this._selectedItems&&this.task.run(),je(this,Qe,"f").requestUpdate()}get isOpen(){return this._isOpen}handleKeyup(e){var r,n;const i=e.target;if(e.key==="ArrowDown"){this._isOpen&&((r=this.result)===null||r===void 0?void 0:r.length)&&((n=je(this,Qe,"f").renderRoot.querySelector("fwc-list"))===null||n===void 0||n.focus());return}this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{dl(this,nd,i.value.trim().toLowerCase(),"f"),je(this,Qe,"f").requestUpdate()},250)}}ks=new WeakMap,Qe=new WeakMap,nd=new WeakMap,As=new WeakMap;const xk="fwc-searchable-dropdown-provider";let jv=class extends L6{};jv=b([Wt(xk)],jv);const ve=t=>t??st;const Vr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Oc=t=>(...e)=>({_$litDirective$:t,values:e});let Dc=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};const jt=Oc(class extends Dc{constructor(t){var e;if(super(t),t.type!==Vr.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,n;if(this.nt===void 0){this.nt=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in e)e[o]&&!(!((r=this.st)===null||r===void 0)&&r.has(o))&&this.nt.add(o);return this.render(e)}const i=t.element.classList;this.nt.forEach(o=>{o in e||(i.remove(o),this.nt.delete(o))});for(const o in e){const a=!!e[o];a===this.nt.has(o)||((n=this.st)===null||n===void 0?void 0:n.has(o))||(a?(i.add(o),this.nt.add(o)):(i.remove(o),this.nt.delete(o)))}return $r}});let El;const Ek=new Uint8Array(16);function Ck(){if(!El&&(El=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!El))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return El(Ek)}const Et=[];for(let t=0;t<256;++t)Et.push((t+256).toString(16).slice(1));function zk(t,e=0){return(Et[t[e+0]]+Et[t[e+1]]+Et[t[e+2]]+Et[t[e+3]]+"-"+Et[t[e+4]]+Et[t[e+5]]+"-"+Et[t[e+6]]+Et[t[e+7]]+"-"+Et[t[e+8]]+Et[t[e+9]]+"-"+Et[t[e+10]]+Et[t[e+11]]+Et[t[e+12]]+Et[t[e+13]]+Et[t[e+14]]+Et[t[e+15]]).toLowerCase()}const Sk=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bv={randomUUID:Sk};function qv(t,e,r){if(Bv.randomUUID&&!e&&!t)return Bv.randomUUID();t=t||{};const n=t.random||(t.rng||Ck)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return zk(n)}function kk(t,e){var r=t.matches||t.webkitMatchesSelector||t.msMatchesSelector;return r.call(t,e)}const Ak=t=>t.nodeType===Node.ELEMENT_NODE;function O6(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}const D6=()=>{},Tk={get passive(){return!1}};document.addEventListener("x",D6,Tk);document.removeEventListener("x",D6);const N6=(t=window.document)=>{let e=t.activeElement;const r=[];if(!e)return r;for(;e&&(r.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return r},Ik=t=>{const e=N6();if(!e.length)return!1;const r=e[e.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let i=[];const o=a=>{i=a.composedPath()};return document.body.addEventListener("check-if-focused",o),r.dispatchEvent(n),document.body.removeEventListener("check-if-focused",o),i.indexOf(t)!==-1};class D1 extends Bt{click(){if(this.mdcRoot){this.mdcRoot.focus(),this.mdcRoot.click();return}super.click()}createFoundation(){this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}var Io=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();var Mk={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Pk={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Gv={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};function Rk(t,e,r){if(!t)return{x:0,y:0};var n=e.x,i=e.y,o=n+r.left,a=i+r.top,s,c;if(t.type==="touchstart"){var l=t;s=l.changedTouches[0].pageX-o,c=l.changedTouches[0].pageY-a}else{var d=t;s=d.pageX-o,c=d.pageY-a}return{x:s,y:c}}var Kv=["touchstart","pointerdown","mousedown","keydown"],Wv=["touchend","pointerup","mouseup","contextmenu"],Cl=[],Hk=function(t){Kt(e,t);function e(r){var n=t.call(this,lt(lt({},e.defaultAdapter),r))||this;return n.activationAnimationHasEnded=!1,n.activationTimer=0,n.fgDeactivationRemovalTimer=0,n.fgScale="0",n.frame={width:0,height:0},n.initialSize=0,n.layoutFrame=0,n.maxRadius=0,n.unboundedCoords={left:0,top:0},n.activationState=n.defaultActivationState(),n.activationTimerCallback=function(){n.activationAnimationHasEnded=!0,n.runDeactivationUXLogicIfReady()},n.activateHandler=function(i){n.activateImpl(i)},n.deactivateHandler=function(){n.deactivateImpl()},n.focusHandler=function(){n.handleFocus()},n.blurHandler=function(){n.handleBlur()},n.resizeHandler=function(){n.layout()},n}return Object.defineProperty(e,"cssClasses",{get:function(){return Mk},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Pk},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Gv},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var r=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var i=e.cssClasses,o=i.ROOT,a=i.UNBOUNDED;requestAnimationFrame(function(){r.adapter.addClass(o),r.adapter.isUnbounded()&&(r.adapter.addClass(a),r.layoutInternal())})}},e.prototype.destroy=function(){var r=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var n=e.cssClasses,i=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){r.adapter.removeClass(i),r.adapter.removeClass(o),r.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(r){this.activateImpl(r)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var r=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){r.layoutInternal(),r.layoutFrame=0})},e.prototype.setUnbounded=function(r){var n=e.cssClasses.UNBOUNDED;r?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleFocus=function(){var r=this;requestAnimationFrame(function(){return r.adapter.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var r=this;requestAnimationFrame(function(){return r.adapter.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(r){var n,i;if(r){try{for(var o=tr(Kv),a=o.next();!a.done;a=o.next()){var s=a.value;this.adapter.registerInteractionHandler(s,this.activateHandler)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(r){var n,i;if(r.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=tr(Wv),a=o.next();!a.done;a=o.next()){var s=a.value;this.adapter.registerDocumentInteractionHandler(s,this.deactivateHandler)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.deregisterRootHandlers=function(){var r,n;try{for(var i=tr(Kv),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var r,n;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=tr(Wv),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.removeCssVars=function(){var r=this,n=e.strings,i=Object.keys(n);i.forEach(function(o){o.indexOf("VAR_")===0&&r.adapter.updateCssVariable(n[o],null)})},e.prototype.activateImpl=function(r){var n=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var o=this.previousActivationEvent,a=o&&r!==void 0&&o.type!==r.type;if(!a){i.isActivated=!0,i.isProgrammatic=r===void 0,i.activationEvent=r,i.wasActivatedByPointer=i.isProgrammatic?!1:r!==void 0&&(r.type==="mousedown"||r.type==="touchstart"||r.type==="pointerdown");var s=r!==void 0&&Cl.length>0&&Cl.some(function(c){return n.adapter.containsEventTarget(c)});if(s){this.resetActivationState();return}r!==void 0&&(Cl.push(r.target),this.registerDeactivationHandlers(r)),i.wasElementMadeActive=this.checkElementMadeActive(r),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){Cl=[],!i.wasElementMadeActive&&r!==void 0&&(r.key===" "||r.keyCode===32)&&(i.wasElementMadeActive=n.checkElementMadeActive(r),i.wasElementMadeActive&&n.animateActivation()),i.wasElementMadeActive||(n.activationState=n.defaultActivationState())})}}}},e.prototype.checkElementMadeActive=function(r){return r!==void 0&&r.type==="keydown"?this.adapter.isSurfaceActive():!0},e.prototype.animateActivation=function(){var r=this,n=e.strings,i=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,a=e.cssClasses,s=a.FG_DEACTIVATION,c=a.FG_ACTIVATION,l=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var d="",h="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates(),f=u.startPoint,v=u.endPoint;d=f.x+"px, "+f.y+"px",h=v.x+"px, "+v.y+"px"}this.adapter.updateCssVariable(i,d),this.adapter.updateCssVariable(o,h),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(c),this.activationTimer=setTimeout(function(){r.activationTimerCallback()},l)},e.prototype.getFgTranslationCoordinates=function(){var r=this.activationState,n=r.activationEvent,i=r.wasActivatedByPointer,o;i?o=Rk(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):o={x:this.frame.width/2,y:this.frame.height/2},o={x:o.x-this.initialSize/2,y:o.y-this.initialSize/2};var a={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:o,endPoint:a}},e.prototype.runDeactivationUXLogicIfReady=function(){var r=this,n=e.cssClasses.FG_DEACTIVATION,i=this.activationState,o=i.hasDeactivationUXRun,a=i.isActivated,s=o||!a;s&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){r.adapter.removeClass(n)},Gv.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var r=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(r),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var r=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return r.previousActivationEvent=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var r=this,n=this.activationState;if(!!n.isActivated){var i=lt({},n);n.isProgrammatic?(requestAnimationFrame(function(){r.animateDeactivation(i)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){r.activationState.hasDeactivationUXRun=!0,r.animateDeactivation(i),r.resetActivationState()}))}},e.prototype.animateDeactivation=function(r){var n=r.wasActivatedByPointer,i=r.wasElementMadeActive;(n||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var r=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width),i=function(){var a=Math.sqrt(Math.pow(r.frame.width,2)+Math.pow(r.frame.height,2));return a+e.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?n:i();var o=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&o%2!==0?this.initialSize=o-1:this.initialSize=o,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var r=e.strings,n=r.VAR_FG_SIZE,i=r.VAR_LEFT,o=r.VAR_TOP,a=r.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(a,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(Io);const Lk=Hk;const Ok=Oc(class extends Dc{constructor(t){var e;if(super(t),t.type!==Vr.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return n==null?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:r}=t.element;if(this.vt===void 0){this.vt=new Set;for(const n in e)this.vt.add(n);return this.render(e)}this.vt.forEach(n=>{e[n]==null&&(this.vt.delete(n),n.includes("-")?r.removeProperty(n):r[n]="")});for(const n in e){const i=e[n];i!=null&&(this.vt.add(n),n.includes("-")?r.setProperty(n,i):r[n]=i)}return $r}});class vt extends D1{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=Lk}get isActive(){return kk(this.parentElement||this,":active")}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0;break}},removeClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1;break}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(e,r)=>{switch(e){case"--mdc-ripple-fg-scale":this.fgScale=r;break;case"--mdc-ripple-fg-size":this.fgSize=r;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=r;break;case"--mdc-ripple-fg-translate-start":this.translateStart=r;break;case"--mdc-ripple-left":this.leftPos=r;break;case"--mdc-ripple-top":this.topPos=r;break}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(e){this.waitForFoundation(()=>{this.mdcFoundation.activate(e)})}endPress(){this.waitForFoundation(()=>{this.mdcFoundation.deactivate()})}startFocus(){this.waitForFoundation(()=>{this.mdcFoundation.handleFocus()})}endFocus(){this.waitForFoundation(()=>{this.mdcFoundation.handleBlur()})}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(e){this.mdcFoundation?e():this.updateComplete.then(e)}update(e){e.has("disabled")&&this.disabled&&this.endHover(),super.update(e)}render(){const e=this.activated&&(this.primary||!this.accent),r=this.selected&&(this.primary||!this.accent),n={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":e,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":r,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return q`
|
|
292
|
+
`}}b([E({type:String,reflect:!0})],Hc.prototype,"size",void 0);b([E({type:String,reflect:!0})],Hc.prototype,"color",void 0);Hc.styles=Az;const m6="fwc-circular-progress";let xv=class extends Hc{};xv=b([Wt(m6)],xv);const v6=To(Pc,f6);To(Hc,m6);To(Rc,p6);var Tz=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Iz=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ed;class Mz{constructor(e,r={}){this.config=r,ed.set(this,void 0),Tz(this,ed,e,"f")}requireInstance(e){return Iz(this,ed,"f").requireInstance(e)}setAppClient(e,r=1*60*1e3){this.config.client={getAppManifest:typeof e.getAppManifest=="function"?{key:({appKey:n})=>n,client:{fn:e.getAppManifest},expire:r}:e.getAppManifest,getAppManifests:typeof e.getAppManifests=="function"?{key:()=>"app_manifests",client:{fn:e.getAppManifests},expire:r}:e.getAppManifests,getAppConfig:typeof e.getAppConfig=="function"?{key:n=>JSON.stringify(n),client:{fn:e.getAppConfig},expire:r}:e.getAppConfig}}}ed=new WeakMap;const Pz=()=>({setManifest:St("set_manifest",t=>({payload:t,meta:{created:Date.now()}})),fetchManifest:gl("fetch_manifest",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setConfig:St("set_config",t=>({payload:t})),fetchConfig:gl("fetch_config",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setModule:St("set_module",t=>({payload:t})),importApp:gl("import_app",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setInstance:St("set_instance",t=>({payload:t})),initialize:gl("initialize_app",()=>({payload:null}),()=>({payload:null}),t=>({payload:t}))}),ze=Pz();qb();const Rz=t=>h0(Object.assign(Object.assign({},t),{status:new Set}),e=>e.addCase(ze.setManifest,(r,n)=>{r.manifest=n.payload}).addCase(ze.setConfig,(r,n)=>{r.config=n.payload}).addCase(ze.setModule,(r,n)=>{r.modules=n.payload}).addCase(ze.setInstance,(r,n)=>{r.instance=n.payload}).addMatcher(Lb,(r,n)=>{r.status.add(_m(n))}).addMatcher(Nb,(r,n)=>{r.status.delete(_m(n))})),Hz="modulepreload",Lz=function(t){return"/"+t},Ev={},g6=function(e,r,n){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=Lz(o),o in Ev)return;Ev[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let d=i.length-1;d>=0;d--){const h=i[d];if(h.href===o&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":Hz,a||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),a)return new Promise((d,h)=>{l.addEventListener("load",d),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())},Oz=t=>e=>e.pipe(Gt(ze.fetchManifest.match),Bn(({payload:r})=>{const n=nr(t.getAppManifest(r)).pipe(Gt(i=>!!i),Ge(ze.setManifest));return Gg(n,n.pipe(Qf(),Ge(({payload:i})=>ze.fetchManifest.success(i)))).pipe(Kr(i=>Li(ze.fetchManifest.failure(i))))})),Dz=t=>e=>e.pipe(Gt(ze.fetchConfig.match),Bn(({payload:r})=>{const n=nr(t.getAppConfig(r)).pipe(Ge(ze.setConfig));return Gg(n,n.pipe(Qf(),Ge(({payload:i})=>ze.fetchConfig.success(i)))).pipe(Kr(i=>Li(ze.fetchConfig.failure(i))))})),Nz=()=>t=>t.pipe(Gt(ze.importApp.match),Bn(({payload:e})=>nr(g6(()=>import(e),[])).pipe(Ge(ze.importApp.success),Kr(r=>Li(ze.importApp.failure(r)))))),Vz=(t,e)=>{const r=Rz(t),n=new r0(r);return n.addFlow(Oz(e)),n.addFlow(Dz(e)),n.addFlow(Nz()),n};var Fz=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},le=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Uz=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},P2,oe,y6;function pa(){return Gt(t=>t!=null)}class Cv{get manifest$(){return le(this,oe,"f").pipe(Ge(({manifest:e})=>e),pa())}get config$(){return le(this,oe,"f").pipe(Ge(({config:e})=>e),pa())}get modules$(){return le(this,oe,"f").pipe(Ge(({modules:e})=>e),pa())}get instance$(){return le(this,oe,"f").pipe(Ge(({instance:e})=>e),pa())}get state(){return le(this,oe,"f").value}get appKey(){return le(this,oe,"f").value.appKey}get manifest(){return on(this.manifest$)}get config(){return on(this.config$)}get instance(){return le(this,oe,"f").value.instance}constructor(e,r){P2.add(this),oe.set(this,void 0),Uz(this,oe,Vz(e,r.provider),"f");const{appKey:n}=e,{event:i}=r;i&&le(this,P2,"m",y6).call(this,i);const o=new un;i&&(o.add(()=>{i.dispatchEvent("onAppDispose",{detail:{appKey:n}})}),o.add(i.addEventListener("onAppModulesLoaded",a=>{a.detail.appKey===n&&le(this,oe,"f").next(ze.setInstance(a.detail.modules))}))),this.dispose=()=>{o==null||o.unsubscribe(),le(this,oe,"f").value.instance&&le(this,oe,"f").value.instance.dispose(),le(this,oe,"f").complete()}}initialize(){return new Pe(e=>{le(this,oe,"f").next(ze.initialize()),e.add(py([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([r,n,i])=>e.next({manifest:r,script:n,config:i}),error:r=>{e.error(r),le(this,oe,"f").next(ze.initialize.failure(r))},complete:()=>{le(this,oe,"f").next(ze.initialize.success()),e.complete()}}))})}loadConfig(){le(this,oe,"f").next(ze.fetchConfig(this.appKey))}loadManifest(){le(this,oe,"f").next(ze.fetchManifest(this.appKey))}loadAppModule(e=!0){return Fz(this,void 0,void 0,function*(){const r=yield this.getManifestAsync(e);le(this,oe,"f").next(ze.importApp(r.entry))})}getConfig(e=!1){return new Pe(r=>{if(le(this,oe,"f").value.config&&(r.next(le(this,oe,"f").value.config),!e))return r.complete();r.add(le(this,oe,"f").addEffect("set_config",({payload:n})=>{r.next(n)})),r.add(le(this,oe,"f").addEffect("fetch_config::success",({payload:n})=>{r.next(n),r.complete()})),r.add(le(this,oe,"f").addEffect("fetch_config::failure",({payload:n})=>{r.error(Error("failed to load application config",{cause:n}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?on:po)(this.getConfig(!e))}getManifest(e=!1){return new Pe(r=>{if(le(this,oe,"f").value.manifest&&(r.next(le(this,oe,"f").value.manifest),!e))return r.complete();r.add(le(this,oe,"f").addEffect("set_manifest",({payload:n})=>{r.next(n)})),r.add(le(this,oe,"f").addEffect("fetch_manifest::success",({payload:n})=>{r.next(n),r.complete()})),r.add(le(this,oe,"f").addEffect("fetch_manifest::failure",({payload:n})=>{r.error(Error("failed to load application manifest",{cause:n}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?on:po)(this.getManifest(!e))}getAppModule(e=!1){return new Pe(r=>{if(le(this,oe,"f").value.modules&&(r.next(le(this,oe,"f").value.modules),!e))return r.complete();r.add(le(this,oe,"f").addEffect("set_module",({payload:n})=>{r.next(n)})),r.add(le(this,oe,"f").addEffect("import_app::success",({payload:n})=>{r.next(n),r.complete()})),r.add(le(this,oe,"f").addEffect("import_app::failure",({payload:n})=>{r.error(Error("failed to load application modules from script",{cause:n}))})),r.add(this.getManifest().subscribe(n=>Li(le(this,oe,"f").next(ze.importApp(n.entry)))))})}getAppModuleAsync(e=!0){return(e?on:po)(this.getAppModule(!e))}}oe=new WeakMap,P2=new WeakSet,y6=function(e){const{appKey:r}=this;le(this,oe,"f").addEffect(ze.fetchManifest.success.type,n=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),le(this,oe,"f").addEffect(ze.fetchConfig.success.type,n=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),le(this,oe,"f").addEffect(ze.importApp.success.type,n=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),le(this,oe,"f").addEffect(ze.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:r},source:this})}),le(this,oe,"f").addEffect(ze.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:r},source:this})}),le(this,oe,"f").addEffect(ze.initialize.failure.type,({payload:n})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:r,error:n},source:this})})};class Mi extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new Mi("unauthorized","failed to load application manifest, request not authorized",r);case 404:return new Mi("not_found","application manifest not found",r)}return new Mi("unknown",`failed to load application manifest, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}class yo extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new yo("unauthorized","failed to load application config, request not authorized",r);case 404:return new yo("not_found","application config not found",r)}return new yo("unknown",`failed to load application config, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}var Xt=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},wl=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Cs,zs,ro,ui,td;class $z{static compareAppManifest(e,r){return JSON.stringify(e)===JSON.stringify(r)}get current(){return Xt(this,ro,"f").value}get current$(){return Xt(this,ro,"f").pipe(pa(),ky("appKey"))}constructor(e){Cs.set(this,void 0),zs.set(this,void 0),ro.set(this,void 0),ui.set(this,new un),td.set(this,void 0);const{event:r,config:n}=e;wl(this,td,r,"f"),wl(this,ro,new C1(void 0),"f"),this.appClient=new nn(n.client.getAppManifest),wl(this,Cs,new nn(n.client.getAppManifests),"f"),wl(this,zs,new nn(n.client.getAppConfig),"f"),Xt(this,ui,"f").add(()=>this.appClient.complete()),Xt(this,ui,"f").add(()=>Xt(this,Cs,"f").complete()),Xt(this,ui,"f").add(()=>Xt(this,zs,"f").complete()),Xt(this,ui,"f").add(this.current$.pipe(Zu(),Yg(()=>!!r)).subscribe(([i,o])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:i,next:o}})})),Xt(this,ui,"f").add(Xt(this,ro,"f").pipe(Zu(),Ge(([i])=>i),pa()).subscribe(i=>i.dispose()))}getAppManifest(e){return nn.extractQueryValue(this.appClient.query({appKey:e}).pipe(Kr(r=>{const{cause:n}=r;throw n instanceof Mi?n:n instanceof t2?Mi.fromHttpResponse(n.response,{cause:n}):new Mi("unknown","failed to load manifest",{cause:n})})))}getAllAppManifests(){return nn.extractQueryValue(Xt(this,Cs,"f").query())}getAppConfig(e,r){return nn.extractQueryValue(Xt(this,zs,"f").query({appKey:e,tag:r}).pipe(Kr(n=>{const{cause:i}=n;throw i instanceof yo?i:i instanceof t2?yo.fromHttpResponse(i.response,{cause:i}):new yo("unknown","failed to load config",{cause:i})})))}setCurrentApp(e){const r=typeof e=="string"?this.createApp({appKey:e}):Cv;Xt(this,ro,"f").next(r)}createApp(e){return new Cv(e,{provider:this,event:Xt(this,td,"f")})}dispose(){Xt(this,ui,"f").unsubscribe()}}Cs=new WeakMap,zs=new WeakMap,ro=new WeakMap,ui=new WeakMap,td=new WeakMap;var jz=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const R2="app",Bz={name:R2,configure:()=>new qz,initialize:t=>jz(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new $z({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var xl=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(h){a(h)}}function c(d){try{l(n.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},zv=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},rd;class qz{constructor(){this.defaultExpireTime=1*60*1e3,rd.set(this,[])}addConfigBuilder(e){zv(this,rd,"f").push(e)}_createHttpClient(e){return xl(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");if(r.hasClient(R2))return r.createClient(R2);{const n=yield e.requireInstance("serviceDiscovery");try{return yield n.createClient("app")}catch{return yield n.createClient("portal")}}})}createConfig(e){var r;return xl(this,void 0,void 0,function*(){const n=yield zv(this,rd,"f").reduce((i,o)=>xl(this,void 0,void 0,function*(){const a=new Mz(e,yield i);return yield Promise.resolve(o(a)),Object.assign(i,a.config)}),Promise.resolve({}));return(r=n.client)!==null&&r!==void 0||(n.client=yield(()=>xl(this,void 0,void 0,function*(){const i=yield this._createHttpClient(e);return{getAppManifest:{client:{fn:({appKey:o})=>i.json$(`/api/apps/${o}`)},key:({appKey:o})=>o,expire:this.defaultExpireTime},getAppManifests:{client:{fn:()=>i.json$("/api/apps")},key:()=>"manifests",expire:this.defaultExpireTime},getAppConfig:{client:{fn:({appKey:o,tag:a})=>i.json$(`/api/apps/${o}/config${a?`?tag=${a}`:""}`)},key:o=>JSON.stringify(o),expire:this.defaultExpireTime}}}))()),n})}}rd=new WeakMap;const Gz=(t,e)=>{t.addConfig({module:Bz,configure:r=>{e&&r.addConfigBuilder(e)}})},Kz=async t=>{t.logger.level=4,t.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),t.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),Gz(t),t.onConfigured(()=>{console.log("framework config done")}),t.onInitialized(async e=>{e.auth.defaultClient.setLogger(new f3(0)),console.debug("📒 subscribing to all events"),e.event.subscribe(r=>console.debug(`🔔🌍 [${r.type}]`,r))})};function rt(){return rt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rt.apply(this,arguments)}var ht;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(ht||(ht={}));const Sv="popstate";function Wz(t){t===void 0&&(t={});function e(n,i){let{pathname:o,search:a,hash:s}=n.location;return bc("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Ni(i)}return Qz(e,r,null,t)}function fe(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Yz(){return Math.random().toString(36).substr(2,8)}function kv(t){return{usr:t.state,key:t.key}}function bc(t,e,r,n){return r===void 0&&(r=null),rt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ii(e):e,{state:r,key:e&&e.key||n||Yz()})}function Ni(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ii(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function wc(t){let e=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,r=typeof t=="string"?t:Ni(t);return fe(e,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,e)}function Qz(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=ht.Pop,c=null;function l(){s=ht.Pop,c&&c({action:s,location:u.location})}function d(f,v){s=ht.Push;let g=bc(u.location,f,v);r&&r(g,f);let x=kv(g),m=u.createHref(g);try{a.pushState(x,"",m)}catch{i.location.assign(m)}o&&c&&c({action:s,location:u.location})}function h(f,v){s=ht.Replace;let g=bc(u.location,f,v);r&&r(g,f);let x=kv(g),m=u.createHref(g);a.replaceState(x,"",m),o&&c&&c({action:s,location:u.location})}let u={get action(){return s},get location(){return t(i,a)},listen(f){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(Sv,l),c=f,()=>{i.removeEventListener(Sv,l),c=null}},createHref(f){return e(i,f)},encodeLocation(f){let v=wc(typeof f=="string"?f:Ni(f));return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:h,go(f){return a.go(f)}};return u}var zt;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(zt||(zt={}));function Xz(t){return t.index===!0}function _6(t,e,r){return e===void 0&&(e=[]),r===void 0&&(r=new Set),t.map((n,i)=>{let o=[...e,i],a=typeof n.id=="string"?n.id:o.join("-");return fe(n.index!==!0||!n.children,"Cannot specify children on an index route"),fe(!r.has(a),'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),r.add(a),Xz(n)?rt({},n,{id:a}):rt({},n,{id:a,children:n.children?_6(n.children,o,r):void 0})})}function Ss(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?ii(e):e,i=w6(n.pathname||"/",r);if(i==null)return null;let o=b6(t);Jz(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=sS(o[s],dS(i));return a}function b6(t,e,r,n){return e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n=""),t.forEach((i,o)=>{let a={relativePath:i.path||"",caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(fe(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(n.length));let s=_o([n,a.relativePath]),c=r.concat(a);i.children&&i.children.length>0&&(fe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),b6(i.children,e,c,s)),!(i.path==null&&!i.index)&&e.push({path:s,score:oS(s,i.index),routesMeta:c})}),e}function Jz(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:aS(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Zz=/^:\w+$/,eS=3,tS=2,rS=1,nS=10,iS=-2,Av=t=>t==="*";function oS(t,e){let r=t.split("/"),n=r.length;return r.some(Av)&&(n+=iS),e&&(n+=tS),r.filter(i=>!Av(i)).reduce((i,o)=>i+(Zz.test(o)?eS:o===""?rS:nS),n)}function aS(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function sS(t,e){let{routesMeta:r}=t,n={},i="/",o=[];for(let a=0;a<r.length;++a){let s=r[a],c=a===r.length-1,l=i==="/"?e:e.slice(i.length)||"/",d=cS({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l);if(!d)return null;Object.assign(n,d.params);let h=s.route;o.push({params:n,pathname:_o([i,d.pathname]),pathnameBase:mS(_o([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=_o([i,d.pathnameBase]))}return o}function cS(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=lS(t.path,t.caseSensitive,t.end),i=e.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((l,d,h)=>{if(d==="*"){let u=s[h]||"";a=o.slice(0,o.length-u.length).replace(/(.)\/+$/,"$1")}return l[d]=hS(s[h]||"",d),l},{}),pathname:o,pathnameBase:a,pattern:t}}function lS(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),w0(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(a,s)=>(n.push(s),"([^\\/]+)"));return t.endsWith("*")?(n.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function dS(t){try{return decodeURI(t)}catch(e){return w0(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function hS(t,e){try{return decodeURIComponent(t)}catch(r){return w0(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function w6(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function w0(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function uS(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?ii(t):t;return{pathname:r?r.startsWith("/")?r:fS(r,e):e,search:vS(n),hash:gS(i)}}function fS(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Wh(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function x6(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function pS(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=ii(t):(i=rt({},t),fe(!i.pathname||!i.pathname.includes("?"),Wh("?","pathname","search",i)),fe(!i.pathname||!i.pathname.includes("#"),Wh("#","pathname","hash",i)),fe(!i.search||!i.search.includes("#"),Wh("#","search","hash",i)));let o=t===""||i.pathname==="",a=o?"/":i.pathname,s;if(n||a==null)s=r;else{let h=e.length-1;if(a.startsWith("..")){let u=a.split("/");for(;u[0]==="..";)u.shift(),h-=1;i.pathname=u.join("/")}s=h>=0?e[h]:"/"}let c=uS(i,s),l=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||d)&&(c.pathname+="/"),c}const _o=t=>t.join("/").replace(/\/\/+/g,"/"),mS=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),vS=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,gS=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class Tv extends Error{}class yS{constructor(e){this.pendingKeys=new Set,this.subscriber=void 0,fe(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((i,o)=>r=o),this.controller=new AbortController;let n=()=>r(new Tv("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((i,o)=>{let[a,s]=o;return Object.assign(i,{[a]:this.trackPromise(a,s)})},{})}trackPromise(e,r){if(!(r instanceof Promise))return r;this.pendingKeys.add(e);let n=Promise.race([r,this.abortPromise]).then(i=>this.onSettle(n,e,null,i),i=>this.onSettle(n,e,i));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,r,n,i){if(this.controller.signal.aborted&&n instanceof Tv)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);this.pendingKeys.delete(r),this.done&&this.unlistenAbortSignal();const o=this.subscriber;return n?(Object.defineProperty(e,"_error",{get:()=>n}),o&&o(!1),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>i}),o&&o(!1),i)}subscribe(e){this.subscriber=e}cancel(){this.controller.abort(),this.pendingKeys.forEach((r,n)=>this.pendingKeys.delete(n));let e=this.subscriber;e&&e(!0)}async resolveData(e){let r=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),r=await new Promise(i=>{this.subscribe(o=>{e.removeEventListener("abort",n),(o||this.done)&&i(o)})})}return r}get done(){return this.pendingKeys.size===0}get unwrappedData(){return fe(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,r)=>{let[n,i]=r;return Object.assign(e,{[n]:bS(i)})},{})}}function _S(t){return t instanceof Promise&&t._tracked===!0}function bS(t){if(!_S(t))return t;if(t._error)throw t._error;return t._data}class H1{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function E6(t){return t instanceof H1}const C6=["post","put","patch","delete"],wS=new Set(C6),xS=["get",...C6],ES=new Set(xS),CS=new Set([301,302,303,307,308]),zS=new Set([307,308]),Yh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},SS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},kS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AS=!kS;function TS(t){fe(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=_6(t.routes),r=null,n=new Set,i=null,o=null,a=null,s=!1,c=Ss(e,t.history.location,t.basename),l=null;if(c==null){let z=oo(404,{pathname:t.history.location.pathname}),{matches:T,route:F}=Hv(e);c=T,l={[F.id]:z}}let d=!c.some(z=>z.route.loader)||t.hydrationData!=null,h,u={historyAction:t.history.action,location:t.history.location,matches:c,initialized:d,navigation:Yh,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||l,fetchers:new Map},f=ht.Pop,v=!1,g,x=!1,m=!1,p=[],y=[],w=new Map,A=0,O=-1,U=new Map,N=new Set,xe=new Map,Y=new Map;function Qt(){return r=t.history.listen(z=>{let{action:T,location:F}=z;return $(T,F)}),u.initialized||$(ht.Pop,u.location),h}function Bi(){r&&r(),n.clear(),g&&g.abort(),u.fetchers.forEach((z,T)=>j1(T))}function qi(z){return n.add(z),()=>n.delete(z)}function Lt(z){u=rt({},u,z),n.forEach(T=>T(u))}function Gi(z,T){var F;let X=u.actionData!=null&&u.navigation.formMethod!=null&&u.navigation.state==="loading"&&((F=u.navigation.formAction)==null?void 0:F.split("?")[0])===z.pathname,te=T.loaderData?{loaderData:Qh(u.loaderData,T.loaderData,T.matches||[])}:{};Lt(rt({},X?{}:{actionData:null},T,te,{historyAction:f,location:z,initialized:!0,navigation:Yh,revalidation:"idle",restoreScrollPosition:u.navigation.formData?!1:I0(z,T.matches||u.matches),preventScrollReset:v})),x||f===ht.Pop||(f===ht.Push?t.history.push(z,z.state):f===ht.Replace&&t.history.replace(z,z.state)),f=ht.Pop,v=!1,x=!1,m=!1,p=[],y=[]}async function Wa(z,T){if(typeof z=="number"){t.history.go(z);return}let{path:F,submission:X,error:te}=Iv(z,T),he=bc(u.location,F,T&&T.state);he=rt({},he,t.history.encodeLocation(he));let ge=(T&&T.replace)===!0||X!=null?ht.Replace:ht.Push,Ee=T&&"preventScrollReset"in T?T.preventScrollReset===!0:void 0;return await $(ge,he,{submission:X,pendingError:te,preventScrollReset:Ee,replace:T&&T.replace})}function Ya(){if(oi(),Lt({revalidation:"loading"}),u.navigation.state!=="submitting"){if(u.navigation.state==="idle"){$(u.historyAction,u.location,{startUninterruptedRevalidation:!0});return}$(f||u.historyAction,u.navigation.location,{overrideNavigation:u.navigation})}}async function $(z,T,F){g&&g.abort(),g=null,f=z,x=(F&&F.startUninterruptedRevalidation)===!0,W6(u.location,u.matches),v=(F&&F.preventScrollReset)===!0;let X=F&&F.overrideNavigation,te=Ss(e,T,t.basename);if(!te){let cr=oo(404,{pathname:T.pathname}),{matches:Po,route:Pn}=Hv(e);B1(),Gi(T,{matches:Po,loaderData:{},errors:{[Pn.id]:cr}});return}if(HS(u.location,T)){Gi(T,{matches:te});return}g=new AbortController;let he=ls(T,g.signal,F&&F.submission),ge,Ee;if(F&&F.pendingError)Ee={[ma(te).route.id]:F.pendingError};else if(F&&F.submission){let cr=await ie(he,T,F.submission,te,{replace:F.replace});if(cr.shortCircuited)return;ge=cr.pendingActionData,Ee=cr.pendingActionError,X=rt({state:"loading",location:T},F.submission),he=new Request(he.url,{signal:he.signal})}let{shortCircuited:Ie,loaderData:Ce,errors:Oe}=await ce(he,T,te,X,F&&F.submission,F&&F.replace,ge,Ee);Ie||(g=null,Gi(T,{matches:te,loaderData:Ce,errors:Oe}))}async function ie(z,T,F,X,te){oi();let he=rt({state:"submitting",location:T},F);Lt({navigation:he});let ge,Ee=Nv(X,T);if(!Ee.route.action)ge={type:zt.error,error:oo(405,{method:z.method,pathname:T.pathname,routeId:Ee.route.id})};else if(ge=await cs("action",z,Ee,X,h.basename),z.signal.aborted)return{shortCircuited:!0};if(za(ge))return await Mn(u,ge,te&&te.replace===!0),{shortCircuited:!0};if(Bs(ge)){let Ie=ma(X,Ee.route.id);return(te&&te.replace)!==!0&&(f=ht.Push),{pendingActionError:{[Ie.route.id]:ge.error}}}if(ho(ge))throw new Error("defer() is not supported in actions");return{pendingActionData:{[Ee.route.id]:ge.data}}}async function ce(z,T,F,X,te,he,ge,Ee){let Ie=X;Ie||(Ie={state:"loading",location:T,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0});let[Ce,Oe]=Mv(u,F,te,T,m,p,y,ge,Ee,xe);if(B1(lr=>!(F&&F.some(dr=>dr.route.id===lr))||Ce&&Ce.some(dr=>dr.route.id===lr)),Ce.length===0&&Oe.length===0)return Gi(T,{matches:F,loaderData:Qh(u.loaderData,{},F),errors:Ee||null,actionData:ge||null}),{shortCircuited:!0};x||(Oe.forEach(lr=>{let[dr]=lr,Lo=u.fetchers.get(dr),Gc={state:"loading",data:Lo&&Lo.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(dr,Gc)}),Lt(rt({navigation:Ie,actionData:ge||u.actionData||null},Oe.length>0?{fetchers:new Map(u.fetchers)}:{}))),O=++A,Oe.forEach(lr=>{let[dr]=lr;return w.set(dr,g)});let{results:cr,loaderResults:Po,fetcherResults:Pn}=await fn(u.matches,F,Ce,Oe,z);if(z.signal.aborted)return{shortCircuited:!0};Oe.forEach(lr=>{let[dr]=lr;return w.delete(dr)});let Ro=Lv(cr);if(Ro)return await Mn(u,Ro,he),{shortCircuited:!0};let{loaderData:q1,errors:qc}=Rv(u,F,Ce,Po,Ee,Oe,Pn,Y);Y.forEach((lr,dr)=>{lr.subscribe(Lo=>{(Lo||lr.done)&&Y.delete(dr)})}),G6();let Ho=T0(O);return rt({loaderData:q1,errors:qc},Ho||Oe.length>0?{fetchers:new Map(u.fetchers)}:{})}function $e(z){return u.fetchers.get(z)||SS}function it(z,T,F,X){if(AS)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");w.has(z)&&Bc(z);let te=Ss(e,F,t.basename);if(!te){$1(z,T,oo(404,{pathname:F}));return}let{path:he,submission:ge}=Iv(F,X,!0),Ee=Nv(te,he);if(ge){Mo(z,T,he,Ee,te,ge);return}xe.set(z,[he,Ee,te]),In(z,T,he,Ee,te)}async function Mo(z,T,F,X,te,he){if(oi(),xe.delete(z),!X.route.action){let Rn=oo(405,{method:he.formMethod,pathname:F,routeId:T});$1(z,T,Rn);return}let ge=u.fetchers.get(z),Ee=rt({state:"submitting"},he,{data:ge&&ge.data});u.fetchers.set(z,Ee),Lt({fetchers:new Map(u.fetchers)});let Ie=new AbortController,Ce=ls(F,Ie.signal,he);w.set(z,Ie);let Oe=await cs("action",Ce,X,te,h.basename);if(Ce.signal.aborted){w.get(z)===Ie&&w.delete(z);return}if(za(Oe)){w.delete(z),N.add(z);let Rn=rt({state:"loading"},he,{data:void 0});return u.fetchers.set(z,Rn),Lt({fetchers:new Map(u.fetchers)}),Mn(u,Oe)}if(Bs(Oe)){$1(z,T,Oe.error);return}ho(Oe)&&fe(!1,"defer() is not supported in actions");let cr=u.navigation.location||u.location,Po=ls(cr,Ie.signal),Pn=u.navigation.state!=="idle"?Ss(e,u.navigation.location,t.basename):u.matches;fe(Pn,"Didn't find any matches after fetcher action");let Ro=++A;U.set(z,Ro);let q1=rt({state:"loading",data:Oe.data},he);u.fetchers.set(z,q1);let[qc,Ho]=Mv(u,Pn,he,cr,m,p,y,{[X.route.id]:Oe.data},void 0,xe);Ho.filter(Rn=>{let[Ki]=Rn;return Ki!==z}).forEach(Rn=>{let[Ki]=Rn,R0=u.fetchers.get(Ki),X6={state:"loading",data:R0&&R0.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(Ki,X6),w.set(Ki,Ie)}),Lt({fetchers:new Map(u.fetchers)});let{results:lr,loaderResults:dr,fetcherResults:Lo}=await fn(u.matches,Pn,qc,Ho,Po);if(Ie.signal.aborted)return;U.delete(z),w.delete(z),Ho.forEach(Rn=>{let[Ki]=Rn;return w.delete(Ki)});let Gc=Lv(lr);if(Gc)return Mn(u,Gc);let{loaderData:M0,errors:P0}=Rv(u,u.matches,qc,dr,void 0,Ho,Lo,Y),Y6={state:"idle",data:Oe.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(z,Y6);let Q6=T0(Ro);u.navigation.state==="loading"&&Ro>O?(fe(f,"Expected pending action"),g&&g.abort(),Gi(u.navigation.location,{matches:Pn,loaderData:M0,errors:P0,fetchers:new Map(u.fetchers)})):(Lt(rt({errors:P0,loaderData:Qh(u.loaderData,M0,Pn)},Q6?{fetchers:new Map(u.fetchers)}:{})),m=!1)}async function In(z,T,F,X,te){let he=u.fetchers.get(z),ge={state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,data:he&&he.data};u.fetchers.set(z,ge),Lt({fetchers:new Map(u.fetchers)});let Ee=new AbortController,Ie=ls(F,Ee.signal);w.set(z,Ee);let Ce=await cs("loader",Ie,X,te,h.basename);if(ho(Ce)&&(Ce=await T6(Ce,Ie.signal,!0)||Ce),w.get(z)===Ee&&w.delete(z),Ie.signal.aborted)return;if(za(Ce)){await Mn(u,Ce);return}if(Bs(Ce)){let cr=ma(u.matches,T);u.fetchers.delete(z),Lt({fetchers:new Map(u.fetchers),errors:{[cr.route.id]:Ce.error}});return}fe(!ho(Ce),"Unhandled fetcher deferred data");let Oe={state:"idle",data:Ce.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(z,Oe),Lt({fetchers:new Map(u.fetchers)})}async function Mn(z,T,F){var X;T.revalidate&&(m=!0);let te=bc(z.location,T.location);if(fe(te,"Expected a location on the redirect navigation"),typeof((X=window)==null?void 0:X.location)<"u"){let Oe=wc(T.location).origin;if(window.location.origin!==Oe){F?window.location.replace(T.location):window.location.assign(T.location);return}}g=null;let he=F===!0?ht.Replace:ht.Push,{formMethod:ge,formAction:Ee,formEncType:Ie,formData:Ce}=z.navigation;zS.has(T.status)&&ge&&A6(ge)&&Ie&&Ce?await $(he,te,{submission:{formMethod:ge,formAction:T.location,formEncType:Ie,formData:Ce}}):await $(he,te,{overrideNavigation:{state:"loading",location:te,formMethod:ge||void 0,formAction:Ee||void 0,formEncType:Ie||void 0,formData:Ce||void 0}})}async function fn(z,T,F,X,te){let he=await Promise.all([...F.map(Ie=>cs("loader",te,Ie,T,h.basename)),...X.map(Ie=>{let[,Ce,Oe,cr]=Ie;return cs("loader",ls(Ce,te.signal),Oe,cr,h.basename)})]),ge=he.slice(0,F.length),Ee=he.slice(F.length);return await Promise.all([Ov(z,F,ge,te.signal,!1,u.loaderData),Ov(z,X.map(Ie=>{let[,,Ce]=Ie;return Ce}),Ee,te.signal,!0)]),{results:he,loaderResults:ge,fetcherResults:Ee}}function oi(){m=!0,p.push(...B1()),xe.forEach((z,T)=>{w.has(T)&&(y.push(T),Bc(T))})}function $1(z,T,F){let X=ma(u.matches,T);j1(z),Lt({errors:{[X.route.id]:F},fetchers:new Map(u.fetchers)})}function j1(z){w.has(z)&&Bc(z),xe.delete(z),U.delete(z),N.delete(z),u.fetchers.delete(z)}function Bc(z){let T=w.get(z);fe(T,"Expected fetch controller: "+z),T.abort(),w.delete(z)}function A0(z){for(let T of z){let X={state:"idle",data:$e(T).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};u.fetchers.set(T,X)}}function G6(){let z=[];for(let T of N){let F=u.fetchers.get(T);fe(F,"Expected fetcher: "+T),F.state==="loading"&&(N.delete(T),z.push(T))}A0(z)}function T0(z){let T=[];for(let[F,X]of U)if(X<z){let te=u.fetchers.get(F);fe(te,"Expected fetcher: "+F),te.state==="loading"&&(Bc(F),U.delete(F),T.push(F))}return A0(T),T.length>0}function B1(z){let T=[];return Y.forEach((F,X)=>{(!z||z(X))&&(F.cancel(),T.push(X),Y.delete(X))}),T}function K6(z,T,F){if(i=z,a=T,o=F||(X=>X.key),!s&&u.navigation===Yh){s=!0;let X=I0(u.location,u.matches);X!=null&&Lt({restoreScrollPosition:X})}return()=>{i=null,a=null,o=null}}function W6(z,T){if(i&&o&&a){let F=T.map(te=>Dv(te,u.loaderData)),X=o(z,F)||z.key;i[X]=a()}}function I0(z,T){if(i&&o&&a){let F=T.map(he=>Dv(he,u.loaderData)),X=o(z,F)||z.key,te=i[X];if(typeof te=="number")return te}return null}return h={get basename(){return t.basename},get state(){return u},get routes(){return e},initialize:Qt,subscribe:qi,enableScrollRestoration:K6,navigate:Wa,fetch:it,revalidate:Ya,createHref:z=>t.history.createHref(z),encodeLocation:z=>t.history.encodeLocation(z),getFetcher:$e,deleteFetcher:j1,dispose:Bi,_internalFetchControllers:w,_internalActiveDeferreds:Y},h}function IS(t){return t!=null&&"formData"in t}function Iv(t,e,r){r===void 0&&(r=!1);let n=typeof t=="string"?t:Ni(t);if(!e||!IS(e))return{path:n};if(e.formMethod&&!OS(e.formMethod))return{path:n,error:oo(405,{method:e.formMethod})};if(e.formMethod&&A6(e.formMethod))return{path:n,submission:{formMethod:e.formMethod,formAction:k6(n),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData}};let i=ii(n);try{let o=S6(e.formData);r&&i.search&&I6(i.search)&&o.append("index",""),i.search="?"+o}catch{return{path:n,error:oo(400)}}return{path:Ni(i)}}function MS(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function Mv(t,e,r,n,i,o,a,s,c,l){let d=c?Object.values(c)[0]:s?Object.values(s)[0]:null,h=c?Object.keys(c)[0]:void 0,f=MS(e,h).filter((g,x)=>g.route.loader!=null&&(PS(t.loaderData,t.matches[x],g)||o.some(m=>m===g.route.id)||Pv(t.location,t.matches[x],r,n,g,i,d))),v=[];return l&&l.forEach((g,x)=>{let[m,p,y]=g;a.includes(x)?v.push([x,m,p,y]):i&&Pv(m,p,r,m,p,i,d)&&v.push([x,m,p,y])}),[f,v]}function PS(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function z6(t,e){let r=t.route.path;return t.pathname!==e.pathname||r&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function Pv(t,e,r,n,i,o,a){let s=wc(t),c=e.params,l=wc(n),d=i.params,h=z6(e,i)||s.toString()===l.toString()||s.search!==l.search||o;if(i.route.shouldRevalidate){let u=i.route.shouldRevalidate(rt({currentUrl:s,currentParams:c,nextUrl:l,nextParams:d},r,{actionResult:a,defaultShouldRevalidate:h}));if(typeof u=="boolean")return u}return h}async function cs(t,e,r,n,i,o,a,s){i===void 0&&(i="/"),o===void 0&&(o=!1),a===void 0&&(a=!1);let c,l,d,h=new Promise((f,v)=>d=v),u=()=>d();e.signal.addEventListener("abort",u);try{let f=r.route[t];fe(f,"Could not find the "+t+' to run on the "'+r.route.id+'" route'),l=await Promise.race([f({request:e,params:r.params,context:s}),h]),fe(l!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(f){c=zt.error,l=f}finally{e.signal.removeEventListener("abort",u)}if(LS(l)){let f=l.status;if(CS.has(f)){let x=l.headers.get("Location");if(fe(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!(/^[a-z+]+:\/\//i.test(x)||x.startsWith("//"))){let p=n.slice(0,n.indexOf(r)+1),y=x6(p).map(A=>A.pathnameBase),w=pS(x,y,new URL(e.url).pathname);if(fe(Ni(w),"Unable to resolve redirect location: "+x),i){let A=w.pathname;w.pathname=A==="/"?i:_o([i,A])}x=Ni(w)}if(o)throw l.headers.set("Location",x),l;return{type:zt.redirect,status:f,location:x,revalidate:l.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:c||zt.data,response:l};let v,g=l.headers.get("Content-Type");return g&&g.startsWith("application/json")?v=await l.json():v=await l.text(),c===zt.error?{type:c,error:new H1(f,l.statusText,v),headers:l.headers}:{type:zt.data,data:v,statusCode:l.status,headers:l.headers}}return c===zt.error?{type:c,error:l}:l instanceof yS?{type:zt.deferred,deferredData:l}:{type:zt.data,data:l}}function ls(t,e,r){let n=wc(k6(t)).toString(),i={signal:e};if(r){let{formMethod:o,formEncType:a,formData:s}=r;i.method=o.toUpperCase(),i.body=a==="application/x-www-form-urlencoded"?S6(s):s}return new Request(n,i)}function S6(t){let e=new URLSearchParams;for(let[r,n]of t.entries())fe(typeof n=="string",'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),e.append(r,n);return e}function RS(t,e,r,n,i){let o={},a=null,s,c=!1,l={};return r.forEach((d,h)=>{let u=e[h].route.id;if(fe(!za(d),"Cannot handle redirect results in processLoaderData"),Bs(d)){let f=ma(t,u),v=d.error;n&&(v=Object.values(n)[0],n=void 0),a=Object.assign(a||{},{[f.route.id]:v}),c||(c=!0,s=E6(d.error)?d.error.status:500),d.headers&&(l[u]=d.headers)}else ho(d)?(i&&i.set(u,d.deferredData),o[u]=d.deferredData.data):(o[u]=d.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(s=d.statusCode),d.headers&&(l[u]=d.headers))}),n&&(a=n),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:l}}function Rv(t,e,r,n,i,o,a,s){let{loaderData:c,errors:l}=RS(e,r,n,i,s);for(let d=0;d<o.length;d++){let[h,,u]=o[d];fe(a!==void 0&&a[d]!==void 0,"Did not find corresponding fetcher result");let f=a[d];if(Bs(f)){let v=ma(t.matches,u.route.id);l&&l[v.route.id]||(l=rt({},l,{[v.route.id]:f.error})),t.fetchers.delete(h)}else{if(za(f))throw new Error("Unhandled fetcher revalidation redirect");if(ho(f))throw new Error("Unhandled fetcher deferred data");{let v={state:"idle",data:f.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};t.fetchers.set(h,v)}}}return{loaderData:c,errors:l}}function Qh(t,e,r){let n=rt({},e);return r.forEach(i=>{let o=i.route.id;e[o]===void 0&&t[o]!==void 0&&(n[o]=t[o])}),n}function ma(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function Hv(t){let e=t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function oo(t,e){let{pathname:r,routeId:n,method:i}=e===void 0?{}:e,o="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&r&&n?a="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a="Cannot submit binary form data using GET"):t===403?(o="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):t===404?(o="Not Found",a='No route matches URL "'+r+'"'):t===405&&(o="Method Not Allowed",i&&r&&n?a="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new H1(t||500,o,new Error(a),!0)}function Lv(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(za(r))return r}}function k6(t){let e=typeof t=="string"?ii(t):t;return Ni(rt({},e,{hash:""}))}function HS(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash!==e.hash}function ho(t){return t.type===zt.deferred}function Bs(t){return t.type===zt.error}function za(t){return(t&&t.type)===zt.redirect}function LS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function OS(t){return ES.has(t)}function A6(t){return wS.has(t)}async function Ov(t,e,r,n,i,o){for(let a=0;a<r.length;a++){let s=r[a],c=e[a],l=t.find(h=>h.route.id===c.route.id),d=l!=null&&!z6(l,c)&&(o&&o[c.route.id])!==void 0;ho(s)&&(i||d)&&await T6(s,n,i).then(h=>{h&&(r[a]=h||r[a])})}}async function T6(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:zt.data,data:t.deferredData.unwrappedData}}catch(i){return{type:zt.error,error:i}}return{type:zt.data,data:t.deferredData.data}}}function I6(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Dv(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function Nv(t,e){let r=typeof e=="string"?ii(e).search:e.search;if(t[t.length-1].route.index&&I6(r||""))return t[t.length-1];let n=x6(t);return n[n.length-1]}function n1(){return n1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n1.apply(this,arguments)}function DS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const NS=typeof Object.is=="function"?Object.is:DS,{useState:VS,useEffect:FS,useLayoutEffect:US,useDebugValue:$S}=ru;function jS(t,e,r){const n=e(),[{inst:i},o]=VS({inst:{value:n,getSnapshot:e}});return US(()=>{i.value=n,i.getSnapshot=e,Xh(i)&&o({inst:i})},[t,n,e]),FS(()=>(Xh(i)&&o({inst:i}),t(()=>{Xh(i)&&o({inst:i})})),[t]),$S(n),n}function Xh(t){const e=t.getSnapshot,r=t.value;try{const n=e();return!NS(r,n)}catch{return!0}}function BS(t,e,r){return e()}const qS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",GS=!qS,KS=GS?BS:jS,WS="useSyncExternalStore"in ru?(t=>t.useSyncExternalStore)(ru):KS,YS=P.exports.createContext(null),M6=P.exports.createContext(null),x0=P.exports.createContext(null),P6=P.exports.createContext(null),L1=P.exports.createContext(null),Lc=P.exports.createContext({outlet:null,matches:[]}),R6=P.exports.createContext(null);function E0(){return P.exports.useContext(L1)!=null}function QS(){return E0()||fe(!1),P.exports.useContext(L1).location}const XS=P.exports.createContext(null);function JS(t){let e=P.exports.useContext(Lc).outlet;return e&&P.exports.createElement(XS.Provider,{value:t},e)}function ZS(){let{matches:t}=P.exports.useContext(Lc),e=t[t.length-1];return e?e.params:{}}function ek(t,e){E0()||fe(!1);let{navigator:r}=P.exports.useContext(P6),n=P.exports.useContext(x0),{matches:i}=P.exports.useContext(Lc),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let c=QS(),l;if(e){var d;let g=typeof e=="string"?ii(e):e;s==="/"||((d=g.pathname)==null?void 0:d.startsWith(s))||fe(!1),l=g}else l=c;let h=l.pathname||"/",u=s==="/"?h:h.slice(s.length)||"/",f=Ss(t,{pathname:u}),v=ik(f&&f.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:_o([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:_o([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n||void 0);return e&&v?P.exports.createElement(L1.Provider,{value:{location:n1({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:ht.Pop}},v):v}function tk(){let t=ak(),e=E6(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n};return P.exports.createElement(P.exports.Fragment,null,P.exports.createElement("h2",null,"Unhandled Thrown Error!"),P.exports.createElement("h3",{style:{fontStyle:"italic"}},e),r?P.exports.createElement("pre",{style:i},r):null,P.exports.createElement("p",null,"💿 Hey developer 👋"),P.exports.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.exports.createElement("code",{style:o},"errorElement")," props on ",P.exports.createElement("code",{style:o},"<Route>")))}class rk extends P.exports.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location?{error:e.error,location:e.location}:{error:e.error||r.error,location:r.location}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error?P.exports.createElement(R6.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function nk(t){let{routeContext:e,match:r,children:n}=t,i=P.exports.useContext(YS);return i&&r.route.errorElement&&(i._deepestRenderedBoundaryId=r.route.id),P.exports.createElement(Lc.Provider,{value:e},n)}function ik(t,e,r){if(e===void 0&&(e=[]),t==null)if(r!=null&&r.errors)t=r.matches;else return null;let n=t,i=r==null?void 0:r.errors;if(i!=null){let o=n.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||fe(!1),n=n.slice(0,Math.min(n.length,o+1))}return n.reduceRight((o,a,s)=>{let c=a.route.id?i==null?void 0:i[a.route.id]:null,l=r?a.route.errorElement||P.exports.createElement(tk,null):null,d=()=>P.exports.createElement(nk,{match:a,routeContext:{outlet:o,matches:e.concat(n.slice(0,s+1))}},c?l:a.route.element!==void 0?a.route.element:o);return r&&(a.route.errorElement||s===0)?P.exports.createElement(rk,{location:r.location,component:l,error:c,children:d()}):d()},null)}var Vv;(function(t){t.UseRevalidator="useRevalidator"})(Vv||(Vv={}));var H2;(function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"})(H2||(H2={}));function ok(t){let e=P.exports.useContext(x0);return e||fe(!1),e}function ak(){var t;let e=P.exports.useContext(R6),r=ok(H2.UseRouteError),n=P.exports.useContext(Lc),i=n.matches[n.matches.length-1];return e||(n||fe(!1),i.route.id||fe(!1),(t=r.errors)==null?void 0:t[i.route.id])}function sk(t){let{fallbackElement:e,router:r}=t,n=WS(r.subscribe,()=>r.state,()=>r.state),i=P.exports.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:a=>r.navigate(a),push:(a,s,c)=>r.navigate(a,{state:s,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(a,s,c)=>r.navigate(a,{replace:!0,state:s,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[r]),o=r.basename||"/";return P.exports.createElement(M6.Provider,{value:{router:r,navigator:i,static:!1,basename:o}},P.exports.createElement(x0.Provider,{value:n},P.exports.createElement(dk,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:i},r.state.initialized?P.exports.createElement(hk,null):e)))}function ck(t){return JS(t.context)}function lk(t){fe(!1)}function dk(t){let{basename:e="/",children:r=null,location:n,navigationType:i=ht.Pop,navigator:o,static:a=!1}=t;E0()&&fe(!1);let s=e.replace(/^\/*/,"/"),c=P.exports.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof n=="string"&&(n=ii(n));let{pathname:l="/",search:d="",hash:h="",state:u=null,key:f="default"}=n,v=P.exports.useMemo(()=>{let g=w6(l,s);return g==null?null:{pathname:g,search:d,hash:h,state:u,key:f}},[s,l,d,h,u,f]);return v==null?null:P.exports.createElement(P6.Provider,{value:c},P.exports.createElement(L1.Provider,{children:r,value:{location:v,navigationType:i}}))}function hk(t){let{children:e,location:r}=t,n=P.exports.useContext(M6),i=n&&!e?n.router.routes:L2(e);return ek(i,r)}var Fv;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(Fv||(Fv={}));new Promise(()=>{});function L2(t,e){e===void 0&&(e=[]);let r=[];return P.exports.Children.forEach(t,(n,i)=>{if(!P.exports.isValidElement(n))return;if(n.type===P.exports.Fragment){r.push.apply(r,L2(n.props.children,e));return}n.type!==lk&&fe(!1),!n.props.index||!n.props.children||fe(!1);let o=[...e,i],a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,hasErrorBoundary:n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle};n.props.children&&(a.children=L2(n.props.children,o)),r.push(a)}),r}function H6(t){return t.map(e=>{let r=n1({},e);return r.hasErrorBoundary==null&&(r.hasErrorBoundary=r.errorElement!=null),r.children&&(r.children=H6(r.children)),r})}function O2(){return O2=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},O2.apply(this,arguments)}function uk(t,e){return TS({basename:e==null?void 0:e.basename,history:Wz({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||fk(),routes:H6(t)}).initialize()}function fk(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=O2({},e,{errors:pk(e.errors)})),e}function pk(t){if(!t)return null;let e=Object.entries(t),r={};for(let[n,i]of e)i&&i.__type==="RouteErrorResponse"?r[n]=new H1(i.status,i.statusText,i.data,i.internal===!0):r[n]=i;return r}var Uv;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(Uv||(Uv={}));var $v;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})($v||($v={}));const mk=(t,e,r)=>{P.exports.useEffect(()=>{const n=t.subscribe(e);return n.add(r),()=>n.unsubscribe()},[t,e])},vk=(t,e,r)=>{P.exports.useLayoutEffect(()=>{const n=t.subscribe(e);return n.add(r),()=>n.unsubscribe()},[t,e])};function C0(t,e){e??(e=t.value);const[r,n]=P.exports.useState(e);return vk(t,n),r}const D2=({error:t})=>wn(w8,{children:[wn("div",{style:{marginTop:20,border:"1px solid"},children:[Q("h4",{style:{backgroundColor:"rgb(153, 0, 37)",color:"white",padding:10,margin:0},children:t.message}),Q("section",{style:{padding:10},children:t.stack&&Q("pre",{children:t.stack})})]}),t.cause&&Q(D2,{error:t.cause})]}),gk=t=>{const{appKey:e}=t,r=f0(),n=P.exports.useRef(null),i=P.exports.useRef(document.createElement("div")),[o,a]=P.exports.useState(!1),[s,c]=P.exports.useState(),l=C0(r.modules.app.current$);return P.exports.useEffect(()=>{r.modules.app.setCurrentApp(e)},[e]),P.exports.useEffect(()=>{a(!0),c(void 0);const d=new un;return d.add(l==null?void 0:l.initialize().subscribe({next:({manifest:h,script:u,config:f})=>{const[v]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""];i.current=document.createElement("div");const g=u.renderApp??u.default;d.add(g(i.current,{fusion:r,env:{basename:v,config:f,manifest:h}}))},complete:()=>{a(!1)},error:h=>{c(h)}})),()=>d.unsubscribe()},[l,i]),P.exports.useEffect(()=>{const d=n.current,h=i.current;if(!!(h&&d))return d.appendChild(h),()=>{try{d.removeChild(h)}catch(u){console.error(u)}}},[n.current,i.current]),s?s.cause instanceof Mi?wn("div",{children:[Q("h2",{children:"🔥 Failed to load application manifest 🤬"}),Q("h3",{children:s.cause.type}),Q(D2,{error:s}),";"]}):wn("div",{children:[Q("h2",{children:"🔥 Failed to load application 🤬"}),Q(D2,{error:s}),";"]}):o?Q(v6,{text:"Loading Application"}):Q("section",{ref:n})},yk=()=>{const t=f0().modules.app;if(!t)throw Error("Current framework does not have AppModule configured");const e=C0(t.current$),r=P.exports.useCallback(n=>t.setCurrentApp(n),[t]);return{currentApp:e,setCurrentApp:r}};globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;class Va extends CustomEvent{constructor(e){super(Va.eventName,e)}}Va.eventName="fwc-searchabledropdown-controller-connect";class L6 extends Bt{constructor(){super(...arguments),this.resolverCallbacks=[]}createRenderRoot(){return this}connectResolver(e){this.resolverCallbacks.forEach(r=>{r(e)})}removeResolver(){this.resolverCallbacks.forEach(e=>{e()})}connectedCallback(){super.connectedCallback(),this.addEventListener(Va.eventName,this.handleElementConnect)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Va.eventName,this.handleElementConnect)}handleElementConnect(e){const{disconnectedCallback:r,updateResolver:n}=e.detail;r(()=>{this.resolverCallbacks.filter(i=>i!==n)}),this.resolverCallbacks.push(n),e.preventDefault(),e.stopPropagation()}}const _k=Symbol();class bk{constructor(e,r,n){this.i=0,this.status=0,this.autoRun=!0,this.o=e,this.o.addController(this);const i=typeof r=="object"?r:{task:r,args:n};this.t=i.task,this.h=i.args,this.l=i.onComplete,this.u=i.onError,i.autoRun!==void 0&&(this.autoRun=i.autoRun),this.taskComplete=new Promise((o,a)=>{this.v=o,this._=a})}hostUpdated(){this.performTask()}async performTask(){var e;const r=(e=this.h)===null||e===void 0?void 0:e.call(this);this.shouldRun(r)&&this.run(r)}shouldRun(e){return this.autoRun&&this.m(e)}async run(e){var r,n,i;let o,a;e!=null||(e=(r=this.h)===null||r===void 0?void 0:r.call(this)),this.status!==2&&this.status!==3||(this.taskComplete=new Promise((c,l)=>{this.v=c,this._=l})),this.status=1,this.o.requestUpdate();const s=++this.i;try{o=await this.t(e)}catch(c){a=c}if(this.i===s){if(o===_k)this.status=0;else{if(a===void 0){try{(n=this.l)===null||n===void 0||n.call(this,o)}catch{}this.status=2,this.v(o)}else{try{(i=this.u)===null||i===void 0||i.call(this,a)}catch{}this.status=3,this._(a)}this.T=o,this.k=a}this.o.requestUpdate()}}get value(){return this.T}get error(){return this.k}render(e){var r,n,i,o;switch(this.status){case 0:return(r=e.initial)===null||r===void 0?void 0:r.call(e);case 1:return(n=e.pending)===null||n===void 0?void 0:n.call(e);case 2:return(i=e.complete)===null||i===void 0?void 0:i.call(e,this.value);case 3:return(o=e.error)===null||o===void 0?void 0:o.call(e,this.error);default:this.status}}m(e){const r=this.p;return this.p=e,Array.isArray(e)&&Array.isArray(r)?e.length===r.length&&e.some((n,i)=>b0(n,r[i])):e!==r}}class O1 extends CustomEvent{constructor(e){super(O1.eventName,e)}}O1.eventName="select";var ks,Qe,nd,As;class wk{constructor(e){this._isOpen=!1,this._listItems=[],this._selectedItems=[],ks.set(this,void 0),Qe.set(this,void 0),nd.set(this,""),As.set(this,[]),this.updateResolver=r=>{this.resolver=r,r!=null&&r.initialResult&&(dl(this,As,r.initialResult,"f"),this.task.run()),r!=null&&r.closeHandler&&dl(this,ks,r.closeHandler,"f"),je(this,Qe,"f").requestUpdate()},this._handleWindowClick=r=>{!r.target||r.target.nodeName!==je(this,Qe,"f").nodeName&&(this.isOpen=!1)},this.closeClick=r=>{je(this,Qe,"f").value="";const n=je(this,Qe,"f").renderRoot.querySelector("fwc-textinput");n&&(n.value=""),this.isOpen=!1,je(this,ks,"f")&&je(this,ks,"f").call(this,r)},dl(this,Qe,e,"f"),je(this,Qe,"f").addController(this),this.handleSelect=this.handleSelect.bind(this),this.handleKeyup=this.handleKeyup.bind(this),this.task=new bk(je(this,Qe,"f"),([r])=>x1(this,void 0,void 0,function*(){var n;if(!(!((n=this.resolver)===null||n===void 0)&&n.searchQuery))return[];let i;return r?i=yield this.resolver.searchQuery(r):je(this,As,"f").length?i=je(this,As,"f"):i=[{id:"initial",title:je(this,Qe,"f").initialText,isDisabled:!0}],this.result=this.mutateResult(i),this.result}),()=>[je(this,nd,"f")])}hostConnected(){const e=new Va({detail:{disconnectedCallback:r=>{this.disconnectProvider=r},updateResolver:this.updateResolver},bubbles:!0,composed:!0,cancelable:!1});je(this,Qe,"f").dispatchEvent(e),window.addEventListener("click",this._handleWindowClick)}hostDisconnected(){this.disconnectProvider&&this.disconnectProvider(),window.removeEventListener("click",this._handleWindowClick)}mutateResult(e){var r;if(this._selectedItems.length&&e)for(let n=0;n<e.length;n++){const i=e[n];if(i.type==="section"&&((r=i.children)===null||r===void 0?void 0:r.length))for(let o=0;o<i.children.length;o++){const a=i.children[o];this._selectedItems.find(s=>s.id===a.id)?a.isSelected=!0:a.isSelected=!1}else this._selectedItems.find(o=>o.id===i.id)?i.isSelected=!0:i.isSelected=!1}return e}handleSelect(e){if(e.stopPropagation(),this.result&&this._listItems){const r=this._listItems[e.detail.index];let n;for(const i of this.result)if(i.id===r)n=i;else if(i.children)for(const o of i.children)o.id===r&&(n=o);if(!(n!=null&&n.id))throw new Error("SearchableDropdownController could not find match in result provided by resolver.");je(this,Qe,"f").multiple?this._selectedItems.find(i=>i.id===(n==null?void 0:n.id))?(n.isSelected=!1,this._selectedItems=this._selectedItems.filter(i=>i.id!==(n==null?void 0:n.id)),je(this,Qe,"f").value=""):(n.isSelected=!0,this._selectedItems.push(n),je(this,Qe,"f").value=(n==null?void 0:n.title)||""):(this._selectedItems=[n],je(this,Qe,"f").value=(n==null?void 0:n.title)||"")}else this._selectedItems=[],je(this,Qe,"f").value="";je(this,Qe,"f").dispatchEvent(new O1({detail:{selected:this._selectedItems},bubbles:!0})),this.task.run(),je(this,Qe,"f").requestUpdate()}set isOpen(e){this._isOpen=e,je(this,Qe,"f").trailingIcon=e?"close":"",this._selectedItems&&this.task.run(),je(this,Qe,"f").requestUpdate()}get isOpen(){return this._isOpen}handleKeyup(e){var r,n;const i=e.target;if(e.key==="ArrowDown"){this._isOpen&&((r=this.result)===null||r===void 0?void 0:r.length)&&((n=je(this,Qe,"f").renderRoot.querySelector("fwc-list"))===null||n===void 0||n.focus());return}this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{dl(this,nd,i.value.trim().toLowerCase(),"f"),je(this,Qe,"f").requestUpdate()},250)}}ks=new WeakMap,Qe=new WeakMap,nd=new WeakMap,As=new WeakMap;const xk="fwc-searchable-dropdown-provider";let jv=class extends L6{};jv=b([Wt(xk)],jv);const ve=t=>t??st;const Vr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Oc=t=>(...e)=>({_$litDirective$:t,values:e});let Dc=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};const jt=Oc(class extends Dc{constructor(t){var e;if(super(t),t.type!==Vr.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,n;if(this.nt===void 0){this.nt=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in e)e[o]&&!(!((r=this.st)===null||r===void 0)&&r.has(o))&&this.nt.add(o);return this.render(e)}const i=t.element.classList;this.nt.forEach(o=>{o in e||(i.remove(o),this.nt.delete(o))});for(const o in e){const a=!!e[o];a===this.nt.has(o)||((n=this.st)===null||n===void 0?void 0:n.has(o))||(a?(i.add(o),this.nt.add(o)):(i.remove(o),this.nt.delete(o)))}return $r}});let El;const Ek=new Uint8Array(16);function Ck(){if(!El&&(El=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!El))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return El(Ek)}const Et=[];for(let t=0;t<256;++t)Et.push((t+256).toString(16).slice(1));function zk(t,e=0){return(Et[t[e+0]]+Et[t[e+1]]+Et[t[e+2]]+Et[t[e+3]]+"-"+Et[t[e+4]]+Et[t[e+5]]+"-"+Et[t[e+6]]+Et[t[e+7]]+"-"+Et[t[e+8]]+Et[t[e+9]]+"-"+Et[t[e+10]]+Et[t[e+11]]+Et[t[e+12]]+Et[t[e+13]]+Et[t[e+14]]+Et[t[e+15]]).toLowerCase()}const Sk=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bv={randomUUID:Sk};function qv(t,e,r){if(Bv.randomUUID&&!e&&!t)return Bv.randomUUID();t=t||{};const n=t.random||(t.rng||Ck)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return zk(n)}function kk(t,e){var r=t.matches||t.webkitMatchesSelector||t.msMatchesSelector;return r.call(t,e)}const Ak=t=>t.nodeType===Node.ELEMENT_NODE;function O6(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}const D6=()=>{},Tk={get passive(){return!1}};document.addEventListener("x",D6,Tk);document.removeEventListener("x",D6);const N6=(t=window.document)=>{let e=t.activeElement;const r=[];if(!e)return r;for(;e&&(r.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return r},Ik=t=>{const e=N6();if(!e.length)return!1;const r=e[e.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let i=[];const o=a=>{i=a.composedPath()};return document.body.addEventListener("check-if-focused",o),r.dispatchEvent(n),document.body.removeEventListener("check-if-focused",o),i.indexOf(t)!==-1};class D1 extends Bt{click(){if(this.mdcRoot){this.mdcRoot.focus(),this.mdcRoot.click();return}super.click()}createFoundation(){this.mdcFoundation!==void 0&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}var Io=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();var Mk={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Pk={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Gv={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};function Rk(t,e,r){if(!t)return{x:0,y:0};var n=e.x,i=e.y,o=n+r.left,a=i+r.top,s,c;if(t.type==="touchstart"){var l=t;s=l.changedTouches[0].pageX-o,c=l.changedTouches[0].pageY-a}else{var d=t;s=d.pageX-o,c=d.pageY-a}return{x:s,y:c}}var Kv=["touchstart","pointerdown","mousedown","keydown"],Wv=["touchend","pointerup","mouseup","contextmenu"],Cl=[],Hk=function(t){Kt(e,t);function e(r){var n=t.call(this,lt(lt({},e.defaultAdapter),r))||this;return n.activationAnimationHasEnded=!1,n.activationTimer=0,n.fgDeactivationRemovalTimer=0,n.fgScale="0",n.frame={width:0,height:0},n.initialSize=0,n.layoutFrame=0,n.maxRadius=0,n.unboundedCoords={left:0,top:0},n.activationState=n.defaultActivationState(),n.activationTimerCallback=function(){n.activationAnimationHasEnded=!0,n.runDeactivationUXLogicIfReady()},n.activateHandler=function(i){n.activateImpl(i)},n.deactivateHandler=function(){n.deactivateImpl()},n.focusHandler=function(){n.handleFocus()},n.blurHandler=function(){n.handleBlur()},n.resizeHandler=function(){n.layout()},n}return Object.defineProperty(e,"cssClasses",{get:function(){return Mk},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Pk},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Gv},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var r=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var i=e.cssClasses,o=i.ROOT,a=i.UNBOUNDED;requestAnimationFrame(function(){r.adapter.addClass(o),r.adapter.isUnbounded()&&(r.adapter.addClass(a),r.layoutInternal())})}},e.prototype.destroy=function(){var r=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var n=e.cssClasses,i=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){r.adapter.removeClass(i),r.adapter.removeClass(o),r.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(r){this.activateImpl(r)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var r=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){r.layoutInternal(),r.layoutFrame=0})},e.prototype.setUnbounded=function(r){var n=e.cssClasses.UNBOUNDED;r?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleFocus=function(){var r=this;requestAnimationFrame(function(){return r.adapter.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var r=this;requestAnimationFrame(function(){return r.adapter.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(r){var n,i;if(r){try{for(var o=tr(Kv),a=o.next();!a.done;a=o.next()){var s=a.value;this.adapter.registerInteractionHandler(s,this.activateHandler)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(r){var n,i;if(r.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=tr(Wv),a=o.next();!a.done;a=o.next()){var s=a.value;this.adapter.registerDocumentInteractionHandler(s,this.deactivateHandler)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.deregisterRootHandlers=function(){var r,n;try{for(var i=tr(Kv),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var r,n;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=tr(Wv),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.removeCssVars=function(){var r=this,n=e.strings,i=Object.keys(n);i.forEach(function(o){o.indexOf("VAR_")===0&&r.adapter.updateCssVariable(n[o],null)})},e.prototype.activateImpl=function(r){var n=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var o=this.previousActivationEvent,a=o&&r!==void 0&&o.type!==r.type;if(!a){i.isActivated=!0,i.isProgrammatic=r===void 0,i.activationEvent=r,i.wasActivatedByPointer=i.isProgrammatic?!1:r!==void 0&&(r.type==="mousedown"||r.type==="touchstart"||r.type==="pointerdown");var s=r!==void 0&&Cl.length>0&&Cl.some(function(c){return n.adapter.containsEventTarget(c)});if(s){this.resetActivationState();return}r!==void 0&&(Cl.push(r.target),this.registerDeactivationHandlers(r)),i.wasElementMadeActive=this.checkElementMadeActive(r),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){Cl=[],!i.wasElementMadeActive&&r!==void 0&&(r.key===" "||r.keyCode===32)&&(i.wasElementMadeActive=n.checkElementMadeActive(r),i.wasElementMadeActive&&n.animateActivation()),i.wasElementMadeActive||(n.activationState=n.defaultActivationState())})}}}},e.prototype.checkElementMadeActive=function(r){return r!==void 0&&r.type==="keydown"?this.adapter.isSurfaceActive():!0},e.prototype.animateActivation=function(){var r=this,n=e.strings,i=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,a=e.cssClasses,s=a.FG_DEACTIVATION,c=a.FG_ACTIVATION,l=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var d="",h="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates(),f=u.startPoint,v=u.endPoint;d=f.x+"px, "+f.y+"px",h=v.x+"px, "+v.y+"px"}this.adapter.updateCssVariable(i,d),this.adapter.updateCssVariable(o,h),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(c),this.activationTimer=setTimeout(function(){r.activationTimerCallback()},l)},e.prototype.getFgTranslationCoordinates=function(){var r=this.activationState,n=r.activationEvent,i=r.wasActivatedByPointer,o;i?o=Rk(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):o={x:this.frame.width/2,y:this.frame.height/2},o={x:o.x-this.initialSize/2,y:o.y-this.initialSize/2};var a={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:o,endPoint:a}},e.prototype.runDeactivationUXLogicIfReady=function(){var r=this,n=e.cssClasses.FG_DEACTIVATION,i=this.activationState,o=i.hasDeactivationUXRun,a=i.isActivated,s=o||!a;s&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){r.adapter.removeClass(n)},Gv.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var r=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(r),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var r=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return r.previousActivationEvent=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var r=this,n=this.activationState;if(!!n.isActivated){var i=lt({},n);n.isProgrammatic?(requestAnimationFrame(function(){r.animateDeactivation(i)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){r.activationState.hasDeactivationUXRun=!0,r.animateDeactivation(i),r.resetActivationState()}))}},e.prototype.animateDeactivation=function(r){var n=r.wasActivatedByPointer,i=r.wasElementMadeActive;(n||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var r=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width),i=function(){var a=Math.sqrt(Math.pow(r.frame.width,2)+Math.pow(r.frame.height,2));return a+e.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?n:i();var o=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&o%2!==0?this.initialSize=o-1:this.initialSize=o,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var r=e.strings,n=r.VAR_FG_SIZE,i=r.VAR_LEFT,o=r.VAR_TOP,a=r.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(a,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(Io);const Lk=Hk;const Ok=Oc(class extends Dc{constructor(t){var e;if(super(t),t.type!==Vr.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return n==null?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:r}=t.element;if(this.vt===void 0){this.vt=new Set;for(const n in e)this.vt.add(n);return this.render(e)}this.vt.forEach(n=>{e[n]==null&&(this.vt.delete(n),n.includes("-")?r.removeProperty(n):r[n]="")});for(const n in e){const i=e[n];i!=null&&(this.vt.add(n),n.includes("-")?r.setProperty(n,i):r[n]=i)}return $r}});class vt extends D1{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=Lk}get isActive(){return kk(this.parentElement||this,":active")}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0;break}},removeClass:e=>{switch(e){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1;break}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(e,r)=>{switch(e){case"--mdc-ripple-fg-scale":this.fgScale=r;break;case"--mdc-ripple-fg-size":this.fgSize=r;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=r;break;case"--mdc-ripple-fg-translate-start":this.translateStart=r;break;case"--mdc-ripple-left":this.leftPos=r;break;case"--mdc-ripple-top":this.topPos=r;break}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(e){this.waitForFoundation(()=>{this.mdcFoundation.activate(e)})}endPress(){this.waitForFoundation(()=>{this.mdcFoundation.deactivate()})}startFocus(){this.waitForFoundation(()=>{this.mdcFoundation.handleFocus()})}endFocus(){this.waitForFoundation(()=>{this.mdcFoundation.handleBlur()})}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(e){this.mdcFoundation?e():this.updateComplete.then(e)}update(e){e.has("disabled")&&this.disabled&&this.endHover(),super.update(e)}render(){const e=this.activated&&(this.primary||!this.accent),r=this.selected&&(this.primary||!this.accent),n={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":e,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":r,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return q`
|
|
293
293
|
<div class="mdc-ripple-surface mdc-ripple-upgraded ${jt(n)}"
|
|
294
294
|
style="${Ok({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}b([Yt(".mdc-ripple-surface")],vt.prototype,"mdcRoot",void 0);b([E({type:Boolean})],vt.prototype,"primary",void 0);b([E({type:Boolean})],vt.prototype,"accent",void 0);b([E({type:Boolean})],vt.prototype,"unbounded",void 0);b([E({type:Boolean})],vt.prototype,"disabled",void 0);b([E({type:Boolean})],vt.prototype,"activated",void 0);b([E({type:Boolean})],vt.prototype,"selected",void 0);b([E({type:Boolean})],vt.prototype,"internalUseStateLayerCustomProperties",void 0);b([Ye()],vt.prototype,"hovering",void 0);b([Ye()],vt.prototype,"bgFocused",void 0);b([Ye()],vt.prototype,"fgActivation",void 0);b([Ye()],vt.prototype,"fgDeactivation",void 0);b([Ye()],vt.prototype,"fgScale",void 0);b([Ye()],vt.prototype,"fgSize",void 0);b([Ye()],vt.prototype,"translateStart",void 0);b([Ye()],vt.prototype,"translateEnd",void 0);b([Ye()],vt.prototype,"leftPos",void 0);b([Ye()],vt.prototype,"topPos",void 0);const Dk=ue`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`;let N2=class extends vt{};N2.styles=[Dk];N2=b([M1("mwc-ripple")],N2);const Wr=t=>(e,r)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const n=e.constructor._observers;e.constructor._observers=new Map,n.forEach((i,o)=>e.constructor._observers.set(o,i))}}else{e.constructor._observers=new Map;const n=e.updated;e.updated=function(i){n.call(this,i),i.forEach((o,a)=>{const c=this.constructor._observers.get(a);c!==void 0&&c.call(this,this[a],o)})}}e.constructor._observers.set(r,t)};class N1{constructor(e){this.startPress=r=>{e().then(n=>{n&&n.startPress(r)})},this.endPress=()=>{e().then(r=>{r&&r.endPress()})},this.startFocus=()=>{e().then(r=>{r&&r.startFocus()})},this.endFocus=()=>{e().then(r=>{r&&r.endFocus()})},this.startHover=()=>{e().then(r=>{r&&r.startHover()})},this.endHover=()=>{e().then(r=>{r&&r.endHover()})}}}class Mt extends Bt{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new N1(()=>(this.shouldRenderRipple=!0,this.ripple)),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:e=>{const r=e.type;this.onDown(r==="mousedown"?"mouseup":"touchend",e)}}]}get text(){const e=this.textContent;return e?e.trim():""}render(){const e=this.renderText(),r=this.graphic?this.renderGraphic():q``,n=this.hasMeta?this.renderMeta():q``;return q`
|
|
295
295
|
${this.renderRipple()}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta charset="UTF-8" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Fusion Framework Dev Portal</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-66ca5efe.js"></script>
|
|
9
9
|
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Fusion",
|
|
6
6
|
"Fusion Framework",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"vite": "^4.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@equinor/fusion-framework-app": "^4.0.
|
|
38
|
+
"@equinor/fusion-framework-app": "^4.0.20",
|
|
39
39
|
"@equinor/fusion-framework-module-context": "^1.2.2",
|
|
40
|
-
"@equinor/fusion-framework-react": "^2.0.
|
|
40
|
+
"@equinor/fusion-framework-react": "^2.0.23",
|
|
41
41
|
"@equinor/fusion-react-button": "^0.5.15",
|
|
42
42
|
"@equinor/fusion-react-context-selector": "^0.1.8",
|
|
43
43
|
"@equinor/fusion-react-icon": "^0.2.15",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"react-router-dom": "^6.4.3",
|
|
53
53
|
"typescript": "^4.9.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "64e0a34ac2ada5860a003944b4e1326ad6bb25b8"
|
|
56
56
|
}
|