@oslokommune/punkt-react 12.3.1 → 12.3.2

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.
@@ -33,7 +33,7 @@
33
33
  return [];
34
34
  };
35
35
  }
36
- (function(Z,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],M):(Z=typeof globalThis<"u"?globalThis:Z||self,M(Z["punkt-react"]={},Z.React,Z.reactRouterDom))})(this,function(Z,M,kn){"use strict";var lC=Object.defineProperty;var uC=(Z,M,kn)=>M in Z?lC(Z,M,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Z[M]=kn;var _r=(Z,M,kn)=>uC(Z,typeof M!="symbol"?M+"":M,kn);function Jd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function Xd(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Qd=Jd(M);var un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ca(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qi={exports:{}},Sr={};/**
36
+ (function(Z,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],M):(Z=typeof globalThis<"u"?globalThis:Z||self,M(Z["punkt-react"]={},Z.React,Z.reactRouterDom))})(this,function(Z,M,kn){"use strict";var lC=Object.defineProperty;var uC=(Z,M,kn)=>M in Z?lC(Z,M,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Z[M]=kn;var _r=(Z,M,kn)=>uC(Z,typeof M!="symbol"?M+"":M,kn);function Jd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function Xd(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Qd=Jd(M);var un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qi={exports:{}},Sr={};/**
37
37
  * @license React
38
38
  * react-jsx-runtime.production.min.js
39
39
  *
@@ -53,20 +53,20 @@
53
53
  `+de+w}}var Ht=!1,Dt;{var yt=typeof WeakMap=="function"?WeakMap:Map;Dt=new yt}function vn(w,R){if(!w||Ht)return"";{var U=Dt.get(w);if(U!==void 0)return U}var te;Ht=!0;var ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ve;ve=Oe.current,Oe.current=null,Ne();try{if(R){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(at){te=at}Reflect.construct(w,[],he)}else{try{he.call()}catch(at){te=at}w.call(he.prototype)}}else{try{throw Error()}catch(at){te=at}w()}}catch(at){if(at&&te&&typeof at.stack=="string"){for(var se=at.stack.split(`
54
54
  `),et=te.stack.split(`
55
55
  `),Be=se.length-1,Te=et.length-1;Be>=1&&Te>=0&&se[Be]!==et[Te];)Te--;for(;Be>=1&&Te>=0;Be--,Te--)if(se[Be]!==et[Te]){if(Be!==1||Te!==1)do if(Be--,Te--,Te<0||se[Be]!==et[Te]){var gt=`
56
- `+se[Be].replace(" at new "," at ");return w.displayName&&gt.includes("<anonymous>")&&(gt=gt.replace("<anonymous>",w.displayName)),typeof w=="function"&&Dt.set(w,gt),gt}while(Be>=1&&Te>=0);break}}}finally{Ht=!1,Oe.current=ve,Fe(),Error.prepareStackTrace=ye}var He=w?w.displayName||w.name:"",tt=He?ft(He):"";return typeof w=="function"&&Dt.set(w,tt),tt}function bt(w,R,U){return vn(w,!1)}function X(w){var R=w.prototype;return!!(R&&R.isReactComponent)}function Ut(w,R,U){if(w==null)return"";if(typeof w=="function")return vn(w,X(w));if(typeof w=="string")return ft(w);switch(w){case h:return ft("Suspense");case g:return ft("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case d:return bt(w.render);case v:return Ut(w.type,R,U);case D:{var te=w,ye=te._payload,ve=te._init;try{return Ut(ve(ye),R,U)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,Pe={},Se=T.ReactDebugCurrentFrame;function vr(w){if(w){var R=w._owner,U=Ut(w.type,w._source,R?R.type:null);Se.setExtraStackFrame(U)}else Se.setExtraStackFrame(null)}function Dn(w,R,U,te,ye){{var ve=Function.call.bind(xe);for(var he in w)if(ve(w,he)){var se=void 0;try{if(typeof w[he]!="function"){var et=Error((te||"React class")+": "+U+" type `"+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[he]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw et.name="Invariant Violation",et}se=w[he](R,he,te,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Be){se=Be}se&&!(se instanceof Error)&&(vr(ye),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",U,he,typeof se),vr(null)),se instanceof Error&&!(se.message in Pe)&&(Pe[se.message]=!0,vr(ye),E("Failed %s type: %s",U,se.message),vr(null))}}}var mo=Array.isArray;function on(w){return mo(w)}function aa(w){{var R=typeof Symbol=="function"&&Symbol.toStringTag,U=R&&w[Symbol.toStringTag]||w.constructor.name||"Object";return U}}function go(w){try{return di(w),!1}catch{return!0}}function di(w){return""+w}function mt(w){if(go(w))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",aa(w)),di(w)}var Wt=T.ReactCurrentOwner,hi={key:!0,ref:!0,__self:!0,__source:!0},fi,mi,ia;ia={};function kt(w){if(xe.call(w,"ref")){var R=Object.getOwnPropertyDescriptor(w,"ref").get;if(R&&R.isReactWarning)return!1}return w.ref!==void 0}function vo(w){if(xe.call(w,"key")){var R=Object.getOwnPropertyDescriptor(w,"key").get;if(R&&R.isReactWarning)return!1}return w.key!==void 0}function Do(w,R){if(typeof w.ref=="string"&&Wt.current&&R&&Wt.current.stateNode!==R){var U=L(Wt.current.type);ia[U]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(Wt.current.type),w.ref),ia[U]=!0)}}function yo(w,R){{var U=function(){fi||(fi=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};U.isReactWarning=!0,Object.defineProperty(w,"key",{get:U,configurable:!0})}}function bo(w,R){{var U=function(){mi||(mi=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};U.isReactWarning=!0,Object.defineProperty(w,"ref",{get:U,configurable:!0})}}var At=function(w,R,U,te,ye,ve,he){var se={$$typeof:t,type:w,key:R,ref:U,props:he,_owner:ve};return se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se};function ko(w,R,U,te,ye){{var ve,he={},se=null,et=null;U!==void 0&&(mt(U),se=""+U),vo(R)&&(mt(R.key),se=""+R.key),kt(R)&&(et=R.ref,Do(R,ye));for(ve in R)xe.call(R,ve)&&!hi.hasOwnProperty(ve)&&(he[ve]=R[ve]);if(w&&w.defaultProps){var Be=w.defaultProps;for(ve in Be)he[ve]===void 0&&(he[ve]=Be[ve])}if(se||et){var Te=typeof w=="function"?w.displayName||w.name||"Unknown":w;se&&yo(he,Te),et&&bo(he,Te)}return At(w,se,et,ye,te,Wt.current,he)}}var sa=T.ReactCurrentOwner,gi=T.ReactDebugCurrentFrame;function Tt(w){if(w){var R=w._owner,U=Ut(w.type,w._source,R?R.type:null);gi.setExtraStackFrame(U)}else gi.setExtraStackFrame(null)}var oa;oa=!1;function la(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function ua(){{if(sa.current){var w=L(sa.current.type);if(w)return`
56
+ `+se[Be].replace(" at new "," at ");return w.displayName&&gt.includes("<anonymous>")&&(gt=gt.replace("<anonymous>",w.displayName)),typeof w=="function"&&Dt.set(w,gt),gt}while(Be>=1&&Te>=0);break}}}finally{Ht=!1,Oe.current=ve,Fe(),Error.prepareStackTrace=ye}var He=w?w.displayName||w.name:"",tt=He?ft(He):"";return typeof w=="function"&&Dt.set(w,tt),tt}function bt(w,R,U){return vn(w,!1)}function X(w){var R=w.prototype;return!!(R&&R.isReactComponent)}function Ut(w,R,U){if(w==null)return"";if(typeof w=="function")return vn(w,X(w));if(typeof w=="string")return ft(w);switch(w){case h:return ft("Suspense");case g:return ft("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case d:return bt(w.render);case v:return Ut(w.type,R,U);case D:{var te=w,ye=te._payload,ve=te._init;try{return Ut(ve(ye),R,U)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,Pe={},Se=T.ReactDebugCurrentFrame;function vr(w){if(w){var R=w._owner,U=Ut(w.type,w._source,R?R.type:null);Se.setExtraStackFrame(U)}else Se.setExtraStackFrame(null)}function Dn(w,R,U,te,ye){{var ve=Function.call.bind(xe);for(var he in w)if(ve(w,he)){var se=void 0;try{if(typeof w[he]!="function"){var et=Error((te||"React class")+": "+U+" type `"+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[he]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw et.name="Invariant Violation",et}se=w[he](R,he,te,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Be){se=Be}se&&!(se instanceof Error)&&(vr(ye),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",U,he,typeof se),vr(null)),se instanceof Error&&!(se.message in Pe)&&(Pe[se.message]=!0,vr(ye),E("Failed %s type: %s",U,se.message),vr(null))}}}var mo=Array.isArray;function on(w){return mo(w)}function ia(w){{var R=typeof Symbol=="function"&&Symbol.toStringTag,U=R&&w[Symbol.toStringTag]||w.constructor.name||"Object";return U}}function go(w){try{return di(w),!1}catch{return!0}}function di(w){return""+w}function mt(w){if(go(w))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ia(w)),di(w)}var Wt=T.ReactCurrentOwner,hi={key:!0,ref:!0,__self:!0,__source:!0},fi,mi,sa;sa={};function kt(w){if(xe.call(w,"ref")){var R=Object.getOwnPropertyDescriptor(w,"ref").get;if(R&&R.isReactWarning)return!1}return w.ref!==void 0}function vo(w){if(xe.call(w,"key")){var R=Object.getOwnPropertyDescriptor(w,"key").get;if(R&&R.isReactWarning)return!1}return w.key!==void 0}function Do(w,R){if(typeof w.ref=="string"&&Wt.current&&R&&Wt.current.stateNode!==R){var U=L(Wt.current.type);sa[U]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(Wt.current.type),w.ref),sa[U]=!0)}}function yo(w,R){{var U=function(){fi||(fi=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};U.isReactWarning=!0,Object.defineProperty(w,"key",{get:U,configurable:!0})}}function bo(w,R){{var U=function(){mi||(mi=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};U.isReactWarning=!0,Object.defineProperty(w,"ref",{get:U,configurable:!0})}}var At=function(w,R,U,te,ye,ve,he){var se={$$typeof:t,type:w,key:R,ref:U,props:he,_owner:ve};return se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se};function ko(w,R,U,te,ye){{var ve,he={},se=null,et=null;U!==void 0&&(mt(U),se=""+U),vo(R)&&(mt(R.key),se=""+R.key),kt(R)&&(et=R.ref,Do(R,ye));for(ve in R)xe.call(R,ve)&&!hi.hasOwnProperty(ve)&&(he[ve]=R[ve]);if(w&&w.defaultProps){var Be=w.defaultProps;for(ve in Be)he[ve]===void 0&&(he[ve]=Be[ve])}if(se||et){var Te=typeof w=="function"?w.displayName||w.name||"Unknown":w;se&&yo(he,Te),et&&bo(he,Te)}return At(w,se,et,ye,te,Wt.current,he)}}var oa=T.ReactCurrentOwner,gi=T.ReactDebugCurrentFrame;function Tt(w){if(w){var R=w._owner,U=Ut(w.type,w._source,R?R.type:null);gi.setExtraStackFrame(U)}else gi.setExtraStackFrame(null)}var la;la=!1;function ua(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function ca(){{if(oa.current){var w=L(oa.current.type);if(w)return`
57
57
 
58
- Check the render method of \``+w+"`."}return""}}function wo(w){return""}var vi={};function Co(w){{var R=ua();if(!R){var U=typeof w=="string"?w:w.displayName||w.name;U&&(R=`
58
+ Check the render method of \``+w+"`."}return""}}function wo(w){return""}var vi={};function Co(w){{var R=ca();if(!R){var U=typeof w=="string"?w:w.displayName||w.name;U&&(R=`
59
59
 
60
- Check the top-level render call using <`+U+">.")}return R}}function zn(w,R){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var U=Co(R);if(vi[U])return;vi[U]=!0;var te="";w&&w._owner&&w._owner!==sa.current&&(te=" It was passed a child from "+L(w._owner.type)+"."),Tt(w),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,te),Tt(null)}}function ln(w,R){{if(typeof w!="object")return;if(on(w))for(var U=0;U<w.length;U++){var te=w[U];la(te)&&zn(te,R)}else if(la(w))w._store&&(w._store.validated=!0);else if(w){var ye=C(w);if(typeof ye=="function"&&ye!==w.entries)for(var ve=ye.call(w),he;!(he=ve.next()).done;)la(he.value)&&zn(he.value,R)}}}function wt(w){{var R=w.type;if(R==null||typeof R=="string")return;var U;if(typeof R=="function")U=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===d||R.$$typeof===v))U=R.propTypes;else return;if(U){var te=L(R);Dn(U,w.props,"prop",te,w)}else if(R.PropTypes!==void 0&&!oa){oa=!0;var ye=L(R);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ye||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xo(w){{for(var R=Object.keys(w.props),U=0;U<R.length;U++){var te=R[U];if(te!=="children"&&te!=="key"){Tt(w),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),Tt(null);break}}w.ref!==null&&(Tt(w),E("Invalid attribute `ref` supplied to `React.Fragment`."),Tt(null))}}var Di={};function yi(w,R,U,te,ye,ve){{var he=z(w);if(!he){var se="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var et=wo();et?se+=et:se+=ua();var Be;w===null?Be="null":on(w)?Be="array":w!==void 0&&w.$$typeof===t?(Be="<"+(L(w.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Be=typeof w,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Be,se)}var Te=ko(w,R,U,ye,ve);if(Te==null)return Te;if(he){var gt=R.children;if(gt!==void 0)if(te)if(on(gt)){for(var He=0;He<gt.length;He++)ln(gt[He],w);Object.freeze&&Object.freeze(gt)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ln(gt,w)}if(xe.call(R,"key")){var tt=L(w),at=Object.keys(R).filter(function(Eo){return Eo!=="key"}),ca=at.length>0?"{key: someKey, "+at.join(": ..., ")+": ...}":"{key: someKey}";if(!Di[tt+ca]){var ki=at.length>0?"{"+at.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
60
+ Check the top-level render call using <`+U+">.")}return R}}function zn(w,R){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var U=Co(R);if(vi[U])return;vi[U]=!0;var te="";w&&w._owner&&w._owner!==oa.current&&(te=" It was passed a child from "+L(w._owner.type)+"."),Tt(w),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,te),Tt(null)}}function ln(w,R){{if(typeof w!="object")return;if(on(w))for(var U=0;U<w.length;U++){var te=w[U];ua(te)&&zn(te,R)}else if(ua(w))w._store&&(w._store.validated=!0);else if(w){var ye=C(w);if(typeof ye=="function"&&ye!==w.entries)for(var ve=ye.call(w),he;!(he=ve.next()).done;)ua(he.value)&&zn(he.value,R)}}}function wt(w){{var R=w.type;if(R==null||typeof R=="string")return;var U;if(typeof R=="function")U=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===d||R.$$typeof===v))U=R.propTypes;else return;if(U){var te=L(R);Dn(U,w.props,"prop",te,w)}else if(R.PropTypes!==void 0&&!la){la=!0;var ye=L(R);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ye||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xo(w){{for(var R=Object.keys(w.props),U=0;U<R.length;U++){var te=R[U];if(te!=="children"&&te!=="key"){Tt(w),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),Tt(null);break}}w.ref!==null&&(Tt(w),E("Invalid attribute `ref` supplied to `React.Fragment`."),Tt(null))}}var Di={};function yi(w,R,U,te,ye,ve){{var he=z(w);if(!he){var se="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var et=wo();et?se+=et:se+=ca();var Be;w===null?Be="null":on(w)?Be="array":w!==void 0&&w.$$typeof===t?(Be="<"+(L(w.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Be=typeof w,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Be,se)}var Te=ko(w,R,U,ye,ve);if(Te==null)return Te;if(he){var gt=R.children;if(gt!==void 0)if(te)if(on(gt)){for(var He=0;He<gt.length;He++)ln(gt[He],w);Object.freeze&&Object.freeze(gt)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ln(gt,w)}if(xe.call(R,"key")){var tt=L(w),at=Object.keys(R).filter(function(Eo){return Eo!=="key"}),pa=at.length>0?"{key: someKey, "+at.join(": ..., ")+": ...}":"{key: someKey}";if(!Di[tt+pa]){var ki=at.length>0?"{"+at.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
61
61
  let props = %s;
62
62
  <%s {...props} />
63
63
  React keys must be passed directly to JSX without using spread:
64
64
  let props = %s;
65
- <%s key={someKey} {...props} />`,ca,tt,ki,tt),Di[tt+ca]=!0}}return w===r?xo(Te):wt(Te),Te}}function bi(w,R,U){return yi(w,R,U,!0)}function _o(w,R,U){return yi(w,R,U,!1)}var So=_o,Dr=bi;Er.Fragment=r,Er.jsx=So,Er.jsxs=Dr}()),Er}process.env.NODE_ENV==="production"?qi.exports=Zd():qi.exports=eh();var m=qi.exports;const th=M.forwardRef(({compact:e=!1,skin:t="borderless",className:n,children:r},i)=>{const o=[n,"pkt-accordion",e&&"pkt-accordion--compact",t&&`pkt-accordion--${t}`].filter(Boolean).join(" ");return m.jsx("div",{"data-testid":"pkt-accordion",className:o,ref:i,children:r})}),Hi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',nh="https://punkt-cdn.oslo.kommune.no/12.3/icons/";function rh(e){return new Promise(t=>setTimeout(t,e))}const Ui={},ah=async(e,t)=>{let n=0;for(;Ui[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await rh(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.fetch=="function"?(Ui[t+e+".svg"]="fetching",Promise.resolve(fetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),Hi)).then(r=>(r!==Hi&&localStorage.setItem(t+e+".svg",r),Ui[t+e+".svg"]="fetched",r)))):Promise.resolve(Hi)},ih={fetchIcon:async(e,t)=>ah(e,t||nh)},tl=M.createContext(ih),ne=({name:e,path:t,className:n="",...r})=>{const[i,o]=M.useState(null),u=M.useContext(tl);return M.useEffect(()=>{e?u.fetchIcon(e,t).then(o):o(null)},[e,t]),i?m.jsx("span",{className:`pkt-icon ${n}`,dangerouslySetInnerHTML:{__html:i},...r}):null};var nl={exports:{}};/*!
65
+ <%s key={someKey} {...props} />`,pa,tt,ki,tt),Di[tt+pa]=!0}}return w===r?xo(Te):wt(Te),Te}}function bi(w,R,U){return yi(w,R,U,!0)}function _o(w,R,U){return yi(w,R,U,!1)}var So=_o,Dr=bi;Er.Fragment=r,Er.jsx=So,Er.jsxs=Dr}()),Er}process.env.NODE_ENV==="production"?qi.exports=Zd():qi.exports=eh();var m=qi.exports;const th=M.forwardRef(({compact:e=!1,skin:t="borderless",className:n,children:r},i)=>{const o=[n,"pkt-accordion",e&&"pkt-accordion--compact",t&&`pkt-accordion--${t}`].filter(Boolean).join(" ");return m.jsx("div",{"data-testid":"pkt-accordion",className:o,ref:i,children:r})}),Hi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',nh="https://punkt-cdn.oslo.kommune.no/12.3/icons/";function rh(e){return new Promise(t=>setTimeout(t,e))}const Ui={},ah=async(e,t)=>{let n=0;for(;Ui[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await rh(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.fetch=="function"?(Ui[t+e+".svg"]="fetching",Promise.resolve(fetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),Hi)).then(r=>(r!==Hi&&localStorage.setItem(t+e+".svg",r),Ui[t+e+".svg"]="fetched",r)))):Promise.resolve(Hi)},ih={fetchIcon:async(e,t)=>ah(e,t||nh)},tl=M.createContext(ih),ne=({name:e,path:t,className:n="",...r})=>{const[i,o]=M.useState(null),u=M.useContext(tl);return M.useEffect(()=>{e?u.fetchIcon(e,t).then(o):o(null)},[e,t]),i?m.jsx("span",{className:`pkt-icon ${n}`,dangerouslySetInnerHTML:{__html:i},...r}):null};var nl={exports:{}};/*!
66
66
  Copyright (c) 2018 Jed Watson.
67
67
  Licensed under the MIT License (MIT), see
68
68
  http://jedwatson.github.io/classnames
69
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(o=i(o,r(c)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var u="";for(var c in o)t.call(o,c)&&o[c]&&(u=i(u,c));return u}function i(o,u){return u?o?o+" "+u:o+u:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(nl);var sh=nl.exports;const Ye=Ca(sh),oh=M.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,d]=M.useState(i),h=r?r.isOpen:c,g=b=>b??void 0,v=(b,k)=>{b.preventDefault(),r!==void 0&&r.onToggleClick(b,k),d(!h)},D=Ye(t,"pkt-accordion-item");return m.jsxs("details",{className:D,ref:u,id:o,open:g(r?r.isOpen:c),children:[m.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${o}`,onClick:b=>v(b,o),children:[e,m.jsx(ne,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),m.jsx("div",{id:`pkt-accordion-item-content-${o}`,role:"region",className:"pkt-accordion-item__content",children:n})]})}),Wi=M.forwardRef(({children:e,className:t,skin:n="info",closeAlert:r=!1,onClose:i,title:o,date:u,ariaLive:c="polite",compact:d=!1,...h},g)=>{const v=[t,"pkt-alert",n&&`pkt-alert--${n}`,d&&"pkt-alert--compact"].filter(Boolean).join(" "),[D,b]=M.useState(!0),k=()=>{b(!1),i&&i()};return D?m.jsxs("div",{...h,className:v,"aria-live":c,ref:g,children:[m.jsx(ne,{className:"pkt-alert__icon",name:n==="info"?"alert-information":`alert-${n}`}),r&&m.jsx("div",{className:"pkt-alert__close",children:m.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:k,children:m.jsx(ne,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),o&&m.jsx("div",{className:"pkt-alert__title",children:o}),m.jsx("div",{className:"pkt-alert__text",children:e}),u&&m.jsxs("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",u]})]}):null});Wi.displayName="PktAlert";const rl=M.forwardRef(({href:e,text:t,onClick:n,className:r,...i},o)=>{const u=[r,"pkt-back-link"].filter(Boolean).join(" "),c=d=>{n&&n(d)};return m.jsx("nav",{ref:o,className:u,"aria-label":"Gå tilbake et steg",children:m.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:c,...i,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),m.jsx("span",{className:"pkt-back-link__text",children:t||"Forsiden"})]})})});rl.displayName="PktBackLink";const lh=M.forwardRef(({breadcrumbs:e,navigationType:t,className:n,...r},i)=>{const o=e.slice(0,4),u=o[o.length-2],c=[n,"pkt-breadcrumbs"].filter(Boolean).join(" ");return m.jsxs("nav",{ref:i,"aria-label":"brødsmulemeny",className:c,children:[m.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:o.map((d,h)=>m.jsx("li",{className:"pkt-breadcrumbs__item",children:h===o.length-1?m.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})}):t==="router"?m.jsxs(kn.Link,{to:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[m.jsx(ne,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]}):m.jsxs("a",{href:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[m.jsx(ne,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]})},`breadcrumb-${h}`))}),t==="router"?m.jsxs(kn.Link,{to:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]}):m.jsxs("a",{href:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]})]})}),wn=M.forwardRef(({children:e,className:t,iconName:n="user",secondIconName:r="user",size:i="medium",skin:o="primary",type:u="button",variant:c="label-only",state:d,color:h,isLoading:g=!1,...v},D)=>{const b=[t,"pkt-btn",i&&`pkt-btn--${i}`,o&&`pkt-btn--${o}`,c&&`pkt-btn--${c}`,h&&`pkt-btn--${h}`,g&&"pkt-btn--active",d&&`pkt-btn--${d}`].filter(Boolean).join(" ");return m.jsxs("button",{...v,className:b,type:u,ref:D,children:[g&&m.jsx(ne,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.3/animations/"}),c!=="label-only"&&m.jsx(ne,{className:"pkt-btn__icon",name:n}),m.jsx("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&m.jsx(ne,{className:"pkt-btn__icon",name:r})]})});wn.displayName="PktButton";/**
69
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(o=i(o,r(c)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var u="";for(var c in o)t.call(o,c)&&o[c]&&(u=i(u,c));return u}function i(o,u){return u?o?o+" "+u:o+u:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(nl);var sh=nl.exports;const Je=xa(sh),oh=M.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,d]=M.useState(i),h=r?r.isOpen:c,g=b=>b??void 0,v=(b,k)=>{b.preventDefault(),r!==void 0&&r.onToggleClick(b,k),d(!h)},D=Je(t,"pkt-accordion-item");return m.jsxs("details",{className:D,ref:u,id:o,open:g(r?r.isOpen:c),children:[m.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${o}`,onClick:b=>v(b,o),children:[e,m.jsx(ne,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),m.jsx("div",{id:`pkt-accordion-item-content-${o}`,role:"region",className:"pkt-accordion-item__content",children:n})]})}),Wi=M.forwardRef(({children:e,className:t,skin:n="info",closeAlert:r=!1,onClose:i,title:o,date:u,ariaLive:c="polite",compact:d=!1,...h},g)=>{const v=[t,"pkt-alert",n&&`pkt-alert--${n}`,d&&"pkt-alert--compact"].filter(Boolean).join(" "),[D,b]=M.useState(!0),k=()=>{b(!1),i&&i()};return D?m.jsxs("div",{...h,className:v,"aria-live":c,ref:g,children:[m.jsx(ne,{className:"pkt-alert__icon",name:n==="info"?"alert-information":`alert-${n}`}),r&&m.jsx("div",{className:"pkt-alert__close",children:m.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:k,children:m.jsx(ne,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),o&&m.jsx("div",{className:"pkt-alert__title",children:o}),m.jsx("div",{className:"pkt-alert__text",children:e}),u&&m.jsxs("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",u]})]}):null});Wi.displayName="PktAlert";const rl=M.forwardRef(({href:e,text:t,onClick:n,className:r,...i},o)=>{const u=[r,"pkt-back-link"].filter(Boolean).join(" "),c=d=>{n&&n(d)};return m.jsx("nav",{ref:o,className:u,"aria-label":"Gå tilbake et steg",children:m.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:c,...i,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),m.jsx("span",{className:"pkt-back-link__text",children:t||"Forsiden"})]})})});rl.displayName="PktBackLink";const lh=M.forwardRef(({breadcrumbs:e,navigationType:t,className:n,...r},i)=>{const o=e.slice(0,4),u=o[o.length-2],c=[n,"pkt-breadcrumbs"].filter(Boolean).join(" ");return m.jsxs("nav",{ref:i,"aria-label":"brødsmulemeny",className:c,children:[m.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:o.map((d,h)=>m.jsx("li",{className:"pkt-breadcrumbs__item",children:h===o.length-1?m.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})}):t==="router"?m.jsxs(kn.Link,{to:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[m.jsx(ne,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]}):m.jsxs("a",{href:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[m.jsx(ne,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]})},`breadcrumb-${h}`))}),t==="router"?m.jsxs(kn.Link,{to:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]}):m.jsxs("a",{href:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]})]})}),wn=M.forwardRef(({children:e,className:t,iconName:n="user",secondIconName:r="user",size:i="medium",skin:o="primary",type:u="button",variant:c="label-only",state:d,color:h,isLoading:g=!1,...v},D)=>{const b=[t,"pkt-btn",i&&`pkt-btn--${i}`,o&&`pkt-btn--${o}`,c&&`pkt-btn--${c}`,h&&`pkt-btn--${h}`,g&&"pkt-btn--active",d&&`pkt-btn--${d}`].filter(Boolean).join(" ");return m.jsxs("button",{...v,className:b,type:u,ref:D,children:[g&&m.jsx(ne,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.3/animations/"}),c!=="label-only"&&m.jsx(ne,{className:"pkt-btn__icon",name:n}),m.jsx("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&m.jsx(ne,{className:"pkt-btn__icon",name:r})]})});wn.displayName="PktButton";/**
70
70
  * @license
71
71
  * Copyright 2018 Google LLC
72
72
  * SPDX-License-Identifier: BSD-3-Clause
@@ -74,17 +74,17 @@ React keys must be passed directly to JSX without using spread:
74
74
  * @license
75
75
  * Copyright 2019 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
- */const xa=globalThis,Vi=xa.ShadowRoot&&(xa.ShadyCSS===void 0||xa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sl=Symbol(),ol=new WeakMap;let ch=class{constructor(t,n,r){if(this._$cssResult$=!0,r!==sl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Vi&&t===void 0){const r=n!==void 0&&n.length===1;r&&(t=ol.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ol.set(n,t))}return t}toString(){return this.cssText}};const ph=e=>new ch(typeof e=="string"?e:e+"",void 0,sl),dh=(e,t)=>{if(Vi)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const r=document.createElement("style"),i=xa.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}},ll=Vi?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const r of t.cssRules)n+=r.cssText;return ph(n)})(e):e;/**
77
+ */const _a=globalThis,Vi=_a.ShadowRoot&&(_a.ShadyCSS===void 0||_a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sl=Symbol(),ol=new WeakMap;let ch=class{constructor(t,n,r){if(this._$cssResult$=!0,r!==sl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Vi&&t===void 0){const r=n!==void 0&&n.length===1;r&&(t=ol.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ol.set(n,t))}return t}toString(){return this.cssText}};const ph=e=>new ch(typeof e=="string"?e:e+"",void 0,sl),dh=(e,t)=>{if(Vi)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const r=document.createElement("style"),i=_a.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}},ll=Vi?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const r of t.cssRules)n+=r.cssText;return ph(n)})(e):e;/**
78
78
  * @license
79
79
  * Copyright 2017 Google LLC
80
80
  * SPDX-License-Identifier: BSD-3-Clause
81
- */const{is:hh,defineProperty:fh,getOwnPropertyDescriptor:mh,getOwnPropertyNames:gh,getOwnPropertySymbols:vh,getPrototypeOf:Dh}=Object,Jn=globalThis,ul=Jn.trustedTypes,yh=ul?ul.emptyScript:"",cl=Jn.reactiveElementPolyfillSupport,Fr=(e,t)=>e,_a={toAttribute(e,t){switch(t){case Boolean:e=e?yh:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Gi=(e,t)=>!hh(e,t),pl={attribute:!0,type:String,converter:_a,reflect:!1,hasChanged:Gi};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Jn.litPropertyMetadata??(Jn.litPropertyMetadata=new WeakMap);let Xn=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=pl){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,n);i!==void 0&&fh(this.prototype,t,i)}}static getPropertyDescriptor(t,n,r){const{get:i,set:o}=mh(this.prototype,t)??{get(){return this[n]},set(u){this[n]=u}};return{get(){return i==null?void 0:i.call(this)},set(u){const c=i==null?void 0:i.call(this);o.call(this,u),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pl}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;const t=Dh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Fr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fr("properties"))){const n=this.properties,r=[...gh(n),...vh(n)];for(const i of r)this.createProperty(i,n[i])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)n.unshift(ll(i))}else t!==void 0&&n.push(ll(t));return n}static _$Eu(t,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dh(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(t,n,r){this._$AK(t,r)}_$EC(t,n){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const u=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:_a).toAttribute(n,i.type);this._$Em=t,u==null?this.removeAttribute(o):this.setAttribute(o,u),this._$Em=null}}_$AK(t,n){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const u=i.getPropertyOptions(o),c=typeof u.converter=="function"?{fromAttribute:u.converter}:((r=u.converter)==null?void 0:r.fromAttribute)!==void 0?u.converter:_a;this._$Em=o,this[o]=c.fromAttribute(n,u.type),this._$Em=null}}requestUpdate(t,n,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??Gi)(this[t],n))return;this.P(t,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,r){this._$AL.has(t)||this._$AL.set(t,n),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,u]of this._$Ep)this[o]=u;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,u]of i)u.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],u)}let n=!1;const r=this._$AL;try{n=this.shouldUpdate(r),n?(this.willUpdate(r),(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(r)):this._$EU()}catch(i){throw n=!1,this._$EU(),i}n&&this._$AE(r)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}};Xn.elementStyles=[],Xn.shadowRootOptions={mode:"open"},Xn[Fr("elementProperties")]=new Map,Xn[Fr("finalized")]=new Map,cl==null||cl({ReactiveElement:Xn}),(Jn.reactiveElementVersions??(Jn.reactiveElementVersions=[])).push("2.0.4");/**
81
+ */const{is:hh,defineProperty:fh,getOwnPropertyDescriptor:mh,getOwnPropertyNames:gh,getOwnPropertySymbols:vh,getPrototypeOf:Dh}=Object,Jn=globalThis,ul=Jn.trustedTypes,yh=ul?ul.emptyScript:"",cl=Jn.reactiveElementPolyfillSupport,Fr=(e,t)=>e,Sa={toAttribute(e,t){switch(t){case Boolean:e=e?yh:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Gi=(e,t)=>!hh(e,t),pl={attribute:!0,type:String,converter:Sa,reflect:!1,hasChanged:Gi};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Jn.litPropertyMetadata??(Jn.litPropertyMetadata=new WeakMap);let Xn=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=pl){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,n);i!==void 0&&fh(this.prototype,t,i)}}static getPropertyDescriptor(t,n,r){const{get:i,set:o}=mh(this.prototype,t)??{get(){return this[n]},set(u){this[n]=u}};return{get(){return i==null?void 0:i.call(this)},set(u){const c=i==null?void 0:i.call(this);o.call(this,u),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pl}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;const t=Dh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Fr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fr("properties"))){const n=this.properties,r=[...gh(n),...vh(n)];for(const i of r)this.createProperty(i,n[i])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)n.unshift(ll(i))}else t!==void 0&&n.push(ll(t));return n}static _$Eu(t,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dh(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(t,n,r){this._$AK(t,r)}_$EC(t,n){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const u=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Sa).toAttribute(n,i.type);this._$Em=t,u==null?this.removeAttribute(o):this.setAttribute(o,u),this._$Em=null}}_$AK(t,n){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const u=i.getPropertyOptions(o),c=typeof u.converter=="function"?{fromAttribute:u.converter}:((r=u.converter)==null?void 0:r.fromAttribute)!==void 0?u.converter:Sa;this._$Em=o,this[o]=c.fromAttribute(n,u.type),this._$Em=null}}requestUpdate(t,n,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??Gi)(this[t],n))return;this.P(t,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,r){this._$AL.has(t)||this._$AL.set(t,n),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,u]of this._$Ep)this[o]=u;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,u]of i)u.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],u)}let n=!1;const r=this._$AL;try{n=this.shouldUpdate(r),n?(this.willUpdate(r),(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(r)):this._$EU()}catch(i){throw n=!1,this._$EU(),i}n&&this._$AE(r)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}};Xn.elementStyles=[],Xn.shadowRootOptions={mode:"open"},Xn[Fr("elementProperties")]=new Map,Xn[Fr("finalized")]=new Map,cl==null||cl({ReactiveElement:Xn}),(Jn.reactiveElementVersions??(Jn.reactiveElementVersions=[])).push("2.0.4");/**
82
82
  * @license
83
83
  * Copyright 2017 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */const Sa=globalThis,Ea=Sa.trustedTypes,dl=Ea?Ea.createPolicy("lit-html",{createHTML:e=>e}):void 0,Yi="$lit$",zt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ki="?"+zt,bh=`<${Ki}>`,Cn=document,Ar=()=>Cn.createComment(""),$r=e=>e===null||typeof e!="object"&&typeof e!="function",Ji=Array.isArray,hl=e=>Ji(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Xi=`[
85
+ */const Ea=globalThis,Fa=Ea.trustedTypes,dl=Fa?Fa.createPolicy("lit-html",{createHTML:e=>e}):void 0,Yi="$lit$",zt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ki="?"+zt,bh=`<${Ki}>`,Cn=document,Ar=()=>Cn.createComment(""),$r=e=>e===null||typeof e!="object"&&typeof e!="function",Ji=Array.isArray,hl=e=>Ji(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Xi=`[
86
86
  \f\r]`,Tr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fl=/-->/g,ml=/>/g,xn=RegExp(`>|${Xi}(?:([^\\s"'>=/]+)(${Xi}*=${Xi}*(?:[^
87
- \f\r"'\`<>=]|("|')|))|$)`,"g"),gl=/'/g,vl=/"/g,Dl=/^(?:script|style|textarea|title)$/i,kh=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),J=kh(1),Vt=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),yl=new WeakMap,_n=Cn.createTreeWalker(Cn,129);function bl(e,t){if(!Ji(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return dl!==void 0?dl.createHTML(t):t}const kl=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",u=Tr;for(let c=0;c<n;c++){const d=e[c];let h,g,v=-1,D=0;for(;D<d.length&&(u.lastIndex=D,g=u.exec(d),g!==null);)D=u.lastIndex,u===Tr?g[1]==="!--"?u=fl:g[1]!==void 0?u=ml:g[2]!==void 0?(Dl.test(g[2])&&(i=RegExp("</"+g[2],"g")),u=xn):g[3]!==void 0&&(u=xn):u===xn?g[0]===">"?(u=i??Tr,v=-1):g[1]===void 0?v=-2:(v=u.lastIndex-g[2].length,h=g[1],u=g[3]===void 0?xn:g[3]==='"'?vl:gl):u===vl||u===gl?u=xn:u===fl||u===ml?u=Tr:(u=xn,i=void 0);const b=u===xn&&e[c+1].startsWith("/>")?" ":"";o+=u===Tr?d+bh:v>=0?(r.push(h),d.slice(0,v)+Yi+d.slice(v)+zt+b):d+zt+(v===-2?c:b)}return[bl(e,o+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let Qi=class Wd{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let o=0,u=0;const c=t.length-1,d=this.parts,[h,g]=kl(t,n);if(this.el=Wd.createElement(h,r),_n.currentNode=this.el.content,n===2||n===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=_n.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(Yi)){const D=g[u++],b=i.getAttribute(v).split(zt),k=/([.?@])?(.*)/.exec(D);d.push({type:1,index:o,name:k[2],strings:b,ctor:k[1]==="."?Cl:k[1]==="?"?xl:k[1]==="@"?_l:Br}),i.removeAttribute(v)}else v.startsWith(zt)&&(d.push({type:6,index:o}),i.removeAttribute(v));if(Dl.test(i.tagName)){const v=i.textContent.split(zt),D=v.length-1;if(D>0){i.textContent=Ea?Ea.emptyScript:"";for(let b=0;b<D;b++)i.append(v[b],Ar()),_n.nextNode(),d.push({type:2,index:++o});i.append(v[D],Ar())}}}else if(i.nodeType===8)if(i.data===Ki)d.push({type:2,index:o});else{let v=-1;for(;(v=i.data.indexOf(zt,v+1))!==-1;)d.push({type:7,index:o}),v+=zt.length-1}o++}}static createElement(t,n){const r=Cn.createElement("template");return r.innerHTML=t,r}};function Sn(e,t,n=e,r){var i,o;if(t===Vt)return t;let u=r!==void 0?(i=n.o)==null?void 0:i[r]:n.l;const c=$r(t)?void 0:t._$litDirective$;return(u==null?void 0:u.constructor)!==c&&((o=u==null?void 0:u._$AO)==null||o.call(u,!1),c===void 0?u=void 0:(u=new c(e),u._$AT(e,n,r)),r!==void 0?(n.o??(n.o=[]))[r]=u:n.l=u),u!==void 0&&(t=Sn(e,u._$AS(e,t.values),u,r)),t}let wl=class{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??Cn).importNode(n,!0);_n.currentNode=i;let o=_n.nextNode(),u=0,c=0,d=r[0];for(;d!==void 0;){if(u===d.index){let h;d.type===2?h=new Fa(o,o.nextSibling,this,t):d.type===1?h=new d.ctor(o,d.name,d.strings,this,t):d.type===6&&(h=new Sl(o,this,t)),this._$AV.push(h),d=r[++c]}u!==(d==null?void 0:d.index)&&(o=_n.nextNode(),u++)}return _n.currentNode=Cn,i}p(t){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,n),n+=r.strings.length-2):r._$AI(t[n])),n++}},Fa=class zd{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,n,r,i){this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this.v=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=Sn(this,t,n),$r(t)?t===re||t==null||t===""?(this._$AH!==re&&this._$AR(),this._$AH=re):t!==this._$AH&&t!==Vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):hl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==re&&$r(this._$AH)?this._$AA.nextSibling.data=t:this.T(Cn.createTextNode(t)),this._$AH=t}$(t){var n;const{values:r,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Qi.createElement(bl(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(r);else{const u=new wl(o,this),c=u.u(this.options);u.p(r),this.T(c),this._$AH=u}}_$AC(t){let n=yl.get(t.strings);return n===void 0&&yl.set(t.strings,n=new Qi(t)),n}k(t){Ji(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,i=0;for(const o of t)i===n.length?n.push(r=new zd(this.O(Ar()),this.O(Ar()),this,this.options)):r=n[i],r._$AI(o),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(t=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var n;this._$AM===void 0&&(this.v=t,(n=this._$AP)==null||n.call(this,t))}},Br=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,r,i,o){this.type=1,this._$AH=re,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=re}_$AI(t,n=this,r,i){const o=this.strings;let u=!1;if(o===void 0)t=Sn(this,t,n,0),u=!$r(t)||t!==this._$AH&&t!==Vt,u&&(this._$AH=t);else{const c=t;let d,h;for(t=o[0],d=0;d<o.length-1;d++)h=Sn(this,c[r+d],n,d),h===Vt&&(h=this._$AH[d]),u||(u=!$r(h)||h!==this._$AH[d]),h===re?t=re:t!==re&&(t+=(h??"")+o[d+1]),this._$AH[d]=h}u&&!i&&this.j(t)}j(t){t===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Cl=class extends Br{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===re?void 0:t}},xl=class extends Br{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==re)}},_l=class extends Br{constructor(t,n,r,i,o){super(t,n,r,i,o),this.type=5}_$AI(t,n=this){if((t=Sn(this,t,n,0)??re)===Vt)return;const r=this._$AH,i=t===re&&r!==re||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==re&&(r===re||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}},Sl=class{constructor(t,n,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Sn(this,t)}};const wh={M:Yi,P:zt,A:Ki,C:1,L:kl,R:wl,D:hl,V:Sn,I:Fa,H:Br,N:xl,U:_l,B:Cl,F:Sl},El=Sa.litHtmlPolyfillSupport;El==null||El(Qi,Fa),(Sa.litHtmlVersions??(Sa.litHtmlVersions=[])).push("3.2.0");const Ch=(e,t,n)=>{const r=(n==null?void 0:n.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(n==null?void 0:n.renderBefore)??null;r._$litPart$=i=new Fa(t.insertBefore(Ar(),o),o,void 0,n??{})}return i._$AI(e),i};/**
87
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),gl=/'/g,vl=/"/g,Dl=/^(?:script|style|textarea|title)$/i,kh=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),J=kh(1),Vt=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),yl=new WeakMap,_n=Cn.createTreeWalker(Cn,129);function bl(e,t){if(!Ji(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return dl!==void 0?dl.createHTML(t):t}const kl=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",u=Tr;for(let c=0;c<n;c++){const d=e[c];let h,g,v=-1,D=0;for(;D<d.length&&(u.lastIndex=D,g=u.exec(d),g!==null);)D=u.lastIndex,u===Tr?g[1]==="!--"?u=fl:g[1]!==void 0?u=ml:g[2]!==void 0?(Dl.test(g[2])&&(i=RegExp("</"+g[2],"g")),u=xn):g[3]!==void 0&&(u=xn):u===xn?g[0]===">"?(u=i??Tr,v=-1):g[1]===void 0?v=-2:(v=u.lastIndex-g[2].length,h=g[1],u=g[3]===void 0?xn:g[3]==='"'?vl:gl):u===vl||u===gl?u=xn:u===fl||u===ml?u=Tr:(u=xn,i=void 0);const b=u===xn&&e[c+1].startsWith("/>")?" ":"";o+=u===Tr?d+bh:v>=0?(r.push(h),d.slice(0,v)+Yi+d.slice(v)+zt+b):d+zt+(v===-2?c:b)}return[bl(e,o+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let Qi=class Wd{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let o=0,u=0;const c=t.length-1,d=this.parts,[h,g]=kl(t,n);if(this.el=Wd.createElement(h,r),_n.currentNode=this.el.content,n===2||n===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=_n.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(Yi)){const D=g[u++],b=i.getAttribute(v).split(zt),k=/([.?@])?(.*)/.exec(D);d.push({type:1,index:o,name:k[2],strings:b,ctor:k[1]==="."?Cl:k[1]==="?"?xl:k[1]==="@"?_l:Br}),i.removeAttribute(v)}else v.startsWith(zt)&&(d.push({type:6,index:o}),i.removeAttribute(v));if(Dl.test(i.tagName)){const v=i.textContent.split(zt),D=v.length-1;if(D>0){i.textContent=Fa?Fa.emptyScript:"";for(let b=0;b<D;b++)i.append(v[b],Ar()),_n.nextNode(),d.push({type:2,index:++o});i.append(v[D],Ar())}}}else if(i.nodeType===8)if(i.data===Ki)d.push({type:2,index:o});else{let v=-1;for(;(v=i.data.indexOf(zt,v+1))!==-1;)d.push({type:7,index:o}),v+=zt.length-1}o++}}static createElement(t,n){const r=Cn.createElement("template");return r.innerHTML=t,r}};function Sn(e,t,n=e,r){var i,o;if(t===Vt)return t;let u=r!==void 0?(i=n.o)==null?void 0:i[r]:n.l;const c=$r(t)?void 0:t._$litDirective$;return(u==null?void 0:u.constructor)!==c&&((o=u==null?void 0:u._$AO)==null||o.call(u,!1),c===void 0?u=void 0:(u=new c(e),u._$AT(e,n,r)),r!==void 0?(n.o??(n.o=[]))[r]=u:n.l=u),u!==void 0&&(t=Sn(e,u._$AS(e,t.values),u,r)),t}let wl=class{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??Cn).importNode(n,!0);_n.currentNode=i;let o=_n.nextNode(),u=0,c=0,d=r[0];for(;d!==void 0;){if(u===d.index){let h;d.type===2?h=new Aa(o,o.nextSibling,this,t):d.type===1?h=new d.ctor(o,d.name,d.strings,this,t):d.type===6&&(h=new Sl(o,this,t)),this._$AV.push(h),d=r[++c]}u!==(d==null?void 0:d.index)&&(o=_n.nextNode(),u++)}return _n.currentNode=Cn,i}p(t){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,n),n+=r.strings.length-2):r._$AI(t[n])),n++}},Aa=class zd{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,n,r,i){this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this.v=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=Sn(this,t,n),$r(t)?t===re||t==null||t===""?(this._$AH!==re&&this._$AR(),this._$AH=re):t!==this._$AH&&t!==Vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):hl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==re&&$r(this._$AH)?this._$AA.nextSibling.data=t:this.T(Cn.createTextNode(t)),this._$AH=t}$(t){var n;const{values:r,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Qi.createElement(bl(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(r);else{const u=new wl(o,this),c=u.u(this.options);u.p(r),this.T(c),this._$AH=u}}_$AC(t){let n=yl.get(t.strings);return n===void 0&&yl.set(t.strings,n=new Qi(t)),n}k(t){Ji(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,i=0;for(const o of t)i===n.length?n.push(r=new zd(this.O(Ar()),this.O(Ar()),this,this.options)):r=n[i],r._$AI(o),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(t=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var n;this._$AM===void 0&&(this.v=t,(n=this._$AP)==null||n.call(this,t))}},Br=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,r,i,o){this.type=1,this._$AH=re,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=re}_$AI(t,n=this,r,i){const o=this.strings;let u=!1;if(o===void 0)t=Sn(this,t,n,0),u=!$r(t)||t!==this._$AH&&t!==Vt,u&&(this._$AH=t);else{const c=t;let d,h;for(t=o[0],d=0;d<o.length-1;d++)h=Sn(this,c[r+d],n,d),h===Vt&&(h=this._$AH[d]),u||(u=!$r(h)||h!==this._$AH[d]),h===re?t=re:t!==re&&(t+=(h??"")+o[d+1]),this._$AH[d]=h}u&&!i&&this.j(t)}j(t){t===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Cl=class extends Br{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===re?void 0:t}},xl=class extends Br{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==re)}},_l=class extends Br{constructor(t,n,r,i,o){super(t,n,r,i,o),this.type=5}_$AI(t,n=this){if((t=Sn(this,t,n,0)??re)===Vt)return;const r=this._$AH,i=t===re&&r!==re||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==re&&(r===re||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}},Sl=class{constructor(t,n,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Sn(this,t)}};const wh={M:Yi,P:zt,A:Ki,C:1,L:kl,R:wl,D:hl,V:Sn,I:Aa,H:Br,N:xl,U:_l,B:Cl,F:Sl},El=Ea.litHtmlPolyfillSupport;El==null||El(Qi,Aa),(Ea.litHtmlVersions??(Ea.litHtmlVersions=[])).push("3.2.0");const Ch=(e,t,n)=>{const r=(n==null?void 0:n.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(n==null?void 0:n.renderBefore)??null;r._$litPart$=i=new Aa(t.insertBefore(Ar(),o),o,void 0,n??{})}return i._$AI(e),i};/**
88
88
  * @license
89
89
  * Copyright 2017 Google LLC
90
90
  * SPDX-License-Identifier: BSD-3-Clause
@@ -92,31 +92,31 @@ React keys must be passed directly to JSX without using spread:
92
92
  * @license
93
93
  * Copyright 2017 Google LLC
94
94
  * SPDX-License-Identifier: BSD-3-Clause
95
- */const xh={attribute:!0,type:String,converter:_a,reflect:!1,hasChanged:Gi},_h=(e=xh,t,n)=>{const{kind:r,metadata:i}=n;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(n.name,e),r==="accessor"){const{name:u}=n;return{set(c){const d=t.get.call(this);t.set.call(this,c),this.requestUpdate(u,d,e)},init(c){return c!==void 0&&this.P(u,void 0,e),c}}}if(r==="setter"){const{name:u}=n;return function(c){const d=this[u];t.call(this,c),this.requestUpdate(u,d,e)}}throw Error("Unsupported decorator location: "+r)};function O(e){return(t,n)=>typeof n=="object"?_h(e,t,n):((r,i,o)=>{const u=i.hasOwnProperty(o);return i.constructor.createProperty(o,u?{...r,wrapped:!0}:r),u?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,n)}for(var Ke=[],Zi=0;Zi<256;++Zi)Ke.push((Zi+256).toString(16).slice(1));function Sh(e,t=0){return(Ke[e[t+0]]+Ke[e[t+1]]+Ke[e[t+2]]+Ke[e[t+3]]+"-"+Ke[e[t+4]]+Ke[e[t+5]]+"-"+Ke[e[t+6]]+Ke[e[t+7]]+"-"+Ke[e[t+8]]+Ke[e[t+9]]+"-"+Ke[e[t+10]]+Ke[e[t+11]]+Ke[e[t+12]]+Ke[e[t+13]]+Ke[e[t+14]]+Ke[e[t+15]]).toLowerCase()}var Aa,Eh=new Uint8Array(16);function Fh(){if(!Aa&&(Aa=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Aa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Aa(Eh)}var Ah=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const $l={randomUUID:Ah};function Tl(e,t,n){if($l.randomUUID&&!t&&!e)return $l.randomUUID();e=e||{};var r=e.random||(e.rng||Fh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Sh(r)}const $h={hi:"Hei!"},Th={buttonAltText:"Åpne kalender"},Bh={days:["Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Man","Tir","Ons","Tor","Fre","Lør","Søn"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],week:"Uke",prevMonth:"Forrige måned",nextMonth:"Neste måned"},Nh={labels:{optional:"Valgfritt",required:"Må fylles ut"},messages:{required:"Dette feltet er påkrevd",invalid:"Ugyldig verdi",invalidPattern:"Ugyldig format",tooShort:"For kort",tooLong:"For lang",rangeUnderflow:"For lav verdi",rangeOverflow:"For høy verdi",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},$t={example:$h,calendar:Th,dates:Bh,forms:Nh};var jh=Object.defineProperty,Je=(e,t,n,r)=>{for(var i=void 0,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=u(t,n,i)||i);return i&&jh(t,n,i),i};let Nt=class extends Nr{constructor(){super(),this.strings=$t}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}};Je([O({type:Object})],Nt.prototype,"strings");let Xe=class extends Nt{constructor(){super(),this.id=Tl(),this.name=this.id,this.required=!1,this.disabled=!1,this.placeholder="",this.min=null,this.max=null,this.minlength=0,this.maxlength=0,this.pattern="",this.optionalTag=!1,this.optionalText=$t.forms.labels.optional,this.requiredTag=!1,this.requiredText=$t.forms.labels.required,this.hasError=!1,this.errorMessage="",this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(t){this.required&&!this.value?this.internals.setValidity({valueMissing:!0},$t.forms.messages.required,t):t.validity.typeMismatch||t.validity.badInput?this.internals.setValidity({typeMismatch:!0},$t.forms.messages.invalid,t):t.validity.patternMismatch?this.internals.setValidity({patternMismatch:!0},$t.forms.messages.invalidPattern,t):t.validity.tooShort||this.minLength>0&&this.value.length<this.minLength?this.internals.setValidity({tooShort:!0},$t.forms.messages.tooShort,t):t.validity.tooLong||this.maxLength>0&&this.value.length>this.maxLength?this.internals.setValidity({tooLong:!0},$t.forms.messages.tooLong,t):t.validity.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},$t.forms.messages.rangeUnderflow,t):t.validity.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},$t.forms.messages.rangeOverflow,t):t.validity.customError?this.internals.setValidity({customError:!0},t.validationMessage,t):this.internals.setValidity({})}onInput(t){if(console.log("onInput",t),typeof t!="string"&&!Array.isArray(t)){console.log("Value must be a string or an array");return}!Array.isArray(t)&&t.includes(",")&&(t=t.split(",")),!this.multiple&&!this.range&&Array.isArray(t)&&(t=t[0]),this.manageValidity(this.inputRef.value),this.inputRef2&&this.manageValidity(this.inputRef2.value),this.internals.setFormValue(t),this.dispatchEvent(new Event("input")),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-changed",{detail:this._value,bubbles:!0,composed:!0})),this.internals.reportValidity()}firstUpdated(t){super.firstUpdated(t),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.disabled=!0,this.internals.ariaDisabled=!0),this.internals.setFormValue(this.value),this.manageValidity(this.inputRef.value)}};Je([O({type:String,reflect:!0})],Xe.prototype,"id"),Je([O({type:String,reflect:!0})],Xe.prototype,"name"),Je([O({type:Boolean,reflect:!0})],Xe.prototype,"required"),Je([O({type:Boolean,reflect:!0})],Xe.prototype,"disabled"),Je([O({type:String,reflect:!0})],Xe.prototype,"placeholder"),Je([O({type:Number,reflect:!0})],Xe.prototype,"min"),Je([O({type:Number,reflect:!0})],Xe.prototype,"max"),Je([O({type:Number,reflect:!0})],Xe.prototype,"minlength"),Je([O({type:Number,reflect:!0})],Xe.prototype,"maxlength"),Je([O({type:String,reflect:!0})],Xe.prototype,"pattern"),Je([O({type:Boolean,reflect:!0})],Xe.prototype,"optionalTag"),Je([O({type:String,reflect:!0})],Xe.prototype,"optionalText"),Je([O({type:Boolean,reflect:!0})],Xe.prototype,"requiredTag"),Je([O({type:String,reflect:!0})],Xe.prototype,"requiredText"),Je([O({type:Boolean,reflect:!0})],Xe.prototype,"hasError"),Je([O({type:String,reflect:!0})],Xe.prototype,"errorMessage");const Bl=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Ph=e=>e?new Date(e):null,Lh=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},Qn={csvToArray:Bl,stringToDate:Ph,stringsToDate:Lh};/**
95
+ */const xh={attribute:!0,type:String,converter:Sa,reflect:!1,hasChanged:Gi},_h=(e=xh,t,n)=>{const{kind:r,metadata:i}=n;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(n.name,e),r==="accessor"){const{name:u}=n;return{set(c){const d=t.get.call(this);t.set.call(this,c),this.requestUpdate(u,d,e)},init(c){return c!==void 0&&this.P(u,void 0,e),c}}}if(r==="setter"){const{name:u}=n;return function(c){const d=this[u];t.call(this,c),this.requestUpdate(u,d,e)}}throw Error("Unsupported decorator location: "+r)};function O(e){return(t,n)=>typeof n=="object"?_h(e,t,n):((r,i,o)=>{const u=i.hasOwnProperty(o);return i.constructor.createProperty(o,u?{...r,wrapped:!0}:r),u?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,n)}/**
96
96
  * @license
97
97
  * Copyright 2017 Google LLC
98
98
  * SPDX-License-Identifier: BSD-3-Clause
99
- */const Gt=e=>(t,n)=>{n!==void 0?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/**
99
+ */function jr(e){return O({...e,state:!0,attribute:!1})}for(var Xe=[],Zi=0;Zi<256;++Zi)Xe.push((Zi+256).toString(16).slice(1));function Sh(e,t=0){return(Xe[e[t+0]]+Xe[e[t+1]]+Xe[e[t+2]]+Xe[e[t+3]]+"-"+Xe[e[t+4]]+Xe[e[t+5]]+"-"+Xe[e[t+6]]+Xe[e[t+7]]+"-"+Xe[e[t+8]]+Xe[e[t+9]]+"-"+Xe[e[t+10]]+Xe[e[t+11]]+Xe[e[t+12]]+Xe[e[t+13]]+Xe[e[t+14]]+Xe[e[t+15]]).toLowerCase()}var $a,Eh=new Uint8Array(16);function Fh(){if(!$a&&($a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $a(Eh)}var Ah=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const $l={randomUUID:Ah};function Tl(e,t,n){if($l.randomUUID&&!t&&!e)return $l.randomUUID();e=e||{};var r=e.random||(e.rng||Fh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Sh(r)}const $h={hi:"Hei!"},Th={buttonAltText:"Åpne kalender"},Bh={days:["Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Man","Tir","Ons","Tor","Fre","Lør","Søn"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],week:"Uke",prevMonth:"Forrige måned",nextMonth:"Neste måned"},Nh={labels:{optional:"Valgfritt",required:"Må fylles ut"},messages:{required:"Dette feltet er påkrevd",invalid:"Ugyldig verdi",invalidPattern:"Ugyldig format",tooShort:"For kort",tooLong:"For lang",rangeUnderflow:"For lav verdi",rangeOverflow:"For høy verdi",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},$t={example:$h,calendar:Th,dates:Bh,forms:Nh};var jh=Object.defineProperty,ze=(e,t,n,r)=>{for(var i=void 0,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=u(t,n,i)||i);return i&&jh(t,n,i),i};let Nt=class extends Nr{constructor(){super(),this.strings=$t}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}};ze([O({type:Object})],Nt.prototype,"strings");let Ve=class extends Nt{constructor(){super(),this.id=Tl(),this.name=this.id,this.required=!1,this.disabled=!1,this.placeholder="",this.min=null,this.max=null,this.minlength=0,this.maxlength=0,this.pattern="",this.optionalTag=!1,this.optionalText=$t.forms.labels.optional,this.requiredTag=!1,this.requiredText=$t.forms.labels.required,this.hasError=!1,this.errorMessage="",this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(t){this.required&&!this.value?this.internals.setValidity({valueMissing:!0},$t.forms.messages.required,t):t.validity.typeMismatch||t.validity.badInput?this.internals.setValidity({typeMismatch:!0},$t.forms.messages.invalid,t):t.validity.patternMismatch?this.internals.setValidity({patternMismatch:!0},$t.forms.messages.invalidPattern,t):t.validity.tooShort||this.minLength>0&&this.value.length<this.minLength?this.internals.setValidity({tooShort:!0},$t.forms.messages.tooShort,t):t.validity.tooLong||this.maxLength>0&&this.value.length>this.maxLength?this.internals.setValidity({tooLong:!0},$t.forms.messages.tooLong,t):t.validity.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},$t.forms.messages.rangeUnderflow,t):t.validity.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},$t.forms.messages.rangeOverflow,t):t.validity.customError?this.internals.setValidity({customError:!0},t.validationMessage,t):this.internals.setValidity({})}onInput(t){if(!this.touched){this.touched=!0;return}if(console.log("onInput",t),typeof t!="string"&&!Array.isArray(t)){console.log("Value must be a string or an array");return}!Array.isArray(t)&&t.includes(",")&&(t=t.split(",")),!this.multiple&&!this.range&&Array.isArray(t)&&(t=t[0]),this.manageValidity(this.inputRef.value),this.inputRef2&&this.manageValidity(this.inputRef2.value),this.internals.setFormValue(t),this.dispatchEvent(new Event("input")),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-changed",{detail:this._value,bubbles:!0,composed:!0})),this.internals.reportValidity()}firstUpdated(t){super.firstUpdated(t),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.disabled=!0,this.internals.ariaDisabled=!0),this.internals.setFormValue(this.value),this.manageValidity(this.inputRef.value)}};ze([O({type:String,reflect:!0})],Ve.prototype,"id"),ze([O({type:String,reflect:!0})],Ve.prototype,"name"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"required"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"disabled"),ze([O({type:String,reflect:!0})],Ve.prototype,"placeholder"),ze([O({type:Number,reflect:!0})],Ve.prototype,"min"),ze([O({type:Number,reflect:!0})],Ve.prototype,"max"),ze([O({type:Number,reflect:!0})],Ve.prototype,"minlength"),ze([O({type:Number,reflect:!0})],Ve.prototype,"maxlength"),ze([O({type:String,reflect:!0})],Ve.prototype,"pattern"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"optionalTag"),ze([O({type:String,reflect:!0})],Ve.prototype,"optionalText"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"requiredTag"),ze([O({type:String,reflect:!0})],Ve.prototype,"requiredText"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"hasError"),ze([O({type:String,reflect:!0})],Ve.prototype,"errorMessage"),ze([jr()],Ve.prototype,"touched");const Bl=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Ph=e=>e?new Date(e):null,Lh=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},Qn={csvToArray:Bl,stringToDate:Ph,stringsToDate:Lh};/**
100
100
  * @license
101
101
  * Copyright 2017 Google LLC
102
102
  * SPDX-License-Identifier: BSD-3-Clause
103
- */const $a={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},jr=e=>(...t)=>({_$litDirective$:e,values:t});let Ta=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,r){this.t=t,this._$AM=n,this.i=r}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}};/**
103
+ */const Gt=e=>(t,n)=>{n!==void 0?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/**
104
104
  * @license
105
105
  * Copyright 2017 Google LLC
106
106
  * SPDX-License-Identifier: BSD-3-Clause
107
- */function Ba(e){return O({...e,state:!0,attribute:!1})}/**
107
+ */const Ta={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Pr=e=>(...t)=>({_$litDirective$:e,values:t});let Ba=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,r){this.t=t,this._$AM=n,this.i=r}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}};/**
108
108
  * @license
109
109
  * Copyright 2018 Google LLC
110
110
  * SPDX-License-Identifier: BSD-3-Clause
111
- */const ze=jr(class extends Ta{constructor(e){var t;if(super(e),e.type!==$a.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var n,r;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((n=this.nt)!=null&&n.has(o))&&this.st.add(o);return this.render(t)}const i=e.element.classList;for(const o of this.st)o in t||(i.remove(o),this.st.delete(o));for(const o in t){const u=!!t[o];u===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(u?(i.add(o),this.st.add(o)):(i.remove(o),this.st.delete(o)))}return Vt}});/**
111
+ */const Ge=Pr(class extends Ba{constructor(e){var t;if(super(e),e.type!==Ta.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var n,r;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((n=this.nt)!=null&&n.has(o))&&this.st.add(o);return this.render(t)}const i=e.element.classList;for(const o of this.st)o in t||(i.remove(o),this.st.delete(o));for(const o in t){const u=!!t[o];u===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(u?(i.add(o),this.st.add(o)):(i.remove(o),this.st.delete(o)))}return Vt}});/**
112
112
  * @license
113
113
  * Copyright 2017 Google LLC
114
114
  * SPDX-License-Identifier: BSD-3-Clause
115
- */let Na=class extends Ta{constructor(t){if(super(t),this.it=re,t.type!==$a.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===re||t==null)return this._t=void 0,this.it=t;if(t===Vt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}};Na.directiveName="unsafeHTML",Na.resultType=1;const ja=jr(Na);/**
115
+ */let Na=class extends Ba{constructor(t){if(super(t),this.it=re,t.type!==Ta.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===re||t==null)return this._t=void 0,this.it=t;if(t===Vt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}};Na.directiveName="unsafeHTML",Na.resultType=1;const ja=Pr(Na);/**
116
116
  * @license
117
117
  * Copyright 2017 Google LLC
118
118
  * SPDX-License-Identifier: BSD-3-Clause
119
- */let es=class extends Na{};es.directiveName="unsafeSVG",es.resultType=2;const Nl=jr(es);var Oh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Pr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Ih(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Oh(t,n,i),i};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.3/icons/";const Mh=e=>new Promise(t=>setTimeout(t,e)),Pa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',ts={},Rh=async(e,t)=>{let n=0;for(;ts[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await Mh(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.pktFetch=="function"?(ts[t+e+".svg"]="fetching",Promise.resolve(window.pktFetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),Pa)).then(r=>(r!==Pa&&localStorage.setItem(t+e+".svg",r),ts[t+e+".svg"]="fetched",r)))):Promise.resolve(Pa)};let Zn=class extends Nt{constructor(){super(),this.path=window.pktIconPath,this.name="",this.icon=Nl(Pa),this._updatedProps=[],this.classList.add("pkt-icon")}willUpdate(t){super.willUpdate(t),t.has("class")&&this.classList.add("my-element")}async attributeChangedCallback(t,n,r){super.attributeChangedCallback(t,n,r),this._updatedProps.length>0?(this.icon=Nl(await Rh(this.name||"",this.path).then(i=>i)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return J`${this.name&&this.icon}`}};Pr([O({type:String,reflect:!1})],Zn.prototype,"path",2),Pr([O({type:String,reflect:!0})],Zn.prototype,"name",2),Pr([O({type:SVGElement})],Zn.prototype,"icon",2),Pr([O({type:Array,noAccessor:!0})],Zn.prototype,"_updatedProps",2),Zn=Pr([Gt("pkt-icon")],Zn);function st(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function En(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const jl=6048e5,qh=864e5;let Hh={};function La(){return Hh}function Lr(e,t){var n,r,i,o;const u=La(),c=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??u.weekStartsOn??((o=(i=u.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,d=st(e),h=d.getDay(),g=(h<c?7:0)+h-c;return d.setDate(d.getDate()-g),d.setHours(0,0,0,0),d}function ns(e,t){const n=st(e.start),r=st(e.end);let i=+n>+r;const o=i?+n:+r,u=i?r:n;u.setHours(0,0,0,0);let c=1;const d=[];for(;+u<=o;)d.push(st(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?d.reverse():d}function Pl(e,t){var n,r,i,o;const u=st(e),c=u.getFullYear(),d=La(),h=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??d.firstWeekContainsDate??((o=(i=d.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,g=En(e,0);g.setFullYear(c+1,0,h),g.setHours(0,0,0,0);const v=Lr(g,t),D=En(e,0);D.setFullYear(c,0,h),D.setHours(0,0,0,0);const b=Lr(D,t);return u.getTime()>=v.getTime()?c+1:u.getTime()>=b.getTime()?c:c-1}function Uh(e,t){var n,r,i,o;const u=La(),c=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??u.firstWeekContainsDate??((o=(i=u.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,d=Pl(e,t),h=En(e,0);return h.setFullYear(d,0,c),h.setHours(0,0,0,0),Lr(h,t)}function rs(e,t){const n=st(e),r=+Lr(n,t)-+Uh(n,t);return Math.round(r/jl)+1}function Wh(e){let t=st(e).getDay();return t===0&&(t=7),t}const zh="pkt-calendar",Vh={id:{type:"string",name:"ID",description:"Unique identifier for the calendar"},currentmonth:{type:"date",converter:"stringToDate",description:"The current month to display"},selected:{type:"array",converter:"csvToArray",reflect:!0,items:{type:"date"},description:"Array of selected dates"},excludeweekdays:{type:"array",converter:"csvToArray",items:{type:"string"},description:"Array of weekdays (1-7) to exclude"},excludedates:{type:"array",converter:"stringsToDate",items:{type:"date"},description:"Array of specific dates to exclude"},earliest:{type:"date",converter:"stringToDate",default:null,description:"Earliest selectable date"},latest:{type:"date",converter:"stringToDate",default:null,description:"Latest selectable date"},weeknumbers:{type:"boolean",reflect:!0,default:!1,description:"Show week numbers in calendar"},withcontrols:{type:"boolean",reflect:!0,default:!1,description:"Show month and year navigation controls"},multiple:{type:"boolean",reflect:!0,default:!1,description:"Allow multiple date selection"},maxMultiple:{type:"number",default:4,description:"Maximum number of dates that can be selected"},range:{type:"boolean",reflect:!0,default:!1,description:"Allow date range selection"}},Gh={"date-selected":{description:"Returns ISO formatted date string"}},Fn={name:zh,"css-class":"pkt-calendar",props:Vh,events:Gh};var Yh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,Ee=(e,t,n,r)=>{for(var i=r>1?void 0:r?Kh(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Yh(t,n,i),i};let _e=class extends Nt{constructor(){super(),this.multiple=Fn.props.multiple.default,this.maxMultiple=Fn.props.maxMultiple.default,this.range=Fn.props.range.default,this.weeknumbers=Fn.props.weeknumbers.default,this.withcontrols=Fn.props.withcontrols.default,this.focused=!1,this.selected=[],this.earliest=Fn.props.earliest.default,this.latest=Fn.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=new Date,this.dayStrings=this.strings.dates.daysShort,this.monthStrings=this.strings.dates.months,this.weekString=this.strings.dates.week,this.prevMonthString=this.strings.dates.prevMonth,this.nextMonthString=this.strings.dates.nextMonth,this._selected=[],this.year=0,this.month=0,this.week=0,this.rangeHovered=null,this.inRange={},this.focusedDate=null,this.selectableDates=[]}connectedCallback(){const t=this.currentmonth;this.year=t.getFullYear(),this.month=t.getMonth(),this.week=rs(new Date(this.year,this.month,1,12)),this.selected&&this.selected.length&&this.selected.forEach(n=>{this._selected.push(new Date(n))}),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}updated(t){if(t.has("selected")&&this.selected.length===2){const n=ns({start:new Date(this.selected[0]),end:new Date(this.selected[1])});if(this.inRange={},Array.isArray(n)&&n.length){const r={};for(let i=0;i<n.length;i++)r[this.formatISODate(n[i])]=this.isInRange(n[i]);this.inRange=r}}super.updated(t)}firstUpdated(t){this.addEventListener("keydown",this.handleKeydown)}handleKeydown(t){switch(t.key){case"ArrowLeft":this.handleArrowKey(t,-1);break;case"ArrowRight":this.handleArrowKey(t,1);break;case"ArrowUp":this.handleArrowKey(t,-7);break;case"ArrowDown":this.handleArrowKey(t,7);break}}handleArrowKey(t,n){if(t.preventDefault(),!this.focusedDate)return;const r=new Date(this.focusedDate);let i=new Date(r.setDate(r.getDate()+n));if(i){let o=this.querySelector(`div[data-date="${this.formatISODate(i)}"]`);if(o instanceof HTMLDivElement){if(o.dataset.disabled){let u=new Date(r.setDate(r.getDate()+n)),c=this.querySelector(`div[data-date="${this.formatISODate(u)}"]`);for(;c&&c instanceof HTMLDivElement&&c.dataset.disabled;)u=new Date(u.setDate(u.getDate()+n)),c=this.querySelector(`div[data-date="${this.formatISODate(u)}"]`);o=c}o instanceof HTMLDivElement&&!o.dataset.disabled&&o.focus()}}}render(){return J`
119
+ */let es=class extends Na{};es.directiveName="unsafeSVG",es.resultType=2;const Nl=Pr(es);var Oh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Lr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Ih(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Oh(t,n,i),i};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.3/icons/";const Mh=e=>new Promise(t=>setTimeout(t,e)),Pa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',ts={},Rh=async(e,t)=>{let n=0;for(;ts[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await Mh(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.pktFetch=="function"?(ts[t+e+".svg"]="fetching",Promise.resolve(window.pktFetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),Pa)).then(r=>(r!==Pa&&localStorage.setItem(t+e+".svg",r),ts[t+e+".svg"]="fetched",r)))):Promise.resolve(Pa)};let Zn=class extends Nt{constructor(){super(),this.path=window.pktIconPath,this.name="",this.icon=Nl(Pa),this._updatedProps=[],this.classList.add("pkt-icon")}willUpdate(t){super.willUpdate(t),t.has("class")&&this.classList.add("my-element")}async attributeChangedCallback(t,n,r){super.attributeChangedCallback(t,n,r),this._updatedProps.length>0?(this.icon=Nl(await Rh(this.name||"",this.path).then(i=>i)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return J`${this.name&&this.icon}`}};Lr([O({type:String,reflect:!1})],Zn.prototype,"path",2),Lr([O({type:String,reflect:!0})],Zn.prototype,"name",2),Lr([O({type:SVGElement})],Zn.prototype,"icon",2),Lr([O({type:Array,noAccessor:!0})],Zn.prototype,"_updatedProps",2),Zn=Lr([Gt("pkt-icon")],Zn);function st(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function En(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const jl=6048e5,qh=864e5;let Hh={};function La(){return Hh}function Or(e,t){var n,r,i,o;const u=La(),c=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??u.weekStartsOn??((o=(i=u.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,d=st(e),h=d.getDay(),g=(h<c?7:0)+h-c;return d.setDate(d.getDate()-g),d.setHours(0,0,0,0),d}function ns(e,t){const n=st(e.start),r=st(e.end);let i=+n>+r;const o=i?+n:+r,u=i?r:n;u.setHours(0,0,0,0);let c=1;const d=[];for(;+u<=o;)d.push(st(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?d.reverse():d}function Pl(e,t){var n,r,i,o;const u=st(e),c=u.getFullYear(),d=La(),h=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??d.firstWeekContainsDate??((o=(i=d.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,g=En(e,0);g.setFullYear(c+1,0,h),g.setHours(0,0,0,0);const v=Or(g,t),D=En(e,0);D.setFullYear(c,0,h),D.setHours(0,0,0,0);const b=Or(D,t);return u.getTime()>=v.getTime()?c+1:u.getTime()>=b.getTime()?c:c-1}function Uh(e,t){var n,r,i,o;const u=La(),c=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??u.firstWeekContainsDate??((o=(i=u.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,d=Pl(e,t),h=En(e,0);return h.setFullYear(d,0,c),h.setHours(0,0,0,0),Or(h,t)}function rs(e,t){const n=st(e),r=+Or(n,t)-+Uh(n,t);return Math.round(r/jl)+1}function Wh(e){let t=st(e).getDay();return t===0&&(t=7),t}const zh="pkt-calendar",Vh={id:{type:"string",name:"ID",description:"Unique identifier for the calendar"},currentmonth:{type:"date",converter:"stringToDate",description:"The current month to display"},selected:{type:"array",converter:"csvToArray",reflect:!0,items:{type:"date"},description:"Array of selected dates"},excludeweekdays:{type:"array",converter:"csvToArray",items:{type:"string"},description:"Array of weekdays (1-7) to exclude"},excludedates:{type:"array",converter:"stringsToDate",items:{type:"date"},description:"Array of specific dates to exclude"},earliest:{type:"date",converter:"stringToDate",default:null,description:"Earliest selectable date"},latest:{type:"date",converter:"stringToDate",default:null,description:"Latest selectable date"},weeknumbers:{type:"boolean",reflect:!0,default:!1,description:"Show week numbers in calendar"},withcontrols:{type:"boolean",reflect:!0,default:!1,description:"Show month and year navigation controls"},multiple:{type:"boolean",reflect:!0,default:!1,description:"Allow multiple date selection"},maxMultiple:{type:"number",default:4,description:"Maximum number of dates that can be selected"},range:{type:"boolean",reflect:!0,default:!1,description:"Allow date range selection"}},Gh={"date-selected":{description:"Returns ISO formatted date string"}},Fn={name:zh,"css-class":"pkt-calendar",props:Vh,events:Gh};var Yh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,Ee=(e,t,n,r)=>{for(var i=r>1?void 0:r?Kh(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Yh(t,n,i),i};let _e=class extends Nt{constructor(){super(),this.multiple=Fn.props.multiple.default,this.maxMultiple=Fn.props.maxMultiple.default,this.range=Fn.props.range.default,this.weeknumbers=Fn.props.weeknumbers.default,this.withcontrols=Fn.props.withcontrols.default,this.focused=!1,this.selected=[],this.earliest=Fn.props.earliest.default,this.latest=Fn.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=new Date,this.dayStrings=this.strings.dates.daysShort,this.monthStrings=this.strings.dates.months,this.weekString=this.strings.dates.week,this.prevMonthString=this.strings.dates.prevMonth,this.nextMonthString=this.strings.dates.nextMonth,this._selected=[],this.year=0,this.month=0,this.week=0,this.rangeHovered=null,this.inRange={},this.focusedDate=null,this.selectableDates=[]}connectedCallback(){const t=this.currentmonth;this.year=t.getFullYear(),this.month=t.getMonth(),this.week=rs(new Date(this.year,this.month,1,12)),this.selected&&this.selected.length&&this.selected.forEach(n=>{this._selected.push(new Date(n))}),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}updated(t){if(t.has("selected")&&this.selected.length===2){const n=ns({start:new Date(this.selected[0]),end:new Date(this.selected[1])});if(this.inRange={},Array.isArray(n)&&n.length){const r={};for(let i=0;i<n.length;i++)r[this.formatISODate(n[i])]=this.isInRange(n[i]);this.inRange=r}}super.updated(t)}firstUpdated(t){this.addEventListener("keydown",this.handleKeydown)}handleKeydown(t){switch(t.key){case"ArrowLeft":this.handleArrowKey(t,-1);break;case"ArrowRight":this.handleArrowKey(t,1);break;case"ArrowUp":this.handleArrowKey(t,-7);break;case"ArrowDown":this.handleArrowKey(t,7);break}}handleArrowKey(t,n){if(t.preventDefault(),!this.focusedDate)return;const r=new Date(this.focusedDate);let i=new Date(r.setDate(r.getDate()+n));if(i){let o=this.querySelector(`div[data-date="${this.formatISODate(i)}"]`);if(o instanceof HTMLDivElement){if(o.dataset.disabled){let u=new Date(r.setDate(r.getDate()+n)),c=this.querySelector(`div[data-date="${this.formatISODate(u)}"]`);for(;c&&c instanceof HTMLDivElement&&c.dataset.disabled;)u=new Date(u.setDate(u.getDate()+n)),c=this.querySelector(`div[data-date="${this.formatISODate(u)}"]`);o=c}o instanceof HTMLDivElement&&!o.dataset.disabled&&o.focus()}}}render(){return J`
120
120
  <div
121
121
  class="pkt-calendar ${this.weeknumbers?"pkt-cal-weeknumbers":re}"
122
122
  @focusout=${this.closeEvent}
@@ -174,7 +174,7 @@ React keys must be passed directly to JSX without using spread:
174
174
  />
175
175
  </div> `):t.push(J`<div class="pkt-txt-16-medium" aria-live="polite">
176
176
  ${this.monthStrings[this.month]} ${this.year}
177
- </div>`),t}renderDayView(t,n,r){const i=new Date(this.year,this.month,t,12),o=this.formatISODate(i),u=o===this.formatISODate(n),c=this.selected.includes(o),d=this.isExcluded(r,i)||!c&&this.multiple&&this.maxMultiple>0&&this.selected.length>=this.maxMultiple,h=this.focusedDate?this.focusedDate===o?"0":"-1":t===1?"0":"-1";this.selectableDates.push({currentDateISO:o,isDisabled:d});const g={"pkt-cal-today":u,"pkt-cal-selected":c,"pkt-cal-in-range":this.inRange[o],"pkt-cal-excluded":this.isExcluded(r,i),"pkt-cal-in-range-first":this.range&&(this.selected.length===2||this.rangeHovered!==null)&&o===this.selected[0],"pkt-cal-in-range-last":this.range&&this.selected.length===2&&o===this.selected[1],"pkt-cal-range-hover":this.rangeHovered!==null&&o===this.formatISODate(this.rangeHovered)};return J`<td class=${ze(g)}>
177
+ </div>`),t}renderDayView(t,n,r){const i=new Date(this.year,this.month,t,12),o=this.formatISODate(i),u=o===this.formatISODate(n),c=this.selected.includes(o),d=this.isExcluded(r,i)||!c&&this.multiple&&this.maxMultiple>0&&this.selected.length>=this.maxMultiple,h=this.focusedDate?this.focusedDate===o?"0":"-1":t===1?"0":"-1";this.selectableDates.push({currentDateISO:o,isDisabled:d});const g={"pkt-cal-today":u,"pkt-cal-selected":c,"pkt-cal-in-range":this.inRange[o],"pkt-cal-excluded":this.isExcluded(r,i),"pkt-cal-in-range-first":this.range&&(this.selected.length===2||this.rangeHovered!==null)&&o===this.selected[0],"pkt-cal-in-range-last":this.range&&this.selected.length===2&&o===this.selected[1],"pkt-cal-range-hover":this.rangeHovered!==null&&o===this.formatISODate(this.rangeHovered)};return J`<td class=${Ge(g)}>
178
178
  <div
179
179
  ?aria-selected=${c}
180
180
  role="gridcell"
@@ -205,21 +205,21 @@ React keys must be passed directly to JSX without using spread:
205
205
  </div>
206
206
  </td>`),d++):(v.push(this.renderDayView(d,t,D)),d++);h.push(J`<tr class="pkt-cal-week-row" role="row">
207
207
  ${v}
208
- </tr>`)}return h}isExcluded(t,n){return this.excludeweekdays.includes(t.toString())||this.earliest&&n<new Date(this.earliest)||this.latest&&n>new Date(this.latest)?!0:this.excludedates.some(r=>typeof r=="string"?r===this.formatISODate(n):r.toDateString()===n.toDateString())}formatISODate(t){return t.toISOString().split("T")[0]}isPrevMonthAllowed(){const t=new Date(this.year,this.month,0,12);return!(this.earliest&&new Date(this.earliest)>t)}prevMonth(){const t=this.month===0?11:this.month-1,n=this.month===0?this.year-1:this.year;this.changeMonth(n,t)}isNextMonthAllowed(){const t=new Date(this.year,this.month===11?0:this.month+1,1,12);return!(this.latest&&new Date(this.latest)<t)}nextMonth(){const t=this.month===11?0:this.month+1,n=this.month===11?this.year+1:this.year;this.changeMonth(n,t)}changeMonth(t,n){this.year=t,this.month=n,this.selectableDates=[],this.requestUpdate("currentmonth")}isInRange(t){if(this.range&&this.selected.length===2){if(t>new Date(this.selected[0])&&t<new Date(this.selected[1]))return!0}else if(this.range&&this.selected.length===1&&this.rangeHovered&&t>new Date(this.selected[0])&&t<this.rangeHovered)return!0;return!1}isRangeAllowed(t){let n=!0;if(this._selected.length===1){const r=ns({start:this._selected[0],end:t});if(Array.isArray(r)&&r.length)for(let i=0;i<r.length;i++)this.excludedates.forEach(o=>{o>this._selected[0]&&o<t&&(n=!1)}),this.excludeweekdays.includes(Wh(r[i]).toString())&&(n=!1)}return n}emptySelected(){this.selected=[],this._selected=[],this.inRange={}}addToSelected(t){this.selected.includes(this.formatISODate(t))||(this.selected=[...this.selected,this.formatISODate(t)],this._selected=[...this._selected,t])}removeFromSelected(t){if(this.selected.length===1)this.emptySelected();else{const n=this.selected.indexOf(this.formatISODate(t)),r=[...this.selected],i=[...this._selected];r.splice(n,1),i.splice(n,1),this.selected=r,this._selected=i}}toggleSelected(t){const n=this.formatISODate(t);this.selected.includes(n)?this.removeFromSelected(t):this.maxMultiple&&this.selected.length>=this.maxMultiple||this.addToSelected(t)}handleRangeSelect(t){const n=this.formatISODate(t);return this.selected.includes(n)?this.selected.indexOf(n)===0?this.emptySelected():this.removeFromSelected(t):this.selected.length>1?(this.emptySelected(),this.addToSelected(t)):(this.selected.length===1&&!this.isRangeAllowed(t)&&this.emptySelected(),this.selected.length===1&&this._selected[0]>t&&this.emptySelected(),this.addToSelected(t)),Promise.resolve()}handleRangeHover(t){if(this.range&&this._selected.length===1&&this.isRangeAllowed(t)&&this._selected[0]<t){this.rangeHovered=t,this.inRange={};const n=ns({start:this._selected[0],end:t});if(Array.isArray(n)&&n.length)for(let r=0;r<n.length;r++)this.inRange[this.formatISODate(n[r])]=this.isInRange(n[r])}else this.rangeHovered=null}handleDateSelect(t){if(t)return this.range?this.handleRangeSelect(t):this.multiple?this.toggleSelected(t):(this.selected.includes(this.formatISODate(t))?this.emptySelected():(this.emptySelected(),this.addToSelected(t)),this.close()),this.dispatchEvent(new CustomEvent("date-selected",{detail:this.selected,bubbles:!0,composed:!0})),Promise.resolve()}closeEvent(t){this.contains(t.relatedTarget)||this.close()}close(){this.dispatchEvent(new CustomEvent("close",{detail:!0,bubbles:!0,composed:!0}))}};Ee([O({type:Boolean,reflect:!0})],_e.prototype,"multiple",2),Ee([O({type:Number})],_e.prototype,"maxMultiple",2),Ee([O({type:Boolean,reflect:!0})],_e.prototype,"range",2),Ee([O({type:Boolean,reflect:!0})],_e.prototype,"weeknumbers",2),Ee([O({type:Boolean,reflect:!0})],_e.prototype,"withcontrols",2),Ee([O({type:Boolean,reflect:!0})],_e.prototype,"focused",2),Ee([O({converter:Qn.csvToArray})],_e.prototype,"selected",2),Ee([O({type:String,reflect:!0})],_e.prototype,"earliest",2),Ee([O({type:String,reflect:!0})],_e.prototype,"latest",2),Ee([O({converter:Qn.stringsToDate})],_e.prototype,"excludedates",2),Ee([O({converter:Qn.csvToArray})],_e.prototype,"excludeweekdays",2),Ee([O({converter:Qn.stringToDate})],_e.prototype,"currentmonth",2),Ee([O({type:Array})],_e.prototype,"dayStrings",2),Ee([O({type:Array})],_e.prototype,"monthStrings",2),Ee([O({type:String})],_e.prototype,"weekString",2),Ee([O({type:String})],_e.prototype,"prevMonthString",2),Ee([O({type:String})],_e.prototype,"nextMonthString",2),Ee([O({type:Array})],_e.prototype,"_selected",2),Ee([O({type:Number})],_e.prototype,"year",2),Ee([O({type:Number})],_e.prototype,"month",2),Ee([O({type:Number})],_e.prototype,"week",2),Ee([O({type:Date})],_e.prototype,"rangeHovered",2),Ee([Ba()],_e.prototype,"inRange",2),Ee([Ba()],_e.prototype,"focusedDate",2),Ee([Ba()],_e.prototype,"selectableDates",2),_e=Ee([Gt("pkt-calendar")],_e);let er=class{constructor(t,...n){this.nodes=[],this.host=t,this.host.addController(this),this.slots=n,this.nodes=[]}hostConnected(){Array.from(this.host.childNodes).forEach(t=>{var n;if(t.nodeName==="#text"){if((n=t.nodeValue)!=null&&n.trim()){const r=document==null?void 0:document.createElement("template");r.content.appendChild(t),this.nodes.push(r)}}else this.nodes.push(t)})}hostUpdated(){this.slots.forEach(t=>{if(!t.value)return;const n=t.value.getAttribute("name"),r=this.nodes.flatMap(i=>i.getAttribute&&i.getAttribute("slot")==n?this.nodeFromElement(i,t):[]);r.length&&t.value.replaceChildren(...r)})}nodeFromElement(t,n){var r;return t===((r=n.value)==null?void 0:r.parentNode)?[]:t instanceof HTMLTemplateElement?Array.from(t.content.childNodes):t}};/**
208
+ </tr>`)}return h}isExcluded(t,n){return this.excludeweekdays.includes(t.toString())||this.earliest&&n<new Date(this.earliest)||this.latest&&n>new Date(this.latest)?!0:this.excludedates.some(r=>typeof r=="string"?r===this.formatISODate(n):r.toDateString()===n.toDateString())}formatISODate(t){return t.toISOString().split("T")[0]}isPrevMonthAllowed(){const t=new Date(this.year,this.month,0,12);return!(this.earliest&&new Date(this.earliest)>t)}prevMonth(){const t=this.month===0?11:this.month-1,n=this.month===0?this.year-1:this.year;this.changeMonth(n,t)}isNextMonthAllowed(){const t=new Date(this.year,this.month===11?0:this.month+1,1,12);return!(this.latest&&new Date(this.latest)<t)}nextMonth(){const t=this.month===11?0:this.month+1,n=this.month===11?this.year+1:this.year;this.changeMonth(n,t)}changeMonth(t,n){this.year=t,this.month=n,this.selectableDates=[],this.requestUpdate("currentmonth")}isInRange(t){if(this.range&&this.selected.length===2){if(t>new Date(this.selected[0])&&t<new Date(this.selected[1]))return!0}else if(this.range&&this.selected.length===1&&this.rangeHovered&&t>new Date(this.selected[0])&&t<this.rangeHovered)return!0;return!1}isRangeAllowed(t){let n=!0;if(this._selected.length===1){const r=ns({start:this._selected[0],end:t});if(Array.isArray(r)&&r.length)for(let i=0;i<r.length;i++)this.excludedates.forEach(o=>{o>this._selected[0]&&o<t&&(n=!1)}),this.excludeweekdays.includes(Wh(r[i]).toString())&&(n=!1)}return n}emptySelected(){this.selected=[],this._selected=[],this.inRange={}}addToSelected(t){this.selected.includes(this.formatISODate(t))||(this.selected=[...this.selected,this.formatISODate(t)],this._selected=[...this._selected,t])}removeFromSelected(t){if(this.selected.length===1)this.emptySelected();else{const n=this.selected.indexOf(this.formatISODate(t)),r=[...this.selected],i=[...this._selected];r.splice(n,1),i.splice(n,1),this.selected=r,this._selected=i}}toggleSelected(t){const n=this.formatISODate(t);this.selected.includes(n)?this.removeFromSelected(t):this.maxMultiple&&this.selected.length>=this.maxMultiple||this.addToSelected(t)}handleRangeSelect(t){const n=this.formatISODate(t);return this.selected.includes(n)?this.selected.indexOf(n)===0?this.emptySelected():this.removeFromSelected(t):this.selected.length>1?(this.emptySelected(),this.addToSelected(t)):(this.selected.length===1&&!this.isRangeAllowed(t)&&this.emptySelected(),this.selected.length===1&&this._selected[0]>t&&this.emptySelected(),this.addToSelected(t)),Promise.resolve()}handleRangeHover(t){if(this.range&&this._selected.length===1&&this.isRangeAllowed(t)&&this._selected[0]<t){this.rangeHovered=t,this.inRange={};const n=ns({start:this._selected[0],end:t});if(Array.isArray(n)&&n.length)for(let r=0;r<n.length;r++)this.inRange[this.formatISODate(n[r])]=this.isInRange(n[r])}else this.rangeHovered=null}handleDateSelect(t){if(t)return this.range?this.handleRangeSelect(t):this.multiple?this.toggleSelected(t):(this.selected.includes(this.formatISODate(t))?this.emptySelected():(this.emptySelected(),this.addToSelected(t)),this.close()),this.dispatchEvent(new CustomEvent("date-selected",{detail:this.selected,bubbles:!0,composed:!0})),Promise.resolve()}closeEvent(t){this.contains(t.relatedTarget)||this.close()}close(){this.dispatchEvent(new CustomEvent("close",{detail:!0,bubbles:!0,composed:!0}))}};Ee([O({type:Boolean,reflect:!0})],_e.prototype,"multiple",2),Ee([O({type:Number})],_e.prototype,"maxMultiple",2),Ee([O({type:Boolean,reflect:!0})],_e.prototype,"range",2),Ee([O({type:Boolean,reflect:!0})],_e.prototype,"weeknumbers",2),Ee([O({type:Boolean,reflect:!0})],_e.prototype,"withcontrols",2),Ee([O({type:Boolean,reflect:!0})],_e.prototype,"focused",2),Ee([O({converter:Qn.csvToArray})],_e.prototype,"selected",2),Ee([O({type:String,reflect:!0})],_e.prototype,"earliest",2),Ee([O({type:String,reflect:!0})],_e.prototype,"latest",2),Ee([O({converter:Qn.stringsToDate})],_e.prototype,"excludedates",2),Ee([O({converter:Qn.csvToArray})],_e.prototype,"excludeweekdays",2),Ee([O({converter:Qn.stringToDate})],_e.prototype,"currentmonth",2),Ee([O({type:Array})],_e.prototype,"dayStrings",2),Ee([O({type:Array})],_e.prototype,"monthStrings",2),Ee([O({type:String})],_e.prototype,"weekString",2),Ee([O({type:String})],_e.prototype,"prevMonthString",2),Ee([O({type:String})],_e.prototype,"nextMonthString",2),Ee([O({type:Array})],_e.prototype,"_selected",2),Ee([O({type:Number})],_e.prototype,"year",2),Ee([O({type:Number})],_e.prototype,"month",2),Ee([O({type:Number})],_e.prototype,"week",2),Ee([O({type:Date})],_e.prototype,"rangeHovered",2),Ee([jr()],_e.prototype,"inRange",2),Ee([jr()],_e.prototype,"focusedDate",2),Ee([jr()],_e.prototype,"selectableDates",2),_e=Ee([Gt("pkt-calendar")],_e);let er=class{constructor(t,...n){this.nodes=[],this.host=t,this.host.addController(this),this.slots=n,this.nodes=[]}hostConnected(){Array.from(this.host.childNodes).forEach(t=>{var n;if(t.nodeName==="#text"){if((n=t.nodeValue)!=null&&n.trim()){const r=document==null?void 0:document.createElement("template");r.content.appendChild(t),this.nodes.push(r)}}else this.nodes.push(t)})}hostUpdated(){this.slots.forEach(t=>{if(!t.value)return;const n=t.value.getAttribute("name"),r=this.nodes.flatMap(i=>i.getAttribute&&i.getAttribute("slot")==n?this.nodeFromElement(i,t):[]);r.length&&t.value.replaceChildren(...r)})}nodeFromElement(t,n){var r;return t===((r=n.value)==null?void 0:r.parentNode)?[]:t instanceof HTMLTemplateElement?Array.from(t.content.childNodes):t}};/**
209
209
  * @license
210
210
  * Copyright 2020 Google LLC
211
211
  * SPDX-License-Identifier: BSD-3-Clause
212
- */const{I:Jh}=wh,Xh=e=>e.strings===void 0,Ll=()=>document.createComment(""),Or=(e,t,n)=>{var r;const i=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(n===void 0){const u=i.insertBefore(Ll(),o),c=i.insertBefore(Ll(),o);n=new Jh(u,c,e,e.options)}else{const u=n._$AB.nextSibling,c=n._$AM,d=c!==e;if(d){let h;(r=n._$AQ)==null||r.call(n,e),n._$AM=e,n._$AP!==void 0&&(h=e._$AU)!==c._$AU&&n._$AP(h)}if(u!==o||d){let h=n._$AA;for(;h!==u;){const g=h.nextSibling;i.insertBefore(h,o),h=g}}}return n},An=(e,t,n=e)=>(e._$AI(t,n),e),Qh={},Zh=(e,t=Qh)=>e._$AH=t,ef=e=>e._$AH,as=e=>{var t;(t=e._$AP)==null||t.call(e,!1,!0);let n=e._$AA;const r=e._$AB.nextSibling;for(;n!==r;){const i=n.nextSibling;n.remove(),n=i}};/**
212
+ */const{I:Jh}=wh,Xh=e=>e.strings===void 0,Ll=()=>document.createComment(""),Ir=(e,t,n)=>{var r;const i=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(n===void 0){const u=i.insertBefore(Ll(),o),c=i.insertBefore(Ll(),o);n=new Jh(u,c,e,e.options)}else{const u=n._$AB.nextSibling,c=n._$AM,d=c!==e;if(d){let h;(r=n._$AQ)==null||r.call(n,e),n._$AM=e,n._$AP!==void 0&&(h=e._$AU)!==c._$AU&&n._$AP(h)}if(u!==o||d){let h=n._$AA;for(;h!==u;){const g=h.nextSibling;i.insertBefore(h,o),h=g}}}return n},An=(e,t,n=e)=>(e._$AI(t,n),e),Qh={},Zh=(e,t=Qh)=>e._$AH=t,ef=e=>e._$AH,as=e=>{var t;(t=e._$AP)==null||t.call(e,!1,!0);let n=e._$AA;const r=e._$AB.nextSibling;for(;n!==r;){const i=n.nextSibling;n.remove(),n=i}};/**
213
213
  * @license
214
214
  * Copyright 2017 Google LLC
215
215
  * SPDX-License-Identifier: BSD-3-Clause
216
- */const Ir=(e,t)=>{var n;const r=e._$AN;if(r===void 0)return!1;for(const i of r)(n=i._$AO)==null||n.call(i,t,!1),Ir(i,t);return!0},Oa=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while((n==null?void 0:n.size)===0)},Ol=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),rf(t)}};function tf(e){this._$AN!==void 0?(Oa(this),this._$AM=e,Ol(this)):this._$AM=e}function nf(e,t=!1,n=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let o=n;o<r.length;o++)Ir(r[o],!1),Oa(r[o]);else r!=null&&(Ir(r,!1),Oa(r));else Ir(this,e)}const rf=e=>{e.type==$a.CHILD&&(e._$AP??(e._$AP=nf),e._$AQ??(e._$AQ=tf))};let af=class extends Ta{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,r){super._$AT(t,n,r),Ol(this),this.isConnected=t._$AU}_$AO(t,n=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),n&&(Ir(this,t),Oa(this))}setValue(t){if(Xh(this.t))this.t._$AI(t,this);else{const n=[...this.t._$AH];n[this.i]=t,this.t._$AI(n,this,0)}}disconnected(){}reconnected(){}};/**
216
+ */const Mr=(e,t)=>{var n;const r=e._$AN;if(r===void 0)return!1;for(const i of r)(n=i._$AO)==null||n.call(i,t,!1),Mr(i,t);return!0},Oa=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while((n==null?void 0:n.size)===0)},Ol=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),rf(t)}};function tf(e){this._$AN!==void 0?(Oa(this),this._$AM=e,Ol(this)):this._$AM=e}function nf(e,t=!1,n=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let o=n;o<r.length;o++)Mr(r[o],!1),Oa(r[o]);else r!=null&&(Mr(r,!1),Oa(r));else Mr(this,e)}const rf=e=>{e.type==Ta.CHILD&&(e._$AP??(e._$AP=nf),e._$AQ??(e._$AQ=tf))};let af=class extends Ba{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,r){super._$AT(t,n,r),Ol(this),this.isConnected=t._$AU}_$AO(t,n=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),n&&(Mr(this,t),Oa(this))}setValue(t){if(Xh(this.t))this.t._$AI(t,this);else{const n=[...this.t._$AH];n[this.i]=t,this.t._$AI(n,this,0)}}disconnected(){}reconnected(){}};/**
217
217
  * @license
218
218
  * Copyright 2020 Google LLC
219
219
  * SPDX-License-Identifier: BSD-3-Clause
220
- */const Ct=()=>new sf;let sf=class{};const is=new WeakMap,ot=jr(class extends af{render(e){return re}update(e,[t]){var n;const r=t!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=(n=e.options)==null?void 0:n.host,this.rt(this.ct=e.element)),re}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let n=is.get(t);n===void 0&&(n=new WeakMap,is.set(t,n)),n.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),n.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){var e,t;return typeof this.Y=="function"?(e=is.get(this.ht??globalThis))==null?void 0:e.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),of="pkt-tag",lf={closeTag:{type:"boolean",required:!1,default:!1},size:{required:!1,default:"medium",type:["small","medium","large"]},iconName:{type:"string",required:!1},skin:{required:!1,default:"blue",type:["blue","green","red","beige","yellow","gray","blue-light"]},textStyle:{required:!1,default:"normal-text",type:["thin-text","normal-text"]},type:{required:!1,default:"button",type:["button","submit","reset"]},ariaLabel:{type:"string",required:!1,default:"close"}},uf={default:{description:"Teksten til tag"}},tr={name:of,"css-class":"pkt-tag",props:lf,slots:uf};var cf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Yt=(e,t,n,r)=>{for(var i=r>1?void 0:r?pf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&cf(t,n,i),i};let jt=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.closeTag=tr.props.closeTag.default,this.size=tr.props.size.default,this.skin=tr.props.skin.default,this.textStyle=tr.props.textStyle.default,this.iconName=void 0,this.type=tr.props.type.default,this.ariaLabel=tr.props.ariaLabel.default,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("onClose",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new er(this,this.defaultSlot),this._isClosed=!1}render(){const t={"pkt-tag":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle},n={"pkt-tag":!0,"pkt-btn":!0,"pkt-btn--tertiary":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle,"pkt-btn--icons-right-and-left":this.closeTag&&!!this.iconName};return this.closeTag?this._isClosed?re:J`
220
+ */const Ct=()=>new sf;let sf=class{};const is=new WeakMap,ot=Pr(class extends af{render(e){return re}update(e,[t]){var n;const r=t!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=(n=e.options)==null?void 0:n.host,this.rt(this.ct=e.element)),re}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let n=is.get(t);n===void 0&&(n=new WeakMap,is.set(t,n)),n.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),n.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){var e,t;return typeof this.Y=="function"?(e=is.get(this.ht??globalThis))==null?void 0:e.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),of="pkt-tag",lf={closeTag:{type:"boolean",required:!1,default:!1},size:{required:!1,default:"medium",type:["small","medium","large"]},iconName:{type:"string",required:!1},skin:{required:!1,default:"blue",type:["blue","green","red","beige","yellow","gray","blue-light"]},textStyle:{required:!1,default:"normal-text",type:["thin-text","normal-text"]},type:{required:!1,default:"button",type:["button","submit","reset"]},ariaLabel:{type:"string",required:!1,default:"close"}},uf={default:{description:"Teksten til tag"}},tr={name:of,"css-class":"pkt-tag",props:lf,slots:uf};var cf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Yt=(e,t,n,r)=>{for(var i=r>1?void 0:r?pf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&cf(t,n,i),i};let jt=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.closeTag=tr.props.closeTag.default,this.size=tr.props.size.default,this.skin=tr.props.skin.default,this.textStyle=tr.props.textStyle.default,this.iconName=void 0,this.type=tr.props.type.default,this.ariaLabel=tr.props.ariaLabel.default,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("onClose",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new er(this,this.defaultSlot),this._isClosed=!1}render(){const t={"pkt-tag":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle},n={"pkt-tag":!0,"pkt-btn":!0,"pkt-btn--tertiary":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle,"pkt-btn--icons-right-and-left":this.closeTag&&!!this.iconName};return this.closeTag?this._isClosed?re:J`
221
221
  <button
222
- class=${ze(n)}
222
+ class=${Ge(n)}
223
223
  type=${this.type}
224
224
  aria-label=${this.ariaLabel}
225
225
  @click=${this.close}
@@ -229,12 +229,12 @@ React keys must be passed directly to JSX without using spread:
229
229
  <pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
230
230
  </button>
231
231
  `:J`
232
- <span class=${ze(t)}>
232
+ <span class=${Ge(t)}>
233
233
  ${this.iconName&&J` <pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon> `}
234
234
  <span ${ot(this.defaultSlot)}> </span>
235
235
  </span>
236
- `}};Yt([O({type:Boolean,reflect:!0})],jt.prototype,"closeTag",2),Yt([O({type:String,reflect:!0})],jt.prototype,"size",2),Yt([O({type:String,reflect:!0})],jt.prototype,"skin",2),Yt([O({type:String,reflect:!0})],jt.prototype,"textStyle",2),Yt([O({type:String,reflect:!0})],jt.prototype,"iconName",2),Yt([O({type:String,reflect:!0})],jt.prototype,"type",2),Yt([O({type:String,reflect:!0})],jt.prototype,"ariaLabel",2),Yt([Ba()],jt.prototype,"_isClosed",2),jt=Yt([Gt("pkt-tag")],jt);const df="pkt-card",hf=!0,ff={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},tags:{type:"IPktTag[]",description:"Liste av tags på kortet. Tar inn en array med IPktTag-objekter med følgende stringproperties: skin, iconName, ariaLabel, text",name:"Tags",items:{type:"object",properties:{skin:{type:["blue","green","red","yellow"],description:"Farge på tag"},iconName:{type:"string",description:"Id på ikonet du ønsker å bruke til tag"},ariaLabel:{type:"string",description:"Tekst for aria-label"},text:{type:"string",description:"Tekst på tag"}},required:["text"]}},skin:{type:["outlined","gray","blue","beige","green"],name:"Skin",description:"Farge på kortet",default:"outlined"},direction:{type:["landscape","portrait"],name:"Direction",description:"Retningen innholdet skal ligge i forhold til kortet",default:"portrait"},Image:{type:"object",image:"Image",description:"Bilde på kortet. Tar inn et objekt av typen {src: string, alt: string}. src er stien til bildet, og alt er tekst for aria-label.",items:{type:"object",properties:{src:{type:"string",description:"Bilde på kortet"},alt:{type:"string",description:"Tekst for aria-label"}},required:["src","alt"]}}},mf={default:{description:"Innholdet i kortet"}},Il={name:df,"css-class":"pkt-card",isElement:hf,props:ff,slots:mf};var gf=Object.defineProperty,vf=Object.getOwnPropertyDescriptor,$n=(e,t,n,r)=>{for(var i=r>1?void 0:r?vf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&gf(t,n,i),i};let Kt=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.skin=Il.props.skin.default,this.direction=Il.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new er(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),console.log(this.tags)}render(){const t={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction};return J`
237
- <div class=${ze(t)}>
236
+ `}};Yt([O({type:Boolean,reflect:!0})],jt.prototype,"closeTag",2),Yt([O({type:String,reflect:!0})],jt.prototype,"size",2),Yt([O({type:String,reflect:!0})],jt.prototype,"skin",2),Yt([O({type:String,reflect:!0})],jt.prototype,"textStyle",2),Yt([O({type:String,reflect:!0})],jt.prototype,"iconName",2),Yt([O({type:String,reflect:!0})],jt.prototype,"type",2),Yt([O({type:String,reflect:!0})],jt.prototype,"ariaLabel",2),Yt([jr()],jt.prototype,"_isClosed",2),jt=Yt([Gt("pkt-tag")],jt);const df="pkt-card",hf=!0,ff={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},tags:{type:"IPktTag[]",description:"Liste av tags på kortet. Tar inn en array med IPktTag-objekter med følgende stringproperties: skin, iconName, ariaLabel, text",name:"Tags",items:{type:"object",properties:{skin:{type:["blue","green","red","yellow"],description:"Farge på tag"},iconName:{type:"string",description:"Id på ikonet du ønsker å bruke til tag"},ariaLabel:{type:"string",description:"Tekst for aria-label"},text:{type:"string",description:"Tekst på tag"}},required:["text"]}},skin:{type:["outlined","gray","blue","beige","green"],name:"Skin",description:"Farge på kortet",default:"outlined"},direction:{type:["landscape","portrait"],name:"Direction",description:"Retningen innholdet skal ligge i forhold til kortet",default:"portrait"},Image:{type:"object",image:"Image",description:"Bilde på kortet. Tar inn et objekt av typen {src: string, alt: string}. src er stien til bildet, og alt er tekst for aria-label.",items:{type:"object",properties:{src:{type:"string",description:"Bilde på kortet"},alt:{type:"string",description:"Tekst for aria-label"}},required:["src","alt"]}}},mf={default:{description:"Innholdet i kortet"}},Il={name:df,"css-class":"pkt-card",isElement:hf,props:ff,slots:mf};var gf=Object.defineProperty,vf=Object.getOwnPropertyDescriptor,$n=(e,t,n,r)=>{for(var i=r>1?void 0:r?vf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&gf(t,n,i),i};let Kt=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.skin=Il.props.skin.default,this.direction=Il.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new er(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),console.log(this.tags)}render(){const t={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction};return J`
237
+ <div class=${Ge(t)}>
238
238
  ${this.image.src&&J`
239
239
  <div class="pkt-card__image">
240
240
  <img src=${this.image.src} alt=${this.image.alt||""} />
@@ -255,8 +255,8 @@ React keys must be passed directly to JSX without using spread:
255
255
  ${this.defaultSlot&&J`<div class="pkt-card__content" ${ot(this.defaultSlot)}></div>`}
256
256
  </div>
257
257
  </div>
258
- `}};$n([O({type:String,reflect:!0})],Kt.prototype,"skin",2),$n([O({type:String,reflect:!0})],Kt.prototype,"direction",2),$n([O({type:Object,reflect:!0})],Kt.prototype,"image",2),$n([O({type:String,reflect:!0})],Kt.prototype,"heading",2),$n([O({type:String,reflect:!0})],Kt.prototype,"subheading",2),$n([O({type:Array,reflect:!0})],Kt.prototype,"tags",2),Kt=$n([Gt("pkt-card")],Kt);var Df=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,Mr=(e,t,n,r)=>{for(var i=r>1?void 0:r?yf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Df(t,n,i),i};let nr=class extends Nt{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=Ct(),this.namedSlot=Ct(),this.slotController=new er(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return J`
259
- <div class="${ze(e)}">
258
+ `}};$n([O({type:String,reflect:!0})],Kt.prototype,"skin",2),$n([O({type:String,reflect:!0})],Kt.prototype,"direction",2),$n([O({type:Object,reflect:!0})],Kt.prototype,"image",2),$n([O({type:String,reflect:!0})],Kt.prototype,"heading",2),$n([O({type:String,reflect:!0})],Kt.prototype,"subheading",2),$n([O({type:Array,reflect:!0})],Kt.prototype,"tags",2),Kt=$n([Gt("pkt-card")],Kt);var Df=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,Rr=(e,t,n,r)=>{for(var i=r>1?void 0:r?yf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Df(t,n,i),i};let nr=class extends Nt{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=Ct(),this.namedSlot=Ct(),this.slotController=new er(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return J`
259
+ <div class="${Ge(e)}">
260
260
  <h1 class="pkt-txt-28">${this.string}</h1>
261
261
 
262
262
  <h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
@@ -283,12 +283,12 @@ React keys must be passed directly to JSX without using spread:
283
283
  <ul>
284
284
  ${e.map(t=>J`<li>${t}</li>`)}
285
285
  </ul>
286
- `}doStuff(e){return e.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};Mr([O({type:String})],nr.prototype,"string",2),Mr([O({converter:Bl})],nr.prototype,"strings",2),Mr([O({type:Boolean})],nr.prototype,"darkmode",2),Mr([O({type:Array})],nr.prototype,"_list",2),nr=Mr([Gt("pkt-component")],nr);/**
286
+ `}doStuff(e){return e.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};Rr([O({type:String})],nr.prototype,"string",2),Rr([O({converter:Bl})],nr.prototype,"strings",2),Rr([O({type:Boolean})],nr.prototype,"darkmode",2),Rr([O({type:Array})],nr.prototype,"_list",2),nr=Rr([Gt("pkt-component")],nr);/**
287
287
  * @license
288
288
  * Copyright 2020 Google LLC
289
289
  * SPDX-License-Identifier: BSD-3-Clause
290
290
  */const bf=Symbol.for(""),ss=(e,...t)=>({_$litStatic$:t.reduce((n,r,i)=>n+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
291
- take care to ensure page security.`)})(r)+e[i+1],e[0]),r:bf}),kf="pkt-inputwrapper",wf={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},Cf={forId:{name:"For ID",description:"Id-en til inputfeltet som dette wrapper rundt",type:"string",required:!0},label:{name:"Merkelapp",description:"Merkelapp for inputfeltet",type:"boolean",required:!0,default:"input"},helptext:{name:"Hjelpetekst",description:"Hjelpetekst for inputfeltet",type:"string"},helptextDropdown:{name:"Hjelpetekst i dropdown",description:"Hjelpetekst som vises i ekspanderende felt",type:"string"},helptextDropdownButton:{name:"Tekst i hjelpetekst-knapp",description:"Tekst som vises i knappen for å vise hjelpetekst i dropdown",default:"Les mer <span class='pkt-sr-only'>om inputfeltet</span>",type:"string"},counter:{name:"Teller",description:"Teller for antall tegn i inputfeltet",type:"boolean",default:!1},counterCurrent:{name:"Tellerverdi",description:"Tellerens nåværende verdi",type:"number"},counterMaxLength:{name:"Maks tegn",description:"Maks antall tegn som kan skrives i inputfeltet",type:"number"},optionalTag:{name:"Vise valgfritt-merking",description:"Viser en merking som indikerer at feltet er valgfritt",type:"boolean",default:!1},optionalText:{name:"Valgfritt-tekst",description:"Tekst som vises i valgfritt-merkingen",type:"string",default:"Valgfritt"},requiredTag:{name:"Vise påkrevd-merking",description:"Viser en merking som indikerer at feltet er påkrevd",type:"boolean",default:!1},requiredText:{name:"Påkrevd-tekst",description:"Tekst som vises i påkrevd-merkingen",type:"string",default:"Må fylles ut"},hasError:{name:"Feil",description:"Indikerer at inputfeltet har en feil",type:"boolean",default:!1},errorMessage:{name:"Feilmelding",description:"Feilmelding som vises i tilknytning til inputfeltet",type:"string"},disabled:{name:"Deaktivert",description:"Indikerer at inputfeltet er deaktivert",type:"boolean",default:!1},inline:{name:"Inline",description:"Indikerer at inputfeltet skal flyte sammen med sidens innhold",type:"boolean",default:!1},ariaDescribedby:{name:"aria-describedby",description:"Id-en til elementet som beskriver inputfeltet",type:"string"},hasFieldset:{name:"Har fieldset",description:"Indikerer at inputfeltet er en del av et fieldset",type:"boolean",default:!1},useWrapper:{name:"Bruk wrapper",description:"Indikerer om inputfeltet skal bruke en wrapper",type:"boolean",default:!0}},xt={name:kf,"css-class":"pkt-inputwrapper",events:wf,props:Cf};var xf=Object.defineProperty,_f=Object.getOwnPropertyDescriptor,Le=(e,t,n,r)=>{for(var i=r>1?void 0:r?_f(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&xf(t,n,i),i};let je=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.forId=Tl(),this.label=xt.props.label.default,this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=xt.props.helptextDropdownButton.default,this.counter=xt.props.counter.default,this.counterCurrent=0,this.counterMaxLength=0,this.optionalTag=xt.props.optionalTag.default,this.optionalText=xt.props.optionalText.default,this.requiredTag=xt.props.requiredTag.default,this.requiredText=xt.props.requiredText.default,this.hasError=xt.props.hasError.default,this.errorMessage="",this.disabled=xt.props.disabled.default,this.inline=xt.props.inline.default,this.ariaDescribedby=void 0,this.hasFieldset=xt.props.hasFieldset.default,this.useWrapper=xt.props.useWrapper.default,this.isHelpTextOpen=!1,this.wrapperType=this.useWrapper?ss`fieldset`:this.hasDropdown?ss`div`:ss`label`,this.slotController=new er(this,this.defaultSlot)}render(){const t={"pkt-inputwrapper":!0,"pkt-inputwrapper--error":this.hasError,"pkt-inputwrapper--disabled":this.disabled,"pkt-inputwrapper--inline":this.inline},n={"pkt-tag":!0,"pkt-tag--small":!0,"pkt-tag--thin-text":!0,"pkt-tag--blue-light":this.optionalTag,"pkt-tag--beige":!this.optionalTag&&this.requiredTag},r=this.helptextDropdown!=="",i=()=>{this.dispatchEvent(new CustomEvent("toggleHelpText",{bubbles:!0,detail:{isOpen:!this.isHelpTextOpen}})),this.isHelpTextOpen=!this.isHelpTextOpen},o={"pkt-inputwrapper__helptext":!0,"pkt-inputwrapper__helptext-expandable-open":this.isHelpTextOpen,"pkt-inputwrapper__helptext-expandable-closed":!this.isHelpTextOpen},u={"pkt-inputwrapper__label":!0,"pkt-inputwrapper__fieldset":this.hasFieldset,"pkt-inputwrapper__legend":this.hasFieldset},c=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:re,d=()=>this.optionalTag||this.requiredTag?J`<span class=${ze(n)}
291
+ take care to ensure page security.`)})(r)+e[i+1],e[0]),r:bf}),kf="pkt-inputwrapper",wf={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},Cf={forId:{name:"For ID",description:"Id-en til inputfeltet som dette wrapper rundt",type:"string",required:!0},label:{name:"Merkelapp",description:"Merkelapp for inputfeltet",type:"boolean",required:!0,default:"input"},helptext:{name:"Hjelpetekst",description:"Hjelpetekst for inputfeltet",type:"string"},helptextDropdown:{name:"Hjelpetekst i dropdown",description:"Hjelpetekst som vises i ekspanderende felt",type:"string"},helptextDropdownButton:{name:"Tekst i hjelpetekst-knapp",description:"Tekst som vises i knappen for å vise hjelpetekst i dropdown",default:"Les mer <span class='pkt-sr-only'>om inputfeltet</span>",type:"string"},counter:{name:"Teller",description:"Teller for antall tegn i inputfeltet",type:"boolean",default:!1},counterCurrent:{name:"Tellerverdi",description:"Tellerens nåværende verdi",type:"number"},counterMaxLength:{name:"Maks tegn",description:"Maks antall tegn som kan skrives i inputfeltet",type:"number"},optionalTag:{name:"Vise valgfritt-merking",description:"Viser en merking som indikerer at feltet er valgfritt",type:"boolean",default:!1},optionalText:{name:"Valgfritt-tekst",description:"Tekst som vises i valgfritt-merkingen",type:"string",default:"Valgfritt"},requiredTag:{name:"Vise påkrevd-merking",description:"Viser en merking som indikerer at feltet er påkrevd",type:"boolean",default:!1},requiredText:{name:"Påkrevd-tekst",description:"Tekst som vises i påkrevd-merkingen",type:"string",default:"Må fylles ut"},hasError:{name:"Feil",description:"Indikerer at inputfeltet har en feil",type:"boolean",default:!1},errorMessage:{name:"Feilmelding",description:"Feilmelding som vises i tilknytning til inputfeltet",type:"string"},disabled:{name:"Deaktivert",description:"Indikerer at inputfeltet er deaktivert",type:"boolean",default:!1},inline:{name:"Inline",description:"Indikerer at inputfeltet skal flyte sammen med sidens innhold",type:"boolean",default:!1},ariaDescribedby:{name:"aria-describedby",description:"Id-en til elementet som beskriver inputfeltet",type:"string"},hasFieldset:{name:"Har fieldset",description:"Indikerer at inputfeltet er en del av et fieldset",type:"boolean",default:!1},useWrapper:{name:"Bruk wrapper",description:"Indikerer om inputfeltet skal bruke en wrapper",type:"boolean",default:!0}},xt={name:kf,"css-class":"pkt-inputwrapper",events:wf,props:Cf};var xf=Object.defineProperty,_f=Object.getOwnPropertyDescriptor,Le=(e,t,n,r)=>{for(var i=r>1?void 0:r?_f(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&xf(t,n,i),i};let je=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.forId=Tl(),this.label=xt.props.label.default,this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=xt.props.helptextDropdownButton.default,this.counter=xt.props.counter.default,this.counterCurrent=0,this.counterMaxLength=0,this.optionalTag=xt.props.optionalTag.default,this.optionalText=xt.props.optionalText.default,this.requiredTag=xt.props.requiredTag.default,this.requiredText=xt.props.requiredText.default,this.hasError=xt.props.hasError.default,this.errorMessage="",this.disabled=xt.props.disabled.default,this.inline=xt.props.inline.default,this.ariaDescribedby=void 0,this.hasFieldset=xt.props.hasFieldset.default,this.useWrapper=xt.props.useWrapper.default,this.isHelpTextOpen=!1,this.wrapperType=this.useWrapper?ss`fieldset`:this.hasDropdown?ss`div`:ss`label`,this.slotController=new er(this,this.defaultSlot)}render(){const t={"pkt-inputwrapper":!0,"pkt-inputwrapper--error":this.hasError,"pkt-inputwrapper--disabled":this.disabled,"pkt-inputwrapper--inline":this.inline},n={"pkt-tag":!0,"pkt-tag--small":!0,"pkt-tag--thin-text":!0,"pkt-tag--blue-light":this.optionalTag,"pkt-tag--beige":!this.optionalTag&&this.requiredTag},r=this.helptextDropdown!=="",i=()=>{this.dispatchEvent(new CustomEvent("toggleHelpText",{bubbles:!0,detail:{isOpen:!this.isHelpTextOpen}})),this.isHelpTextOpen=!this.isHelpTextOpen},o={"pkt-inputwrapper__helptext":!0,"pkt-inputwrapper__helptext-expandable-open":this.isHelpTextOpen,"pkt-inputwrapper__helptext-expandable-closed":!this.isHelpTextOpen},u={"pkt-inputwrapper__label":!0,"pkt-inputwrapper__fieldset":this.hasFieldset,"pkt-inputwrapper__legend":this.hasFieldset},c=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:re,d=()=>this.optionalTag||this.requiredTag?J`<span class=${Ge(n)}
292
292
  >${this.optionalTag?this.optionalText:this.requiredTag?this.requiredText:re}</span
293
293
  >`:re,h=()=>this.useWrapper?this.hasFieldset?J`<legend class="pkt-inputwrapper__legend" id="${this.forId}-label">
294
294
  ${this.label} ${d()}
@@ -309,7 +309,7 @@ React keys must be passed directly to JSX without using spread:
309
309
  ></pkt-icon>
310
310
  <span class="pkt-btn__text">${ja(this.helptextDropdownButton)}</span>
311
311
  </button>
312
- <div class="${ze(o)}">
312
+ <div class="${Ge(o)}">
313
313
  ${ja(this.helptextDropdown)}
314
314
  </div>
315
315
  ${this.hasFieldset?re:J`<label
@@ -331,23 +331,23 @@ React keys must be passed directly to JSX without using spread:
331
331
  ${h()} ${g()}
332
332
  <div class="pkt-contents" ${ot(this.defaultSlot)}></div>
333
333
  ${v()} ${D()}
334
- `,k=()=>this.hasFieldset?J`<fieldset class=${ze(u)} aria-describedby="${c}">
334
+ `,k=()=>this.hasFieldset?J`<fieldset class=${Ge(u)} aria-describedby="${c}">
335
335
  ${b()}
336
- </fieldset>`:r?J`<div class=${ze(u)} aria-describedby="${c}">
336
+ </fieldset>`:r?J`<div class=${Ge(u)} aria-describedby="${c}">
337
337
  ${b()}
338
338
  </div>`:J`<label
339
- class=${ze(u)}
339
+ class=${Ge(u)}
340
340
  for="${this.forId}"
341
341
  aria-describedby="${c}"
342
342
  >
343
343
  ${b()}
344
- </label>`;return J`<div class=${ze(t)}>${k()}</div> `}};Le([O({type:String,reflect:!0})],je.prototype,"forId",2),Le([O({type:String,reflect:!0})],je.prototype,"label",2),Le([O({type:String,reflect:!0})],je.prototype,"helptext",2),Le([O({type:String,reflect:!0})],je.prototype,"helptextDropdown",2),Le([O({type:String,reflect:!0})],je.prototype,"helptextDropdownButton",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"counter",2),Le([O({type:Number,reflect:!0})],je.prototype,"counterCurrent",2),Le([O({type:Number,reflect:!0})],je.prototype,"counterMaxLength",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"optionalTag",2),Le([O({type:String,reflect:!0})],je.prototype,"optionalText",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"requiredTag",2),Le([O({type:String,reflect:!0})],je.prototype,"requiredText",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"hasError",2),Le([O({type:String,reflect:!0})],je.prototype,"errorMessage",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"disabled",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"inline",2),Le([O({type:String,reflect:!0})],je.prototype,"ariaDescribedby",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"hasFieldset",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"useWrapper",2),Le([O({reflect:!1,type:Boolean})],je.prototype,"isHelpTextOpen",2),je=Le([Gt("pkt-input-wrapper")],je);function Ia(e){return Lr(e,{weekStartsOn:1})}function Ml(e){const t=st(e),n=t.getFullYear(),r=En(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ia(r),o=En(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const u=Ia(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function Rl(e){const t=st(e);return t.setHours(0,0,0,0),t}function ql(e){const t=st(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Sf(e,t){const n=Rl(e),r=Rl(t),i=+n-ql(n),o=+r-ql(r);return Math.round((i-o)/qh)}function Ef(e){const t=Ml(e),n=En(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ia(n)}function Ff(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Af(e){if(!Ff(e)&&typeof e!="number")return!1;const t=st(e);return!isNaN(Number(t))}function $f(e){const t=st(e),n=En(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Tf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Bf=(e,t,n)=>{let r;const i=Tf[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function os(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Nf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lf={date:os({formats:Nf,defaultWidth:"full"}),time:os({formats:jf,defaultWidth:"full"}),dateTime:os({formats:Pf,defaultWidth:"full"})},Of={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},If=(e,t,n,r)=>Of[e];function Rr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):u;i=e.formattingValues[c]||e.formattingValues[u]}else{const u=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[u]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Mf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Rf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Hf={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Uf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zf=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Vf={ordinalNumber:zf,era:Rr({values:Mf,defaultWidth:"wide"}),quarter:Rr({values:Rf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Rr({values:qf,defaultWidth:"wide"}),day:Rr({values:Hf,defaultWidth:"wide"}),dayPeriod:Rr({values:Uf,defaultWidth:"wide",formattingValues:Wf,defaultFormattingWidth:"wide"})};function qr(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const u=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?Yf(c,v=>v.test(u)):Gf(c,v=>v.test(u));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const g=t.slice(u.length);return{value:h,rest:g}}}function Gf(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Yf(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Kf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let u=e.valueCallback?e.valueCallback(o[0]):o[0];u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(i.length);return{value:u,rest:c}}}const Jf=/^(\d+)(th|st|nd|rd)?/i,Xf=/\d+/i,Qf={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zf={any:[/^b/i,/^(a|c)/i]},em={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tm={any:[/1/i,/2/i,/3/i,/4/i]},nm={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},rm={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},am={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},im={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sm={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},om={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lm={ordinalNumber:Kf({matchPattern:Jf,parsePattern:Xf,valueCallback:e=>parseInt(e,10)}),era:qr({matchPatterns:Qf,defaultMatchWidth:"wide",parsePatterns:Zf,defaultParseWidth:"any"}),quarter:qr({matchPatterns:em,defaultMatchWidth:"wide",parsePatterns:tm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qr({matchPatterns:nm,defaultMatchWidth:"wide",parsePatterns:rm,defaultParseWidth:"any"}),day:qr({matchPatterns:am,defaultMatchWidth:"wide",parsePatterns:im,defaultParseWidth:"any"}),dayPeriod:qr({matchPatterns:sm,defaultMatchWidth:"any",parsePatterns:om,defaultParseWidth:"any"})},um={code:"en-US",formatDistance:Bf,formatLong:Lf,formatRelative:If,localize:Vf,match:lm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cm(e){const t=st(e);return Sf(t,$f(t))+1}function pm(e){const t=st(e),n=+Ia(t)-+Ef(t);return Math.round(n/jl)+1}function Ce(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const cn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ce(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ce(n+1,2)},d(e,t){return Ce(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ce(e.getHours()%12||12,t.length)},H(e,t){return Ce(e.getHours(),t.length)},m(e,t){return Ce(e.getMinutes(),t.length)},s(e,t){return Ce(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ce(i,t.length)}},rr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hl={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return cn.y(e,t)},Y:function(e,t,n,r){const i=Pl(e,r),o=i>0?i:1-i;if(t==="YY"){const u=o%100;return Ce(u,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ce(o,t.length)},R:function(e,t){const n=Ml(e);return Ce(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ce(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return cn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=rs(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ce(i,t.length)},I:function(e,t,n){const r=pm(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ce(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):cn.d(e,t)},D:function(e,t,n){const r=cm(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ce(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ce(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ce(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ce(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=rr.noon:r===0?i=rr.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=rr.evening:r>=12?i=rr.afternoon:r>=4?i=rr.morning:i=rr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return cn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):cn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):cn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):cn.s(e,t)},S:function(e,t){return cn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Wl(r);case"XXXX":case"XX":return Tn(r);case"XXXXX":case"XXX":default:return Tn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Wl(r);case"xxxx":case"xx":return Tn(r);case"xxxxx":case"xxx":default:return Tn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ul(r,":");case"OOOO":default:return"GMT"+Tn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ul(r,":");case"zzzz":default:return"GMT"+Tn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ce(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ce(r,t.length)}};function Ul(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ce(o,2)}function Wl(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):Tn(e,t)}function Tn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ce(Math.trunc(r/60),2),o=Ce(r%60,2);return n+i+t+o}const zl=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Vl=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},dm=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return zl(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",zl(r,t)).replace("{{time}}",Vl(i,t))},hm={p:Vl,P:dm},fm=/^D+$/,mm=/^Y+$/,gm=["D","DD","YY","YYYY"];function vm(e){return fm.test(e)}function Dm(e){return mm.test(e)}function ym(e,t,n){const r=bm(e,t,n);if(console.warn(r),gm.includes(e))throw new RangeError(r)}function bm(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const km=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cm=/^'([^]*?)'?$/,xm=/''/g,_m=/[a-zA-Z]/;function Sm(e,t,n){var r,i,o,u;const c=La(),d=c.locale??um,h=c.firstWeekContainsDate??((i=(r=c.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??1,g=c.weekStartsOn??((u=(o=c.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??0,v=st(e);if(!Af(v))throw new RangeError("Invalid time value");let D=t.match(wm).map(k=>{const x=k[0];if(x==="p"||x==="P"){const C=hm[x];return C(k,d.formatLong)}return k}).join("").match(km).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const x=k[0];if(x==="'")return{isToken:!1,value:Em(k)};if(Hl[x])return{isToken:!0,value:k};if(x.match(_m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:k}});d.localize.preprocessor&&(D=d.localize.preprocessor(v,D));const b={firstWeekContainsDate:h,weekStartsOn:g,locale:d};return D.map(k=>{if(!k.isToken)return k.value;const x=k.value;(Dm(x)||vm(x))&&ym(x,t,String(e));const C=Hl[x[0]];return C(v,x,d.localize,b)}).join("")}function Em(e){const t=e.match(Cm);return t?t[1].replace(xm,"'"):e}/**
344
+ </label>`;return J`<div class=${Ge(t)}>${k()}</div> `}};Le([O({type:String,reflect:!0})],je.prototype,"forId",2),Le([O({type:String,reflect:!0})],je.prototype,"label",2),Le([O({type:String,reflect:!0})],je.prototype,"helptext",2),Le([O({type:String,reflect:!0})],je.prototype,"helptextDropdown",2),Le([O({type:String,reflect:!0})],je.prototype,"helptextDropdownButton",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"counter",2),Le([O({type:Number,reflect:!0})],je.prototype,"counterCurrent",2),Le([O({type:Number,reflect:!0})],je.prototype,"counterMaxLength",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"optionalTag",2),Le([O({type:String,reflect:!0})],je.prototype,"optionalText",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"requiredTag",2),Le([O({type:String,reflect:!0})],je.prototype,"requiredText",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"hasError",2),Le([O({type:String,reflect:!0})],je.prototype,"errorMessage",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"disabled",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"inline",2),Le([O({type:String,reflect:!0})],je.prototype,"ariaDescribedby",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"hasFieldset",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"useWrapper",2),Le([O({reflect:!1,type:Boolean})],je.prototype,"isHelpTextOpen",2),je=Le([Gt("pkt-input-wrapper")],je);function Ia(e){return Or(e,{weekStartsOn:1})}function Ml(e){const t=st(e),n=t.getFullYear(),r=En(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ia(r),o=En(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const u=Ia(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function Rl(e){const t=st(e);return t.setHours(0,0,0,0),t}function ql(e){const t=st(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Sf(e,t){const n=Rl(e),r=Rl(t),i=+n-ql(n),o=+r-ql(r);return Math.round((i-o)/qh)}function Ef(e){const t=Ml(e),n=En(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ia(n)}function Ff(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Af(e){if(!Ff(e)&&typeof e!="number")return!1;const t=st(e);return!isNaN(Number(t))}function $f(e){const t=st(e),n=En(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Tf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Bf=(e,t,n)=>{let r;const i=Tf[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function os(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Nf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lf={date:os({formats:Nf,defaultWidth:"full"}),time:os({formats:jf,defaultWidth:"full"}),dateTime:os({formats:Pf,defaultWidth:"full"})},Of={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},If=(e,t,n,r)=>Of[e];function qr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):u;i=e.formattingValues[c]||e.formattingValues[u]}else{const u=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[u]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Mf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Rf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Hf={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Uf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zf=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Vf={ordinalNumber:zf,era:qr({values:Mf,defaultWidth:"wide"}),quarter:qr({values:Rf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qr({values:qf,defaultWidth:"wide"}),day:qr({values:Hf,defaultWidth:"wide"}),dayPeriod:qr({values:Uf,defaultWidth:"wide",formattingValues:Wf,defaultFormattingWidth:"wide"})};function Hr(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const u=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?Yf(c,v=>v.test(u)):Gf(c,v=>v.test(u));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const g=t.slice(u.length);return{value:h,rest:g}}}function Gf(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Yf(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Kf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let u=e.valueCallback?e.valueCallback(o[0]):o[0];u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(i.length);return{value:u,rest:c}}}const Jf=/^(\d+)(th|st|nd|rd)?/i,Xf=/\d+/i,Qf={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zf={any:[/^b/i,/^(a|c)/i]},em={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tm={any:[/1/i,/2/i,/3/i,/4/i]},nm={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},rm={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},am={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},im={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sm={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},om={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lm={ordinalNumber:Kf({matchPattern:Jf,parsePattern:Xf,valueCallback:e=>parseInt(e,10)}),era:Hr({matchPatterns:Qf,defaultMatchWidth:"wide",parsePatterns:Zf,defaultParseWidth:"any"}),quarter:Hr({matchPatterns:em,defaultMatchWidth:"wide",parsePatterns:tm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Hr({matchPatterns:nm,defaultMatchWidth:"wide",parsePatterns:rm,defaultParseWidth:"any"}),day:Hr({matchPatterns:am,defaultMatchWidth:"wide",parsePatterns:im,defaultParseWidth:"any"}),dayPeriod:Hr({matchPatterns:sm,defaultMatchWidth:"any",parsePatterns:om,defaultParseWidth:"any"})},um={code:"en-US",formatDistance:Bf,formatLong:Lf,formatRelative:If,localize:Vf,match:lm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cm(e){const t=st(e);return Sf(t,$f(t))+1}function pm(e){const t=st(e),n=+Ia(t)-+Ef(t);return Math.round(n/jl)+1}function Ce(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const cn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ce(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ce(n+1,2)},d(e,t){return Ce(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ce(e.getHours()%12||12,t.length)},H(e,t){return Ce(e.getHours(),t.length)},m(e,t){return Ce(e.getMinutes(),t.length)},s(e,t){return Ce(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ce(i,t.length)}},rr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hl={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return cn.y(e,t)},Y:function(e,t,n,r){const i=Pl(e,r),o=i>0?i:1-i;if(t==="YY"){const u=o%100;return Ce(u,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ce(o,t.length)},R:function(e,t){const n=Ml(e);return Ce(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ce(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return cn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=rs(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ce(i,t.length)},I:function(e,t,n){const r=pm(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ce(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):cn.d(e,t)},D:function(e,t,n){const r=cm(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ce(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ce(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ce(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ce(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=rr.noon:r===0?i=rr.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=rr.evening:r>=12?i=rr.afternoon:r>=4?i=rr.morning:i=rr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return cn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):cn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):cn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):cn.s(e,t)},S:function(e,t){return cn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Wl(r);case"XXXX":case"XX":return Tn(r);case"XXXXX":case"XXX":default:return Tn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Wl(r);case"xxxx":case"xx":return Tn(r);case"xxxxx":case"xxx":default:return Tn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ul(r,":");case"OOOO":default:return"GMT"+Tn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ul(r,":");case"zzzz":default:return"GMT"+Tn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ce(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ce(r,t.length)}};function Ul(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ce(o,2)}function Wl(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):Tn(e,t)}function Tn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ce(Math.trunc(r/60),2),o=Ce(r%60,2);return n+i+t+o}const zl=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Vl=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},dm=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return zl(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",zl(r,t)).replace("{{time}}",Vl(i,t))},hm={p:Vl,P:dm},fm=/^D+$/,mm=/^Y+$/,gm=["D","DD","YY","YYYY"];function vm(e){return fm.test(e)}function Dm(e){return mm.test(e)}function ym(e,t,n){const r=bm(e,t,n);if(console.warn(r),gm.includes(e))throw new RangeError(r)}function bm(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const km=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cm=/^'([^]*?)'?$/,xm=/''/g,_m=/[a-zA-Z]/;function Sm(e,t,n){var r,i,o,u;const c=La(),d=c.locale??um,h=c.firstWeekContainsDate??((i=(r=c.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??1,g=c.weekStartsOn??((u=(o=c.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??0,v=st(e);if(!Af(v))throw new RangeError("Invalid time value");let D=t.match(wm).map(k=>{const x=k[0];if(x==="p"||x==="P"){const C=hm[x];return C(k,d.formatLong)}return k}).join("").match(km).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const x=k[0];if(x==="'")return{isToken:!1,value:Em(k)};if(Hl[x])return{isToken:!0,value:k};if(x.match(_m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:k}});d.localize.preprocessor&&(D=d.localize.preprocessor(v,D));const b={firstWeekContainsDate:h,weekStartsOn:g,locale:d};return D.map(k=>{if(!k.isToken)return k.value;const x=k.value;(Dm(x)||vm(x))&&ym(x,t,String(e));const C=Hl[x[0]];return C(v,x,d.localize,b)}).join("")}function Em(e){const t=e.match(Cm);return t?t[1].replace(xm,"'"):e}/**
345
345
  * @license
346
346
  * Copyright 2017 Google LLC
347
347
  * SPDX-License-Identifier: BSD-3-Clause
348
- */const Gl=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},Fm=jr(class extends Ta{constructor(e){if(super(e),e.type!==$a.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,n){let r;n===void 0?n=t:t!==void 0&&(r=t);const i=[],o=[];let u=0;for(const c of e)i[u]=r?r(c,u):u,o[u]=n(c,u),u++;return{values:o,keys:i}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,r]){const i=ef(e),{values:o,keys:u}=this.dt(t,n,r);if(!Array.isArray(i))return this.ut=u,o;const c=this.ut??(this.ut=[]),d=[];let h,g,v=0,D=i.length-1,b=0,k=o.length-1;for(;v<=D&&b<=k;)if(i[v]===null)v++;else if(i[D]===null)D--;else if(c[v]===u[b])d[b]=An(i[v],o[b]),v++,b++;else if(c[D]===u[k])d[k]=An(i[D],o[k]),D--,k--;else if(c[v]===u[k])d[k]=An(i[v],o[k]),Or(e,d[k+1],i[v]),v++,k--;else if(c[D]===u[b])d[b]=An(i[D],o[b]),Or(e,i[v],i[D]),D--,b++;else if(h===void 0&&(h=Gl(u,b,k),g=Gl(c,v,D)),h.has(c[v]))if(h.has(c[D])){const x=g.get(u[b]),C=x!==void 0?i[x]:null;if(C===null){const T=Or(e,i[v]);An(T,o[b]),d[b]=T}else d[b]=An(C,o[b]),Or(e,i[v],C),i[x]=null;b++}else as(i[D]),D--;else as(i[v]),v++;for(;b<=k;){const x=Or(e,d[k+1]);An(x,o[b]),d[b++]=x}for(;v<=D;){const x=i[v++];x!==null&&as(x)}return this.ut=u,Zh(e,d),Vt}}),Am="pkt-datepicker",$m=!0,Tm={name:{type:"string",name:"Navn",description:"Navn som sendes brukes i skjema ved innsending"},label:{type:"string",name:"Etikett",description:"Tekst som vises over datovelgeren"},helptext:{type:"string",name:"Hjelpetekst",description:"Hjelpetekst som vises over datovelgeren"},helptextDropdown:{type:"string",name:"Utvidet hjelpetekst",description:"Hjelpetekst som vises i en lukket boks man kan åpne"},helptextDropdownButton:{type:"string",name:"Knappetekst for hjelpetekst",description:"Tekst som vises på knappen for å åpne/lukke utvidet hjelpetekst",default:"Les mer"},dateformat:{name:"Datoformat",description:"Datoformat for valgte datoer i flervalgsmodus",type:"string",default:"dd.MM.yyyy"},currentmonth:{name:"Nåværende måned",type:"ISOdatestring",description:"Måneden som skal vises i datovelgeren"},value:{name:"Verdi",type:"ISOdatestring",variant:"multiple",reflect:!0,description:"Kommaseparert liste av valgte datoer"},excludeweekdays:{name:"Utelat ukedager",type:"string",description:"Kommaseparert liste over ukedager (1-7) som skal ekskluderes"},excludedates:{name:"Utelat datoer",type:"ISOdatestring",variant:"multiple",description:"Kommaseparert liste over datoer som skal ekskluderes"},min:{name:"Tidligst tillatt",type:"ISOdatestring",default:null,description:"Første tillate dato i datovelgeren"},max:{name:"Senest tillatt",type:"ISOdatestring",default:null,description:"Siste tillate dato i datovelgeren"},weeknumbers:{name:"Vis ukenummer",type:"boolean",reflect:!0,default:!1,description:"Vis ukedager i datovelgerens kalender"},withcontrols:{name:"Med kontroller",type:"boolean",reflect:!0,default:!1,description:"Vis avanserte velgere for måned og år"},multiple:{name:"Flervalg",type:"boolean",reflect:!0,default:!1,description:"Tillat valg av flere enn én dato i samme velger"},maxlength:{name:"Maks antall",description:"Maks valgte datoer i flervalgsmodus",type:"number",default:4},range:{name:"Datotidsrom",type:"boolean",reflect:!0,default:!1,description:"Tillat å velge et tidsrom mellom to datoer i samme velger"},hasError:{type:"boolean",name:"Feil",description:"Viser feiltilstand for datovelgeren"},errorMessage:{type:"string",name:"Feilmelding",description:"Tekst som vises under datovelgeren ved feiltilstand"},disabled:{type:"boolean",name:"Deaktivert",default:!1,reflect:!0,description:"Er datovelgeren deaktivert?"},fullwidth:{type:"boolean",name:"Full bredde",default:!1,reflect:!0,description:"Skal datovelgeren ta opp hele bredden?"},required:{type:"boolean",name:"Påkrevd",default:!1,reflect:!0,description:"Er datovelgeren påkrevd?"},requiredTag:{type:"boolean",name:"Vise påkrevd-merking",default:!1,description:"Viser en merking som indikerer at datovelgeren er påkrevd"},requiredText:{type:"string",name:"Påkrevd-tekst",default:"Må fylles ut",description:"Tekst som vises i påkrevd-merkingen"},optionalTag:{type:"boolean",name:"Vise valgfritt-merking",default:!1,description:"Viser en merking som indikerer at datovelgeren er valgfri"},optionalText:{type:"string",name:"Valgfritt-tekst",default:"Valgfritt",description:"Tekst som vises i valgfritt-merkingen"},id:{type:"string",name:"ID",description:"Unik identifikasjon for datovelgeren"}},Bm={change:{description:"Returnerer kommaseparert liste av valgte datoer i ISO-format"},"value-changed":{description:"Returnerer en <code>array</code> med valgte datoer i ISO-format"},toggleHelpText:{description:"Returnerer <code>event.detail { isOpen: true }</code> eller <code>event.detail { isOpen: false }</code> når hjelpeteksten åpnes eller lukkes"}},Jt={name:Am,"css-class":"pkt-datepicker",isElement:$m,props:Tm,events:Bm};var Nm=Object.defineProperty,jm=Object.getOwnPropertyDescriptor,Ve=(e,t,n,r)=>{for(var i=r>1?void 0:r?jm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Nm(t,n,i),i};const Yl=e=>new Promise(t=>setTimeout(t,e));let Ie=class extends Xe{constructor(){super(...arguments),this.value="",this._value=this.value?Array.isArray(this.value)?this.value:this.value.split(","):[],this.label="Datovelger",this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Jt.props.helptextDropdownButton.default,this.dateformat=Jt.props.dateformat.default,this.multiple=Jt.props.multiple.default,this.maxlength=Jt.props.maxlength.default,this.range=Jt.props.range.default,this.weeknumbers=Jt.props.weeknumbers.default,this.withcontrols=Jt.props.withcontrols.default,this.fullwidth=!1,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=this.formatISODate(new Date),this.calendarOpen=!1,this.inputRef=Ct(),this.inputRefTo=Ct(),this.btnRef=Ct(),this.calRef=Ct(),this.popupRef=Ct(),this.inputClasses={"pkt-input":!0,"pkt-datepicker__input":!0,"pkt-input--fullwidth":this.fullwidth},this.buttonClasses={"pkt-input-icon":!0,"pkt-btn":!0,"pkt-btn--icon-only":!0,"pkt-btn--tertiary":!0},this.fromISOToDate=e=>{if(!e)return null;const t=new Date(e);return t.setHours(12,0,0,0),isNaN(t.getTime())?null:t},this.fromISOtoLocal=e=>{const t=new Date(e);return isNaN(t.getTime())?"":Sm(t,this.dateformat)},this.massageDates=e=>{const t=e.map(n=>n??void 0);return this.multiple?t:this.range?t.slice(0,2):[t[0]]},this.addToSelected=e=>{const t=e.target,n=this.min?new Date(this.min):null,r=this.max?new Date(this.max):null,i=new Date(t.value.split(",")[0]);i.setHours(12,0,0,0),i&&!isNaN(i.getTime())&&(!n||i>=n)&&(!r||i<=r)&&this.calRef.value&&this.calRef.value.handleDateSelect(i),t.value="",this.requestUpdate("value")}}async connectedCallback(){super.connectedCallback(),document&&document.body.addEventListener("click",e=>{var t,n;(t=this.inputRef)!=null&&t.value&&(n=this.btnRef)!=null&&n.value&&!this.inputRef.value.contains(e.target)&&!(this.inputRefTo.value&&this.inputRefTo.value.contains(e.target))&&!this.btnRef.value.contains(e.target)&&!e.target.closest(".pkt-calendar-popup")&&this.hideCalendar()}),this.value.length&&this._value.length===0&&(this._value=Array.isArray(this.value)?this.value:this.value.split(",")),this.min=this.min||Jt.props.min.default,this.max=this.max||Jt.props.max.default,typeof this.excludedates=="string"&&(this.excludedates=this.excludedates.split(",")),typeof this.excludeweekdays=="string"&&(this.excludeweekdays=this.excludeweekdays.split(",")),(this.multiple||this.range)&&this.name&&!this.name.endsWith("[]")&&(this.name=this.name+"[]"),this.calendarOpen&&(await Yl(20),this.handleCalendarPosition())}disconnectedCallback(){super.disconnectedCallback(),document&&document.body.removeEventListener("click",e=>{var t,n;(t=this.inputRef)!=null&&t.value&&(n=this.btnRef)!=null&&n.value&&!this.inputRef.value.contains(e.target)&&!this.btnRef.value.contains(e.target)&&this.hideCalendar()})}attributeChangedCallback(e,t,n){var r,i;if(super.attributeChangedCallback(e,t,n),e==="value"){if(this.value===""||this.value.length===0)this._value=[];else if(this.value.length&&this._value.length===0){const o=Array.isArray(this.value)?this.value:this.value.split(",");for(const u of o)u&&!this._value.includes(u)&&((i=(r=this.calRef)==null?void 0:r.value)==null||i.handleDateSelect(this.fromISOToDate(u)))}this.requestUpdate("value")}e==="excludedates"&&typeof this.excludedates=="string"&&(this.excludedates=(n==null?void 0:n.split(","))??[]),e==="excludeweekdays"&&typeof this.excludeweekdays=="string"&&(this.excludeweekdays=(n==null?void 0:n.split(","))??[])}updated(e){if(super.updated(e),e.has("value")){if(this.range&&this._value.length===1)return;this.onInput(this.value)}}formatISODate(e){return e.toISOString().split("T")[0]}renderInput(){return J`
348
+ */const Gl=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},Fm=Pr(class extends Ba{constructor(e){if(super(e),e.type!==Ta.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,n){let r;n===void 0?n=t:t!==void 0&&(r=t);const i=[],o=[];let u=0;for(const c of e)i[u]=r?r(c,u):u,o[u]=n(c,u),u++;return{values:o,keys:i}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,r]){const i=ef(e),{values:o,keys:u}=this.dt(t,n,r);if(!Array.isArray(i))return this.ut=u,o;const c=this.ut??(this.ut=[]),d=[];let h,g,v=0,D=i.length-1,b=0,k=o.length-1;for(;v<=D&&b<=k;)if(i[v]===null)v++;else if(i[D]===null)D--;else if(c[v]===u[b])d[b]=An(i[v],o[b]),v++,b++;else if(c[D]===u[k])d[k]=An(i[D],o[k]),D--,k--;else if(c[v]===u[k])d[k]=An(i[v],o[k]),Ir(e,d[k+1],i[v]),v++,k--;else if(c[D]===u[b])d[b]=An(i[D],o[b]),Ir(e,i[v],i[D]),D--,b++;else if(h===void 0&&(h=Gl(u,b,k),g=Gl(c,v,D)),h.has(c[v]))if(h.has(c[D])){const x=g.get(u[b]),C=x!==void 0?i[x]:null;if(C===null){const T=Ir(e,i[v]);An(T,o[b]),d[b]=T}else d[b]=An(C,o[b]),Ir(e,i[v],C),i[x]=null;b++}else as(i[D]),D--;else as(i[v]),v++;for(;b<=k;){const x=Ir(e,d[k+1]);An(x,o[b]),d[b++]=x}for(;v<=D;){const x=i[v++];x!==null&&as(x)}return this.ut=u,Zh(e,d),Vt}}),Am="pkt-datepicker",$m=!0,Tm={name:{type:"string",name:"Navn",description:"Navn som sendes brukes i skjema ved innsending"},label:{type:"string",name:"Etikett",description:"Tekst som vises over datovelgeren"},helptext:{type:"string",name:"Hjelpetekst",description:"Hjelpetekst som vises over datovelgeren"},helptextDropdown:{type:"string",name:"Utvidet hjelpetekst",description:"Hjelpetekst som vises i en lukket boks man kan åpne"},helptextDropdownButton:{type:"string",name:"Knappetekst for hjelpetekst",description:"Tekst som vises på knappen for å åpne/lukke utvidet hjelpetekst",default:"Les mer"},dateformat:{name:"Datoformat",description:"Datoformat for valgte datoer i flervalgsmodus",type:"string",default:"dd.MM.yyyy"},currentmonth:{name:"Nåværende måned",type:"ISOdatestring",description:"Måneden som skal vises i datovelgeren"},value:{name:"Verdi",type:"ISOdatestring",variant:"multiple",reflect:!0,description:"Kommaseparert liste av valgte datoer"},excludeweekdays:{name:"Utelat ukedager",type:"string",description:"Kommaseparert liste over ukedager (1-7) som skal ekskluderes"},excludedates:{name:"Utelat datoer",type:"ISOdatestring",variant:"multiple",description:"Kommaseparert liste over datoer som skal ekskluderes"},min:{name:"Tidligst tillatt",type:"ISOdatestring",default:null,description:"Første tillate dato i datovelgeren"},max:{name:"Senest tillatt",type:"ISOdatestring",default:null,description:"Siste tillate dato i datovelgeren"},weeknumbers:{name:"Vis ukenummer",type:"boolean",reflect:!0,default:!1,description:"Vis ukedager i datovelgerens kalender"},withcontrols:{name:"Med kontroller",type:"boolean",reflect:!0,default:!1,description:"Vis avanserte velgere for måned og år"},multiple:{name:"Flervalg",type:"boolean",reflect:!0,default:!1,description:"Tillat valg av flere enn én dato i samme velger"},maxlength:{name:"Maks antall",description:"Maks valgte datoer i flervalgsmodus",type:"number",default:4},range:{name:"Datotidsrom",type:"boolean",reflect:!0,default:!1,description:"Tillat å velge et tidsrom mellom to datoer i samme velger"},hasError:{type:"boolean",name:"Feil",description:"Viser feiltilstand for datovelgeren"},errorMessage:{type:"string",name:"Feilmelding",description:"Tekst som vises under datovelgeren ved feiltilstand"},disabled:{type:"boolean",name:"Deaktivert",default:!1,reflect:!0,description:"Er datovelgeren deaktivert?"},fullwidth:{type:"boolean",name:"Full bredde",default:!1,reflect:!0,description:"Skal datovelgeren ta opp hele bredden?"},required:{type:"boolean",name:"Påkrevd",default:!1,reflect:!0,description:"Er datovelgeren påkrevd?"},requiredTag:{type:"boolean",name:"Vise påkrevd-merking",default:!1,description:"Viser en merking som indikerer at datovelgeren er påkrevd"},requiredText:{type:"string",name:"Påkrevd-tekst",default:"Må fylles ut",description:"Tekst som vises i påkrevd-merkingen"},optionalTag:{type:"boolean",name:"Vise valgfritt-merking",default:!1,description:"Viser en merking som indikerer at datovelgeren er valgfri"},optionalText:{type:"string",name:"Valgfritt-tekst",default:"Valgfritt",description:"Tekst som vises i valgfritt-merkingen"},id:{type:"string",name:"ID",description:"Unik identifikasjon for datovelgeren"}},Bm={change:{description:"Returnerer kommaseparert liste av valgte datoer i ISO-format"},"value-changed":{description:"Returnerer en <code>array</code> med valgte datoer i ISO-format"},toggleHelpText:{description:"Returnerer <code>event.detail { isOpen: true }</code> eller <code>event.detail { isOpen: false }</code> når hjelpeteksten åpnes eller lukkes"}},Jt={name:Am,"css-class":"pkt-datepicker",isElement:$m,props:Tm,events:Bm};var Nm=Object.defineProperty,jm=Object.getOwnPropertyDescriptor,Ye=(e,t,n,r)=>{for(var i=r>1?void 0:r?jm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Nm(t,n,i),i};const Yl=e=>new Promise(t=>setTimeout(t,e));let Ie=class extends Ve{constructor(){super(...arguments),this.value="",this._value=this.value?Array.isArray(this.value)?this.value:this.value.split(","):[],this.label="Datovelger",this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Jt.props.helptextDropdownButton.default,this.dateformat=Jt.props.dateformat.default,this.multiple=Jt.props.multiple.default,this.maxlength=Jt.props.maxlength.default,this.range=Jt.props.range.default,this.weeknumbers=Jt.props.weeknumbers.default,this.withcontrols=Jt.props.withcontrols.default,this.fullwidth=!1,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=this.formatISODate(new Date),this.calendarOpen=!1,this.inputRef=Ct(),this.inputRefTo=Ct(),this.btnRef=Ct(),this.calRef=Ct(),this.popupRef=Ct(),this.inputClasses={"pkt-input":!0,"pkt-datepicker__input":!0,"pkt-input--fullwidth":this.fullwidth},this.buttonClasses={"pkt-input-icon":!0,"pkt-btn":!0,"pkt-btn--icon-only":!0,"pkt-btn--tertiary":!0},this.fromISOToDate=e=>{if(!e)return null;const t=new Date(e);return t.setHours(12,0,0,0),isNaN(t.getTime())?null:t},this.fromISOtoLocal=e=>{const t=new Date(e);return isNaN(t.getTime())?"":Sm(t,this.dateformat)},this.massageDates=e=>{const t=e.map(n=>n??void 0);return this.multiple?t:this.range?t.slice(0,2):[t[0]]},this.addToSelected=e=>{const t=e.target,n=this.min?new Date(this.min):null,r=this.max?new Date(this.max):null,i=new Date(t.value.split(",")[0]);i.setHours(12,0,0,0),i&&!isNaN(i.getTime())&&(!n||i>=n)&&(!r||i<=r)&&this.calRef.value&&this.calRef.value.handleDateSelect(i),t.value="",this.requestUpdate("value")}}async connectedCallback(){super.connectedCallback(),document&&document.body.addEventListener("click",e=>{var t,n;(t=this.inputRef)!=null&&t.value&&(n=this.btnRef)!=null&&n.value&&!this.inputRef.value.contains(e.target)&&!(this.inputRefTo.value&&this.inputRefTo.value.contains(e.target))&&!this.btnRef.value.contains(e.target)&&!e.target.closest(".pkt-calendar-popup")&&this.hideCalendar()}),this.value.length&&this._value.length===0&&(this._value=Array.isArray(this.value)?this.value:this.value.split(",")),this.min=this.min||Jt.props.min.default,this.max=this.max||Jt.props.max.default,typeof this.excludedates=="string"&&(this.excludedates=this.excludedates.split(",")),typeof this.excludeweekdays=="string"&&(this.excludeweekdays=this.excludeweekdays.split(",")),(this.multiple||this.range)&&this.name&&!this.name.endsWith("[]")&&(this.name=this.name+"[]"),this.calendarOpen&&(await Yl(20),this.handleCalendarPosition())}disconnectedCallback(){super.disconnectedCallback(),document&&document.body.removeEventListener("click",e=>{var t,n;(t=this.inputRef)!=null&&t.value&&(n=this.btnRef)!=null&&n.value&&!this.inputRef.value.contains(e.target)&&!this.btnRef.value.contains(e.target)&&this.hideCalendar()})}attributeChangedCallback(e,t,n){var r,i;if(super.attributeChangedCallback(e,t,n),e==="value"){if(this.value===""||this.value.length===0)this._value=[];else if(this.value.length&&this._value.length===0){const o=Array.isArray(this.value)?this.value:this.value.split(",");for(const u of o)u&&!this._value.includes(u)&&((i=(r=this.calRef)==null?void 0:r.value)==null||i.handleDateSelect(this.fromISOToDate(u)))}}e==="excludedates"&&typeof this.excludedates=="string"&&(this.excludedates=(n==null?void 0:n.split(","))??[]),e==="excludeweekdays"&&typeof this.excludeweekdays=="string"&&(this.excludeweekdays=(n==null?void 0:n.split(","))??[])}firstUpdated(e){super.firstUpdated(e)}updated(e){if(super.updated(e),e.has("value")){if(this.range&&this._value.length===1)return;this.onInput(this.value)}}formatISODate(e){return e.toISOString().split("T")[0]}renderInput(){return J`
349
349
  <input
350
- class="${ze(this.inputClasses)}"
350
+ class="${Ge(this.inputClasses)}"
351
351
  type="date"
352
352
  id="${this.id}-input"
353
353
  name="${this.name}"
@@ -364,7 +364,7 @@ React keys must be passed directly to JSX without using spread:
364
364
  `}renderRangeInput(){return J`
365
365
  <div class="pkt-input-prefix">Fra</div>
366
366
  <input
367
- class=${ze(this.inputClasses)}
367
+ class=${Ge(this.inputClasses)}
368
368
  type="date"
369
369
  id="${this.id}-input"
370
370
  name="${this.name}"
@@ -380,7 +380,7 @@ React keys must be passed directly to JSX without using spread:
380
380
  />
381
381
  <div class="pkt-input-prefix">Til</div>
382
382
  <input
383
- class=${ze(this.inputClasses)}
383
+ class=${Ge(this.inputClasses)}
384
384
  type="date"
385
385
  id="${this.id}-to"
386
386
  name="${this.name}-to"
@@ -396,7 +396,7 @@ React keys must be passed directly to JSX without using spread:
396
396
  />
397
397
  `}renderMultipleInput(){return J`
398
398
  <input
399
- class=${ze(this.inputClasses)}
399
+ class=${Ge(this.inputClasses)}
400
400
  type="date"
401
401
  id="${this.id}-input"
402
402
  name="${this.name}"
@@ -469,7 +469,7 @@ React keys must be passed directly to JSX without using spread:
469
469
  <div class="pkt-input__container">
470
470
  ${this.range?this.renderRangeInput():this.multiple?this.renderMultipleInput():this.renderInput()}
471
471
  <button
472
- class="${ze(this.buttonClasses)}"
472
+ class="${Ge(this.buttonClasses)}"
473
473
  @click=${this.toggleCalendar}
474
474
  ${ot(this.btnRef)}
475
475
  >
@@ -480,9 +480,9 @@ React keys must be passed directly to JSX without using spread:
480
480
  </div>
481
481
  </pkt-input-wrapper>
482
482
  ${this.renderCalendar()}
483
- `}handleCalendarPosition(){var e;if(this.popupRef.value&&this.inputRef.value){const t=this.multiple&&!!this.maxlength,n=((e=this.inputRef.value.parentElement)==null?void 0:e.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),r=t?n.height+30:n.height,i=this.popupRef.value.getBoundingClientRect().height;let o=t?"calc(100% - 30px)":"100%";n&&n.top+i>window.innerHeight&&n.top-i>0&&(o=`calc(100% - ${r}px - ${i}px)`),this.popupRef.value.style.top=o}}handleFocusOut(e){this.contains(e.target)||this.hideCalendar()}async showCalendar(){this.calendarOpen=!0,await Yl(20),this.handleCalendarPosition()}hideCalendar(){this.calendarOpen=!1}toggleCalendar(e){e.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar()}};Ve([O({type:String,reflect:!0})],Ie.prototype,"value",2),Ve([O({type:Array,reflect:!1})],Ie.prototype,"_value",2),Ve([O({type:String,reflect:!0})],Ie.prototype,"label",2),Ve([O({type:String,reflect:!0})],Ie.prototype,"helptext",2),Ve([O({type:String,reflect:!0})],Ie.prototype,"helptextDropdown",2),Ve([O({type:String,reflect:!0})],Ie.prototype,"helptextDropdownButton",2),Ve([O({type:String,reflect:!0})],Ie.prototype,"dateformat",2),Ve([O({type:Boolean,reflect:!0})],Ie.prototype,"multiple",2),Ve([O({type:Number})],Ie.prototype,"maxlength",2),Ve([O({type:Boolean,reflect:!0})],Ie.prototype,"range",2),Ve([O({type:Boolean,reflect:!0})],Ie.prototype,"weeknumbers",2),Ve([O({type:Boolean,reflect:!0})],Ie.prototype,"withcontrols",2),Ve([O({type:Boolean,reflect:!0})],Ie.prototype,"fullwidth",2),Ve([O({converter:Qn.csvToArray})],Ie.prototype,"excludedates",2),Ve([O({converter:Qn.csvToArray})],Ie.prototype,"excludeweekdays",2),Ve([O({type:String,reflect:!0})],Ie.prototype,"currentmonth",2),Ve([O({type:Boolean,reflect:!0})],Ie.prototype,"calendarOpen",2),Ie=Ve([Gt("pkt-datepicker")],Ie);const Pm="pkt-link",Lm=!0,Om={href:{name:"URL",description:"URL til lenken",type:"string",default:"#"},iconName:{name:"Ikon",description:"Ikon som skal vises ved siden av lenketeksten",type:"icon"},iconPosition:{name:"Ikonposisjon",description:"Posisjonen til ikonet i forhold til lenketeksten",type:["left","right"]},external:{name:"Ekstern lenke",description:"Vis ikon for ekstern lenke",type:"boolean",default:!1}},Im={default:{description:"Innholdet i lenken"}},Kl={name:Pm,"css-class":"pkt-link","dark-mode":!0,isElement:Lm,props:Om,slots:Im};var Mm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,Hr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Rm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Mm(t,n,i),i};let Bn=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.href=Kl.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=Kl.props.external.default,this.slotController=new er(this,this.defaultSlot)}render(){const e={"pkt-link":!0,"pkt-link--icon-left":!!this.iconName&&this.iconPosition==="left"||!!(this.iconName&&!this.iconPosition),"pkt-link--icon-right":!!this.iconName&&this.iconPosition==="right","pkt-link--external":this.external};return J`<a class=${ze(e)} href=${this.href} @click=${this.handleClick}
483
+ `}handleCalendarPosition(){var e;if(this.popupRef.value&&this.inputRef.value){const t=this.multiple&&!!this.maxlength,n=((e=this.inputRef.value.parentElement)==null?void 0:e.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),r=t?n.height+30:n.height,i=this.popupRef.value.getBoundingClientRect().height;let o=t?"calc(100% - 30px)":"100%";n&&n.top+i>window.innerHeight&&n.top-i>0&&(o=`calc(100% - ${r}px - ${i}px)`),this.popupRef.value.style.top=o}}handleFocusOut(e){this.contains(e.target)||this.hideCalendar()}async showCalendar(){this.calendarOpen=!0,await Yl(20),this.handleCalendarPosition()}hideCalendar(){this.calendarOpen=!1}toggleCalendar(e){e.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar()}};Ye([O({type:String,reflect:!0})],Ie.prototype,"value",2),Ye([O({type:Array,reflect:!1})],Ie.prototype,"_value",2),Ye([O({type:String})],Ie.prototype,"label",2),Ye([O({type:String})],Ie.prototype,"helptext",2),Ye([O({type:String})],Ie.prototype,"helptextDropdown",2),Ye([O({type:String})],Ie.prototype,"helptextDropdownButton",2),Ye([O({type:String})],Ie.prototype,"dateformat",2),Ye([O({type:Boolean,reflect:!0})],Ie.prototype,"multiple",2),Ye([O({type:Number})],Ie.prototype,"maxlength",2),Ye([O({type:Boolean,reflect:!0})],Ie.prototype,"range",2),Ye([O({type:Boolean})],Ie.prototype,"weeknumbers",2),Ye([O({type:Boolean})],Ie.prototype,"withcontrols",2),Ye([O({type:Boolean})],Ie.prototype,"fullwidth",2),Ye([O({converter:Qn.csvToArray})],Ie.prototype,"excludedates",2),Ye([O({converter:Qn.csvToArray})],Ie.prototype,"excludeweekdays",2),Ye([O({type:String})],Ie.prototype,"currentmonth",2),Ye([O({type:Boolean,reflect:!0})],Ie.prototype,"calendarOpen",2),Ie=Ye([Gt("pkt-datepicker")],Ie);const Pm="pkt-link",Lm=!0,Om={href:{name:"URL",description:"URL til lenken",type:"string",default:"#"},iconName:{name:"Ikon",description:"Ikon som skal vises ved siden av lenketeksten",type:"icon"},iconPosition:{name:"Ikonposisjon",description:"Posisjonen til ikonet i forhold til lenketeksten",type:["left","right"]},external:{name:"Ekstern lenke",description:"Vis ikon for ekstern lenke",type:"boolean",default:!1}},Im={default:{description:"Innholdet i lenken"}},Kl={name:Pm,"css-class":"pkt-link","dark-mode":!0,isElement:Lm,props:Om,slots:Im};var Mm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,Ur=(e,t,n,r)=>{for(var i=r>1?void 0:r?Rm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Mm(t,n,i),i};let Bn=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.href=Kl.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=Kl.props.external.default,this.slotController=new er(this,this.defaultSlot)}render(){const e={"pkt-link":!0,"pkt-link--icon-left":!!this.iconName&&this.iconPosition==="left"||!!(this.iconName&&!this.iconPosition),"pkt-link--icon-right":!!this.iconName&&this.iconPosition==="right","pkt-link--external":this.external};return J`<a class=${Ge(e)} href=${this.href} @click=${this.handleClick}
484
484
  >${this.iconName?J`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>`:""} <span ${ot(this.defaultSlot)}>Link</span></a
485
- >`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};Hr([O({type:String,reflect:!0})],Bn.prototype,"href",2),Hr([O({type:String,reflect:!0})],Bn.prototype,"iconName",2),Hr([O({type:String,reflect:!0})],Bn.prototype,"iconPosition",2),Hr([O({type:Boolean,reflect:!0})],Bn.prototype,"external",2),Bn=Hr([Gt("pkt-link")],Bn);var qm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,Nn=(e,t,n,r)=>{for(var i=r>1?void 0:r?Hm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&qm(t,n,i),i};let pn=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.closable=!1,this.compact=!1,this.title="",this.skin="beige",this.isDisplayed=!0,this.slotController=new er(this,this.defaultSlot)}handleClose(){this.isDisplayed=!1,this.onClose&&this.onClose()}render(){const e={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable};return this.isDisplayed?J`<div class=${ze(e)}>
485
+ >`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};Ur([O({type:String,reflect:!0})],Bn.prototype,"href",2),Ur([O({type:String,reflect:!0})],Bn.prototype,"iconName",2),Ur([O({type:String,reflect:!0})],Bn.prototype,"iconPosition",2),Ur([O({type:Boolean,reflect:!0})],Bn.prototype,"external",2),Bn=Ur([Gt("pkt-link")],Bn);var qm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,Nn=(e,t,n,r)=>{for(var i=r>1?void 0:r?Hm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&qm(t,n,i),i};let pn=class extends Nt{constructor(){super(),this.defaultSlot=Ct(),this.closable=!1,this.compact=!1,this.title="",this.skin="beige",this.isDisplayed=!0,this.slotController=new er(this,this.defaultSlot)}handleClose(){this.isDisplayed=!1,this.onClose&&this.onClose()}render(){const e={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable};return this.isDisplayed?J`<div class=${Ge(e)}>
486
486
  ${this.closable?J`<div class="pkt-messagebox__close">
487
487
  <button
488
488
  @click=${this.handleClose}
@@ -493,15 +493,15 @@ React keys must be passed directly to JSX without using spread:
493
493
  </div>`:re}
494
494
  ${this.title?J`<div class="pkt-messagebox__title">${this.title}</div>`:re}
495
495
  <div class="pkt-messagebox__text" ${ot(this.defaultSlot)}></div>
496
- </div>`:re}};Nn([O({type:Boolean,reflect:!0})],pn.prototype,"closable",2),Nn([O({type:Boolean,reflect:!0})],pn.prototype,"compact",2),Nn([O({type:String,reflect:!0})],pn.prototype,"title",2),Nn([O({type:String,reflect:!0})],pn.prototype,"skin",2),Nn([O({type:Boolean,reflect:!0})],pn.prototype,"isDisplayed",2),Nn([O({type:Function,reflect:!0})],pn.prototype,"onClose",2),pn=Nn([Gt("pkt-messagebox")],pn);const Um=zi({tagName:"pkt-card",elementClass:Kt,react:M,displayName:"PktCard",events:{}}),Jl=M.forwardRef(({children:e,...t},n)=>m.jsx(Um,{...t,ref:n,children:m.jsx("div",{className:"pkt-contents",children:e})}));Jl.displayName="PktCard";const Ma=M.forwardRef(({id:e,hasTile:t=!1,disabled:n=!1,label:r,labelPosition:i="right",hideLabel:o=!1,checkHelptext:u,hasError:c=!1,isSwitch:d=!1,className:h,...g},v)=>{const D=[h,"pkt-input-check"].filter(Boolean).join(" ");return m.jsx("div",{className:D,children:m.jsxs("div",{className:`pkt-input-check__input ${t?"pkt-input-check__input--tile":""} ${n&&t?"pkt-input-check__input--tile-disabled":""}`,children:[r&&i==="left"&&m.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]}),m.jsx("input",{ref:v,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:d?"switch":"checkbox",id:e,disabled:n,...g}),r&&i==="right"&&m.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});Ma.displayName="PktCheckbox";const Xl=zi({tagName:"pkt-datepicker",elementClass:Ie,react:M,displayName:"PktDatepicker",events:{onChange:"change",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Wm=({columnOne:e,columnTwo:t,socialLinks:n,className:r,personvernOgInfoLink:i="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:o="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var c,d;const u=[r,"pkt-footer"].filter(Boolean).join(" ");return m.jsx("footer",{className:u,"data-mode":"dark",children:m.jsxs("div",{className:"pkt-footer__container",children:[m.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:e.title}),m.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&m.jsx("li",{className:"pkt-footer__text",children:e.text}),(c=e.links)==null?void 0:c.map((h,g)=>m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:`pkt-footer__link ${h.external?"pkt-link--external":""}`,href:h.href,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${g}`))]})]}),m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:t.title}),m.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&m.jsx("li",{className:"pkt-footer__text",children:t.text}),(d=t.links)==null?void 0:d.map((h,g)=>m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:`pkt-footer__link ${h.external?"pkt-link--external":""}`,href:h.href,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${g}`))]})]}),m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),m.jsxs("ul",{className:"pkt-footer__list",children:[m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:"pkt-footer__link",href:i,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:"pkt-footer__link",href:o,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),n&&m.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[m.jsx("div",{className:"pkt-footer__social-languages",children:n.filter(h=>h.language).map((h,g)=>m.jsx("div",{className:"pkt-footer__social-language",children:m.jsx("a",{href:h.href,"aria-label":`til ${h.language} versjon av nettsiden`,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:h.language})},`sociallinks-language-${g}`))}),m.jsx("div",{className:"pkt-footer__social-icons",children:n.filter(h=>h.iconName).map((h,g)=>m.jsx(M.Fragment,{children:m.jsx("a",{href:h.href,"aria-label":`til ${h.iconName}`,className:"pkt-footer__social-icon-link",target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:m.jsx(ne,{className:"pkt-footer__social-icon",name:h.iconName})})},`sociallinks-${g}`))})]})]})})},zm=({links:e=[],personvernOgInfoLink:t="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:n="https://www.oslo.kommune.no/tilgjengelighet/",className:r})=>{const i=[r,"pkt-footer-simple"].filter(Boolean).join(" ");return m.jsx("footer",{className:i,"data-mode":"dark",children:m.jsx("div",{className:"pkt-footer-simple__container",children:m.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((o,u)=>m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:`pkt-footer-simple__link ${o.external?" pkt-link--external":""}`,href:o.href,target:o.openInNewTab?"_blank":"_self",rel:o.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),o.text]})},u)),m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:"pkt-footer-simple__link",href:t,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:"pkt-footer-simple__link",href:n,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},Vm=M.forwardRef(({className:e,logoLink:t="https://www.oslo.kommune.no/",serviceName:n,fixed:r=!0,scrollToHide:i=!0,user:o,userMenu:u,representing:c,userOptions:d,userMenuFooter:h,canChangeRepresentation:g=!0,showMenuButton:v=!1,showLogOutButton:D=!1,openMenu:b,logOut:k,changeRepresentation:x,children:C,...T},E)=>{const _=M.useMemo(()=>typeof(o==null?void 0:o.lastLoggedIn)=="string"?o.lastLoggedIn:o!=null&&o.lastLoggedIn?new Date(o.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[o]),[F,A]=M.useState(!1),[$,P]=M.useState(0),[I,j]=M.useState(!1),z=M.useRef(null);M.useEffect(()=>(document&&(document.addEventListener("mouseup",G),window.addEventListener("scroll",L)),()=>{document&&(document.removeEventListener("mouseup",G),window.removeEventListener("scroll",L))}));const K=()=>{j(!I)},G=N=>{z.current&&!z.current.contains(N.target)&&j(!1)},L=()=>{if(i){const N=window.pageYOffset||document.documentElement.scrollTop;if(N<0||Math.abs(N-$)<60)return;A(N>$),P(N)}};return m.jsxs("header",{...T,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:Ye(e,"pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":i,"pkt-header--hidden":F}),ref:E,children:[m.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?m.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:m.jsx(ne,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.3/logos/"})}):m.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:m.jsx(ne,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.3/logos/"})}),m.jsx("span",{className:"pkt-header__logo-service",children:n})]}),m.jsx("nav",{className:"pkt-header__actions",children:m.jsxs("ul",{className:"pkt-header__actions-row",children:[v&&m.jsx("li",{children:m.jsx(wn,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(o||c)&&m.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${I&&!F?"pkt-header--open-dropdown":""}`,ref:z,children:[m.jsxs("button",{className:"pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",type:"button",role:"button","aria-controls":"pktUserDropdown","aria-expanded":I,onClick:K,children:[m.jsx(ne,{name:"user",className:"pkt-btn__icon"}),m.jsx("span",{className:"pkt-header__user-fullname",children:(c==null?void 0:c.name)||(o==null?void 0:o.name)}),m.jsx("span",{className:"pkt-header__user-shortname",children:(c==null?void 0:c.shortname)||(o==null?void 0:o.shortname)}),m.jsx(ne,{name:"chevron-thin-down",className:"pkt-btn--closed"}),m.jsx(ne,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),m.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[o&&m.jsxs("li",{children:[m.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),m.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.lastLoggedIn&&m.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",m.jsx("time",{children:_})]})]}),u&&m.jsx("li",{children:m.jsx("ul",{className:"pkt-list",children:u.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userMenu-${H}`))})}),(c||g)&&m.jsxs("li",{children:[c&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),m.jsx("div",{className:"pkt-user-menu__name",children:c.name}),c.orgNumber&&m.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",c.orgNumber]})]}),m.jsx("ul",{className:"pkt-list mt-size-16",children:g&&m.jsx("li",{children:m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:x,children:[m.jsx(ne,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),m.jsx("li",{children:m.jsx("ul",{className:"pkt-list",children:(d||!D)&&m.jsxs(m.Fragment,{children:[d==null?void 0:d.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userOptions-${H}`)),!D&&m.jsx("li",{children:m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:k,children:[m.jsx(ne,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),h&&m.jsx("li",{className:"footer",children:m.jsx("ul",{className:"pkt-list-horizontal bordered",children:h.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsx("a",{href:N.target,className:"pkt-link",children:N.title}):m.jsx("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:N.title})},`userMenuFooter-${H}`))})})]})]}),C&&m.jsx("li",{children:C}),D&&m.jsx("li",{children:m.jsx(wn,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:k,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),Ql=M.forwardRef(({label:e,id:t,children:n,...r},i)=>m.jsxs("div",{className:"pkt-form-group",children:[m.jsx("label",{htmlFor:t,className:"pkt-form-label",children:e}),m.jsx("input",{className:"pkt-form-input",id:t,...r,ref:i}),n]}));Ql.displayName="PktInput";const ar=M.forwardRef(({forId:e,label:t,helptext:n,helptextDropdown:r,helptextDropdownButton:i,counter:o,counterCurrent:u,counterMaxLength:c,optionalTag:d=!1,optionalText:h="Valgfritt",requiredTag:g=!1,requiredText:v="Må fylles ut",hasError:D,errorMessage:b,disabled:k,inline:x,ariaDescribedby:C,useWrapper:T=!0,children:E,className:_,hasFieldset:F=!1},A)=>{const[$,P]=M.useState(!1),I=()=>{P(!$)},j=()=>d?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":g?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",z=d?h:g?v:"",K=k?"pkt-inputwrapper--disabled":"",G=x?"pkt-inputwrapper--inline":"",L=D?"pkt-inputwrapper--error":"",N=!!r&&r!=="",H=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',Q=F?"fieldset":N?"div":"label",fe=F?"legend":N?"h2":"span",ee=C||(n?`${e}-helptext`:void 0);return m.jsxs("div",{className:["pkt-inputwrapper",_,K,G,L].join(" "),ref:A,children:[T?m.jsx(m.Fragment,{children:m.jsxs(Q,{htmlFor:F?void 0:e,"aria-describedby":N?void 0:C,className:`pkt-inputwrapper__label${F?" pkt-inputwrapper__fieldset":""}`,children:[m.jsxs(fe,{id:`${e}-label`,className:`${F?" pkt-inputwrapper__legend":""}`,children:[t,z!==""&&m.jsx("span",{className:j(),children:z})]}),n&&m.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:n}),N&&r!==""&&m.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[m.jsx(wn,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:I,children:m.jsx("span",{dangerouslySetInnerHTML:{__html:H}})}),m.jsx("div",{className:`pkt-inputwrapper__helptext ${$?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:r}),!F&&m.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,children:t})]}),m.jsx(m.Fragment,{children:E}),o&&m.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[u||0,c&&`/${c}`]})]})}):m.jsxs(m.Fragment,{children:[!F&&m.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,id:`${e}-label`,children:t}),E]}),D&&b&&m.jsx("div",{children:m.jsx(Wi,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});ar.displayName="PktInputWrapper";const Gm=zi({tagName:"pkt-link",elementClass:Bn,react:M,displayName:"PktLink",events:{onClick:"click"}}),Zl=M.forwardRef(({children:e,...t},n)=>m.jsx(Gm,{...t,ref:n,children:m.jsx("span",{className:"pkt-contents",children:e})}));Zl.displayName="PktLink";const eu=M.forwardRef(({children:e,className:t,iconName:n,openInNewTab:r=!1,skin:i="normal",href:o="#",external:u=!1,title:c,...d},h)=>{const g=[t,"pkt-linkcard",i&&`pkt-linkcard--${i}`].filter(Boolean).join(" ");return m.jsxs("a",{...d,href:o,className:`pkt-linkcard pkt-link ${g}`,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,ref:h,children:[n&&m.jsx(ne,{className:"pkt-link__icon",name:n}),m.jsx("div",{className:`pkt-linkcard__title ${u?"pkt-link pkt-link--external":""}`,children:c}),m.jsx("div",{className:"pkt-linkcard__text",children:e})]})});eu.displayName="PktLinkCard";const tu=M.forwardRef(({className:e,message:t,size:n="medium",inline:r=!1,isLoading:i=!0,variant:o="rainbow",delay:u=0,children:c,...d},h)=>{const g=`pkt-loader pkt-loader--${n}`,[v,D]=M.useState(!(u>0));u>0&&setTimeout(()=>{D(!0)},u);const b=k=>k==="shapes"?"loader":k==="blue"?"spinner-blue":"spinner";return m.jsx("div",{role:"status","aria-live":"polite","aria-busy":i,className:`pkt-loader--${r?"inline":"box"} ${e||""}`,children:i?m.jsx(m.Fragment,{children:v?m.jsxs("div",{className:g,"data-testid":"pkt-loader",ref:h,...d,children:[m.jsx(ne,{name:b(o),"aria-label":"loading",path:"https://punkt-cdn.oslo.kommune.no/12.3/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&m.jsx("p",{children:t})]}):null}):c})});tu.displayName="PktLoader";const nu=M.forwardRef(({children:e,className:t,compact:n=!1,closable:r=!1,skin:i="beige",title:o,onClose:u,...c},d)=>{const[h,g]=M.useState(!0),v=()=>{g(!1),u&&u()},D=[t,"pkt-messagebox",i&&`pkt-messagebox--${i}`,n&&"pkt-messagebox--compact"].filter(Boolean).join(" ");return h?m.jsxs("div",{...c,className:D,ref:d,children:[r&&m.jsx("div",{className:"pkt-messagebox__close",children:m.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:v,children:m.jsx(ne,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),o&&m.jsx("div",{className:"pkt-messagebox__title",children:o}),m.jsx("div",{className:"pkt-messagebox__text",children:e})]}):null});nu.displayName="PktMessagebox";/*!
496
+ </div>`:re}};Nn([O({type:Boolean,reflect:!0})],pn.prototype,"closable",2),Nn([O({type:Boolean,reflect:!0})],pn.prototype,"compact",2),Nn([O({type:String,reflect:!0})],pn.prototype,"title",2),Nn([O({type:String,reflect:!0})],pn.prototype,"skin",2),Nn([O({type:Boolean,reflect:!0})],pn.prototype,"isDisplayed",2),Nn([O({type:Function,reflect:!0})],pn.prototype,"onClose",2),pn=Nn([Gt("pkt-messagebox")],pn);const Um=zi({tagName:"pkt-card",elementClass:Kt,react:M,displayName:"PktCard",events:{}}),Jl=M.forwardRef(({children:e,...t},n)=>m.jsx(Um,{...t,ref:n,children:m.jsx("div",{className:"pkt-contents",children:e})}));Jl.displayName="PktCard";const Ma=M.forwardRef(({id:e,hasTile:t=!1,disabled:n=!1,label:r,labelPosition:i="right",hideLabel:o=!1,checkHelptext:u,hasError:c=!1,isSwitch:d=!1,className:h,...g},v)=>{const D=[h,"pkt-input-check"].filter(Boolean).join(" ");return m.jsx("div",{className:D,children:m.jsxs("div",{className:`pkt-input-check__input ${t?"pkt-input-check__input--tile":""} ${n&&t?"pkt-input-check__input--tile-disabled":""}`,children:[r&&i==="left"&&m.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]}),m.jsx("input",{ref:v,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:d?"switch":"checkbox",id:e,disabled:n,...g}),r&&i==="right"&&m.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});Ma.displayName="PktCheckbox";const Xl=zi({tagName:"pkt-datepicker",elementClass:Ie,react:M,displayName:"PktDatepicker",events:{onChange:"change",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Wm=({columnOne:e,columnTwo:t,socialLinks:n,className:r,personvernOgInfoLink:i="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:o="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var c,d;const u=[r,"pkt-footer"].filter(Boolean).join(" ");return m.jsx("footer",{className:u,"data-mode":"dark",children:m.jsxs("div",{className:"pkt-footer__container",children:[m.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:e.title}),m.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&m.jsx("li",{className:"pkt-footer__text",children:e.text}),(c=e.links)==null?void 0:c.map((h,g)=>m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:`pkt-footer__link ${h.external?"pkt-link--external":""}`,href:h.href,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${g}`))]})]}),m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:t.title}),m.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&m.jsx("li",{className:"pkt-footer__text",children:t.text}),(d=t.links)==null?void 0:d.map((h,g)=>m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:`pkt-footer__link ${h.external?"pkt-link--external":""}`,href:h.href,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${g}`))]})]}),m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),m.jsxs("ul",{className:"pkt-footer__list",children:[m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:"pkt-footer__link",href:i,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:"pkt-footer__link",href:o,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),n&&m.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[m.jsx("div",{className:"pkt-footer__social-languages",children:n.filter(h=>h.language).map((h,g)=>m.jsx("div",{className:"pkt-footer__social-language",children:m.jsx("a",{href:h.href,"aria-label":`til ${h.language} versjon av nettsiden`,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:h.language})},`sociallinks-language-${g}`))}),m.jsx("div",{className:"pkt-footer__social-icons",children:n.filter(h=>h.iconName).map((h,g)=>m.jsx(M.Fragment,{children:m.jsx("a",{href:h.href,"aria-label":`til ${h.iconName}`,className:"pkt-footer__social-icon-link",target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:m.jsx(ne,{className:"pkt-footer__social-icon",name:h.iconName})})},`sociallinks-${g}`))})]})]})})},zm=({links:e=[],personvernOgInfoLink:t="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:n="https://www.oslo.kommune.no/tilgjengelighet/",className:r})=>{const i=[r,"pkt-footer-simple"].filter(Boolean).join(" ");return m.jsx("footer",{className:i,"data-mode":"dark",children:m.jsx("div",{className:"pkt-footer-simple__container",children:m.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((o,u)=>m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:`pkt-footer-simple__link ${o.external?" pkt-link--external":""}`,href:o.href,target:o.openInNewTab?"_blank":"_self",rel:o.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),o.text]})},u)),m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:"pkt-footer-simple__link",href:t,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:"pkt-footer-simple__link",href:n,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},Vm=M.forwardRef(({className:e,logoLink:t="https://www.oslo.kommune.no/",serviceName:n,fixed:r=!0,scrollToHide:i=!0,user:o,userMenu:u,representing:c,userOptions:d,userMenuFooter:h,canChangeRepresentation:g=!0,showMenuButton:v=!1,showLogOutButton:D=!1,openMenu:b,logOut:k,changeRepresentation:x,children:C,...T},E)=>{const _=M.useMemo(()=>typeof(o==null?void 0:o.lastLoggedIn)=="string"?o.lastLoggedIn:o!=null&&o.lastLoggedIn?new Date(o.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[o]),[F,A]=M.useState(!1),[$,P]=M.useState(0),[I,j]=M.useState(!1),z=M.useRef(null);M.useEffect(()=>(document&&(document.addEventListener("mouseup",G),window.addEventListener("scroll",L)),()=>{document&&(document.removeEventListener("mouseup",G),window.removeEventListener("scroll",L))}));const K=()=>{j(!I)},G=N=>{z.current&&!z.current.contains(N.target)&&j(!1)},L=()=>{if(i){const N=window.pageYOffset||document.documentElement.scrollTop;if(N<0||Math.abs(N-$)<60)return;A(N>$),P(N)}};return m.jsxs("header",{...T,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:Je(e,"pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":i,"pkt-header--hidden":F}),ref:E,children:[m.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?m.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:m.jsx(ne,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.3/logos/"})}):m.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:m.jsx(ne,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.3/logos/"})}),m.jsx("span",{className:"pkt-header__logo-service",children:n})]}),m.jsx("nav",{className:"pkt-header__actions",children:m.jsxs("ul",{className:"pkt-header__actions-row",children:[v&&m.jsx("li",{children:m.jsx(wn,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(o||c)&&m.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${I&&!F?"pkt-header--open-dropdown":""}`,ref:z,children:[m.jsxs("button",{className:"pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",type:"button",role:"button","aria-controls":"pktUserDropdown","aria-expanded":I,onClick:K,children:[m.jsx(ne,{name:"user",className:"pkt-btn__icon"}),m.jsx("span",{className:"pkt-header__user-fullname",children:(c==null?void 0:c.name)||(o==null?void 0:o.name)}),m.jsx("span",{className:"pkt-header__user-shortname",children:(c==null?void 0:c.shortname)||(o==null?void 0:o.shortname)}),m.jsx(ne,{name:"chevron-thin-down",className:"pkt-btn--closed"}),m.jsx(ne,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),m.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[o&&m.jsxs("li",{children:[m.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),m.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.lastLoggedIn&&m.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",m.jsx("time",{children:_})]})]}),u&&m.jsx("li",{children:m.jsx("ul",{className:"pkt-list",children:u.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userMenu-${H}`))})}),(c||g)&&m.jsxs("li",{children:[c&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),m.jsx("div",{className:"pkt-user-menu__name",children:c.name}),c.orgNumber&&m.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",c.orgNumber]})]}),m.jsx("ul",{className:"pkt-list mt-size-16",children:g&&m.jsx("li",{children:m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:x,children:[m.jsx(ne,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),m.jsx("li",{children:m.jsx("ul",{className:"pkt-list",children:(d||!D)&&m.jsxs(m.Fragment,{children:[d==null?void 0:d.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userOptions-${H}`)),!D&&m.jsx("li",{children:m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:k,children:[m.jsx(ne,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),h&&m.jsx("li",{className:"footer",children:m.jsx("ul",{className:"pkt-list-horizontal bordered",children:h.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsx("a",{href:N.target,className:"pkt-link",children:N.title}):m.jsx("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:N.title})},`userMenuFooter-${H}`))})})]})]}),C&&m.jsx("li",{children:C}),D&&m.jsx("li",{children:m.jsx(wn,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:k,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),Ql=M.forwardRef(({label:e,id:t,children:n,...r},i)=>m.jsxs("div",{className:"pkt-form-group",children:[m.jsx("label",{htmlFor:t,className:"pkt-form-label",children:e}),m.jsx("input",{className:"pkt-form-input",id:t,...r,ref:i}),n]}));Ql.displayName="PktInput";const ar=M.forwardRef(({forId:e,label:t,helptext:n,helptextDropdown:r,helptextDropdownButton:i,counter:o,counterCurrent:u,counterMaxLength:c,optionalTag:d=!1,optionalText:h="Valgfritt",requiredTag:g=!1,requiredText:v="Må fylles ut",hasError:D,errorMessage:b,disabled:k,inline:x,ariaDescribedby:C,useWrapper:T=!0,children:E,className:_,hasFieldset:F=!1},A)=>{const[$,P]=M.useState(!1),I=()=>{P(!$)},j=()=>d?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":g?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",z=d?h:g?v:"",K=k?"pkt-inputwrapper--disabled":"",G=x?"pkt-inputwrapper--inline":"",L=D?"pkt-inputwrapper--error":"",N=!!r&&r!=="",H=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',Q=F?"fieldset":N?"div":"label",fe=F?"legend":N?"h2":"span",ee=C||(n?`${e}-helptext`:void 0);return m.jsxs("div",{className:["pkt-inputwrapper",_,K,G,L].join(" "),ref:A,children:[T?m.jsx(m.Fragment,{children:m.jsxs(Q,{htmlFor:F?void 0:e,"aria-describedby":N?void 0:C,className:`pkt-inputwrapper__label${F?" pkt-inputwrapper__fieldset":""}`,children:[m.jsxs(fe,{id:`${e}-label`,className:`${F?" pkt-inputwrapper__legend":""}`,children:[t,z!==""&&m.jsx("span",{className:j(),children:z})]}),n&&m.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:n}),N&&r!==""&&m.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[m.jsx(wn,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:I,children:m.jsx("span",{dangerouslySetInnerHTML:{__html:H}})}),m.jsx("div",{className:`pkt-inputwrapper__helptext ${$?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:r}),!F&&m.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,children:t})]}),m.jsx(m.Fragment,{children:E}),o&&m.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[u||0,c&&`/${c}`]})]})}):m.jsxs(m.Fragment,{children:[!F&&m.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,id:`${e}-label`,children:t}),E]}),D&&b&&m.jsx("div",{children:m.jsx(Wi,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});ar.displayName="PktInputWrapper";const Gm=zi({tagName:"pkt-link",elementClass:Bn,react:M,displayName:"PktLink",events:{onClick:"click"}}),Zl=M.forwardRef(({children:e,...t},n)=>m.jsx(Gm,{...t,ref:n,children:m.jsx("span",{className:"pkt-contents",children:e})}));Zl.displayName="PktLink";const eu=M.forwardRef(({children:e,className:t,iconName:n,openInNewTab:r=!1,skin:i="normal",href:o="#",external:u=!1,title:c,...d},h)=>{const g=[t,"pkt-linkcard",i&&`pkt-linkcard--${i}`].filter(Boolean).join(" ");return m.jsxs("a",{...d,href:o,className:`pkt-linkcard pkt-link ${g}`,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,ref:h,children:[n&&m.jsx(ne,{className:"pkt-link__icon",name:n}),m.jsx("div",{className:`pkt-linkcard__title ${u?"pkt-link pkt-link--external":""}`,children:c}),m.jsx("div",{className:"pkt-linkcard__text",children:e})]})});eu.displayName="PktLinkCard";const tu=M.forwardRef(({className:e,message:t,size:n="medium",inline:r=!1,isLoading:i=!0,variant:o="rainbow",delay:u=0,children:c,...d},h)=>{const g=`pkt-loader pkt-loader--${n}`,[v,D]=M.useState(!(u>0));u>0&&setTimeout(()=>{D(!0)},u);const b=k=>k==="shapes"?"loader":k==="blue"?"spinner-blue":"spinner";return m.jsx("div",{role:"status","aria-live":"polite","aria-busy":i,className:`pkt-loader--${r?"inline":"box"} ${e||""}`,children:i?m.jsx(m.Fragment,{children:v?m.jsxs("div",{className:g,"data-testid":"pkt-loader",ref:h,...d,children:[m.jsx(ne,{name:b(o),"aria-label":"loading",path:"https://punkt-cdn.oslo.kommune.no/12.3/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&m.jsx("p",{children:t})]}):null}):c})});tu.displayName="PktLoader";const nu=M.forwardRef(({children:e,className:t,compact:n=!1,closable:r=!1,skin:i="beige",title:o,onClose:u,...c},d)=>{const[h,g]=M.useState(!0),v=()=>{g(!1),u&&u()},D=[t,"pkt-messagebox",i&&`pkt-messagebox--${i}`,n&&"pkt-messagebox--compact"].filter(Boolean).join(" ");return h?m.jsxs("div",{...c,className:D,ref:d,children:[r&&m.jsx("div",{className:"pkt-messagebox__close",children:m.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:v,children:m.jsx(ne,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),o&&m.jsx("div",{className:"pkt-messagebox__title",children:o}),m.jsx("div",{className:"pkt-messagebox__text",children:e})]}):null});nu.displayName="PktMessagebox";/*!
497
497
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
498
498
  *
499
499
  * Copyright (c) 2014-2017, Jon Schlinkert.
500
500
  * Released under the MIT License.
501
- */function ru(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ym(e){var t,n;return ru(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(ru(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var au={},Ra=un&&un.__assign||function(){return Ra=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ra.apply(this,arguments)},Km=un&&un.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,c=o.length;u<c;u++,i++)r[i]=o[u];return r};Object.defineProperty(au,"__esModule",{value:!0});var Ur=[];function Jm(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function Xm(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Qm(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function qa(e,t,n){n===void 0&&(n="");var r={indent:" ",singleQuotes:!0},i=Ra(Ra({},r),t),o;i.inlineCharacterLimit===void 0?o={newLine:`
501
+ */function ru(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ym(e){var t,n;return ru(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(ru(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var au={},Ra=un&&un.__assign||function(){return Ra=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ra.apply(this,arguments)},Km=un&&un.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,c=o.length;u<c;u++,i++)r[i]=o[u];return r};Object.defineProperty(au,"__esModule",{value:!0});var Wr=[];function Jm(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function Xm(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Qm(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function qa(e,t,n){n===void 0&&(n="");var r={indent:" ",singleQuotes:!0},i=Ra(Ra({},r),t),o;i.inlineCharacterLimit===void 0?o={newLine:`
502
502
  `,newLineOrSpace:`
503
503
  `,pad:n,indent:n+i.indent}:o={newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var u=function(h){if(i.inlineCharacterLimit===void 0)return h;var g=h.replace(new RegExp(o.newLine,"g"),"").replace(new RegExp(o.newLineOrSpace,"g")," ").replace(new RegExp(o.pad+"|"+o.indent,"g"),"");return g.length<=i.inlineCharacterLimit?g:h.replace(new RegExp(o.newLine+"|"+o.newLineOrSpace,"g"),`
504
- `).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(Ur.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||Xm(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";Ur.push(e);var c="["+o.newLine+e.map(function(h,g){var v=e.length-1===g?o.newLine:","+o.newLineOrSpace,D=qa(h,i,n+i.indent);return i.transform&&(D=i.transform(e,g,D)),o.indent+D+v}).join("")+o.pad+"]";return Ur.pop(),u(c)}if(Jm(e)){var d=Km(Object.keys(e),Qm(e));if(i.filter&&(d=d.filter(function(g){return i.filter&&i.filter(e,g)})),d.length===0)return"{}";Ur.push(e);var c="{"+o.newLine+d.map(function(g,v){var D=d.length-1===v?o.newLine:","+o.newLineOrSpace,b=typeof g=="symbol",k=!b&&/^[a-z$_][a-z$_0-9]*$/i.test(g.toString()),x=b||k?g:qa(g,i),C=qa(e[g],i,n+i.indent);return i.transform&&(C=i.transform(e,g,C)),o.indent+String(x)+": "+C+D}).join("")+o.pad+"}";return Ur.pop(),u(c)}return e=String(e).replace(/[\r\n]/g,function(h){return h===`
504
+ `).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(Wr.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||Xm(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";Wr.push(e);var c="["+o.newLine+e.map(function(h,g){var v=e.length-1===g?o.newLine:","+o.newLineOrSpace,D=qa(h,i,n+i.indent);return i.transform&&(D=i.transform(e,g,D)),o.indent+D+v}).join("")+o.pad+"]";return Wr.pop(),u(c)}if(Jm(e)){var d=Km(Object.keys(e),Qm(e));if(i.filter&&(d=d.filter(function(g){return i.filter&&i.filter(e,g)})),d.length===0)return"{}";Wr.push(e);var c="{"+o.newLine+d.map(function(g,v){var D=d.length-1===v?o.newLine:","+o.newLineOrSpace,b=typeof g=="symbol",k=!b&&/^[a-z$_][a-z$_0-9]*$/i.test(g.toString()),x=b||k?g:qa(g,i),C=qa(e[g],i,n+i.indent);return i.transform&&(C=i.transform(e,g,C)),o.indent+String(x)+": "+C+D}).join("")+o.pad+"}";return Wr.pop(),u(c)}return e=String(e).replace(/[\r\n]/g,function(h){return h===`
505
505
  `?"\\n":"\\r"}),i.singleQuotes?(e=e.replace(/\\?'/g,"\\'"),"'"+e+"'"):(e=e.replace(/"/g,'\\"'),'"'+e+'"')}var Zm=au.prettyPrint=qa,ls={exports:{}},be={};/**
506
506
  * @license React
507
507
  * react-is.production.min.js
@@ -518,10 +518,10 @@ React keys must be passed directly to JSX without using spread:
518
518
  *
519
519
  * This source code is licensed under the MIT license found in the
520
520
  * LICENSE file in the root directory of this source tree.
521
- */var su;function tg(){return su||(su=1,process.env.NODE_ENV!=="production"&&function(){var e=!1,t=!1,n=!1,r=!1,i=!1,o=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),D=Symbol.for("react.server_context"),b=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function F(X){return!!(typeof X=="string"||typeof X=="function"||X===c||X===h||i||X===d||X===k||X===x||r||X===E||e||t||n||typeof X=="object"&&X!==null&&(X.$$typeof===T||X.$$typeof===C||X.$$typeof===g||X.$$typeof===v||X.$$typeof===b||X.$$typeof===_||X.getModuleId!==void 0))}function A(X){if(typeof X=="object"&&X!==null){var Ut=X.$$typeof;switch(Ut){case o:var xe=X.type;switch(xe){case c:case h:case d:case k:case x:return xe;default:var Pe=xe&&xe.$$typeof;switch(Pe){case D:case v:case b:case T:case C:case g:return Pe;default:return Ut}}case u:return Ut}}}var $=v,P=g,I=o,j=b,z=c,K=T,G=C,L=u,N=h,H=d,Q=k,fe=x,ee=!1,ue=!1;function me(X){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(X){return ue||(ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function De(X){return A(X)===v}function rt(X){return A(X)===g}function Ne(X){return typeof X=="object"&&X!==null&&X.$$typeof===o}function Fe(X){return A(X)===b}function Oe(X){return A(X)===c}function de(X){return A(X)===T}function ft(X){return A(X)===C}function Ht(X){return A(X)===u}function Dt(X){return A(X)===h}function yt(X){return A(X)===d}function vn(X){return A(X)===k}function bt(X){return A(X)===x}ke.ContextConsumer=$,ke.ContextProvider=P,ke.Element=I,ke.ForwardRef=j,ke.Fragment=z,ke.Lazy=K,ke.Memo=G,ke.Portal=L,ke.Profiler=N,ke.StrictMode=H,ke.Suspense=Q,ke.SuspenseList=fe,ke.isAsyncMode=me,ke.isConcurrentMode=ie,ke.isContextConsumer=De,ke.isContextProvider=rt,ke.isElement=Ne,ke.isForwardRef=Fe,ke.isFragment=Oe,ke.isLazy=de,ke.isMemo=ft,ke.isPortal=Ht,ke.isProfiler=Dt,ke.isStrictMode=yt,ke.isSuspense=vn,ke.isSuspenseList=bt,ke.isValidElementType=F,ke.typeOf=A}()),ke}process.env.NODE_ENV==="production"?ls.exports=eg():ls.exports=tg();var Pt=ls.exports,Xt=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function ou(e){return ng(e)||rg(e)||ag(e)||ig()}function ng(e){if(Array.isArray(e))return us(e)}function rg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ag(e,t){if(e){if(typeof e=="string")return us(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return us(e,t)}}function us(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ig(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
522
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cs(e,t){return e===null||Wr(e)!=="object"||e instanceof Date||e instanceof RegExp||Qd.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(n){return cs(n,t)}):Object.keys(e).sort().reduce(function(n,r){return r==="_owner"||(r==="current"||t.has(e[r])?n[r]="[Circular]":n[r]=cs(e[r],t)),n},{}))}function sg(e){return cs(e,new WeakSet)}var lu=function(t){return{type:"string",value:t}},og=function(t){return{type:"number",value:t}},lg=function(t,n,r,i){return{type:"ReactElement",displayName:t,props:n,defaultProps:r,childrens:i}},ug=function(t,n){return{type:"ReactFragment",key:t,childrens:n}},cg=!!M.Fragment,uu=function(t){return!t.name||t.name==="_default"?"No Display Name":t.name},pg=function e(t){switch(!0){case!!t.displayName:return t.displayName;case t.$$typeof===Pt.Memo:return e(t.type);case t.$$typeof===Pt.ForwardRef:return e(t.render);default:return uu(t)}},dg=function(t){switch(!0){case typeof t.type=="string":return t.type;case typeof t.type=="function":return t.type.displayName?t.type.displayName:uu(t.type);case Pt.isForwardRef(t):case Pt.isMemo(t):return pg(t.type);case Pt.isContextConsumer(t):return"".concat(t.type._context.displayName||"Context",".Consumer");case Pt.isContextProvider(t):return"".concat(t.type._context.displayName||"Context",".Provider");case Pt.isLazy(t):return"Lazy";case Pt.isProfiler(t):return"Profiler";case Pt.isStrictMode(t):return"StrictMode";case Pt.isSuspense(t):return"Suspense";default:return"UnknownElementType"}},cu=function(t,n){return n!=="children"},hg=function(t){return t!==!0&&t!==!1&&t!==null&&t!==""},pu=function(t,n){var r={};return Object.keys(t).filter(function(i){return n(t[i],i)}).forEach(function(i){return r[i]=t[i]}),r},ps=function e(t,n){var r=n.displayName,i=r===void 0?dg:r;if(typeof t=="string")return lu(t);if(typeof t=="number")return og(t);if(!M.isValidElement(t))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(Wr(t),"`"));var o=i(t),u=pu(t.props,cu);t.ref!==null&&(u.ref=t.ref);var c=t.key;typeof c=="string"&&c.search(/^\./)&&(u.key=c);var d=pu(t.type.defaultProps||{},cu),h=M.Children.toArray(t.props.children).filter(hg).map(function(g){return e(g,n)});return cg&&t.type===M.Fragment?ug(c,h):lg(o,u,d,h)};function fg(){}var mg=function(t){return t.toString().split(`
521
+ */var su;function tg(){return su||(su=1,process.env.NODE_ENV!=="production"&&function(){var e=!1,t=!1,n=!1,r=!1,i=!1,o=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),D=Symbol.for("react.server_context"),b=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function F(X){return!!(typeof X=="string"||typeof X=="function"||X===c||X===h||i||X===d||X===k||X===x||r||X===E||e||t||n||typeof X=="object"&&X!==null&&(X.$$typeof===T||X.$$typeof===C||X.$$typeof===g||X.$$typeof===v||X.$$typeof===b||X.$$typeof===_||X.getModuleId!==void 0))}function A(X){if(typeof X=="object"&&X!==null){var Ut=X.$$typeof;switch(Ut){case o:var xe=X.type;switch(xe){case c:case h:case d:case k:case x:return xe;default:var Pe=xe&&xe.$$typeof;switch(Pe){case D:case v:case b:case T:case C:case g:return Pe;default:return Ut}}case u:return Ut}}}var $=v,P=g,I=o,j=b,z=c,K=T,G=C,L=u,N=h,H=d,Q=k,fe=x,ee=!1,ue=!1;function me(X){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(X){return ue||(ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function De(X){return A(X)===v}function rt(X){return A(X)===g}function Ne(X){return typeof X=="object"&&X!==null&&X.$$typeof===o}function Fe(X){return A(X)===b}function Oe(X){return A(X)===c}function de(X){return A(X)===T}function ft(X){return A(X)===C}function Ht(X){return A(X)===u}function Dt(X){return A(X)===h}function yt(X){return A(X)===d}function vn(X){return A(X)===k}function bt(X){return A(X)===x}ke.ContextConsumer=$,ke.ContextProvider=P,ke.Element=I,ke.ForwardRef=j,ke.Fragment=z,ke.Lazy=K,ke.Memo=G,ke.Portal=L,ke.Profiler=N,ke.StrictMode=H,ke.Suspense=Q,ke.SuspenseList=fe,ke.isAsyncMode=me,ke.isConcurrentMode=ie,ke.isContextConsumer=De,ke.isContextProvider=rt,ke.isElement=Ne,ke.isForwardRef=Fe,ke.isFragment=Oe,ke.isLazy=de,ke.isMemo=ft,ke.isPortal=Ht,ke.isProfiler=Dt,ke.isStrictMode=yt,ke.isSuspense=vn,ke.isSuspenseList=bt,ke.isValidElementType=F,ke.typeOf=A}()),ke}process.env.NODE_ENV==="production"?ls.exports=eg():ls.exports=tg();var Pt=ls.exports,Xt=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function ou(e){return ng(e)||rg(e)||ag(e)||ig()}function ng(e){if(Array.isArray(e))return us(e)}function rg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ag(e,t){if(e){if(typeof e=="string")return us(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return us(e,t)}}function us(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ig(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
522
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cs(e,t){return e===null||zr(e)!=="object"||e instanceof Date||e instanceof RegExp||Qd.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(n){return cs(n,t)}):Object.keys(e).sort().reduce(function(n,r){return r==="_owner"||(r==="current"||t.has(e[r])?n[r]="[Circular]":n[r]=cs(e[r],t)),n},{}))}function sg(e){return cs(e,new WeakSet)}var lu=function(t){return{type:"string",value:t}},og=function(t){return{type:"number",value:t}},lg=function(t,n,r,i){return{type:"ReactElement",displayName:t,props:n,defaultProps:r,childrens:i}},ug=function(t,n){return{type:"ReactFragment",key:t,childrens:n}},cg=!!M.Fragment,uu=function(t){return!t.name||t.name==="_default"?"No Display Name":t.name},pg=function e(t){switch(!0){case!!t.displayName:return t.displayName;case t.$$typeof===Pt.Memo:return e(t.type);case t.$$typeof===Pt.ForwardRef:return e(t.render);default:return uu(t)}},dg=function(t){switch(!0){case typeof t.type=="string":return t.type;case typeof t.type=="function":return t.type.displayName?t.type.displayName:uu(t.type);case Pt.isForwardRef(t):case Pt.isMemo(t):return pg(t.type);case Pt.isContextConsumer(t):return"".concat(t.type._context.displayName||"Context",".Consumer");case Pt.isContextProvider(t):return"".concat(t.type._context.displayName||"Context",".Provider");case Pt.isLazy(t):return"Lazy";case Pt.isProfiler(t):return"Profiler";case Pt.isStrictMode(t):return"StrictMode";case Pt.isSuspense(t):return"Suspense";default:return"UnknownElementType"}},cu=function(t,n){return n!=="children"},hg=function(t){return t!==!0&&t!==!1&&t!==null&&t!==""},pu=function(t,n){var r={};return Object.keys(t).filter(function(i){return n(t[i],i)}).forEach(function(i){return r[i]=t[i]}),r},ps=function e(t,n){var r=n.displayName,i=r===void 0?dg:r;if(typeof t=="string")return lu(t);if(typeof t=="number")return og(t);if(!M.isValidElement(t))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(zr(t),"`"));var o=i(t),u=pu(t.props,cu);t.ref!==null&&(u.ref=t.ref);var c=t.key;typeof c=="string"&&c.search(/^\./)&&(u.key=c);var d=pu(t.type.defaultProps||{},cu),h=M.Children.toArray(t.props.children).filter(hg).map(function(g){return e(g,n)});return cg&&t.type===M.Fragment?ug(c,h):lg(o,u,d,h)};function fg(){}var mg=function(t){return t.toString().split(`
523
523
  `).map(function(n){return n.trim()}).join("")},du=mg,hu=function(e,t){var n=t.functionValue,r=n===void 0?du:n,i=t.showFunctions;return r(!i&&r===du?fg:e)},gg=function(e,t,n,r){var i=sg(e),o=Zm(i,{transform:function(c,d,h){var g=c[d];return g&&M.isValidElement(g)?Ha(ps(g,r),!0,n,r):typeof g=="function"?hu(g,r):h}});return t?o.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):o.replace(/\t/g,Xt(1,r.tabStop)).replace(/\n([^$])/g,`
524
- `.concat(Xt(n+1,r.tabStop),"$1"))},vg=function(t){return t.replace(/"/g,"&quot;")},Dg=function(t,n,r,i){if(typeof t=="number")return"{".concat(String(t),"}");if(typeof t=="string")return'"'.concat(vg(t),'"');if(Wr(t)==="symbol"){var o=t.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return o?"{Symbol('".concat(o,"')}"):"{Symbol()}"}return typeof t=="function"?"{".concat(hu(t,i),"}"):M.isValidElement(t)?"{".concat(Ha(ps(t,i),!0,r,i),"}"):t instanceof Date?isNaN(t.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(t.toISOString(),'")}'):Ym(t)||Array.isArray(t)?"{".concat(gg(t,n,r,i),"}"):"{".concat(String(t),"}")},yg=function(e,t,n,r,i,o,u,c){if(!t&&!r)throw new Error('The prop "'.concat(e,'" has no value and no default: could not be formatted'));var d=t?n:i,h=c.useBooleanShorthandSyntax,g=c.tabStop,v=Dg(d,o,u,c),D=" ",b=`
524
+ `.concat(Xt(n+1,r.tabStop),"$1"))},vg=function(t){return t.replace(/"/g,"&quot;")},Dg=function(t,n,r,i){if(typeof t=="number")return"{".concat(String(t),"}");if(typeof t=="string")return'"'.concat(vg(t),'"');if(zr(t)==="symbol"){var o=t.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return o?"{Symbol('".concat(o,"')}"):"{Symbol()}"}return typeof t=="function"?"{".concat(hu(t,i),"}"):M.isValidElement(t)?"{".concat(Ha(ps(t,i),!0,r,i),"}"):t instanceof Date?isNaN(t.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(t.toISOString(),'")}'):Ym(t)||Array.isArray(t)?"{".concat(gg(t,n,r,i),"}"):"{".concat(String(t),"}")},yg=function(e,t,n,r,i,o,u,c){if(!t&&!r)throw new Error('The prop "'.concat(e,'" has no value and no default: could not be formatted'));var d=t?n:i,h=c.useBooleanShorthandSyntax,g=c.tabStop,v=Dg(d,o,u,c),D=" ",b=`
525
525
  `.concat(Xt(u+1,g)),k=v.includes(`
526
526
  `);return h&&v==="{false}"&&!r?(D="",b=""):h&&v==="{true}"?(D+="".concat(e),b+="".concat(e)):(D+="".concat(e,"=").concat(v),b+="".concat(e,"=").concat(v)),{attributeFormattedInline:D,attributeFormattedMultiline:b,isMultilineAttribute:k}},bg=function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type==="string"||t.type==="number")&&(r.type==="string"||r.type==="number")?n.push(lu(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n},kg=function(t){return["key","ref"].includes(t)},wg=function(e){return function(t){var n=t.includes("key"),r=t.includes("ref"),i=t.filter(function(u){return!kg(u)}),o=ou(e?i.sort():i);return r&&o.unshift("ref"),n&&o.unshift("key"),o}};function Cg(e,t){return Array.isArray(t)?function(n){return t.indexOf(n)===-1}:function(n){return t(e[n],n)}}var xg=function(t,n,r,i,o){var u=o.tabStop;return t.type==="string"?n.split(`
527
527
  `).map(function(c,d){return d===0?c:"".concat(Xt(i,u)).concat(c)}).join(`
@@ -529,11 +529,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
529
529
  `.concat(Xt(n,C)),Eg(P,E,F,t,n,C,b)?T=_:T=E,c&&c.length>0){var I=n+1;T+=">",t||(T+=`
530
530
  `,T+=Xt(I,C)),T+=c.reduce(bg,[]).map(_g(t,I,r)).join(t?"":`
531
531
  `.concat(Xt(I,C))),t||(T+=`
532
- `,T+=Xt(I-1,C)),T+="</".concat(u,">")}else fu(P,E,n,C,b)||(T+=" "),T+="/>";return T},Fg="",gu="React.Fragment",Ag=function(t,n,r){var i={};return n&&(i={key:n}),{type:"ReactElement",displayName:t,props:i,defaultProps:{},childrens:r}},$g=function(t){var n=t.key;return!!n},Tg=function(t){var n=t.childrens;return n.length===0},Bg=function(e,t,n,r){var i=e.type,o=e.key,u=e.childrens;if(i!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(i));var c=r.useFragmentShortSyntax,d;return c?Tg(e)||$g(e)?d=gu:d=Fg:d=gu,mu(Ag(d,o,u),t,n,r)},Ng=["<",">","{","}"],jg=function(t){return Ng.some(function(n){return t.includes(n)})},Pg=function(t){return jg(t)?"{`".concat(t,"`}"):t},Lg=function(t){var n=t;return n.endsWith(" ")&&(n=n.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),n.startsWith(" ")&&(n=n.replace(/^(\s+)(.*)$/,"{'$1'}$2")),n},Ha=function(e,t,n,r){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(Lg(Pg(String(e.value)))):"";if(e.type==="ReactElement")return mu(e,t,n,r);if(e.type==="ReactFragment")return Bg(e,t,n,r);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},Og=function(e,t){return Ha(e,!1,0,t)},Ig=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.filterProps,i=r===void 0?[]:r,o=n.showDefaultProps,u=o===void 0?!0:o,c=n.showFunctions,d=c===void 0?!1:c,h=n.functionValue,g=n.tabStop,v=g===void 0?2:g,D=n.useBooleanShorthandSyntax,b=D===void 0?!0:D,k=n.useFragmentShortSyntax,x=k===void 0?!0:k,C=n.sortProps,T=C===void 0?!0:C,E=n.maxInlineAttributesLineLength,_=n.displayName;if(!t)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var F={filterProps:i,showDefaultProps:u,showFunctions:d,functionValue:h,tabStop:v,useBooleanShorthandSyntax:b,useFragmentShortSyntax:x,sortProps:T,maxInlineAttributesLineLength:E,displayName:_};return Og(ps(t,F),F)},Mg=Object.create,Ua=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,qg=Object.getOwnPropertyNames,Hg=Object.getPrototypeOf,Ug=Object.prototype.hasOwnProperty,vu=e=>{throw TypeError(e)},Wg=(e,t)=>()=>(e&&(t=e(e=0)),t),ds=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wa=(e,t)=>{for(var n in t)Ua(e,n,{get:t[n],enumerable:!0})},Du=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qg(t))!Ug.call(e,i)&&i!==n&&Ua(e,i,{get:()=>t[i],enumerable:!(r=Rg(t,i))||r.enumerable});return e},za=(e,t,n)=>(n=e!=null?Mg(Hg(e)):{},Du(Ua(n,"default",{value:e,enumerable:!0}),e)),zg=e=>Du(Ua({},"__esModule",{value:!0}),e),Vg=(e,t,n)=>t.has(e)||vu("Cannot "+n),Gg=(e,t,n)=>t.has(e)?vu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),zr=(e,t,n)=>(Vg(e,t,"access private method"),n),hs=ds((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n}),yu={};Wa(yu,{default:()=>ku,shouldHighlight:()=>bu});var bu,ku,Yg=Wg(()=>{bu=()=>!1,ku=String}),Kg=ds((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n}};t.exports=r(),t.exports.createColors=r}),Jg=ds(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=b,e.default=k;var t=(Yg(),zg(yu)),n=i(Kg(),!0);function r(x){if(typeof WeakMap!="function")return null;var C=new WeakMap,T=new WeakMap;return(r=function(E){return E?T:C})(x)}function i(x,C){if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var T=r(C);if(T&&T.has(x))return T.get(x);var E={__proto__:null},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in x)if(F!=="default"&&{}.hasOwnProperty.call(x,F)){var A=_?Object.getOwnPropertyDescriptor(x,F):null;A&&(A.get||A.set)?Object.defineProperty(E,F,A):E[F]=x[F]}return E.default=x,T&&T.set(x,E),E}var o=n.default,u=(x,C)=>T=>x(C(T)),c;function d(x){return x?(c!=null||(c=(0,n.createColors)(!0)),c):o}var h=!1;function g(x){return{gutter:x.gray,marker:u(x.red,x.bold),message:u(x.red,x.bold)}}var v=/\r\n|[\n\r\u2028\u2029]/;function D(x,C,T){let E=Object.assign({column:0,line:-1},x.start),_=Object.assign({},E,x.end),{linesAbove:F=2,linesBelow:A=3}=T||{},$=E.line,P=E.column,I=_.line,j=_.column,z=Math.max($-(F+1),0),K=Math.min(C.length,I+A);$===-1&&(z=0),I===-1&&(K=C.length);let G=I-$,L={};if(G)for(let N=0;N<=G;N++){let H=N+$;if(!P)L[H]=!0;else if(N===0){let Q=C[H-1].length;L[H]=[P,Q-P+1]}else if(N===G)L[H]=[0,j];else{let Q=C[H-N].length;L[H]=[0,Q]}}else P===j?P?L[$]=[P,0]:L[$]=!0:L[$]=[P,j-P];return{start:z,end:K,markerLines:L}}function b(x,C,T={}){let E=(T.highlightCode||T.forceColor)&&(0,t.shouldHighlight)(T),_=d(T.forceColor),F=g(_),A=(L,N)=>E?L(N):N,$=x.split(v),{start:P,end:I,markerLines:j}=D(C,$,T),z=C.start&&typeof C.start.column=="number",K=String(I).length,G=(E?(0,t.default)(x,T):x).split(v,I).slice(P,I).map((L,N)=>{let H=P+1+N,Q=` ${` ${H}`.slice(-K)} |`,fe=j[H],ee=!j[H+1];if(fe){let ue="";if(Array.isArray(fe)){let me=L.slice(0,Math.max(fe[0]-1,0)).replace(/[^\t]/g," "),ie=fe[1]||1;ue=[`
532
+ `,T+=Xt(I-1,C)),T+="</".concat(u,">")}else fu(P,E,n,C,b)||(T+=" "),T+="/>";return T},Fg="",gu="React.Fragment",Ag=function(t,n,r){var i={};return n&&(i={key:n}),{type:"ReactElement",displayName:t,props:i,defaultProps:{},childrens:r}},$g=function(t){var n=t.key;return!!n},Tg=function(t){var n=t.childrens;return n.length===0},Bg=function(e,t,n,r){var i=e.type,o=e.key,u=e.childrens;if(i!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(i));var c=r.useFragmentShortSyntax,d;return c?Tg(e)||$g(e)?d=gu:d=Fg:d=gu,mu(Ag(d,o,u),t,n,r)},Ng=["<",">","{","}"],jg=function(t){return Ng.some(function(n){return t.includes(n)})},Pg=function(t){return jg(t)?"{`".concat(t,"`}"):t},Lg=function(t){var n=t;return n.endsWith(" ")&&(n=n.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),n.startsWith(" ")&&(n=n.replace(/^(\s+)(.*)$/,"{'$1'}$2")),n},Ha=function(e,t,n,r){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(Lg(Pg(String(e.value)))):"";if(e.type==="ReactElement")return mu(e,t,n,r);if(e.type==="ReactFragment")return Bg(e,t,n,r);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},Og=function(e,t){return Ha(e,!1,0,t)},Ig=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.filterProps,i=r===void 0?[]:r,o=n.showDefaultProps,u=o===void 0?!0:o,c=n.showFunctions,d=c===void 0?!1:c,h=n.functionValue,g=n.tabStop,v=g===void 0?2:g,D=n.useBooleanShorthandSyntax,b=D===void 0?!0:D,k=n.useFragmentShortSyntax,x=k===void 0?!0:k,C=n.sortProps,T=C===void 0?!0:C,E=n.maxInlineAttributesLineLength,_=n.displayName;if(!t)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var F={filterProps:i,showDefaultProps:u,showFunctions:d,functionValue:h,tabStop:v,useBooleanShorthandSyntax:b,useFragmentShortSyntax:x,sortProps:T,maxInlineAttributesLineLength:E,displayName:_};return Og(ps(t,F),F)},Mg=Object.create,Ua=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,qg=Object.getOwnPropertyNames,Hg=Object.getPrototypeOf,Ug=Object.prototype.hasOwnProperty,vu=e=>{throw TypeError(e)},Wg=(e,t)=>()=>(e&&(t=e(e=0)),t),ds=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wa=(e,t)=>{for(var n in t)Ua(e,n,{get:t[n],enumerable:!0})},Du=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qg(t))!Ug.call(e,i)&&i!==n&&Ua(e,i,{get:()=>t[i],enumerable:!(r=Rg(t,i))||r.enumerable});return e},za=(e,t,n)=>(n=e!=null?Mg(Hg(e)):{},Du(Ua(n,"default",{value:e,enumerable:!0}),e)),zg=e=>Du(Ua({},"__esModule",{value:!0}),e),Vg=(e,t,n)=>t.has(e)||vu("Cannot "+n),Gg=(e,t,n)=>t.has(e)?vu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Vr=(e,t,n)=>(Vg(e,t,"access private method"),n),hs=ds((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n}),yu={};Wa(yu,{default:()=>ku,shouldHighlight:()=>bu});var bu,ku,Yg=Wg(()=>{bu=()=>!1,ku=String}),Kg=ds((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n}};t.exports=r(),t.exports.createColors=r}),Jg=ds(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=b,e.default=k;var t=(Yg(),zg(yu)),n=i(Kg(),!0);function r(x){if(typeof WeakMap!="function")return null;var C=new WeakMap,T=new WeakMap;return(r=function(E){return E?T:C})(x)}function i(x,C){if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var T=r(C);if(T&&T.has(x))return T.get(x);var E={__proto__:null},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in x)if(F!=="default"&&{}.hasOwnProperty.call(x,F)){var A=_?Object.getOwnPropertyDescriptor(x,F):null;A&&(A.get||A.set)?Object.defineProperty(E,F,A):E[F]=x[F]}return E.default=x,T&&T.set(x,E),E}var o=n.default,u=(x,C)=>T=>x(C(T)),c;function d(x){return x?(c!=null||(c=(0,n.createColors)(!0)),c):o}var h=!1;function g(x){return{gutter:x.gray,marker:u(x.red,x.bold),message:u(x.red,x.bold)}}var v=/\r\n|[\n\r\u2028\u2029]/;function D(x,C,T){let E=Object.assign({column:0,line:-1},x.start),_=Object.assign({},E,x.end),{linesAbove:F=2,linesBelow:A=3}=T||{},$=E.line,P=E.column,I=_.line,j=_.column,z=Math.max($-(F+1),0),K=Math.min(C.length,I+A);$===-1&&(z=0),I===-1&&(K=C.length);let G=I-$,L={};if(G)for(let N=0;N<=G;N++){let H=N+$;if(!P)L[H]=!0;else if(N===0){let Q=C[H-1].length;L[H]=[P,Q-P+1]}else if(N===G)L[H]=[0,j];else{let Q=C[H-N].length;L[H]=[0,Q]}}else P===j?P?L[$]=[P,0]:L[$]=!0:L[$]=[P,j-P];return{start:z,end:K,markerLines:L}}function b(x,C,T={}){let E=(T.highlightCode||T.forceColor)&&(0,t.shouldHighlight)(T),_=d(T.forceColor),F=g(_),A=(L,N)=>E?L(N):N,$=x.split(v),{start:P,end:I,markerLines:j}=D(C,$,T),z=C.start&&typeof C.start.column=="number",K=String(I).length,G=(E?(0,t.default)(x,T):x).split(v,I).slice(P,I).map((L,N)=>{let H=P+1+N,Q=` ${` ${H}`.slice(-K)} |`,fe=j[H],ee=!j[H+1];if(fe){let ue="";if(Array.isArray(fe)){let me=L.slice(0,Math.max(fe[0]-1,0)).replace(/[^\t]/g," "),ie=fe[1]||1;ue=[`
533
533
  `,A(F.gutter,Q.replace(/\d/g," "))," ",me,A(F.marker,"^").repeat(ie)].join(""),ee&&T.message&&(ue+=" "+A(F.message,T.message))}return[A(F.marker,">"),A(F.gutter,Q),L.length>0?` ${L}`:"",ue].join("")}else return` ${A(F.gutter,Q)}${L.length>0?` ${L}`:""}`}).join(`
534
534
  `);return T.message&&!z&&(G=`${" ".repeat(K+1)}${T.message}
535
535
  ${G}`),E?_.reset(G):G}function k(x,C,T,E={}){if(!h){h=!0;let _="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let F=new Error(_);F.name="DeprecationWarning",console.warn(new Error(_))}}return T=Math.max(T,0),b(x,{start:{column:T,line:C}},E)}}),Xg={};Wa(Xg,{__debug:()=>ZD,check:()=>XD,doc:()=>jc,format:()=>Hs,formatWithCursor:()=>Lc,getSupportInfo:()=>QD,util:()=>Pc,version:()=>ED});var Qg=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Va=Qg;function dn(){}dn.prototype={diff:function(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.callback;typeof r=="function"&&(i=r,r={}),this.options=r;var o=this;function u(_){return i?(setTimeout(function(){i(void 0,_)},0),!0):_}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var c=t.length,d=e.length,h=1,g=c+d;r.maxEditLength&&(g=Math.min(g,r.maxEditLength));var v=(n=r.timeout)!==null&&n!==void 0?n:1/0,D=Date.now()+v,b=[{oldPos:-1,lastComponent:void 0}],k=this.extractCommon(b[0],t,e,0);if(b[0].oldPos+1>=d&&k+1>=c)return u([{value:this.join(t),count:t.length}]);var x=-1/0,C=1/0;function T(){for(var _=Math.max(x,-h);_<=Math.min(C,h);_+=2){var F=void 0,A=b[_-1],$=b[_+1];A&&(b[_-1]=void 0);var P=!1;if($){var I=$.oldPos-_;P=$&&0<=I&&I<c}var j=A&&A.oldPos+1<d;if(!P&&!j){b[_]=void 0;continue}if(!j||P&&A.oldPos+1<$.oldPos?F=o.addToPath($,!0,void 0,0):F=o.addToPath(A,void 0,!0,1),k=o.extractCommon(F,t,e,_),F.oldPos+1>=d&&k+1>=c)return u(Zg(o,F.lastComponent,t,e,o.useLongestToken));b[_]=F,F.oldPos+1>=d&&(C=Math.min(C,_-1)),k+1>=c&&(x=Math.max(x,_+1))}h++}if(i)(function _(){setTimeout(function(){if(h>g||Date.now()>D)return i();T()||_()},0)})();else for(;h<=g&&Date.now()<=D;){var E=T();if(E)return E}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,u=e.oldPos,c=u-r,d=0;c+1<i&&u+1<o&&this.equals(t[c+1],n[u+1]);)c++,u++,d++;return d&&(e.lastComponent={count:d,previousComponent:e.lastComponent}),e.oldPos=u,c},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function Zg(e,t,n,r,i){for(var o=[],u;t;)o.push(t),u=t.previousComponent,delete t.previousComponent,t=u;o.reverse();for(var c=0,d=o.length,h=0,g=0;c<d;c++){var v=o[c];if(v.removed){if(v.value=e.join(r.slice(g,g+v.count)),g+=v.count,c&&o[c-1].added){var D=o[c-1];o[c-1]=o[c],o[c]=D}}else{if(!v.added&&i){var b=n.slice(h,h+v.count);b=b.map(function(x,C){var T=r[g+C];return T.length>x.length?T:x}),v.value=e.join(b)}else v.value=e.join(n.slice(h,h+v.count));h+=v.count,v.added||(g+=v.count)}}var k=o[d-1];return d>1&&typeof k.value=="string"&&(k.added||k.removed)&&e.equals("",k.value)&&(o[d-2].value+=k.value,o.pop()),o}var wu=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Cu=/\S/,xu=new dn;xu.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Cu.test(e)&&!Cu.test(t)},xu.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&wu.test(t[n])&&wu.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var _u=new dn;_u.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
536
- `));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var ev=new dn;ev.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var tv=new dn;tv.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ga(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ga=function(t){return typeof t}:Ga=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(e)}var nv=Object.prototype.toString,Vr=new dn;Vr.useLongestToken=!0,Vr.tokenize=_u.tokenize,Vr.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(o,u){return typeof u>"u"?n:u}:r;return typeof e=="string"?e:JSON.stringify(fs(e,null,null,i),i," ")},Vr.equals=function(e,t){return dn.prototype.equals.call(Vr,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function fs(e,t,n,r,i){t=t||[],n=n||[],r&&(e=r(i,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var u;if(nv.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),n.push(u),o=0;o<e.length;o+=1)u[o]=fs(e[o],t,n,r,i);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Ga(e)==="object"&&e!==null){t.push(e),u={},n.push(u);var c=[],d;for(d in e)e.hasOwnProperty(d)&&c.push(d);for(c.sort(),o=0;o<c.length;o+=1)d=c[o],u[d]=fs(e[d],t,n,r,d);t.pop(),n.pop()}else u=e;return u}var Ya=new dn;Ya.tokenize=function(e){return e.slice()},Ya.join=Ya.removeEmpty=function(e){return e};function rv(e,t,n){return Ya.diff(e,t,n)}function av(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
536
+ `));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var ev=new dn;ev.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var tv=new dn;tv.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ga(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ga=function(t){return typeof t}:Ga=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(e)}var nv=Object.prototype.toString,Gr=new dn;Gr.useLongestToken=!0,Gr.tokenize=_u.tokenize,Gr.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(o,u){return typeof u>"u"?n:u}:r;return typeof e=="string"?e:JSON.stringify(fs(e,null,null,i),i," ")},Gr.equals=function(e,t){return dn.prototype.equals.call(Gr,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function fs(e,t,n,r,i){t=t||[],n=n||[],r&&(e=r(i,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var u;if(nv.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),n.push(u),o=0;o<e.length;o+=1)u[o]=fs(e[o],t,n,r,i);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Ga(e)==="object"&&e!==null){t.push(e),u={},n.push(u);var c=[],d;for(d in e)e.hasOwnProperty(d)&&c.push(d);for(c.sort(),o=0;o<c.length;o+=1)d=c[o],u[d]=fs(e[d],t,n,r,d);t.pop(),n.pop()}else u=e;return u}var Ya=new dn;Ya.tokenize=function(e){return e.slice()},Ya.join=Ya.removeEmpty=function(e){return e};function rv(e,t,n){return Ya.diff(e,t,n)}function av(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
537
537
  `?"crlf":"cr":"lf"}function ms(e){switch(e){case"cr":return"\r";case"crlf":return`\r
538
538
  `;default:return`
539
539
  `}}function Su(e,t){let n;switch(t){case`
@@ -541,10 +541,10 @@ ${G}`),E?_.reset(G):G}function k(x,C,T,E={}){if(!h){h=!0;let _="Passing lineNumb
541
541
  `:n=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(n);return r?r.length:0}function iv(e){return Va(!1,e,/\r\n?/gu,`
542
542
  `)}var jn="string",Qt="array",Pn="cursor",Zt="indent",en="align",tn="trim",pt="group",Lt="fill",vt="if-break",nn="indent-if-break",rn="line-suffix",an="line-suffix-boundary",Qe="line",Ot="label",_t="break-parent",Eu=new Set([Pn,Zt,en,tn,pt,Lt,vt,nn,rn,an,Qe,Ot,_t]);function sv(e){if(typeof e=="string")return jn;if(Array.isArray(e))return Qt;if(!e)return;let{type:t}=e;if(Eu.has(t))return t}var Ln=sv,ov=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function lv(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
543
543
  Expected it to be 'string' or 'object'.`;if(Ln(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=ov([...Eu].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
544
- Expected it to be ${r}.`}var uv=class extends Error{constructor(t){super(lv(t));_r(this,"name","InvalidDocError");this.doc=t}},ir=uv,Fu={};function cv(e,t,n,r){let i=[e];for(;i.length>0;){let o=i.pop();if(o===Fu){n(i.pop());continue}n&&i.push(o,Fu);let u=Ln(o);if(!u)throw new ir(o);if((t==null?void 0:t(o))!==!1)switch(u){case Qt:case Lt:{let c=u===Qt?o:o.parts;for(let d=c.length,h=d-1;h>=0;--h)i.push(c[h]);break}case vt:i.push(o.flatContents,o.breakContents);break;case pt:if(r&&o.expandedStates)for(let c=o.expandedStates.length,d=c-1;d>=0;--d)i.push(o.expandedStates[d]);else i.push(o.contents);break;case en:case Zt:case nn:case Ot:case rn:i.push(o.contents);break;case jn:case Pn:case tn:case an:case Qe:case _t:break;default:throw new ir(o)}}}var gs=cv,pv=()=>{},dv=pv;function Ka(e){return{type:Zt,contents:e}}function sr(e,t){return{type:en,contents:t,n:e}}function Au(e,t={}){return dv(t.expandedStates),{type:pt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function hv(e){return sr(Number.NEGATIVE_INFINITY,e)}function fv(e){return sr({type:"root"},e)}function mv(e){return sr(-1,e)}function gv(e,t){return Au(e[0],{...t,expandedStates:e})}function $u(e){return{type:Lt,parts:e}}function vv(e,t="",n={}){return{type:vt,breakContents:e,flatContents:t,groupId:n.groupId}}function Dv(e,t){return{type:nn,contents:e,groupId:t.groupId,negate:t.negate}}function vs(e){return{type:rn,contents:e}}var yv={type:an},Ja={type:_t},bv={type:tn},Ds={type:Qe,hard:!0},Tu={type:Qe,hard:!0,literal:!0},Bu={type:Qe},kv={type:Qe,soft:!0},On=[Ds,Ja],Nu=[Tu,Ja],ys={type:Pn};function ju(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function Pu(e,t,n){let r=e;if(t>0){for(let i=0;i<Math.floor(t/n);++i)r=Ka(r);r=sr(t%n,r),r=sr(Number.NEGATIVE_INFINITY,r)}return r}function wv(e,t){return e?{type:Ot,label:e,contents:t}:t}function sn(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...sn(r));else{let i=sn(r);i!==""&&n.push(i)}return n}return e.type===vt?{...e,breakContents:sn(e.breakContents),flatContents:sn(e.flatContents)}:e.type===pt?{...e,contents:sn(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(sn)}:e.type===Lt?{type:"fill",parts:e.parts.map(sn)}:e.contents?{...e,contents:sn(e.contents)}:e}function Cv(e){let t=Object.create(null),n=new Set;return r(sn(e));function r(o,u,c){var d,h;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let g=o.map(r).filter(Boolean);return g.length===1?g[0]:`[${g.join(", ")}]`}if(o.type===Qe){let g=((d=c==null?void 0:c[u+1])==null?void 0:d.type)===_t;return o.literal?g?"literalline":"literallineWithoutBreakParent":o.hard?g?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===_t)return((h=c==null?void 0:c[u-1])==null?void 0:h.type)===Qe&&c[u-1].hard?void 0:"breakParent";if(o.type===tn)return"trim";if(o.type===Zt)return"indent("+r(o.contents)+")";if(o.type===en)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(o.contents)+")":o.n<0?"dedent("+r(o.contents)+")":o.n.type==="root"?"markAsRoot("+r(o.contents)+")":"align("+JSON.stringify(o.n)+", "+r(o.contents)+")";if(o.type===vt)return"ifBreak("+r(o.breakContents)+(o.flatContents?", "+r(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${i(o.groupId)} }`:"")+")";if(o.type===nn){let g=[];o.negate&&g.push("negate: true"),o.groupId&&g.push(`groupId: ${i(o.groupId)}`);let v=g.length>0?`, { ${g.join(", ")} }`:"";return`indentIfBreak(${r(o.contents)}${v})`}if(o.type===pt){let g=[];o.break&&o.break!=="propagated"&&g.push("shouldBreak: true"),o.id&&g.push(`id: ${i(o.id)}`);let v=g.length>0?`, { ${g.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(D=>r(D)).join(",")}]${v})`:`group(${r(o.contents)}${v})`}if(o.type===Lt)return`fill([${o.parts.map(g=>r(g)).join(", ")}])`;if(o.type===rn)return"lineSuffix("+r(o.contents)+")";if(o.type===an)return"lineSuffixBoundary";if(o.type===Ot)return`label(${JSON.stringify(o.label)}, ${r(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function i(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let u=o.description||"symbol";for(let c=0;;c++){let d=u+(c>0?` #${c}`:"");if(!n.has(d))return n.add(d),t[o]=`Symbol.for(${JSON.stringify(d)})`}}}var xv=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},Ge=xv,_v=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Sv(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ev(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Fv=e=>!(Sv(e)||Ev(e)),Av=/[^\x20-\x7F]/u;function $v(e){if(!e)return 0;if(!Av.test(e))return e.length;e=e.replace(_v()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=Fv(r)?1:2)}return t}var bs=$v;function Xa(e,t){if(typeof e=="string")return t(e);let n=new Map;return r(e);function r(o){if(n.has(o))return n.get(o);let u=i(o);return n.set(o,u),u}function i(o){switch(Ln(o)){case Qt:return t(o.map(r));case Lt:return t({...o,parts:o.parts.map(r)});case vt:return t({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case pt:{let{expandedStates:u,contents:c}=o;return u?(u=u.map(r),c=u[0]):c=r(c),t({...o,contents:c,expandedStates:u})}case en:case Zt:case nn:case Ot:case rn:return t({...o,contents:r(o.contents)});case jn:case Pn:case tn:case an:case Qe:case _t:return t(o);default:throw new ir(o)}}}function ks(e,t,n){let r=n,i=!1;function o(u){if(i)return!1;let c=t(u);c!==void 0&&(i=!0,r=c)}return gs(e,o),r}function Tv(e){if(e.type===pt&&e.break||e.type===Qe&&e.hard||e.type===_t)return!0}function Bv(e){return ks(e,Tv,!1)}function Lu(e){if(e.length>0){let t=Ge(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Nv(e){let t=new Set,n=[];function r(o){if(o.type===_t&&Lu(n),o.type===pt){if(n.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===pt&&n.pop().break&&Lu(n)}gs(e,r,i,!0)}function jv(e){return e.type===Qe&&!e.hard?e.soft?"":" ":e.type===vt?e.flatContents:e}function Pv(e){return Xa(e,jv)}function Ou(e){for(e=[...e];e.length>=2&&Ge(!1,e,-2).type===Qe&&Ge(!1,e,-1).type===_t;)e.length-=2;if(e.length>0){let t=Gr(Ge(!1,e,-1));e[e.length-1]=t}return e}function Gr(e){switch(Ln(e)){case Zt:case nn:case pt:case rn:case Ot:{let t=Gr(e.contents);return{...e,contents:t}}case vt:return{...e,breakContents:Gr(e.breakContents),flatContents:Gr(e.flatContents)};case Lt:return{...e,parts:Ou(e.parts)};case Qt:return Ou(e);case jn:return e.replace(/[\n\r]*$/u,"");case en:case Pn:case tn:case an:case Qe:case _t:break;default:throw new ir(e)}return e}function Iu(e){return Gr(Ov(e))}function Lv(e){switch(Ln(e)){case Lt:if(e.parts.every(t=>t===""))return"";break;case pt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===pt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case en:case Zt:case nn:case rn:if(!e.contents)return"";break;case vt:if(!e.flatContents&&!e.breakContents)return"";break;case Qt:{let t=[];for(let n of e){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof Ge(!1,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case jn:case Pn:case tn:case an:case Qe:case Ot:case _t:break;default:throw new ir(e)}return e}function Ov(e){return Xa(e,t=>Lv(t))}function Iv(e,t=Nu){return Xa(e,n=>typeof n=="string"?ju(t,n.split(`
545
- `)):n)}function Mv(e){if(e.type===Qe)return!0}function Rv(e){return ks(e,Mv,!1)}function Mu(e,t){return e.type===Ot?{...e,contents:t(e.contents)}:t(e)}var dt=Symbol("MODE_BREAK"),It=Symbol("MODE_FLAT"),Yr=Symbol("cursor");function Ru(){return{value:"",length:0,queue:[]}}function qv(e,t){return ws(e,{type:"indent"},t)}function Hv(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||Ru():t<0?ws(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:ws(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function ws(e,t,n){let r=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",o=0,u=0,c=0;for(let k of r)switch(k.type){case"indent":g(),n.useTabs?d(1):h(n.tabWidth);break;case"stringAlign":g(),i+=k.n,o+=k.n.length;break;case"numberAlign":u+=1,c+=k.n;break;default:throw new Error(`Unexpected type '${k.type}'`)}return D(),{...e,value:i,length:o,queue:r};function d(k){i+=" ".repeat(k),o+=n.tabWidth*k}function h(k){i+=" ".repeat(k),o+=k}function g(){n.useTabs?v():D()}function v(){u>0&&d(u),b()}function D(){c>0&&h(c),b()}function b(){u=0,c=0}}function Cs(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===Yr){n++;continue}for(let o=i.length-1;o>=0;o--){let u=i[o];if(u===" "||u===" ")t++;else{e[r]=i.slice(0,o+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(Yr);return t}function Qa(e,t,n,r,i,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,c=[e],d=[];for(;n>=0;){if(c.length===0){if(u===0)return!0;c.push(t[--u]);continue}let{mode:h,doc:g}=c.pop(),v=Ln(g);switch(v){case jn:d.push(g),n-=bs(g);break;case Qt:case Lt:{let D=v===Qt?g:g.parts;for(let b=D.length-1;b>=0;b--)c.push({mode:h,doc:D[b]});break}case Zt:case en:case nn:case Ot:c.push({mode:h,doc:g.contents});break;case tn:n+=Cs(d);break;case pt:{if(o&&g.break)return!1;let D=g.break?dt:h,b=g.expandedStates&&D===dt?Ge(!1,g.expandedStates,-1):g.contents;c.push({mode:D,doc:b});break}case vt:{let D=(g.groupId?i[g.groupId]||It:h)===dt?g.breakContents:g.flatContents;D&&c.push({mode:h,doc:D});break}case Qe:if(h===dt||g.hard)return!0;g.soft||(d.push(" "),n--);break;case rn:r=!0;break;case an:if(r)return!1;break}}return!1}function Za(e,t){let n={},r=t.printWidth,i=ms(t.endOfLine),o=0,u=[{ind:Ru(),mode:dt,doc:e}],c=[],d=!1,h=[],g=0;for(Nv(e);u.length>0;){let{ind:D,mode:b,doc:k}=u.pop();switch(Ln(k)){case jn:{let x=i!==`
544
+ Expected it to be ${r}.`}var uv=class extends Error{constructor(t){super(lv(t));_r(this,"name","InvalidDocError");this.doc=t}},ir=uv,Fu={};function cv(e,t,n,r){let i=[e];for(;i.length>0;){let o=i.pop();if(o===Fu){n(i.pop());continue}n&&i.push(o,Fu);let u=Ln(o);if(!u)throw new ir(o);if((t==null?void 0:t(o))!==!1)switch(u){case Qt:case Lt:{let c=u===Qt?o:o.parts;for(let d=c.length,h=d-1;h>=0;--h)i.push(c[h]);break}case vt:i.push(o.flatContents,o.breakContents);break;case pt:if(r&&o.expandedStates)for(let c=o.expandedStates.length,d=c-1;d>=0;--d)i.push(o.expandedStates[d]);else i.push(o.contents);break;case en:case Zt:case nn:case Ot:case rn:i.push(o.contents);break;case jn:case Pn:case tn:case an:case Qe:case _t:break;default:throw new ir(o)}}}var gs=cv,pv=()=>{},dv=pv;function Ka(e){return{type:Zt,contents:e}}function sr(e,t){return{type:en,contents:t,n:e}}function Au(e,t={}){return dv(t.expandedStates),{type:pt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function hv(e){return sr(Number.NEGATIVE_INFINITY,e)}function fv(e){return sr({type:"root"},e)}function mv(e){return sr(-1,e)}function gv(e,t){return Au(e[0],{...t,expandedStates:e})}function $u(e){return{type:Lt,parts:e}}function vv(e,t="",n={}){return{type:vt,breakContents:e,flatContents:t,groupId:n.groupId}}function Dv(e,t){return{type:nn,contents:e,groupId:t.groupId,negate:t.negate}}function vs(e){return{type:rn,contents:e}}var yv={type:an},Ja={type:_t},bv={type:tn},Ds={type:Qe,hard:!0},Tu={type:Qe,hard:!0,literal:!0},Bu={type:Qe},kv={type:Qe,soft:!0},On=[Ds,Ja],Nu=[Tu,Ja],ys={type:Pn};function ju(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function Pu(e,t,n){let r=e;if(t>0){for(let i=0;i<Math.floor(t/n);++i)r=Ka(r);r=sr(t%n,r),r=sr(Number.NEGATIVE_INFINITY,r)}return r}function wv(e,t){return e?{type:Ot,label:e,contents:t}:t}function sn(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...sn(r));else{let i=sn(r);i!==""&&n.push(i)}return n}return e.type===vt?{...e,breakContents:sn(e.breakContents),flatContents:sn(e.flatContents)}:e.type===pt?{...e,contents:sn(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(sn)}:e.type===Lt?{type:"fill",parts:e.parts.map(sn)}:e.contents?{...e,contents:sn(e.contents)}:e}function Cv(e){let t=Object.create(null),n=new Set;return r(sn(e));function r(o,u,c){var d,h;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let g=o.map(r).filter(Boolean);return g.length===1?g[0]:`[${g.join(", ")}]`}if(o.type===Qe){let g=((d=c==null?void 0:c[u+1])==null?void 0:d.type)===_t;return o.literal?g?"literalline":"literallineWithoutBreakParent":o.hard?g?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===_t)return((h=c==null?void 0:c[u-1])==null?void 0:h.type)===Qe&&c[u-1].hard?void 0:"breakParent";if(o.type===tn)return"trim";if(o.type===Zt)return"indent("+r(o.contents)+")";if(o.type===en)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(o.contents)+")":o.n<0?"dedent("+r(o.contents)+")":o.n.type==="root"?"markAsRoot("+r(o.contents)+")":"align("+JSON.stringify(o.n)+", "+r(o.contents)+")";if(o.type===vt)return"ifBreak("+r(o.breakContents)+(o.flatContents?", "+r(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${i(o.groupId)} }`:"")+")";if(o.type===nn){let g=[];o.negate&&g.push("negate: true"),o.groupId&&g.push(`groupId: ${i(o.groupId)}`);let v=g.length>0?`, { ${g.join(", ")} }`:"";return`indentIfBreak(${r(o.contents)}${v})`}if(o.type===pt){let g=[];o.break&&o.break!=="propagated"&&g.push("shouldBreak: true"),o.id&&g.push(`id: ${i(o.id)}`);let v=g.length>0?`, { ${g.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(D=>r(D)).join(",")}]${v})`:`group(${r(o.contents)}${v})`}if(o.type===Lt)return`fill([${o.parts.map(g=>r(g)).join(", ")}])`;if(o.type===rn)return"lineSuffix("+r(o.contents)+")";if(o.type===an)return"lineSuffixBoundary";if(o.type===Ot)return`label(${JSON.stringify(o.label)}, ${r(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function i(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let u=o.description||"symbol";for(let c=0;;c++){let d=u+(c>0?` #${c}`:"");if(!n.has(d))return n.add(d),t[o]=`Symbol.for(${JSON.stringify(d)})`}}}var xv=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},Ke=xv,_v=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Sv(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ev(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Fv=e=>!(Sv(e)||Ev(e)),Av=/[^\x20-\x7F]/u;function $v(e){if(!e)return 0;if(!Av.test(e))return e.length;e=e.replace(_v()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=Fv(r)?1:2)}return t}var bs=$v;function Xa(e,t){if(typeof e=="string")return t(e);let n=new Map;return r(e);function r(o){if(n.has(o))return n.get(o);let u=i(o);return n.set(o,u),u}function i(o){switch(Ln(o)){case Qt:return t(o.map(r));case Lt:return t({...o,parts:o.parts.map(r)});case vt:return t({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case pt:{let{expandedStates:u,contents:c}=o;return u?(u=u.map(r),c=u[0]):c=r(c),t({...o,contents:c,expandedStates:u})}case en:case Zt:case nn:case Ot:case rn:return t({...o,contents:r(o.contents)});case jn:case Pn:case tn:case an:case Qe:case _t:return t(o);default:throw new ir(o)}}}function ks(e,t,n){let r=n,i=!1;function o(u){if(i)return!1;let c=t(u);c!==void 0&&(i=!0,r=c)}return gs(e,o),r}function Tv(e){if(e.type===pt&&e.break||e.type===Qe&&e.hard||e.type===_t)return!0}function Bv(e){return ks(e,Tv,!1)}function Lu(e){if(e.length>0){let t=Ke(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Nv(e){let t=new Set,n=[];function r(o){if(o.type===_t&&Lu(n),o.type===pt){if(n.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===pt&&n.pop().break&&Lu(n)}gs(e,r,i,!0)}function jv(e){return e.type===Qe&&!e.hard?e.soft?"":" ":e.type===vt?e.flatContents:e}function Pv(e){return Xa(e,jv)}function Ou(e){for(e=[...e];e.length>=2&&Ke(!1,e,-2).type===Qe&&Ke(!1,e,-1).type===_t;)e.length-=2;if(e.length>0){let t=Yr(Ke(!1,e,-1));e[e.length-1]=t}return e}function Yr(e){switch(Ln(e)){case Zt:case nn:case pt:case rn:case Ot:{let t=Yr(e.contents);return{...e,contents:t}}case vt:return{...e,breakContents:Yr(e.breakContents),flatContents:Yr(e.flatContents)};case Lt:return{...e,parts:Ou(e.parts)};case Qt:return Ou(e);case jn:return e.replace(/[\n\r]*$/u,"");case en:case Pn:case tn:case an:case Qe:case _t:break;default:throw new ir(e)}return e}function Iu(e){return Yr(Ov(e))}function Lv(e){switch(Ln(e)){case Lt:if(e.parts.every(t=>t===""))return"";break;case pt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===pt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case en:case Zt:case nn:case rn:if(!e.contents)return"";break;case vt:if(!e.flatContents&&!e.breakContents)return"";break;case Qt:{let t=[];for(let n of e){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof Ke(!1,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case jn:case Pn:case tn:case an:case Qe:case Ot:case _t:break;default:throw new ir(e)}return e}function Ov(e){return Xa(e,t=>Lv(t))}function Iv(e,t=Nu){return Xa(e,n=>typeof n=="string"?ju(t,n.split(`
545
+ `)):n)}function Mv(e){if(e.type===Qe)return!0}function Rv(e){return ks(e,Mv,!1)}function Mu(e,t){return e.type===Ot?{...e,contents:t(e.contents)}:t(e)}var dt=Symbol("MODE_BREAK"),It=Symbol("MODE_FLAT"),Kr=Symbol("cursor");function Ru(){return{value:"",length:0,queue:[]}}function qv(e,t){return ws(e,{type:"indent"},t)}function Hv(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||Ru():t<0?ws(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:ws(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function ws(e,t,n){let r=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",o=0,u=0,c=0;for(let k of r)switch(k.type){case"indent":g(),n.useTabs?d(1):h(n.tabWidth);break;case"stringAlign":g(),i+=k.n,o+=k.n.length;break;case"numberAlign":u+=1,c+=k.n;break;default:throw new Error(`Unexpected type '${k.type}'`)}return D(),{...e,value:i,length:o,queue:r};function d(k){i+=" ".repeat(k),o+=n.tabWidth*k}function h(k){i+=" ".repeat(k),o+=k}function g(){n.useTabs?v():D()}function v(){u>0&&d(u),b()}function D(){c>0&&h(c),b()}function b(){u=0,c=0}}function Cs(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===Kr){n++;continue}for(let o=i.length-1;o>=0;o--){let u=i[o];if(u===" "||u===" ")t++;else{e[r]=i.slice(0,o+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(Kr);return t}function Qa(e,t,n,r,i,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,c=[e],d=[];for(;n>=0;){if(c.length===0){if(u===0)return!0;c.push(t[--u]);continue}let{mode:h,doc:g}=c.pop(),v=Ln(g);switch(v){case jn:d.push(g),n-=bs(g);break;case Qt:case Lt:{let D=v===Qt?g:g.parts;for(let b=D.length-1;b>=0;b--)c.push({mode:h,doc:D[b]});break}case Zt:case en:case nn:case Ot:c.push({mode:h,doc:g.contents});break;case tn:n+=Cs(d);break;case pt:{if(o&&g.break)return!1;let D=g.break?dt:h,b=g.expandedStates&&D===dt?Ke(!1,g.expandedStates,-1):g.contents;c.push({mode:D,doc:b});break}case vt:{let D=(g.groupId?i[g.groupId]||It:h)===dt?g.breakContents:g.flatContents;D&&c.push({mode:h,doc:D});break}case Qe:if(h===dt||g.hard)return!0;g.soft||(d.push(" "),n--);break;case rn:r=!0;break;case an:if(r)return!1;break}}return!1}function Za(e,t){let n={},r=t.printWidth,i=ms(t.endOfLine),o=0,u=[{ind:Ru(),mode:dt,doc:e}],c=[],d=!1,h=[],g=0;for(Nv(e);u.length>0;){let{ind:D,mode:b,doc:k}=u.pop();switch(Ln(k)){case jn:{let x=i!==`
546
546
  `?Va(!1,k,`
547
- `,i):k;c.push(x),u.length>0&&(o+=bs(x));break}case Qt:for(let x=k.length-1;x>=0;x--)u.push({ind:D,mode:b,doc:k[x]});break;case Pn:if(g>=2)throw new Error("There are too many 'cursor' in doc.");c.push(Yr),g++;break;case Zt:u.push({ind:qv(D,t),mode:b,doc:k.contents});break;case en:u.push({ind:Hv(D,k.n,t),mode:b,doc:k.contents});break;case tn:o-=Cs(c);break;case pt:switch(b){case It:if(!d){u.push({ind:D,mode:k.break?dt:It,doc:k.contents});break}case dt:{d=!1;let x={ind:D,mode:It,doc:k.contents},C=r-o,T=h.length>0;if(!k.break&&Qa(x,u,C,T,n))u.push(x);else if(k.expandedStates){let E=Ge(!1,k.expandedStates,-1);if(k.break){u.push({ind:D,mode:dt,doc:E});break}else for(let _=1;_<k.expandedStates.length+1;_++)if(_>=k.expandedStates.length){u.push({ind:D,mode:dt,doc:E});break}else{let F=k.expandedStates[_],A={ind:D,mode:It,doc:F};if(Qa(A,u,C,T,n)){u.push(A);break}}}else u.push({ind:D,mode:dt,doc:k.contents});break}}k.id&&(n[k.id]=Ge(!1,u,-1).mode);break;case Lt:{let x=r-o,{parts:C}=k;if(C.length===0)break;let[T,E]=C,_={ind:D,mode:It,doc:T},F={ind:D,mode:dt,doc:T},A=Qa(_,[],x,h.length>0,n,!0);if(C.length===1){A?u.push(_):u.push(F);break}let $={ind:D,mode:It,doc:E},P={ind:D,mode:dt,doc:E};if(C.length===2){A?u.push($,_):u.push(P,F);break}C.splice(0,2);let I={ind:D,mode:b,doc:$u(C)},j=C[0];Qa({ind:D,mode:It,doc:[T,E,j]},[],x,h.length>0,n,!0)?u.push(I,$,_):A?u.push(I,P,_):u.push(I,P,F);break}case vt:case nn:{let x=k.groupId?n[k.groupId]:b;if(x===dt){let C=k.type===vt?k.breakContents:k.negate?k.contents:Ka(k.contents);C&&u.push({ind:D,mode:b,doc:C})}if(x===It){let C=k.type===vt?k.flatContents:k.negate?Ka(k.contents):k.contents;C&&u.push({ind:D,mode:b,doc:C})}break}case rn:h.push({ind:D,mode:b,doc:k.contents});break;case an:h.length>0&&u.push({ind:D,mode:b,doc:Ds});break;case Qe:switch(b){case It:if(k.hard)d=!0;else{k.soft||(c.push(" "),o+=1);break}case dt:if(h.length>0){u.push({ind:D,mode:b,doc:k},...h.reverse()),h.length=0;break}k.literal?D.root?(c.push(i,D.root.value),o=D.root.length):(c.push(i),o=0):(o-=Cs(c),c.push(i+D.value),o=D.length);break}break;case Ot:u.push({ind:D,mode:b,doc:k.contents});break;case _t:break;default:throw new ir(k)}u.length===0&&h.length>0&&(u.push(...h.reverse()),h.length=0)}let v=c.indexOf(Yr);if(v!==-1){let D=c.indexOf(Yr,v+1),b=c.slice(0,v).join(""),k=c.slice(v+1,D).join(""),x=c.slice(D+1).join("");return{formatted:b+k+x,cursorNodeStart:b.length,cursorNodeText:k}}return{formatted:c.join("")}}function Uv(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===" "?r=r+t-r%t:r++;return r}var xs=Uv,In,_s,ei,Wv=class{constructor(e){Gg(this,In),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Ge(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Ge(!1,this.stack,-2)}get node(){return Ge(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Ge(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...zr(this,In,ei).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Ge(!1,e,-2):null}getValue(){return Ge(!1,this.stack,-1)}getNode(e=0){let t=zr(this,In,_s).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,i=Ge(!1,n,-1);for(let o of t)i=i[o],n.push(o,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=zr(this,In,_s).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=Ge(!1,n,-1);for(let o of t)i=i[o],n.push(o,i);try{for(let o=0;o<i.length;++o)n.push(o,i[o]),e(this,o,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((r,i,o)=>{n[i]=e(r,i,o)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,o))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of zr(this,In,ei).call(this))if(e(t))return t}hasAncestor(e){for(let t of zr(this,In,ei).call(this))if(e(t))return!0;return!1}};In=new WeakSet,_s=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1},ei=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};var zv=Wv,qu=new Proxy(()=>{},{get:()=>qu}),Ss=qu;function Vv(e){return e!==null&&typeof e=="object"}var Gv=Vv;function*Hu(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=o=>Gv(o)&&r(o);for(let o of n(e)){let u=e[o];if(Array.isArray(u))for(let c of u)i(c)&&(yield c);else i(u)&&(yield u)}}function*Yv(e,t){let n=[e];for(let r=0;r<n.length;r++){let i=n[r];for(let o of Hu(i,t))yield o,n.push(o)}}function Kr(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:o}=t,u=n;for(;u>=0&&u<o;){let c=t.charAt(u);if(e instanceof RegExp){if(!e.test(c))return u}else if(!e.includes(c))return u;i?u--:u++}return u===-1||u===o?u:!1}}var Kv=Kr(/\s/u),hn=Kr(" "),Uu=Kr(",; "),Wu=Kr(/[^\n\r]/u);function Jv(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&i===`
547
+ `,i):k;c.push(x),u.length>0&&(o+=bs(x));break}case Qt:for(let x=k.length-1;x>=0;x--)u.push({ind:D,mode:b,doc:k[x]});break;case Pn:if(g>=2)throw new Error("There are too many 'cursor' in doc.");c.push(Kr),g++;break;case Zt:u.push({ind:qv(D,t),mode:b,doc:k.contents});break;case en:u.push({ind:Hv(D,k.n,t),mode:b,doc:k.contents});break;case tn:o-=Cs(c);break;case pt:switch(b){case It:if(!d){u.push({ind:D,mode:k.break?dt:It,doc:k.contents});break}case dt:{d=!1;let x={ind:D,mode:It,doc:k.contents},C=r-o,T=h.length>0;if(!k.break&&Qa(x,u,C,T,n))u.push(x);else if(k.expandedStates){let E=Ke(!1,k.expandedStates,-1);if(k.break){u.push({ind:D,mode:dt,doc:E});break}else for(let _=1;_<k.expandedStates.length+1;_++)if(_>=k.expandedStates.length){u.push({ind:D,mode:dt,doc:E});break}else{let F=k.expandedStates[_],A={ind:D,mode:It,doc:F};if(Qa(A,u,C,T,n)){u.push(A);break}}}else u.push({ind:D,mode:dt,doc:k.contents});break}}k.id&&(n[k.id]=Ke(!1,u,-1).mode);break;case Lt:{let x=r-o,{parts:C}=k;if(C.length===0)break;let[T,E]=C,_={ind:D,mode:It,doc:T},F={ind:D,mode:dt,doc:T},A=Qa(_,[],x,h.length>0,n,!0);if(C.length===1){A?u.push(_):u.push(F);break}let $={ind:D,mode:It,doc:E},P={ind:D,mode:dt,doc:E};if(C.length===2){A?u.push($,_):u.push(P,F);break}C.splice(0,2);let I={ind:D,mode:b,doc:$u(C)},j=C[0];Qa({ind:D,mode:It,doc:[T,E,j]},[],x,h.length>0,n,!0)?u.push(I,$,_):A?u.push(I,P,_):u.push(I,P,F);break}case vt:case nn:{let x=k.groupId?n[k.groupId]:b;if(x===dt){let C=k.type===vt?k.breakContents:k.negate?k.contents:Ka(k.contents);C&&u.push({ind:D,mode:b,doc:C})}if(x===It){let C=k.type===vt?k.flatContents:k.negate?Ka(k.contents):k.contents;C&&u.push({ind:D,mode:b,doc:C})}break}case rn:h.push({ind:D,mode:b,doc:k.contents});break;case an:h.length>0&&u.push({ind:D,mode:b,doc:Ds});break;case Qe:switch(b){case It:if(k.hard)d=!0;else{k.soft||(c.push(" "),o+=1);break}case dt:if(h.length>0){u.push({ind:D,mode:b,doc:k},...h.reverse()),h.length=0;break}k.literal?D.root?(c.push(i,D.root.value),o=D.root.length):(c.push(i),o=0):(o-=Cs(c),c.push(i+D.value),o=D.length);break}break;case Ot:u.push({ind:D,mode:b,doc:k.contents});break;case _t:break;default:throw new ir(k)}u.length===0&&h.length>0&&(u.push(...h.reverse()),h.length=0)}let v=c.indexOf(Kr);if(v!==-1){let D=c.indexOf(Kr,v+1),b=c.slice(0,v).join(""),k=c.slice(v+1,D).join(""),x=c.slice(D+1).join("");return{formatted:b+k+x,cursorNodeStart:b.length,cursorNodeText:k}}return{formatted:c.join("")}}function Uv(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===" "?r=r+t-r%t:r++;return r}var xs=Uv,In,_s,ei,Wv=class{constructor(e){Gg(this,In),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Ke(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Ke(!1,this.stack,-2)}get node(){return Ke(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Ke(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Vr(this,In,ei).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Ke(!1,e,-2):null}getValue(){return Ke(!1,this.stack,-1)}getNode(e=0){let t=Vr(this,In,_s).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,i=Ke(!1,n,-1);for(let o of t)i=i[o],n.push(o,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=Vr(this,In,_s).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=Ke(!1,n,-1);for(let o of t)i=i[o],n.push(o,i);try{for(let o=0;o<i.length;++o)n.push(o,i[o]),e(this,o,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((r,i,o)=>{n[i]=e(r,i,o)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,o))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of Vr(this,In,ei).call(this))if(e(t))return t}hasAncestor(e){for(let t of Vr(this,In,ei).call(this))if(e(t))return!0;return!1}};In=new WeakSet,_s=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1},ei=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};var zv=Wv,qu=new Proxy(()=>{},{get:()=>qu}),Ss=qu;function Vv(e){return e!==null&&typeof e=="object"}var Gv=Vv;function*Hu(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=o=>Gv(o)&&r(o);for(let o of n(e)){let u=e[o];if(Array.isArray(u))for(let c of u)i(c)&&(yield c);else i(u)&&(yield u)}}function*Yv(e,t){let n=[e];for(let r=0;r<n.length;r++){let i=n[r];for(let o of Hu(i,t))yield o,n.push(o)}}function Jr(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:o}=t,u=n;for(;u>=0&&u<o;){let c=t.charAt(u);if(e instanceof RegExp){if(!e.test(c))return u}else if(!e.includes(c))return u;i?u--:u++}return u===-1||u===o?u:!1}}var Kv=Jr(/\s/u),hn=Jr(" "),Uu=Jr(",; "),Wu=Jr(/[^\n\r]/u);function Jv(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&i===`
548
548
  `)return t-2;if(i===`
549
549
  `||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
550
550
  `)return t+2;if(i===`
@@ -552,51 +552,51 @@ Expected it to be ${r}.`}var uv=class extends Error{constructor(t){super(lv(t));
552
552
  (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
553
553
  The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
554
554
  The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
555
- in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Qu({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(i=>i.languages??[]),r=[];for(let i of f2(Object.assign({},...e.map(({options:o})=>o),d2)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(o=>!o.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...h2(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter(o=>{var u;return((u=o.defaultOptions)==null?void 0:u[i.name])!==void 0}).map(o=>[o.name,o.defaultOptions[i.name]])),r.push(i));return{languages:n,options:r}}function*h2(e,t,n){let r=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let o of i.parsers)if(!r.has(o)){r.add(o);let u=n.find(d=>d.parsers&&Object.prototype.hasOwnProperty.call(d.parsers,o)),c=i.name;u!=null&&u.name&&(c+=` (plugin: ${u.name})`),yield{value:o,description:c}}}}function f2(e){let t=[];for(let[n,r]of Object.entries(e)){let i={name:n,...r};Array.isArray(i.default)&&(i.default=Ge(!1,i.default,-1).value),t.push(i)}return t}var m2=e=>String(e).split(/[/\\]/u).pop();function Zu(e,t){if(!t)return;let n=m2(t).toLowerCase();return e.find(({filenames:r})=>r==null?void 0:r.some(i=>i.toLowerCase()===n))??e.find(({extensions:r})=>r==null?void 0:r.some(i=>n.endsWith(i)))}function g2(e,t){if(t)return e.find(({name:n})=>n.toLowerCase()===t)??e.find(({aliases:n})=>n==null?void 0:n.includes(t))??e.find(({extensions:n})=>n==null?void 0:n.includes(`.${t}`))}function v2(e,t){let n=e.plugins.flatMap(i=>i.languages??[]),r=g2(n,t.language)??Zu(n,t.physicalFile)??Zu(n,t.file)??(t.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var D2=v2,ur={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(n=>ur.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${ur.key(n)}: ${ur.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>ur.value({[e]:t})},ec=za(hs()),y2=(e,t,{descriptor:n})=>{let r=[`${ec.default.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${ec.default.blue(typeof t=="string"?n.key(t):n.pair(t))}`),r.join("; ")+"."},cr=za(hs()),tc=Symbol.for("vnopts.VALUE_NOT_EXIST"),ni=Symbol.for("vnopts.VALUE_UNCHANGED"),nc=" ".repeat(2),b2=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),o=[];return r&&o.push(rc(e,t,r,n.descriptor)),i&&o.push([rc(e,t,i.title,n.descriptor)].concat(i.values.map(u=>ac(u,n.loggerPrintWidth))).join(`
555
+ in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Qu({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(i=>i.languages??[]),r=[];for(let i of f2(Object.assign({},...e.map(({options:o})=>o),d2)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(o=>!o.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...h2(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter(o=>{var u;return((u=o.defaultOptions)==null?void 0:u[i.name])!==void 0}).map(o=>[o.name,o.defaultOptions[i.name]])),r.push(i));return{languages:n,options:r}}function*h2(e,t,n){let r=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let o of i.parsers)if(!r.has(o)){r.add(o);let u=n.find(d=>d.parsers&&Object.prototype.hasOwnProperty.call(d.parsers,o)),c=i.name;u!=null&&u.name&&(c+=` (plugin: ${u.name})`),yield{value:o,description:c}}}}function f2(e){let t=[];for(let[n,r]of Object.entries(e)){let i={name:n,...r};Array.isArray(i.default)&&(i.default=Ke(!1,i.default,-1).value),t.push(i)}return t}var m2=e=>String(e).split(/[/\\]/u).pop();function Zu(e,t){if(!t)return;let n=m2(t).toLowerCase();return e.find(({filenames:r})=>r==null?void 0:r.some(i=>i.toLowerCase()===n))??e.find(({extensions:r})=>r==null?void 0:r.some(i=>n.endsWith(i)))}function g2(e,t){if(t)return e.find(({name:n})=>n.toLowerCase()===t)??e.find(({aliases:n})=>n==null?void 0:n.includes(t))??e.find(({extensions:n})=>n==null?void 0:n.includes(`.${t}`))}function v2(e,t){let n=e.plugins.flatMap(i=>i.languages??[]),r=g2(n,t.language)??Zu(n,t.physicalFile)??Zu(n,t.file)??(t.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var D2=v2,ur={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(n=>ur.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${ur.key(n)}: ${ur.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>ur.value({[e]:t})},ec=za(hs()),y2=(e,t,{descriptor:n})=>{let r=[`${ec.default.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${ec.default.blue(typeof t=="string"?n.key(t):n.pair(t))}`),r.join("; ")+"."},cr=za(hs()),tc=Symbol.for("vnopts.VALUE_NOT_EXIST"),ni=Symbol.for("vnopts.VALUE_UNCHANGED"),nc=" ".repeat(2),b2=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),o=[];return r&&o.push(rc(e,t,r,n.descriptor)),i&&o.push([rc(e,t,i.title,n.descriptor)].concat(i.values.map(u=>ac(u,n.loggerPrintWidth))).join(`
556
556
  `)),ic(o,n.loggerPrintWidth)};function rc(e,t,n,r){return[`Invalid ${cr.default.red(r.key(e))} value.`,`Expected ${cr.default.blue(n)},`,`but received ${t===tc?cr.default.gray("nothing"):cr.default.red(r.value(t))}.`].join(" ")}function ac({text:e,list:t},n){let r=[];return e&&r.push(`- ${cr.default.blue(e)}`),t&&r.push([`- ${cr.default.blue(t.title)}:`].concat(t.values.map(i=>ac(i,n-nc.length).replace(/^|\n/g,`$&${nc}`))).join(`
557
557
  `)),ic(r,n)}function ic(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,o]=e.map(u=>u.split(`
558
- `,1)[0].length);return i>t&&i>o?r:n}var sc=za(hs()),Ns=[],oc=[];function k2(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o=0;for(;o<r&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(r-=o,i-=o,r===0)return i;let u,c,d,h,g=0,v=0;for(;g<r;)oc[g]=e.charCodeAt(o+g),Ns[g]=++g;for(;v<i;)for(u=t.charCodeAt(o+v),d=v++,c=v,g=0;g<r;g++)h=u===oc[g]?d:d+1,d=Ns[g],c=Ns[g]=d>c?h>c?c+1:h:h>d?d+1:h;return c}var lc=(e,t,{descriptor:n,logger:r,schemas:i})=>{let o=[`Ignored unknown option ${sc.default.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(c=>k2(e,c)<3);u&&o.push(`Did you mean ${sc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},w2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function C2(e,t){let n=new e(t),r=Object.create(n);for(let i of w2)i in t&&(r[i]=x2(t[i],n,mn.prototype[i].length));return r}var mn=class{static create(e){return C2(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return ni}};function x2(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var _2=class extends mn{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},S2=class extends mn{expected(){return"anything"}validate(){return!0}},E2=class extends mn{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let i=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let r of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);i!==!1&&n.push(...i.map(({value:o})=>({value:[o]})))}return n}forward(e,t){let n=[];for(let r of e){let i=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...i.map(uc))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in o&&n.push(o.remain),r.push(...o.redirect.map(uc))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function uc({from:e,to:t}){return{from:[e],to:t}}var F2=class extends mn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function A2(e,t){let n=Object.create(null);for(let r of e){let i=r[t];if(n[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n[i]=r}return n}function $2(e,t){let n=new Map;for(let r of e){let i=r[t];if(n.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n.set(i,r)}return n}function T2(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function B2(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function N2(e){return e===Math.floor(e)}function j2(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):n!=="string"?Number(e)-Number(t):e.localeCompare(t)}function P2(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function cc(e){return e===void 0?{}:e}function pc(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return L2((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(pc)}}:{text:t}}function dc(e,t){return e===!0?!0:e===!1?{value:t}:e}function hc(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function fc(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function js(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>fc(n,t)):[fc(e,t)]}function mc(e,t){let n=js(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}function L2(e,t){if(!e)throw new Error(t)}var O2=class extends mn{constructor(e){super(e),this._choices=$2(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(j2).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},I2=class extends mn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},M2=class extends I2{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&N2(e)}},gc=class extends mn{expected(){return"a string"}validate(e){return typeof e=="string"}},R2=ur,q2=lc,H2=b2,U2=y2,W2=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=R2,unknown:o=q2,invalid:u=H2,deprecated:c=U2,missing:d=()=>!1,required:h=()=>!1,preprocess:g=D=>D,postprocess:v=()=>ni}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:A2(e,"name"),normalizeDefaultResult:cc,normalizeExpectedResult:pc,normalizeDeprecatedResult:hc,normalizeForwardResult:js,normalizeRedirectResult:mc,normalizeValidateResult:dc},this._unknownHandler=o,this._invalidHandler=P2(u),this._deprecatedHandler=c,this._identifyMissing=(D,b)=>!(D in b)||d(D,b),this._identifyRequired=h,this._preprocess=g,this._postprocess=v,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=T2()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let i=n.shift(),o=this._applyNormalization(i,t);n.push(...o)}};r();for(let i of Object.keys(this._utils.schemas)){let o=this._utils.schemas[i];if(!(i in t)){let u=cc(o.default(this._utils));"value"in u&&n.push({[i]:u.value})}}r();for(let i of Object.keys(this._utils.schemas)){if(!(i in t))continue;let o=this._utils.schemas[i],u=t[i],c=o.postprocess(u,this._utils);c!==ni&&(this._applyValidation(c,i,o),t[i]=c)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let o of r){let u=this._utils.schemas[o],c=u.preprocess(e[o],this._utils);this._applyValidation(c,o,u);let d=({from:v,to:D})=>{n.push(typeof D=="string"?{[D]:v}:{[D.key]:D.value})},h=({value:v,redirectTo:D})=>{let b=hc(u.deprecated(v,this._utils),c,!0);if(b!==!1)if(b===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,D,this._utils));else for(let{value:k}of b){let x={key:o,value:k};if(!this._hasDeprecationWarned(x)){let C=typeof D=="string"?{key:D,value:k}:D;this._utils.logger.warn(this._deprecatedHandler(x,C,this._utils))}}};js(u.forward(c,this._utils),c).forEach(d);let g=mc(u.redirect(c,this._utils),c);if(g.redirect.forEach(d),"remain"in g){let v=g.remain;t[o]=o in t?u.overlap(t[o],v,this._utils):v,h({value:v})}for(let{from:v,to:D}of g.redirect)h({value:v,redirectTo:D})}for(let o of i){let u=e[o];this._applyUnknownHandler(o,u,t,(c,d)=>{n.push({[c]:d})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,tc,this._utils)}_partitionOptionKeys(e){let[t,n]=B2(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=dc(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let o of Object.keys(i)){if(this._identifyMissing(o,i))continue;let u=i[o];o in this._utils.schemas?r(o,u):n[o]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ni){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let i of n){let o=t.override[i];this._applyValidation(o,i,this._utils.schemas[i]),e[i]=o}for(let i of r){let o=t.override[i];this._applyUnknownHandler(i,o,e,(u,c)=>{let d=this._utils.schemas[u];this._applyValidation(c,u,d),e[u]=c})}}}}},Ps;function z2(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:o,descriptor:u}={}){if(r){if(!o)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=ur;let c=i?Array.isArray(i)?(D,b)=>i.includes(D)?{[D]:b}:void 0:(D,b)=>({[D]:b}):(D,b,k)=>{let{_:x,...C}=k.schemas;return lc(D,b,{...k,schemas:C})},d=V2(t,{isCLI:r,FlagSchema:o}),h=new W2(d,{logger:n,unknown:c,descriptor:u}),g=n!==!1;g&&Ps&&(h._hasDeprecationWarned=Ps);let v=h.normalize(e);return g&&(Ps=h._hasDeprecationWarned),v}function V2(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(S2.create({name:"_"}));for(let i of e)r.push(G2(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(_2.create({name:i.alias,sourceName:i.name}));return r}function G2(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=M2,t&&(o.preprocess=Number);break;case"string":u=gc;break;case"choice":u=O2,o.choices=e.choices.map(d=>d!=null&&d.redirect?{...d,redirect:{to:{key:e.name,value:d.redirect}}}:d);break;case"boolean":u=F2;break;case"flag":u=r,o.flags=n.flatMap(d=>[d.alias,d.description&&d.name,d.oppositeDescription&&`no-${d.name}`].filter(Boolean));break;case"path":u=gc;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(d,h,g)=>e.exception(d)||h.validate(d,g):o.validate=(d,h,g)=>d===void 0||h.validate(d,g),e.redirect&&(c.redirect=d=>d?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(c.deprecated=!0),t&&!e.array){let d=o.preprocess||(h=>h);o.preprocess=(h,g,v)=>g.preprocess(d(Array.isArray(h)?Ge(!1,h,-1):h),v)}return e.array?E2.create({...t?{preprocess:d=>Array.isArray(d)?d:[d]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var Y2=z2,K2=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return i}}},vc=K2;function Dc(e,t){if(!t)throw new Error("parserName is required.");let n=vc(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Ju(r)}function J2(e,t){if(!t)throw new Error("astFormat is required.");let n=vc(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Ju(r)}function yc({plugins:e,parser:t}){let n=Dc(e,t);return bc(n,t)}function bc(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function X2(e,t){let n=e.printers[t];return typeof n=="function"?n():n}var kc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Q2(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=D2(r,{physicalFile:r.filepath}),!r.parser)throw new Xu(`No parser could be inferred for file "${r.filepath}".`)}else throw new Xu("No parser and no file path given, couldn't infer a parser.");let i=Qu({plugins:e.plugins,showDeprecated:!0}).options,o={...kc,...Object.fromEntries(i.filter(D=>D.default!==void 0).map(D=>[D.name,D.default]))},u=Dc(r.plugins,r.parser),c=await bc(u,r.parser);r.astFormat=c.astFormat,r.locEnd=c.locEnd,r.locStart=c.locStart;let d=(n=u.printers)!=null&&n[c.astFormat]?u:J2(r.plugins,c.astFormat),h=await X2(d,c.astFormat);r.printer=h;let g=d.defaultOptions?Object.fromEntries(Object.entries(d.defaultOptions).filter(([,D])=>D!==void 0)):{},v={...o,...g};for(let[D,b]of Object.entries(v))(r[D]===null||r[D]===void 0)&&(r[D]=b);return r.parser==="json"&&(r.trailingComma="none"),Y2(r,i,{passThrough:Object.keys(kc),...t})}var pr=Q2,Z2=za(Jg());async function eD(e,t){let n=await yc(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(o){tD(o,e)}return{text:r,ast:i}}function tD(e,t){let{loc:n}=e;if(n){let r=(0,Z2.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
559
- `+r,e.codeFrame=r,e}throw e}var Jr=eD;async function nD(e,t,n,r,i){let{embeddedLanguageFormatting:o,printer:{embed:u,hasPrettierIgnore:c=()=>!1,getVisitorKeys:d}}=n;if(!u||o!=="auto")return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let h=ti(u.getVisitorKeys??d),g=[];b();let v=e.stack;for(let{print:k,node:x,pathStack:C}of g)try{e.stack=C;let T=await k(D,t,e,n);T&&i.set(x,T)}catch(T){if(globalThis.PRETTIER_DEBUG)throw T}e.stack=v;function D(k,x){return rD(k,x,n,r)}function b(){let{node:k}=e;if(k===null||typeof k!="object"||c(e))return;for(let C of h(k))Array.isArray(k[C])?e.each(b,C):e.call(b,C);let x=u(e,n);if(x){if(typeof x=="function"){g.push({print:x,node:k,pathStack:[...e.stack]});return}i.set(k,x)}}}async function rD(e,t,n,r){let i=await pr({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:o}=await Jr(e,i),u=await r(o,i);return Iu(u)}function aD(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:c}=e,d=i(c),h=o(c);for(let g of r)i(g)>=d&&o(g)<=h&&u.add(g);return n.slice(d,h)}var iD=aD;async function ri(e,t){({ast:e}=await Cc(e,t));let n=new Map,r=new zv(e),i=new Map;await nD(r,u,t,ri,i);let o=await wc(r,t,u,void 0,i);return p2(t),o;function u(d,h){return d===void 0||d===r?c(h):Array.isArray(d)?r.call(()=>c(h),...d):r.call(()=>c(h),d)}function c(d){let h=r.node;if(h==null)return"";let g=h&&typeof h=="object"&&d===void 0;if(g&&n.has(h))return n.get(h);let v=wc(r,t,u,d,i);return g&&n.set(h,v),v}}function wc(e,t,n,r,i){var o;let{node:u}=e,{printer:c}=t,d;return(o=c.hasPrettierIgnore)!=null&&o.call(c,e)?d=iD(e,t):i.has(u)?d=i.get(u):d=c.print(e,t,n,r),u===t.cursorNode&&(d=Mu(d,h=>[ys,h,ys])),c.printComment&&(!c.willPrintOwnComments||!c.willPrintOwnComments(e,t))&&(d=c2(e,d,t)),d}async function Cc(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,r2(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function sD(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,o=ti(t.printer.getVisitorKeys),u=d=>r(d)<=n&&i(d)>=n,c=e;for(let d of Yv(e,{getVisitorKeys:o,filter:u}))c=d;return c}var oD=sD;function lD(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=ti(r),o=n.ignoredProperties??new Set;return u(e);function u(c,d){if(!(c!==null&&typeof c=="object"))return c;if(Array.isArray(c))return c.map(D=>u(D,d)).filter(Boolean);let h={},g=new Set(i(c));for(let D in c)!Object.prototype.hasOwnProperty.call(c,D)||o.has(D)||(g.has(D)?h[D]=u(c[D],c):h[D]=c[D]);let v=n(c,h,d);if(v!==null)return v??h}}var uD=lD,cD=(e,t,n)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return r}return-1}},pD=cD,dD=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function hD(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(i=>_c.has(i.type)&&r.has(i))}function xc(e){let t=pD(!1,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function fD(e,t,{locStart:n,locEnd:r}){let i=e.node,o=t.node;if(i===o)return{startNode:i,endNode:o};let u=n(e.node);for(let d of xc(t.parentNodes))if(n(d)>=u)o=d;else break;let c=r(t.node);for(let d of xc(e.parentNodes)){if(r(d)<=c)i=d;else break;if(i===o)break}return{startNode:i,endNode:o}}function Ls(e,t,n,r,i=[],o){let{locStart:u,locEnd:c}=n,d=u(e),h=c(e);if(!(t>h||t<d||o==="rangeEnd"&&t===d||o==="rangeStart"&&t===h)){for(let g of As(e,n)){let v=Ls(g,t,n,r,[e,...i],o);if(v)return v}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function mD(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var _c=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),gD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Sc(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return mD(t.type,n==null?void 0:n.type);case"json":case"json5":case"jsonc":case"json-stringify":return _c.has(t.type);case"graphql":return gD.has(t.kind);case"vue":return t.tag!=="root"}return!1}function vD(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:o,locEnd:u}=t;Ss.ok(i>r);let c=e.slice(r,i).search(/\S/u),d=c===-1;if(!d)for(r+=c;i>r&&!/\S/u.test(e[i-1]);--i);let h=Ls(n,r,t,(b,k)=>Sc(t,b,k),[],"rangeStart"),g=d?h:Ls(n,i,t,b=>Sc(t,b),[],"rangeEnd");if(!h||!g)return{rangeStart:0,rangeEnd:0};let v,D;if(dD(t)){let b=hD(h,g);v=b,D=b}else({startNode:v,endNode:D}=fD(h,g,t));return{rangeStart:Math.min(o(v),o(D)),rangeEnd:Math.max(u(v),u(D))}}var Ec="\uFEFF",Fc=Symbol("cursor");async function Ac(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await Jr(e,t);t.cursorOffset>=0&&(t.cursorNode=oD(r,t));let o=await ri(r,t);n>0&&(o=Pu([On,o],n,t.tabWidth));let u=Za(o,t);if(n>0){let d=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(d)),u.formatted=d+ms(t.endOfLine)}let c=t[Symbol.for("comments")];if(t.cursorOffset>=0){let d,h,g,v,D;if(t.cursorNode&&u.cursorNodeText?(d=t.locStart(t.cursorNode),h=i.slice(d,t.locEnd(t.cursorNode)),g=t.cursorOffset-d,v=u.cursorNodeStart,D=u.cursorNodeText):(d=0,h=i,g=t.cursorOffset,v=0,D=u.formatted),h===D)return{formatted:u.formatted,cursorOffset:v+g,comments:c};let b=h.split("");b.splice(g,0,Fc);let k=D.split(""),x=rv(b,k),C=v;for(let T of x)if(T.removed){if(T.value.includes(Fc))break}else C+=T.count;return{formatted:u.formatted,cursorOffset:C,comments:c}}return{formatted:u.formatted,cursorOffset:-1,comments:c}}async function DD(e,t){let{ast:n,text:r}=await Jr(e,t),{rangeStart:i,rangeEnd:o}=vD(r,t,n),u=r.slice(i,o),c=Math.min(i,r.lastIndexOf(`
558
+ `,1)[0].length);return i>t&&i>o?r:n}var sc=za(hs()),Ns=[],oc=[];function k2(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o=0;for(;o<r&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(r-=o,i-=o,r===0)return i;let u,c,d,h,g=0,v=0;for(;g<r;)oc[g]=e.charCodeAt(o+g),Ns[g]=++g;for(;v<i;)for(u=t.charCodeAt(o+v),d=v++,c=v,g=0;g<r;g++)h=u===oc[g]?d:d+1,d=Ns[g],c=Ns[g]=d>c?h>c?c+1:h:h>d?d+1:h;return c}var lc=(e,t,{descriptor:n,logger:r,schemas:i})=>{let o=[`Ignored unknown option ${sc.default.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(c=>k2(e,c)<3);u&&o.push(`Did you mean ${sc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},w2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function C2(e,t){let n=new e(t),r=Object.create(n);for(let i of w2)i in t&&(r[i]=x2(t[i],n,mn.prototype[i].length));return r}var mn=class{static create(e){return C2(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return ni}};function x2(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var _2=class extends mn{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},S2=class extends mn{expected(){return"anything"}validate(){return!0}},E2=class extends mn{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let i=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let r of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);i!==!1&&n.push(...i.map(({value:o})=>({value:[o]})))}return n}forward(e,t){let n=[];for(let r of e){let i=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...i.map(uc))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in o&&n.push(o.remain),r.push(...o.redirect.map(uc))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function uc({from:e,to:t}){return{from:[e],to:t}}var F2=class extends mn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function A2(e,t){let n=Object.create(null);for(let r of e){let i=r[t];if(n[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n[i]=r}return n}function $2(e,t){let n=new Map;for(let r of e){let i=r[t];if(n.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n.set(i,r)}return n}function T2(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function B2(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function N2(e){return e===Math.floor(e)}function j2(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):n!=="string"?Number(e)-Number(t):e.localeCompare(t)}function P2(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function cc(e){return e===void 0?{}:e}function pc(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return L2((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(pc)}}:{text:t}}function dc(e,t){return e===!0?!0:e===!1?{value:t}:e}function hc(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function fc(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function js(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>fc(n,t)):[fc(e,t)]}function mc(e,t){let n=js(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}function L2(e,t){if(!e)throw new Error(t)}var O2=class extends mn{constructor(e){super(e),this._choices=$2(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(j2).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},I2=class extends mn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},M2=class extends I2{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&N2(e)}},gc=class extends mn{expected(){return"a string"}validate(e){return typeof e=="string"}},R2=ur,q2=lc,H2=b2,U2=y2,W2=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=R2,unknown:o=q2,invalid:u=H2,deprecated:c=U2,missing:d=()=>!1,required:h=()=>!1,preprocess:g=D=>D,postprocess:v=()=>ni}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:A2(e,"name"),normalizeDefaultResult:cc,normalizeExpectedResult:pc,normalizeDeprecatedResult:hc,normalizeForwardResult:js,normalizeRedirectResult:mc,normalizeValidateResult:dc},this._unknownHandler=o,this._invalidHandler=P2(u),this._deprecatedHandler=c,this._identifyMissing=(D,b)=>!(D in b)||d(D,b),this._identifyRequired=h,this._preprocess=g,this._postprocess=v,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=T2()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let i=n.shift(),o=this._applyNormalization(i,t);n.push(...o)}};r();for(let i of Object.keys(this._utils.schemas)){let o=this._utils.schemas[i];if(!(i in t)){let u=cc(o.default(this._utils));"value"in u&&n.push({[i]:u.value})}}r();for(let i of Object.keys(this._utils.schemas)){if(!(i in t))continue;let o=this._utils.schemas[i],u=t[i],c=o.postprocess(u,this._utils);c!==ni&&(this._applyValidation(c,i,o),t[i]=c)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let o of r){let u=this._utils.schemas[o],c=u.preprocess(e[o],this._utils);this._applyValidation(c,o,u);let d=({from:v,to:D})=>{n.push(typeof D=="string"?{[D]:v}:{[D.key]:D.value})},h=({value:v,redirectTo:D})=>{let b=hc(u.deprecated(v,this._utils),c,!0);if(b!==!1)if(b===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,D,this._utils));else for(let{value:k}of b){let x={key:o,value:k};if(!this._hasDeprecationWarned(x)){let C=typeof D=="string"?{key:D,value:k}:D;this._utils.logger.warn(this._deprecatedHandler(x,C,this._utils))}}};js(u.forward(c,this._utils),c).forEach(d);let g=mc(u.redirect(c,this._utils),c);if(g.redirect.forEach(d),"remain"in g){let v=g.remain;t[o]=o in t?u.overlap(t[o],v,this._utils):v,h({value:v})}for(let{from:v,to:D}of g.redirect)h({value:v,redirectTo:D})}for(let o of i){let u=e[o];this._applyUnknownHandler(o,u,t,(c,d)=>{n.push({[c]:d})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,tc,this._utils)}_partitionOptionKeys(e){let[t,n]=B2(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=dc(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let o of Object.keys(i)){if(this._identifyMissing(o,i))continue;let u=i[o];o in this._utils.schemas?r(o,u):n[o]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ni){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let i of n){let o=t.override[i];this._applyValidation(o,i,this._utils.schemas[i]),e[i]=o}for(let i of r){let o=t.override[i];this._applyUnknownHandler(i,o,e,(u,c)=>{let d=this._utils.schemas[u];this._applyValidation(c,u,d),e[u]=c})}}}}},Ps;function z2(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:o,descriptor:u}={}){if(r){if(!o)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=ur;let c=i?Array.isArray(i)?(D,b)=>i.includes(D)?{[D]:b}:void 0:(D,b)=>({[D]:b}):(D,b,k)=>{let{_:x,...C}=k.schemas;return lc(D,b,{...k,schemas:C})},d=V2(t,{isCLI:r,FlagSchema:o}),h=new W2(d,{logger:n,unknown:c,descriptor:u}),g=n!==!1;g&&Ps&&(h._hasDeprecationWarned=Ps);let v=h.normalize(e);return g&&(Ps=h._hasDeprecationWarned),v}function V2(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(S2.create({name:"_"}));for(let i of e)r.push(G2(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(_2.create({name:i.alias,sourceName:i.name}));return r}function G2(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=M2,t&&(o.preprocess=Number);break;case"string":u=gc;break;case"choice":u=O2,o.choices=e.choices.map(d=>d!=null&&d.redirect?{...d,redirect:{to:{key:e.name,value:d.redirect}}}:d);break;case"boolean":u=F2;break;case"flag":u=r,o.flags=n.flatMap(d=>[d.alias,d.description&&d.name,d.oppositeDescription&&`no-${d.name}`].filter(Boolean));break;case"path":u=gc;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(d,h,g)=>e.exception(d)||h.validate(d,g):o.validate=(d,h,g)=>d===void 0||h.validate(d,g),e.redirect&&(c.redirect=d=>d?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(c.deprecated=!0),t&&!e.array){let d=o.preprocess||(h=>h);o.preprocess=(h,g,v)=>g.preprocess(d(Array.isArray(h)?Ke(!1,h,-1):h),v)}return e.array?E2.create({...t?{preprocess:d=>Array.isArray(d)?d:[d]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var Y2=z2,K2=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return i}}},vc=K2;function Dc(e,t){if(!t)throw new Error("parserName is required.");let n=vc(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Ju(r)}function J2(e,t){if(!t)throw new Error("astFormat is required.");let n=vc(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Ju(r)}function yc({plugins:e,parser:t}){let n=Dc(e,t);return bc(n,t)}function bc(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function X2(e,t){let n=e.printers[t];return typeof n=="function"?n():n}var kc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Q2(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=D2(r,{physicalFile:r.filepath}),!r.parser)throw new Xu(`No parser could be inferred for file "${r.filepath}".`)}else throw new Xu("No parser and no file path given, couldn't infer a parser.");let i=Qu({plugins:e.plugins,showDeprecated:!0}).options,o={...kc,...Object.fromEntries(i.filter(D=>D.default!==void 0).map(D=>[D.name,D.default]))},u=Dc(r.plugins,r.parser),c=await bc(u,r.parser);r.astFormat=c.astFormat,r.locEnd=c.locEnd,r.locStart=c.locStart;let d=(n=u.printers)!=null&&n[c.astFormat]?u:J2(r.plugins,c.astFormat),h=await X2(d,c.astFormat);r.printer=h;let g=d.defaultOptions?Object.fromEntries(Object.entries(d.defaultOptions).filter(([,D])=>D!==void 0)):{},v={...o,...g};for(let[D,b]of Object.entries(v))(r[D]===null||r[D]===void 0)&&(r[D]=b);return r.parser==="json"&&(r.trailingComma="none"),Y2(r,i,{passThrough:Object.keys(kc),...t})}var pr=Q2,Z2=za(Jg());async function eD(e,t){let n=await yc(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(o){tD(o,e)}return{text:r,ast:i}}function tD(e,t){let{loc:n}=e;if(n){let r=(0,Z2.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
559
+ `+r,e.codeFrame=r,e}throw e}var Xr=eD;async function nD(e,t,n,r,i){let{embeddedLanguageFormatting:o,printer:{embed:u,hasPrettierIgnore:c=()=>!1,getVisitorKeys:d}}=n;if(!u||o!=="auto")return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let h=ti(u.getVisitorKeys??d),g=[];b();let v=e.stack;for(let{print:k,node:x,pathStack:C}of g)try{e.stack=C;let T=await k(D,t,e,n);T&&i.set(x,T)}catch(T){if(globalThis.PRETTIER_DEBUG)throw T}e.stack=v;function D(k,x){return rD(k,x,n,r)}function b(){let{node:k}=e;if(k===null||typeof k!="object"||c(e))return;for(let C of h(k))Array.isArray(k[C])?e.each(b,C):e.call(b,C);let x=u(e,n);if(x){if(typeof x=="function"){g.push({print:x,node:k,pathStack:[...e.stack]});return}i.set(k,x)}}}async function rD(e,t,n,r){let i=await pr({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:o}=await Xr(e,i),u=await r(o,i);return Iu(u)}function aD(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:c}=e,d=i(c),h=o(c);for(let g of r)i(g)>=d&&o(g)<=h&&u.add(g);return n.slice(d,h)}var iD=aD;async function ri(e,t){({ast:e}=await Cc(e,t));let n=new Map,r=new zv(e),i=new Map;await nD(r,u,t,ri,i);let o=await wc(r,t,u,void 0,i);return p2(t),o;function u(d,h){return d===void 0||d===r?c(h):Array.isArray(d)?r.call(()=>c(h),...d):r.call(()=>c(h),d)}function c(d){let h=r.node;if(h==null)return"";let g=h&&typeof h=="object"&&d===void 0;if(g&&n.has(h))return n.get(h);let v=wc(r,t,u,d,i);return g&&n.set(h,v),v}}function wc(e,t,n,r,i){var o;let{node:u}=e,{printer:c}=t,d;return(o=c.hasPrettierIgnore)!=null&&o.call(c,e)?d=iD(e,t):i.has(u)?d=i.get(u):d=c.print(e,t,n,r),u===t.cursorNode&&(d=Mu(d,h=>[ys,h,ys])),c.printComment&&(!c.willPrintOwnComments||!c.willPrintOwnComments(e,t))&&(d=c2(e,d,t)),d}async function Cc(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,r2(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function sD(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,o=ti(t.printer.getVisitorKeys),u=d=>r(d)<=n&&i(d)>=n,c=e;for(let d of Yv(e,{getVisitorKeys:o,filter:u}))c=d;return c}var oD=sD;function lD(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=ti(r),o=n.ignoredProperties??new Set;return u(e);function u(c,d){if(!(c!==null&&typeof c=="object"))return c;if(Array.isArray(c))return c.map(D=>u(D,d)).filter(Boolean);let h={},g=new Set(i(c));for(let D in c)!Object.prototype.hasOwnProperty.call(c,D)||o.has(D)||(g.has(D)?h[D]=u(c[D],c):h[D]=c[D]);let v=n(c,h,d);if(v!==null)return v??h}}var uD=lD,cD=(e,t,n)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return r}return-1}},pD=cD,dD=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function hD(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(i=>_c.has(i.type)&&r.has(i))}function xc(e){let t=pD(!1,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function fD(e,t,{locStart:n,locEnd:r}){let i=e.node,o=t.node;if(i===o)return{startNode:i,endNode:o};let u=n(e.node);for(let d of xc(t.parentNodes))if(n(d)>=u)o=d;else break;let c=r(t.node);for(let d of xc(e.parentNodes)){if(r(d)<=c)i=d;else break;if(i===o)break}return{startNode:i,endNode:o}}function Ls(e,t,n,r,i=[],o){let{locStart:u,locEnd:c}=n,d=u(e),h=c(e);if(!(t>h||t<d||o==="rangeEnd"&&t===d||o==="rangeStart"&&t===h)){for(let g of As(e,n)){let v=Ls(g,t,n,r,[e,...i],o);if(v)return v}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function mD(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var _c=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),gD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Sc(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return mD(t.type,n==null?void 0:n.type);case"json":case"json5":case"jsonc":case"json-stringify":return _c.has(t.type);case"graphql":return gD.has(t.kind);case"vue":return t.tag!=="root"}return!1}function vD(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:o,locEnd:u}=t;Ss.ok(i>r);let c=e.slice(r,i).search(/\S/u),d=c===-1;if(!d)for(r+=c;i>r&&!/\S/u.test(e[i-1]);--i);let h=Ls(n,r,t,(b,k)=>Sc(t,b,k),[],"rangeStart"),g=d?h:Ls(n,i,t,b=>Sc(t,b),[],"rangeEnd");if(!h||!g)return{rangeStart:0,rangeEnd:0};let v,D;if(dD(t)){let b=hD(h,g);v=b,D=b}else({startNode:v,endNode:D}=fD(h,g,t));return{rangeStart:Math.min(o(v),o(D)),rangeEnd:Math.max(u(v),u(D))}}var Ec="\uFEFF",Fc=Symbol("cursor");async function Ac(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await Xr(e,t);t.cursorOffset>=0&&(t.cursorNode=oD(r,t));let o=await ri(r,t);n>0&&(o=Pu([On,o],n,t.tabWidth));let u=Za(o,t);if(n>0){let d=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(d)),u.formatted=d+ms(t.endOfLine)}let c=t[Symbol.for("comments")];if(t.cursorOffset>=0){let d,h,g,v,D;if(t.cursorNode&&u.cursorNodeText?(d=t.locStart(t.cursorNode),h=i.slice(d,t.locEnd(t.cursorNode)),g=t.cursorOffset-d,v=u.cursorNodeStart,D=u.cursorNodeText):(d=0,h=i,g=t.cursorOffset,v=0,D=u.formatted),h===D)return{formatted:u.formatted,cursorOffset:v+g,comments:c};let b=h.split("");b.splice(g,0,Fc);let k=D.split(""),x=rv(b,k),C=v;for(let T of x)if(T.removed){if(T.value.includes(Fc))break}else C+=T.count;return{formatted:u.formatted,cursorOffset:C,comments:c}}return{formatted:u.formatted,cursorOffset:-1,comments:c}}async function DD(e,t){let{ast:n,text:r}=await Xr(e,t),{rangeStart:i,rangeEnd:o}=vD(r,t,n),u=r.slice(i,o),c=Math.min(i,r.lastIndexOf(`
560
560
  `,i)+1),d=r.slice(c,i).match(/^\s*/u)[0],h=xs(d,t.tabWidth),g=await Ac(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=o?t.cursorOffset-i:-1,endOfLine:"lf"},h),v=g.formatted.trimEnd(),{cursorOffset:D}=t;D>o?D+=v.length-u.length:g.cursorOffset>=0&&(D=g.cursorOffset+i);let b=r.slice(0,i)+v+r.slice(o);if(t.endOfLine!=="lf"){let k=ms(t.endOfLine);D>=0&&k===`\r
561
561
  `&&(D+=Su(b.slice(0,D),`
562
562
  `)),b=Va(!1,b,`
563
563
  `,k)}return{formatted:b,cursorOffset:D,comments:g.comments}}function Os(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function $c(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=Os(e,n,-1),r=Os(e,r,0),i=Os(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function Tc(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=$c(e,t),u=e.charAt(0)===Ec;if(u&&(e=e.slice(1),n--,r--,i--),o==="auto"&&(o=av(e)),e.includes("\r")){let c=d=>Su(e.slice(0,Math.max(d,0)),`\r
564
- `);n-=c(n),r-=c(r),i-=c(i),e=iv(e)}return{hasBOM:u,text:e,options:$c(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o})}}async function Bc(e,t){let n=await yc(t);return!n.hasPragma||n.hasPragma(e)}async function Nc(e,t){let{hasBOM:n,text:r,options:i}=Tc(e,await pr(t));if(i.rangeStart>=i.rangeEnd&&r!==""||i.requirePragma&&!await Bc(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return i.rangeStart>0||i.rangeEnd<r.length?o=await DD(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Bc(r,i)&&(r=i.printer.insertPragma(r)),o=await Ac(r,i)),n&&(o.formatted=Ec+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function yD(e,t,n){let{text:r,options:i}=Tc(e,await pr(t)),o=await Jr(r,i);return n&&(n.preprocessForPrint&&(o.ast=await Cc(o.ast,i)),n.massage&&(o.ast=uD(o.ast,i))),o}async function bD(e,t){t=await pr(t);let n=await ri(e,t);return Za(n,t)}async function kD(e,t){let n=Cv(e),{formatted:r}=await Nc(n,{...t,parser:"__js_expression"});return r}async function wD(e,t){t=await pr(t);let{ast:n}=await Jr(e,t);return ri(n,t)}async function CD(e,t){return Za(e,await pr(t))}var jc={};Wa(jc,{builders:()=>xD,printer:()=>_D,utils:()=>SD});var xD={join:ju,line:Bu,softline:kv,hardline:On,literalline:Nu,group:Au,conditionalGroup:gv,fill:$u,lineSuffix:vs,lineSuffixBoundary:yv,cursor:ys,breakParent:Ja,ifBreak:vv,trim:bv,indent:Ka,indentIfBreak:Dv,align:sr,addAlignmentToDoc:Pu,markAsRoot:fv,dedentToRoot:hv,dedent:mv,hardlineWithoutBreakParent:Ds,literallineWithoutBreakParent:Tu,label:wv,concat:e=>e},_D={printDocToString:Za},SD={willBreak:Bv,traverseDoc:gs,findInDoc:ks,mapDoc:Xa,removeLines:Pv,stripTrailingHardline:Iu,replaceEndOfLine:Iv,canBreak:Rv},ED="3.3.3",Pc={};Wa(Pc,{addDanglingComment:()=>Rn,addLeadingComment:()=>or,addTrailingComment:()=>lr,getAlignmentSize:()=>xs,getIndentSize:()=>ND,getMaxContinuousCount:()=>LD,getNextNonSpaceNonCommentCharacter:()=>ID,getNextNonSpaceNonCommentCharacterIndex:()=>VD,getStringWidth:()=>bs,hasNewline:()=>fn,hasNewlineInRange:()=>RD,hasSpaces:()=>HD,isNextLineEmpty:()=>JD,isNextLineEmptyAfterIndex:()=>qs,isPreviousLineEmpty:()=>YD,makeString:()=>WD,skip:()=>Kr,skipEverythingButNewLine:()=>Wu,skipInlineComment:()=>Is,skipNewline:()=>Mn,skipSpaces:()=>hn,skipToLineEnd:()=>Uu,skipTrailingComment:()=>Ms,skipWhitespace:()=>Kv});function FD(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var Is=FD;function AD(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Wu(e,t):t}var Ms=AD;function $D(e,t){let n=null,r=t;for(;r!==n;)n=r,r=hn(e,r),r=Is(e,r),r=Ms(e,r),r=Mn(e,r);return r}var Rs=$D;function TD(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Uu(e,r),r=Is(e,r),r=hn(e,r);return r=Ms(e,r),r=Mn(e,r),r!==!1&&fn(e,r)}var qs=TD;function BD(e,t){let n=e.lastIndexOf(`
564
+ `);n-=c(n),r-=c(r),i-=c(i),e=iv(e)}return{hasBOM:u,text:e,options:$c(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o})}}async function Bc(e,t){let n=await yc(t);return!n.hasPragma||n.hasPragma(e)}async function Nc(e,t){let{hasBOM:n,text:r,options:i}=Tc(e,await pr(t));if(i.rangeStart>=i.rangeEnd&&r!==""||i.requirePragma&&!await Bc(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return i.rangeStart>0||i.rangeEnd<r.length?o=await DD(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Bc(r,i)&&(r=i.printer.insertPragma(r)),o=await Ac(r,i)),n&&(o.formatted=Ec+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function yD(e,t,n){let{text:r,options:i}=Tc(e,await pr(t)),o=await Xr(r,i);return n&&(n.preprocessForPrint&&(o.ast=await Cc(o.ast,i)),n.massage&&(o.ast=uD(o.ast,i))),o}async function bD(e,t){t=await pr(t);let n=await ri(e,t);return Za(n,t)}async function kD(e,t){let n=Cv(e),{formatted:r}=await Nc(n,{...t,parser:"__js_expression"});return r}async function wD(e,t){t=await pr(t);let{ast:n}=await Xr(e,t);return ri(n,t)}async function CD(e,t){return Za(e,await pr(t))}var jc={};Wa(jc,{builders:()=>xD,printer:()=>_D,utils:()=>SD});var xD={join:ju,line:Bu,softline:kv,hardline:On,literalline:Nu,group:Au,conditionalGroup:gv,fill:$u,lineSuffix:vs,lineSuffixBoundary:yv,cursor:ys,breakParent:Ja,ifBreak:vv,trim:bv,indent:Ka,indentIfBreak:Dv,align:sr,addAlignmentToDoc:Pu,markAsRoot:fv,dedentToRoot:hv,dedent:mv,hardlineWithoutBreakParent:Ds,literallineWithoutBreakParent:Tu,label:wv,concat:e=>e},_D={printDocToString:Za},SD={willBreak:Bv,traverseDoc:gs,findInDoc:ks,mapDoc:Xa,removeLines:Pv,stripTrailingHardline:Iu,replaceEndOfLine:Iv,canBreak:Rv},ED="3.3.3",Pc={};Wa(Pc,{addDanglingComment:()=>Rn,addLeadingComment:()=>or,addTrailingComment:()=>lr,getAlignmentSize:()=>xs,getIndentSize:()=>ND,getMaxContinuousCount:()=>LD,getNextNonSpaceNonCommentCharacter:()=>ID,getNextNonSpaceNonCommentCharacterIndex:()=>VD,getStringWidth:()=>bs,hasNewline:()=>fn,hasNewlineInRange:()=>RD,hasSpaces:()=>HD,isNextLineEmpty:()=>JD,isNextLineEmptyAfterIndex:()=>qs,isPreviousLineEmpty:()=>YD,makeString:()=>WD,skip:()=>Jr,skipEverythingButNewLine:()=>Wu,skipInlineComment:()=>Is,skipNewline:()=>Mn,skipSpaces:()=>hn,skipToLineEnd:()=>Uu,skipTrailingComment:()=>Ms,skipWhitespace:()=>Kv});function FD(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var Is=FD;function AD(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Wu(e,t):t}var Ms=AD;function $D(e,t){let n=null,r=t;for(;r!==n;)n=r,r=hn(e,r),r=Is(e,r),r=Ms(e,r),r=Mn(e,r);return r}var Rs=$D;function TD(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Uu(e,r),r=Is(e,r),r=hn(e,r);return r=Ms(e,r),r=Mn(e,r),r!==!1&&fn(e,r)}var qs=TD;function BD(e,t){let n=e.lastIndexOf(`
565
565
  `);return n===-1?0:xs(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var ND=BD;function jD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function PD(e,t){let n=e.match(new RegExp(`(${jD(t)})+`,"gu"));return n===null?0:n.reduce((r,i)=>Math.max(r,i.length/t.length),0)}var LD=PD;function OD(e,t){let n=Rs(e,t);return n===!1?"":e.charAt(n)}var ID=OD;function MD(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
566
566
  `)return!0;return!1}var RD=MD;function qD(e,t,n={}){return hn(e,n.backwards?t-1:t,n)!==t}var HD=qD;function UD(e,t,n){let r=t==='"'?"'":'"',i=Va(!1,e,/\\(.)|(["'])/gsu,(o,u,c)=>u===r?u:c===t?"\\"+c:c||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return t+i+t}var WD=UD;function zD(e,t,n){return Rs(e,n(t))}function VD(e,t){return arguments.length===2||typeof t=="number"?Rs(e,t):zD(...arguments)}function GD(e,t,n){return Bs(e,n(t))}function YD(e,t){return arguments.length===2||typeof t=="number"?Bs(e,t):GD(...arguments)}function KD(e,t,n){return qs(e,n(t))}function JD(e,t){return arguments.length===2||typeof t=="number"?qs(e,t):KD(...arguments)}function qn(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var Lc=qn(Nc);async function Hs(e,t){let{formatted:n}=await Lc(e,{...t,cursorOffset:-1});return n}async function XD(e,t){return await Hs(e,t)===e}var QD=qn(Qu,0),ZD={parse:qn(yD),formatAST:qn(bD),formatDoc:qn(kD),printToDoc:qn(wD),printDocToString:qn(CD)},Oc={exports:{}};(function(e,t){(function(n){function r(){var i=n();return i.default||i}e.exports=r()})(function(){var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,u=a=>{throw TypeError(a)},c=(a,s)=>{for(var l in s)n(a,l,{get:s[l],enumerable:!0})},d=(a,s,l,p)=>{if(s&&typeof s=="object"||typeof s=="function")for(let f of i(s))!o.call(a,f)&&f!==l&&n(a,f,{get:()=>s[f],enumerable:!(p=r(s,f))||p.enumerable});return a},h=a=>d(n({},"__esModule",{value:!0}),a),g=(a,s,l)=>s.has(a)||u("Cannot "+l),v=(a,s,l)=>(g(a,s,"read from private field"),s.get(a)),D=(a,s,l)=>s.has(a)?u("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,l),b=(a,s,l,p)=>(g(a,s,"write to private field"),s.set(a,l),l),k={};c(k,{languages:()=>Q1,options:()=>ew,parsers:()=>dd,printers:()=>sC});var x=(a,s,l,p)=>{if(!(a&&s==null))return s.replaceAll?s.replaceAll(l,p):l.global?s.replace(l,p):s.split(l).join(p)},C=x,T="string",E="array",_="cursor",F="indent",A="align",$="trim",P="group",I="fill",j="if-break",z="indent-if-break",K="line-suffix",G="line-suffix-boundary",L="line",N="label",H="break-parent",Q=new Set([_,F,A,$,P,I,j,z,K,G,L,N,H]);function fe(a){if(typeof a=="string")return T;if(Array.isArray(a))return E;if(!a)return;let{type:s}=a;if(Q.has(s))return s}var ee=fe,ue=a=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(a);function me(a){let s=a===null?"null":typeof a;if(s!=="string"&&s!=="object")return`Unexpected doc '${s}',
567
567
  Expected it to be 'string' or 'object'.`;if(ee(a))throw new Error("doc is valid.");let l=Object.prototype.toString.call(a);if(l!=="[object Object]")return`Unexpected doc '${l}'.`;let p=ue([...Q].map(f=>`'${f}'`));return`Unexpected doc.type '${a.type}'.
568
- Expected it to be ${p}.`}var ie=class extends Error{constructor(s){super(me(s));_r(this,"name","InvalidDocError");this.doc=s}},De=ie,rt=()=>{},Ne=rt;function Fe(a){return{type:F,contents:a}}function Oe(a,s){return{type:A,contents:s,n:a}}function de(a,s={}){return Ne(s.expandedStates),{type:P,id:s.id,contents:a,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function ft(a){return Oe(Number.NEGATIVE_INFINITY,a)}function Ht(a){return Oe({type:"root"},a)}function Dt(a){return{type:I,parts:a}}function yt(a,s="",l={}){return{type:j,breakContents:a,flatContents:s,groupId:l.groupId}}function vn(a,s){return{type:z,contents:a,groupId:s.groupId,negate:s.negate}}var bt={type:H},X={type:L,hard:!0},Ut={type:L,hard:!0,literal:!0},xe={type:L},Pe={type:L,soft:!0},Se=[X,bt],vr=[Ut,bt];function Dn(a,s){let l=[];for(let p=0;p<s.length;p++)p!==0&&l.push(a),l.push(s[p]);return l}var mo=(a,s,l)=>{if(!(a&&s==null))return Array.isArray(s)||typeof s=="string"?s[l<0?s.length+l:l]:s.at(l)},on=mo;function aa(a,s){if(typeof a=="string")return s(a);let l=new Map;return p(a);function p(y){if(l.has(y))return l.get(y);let S=f(y);return l.set(y,S),S}function f(y){switch(ee(y)){case E:return s(y.map(p));case I:return s({...y,parts:y.parts.map(p)});case j:return s({...y,breakContents:p(y.breakContents),flatContents:p(y.flatContents)});case P:{let{expandedStates:S,contents:B}=y;return S?(S=S.map(p),B=S[0]):B=p(B),s({...y,contents:B,expandedStates:S})}case A:case F:case z:case N:case K:return s({...y,contents:p(y.contents)});case T:case _:case $:case G:case L:case H:return s(y);default:throw new De(y)}}}function go(a){switch(ee(a)){case I:if(a.parts.every(s=>s===""))return"";break;case P:if(!a.contents&&!a.id&&!a.break&&!a.expandedStates)return"";if(a.contents.type===P&&a.contents.id===a.id&&a.contents.break===a.break&&a.contents.expandedStates===a.expandedStates)return a.contents;break;case A:case F:case z:case K:if(!a.contents)return"";break;case j:if(!a.flatContents&&!a.breakContents)return"";break;case E:{let s=[];for(let l of a){if(!l)continue;let[p,...f]=Array.isArray(l)?l:[l];typeof p=="string"&&typeof on(!1,s,-1)=="string"?s[s.length-1]+=p:s.push(p),s.push(...f)}return s.length===0?"":s.length===1?s[0]:s}case T:case _:case $:case G:case L:case N:case H:break;default:throw new De(a)}return a}function di(a){return aa(a,s=>go(s))}function mt(a,s=vr){return aa(a,l=>typeof l=="string"?Dn(s,l.split(`
569
- `)):l)}var Wt="'",hi='"';function fi(a,s){let l=s===!0||s===Wt?Wt:hi,p=l===Wt?hi:Wt,f=0,y=0;for(let S of a)S===l?f++:S===p&&y++;return f>y?p:l}var mi=fi;function ia(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var kt,vo=class{constructor(a){D(this,kt),b(this,kt,new Set(a))}getLeadingWhitespaceCount(a){let s=v(this,kt),l=0;for(let p=0;p<a.length&&s.has(a.charAt(p));p++)l++;return l}getTrailingWhitespaceCount(a){let s=v(this,kt),l=0;for(let p=a.length-1;p>=0&&s.has(a.charAt(p));p--)l++;return l}getLeadingWhitespace(a){let s=this.getLeadingWhitespaceCount(a);return a.slice(0,s)}getTrailingWhitespace(a){let s=this.getTrailingWhitespaceCount(a);return a.slice(a.length-s)}hasLeadingWhitespace(a){return v(this,kt).has(a.charAt(0))}hasTrailingWhitespace(a){return v(this,kt).has(on(!1,a,-1))}trimStart(a){let s=this.getLeadingWhitespaceCount(a);return a.slice(s)}trimEnd(a){let s=this.getTrailingWhitespaceCount(a);return a.slice(0,a.length-s)}trim(a){return this.trimEnd(this.trimStart(a))}split(a,s=!1){let l=`[${ia([...v(this,kt)].join(""))}]+`,p=new RegExp(s?`(${l})`:l,"u");return a.split(p)}hasWhitespaceCharacter(a){let s=v(this,kt);return Array.prototype.some.call(a,l=>s.has(l))}hasNonWhitespaceCharacter(a){let s=v(this,kt);return Array.prototype.some.call(a,l=>!s.has(l))}isWhitespaceOnly(a){let s=v(this,kt);return Array.prototype.every.call(a,l=>s.has(l))}};kt=new WeakMap;var Do=vo,yo=[" ",`
570
- `,"\f","\r"," "],bo=new Do(yo),At=bo,ko=class extends Error{constructor(s,l,p="type"){super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);_r(this,"name","UnexpectedNodeError");this.node=s}},sa=ko;function gi(a){return(a==null?void 0:a.type)==="front-matter"}var Tt=gi,oa=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),la=new Set(["if","else if","for","switch","case"]);function ua(a,s){var l;if(a.type==="text"||a.type==="comment"||Tt(a)||a.type==="yaml"||a.type==="toml")return null;if(a.type==="attribute"&&delete s.value,a.type==="docType"&&delete s.value,a.type==="angularControlFlowBlock"&&(l=a.parameters)!=null&&l.children)for(let p of s.parameters.children)la.has(a.name)?delete p.expression:p.expression=p.expression.trim();a.type==="angularIcuExpression"&&(s.switchValue=a.switchValue.trim()),a.type==="angularLetDeclarationInitializer"&&delete s.value}ua.ignoredProperties=oa;var wo=ua;async function vi(a,s){if(a.language==="yaml"){let l=a.value.trim(),p=l?await s(l,{parser:"yaml"}):"";return Ht([a.startDelimiter,a.explicitLanguage,Se,p,p?Se:"",a.endDelimiter])}}var Co=vi;function zn(a,s=!0){return[Fe([Pe,a]),s?Pe:""]}function ln(a,s){let l=a.type==="NGRoot"?a.node.type==="NGMicrosyntax"&&a.node.body.length===1&&a.node.body[0].type==="NGMicrosyntaxExpression"?a.node.body[0].expression:a.node:a.type==="JsExpressionRoot"?a.node:a;return l&&(l.type==="ObjectExpression"||l.type==="ArrayExpression"||(s.parser==="__vue_expression"||s.parser==="__vue_ts_expression")&&(l.type==="TemplateLiteral"||l.type==="StringLiteral"))}async function wt(a,s,l,p){l={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...l};let f=!0;p&&(l.__onHtmlBindingRoot=(S,B)=>{f=p(S,B)});let y=await s(a,l,s);return f?de(y):zn(y)}function xo(a,s,l,p){let{node:f}=l,y=p.originalText.slice(f.sourceSpan.start.offset,f.sourceSpan.end.offset);return/^\s*$/u.test(y)?"":wt(y,a,{parser:"__ng_directive",__isInHtmlAttribute:!1},ln)}var Di=xo,yi=a=>String(a).split(/[/\\]/u).pop();function bi(a,s){if(!s)return;let l=yi(s).toLowerCase();return a.find(({filenames:p})=>p==null?void 0:p.some(f=>f.toLowerCase()===l))??a.find(({extensions:p})=>p==null?void 0:p.some(f=>l.endsWith(f)))}function _o(a,s){if(s)return a.find(({name:l})=>l.toLowerCase()===s)??a.find(({aliases:l})=>l==null?void 0:l.includes(s))??a.find(({extensions:l})=>l==null?void 0:l.includes(`.${s}`))}function So(a,s){let l=a.plugins.flatMap(f=>f.languages??[]),p=_o(l,s.language)??bi(l,s.physicalFile)??bi(l,s.file)??(s.physicalFile,void 0);return p==null?void 0:p.parsers[0]}var Dr=So,w="inline",R={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},U="normal",te={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function ye(a){return a.type==="element"&&!a.hasExplicitNamespace&&!["html","svg"].includes(a.namespace)}var ve=ye,he=a=>C(!1,a,/^[\t\f\r ]*\n/gu,""),se=a=>he(At.trimEnd(a)),et=a=>{let s=a,l=At.getLeadingWhitespace(s);l&&(s=s.slice(l.length));let p=At.getTrailingWhitespace(s);return p&&(s=s.slice(0,-p.length)),{leadingWhitespace:l,trailingWhitespace:p,text:s}};function Be(a,s){return!!(a.type==="ieConditionalComment"&&a.lastChild&&!a.lastChild.isSelfClosing&&!a.lastChild.endSourceSpan||a.type==="ieConditionalComment"&&!a.complete||yr(a)&&a.children.some(l=>l.type!=="text"&&l.type!=="interpolation")||$o(a,s)&&!tt(a)&&a.type!=="interpolation")}function Te(a){return a.type==="attribute"||!a.parent||!a.prev?!1:gt(a.prev)}function gt(a){return a.type==="comment"&&a.value.trim()==="prettier-ignore"}function He(a){return a.type==="text"||a.type==="comment"}function tt(a){return a.type==="element"&&(a.fullName==="script"||a.fullName==="style"||a.fullName==="svg:style"||a.fullName==="svg:script"||ve(a)&&(a.name==="script"||a.name==="style"))}function at(a){return a.children&&!tt(a)}function ca(a){return tt(a)||a.type==="interpolation"||ki(a)}function ki(a){return zp(a).startsWith("pre")}function Eo(a,s){var l,p;let f=y();if(f&&!a.prev&&(p=(l=a.parent)==null?void 0:l.tagDefinition)!=null&&p.ignoreFirstLf)return a.type==="interpolation";return f;function y(){return Tt(a)||a.type==="angularControlFlowBlock"?!1:(a.type==="text"||a.type==="interpolation")&&a.prev&&(a.prev.type==="text"||a.prev.type==="interpolation")?!0:!a.parent||a.parent.cssDisplay==="none"?!1:yr(a.parent)?!0:!(!a.prev&&(a.parent.type==="root"||yr(a)&&a.parent||tt(a.parent)||Ci(a.parent,s)||!mk(a.parent.cssDisplay))||a.prev&&!Dk(a.prev.cssDisplay))}}function ok(a,s){return Tt(a)||a.type==="angularControlFlowBlock"?!1:(a.type==="text"||a.type==="interpolation")&&a.next&&(a.next.type==="text"||a.next.type==="interpolation")?!0:!a.parent||a.parent.cssDisplay==="none"?!1:yr(a.parent)?!0:!(!a.next&&(a.parent.type==="root"||yr(a)&&a.parent||tt(a.parent)||Ci(a.parent,s)||!gk(a.parent.cssDisplay))||a.next&&!vk(a.next.cssDisplay))}function lk(a){return yk(a.cssDisplay)&&!tt(a)}function wi(a){return Tt(a)||a.next&&a.sourceSpan.end&&a.sourceSpan.end.line+1<a.next.sourceSpan.start.line}function uk(a){return Ip(a)||a.type==="element"&&a.children.length>0&&(["body","script","style"].includes(a.name)||a.children.some(s=>pk(s)))||a.firstChild&&a.firstChild===a.lastChild&&a.firstChild.type!=="text"&&Rp(a.firstChild)&&(!a.lastChild.isTrailingSpaceSensitive||qp(a.lastChild))}function Ip(a){return a.type==="element"&&a.children.length>0&&(["html","head","ul","ol","select"].includes(a.name)||a.cssDisplay.startsWith("table")&&a.cssDisplay!=="table-cell")}function Fo(a){return Hp(a)||a.prev&&ck(a.prev)||Mp(a)}function ck(a){return Hp(a)||a.type==="element"&&a.fullName==="br"||Mp(a)}function Mp(a){return Rp(a)&&qp(a)}function Rp(a){return a.hasLeadingSpaces&&(a.prev?a.prev.sourceSpan.end.line<a.sourceSpan.start.line:a.parent.type==="root"||a.parent.startSourceSpan.end.line<a.sourceSpan.start.line)}function qp(a){return a.hasTrailingSpaces&&(a.next?a.next.sourceSpan.start.line>a.sourceSpan.end.line:a.parent.type==="root"||a.parent.endSourceSpan&&a.parent.endSourceSpan.start.line>a.sourceSpan.end.line)}function Hp(a){switch(a.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(a.name)}return!1}function Ao(a){return a.lastChild?Ao(a.lastChild):a}function pk(a){var s;return(s=a.children)==null?void 0:s.some(l=>l.type!=="text")}function Up(a){if(a)switch(a){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(a.endsWith("json")||a.endsWith("importmap")||a==="speculationrules")return"json"}}function dk(a,s){let{name:l,attrMap:p}=a;if(l!=="script"||Object.prototype.hasOwnProperty.call(p,"src"))return;let{type:f,lang:y}=a.attrMap;return!y&&!f?"babel":Dr(s,{language:y})??Up(f)}function hk(a,s){if(!$o(a,s))return;let{attrMap:l}=a;if(Object.prototype.hasOwnProperty.call(l,"src"))return;let{type:p,lang:f}=l;return Dr(s,{language:f})??Up(p)}function fk(a,s){if(a.name!=="style")return;let{lang:l}=a.attrMap;return l?Dr(s,{language:l}):"css"}function Wp(a,s){return dk(a,s)??fk(a,s)??hk(a,s)}function pa(a){return a==="block"||a==="list-item"||a.startsWith("table")}function mk(a){return!pa(a)&&a!=="inline-block"}function gk(a){return!pa(a)&&a!=="inline-block"}function vk(a){return!pa(a)}function Dk(a){return!pa(a)}function yk(a){return!pa(a)&&a!=="inline-block"}function yr(a){return zp(a).startsWith("pre")}function bk(a,s){let l=a;for(;l;){if(s(l))return!0;l=l.parent}return!1}function kk(a,s){var l;if(br(a,s))return"block";if(((l=a.prev)==null?void 0:l.type)==="comment"){let f=a.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(f)return f[1]}let p=!1;if(a.type==="element"&&a.namespace==="svg")if(bk(a,f=>f.fullName==="svg:foreignObject"))p=!0;else return a.name==="svg"?"inline-block":"block";switch(s.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return a.type==="element"&&(!a.namespace||p||ve(a))&&R[a.name]||w}}function zp(a){return a.type==="element"&&(!a.namespace||ve(a))&&te[a.name]||U}function wk(a){let s=Number.POSITIVE_INFINITY;for(let l of a.split(`
568
+ Expected it to be ${p}.`}var ie=class extends Error{constructor(s){super(me(s));_r(this,"name","InvalidDocError");this.doc=s}},De=ie,rt=()=>{},Ne=rt;function Fe(a){return{type:F,contents:a}}function Oe(a,s){return{type:A,contents:s,n:a}}function de(a,s={}){return Ne(s.expandedStates),{type:P,id:s.id,contents:a,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function ft(a){return Oe(Number.NEGATIVE_INFINITY,a)}function Ht(a){return Oe({type:"root"},a)}function Dt(a){return{type:I,parts:a}}function yt(a,s="",l={}){return{type:j,breakContents:a,flatContents:s,groupId:l.groupId}}function vn(a,s){return{type:z,contents:a,groupId:s.groupId,negate:s.negate}}var bt={type:H},X={type:L,hard:!0},Ut={type:L,hard:!0,literal:!0},xe={type:L},Pe={type:L,soft:!0},Se=[X,bt],vr=[Ut,bt];function Dn(a,s){let l=[];for(let p=0;p<s.length;p++)p!==0&&l.push(a),l.push(s[p]);return l}var mo=(a,s,l)=>{if(!(a&&s==null))return Array.isArray(s)||typeof s=="string"?s[l<0?s.length+l:l]:s.at(l)},on=mo;function ia(a,s){if(typeof a=="string")return s(a);let l=new Map;return p(a);function p(y){if(l.has(y))return l.get(y);let S=f(y);return l.set(y,S),S}function f(y){switch(ee(y)){case E:return s(y.map(p));case I:return s({...y,parts:y.parts.map(p)});case j:return s({...y,breakContents:p(y.breakContents),flatContents:p(y.flatContents)});case P:{let{expandedStates:S,contents:B}=y;return S?(S=S.map(p),B=S[0]):B=p(B),s({...y,contents:B,expandedStates:S})}case A:case F:case z:case N:case K:return s({...y,contents:p(y.contents)});case T:case _:case $:case G:case L:case H:return s(y);default:throw new De(y)}}}function go(a){switch(ee(a)){case I:if(a.parts.every(s=>s===""))return"";break;case P:if(!a.contents&&!a.id&&!a.break&&!a.expandedStates)return"";if(a.contents.type===P&&a.contents.id===a.id&&a.contents.break===a.break&&a.contents.expandedStates===a.expandedStates)return a.contents;break;case A:case F:case z:case K:if(!a.contents)return"";break;case j:if(!a.flatContents&&!a.breakContents)return"";break;case E:{let s=[];for(let l of a){if(!l)continue;let[p,...f]=Array.isArray(l)?l:[l];typeof p=="string"&&typeof on(!1,s,-1)=="string"?s[s.length-1]+=p:s.push(p),s.push(...f)}return s.length===0?"":s.length===1?s[0]:s}case T:case _:case $:case G:case L:case N:case H:break;default:throw new De(a)}return a}function di(a){return ia(a,s=>go(s))}function mt(a,s=vr){return ia(a,l=>typeof l=="string"?Dn(s,l.split(`
569
+ `)):l)}var Wt="'",hi='"';function fi(a,s){let l=s===!0||s===Wt?Wt:hi,p=l===Wt?hi:Wt,f=0,y=0;for(let S of a)S===l?f++:S===p&&y++;return f>y?p:l}var mi=fi;function sa(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var kt,vo=class{constructor(a){D(this,kt),b(this,kt,new Set(a))}getLeadingWhitespaceCount(a){let s=v(this,kt),l=0;for(let p=0;p<a.length&&s.has(a.charAt(p));p++)l++;return l}getTrailingWhitespaceCount(a){let s=v(this,kt),l=0;for(let p=a.length-1;p>=0&&s.has(a.charAt(p));p--)l++;return l}getLeadingWhitespace(a){let s=this.getLeadingWhitespaceCount(a);return a.slice(0,s)}getTrailingWhitespace(a){let s=this.getTrailingWhitespaceCount(a);return a.slice(a.length-s)}hasLeadingWhitespace(a){return v(this,kt).has(a.charAt(0))}hasTrailingWhitespace(a){return v(this,kt).has(on(!1,a,-1))}trimStart(a){let s=this.getLeadingWhitespaceCount(a);return a.slice(s)}trimEnd(a){let s=this.getTrailingWhitespaceCount(a);return a.slice(0,a.length-s)}trim(a){return this.trimEnd(this.trimStart(a))}split(a,s=!1){let l=`[${sa([...v(this,kt)].join(""))}]+`,p=new RegExp(s?`(${l})`:l,"u");return a.split(p)}hasWhitespaceCharacter(a){let s=v(this,kt);return Array.prototype.some.call(a,l=>s.has(l))}hasNonWhitespaceCharacter(a){let s=v(this,kt);return Array.prototype.some.call(a,l=>!s.has(l))}isWhitespaceOnly(a){let s=v(this,kt);return Array.prototype.every.call(a,l=>s.has(l))}};kt=new WeakMap;var Do=vo,yo=[" ",`
570
+ `,"\f","\r"," "],bo=new Do(yo),At=bo,ko=class extends Error{constructor(s,l,p="type"){super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);_r(this,"name","UnexpectedNodeError");this.node=s}},oa=ko;function gi(a){return(a==null?void 0:a.type)==="front-matter"}var Tt=gi,la=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),ua=new Set(["if","else if","for","switch","case"]);function ca(a,s){var l;if(a.type==="text"||a.type==="comment"||Tt(a)||a.type==="yaml"||a.type==="toml")return null;if(a.type==="attribute"&&delete s.value,a.type==="docType"&&delete s.value,a.type==="angularControlFlowBlock"&&(l=a.parameters)!=null&&l.children)for(let p of s.parameters.children)ua.has(a.name)?delete p.expression:p.expression=p.expression.trim();a.type==="angularIcuExpression"&&(s.switchValue=a.switchValue.trim()),a.type==="angularLetDeclarationInitializer"&&delete s.value}ca.ignoredProperties=la;var wo=ca;async function vi(a,s){if(a.language==="yaml"){let l=a.value.trim(),p=l?await s(l,{parser:"yaml"}):"";return Ht([a.startDelimiter,a.explicitLanguage,Se,p,p?Se:"",a.endDelimiter])}}var Co=vi;function zn(a,s=!0){return[Fe([Pe,a]),s?Pe:""]}function ln(a,s){let l=a.type==="NGRoot"?a.node.type==="NGMicrosyntax"&&a.node.body.length===1&&a.node.body[0].type==="NGMicrosyntaxExpression"?a.node.body[0].expression:a.node:a.type==="JsExpressionRoot"?a.node:a;return l&&(l.type==="ObjectExpression"||l.type==="ArrayExpression"||(s.parser==="__vue_expression"||s.parser==="__vue_ts_expression")&&(l.type==="TemplateLiteral"||l.type==="StringLiteral"))}async function wt(a,s,l,p){l={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...l};let f=!0;p&&(l.__onHtmlBindingRoot=(S,B)=>{f=p(S,B)});let y=await s(a,l,s);return f?de(y):zn(y)}function xo(a,s,l,p){let{node:f}=l,y=p.originalText.slice(f.sourceSpan.start.offset,f.sourceSpan.end.offset);return/^\s*$/u.test(y)?"":wt(y,a,{parser:"__ng_directive",__isInHtmlAttribute:!1},ln)}var Di=xo,yi=a=>String(a).split(/[/\\]/u).pop();function bi(a,s){if(!s)return;let l=yi(s).toLowerCase();return a.find(({filenames:p})=>p==null?void 0:p.some(f=>f.toLowerCase()===l))??a.find(({extensions:p})=>p==null?void 0:p.some(f=>l.endsWith(f)))}function _o(a,s){if(s)return a.find(({name:l})=>l.toLowerCase()===s)??a.find(({aliases:l})=>l==null?void 0:l.includes(s))??a.find(({extensions:l})=>l==null?void 0:l.includes(`.${s}`))}function So(a,s){let l=a.plugins.flatMap(f=>f.languages??[]),p=_o(l,s.language)??bi(l,s.physicalFile)??bi(l,s.file)??(s.physicalFile,void 0);return p==null?void 0:p.parsers[0]}var Dr=So,w="inline",R={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},U="normal",te={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function ye(a){return a.type==="element"&&!a.hasExplicitNamespace&&!["html","svg"].includes(a.namespace)}var ve=ye,he=a=>C(!1,a,/^[\t\f\r ]*\n/gu,""),se=a=>he(At.trimEnd(a)),et=a=>{let s=a,l=At.getLeadingWhitespace(s);l&&(s=s.slice(l.length));let p=At.getTrailingWhitespace(s);return p&&(s=s.slice(0,-p.length)),{leadingWhitespace:l,trailingWhitespace:p,text:s}};function Be(a,s){return!!(a.type==="ieConditionalComment"&&a.lastChild&&!a.lastChild.isSelfClosing&&!a.lastChild.endSourceSpan||a.type==="ieConditionalComment"&&!a.complete||yr(a)&&a.children.some(l=>l.type!=="text"&&l.type!=="interpolation")||$o(a,s)&&!tt(a)&&a.type!=="interpolation")}function Te(a){return a.type==="attribute"||!a.parent||!a.prev?!1:gt(a.prev)}function gt(a){return a.type==="comment"&&a.value.trim()==="prettier-ignore"}function He(a){return a.type==="text"||a.type==="comment"}function tt(a){return a.type==="element"&&(a.fullName==="script"||a.fullName==="style"||a.fullName==="svg:style"||a.fullName==="svg:script"||ve(a)&&(a.name==="script"||a.name==="style"))}function at(a){return a.children&&!tt(a)}function pa(a){return tt(a)||a.type==="interpolation"||ki(a)}function ki(a){return zp(a).startsWith("pre")}function Eo(a,s){var l,p;let f=y();if(f&&!a.prev&&(p=(l=a.parent)==null?void 0:l.tagDefinition)!=null&&p.ignoreFirstLf)return a.type==="interpolation";return f;function y(){return Tt(a)||a.type==="angularControlFlowBlock"?!1:(a.type==="text"||a.type==="interpolation")&&a.prev&&(a.prev.type==="text"||a.prev.type==="interpolation")?!0:!a.parent||a.parent.cssDisplay==="none"?!1:yr(a.parent)?!0:!(!a.prev&&(a.parent.type==="root"||yr(a)&&a.parent||tt(a.parent)||Ci(a.parent,s)||!mk(a.parent.cssDisplay))||a.prev&&!Dk(a.prev.cssDisplay))}}function ok(a,s){return Tt(a)||a.type==="angularControlFlowBlock"?!1:(a.type==="text"||a.type==="interpolation")&&a.next&&(a.next.type==="text"||a.next.type==="interpolation")?!0:!a.parent||a.parent.cssDisplay==="none"?!1:yr(a.parent)?!0:!(!a.next&&(a.parent.type==="root"||yr(a)&&a.parent||tt(a.parent)||Ci(a.parent,s)||!gk(a.parent.cssDisplay))||a.next&&!vk(a.next.cssDisplay))}function lk(a){return yk(a.cssDisplay)&&!tt(a)}function wi(a){return Tt(a)||a.next&&a.sourceSpan.end&&a.sourceSpan.end.line+1<a.next.sourceSpan.start.line}function uk(a){return Ip(a)||a.type==="element"&&a.children.length>0&&(["body","script","style"].includes(a.name)||a.children.some(s=>pk(s)))||a.firstChild&&a.firstChild===a.lastChild&&a.firstChild.type!=="text"&&Rp(a.firstChild)&&(!a.lastChild.isTrailingSpaceSensitive||qp(a.lastChild))}function Ip(a){return a.type==="element"&&a.children.length>0&&(["html","head","ul","ol","select"].includes(a.name)||a.cssDisplay.startsWith("table")&&a.cssDisplay!=="table-cell")}function Fo(a){return Hp(a)||a.prev&&ck(a.prev)||Mp(a)}function ck(a){return Hp(a)||a.type==="element"&&a.fullName==="br"||Mp(a)}function Mp(a){return Rp(a)&&qp(a)}function Rp(a){return a.hasLeadingSpaces&&(a.prev?a.prev.sourceSpan.end.line<a.sourceSpan.start.line:a.parent.type==="root"||a.parent.startSourceSpan.end.line<a.sourceSpan.start.line)}function qp(a){return a.hasTrailingSpaces&&(a.next?a.next.sourceSpan.start.line>a.sourceSpan.end.line:a.parent.type==="root"||a.parent.endSourceSpan&&a.parent.endSourceSpan.start.line>a.sourceSpan.end.line)}function Hp(a){switch(a.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(a.name)}return!1}function Ao(a){return a.lastChild?Ao(a.lastChild):a}function pk(a){var s;return(s=a.children)==null?void 0:s.some(l=>l.type!=="text")}function Up(a){if(a)switch(a){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(a.endsWith("json")||a.endsWith("importmap")||a==="speculationrules")return"json"}}function dk(a,s){let{name:l,attrMap:p}=a;if(l!=="script"||Object.prototype.hasOwnProperty.call(p,"src"))return;let{type:f,lang:y}=a.attrMap;return!y&&!f?"babel":Dr(s,{language:y})??Up(f)}function hk(a,s){if(!$o(a,s))return;let{attrMap:l}=a;if(Object.prototype.hasOwnProperty.call(l,"src"))return;let{type:p,lang:f}=l;return Dr(s,{language:f})??Up(p)}function fk(a,s){if(a.name!=="style")return;let{lang:l}=a.attrMap;return l?Dr(s,{language:l}):"css"}function Wp(a,s){return dk(a,s)??fk(a,s)??hk(a,s)}function da(a){return a==="block"||a==="list-item"||a.startsWith("table")}function mk(a){return!da(a)&&a!=="inline-block"}function gk(a){return!da(a)&&a!=="inline-block"}function vk(a){return!da(a)}function Dk(a){return!da(a)}function yk(a){return!da(a)&&a!=="inline-block"}function yr(a){return zp(a).startsWith("pre")}function bk(a,s){let l=a;for(;l;){if(s(l))return!0;l=l.parent}return!1}function kk(a,s){var l;if(br(a,s))return"block";if(((l=a.prev)==null?void 0:l.type)==="comment"){let f=a.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(f)return f[1]}let p=!1;if(a.type==="element"&&a.namespace==="svg")if(bk(a,f=>f.fullName==="svg:foreignObject"))p=!0;else return a.name==="svg"?"inline-block":"block";switch(s.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return a.type==="element"&&(!a.namespace||p||ve(a))&&R[a.name]||w}}function zp(a){return a.type==="element"&&(!a.namespace||ve(a))&&te[a.name]||U}function wk(a){let s=Number.POSITIVE_INFINITY;for(let l of a.split(`
571
571
  `)){if(l.length===0)continue;let p=At.getLeadingWhitespaceCount(l);if(p===0)return 0;l.length!==p&&p<s&&(s=p)}return s===Number.POSITIVE_INFINITY?0:s}function Vp(a,s=wk(a)){return s===0?a:a.split(`
572
572
  `).map(l=>l.slice(s)).join(`
573
573
  `)}function Gp(a){return C(!1,C(!1,a,"&apos;","'"),"&quot;",'"')}function yn(a){return Gp(a.value)}var Ck=new Set(["template","style","script"]);function Ci(a,s){return br(a,s)&&!Ck.has(a.fullName)}function br(a,s){return s.parser==="vue"&&a.type==="element"&&a.parent.type==="root"&&a.fullName.toLowerCase()!=="html"}function $o(a,s){return br(a,s)&&(Ci(a,s)||a.attrMap.lang&&a.attrMap.lang!=="html")}function xk(a){let s=a.fullName;return s.charAt(0)==="#"||s==="slot-scope"||s==="v-slot"||s.startsWith("v-slot:")}function _k(a,s){let l=a.parent;if(!br(l,s))return!1;let p=l.fullName,f=a.fullName;return p==="script"&&f==="setup"||p==="style"&&f==="vars"}function Yp(a,s=a.value){return a.parent.isWhitespaceSensitive?a.parent.isIndentationSensitive?mt(s):mt(Vp(se(s)),Se):Dn(xe,At.split(s))}function Kp(a,s){return br(a,s)&&a.name==="script"}var Jp=/\{\{(.+?)\}\}/su;async function Sk(a,s){let l=[];for(let[p,f]of a.split(Jp).entries())if(p%2===0)l.push(mt(f));else try{l.push(de(["{{",Fe([xe,await wt(f,s,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),xe,"}}"]))}catch{l.push("{{",mt(f),"}}")}return l}function To({parser:a}){return(s,l,p)=>wt(yn(p.node),s,{parser:a},ln)}var Ek=To({parser:"__ng_action"}),Fk=To({parser:"__ng_binding"}),Ak=To({parser:"__ng_directive"});function $k(a,s){if(s.parser!=="angular")return;let{node:l}=a,p=l.fullName;if(p.startsWith("(")&&p.endsWith(")")||p.startsWith("on-"))return Ek;if(p.startsWith("[")&&p.endsWith("]")||/^bind(?:on)?-/u.test(p)||/^ng-(?:if|show|hide|class|style)$/u.test(p))return Fk;if(p.startsWith("*"))return Ak;let f=yn(l);if(/^i18n(?:-.+)?$/u.test(p))return()=>zn(Dt(Yp(l,f.trim())),!f.includes("@@"));if(Jp.test(f))return y=>Sk(f,y)}var Tk=$k;function Bk(a,s){let{node:l}=a,p=yn(l);if(l.fullName==="class"&&!s.parentParser&&!p.includes("{{"))return()=>p.trim().split(/\s+/u).join(" ")}var Nk=Bk;function Xp(a){return a===" "||a===`
574
- `||a==="\f"||a==="\r"||a===" "}var jk=/^[ \t\n\r\u000c]+/,Pk=/^[, \t\n\r\u000c]+/,Lk=/^[^ \t\n\r\u000c]+/,Ok=/[,]+$/,Qp=/^\d+$/,Ik=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Mk(a){let s=a.length,l,p,f,y,S,B=0,q;function Y(ce){let Ae,Ue=ce.exec(a.substring(B));if(Ue)return[Ae]=Ue,B+=Ae.length,Ae}let W=[];for(;;){if(Y(Pk),B>=s){if(W.length===0)throw new Error("Must contain one or more image candidate strings.");return W}q=B,l=Y(Lk),p=[],l.slice(-1)===","?(l=l.replace(Ok,""),ge()):we()}function we(){for(Y(jk),f="",y="in descriptor";;){if(S=a.charAt(B),y==="in descriptor")if(Xp(S))f&&(p.push(f),f="",y="after descriptor");else if(S===","){B+=1,f&&p.push(f),ge();return}else if(S==="(")f+=S,y="in parens";else if(S===""){f&&p.push(f),ge();return}else f+=S;else if(y==="in parens")if(S===")")f+=S,y="in descriptor";else if(S===""){p.push(f),ge();return}else f+=S;else if(y==="after descriptor"&&!Xp(S))if(S===""){ge();return}else y="in descriptor",B-=1;B+=1}}function ge(){let ce=!1,Ae,Ue,nt,it,V={},pe,We,qe,ct,xr;for(it=0;it<p.length;it++)pe=p[it],We=pe[pe.length-1],qe=pe.substring(0,pe.length-1),ct=parseInt(qe,10),xr=parseFloat(qe),Qp.test(qe)&&We==="w"?((Ae||Ue)&&(ce=!0),ct===0?ce=!0:Ae=ct):Ik.test(qe)&&We==="x"?((Ae||Ue||nt)&&(ce=!0),xr<0?ce=!0:Ue=xr):Qp.test(qe)&&We==="h"?((nt||Ue)&&(ce=!0),ct===0?ce=!0:nt=ct):ce=!0;if(!ce)V.source={value:l,startOffset:q},Ae&&(V.width={value:Ae}),Ue&&(V.density={value:Ue}),nt&&(V.height={value:nt}),W.push(V);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${pe}".`)}}var Rk=Mk;function qk(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>Uk(yn(a.node))}var Zp={width:"w",height:"h",density:"x"},Hk=Object.keys(Zp);function Uk(a){let s=Rk(a),l=Hk.filter(W=>s.some(we=>Object.prototype.hasOwnProperty.call(we,W)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[p]=l,f=Zp[p],y=s.map(W=>W.source.value),S=Math.max(...y.map(W=>W.length)),B=s.map(W=>W[p]?String(W[p].value):""),q=B.map(W=>{let we=W.indexOf(".");return we===-1?W.length:we}),Y=Math.max(...q);return zn(Dn([",",xe],y.map((W,we)=>{let ge=[W],ce=B[we];if(ce){let Ae=S-W.length+1,Ue=Y-q[we],nt=" ".repeat(Ae+Ue);ge.push(yt(nt," "),ce+f)}return ge})))}var Wk=qk;function zk(a,s){let{node:l}=a,p=yn(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!p.includes("{{"))return async f=>zn(await f(p,{parser:"css",__isHTMLStyleAttribute:!0}))}var Bo=new WeakMap;function Vk(a,s){let{root:l}=a;return Bo.has(l)||Bo.set(l,l.children.some(p=>Kp(p,s)&&["ts","typescript"].includes(p.attrMap.lang))),Bo.get(l)}var No=Vk;function Gk(a,s,l){let{node:p}=l,f=yn(p);return wt(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ln)}function Yk(a,s,{parseWithTs:l}){return wt(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function Kk(a){let s=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,l=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,p=a.trim();return s.test(p)||l.test(p)}async function Jk(a,s,l,p){let f=yn(l.node),{left:y,operator:S,right:B}=Xk(f),q=No(l,p);return[de(await wt(`function _(${y}) {}`,a,{parser:q?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",S," ",await wt(B,a,{parser:q?"__ts_expression":"__js_expression"})]}function Xk(a){let s=/(.*?)\s+(in|of)\s+(.*)/su,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,p=/^\(|\)$/gu,f=a.match(s);if(!f)return;let y={};if(y.for=f[3].trim(),!y.for)return;let S=C(!1,f[1].trim(),p,""),B=S.match(l);B?(y.alias=S.replace(l,""),y.iterator1=B[1].trim(),B[2]&&(y.iterator2=B[2].trim())):y.alias=S;let q=[y.alias,y.iterator1,y.iterator2];if(!q.some((Y,W)=>!Y&&(W===0||q.slice(W+1).some(Boolean))))return{left:q.filter(Boolean).join(","),operator:f[2],right:y.for}}function Qk(a,s){if(s.parser!=="vue")return;let{node:l}=a,p=l.fullName;if(p==="v-for")return Jk;if(p==="generic"&&Kp(l.parent,s))return Gk;let f=yn(l),y=No(a,s);if(xk(l)||_k(l,s))return S=>Yk(f,S,{parseWithTs:y});if(p.startsWith("@")||p.startsWith("v-on:"))return S=>Zk(f,S,{parseWithTs:y});if(p.startsWith(":")||p.startsWith("v-bind:"))return S=>e1(f,S,{parseWithTs:y});if(p.startsWith("v-"))return S=>ed(f,S,{parseWithTs:y})}function Zk(a,s,{parseWithTs:l}){return Kk(a)?ed(a,s,{parseWithTs:l}):wt(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},ln)}function e1(a,s,{parseWithTs:l}){return wt(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},ln)}function ed(a,s,{parseWithTs:l}){return wt(a,s,{parser:l?"__ts_expression":"__js_expression"},ln)}var t1=Qk;function n1(a,s){let{node:l}=a;if(l.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(s.originalText.slice(l.valueSpan.start.offset,l.valueSpan.end.offset))||s.parser==="lwc"&&l.value.startsWith("{")&&l.value.endsWith("}"))return[l.rawName,"=",l.value];for(let p of[Wk,zk,Nk,t1,Tk]){let f=p(a,s);if(f)return r1(f)}}}function r1(a){return async(s,l,p,f)=>{let y=await a(s,l,p,f);if(y)return y=aa(y,S=>typeof S=="string"?C(!1,S,'"',"&quot;"):S),[p.node.rawName,'="',de(y),'"']}}var a1=n1,td=new Proxy(()=>{},{get:()=>td}),nd=td;function i1(a){return Array.isArray(a)&&a.length>0}var jo=i1;function xi(a){return a.sourceSpan.start.offset}function _i(a){return a.sourceSpan.end.offset}function Po(a,s){return[a.isSelfClosing?"":s1(a,s),da(a,s)]}function s1(a,s){return a.lastChild&&ma(a.lastChild)?"":[o1(a,s),Lo(a,s)]}function da(a,s){return(a.next?Gn(a.next):fa(a.parent))?"":[ha(a,s),Vn(a,s)]}function o1(a,s){return fa(a)?ha(a.lastChild,s):""}function Vn(a,s){return ma(a)?Lo(a.parent,s):Si(a)?Io(a.next):""}function Lo(a,s){if(nd(!a.isSelfClosing),rd(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function ha(a,s){if(rd(a,s))return"";switch(a.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(a.isSelfClosing)return"/>";default:return">"}}function rd(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(Te(a)||Be(a.parent,s))}function Gn(a){return a.prev&&a.prev.type!=="docType"&&a.type!=="angularControlFlowBlock"&&!He(a.prev)&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function fa(a){var s;return((s=a.lastChild)==null?void 0:s.isTrailingSpaceSensitive)&&!a.lastChild.hasTrailingSpaces&&!He(Ao(a.lastChild))&&!yr(a)}function ma(a){return!a.next&&!a.hasTrailingSpaces&&a.isTrailingSpaceSensitive&&He(Ao(a))}function Si(a){return a.next&&!He(a.next)&&He(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function l1(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Ei(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function u1(a,s,l){var p;let{node:f}=a;if(!jo(f.attrs))return f.isSelfClosing?" ":"";let y=((p=f.prev)==null?void 0:p.type)==="comment"&&l1(f.prev.value),S=typeof y=="boolean"?()=>y:Array.isArray(y)?we=>y.includes(we.rawName):()=>!1,B=a.map(({node:we})=>S(we)?mt(s.originalText.slice(xi(we),_i(we))):l(),"attrs"),q=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,Y=s.singleAttributePerLine&&f.attrs.length>1&&!br(f,s)?Se:xe,W=[Fe([q?" ":xe,Dn(Y,B)])];return f.firstChild&&Ei(f.firstChild)||f.isSelfClosing&&fa(f.parent)||q?W.push(f.isSelfClosing?" ":""):W.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?xe:Pe),W}function c1(a){return a.firstChild&&Ei(a.firstChild)?"":Mo(a)}function Oo(a,s,l){let{node:p}=a;return[ga(p,s),u1(a,s,l),p.isSelfClosing?"":c1(p)]}function ga(a,s){return a.prev&&Si(a.prev)?"":[Yn(a,s),Io(a)]}function Yn(a,s){return Ei(a)?Mo(a.parent):Gn(a)?ha(a.prev,s):""}function Io(a){switch(a.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${a.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return a.value==="html"?"<!doctype":"<!DOCTYPE";case"angularIcuExpression":return"{";case"element":if(a.condition)return`<!--[if ${a.condition}]><!--><${a.rawName}`;default:return`<${a.rawName}`}}function Mo(a){switch(nd(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function p1(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Ei(a.firstChild)&&(l-=Mo(a).length);let p=a.endSourceSpan.start.offset;return a.lastChild&&ma(a.lastChild)?p+=Lo(a,s).length:fa(a)&&(p-=ha(a.lastChild,s).length),s.originalText.slice(l,p)}var ad=p1,d1=new Set(["if","else if","for","switch","case"]);function h1(a,s){let{node:l}=a;switch(l.type){case"element":if(tt(l)||l.type==="interpolation")return;if(!l.isSelfClosing&&$o(l,s)){let p=Wp(l,s);return p?async(f,y)=>{let S=ad(l,s),B=/^\s*$/u.test(S),q="";return B||(q=await f(se(S),{parser:p,__embeddedInHtml:!0}),B=q===""),[Yn(l,s),de(Oo(a,s,y)),B?"":Se,q,B?"":Se,Po(l,s),Vn(l,s)]}:void 0}break;case"text":if(tt(l.parent)){let p=Wp(l.parent,s);if(p)return async f=>{let y=p==="markdown"?Vp(l.value.replace(/^[^\S\n]*\n/u,"")):l.value,S={parser:p,__embeddedInHtml:!0};if(s.parser==="html"&&p==="babel"){let B="script",{attrMap:q}=l.parent;q&&(q.type==="module"||q.type==="text/babel"&&q["data-type"]==="module")&&(B="module"),S.__babelSourceType=B}return[bt,Yn(l,s),await f(y,S),Vn(l,s)]}}else if(l.parent.type==="interpolation")return async p=>{let f={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return s.parser==="angular"?f.parser="__ng_interpolation":s.parser==="vue"?f.parser=No(a,s)?"__vue_ts_expression":"__vue_expression":f.parser="__js_expression",[Fe([xe,await p(l.value,f)]),l.parent.next&&Gn(l.parent.next)?" ":xe]};break;case"attribute":return a1(a,s);case"front-matter":return p=>Co(l,p);case"angularControlFlowBlockParameters":return d1.has(a.parent.name)?Di:void 0;case"angularLetDeclarationInitializer":return p=>wt(l.value,p,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var f1=h1,va=null;function Da(a){if(va!==null&&typeof va.property){let s=va;return va=Da.prototype=null,s}return va=Da.prototype=a??Object.create(null),new Da}var m1=10;for(let a=0;a<=m1;a++)Da();function g1(a){return Da(a)}function v1(a,s="type"){g1(a);function l(p){let f=p[s],y=a[f];if(!Array.isArray(y))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:p});return y}return l}var D1=v1,y1={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},b1=y1,k1=D1(b1),w1=k1;function C1(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function x1(a){return`<!-- @format -->
574
+ `||a==="\f"||a==="\r"||a===" "}var jk=/^[ \t\n\r\u000c]+/,Pk=/^[, \t\n\r\u000c]+/,Lk=/^[^ \t\n\r\u000c]+/,Ok=/[,]+$/,Qp=/^\d+$/,Ik=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Mk(a){let s=a.length,l,p,f,y,S,B=0,q;function Y(ce){let Ae,Ue=ce.exec(a.substring(B));if(Ue)return[Ae]=Ue,B+=Ae.length,Ae}let W=[];for(;;){if(Y(Pk),B>=s){if(W.length===0)throw new Error("Must contain one or more image candidate strings.");return W}q=B,l=Y(Lk),p=[],l.slice(-1)===","?(l=l.replace(Ok,""),ge()):we()}function we(){for(Y(jk),f="",y="in descriptor";;){if(S=a.charAt(B),y==="in descriptor")if(Xp(S))f&&(p.push(f),f="",y="after descriptor");else if(S===","){B+=1,f&&p.push(f),ge();return}else if(S==="(")f+=S,y="in parens";else if(S===""){f&&p.push(f),ge();return}else f+=S;else if(y==="in parens")if(S===")")f+=S,y="in descriptor";else if(S===""){p.push(f),ge();return}else f+=S;else if(y==="after descriptor"&&!Xp(S))if(S===""){ge();return}else y="in descriptor",B-=1;B+=1}}function ge(){let ce=!1,Ae,Ue,nt,it,V={},pe,We,qe,ct,xr;for(it=0;it<p.length;it++)pe=p[it],We=pe[pe.length-1],qe=pe.substring(0,pe.length-1),ct=parseInt(qe,10),xr=parseFloat(qe),Qp.test(qe)&&We==="w"?((Ae||Ue)&&(ce=!0),ct===0?ce=!0:Ae=ct):Ik.test(qe)&&We==="x"?((Ae||Ue||nt)&&(ce=!0),xr<0?ce=!0:Ue=xr):Qp.test(qe)&&We==="h"?((nt||Ue)&&(ce=!0),ct===0?ce=!0:nt=ct):ce=!0;if(!ce)V.source={value:l,startOffset:q},Ae&&(V.width={value:Ae}),Ue&&(V.density={value:Ue}),nt&&(V.height={value:nt}),W.push(V);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${pe}".`)}}var Rk=Mk;function qk(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>Uk(yn(a.node))}var Zp={width:"w",height:"h",density:"x"},Hk=Object.keys(Zp);function Uk(a){let s=Rk(a),l=Hk.filter(W=>s.some(we=>Object.prototype.hasOwnProperty.call(we,W)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[p]=l,f=Zp[p],y=s.map(W=>W.source.value),S=Math.max(...y.map(W=>W.length)),B=s.map(W=>W[p]?String(W[p].value):""),q=B.map(W=>{let we=W.indexOf(".");return we===-1?W.length:we}),Y=Math.max(...q);return zn(Dn([",",xe],y.map((W,we)=>{let ge=[W],ce=B[we];if(ce){let Ae=S-W.length+1,Ue=Y-q[we],nt=" ".repeat(Ae+Ue);ge.push(yt(nt," "),ce+f)}return ge})))}var Wk=qk;function zk(a,s){let{node:l}=a,p=yn(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!p.includes("{{"))return async f=>zn(await f(p,{parser:"css",__isHTMLStyleAttribute:!0}))}var Bo=new WeakMap;function Vk(a,s){let{root:l}=a;return Bo.has(l)||Bo.set(l,l.children.some(p=>Kp(p,s)&&["ts","typescript"].includes(p.attrMap.lang))),Bo.get(l)}var No=Vk;function Gk(a,s,l){let{node:p}=l,f=yn(p);return wt(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ln)}function Yk(a,s,{parseWithTs:l}){return wt(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function Kk(a){let s=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,l=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,p=a.trim();return s.test(p)||l.test(p)}async function Jk(a,s,l,p){let f=yn(l.node),{left:y,operator:S,right:B}=Xk(f),q=No(l,p);return[de(await wt(`function _(${y}) {}`,a,{parser:q?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",S," ",await wt(B,a,{parser:q?"__ts_expression":"__js_expression"})]}function Xk(a){let s=/(.*?)\s+(in|of)\s+(.*)/su,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,p=/^\(|\)$/gu,f=a.match(s);if(!f)return;let y={};if(y.for=f[3].trim(),!y.for)return;let S=C(!1,f[1].trim(),p,""),B=S.match(l);B?(y.alias=S.replace(l,""),y.iterator1=B[1].trim(),B[2]&&(y.iterator2=B[2].trim())):y.alias=S;let q=[y.alias,y.iterator1,y.iterator2];if(!q.some((Y,W)=>!Y&&(W===0||q.slice(W+1).some(Boolean))))return{left:q.filter(Boolean).join(","),operator:f[2],right:y.for}}function Qk(a,s){if(s.parser!=="vue")return;let{node:l}=a,p=l.fullName;if(p==="v-for")return Jk;if(p==="generic"&&Kp(l.parent,s))return Gk;let f=yn(l),y=No(a,s);if(xk(l)||_k(l,s))return S=>Yk(f,S,{parseWithTs:y});if(p.startsWith("@")||p.startsWith("v-on:"))return S=>Zk(f,S,{parseWithTs:y});if(p.startsWith(":")||p.startsWith("v-bind:"))return S=>e1(f,S,{parseWithTs:y});if(p.startsWith("v-"))return S=>ed(f,S,{parseWithTs:y})}function Zk(a,s,{parseWithTs:l}){return Kk(a)?ed(a,s,{parseWithTs:l}):wt(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},ln)}function e1(a,s,{parseWithTs:l}){return wt(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},ln)}function ed(a,s,{parseWithTs:l}){return wt(a,s,{parser:l?"__ts_expression":"__js_expression"},ln)}var t1=Qk;function n1(a,s){let{node:l}=a;if(l.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(s.originalText.slice(l.valueSpan.start.offset,l.valueSpan.end.offset))||s.parser==="lwc"&&l.value.startsWith("{")&&l.value.endsWith("}"))return[l.rawName,"=",l.value];for(let p of[Wk,zk,Nk,t1,Tk]){let f=p(a,s);if(f)return r1(f)}}}function r1(a){return async(s,l,p,f)=>{let y=await a(s,l,p,f);if(y)return y=ia(y,S=>typeof S=="string"?C(!1,S,'"',"&quot;"):S),[p.node.rawName,'="',de(y),'"']}}var a1=n1,td=new Proxy(()=>{},{get:()=>td}),nd=td;function i1(a){return Array.isArray(a)&&a.length>0}var jo=i1;function xi(a){return a.sourceSpan.start.offset}function _i(a){return a.sourceSpan.end.offset}function Po(a,s){return[a.isSelfClosing?"":s1(a,s),ha(a,s)]}function s1(a,s){return a.lastChild&&ga(a.lastChild)?"":[o1(a,s),Lo(a,s)]}function ha(a,s){return(a.next?Gn(a.next):ma(a.parent))?"":[fa(a,s),Vn(a,s)]}function o1(a,s){return ma(a)?fa(a.lastChild,s):""}function Vn(a,s){return ga(a)?Lo(a.parent,s):Si(a)?Io(a.next):""}function Lo(a,s){if(nd(!a.isSelfClosing),rd(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function fa(a,s){if(rd(a,s))return"";switch(a.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(a.isSelfClosing)return"/>";default:return">"}}function rd(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(Te(a)||Be(a.parent,s))}function Gn(a){return a.prev&&a.prev.type!=="docType"&&a.type!=="angularControlFlowBlock"&&!He(a.prev)&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function ma(a){var s;return((s=a.lastChild)==null?void 0:s.isTrailingSpaceSensitive)&&!a.lastChild.hasTrailingSpaces&&!He(Ao(a.lastChild))&&!yr(a)}function ga(a){return!a.next&&!a.hasTrailingSpaces&&a.isTrailingSpaceSensitive&&He(Ao(a))}function Si(a){return a.next&&!He(a.next)&&He(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function l1(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Ei(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function u1(a,s,l){var p;let{node:f}=a;if(!jo(f.attrs))return f.isSelfClosing?" ":"";let y=((p=f.prev)==null?void 0:p.type)==="comment"&&l1(f.prev.value),S=typeof y=="boolean"?()=>y:Array.isArray(y)?we=>y.includes(we.rawName):()=>!1,B=a.map(({node:we})=>S(we)?mt(s.originalText.slice(xi(we),_i(we))):l(),"attrs"),q=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,Y=s.singleAttributePerLine&&f.attrs.length>1&&!br(f,s)?Se:xe,W=[Fe([q?" ":xe,Dn(Y,B)])];return f.firstChild&&Ei(f.firstChild)||f.isSelfClosing&&ma(f.parent)||q?W.push(f.isSelfClosing?" ":""):W.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?xe:Pe),W}function c1(a){return a.firstChild&&Ei(a.firstChild)?"":Mo(a)}function Oo(a,s,l){let{node:p}=a;return[va(p,s),u1(a,s,l),p.isSelfClosing?"":c1(p)]}function va(a,s){return a.prev&&Si(a.prev)?"":[Yn(a,s),Io(a)]}function Yn(a,s){return Ei(a)?Mo(a.parent):Gn(a)?fa(a.prev,s):""}function Io(a){switch(a.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${a.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return a.value==="html"?"<!doctype":"<!DOCTYPE";case"angularIcuExpression":return"{";case"element":if(a.condition)return`<!--[if ${a.condition}]><!--><${a.rawName}`;default:return`<${a.rawName}`}}function Mo(a){switch(nd(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function p1(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Ei(a.firstChild)&&(l-=Mo(a).length);let p=a.endSourceSpan.start.offset;return a.lastChild&&ga(a.lastChild)?p+=Lo(a,s).length:ma(a)&&(p-=fa(a.lastChild,s).length),s.originalText.slice(l,p)}var ad=p1,d1=new Set(["if","else if","for","switch","case"]);function h1(a,s){let{node:l}=a;switch(l.type){case"element":if(tt(l)||l.type==="interpolation")return;if(!l.isSelfClosing&&$o(l,s)){let p=Wp(l,s);return p?async(f,y)=>{let S=ad(l,s),B=/^\s*$/u.test(S),q="";return B||(q=await f(se(S),{parser:p,__embeddedInHtml:!0}),B=q===""),[Yn(l,s),de(Oo(a,s,y)),B?"":Se,q,B?"":Se,Po(l,s),Vn(l,s)]}:void 0}break;case"text":if(tt(l.parent)){let p=Wp(l.parent,s);if(p)return async f=>{let y=p==="markdown"?Vp(l.value.replace(/^[^\S\n]*\n/u,"")):l.value,S={parser:p,__embeddedInHtml:!0};if(s.parser==="html"&&p==="babel"){let B="script",{attrMap:q}=l.parent;q&&(q.type==="module"||q.type==="text/babel"&&q["data-type"]==="module")&&(B="module"),S.__babelSourceType=B}return[bt,Yn(l,s),await f(y,S),Vn(l,s)]}}else if(l.parent.type==="interpolation")return async p=>{let f={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return s.parser==="angular"?f.parser="__ng_interpolation":s.parser==="vue"?f.parser=No(a,s)?"__vue_ts_expression":"__vue_expression":f.parser="__js_expression",[Fe([xe,await p(l.value,f)]),l.parent.next&&Gn(l.parent.next)?" ":xe]};break;case"attribute":return a1(a,s);case"front-matter":return p=>Co(l,p);case"angularControlFlowBlockParameters":return d1.has(a.parent.name)?Di:void 0;case"angularLetDeclarationInitializer":return p=>wt(l.value,p,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var f1=h1,Da=null;function ya(a){if(Da!==null&&typeof Da.property){let s=Da;return Da=ya.prototype=null,s}return Da=ya.prototype=a??Object.create(null),new ya}var m1=10;for(let a=0;a<=m1;a++)ya();function g1(a){return ya(a)}function v1(a,s="type"){g1(a);function l(p){let f=p[s],y=a[f];if(!Array.isArray(y))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:p});return y}return l}var D1=v1,y1={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},b1=y1,k1=D1(b1),w1=k1;function C1(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function x1(a){return`<!-- @format -->
575
575
 
576
- `+a}var _1=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function id(a){let s=_i(a);return a.type==="element"&&!a.endSourceSpan&&jo(a.children)?Math.max(s,id(on(!1,a.children,-1))):s}function ya(a,s,l){let p=a.node;if(Te(p)){let f=id(p);return[Yn(p,s),mt(At.trimEnd(s.originalText.slice(xi(p)+(p.prev&&Si(p.prev)?Io(p).length:0),f-(p.next&&Gn(p.next)?ha(p,s).length:0)))),Vn(p,s)]}return l()}function Fi(a,s){return He(a)&&He(s)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?Fo(s)?Se:xe:"":Fo(s)?Se:Pe:Si(a)&&(Te(s)||s.firstChild||s.isSelfClosing||s.type==="element"&&s.attrs.length>0)||a.type==="element"&&a.isSelfClosing&&Gn(s)?"":!s.isLeadingSpaceSensitive||Fo(s)||Gn(s)&&a.lastChild&&ma(a.lastChild)&&a.lastChild.lastChild&&ma(a.lastChild.lastChild)?Se:s.hasLeadingSpaces?xe:Pe}function Ro(a,s,l){let{node:p}=a;if(Ip(p))return[bt,...a.map(y=>{let S=y.node,B=S.prev?Fi(S.prev,S):"";return[B?[B,wi(S.prev)?Se:""]:"",ya(y,s,l)]},"children")];let f=p.children.map(()=>Symbol(""));return a.map((y,S)=>{let B=y.node;if(He(B)){if(B.prev&&He(B.prev)){let Ae=Fi(B.prev,B);if(Ae)return wi(B.prev)?[Se,Se,ya(y,s,l)]:[Ae,ya(y,s,l)]}return ya(y,s,l)}let q=[],Y=[],W=[],we=[],ge=B.prev?Fi(B.prev,B):"",ce=B.next?Fi(B,B.next):"";return ge&&(wi(B.prev)?q.push(Se,Se):ge===Se?q.push(Se):He(B.prev)?Y.push(ge):Y.push(yt("",Pe,{groupId:f[S-1]}))),ce&&(wi(B)?He(B.next)&&we.push(Se,Se):ce===Se?He(B.next)&&we.push(Se):W.push(ce)),[...q,de([...Y,de([ya(y,s,l),...W],{id:f[S]})]),...we]},"children")}function S1(a,s,l){let{node:p}=a,f=[];E1(a)&&f.push("} "),f.push("@",p.name),p.parameters&&f.push(" (",de(l("parameters")),")"),f.push(" {");let y=sd(p);return p.children.length>0?(p.firstChild.hasLeadingSpaces=!0,p.lastChild.hasTrailingSpaces=!0,f.push(Fe([Se,Ro(a,s,l)])),y&&f.push(Se,"}")):y&&f.push("}"),de(f,{shouldBreak:!0})}function sd(a){var s,l;return!(((s=a.next)==null?void 0:s.type)==="angularControlFlowBlock"&&(l=_1.get(a.name))!=null&&l.has(a.next.name))}function E1(a){let{previous:s}=a;return(s==null?void 0:s.type)==="angularControlFlowBlock"&&!Te(s)&&!sd(s)}function F1(a,s,l){return[Fe([Pe,Dn([";",xe],a.map(l,"children"))]),Pe]}function A1(a,s,l){let{node:p}=a;return[ga(p,s),de([p.switchValue.trim(),", ",p.clause,p.cases.length>0?[",",Fe([xe,Dn(xe,a.map(l,"cases"))])]:"",Pe]),da(p,s)]}function $1(a,s,l){let{node:p}=a;return[p.value," {",de([Fe([Pe,a.map(({node:f})=>f.type==="text"&&!At.trim(f.value)?"":l(),"expression")]),Pe]),"}"]}function T1(a,s,l){let{node:p}=a;if(Be(p,s))return[Yn(p,s),de(Oo(a,s,l)),mt(ad(p,s)),...Po(p,s),Vn(p,s)];let f=p.children.length===1&&(p.firstChild.type==="interpolation"||p.firstChild.type==="angularIcuExpression")&&p.firstChild.isLeadingSpaceSensitive&&!p.firstChild.hasLeadingSpaces&&p.lastChild.isTrailingSpaceSensitive&&!p.lastChild.hasTrailingSpaces,y=Symbol("element-attr-group-id"),S=W=>de([de(Oo(a,s,l),{id:y}),W,Po(p,s)]),B=W=>f?vn(W,{groupId:y}):(tt(p)||Ci(p,s))&&p.parent.type==="root"&&s.parser==="vue"&&!s.vueIndentScriptAndStyle?W:Fe(W),q=()=>f?yt(Pe,"",{groupId:y}):p.firstChild.hasLeadingSpaces&&p.firstChild.isLeadingSpaceSensitive?xe:p.firstChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive?ft(Pe):Pe,Y=()=>(p.next?Gn(p.next):fa(p.parent))?p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?" ":"":f?yt(Pe,"",{groupId:y}):p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?xe:(p.lastChild.type==="comment"||p.lastChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${s.tabWidth*(a.ancestors.length-1)}}$`,"u").test(p.lastChild.value)?"":Pe;return p.children.length===0?S(p.hasDanglingSpaces&&p.isDanglingSpaceSensitive?xe:""):S([uk(p)?bt:"",B([q(),Ro(a,s,l)]),Y()])}function Ai(a){return a>=9&&a<=32||a==160}function qo(a){return 48<=a&&a<=57}function $i(a){return a>=97&&a<=122||a>=65&&a<=90}function B1(a){return a>=97&&a<=102||a>=65&&a<=70||qo(a)}function Ho(a){return a===10||a===13}function od(a){return 48<=a&&a<=55}function Uo(a){return a===39||a===34||a===96}var N1=/-+([a-z0-9])/g;function j1(a){return a.replace(N1,(...s)=>s[1].toUpperCase())}var Wo=class Vd{constructor(s,l,p,f){this.file=s,this.offset=l,this.line=p,this.col=f}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(s){let l=this.file.content,p=l.length,f=this.offset,y=this.line,S=this.col;for(;f>0&&s<0;)if(f--,s++,l.charCodeAt(f)==10){y--;let B=l.substring(0,f-1).lastIndexOf(`
576
+ `+a}var _1=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function id(a){let s=_i(a);return a.type==="element"&&!a.endSourceSpan&&jo(a.children)?Math.max(s,id(on(!1,a.children,-1))):s}function ba(a,s,l){let p=a.node;if(Te(p)){let f=id(p);return[Yn(p,s),mt(At.trimEnd(s.originalText.slice(xi(p)+(p.prev&&Si(p.prev)?Io(p).length:0),f-(p.next&&Gn(p.next)?fa(p,s).length:0)))),Vn(p,s)]}return l()}function Fi(a,s){return He(a)&&He(s)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?Fo(s)?Se:xe:"":Fo(s)?Se:Pe:Si(a)&&(Te(s)||s.firstChild||s.isSelfClosing||s.type==="element"&&s.attrs.length>0)||a.type==="element"&&a.isSelfClosing&&Gn(s)?"":!s.isLeadingSpaceSensitive||Fo(s)||Gn(s)&&a.lastChild&&ga(a.lastChild)&&a.lastChild.lastChild&&ga(a.lastChild.lastChild)?Se:s.hasLeadingSpaces?xe:Pe}function Ro(a,s,l){let{node:p}=a;if(Ip(p))return[bt,...a.map(y=>{let S=y.node,B=S.prev?Fi(S.prev,S):"";return[B?[B,wi(S.prev)?Se:""]:"",ba(y,s,l)]},"children")];let f=p.children.map(()=>Symbol(""));return a.map((y,S)=>{let B=y.node;if(He(B)){if(B.prev&&He(B.prev)){let Ae=Fi(B.prev,B);if(Ae)return wi(B.prev)?[Se,Se,ba(y,s,l)]:[Ae,ba(y,s,l)]}return ba(y,s,l)}let q=[],Y=[],W=[],we=[],ge=B.prev?Fi(B.prev,B):"",ce=B.next?Fi(B,B.next):"";return ge&&(wi(B.prev)?q.push(Se,Se):ge===Se?q.push(Se):He(B.prev)?Y.push(ge):Y.push(yt("",Pe,{groupId:f[S-1]}))),ce&&(wi(B)?He(B.next)&&we.push(Se,Se):ce===Se?He(B.next)&&we.push(Se):W.push(ce)),[...q,de([...Y,de([ba(y,s,l),...W],{id:f[S]})]),...we]},"children")}function S1(a,s,l){let{node:p}=a,f=[];E1(a)&&f.push("} "),f.push("@",p.name),p.parameters&&f.push(" (",de(l("parameters")),")"),f.push(" {");let y=sd(p);return p.children.length>0?(p.firstChild.hasLeadingSpaces=!0,p.lastChild.hasTrailingSpaces=!0,f.push(Fe([Se,Ro(a,s,l)])),y&&f.push(Se,"}")):y&&f.push("}"),de(f,{shouldBreak:!0})}function sd(a){var s,l;return!(((s=a.next)==null?void 0:s.type)==="angularControlFlowBlock"&&(l=_1.get(a.name))!=null&&l.has(a.next.name))}function E1(a){let{previous:s}=a;return(s==null?void 0:s.type)==="angularControlFlowBlock"&&!Te(s)&&!sd(s)}function F1(a,s,l){return[Fe([Pe,Dn([";",xe],a.map(l,"children"))]),Pe]}function A1(a,s,l){let{node:p}=a;return[va(p,s),de([p.switchValue.trim(),", ",p.clause,p.cases.length>0?[",",Fe([xe,Dn(xe,a.map(l,"cases"))])]:"",Pe]),ha(p,s)]}function $1(a,s,l){let{node:p}=a;return[p.value," {",de([Fe([Pe,a.map(({node:f})=>f.type==="text"&&!At.trim(f.value)?"":l(),"expression")]),Pe]),"}"]}function T1(a,s,l){let{node:p}=a;if(Be(p,s))return[Yn(p,s),de(Oo(a,s,l)),mt(ad(p,s)),...Po(p,s),Vn(p,s)];let f=p.children.length===1&&(p.firstChild.type==="interpolation"||p.firstChild.type==="angularIcuExpression")&&p.firstChild.isLeadingSpaceSensitive&&!p.firstChild.hasLeadingSpaces&&p.lastChild.isTrailingSpaceSensitive&&!p.lastChild.hasTrailingSpaces,y=Symbol("element-attr-group-id"),S=W=>de([de(Oo(a,s,l),{id:y}),W,Po(p,s)]),B=W=>f?vn(W,{groupId:y}):(tt(p)||Ci(p,s))&&p.parent.type==="root"&&s.parser==="vue"&&!s.vueIndentScriptAndStyle?W:Fe(W),q=()=>f?yt(Pe,"",{groupId:y}):p.firstChild.hasLeadingSpaces&&p.firstChild.isLeadingSpaceSensitive?xe:p.firstChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive?ft(Pe):Pe,Y=()=>(p.next?Gn(p.next):ma(p.parent))?p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?" ":"":f?yt(Pe,"",{groupId:y}):p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?xe:(p.lastChild.type==="comment"||p.lastChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${s.tabWidth*(a.ancestors.length-1)}}$`,"u").test(p.lastChild.value)?"":Pe;return p.children.length===0?S(p.hasDanglingSpaces&&p.isDanglingSpaceSensitive?xe:""):S([uk(p)?bt:"",B([q(),Ro(a,s,l)]),Y()])}function Ai(a){return a>=9&&a<=32||a==160}function qo(a){return 48<=a&&a<=57}function $i(a){return a>=97&&a<=122||a>=65&&a<=90}function B1(a){return a>=97&&a<=102||a>=65&&a<=70||qo(a)}function Ho(a){return a===10||a===13}function od(a){return 48<=a&&a<=55}function Uo(a){return a===39||a===34||a===96}var N1=/-+([a-z0-9])/g;function j1(a){return a.replace(N1,(...s)=>s[1].toUpperCase())}var Wo=class Vd{constructor(s,l,p,f){this.file=s,this.offset=l,this.line=p,this.col=f}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(s){let l=this.file.content,p=l.length,f=this.offset,y=this.line,S=this.col;for(;f>0&&s<0;)if(f--,s++,l.charCodeAt(f)==10){y--;let B=l.substring(0,f-1).lastIndexOf(`
577
577
  `);S=B>0?f-B:f}else S--;for(;f<p&&s>0;){let B=l.charCodeAt(f);f++,s--,B==10?(y++,S=0):S++}return new Vd(this.file,f,y,S)}getContext(s,l){let p=this.file.content,f=this.offset;if(f!=null){f>p.length-1&&(f=p.length-1);let y=f,S=0,B=0;for(;S<s&&f>0&&(f--,S++,!(p[f]==`
578
578
  `&&++B==l)););for(S=0,B=0;S<s&&y<p.length-1&&(y++,S++,!(p[y]==`
579
579
  `&&++B==l)););return{before:p.substring(f,this.offset),after:p.substring(this.offset,y+1)}}return null}},ld=class{constructor(a,s){this.content=a,this.url=s}},oe=class{constructor(a,s,l=a,p=null){this.start=a,this.end=s,this.fullStart=l,this.details=p}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Ti;(function(a){a[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR"})(Ti||(Ti={}));var ud=class{constructor(a,s,l=Ti.ERROR){this.span=a,this.msg=s,this.level=l}contextualMessage(){let a=this.span.start.getContext(100,3);return a?`${this.msg} ("${a.before}[${Ti[this.level]} ->]${a.after}")`:this.msg}toString(){let a=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${a}`}},P1=[O1,I1,R1,H1,U1,V1,W1,z1,G1,q1];function L1(a,s){for(let l of P1)l(a,s);return a}function O1(a){a.walk(s=>{if(s.type==="element"&&s.tagDefinition.ignoreFirstLf&&s.children.length>0&&s.children[0].type==="text"&&s.children[0].value[0]===`
580
- `){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function I1(a){let s=l=>{var p,f;return l.type==="element"&&((p=l.prev)==null?void 0:p.type)==="ieConditionalStartComment"&&l.prev.sourceSpan.end.offset===l.startSourceSpan.start.offset&&((f=l.firstChild)==null?void 0:f.type)==="ieConditionalEndComment"&&l.firstChild.sourceSpan.start.offset===l.startSourceSpan.end.offset};a.walk(l=>{if(l.children)for(let p=0;p<l.children.length;p++){let f=l.children[p];if(!s(f))continue;let y=f.prev,S=f.firstChild;l.removeChild(y),p--;let B=new oe(y.sourceSpan.start,S.sourceSpan.end),q=new oe(B.start,f.sourceSpan.end);f.condition=y.condition,f.sourceSpan=q,f.startSourceSpan=B,f.removeChild(S)}})}function M1(a,s,l){a.walk(p=>{if(p.children)for(let f=0;f<p.children.length;f++){let y=p.children[f];if(y.type!=="text"&&!s(y))continue;y.type!=="text"&&(y.type="text",y.value=l(y));let S=y.prev;!S||S.type!=="text"||(S.value+=y.value,S.sourceSpan=new oe(S.sourceSpan.start,y.sourceSpan.end),p.removeChild(y),f--)}})}function R1(a){return M1(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function q1(a){let s=l=>{var p,f;return l.type==="element"&&l.attrs.length===0&&l.children.length===1&&l.firstChild.type==="text"&&!At.hasWhitespaceCharacter(l.children[0].value)&&!l.firstChild.hasLeadingSpaces&&!l.firstChild.hasTrailingSpaces&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces&&l.isTrailingSpaceSensitive&&!l.hasTrailingSpaces&&((p=l.prev)==null?void 0:p.type)==="text"&&((f=l.next)==null?void 0:f.type)==="text"};a.walk(l=>{if(l.children)for(let p=0;p<l.children.length;p++){let f=l.children[p];if(!s(f))continue;let y=f.prev,S=f.next;y.value+=`<${f.rawName}>`+f.firstChild.value+`</${f.rawName}>`+S.value,y.sourceSpan=new oe(y.sourceSpan.start,S.sourceSpan.end),y.isTrailingSpaceSensitive=S.isTrailingSpaceSensitive,y.hasTrailingSpaces=S.hasTrailingSpaces,l.removeChild(f),p--,l.removeChild(S)}})}function H1(a,s){if(s.parser==="html")return;let l=/\{\{(.+?)\}\}/su;a.walk(p=>{if(at(p))for(let f of p.children){if(f.type!=="text")continue;let y=f.sourceSpan.start,S=null,B=f.value.split(l);for(let q=0;q<B.length;q++,y=S){let Y=B[q];if(q%2===0){S=y.moveBy(Y.length),Y.length>0&&p.insertChildBefore(f,{type:"text",value:Y,sourceSpan:new oe(y,S)});continue}S=y.moveBy(Y.length+4),p.insertChildBefore(f,{type:"interpolation",sourceSpan:new oe(y,S),children:Y.length===0?[]:[{type:"text",value:Y,sourceSpan:new oe(y.moveBy(2),S.moveBy(-2))}]})}p.removeChild(f)}})}function U1(a){a.walk(s=>{if(!s.children)return;if(s.children.length===0||s.children.length===1&&s.children[0].type==="text"&&At.trim(s.children[0].value).length===0){s.hasDanglingSpaces=s.children.length>0,s.children=[];return}let l=ca(s),p=ki(s);if(!l)for(let f=0;f<s.children.length;f++){let y=s.children[f];if(y.type!=="text")continue;let{leadingWhitespace:S,text:B,trailingWhitespace:q}=et(y.value),Y=y.prev,W=y.next;B?(y.value=B,y.sourceSpan=new oe(y.sourceSpan.start.moveBy(S.length),y.sourceSpan.end.moveBy(-q.length)),S&&(Y&&(Y.hasTrailingSpaces=!0),y.hasLeadingSpaces=!0),q&&(y.hasTrailingSpaces=!0,W&&(W.hasLeadingSpaces=!0))):(s.removeChild(y),f--,(S||q)&&(Y&&(Y.hasTrailingSpaces=!0),W&&(W.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=p})}function W1(a){a.walk(s=>{s.isSelfClosing=!s.children||s.type==="element"&&(s.tagDefinition.isVoid||s.endSourceSpan&&s.startSourceSpan.start===s.endSourceSpan.start&&s.startSourceSpan.end===s.endSourceSpan.end)})}function z1(a,s){a.walk(l=>{l.type==="element"&&(l.hasHtmComponentClosingTag=l.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(s.originalText.slice(l.endSourceSpan.start.offset,l.endSourceSpan.end.offset)))})}function V1(a,s){a.walk(l=>{l.cssDisplay=kk(l,s)})}function G1(a,s){a.walk(l=>{let{children:p}=l;if(p){if(p.length===0){l.isDanglingSpaceSensitive=lk(l);return}for(let f of p)f.isLeadingSpaceSensitive=Eo(f,s),f.isTrailingSpaceSensitive=ok(f,s);for(let f=0;f<p.length;f++){let y=p[f];y.isLeadingSpaceSensitive=(f===0||y.prev.isTrailingSpaceSensitive)&&y.isLeadingSpaceSensitive,y.isTrailingSpaceSensitive=(f===p.length-1||y.next.isLeadingSpaceSensitive)&&y.isTrailingSpaceSensitive}}})}var Y1=L1;function K1(a,s,l){let{node:p}=a;switch(p.type){case"front-matter":return mt(p.raw);case"root":return s.__onHtmlRoot&&s.__onHtmlRoot(p),[de(Ro(a,s,l)),Se];case"element":case"ieConditionalComment":return T1(a,s,l);case"angularControlFlowBlock":return S1(a,s,l);case"angularControlFlowBlockParameters":return F1(a,s,l);case"angularControlFlowBlockParameter":return At.trim(p.expression);case"angularLetDeclaration":return de(["@let ",de([p.id," =",de(Fe([xe,l("init")]))]),";"]);case"angularLetDeclarationInitializer":return p.value;case"angularIcuExpression":return A1(a,s,l);case"angularIcuCase":return $1(a,s,l);case"ieConditionalStartComment":case"ieConditionalEndComment":return[ga(p),da(p)];case"interpolation":return[ga(p,s),...a.map(l,"children"),da(p,s)];case"text":{if(p.parent.type==="interpolation"){let y=/\n[^\S\n]*$/u,S=y.test(p.value),B=S?p.value.replace(y,""):p.value;return[mt(B),S?Se:""]}let f=di([Yn(p,s),...Yp(p),Vn(p,s)]);return Array.isArray(f)?Dt(f):f}case"docType":return[de([ga(p,s)," ",C(!1,p.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),da(p,s)];case"comment":return[Yn(p,s),mt(s.originalText.slice(xi(p),_i(p))),Vn(p,s)];case"attribute":{if(p.value===null)return p.rawName;let f=Gp(p.value),y=mi(f,'"');return[p.rawName,"=",y,mt(y==='"'?C(!1,f,'"',"&quot;"):C(!1,f,"'","&apos;")),y]}case"cdata":default:throw new sa(p,"HTML")}}var J1={preprocess:Y1,print:K1,insertPragma:x1,massageAstNode:wo,embed:f1,getVisitorKeys:w1},X1=J1,Q1=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],cd={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},pd="HTML",Z1={bracketSameLine:cd.bracketSameLine,htmlWhitespaceSensitivity:{category:pd,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:cd.singleAttributePerLine,vueIndentScriptAndStyle:{category:pd,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},ew=Z1,dd={};c(dd,{angular:()=>rC,html:()=>nC,lwc:()=>iC,vue:()=>aC});var hd;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(hd||(hd={}));var fd;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(fd||(fd={}));var md;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(md||(md={}));var gd={name:"custom-elements"},vd={name:"no-errors-schema"},Kn;(function(a){a[a.NONE=0]="NONE",a[a.HTML=1]="HTML",a[a.STYLE=2]="STYLE",a[a.SCRIPT=3]="SCRIPT",a[a.URL=4]="URL",a[a.RESOURCE_URL=5]="RESOURCE_URL"})(Kn||(Kn={}));var Dd;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Dd||(Dd={}));var Bt;(function(a){a[a.RAW_TEXT=0]="RAW_TEXT",a[a.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",a[a.PARSABLE_DATA=2]="PARSABLE_DATA"})(Bt||(Bt={}));function Bi(a,s=!0){if(a[0]!=":")return[null,a];let l=a.indexOf(":",1);if(l===-1){if(s)throw new Error(`Unsupported format "${a}" expecting ":namespace:name"`);return[null,a]}return[a.slice(1,l),a.slice(l+1)]}function yd(a){return Bi(a)[1]==="ng-container"}function bd(a){return Bi(a)[1]==="ng-content"}function Ni(a){return a===null?null:Bi(a)[0]}function ji(a,s){return a?`:${a}:${s}`:s}var Pi;function kd(){return Pi||(Pi={},Li(Kn.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Li(Kn.STYLE,["*|style"]),Li(Kn.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Li(Kn.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Pi}function Li(a,s){for(let l of s)Pi[l.toLowerCase()]=a}var tw=class{},nw="boolean",rw="number",aw="string",iw="object",sw=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],wd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),ow=Array.from(wd).reduce((a,[s,l])=>(a.set(s,l),a),new Map),lw=class extends tw{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,sw.forEach(a=>{let s=new Map,l=new Set,[p,f]=a.split("|"),y=f.split(","),[S,B]=p.split("^");S.split(",").forEach(Y=>{this._schema.set(Y.toLowerCase(),s),this._eventSchema.set(Y.toLowerCase(),l)});let q=B&&this._schema.get(B.toLowerCase());if(q){for(let[Y,W]of q)s.set(Y,W);for(let Y of this._eventSchema.get(B.toLowerCase()))l.add(Y)}y.forEach(Y=>{if(Y.length>0)switch(Y[0]){case"*":l.add(Y.substring(1));break;case"!":s.set(Y.substring(1),nw);break;case"#":s.set(Y.substring(1),rw);break;case"%":s.set(Y.substring(1),iw);break;default:s.set(Y,aw)}})})}hasProperty(a,s,l){if(l.some(p=>p.name===vd.name))return!0;if(a.indexOf("-")>-1){if(yd(a)||bd(a))return!1;if(l.some(p=>p.name===gd.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===vd.name)||a.indexOf("-")>-1&&(yd(a)||bd(a)||s.some(l=>l.name===gd.name))?!0:this._schema.has(a.toLowerCase())}securityContext(a,s,l){l&&(s=this.getMappedPropName(s)),a=a.toLowerCase(),s=s.toLowerCase();let p=kd()[a+"|"+s];return p||(p=kd()["*|"+s],p||Kn.NONE)}getMappedPropName(a){return wd.get(a)??a}getDefaultComponentElementName(){return"ng-component"}validateProperty(a){return a.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${a}' is disallowed for security reasons, please use (${a.slice(2)})=...
581
- If '${a}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(a){return a.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${a}' is disallowed for security reasons, please use (${a.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(a){let s=this._schema.get(a.toLowerCase())||this._schema.get("unknown");return Array.from(s.keys()).map(l=>ow.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return j1(a)}normalizeAnimationStyleValue(a,s,l){let p="",f=l.toString().trim(),y=null;if(uw(a)&&l!==0&&l!=="0")if(typeof l=="number")p="px";else{let S=l.match(/^[+-]?[\d\.]+([a-z]*)$/);S&&S[1].length==0&&(y=`Please provide a CSS unit value for ${s}:${l}`)}return{error:y,value:f+p}}};function uw(a){switch(a){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var ae=class{constructor({closedByChildren:a,implicitNamespacePrefix:s,contentType:l=Bt.PARSABLE_DATA,closedByParent:p=!1,isVoid:f=!1,ignoreFirstLf:y=!1,preventNamespaceInheritance:S=!1,canSelfClose:B=!1}={}){this.closedByChildren={},this.closedByParent=!1,a&&a.length>0&&a.forEach(q=>this.closedByChildren[q]=!0),this.isVoid=f,this.closedByParent=p||f,this.implicitNamespacePrefix=s||null,this.contentType=l,this.ignoreFirstLf=y,this.preventNamespaceInheritance=S,this.canSelfClose=B??f}isClosedByChild(a){return this.isVoid||a.toLowerCase()in this.closedByChildren}getContentType(a){return typeof this.contentType=="object"?(a===void 0?void 0:this.contentType[a])??this.contentType.default:this.contentType}},Cd,ba;function zo(a){return ba||(Cd=new ae({canSelfClose:!0}),ba=Object.assign(Object.create(null),{base:new ae({isVoid:!0}),meta:new ae({isVoid:!0}),area:new ae({isVoid:!0}),embed:new ae({isVoid:!0}),link:new ae({isVoid:!0}),img:new ae({isVoid:!0}),input:new ae({isVoid:!0}),param:new ae({isVoid:!0}),hr:new ae({isVoid:!0}),br:new ae({isVoid:!0}),source:new ae({isVoid:!0}),track:new ae({isVoid:!0}),wbr:new ae({isVoid:!0}),p:new ae({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ae({closedByChildren:["tbody","tfoot"]}),tbody:new ae({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ae({closedByChildren:["tbody"],closedByParent:!0}),tr:new ae({closedByChildren:["tr"],closedByParent:!0}),td:new ae({closedByChildren:["td","th"],closedByParent:!0}),th:new ae({closedByChildren:["td","th"],closedByParent:!0}),col:new ae({isVoid:!0}),svg:new ae({implicitNamespacePrefix:"svg"}),foreignObject:new ae({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ae({implicitNamespacePrefix:"math"}),li:new ae({closedByChildren:["li"],closedByParent:!0}),dt:new ae({closedByChildren:["dt","dd"]}),dd:new ae({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ae({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ae({closedByChildren:["optgroup"],closedByParent:!0}),option:new ae({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ae({ignoreFirstLf:!0}),listing:new ae({ignoreFirstLf:!0}),style:new ae({contentType:Bt.RAW_TEXT}),script:new ae({contentType:Bt.RAW_TEXT}),title:new ae({contentType:{default:Bt.ESCAPABLE_RAW_TEXT,svg:Bt.PARSABLE_DATA}}),textarea:new ae({contentType:Bt.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new lw().allKnownElementNames().forEach(s=>{!ba[s]&&Ni(s)===null&&(ba[s]=new ae({canSelfClose:!1}))})),ba[a]??Cd}var kr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},cw=class extends kr{constructor(a,s,l,p){super(s,p),this.value=a,this.tokens=l,this.type="text"}visit(a,s){return a.visitText(this,s)}},pw=class extends kr{constructor(a,s,l,p){super(s,p),this.value=a,this.tokens=l,this.type="cdata"}visit(a,s){return a.visitCdata(this,s)}},dw=class extends kr{constructor(a,s,l,p,f,y){super(p,y),this.switchValue=a,this.type=s,this.cases=l,this.switchValueSourceSpan=f}visit(a,s){return a.visitExpansion(this,s)}},hw=class{constructor(a,s,l,p,f){this.value=a,this.expression=s,this.sourceSpan=l,this.valueSourceSpan=p,this.expSourceSpan=f,this.type="expansionCase"}visit(a,s){return a.visitExpansionCase(this,s)}},fw=class extends kr{constructor(a,s,l,p,f,y,S){super(l,S),this.name=a,this.value=s,this.keySpan=p,this.valueSpan=f,this.valueTokens=y,this.type="attribute"}visit(a,s){return a.visitAttribute(this,s)}get nameSpan(){return this.keySpan}},bn=class extends kr{constructor(a,s,l,p,f,y=null,S=null,B){super(p,B),this.name=a,this.attrs=s,this.children=l,this.startSourceSpan=f,this.endSourceSpan=y,this.nameSpan=S,this.type="element"}visit(a,s){return a.visitElement(this,s)}},mw=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},gw=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="docType"}visit(a,s){return a.visitDocType(this,s)}},wr=class extends kr{constructor(a,s,l,p,f,y,S=null,B){super(p,B),this.name=a,this.parameters=s,this.children=l,this.nameSpan=f,this.startSourceSpan=y,this.endSourceSpan=S,this.type="block"}visit(a,s){return a.visitBlock(this,s)}},xd=class{constructor(a,s){this.expression=a,this.sourceSpan=s,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitBlockParameter(this,s)}},_d=class{constructor(a,s,l,p,f){this.name=a,this.value=s,this.sourceSpan=l,this.nameSpan=p,this.valueSpan=f,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitLetDeclaration(this,s)}};function Sd(a,s,l=null){let p=[],f=a.visit?y=>a.visit(y,l)||y.visit(a,l):y=>y.visit(a,l);return s.forEach(y=>{let S=f(y);S&&p.push(S)}),p}var vw=class{constructor(){}visitElement(a,s){this.visitChildren(s,l=>{l(a.attrs),l(a.children)})}visitAttribute(a,s){}visitText(a,s){}visitCdata(a,s){}visitComment(a,s){}visitDocType(a,s){}visitExpansion(a,s){return this.visitChildren(s,l=>{l(a.cases)})}visitExpansionCase(a,s){}visitBlock(a,s){this.visitChildren(s,l=>{l(a.parameters),l(a.children)})}visitBlockParameter(a,s){}visitLetDeclaration(a,s){}visitChildren(a,s){let l=[],p=this;function f(y){y&&l.push(Sd(p,y,a))}return s(f),Array.prototype.concat.apply([],l)}},Oi={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:`
580
+ `){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function I1(a){let s=l=>{var p,f;return l.type==="element"&&((p=l.prev)==null?void 0:p.type)==="ieConditionalStartComment"&&l.prev.sourceSpan.end.offset===l.startSourceSpan.start.offset&&((f=l.firstChild)==null?void 0:f.type)==="ieConditionalEndComment"&&l.firstChild.sourceSpan.start.offset===l.startSourceSpan.end.offset};a.walk(l=>{if(l.children)for(let p=0;p<l.children.length;p++){let f=l.children[p];if(!s(f))continue;let y=f.prev,S=f.firstChild;l.removeChild(y),p--;let B=new oe(y.sourceSpan.start,S.sourceSpan.end),q=new oe(B.start,f.sourceSpan.end);f.condition=y.condition,f.sourceSpan=q,f.startSourceSpan=B,f.removeChild(S)}})}function M1(a,s,l){a.walk(p=>{if(p.children)for(let f=0;f<p.children.length;f++){let y=p.children[f];if(y.type!=="text"&&!s(y))continue;y.type!=="text"&&(y.type="text",y.value=l(y));let S=y.prev;!S||S.type!=="text"||(S.value+=y.value,S.sourceSpan=new oe(S.sourceSpan.start,y.sourceSpan.end),p.removeChild(y),f--)}})}function R1(a){return M1(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function q1(a){let s=l=>{var p,f;return l.type==="element"&&l.attrs.length===0&&l.children.length===1&&l.firstChild.type==="text"&&!At.hasWhitespaceCharacter(l.children[0].value)&&!l.firstChild.hasLeadingSpaces&&!l.firstChild.hasTrailingSpaces&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces&&l.isTrailingSpaceSensitive&&!l.hasTrailingSpaces&&((p=l.prev)==null?void 0:p.type)==="text"&&((f=l.next)==null?void 0:f.type)==="text"};a.walk(l=>{if(l.children)for(let p=0;p<l.children.length;p++){let f=l.children[p];if(!s(f))continue;let y=f.prev,S=f.next;y.value+=`<${f.rawName}>`+f.firstChild.value+`</${f.rawName}>`+S.value,y.sourceSpan=new oe(y.sourceSpan.start,S.sourceSpan.end),y.isTrailingSpaceSensitive=S.isTrailingSpaceSensitive,y.hasTrailingSpaces=S.hasTrailingSpaces,l.removeChild(f),p--,l.removeChild(S)}})}function H1(a,s){if(s.parser==="html")return;let l=/\{\{(.+?)\}\}/su;a.walk(p=>{if(at(p))for(let f of p.children){if(f.type!=="text")continue;let y=f.sourceSpan.start,S=null,B=f.value.split(l);for(let q=0;q<B.length;q++,y=S){let Y=B[q];if(q%2===0){S=y.moveBy(Y.length),Y.length>0&&p.insertChildBefore(f,{type:"text",value:Y,sourceSpan:new oe(y,S)});continue}S=y.moveBy(Y.length+4),p.insertChildBefore(f,{type:"interpolation",sourceSpan:new oe(y,S),children:Y.length===0?[]:[{type:"text",value:Y,sourceSpan:new oe(y.moveBy(2),S.moveBy(-2))}]})}p.removeChild(f)}})}function U1(a){a.walk(s=>{if(!s.children)return;if(s.children.length===0||s.children.length===1&&s.children[0].type==="text"&&At.trim(s.children[0].value).length===0){s.hasDanglingSpaces=s.children.length>0,s.children=[];return}let l=pa(s),p=ki(s);if(!l)for(let f=0;f<s.children.length;f++){let y=s.children[f];if(y.type!=="text")continue;let{leadingWhitespace:S,text:B,trailingWhitespace:q}=et(y.value),Y=y.prev,W=y.next;B?(y.value=B,y.sourceSpan=new oe(y.sourceSpan.start.moveBy(S.length),y.sourceSpan.end.moveBy(-q.length)),S&&(Y&&(Y.hasTrailingSpaces=!0),y.hasLeadingSpaces=!0),q&&(y.hasTrailingSpaces=!0,W&&(W.hasLeadingSpaces=!0))):(s.removeChild(y),f--,(S||q)&&(Y&&(Y.hasTrailingSpaces=!0),W&&(W.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=p})}function W1(a){a.walk(s=>{s.isSelfClosing=!s.children||s.type==="element"&&(s.tagDefinition.isVoid||s.endSourceSpan&&s.startSourceSpan.start===s.endSourceSpan.start&&s.startSourceSpan.end===s.endSourceSpan.end)})}function z1(a,s){a.walk(l=>{l.type==="element"&&(l.hasHtmComponentClosingTag=l.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(s.originalText.slice(l.endSourceSpan.start.offset,l.endSourceSpan.end.offset)))})}function V1(a,s){a.walk(l=>{l.cssDisplay=kk(l,s)})}function G1(a,s){a.walk(l=>{let{children:p}=l;if(p){if(p.length===0){l.isDanglingSpaceSensitive=lk(l);return}for(let f of p)f.isLeadingSpaceSensitive=Eo(f,s),f.isTrailingSpaceSensitive=ok(f,s);for(let f=0;f<p.length;f++){let y=p[f];y.isLeadingSpaceSensitive=(f===0||y.prev.isTrailingSpaceSensitive)&&y.isLeadingSpaceSensitive,y.isTrailingSpaceSensitive=(f===p.length-1||y.next.isLeadingSpaceSensitive)&&y.isTrailingSpaceSensitive}}})}var Y1=L1;function K1(a,s,l){let{node:p}=a;switch(p.type){case"front-matter":return mt(p.raw);case"root":return s.__onHtmlRoot&&s.__onHtmlRoot(p),[de(Ro(a,s,l)),Se];case"element":case"ieConditionalComment":return T1(a,s,l);case"angularControlFlowBlock":return S1(a,s,l);case"angularControlFlowBlockParameters":return F1(a,s,l);case"angularControlFlowBlockParameter":return At.trim(p.expression);case"angularLetDeclaration":return de(["@let ",de([p.id," =",de(Fe([xe,l("init")]))]),";"]);case"angularLetDeclarationInitializer":return p.value;case"angularIcuExpression":return A1(a,s,l);case"angularIcuCase":return $1(a,s,l);case"ieConditionalStartComment":case"ieConditionalEndComment":return[va(p),ha(p)];case"interpolation":return[va(p,s),...a.map(l,"children"),ha(p,s)];case"text":{if(p.parent.type==="interpolation"){let y=/\n[^\S\n]*$/u,S=y.test(p.value),B=S?p.value.replace(y,""):p.value;return[mt(B),S?Se:""]}let f=di([Yn(p,s),...Yp(p),Vn(p,s)]);return Array.isArray(f)?Dt(f):f}case"docType":return[de([va(p,s)," ",C(!1,p.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),ha(p,s)];case"comment":return[Yn(p,s),mt(s.originalText.slice(xi(p),_i(p))),Vn(p,s)];case"attribute":{if(p.value===null)return p.rawName;let f=Gp(p.value),y=mi(f,'"');return[p.rawName,"=",y,mt(y==='"'?C(!1,f,'"',"&quot;"):C(!1,f,"'","&apos;")),y]}case"cdata":default:throw new oa(p,"HTML")}}var J1={preprocess:Y1,print:K1,insertPragma:x1,massageAstNode:wo,embed:f1,getVisitorKeys:w1},X1=J1,Q1=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],cd={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},pd="HTML",Z1={bracketSameLine:cd.bracketSameLine,htmlWhitespaceSensitivity:{category:pd,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:cd.singleAttributePerLine,vueIndentScriptAndStyle:{category:pd,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},ew=Z1,dd={};c(dd,{angular:()=>rC,html:()=>nC,lwc:()=>iC,vue:()=>aC});var hd;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(hd||(hd={}));var fd;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(fd||(fd={}));var md;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(md||(md={}));var gd={name:"custom-elements"},vd={name:"no-errors-schema"},Kn;(function(a){a[a.NONE=0]="NONE",a[a.HTML=1]="HTML",a[a.STYLE=2]="STYLE",a[a.SCRIPT=3]="SCRIPT",a[a.URL=4]="URL",a[a.RESOURCE_URL=5]="RESOURCE_URL"})(Kn||(Kn={}));var Dd;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Dd||(Dd={}));var Bt;(function(a){a[a.RAW_TEXT=0]="RAW_TEXT",a[a.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",a[a.PARSABLE_DATA=2]="PARSABLE_DATA"})(Bt||(Bt={}));function Bi(a,s=!0){if(a[0]!=":")return[null,a];let l=a.indexOf(":",1);if(l===-1){if(s)throw new Error(`Unsupported format "${a}" expecting ":namespace:name"`);return[null,a]}return[a.slice(1,l),a.slice(l+1)]}function yd(a){return Bi(a)[1]==="ng-container"}function bd(a){return Bi(a)[1]==="ng-content"}function Ni(a){return a===null?null:Bi(a)[0]}function ji(a,s){return a?`:${a}:${s}`:s}var Pi;function kd(){return Pi||(Pi={},Li(Kn.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Li(Kn.STYLE,["*|style"]),Li(Kn.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Li(Kn.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Pi}function Li(a,s){for(let l of s)Pi[l.toLowerCase()]=a}var tw=class{},nw="boolean",rw="number",aw="string",iw="object",sw=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],wd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),ow=Array.from(wd).reduce((a,[s,l])=>(a.set(s,l),a),new Map),lw=class extends tw{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,sw.forEach(a=>{let s=new Map,l=new Set,[p,f]=a.split("|"),y=f.split(","),[S,B]=p.split("^");S.split(",").forEach(Y=>{this._schema.set(Y.toLowerCase(),s),this._eventSchema.set(Y.toLowerCase(),l)});let q=B&&this._schema.get(B.toLowerCase());if(q){for(let[Y,W]of q)s.set(Y,W);for(let Y of this._eventSchema.get(B.toLowerCase()))l.add(Y)}y.forEach(Y=>{if(Y.length>0)switch(Y[0]){case"*":l.add(Y.substring(1));break;case"!":s.set(Y.substring(1),nw);break;case"#":s.set(Y.substring(1),rw);break;case"%":s.set(Y.substring(1),iw);break;default:s.set(Y,aw)}})})}hasProperty(a,s,l){if(l.some(p=>p.name===vd.name))return!0;if(a.indexOf("-")>-1){if(yd(a)||bd(a))return!1;if(l.some(p=>p.name===gd.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===vd.name)||a.indexOf("-")>-1&&(yd(a)||bd(a)||s.some(l=>l.name===gd.name))?!0:this._schema.has(a.toLowerCase())}securityContext(a,s,l){l&&(s=this.getMappedPropName(s)),a=a.toLowerCase(),s=s.toLowerCase();let p=kd()[a+"|"+s];return p||(p=kd()["*|"+s],p||Kn.NONE)}getMappedPropName(a){return wd.get(a)??a}getDefaultComponentElementName(){return"ng-component"}validateProperty(a){return a.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${a}' is disallowed for security reasons, please use (${a.slice(2)})=...
581
+ If '${a}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(a){return a.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${a}' is disallowed for security reasons, please use (${a.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(a){let s=this._schema.get(a.toLowerCase())||this._schema.get("unknown");return Array.from(s.keys()).map(l=>ow.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return j1(a)}normalizeAnimationStyleValue(a,s,l){let p="",f=l.toString().trim(),y=null;if(uw(a)&&l!==0&&l!=="0")if(typeof l=="number")p="px";else{let S=l.match(/^[+-]?[\d\.]+([a-z]*)$/);S&&S[1].length==0&&(y=`Please provide a CSS unit value for ${s}:${l}`)}return{error:y,value:f+p}}};function uw(a){switch(a){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var ae=class{constructor({closedByChildren:a,implicitNamespacePrefix:s,contentType:l=Bt.PARSABLE_DATA,closedByParent:p=!1,isVoid:f=!1,ignoreFirstLf:y=!1,preventNamespaceInheritance:S=!1,canSelfClose:B=!1}={}){this.closedByChildren={},this.closedByParent=!1,a&&a.length>0&&a.forEach(q=>this.closedByChildren[q]=!0),this.isVoid=f,this.closedByParent=p||f,this.implicitNamespacePrefix=s||null,this.contentType=l,this.ignoreFirstLf=y,this.preventNamespaceInheritance=S,this.canSelfClose=B??f}isClosedByChild(a){return this.isVoid||a.toLowerCase()in this.closedByChildren}getContentType(a){return typeof this.contentType=="object"?(a===void 0?void 0:this.contentType[a])??this.contentType.default:this.contentType}},Cd,ka;function zo(a){return ka||(Cd=new ae({canSelfClose:!0}),ka=Object.assign(Object.create(null),{base:new ae({isVoid:!0}),meta:new ae({isVoid:!0}),area:new ae({isVoid:!0}),embed:new ae({isVoid:!0}),link:new ae({isVoid:!0}),img:new ae({isVoid:!0}),input:new ae({isVoid:!0}),param:new ae({isVoid:!0}),hr:new ae({isVoid:!0}),br:new ae({isVoid:!0}),source:new ae({isVoid:!0}),track:new ae({isVoid:!0}),wbr:new ae({isVoid:!0}),p:new ae({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ae({closedByChildren:["tbody","tfoot"]}),tbody:new ae({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ae({closedByChildren:["tbody"],closedByParent:!0}),tr:new ae({closedByChildren:["tr"],closedByParent:!0}),td:new ae({closedByChildren:["td","th"],closedByParent:!0}),th:new ae({closedByChildren:["td","th"],closedByParent:!0}),col:new ae({isVoid:!0}),svg:new ae({implicitNamespacePrefix:"svg"}),foreignObject:new ae({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ae({implicitNamespacePrefix:"math"}),li:new ae({closedByChildren:["li"],closedByParent:!0}),dt:new ae({closedByChildren:["dt","dd"]}),dd:new ae({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ae({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ae({closedByChildren:["optgroup"],closedByParent:!0}),option:new ae({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ae({ignoreFirstLf:!0}),listing:new ae({ignoreFirstLf:!0}),style:new ae({contentType:Bt.RAW_TEXT}),script:new ae({contentType:Bt.RAW_TEXT}),title:new ae({contentType:{default:Bt.ESCAPABLE_RAW_TEXT,svg:Bt.PARSABLE_DATA}}),textarea:new ae({contentType:Bt.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new lw().allKnownElementNames().forEach(s=>{!ka[s]&&Ni(s)===null&&(ka[s]=new ae({canSelfClose:!1}))})),ka[a]??Cd}var kr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},cw=class extends kr{constructor(a,s,l,p){super(s,p),this.value=a,this.tokens=l,this.type="text"}visit(a,s){return a.visitText(this,s)}},pw=class extends kr{constructor(a,s,l,p){super(s,p),this.value=a,this.tokens=l,this.type="cdata"}visit(a,s){return a.visitCdata(this,s)}},dw=class extends kr{constructor(a,s,l,p,f,y){super(p,y),this.switchValue=a,this.type=s,this.cases=l,this.switchValueSourceSpan=f}visit(a,s){return a.visitExpansion(this,s)}},hw=class{constructor(a,s,l,p,f){this.value=a,this.expression=s,this.sourceSpan=l,this.valueSourceSpan=p,this.expSourceSpan=f,this.type="expansionCase"}visit(a,s){return a.visitExpansionCase(this,s)}},fw=class extends kr{constructor(a,s,l,p,f,y,S){super(l,S),this.name=a,this.value=s,this.keySpan=p,this.valueSpan=f,this.valueTokens=y,this.type="attribute"}visit(a,s){return a.visitAttribute(this,s)}get nameSpan(){return this.keySpan}},bn=class extends kr{constructor(a,s,l,p,f,y=null,S=null,B){super(p,B),this.name=a,this.attrs=s,this.children=l,this.startSourceSpan=f,this.endSourceSpan=y,this.nameSpan=S,this.type="element"}visit(a,s){return a.visitElement(this,s)}},mw=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},gw=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="docType"}visit(a,s){return a.visitDocType(this,s)}},wr=class extends kr{constructor(a,s,l,p,f,y,S=null,B){super(p,B),this.name=a,this.parameters=s,this.children=l,this.nameSpan=f,this.startSourceSpan=y,this.endSourceSpan=S,this.type="block"}visit(a,s){return a.visitBlock(this,s)}},xd=class{constructor(a,s){this.expression=a,this.sourceSpan=s,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitBlockParameter(this,s)}},_d=class{constructor(a,s,l,p,f){this.name=a,this.value=s,this.sourceSpan=l,this.nameSpan=p,this.valueSpan=f,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitLetDeclaration(this,s)}};function Sd(a,s,l=null){let p=[],f=a.visit?y=>a.visit(y,l)||y.visit(a,l):y=>y.visit(a,l);return s.forEach(y=>{let S=f(y);S&&p.push(S)}),p}var vw=class{constructor(){}visitElement(a,s){this.visitChildren(s,l=>{l(a.attrs),l(a.children)})}visitAttribute(a,s){}visitText(a,s){}visitCdata(a,s){}visitComment(a,s){}visitDocType(a,s){}visitExpansion(a,s){return this.visitChildren(s,l=>{l(a.cases)})}visitExpansionCase(a,s){}visitBlock(a,s){this.visitChildren(s,l=>{l(a.parameters),l(a.children)})}visitBlockParameter(a,s){}visitLetDeclaration(a,s){}visitChildren(a,s){let l=[],p=this;function f(y){y&&l.push(Sd(p,y,a))}return s(f),Array.prototype.concat.apply([],l)}},Oi={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:`
582
582
  `,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Dw="";Oi.ngsp=Dw;var yw=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function bw(a,s){if(s!=null&&!(Array.isArray(s)&&s.length==2))throw new Error(`Expected '${a}' to be an array, [start, end].`);if(s!=null){let l=s[0],p=s[1];yw.forEach(f=>{if(f.test(l)||f.test(p))throw new Error(`['${l}', '${p}'] contains unusable interpolation symbol.`)})}}var kw=class Gd{static fromArray(s){return s?(bw("interpolation",s),new Gd(s[0],s[1])):Ed}constructor(s,l){this.start=s,this.end=l}},Ed=new kw("{{","}}"),Vo=class extends ud{constructor(a,s,l){super(l,a),this.tokenType=s}},ww=class{constructor(a,s,l){this.tokens=a,this.errors=s,this.nonNormalizedIcuExpressions=l}};function Cw(a,s,l,p={}){let f=new Sw(new ld(a,s),l,p);return f.tokenize(),new ww(Bw(f.tokens),f.errors,f.nonNormalizedIcuExpressions)}var xw=/\r\n?/g;function Cr(a){return`Unexpected character "${a===0?"EOF":String.fromCharCode(a)}"`}function Fd(a){return`Unknown entity "${a}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function _w(a,s){return`Unable to parse entity "${s}" - ${a} character reference entities must end with ";"`}var Ii;(function(a){a.HEX="hexadecimal",a.DEC="decimal"})(Ii||(Ii={}));var Go=class{constructor(a){this.error=a}},Sw=class{constructor(a,s,l){this._getTagContentType=s,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=l.tokenizeExpansionForms||!1,this._interpolationConfig=l.interpolationConfig||Ed,this._leadingTriviaCodePoints=l.leadingTriviaChars&&l.leadingTriviaChars.map(f=>f.codePointAt(0)||0),this._canSelfClose=l.canSelfClose||!1,this._allowHtmComponentClosingTags=l.allowHtmComponentClosingTags||!1;let p=l.range||{endPos:a.content.length,startPos:0,startLine:0,startCol:0};this._cursor=l.escapedString?new Nw(a,p):new Nd(a,p),this._preserveLineEndings=l.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=l.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=l.tokenizeBlocks??!0,this._tokenizeLet=l.tokenizeLet??!0;try{this._cursor.init()}catch(f){this.handleError(f)}}_processCarriageReturns(a){return this._preserveLineEndings?a:a.replace(xw,`
583
583
  `)}tokenize(){for(;this._cursor.peek()!==0;){let a=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(a):this._attemptStr("--")?this._consumeComment(a):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(a):this._consumeBogusComment(a);else if(this._attemptCharCode(47))this._consumeTagClose(a);else{let s=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=s,this._consumeBogusComment(a)):this._consumeTagOpen(a)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(a):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(a):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(a):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(s){this.handleError(s)}}this._beginToken(34),this._endToken([])}_getBlockName(){let a=!1,s=this._cursor.clone();return this._attemptCharCodeUntilFn(l=>Ai(l)?!a:Td(l)?(a=!0,!1):!0),this._cursor.getChars(s).trim()}_consumeBlockStart(a){this._beginToken(25,a);let s=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Re),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Re);else{s.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):s.type=29}_consumeBlockEnd(a){this._beginToken(27,a),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Bd);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let a=this._cursor.clone(),s=null,l=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||s!==null;){let p=this._cursor.peek();if(p===92)this._cursor.advance();else if(p===s)s=null;else if(s===null&&Uo(p))s=p;else if(p===40&&s===null)l++;else if(p===41&&s===null){if(l===0)break;l>0&&l--}this._cursor.advance()}this._endToken([this._cursor.getChars(a)]),this._attemptCharCodeUntilFn(Bd)}}_consumeLetDeclaration(a){if(this._beginToken(30,a),Ai(this._cursor.peek()))this._attemptCharCodeUntilFn(Re);else{let l=this._endToken([this._cursor.getChars(a)]);l.type=33;return}let s=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Re),!this._attemptCharCode(61)){s.type=33;return}this._attemptCharCodeUntilFn(l=>Re(l)&&!Ho(l)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(s.type=33,s.sourceSpan=this._cursor.getSpan(a))}_getLetDeclarationName(){let a=this._cursor.clone(),s=!1;return this._attemptCharCodeUntilFn(l=>$i(l)||l==36||l===95||s&&qo(l)?(s=!0,!1):!0),this._cursor.getChars(a).trim()}_consumeLetDeclarationValue(){let a=this._cursor.clone();for(this._beginToken(31,a);this._cursor.peek()!==0;){let s=this._cursor.peek();if(s===59)break;Uo(s)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(l=>l===92?(this._cursor.advance(),!1):l===s)),this._cursor.advance()}this._endToken([this._cursor.getChars(a)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if($w(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(a,s=this._cursor.clone()){this._currentTokenStart=s,this._currentTokenType=a}_endToken(a,s){if(this._currentTokenStart===null)throw new Vo("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(s));if(this._currentTokenType===null)throw new Vo("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let l={type:this._currentTokenType,parts:a,sourceSpan:(s??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(l),this._currentTokenStart=null,this._currentTokenType=null,l}_createError(a,s){this._isInExpansionForm()&&(a+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let l=new Vo(a,this._currentTokenType,s);return this._currentTokenStart=null,this._currentTokenType=null,new Go(l)}handleError(a){if(a instanceof Yo&&(a=this._createError(a.msg,this._cursor.getSpan(a.cursor))),a instanceof Go)this.errors.push(a.error);else throw a}_attemptCharCode(a){return this._cursor.peek()===a?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(a){return Tw(this._cursor.peek(),a)?(this._cursor.advance(),!0):!1}_requireCharCode(a){let s=this._cursor.clone();if(!this._attemptCharCode(a))throw this._createError(Cr(this._cursor.peek()),this._cursor.getSpan(s))}_attemptStr(a){let s=a.length;if(this._cursor.charsLeft()<s)return!1;let l=this._cursor.clone();for(let p=0;p<s;p++)if(!this._attemptCharCode(a.charCodeAt(p)))return this._cursor=l,!1;return!0}_attemptStrCaseInsensitive(a){for(let s=0;s<a.length;s++)if(!this._attemptCharCodeCaseInsensitive(a.charCodeAt(s)))return!1;return!0}_requireStr(a){let s=this._cursor.clone();if(!this._attemptStr(a))throw this._createError(Cr(this._cursor.peek()),this._cursor.getSpan(s))}_requireStrCaseInsensitive(a){let s=this._cursor.clone();if(!this._attemptStrCaseInsensitive(a))throw this._createError(Cr(this._cursor.peek()),this._cursor.getSpan(s))}_attemptCharCodeUntilFn(a){for(;!a(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(a,s){let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(a),this._cursor.diff(l)<s)throw this._createError(Cr(this._cursor.peek()),this._cursor.getSpan(l))}_attemptUntilChar(a){for(;this._cursor.peek()!==a;)this._cursor.advance()}_readChar(){let a=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),a}_consumeEntity(a){this._beginToken(9);let s=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let l=this._attemptCharCode(120)||this._attemptCharCode(88),p=this._cursor.clone();if(this._attemptCharCodeUntilFn(Fw),this._cursor.peek()!=59){this._cursor.advance();let y=l?Ii.HEX:Ii.DEC;throw this._createError(_w(y,this._cursor.getChars(s)),this._cursor.getSpan())}let f=this._cursor.getChars(p);this._cursor.advance();try{let y=parseInt(f,l?16:10);this._endToken([String.fromCharCode(y),this._cursor.getChars(s)])}catch{throw this._createError(Fd(this._cursor.getChars(s)),this._cursor.getSpan())}}else{let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(Aw),this._cursor.peek()!=59)this._beginToken(a,s),this._cursor=l,this._endToken(["&"]);else{let p=this._cursor.getChars(l);this._cursor.advance();let f=Oi[p];if(!f)throw this._createError(Fd(p),this._cursor.getSpan(s));this._endToken([f,`&${p};`])}}}_consumeRawText(a,s){this._beginToken(a?6:7);let l=[];for(;;){let p=this._cursor.clone(),f=s();if(this._cursor=p,f)break;a&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(l.join(""))]),l.length=0,this._consumeEntity(6),this._beginToken(6)):l.push(this._readChar())}this._endToken([this._processCarriageReturns(l.join(""))])}_consumeComment(a){this._beginToken(10,a),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(a){this._beginToken(10,a),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(a){this._beginToken(12,a),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(a){this._beginToken(18,a),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let a=this._cursor.clone(),s="";for(;this._cursor.peek()!==58&&!Ew(this._cursor.peek());)this._cursor.advance();let l;this._cursor.peek()===58?(s=this._cursor.getChars(a),this._cursor.advance(),l=this._cursor.clone()):l=a,this._requireCharCodeUntilFn(Ad,s===""?0:1);let p=this._cursor.getChars(l);return[s,p]}_consumeTagOpen(a){let s,l,p,f=[];try{if(!$i(this._cursor.peek()))throw this._createError(Cr(this._cursor.peek()),this._cursor.getSpan(a));for(p=this._consumeTagOpenStart(a),l=p.parts[0],s=p.parts[1],this._attemptCharCodeUntilFn(Re);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[S,B]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(Re),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(Re);let q=this._consumeAttributeValue();f.push({prefix:S,name:B,value:q})}else f.push({prefix:S,name:B});this._attemptCharCodeUntilFn(Re)}this._consumeTagOpenEnd()}catch(S){if(S instanceof Go){p?p.type=4:(this._beginToken(5,a),this._endToken(["<"]));return}throw S}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let y=this._getTagContentType(s,l,this._fullNameStack.length>0,f);this._handleFullNameStackForTagOpen(l,s),y===Bt.RAW_TEXT?this._consumeRawTextWithTagClose(l,s,!1):y===Bt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(l,s,!0)}_consumeRawTextWithTagClose(a,s,l){this._consumeRawText(l,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Re),!this._attemptStrCaseInsensitive(a?`${a}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(Re),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(p=>p===62,3),this._cursor.advance(),this._endToken([a,s]),this._handleFullNameStackForTagClose(a,s)}_consumeTagOpenStart(a){this._beginToken(0,a);let s=this._consumePrefixAndName();return this._endToken(s)}_consumeAttributeName(){let a=this._cursor.peek();if(a===39||a===34)throw this._createError(Cr(a),this._cursor.getSpan());this._beginToken(14);let s=this._consumePrefixAndName();return this._endToken(s),s}_consumeAttributeValue(){let a;if(this._cursor.peek()===39||this._cursor.peek()===34){let s=this._cursor.peek();this._consumeQuote(s);let l=()=>this._cursor.peek()===s;a=this._consumeWithInterpolation(16,17,l,l),this._consumeQuote(s)}else{let s=()=>Ad(this._cursor.peek());a=this._consumeWithInterpolation(16,17,s,s)}return a}_consumeQuote(a){this._beginToken(15),this._requireCharCode(a),this._endToken([String.fromCodePoint(a)])}_consumeTagOpenEnd(){let a=this._attemptCharCode(47)?2:1;this._beginToken(a),this._requireCharCode(62),this._endToken([])}_consumeTagClose(a){if(this._beginToken(3,a),this._attemptCharCodeUntilFn(Re),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Re),this._requireCharCode(62),this._endToken([]);else{let[s,l]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Re),this._requireCharCode(62),this._endToken([s,l]),this._handleFullNameStackForTagClose(s,l)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let a=this._readUntil(44),s=this._processCarriageReturns(a);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([s]);else{let p=this._endToken([a]);s!==a&&this.nonNormalizedIcuExpressions.push(p)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Re),this._beginToken(7);let l=this._readUntil(44);this._endToken([l]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Re)}_consumeExpansionCaseStart(){this._beginToken(21);let a=this._readUntil(123).trim();this._endToken([a]),this._attemptCharCodeUntilFn(Re),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Re),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Re),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(a,s,l,p){this._beginToken(a);let f=[];for(;!l();){let S=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(f.join(""))],S),f.length=0,this._consumeInterpolation(s,S,p),this._beginToken(a)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(f.join(""))]),f.length=0,this._consumeEntity(a),this._beginToken(a)):f.push(this._readChar())}this._inInterpolation=!1;let y=this._processCarriageReturns(f.join(""));return this._endToken([y]),y}_consumeInterpolation(a,s,l){let p=[];this._beginToken(a,s),p.push(this._interpolationConfig.start);let f=this._cursor.clone(),y=null,S=!1;for(;this._cursor.peek()!==0&&(l===null||!l());){let B=this._cursor.clone();if(this._isTagStart()){this._cursor=B,p.push(this._getProcessedChars(f,B)),this._endToken(p);return}if(y===null)if(this._attemptStr(this._interpolationConfig.end)){p.push(this._getProcessedChars(f,B)),p.push(this._interpolationConfig.end),this._endToken(p);return}else this._attemptStr("//")&&(S=!0);let q=this._cursor.peek();this._cursor.advance(),q===92?this._cursor.advance():q===y?y=null:!S&&y===null&&Uo(q)&&(y=q)}p.push(this._getProcessedChars(f,this._cursor)),this._endToken(p)}_getProcessedChars(a,s){return this._processCarriageReturns(s.getChars(a))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let a=this._cursor.clone();a.advance();let s=a.peek();if(97<=s&&s<=122||65<=s&&s<=90||s===47||s===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let a=this._cursor.clone();if(a.advance(),Td(a.peek()))return!0}return!1}_readUntil(a){let s=this._cursor.clone();return this._attemptUntilChar(a),this._cursor.getChars(s)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let a=this._cursor.clone(),s=this._attemptStr(this._interpolationConfig.start);return this._cursor=a,!s}return!0}_handleFullNameStackForTagOpen(a,s){let l=ji(a,s);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===l)&&this._fullNameStack.push(l)}_handleFullNameStackForTagClose(a,s){let l=ji(a,s);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===l&&this._fullNameStack.pop()}};function Re(a){return!Ai(a)||a===0}function Ad(a){return Ai(a)||a===62||a===60||a===47||a===39||a===34||a===61||a===0}function Ew(a){return(a<97||122<a)&&(a<65||90<a)&&(a<48||a>57)}function Fw(a){return a===59||a===0||!B1(a)}function Aw(a){return a===59||a===0||!$i(a)}function $w(a){return a!==125}function Tw(a,s){return $d(a)===$d(s)}function $d(a){return a>=97&&a<=122?a-97+65:a}function Td(a){return $i(a)||qo(a)||a===95}function Bd(a){return a!==59&&Re(a)}function Bw(a){let s=[],l;for(let p=0;p<a.length;p++){let f=a[p];l&&l.type===5&&f.type===5||l&&l.type===16&&f.type===16?(l.parts[0]+=f.parts[0],l.sourceSpan.end=f.sourceSpan.end):(l=f,s.push(l))}return s}var Nd=class Xo{constructor(s,l){if(s instanceof Xo){this.file=s.file,this.input=s.input,this.end=s.end;let p=s.state;this.state={peek:p.peek,offset:p.offset,line:p.line,column:p.column}}else{if(!l)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=s,this.input=s.content,this.end=l.endPos,this.state={peek:-1,offset:l.startPos,line:l.startLine,column:l.startCol}}}clone(){return new Xo(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(s){return this.state.offset-s.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(s,l){s=s||this;let p=s;if(l)for(;this.diff(s)>0&&l.indexOf(s.peek())!==-1;)p===s&&(s=s.clone()),s.advance();let f=this.locationFromCursor(s),y=this.locationFromCursor(this),S=p!==s?this.locationFromCursor(p):f;return new oe(f,y,S)}getChars(s){return this.input.substring(s.state.offset,this.state.offset)}charAt(s){return this.input.charCodeAt(s)}advanceState(s){if(s.offset>=this.end)throw this.state=s,new Yo('Unexpected character "EOF"',this);let l=this.charAt(s.offset);l===10?(s.line++,s.column=0):Ho(l)||s.column++,s.offset++,this.updatePeek(s)}updatePeek(s){s.peek=s.offset>=this.end?0:this.charAt(s.offset)}locationFromCursor(s){return new Wo(s.file,s.state.offset,s.state.line,s.state.column)}},Nw=class Qo extends Nd{constructor(s,l){s instanceof Qo?(super(s),this.internalState={...s.internalState}):(super(s,l),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Qo(this)}getChars(s){let l=s.clone(),p="";for(;l.internalState.offset<this.internalState.offset;)p+=String.fromCodePoint(l.peek()),l.advance();return p}processEscapeSequence(){let s=()=>this.internalState.peek;if(s()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),s()===110)this.state.peek=10;else if(s()===114)this.state.peek=13;else if(s()===118)this.state.peek=11;else if(s()===116)this.state.peek=9;else if(s()===98)this.state.peek=8;else if(s()===102)this.state.peek=12;else if(s()===117)if(this.advanceState(this.internalState),s()===123){this.advanceState(this.internalState);let l=this.clone(),p=0;for(;s()!==125;)this.advanceState(this.internalState),p++;this.state.peek=this.decodeHexDigits(l,p)}else{let l=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(l,4)}else if(s()===120){this.advanceState(this.internalState);let l=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(l,2)}else if(od(s())){let l="",p=0,f=this.clone();for(;od(s())&&p<3;)f=this.clone(),l+=String.fromCodePoint(s()),this.advanceState(this.internalState),p++;this.state.peek=parseInt(l,8),this.internalState=f.internalState}else Ho(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(s,l){let p=this.input.slice(s.internalState.offset,s.internalState.offset+l),f=parseInt(p,16);if(isNaN(f))throw s.state=s.internalState,new Yo("Invalid hexadecimal escape sequence",s);return f}},Yo=class{constructor(a,s){this.msg=a,this.cursor=s}},ut=class Yd extends ud{static create(s,l,p){return new Yd(s,l,p)}constructor(s,l,p){super(l,p),this.elementName=s}},jw=class{constructor(a,s){this.rootNodes=a,this.errors=s}},Pw=class{constructor(a){this.getTagDefinition=a}parse(a,s,l,p=!1,f){let y=ce=>(Ae,...Ue)=>ce(Ae.toLowerCase(),...Ue),S=p?this.getTagDefinition:y(this.getTagDefinition),B=ce=>S(ce).getContentType(),q=p?f:y(f),Y=Cw(a,s,f?(ce,Ae,Ue,nt)=>{let it=q(ce,Ae,Ue,nt);return it!==void 0?it:B(ce)}:B,l),W=l&&l.canSelfClose||!1,we=l&&l.allowHtmComponentClosingTags||!1,ge=new Lw(Y.tokens,S,W,we,p);return ge.build(),new jw(ge.rootNodes,Y.errors.concat(ge.errors))}},Lw=class Kd{constructor(s,l,p,f,y){this.tokens=s,this.getTagDefinition=l,this.canSelfClose=p,this.allowHtmComponentClosingTags=f,this.isTagNameCaseSensitive=y,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let s of this._containerStack)s instanceof wr&&this.errors.push(ut.create(s.name,s.sourceSpan,`Unclosed block "${s.name}"`))}_advance(){let s=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],s}_advanceIf(s){return this._peek.type===s?this._advance():null}_consumeCdata(s){let l=this._advance(),p=this._getText(l),f=this._advanceIf(13);this._addToParent(new pw(p,new oe(s.sourceSpan.start,(f||l).sourceSpan.end),[l]))}_consumeComment(s){let l=this._advanceIf(7),p=this._advanceIf(11),f=l!=null?l.parts[0].trim():null,y=p==null?s.sourceSpan:new oe(s.sourceSpan.start,p.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new mw(f,y))}_consumeDocType(s){let l=this._advanceIf(7),p=this._advanceIf(19),f=l!=null?l.parts[0].trim():null,y=new oe(s.sourceSpan.start,(p||l||s).sourceSpan.end);this._addToParent(new gw(f,y))}_consumeExpansion(s){let l=this._advance(),p=this._advance(),f=[];for(;this._peek.type===21;){let S=this._parseExpansionCase();if(!S)return;f.push(S)}if(this._peek.type!==24){this.errors.push(ut.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let y=new oe(s.sourceSpan.start,this._peek.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new dw(l.parts[0],p.parts[0],f,y,l.sourceSpan)),this._advance()}_parseExpansionCase(){let s=this._advance();if(this._peek.type!==22)return this.errors.push(ut.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let l=this._advance(),p=this._collectExpansionExpTokens(l);if(!p)return null;let f=this._advance();p.push({type:34,parts:[],sourceSpan:f.sourceSpan});let y=new Kd(p,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(y.build(),y.errors.length>0)return this.errors=this.errors.concat(y.errors),null;let S=new oe(s.sourceSpan.start,f.sourceSpan.end,s.sourceSpan.fullStart),B=new oe(l.sourceSpan.start,f.sourceSpan.end,l.sourceSpan.fullStart);return new hw(s.parts[0],y.rootNodes,S,s.sourceSpan,B)}_collectExpansionExpTokens(s){let l=[],p=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&p.push(this._peek.type),this._peek.type===23)if(jd(p,22)){if(p.pop(),p.length===0)return l}else return this.errors.push(ut.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(jd(p,20))p.pop();else return this.errors.push(ut.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(ut.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;l.push(this._advance())}}_getText(s){let l=s.parts[0];if(l.length>0&&l[0]==`
584
584
  `){let p=this._getClosestParentElement();p!=null&&p.children.length==0&&this.getTagDefinition(p.name).ignoreFirstLf&&(l=l.substring(1))}return l}_consumeText(s){let l=[s],p=s.sourceSpan,f=s.parts[0];if(f.length>0&&f[0]===`
585
- `){let y=this._getContainer();y!=null&&y.children.length===0&&this.getTagDefinition(y.name).ignoreFirstLf&&(f=f.substring(1),l[0]={type:s.type,sourceSpan:s.sourceSpan,parts:[f]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)s=this._advance(),l.push(s),s.type===8?f+=s.parts.join("").replace(/&([^;]+);/g,Pd):s.type===9?f+=s.parts[0]:f+=s.parts.join("");if(f.length>0){let y=s.sourceSpan;this._addToParent(new cw(f,new oe(p.start,y.end,p.fullStart,p.details),l))}}_closeVoidElement(){let s=this._getContainer();s instanceof bn&&this.getTagDefinition(s.name).isVoid&&this._containerStack.pop()}_consumeStartTag(s){let[l,p]=s.parts,f=[];for(;this._peek.type===14;)f.push(this._consumeAttr(this._advance()));let y=this._getElementFullName(l,p,this._getClosestParentElement()),S=!1;if(this._peek.type===2){this._advance(),S=!0;let ce=this.getTagDefinition(y);this.canSelfClose||ce.canSelfClose||Ni(y)!==null||ce.isVoid||this.errors.push(ut.create(y,s.sourceSpan,`Only void, custom and foreign elements can be self closed "${s.parts[1]}"`))}else this._peek.type===1&&(this._advance(),S=!1);let B=this._peek.sourceSpan.fullStart,q=new oe(s.sourceSpan.start,B,s.sourceSpan.fullStart),Y=new oe(s.sourceSpan.start,B,s.sourceSpan.fullStart),W=new oe(s.sourceSpan.start.moveBy(1),s.sourceSpan.end),we=new bn(y,f,[],q,Y,void 0,W),ge=this._getContainer();this._pushContainer(we,ge instanceof bn&&this.getTagDefinition(ge.name).isClosedByChild(we.name)),S?this._popContainer(y,bn,q):s.type===4&&(this._popContainer(y,bn,null),this.errors.push(ut.create(y,q,`Opening tag "${y}" not terminated.`)))}_pushContainer(s,l){l&&this._containerStack.pop(),this._addToParent(s),this._containerStack.push(s)}_consumeEndTag(s){let l=this.allowHtmComponentClosingTags&&s.parts.length===0?null:this._getElementFullName(s.parts[0],s.parts[1],this._getClosestParentElement());if(l&&this.getTagDefinition(l).isVoid)this.errors.push(ut.create(l,s.sourceSpan,`Void elements do not have end tags "${s.parts[1]}"`));else if(!this._popContainer(l,bn,s.sourceSpan)){let p=`Unexpected closing tag "${l}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(ut.create(l,s.sourceSpan,p))}}_popContainer(s,l,p){let f=!1;for(let y=this._containerStack.length-1;y>=0;y--){let S=this._containerStack[y];if(Ni(S.name)?S.name===s:(s==null||S.name.toLowerCase()===s.toLowerCase())&&S instanceof l)return S.endSourceSpan=p,S.sourceSpan.end=p!==null?p.end:S.sourceSpan.end,this._containerStack.splice(y,this._containerStack.length-y),!f;(S instanceof wr||S instanceof bn&&!this.getTagDefinition(S.name).closedByParent)&&(f=!0)}return!1}_consumeAttr(s){let l=ji(s.parts[0],s.parts[1]),p=s.sourceSpan.end,f;this._peek.type===15&&(f=this._advance());let y="",S=[],B,q;if(this._peek.type===16)for(B=this._peek.sourceSpan,q=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let W=this._advance();S.push(W),W.type===17?y+=W.parts.join("").replace(/&([^;]+);/g,Pd):W.type===9?y+=W.parts[0]:y+=W.parts.join(""),q=p=W.sourceSpan.end}this._peek.type===15&&(q=p=this._advance().sourceSpan.end);let Y=B&&q&&new oe((f==null?void 0:f.sourceSpan.start)??B.start,q,(f==null?void 0:f.sourceSpan.fullStart)??B.fullStart);return new fw(l,y,new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),s.sourceSpan,Y,S.length>0?S:void 0,void 0)}_consumeBlockOpen(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new xd(B.parts[0],B.sourceSpan))}this._peek.type===26&&this._advance();let p=this._peek.sourceSpan.fullStart,f=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),y=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),S=new wr(s.parts[0],l,[],f,s.sourceSpan,y);this._pushContainer(S,!1)}_consumeBlockClose(s){this._popContainer(null,wr,s.sourceSpan)||this.errors.push(ut.create(null,s.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new xd(B.parts[0],B.sourceSpan))}let p=this._peek.sourceSpan.fullStart,f=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),y=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),S=new wr(s.parts[0],l,[],f,s.sourceSpan,y);this._pushContainer(S,!1),this._popContainer(null,wr,null),this.errors.push(ut.create(s.parts[0],f,`Incomplete block "${s.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(s){let l=s.parts[0],p,f;if(this._peek.type!==31){this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Invalid @let declaration "${l}". Declaration must have a value.`));return}else p=this._advance();if(this._peek.type!==32){this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Unterminated @let declaration "${l}". Declaration must be terminated with a semicolon.`));return}else f=this._advance();let y=f.sourceSpan.fullStart,S=new oe(s.sourceSpan.start,y,s.sourceSpan.fullStart),B=s.sourceSpan.toString().lastIndexOf(l),q=s.sourceSpan.start.moveBy(B),Y=new oe(q,s.sourceSpan.end),W=new _d(l,p.parts[0],S,Y,p.sourceSpan);this._addToParent(W)}_consumeIncompleteLet(s){let l=s.parts[0]??"",p=l?` "${l}"`:"";if(l.length>0){let f=s.sourceSpan.toString().lastIndexOf(l),y=s.sourceSpan.start.moveBy(f),S=new oe(y,s.sourceSpan.end),B=new oe(s.sourceSpan.start,s.sourceSpan.start.moveBy(0)),q=new _d(l,"",s.sourceSpan,S,B);this._addToParent(q)}this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Incomplete @let declaration${p}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let s=this._containerStack.length-1;s>-1;s--)if(this._containerStack[s]instanceof bn)return this._containerStack[s];return null}_addToParent(s){let l=this._getContainer();l===null?this.rootNodes.push(s):l.children.push(s)}_getElementFullName(s,l,p){if(s===""&&(s=this.getTagDefinition(l).implicitNamespacePrefix||"",s===""&&p!=null)){let f=Bi(p.name)[1];this.getTagDefinition(f).preventNamespaceInheritance||(s=Ni(p.name))}return ji(s,l)}};function jd(a,s){return a.length>0&&a[a.length-1]===s}function Pd(a,s){return Oi[s]!==void 0?Oi[s]||a:/^#x[a-f0-9]+$/i.test(s)?String.fromCodePoint(parseInt(s.slice(2),16)):/^#\d+$/.test(s)?String.fromCodePoint(parseInt(s.slice(1),10)):a}var Ow=class extends Pw{constructor(){super(zo)}parse(a,s,l,p=!1,f){return super.parse(a,s,l,p,f)}},Ko=null,Iw=()=>(Ko||(Ko=new Ow),Ko);function Ld(a,s={}){let{canSelfClose:l=!1,allowHtmComponentClosingTags:p=!1,isTagNameCaseSensitive:f=!1,getTagContentType:y,tokenizeAngularBlocks:S=!1,tokenizeAngularLetDeclaration:B=!1}=s;return Iw().parse(a,"angular-html-parser",{tokenizeExpansionForms:S,interpolationConfig:void 0,canSelfClose:l,allowHtmComponentClosingTags:p,tokenizeBlocks:S,tokenizeLet:B},f,y)}function Mw(a,s){let l=new SyntaxError(a+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(l,s)}var Rw=Mw,ka=3;function qw(a){let s=a.slice(0,ka);if(s!=="---"&&s!=="+++")return;let l=a.indexOf(`
586
- `,ka);if(l===-1)return;let p=a.slice(ka,l).trim(),f=a.indexOf(`
585
+ `){let y=this._getContainer();y!=null&&y.children.length===0&&this.getTagDefinition(y.name).ignoreFirstLf&&(f=f.substring(1),l[0]={type:s.type,sourceSpan:s.sourceSpan,parts:[f]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)s=this._advance(),l.push(s),s.type===8?f+=s.parts.join("").replace(/&([^;]+);/g,Pd):s.type===9?f+=s.parts[0]:f+=s.parts.join("");if(f.length>0){let y=s.sourceSpan;this._addToParent(new cw(f,new oe(p.start,y.end,p.fullStart,p.details),l))}}_closeVoidElement(){let s=this._getContainer();s instanceof bn&&this.getTagDefinition(s.name).isVoid&&this._containerStack.pop()}_consumeStartTag(s){let[l,p]=s.parts,f=[];for(;this._peek.type===14;)f.push(this._consumeAttr(this._advance()));let y=this._getElementFullName(l,p,this._getClosestParentElement()),S=!1;if(this._peek.type===2){this._advance(),S=!0;let ce=this.getTagDefinition(y);this.canSelfClose||ce.canSelfClose||Ni(y)!==null||ce.isVoid||this.errors.push(ut.create(y,s.sourceSpan,`Only void, custom and foreign elements can be self closed "${s.parts[1]}"`))}else this._peek.type===1&&(this._advance(),S=!1);let B=this._peek.sourceSpan.fullStart,q=new oe(s.sourceSpan.start,B,s.sourceSpan.fullStart),Y=new oe(s.sourceSpan.start,B,s.sourceSpan.fullStart),W=new oe(s.sourceSpan.start.moveBy(1),s.sourceSpan.end),we=new bn(y,f,[],q,Y,void 0,W),ge=this._getContainer();this._pushContainer(we,ge instanceof bn&&this.getTagDefinition(ge.name).isClosedByChild(we.name)),S?this._popContainer(y,bn,q):s.type===4&&(this._popContainer(y,bn,null),this.errors.push(ut.create(y,q,`Opening tag "${y}" not terminated.`)))}_pushContainer(s,l){l&&this._containerStack.pop(),this._addToParent(s),this._containerStack.push(s)}_consumeEndTag(s){let l=this.allowHtmComponentClosingTags&&s.parts.length===0?null:this._getElementFullName(s.parts[0],s.parts[1],this._getClosestParentElement());if(l&&this.getTagDefinition(l).isVoid)this.errors.push(ut.create(l,s.sourceSpan,`Void elements do not have end tags "${s.parts[1]}"`));else if(!this._popContainer(l,bn,s.sourceSpan)){let p=`Unexpected closing tag "${l}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(ut.create(l,s.sourceSpan,p))}}_popContainer(s,l,p){let f=!1;for(let y=this._containerStack.length-1;y>=0;y--){let S=this._containerStack[y];if(Ni(S.name)?S.name===s:(s==null||S.name.toLowerCase()===s.toLowerCase())&&S instanceof l)return S.endSourceSpan=p,S.sourceSpan.end=p!==null?p.end:S.sourceSpan.end,this._containerStack.splice(y,this._containerStack.length-y),!f;(S instanceof wr||S instanceof bn&&!this.getTagDefinition(S.name).closedByParent)&&(f=!0)}return!1}_consumeAttr(s){let l=ji(s.parts[0],s.parts[1]),p=s.sourceSpan.end,f;this._peek.type===15&&(f=this._advance());let y="",S=[],B,q;if(this._peek.type===16)for(B=this._peek.sourceSpan,q=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let W=this._advance();S.push(W),W.type===17?y+=W.parts.join("").replace(/&([^;]+);/g,Pd):W.type===9?y+=W.parts[0]:y+=W.parts.join(""),q=p=W.sourceSpan.end}this._peek.type===15&&(q=p=this._advance().sourceSpan.end);let Y=B&&q&&new oe((f==null?void 0:f.sourceSpan.start)??B.start,q,(f==null?void 0:f.sourceSpan.fullStart)??B.fullStart);return new fw(l,y,new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),s.sourceSpan,Y,S.length>0?S:void 0,void 0)}_consumeBlockOpen(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new xd(B.parts[0],B.sourceSpan))}this._peek.type===26&&this._advance();let p=this._peek.sourceSpan.fullStart,f=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),y=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),S=new wr(s.parts[0],l,[],f,s.sourceSpan,y);this._pushContainer(S,!1)}_consumeBlockClose(s){this._popContainer(null,wr,s.sourceSpan)||this.errors.push(ut.create(null,s.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new xd(B.parts[0],B.sourceSpan))}let p=this._peek.sourceSpan.fullStart,f=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),y=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),S=new wr(s.parts[0],l,[],f,s.sourceSpan,y);this._pushContainer(S,!1),this._popContainer(null,wr,null),this.errors.push(ut.create(s.parts[0],f,`Incomplete block "${s.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(s){let l=s.parts[0],p,f;if(this._peek.type!==31){this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Invalid @let declaration "${l}". Declaration must have a value.`));return}else p=this._advance();if(this._peek.type!==32){this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Unterminated @let declaration "${l}". Declaration must be terminated with a semicolon.`));return}else f=this._advance();let y=f.sourceSpan.fullStart,S=new oe(s.sourceSpan.start,y,s.sourceSpan.fullStart),B=s.sourceSpan.toString().lastIndexOf(l),q=s.sourceSpan.start.moveBy(B),Y=new oe(q,s.sourceSpan.end),W=new _d(l,p.parts[0],S,Y,p.sourceSpan);this._addToParent(W)}_consumeIncompleteLet(s){let l=s.parts[0]??"",p=l?` "${l}"`:"";if(l.length>0){let f=s.sourceSpan.toString().lastIndexOf(l),y=s.sourceSpan.start.moveBy(f),S=new oe(y,s.sourceSpan.end),B=new oe(s.sourceSpan.start,s.sourceSpan.start.moveBy(0)),q=new _d(l,"",s.sourceSpan,S,B);this._addToParent(q)}this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Incomplete @let declaration${p}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let s=this._containerStack.length-1;s>-1;s--)if(this._containerStack[s]instanceof bn)return this._containerStack[s];return null}_addToParent(s){let l=this._getContainer();l===null?this.rootNodes.push(s):l.children.push(s)}_getElementFullName(s,l,p){if(s===""&&(s=this.getTagDefinition(l).implicitNamespacePrefix||"",s===""&&p!=null)){let f=Bi(p.name)[1];this.getTagDefinition(f).preventNamespaceInheritance||(s=Ni(p.name))}return ji(s,l)}};function jd(a,s){return a.length>0&&a[a.length-1]===s}function Pd(a,s){return Oi[s]!==void 0?Oi[s]||a:/^#x[a-f0-9]+$/i.test(s)?String.fromCodePoint(parseInt(s.slice(2),16)):/^#\d+$/.test(s)?String.fromCodePoint(parseInt(s.slice(1),10)):a}var Ow=class extends Pw{constructor(){super(zo)}parse(a,s,l,p=!1,f){return super.parse(a,s,l,p,f)}},Ko=null,Iw=()=>(Ko||(Ko=new Ow),Ko);function Ld(a,s={}){let{canSelfClose:l=!1,allowHtmComponentClosingTags:p=!1,isTagNameCaseSensitive:f=!1,getTagContentType:y,tokenizeAngularBlocks:S=!1,tokenizeAngularLetDeclaration:B=!1}=s;return Iw().parse(a,"angular-html-parser",{tokenizeExpansionForms:S,interpolationConfig:void 0,canSelfClose:l,allowHtmComponentClosingTags:p,tokenizeBlocks:S,tokenizeLet:B},f,y)}function Mw(a,s){let l=new SyntaxError(a+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(l,s)}var Rw=Mw,wa=3;function qw(a){let s=a.slice(0,wa);if(s!=="---"&&s!=="+++")return;let l=a.indexOf(`
586
+ `,wa);if(l===-1)return;let p=a.slice(wa,l).trim(),f=a.indexOf(`
587
587
  ${s}`,l),y=p;if(y||(y=s==="+++"?"toml":"yaml"),f===-1&&s==="---"&&y==="yaml"&&(f=a.indexOf(`
588
- ...`,l)),f===-1)return;let S=f+1+ka,B=a.charAt(S+1);if(!/\s?/u.test(B))return;let q=a.slice(0,S);return{type:"front-matter",language:y,explicitLanguage:p,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:q.slice(-ka),raw:q}}function Hw(a){let s=qw(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var Uw=Hw,Mi={attrs:!0,children:!0,cases:!0,expression:!0},Od=new Set(["parent"]),Ww=class wa{constructor(s={}){for(let l of new Set([...Od,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in Mi&&(l=l.map(p=>this.createChild(p))),!Od.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let p in Mi){let f=this[p];if(f){let y=zw(f,S=>S.map(s));l!==f&&(l||(l=new wa({parent:this.parent})),l.setProperty(p,y))}}if(l)for(let p in this)p in Mi||(l[p]=this[p]);return s(l||this)}walk(s){for(let l in Mi){let p=this[l];if(p)for(let f=0;f<p.length;f++)p[f].walk(s)}s(this)}createChild(s){let l=s instanceof wa?s.clone():new wa(s);return l.setProperty("parent",this),l}insertChildBefore(s,l){this.children.splice(this.children.indexOf(s),0,this.createChild(l))}removeChild(s){this.children.splice(this.children.indexOf(s),1)}replaceChild(s,l){this.children[this.children.indexOf(s)]=this.createChild(l)}clone(){return new wa(this)}get firstChild(){var s;return(s=this.children)==null?void 0:s[0]}get lastChild(){var s;return(s=this.children)==null?void 0:s[this.children.length-1]}get prev(){var s,l;return(l=(s=this.parent)==null?void 0:s.children)==null?void 0:l[this.parent.children.indexOf(this)-1]}get next(){var s,l;return(l=(s=this.parent)==null?void 0:s.children)==null?void 0:l[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(s=>[s.fullName,s.value]))}};function zw(a,s){let l=a.map(s);return l.some((p,f)=>p!==a[f])?l:a}var Vw=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Yw},{regex:/^\[if([^\]]*)\]><!$/u,parse:Kw},{regex:/^<!\s*\[endif\]$/u,parse:Jw}];function Gw(a,s){if(a.value)for(let{regex:l,parse:p}of Vw){let f=a.value.match(l);if(f)return p(a,s,f)}return null}function Yw(a,s,l){let[,p,f,y]=l,S=4+p.length,B=a.sourceSpan.start.moveBy(S),q=B.moveBy(y.length),[Y,W]=(()=>{try{return[!0,s(y,B).children]}catch{return[!1,[{type:"text",value:y,sourceSpan:new oe(B,q)}]]}})();return{type:"ieConditionalComment",complete:Y,children:W,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new oe(a.sourceSpan.start,B),endSourceSpan:new oe(q,a.sourceSpan.end)}}function Kw(a,s,l){let[,p]=l;return{type:"ieConditionalStartComment",condition:C(!1,p.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function Jw(a){return{type:"ieConditionalEndComment",sourceSpan:a.sourceSpan}}var Jo=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Xw=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function Qw(a){if(a.type==="block"){if(a.name=C(!1,a.name.toLowerCase(),/\s+/gu," ").trim(),a.type="angularControlFlowBlock",!jo(a.parameters)){delete a.parameters;return}for(let s of a.parameters)s.type="angularControlFlowBlockParameter";a.parameters={type:"angularControlFlowBlockParameters",children:a.parameters,sourceSpan:new oe(a.parameters[0].sourceSpan.start,on(!1,a.parameters,-1).sourceSpan.end)}}}function Zw(a){a.type==="letDeclaration"&&(a.type="angularLetDeclaration",a.id=a.name,a.init={type:"angularLetDeclarationInitializer",sourceSpan:new oe(a.valueSpan.start,a.valueSpan.end),value:a.value},delete a.name,delete a.value)}function eC(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function Id(a,s,l){let{name:p,canSelfClose:f=!0,normalizeTagName:y=!1,normalizeAttributeName:S=!1,allowHtmComponentClosingTags:B=!1,isTagNameCaseSensitive:q=!1,shouldParseAsRawText:Y}=s,{rootNodes:W,errors:we}=Ld(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q,getTagContentType:Y?(...V)=>Y(...V)?Bt.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:p==="angular"?!0:void 0,tokenizeAngularLetDeclaration:p==="angular"?!0:void 0});if(p==="vue"){if(W.some(qe=>qe.type==="docType"&&qe.value==="html"||qe.type==="element"&&qe.name.toLowerCase()==="html"))return Id(a,qd,l);let V,pe=()=>V??(V=Ld(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q})),We=qe=>pe().rootNodes.find(({startSourceSpan:ct})=>ct&&ct.start.offset===qe.startSourceSpan.start.offset)??qe;for(let[qe,ct]of W.entries()){let{endSourceSpan:xr,startSourceSpan:oC}=ct;if(xr===null)we=pe().errors,W[qe]=We(ct);else if(tC(ct,l)){let Hd=pe().errors.find(Ud=>Ud.span.start.offset>oC.start.offset&&Ud.span.start.offset<xr.end.offset);Hd&&Md(Hd),W[qe]=We(ct)}}}we.length>0&&Md(we[0]);let ge=V=>{let pe=V.name.startsWith(":")?V.name.slice(1).split(":")[0]:null,We=V.nameSpan.toString(),qe=pe!==null&&We.startsWith(`${pe}:`),ct=qe?We.slice(pe.length+1):We;V.name=ct,V.namespace=pe,V.hasExplicitNamespace=qe},ce=V=>{switch(V.type){case"element":ge(V);for(let pe of V.attrs)ge(pe),pe.valueSpan?(pe.value=pe.valueSpan.toString(),/["']/u.test(pe.value[0])&&(pe.value=pe.value.slice(1,-1))):pe.value=null;break;case"comment":V.value=V.sourceSpan.toString().slice(4,-3);break;case"text":V.value=V.sourceSpan.toString();break}},Ae=(V,pe)=>{let We=V.toLowerCase();return pe(We)?We:V},Ue=V=>{if(V.type==="element"&&(y&&(!V.namespace||V.namespace===V.tagDefinition.implicitNamespacePrefix||ve(V))&&(V.name=Ae(V.name,pe=>Xw.has(pe))),S))for(let pe of V.attrs)pe.namespace||(pe.name=Ae(pe.name,We=>Jo.has(V.name)&&(Jo.get("*").has(We)||Jo.get(V.name).has(We))))},nt=V=>{V.sourceSpan&&V.endSourceSpan&&(V.sourceSpan=new oe(V.sourceSpan.start,V.endSourceSpan.end))},it=V=>{if(V.type==="element"){let pe=zo(q?V.name:V.name.toLowerCase());!V.namespace||V.namespace===pe.implicitNamespacePrefix||ve(V)?V.tagDefinition=pe:V.tagDefinition=zo("")}};return Sd(new class extends vw{visitExpansionCase(V,pe){p==="angular"&&this.visitChildren(pe,We=>{We(V.expression)})}visit(V){ce(V),it(V),Ue(V),nt(V)}},W),W}function tC(a,s){var l;if(a.type!=="element"||a.name!=="template")return!1;let p=(l=a.attrs.find(f=>f.name==="lang"))==null?void 0:l.value;return!p||Dr(s,{language:p})==="html"}function Md(a){let{msg:s,span:{start:l,end:p}}=a;throw Rw(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:p.line+1,column:p.col+1}},cause:a})}function Rd(a,s,l={},p=!0){let{frontMatter:f,content:y}=p?Uw(a):{frontMatter:null,content:a},S=new ld(a,l.filepath),B=new Wo(S,0,0,0),q=B.moveBy(a.length),Y={type:"root",sourceSpan:new oe(B,q),children:Id(y,s,l)};if(f){let ge=new Wo(S,0,0,0),ce=ge.moveBy(f.raw.length);f.sourceSpan=new oe(ge,ce),Y.children.unshift(f)}let W=new Ww(Y),we=(ge,ce)=>{let{offset:Ae}=ce,Ue=C(!1,a.slice(0,Ae),/[^\n\r]/gu," "),nt=Rd(Ue+ge,s,l,!1);nt.sourceSpan=new oe(ce,on(!1,nt.children,-1).sourceSpan.end);let it=nt.children[0];return it.length===Ae?nt.children.shift():(it.sourceSpan=new oe(it.sourceSpan.start.moveBy(Ae),it.sourceSpan.end),it.value=it.value.slice(Ae)),nt};return W.walk(ge=>{if(ge.type==="comment"){let ce=Gw(ge,we);ce&&ge.parent.replaceChild(ge,ce)}Qw(ge),Zw(ge),eC(ge)}),W}function Ri(a){return{parse:(s,l)=>Rd(s,a,l),hasPragma:C1,astFormat:"html",locStart:xi,locEnd:_i}}var qd={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},nC=Ri(qd),rC=Ri({name:"angular"}),aC=Ri({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(a,s,l,p){return a.toLowerCase()!=="html"&&!l&&(a!=="template"||p.some(({name:f,value:y})=>f==="lang"&&y!=="html"&&y!==""&&y!==void 0))}}),iC=Ri({name:"lwc",canSelfClose:!1}),sC={html:X1};return h(k)})})(Oc);var Ic=Oc.exports;const ey=Xd({__proto__:null,default:Ca(Ic)},[Ic]);function ty(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ny(e,t){if(e==null)return{};var n,r,i=ty(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Us(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ry(e){if(Array.isArray(e))return Us(e)}function ay(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iy(e,t){if(e){if(typeof e=="string")return Us(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Us(e,t):void 0}}function sy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
589
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oy(e){return ry(e)||ay(e)||iy(e)||sy()}function Xr(e){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(e)}function ly(e,t){if(Xr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uy(e){var t=ly(e,"string");return Xr(t)=="symbol"?t:t+""}function Mc(e,t,n){return(t=uy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ws.apply(null,arguments)}function Rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rc(Object(n),!0).forEach(function(r){Mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cy(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var zs={};function py(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return zs[t]||(zs[t]=cy(e)),zs[t]}function dy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),i=py(r);return i.reduce(function(o,u){return dr(dr({},o),n[u])},t)}function qc(e){return e.join(" ")}function hy(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return Hc({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function Hc(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,o=e.useInlineStyles,u=e.key,c=t.properties,d=t.type,h=t.tagName,g=t.value;if(d==="text")return g;if(h){var v=hy(n,o),D;if(!o)D=dr(dr({},c),{},{className:qc(c.className)});else{var b=Object.keys(n).reduce(function(T,E){return E.split(".").forEach(function(_){T.includes(_)||T.push(_)}),T},[]),k=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&k.concat(c.className.filter(function(T){return!b.includes(T)}));D=dr(dr({},c),{},{className:qc(x)||void 0,style:dy(c.className,Object.assign({},c.style,i),n)})}var C=v(t.children);return M.createElement(h,Ws({key:u},D),C)}}const fy=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var my=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uc(Object(n),!0).forEach(function(r){Mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gy=/\n/g;function vy(e){return e.match(gy)}function Dy(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var u=o+n;return M.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(u):r},"".concat(u,`
588
+ ...`,l)),f===-1)return;let S=f+1+wa,B=a.charAt(S+1);if(!/\s?/u.test(B))return;let q=a.slice(0,S);return{type:"front-matter",language:y,explicitLanguage:p,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:q.slice(-wa),raw:q}}function Hw(a){let s=qw(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var Uw=Hw,Mi={attrs:!0,children:!0,cases:!0,expression:!0},Od=new Set(["parent"]),Ww=class Ca{constructor(s={}){for(let l of new Set([...Od,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in Mi&&(l=l.map(p=>this.createChild(p))),!Od.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let p in Mi){let f=this[p];if(f){let y=zw(f,S=>S.map(s));l!==f&&(l||(l=new Ca({parent:this.parent})),l.setProperty(p,y))}}if(l)for(let p in this)p in Mi||(l[p]=this[p]);return s(l||this)}walk(s){for(let l in Mi){let p=this[l];if(p)for(let f=0;f<p.length;f++)p[f].walk(s)}s(this)}createChild(s){let l=s instanceof Ca?s.clone():new Ca(s);return l.setProperty("parent",this),l}insertChildBefore(s,l){this.children.splice(this.children.indexOf(s),0,this.createChild(l))}removeChild(s){this.children.splice(this.children.indexOf(s),1)}replaceChild(s,l){this.children[this.children.indexOf(s)]=this.createChild(l)}clone(){return new Ca(this)}get firstChild(){var s;return(s=this.children)==null?void 0:s[0]}get lastChild(){var s;return(s=this.children)==null?void 0:s[this.children.length-1]}get prev(){var s,l;return(l=(s=this.parent)==null?void 0:s.children)==null?void 0:l[this.parent.children.indexOf(this)-1]}get next(){var s,l;return(l=(s=this.parent)==null?void 0:s.children)==null?void 0:l[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(s=>[s.fullName,s.value]))}};function zw(a,s){let l=a.map(s);return l.some((p,f)=>p!==a[f])?l:a}var Vw=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Yw},{regex:/^\[if([^\]]*)\]><!$/u,parse:Kw},{regex:/^<!\s*\[endif\]$/u,parse:Jw}];function Gw(a,s){if(a.value)for(let{regex:l,parse:p}of Vw){let f=a.value.match(l);if(f)return p(a,s,f)}return null}function Yw(a,s,l){let[,p,f,y]=l,S=4+p.length,B=a.sourceSpan.start.moveBy(S),q=B.moveBy(y.length),[Y,W]=(()=>{try{return[!0,s(y,B).children]}catch{return[!1,[{type:"text",value:y,sourceSpan:new oe(B,q)}]]}})();return{type:"ieConditionalComment",complete:Y,children:W,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new oe(a.sourceSpan.start,B),endSourceSpan:new oe(q,a.sourceSpan.end)}}function Kw(a,s,l){let[,p]=l;return{type:"ieConditionalStartComment",condition:C(!1,p.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function Jw(a){return{type:"ieConditionalEndComment",sourceSpan:a.sourceSpan}}var Jo=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Xw=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function Qw(a){if(a.type==="block"){if(a.name=C(!1,a.name.toLowerCase(),/\s+/gu," ").trim(),a.type="angularControlFlowBlock",!jo(a.parameters)){delete a.parameters;return}for(let s of a.parameters)s.type="angularControlFlowBlockParameter";a.parameters={type:"angularControlFlowBlockParameters",children:a.parameters,sourceSpan:new oe(a.parameters[0].sourceSpan.start,on(!1,a.parameters,-1).sourceSpan.end)}}}function Zw(a){a.type==="letDeclaration"&&(a.type="angularLetDeclaration",a.id=a.name,a.init={type:"angularLetDeclarationInitializer",sourceSpan:new oe(a.valueSpan.start,a.valueSpan.end),value:a.value},delete a.name,delete a.value)}function eC(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function Id(a,s,l){let{name:p,canSelfClose:f=!0,normalizeTagName:y=!1,normalizeAttributeName:S=!1,allowHtmComponentClosingTags:B=!1,isTagNameCaseSensitive:q=!1,shouldParseAsRawText:Y}=s,{rootNodes:W,errors:we}=Ld(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q,getTagContentType:Y?(...V)=>Y(...V)?Bt.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:p==="angular"?!0:void 0,tokenizeAngularLetDeclaration:p==="angular"?!0:void 0});if(p==="vue"){if(W.some(qe=>qe.type==="docType"&&qe.value==="html"||qe.type==="element"&&qe.name.toLowerCase()==="html"))return Id(a,qd,l);let V,pe=()=>V??(V=Ld(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q})),We=qe=>pe().rootNodes.find(({startSourceSpan:ct})=>ct&&ct.start.offset===qe.startSourceSpan.start.offset)??qe;for(let[qe,ct]of W.entries()){let{endSourceSpan:xr,startSourceSpan:oC}=ct;if(xr===null)we=pe().errors,W[qe]=We(ct);else if(tC(ct,l)){let Hd=pe().errors.find(Ud=>Ud.span.start.offset>oC.start.offset&&Ud.span.start.offset<xr.end.offset);Hd&&Md(Hd),W[qe]=We(ct)}}}we.length>0&&Md(we[0]);let ge=V=>{let pe=V.name.startsWith(":")?V.name.slice(1).split(":")[0]:null,We=V.nameSpan.toString(),qe=pe!==null&&We.startsWith(`${pe}:`),ct=qe?We.slice(pe.length+1):We;V.name=ct,V.namespace=pe,V.hasExplicitNamespace=qe},ce=V=>{switch(V.type){case"element":ge(V);for(let pe of V.attrs)ge(pe),pe.valueSpan?(pe.value=pe.valueSpan.toString(),/["']/u.test(pe.value[0])&&(pe.value=pe.value.slice(1,-1))):pe.value=null;break;case"comment":V.value=V.sourceSpan.toString().slice(4,-3);break;case"text":V.value=V.sourceSpan.toString();break}},Ae=(V,pe)=>{let We=V.toLowerCase();return pe(We)?We:V},Ue=V=>{if(V.type==="element"&&(y&&(!V.namespace||V.namespace===V.tagDefinition.implicitNamespacePrefix||ve(V))&&(V.name=Ae(V.name,pe=>Xw.has(pe))),S))for(let pe of V.attrs)pe.namespace||(pe.name=Ae(pe.name,We=>Jo.has(V.name)&&(Jo.get("*").has(We)||Jo.get(V.name).has(We))))},nt=V=>{V.sourceSpan&&V.endSourceSpan&&(V.sourceSpan=new oe(V.sourceSpan.start,V.endSourceSpan.end))},it=V=>{if(V.type==="element"){let pe=zo(q?V.name:V.name.toLowerCase());!V.namespace||V.namespace===pe.implicitNamespacePrefix||ve(V)?V.tagDefinition=pe:V.tagDefinition=zo("")}};return Sd(new class extends vw{visitExpansionCase(V,pe){p==="angular"&&this.visitChildren(pe,We=>{We(V.expression)})}visit(V){ce(V),it(V),Ue(V),nt(V)}},W),W}function tC(a,s){var l;if(a.type!=="element"||a.name!=="template")return!1;let p=(l=a.attrs.find(f=>f.name==="lang"))==null?void 0:l.value;return!p||Dr(s,{language:p})==="html"}function Md(a){let{msg:s,span:{start:l,end:p}}=a;throw Rw(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:p.line+1,column:p.col+1}},cause:a})}function Rd(a,s,l={},p=!0){let{frontMatter:f,content:y}=p?Uw(a):{frontMatter:null,content:a},S=new ld(a,l.filepath),B=new Wo(S,0,0,0),q=B.moveBy(a.length),Y={type:"root",sourceSpan:new oe(B,q),children:Id(y,s,l)};if(f){let ge=new Wo(S,0,0,0),ce=ge.moveBy(f.raw.length);f.sourceSpan=new oe(ge,ce),Y.children.unshift(f)}let W=new Ww(Y),we=(ge,ce)=>{let{offset:Ae}=ce,Ue=C(!1,a.slice(0,Ae),/[^\n\r]/gu," "),nt=Rd(Ue+ge,s,l,!1);nt.sourceSpan=new oe(ce,on(!1,nt.children,-1).sourceSpan.end);let it=nt.children[0];return it.length===Ae?nt.children.shift():(it.sourceSpan=new oe(it.sourceSpan.start.moveBy(Ae),it.sourceSpan.end),it.value=it.value.slice(Ae)),nt};return W.walk(ge=>{if(ge.type==="comment"){let ce=Gw(ge,we);ce&&ge.parent.replaceChild(ge,ce)}Qw(ge),Zw(ge),eC(ge)}),W}function Ri(a){return{parse:(s,l)=>Rd(s,a,l),hasPragma:C1,astFormat:"html",locStart:xi,locEnd:_i}}var qd={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},nC=Ri(qd),rC=Ri({name:"angular"}),aC=Ri({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(a,s,l,p){return a.toLowerCase()!=="html"&&!l&&(a!=="template"||p.some(({name:f,value:y})=>f==="lang"&&y!=="html"&&y!==""&&y!==void 0))}}),iC=Ri({name:"lwc",canSelfClose:!1}),sC={html:X1};return h(k)})})(Oc);var Ic=Oc.exports;const ey=Xd({__proto__:null,default:xa(Ic)},[Ic]);function ty(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ny(e,t){if(e==null)return{};var n,r,i=ty(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Us(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ry(e){if(Array.isArray(e))return Us(e)}function ay(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iy(e,t){if(e){if(typeof e=="string")return Us(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Us(e,t):void 0}}function sy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
589
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oy(e){return ry(e)||ay(e)||iy(e)||sy()}function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}function ly(e,t){if(Qr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uy(e){var t=ly(e,"string");return Qr(t)=="symbol"?t:t+""}function Mc(e,t,n){return(t=uy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ws.apply(null,arguments)}function Rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rc(Object(n),!0).forEach(function(r){Mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cy(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var zs={};function py(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return zs[t]||(zs[t]=cy(e)),zs[t]}function dy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),i=py(r);return i.reduce(function(o,u){return dr(dr({},o),n[u])},t)}function qc(e){return e.join(" ")}function hy(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return Hc({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function Hc(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,o=e.useInlineStyles,u=e.key,c=t.properties,d=t.type,h=t.tagName,g=t.value;if(d==="text")return g;if(h){var v=hy(n,o),D;if(!o)D=dr(dr({},c),{},{className:qc(c.className)});else{var b=Object.keys(n).reduce(function(T,E){return E.split(".").forEach(function(_){T.includes(_)||T.push(_)}),T},[]),k=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&k.concat(c.className.filter(function(T){return!b.includes(T)}));D=dr(dr({},c),{},{className:qc(x)||void 0,style:dy(c.className,Object.assign({},c.style,i),n)})}var C=v(t.children);return M.createElement(h,Ws({key:u},D),C)}}const fy=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var my=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uc(Object(n),!0).forEach(function(r){Mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gy=/\n/g;function vy(e){return e.match(gy)}function Dy(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var u=o+n;return M.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(u):r},"".concat(u,`
590
590
  `))})}function yy(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,o=e.numberStyle,u=o===void 0?{}:o,c=e.startingLineNumber;return M.createElement("code",{style:Object.assign({},n,i)},Dy({lines:t.replace(/\n$/,"").split(`
591
591
  `),style:u,startingLineNumber:c}))}function by(e){return"".concat(e.toString().length,".25em")}function Wc(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function zc(e,t,n){var r={display:"inline-block",minWidth:by(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=Mt(Mt({},r),i);return o}function ai(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,u=e.lineProps,c=u===void 0?{}:u,d=e.className,h=d===void 0?[]:d,g=e.showLineNumbers,v=e.wrapLongLines,D=typeof c=="function"?c(n):c;if(D.className=h,n&&o){var b=zc(r,n,i);t.unshift(Wc(n,b))}return v&g&&(D.style=Mt(Mt({},D.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:D,children:t}}function Vc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var i=e[r];if(i.type==="text")n.push(ai({children:[i],className:oy(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);Vc(i.children,o).forEach(function(u){return n.push(u)})}}return n}function ky(e,t,n,r,i,o,u,c,d){var h,g=Vc(e.value),v=[],D=-1,b=0;function k(A,$){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return ai({children:A,lineNumber:$,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:i,lineProps:n,className:P,showLineNumbers:r,wrapLongLines:d})}function x(A,$){if(r&&$&&i){var P=zc(c,$,u);A.unshift(Wc($,P))}return A}function C(A,$){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||P.length>0?k(A,$,P):x(A,$)}for(var T=function(){var $=g[b],P=$.children[0].value,I=vy(P);if(I){var j=P.split(`
592
592
  `);j.forEach(function(z,K){var G=r&&v.length+o,L={type:"text",value:"".concat(z,`
593
- `)};if(K===0){var N=g.slice(D+1,b).concat(ai({children:[L],className:$.properties.className})),H=C(N,G);v.push(H)}else if(K===j.length-1){var Q=g[b+1]&&g[b+1].children&&g[b+1].children[0],fe={type:"text",value:"".concat(z)};if(Q){var ee=ai({children:[fe],className:$.properties.className});g.splice(b+1,0,ee)}else{var ue=[fe],me=C(ue,G,$.properties.className);v.push(me)}}else{var ie=[L],De=C(ie,G,$.properties.className);v.push(De)}}),D=b}b++};b<g.length;)T();if(D!==g.length-1){var E=g.slice(D+1,g.length);if(E&&E.length){var _=r&&v.length+o,F=C(E,_);v.push(F)}}return t?v:(h=[]).concat.apply(h,v)}function wy(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return Hc({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function Gc(e){return e&&typeof e.highlightAuto<"u"}function Cy(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(Gc(t)){var o=fy(t,n);return n==="text"?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function xy(e,t){return function(r){var i=r.language,o=r.children,u=r.style,c=u===void 0?t:u,d=r.customStyle,h=d===void 0?{}:d,g=r.codeTagProps,v=g===void 0?{className:i?"language-".concat(i):void 0,style:Mt(Mt({},c['code[class*="language-"]']),c['code[class*="language-'.concat(i,'"]')])}:g,D=r.useInlineStyles,b=D===void 0?!0:D,k=r.showLineNumbers,x=k===void 0?!1:k,C=r.showInlineLineNumbers,T=C===void 0?!0:C,E=r.startingLineNumber,_=E===void 0?1:E,F=r.lineNumberContainerStyle,A=r.lineNumberStyle,$=A===void 0?{}:A,P=r.wrapLines,I=r.wrapLongLines,j=I===void 0?!1:I,z=r.lineProps,K=z===void 0?{}:z,G=r.renderer,L=r.PreTag,N=L===void 0?"pre":L,H=r.CodeTag,Q=H===void 0?"code":H,fe=r.code,ee=fe===void 0?(Array.isArray(o)?o[0]:o)||"":fe,ue=r.astGenerator,me=ny(r,my);ue=ue||e;var ie=x?M.createElement(yy,{containerStyle:F,codeStyle:v.style||{},numberStyle:$,startingLineNumber:_,codeString:ee}):null,De=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},rt=Gc(ue)?"hljs":"prismjs",Ne=b?Object.assign({},me,{style:Object.assign({},De,h)}):Object.assign({},me,{className:me.className?"".concat(rt," ").concat(me.className):rt,style:Object.assign({},h)});if(j?v.style=Mt(Mt({},v.style),{},{whiteSpace:"pre-wrap"}):v.style=Mt(Mt({},v.style),{},{whiteSpace:"pre"}),!ue)return M.createElement(N,Ne,ie,M.createElement(Q,v,ee));(P===void 0&&G||j)&&(P=!0),G=G||wy;var Fe=[{type:"text",value:ee}],Oe=Cy({astGenerator:ue,language:i,code:ee,defaultCodeValue:Fe});Oe.language===null&&(Oe.value=Fe);var de=Oe.value.length+_,ft=ky(Oe,P,K,x,T,_,de,$,j);return M.createElement(N,Ne,M.createElement(Q,v,!T&&ie,G({rows:ft,stylesheet:c,useInlineStyles:b})))}}var _y=Ey,Sy=Object.prototype.hasOwnProperty;function Ey(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Sy.call(n,r)&&(e[r]=n[r])}return e}var Yc=Kc,Vs=Kc.prototype;Vs.space=null,Vs.normal={},Vs.property={};function Kc(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var Jc=_y,Fy=Yc,Ay=$y;function $y(e){for(var t=e.length,n=[],r=[],i=-1,o,u;++i<t;)o=e[i],n.push(o.property),r.push(o.normal),u=o.space;return new Fy(Jc.apply(null,n),Jc.apply(null,r),u)}var Gs=Ty;function Ty(e){return e.toLowerCase()}var Xc=Qc,St=Qc.prototype;St.space=null,St.attribute=null,St.property=null,St.boolean=!1,St.booleanish=!1,St.overloadedBoolean=!1,St.number=!1,St.commaSeparated=!1,St.spaceSeparated=!1,St.commaOrSpaceSeparated=!1,St.mustUseProperty=!1,St.defined=!1;function Qc(e,t){this.property=e,this.attribute=t}var Rt={},By=0;Rt.boolean=Hn(),Rt.booleanish=Hn(),Rt.overloadedBoolean=Hn(),Rt.number=Hn(),Rt.spaceSeparated=Hn(),Rt.commaSeparated=Hn(),Rt.commaOrSpaceSeparated=Hn();function Hn(){return Math.pow(2,++By)}var Zc=Xc,ep=Rt,tp=Ys;Ys.prototype=new Zc,Ys.prototype.defined=!0;var np=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Ny=np.length;function Ys(e,t,n,r){var i=-1,o;for(rp(this,"space",r),Zc.call(this,e,t);++i<Ny;)o=np[i],rp(this,o,(n&ep[o])===ep[o])}function rp(e,t,n){n&&(e[t]=n)}var ap=Gs,jy=Yc,Py=tp,Qr=Ly;function Ly(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},i=e.properties,o=e.transform,u={},c={},d,h;for(d in i)h=new Py(d,o(r,d),i[d],t),n.indexOf(d)!==-1&&(h.mustUseProperty=!0),u[d]=h,c[ap(d)]=d,c[ap(h.attribute)]=d;return new jy(u,c,t)}var Oy=Qr,Iy=Oy({space:"xlink",transform:My,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function My(e,t){return"xlink:"+t.slice(5).toLowerCase()}var Ry=Qr,qy=Ry({space:"xml",transform:Hy,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Hy(e,t){return"xml:"+t.slice(3).toLowerCase()}var Uy=Wy;function Wy(e,t){return t in e?e[t]:t}var zy=Uy,ip=Vy;function Vy(e,t){return zy(e,t.toLowerCase())}var Gy=Qr,Yy=ip,Ky=Gy({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yy,properties:{xmlns:null,xmlnsXLink:null}}),Ks=Rt,Jy=Qr,ht=Ks.booleanish,Et=Ks.number,Un=Ks.spaceSeparated,Xy=Jy({transform:Qy,properties:{ariaActiveDescendant:null,ariaAtomic:ht,ariaAutoComplete:null,ariaBusy:ht,ariaChecked:ht,ariaColCount:Et,ariaColIndex:Et,ariaColSpan:Et,ariaControls:Un,ariaCurrent:null,ariaDescribedBy:Un,ariaDetails:null,ariaDisabled:ht,ariaDropEffect:Un,ariaErrorMessage:null,ariaExpanded:ht,ariaFlowTo:Un,ariaGrabbed:ht,ariaHasPopup:null,ariaHidden:ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Un,ariaLevel:Et,ariaLive:null,ariaModal:ht,ariaMultiLine:ht,ariaMultiSelectable:ht,ariaOrientation:null,ariaOwns:Un,ariaPlaceholder:null,ariaPosInSet:Et,ariaPressed:ht,ariaReadOnly:ht,ariaRelevant:null,ariaRequired:ht,ariaRoleDescription:Un,ariaRowCount:Et,ariaRowIndex:Et,ariaRowSpan:Et,ariaSelected:ht,ariaSetSize:Et,ariaSort:null,ariaValueMax:Et,ariaValueMin:Et,ariaValueNow:Et,ariaValueText:null,role:null}});function Qy(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var hr=Rt,Zy=Qr,e0=ip,le=hr.boolean,t0=hr.overloadedBoolean,Zr=hr.booleanish,$e=hr.number,lt=hr.spaceSeparated,ii=hr.commaSeparated,n0=Zy({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:e0,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ii,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:lt,autoFocus:le,autoPlay:le,capture:le,charSet:null,checked:le,cite:null,className:lt,cols:$e,colSpan:null,content:null,contentEditable:Zr,controls:le,controlsList:lt,coords:$e|ii,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:t0,draggable:Zr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:lt,height:$e,hidden:le,high:$e,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:ii,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:lt,itemRef:lt,itemScope:le,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:$e,pattern:null,ping:lt,placeholder:null,playsInline:le,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:lt,required:le,reversed:le,rows:$e,rowSpan:$e,sandbox:lt,scope:null,scoped:le,seamless:le,selected:le,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:Zr,src:null,srcDoc:null,srcLang:null,srcSet:ii,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Zr,width:$e,wrap:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:Zr,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:$e,security:null,unselectable:null}}),r0=Ay,a0=Iy,i0=qy,s0=Ky,o0=Xy,l0=n0,u0=r0([i0,a0,s0,o0,l0]),c0=Gs,p0=tp,d0=Xc,Js="data",h0=g0,f0=/^data[-\w.:]+$/i,sp=/-[a-z]/g,m0=/[A-Z]/g;function g0(e,t){var n=c0(t),r=t,i=d0;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===Js&&f0.test(t)&&(t.charAt(4)==="-"?r=v0(t):t=D0(t),i=p0),new i(r,t))}function v0(e){var t=e.slice(5).replace(sp,b0);return Js+t.charAt(0).toUpperCase()+t.slice(1)}function D0(e){var t=e.slice(4);return sp.test(t)?e:(t=t.replace(m0,y0),t.charAt(0)!=="-"&&(t="-"+t),Js+t)}function y0(e){return"-"+e.toLowerCase()}function b0(e){return e.charAt(1).toUpperCase()}var k0=w0,op=/[#.]/g;function w0(e,t){for(var n=e||"",r=t||"div",i={},o=0,u,c,d;o<n.length;)op.lastIndex=o,d=op.exec(n),u=n.slice(o,d?d.index:n.length),u&&(c?c==="#"?i.id=u:i.className?i.className.push(u):i.className=[u]:r=u,o+=u.length),d&&(c=d[0],o++);return{type:"element",tagName:r,properties:i,children:[]}}var Xs={};Xs.parse=_0,Xs.stringify=S0;var lp="",C0=" ",x0=/[ \t\n\r\f]+/g;function _0(e){var t=String(e||lp).trim();return t===lp?[]:t.split(x0)}function S0(e){return e.join(C0).trim()}var Qs={};Qs.parse=E0,Qs.stringify=F0;var Zs=",",up=" ",ea="";function E0(e){for(var t=[],n=String(e||ea),r=n.indexOf(Zs),i=0,o=!1,u;!o;)r===-1&&(r=n.length,o=!0),u=n.slice(i,r).trim(),(u||!o)&&t.push(u),i=r+1,r=n.indexOf(Zs,i);return t}function F0(e,t){var n=t||{},r=n.padLeft===!1?ea:up,i=n.padRight?up:ea;return e[e.length-1]===ea&&(e=e.concat(ea)),e.join(i+Zs+r).trim()}var A0=h0,cp=Gs,$0=k0,pp=Xs.parse,dp=Qs.parse,T0=N0,B0={}.hasOwnProperty;function N0(e,t,n){var r=n?I0(n):null;return i;function i(u,c){var d=$0(u,t),h=Array.prototype.slice.call(arguments,2),g=d.tagName.toLowerCase(),v;if(d.tagName=r&&B0.call(r,g)?r[g]:g,c&&j0(c,d)&&(h.unshift(c),c=null),c)for(v in c)o(d.properties,v,c[v]);return hp(d.children,h),d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}function o(u,c,d){var h,g,v;d==null||d!==d||(h=A0(e,c),g=h.property,v=d,typeof v=="string"&&(h.spaceSeparated?v=pp(v):h.commaSeparated?v=dp(v):h.commaOrSpaceSeparated&&(v=pp(dp(v).join(" ")))),g==="style"&&typeof d!="string"&&(v=O0(v)),g==="className"&&u.className&&(v=u.className.concat(v)),u[g]=L0(h,g,v))}}function j0(e,t){return typeof e=="string"||"length"in e||P0(t.tagName,e)}function P0(e,t){var n=t.type;return e==="input"||!n||typeof n!="string"?!1:typeof t.children=="object"&&"length"in t.children?!0:(n=n.toLowerCase(),e==="button"?n!=="menu"&&n!=="submit"&&n!=="reset"&&n!=="button":"value"in t)}function hp(e,t){var n,r;if(typeof t=="string"||typeof t=="number"){e.push({type:"text",value:String(t)});return}if(typeof t=="object"&&"length"in t){for(n=-1,r=t.length;++n<r;)hp(e,t[n]);return}if(typeof t!="object"||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}function L0(e,t,n){var r,i,o;if(typeof n!="object"||!("length"in n))return fp(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=fp(e,t,n[r]);return o}function fp(e,t,n){var r=n;return e.number||e.positiveNumber?!isNaN(r)&&r!==""&&(r=Number(r)):(e.boolean||e.overloadedBoolean)&&typeof r=="string"&&(r===""||cp(n)===cp(t))&&(r=!0),r}function O0(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function I0(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var M0=u0,R0=T0,mp=R0(M0,"div");mp.displayName="html";var q0=mp,H0=q0;const U0={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},W0={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var gp=z0;function z0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var V0=G0;function G0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var Y0=K0;function K0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var J0=Y0,X0=gp,Q0=Z0;function Z0(e){return J0(e)||X0(e)}var si,eb=59,tb=nb;function nb(e){var t="&"+e+";",n;return si=si||document.createElement("i"),si.innerHTML=t,n=si.textContent,n.charCodeAt(n.length-1)===eb&&e!=="semi"||n===t?!1:n}var vp=U0,Dp=W0,rb=gp,ab=V0,yp=Q0,ib=tb,sb=yb,ob={}.hasOwnProperty,fr=String.fromCharCode,lb=Function.prototype,bp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},ub=9,kp=10,cb=12,pb=32,wp=38,db=59,hb=60,fb=61,mb=35,gb=88,vb=120,Db=65533,mr="named",eo="hexadecimal",to="decimal",no={};no[eo]=16,no[to]=10;var oi={};oi[mr]=yp,oi[to]=rb,oi[eo]=ab;var Cp=1,xp=2,_p=3,Sp=4,Ep=5,ro=6,Fp=7,gn={};gn[Cp]="Named character references must be terminated by a semicolon",gn[xp]="Numeric character references must be terminated by a semicolon",gn[_p]="Named character references cannot be empty",gn[Sp]="Numeric character references cannot be empty",gn[Ep]="Named character references must be known",gn[ro]="Numeric character references cannot be disallowed",gn[Fp]="Numeric character references cannot be outside the permissible Unicode range";function yb(e,t){var n={},r,i;t||(t={});for(i in bp)r=t[i],n[i]=r??bp[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),bb(e,n)}function bb(e,t){var n=t.additional,r=t.nonTerminated,i=t.text,o=t.reference,u=t.warning,c=t.textContext,d=t.referenceContext,h=t.warningContext,g=t.position,v=t.indent||[],D=e.length,b=0,k=-1,x=g.column||1,C=g.line||1,T="",E=[],_,F,A,$,P,I,j,z,K,G,L,N,H,Q,fe,ee,ue,me,ie;for(typeof n=="string"&&(n=n.charCodeAt(0)),ee=De(),z=u?rt:lb,b--,D++;++b<D;)if(P===kp&&(x=v[k]||1),P=e.charCodeAt(b),P===wp){if(j=e.charCodeAt(b+1),j===ub||j===kp||j===cb||j===pb||j===wp||j===hb||j!==j||n&&j===n){T+=fr(P),x++;continue}for(H=b+1,N=H,ie=H,j===mb?(ie=++N,j=e.charCodeAt(ie),j===gb||j===vb?(Q=eo,ie=++N):Q=to):Q=mr,_="",L="",$="",fe=oi[Q],ie--;++ie<D&&(j=e.charCodeAt(ie),!!fe(j));)$+=fr(j),Q===mr&&ob.call(vp,$)&&(_=$,L=vp[$]);A=e.charCodeAt(ie)===db,A&&(ie++,F=Q===mr?ib($):!1,F&&(_=$,L=F)),me=1+ie-H,!A&&!r||($?Q===mr?(A&&!L?z(Ep,1):(_!==$&&(ie=N+_.length,me=1+ie-N,A=!1),A||(K=_?Cp:_p,t.attribute?(j=e.charCodeAt(ie),j===fb?(z(K,me),L=null):yp(j)?L=null:z(K,me)):z(K,me))),I=L):(A||z(xp,me),I=parseInt($,no[Q]),kb(I)?(z(Fp,me),I=fr(Db)):I in Dp?(z(ro,me),I=Dp[I]):(G="",wb(I)&&z(ro,me),I>65535&&(I-=65536,G+=fr(I>>>10|55296),I=56320|I&1023),I=G+fr(I))):Q!==mr&&z(Sp,me)),I?(Ne(),ee=De(),b=ie-1,x+=ie-H+1,E.push(I),ue=De(),ue.offset++,o&&o.call(d,I,{start:ee,end:ue},e.slice(H-1,ie)),ee=ue):($=e.slice(H-1,ie),T+=$,x+=$.length,b=ie-1)}else P===10&&(C++,k++,x=0),P===P?(T+=fr(P),x++):Ne();return E.join("");function De(){return{line:C,column:x,offset:b+(g.offset||0)}}function rt(Fe,Oe){var de=De();de.column+=Oe,de.offset+=Oe,u.call(h,gn[Fe],de,Fe)}function Ne(){T&&(E.push(T),i&&i.call(c,T,{start:ee,end:De()}),T="")}}function kb(e){return e>=55296&&e<=57343||e>1114111}function wb(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var Ap={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
593
+ `)};if(K===0){var N=g.slice(D+1,b).concat(ai({children:[L],className:$.properties.className})),H=C(N,G);v.push(H)}else if(K===j.length-1){var Q=g[b+1]&&g[b+1].children&&g[b+1].children[0],fe={type:"text",value:"".concat(z)};if(Q){var ee=ai({children:[fe],className:$.properties.className});g.splice(b+1,0,ee)}else{var ue=[fe],me=C(ue,G,$.properties.className);v.push(me)}}else{var ie=[L],De=C(ie,G,$.properties.className);v.push(De)}}),D=b}b++};b<g.length;)T();if(D!==g.length-1){var E=g.slice(D+1,g.length);if(E&&E.length){var _=r&&v.length+o,F=C(E,_);v.push(F)}}return t?v:(h=[]).concat.apply(h,v)}function wy(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return Hc({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function Gc(e){return e&&typeof e.highlightAuto<"u"}function Cy(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(Gc(t)){var o=fy(t,n);return n==="text"?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function xy(e,t){return function(r){var i=r.language,o=r.children,u=r.style,c=u===void 0?t:u,d=r.customStyle,h=d===void 0?{}:d,g=r.codeTagProps,v=g===void 0?{className:i?"language-".concat(i):void 0,style:Mt(Mt({},c['code[class*="language-"]']),c['code[class*="language-'.concat(i,'"]')])}:g,D=r.useInlineStyles,b=D===void 0?!0:D,k=r.showLineNumbers,x=k===void 0?!1:k,C=r.showInlineLineNumbers,T=C===void 0?!0:C,E=r.startingLineNumber,_=E===void 0?1:E,F=r.lineNumberContainerStyle,A=r.lineNumberStyle,$=A===void 0?{}:A,P=r.wrapLines,I=r.wrapLongLines,j=I===void 0?!1:I,z=r.lineProps,K=z===void 0?{}:z,G=r.renderer,L=r.PreTag,N=L===void 0?"pre":L,H=r.CodeTag,Q=H===void 0?"code":H,fe=r.code,ee=fe===void 0?(Array.isArray(o)?o[0]:o)||"":fe,ue=r.astGenerator,me=ny(r,my);ue=ue||e;var ie=x?M.createElement(yy,{containerStyle:F,codeStyle:v.style||{},numberStyle:$,startingLineNumber:_,codeString:ee}):null,De=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},rt=Gc(ue)?"hljs":"prismjs",Ne=b?Object.assign({},me,{style:Object.assign({},De,h)}):Object.assign({},me,{className:me.className?"".concat(rt," ").concat(me.className):rt,style:Object.assign({},h)});if(j?v.style=Mt(Mt({},v.style),{},{whiteSpace:"pre-wrap"}):v.style=Mt(Mt({},v.style),{},{whiteSpace:"pre"}),!ue)return M.createElement(N,Ne,ie,M.createElement(Q,v,ee));(P===void 0&&G||j)&&(P=!0),G=G||wy;var Fe=[{type:"text",value:ee}],Oe=Cy({astGenerator:ue,language:i,code:ee,defaultCodeValue:Fe});Oe.language===null&&(Oe.value=Fe);var de=Oe.value.length+_,ft=ky(Oe,P,K,x,T,_,de,$,j);return M.createElement(N,Ne,M.createElement(Q,v,!T&&ie,G({rows:ft,stylesheet:c,useInlineStyles:b})))}}var _y=Ey,Sy=Object.prototype.hasOwnProperty;function Ey(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Sy.call(n,r)&&(e[r]=n[r])}return e}var Yc=Kc,Vs=Kc.prototype;Vs.space=null,Vs.normal={},Vs.property={};function Kc(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var Jc=_y,Fy=Yc,Ay=$y;function $y(e){for(var t=e.length,n=[],r=[],i=-1,o,u;++i<t;)o=e[i],n.push(o.property),r.push(o.normal),u=o.space;return new Fy(Jc.apply(null,n),Jc.apply(null,r),u)}var Gs=Ty;function Ty(e){return e.toLowerCase()}var Xc=Qc,St=Qc.prototype;St.space=null,St.attribute=null,St.property=null,St.boolean=!1,St.booleanish=!1,St.overloadedBoolean=!1,St.number=!1,St.commaSeparated=!1,St.spaceSeparated=!1,St.commaOrSpaceSeparated=!1,St.mustUseProperty=!1,St.defined=!1;function Qc(e,t){this.property=e,this.attribute=t}var Rt={},By=0;Rt.boolean=Hn(),Rt.booleanish=Hn(),Rt.overloadedBoolean=Hn(),Rt.number=Hn(),Rt.spaceSeparated=Hn(),Rt.commaSeparated=Hn(),Rt.commaOrSpaceSeparated=Hn();function Hn(){return Math.pow(2,++By)}var Zc=Xc,ep=Rt,tp=Ys;Ys.prototype=new Zc,Ys.prototype.defined=!0;var np=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Ny=np.length;function Ys(e,t,n,r){var i=-1,o;for(rp(this,"space",r),Zc.call(this,e,t);++i<Ny;)o=np[i],rp(this,o,(n&ep[o])===ep[o])}function rp(e,t,n){n&&(e[t]=n)}var ap=Gs,jy=Yc,Py=tp,Zr=Ly;function Ly(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},i=e.properties,o=e.transform,u={},c={},d,h;for(d in i)h=new Py(d,o(r,d),i[d],t),n.indexOf(d)!==-1&&(h.mustUseProperty=!0),u[d]=h,c[ap(d)]=d,c[ap(h.attribute)]=d;return new jy(u,c,t)}var Oy=Zr,Iy=Oy({space:"xlink",transform:My,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function My(e,t){return"xlink:"+t.slice(5).toLowerCase()}var Ry=Zr,qy=Ry({space:"xml",transform:Hy,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Hy(e,t){return"xml:"+t.slice(3).toLowerCase()}var Uy=Wy;function Wy(e,t){return t in e?e[t]:t}var zy=Uy,ip=Vy;function Vy(e,t){return zy(e,t.toLowerCase())}var Gy=Zr,Yy=ip,Ky=Gy({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yy,properties:{xmlns:null,xmlnsXLink:null}}),Ks=Rt,Jy=Zr,ht=Ks.booleanish,Et=Ks.number,Un=Ks.spaceSeparated,Xy=Jy({transform:Qy,properties:{ariaActiveDescendant:null,ariaAtomic:ht,ariaAutoComplete:null,ariaBusy:ht,ariaChecked:ht,ariaColCount:Et,ariaColIndex:Et,ariaColSpan:Et,ariaControls:Un,ariaCurrent:null,ariaDescribedBy:Un,ariaDetails:null,ariaDisabled:ht,ariaDropEffect:Un,ariaErrorMessage:null,ariaExpanded:ht,ariaFlowTo:Un,ariaGrabbed:ht,ariaHasPopup:null,ariaHidden:ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Un,ariaLevel:Et,ariaLive:null,ariaModal:ht,ariaMultiLine:ht,ariaMultiSelectable:ht,ariaOrientation:null,ariaOwns:Un,ariaPlaceholder:null,ariaPosInSet:Et,ariaPressed:ht,ariaReadOnly:ht,ariaRelevant:null,ariaRequired:ht,ariaRoleDescription:Un,ariaRowCount:Et,ariaRowIndex:Et,ariaRowSpan:Et,ariaSelected:ht,ariaSetSize:Et,ariaSort:null,ariaValueMax:Et,ariaValueMin:Et,ariaValueNow:Et,ariaValueText:null,role:null}});function Qy(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var hr=Rt,Zy=Zr,e0=ip,le=hr.boolean,t0=hr.overloadedBoolean,ea=hr.booleanish,$e=hr.number,lt=hr.spaceSeparated,ii=hr.commaSeparated,n0=Zy({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:e0,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ii,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:lt,autoFocus:le,autoPlay:le,capture:le,charSet:null,checked:le,cite:null,className:lt,cols:$e,colSpan:null,content:null,contentEditable:ea,controls:le,controlsList:lt,coords:$e|ii,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:t0,draggable:ea,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:lt,height:$e,hidden:le,high:$e,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:ii,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:lt,itemRef:lt,itemScope:le,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:$e,pattern:null,ping:lt,placeholder:null,playsInline:le,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:lt,required:le,reversed:le,rows:$e,rowSpan:$e,sandbox:lt,scope:null,scoped:le,seamless:le,selected:le,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:ea,src:null,srcDoc:null,srcLang:null,srcSet:ii,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:ea,width:$e,wrap:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:ea,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:$e,security:null,unselectable:null}}),r0=Ay,a0=Iy,i0=qy,s0=Ky,o0=Xy,l0=n0,u0=r0([i0,a0,s0,o0,l0]),c0=Gs,p0=tp,d0=Xc,Js="data",h0=g0,f0=/^data[-\w.:]+$/i,sp=/-[a-z]/g,m0=/[A-Z]/g;function g0(e,t){var n=c0(t),r=t,i=d0;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===Js&&f0.test(t)&&(t.charAt(4)==="-"?r=v0(t):t=D0(t),i=p0),new i(r,t))}function v0(e){var t=e.slice(5).replace(sp,b0);return Js+t.charAt(0).toUpperCase()+t.slice(1)}function D0(e){var t=e.slice(4);return sp.test(t)?e:(t=t.replace(m0,y0),t.charAt(0)!=="-"&&(t="-"+t),Js+t)}function y0(e){return"-"+e.toLowerCase()}function b0(e){return e.charAt(1).toUpperCase()}var k0=w0,op=/[#.]/g;function w0(e,t){for(var n=e||"",r=t||"div",i={},o=0,u,c,d;o<n.length;)op.lastIndex=o,d=op.exec(n),u=n.slice(o,d?d.index:n.length),u&&(c?c==="#"?i.id=u:i.className?i.className.push(u):i.className=[u]:r=u,o+=u.length),d&&(c=d[0],o++);return{type:"element",tagName:r,properties:i,children:[]}}var Xs={};Xs.parse=_0,Xs.stringify=S0;var lp="",C0=" ",x0=/[ \t\n\r\f]+/g;function _0(e){var t=String(e||lp).trim();return t===lp?[]:t.split(x0)}function S0(e){return e.join(C0).trim()}var Qs={};Qs.parse=E0,Qs.stringify=F0;var Zs=",",up=" ",ta="";function E0(e){for(var t=[],n=String(e||ta),r=n.indexOf(Zs),i=0,o=!1,u;!o;)r===-1&&(r=n.length,o=!0),u=n.slice(i,r).trim(),(u||!o)&&t.push(u),i=r+1,r=n.indexOf(Zs,i);return t}function F0(e,t){var n=t||{},r=n.padLeft===!1?ta:up,i=n.padRight?up:ta;return e[e.length-1]===ta&&(e=e.concat(ta)),e.join(i+Zs+r).trim()}var A0=h0,cp=Gs,$0=k0,pp=Xs.parse,dp=Qs.parse,T0=N0,B0={}.hasOwnProperty;function N0(e,t,n){var r=n?I0(n):null;return i;function i(u,c){var d=$0(u,t),h=Array.prototype.slice.call(arguments,2),g=d.tagName.toLowerCase(),v;if(d.tagName=r&&B0.call(r,g)?r[g]:g,c&&j0(c,d)&&(h.unshift(c),c=null),c)for(v in c)o(d.properties,v,c[v]);return hp(d.children,h),d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}function o(u,c,d){var h,g,v;d==null||d!==d||(h=A0(e,c),g=h.property,v=d,typeof v=="string"&&(h.spaceSeparated?v=pp(v):h.commaSeparated?v=dp(v):h.commaOrSpaceSeparated&&(v=pp(dp(v).join(" ")))),g==="style"&&typeof d!="string"&&(v=O0(v)),g==="className"&&u.className&&(v=u.className.concat(v)),u[g]=L0(h,g,v))}}function j0(e,t){return typeof e=="string"||"length"in e||P0(t.tagName,e)}function P0(e,t){var n=t.type;return e==="input"||!n||typeof n!="string"?!1:typeof t.children=="object"&&"length"in t.children?!0:(n=n.toLowerCase(),e==="button"?n!=="menu"&&n!=="submit"&&n!=="reset"&&n!=="button":"value"in t)}function hp(e,t){var n,r;if(typeof t=="string"||typeof t=="number"){e.push({type:"text",value:String(t)});return}if(typeof t=="object"&&"length"in t){for(n=-1,r=t.length;++n<r;)hp(e,t[n]);return}if(typeof t!="object"||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}function L0(e,t,n){var r,i,o;if(typeof n!="object"||!("length"in n))return fp(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=fp(e,t,n[r]);return o}function fp(e,t,n){var r=n;return e.number||e.positiveNumber?!isNaN(r)&&r!==""&&(r=Number(r)):(e.boolean||e.overloadedBoolean)&&typeof r=="string"&&(r===""||cp(n)===cp(t))&&(r=!0),r}function O0(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function I0(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var M0=u0,R0=T0,mp=R0(M0,"div");mp.displayName="html";var q0=mp,H0=q0;const U0={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},W0={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var gp=z0;function z0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var V0=G0;function G0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var Y0=K0;function K0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var J0=Y0,X0=gp,Q0=Z0;function Z0(e){return J0(e)||X0(e)}var si,eb=59,tb=nb;function nb(e){var t="&"+e+";",n;return si=si||document.createElement("i"),si.innerHTML=t,n=si.textContent,n.charCodeAt(n.length-1)===eb&&e!=="semi"||n===t?!1:n}var vp=U0,Dp=W0,rb=gp,ab=V0,yp=Q0,ib=tb,sb=yb,ob={}.hasOwnProperty,fr=String.fromCharCode,lb=Function.prototype,bp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},ub=9,kp=10,cb=12,pb=32,wp=38,db=59,hb=60,fb=61,mb=35,gb=88,vb=120,Db=65533,mr="named",eo="hexadecimal",to="decimal",no={};no[eo]=16,no[to]=10;var oi={};oi[mr]=yp,oi[to]=rb,oi[eo]=ab;var Cp=1,xp=2,_p=3,Sp=4,Ep=5,ro=6,Fp=7,gn={};gn[Cp]="Named character references must be terminated by a semicolon",gn[xp]="Numeric character references must be terminated by a semicolon",gn[_p]="Named character references cannot be empty",gn[Sp]="Numeric character references cannot be empty",gn[Ep]="Named character references must be known",gn[ro]="Numeric character references cannot be disallowed",gn[Fp]="Numeric character references cannot be outside the permissible Unicode range";function yb(e,t){var n={},r,i;t||(t={});for(i in bp)r=t[i],n[i]=r??bp[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),bb(e,n)}function bb(e,t){var n=t.additional,r=t.nonTerminated,i=t.text,o=t.reference,u=t.warning,c=t.textContext,d=t.referenceContext,h=t.warningContext,g=t.position,v=t.indent||[],D=e.length,b=0,k=-1,x=g.column||1,C=g.line||1,T="",E=[],_,F,A,$,P,I,j,z,K,G,L,N,H,Q,fe,ee,ue,me,ie;for(typeof n=="string"&&(n=n.charCodeAt(0)),ee=De(),z=u?rt:lb,b--,D++;++b<D;)if(P===kp&&(x=v[k]||1),P=e.charCodeAt(b),P===wp){if(j=e.charCodeAt(b+1),j===ub||j===kp||j===cb||j===pb||j===wp||j===hb||j!==j||n&&j===n){T+=fr(P),x++;continue}for(H=b+1,N=H,ie=H,j===mb?(ie=++N,j=e.charCodeAt(ie),j===gb||j===vb?(Q=eo,ie=++N):Q=to):Q=mr,_="",L="",$="",fe=oi[Q],ie--;++ie<D&&(j=e.charCodeAt(ie),!!fe(j));)$+=fr(j),Q===mr&&ob.call(vp,$)&&(_=$,L=vp[$]);A=e.charCodeAt(ie)===db,A&&(ie++,F=Q===mr?ib($):!1,F&&(_=$,L=F)),me=1+ie-H,!A&&!r||($?Q===mr?(A&&!L?z(Ep,1):(_!==$&&(ie=N+_.length,me=1+ie-N,A=!1),A||(K=_?Cp:_p,t.attribute?(j=e.charCodeAt(ie),j===fb?(z(K,me),L=null):yp(j)?L=null:z(K,me)):z(K,me))),I=L):(A||z(xp,me),I=parseInt($,no[Q]),kb(I)?(z(Fp,me),I=fr(Db)):I in Dp?(z(ro,me),I=Dp[I]):(G="",wb(I)&&z(ro,me),I>65535&&(I-=65536,G+=fr(I>>>10|55296),I=56320|I&1023),I=G+fr(I))):Q!==mr&&z(Sp,me)),I?(Ne(),ee=De(),b=ie-1,x+=ie-H+1,E.push(I),ue=De(),ue.offset++,o&&o.call(d,I,{start:ee,end:ue},e.slice(H-1,ie)),ee=ue):($=e.slice(H-1,ie),T+=$,x+=$.length,b=ie-1)}else P===10&&(C++,k++,x=0),P===P?(T+=fr(P),x++):Ne();return E.join("");function De(){return{line:C,column:x,offset:b+(g.offset||0)}}function rt(Fe,Oe){var de=De();de.column+=Oe,de.offset+=Oe,u.call(h,gn[Fe],de,Fe)}function Ne(){T&&(E.push(T),i&&i.call(c,T,{start:ee,end:De()}),T="")}}function kb(e){return e>=55296&&e<=57343||e>1114111}function wb(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var Ap={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
594
594
  * Prism: Lightweight, robust, elegant syntax highlighting
595
595
  *
596
596
  * @license MIT <https://opensource.org/licenses/MIT>
597
597
  * @author Lea Verou <https://lea.verou.me>
598
598
  * @namespace
599
599
  * @public
600
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,u={},c={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function E(_){return _ instanceof d?new d(_.type,E(_.content),_.alias):Array.isArray(_)?_.map(E):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(E){return Object.prototype.toString.call(E).slice(8,-1)},objId:function(E){return E.__id||Object.defineProperty(E,"__id",{value:++o}),E.__id},clone:function E(_,F){F=F||{};var A,$;switch(c.util.type(_)){case"Object":if($=c.util.objId(_),F[$])return F[$];A={},F[$]=A;for(var P in _)_.hasOwnProperty(P)&&(A[P]=E(_[P],F));return A;case"Array":return $=c.util.objId(_),F[$]?F[$]:(A=[],F[$]=A,_.forEach(function(I,j){A[j]=E(I,F)}),A);default:return _}},getLanguage:function(E){for(;E;){var _=i.exec(E.className);if(_)return _[1].toLowerCase();E=E.parentElement}return"none"},setLanguage:function(E,_){E.className=E.className.replace(RegExp(i,"gi"),""),E.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(A){var E=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(E){var _=document.getElementsByTagName("script");for(var F in _)if(_[F].src==E)return _[F]}return null}},isActive:function(E,_,F){for(var A="no-"+_;E;){var $=E.classList;if($.contains(_))return!0;if($.contains(A))return!1;E=E.parentElement}return!!F}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(E,_){var F=c.util.clone(c.languages[E]);for(var A in _)F[A]=_[A];return F},insertBefore:function(E,_,F,A){A=A||c.languages;var $=A[E],P={};for(var I in $)if($.hasOwnProperty(I)){if(I==_)for(var j in F)F.hasOwnProperty(j)&&(P[j]=F[j]);F.hasOwnProperty(I)||(P[I]=$[I])}var z=A[E];return A[E]=P,c.languages.DFS(c.languages,function(K,G){G===z&&K!=E&&(this[K]=P)}),P},DFS:function E(_,F,A,$){$=$||{};var P=c.util.objId;for(var I in _)if(_.hasOwnProperty(I)){F.call(_,I,_[I],A||I);var j=_[I],z=c.util.type(j);z==="Object"&&!$[P(j)]?($[P(j)]=!0,E(j,F,null,$)):z==="Array"&&!$[P(j)]&&($[P(j)]=!0,E(j,F,I,$))}}},plugins:{},highlightAll:function(E,_){c.highlightAllUnder(document,E,_)},highlightAllUnder:function(E,_,F){var A={callback:F,container:E,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),c.hooks.run("before-all-elements-highlight",A);for(var $=0,P;P=A.elements[$++];)c.highlightElement(P,_===!0,A.callback)},highlightElement:function(E,_,F){var A=c.util.getLanguage(E),$=c.languages[A];c.util.setLanguage(E,A);var P=E.parentElement;P&&P.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(P,A);var I=E.textContent,j={element:E,language:A,grammar:$,code:I};function z(G){j.highlightedCode=G,c.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,c.hooks.run("after-highlight",j),c.hooks.run("complete",j),F&&F.call(j.element)}if(c.hooks.run("before-sanity-check",j),P=j.element.parentElement,P&&P.nodeName.toLowerCase()==="pre"&&!P.hasAttribute("tabindex")&&P.setAttribute("tabindex","0"),!j.code){c.hooks.run("complete",j),F&&F.call(j.element);return}if(c.hooks.run("before-highlight",j),!j.grammar){z(c.util.encode(j.code));return}if(_&&r.Worker){var K=new Worker(c.filename);K.onmessage=function(G){z(G.data)},K.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else z(c.highlight(j.code,j.grammar,j.language))},highlight:function(E,_,F){var A={code:E,grammar:_,language:F};if(c.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=c.tokenize(A.code,A.grammar),c.hooks.run("after-tokenize",A),d.stringify(c.util.encode(A.tokens),A.language)},tokenize:function(E,_){var F=_.rest;if(F){for(var A in F)_[A]=F[A];delete _.rest}var $=new v;return D($,$.head,E),g(E,$,_,$.head,0),k($)},hooks:{all:{},add:function(E,_){var F=c.hooks.all;F[E]=F[E]||[],F[E].push(_)},run:function(E,_){var F=c.hooks.all[E];if(!(!F||!F.length))for(var A=0,$;$=F[A++];)$(_)}},Token:d};r.Prism=c;function d(E,_,F,A){this.type=E,this.content=_,this.alias=F,this.length=(A||"").length|0}d.stringify=function E(_,F){if(typeof _=="string")return _;if(Array.isArray(_)){var A="";return _.forEach(function(z){A+=E(z,F)}),A}var $={type:_.type,content:E(_.content,F),tag:"span",classes:["token",_.type],attributes:{},language:F},P=_.alias;P&&(Array.isArray(P)?Array.prototype.push.apply($.classes,P):$.classes.push(P)),c.hooks.run("wrap",$);var I="";for(var j in $.attributes)I+=" "+j+'="'+($.attributes[j]||"").replace(/"/g,"&quot;")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+I+">"+$.content+"</"+$.tag+">"};function h(E,_,F,A){E.lastIndex=_;var $=E.exec(F);if($&&A&&$[1]){var P=$[1].length;$.index+=P,$[0]=$[0].slice(P)}return $}function g(E,_,F,A,$,P){for(var I in F)if(!(!F.hasOwnProperty(I)||!F[I])){var j=F[I];j=Array.isArray(j)?j:[j];for(var z=0;z<j.length;++z){if(P&&P.cause==I+","+z)return;var K=j[z],G=K.inside,L=!!K.lookbehind,N=!!K.greedy,H=K.alias;if(N&&!K.pattern.global){var Q=K.pattern.toString().match(/[imsuy]*$/)[0];K.pattern=RegExp(K.pattern.source,Q+"g")}for(var fe=K.pattern||K,ee=A.next,ue=$;ee!==_.tail&&!(P&&ue>=P.reach);ue+=ee.value.length,ee=ee.next){var me=ee.value;if(_.length>E.length)return;if(!(me instanceof d)){var ie=1,De;if(N){if(De=h(fe,ue,E,L),!De||De.index>=E.length)break;var Oe=De.index,rt=De.index+De[0].length,Ne=ue;for(Ne+=ee.value.length;Oe>=Ne;)ee=ee.next,Ne+=ee.value.length;if(Ne-=ee.value.length,ue=Ne,ee.value instanceof d)continue;for(var Fe=ee;Fe!==_.tail&&(Ne<rt||typeof Fe.value=="string");Fe=Fe.next)ie++,Ne+=Fe.value.length;ie--,me=E.slice(ue,Ne),De.index-=ue}else if(De=h(fe,0,me,L),!De)continue;var Oe=De.index,de=De[0],ft=me.slice(0,Oe),Ht=me.slice(Oe+de.length),Dt=ue+me.length;P&&Dt>P.reach&&(P.reach=Dt);var yt=ee.prev;ft&&(yt=D(_,yt,ft),ue+=ft.length),b(_,yt,ie);var vn=new d(I,G?c.tokenize(de,G):de,H,de);if(ee=D(_,yt,vn),Ht&&D(_,ee,Ht),ie>1){var bt={cause:I+","+z,reach:Dt};g(E,_,F,ee.prev,ue,bt),P&&bt.reach>P.reach&&(P.reach=bt.reach)}}}}}}function v(){var E={value:null,prev:null,next:null},_={value:null,prev:E,next:null};E.next=_,this.head=E,this.tail=_,this.length=0}function D(E,_,F){var A=_.next,$={value:F,prev:_,next:A};return _.next=$,A.prev=$,E.length++,$}function b(E,_,F){for(var A=_.next,$=0;$<F&&A!==E.tail;$++)A=A.next;_.next=A,A.prev=_,E.length-=$}function k(E){for(var _=[],F=E.head.next;F!==E.tail;)_.push(F.value),F=F.next;return _}if(!r.document)return r.addEventListener&&(c.disableWorkerMessageHandler||r.addEventListener("message",function(E){var _=JSON.parse(E.data),F=_.language,A=_.code,$=_.immediateClose;r.postMessage(c.highlight(A,c.languages[F],F)),$&&r.close()},!1)),c;var x=c.util.currentScript();x&&(c.filename=x.src,x.hasAttribute("data-manual")&&(c.manual=!0));function C(){c.manual||c.highlightAll()}if(!c.manual){var T=document.readyState;T==="loading"||T==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return c}(t);e.exports&&(e.exports=n),typeof un<"u"&&(un.Prism=n)})(Ap);var Cb=Ap.exports,xb=ao;ao.displayName="markup",ao.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function ao(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var u={};u[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var _b=io;io.displayName="css",io.aliases=[];function io(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var Sb=so;so.displayName="clike",so.aliases=[];function so(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var Eb=oo;oo.displayName="javascript",oo.aliases=["js"];function oo(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var ta=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof un=="object"?un:{},Fb=Wb();ta.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ab=H0,$b=sb,$p=Cb,Tb=xb,Bb=_b,Nb=Sb,jb=Eb;Fb();var lo={}.hasOwnProperty;function Tp(){}Tp.prototype=$p;var Me=new Tp,Pb=Me;Me.highlight=Ob,Me.register=na,Me.alias=Lb,Me.registered=Ib,Me.listLanguages=Mb,na(Tb),na(Bb),na(Nb),na(jb),Me.util.encode=Hb,Me.Token.stringify=Rb;function na(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Me.languages[e.displayName]===void 0&&e(Me)}function Lb(e,t){var n=Me.languages,r=e,i,o,u,c;t&&(r={},r[e]=t);for(i in r)for(o=r[i],o=typeof o=="string"?[o]:o,u=o.length,c=-1;++c<u;)n[o[c]]=n[i]}function Ob(e,t){var n=$p.highlight,r;if(typeof e!="string")throw new Error("Expected `string` for `value`, got `"+e+"`");if(Me.util.type(t)==="Object")r=t,t=null;else{if(typeof t!="string")throw new Error("Expected `string` for `name`, got `"+t+"`");if(lo.call(Me.languages,t))r=Me.languages[t];else throw new Error("Unknown language: `"+t+"` is not registered")}return n.call(this,e,r,t)}function Ib(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return lo.call(Me.languages,e)}function Mb(){var e=Me.languages,t=[],n;for(n in e)lo.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Rb(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:Me.util.type(e)==="Array"?qb(e,t):(r={type:e.type,content:Me.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),Me.hooks.run("wrap",r),Ab(r.tag+"."+r.classes.join("."),Ub(r.attributes),r.content))}function qb(e,t){for(var n=[],r=e.length,i=-1,o;++i<r;)o=e[i],o!==""&&o!==null&&o!==void 0&&n.push(o);for(i=-1,r=n.length;++i<r;)o=n[i],n[i]=Me.Token.stringify(o,t,n);return n}function Hb(e){return e}function Ub(e){var t;for(t in e)e[t]=$b(e[t]);return e}function Wb(){var e="Prism"in ta,t=e?ta.Prism:void 0;return n;function n(){e?ta.Prism=t:delete ta.Prism,e=void 0,t=void 0}}const uo=Ca(Pb);var ra=xy(uo,{});ra.registerLanguage=function(e,t){return uo.register(t)},ra.alias=function(e,t){return uo.alias(e,t)};const Bp={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var zb=co;co.displayName="jsx",co.aliases=[];function co(e){(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,g){return h=h.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(h,g)}o=u(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var c=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(c).join(""):""},d=function(h){for(var g=[],v=0;v<h.length;v++){var D=h[v],b=!1;if(typeof D!="string"&&(D.type==="tag"&&D.content[0]&&D.content[0].type==="tag"?D.content[0].content[0].content==="</"?g.length>0&&g[g.length-1].tagName===c(D.content[0].content[1])&&g.pop():D.content[D.content.length-1].content==="/>"||g.push({tagName:c(D.content[0].content[1]),openedBraces:0}):g.length>0&&D.type==="punctuation"&&D.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&D.type==="punctuation"&&D.content==="}"?g[g.length-1].openedBraces--:b=!0),(b||typeof D=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var k=c(D);v<h.length-1&&(typeof h[v+1]=="string"||h[v+1].type==="plain-text")&&(k+=c(h[v+1]),h.splice(v+1,1)),v>0&&(typeof h[v-1]=="string"||h[v-1].type==="plain-text")&&(k=c(h[v-1])+k,h.splice(v-1,1),v--),h[v]=new t.Token("plain-text",k,null,k)}D.content&&typeof D.content!="string"&&d(D.content)}};t.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||d(h.tokens)})})(e)}const Vb=Ca(zb),po=M.forwardRef(({ariaDescribedby:e,ariaLabelledby:t,children:n,className:r,disabled:i=!1,errorMessage:o,hasError:u,helptext:c,helptextDropdown:d,helptextDropdownButton:h,id:g,inline:v=!1,fullwidth:D=!1,label:b,name:k,optionalTag:x=!1,optionalText:C,requiredTag:T=!1,requiredText:E,..._},F)=>{const A=[r,"pkt-select"].join(" ");return m.jsx(ar,{className:A,forId:g,label:b,helptext:c,helptextDropdown:d,helptextDropdownButton:h,optionalTag:x,optionalText:C,requiredTag:T,requiredText:E,hasError:u,errorMessage:o,disabled:i,inline:v,ariaDescribedby:e,children:m.jsx("select",{ref:F,className:`pkt-input ${D?"pkt-input--fullwidth":""}`,"aria-invalid":u,"aria-errormessage":`${g}-error`,"aria-labelledby":t||`${g}-label`,disabled:i,id:g,name:k||g,..._,children:n})})}),gr=M.forwardRef(({children:e,className:t,skin:n="blue",textStyle:r="normal-text",size:i="medium",closeTag:o=!1,iconName:u="",type:c="button",ariaLabel:d="close",onClick:h=()=>{}},g)=>{const[v,D]=M.useState(!1),b=T=>{D(!0),h(T)},k=["pkt-tag",i&&`pkt-tag--${i}`,n&&`pkt-tag--${n}`,r&&`pkt-tag--${r}`,t].filter(Boolean).join(" "),x=["pkt-tag","pkt-btn","pkt-btn--tertiary",i&&`pkt-tag--${i}`,n&&`pkt-tag--${n}`,r&&`pkt-tag--${r}`,u&&o?"pkt-btn--icons-right-and-left":null,o&&!u?"pkt-btn--icon-right":null,t].filter(Boolean).join(" "),C=!v;return o&&u?m.jsx(m.Fragment,{children:C&&m.jsxs("button",{className:x,type:c,"aria-label":d,onClick:b,ref:g,children:[m.jsx(ne,{className:"pkt-tag__icon",name:u}),e,m.jsx(ne,{className:"pkt-tag__close-btn",name:"close"})]})}):o?m.jsx(m.Fragment,{children:C&&m.jsxs("button",{className:x,type:c,"aria-label":d,onClick:b,ref:g,children:[m.jsx(ne,{className:"pkt-tag__close-btn",name:"close"}),e]})}):u?m.jsxs("span",{className:k,children:[m.jsx(ne,{className:"pkt-tag__icon",name:u}),e]}):m.jsx("span",{className:k,children:e})});gr.displayName="PktTag";const Np=M.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=M.useRef([]);M.useEffect(()=>{i.current=i.current.slice(0,t.length)},[t]);const o=(c,d)=>{d.action&&d.action(c),n&&n(c)},u=(c,d)=>{var h,g;e&&(d.code==="ArrowLeft"&&c!==0&&((h=i.current[c-1])==null||h.focus()),d.code==="ArrowRight"&&c<t.length-1&&((g=i.current[c+1])==null||g.focus()),(d.code==="ArrowDown"||d.code==="Space")&&o(c,t[c]))};return m.jsx("div",{className:"pkt-tabs",ref:r,children:m.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:t.map((c,d)=>m.jsx(M.Fragment,{children:c.href?m.jsxs("a",{"aria-selected":!!c.active,role:e?"tab":void 0,href:c.href,"aria-controls":c.controls,className:`pkt-tabs__link ${c.active?"active":""}`,onKeyUp:h=>u(d,h),onClick:()=>o(d,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[d]=h},children:[c.icon&&m.jsx(ne,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&m.jsx(gr,{skin:c.tag.skin,size:"small",children:c.tag.text})]}):m.jsxs("button",{"aria-selected":!!c.active,role:e?"tab":void 0,type:"button","aria-controls":c.controls,className:`pkt-tabs__button pkt-link-button ${c.active?"active":""}`,onKeyUp:h=>u(d,h),onClick:()=>o(d,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[d]=h},children:[c.icon&&m.jsx(ne,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&m.jsx(gr,{skin:c.tag.skin,size:"small",children:c.tag.text})]},"b-"+d)},d))})})}),ho=M.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,autocomplete:r="off",counter:i,counterMaxLength:o,className:u,disabled:c=!1,errorMessage:d,hasError:h=!1,helptext:g,helptextDropdown:v,helptextDropdownButton:D,iconNameRight:b,inline:k=!1,fullwidth:x=!1,label:C,name:T,optionalTag:E=!1,optionalText:_,requiredTag:F=!1,requiredText:A,placeholder:$,prefix:P,suffix:I,type:j="text",useWrapper:z=!0,omitSearchIcon:K=!1,value:G,onChange:L,...N},H)=>{const Q=[u,"pkt-textinput"].join(" "),fe=n||`${e}-label`,ee=j==="search"&&!b&&!K;M.useRef(null);const[ue,me]=M.useState(0),ie=De=>{var rt,Ne;if(i&&me(((Ne=(rt=De.currentTarget)==null?void 0:rt.value)==null?void 0:Ne.length)||0),L)return L(De)};return m.jsx(ar,{ariaDescribedby:t,className:Q,disabled:c,errorMessage:d,forId:e,hasError:h,helptext:g,helptextDropdown:v,helptextDropdownButton:D,inline:k,label:C,optionalTag:E,optionalText:_,requiredTag:F,requiredText:A,useWrapper:z,counter:i,counterCurrent:ue,counterMaxLength:o,children:m.jsxs("div",{className:"pkt-input__container",children:[P&&m.jsx("div",{className:"pkt-input-prefix",children:P}),m.jsx("input",{ref:H,className:`pkt-input ${x?"pkt-input--fullwidth":""} ${o&&ue>o?"pkt-input--counter-error":""}`,type:j,name:T||e,id:e,placeholder:$,autoComplete:r,value:G,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":fe,...N,onChange:ie}),I&&m.jsxs("p",{className:"pkt-input-suffix",children:[I,b&&m.jsx(ne,{className:"pkt-input-suffix-icon",name:b}),ee&&m.jsx(ne,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!I&&b&&m.jsx(ne,{className:"pkt-input-icon",name:b}),!I&&ee&&m.jsx(ne,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Gb=[{id:"24h",fn:"24h.svg",cat:"services"},{id:"active-person",fn:"active-person.svg",cat:"people-and-health"},{id:"adjust",fn:"adjust.svg",cat:"ui"},{id:"alert-circle",fn:"alert-circle.svg",cat:"ui"},{id:"alert-error",fn:"alert-error.svg",cat:"ui"},{id:"alert-information",fn:"alert-information.svg",cat:"ui"},{id:"alert-success",fn:"alert-success.svg",cat:"ui"},{id:"alert-warning",fn:"alert-warning.svg",cat:"ui"},{id:"apple",fn:"apple.svg",cat:"ui"},{id:"archive",fn:"archive.svg",cat:"ui"},{id:"arrow-circle",fn:"arrow-circle.svg",cat:"ui"},{id:"arrow",fn:"arrow.svg",cat:"arrows"},{id:"attachment",fn:"attachment.svg",cat:"ui"},{id:"backpack",fn:"backpack.svg",cat:"services"},{id:"balloons",fn:"balloons.svg",cat:"ui"},{id:"books",fn:"books.svg",cat:"services"},{id:"wardrobe-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"brain-heart",fn:"brain-heart.svg",cat:"people-and-health"},{id:"brain-signal",fn:"brain-signal.svg",cat:"people-and-health"},{id:"briefcase",fn:"briefcase.svg",cat:"sign"},{id:"bullseye",fn:"bullseye.svg",cat:"ui"},{id:"bus",fn:"bus.svg",cat:"services"},{id:"cafe",fn:"cafe.svg",cat:"sign"},{id:"calendar",fn:"calendar.svg",cat:"ui"},{id:"camera",fn:"camera.svg",cat:"ui"},{id:"car",fn:"car.svg",cat:"sign"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{id:"care-room",fn:"care-room.svg",cat:"sign"},{id:"check-big",fn:"check-big.svg",cat:"ui"},{id:"check-circle",fn:"check-circle.svg",cat:"ui"},{id:"check-medium",fn:"check-medium.svg",cat:"ui"},{id:"check",fn:"check.svg",cat:"ui"},{id:"chevron-down",fn:"chevron-down.svg",cat:"arrows"},{id:"chevron-left",fn:"chevron-left.svg",cat:"arrows"},{id:"chevron-right",fn:"chevron-right.svg",cat:"arrows"},{id:"chevron-thin-down",fn:"chevron-thin-down.svg",cat:"arrows"},{id:"chevron-thin-left",fn:"chevron-thin-left.svg",cat:"arrows"},{id:"chevron-thin-right",fn:"chevron-thin-right.svg",cat:"arrows"},{id:"chevron-thin-up",fn:"chevron-thin-up.svg",cat:"arrows"},{id:"chevron-up-and-down",fn:"chevron-up-and-down.svg",cat:"ui"},{id:"chevron-up",fn:"chevron-up.svg",cat:"arrows"},{id:"clock",fn:"clock.svg",cat:"ui"},{id:"close",fn:"close.svg",cat:"ui"},{id:"cloud",fn:"cloud.svg",cat:"ui"},{id:"code",fn:"code.svg",cat:"ui"},{id:"coffee",fn:"coffee.svg",cat:"sign"},{id:"cogwheel",fn:"cogwheel.svg",cat:"ui"},{id:"coin-stacks",fn:"coin-stacks.svg",cat:"services"},{id:"computer",fn:"computer.svg",cat:"ui"},{id:"copy",fn:"copy.svg",cat:"ui"},{id:"crane",fn:"crane.svg",cat:"services"},{id:"cross-circle-big",fn:"cross-circle-big.svg",cat:"ui"},{id:"cross-circle-fill",fn:"cross-circle-fill.svg",cat:"ui"},{id:"cross-circle",fn:"cross-circle.svg",cat:"ui"},{id:"cross",fn:"cross.svg",cat:"ui"},{id:"data",fn:"data.svg",cat:"ui"},{id:"defibrillators",fn:"defibrillators.svg",cat:"sign"},{id:"district",fn:"district.svg",cat:"ui"},{id:"document-code",fn:"document-code.svg",cat:"ui"},{id:"document-pdf",fn:"document-pdf.svg",cat:"ui"},{id:"document-plain",fn:"document-plain.svg",cat:"ui"},{id:"document-table",fn:"document-table.svg",cat:"ui"},{id:"document-text",fn:"document-text.svg",cat:"ui"},{id:"download",fn:"download.svg",cat:"ui"},{id:"drag",fn:"drag.svg",cat:"ui"},{id:"drinking-area-refreshments",fn:"drinking-area-refreshments.svg",cat:"sign"},{id:"ecg-heart",fn:"ecg-heart.svg",cat:"people-and-health"},{id:"edit",fn:"edit.svg",cat:"ui"},{id:"email",fn:"email.svg",cat:"ui"},{id:"exclamation-mark-circle",fn:"exclamation-mark-circle.svg",cat:"ui"},{id:"exclamation-mark-square",fn:"exclamation-mark-square.svg",cat:"ui"},{id:"exit",fn:"exit.svg",cat:"ui"},{id:"expand",fn:"expand.svg",cat:"ui"},{id:"eye",fn:"eye.svg",cat:"ui"},{id:"face-almost-happy",fn:"face-almost-happy.svg",cat:"feedback"},{id:"face-almost-sad",fn:"face-almost-sad.svg",cat:"feedback"},{id:"face-happy",fn:"face-happy.svg",cat:"feedback"},{id:"face-neutral",fn:"face-neutral.svg",cat:"feedback"},{id:"face-sad",fn:"face-sad.svg",cat:"feedback"},{id:"facebook",fn:"facebook.svg",cat:"social"},{id:"factory-fill",fn:"factory-fill.svg",cat:"ui"},{id:"feedback",fn:"feedback.svg",cat:"ui"},{id:"figma",fn:"figma.svg",cat:"social"},{id:"filter",fn:"filter.svg",cat:"ui"},{id:"fire-emblem",fn:"fire-emblem.svg",cat:"services"},{id:"fire-safety",fn:"fire-safety.svg",cat:"people-and-health"},{id:"folder",fn:"folder.svg",cat:"ui"},{id:"game-console",fn:"game-console.svg",cat:"ui"},{id:"github",fn:"github.svg",cat:"social"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"heart-hand",fn:"heart-hand.svg",cat:"people-and-health"},{id:"heart-plus",fn:"heart-plus.svg",cat:"services"},{id:"heart",fn:"heart.svg",cat:"ui"},{id:"holding-hands",fn:"holding-hands.svg",cat:"people-and-health"},{id:"home",fn:"home.svg",cat:"ui"},{id:"horizontal-menu",fn:"horizontal-menu.svg",cat:"ui"},{id:"house-heart",fn:"house-heart.svg",cat:"services"},{id:"information",fn:"information.svg",cat:"ui"},{id:"instagram",fn:"instagram.svg",cat:"social"},{id:"invoice",fn:"invoice.svg",cat:"ui"},{id:"key",fn:"key.svg",cat:"ui"},{id:"language",fn:"language.svg",cat:"ui"},{id:"law-paragraph",fn:"law-paragraph.svg",cat:"ui"},{id:"lecture-workplace",fn:"lecture-workplace.svg",cat:"people-and-health"},{id:"link",fn:"link.svg",cat:"ui"},{id:"linkedin",fn:"linkedin.svg",cat:"social"},{id:"list",fn:"list.svg",cat:"ui"},{id:"location-pin-filled",fn:"location-pin-filled.svg",cat:"ui"},{id:"location-pin",fn:"location-pin.svg",cat:"ui"},{id:"lock-locked",fn:"lock-locked.svg",cat:"ui"},{id:"lock-unlocked",fn:"lock-unlocked.svg",cat:"ui"},{id:"magnifying-glass-big",fn:"magnifying-glass-big.svg",cat:"ui"},{id:"magnifying-glass-small",fn:"magnifying-glass-small.svg",cat:"ui"},{id:"map",fn:"map.svg",cat:"ui"},{id:"menu",fn:"menu.svg",cat:"ui"},{id:"message",fn:"message.svg",cat:"ui"},{id:"minimize",fn:"minimize.svg",cat:"ui"},{id:"minus-circle-fill",fn:"minus-circle-fill.svg",cat:"plusminus"},{id:"minus-circle",fn:"minus-circle.svg",cat:"plusminus"},{id:"minus-sign",fn:"minus-sign.svg",cat:"plusminus"},{id:"mobile-phone",fn:"mobile-phone.svg",cat:"ui"},{id:"music-notes",fn:"music-notes.svg",cat:"ui"},{id:"new-window-small",fn:"new-window-small.svg",cat:"ui"},{id:"new-window",fn:"new-window.svg",cat:"ui"},{id:"nodejs",fn:"nodejs.svg",cat:"social"},{id:"obstacle",fn:"obstacle.svg",cat:"ui"},{id:"organization",fn:"organization.svg",cat:"ui"},{id:"paint-bucket",fn:"paint-bucket.svg",cat:"ui"},{id:"palette",fn:"palette.svg",cat:"ui"},{id:"paste",fn:"paste.svg",cat:"ui"},{id:"park",fn:"park.svg",cat:"services"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"picture",fn:"picture.svg",cat:"ui"},{id:"placeholder-icon",fn:"placeholder-icon.svg",cat:"ui"},{id:"plus-circle-fill",fn:"plus-circle-fill.svg",cat:"plusminus"},{id:"plus-circle",fn:"plus-circle.svg",cat:"plusminus"},{id:"plus-sign",fn:"plus-sign.svg",cat:"plusminus"},{id:"pride-heart",fn:"pride-heart.svg",cat:"people-and-health"},{id:"print",fn:"print.svg",cat:"ui"},{id:"privacy",fn:"privacy.svg",cat:"ui"},{id:"punkt-circle-blue",fn:"punkt-circle-blue.svg",cat:"social"},{id:"qr-code",fn:"qr-code.svg",cat:"ui"},{id:"question",fn:"question.svg",cat:"ui"},{id:"react",fn:"react.svg",cat:"social"},{id:"receipt",fn:"receipt.svg",cat:"ui"},{id:"recycling",fn:"recycling.svg",cat:"services"},{id:"restaurant",fn:"restaurant.svg",cat:"sign"},{id:"ruler",fn:"ruler.svg",cat:"ui"},{id:"sass",fn:"sass.svg",cat:"social"},{id:"save",fn:"save.svg",cat:"ui"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"svg-logo",fn:"svg.svg",cat:"social"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"tickets",fn:"tickets.svg",cat:"sign"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"twitter",fn:"twitter.svg",cat:"social"},{id:"two-people-dancing",fn:"two-people-dancing.svg",cat:"people-and-health"},{id:"two-people-talking",fn:"two-people-talking.svg",cat:"people-and-health"},{id:"user",fn:"user.svg",cat:"ui"},{id:"vertical-menu",fn:"vertical-menu.svg",cat:"ui"},{id:"vue",fn:"vue.svg",cat:"social"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"workplace",fn:"workplace.svg",cat:"social"}],li=({className:e,compact:t=!1,skin:n="basic",responsiveView:r=!0,children:i})=>m.jsx("table",{"data-testid":"pkt-table",className:Ye(e,"pkt-table",{"pkt-table--responsive":r,"pkt-table--compact":t,"pkt-table--basic":n==="basic","pkt-table--zebra-blue":n==="zebra-blue"}),role:"table",children:i}),ui=({className:e,children:t})=>m.jsx("thead",{className:Ye(e,"pkt-table__header",{}),role:"rowgroup",children:t}),ci=({children:e,className:t})=>m.jsx("tbody",{className:Ye(t,"pkt-table__body",{}),role:"rowgroup",children:e}),Wn=({className:e,children:t})=>m.jsx("tr",{className:Ye(e,"pkt-table__row",{}),role:"row",children:t}),qt=({className:e,children:t})=>m.jsx("th",{className:Ye(e,"pkt-table__header-cell",{}),role:"columnheader",children:t}),Ft=({children:e,className:t,dataLabel:n})=>m.jsx("td",{className:Ye(t,"pkt-table__data-cell",{}),"data-label":n,role:"cell","data-testid":"pkt-table__data-cell",children:e}),Yb=({specs:e})=>{const t=r=>Array.isArray(r)?r.join(`
600
+ */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,u={},c={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function E(_){return _ instanceof d?new d(_.type,E(_.content),_.alias):Array.isArray(_)?_.map(E):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(E){return Object.prototype.toString.call(E).slice(8,-1)},objId:function(E){return E.__id||Object.defineProperty(E,"__id",{value:++o}),E.__id},clone:function E(_,F){F=F||{};var A,$;switch(c.util.type(_)){case"Object":if($=c.util.objId(_),F[$])return F[$];A={},F[$]=A;for(var P in _)_.hasOwnProperty(P)&&(A[P]=E(_[P],F));return A;case"Array":return $=c.util.objId(_),F[$]?F[$]:(A=[],F[$]=A,_.forEach(function(I,j){A[j]=E(I,F)}),A);default:return _}},getLanguage:function(E){for(;E;){var _=i.exec(E.className);if(_)return _[1].toLowerCase();E=E.parentElement}return"none"},setLanguage:function(E,_){E.className=E.className.replace(RegExp(i,"gi"),""),E.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(A){var E=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(E){var _=document.getElementsByTagName("script");for(var F in _)if(_[F].src==E)return _[F]}return null}},isActive:function(E,_,F){for(var A="no-"+_;E;){var $=E.classList;if($.contains(_))return!0;if($.contains(A))return!1;E=E.parentElement}return!!F}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(E,_){var F=c.util.clone(c.languages[E]);for(var A in _)F[A]=_[A];return F},insertBefore:function(E,_,F,A){A=A||c.languages;var $=A[E],P={};for(var I in $)if($.hasOwnProperty(I)){if(I==_)for(var j in F)F.hasOwnProperty(j)&&(P[j]=F[j]);F.hasOwnProperty(I)||(P[I]=$[I])}var z=A[E];return A[E]=P,c.languages.DFS(c.languages,function(K,G){G===z&&K!=E&&(this[K]=P)}),P},DFS:function E(_,F,A,$){$=$||{};var P=c.util.objId;for(var I in _)if(_.hasOwnProperty(I)){F.call(_,I,_[I],A||I);var j=_[I],z=c.util.type(j);z==="Object"&&!$[P(j)]?($[P(j)]=!0,E(j,F,null,$)):z==="Array"&&!$[P(j)]&&($[P(j)]=!0,E(j,F,I,$))}}},plugins:{},highlightAll:function(E,_){c.highlightAllUnder(document,E,_)},highlightAllUnder:function(E,_,F){var A={callback:F,container:E,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),c.hooks.run("before-all-elements-highlight",A);for(var $=0,P;P=A.elements[$++];)c.highlightElement(P,_===!0,A.callback)},highlightElement:function(E,_,F){var A=c.util.getLanguage(E),$=c.languages[A];c.util.setLanguage(E,A);var P=E.parentElement;P&&P.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(P,A);var I=E.textContent,j={element:E,language:A,grammar:$,code:I};function z(G){j.highlightedCode=G,c.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,c.hooks.run("after-highlight",j),c.hooks.run("complete",j),F&&F.call(j.element)}if(c.hooks.run("before-sanity-check",j),P=j.element.parentElement,P&&P.nodeName.toLowerCase()==="pre"&&!P.hasAttribute("tabindex")&&P.setAttribute("tabindex","0"),!j.code){c.hooks.run("complete",j),F&&F.call(j.element);return}if(c.hooks.run("before-highlight",j),!j.grammar){z(c.util.encode(j.code));return}if(_&&r.Worker){var K=new Worker(c.filename);K.onmessage=function(G){z(G.data)},K.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else z(c.highlight(j.code,j.grammar,j.language))},highlight:function(E,_,F){var A={code:E,grammar:_,language:F};if(c.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=c.tokenize(A.code,A.grammar),c.hooks.run("after-tokenize",A),d.stringify(c.util.encode(A.tokens),A.language)},tokenize:function(E,_){var F=_.rest;if(F){for(var A in F)_[A]=F[A];delete _.rest}var $=new v;return D($,$.head,E),g(E,$,_,$.head,0),k($)},hooks:{all:{},add:function(E,_){var F=c.hooks.all;F[E]=F[E]||[],F[E].push(_)},run:function(E,_){var F=c.hooks.all[E];if(!(!F||!F.length))for(var A=0,$;$=F[A++];)$(_)}},Token:d};r.Prism=c;function d(E,_,F,A){this.type=E,this.content=_,this.alias=F,this.length=(A||"").length|0}d.stringify=function E(_,F){if(typeof _=="string")return _;if(Array.isArray(_)){var A="";return _.forEach(function(z){A+=E(z,F)}),A}var $={type:_.type,content:E(_.content,F),tag:"span",classes:["token",_.type],attributes:{},language:F},P=_.alias;P&&(Array.isArray(P)?Array.prototype.push.apply($.classes,P):$.classes.push(P)),c.hooks.run("wrap",$);var I="";for(var j in $.attributes)I+=" "+j+'="'+($.attributes[j]||"").replace(/"/g,"&quot;")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+I+">"+$.content+"</"+$.tag+">"};function h(E,_,F,A){E.lastIndex=_;var $=E.exec(F);if($&&A&&$[1]){var P=$[1].length;$.index+=P,$[0]=$[0].slice(P)}return $}function g(E,_,F,A,$,P){for(var I in F)if(!(!F.hasOwnProperty(I)||!F[I])){var j=F[I];j=Array.isArray(j)?j:[j];for(var z=0;z<j.length;++z){if(P&&P.cause==I+","+z)return;var K=j[z],G=K.inside,L=!!K.lookbehind,N=!!K.greedy,H=K.alias;if(N&&!K.pattern.global){var Q=K.pattern.toString().match(/[imsuy]*$/)[0];K.pattern=RegExp(K.pattern.source,Q+"g")}for(var fe=K.pattern||K,ee=A.next,ue=$;ee!==_.tail&&!(P&&ue>=P.reach);ue+=ee.value.length,ee=ee.next){var me=ee.value;if(_.length>E.length)return;if(!(me instanceof d)){var ie=1,De;if(N){if(De=h(fe,ue,E,L),!De||De.index>=E.length)break;var Oe=De.index,rt=De.index+De[0].length,Ne=ue;for(Ne+=ee.value.length;Oe>=Ne;)ee=ee.next,Ne+=ee.value.length;if(Ne-=ee.value.length,ue=Ne,ee.value instanceof d)continue;for(var Fe=ee;Fe!==_.tail&&(Ne<rt||typeof Fe.value=="string");Fe=Fe.next)ie++,Ne+=Fe.value.length;ie--,me=E.slice(ue,Ne),De.index-=ue}else if(De=h(fe,0,me,L),!De)continue;var Oe=De.index,de=De[0],ft=me.slice(0,Oe),Ht=me.slice(Oe+de.length),Dt=ue+me.length;P&&Dt>P.reach&&(P.reach=Dt);var yt=ee.prev;ft&&(yt=D(_,yt,ft),ue+=ft.length),b(_,yt,ie);var vn=new d(I,G?c.tokenize(de,G):de,H,de);if(ee=D(_,yt,vn),Ht&&D(_,ee,Ht),ie>1){var bt={cause:I+","+z,reach:Dt};g(E,_,F,ee.prev,ue,bt),P&&bt.reach>P.reach&&(P.reach=bt.reach)}}}}}}function v(){var E={value:null,prev:null,next:null},_={value:null,prev:E,next:null};E.next=_,this.head=E,this.tail=_,this.length=0}function D(E,_,F){var A=_.next,$={value:F,prev:_,next:A};return _.next=$,A.prev=$,E.length++,$}function b(E,_,F){for(var A=_.next,$=0;$<F&&A!==E.tail;$++)A=A.next;_.next=A,A.prev=_,E.length-=$}function k(E){for(var _=[],F=E.head.next;F!==E.tail;)_.push(F.value),F=F.next;return _}if(!r.document)return r.addEventListener&&(c.disableWorkerMessageHandler||r.addEventListener("message",function(E){var _=JSON.parse(E.data),F=_.language,A=_.code,$=_.immediateClose;r.postMessage(c.highlight(A,c.languages[F],F)),$&&r.close()},!1)),c;var x=c.util.currentScript();x&&(c.filename=x.src,x.hasAttribute("data-manual")&&(c.manual=!0));function C(){c.manual||c.highlightAll()}if(!c.manual){var T=document.readyState;T==="loading"||T==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return c}(t);e.exports&&(e.exports=n),typeof un<"u"&&(un.Prism=n)})(Ap);var Cb=Ap.exports,xb=ao;ao.displayName="markup",ao.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function ao(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var u={};u[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var _b=io;io.displayName="css",io.aliases=[];function io(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var Sb=so;so.displayName="clike",so.aliases=[];function so(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var Eb=oo;oo.displayName="javascript",oo.aliases=["js"];function oo(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var na=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof un=="object"?un:{},Fb=Wb();na.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ab=H0,$b=sb,$p=Cb,Tb=xb,Bb=_b,Nb=Sb,jb=Eb;Fb();var lo={}.hasOwnProperty;function Tp(){}Tp.prototype=$p;var Me=new Tp,Pb=Me;Me.highlight=Ob,Me.register=ra,Me.alias=Lb,Me.registered=Ib,Me.listLanguages=Mb,ra(Tb),ra(Bb),ra(Nb),ra(jb),Me.util.encode=Hb,Me.Token.stringify=Rb;function ra(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Me.languages[e.displayName]===void 0&&e(Me)}function Lb(e,t){var n=Me.languages,r=e,i,o,u,c;t&&(r={},r[e]=t);for(i in r)for(o=r[i],o=typeof o=="string"?[o]:o,u=o.length,c=-1;++c<u;)n[o[c]]=n[i]}function Ob(e,t){var n=$p.highlight,r;if(typeof e!="string")throw new Error("Expected `string` for `value`, got `"+e+"`");if(Me.util.type(t)==="Object")r=t,t=null;else{if(typeof t!="string")throw new Error("Expected `string` for `name`, got `"+t+"`");if(lo.call(Me.languages,t))r=Me.languages[t];else throw new Error("Unknown language: `"+t+"` is not registered")}return n.call(this,e,r,t)}function Ib(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return lo.call(Me.languages,e)}function Mb(){var e=Me.languages,t=[],n;for(n in e)lo.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Rb(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:Me.util.type(e)==="Array"?qb(e,t):(r={type:e.type,content:Me.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),Me.hooks.run("wrap",r),Ab(r.tag+"."+r.classes.join("."),Ub(r.attributes),r.content))}function qb(e,t){for(var n=[],r=e.length,i=-1,o;++i<r;)o=e[i],o!==""&&o!==null&&o!==void 0&&n.push(o);for(i=-1,r=n.length;++i<r;)o=n[i],n[i]=Me.Token.stringify(o,t,n);return n}function Hb(e){return e}function Ub(e){var t;for(t in e)e[t]=$b(e[t]);return e}function Wb(){var e="Prism"in na,t=e?na.Prism:void 0;return n;function n(){e?na.Prism=t:delete na.Prism,e=void 0,t=void 0}}const uo=xa(Pb);var aa=xy(uo,{});aa.registerLanguage=function(e,t){return uo.register(t)},aa.alias=function(e,t){return uo.alias(e,t)};const Bp={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var zb=co;co.displayName="jsx",co.aliases=[];function co(e){(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,g){return h=h.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(h,g)}o=u(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var c=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(c).join(""):""},d=function(h){for(var g=[],v=0;v<h.length;v++){var D=h[v],b=!1;if(typeof D!="string"&&(D.type==="tag"&&D.content[0]&&D.content[0].type==="tag"?D.content[0].content[0].content==="</"?g.length>0&&g[g.length-1].tagName===c(D.content[0].content[1])&&g.pop():D.content[D.content.length-1].content==="/>"||g.push({tagName:c(D.content[0].content[1]),openedBraces:0}):g.length>0&&D.type==="punctuation"&&D.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&D.type==="punctuation"&&D.content==="}"?g[g.length-1].openedBraces--:b=!0),(b||typeof D=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var k=c(D);v<h.length-1&&(typeof h[v+1]=="string"||h[v+1].type==="plain-text")&&(k+=c(h[v+1]),h.splice(v+1,1)),v>0&&(typeof h[v-1]=="string"||h[v-1].type==="plain-text")&&(k=c(h[v-1])+k,h.splice(v-1,1),v--),h[v]=new t.Token("plain-text",k,null,k)}D.content&&typeof D.content!="string"&&d(D.content)}};t.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||d(h.tokens)})})(e)}const Vb=xa(zb),po=M.forwardRef(({ariaDescribedby:e,ariaLabelledby:t,children:n,className:r,disabled:i=!1,errorMessage:o,hasError:u,helptext:c,helptextDropdown:d,helptextDropdownButton:h,id:g,inline:v=!1,fullwidth:D=!1,label:b,name:k,optionalTag:x=!1,optionalText:C,requiredTag:T=!1,requiredText:E,..._},F)=>{const A=[r,"pkt-select"].join(" ");return m.jsx(ar,{className:A,forId:g,label:b,helptext:c,helptextDropdown:d,helptextDropdownButton:h,optionalTag:x,optionalText:C,requiredTag:T,requiredText:E,hasError:u,errorMessage:o,disabled:i,inline:v,ariaDescribedby:e,children:m.jsx("select",{ref:F,className:`pkt-input ${D?"pkt-input--fullwidth":""}`,"aria-invalid":u,"aria-errormessage":`${g}-error`,"aria-labelledby":t||`${g}-label`,disabled:i,id:g,name:k||g,..._,children:n})})}),gr=M.forwardRef(({children:e,className:t,skin:n="blue",textStyle:r="normal-text",size:i="medium",closeTag:o=!1,iconName:u="",type:c="button",ariaLabel:d="close",onClick:h=()=>{}},g)=>{const[v,D]=M.useState(!1),b=T=>{D(!0),h(T)},k=["pkt-tag",i&&`pkt-tag--${i}`,n&&`pkt-tag--${n}`,r&&`pkt-tag--${r}`,t].filter(Boolean).join(" "),x=["pkt-tag","pkt-btn","pkt-btn--tertiary",i&&`pkt-tag--${i}`,n&&`pkt-tag--${n}`,r&&`pkt-tag--${r}`,u&&o?"pkt-btn--icons-right-and-left":null,o&&!u?"pkt-btn--icon-right":null,t].filter(Boolean).join(" "),C=!v;return o&&u?m.jsx(m.Fragment,{children:C&&m.jsxs("button",{className:x,type:c,"aria-label":d,onClick:b,ref:g,children:[m.jsx(ne,{className:"pkt-tag__icon",name:u}),e,m.jsx(ne,{className:"pkt-tag__close-btn",name:"close"})]})}):o?m.jsx(m.Fragment,{children:C&&m.jsxs("button",{className:x,type:c,"aria-label":d,onClick:b,ref:g,children:[m.jsx(ne,{className:"pkt-tag__close-btn",name:"close"}),e]})}):u?m.jsxs("span",{className:k,children:[m.jsx(ne,{className:"pkt-tag__icon",name:u}),e]}):m.jsx("span",{className:k,children:e})});gr.displayName="PktTag";const Np=M.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=M.useRef([]);M.useEffect(()=>{i.current=i.current.slice(0,t.length)},[t]);const o=(c,d)=>{d.action&&d.action(c),n&&n(c)},u=(c,d)=>{var h,g;e&&(d.code==="ArrowLeft"&&c!==0&&((h=i.current[c-1])==null||h.focus()),d.code==="ArrowRight"&&c<t.length-1&&((g=i.current[c+1])==null||g.focus()),(d.code==="ArrowDown"||d.code==="Space")&&o(c,t[c]))};return m.jsx("div",{className:"pkt-tabs",ref:r,children:m.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:t.map((c,d)=>m.jsx(M.Fragment,{children:c.href?m.jsxs("a",{"aria-selected":!!c.active,role:e?"tab":void 0,href:c.href,"aria-controls":c.controls,className:`pkt-tabs__link ${c.active?"active":""}`,onKeyUp:h=>u(d,h),onClick:()=>o(d,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[d]=h},children:[c.icon&&m.jsx(ne,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&m.jsx(gr,{skin:c.tag.skin,size:"small",children:c.tag.text})]}):m.jsxs("button",{"aria-selected":!!c.active,role:e?"tab":void 0,type:"button","aria-controls":c.controls,className:`pkt-tabs__button pkt-link-button ${c.active?"active":""}`,onKeyUp:h=>u(d,h),onClick:()=>o(d,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[d]=h},children:[c.icon&&m.jsx(ne,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&m.jsx(gr,{skin:c.tag.skin,size:"small",children:c.tag.text})]},"b-"+d)},d))})})}),ho=M.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,autocomplete:r="off",counter:i,counterMaxLength:o,className:u,disabled:c=!1,errorMessage:d,hasError:h=!1,helptext:g,helptextDropdown:v,helptextDropdownButton:D,iconNameRight:b,inline:k=!1,fullwidth:x=!1,label:C,name:T,optionalTag:E=!1,optionalText:_,requiredTag:F=!1,requiredText:A,placeholder:$,prefix:P,suffix:I,type:j="text",useWrapper:z=!0,omitSearchIcon:K=!1,value:G,onChange:L,...N},H)=>{const Q=[u,"pkt-textinput"].join(" "),fe=n||`${e}-label`,ee=j==="search"&&!b&&!K;M.useRef(null);const[ue,me]=M.useState(0),ie=De=>{var rt,Ne;if(i&&me(((Ne=(rt=De.currentTarget)==null?void 0:rt.value)==null?void 0:Ne.length)||0),L)return L(De)};return m.jsx(ar,{ariaDescribedby:t,className:Q,disabled:c,errorMessage:d,forId:e,hasError:h,helptext:g,helptextDropdown:v,helptextDropdownButton:D,inline:k,label:C,optionalTag:E,optionalText:_,requiredTag:F,requiredText:A,useWrapper:z,counter:i,counterCurrent:ue,counterMaxLength:o,children:m.jsxs("div",{className:"pkt-input__container",children:[P&&m.jsx("div",{className:"pkt-input-prefix",children:P}),m.jsx("input",{ref:H,className:`pkt-input ${x?"pkt-input--fullwidth":""} ${o&&ue>o?"pkt-input--counter-error":""}`,type:j,name:T||e,id:e,placeholder:$,autoComplete:r,value:G,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":fe,...N,onChange:ie}),I&&m.jsxs("p",{className:"pkt-input-suffix",children:[I,b&&m.jsx(ne,{className:"pkt-input-suffix-icon",name:b}),ee&&m.jsx(ne,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!I&&b&&m.jsx(ne,{className:"pkt-input-icon",name:b}),!I&&ee&&m.jsx(ne,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Gb=[{id:"24h",fn:"24h.svg",cat:"services"},{id:"active-person",fn:"active-person.svg",cat:"people-and-health"},{id:"adjust",fn:"adjust.svg",cat:"ui"},{id:"alert-circle",fn:"alert-circle.svg",cat:"ui"},{id:"alert-error",fn:"alert-error.svg",cat:"ui"},{id:"alert-information",fn:"alert-information.svg",cat:"ui"},{id:"alert-success",fn:"alert-success.svg",cat:"ui"},{id:"alert-warning",fn:"alert-warning.svg",cat:"ui"},{id:"apple",fn:"apple.svg",cat:"ui"},{id:"archive",fn:"archive.svg",cat:"ui"},{id:"arrow-circle",fn:"arrow-circle.svg",cat:"ui"},{id:"arrow",fn:"arrow.svg",cat:"arrows"},{id:"attachment",fn:"attachment.svg",cat:"ui"},{id:"backpack",fn:"backpack.svg",cat:"services"},{id:"balloons",fn:"balloons.svg",cat:"ui"},{id:"books",fn:"books.svg",cat:"services"},{id:"wardrobe-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"brain-heart",fn:"brain-heart.svg",cat:"people-and-health"},{id:"brain-signal",fn:"brain-signal.svg",cat:"people-and-health"},{id:"briefcase",fn:"briefcase.svg",cat:"sign"},{id:"bullseye",fn:"bullseye.svg",cat:"ui"},{id:"bus",fn:"bus.svg",cat:"services"},{id:"cafe",fn:"cafe.svg",cat:"sign"},{id:"calendar",fn:"calendar.svg",cat:"ui"},{id:"camera",fn:"camera.svg",cat:"ui"},{id:"car",fn:"car.svg",cat:"sign"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{id:"care-room",fn:"care-room.svg",cat:"sign"},{id:"check-big",fn:"check-big.svg",cat:"ui"},{id:"check-circle",fn:"check-circle.svg",cat:"ui"},{id:"check-medium",fn:"check-medium.svg",cat:"ui"},{id:"check",fn:"check.svg",cat:"ui"},{id:"chevron-down",fn:"chevron-down.svg",cat:"arrows"},{id:"chevron-left",fn:"chevron-left.svg",cat:"arrows"},{id:"chevron-right",fn:"chevron-right.svg",cat:"arrows"},{id:"chevron-thin-down",fn:"chevron-thin-down.svg",cat:"arrows"},{id:"chevron-thin-left",fn:"chevron-thin-left.svg",cat:"arrows"},{id:"chevron-thin-right",fn:"chevron-thin-right.svg",cat:"arrows"},{id:"chevron-thin-up",fn:"chevron-thin-up.svg",cat:"arrows"},{id:"chevron-up-and-down",fn:"chevron-up-and-down.svg",cat:"ui"},{id:"chevron-up",fn:"chevron-up.svg",cat:"arrows"},{id:"clock",fn:"clock.svg",cat:"ui"},{id:"close",fn:"close.svg",cat:"ui"},{id:"cloud",fn:"cloud.svg",cat:"ui"},{id:"code",fn:"code.svg",cat:"ui"},{id:"coffee",fn:"coffee.svg",cat:"sign"},{id:"cogwheel",fn:"cogwheel.svg",cat:"ui"},{id:"coin-stacks",fn:"coin-stacks.svg",cat:"services"},{id:"computer",fn:"computer.svg",cat:"ui"},{id:"copy",fn:"copy.svg",cat:"ui"},{id:"crane",fn:"crane.svg",cat:"services"},{id:"cross-circle-big",fn:"cross-circle-big.svg",cat:"ui"},{id:"cross-circle-fill",fn:"cross-circle-fill.svg",cat:"ui"},{id:"cross-circle",fn:"cross-circle.svg",cat:"ui"},{id:"cross",fn:"cross.svg",cat:"ui"},{id:"data",fn:"data.svg",cat:"ui"},{id:"defibrillators",fn:"defibrillators.svg",cat:"sign"},{id:"district",fn:"district.svg",cat:"ui"},{id:"document-code",fn:"document-code.svg",cat:"ui"},{id:"document-pdf",fn:"document-pdf.svg",cat:"ui"},{id:"document-plain",fn:"document-plain.svg",cat:"ui"},{id:"document-table",fn:"document-table.svg",cat:"ui"},{id:"document-text",fn:"document-text.svg",cat:"ui"},{id:"download",fn:"download.svg",cat:"ui"},{id:"drag",fn:"drag.svg",cat:"ui"},{id:"drinking-area-refreshments",fn:"drinking-area-refreshments.svg",cat:"sign"},{id:"ecg-heart",fn:"ecg-heart.svg",cat:"people-and-health"},{id:"edit",fn:"edit.svg",cat:"ui"},{id:"email",fn:"email.svg",cat:"ui"},{id:"exclamation-mark-circle",fn:"exclamation-mark-circle.svg",cat:"ui"},{id:"exclamation-mark-square",fn:"exclamation-mark-square.svg",cat:"ui"},{id:"exit",fn:"exit.svg",cat:"ui"},{id:"expand",fn:"expand.svg",cat:"ui"},{id:"eye",fn:"eye.svg",cat:"ui"},{id:"face-almost-happy",fn:"face-almost-happy.svg",cat:"feedback"},{id:"face-almost-sad",fn:"face-almost-sad.svg",cat:"feedback"},{id:"face-happy",fn:"face-happy.svg",cat:"feedback"},{id:"face-neutral",fn:"face-neutral.svg",cat:"feedback"},{id:"face-sad",fn:"face-sad.svg",cat:"feedback"},{id:"facebook",fn:"facebook.svg",cat:"social"},{id:"factory-fill",fn:"factory-fill.svg",cat:"ui"},{id:"feedback",fn:"feedback.svg",cat:"ui"},{id:"figma",fn:"figma.svg",cat:"social"},{id:"filter",fn:"filter.svg",cat:"ui"},{id:"fire-emblem",fn:"fire-emblem.svg",cat:"services"},{id:"fire-safety",fn:"fire-safety.svg",cat:"people-and-health"},{id:"folder",fn:"folder.svg",cat:"ui"},{id:"game-console",fn:"game-console.svg",cat:"ui"},{id:"github",fn:"github.svg",cat:"social"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"heart-hand",fn:"heart-hand.svg",cat:"people-and-health"},{id:"heart-plus",fn:"heart-plus.svg",cat:"services"},{id:"heart",fn:"heart.svg",cat:"ui"},{id:"holding-hands",fn:"holding-hands.svg",cat:"people-and-health"},{id:"home",fn:"home.svg",cat:"ui"},{id:"horizontal-menu",fn:"horizontal-menu.svg",cat:"ui"},{id:"house-heart",fn:"house-heart.svg",cat:"services"},{id:"information",fn:"information.svg",cat:"ui"},{id:"instagram",fn:"instagram.svg",cat:"social"},{id:"invoice",fn:"invoice.svg",cat:"ui"},{id:"key",fn:"key.svg",cat:"ui"},{id:"language",fn:"language.svg",cat:"ui"},{id:"law-paragraph",fn:"law-paragraph.svg",cat:"ui"},{id:"lecture-workplace",fn:"lecture-workplace.svg",cat:"people-and-health"},{id:"link",fn:"link.svg",cat:"ui"},{id:"linkedin",fn:"linkedin.svg",cat:"social"},{id:"list",fn:"list.svg",cat:"ui"},{id:"location-pin-filled",fn:"location-pin-filled.svg",cat:"ui"},{id:"location-pin",fn:"location-pin.svg",cat:"ui"},{id:"lock-locked",fn:"lock-locked.svg",cat:"ui"},{id:"lock-unlocked",fn:"lock-unlocked.svg",cat:"ui"},{id:"magnifying-glass-big",fn:"magnifying-glass-big.svg",cat:"ui"},{id:"magnifying-glass-small",fn:"magnifying-glass-small.svg",cat:"ui"},{id:"map",fn:"map.svg",cat:"ui"},{id:"menu",fn:"menu.svg",cat:"ui"},{id:"message",fn:"message.svg",cat:"ui"},{id:"minimize",fn:"minimize.svg",cat:"ui"},{id:"minus-circle-fill",fn:"minus-circle-fill.svg",cat:"plusminus"},{id:"minus-circle",fn:"minus-circle.svg",cat:"plusminus"},{id:"minus-sign",fn:"minus-sign.svg",cat:"plusminus"},{id:"mobile-phone",fn:"mobile-phone.svg",cat:"ui"},{id:"music-notes",fn:"music-notes.svg",cat:"ui"},{id:"new-window-small",fn:"new-window-small.svg",cat:"ui"},{id:"new-window",fn:"new-window.svg",cat:"ui"},{id:"nodejs",fn:"nodejs.svg",cat:"social"},{id:"obstacle",fn:"obstacle.svg",cat:"ui"},{id:"organization",fn:"organization.svg",cat:"ui"},{id:"paint-bucket",fn:"paint-bucket.svg",cat:"ui"},{id:"palette",fn:"palette.svg",cat:"ui"},{id:"paste",fn:"paste.svg",cat:"ui"},{id:"park",fn:"park.svg",cat:"services"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"picture",fn:"picture.svg",cat:"ui"},{id:"placeholder-icon",fn:"placeholder-icon.svg",cat:"ui"},{id:"plus-circle-fill",fn:"plus-circle-fill.svg",cat:"plusminus"},{id:"plus-circle",fn:"plus-circle.svg",cat:"plusminus"},{id:"plus-sign",fn:"plus-sign.svg",cat:"plusminus"},{id:"pride-heart",fn:"pride-heart.svg",cat:"people-and-health"},{id:"print",fn:"print.svg",cat:"ui"},{id:"privacy",fn:"privacy.svg",cat:"ui"},{id:"punkt-circle-blue",fn:"punkt-circle-blue.svg",cat:"social"},{id:"qr-code",fn:"qr-code.svg",cat:"ui"},{id:"question",fn:"question.svg",cat:"ui"},{id:"react",fn:"react.svg",cat:"social"},{id:"receipt",fn:"receipt.svg",cat:"ui"},{id:"recycling",fn:"recycling.svg",cat:"services"},{id:"restaurant",fn:"restaurant.svg",cat:"sign"},{id:"ruler",fn:"ruler.svg",cat:"ui"},{id:"sass",fn:"sass.svg",cat:"social"},{id:"save",fn:"save.svg",cat:"ui"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"svg-logo",fn:"svg.svg",cat:"social"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"tickets",fn:"tickets.svg",cat:"sign"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"twitter",fn:"twitter.svg",cat:"social"},{id:"two-people-dancing",fn:"two-people-dancing.svg",cat:"people-and-health"},{id:"two-people-talking",fn:"two-people-talking.svg",cat:"people-and-health"},{id:"user",fn:"user.svg",cat:"ui"},{id:"vertical-menu",fn:"vertical-menu.svg",cat:"ui"},{id:"vue",fn:"vue.svg",cat:"social"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"workplace",fn:"workplace.svg",cat:"social"}],li=({className:e,compact:t=!1,skin:n="basic",responsiveView:r=!0,children:i})=>m.jsx("table",{"data-testid":"pkt-table",className:Je(e,"pkt-table",{"pkt-table--responsive":r,"pkt-table--compact":t,"pkt-table--basic":n==="basic","pkt-table--zebra-blue":n==="zebra-blue"}),role:"table",children:i}),ui=({className:e,children:t})=>m.jsx("thead",{className:Je(e,"pkt-table__header",{}),role:"rowgroup",children:t}),ci=({children:e,className:t})=>m.jsx("tbody",{className:Je(t,"pkt-table__body",{}),role:"rowgroup",children:e}),Wn=({className:e,children:t})=>m.jsx("tr",{className:Je(e,"pkt-table__row",{}),role:"row",children:t}),qt=({className:e,children:t})=>m.jsx("th",{className:Je(e,"pkt-table__header-cell",{}),role:"columnheader",children:t}),Ft=({children:e,className:t,dataLabel:n})=>m.jsx("td",{className:Je(t,"pkt-table__data-cell",{}),"data-label":n,role:"cell","data-testid":"pkt-table__data-cell",children:e}),Yb=({specs:e})=>{const t=r=>Array.isArray(r)?r.join(`
601
601
  `):r,n=r=>typeof r=="boolean"?r?"true":"false":r;return m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Egenskaper"}),m.jsxs(li,{compact:!0,children:[m.jsx(ui,{children:m.jsxs(Wn,{children:[m.jsx(qt,{children:"Navn"}),m.jsx(qt,{children:"Prop"}),m.jsx(qt,{children:"Beskrivelse"}),m.jsx(qt,{children:"Type"}),m.jsx(qt,{children:"Standardverdi"})]})}),m.jsx(ci,{children:Object.entries(e.props||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Ft,{dataLabel:"Prop",children:m.jsx("pre",{children:r})}),m.jsx(Ft,{dataLabel:"Navn",children:!Array.isArray(i)&&i.name||r}),Array.isArray(i)?m.jsxs(m.Fragment,{children:[m.jsx(Ft,{dataLabel:"Beskrivelse"}),m.jsx(Ft,{dataLabel:"Type",children:m.jsx("pre",{children:i.join(`
602
- `)})})]}):m.jsxs(m.Fragment,{children:[m.jsx(Ft,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),m.jsx(Ft,{dataLabel:"Type",children:m.jsx("pre",{children:i.type&&t(i.type)})}),m.jsx(Ft,{dataLabel:"Standardverdi",children:m.jsx("pre",{children:n(i.default)})})]})]},r))})]}),e.events&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Hendelser / handlinger"}),m.jsxs(li,{compact:!0,children:[m.jsx(ui,{children:m.jsxs(Wn,{children:[m.jsx(qt,{children:"Event"}),m.jsx(qt,{children:"Beskrivelse"})]})}),m.jsx(ci,{children:Object.entries(e.events||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Ft,{dataLabel:"Event",children:m.jsx("pre",{children:r})}),m.jsx(Ft,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]}),e.slots&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Innhold"}),m.jsxs(li,{compact:!0,children:[m.jsx(ui,{children:m.jsxs(Wn,{children:[m.jsx(qt,{children:"Slot"}),m.jsx(qt,{children:"Beskrivelse"})]})}),m.jsx(ci,{children:Object.entries(e.slots||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Ft,{dataLabel:"Slot",children:m.jsx("pre",{children:r})}),m.jsx(Ft,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]})]})};ra.registerLanguage("jsx",Vb);const jp=({specs:e,children:t,fullWidth:n})=>{var K,G;const r=e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).reduce((L,[N,H])=>(typeof H=="object"&&!Array.isArray(H)&&H.default!==void 0&&H.default!==null&&(H.default==="false"&&(H.default=!1),H.default==="true"&&(H.default=!0),L[N]=H.default),L),{}):{},[i,o]=M.useState(r),[u,c]=M.useState("light"),[d,h]=M.useState(""),[g,v]=M.useState(""),[D,b]=M.useState(""),[k,x]=M.useState("Rediger innhold"),[C,T]=M.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${e.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),E=L=>{L===1&&A(),L===2&&(A(),F()),b(""),T(N=>N.map((H,Q)=>({...H,active:Q===L})))},_=M.useRef(null),F=async()=>{if(e.isElement&&M.isValidElement(I))A().then(()=>{const L=M.isValidElement(I)?I.type.displayName||I.type.name:e.name;h(g.replaceAll(L,e.name||"").replaceAll("{",'"').replaceAll("}",'"'))});else{const L=await Hs(_.current.innerHTML,{parser:"html",plugins:[ey]});h(L.replace(/<\!--.*?-->/g,""))}},A=async()=>{const L=Ig(I);return v(L),Promise.resolve()},$=(L,N)=>{navigator.clipboard.writeText(N).then(()=>{b(L),console.log("Copied to clipboard",L)})},P=(L,N)=>m.jsxs("div",{className:"pkt-preview__copy",children:[D===L&&m.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),m.jsx(wn,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>$(L,N),children:"Kopier kode"})]}),I=M.isValidElement(t)&&M.cloneElement(t,{...i},t.props.children?t.props.children:(K=e.slots)!=null&&K.default?k:null),j=(L,N,H=!1)=>{if(!H&&(!N||N=="false")){const{[L]:Q,...fe}=i;o(fe)}else o(Q=>({...Q,[L]:N}))},z=(L,N)=>{if(N.type==="boolean")return m.jsx(ar,{label:N.name||L,forId:L,helptext:N.description||null,hasFieldset:!0,requiredTag:N.required,children:m.jsx(Ma,{id:L,label:L,type:"checkbox",checked:i[L],onChange:H=>j(L,H.target.checked,N.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(N.type==="icon")return m.jsxs(po,{label:N.name||L,helptext:N.description||null,id:L,value:i[L],onChange:H=>j(L,H.target.value),requiredTag:N.required,children:[m.jsx("option",{value:""}),Gb.map(H=>m.jsx("option",{value:H.id,children:H.id},H.id))]});if(Array.isArray(N)||Array.isArray(N.type)||Array.isArray(N.values)){const H=Array.isArray(N)?N:N.values||N.type;return m.jsxs(po,{label:N.name||L,helptext:N.description||null,id:L,value:i[L],onChange:Q=>j(L,Q.target.value),requiredTag:N.required,children:[m.jsx("option",{value:""}),H.map(Q=>m.jsx("option",{value:Q,children:Q},Q))]})}else return N.type==="ISOdatestring"?m.jsx(Xl,{id:L,label:N.name||L,helptext:N.description||null,value:i[L],multiple:N.variant==="multiple",maxlength:999,onChange:H=>j(L,H.target.value),requiredTag:N.required}):m.jsx(ho,{id:L,label:N.name||L,helptext:N.description||null,type:"text",value:i[L],onChange:H=>j(L,N.type==="number"?parseFloat(H.currentTarget.value):H.currentTarget.value),requiredTag:N.required})};return m.jsxs("div",{className:"pkt-preview",children:[m.jsxs("div",{className:"pkt-preview__component-container","data-mode":u,children:[e["dark-mode"]&&m.jsx("div",{className:"pkt-preview__mode",children:m.jsx(Ma,{id:"mode",label:"Dark mode",type:"checkbox",checked:u==="dark",onChange:L=>c(L.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),m.jsx("div",{className:`pkt-preview__component ${n&&"pkt-preview__component--fullwidth"}`,ref:_,children:m.jsx("div",{children:I})})]}),m.jsx(Np,{tabs:C,onTabSelected:E}),m.jsxs("div",{className:`pkt-grid pkt-preview__opts ${C[0].active?"":"pkt-hide"}`,children:[((G=e.slots)==null?void 0:G.default)&&!t.props.children&&m.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[m.jsx(gr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),m.jsx(ho,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:k,onChange:L=>x(L.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([L,N])=>m.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[m.jsx(gr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:L}),z(L,N)]},L)):m.jsx("p",{children:"OBS! Specs mangler props!"})]}),m.jsxs("div",{className:`pkt-preview__code ${C[1].active?"":"pkt-hide"}`,children:[m.jsx(ra,{language:"jsx",style:Bp,children:g}),P("jsx",g)]}),m.jsxs("div",{className:`pkt-preview__code ${C[2].active?"":"pkt-hide"}`,children:[m.jsx(ra,{language:"html",style:Bp,children:d}),P("html",d)]}),m.jsx("div",{className:`pkt-preview__specs ${C[3].active?"":"pkt-hide"}`,children:m.jsx(Yb,{specs:e})})]})};jp.displayName="PktPreview";for(var Ze=[],fo=0;fo<256;++fo)Ze.push((fo+256).toString(16).slice(1));function Kb(e,t=0){return(Ze[e[t+0]]+Ze[e[t+1]]+Ze[e[t+2]]+Ze[e[t+3]]+"-"+Ze[e[t+4]]+Ze[e[t+5]]+"-"+Ze[e[t+6]]+Ze[e[t+7]]+"-"+Ze[e[t+8]]+Ze[e[t+9]]+"-"+Ze[e[t+10]]+Ze[e[t+11]]+Ze[e[t+12]]+Ze[e[t+13]]+Ze[e[t+14]]+Ze[e[t+15]]).toLowerCase()}var pi,Jb=new Uint8Array(16);function Xb(){if(!pi&&(pi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pi(Jb)}var Qb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Pp={randomUUID:Qb};function Zb(e,t,n){if(Pp.randomUUID&&!t&&!e)return Pp.randomUUID();e=e||{};var r=e.random||(e.rng||Xb)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Kb(r)}const Lp=M.forwardRef(({valueCurrent:e,valueMin:t=0,valueMax:n=100,skin:r="dark-blue",title:i,titlePosition:o="left",statusType:u="none",statusPlacement:c="following",id:d,ariaLabel:h,ariaLabelledby:g,role:v="progressbar",className:D,ariaValueText:b,...k},x)=>{const C=M.useRef(null),[T,E]=M.useState(0),[_,F]=M.useState(d);M.useEffect(()=>{d||F(Zb())},[d]),M.useEffect(()=>{if(C.current){const N=C.current;E(N.getBoundingClientRect().width)}});const A=n-t,$=e/A*100,P=n!==100||t!==0?Math.round($):e,I=`${e} av ${n}`,j=u!=="none",z=Ye("pkt-progressbar__bar",{[`pkt-progressbar__bar--${r}`]:r}),K=Ye("pkt-progressbar__title",{"pkt-progressbar__title-center":o==="center"}),G=Ye("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),L=Ye({"pkt-progressbar__status-placement--following":c==="following","pkt-progressbar__status-placement--center":c==="center","pkt-progressbar__status-placement--left":c==="left"});return m.jsxs("div",{...k,ref:x,className:Ye("pkt-progressbar__container",D),id:_,style:{"--pkt-progress-label-width":`${T}px`,"--pkt-progress-width":`${P}%`},children:[i&&m.jsx("p",{id:`${_}-title`,className:K,children:i}),m.jsx("div",{role:v,className:"pkt-progressbar__bar-wrapper","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":e,"aria-labelledby":g||i&&`${_}-title`,"aria-label":h,"aria-valuetext":b,children:m.jsx("div",{className:z})}),j&&m.jsx("div",{className:G,children:m.jsx("span",{className:L,ref:C,children:u==="percentage"?`${P}%`:I})})]})});Lp.displayName="PktProgressbar";const Op=M.forwardRef(({id:e,name:t,label:n,className:r,hasTile:i=!1,disabled:o=!1,checkHelptext:u,hasError:c=!1,...d},h)=>{const g=[r,"pkt-input-check"].filter(Boolean).join(" ");return m.jsx("div",{className:g,children:m.jsxs("div",{className:`pkt-input-check__input ${i?"pkt-input-check__input--tile":""} ${o&&i?"pkt-input-check__input--tile-disabled":""}`,children:[m.jsx("input",{ref:h,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"radio",id:e,disabled:o,name:t,...d}),m.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[n,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});Op.displayName="PktRadioButton";const ek=M.forwardRef(({appearance:e="local",disabled:t=!1,fullwidth:n=!1,id:r,label:i,name:o,placeholder:u="Søk…",suggestions:c,value:d="",action:h,method:g,onChange:v,onSearch:D,onSuggestionClick:b,...k},x)=>{const C=(F,A)=>{F?F():b&&b(A)},T=`pkt-searchinput pkt-searchinput--${e} ${n?"pkt-searchinput--fullwidth":""}`,E=i?"label":"div";let _;return h?_=F=>m.jsx("form",{role:"search",className:T,action:h,method:g,children:F}):_=F=>m.jsx("div",{role:"search",className:T,children:F}),_(m.jsxs(m.Fragment,{children:[m.jsxs(E,{htmlFor:i?r:void 0,className:i?"pkt-inputwrapper__label":"",children:[i&&m.jsx(m.Fragment,{children:i}),m.jsxs("div",{className:e==="local"?"pkt-input__container":"pkt-searchinput__field",children:[m.jsx("input",{className:`pkt-input ${n?"pkt-input--fullwidth":""}`,type:"search",name:o||r,id:r,placeholder:u,defaultValue:d,disabled:t,autoComplete:"off","aria-autocomplete":"list",ref:x,"aria-controls":`${r}-suggestions`,onChange:v,...k}),m.jsx(wn,{className:`pkt-searchinput__button ${e==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:e==="local"?"tertiary":"primary",color:e==="global"?"yellow":void 0,type:"submit",disabled:t,onClick:D&&(()=>D(d)),onKeyUp:D&&(F=>F.key==="Enter"&&D(d)),children:i||u})]})]}),c&&m.jsx("ul",{id:`${r}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:c.map((F,A)=>m.jsx("li",{children:M.createElement(F.href?"a":F.onClick?"button":"div",{href:F.href,className:`pkt-searchinput__suggestion ${F.onClick?"pkt-link-button":""} ${F.href||F.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:F.onClick?"button":void 0,onClick:()=>C(F.onClick,A),onKeyUp:()=>C(F.onClick,A)},m.jsxs(m.Fragment,{children:[F.title&&m.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:F.title}),F.text&&m.jsx("p",{className:"pkt-searchinput__suggestion-text",children:F.text})]}))},`search-suggestion-${A}`))})]}))}),tk=M.forwardRef(({activeStep:e,className:t,children:n,hideNonActiveStepsContent:r=!0,orientation:i="vertical",...o},u)=>{const c=Ye(t,"pkt-stepper",i==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),d=M.Children.map(n,(h,g)=>M.isValidElement(h)?M.cloneElement(h,{className:Ye(h.props.className,{"pkt-step--hidden":r&&g!==e})}):h);return m.jsx("ol",{"data-testid":"pkt-stepper",className:c,ref:u,...o,children:d})}),nk=m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:m.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),rk=m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[m.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),m.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),ak=m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[m.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),m.jsx("path",{d:"m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z",fill:"#F1FDFF"})]}),ik=({children:e,className:t,status:n="incomplete",title:r})=>m.jsxs("li",{className:Ye("pkt-step",t,`pkt-step--${n}`),"data-testid":"pkt-step",children:[m.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),m.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),m.jsx("span",{className:Ye("pkt-step__indicator"),children:n==="current"?rk:n==="completed"?ak:nk}),m.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),m.jsxs("div",{className:"pkt-step__wrapper",children:[m.jsx("div",{className:"pkt-step__title",children:r}),m.jsx("div",{className:"pkt-step__content",children:e})]})]}),sk=M.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,counter:r,counterMaxLength:i,className:o,disabled:u,errorMessage:c,hasError:d,helptext:h,helptextDropdown:g,helptextDropdownButton:v,inline:D,fullwidth:b=!1,label:k,name:x,optionalTag:C=!1,optionalText:T,requiredTag:E=!1,requiredText:_,placeholder:F,rows:A,useWrapper:$=!0,onChange:P,...I},j)=>{const z=[o,"pkt-textinput","pkt-textarea"].join(" "),K=n||`${e}-label`,G=M.useRef(null),[L,N]=M.useState(0),H=Q=>{var fe,ee;if(r&&N(((ee=(fe=Q.currentTarget)==null?void 0:fe.value)==null?void 0:ee.length)||0),P)return P(Q)};return M.useEffect(()=>{var Q,fe;typeof j=="function"&&j(G.current),r&&N(((fe=(Q=G==null?void 0:G.current)==null?void 0:Q.value)==null?void 0:fe.length)||0)},[j]),m.jsx(ar,{ariaDescribedby:t,className:z,disabled:u,errorMessage:c,forId:e,hasError:d,helptext:h,helptextDropdown:g,helptextDropdownButton:v,inline:D,label:k,optionalTag:C,optionalText:T,requiredTag:E,requiredText:_,useWrapper:$,counter:r,counterCurrent:L,counterMaxLength:i,children:m.jsx("textarea",{ref:G,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&L>i?"pkt-input--counter-error":""}`,name:x||e,id:e,placeholder:F,disabled:u,rows:A,"aria-labelledby":K,"aria-invalid":d,"aria-errormessage":`${e}-error`,...I,onChange:H})})});Z.PktAccordion=th,Z.PktAccordionItem=oh,Z.PktAlert=Wi,Z.PktBackLink=rl,Z.PktBreadcrumbs=lh,Z.PktButton=wn,Z.PktCard=Jl,Z.PktCheckbox=Ma,Z.PktDatepicker=Xl,Z.PktFooter=Wm,Z.PktFooterSimple=zm,Z.PktHeader=Vm,Z.PktIcon=ne,Z.PktIconContext=tl,Z.PktInput=Ql,Z.PktInputWrapper=ar,Z.PktLink=Zl,Z.PktLinkCard=eu,Z.PktLoader=tu,Z.PktMessagebox=nu,Z.PktPreview=jp,Z.PktProgressbar=Lp,Z.PktRadioButton=Op,Z.PktSearchInput=ek,Z.PktSelect=po,Z.PktStep=ik,Z.PktStepper=tk,Z.PktTable=li,Z.PktTableBody=ci,Z.PktTableDataCell=Ft,Z.PktTableHeader=ui,Z.PktTableHeaderCell=qt,Z.PktTableRow=Wn,Z.PktTabs=Np,Z.PktTag=gr,Z.PktTextarea=sk,Z.PktTextinput=ho,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
602
+ `)})})]}):m.jsxs(m.Fragment,{children:[m.jsx(Ft,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),m.jsx(Ft,{dataLabel:"Type",children:m.jsx("pre",{children:i.type&&t(i.type)})}),m.jsx(Ft,{dataLabel:"Standardverdi",children:m.jsx("pre",{children:n(i.default)})})]})]},r))})]}),e.events&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Hendelser / handlinger"}),m.jsxs(li,{compact:!0,children:[m.jsx(ui,{children:m.jsxs(Wn,{children:[m.jsx(qt,{children:"Event"}),m.jsx(qt,{children:"Beskrivelse"})]})}),m.jsx(ci,{children:Object.entries(e.events||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Ft,{dataLabel:"Event",children:m.jsx("pre",{children:r})}),m.jsx(Ft,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]}),e.slots&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Innhold"}),m.jsxs(li,{compact:!0,children:[m.jsx(ui,{children:m.jsxs(Wn,{children:[m.jsx(qt,{children:"Slot"}),m.jsx(qt,{children:"Beskrivelse"})]})}),m.jsx(ci,{children:Object.entries(e.slots||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Ft,{dataLabel:"Slot",children:m.jsx("pre",{children:r})}),m.jsx(Ft,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]})]})};aa.registerLanguage("jsx",Vb);const jp=({specs:e,children:t,fullWidth:n})=>{var K,G;const r=e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).reduce((L,[N,H])=>(typeof H=="object"&&!Array.isArray(H)&&H.default!==void 0&&H.default!==null&&(H.default==="false"&&(H.default=!1),H.default==="true"&&(H.default=!0),L[N]=H.default),L),{}):{},[i,o]=M.useState(r),[u,c]=M.useState("light"),[d,h]=M.useState(""),[g,v]=M.useState(""),[D,b]=M.useState(""),[k,x]=M.useState("Rediger innhold"),[C,T]=M.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${e.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),E=L=>{L===1&&A(),L===2&&(A(),F()),b(""),T(N=>N.map((H,Q)=>({...H,active:Q===L})))},_=M.useRef(null),F=async()=>{if(e.isElement&&M.isValidElement(I))A().then(()=>{const L=M.isValidElement(I)?I.type.displayName||I.type.name:e.name;h(g.replaceAll(L,e.name||"").replaceAll("{",'"').replaceAll("}",'"'))});else{const L=await Hs(_.current.innerHTML,{parser:"html",plugins:[ey]});h(L.replace(/<\!--.*?-->/g,""))}},A=async()=>{const L=Ig(I);return v(L),Promise.resolve()},$=(L,N)=>{navigator.clipboard.writeText(N).then(()=>{b(L),console.log("Copied to clipboard",L)})},P=(L,N)=>m.jsxs("div",{className:"pkt-preview__copy",children:[D===L&&m.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),m.jsx(wn,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>$(L,N),children:"Kopier kode"})]}),I=M.isValidElement(t)&&M.cloneElement(t,{...i},t.props.children?t.props.children:(K=e.slots)!=null&&K.default?k:null),j=(L,N,H=!1)=>{if(!H&&(!N||N=="false")){const{[L]:Q,...fe}=i;o(fe)}else o(Q=>({...Q,[L]:N}))},z=(L,N)=>{if(N.type==="boolean")return m.jsx(ar,{label:N.name||L,forId:L,helptext:N.description||null,hasFieldset:!0,requiredTag:N.required,children:m.jsx(Ma,{id:L,label:L,type:"checkbox",checked:i[L],onChange:H=>j(L,H.target.checked,N.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(N.type==="icon")return m.jsxs(po,{label:N.name||L,helptext:N.description||null,id:L,value:i[L],onChange:H=>j(L,H.target.value),requiredTag:N.required,children:[m.jsx("option",{value:""}),Gb.map(H=>m.jsx("option",{value:H.id,children:H.id},H.id))]});if(Array.isArray(N)||Array.isArray(N.type)||Array.isArray(N.values)){const H=Array.isArray(N)?N:N.values||N.type;return m.jsxs(po,{label:N.name||L,helptext:N.description||null,id:L,value:i[L],onChange:Q=>j(L,Q.target.value),requiredTag:N.required,children:[m.jsx("option",{value:""}),H.map(Q=>m.jsx("option",{value:Q,children:Q},Q))]})}else return N.type==="ISOdatestring"?m.jsx(Xl,{id:L,label:N.name||L,helptext:N.description||null,value:i[L],multiple:N.variant==="multiple",maxlength:999,onChange:H=>j(L,H.target.value),requiredTag:N.required}):m.jsx(ho,{id:L,label:N.name||L,helptext:N.description||null,type:"text",value:i[L],onChange:H=>j(L,N.type==="number"?parseFloat(H.currentTarget.value):H.currentTarget.value),requiredTag:N.required})};return m.jsxs("div",{className:"pkt-preview",children:[m.jsxs("div",{className:"pkt-preview__component-container","data-mode":u,children:[e["dark-mode"]&&m.jsx("div",{className:"pkt-preview__mode",children:m.jsx(Ma,{id:"mode",label:"Dark mode",type:"checkbox",checked:u==="dark",onChange:L=>c(L.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),m.jsx("div",{className:`pkt-preview__component ${n&&"pkt-preview__component--fullwidth"}`,ref:_,children:m.jsx("div",{children:I})})]}),m.jsx(Np,{tabs:C,onTabSelected:E}),m.jsxs("div",{className:`pkt-grid pkt-preview__opts ${C[0].active?"":"pkt-hide"}`,children:[((G=e.slots)==null?void 0:G.default)&&!t.props.children&&m.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[m.jsx(gr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),m.jsx(ho,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:k,onChange:L=>x(L.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([L,N])=>m.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[m.jsx(gr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:L}),z(L,N)]},L)):m.jsx("p",{children:"OBS! Specs mangler props!"})]}),m.jsxs("div",{className:`pkt-preview__code ${C[1].active?"":"pkt-hide"}`,children:[m.jsx(aa,{language:"jsx",style:Bp,children:g}),P("jsx",g)]}),m.jsxs("div",{className:`pkt-preview__code ${C[2].active?"":"pkt-hide"}`,children:[m.jsx(aa,{language:"html",style:Bp,children:d}),P("html",d)]}),m.jsx("div",{className:`pkt-preview__specs ${C[3].active?"":"pkt-hide"}`,children:m.jsx(Yb,{specs:e})})]})};jp.displayName="PktPreview";for(var Ze=[],fo=0;fo<256;++fo)Ze.push((fo+256).toString(16).slice(1));function Kb(e,t=0){return(Ze[e[t+0]]+Ze[e[t+1]]+Ze[e[t+2]]+Ze[e[t+3]]+"-"+Ze[e[t+4]]+Ze[e[t+5]]+"-"+Ze[e[t+6]]+Ze[e[t+7]]+"-"+Ze[e[t+8]]+Ze[e[t+9]]+"-"+Ze[e[t+10]]+Ze[e[t+11]]+Ze[e[t+12]]+Ze[e[t+13]]+Ze[e[t+14]]+Ze[e[t+15]]).toLowerCase()}var pi,Jb=new Uint8Array(16);function Xb(){if(!pi&&(pi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pi(Jb)}var Qb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Pp={randomUUID:Qb};function Zb(e,t,n){if(Pp.randomUUID&&!t&&!e)return Pp.randomUUID();e=e||{};var r=e.random||(e.rng||Xb)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Kb(r)}const Lp=M.forwardRef(({valueCurrent:e,valueMin:t=0,valueMax:n=100,skin:r="dark-blue",title:i,titlePosition:o="left",statusType:u="none",statusPlacement:c="following",id:d,ariaLabel:h,ariaLabelledby:g,role:v="progressbar",className:D,ariaValueText:b,...k},x)=>{const C=M.useRef(null),[T,E]=M.useState(0),[_,F]=M.useState(d);M.useEffect(()=>{d||F(Zb())},[d]),M.useEffect(()=>{if(C.current){const N=C.current;E(N.getBoundingClientRect().width)}});const A=n-t,$=e/A*100,P=n!==100||t!==0?Math.round($):e,I=`${e} av ${n}`,j=u!=="none",z=Je("pkt-progressbar__bar",{[`pkt-progressbar__bar--${r}`]:r}),K=Je("pkt-progressbar__title",{"pkt-progressbar__title-center":o==="center"}),G=Je("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),L=Je({"pkt-progressbar__status-placement--following":c==="following","pkt-progressbar__status-placement--center":c==="center","pkt-progressbar__status-placement--left":c==="left"});return m.jsxs("div",{...k,ref:x,className:Je("pkt-progressbar__container",D),id:_,style:{"--pkt-progress-label-width":`${T}px`,"--pkt-progress-width":`${P}%`},children:[i&&m.jsx("p",{id:`${_}-title`,className:K,children:i}),m.jsx("div",{role:v,className:"pkt-progressbar__bar-wrapper","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":e,"aria-labelledby":g||i&&`${_}-title`,"aria-label":h,"aria-valuetext":b,children:m.jsx("div",{className:z})}),j&&m.jsx("div",{className:G,children:m.jsx("span",{className:L,ref:C,children:u==="percentage"?`${P}%`:I})})]})});Lp.displayName="PktProgressbar";const Op=M.forwardRef(({id:e,name:t,label:n,className:r,hasTile:i=!1,disabled:o=!1,checkHelptext:u,hasError:c=!1,...d},h)=>{const g=[r,"pkt-input-check"].filter(Boolean).join(" ");return m.jsx("div",{className:g,children:m.jsxs("div",{className:`pkt-input-check__input ${i?"pkt-input-check__input--tile":""} ${o&&i?"pkt-input-check__input--tile-disabled":""}`,children:[m.jsx("input",{ref:h,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"radio",id:e,disabled:o,name:t,...d}),m.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[n,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});Op.displayName="PktRadioButton";const ek=M.forwardRef(({appearance:e="local",disabled:t=!1,fullwidth:n=!1,id:r,label:i,name:o,placeholder:u="Søk…",suggestions:c,value:d="",action:h,method:g,onChange:v,onSearch:D,onSuggestionClick:b,...k},x)=>{const C=(F,A)=>{F?F():b&&b(A)},T=`pkt-searchinput pkt-searchinput--${e} ${n?"pkt-searchinput--fullwidth":""}`,E=i?"label":"div";let _;return h?_=F=>m.jsx("form",{role:"search",className:T,action:h,method:g,children:F}):_=F=>m.jsx("div",{role:"search",className:T,children:F}),_(m.jsxs(m.Fragment,{children:[m.jsxs(E,{htmlFor:i?r:void 0,className:i?"pkt-inputwrapper__label":"",children:[i&&m.jsx(m.Fragment,{children:i}),m.jsxs("div",{className:e==="local"?"pkt-input__container":"pkt-searchinput__field",children:[m.jsx("input",{className:`pkt-input ${n?"pkt-input--fullwidth":""}`,type:"search",name:o||r,id:r,placeholder:u,defaultValue:d,disabled:t,autoComplete:"off","aria-autocomplete":"list",ref:x,"aria-controls":`${r}-suggestions`,onChange:v,...k}),m.jsx(wn,{className:`pkt-searchinput__button ${e==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:e==="local"?"tertiary":"primary",color:e==="global"?"yellow":void 0,type:"submit",disabled:t,onClick:D&&(()=>D(d)),onKeyUp:D&&(F=>F.key==="Enter"&&D(d)),children:i||u})]})]}),c&&m.jsx("ul",{id:`${r}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:c.map((F,A)=>m.jsx("li",{children:M.createElement(F.href?"a":F.onClick?"button":"div",{href:F.href,className:`pkt-searchinput__suggestion ${F.onClick?"pkt-link-button":""} ${F.href||F.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:F.onClick?"button":void 0,onClick:()=>C(F.onClick,A),onKeyUp:()=>C(F.onClick,A)},m.jsxs(m.Fragment,{children:[F.title&&m.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:F.title}),F.text&&m.jsx("p",{className:"pkt-searchinput__suggestion-text",children:F.text})]}))},`search-suggestion-${A}`))})]}))}),tk=M.forwardRef(({activeStep:e,className:t,children:n,hideNonActiveStepsContent:r=!0,orientation:i="vertical",...o},u)=>{const c=Je(t,"pkt-stepper",i==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),d=M.Children.map(n,(h,g)=>M.isValidElement(h)?M.cloneElement(h,{className:Je(h.props.className,{"pkt-step--hidden":r&&g!==e})}):h);return m.jsx("ol",{"data-testid":"pkt-stepper",className:c,ref:u,...o,children:d})}),nk=m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:m.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),rk=m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[m.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),m.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),ak=m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[m.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),m.jsx("path",{d:"m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z",fill:"#F1FDFF"})]}),ik=({children:e,className:t,status:n="incomplete",title:r})=>m.jsxs("li",{className:Je("pkt-step",t,`pkt-step--${n}`),"data-testid":"pkt-step",children:[m.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),m.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),m.jsx("span",{className:Je("pkt-step__indicator"),children:n==="current"?rk:n==="completed"?ak:nk}),m.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),m.jsxs("div",{className:"pkt-step__wrapper",children:[m.jsx("div",{className:"pkt-step__title",children:r}),m.jsx("div",{className:"pkt-step__content",children:e})]})]}),sk=M.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,counter:r,counterMaxLength:i,className:o,disabled:u,errorMessage:c,hasError:d,helptext:h,helptextDropdown:g,helptextDropdownButton:v,inline:D,fullwidth:b=!1,label:k,name:x,optionalTag:C=!1,optionalText:T,requiredTag:E=!1,requiredText:_,placeholder:F,rows:A,useWrapper:$=!0,onChange:P,...I},j)=>{const z=[o,"pkt-textinput","pkt-textarea"].join(" "),K=n||`${e}-label`,G=M.useRef(null),[L,N]=M.useState(0),H=Q=>{var fe,ee;if(r&&N(((ee=(fe=Q.currentTarget)==null?void 0:fe.value)==null?void 0:ee.length)||0),P)return P(Q)};return M.useEffect(()=>{var Q,fe;typeof j=="function"&&j(G.current),r&&N(((fe=(Q=G==null?void 0:G.current)==null?void 0:Q.value)==null?void 0:fe.length)||0)},[j]),m.jsx(ar,{ariaDescribedby:t,className:z,disabled:u,errorMessage:c,forId:e,hasError:d,helptext:h,helptextDropdown:g,helptextDropdownButton:v,inline:D,label:k,optionalTag:C,optionalText:T,requiredTag:E,requiredText:_,useWrapper:$,counter:r,counterCurrent:L,counterMaxLength:i,children:m.jsx("textarea",{ref:G,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&L>i?"pkt-input--counter-error":""}`,name:x||e,id:e,placeholder:F,disabled:u,rows:A,"aria-labelledby":K,"aria-invalid":d,"aria-errormessage":`${e}-error`,...I,onChange:H})})});Z.PktAccordion=th,Z.PktAccordionItem=oh,Z.PktAlert=Wi,Z.PktBackLink=rl,Z.PktBreadcrumbs=lh,Z.PktButton=wn,Z.PktCard=Jl,Z.PktCheckbox=Ma,Z.PktDatepicker=Xl,Z.PktFooter=Wm,Z.PktFooterSimple=zm,Z.PktHeader=Vm,Z.PktIcon=ne,Z.PktIconContext=tl,Z.PktInput=Ql,Z.PktInputWrapper=ar,Z.PktLink=Zl,Z.PktLinkCard=eu,Z.PktLoader=tu,Z.PktMessagebox=nu,Z.PktPreview=jp,Z.PktProgressbar=Lp,Z.PktRadioButton=Op,Z.PktSearchInput=ek,Z.PktSelect=po,Z.PktStep=ik,Z.PktStepper=tk,Z.PktTable=li,Z.PktTableBody=ci,Z.PktTableDataCell=Ft,Z.PktTableHeader=ui,Z.PktTableHeaderCell=qt,Z.PktTableRow=Wn,Z.PktTabs=Np,Z.PktTag=gr,Z.PktTextarea=sk,Z.PktTextinput=ho,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});