@oslokommune/punkt-react 12.14.2 → 12.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/punkt-react.es.js +1273 -1273
- package/dist/punkt-react.umd.js +134 -134
- package/package.json +4 -4
- package/src/components/preview/Preview.tsx +3 -1
- package/src/components/preview/PreviewPropEditor.tsx +2 -2
- package/src/components/preview/PreviewSpecs.tsx +2 -2
package/dist/punkt-react.umd.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
return [];
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
(function(
|
|
36
|
+
(function(ie,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],R):(ie=typeof globalThis<"u"?globalThis:ie||self,R(ie["punkt-react"]={},ie.React,ie.reactRouterDom))})(this,function(ie,R,Un){"use strict";var vx=Object.defineProperty;var yx=(ie,R,Un)=>R in ie?vx(ie,R,{enumerable:!0,configurable:!0,writable:!0,value:Un}):ie[R]=Un;var Kr=(ie,R,Un)=>yx(ie,typeof R!="symbol"?R+"":R,Un);function Eh(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 Fh(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 Ah=Eh(R);var En=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Za(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hs={exports:{}},Zr={};/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.production.min.js
|
|
39
39
|
*
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the MIT license found in the
|
|
51
51
|
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var xl;function Th(){return xl||(xl=1,process.env.NODE_ENV!=="production"&&function(){var e=R,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),k=Symbol.iterator,
|
|
53
|
-
`+
|
|
54
|
-
`),mt=
|
|
55
|
-
`),Ue=
|
|
56
|
-
`+
|
|
52
|
+
*/var xl;function Th(){return xl||(xl=1,process.env.NODE_ENV!=="production"&&function(){var e=R,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),k=Symbol.iterator,x="@@iterator";function C(w){if(w===null||typeof w!="object")return null;var U=k&&w[k]||w[x];return typeof U=="function"?U:null}var N=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(w){{for(var U=arguments.length,G=new Array(U>1?U-1:0),se=1;se<U;se++)G[se-1]=arguments[se];E("error",w,G)}}function E(w,U,G){{var se=N.ReactDebugCurrentFrame,_e=se.getStackAddendum();_e!==""&&(U+="%s",G=G.concat([_e]));var Se=G.map(function(Ce){return String(Ce)});Se.unshift("Warning: "+U),Function.prototype.apply.call(console[w],console,Se)}}var $=!1,S=!1,T=!1,M=!1,H=!1,O;O=Symbol.for("react.module.reference");function z(w){return!!(typeof w=="string"||typeof w=="function"||w===r||w===o||H||w===i||w===h||w===m||M||w===b||$||S||T||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===v||w.$$typeof===u||w.$$typeof===c||w.$$typeof===p||w.$$typeof===O||w.getModuleId!==void 0))}function te(w,U,G){var se=w.displayName;if(se)return se;var _e=U.displayName||U.name||"";return _e!==""?G+"("+_e+")":G}function Z(w){return w.displayName||"Context"}function W(w){if(w==null)return null;if(typeof w.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case c:var U=w;return Z(U)+".Consumer";case u:var G=w;return Z(G._context)+".Provider";case p:return te(w,w.render,"ForwardRef");case v:var se=w.displayName||null;return se!==null?se:W(w.type)||"Memo";case y:{var _e=w,Se=_e._payload,Ce=_e._init;try{return W(Ce(Se))}catch{return null}}}return null}var I=Object.assign,J=0,ee,de,re,pe,De,le,ue;function nt(){}nt.__reactDisabledLog=!0;function Oe(){{if(J===0){ee=console.log,de=console.info,re=console.warn,pe=console.error,De=console.group,le=console.groupCollapsed,ue=console.groupEnd;var w={configurable:!0,enumerable:!0,value:nt,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}J++}}function Ee(){{if(J--,J===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},w,{value:ee}),info:I({},w,{value:de}),warn:I({},w,{value:re}),error:I({},w,{value:pe}),group:I({},w,{value:De}),groupCollapsed:I({},w,{value:le}),groupEnd:I({},w,{value:ue})})}J<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Re=N.ReactCurrentDispatcher,he;function Dt(w,U,G){{if(he===void 0)try{throw Error()}catch(_e){var se=_e.stack.trim().match(/\n( *(at )?)/);he=se&&se[1]||""}return`
|
|
53
|
+
`+he+w}}var jt=!1,ht;{var bt=typeof WeakMap=="function"?WeakMap:Map;ht=new bt}function zt(w,U){if(!w||jt)return"";{var G=ht.get(w);if(G!==void 0)return G}var se;jt=!0;var _e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Se;Se=Re.current,Re.current=null,Oe();try{if(U){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(Ct){se=Ct}Reflect.construct(w,[],Ce)}else{try{Ce.call()}catch(Ct){se=Ct}w.call(Ce.prototype)}}else{try{throw Error()}catch(Ct){se=Ct}w()}}catch(Ct){if(Ct&&se&&typeof Ct.stack=="string"){for(var ge=Ct.stack.split(`
|
|
54
|
+
`),mt=se.stack.split(`
|
|
55
|
+
`),Ue=ge.length-1,qe=mt.length-1;Ue>=1&&qe>=0&&ge[Ue]!==mt[qe];)qe--;for(;Ue>=1&&qe>=0;Ue--,qe--)if(ge[Ue]!==mt[qe]){if(Ue!==1||qe!==1)do if(Ue--,qe--,qe<0||ge[Ue]!==mt[qe]){var Lt=`
|
|
56
|
+
`+ge[Ue].replace(" at new "," at ");return w.displayName&&Lt.includes("<anonymous>")&&(Lt=Lt.replace("<anonymous>",w.displayName)),typeof w=="function"&&ht.set(w,Lt),Lt}while(Ue>=1&&qe>=0);break}}}finally{jt=!1,Re.current=Se,Ee(),Error.prepareStackTrace=_e}var at=w?w.displayName||w.name:"",gt=at?Dt(at):"";return typeof w=="function"&&ht.set(w,gt),gt}function kt(w,U,G){return zt(w,!1)}function ne(w){var U=w.prototype;return!!(U&&U.isReactComponent)}function wt(w,U,G){if(w==null)return"";if(typeof w=="function")return zt(w,ne(w));if(typeof w=="string")return Dt(w);switch(w){case h:return Dt("Suspense");case m:return Dt("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case p:return kt(w.render);case v:return wt(w.type,U,G);case y:{var se=w,_e=se._payload,Se=se._init;try{return wt(Se(_e),U,G)}catch{}}}return""}var Fe=Object.prototype.hasOwnProperty,He={},Ne=N.ReactDebugCurrentFrame;function In(w){if(w){var U=w._owner,G=wt(w.type,w._source,U?U.type:null);Ne.setExtraStackFrame(G)}else Ne.setExtraStackFrame(null)}function Xt(w,U,G,se,_e){{var Se=Function.call.bind(Fe);for(var Ce in w)if(Se(w,Ce)){var ge=void 0;try{if(typeof w[Ce]!="function"){var mt=Error((se||"React class")+": "+G+" type `"+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[Ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw mt.name="Invariant Violation",mt}ge=w[Ce](U,Ce,se,G,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ue){ge=Ue}ge&&!(ge instanceof Error)&&(In(_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).",se||"React class",G,Ce,typeof ge),In(null)),ge instanceof Error&&!(ge.message in He)&&(He[ge.message]=!0,In(_e),_("Failed %s type: %s",G,ge.message),In(null))}}}var Hr=Array.isArray;function Rt(w){return Hr(w)}function Rn(w){{var U=typeof Symbol=="function"&&Symbol.toStringTag,G=U&&w[Symbol.toStringTag]||w.constructor.name||"Object";return G}}function P(w){try{return A(w),!1}catch{return!0}}function A(w){return""+w}function B(w){if(P(w))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rn(w)),A(w)}var q=N.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0},fe,me,rt;rt={};function Ae(w){if(Fe.call(w,"ref")){var U=Object.getOwnPropertyDescriptor(w,"ref").get;if(U&&U.isReactWarning)return!1}return w.ref!==void 0}function ft(w){if(Fe.call(w,"key")){var U=Object.getOwnPropertyDescriptor(w,"key").get;if(U&&U.isReactWarning)return!1}return w.key!==void 0}function Sn(w,U){if(typeof w.ref=="string"&&q.current&&U&&q.current.stateNode!==U){var G=W(q.current.type);rt[G]||(_('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',W(q.current.type),w.ref),rt[G]=!0)}}function fr(w,U){{var G=function(){fe||(fe=!0,_("%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)",U))};G.isReactWarning=!0,Object.defineProperty(w,"key",{get:G,configurable:!0})}}function Vo(w,U){{var G=function(){me||(me=!0,_("%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)",U))};G.isReactWarning=!0,Object.defineProperty(w,"ref",{get:G,configurable:!0})}}var Wt=function(w,U,G,se,_e,Se,Ce){var ge={$$typeof:t,type:w,key:U,ref:G,props:Ce,_owner:Se};return ge._store={},Object.defineProperty(ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.defineProperty(ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.freeze&&(Object.freeze(ge.props),Object.freeze(ge)),ge};function zo(w,U,G,se,_e){{var Se,Ce={},ge=null,mt=null;G!==void 0&&(B(G),ge=""+G),ft(U)&&(B(U.key),ge=""+U.key),Ae(U)&&(mt=U.ref,Sn(U,_e));for(Se in U)Fe.call(U,Se)&&!oe.hasOwnProperty(Se)&&(Ce[Se]=U[Se]);if(w&&w.defaultProps){var Ue=w.defaultProps;for(Se in Ue)Ce[Se]===void 0&&(Ce[Se]=Ue[Se])}if(ge||mt){var qe=typeof w=="function"?w.displayName||w.name||"Unknown":w;ge&&fr(Ce,qe),mt&&Vo(Ce,qe)}return Wt(w,ge,mt,_e,se,q.current,Ce)}}var Na=N.ReactCurrentOwner,Hi=N.ReactDebugCurrentFrame;function Qt(w){if(w){var U=w._owner,G=wt(w.type,w._source,U?U.type:null);Hi.setExtraStackFrame(G)}else Hi.setExtraStackFrame(null)}var Ba;Ba=!1;function ja(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function La(){{if(Na.current){var w=W(Na.current.type);if(w)return`
|
|
57
57
|
|
|
58
58
|
Check the render method of \``+w+"`."}return""}}function Wo(w){return""}var Ui={};function Go(w){{var U=La();if(!U){var G=typeof w=="string"?w:w.displayName||w.name;G&&(U=`
|
|
59
59
|
|
|
60
|
-
Check the top-level render call using <`+G+">.")}return U}}function mr(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var G=Go(U);if(Ui[G])return;Ui[G]=!0;var
|
|
60
|
+
Check the top-level render call using <`+G+">.")}return U}}function mr(w,U){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var G=Go(U);if(Ui[G])return;Ui[G]=!0;var se="";w&&w._owner&&w._owner!==Na.current&&(se=" It was passed a child from "+W(w._owner.type)+"."),Qt(w),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',G,se),Qt(null)}}function _n(w,U){{if(typeof w!="object")return;if(Rt(w))for(var G=0;G<w.length;G++){var se=w[G];ja(se)&&mr(se,U)}else if(ja(w))w._store&&(w._store.validated=!0);else if(w){var _e=C(w);if(typeof _e=="function"&&_e!==w.entries)for(var Se=_e.call(w),Ce;!(Ce=Se.next()).done;)ja(Ce.value)&&mr(Ce.value,U)}}}function qt(w){{var U=w.type;if(U==null||typeof U=="string")return;var G;if(typeof U=="function")G=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===p||U.$$typeof===v))G=U.propTypes;else return;if(G){var se=W(U);Xt(G,w.props,"prop",se,w)}else if(U.PropTypes!==void 0&&!Ba){Ba=!0;var _e=W(U);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_e||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yo(w){{for(var U=Object.keys(w.props),G=0;G<U.length;G++){var se=U[G];if(se!=="children"&&se!=="key"){Qt(w),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",se),Qt(null);break}}w.ref!==null&&(Qt(w),_("Invalid attribute `ref` supplied to `React.Fragment`."),Qt(null))}}var Vi={};function zi(w,U,G,se,_e,Se){{var Ce=z(w);if(!Ce){var ge="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(ge+=" 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 mt=Wo();mt?ge+=mt:ge+=La();var Ue;w===null?Ue="null":Rt(w)?Ue="array":w!==void 0&&w.$$typeof===t?(Ue="<"+(W(w.type)||"Unknown")+" />",ge=" Did you accidentally export a JSX literal instead of a component?"):Ue=typeof w,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ue,ge)}var qe=zo(w,U,G,_e,Se);if(qe==null)return qe;if(Ce){var Lt=U.children;if(Lt!==void 0)if(se)if(Rt(Lt)){for(var at=0;at<Lt.length;at++)_n(Lt[at],w);Object.freeze&&Object.freeze(Lt)}else _("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 _n(Lt,w)}if(Fe.call(U,"key")){var gt=W(w),Ct=Object.keys(U).filter(function(Zo){return Zo!=="key"}),Pa=Ct.length>0?"{key: someKey, "+Ct.join(": ..., ")+": ...}":"{key: someKey}";if(!Vi[gt+Pa]){var Gi=Ct.length>0?"{"+Ct.join(": ..., ")+": ...}":"{}";_(`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:
|
|
@@ -66,13 +66,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2018 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/const Bh=new Set(["children","localName","ref","style","className"]),Sl=new WeakMap,_l=(e,t,n,r,i)=>{const o=i==null?void 0:i[t];o===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((u,c,p)=>{let h=Sl.get(u);h===void 0&&Sl.set(u,h=new Map);let m=h.get(c);p!==void 0?m===void 0?(h.set(c,m={handleEvent:p}),u.addEventListener(c,m)):m.handleEvent=p:m!==void 0&&(h.delete(c),u.removeEventListener(c,m))})(e,o,n)},on=({react:e,tagName:t,elementClass:n,events:r,displayName:i})=>{const o=new Set(Object.keys(r??{})),u=e.forwardRef((c,p)=>{const h=e.useRef(new Map),m=e.useRef(null),v={},y={};for(const[b,k]of Object.entries(c))Bh.has(b)?v[b==="className"?"class":b]=k:o.has(b)||b in n.prototype?y[b]=k:v[b]=k;return e.useLayoutEffect(()=>{if(m.current===null)return;const b=new Map;for(const k in y)_l(m.current,k,c[k],h.current.get(k),r),h.current.delete(k),b.set(k,c[k]);for(const[k,
|
|
69
|
+
*/const Bh=new Set(["children","localName","ref","style","className"]),Sl=new WeakMap,_l=(e,t,n,r,i)=>{const o=i==null?void 0:i[t];o===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((u,c,p)=>{let h=Sl.get(u);h===void 0&&Sl.set(u,h=new Map);let m=h.get(c);p!==void 0?m===void 0?(h.set(c,m={handleEvent:p}),u.addEventListener(c,m)):m.handleEvent=p:m!==void 0&&(h.delete(c),u.removeEventListener(c,m))})(e,o,n)},on=({react:e,tagName:t,elementClass:n,events:r,displayName:i})=>{const o=new Set(Object.keys(r??{})),u=e.forwardRef((c,p)=>{const h=e.useRef(new Map),m=e.useRef(null),v={},y={};for(const[b,k]of Object.entries(c))Bh.has(b)?v[b==="className"?"class":b]=k:o.has(b)||b in n.prototype?y[b]=k:v[b]=k;return e.useLayoutEffect(()=>{if(m.current===null)return;const b=new Map;for(const k in y)_l(m.current,k,c[k],h.current.get(k),r),h.current.delete(k),b.set(k,c[k]);for(const[k,x]of h.current)_l(m.current,k,void 0,x,r);h.current=b}),e.useLayoutEffect(()=>{var b;(b=m.current)==null||b.removeAttribute("defer-hydration")},[]),v.suppressHydrationWarning=!0,e.createElement(t,{...v,ref:e.useCallback(b=>{m.current=b,typeof p=="function"?p(b):p!==null&&(p.current=b)},[p])})});return u.displayName=i??n.name,u};/**
|
|
70
70
|
* @license
|
|
71
71
|
* Copyright 2017 Google LLC
|
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
73
|
*/const Xa=globalThis,Qa=Xa.trustedTypes,El=Qa?Qa.createPolicy("lit-html",{createHTML:e=>e}):void 0,fs="$lit$",ln=`lit$${Math.random().toFixed(9).slice(2)}$`,ms="?"+ln,jh=`<${ms}>`,Vn=document,Qr=()=>Vn.createComment(""),ea=e=>e===null||typeof e!="object"&&typeof e!="function",gs=Array.isArray,Fl=e=>gs(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",vs=`[
|
|
74
74
|
\f\r]`,ta=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Al=/-->/g,$l=/>/g,zn=RegExp(`>|${vs}(?:([^\\s"'>=/]+)(${vs}*=${vs}*(?:[^
|
|
75
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tl=/'/g,Nl=/"/g,Bl=/^(?:script|style|textarea|title)$/i,Lh=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),
|
|
75
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tl=/'/g,Nl=/"/g,Bl=/^(?:script|style|textarea|title)$/i,Lh=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),Y=Lh(1),un=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),jl=new WeakMap,Wn=Vn.createTreeWalker(Vn,129);function Ll(e,t){if(!gs(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return El!==void 0?El.createHTML(t):t}const Pl=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",u=ta;for(let c=0;c<n;c++){const p=e[c];let h,m,v=-1,y=0;for(;y<p.length&&(u.lastIndex=y,m=u.exec(p),m!==null);)y=u.lastIndex,u===ta?m[1]==="!--"?u=Al:m[1]!==void 0?u=$l:m[2]!==void 0?(Bl.test(m[2])&&(i=RegExp("</"+m[2],"g")),u=zn):m[3]!==void 0&&(u=zn):u===zn?m[0]===">"?(u=i??ta,v=-1):m[1]===void 0?v=-2:(v=u.lastIndex-m[2].length,h=m[1],u=m[3]===void 0?zn:m[3]==='"'?Nl:Tl):u===Nl||u===Tl?u=zn:u===Al||u===$l?u=ta:(u=zn,i=void 0);const b=u===zn&&e[c+1].startsWith("/>")?" ":"";o+=u===ta?p+jh:v>=0?(r.push(h),p.slice(0,v)+fs+p.slice(v)+ln+b):p+ln+(v===-2?c:b)}return[Ll(e,o+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let ys=class kh{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let o=0,u=0;const c=t.length-1,p=this.parts,[h,m]=Pl(t,n);if(this.el=kh.createElement(h,r),Wn.currentNode=this.el.content,n===2||n===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=Wn.nextNode())!==null&&p.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(fs)){const y=m[u++],b=i.getAttribute(v).split(ln),k=/([.?@])?(.*)/.exec(y);p.push({type:1,index:o,name:k[2],strings:b,ctor:k[1]==="."?Ml:k[1]==="?"?Il:k[1]==="@"?Rl:na}),i.removeAttribute(v)}else v.startsWith(ln)&&(p.push({type:6,index:o}),i.removeAttribute(v));if(Bl.test(i.tagName)){const v=i.textContent.split(ln),y=v.length-1;if(y>0){i.textContent=Qa?Qa.emptyScript:"";for(let b=0;b<y;b++)i.append(v[b],Qr()),Wn.nextNode(),p.push({type:2,index:++o});i.append(v[y],Qr())}}}else if(i.nodeType===8)if(i.data===ms)p.push({type:2,index:o});else{let v=-1;for(;(v=i.data.indexOf(ln,v+1))!==-1;)p.push({type:7,index:o}),v+=ln.length-1}o++}}static createElement(t,n){const r=Vn.createElement("template");return r.innerHTML=t,r}};function Gn(e,t,n=e,r){var i,o;if(t===un)return t;let u=r!==void 0?(i=n._$Co)==null?void 0:i[r]:n._$Cl;const c=ea(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._$Co??(n._$Co=[]))[r]=u:n._$Cl=u),u!==void 0&&(t=Gn(e,u._$AS(e,t.values),u,r)),t}let Ol=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)??Vn).importNode(n,!0);Wn.currentNode=i;let o=Wn.nextNode(),u=0,c=0,p=r[0];for(;p!==void 0;){if(u===p.index){let h;p.type===2?h=new ei(o,o.nextSibling,this,t):p.type===1?h=new p.ctor(o,p.name,p.strings,this,t):p.type===6&&(h=new ql(o,this,t)),this._$AV.push(h),p=r[++c]}u!==(p==null?void 0:p.index)&&(o=Wn.nextNode(),u++)}return Wn.currentNode=Vn,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++}},ei=class wh{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,n,r,i){this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this._$Cv=(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=Gn(this,t,n),ea(t)?t===ae||t==null||t===""?(this._$AH!==ae&&this._$AR(),this._$AH=ae):t!==this._$AH&&t!==un&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Fl(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!==ae&&ea(this._$AH)?this._$AA.nextSibling.data=t:this.T(Vn.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=ys.createElement(Ll(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 Ol(o,this),c=u.u(this.options);u.p(r),this.T(c),this._$AH=u}}_$AC(t){let n=jl.get(t.strings);return n===void 0&&jl.set(t.strings,n=new ys(t)),n}k(t){gs(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 wh(this.O(Qr()),this.O(Qr()),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._$Cv=t,(n=this._$AP)==null||n.call(this,t))}},na=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,r,i,o){this.type=1,this._$AH=ae,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=ae}_$AI(t,n=this,r,i){const o=this.strings;let u=!1;if(o===void 0)t=Gn(this,t,n,0),u=!ea(t)||t!==this._$AH&&t!==un,u&&(this._$AH=t);else{const c=t;let p,h;for(t=o[0],p=0;p<o.length-1;p++)h=Gn(this,c[r+p],n,p),h===un&&(h=this._$AH[p]),u||(u=!ea(h)||h!==this._$AH[p]),h===ae?t=ae:t!==ae&&(t+=(h??"")+o[p+1]),this._$AH[p]=h}u&&!i&&this.j(t)}j(t){t===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ml=class extends na{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ae?void 0:t}},Il=class extends na{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ae)}},Rl=class extends na{constructor(t,n,r,i,o){super(t,n,r,i,o),this.type=5}_$AI(t,n=this){if((t=Gn(this,t,n,0)??ae)===un)return;const r=this._$AH,i=t===ae&&r!==ae||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==ae&&(r===ae||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)}},ql=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){Gn(this,t)}};const Ph={M:fs,P:ln,A:ms,C:1,L:Pl,R:Ol,D:Fl,V:Gn,I:ei,H:na,N:Il,U:Rl,B:Ml,F:ql},Hl=Xa.litHtmlPolyfillSupport;Hl==null||Hl(ys,ei),(Xa.litHtmlVersions??(Xa.litHtmlVersions=[])).push("3.2.1");const Oh=(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 ei(t.insertBefore(Qr(),o),o,void 0,n??{})}return i._$AI(e),i};/**
|
|
76
76
|
* @license
|
|
77
77
|
* Copyright 2019 Google LLC
|
|
78
78
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -92,7 +92,7 @@ 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
|
-
*/let aa=class extends kr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const n=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=n.firstChild),n}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Oh(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return un}};var Jl;aa._$litElement$=!0,aa.finalized=!0,(Jl=globalThis.litElementHydrateSupport)==null||Jl.call(globalThis,{LitElement:aa});const Kl=globalThis.litElementPolyfillSupport;Kl==null||Kl({LitElement:aa}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");for(var ut=[],ks=0;ks<256;++ks)ut.push((ks+256).toString(16).slice(1));function Kh(e,t=0){return(ut[e[t+0]]+ut[e[t+1]]+ut[e[t+2]]+ut[e[t+3]]+"-"+ut[e[t+4]]+ut[e[t+5]]+"-"+ut[e[t+6]]+ut[e[t+7]]+"-"+ut[e[t+8]]+ut[e[t+9]]+"-"+ut[e[t+10]]+ut[e[t+11]]+ut[e[t+12]]+ut[e[t+13]]+ut[e[t+14]]+ut[e[t+15]]).toLowerCase()}var ri,Zh=new Uint8Array(16);function Xh(){if(!ri&&(ri=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ri))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ri(Zh)}var Qh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Zl={randomUUID:Qh};function ws(e,t,n){if(Zl.randomUUID&&!t&&!e)return Zl.randomUUID();e=e||{};var r=e.random||(e.rng||Xh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Kh(r)}const ef={hi:"Hei!"},tf={from:"Fra",to:"Til"},nf={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},rf={month:"Måned",year:"År",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"},af={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."}},Gt={example:ef,generic:tf,calendar:nf,dates:rf,forms:af},sf="pkt-inputwrapper",of={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},lf={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 feltet</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}},Ft={name:sf,"css-class":"pkt-inputwrapper",events:of,props:lf};(function(){(function(e){const t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,o=new WeakMap,u=new WeakMap,c=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,k=new WeakMap,S=new WeakMap,C={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},N=(P,A)=>{for(let B in C){A[B]=null;let q=null;const se=C[B];Object.defineProperty(A,B,{get(){return q},set(he){q=he,P.isConnected?P.setAttribute(se,he):m.set(P,A)}})}};function E(P){const A=i.get(P),{form:B}=A;ye(P,B,A),H(P,A.labels)}const _=(P,A=!1)=>{const B=document.createTreeWalker(P,NodeFilter.SHOW_ELEMENT,{acceptNode(he){return i.has(he)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let q=B.nextNode();const se=!A||P.disabled;for(;q;)q.formDisabledCallback&&se&&Y(q,P.disabled),q=B.nextNode()},$={attributes:!0,attributeFilter:["disabled","name"]},x=Ee()?new MutationObserver(P=>{for(const A of P){const B=A.target;if(A.attributeName==="disabled"&&(B.constructor.formAssociated?Y(B,B.hasAttribute("disabled")):B.localName==="fieldset"&&_(B)),A.attributeName==="name"&&B.constructor.formAssociated){const q=i.get(B),se=h.get(B);q.setFormValue(se)}}}):{};function T(P){P.forEach(A=>{const{addedNodes:B,removedNodes:q}=A,se=Array.from(B),he=Array.from(q);se.forEach(fe=>{var rt;if(i.has(fe)&&fe.constructor.formAssociated&&E(fe),m.has(fe)){const Ae=m.get(fe);Object.keys(C).filter(ft=>Ae[ft]!==null).forEach(ft=>{fe.setAttribute(C[ft],Ae[ft])}),m.delete(fe)}if(S.has(fe)){const Ae=S.get(fe);fe.setAttribute("internals-valid",Ae.validity.valid.toString()),fe.setAttribute("internals-invalid",(!Ae.validity.valid).toString()),fe.setAttribute("aria-invalid",(!Ae.validity.valid).toString()),S.delete(fe)}if(fe.localName==="form"){const Ae=p.get(fe),ft=document.createTreeWalker(fe,NodeFilter.SHOW_ELEMENT,{acceptNode(fr){return i.has(fr)&&fr.constructor.formAssociated&&!(Ae&&Ae.has(fr))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let Sn=ft.nextNode();for(;Sn;)E(Sn),Sn=ft.nextNode()}fe.localName==="fieldset"&&((rt=x.observe)===null||rt===void 0||rt.call(x,fe,$),_(fe,!0))}),he.forEach(fe=>{const rt=i.get(fe);rt&&r.get(rt)&&ee(rt),c.has(fe)&&c.get(fe).disconnect()})})}function O(P){P.forEach(A=>{const{removedNodes:B}=A;B.forEach(q=>{const se=b.get(A.target);i.has(q)&&Oe(q),se.disconnect()})})}const I=P=>{var A,B;const q=new MutationObserver(O);!((A=window==null?void 0:window.ShadyDOM)===null||A===void 0)&&A.inUse&&P.mode&&P.host&&(P=P.host),(B=q.observe)===null||B===void 0||B.call(q,P,{childList:!0}),b.set(P,q)};Ee()&&new MutationObserver(T);const M={childList:!0,subtree:!0},Y=(P,A)=>{P.toggleAttribute("internals-disabled",A),A?P.setAttribute("aria-disabled","true"):P.removeAttribute("aria-disabled"),P.formDisabledCallback&&P.formDisabledCallback.apply(P,[A])},ee=P=>{r.get(P).forEach(A=>{A.remove()}),r.set(P,[])},V=(P,A)=>{const B=document.createElement("input");return B.type="hidden",B.name=P.getAttribute("name"),P.after(B),r.get(A).push(B),B},z=(P,A)=>{var B;r.set(A,[]),(B=x.observe)===null||B===void 0||B.call(x,P,$)},H=(P,A)=>{if(A.length){Array.from(A).forEach(q=>q.addEventListener("click",P.click.bind(P)));let B=A[0].id;A[0].id||(B=`${A[0].htmlFor}_Label`,A[0].id=B),P.setAttribute("aria-labelledby",B)}},X=P=>{const A=Array.from(P.elements).filter(he=>!he.tagName.includes("-")&&he.validity).map(he=>he.validity.valid),B=p.get(P)||[],q=Array.from(B).filter(he=>he.isConnected).map(he=>i.get(he).validity.valid),se=[...A,...q].includes(!1);P.toggleAttribute("internals-invalid",se),P.toggleAttribute("internals-valid",!se)},oe=P=>{X(le(P.target))},Ce=P=>{X(le(P.target))},re=P=>{const A=["button[type=submit]","input[type=submit]","button:not([type])"].map(B=>`${B}:not([disabled])`).map(B=>`${B}:not([form])${P.id?`,${B}[form='${P.id}']`:""}`).join(",");P.addEventListener("click",B=>{if(B.target.closest(A)){const q=p.get(P);if(P.noValidate)return;q.size&&Array.from(q).reverse().map(se=>i.get(se).reportValidity()).includes(!1)&&B.preventDefault()}})},de=P=>{const A=p.get(P.target);A&&A.size&&A.forEach(B=>{B.constructor.formAssociated&&B.formResetCallback&&B.formResetCallback.apply(B)})},ye=(P,A,B)=>{if(A){const q=p.get(A);if(q)q.add(P);else{const se=new Set;se.add(P),p.set(A,se),re(A),A.addEventListener("reset",de),A.addEventListener("input",oe),A.addEventListener("change",Ce)}u.set(A,{ref:P,internals:B}),P.constructor.formAssociated&&P.formAssociatedCallback&&setTimeout(()=>{P.formAssociatedCallback.apply(P,[A])},0),X(A)}},le=P=>{let A=P.parentNode;return A&&A.tagName!=="FORM"&&(A=le(A)),A},ue=(P,A,B=DOMException)=>{if(!P.constructor.formAssociated)throw new B(A)},nt=(P,A,B)=>{const q=p.get(P);return q&&q.size&&q.forEach(se=>{i.get(se)[B]()||(A=!1)}),A},Oe=P=>{if(P.constructor.formAssociated){const A=i.get(P),{labels:B,form:q}=A;H(P,B),ye(P,q,A)}};function Ee(){return typeof MutationObserver<"u"}class Re{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const pe=P=>(P.badInput=!1,P.customError=!1,P.patternMismatch=!1,P.rangeOverflow=!1,P.rangeUnderflow=!1,P.stepMismatch=!1,P.tooLong=!1,P.tooShort=!1,P.typeMismatch=!1,P.valid=!0,P.valueMissing=!1,P),Dt=(P,A,B)=>(P.valid=jt(A),Object.keys(A).forEach(q=>P[q]=A[q]),B&&X(B),P),jt=P=>{let A=!0;for(let B in P)B!=="valid"&&P[B]!==!1&&(A=!1);return A},ht=new WeakMap;function bt(P,A){P.toggleAttribute(A,!0),P.part&&P.part.add(A)}class zt extends Set{static get isPolyfilled(){return!0}constructor(A){if(super(),!A||!A.tagName||A.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");ht.set(this,A)}add(A){if(!/^--/.test(A)||typeof A!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${A} must start with '--'.`);const B=super.add(A),q=ht.get(this),se=`state${A}`;return q.isConnected?bt(q,se):setTimeout(()=>{bt(q,se)}),B}clear(){for(let[A]of this.entries())this.delete(A);super.clear()}delete(A){const B=super.delete(A),q=ht.get(this);return q.isConnected?(q.toggleAttribute(`state${A}`,!1),q.part&&q.part.remove(`state${A}`)):setTimeout(()=>{q.toggleAttribute(`state${A}`,!1),q.part&&q.part.remove(`state${A}`)}),B}}function kt(P,A,B,q){if(B==="a"&&!q)throw new TypeError("Private accessor was defined without a getter");if(typeof A=="function"?P!==A||!q:!A.has(P))throw new TypeError("Cannot read private member from an object whose class did not declare it");return B==="m"?q:B==="a"?q.call(P):q?q.value:A.get(P)}function te(P,A,B,q,se){if(typeof A=="function"?P!==A||!se:!A.has(P))throw new TypeError("Cannot write private member to an object whose class did not declare it");return A.set(P,B),B}var wt;class Fe{constructor(A){wt.set(this,void 0),te(this,wt,A);for(let B=0;B<A.length;B++){let q=A[B];this[B]=q,q.hasAttribute("name")&&(this[q.getAttribute("name")]=q)}Object.freeze(this)}get length(){return kt(this,wt,"f").length}[(wt=new WeakMap,Symbol.iterator)](){return kt(this,wt,"f")[Symbol.iterator]()}item(A){return this[A]==null?null:this[A]}namedItem(A){return this[A]==null?null:this[A]}}function He(){const P=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=B;const A=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=q;function B(...he){let fe=P.apply(this,he);return nt(this,fe,"checkValidity")}function q(...he){let fe=A.apply(this,he);return nt(this,fe,"reportValidity")}const{get:se}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...he){const fe=se.call(this,...he),rt=Array.from(p.get(this)||[]);if(rt.length===0)return fe;const Ae=Array.from(fe).concat(rt).sort((ft,Sn)=>ft.compareDocumentPosition?ft.compareDocumentPosition(Sn)&2?1:-1:0);return new Fe(Ae)}})}class Ne{static get isPolyfilled(){return!0}constructor(A){if(!A||!A.tagName||A.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const B=A.getRootNode(),q=new Re;this.states=new zt(A),t.set(this,A),n.set(this,q),i.set(A,this),N(A,this),z(A,this),Object.seal(this),B instanceof DocumentFragment&&I(B)}checkValidity(){const A=t.get(this);if(ue(A,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const B=n.get(this);if(!B.valid){const q=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});A.dispatchEvent(q)}return B.valid}get form(){const A=t.get(this);ue(A,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let B;return A.constructor.formAssociated===!0&&(B=le(A)),B}get labels(){const A=t.get(this);ue(A,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const B=A.getAttribute("id"),q=A.getRootNode();return q&&B?q.querySelectorAll(`[for="${B}"]`):[]}reportValidity(){const A=t.get(this);if(ue(A,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const B=this.checkValidity(),q=y.get(this);if(q&&!A.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!B&&q&&(A.focus(),q.focus()),B}setFormValue(A){const B=t.get(this);if(ue(B,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),ee(this),A!=null&&!(A instanceof FormData)){if(B.getAttribute("name")){const q=V(B,this);q.value=A}}else A!=null&&A instanceof FormData&&Array.from(A).reverse().forEach(([q,se])=>{if(typeof se=="string"){const he=V(B,this);he.name=q,he.value=se}});h.set(B,A)}setValidity(A,B,q){const se=t.get(this);if(ue(se,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!A)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");y.set(this,q);const he=n.get(this),fe={};for(const ft in A)fe[ft]=A[ft];Object.keys(fe).length===0&&pe(he);const rt=Object.assign(Object.assign({},he),fe);delete rt.valid;const{valid:Ae}=Dt(he,rt,this.form);if(!Ae&&!B)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");o.set(this,Ae?"":B),se.isConnected?(se.toggleAttribute("internals-invalid",!Ae),se.toggleAttribute("internals-valid",Ae),se.setAttribute("aria-invalid",`${!Ae}`)):S.set(se,this)}get shadowRoot(){const A=t.get(this);return v.get(A)||null}get validationMessage(){const A=t.get(this);return ue(A,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),o.get(this)}get validity(){const A=t.get(this);return ue(A,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),n.get(this)}get willValidate(){const A=t.get(this);return ue(A,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(A.disabled||A.hasAttribute("disabled")||A.hasAttribute("readonly"))}}function In(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class P extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const A=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(A,P);const B=new P;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(q=>q in B.internals)}let Xt=!1,Hr=!1;function Rt(P){Hr||(Hr=!0,window.CustomStateSet=zt,P&&(HTMLElement.prototype.attachInternals=function(...A){const B=P.call(this,A);return B.states=new zt(this),B}))}function Rn(P=!0){if(!Xt){if(Xt=!0,typeof window<"u"&&(window.ElementInternals=Ne),typeof CustomElementRegistry<"u"){const A=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(B,q,se){if(q.formAssociated){const he=q.prototype.connectedCallback;q.prototype.connectedCallback=function(){k.has(this)||(k.set(this,!0),this.hasAttribute("disabled")&&Y(this,!0)),he!=null&&he.apply(this),Oe(this)}}A.call(this,B,q,se)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(i.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Ne(this)}),typeof Element<"u"){let A=function(...q){const se=B.apply(this,q);if(v.set(this,se),Ee()){const he=new MutationObserver(T);window.ShadyDOM?he.observe(this,M):he.observe(se,M),c.set(this,he)}return se};const B=Element.prototype.attachShadow;Element.prototype.attachShadow=A}Ee()&&typeof document<"u"&&new MutationObserver(T).observe(document.documentElement,M),typeof HTMLFormElement<"u"&&He(),(P||typeof window<"u"&&!window.CustomStateSet)&&Rt()}}return customElements.polyfillWrapFlushCallback||(In()?typeof window<"u"&&!window.CustomStateSet&&Rt(HTMLElement.prototype.attachInternals):Rn(!1)),e.forceCustomStateSetPolyfill=Rt,e.forceElementInternalsPolyfill=Rn,Object.defineProperty(e,"__esModule",{value:!0}),e})({})})();var uf=Object.defineProperty,Ve=(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&&uf(t,n,i),i};let At=class extends aa{constructor(){super(),this.strings=Gt}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}};Ve([j({type:Object})],At.prototype,"strings");let ze=class extends At{constructor(){super(),this.id=ws(),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.label=null,this.optionalTag=!1,this.optionalText=Gt.forms.labels.optional,this.requiredTag=!1,this.requiredText=Gt.forms.labels.required,this.hasError=!1,this.errorMessage="",this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Ft.props.helptextDropdownButton.default,this.fullwidth=!1,this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(t){this.required&&!this.value?this.internals.setValidity({valueMissing:!0},Gt.forms.messages.required,t):t.validity.typeMismatch||t.validity.badInput?this.internals.setValidity({typeMismatch:!0},Gt.forms.messages.invalid,t):t.validity.patternMismatch?this.internals.setValidity({patternMismatch:!0},Gt.forms.messages.invalidPattern,t):t.validity.tooShort||this.minLength>0&&this.value.length<this.minLength?this.internals.setValidity({tooShort:!0},Gt.forms.messages.tooShort,t):t.validity.tooLong||this.maxLength>0&&this.value.length>this.maxLength?this.internals.setValidity({tooLong:!0},Gt.forms.messages.tooLong,t):t.validity.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},Gt.forms.messages.rangeUnderflow,t):t.validity.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},Gt.forms.messages.rangeOverflow,t):t.validity.customError?this.internals.setValidity({customError:!0},t.validationMessage,t):this.internals.setValidity({})}setFormValue(t){if(this.internals)if(Array.isArray(t)){const n=new FormData;t.forEach(r=>{n.append(this.name,r)}),this.internals.setFormValue(n)}else this.internals.setFormValue(t)}valueChanged(t,n){typeof t=="string"?((this.multiple||this.range)&&t.includes(",")&&(t=t.split(",")),this.value=t,this._value=Array.isArray(t)?t:[t]):Array.isArray(t)?(this.value=t,this._value=t):(this.value="",this._value=[]),(!this.value||this.value.length===0)&&n&&n.length!==0?this.clearInputValue():this.value&&this.value.toString()!==(n==null?void 0:n.toString())&&this.onChange(this.value),this.updateComplete.then(()=>this.requestUpdate())}clearInputValue(){const t=this.multiple||this.range?[]:"";this.value=t,this.internals.setFormValue(t),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0}))}onFocus(){this.dispatchEvent(new FocusEvent("focus"))}onBlur(){this.dispatchEvent(new FocusEvent("blur"))}onInput(){this.dispatchEvent(new InputEvent("input"))}onChange(t){if(!this.touched){this.touched=!0,t&&this.setFormValue(t);return}typeof t!="string"&&!Array.isArray(t)||((this.range||this.multiple)&&!Array.isArray(t)&&t.includes(",")&&(t=t.split(",")),!this.multiple&&!this.range&&Array.isArray(t)&&(t=t[0]),this.setFormValue(t),this.manageValidity(this.inputRef.value),this.inputRef2&&this.manageValidity(this.inputRef2.value),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0})),this.internals.reportValidity())}firstUpdated(t){super.firstUpdated(t),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.ariaDisabled=!0),this.internals.setFormValue(this.value),this.inputRef.value&&this.manageValidity(this.inputRef.value)}};Ve([j({type:String,reflect:!0})],ze.prototype,"id"),Ve([j({type:String,reflect:!0})],ze.prototype,"name"),Ve([j({type:Boolean,reflect:!0})],ze.prototype,"required"),Ve([j({type:Boolean,reflect:!0})],ze.prototype,"disabled"),Ve([j({type:String,reflect:!0})],ze.prototype,"placeholder"),Ve([j({type:Number,reflect:!0})],ze.prototype,"min"),Ve([j({type:Number,reflect:!0})],ze.prototype,"max"),Ve([j({type:Number,reflect:!0})],ze.prototype,"minlength"),Ve([j({type:Number,reflect:!0})],ze.prototype,"maxlength"),Ve([j({type:String,reflect:!0})],ze.prototype,"pattern"),Ve([j({type:String,reflect:!0})],ze.prototype,"label"),Ve([j({type:Boolean})],ze.prototype,"optionalTag"),Ve([j({type:String})],ze.prototype,"optionalText"),Ve([j({type:Boolean})],ze.prototype,"requiredTag"),Ve([j({type:String})],ze.prototype,"requiredText"),Ve([j({type:Boolean})],ze.prototype,"hasError"),Ve([j({type:String})],ze.prototype,"errorMessage"),Ve([j({type:String})],ze.prototype,"helptext"),Ve([j({type:String})],ze.prototype,"helptextDropdown"),Ve([j({type:String})],ze.prototype,"helptextDropdownButton"),Ve([j({type:Boolean,reflect:!0})],ze.prototype,"fullwidth"),Ve([Pt()],ze.prototype,"touched");/**
|
|
95
|
+
*/let aa=class extends kr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const n=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=n.firstChild),n}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Oh(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return un}};var Jl;aa._$litElement$=!0,aa.finalized=!0,(Jl=globalThis.litElementHydrateSupport)==null||Jl.call(globalThis,{LitElement:aa});const Kl=globalThis.litElementPolyfillSupport;Kl==null||Kl({LitElement:aa}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");for(var ut=[],ks=0;ks<256;++ks)ut.push((ks+256).toString(16).slice(1));function Kh(e,t=0){return(ut[e[t+0]]+ut[e[t+1]]+ut[e[t+2]]+ut[e[t+3]]+"-"+ut[e[t+4]]+ut[e[t+5]]+"-"+ut[e[t+6]]+ut[e[t+7]]+"-"+ut[e[t+8]]+ut[e[t+9]]+"-"+ut[e[t+10]]+ut[e[t+11]]+ut[e[t+12]]+ut[e[t+13]]+ut[e[t+14]]+ut[e[t+15]]).toLowerCase()}var ri,Zh=new Uint8Array(16);function Xh(){if(!ri&&(ri=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ri))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ri(Zh)}var Qh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Zl={randomUUID:Qh};function ws(e,t,n){if(Zl.randomUUID&&!t&&!e)return Zl.randomUUID();e=e||{};var r=e.random||(e.rng||Xh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Kh(r)}const ef={hi:"Hei!"},tf={from:"Fra",to:"Til"},nf={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},rf={month:"Måned",year:"År",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"},af={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."}},Gt={example:ef,generic:tf,calendar:nf,dates:rf,forms:af},sf="pkt-inputwrapper",of={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},lf={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 feltet</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}},Ft={name:sf,"css-class":"pkt-inputwrapper",events:of,props:lf};(function(){(function(e){const t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,o=new WeakMap,u=new WeakMap,c=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,k=new WeakMap,x=new WeakMap,C={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},N=(P,A)=>{for(let B in C){A[B]=null;let q=null;const oe=C[B];Object.defineProperty(A,B,{get(){return q},set(fe){q=fe,P.isConnected?P.setAttribute(oe,fe):m.set(P,A)}})}};function _(P){const A=i.get(P),{form:B}=A;De(P,B,A),I(P,A.labels)}const E=(P,A=!1)=>{const B=document.createTreeWalker(P,NodeFilter.SHOW_ELEMENT,{acceptNode(fe){return i.has(fe)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let q=B.nextNode();const oe=!A||P.disabled;for(;q;)q.formDisabledCallback&&oe&&z(q,P.disabled),q=B.nextNode()},$={attributes:!0,attributeFilter:["disabled","name"]},S=Ee()?new MutationObserver(P=>{for(const A of P){const B=A.target;if(A.attributeName==="disabled"&&(B.constructor.formAssociated?z(B,B.hasAttribute("disabled")):B.localName==="fieldset"&&E(B)),A.attributeName==="name"&&B.constructor.formAssociated){const q=i.get(B),oe=h.get(B);q.setFormValue(oe)}}}):{};function T(P){P.forEach(A=>{const{addedNodes:B,removedNodes:q}=A,oe=Array.from(B),fe=Array.from(q);oe.forEach(me=>{var rt;if(i.has(me)&&me.constructor.formAssociated&&_(me),m.has(me)){const Ae=m.get(me);Object.keys(C).filter(ft=>Ae[ft]!==null).forEach(ft=>{me.setAttribute(C[ft],Ae[ft])}),m.delete(me)}if(x.has(me)){const Ae=x.get(me);me.setAttribute("internals-valid",Ae.validity.valid.toString()),me.setAttribute("internals-invalid",(!Ae.validity.valid).toString()),me.setAttribute("aria-invalid",(!Ae.validity.valid).toString()),x.delete(me)}if(me.localName==="form"){const Ae=p.get(me),ft=document.createTreeWalker(me,NodeFilter.SHOW_ELEMENT,{acceptNode(fr){return i.has(fr)&&fr.constructor.formAssociated&&!(Ae&&Ae.has(fr))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let Sn=ft.nextNode();for(;Sn;)_(Sn),Sn=ft.nextNode()}me.localName==="fieldset"&&((rt=S.observe)===null||rt===void 0||rt.call(S,me,$),E(me,!0))}),fe.forEach(me=>{const rt=i.get(me);rt&&r.get(rt)&&te(rt),c.has(me)&&c.get(me).disconnect()})})}function M(P){P.forEach(A=>{const{removedNodes:B}=A;B.forEach(q=>{const oe=b.get(A.target);i.has(q)&&Oe(q),oe.disconnect()})})}const H=P=>{var A,B;const q=new MutationObserver(M);!((A=window==null?void 0:window.ShadyDOM)===null||A===void 0)&&A.inUse&&P.mode&&P.host&&(P=P.host),(B=q.observe)===null||B===void 0||B.call(q,P,{childList:!0}),b.set(P,q)};Ee()&&new MutationObserver(T);const O={childList:!0,subtree:!0},z=(P,A)=>{P.toggleAttribute("internals-disabled",A),A?P.setAttribute("aria-disabled","true"):P.removeAttribute("aria-disabled"),P.formDisabledCallback&&P.formDisabledCallback.apply(P,[A])},te=P=>{r.get(P).forEach(A=>{A.remove()}),r.set(P,[])},Z=(P,A)=>{const B=document.createElement("input");return B.type="hidden",B.name=P.getAttribute("name"),P.after(B),r.get(A).push(B),B},W=(P,A)=>{var B;r.set(A,[]),(B=S.observe)===null||B===void 0||B.call(S,P,$)},I=(P,A)=>{if(A.length){Array.from(A).forEach(q=>q.addEventListener("click",P.click.bind(P)));let B=A[0].id;A[0].id||(B=`${A[0].htmlFor}_Label`,A[0].id=B),P.setAttribute("aria-labelledby",B)}},J=P=>{const A=Array.from(P.elements).filter(fe=>!fe.tagName.includes("-")&&fe.validity).map(fe=>fe.validity.valid),B=p.get(P)||[],q=Array.from(B).filter(fe=>fe.isConnected).map(fe=>i.get(fe).validity.valid),oe=[...A,...q].includes(!1);P.toggleAttribute("internals-invalid",oe),P.toggleAttribute("internals-valid",!oe)},ee=P=>{J(le(P.target))},de=P=>{J(le(P.target))},re=P=>{const A=["button[type=submit]","input[type=submit]","button:not([type])"].map(B=>`${B}:not([disabled])`).map(B=>`${B}:not([form])${P.id?`,${B}[form='${P.id}']`:""}`).join(",");P.addEventListener("click",B=>{if(B.target.closest(A)){const q=p.get(P);if(P.noValidate)return;q.size&&Array.from(q).reverse().map(oe=>i.get(oe).reportValidity()).includes(!1)&&B.preventDefault()}})},pe=P=>{const A=p.get(P.target);A&&A.size&&A.forEach(B=>{B.constructor.formAssociated&&B.formResetCallback&&B.formResetCallback.apply(B)})},De=(P,A,B)=>{if(A){const q=p.get(A);if(q)q.add(P);else{const oe=new Set;oe.add(P),p.set(A,oe),re(A),A.addEventListener("reset",pe),A.addEventListener("input",ee),A.addEventListener("change",de)}u.set(A,{ref:P,internals:B}),P.constructor.formAssociated&&P.formAssociatedCallback&&setTimeout(()=>{P.formAssociatedCallback.apply(P,[A])},0),J(A)}},le=P=>{let A=P.parentNode;return A&&A.tagName!=="FORM"&&(A=le(A)),A},ue=(P,A,B=DOMException)=>{if(!P.constructor.formAssociated)throw new B(A)},nt=(P,A,B)=>{const q=p.get(P);return q&&q.size&&q.forEach(oe=>{i.get(oe)[B]()||(A=!1)}),A},Oe=P=>{if(P.constructor.formAssociated){const A=i.get(P),{labels:B,form:q}=A;I(P,B),De(P,q,A)}};function Ee(){return typeof MutationObserver<"u"}class Re{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const he=P=>(P.badInput=!1,P.customError=!1,P.patternMismatch=!1,P.rangeOverflow=!1,P.rangeUnderflow=!1,P.stepMismatch=!1,P.tooLong=!1,P.tooShort=!1,P.typeMismatch=!1,P.valid=!0,P.valueMissing=!1,P),Dt=(P,A,B)=>(P.valid=jt(A),Object.keys(A).forEach(q=>P[q]=A[q]),B&&J(B),P),jt=P=>{let A=!0;for(let B in P)B!=="valid"&&P[B]!==!1&&(A=!1);return A},ht=new WeakMap;function bt(P,A){P.toggleAttribute(A,!0),P.part&&P.part.add(A)}class zt extends Set{static get isPolyfilled(){return!0}constructor(A){if(super(),!A||!A.tagName||A.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");ht.set(this,A)}add(A){if(!/^--/.test(A)||typeof A!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${A} must start with '--'.`);const B=super.add(A),q=ht.get(this),oe=`state${A}`;return q.isConnected?bt(q,oe):setTimeout(()=>{bt(q,oe)}),B}clear(){for(let[A]of this.entries())this.delete(A);super.clear()}delete(A){const B=super.delete(A),q=ht.get(this);return q.isConnected?(q.toggleAttribute(`state${A}`,!1),q.part&&q.part.remove(`state${A}`)):setTimeout(()=>{q.toggleAttribute(`state${A}`,!1),q.part&&q.part.remove(`state${A}`)}),B}}function kt(P,A,B,q){if(B==="a"&&!q)throw new TypeError("Private accessor was defined without a getter");if(typeof A=="function"?P!==A||!q:!A.has(P))throw new TypeError("Cannot read private member from an object whose class did not declare it");return B==="m"?q:B==="a"?q.call(P):q?q.value:A.get(P)}function ne(P,A,B,q,oe){if(typeof A=="function"?P!==A||!oe:!A.has(P))throw new TypeError("Cannot write private member to an object whose class did not declare it");return A.set(P,B),B}var wt;class Fe{constructor(A){wt.set(this,void 0),ne(this,wt,A);for(let B=0;B<A.length;B++){let q=A[B];this[B]=q,q.hasAttribute("name")&&(this[q.getAttribute("name")]=q)}Object.freeze(this)}get length(){return kt(this,wt,"f").length}[(wt=new WeakMap,Symbol.iterator)](){return kt(this,wt,"f")[Symbol.iterator]()}item(A){return this[A]==null?null:this[A]}namedItem(A){return this[A]==null?null:this[A]}}function He(){const P=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=B;const A=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=q;function B(...fe){let me=P.apply(this,fe);return nt(this,me,"checkValidity")}function q(...fe){let me=A.apply(this,fe);return nt(this,me,"reportValidity")}const{get:oe}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...fe){const me=oe.call(this,...fe),rt=Array.from(p.get(this)||[]);if(rt.length===0)return me;const Ae=Array.from(me).concat(rt).sort((ft,Sn)=>ft.compareDocumentPosition?ft.compareDocumentPosition(Sn)&2?1:-1:0);return new Fe(Ae)}})}class Ne{static get isPolyfilled(){return!0}constructor(A){if(!A||!A.tagName||A.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const B=A.getRootNode(),q=new Re;this.states=new zt(A),t.set(this,A),n.set(this,q),i.set(A,this),N(A,this),W(A,this),Object.seal(this),B instanceof DocumentFragment&&H(B)}checkValidity(){const A=t.get(this);if(ue(A,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const B=n.get(this);if(!B.valid){const q=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});A.dispatchEvent(q)}return B.valid}get form(){const A=t.get(this);ue(A,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let B;return A.constructor.formAssociated===!0&&(B=le(A)),B}get labels(){const A=t.get(this);ue(A,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const B=A.getAttribute("id"),q=A.getRootNode();return q&&B?q.querySelectorAll(`[for="${B}"]`):[]}reportValidity(){const A=t.get(this);if(ue(A,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const B=this.checkValidity(),q=y.get(this);if(q&&!A.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!B&&q&&(A.focus(),q.focus()),B}setFormValue(A){const B=t.get(this);if(ue(B,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),te(this),A!=null&&!(A instanceof FormData)){if(B.getAttribute("name")){const q=Z(B,this);q.value=A}}else A!=null&&A instanceof FormData&&Array.from(A).reverse().forEach(([q,oe])=>{if(typeof oe=="string"){const fe=Z(B,this);fe.name=q,fe.value=oe}});h.set(B,A)}setValidity(A,B,q){const oe=t.get(this);if(ue(oe,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!A)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");y.set(this,q);const fe=n.get(this),me={};for(const ft in A)me[ft]=A[ft];Object.keys(me).length===0&&he(fe);const rt=Object.assign(Object.assign({},fe),me);delete rt.valid;const{valid:Ae}=Dt(fe,rt,this.form);if(!Ae&&!B)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");o.set(this,Ae?"":B),oe.isConnected?(oe.toggleAttribute("internals-invalid",!Ae),oe.toggleAttribute("internals-valid",Ae),oe.setAttribute("aria-invalid",`${!Ae}`)):x.set(oe,this)}get shadowRoot(){const A=t.get(this);return v.get(A)||null}get validationMessage(){const A=t.get(this);return ue(A,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),o.get(this)}get validity(){const A=t.get(this);return ue(A,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),n.get(this)}get willValidate(){const A=t.get(this);return ue(A,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(A.disabled||A.hasAttribute("disabled")||A.hasAttribute("readonly"))}}function In(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class P extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const A=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(A,P);const B=new P;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(q=>q in B.internals)}let Xt=!1,Hr=!1;function Rt(P){Hr||(Hr=!0,window.CustomStateSet=zt,P&&(HTMLElement.prototype.attachInternals=function(...A){const B=P.call(this,A);return B.states=new zt(this),B}))}function Rn(P=!0){if(!Xt){if(Xt=!0,typeof window<"u"&&(window.ElementInternals=Ne),typeof CustomElementRegistry<"u"){const A=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(B,q,oe){if(q.formAssociated){const fe=q.prototype.connectedCallback;q.prototype.connectedCallback=function(){k.has(this)||(k.set(this,!0),this.hasAttribute("disabled")&&z(this,!0)),fe!=null&&fe.apply(this),Oe(this)}}A.call(this,B,q,oe)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(i.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Ne(this)}),typeof Element<"u"){let A=function(...q){const oe=B.apply(this,q);if(v.set(this,oe),Ee()){const fe=new MutationObserver(T);window.ShadyDOM?fe.observe(this,O):fe.observe(oe,O),c.set(this,fe)}return oe};const B=Element.prototype.attachShadow;Element.prototype.attachShadow=A}Ee()&&typeof document<"u"&&new MutationObserver(T).observe(document.documentElement,O),typeof HTMLFormElement<"u"&&He(),(P||typeof window<"u"&&!window.CustomStateSet)&&Rt()}}return customElements.polyfillWrapFlushCallback||(In()?typeof window<"u"&&!window.CustomStateSet&&Rt(HTMLElement.prototype.attachInternals):Rn(!1)),e.forceCustomStateSetPolyfill=Rt,e.forceElementInternalsPolyfill=Rn,Object.defineProperty(e,"__esModule",{value:!0}),e})({})})();var uf=Object.defineProperty,Ve=(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&&uf(t,n,i),i};let At=class extends aa{constructor(){super(),this.strings=Gt}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}};Ve([j({type:Object})],At.prototype,"strings");let ze=class extends At{constructor(){super(),this.id=ws(),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.label=null,this.optionalTag=!1,this.optionalText=Gt.forms.labels.optional,this.requiredTag=!1,this.requiredText=Gt.forms.labels.required,this.hasError=!1,this.errorMessage="",this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Ft.props.helptextDropdownButton.default,this.fullwidth=!1,this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(t){this.required&&!this.value?this.internals.setValidity({valueMissing:!0},Gt.forms.messages.required,t):t.validity.typeMismatch||t.validity.badInput?this.internals.setValidity({typeMismatch:!0},Gt.forms.messages.invalid,t):t.validity.patternMismatch?this.internals.setValidity({patternMismatch:!0},Gt.forms.messages.invalidPattern,t):t.validity.tooShort||this.minLength>0&&this.value.length<this.minLength?this.internals.setValidity({tooShort:!0},Gt.forms.messages.tooShort,t):t.validity.tooLong||this.maxLength>0&&this.value.length>this.maxLength?this.internals.setValidity({tooLong:!0},Gt.forms.messages.tooLong,t):t.validity.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},Gt.forms.messages.rangeUnderflow,t):t.validity.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},Gt.forms.messages.rangeOverflow,t):t.validity.customError?this.internals.setValidity({customError:!0},t.validationMessage,t):this.internals.setValidity({})}setFormValue(t){if(this.internals)if(Array.isArray(t)){const n=new FormData;t.forEach(r=>{n.append(this.name,r)}),this.internals.setFormValue(n)}else this.internals.setFormValue(t)}valueChanged(t,n){(n!==this.value||n!==this._value)&&(typeof t=="string"?((this.multiple||this.range)&&t.includes(",")&&(t=t.split(",")),this.value=t,this._value=Array.isArray(t)?t:[t]):Array.isArray(t)?(this.value=t,this._value=t):(this.value="",this._value=[]),(!this.value||this.value.length===0)&&n&&n.length!==0?this.clearInputValue():this.value&&this.value.toString()!==(n==null?void 0:n.toString())&&this.onChange(this.value),this.updateComplete.then(()=>this.requestUpdate()))}clearInputValue(){const t=this.multiple||this.range?[]:"";this.value=t,this.internals.setFormValue(t),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0}))}onFocus(){this.dispatchEvent(new FocusEvent("focus"))}onBlur(){this.dispatchEvent(new FocusEvent("blur"))}onInput(){this.dispatchEvent(new InputEvent("input"))}onChange(t){if(!this.touched){this.touched=!0,t&&this.setFormValue(t);return}typeof t!="string"&&!Array.isArray(t)||((this.range||this.multiple)&&!Array.isArray(t)&&t.includes(",")&&(t=t.split(",")),!this.multiple&&!this.range&&Array.isArray(t)&&(t=t[0]),this.setFormValue(t),this.manageValidity(this.inputRef.value),this.inputRef2&&this.manageValidity(this.inputRef2.value),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0})),this.internals.reportValidity())}firstUpdated(t){super.firstUpdated(t),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.ariaDisabled=!0),this.internals.setFormValue(this.value),this.inputRef.value&&this.manageValidity(this.inputRef.value)}};Ve([j({type:String,reflect:!0})],ze.prototype,"id"),Ve([j({type:String,reflect:!0})],ze.prototype,"name"),Ve([j({type:Boolean,reflect:!0})],ze.prototype,"required"),Ve([j({type:Boolean,reflect:!0})],ze.prototype,"disabled"),Ve([j({type:String,reflect:!0})],ze.prototype,"placeholder"),Ve([j({type:Number,reflect:!0})],ze.prototype,"min"),Ve([j({type:Number,reflect:!0})],ze.prototype,"max"),Ve([j({type:Number,reflect:!0})],ze.prototype,"minlength"),Ve([j({type:Number,reflect:!0})],ze.prototype,"maxlength"),Ve([j({type:String,reflect:!0})],ze.prototype,"pattern"),Ve([j({type:String,reflect:!0})],ze.prototype,"label"),Ve([j({type:Boolean})],ze.prototype,"optionalTag"),Ve([j({type:String})],ze.prototype,"optionalText"),Ve([j({type:Boolean})],ze.prototype,"requiredTag"),Ve([j({type:String})],ze.prototype,"requiredText"),Ve([j({type:Boolean})],ze.prototype,"hasError"),Ve([j({type:String})],ze.prototype,"errorMessage"),Ve([j({type:String})],ze.prototype,"helptext"),Ve([j({type:String})],ze.prototype,"helptextDropdown"),Ve([j({type:String})],ze.prototype,"helptextDropdownButton"),Ve([j({type:Boolean,reflect:!0})],ze.prototype,"fullwidth"),Ve([Pt()],ze.prototype,"touched");/**
|
|
96
96
|
* @license
|
|
97
97
|
* Copyright 2017 Google LLC
|
|
98
98
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -116,22 +116,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
116
116
|
* @license
|
|
117
117
|
* Copyright 2020 Google LLC
|
|
118
118
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
119
|
-
*/const yt=()=>new Df;let Df=class{};const xs=new WeakMap,tt=ia(class extends yf{render(e){return
|
|
119
|
+
*/const yt=()=>new Df;let Df=class{};const xs=new WeakMap,tt=ia(class extends yf{render(e){return ae}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)),ae}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let n=xs.get(t);n===void 0&&(n=new WeakMap,xs.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=xs.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)}});/**
|
|
120
120
|
* @license
|
|
121
121
|
* Copyright 2017 Google LLC
|
|
122
122
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
123
|
-
*/let oi=class extends ii{constructor(t){if(super(t),this.it=
|
|
123
|
+
*/let oi=class extends ii{constructor(t){if(super(t),this.it=ae,t.type!==ai.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ae||t==null)return this._t=void 0,this.it=t;if(t===un)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:[]}}};oi.directiveName="unsafeHTML",oi.resultType=1;const li=ia(oi);/**
|
|
124
124
|
* @license
|
|
125
125
|
* Copyright 2017 Google LLC
|
|
126
126
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
127
|
-
*/let Ss=class extends oi{};Ss.directiveName="unsafeSVG",Ss.resultType=2;const eu=ia(Ss);var bf=Object.defineProperty,kf=Object.getOwnPropertyDescriptor,la=(e,t,n,r)=>{for(var i=r>1?void 0:r?kf(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&&bf(t,n,i),i};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.14/icons/";const wf=e=>new Promise(t=>setTimeout(t,e)),ui='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',_s={},Cf=async(e,t)=>{let n=0;for(;_s[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await wf(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.pktFetch=="function"?(_s[t+e+".svg"]="fetching",Promise.resolve(window.pktFetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),ui)).then(r=>(r!==ui&&localStorage.setItem(t+e+".svg",r),_s[t+e+".svg"]="fetched",r)))):Promise.resolve(ui)};let Jn=class extends At{constructor(){super(...arguments),this.path=window.pktIconPath,this.name="",this.icon=eu(ui),this._updatedProps=[]}connectedCallback(){super.connectedCallback(),this.classList.add("pkt-icon")}async attributeChangedCallback(t,n,r){super.attributeChangedCallback(t,n,r),(t==="name"||t==="path")&&this.getIcon(this.name)}async updated(t){super.updated(t),(t.has("name")||t.has("path"))&&this.getIcon(this.name)}async getIcon(t=""){this._updatedProps.length>0?(this.path||(this.path,window.pktIconPath),this.icon=eu(await Cf(this.name||"",this.path).then(n=>n)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return
|
|
127
|
+
*/let Ss=class extends oi{};Ss.directiveName="unsafeSVG",Ss.resultType=2;const eu=ia(Ss);var bf=Object.defineProperty,kf=Object.getOwnPropertyDescriptor,la=(e,t,n,r)=>{for(var i=r>1?void 0:r?kf(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&&bf(t,n,i),i};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.14/icons/";const wf=e=>new Promise(t=>setTimeout(t,e)),ui='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',_s={},Cf=async(e,t)=>{let n=0;for(;_s[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await wf(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.pktFetch=="function"?(_s[t+e+".svg"]="fetching",Promise.resolve(window.pktFetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),ui)).then(r=>(r!==ui&&localStorage.setItem(t+e+".svg",r),_s[t+e+".svg"]="fetched",r)))):Promise.resolve(ui)};let Jn=class extends At{constructor(){super(...arguments),this.path=window.pktIconPath,this.name="",this.icon=eu(ui),this._updatedProps=[]}connectedCallback(){super.connectedCallback(),this.classList.add("pkt-icon")}async attributeChangedCallback(t,n,r){super.attributeChangedCallback(t,n,r),(t==="name"||t==="path")&&this.getIcon(this.name)}async updated(t){super.updated(t),(t.has("name")||t.has("path"))&&this.getIcon(this.name)}async getIcon(t=""){this._updatedProps.length>0?(this.path||(this.path,window.pktIconPath),this.icon=eu(await Cf(this.name||"",this.path).then(n=>n)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return Y`${this.name&&this.icon}`}};la([j({type:String,reflect:!1})],Jn.prototype,"path",2),la([j({type:String,reflect:!0})],Jn.prototype,"name",2),la([j({type:SVGElement})],Jn.prototype,"icon",2),la([j({type:Array,noAccessor:!0})],Jn.prototype,"_updatedProps",2),Jn=la([Ot("pkt-icon")],Jn);const xf="pkt-alert",Sf=!0,_f={onClose:{description:"React: Klikk-event for 'Lukk'-knappen"},close:{description:"Vue: Klikk-event for 'Lukk'-knappen"}},Ef={title:{name:"Tittel",description:"Tittelen som vises øverst i på meldingen",type:"string"},skin:{name:"Utseende",description:"Hvordan type melding er dette?",type:["info","success","warning","error"],default:"info"},date:{name:"Sist oppdatert",description:"Dato som vises nederst i på meldingen",type:"string"},ariaLive:{name:"aria-live",description:"Hvordan skal skjermleseren lese opp meldingen?",type:["off","polite","assertive"],default:"polite"},compact:{name:"Kompakt",description:"Gjør meldingen mindre",type:"boolean",default:!1},closeAlert:{name:"Vis 'Lukk'-knapp",description:"Viser 'Lukk'-knappen",type:"boolean",default:!1}},Ff={default:{description:"Innholdet i meldingen"}},ci={name:xf,"css-class":"pkt-alert","dark-mode":!0,isElement:Sf,events:_f,props:Ef,slots:Ff};var Af=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,dn=(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&&Af(t,n,i),i};let Yt=class extends At{constructor(){super(),this.defaultSlot=yt(),this.compact=ci.props.compact.default,this.title="",this.skin=ci.props.skin.default,this.ariaLive=ci.props.ariaLive.default,this["aria-live"]=null,this.closeAlert=ci.props.closeAlert.default,this.date=null,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:t},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new cn(this,this.defaultSlot),this._isClosed=!1}connectedCallback(){super.connectedCallback(),this["aria-live"]=this.getAttribute("aria-live")||this.ariaLive}attributeChangedCallback(t,n,r){t==="ariaLive"&&(this["aria-live"]=r)}updated(t){t.has("ariaLive")&&(this["aria-live"]=this.ariaLive)}render(){const t={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-hide":this._isClosed};return Y`
|
|
128
128
|
<div class=${We(t)}>
|
|
129
129
|
<pkt-icon
|
|
130
130
|
class="pkt-alert__icon"
|
|
131
131
|
name=${this.skin==="info"?"alert-information":`alert-${this.skin}`}
|
|
132
132
|
></pkt-icon>
|
|
133
133
|
|
|
134
|
-
${this.closeAlert?
|
|
134
|
+
${this.closeAlert?Y`
|
|
135
135
|
<div class="pkt-alert__close">
|
|
136
136
|
<button
|
|
137
137
|
type="button"
|
|
@@ -143,16 +143,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
143
143
|
<pkt-icon name="close" class="pkt-btn__icon" aria-hidden="true"></pkt-icon>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
`:
|
|
147
|
-
${this.title?
|
|
146
|
+
`:ae}
|
|
147
|
+
${this.title?Y`<div class="pkt-alert__title">${this.title}</div>`:ae}
|
|
148
148
|
|
|
149
149
|
<div class="pkt-alert__text" ${tt(this.defaultSlot)}></div>
|
|
150
150
|
|
|
151
|
-
${this.date?
|
|
151
|
+
${this.date?Y`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>`:ae}
|
|
152
152
|
</div>
|
|
153
|
-
`}};dn([j({type:Boolean,reflect:!1})],Yt.prototype,"compact",2),dn([j({type:String,reflect:!0})],Yt.prototype,"title",2),dn([j({type:String,reflect:!0})],Yt.prototype,"skin",2),dn([j({type:String})],Yt.prototype,"ariaLive",2),dn([j({type:String,reflect:!0})],Yt.prototype,"aria-live",2),dn([j({type:Boolean,reflect:!0})],Yt.prototype,"closeAlert",2),dn([j({type:String,reflect:!0})],Yt.prototype,"date",2),dn([Pt()],Yt.prototype,"_isClosed",2),Yt=dn([Ot("pkt-alert")],Yt);const tu=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Tf=e=>e?new Date(e):null,Nf=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},wr={csvToArray:tu,stringToDate:Tf,stringsToDate:Nf},nu=6048e5,Bf=864e5,jf=36e5,ru=Symbol.for("constructDateFrom");function Jt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ru in e?e[ru](t):e instanceof Date?new e.constructor(t):new Date(t)}function $t(e,t){return Jt(t||e,e)}function Es(e,t,n){const r=$t(e,void 0);return isNaN(t)?Jt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Lf(e,t,n){return Jt(e,+$t(e)+t)}function ua(e,t,n){return Lf(e,t*jf)}let Pf={};function di(){return Pf}function ca(e,t){var n,r,i,o;const u=di(),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,p=$t(e,t==null?void 0:t.in),h=p.getDay(),m=(h<c?7:0)+h-c;return p.setDate(p.getDate()-m),p.setHours(0,0,0,0),p}function pi(e,t){return ca(e,{...t,weekStartsOn:1})}function au(e,t){const n=$t(e,void 0),r=n.getFullYear(),i=Jt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=pi(i),u=Jt(n,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);const c=pi(u);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function iu(e){const t=$t(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 su(e,...t){const n=Jt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function ou(e,t){const n=$t(e,void 0);return n.setHours(0,0,0,0),n}function Of(e,t,n){const[r,i]=su(void 0,e,t),o=ou(r),u=ou(i),c=+o-iu(o),p=+u-iu(u);return Math.round((c-p)/Bf)}function Mf(e,t){const n=au(e),r=Jt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),pi(r)}function If(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Rf(e){return!(!If(e)&&typeof e!="number"||isNaN(+$t(e)))}function qf(e,t){const[n,r]=su(e,t.start,t.end);return{start:n,end:r}}function Fs(e,t){const{start:n,end:r}=qf(void 0,e);let i=+n>+r;const o=i?+n:+r,u=i?r:n;u.setHours(0,0,0,0);let c=1;const p=[];for(;+u<=o;)p.push(Jt(n,u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?p.reverse():p}function Hf(e,t){const n=$t(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Uf={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"}},Vf=(e,t,n)=>{let r;const i=Uf[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 As(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const zf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yf={date:As({formats:zf,defaultWidth:"full"}),time:As({formats:Wf,defaultWidth:"full"}),dateTime:As({formats:Gf,defaultWidth:"full"})},Jf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kf=(e,t,n,r)=>Jf[e];function da(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 Zf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Xf={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"]},em={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"]},tm={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"}},nm={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"}},rm=(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"},am={ordinalNumber:rm,era:da({values:Zf,defaultWidth:"wide"}),quarter:da({values:Xf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:da({values:Qf,defaultWidth:"wide"}),day:da({values:em,defaultWidth:"wide"}),dayPeriod:da({values:tm,defaultWidth:"wide",formattingValues:nm,defaultFormattingWidth:"wide"})};function pa(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],p=Array.isArray(c)?sm(c,v=>v.test(u)):im(c,v=>v.test(u));let h;h=e.valueCallback?e.valueCallback(p):p,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(u.length);return{value:h,rest:m}}}function im(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function sm(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function om(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 lm=/^(\d+)(th|st|nd|rd)?/i,um=/\d+/i,cm={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},dm={any:[/^b/i,/^(a|c)/i]},pm={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hm={any:[/1/i,/2/i,/3/i,/4/i]},fm={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},mm={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]},gm={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},vm={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]},ym={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},Dm={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}},bm={ordinalNumber:om({matchPattern:lm,parsePattern:um,valueCallback:e=>parseInt(e,10)}),era:pa({matchPatterns:cm,defaultMatchWidth:"wide",parsePatterns:dm,defaultParseWidth:"any"}),quarter:pa({matchPatterns:pm,defaultMatchWidth:"wide",parsePatterns:hm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:pa({matchPatterns:fm,defaultMatchWidth:"wide",parsePatterns:mm,defaultParseWidth:"any"}),day:pa({matchPatterns:gm,defaultMatchWidth:"wide",parsePatterns:vm,defaultParseWidth:"any"}),dayPeriod:pa({matchPatterns:ym,defaultMatchWidth:"any",parsePatterns:Dm,defaultParseWidth:"any"})},km={code:"en-US",formatDistance:Vf,formatLong:Yf,formatRelative:Kf,localize:am,match:bm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wm(e,t){const n=$t(e,void 0);return Of(n,Hf(n))+1}function Cm(e,t){const n=$t(e,void 0),r=+pi(n)-+Mf(n);return Math.round(r/nu)+1}function lu(e,t){var n,r,i,o;const u=$t(e,t==null?void 0:t.in),c=u.getFullYear(),p=di(),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)??p.firstWeekContainsDate??((o=(i=p.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,m=Jt((t==null?void 0:t.in)||e,0);m.setFullYear(c+1,0,h),m.setHours(0,0,0,0);const v=ca(m,t),y=Jt((t==null?void 0:t.in)||e,0);y.setFullYear(c,0,h),y.setHours(0,0,0,0);const b=ca(y,t);return+u>=+v?c+1:+u>=+b?c:c-1}function xm(e,t){var n,r,i,o;const u=di(),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,p=lu(e,t),h=Jt((t==null?void 0:t.in)||e,0);return h.setFullYear(p,0,c),h.setHours(0,0,0,0),ca(h,t)}function uu(e,t){const n=$t(e,t==null?void 0:t.in),r=+ca(n,t)-+xm(n,t);return Math.round(r/nu)+1}function je(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Fn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return je(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):je(n+1,2)},d(e,t){return je(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 je(e.getHours()%12||12,t.length)},H(e,t){return je(e.getHours(),t.length)},m(e,t){return je(e.getMinutes(),t.length)},s(e,t){return je(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return je(i,t.length)}},Cr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cu={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 Fn.y(e,t)},Y:function(e,t,n,r){const i=lu(e,r),o=i>0?i:1-i;if(t==="YY"){const u=o%100;return je(u,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):je(o,t.length)},R:function(e,t){const n=au(e);return je(n,t.length)},u:function(e,t){const n=e.getFullYear();return je(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 je(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 je(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 Fn.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 je(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=uu(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):je(i,t.length)},I:function(e,t,n){const r=Cm(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):je(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Fn.d(e,t)},D:function(e,t,n){const r=wm(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):je(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 je(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 je(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 je(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=Cr.noon:r===0?i=Cr.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=Cr.evening:r>=12?i=Cr.afternoon:r>=4?i=Cr.morning:i=Cr.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 Fn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Fn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Fn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Fn.s(e,t)},S:function(e,t){return Fn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return pu(r);case"XXXX":case"XX":return Kn(r);case"XXXXX":case"XXX":default:return Kn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return pu(r);case"xxxx":case"xx":return Kn(r);case"xxxxx":case"xxx":default:return Kn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+du(r,":");case"OOOO":default:return"GMT"+Kn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+du(r,":");case"zzzz":default:return"GMT"+Kn(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return je(r,t.length)},T:function(e,t,n){return je(+e,t.length)}};function du(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+je(o,2)}function pu(e,t){return e%60===0?(e>0?"-":"+")+je(Math.abs(e)/60,2):Kn(e,t)}function Kn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=je(Math.trunc(r/60),2),o=je(r%60,2);return n+i+t+o}const hu=(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"})}},fu=(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"})}},Sm=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return hu(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}}",hu(r,t)).replace("{{time}}",fu(i,t))},_m={p:fu,P:Sm},Em=/^D+$/,Fm=/^Y+$/,Am=["D","DD","YY","YYYY"];function $m(e){return Em.test(e)}function Tm(e){return Fm.test(e)}function Nm(e,t,n){const r=Bm(e,t,n);if(console.warn(r),Am.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 jm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pm=/^'([^]*?)'?$/,Om=/''/g,Mm=/[a-zA-Z]/;function Im(e,t,n){var r,i,o,u;const c=di(),p=c.locale??km,h=c.firstWeekContainsDate??((i=(r=c.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??1,m=c.weekStartsOn??((u=(o=c.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??0,v=$t(e,void 0);if(!Rf(v))throw new RangeError("Invalid time value");let y=t.match(Lm).map(k=>{const S=k[0];if(S==="p"||S==="P"){const C=_m[S];return C(k,p.formatLong)}return k}).join("").match(jm).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const S=k[0];if(S==="'")return{isToken:!1,value:Rm(k)};if(cu[S])return{isToken:!0,value:k};if(S.match(Mm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:k}});p.localize.preprocessor&&(y=p.localize.preprocessor(v,y));const b={firstWeekContainsDate:h,weekStartsOn:m,locale:p};return y.map(k=>{if(!k.isToken)return k.value;const S=k.value;(Tm(S)||$m(S))&&Nm(S,t,String(e));const C=cu[S[0]];return C(v,S,p.localize,b)}).join("")}function Rm(e){const t=e.match(Pm);return t?t[1].replace(Om,"'"):e}function qm(e,t){const n=$t(e,void 0).getDay();return n===0?7:n}const mu={},ha={};function fa(e,t){try{const n=(mu[e]||(mu[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return n in ha?ha[n]:gu(n,n.split(":"))}catch{if(e in ha)return ha[e];const n=e==null?void 0:e.match(Hm);return n?gu(e,n.slice(1)):NaN}}const Hm=/([+-]\d\d):?(\d\d)?/;function gu(e,t){const n=+t[0],r=+(t[1]||0);return ha[e]=n>0?n*60+r:n*60-r}let ma=class Ya extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(fa(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),yu(this),$s(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ya(...n,t):new Ya(Date.now(),t)}withTimeZone(t){return new Ya(+this,t)}getTimezoneOffset(){return-fa(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),$s(this),+this}[Symbol.for("constructDateFrom")](t){return new Ya(+new Date(t),this.timeZone)}};const vu=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!vu.test(e))return;const t=e.replace(vu,"$1UTC");ma.prototype[t]&&(e.startsWith("get")?ma.prototype[e]=function(){return this.internal[t]()}:(ma.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Um(this),+this},ma.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),$s(this),+this}))});function $s(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Um(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),yu(e)}function yu(e){const t=fa(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),i=-new Date(+n).getTimezoneOffset(),o=r-i,u=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&u&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);const c=r-t;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const p=fa(e.timeZone,e),h=-new Date(+e).getTimezoneOffset()-p,m=p!==t,v=h-c;if(m&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const y=fa(e.timeZone,e),b=p-y;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}let hi=class Ja extends ma{static tz(t,...n){return n.length?new Ja(...n,t):new Ja(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),i=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,i]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${i}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,i]=this.tzComponents();return`${t} GMT${n}${r}${i} (${Vm(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),i=String(Math.abs(t)%60).padStart(2,"0");return[n,r,i]}withTimeZone(t){return new Ja(+this,t)}[Symbol.for("constructDateFrom")](t){return new Ja(+new Date(t),this.timeZone)}};function Vm(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}window.pktTz=window.pktTz===void 0?"Europe/Oslo":window.pktTz;const ot=e=>e.toISOString().split("T")[0],Ts=e=>{if(!e)return null;const t=ua(new hi(e,window.pktTz),12);return isNaN(t.getTime())?null:t},Du=(e,t)=>{const n=Ke(e);return isNaN(n.getTime())?"":Im(n,t)},Ke=(e="")=>ua(e===""||!e?new hi(new Date,window.pktTz):new hi(e,window.pktTz),12),An=(e,t,n=1)=>ua(new hi(e,t,n,window.pktTz),12),zm=e=>new Intl.DateTimeFormat("no",{dateStyle:"full",timeZone:window.pktTz}).format(e),Wm="pkt-calendar",Gm={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"}},Ym={"date-selected":{description:"Returns ISO formatted date string"}},Zn={name:Wm,"css-class":"pkt-calendar",props:Gm,events:Ym};var Jm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,Pe=(e,t,n,r)=>{for(var i=r>1?void 0:r?Km(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&&Jm(t,n,i),i};let Le=class extends At{constructor(){super(...arguments),this.multiple=Zn.props.multiple.default,this.maxMultiple=Zn.props.maxMultiple.default,this.range=Zn.props.range.default,this.weeknumbers=Zn.props.weeknumbers.default,this.withcontrols=Zn.props.withcontrols.default,this.selected=[],this.earliest=Zn.props.earliest.default,this.latest=Zn.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.dayStrings=this.strings.dates.daysShort,this.dayStringsLong=this.strings.dates.days,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=[],this.currentmonthtouched=!1,this.tabIndexSet=0}connectedCallback(){super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}attributeChangedCallback(e,t,n){e==="selected"&&n&&this.convertSelected(),super.attributeChangedCallback(e,t,n)}updated(e){e.has("selected")&&this.convertSelected(),super.updated(e)}firstUpdated(e){this.addEventListener("keydown",this.handleKeydown)}convertSelected(){if(typeof this.selected=="string"&&(this.selected=this.selected.split(",")),this.selected.length===1&&this.selected[0]===""&&(this.selected=[]),this._selected=this.selected.map(e=>Ke(e)),this.range&&this.selected.length===2){const e=Fs({start:Ke(this.selected[0]),end:Ke(this.selected[1])});if(this.inRange={},Array.isArray(e)&&e.length){const t={};for(let n=0;n<e.length;n++)t[ot(e[n])]=this.isInRange(e[n]);this.inRange=t}}this.setCurrentMonth()}setCurrentMonth(){if(this.currentmonth===null&&!this.currentmonthtouched){this.currentmonthtouched=!0;return}this.selected.length&&this.selected[0]!==""?this.currentmonth=Ke(this.selected[this.selected.length-1]):this.currentmonth===null&&(this.currentmonth=Ke()),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth()}handleKeydown(e){switch(e.key){case"ArrowLeft":this.handleArrowKey(e,-1);break;case"ArrowRight":this.handleArrowKey(e,1);break;case"ArrowUp":this.handleArrowKey(e,-7);break;case"ArrowDown":this.handleArrowKey(e,7);break}}handleArrowKey(e,t){var n,r,i;if(((n=e.target)==null?void 0:n.nodeName)==="INPUT"||((r=e.target)==null?void 0:r.nodeName)==="SELECT"||((i=e.target)==null?void 0:i.nodeName)==="BUTTON")return;e.preventDefault(),this.focusedDate||this.focusOnCurrentDate();const o=this.focusedDate?Ke(this.focusedDate):An(this.year,this.month,1);let u=Es(o,t);if(u){let c=this.querySelector(`div[data-date="${ot(u)}"]`);if(c instanceof HTMLDivElement){if(c.dataset.disabled){u=Es(u,t);let p=this.querySelector(`div[data-date="${ot(u)}"]`);for(;p&&p instanceof HTMLDivElement&&p.dataset.disabled;)u=Es(u,t),p=this.querySelector(`div[data-date="${ot(u)}"]`);c=p}c instanceof HTMLDivElement&&!c.dataset.disabled&&(this.focusedDate=ot(u),c.focus())}}}render(){return J`
|
|
153
|
+
`}};dn([j({type:Boolean,reflect:!1})],Yt.prototype,"compact",2),dn([j({type:String,reflect:!0})],Yt.prototype,"title",2),dn([j({type:String,reflect:!0})],Yt.prototype,"skin",2),dn([j({type:String})],Yt.prototype,"ariaLive",2),dn([j({type:String,reflect:!0})],Yt.prototype,"aria-live",2),dn([j({type:Boolean,reflect:!0})],Yt.prototype,"closeAlert",2),dn([j({type:String,reflect:!0})],Yt.prototype,"date",2),dn([Pt()],Yt.prototype,"_isClosed",2),Yt=dn([Ot("pkt-alert")],Yt);const tu=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Tf=e=>e?new Date(e):null,Nf=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},wr={csvToArray:tu,stringToDate:Tf,stringsToDate:Nf},nu=6048e5,Bf=864e5,jf=36e5,ru=Symbol.for("constructDateFrom");function Jt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ru in e?e[ru](t):e instanceof Date?new e.constructor(t):new Date(t)}function $t(e,t){return Jt(t||e,e)}function Es(e,t,n){const r=$t(e,void 0);return isNaN(t)?Jt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Lf(e,t,n){return Jt(e,+$t(e)+t)}function ua(e,t,n){return Lf(e,t*jf)}let Pf={};function di(){return Pf}function ca(e,t){var n,r,i,o;const u=di(),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,p=$t(e,t==null?void 0:t.in),h=p.getDay(),m=(h<c?7:0)+h-c;return p.setDate(p.getDate()-m),p.setHours(0,0,0,0),p}function pi(e,t){return ca(e,{...t,weekStartsOn:1})}function au(e,t){const n=$t(e,void 0),r=n.getFullYear(),i=Jt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=pi(i),u=Jt(n,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);const c=pi(u);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function iu(e){const t=$t(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 su(e,...t){const n=Jt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function ou(e,t){const n=$t(e,void 0);return n.setHours(0,0,0,0),n}function Of(e,t,n){const[r,i]=su(void 0,e,t),o=ou(r),u=ou(i),c=+o-iu(o),p=+u-iu(u);return Math.round((c-p)/Bf)}function Mf(e,t){const n=au(e),r=Jt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),pi(r)}function If(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Rf(e){return!(!If(e)&&typeof e!="number"||isNaN(+$t(e)))}function qf(e,t){const[n,r]=su(e,t.start,t.end);return{start:n,end:r}}function Fs(e,t){const{start:n,end:r}=qf(void 0,e);let i=+n>+r;const o=i?+n:+r,u=i?r:n;u.setHours(0,0,0,0);let c=1;const p=[];for(;+u<=o;)p.push(Jt(n,u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?p.reverse():p}function Hf(e,t){const n=$t(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Uf={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"}},Vf=(e,t,n)=>{let r;const i=Uf[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 As(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const zf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yf={date:As({formats:zf,defaultWidth:"full"}),time:As({formats:Wf,defaultWidth:"full"}),dateTime:As({formats:Gf,defaultWidth:"full"})},Jf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kf=(e,t,n,r)=>Jf[e];function da(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 Zf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Xf={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"]},em={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"]},tm={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"}},nm={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"}},rm=(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"},am={ordinalNumber:rm,era:da({values:Zf,defaultWidth:"wide"}),quarter:da({values:Xf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:da({values:Qf,defaultWidth:"wide"}),day:da({values:em,defaultWidth:"wide"}),dayPeriod:da({values:tm,defaultWidth:"wide",formattingValues:nm,defaultFormattingWidth:"wide"})};function pa(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],p=Array.isArray(c)?sm(c,v=>v.test(u)):im(c,v=>v.test(u));let h;h=e.valueCallback?e.valueCallback(p):p,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(u.length);return{value:h,rest:m}}}function im(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function sm(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function om(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 lm=/^(\d+)(th|st|nd|rd)?/i,um=/\d+/i,cm={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},dm={any:[/^b/i,/^(a|c)/i]},pm={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hm={any:[/1/i,/2/i,/3/i,/4/i]},fm={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},mm={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]},gm={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},vm={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]},ym={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},Dm={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}},bm={ordinalNumber:om({matchPattern:lm,parsePattern:um,valueCallback:e=>parseInt(e,10)}),era:pa({matchPatterns:cm,defaultMatchWidth:"wide",parsePatterns:dm,defaultParseWidth:"any"}),quarter:pa({matchPatterns:pm,defaultMatchWidth:"wide",parsePatterns:hm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:pa({matchPatterns:fm,defaultMatchWidth:"wide",parsePatterns:mm,defaultParseWidth:"any"}),day:pa({matchPatterns:gm,defaultMatchWidth:"wide",parsePatterns:vm,defaultParseWidth:"any"}),dayPeriod:pa({matchPatterns:ym,defaultMatchWidth:"any",parsePatterns:Dm,defaultParseWidth:"any"})},km={code:"en-US",formatDistance:Vf,formatLong:Yf,formatRelative:Kf,localize:am,match:bm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wm(e,t){const n=$t(e,void 0);return Of(n,Hf(n))+1}function Cm(e,t){const n=$t(e,void 0),r=+pi(n)-+Mf(n);return Math.round(r/nu)+1}function lu(e,t){var n,r,i,o;const u=$t(e,t==null?void 0:t.in),c=u.getFullYear(),p=di(),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)??p.firstWeekContainsDate??((o=(i=p.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,m=Jt((t==null?void 0:t.in)||e,0);m.setFullYear(c+1,0,h),m.setHours(0,0,0,0);const v=ca(m,t),y=Jt((t==null?void 0:t.in)||e,0);y.setFullYear(c,0,h),y.setHours(0,0,0,0);const b=ca(y,t);return+u>=+v?c+1:+u>=+b?c:c-1}function xm(e,t){var n,r,i,o;const u=di(),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,p=lu(e,t),h=Jt((t==null?void 0:t.in)||e,0);return h.setFullYear(p,0,c),h.setHours(0,0,0,0),ca(h,t)}function uu(e,t){const n=$t(e,t==null?void 0:t.in),r=+ca(n,t)-+xm(n,t);return Math.round(r/nu)+1}function je(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Fn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return je(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):je(n+1,2)},d(e,t){return je(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 je(e.getHours()%12||12,t.length)},H(e,t){return je(e.getHours(),t.length)},m(e,t){return je(e.getMinutes(),t.length)},s(e,t){return je(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return je(i,t.length)}},Cr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cu={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 Fn.y(e,t)},Y:function(e,t,n,r){const i=lu(e,r),o=i>0?i:1-i;if(t==="YY"){const u=o%100;return je(u,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):je(o,t.length)},R:function(e,t){const n=au(e);return je(n,t.length)},u:function(e,t){const n=e.getFullYear();return je(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 je(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 je(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 Fn.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 je(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=uu(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):je(i,t.length)},I:function(e,t,n){const r=Cm(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):je(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Fn.d(e,t)},D:function(e,t,n){const r=wm(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):je(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 je(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 je(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 je(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=Cr.noon:r===0?i=Cr.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=Cr.evening:r>=12?i=Cr.afternoon:r>=4?i=Cr.morning:i=Cr.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 Fn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Fn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):je(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Fn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Fn.s(e,t)},S:function(e,t){return Fn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return pu(r);case"XXXX":case"XX":return Kn(r);case"XXXXX":case"XXX":default:return Kn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return pu(r);case"xxxx":case"xx":return Kn(r);case"xxxxx":case"xxx":default:return Kn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+du(r,":");case"OOOO":default:return"GMT"+Kn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+du(r,":");case"zzzz":default:return"GMT"+Kn(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return je(r,t.length)},T:function(e,t,n){return je(+e,t.length)}};function du(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+je(o,2)}function pu(e,t){return e%60===0?(e>0?"-":"+")+je(Math.abs(e)/60,2):Kn(e,t)}function Kn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=je(Math.trunc(r/60),2),o=je(r%60,2);return n+i+t+o}const hu=(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"})}},fu=(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"})}},Sm=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return hu(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}}",hu(r,t)).replace("{{time}}",fu(i,t))},_m={p:fu,P:Sm},Em=/^D+$/,Fm=/^Y+$/,Am=["D","DD","YY","YYYY"];function $m(e){return Em.test(e)}function Tm(e){return Fm.test(e)}function Nm(e,t,n){const r=Bm(e,t,n);if(console.warn(r),Am.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 jm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pm=/^'([^]*?)'?$/,Om=/''/g,Mm=/[a-zA-Z]/;function Im(e,t,n){var r,i,o,u;const c=di(),p=c.locale??km,h=c.firstWeekContainsDate??((i=(r=c.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??1,m=c.weekStartsOn??((u=(o=c.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??0,v=$t(e,void 0);if(!Rf(v))throw new RangeError("Invalid time value");let y=t.match(Lm).map(k=>{const x=k[0];if(x==="p"||x==="P"){const C=_m[x];return C(k,p.formatLong)}return k}).join("").match(jm).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const x=k[0];if(x==="'")return{isToken:!1,value:Rm(k)};if(cu[x])return{isToken:!0,value:k};if(x.match(Mm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:k}});p.localize.preprocessor&&(y=p.localize.preprocessor(v,y));const b={firstWeekContainsDate:h,weekStartsOn:m,locale:p};return y.map(k=>{if(!k.isToken)return k.value;const x=k.value;(Tm(x)||$m(x))&&Nm(x,t,String(e));const C=cu[x[0]];return C(v,x,p.localize,b)}).join("")}function Rm(e){const t=e.match(Pm);return t?t[1].replace(Om,"'"):e}function qm(e,t){const n=$t(e,void 0).getDay();return n===0?7:n}const mu={},ha={};function fa(e,t){try{const n=(mu[e]||(mu[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return n in ha?ha[n]:gu(n,n.split(":"))}catch{if(e in ha)return ha[e];const n=e==null?void 0:e.match(Hm);return n?gu(e,n.slice(1)):NaN}}const Hm=/([+-]\d\d):?(\d\d)?/;function gu(e,t){const n=+t[0],r=+(t[1]||0);return ha[e]=n>0?n*60+r:n*60-r}let ma=class Ya extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(fa(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),yu(this),$s(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ya(...n,t):new Ya(Date.now(),t)}withTimeZone(t){return new Ya(+this,t)}getTimezoneOffset(){return-fa(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),$s(this),+this}[Symbol.for("constructDateFrom")](t){return new Ya(+new Date(t),this.timeZone)}};const vu=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!vu.test(e))return;const t=e.replace(vu,"$1UTC");ma.prototype[t]&&(e.startsWith("get")?ma.prototype[e]=function(){return this.internal[t]()}:(ma.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Um(this),+this},ma.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),$s(this),+this}))});function $s(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Um(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),yu(e)}function yu(e){const t=fa(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),i=-new Date(+n).getTimezoneOffset(),o=r-i,u=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&u&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);const c=r-t;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const p=fa(e.timeZone,e),h=-new Date(+e).getTimezoneOffset()-p,m=p!==t,v=h-c;if(m&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const y=fa(e.timeZone,e),b=p-y;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}let hi=class Ja extends ma{static tz(t,...n){return n.length?new Ja(...n,t):new Ja(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),i=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,i]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${i}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,i]=this.tzComponents();return`${t} GMT${n}${r}${i} (${Vm(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),i=String(Math.abs(t)%60).padStart(2,"0");return[n,r,i]}withTimeZone(t){return new Ja(+this,t)}[Symbol.for("constructDateFrom")](t){return new Ja(+new Date(t),this.timeZone)}};function Vm(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}window.pktTz=window.pktTz===void 0?"Europe/Oslo":window.pktTz;const ot=e=>e.toISOString().split("T")[0],Ts=e=>{if(!e)return null;const t=ua(new hi(e,window.pktTz),12);return isNaN(t.getTime())?null:t},Du=(e,t)=>{const n=Ke(e);return isNaN(n.getTime())?"":Im(n,t)},Ke=(e="")=>ua(e===""||!e?new hi(new Date,window.pktTz):new hi(e,window.pktTz),12),An=(e,t,n=1)=>ua(new hi(e,t,n,window.pktTz),12),zm=e=>new Intl.DateTimeFormat("no",{dateStyle:"full",timeZone:window.pktTz}).format(e),Wm="pkt-calendar",Gm={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"}},Ym={"date-selected":{description:"Returns ISO formatted date string"}},Zn={name:Wm,"css-class":"pkt-calendar",props:Gm,events:Ym};var Jm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,Pe=(e,t,n,r)=>{for(var i=r>1?void 0:r?Km(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&&Jm(t,n,i),i};let Le=class extends At{constructor(){super(...arguments),this.multiple=Zn.props.multiple.default,this.maxMultiple=Zn.props.maxMultiple.default,this.range=Zn.props.range.default,this.weeknumbers=Zn.props.weeknumbers.default,this.withcontrols=Zn.props.withcontrols.default,this.selected=[],this.earliest=Zn.props.earliest.default,this.latest=Zn.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.dayStrings=this.strings.dates.daysShort,this.dayStringsLong=this.strings.dates.days,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=[],this.currentmonthtouched=!1,this.tabIndexSet=0}connectedCallback(){super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}attributeChangedCallback(e,t,n){e==="selected"&&n&&this.convertSelected(),super.attributeChangedCallback(e,t,n)}updated(e){e.has("selected")&&this.convertSelected(),super.updated(e)}firstUpdated(e){this.addEventListener("keydown",this.handleKeydown)}convertSelected(){if(typeof this.selected=="string"&&(this.selected=this.selected.split(",")),this.selected.length===1&&this.selected[0]===""&&(this.selected=[]),this._selected=this.selected.map(e=>Ke(e)),this.range&&this.selected.length===2){const e=Fs({start:Ke(this.selected[0]),end:Ke(this.selected[1])});if(this.inRange={},Array.isArray(e)&&e.length){const t={};for(let n=0;n<e.length;n++)t[ot(e[n])]=this.isInRange(e[n]);this.inRange=t}}this.setCurrentMonth()}setCurrentMonth(){if(this.currentmonth===null&&!this.currentmonthtouched){this.currentmonthtouched=!0;return}this.selected.length&&this.selected[0]!==""?this.currentmonth=Ke(this.selected[this.selected.length-1]):this.currentmonth===null&&(this.currentmonth=Ke()),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth()}handleKeydown(e){switch(e.key){case"ArrowLeft":this.handleArrowKey(e,-1);break;case"ArrowRight":this.handleArrowKey(e,1);break;case"ArrowUp":this.handleArrowKey(e,-7);break;case"ArrowDown":this.handleArrowKey(e,7);break}}handleArrowKey(e,t){var n,r,i;if(((n=e.target)==null?void 0:n.nodeName)==="INPUT"||((r=e.target)==null?void 0:r.nodeName)==="SELECT"||((i=e.target)==null?void 0:i.nodeName)==="BUTTON")return;e.preventDefault(),this.focusedDate||this.focusOnCurrentDate();const o=this.focusedDate?Ke(this.focusedDate):An(this.year,this.month,1);let u=Es(o,t);if(u){let c=this.querySelector(`div[data-date="${ot(u)}"]`);if(c instanceof HTMLDivElement){if(c.dataset.disabled){u=Es(u,t);let p=this.querySelector(`div[data-date="${ot(u)}"]`);for(;p&&p instanceof HTMLDivElement&&p.dataset.disabled;)u=Es(u,t),p=this.querySelector(`div[data-date="${ot(u)}"]`);c=p}c instanceof HTMLDivElement&&!c.dataset.disabled&&(this.focusedDate=ot(u),c.focus())}}}render(){return Y`
|
|
154
154
|
<div
|
|
155
|
-
class="pkt-calendar ${this.weeknumbers?"pkt-cal-weeknumbers":
|
|
155
|
+
class="pkt-calendar ${this.weeknumbers?"pkt-cal-weeknumbers":ae}"
|
|
156
156
|
@focusout=${this.closeEvent}
|
|
157
157
|
@keydown=${e=>{e.key==="Escape"&&(e.preventDefault(),this.close())}}
|
|
158
158
|
>
|
|
@@ -163,7 +163,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
163
163
|
@click=${this.isPrevMonthAllowed()&&this.prevMonth}
|
|
164
164
|
@keydown=${e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.isNextMonthAllowed()&&this.prevMonth())}}
|
|
165
165
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only ${this.isPrevMonthAllowed()?"":"pkt-hide"}"
|
|
166
|
-
.data-disabled=${this.isPrevMonthAllowed()?
|
|
166
|
+
.data-disabled=${this.isPrevMonthAllowed()?ae:"disabled"}
|
|
167
167
|
?aria-disabled=${!this.isPrevMonthAllowed()}
|
|
168
168
|
tabindex=${this.isPrevMonthAllowed()?"0":"-1"}
|
|
169
169
|
>
|
|
@@ -178,7 +178,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
178
178
|
@click=${this.isNextMonthAllowed()&&this.nextMonth}
|
|
179
179
|
@keydown=${e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.isNextMonthAllowed()&&this.nextMonth())}}
|
|
180
180
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only ${this.isNextMonthAllowed()?"":"pkt-hide"}"
|
|
181
|
-
.data-disabled=${this.isNextMonthAllowed()?
|
|
181
|
+
.data-disabled=${this.isNextMonthAllowed()?ae:"disabled"}
|
|
182
182
|
?aria-disabled=${!this.isNextMonthAllowed()}
|
|
183
183
|
tabindex=${this.isNextMonthAllowed()?"0":"-1"}
|
|
184
184
|
>
|
|
@@ -200,9 +200,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
200
200
|
</tbody>
|
|
201
201
|
</table>
|
|
202
202
|
</div>
|
|
203
|
-
`}renderDayNames(){const e=[];this.weeknumbers&&e.push(
|
|
203
|
+
`}renderDayNames(){const e=[];this.weeknumbers&&e.push(Y`<th><div>${this.weekString}</div></th>`);for(let t=0;t<this.dayStrings.length;t++)e.push(Y`<th><div aria-label="${this.dayStringsLong[t]}">${this.dayStrings[t]}</div></th>`);return Y`<tr class="pkt-cal-week-row">
|
|
204
204
|
${e}
|
|
205
|
-
</tr>`}renderMonthNav(){let e=[];return this.withcontrols?e.push(
|
|
205
|
+
</tr>`}renderMonthNav(){let e=[];return this.withcontrols?e.push(Y`<div class="pkt-cal-month-picker">
|
|
206
206
|
<label for="${this.id}-monthnav" class="pkt-hide">${this.strings.dates.month}</label>
|
|
207
207
|
<select
|
|
208
208
|
aria-label="${this.strings.dates.month}"
|
|
@@ -210,7 +210,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
210
210
|
id="${this.id}-monthnav"
|
|
211
211
|
@change=${t=>{this.changeMonth(this.year,t.target.value)}}
|
|
212
212
|
>
|
|
213
|
-
${this.monthStrings.map((t,n)=>
|
|
213
|
+
${this.monthStrings.map((t,n)=>Y`<option value=${n} ?selected=${this.month===n}>${t}</option>`)}
|
|
214
214
|
</select>
|
|
215
215
|
<label for="${this.id}-yearnav" class="pkt-hide">${this.strings.dates.year}</label>
|
|
216
216
|
<input
|
|
@@ -223,9 +223,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
223
223
|
@change=${t=>{this.changeMonth(t.target.value,this.month)}}
|
|
224
224
|
.value=${this.year}
|
|
225
225
|
/>
|
|
226
|
-
</div> `):e.push(
|
|
226
|
+
</div> `):e.push(Y`<div class="pkt-txt-16-medium" aria-live="polite">
|
|
227
227
|
${this.monthStrings[this.month]} ${this.year}
|
|
228
|
-
</div>`),e}renderDayView(e,t,n){var r;const i=An(this.year,this.month,e),o=ot(i),u=o===ot(t),c=this.selected.includes(o),p=zm(i),h=this.isExcluded(n,i)||!c&&this.multiple&&this.maxMultiple>0&&this.selected.length>=this.maxMultiple,m=this.focusedDate?this.focusedDate===o&&!h?"0":"-1":!h&&this.tabIndexSet===0||this.tabIndexSet===e?"0":"-1";m==="0"&&(this.tabIndexSet=e),this.selectableDates.push({currentDateISO:o,isDisabled:h,tabindex:m});const v={"pkt-cal-today":u,"pkt-cal-selected":c,"pkt-cal-in-range":this.inRange[o],"pkt-cal-excluded":this.isExcluded(n,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===ot(this.rangeHovered)};return
|
|
228
|
+
</div>`),e}renderDayView(e,t,n){var r;const i=An(this.year,this.month,e),o=ot(i),u=o===ot(t),c=this.selected.includes(o),p=zm(i),h=this.isExcluded(n,i)||!c&&this.multiple&&this.maxMultiple>0&&this.selected.length>=this.maxMultiple,m=this.focusedDate?this.focusedDate===o&&!h?"0":"-1":!h&&this.tabIndexSet===0||this.tabIndexSet===e?"0":"-1";m==="0"&&(this.tabIndexSet=e),this.selectableDates.push({currentDateISO:o,isDisabled:h,tabindex:m});const v={"pkt-cal-today":u,"pkt-cal-selected":c,"pkt-cal-in-range":this.inRange[o],"pkt-cal-excluded":this.isExcluded(n,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===ot(this.rangeHovered)};return Y`<td class=${We(v)}>
|
|
229
229
|
<div
|
|
230
230
|
?aria-selected=${c}
|
|
231
231
|
role="gridcell"
|
|
@@ -234,68 +234,68 @@ React keys must be passed directly to JSX without using spread:
|
|
|
234
234
|
@focus=${()=>{this.range&&!this.isExcluded(n,i)&&this.handleRangeHover(i),this.focusedDate=o}}
|
|
235
235
|
aria-label="${p}"
|
|
236
236
|
tabindex=${(r=this.selectableDates.find(y=>y.currentDateISO===o))==null?void 0:r.tabindex}
|
|
237
|
-
data-disabled=${h?"disabled":
|
|
237
|
+
data-disabled=${h?"disabled":ae}
|
|
238
238
|
data-date=${o}
|
|
239
239
|
@keydown=${y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),this.handleDateSelect(i))}}
|
|
240
240
|
@click=${y=>{h||(y.preventDefault(),this.handleDateSelect(i))}}
|
|
241
241
|
>
|
|
242
242
|
<span class="pkt-btn__text pkt-txt-14-light">${e}</span>
|
|
243
243
|
</div>
|
|
244
|
-
</td>`}renderCalendarBody(){const e=Ke(),t=An(this.year,this.month,1),n=An(this.year,this.month+1,0),r=(t.getDay()+6)%7,i=n.getDate(),o=Math.ceil((i+r)/7),u=An(this.year,this.month,0).getDate();let c=1;this.week=uu(An(this.year,this.month,1));const p=[];for(let h=0;h<o;h++){const m=[];this.weeknumbers&&m.push(
|
|
244
|
+
</td>`}renderCalendarBody(){const e=Ke(),t=An(this.year,this.month,1),n=An(this.year,this.month+1,0),r=(t.getDay()+6)%7,i=n.getDate(),o=Math.ceil((i+r)/7),u=An(this.year,this.month,0).getDate();let c=1;this.week=uu(An(this.year,this.month,1));const p=[];for(let h=0;h<o;h++){const m=[];this.weeknumbers&&m.push(Y`<td class="pkt-cal-week">${this.week}</td>`),this.week++;for(let v=1;v<8;v++)if(h===0&&v<r+1){const y=u-(r-v);m.push(Y`<td class="pkt-cal-other">
|
|
245
245
|
<div
|
|
246
246
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
|
|
247
247
|
data-disabled="disabled"
|
|
248
248
|
>
|
|
249
249
|
<span class="pkt-btn__text pkt-txt-14-light">${y}</span>
|
|
250
250
|
</div>
|
|
251
|
-
</td>`)}else c>i?(m.push(
|
|
251
|
+
</td>`)}else c>i?(m.push(Y`<td class="pkt-cal-other">
|
|
252
252
|
<div
|
|
253
253
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
|
|
254
254
|
data-disabled="disabled"
|
|
255
255
|
>
|
|
256
256
|
<span class="pkt-btn__text pkt-txt-14-light">${c-i}</span>
|
|
257
257
|
</div>
|
|
258
|
-
</td>`),c++):(m.push(this.renderDayView(c,e,v)),c++);p.push(
|
|
258
|
+
</td>`),c++):(m.push(this.renderDayView(c,e,v)),c++);p.push(Y`<tr class="pkt-cal-week-row" role="row">
|
|
259
259
|
${m}
|
|
260
|
-
</tr>`)}return p}isExcluded(e,t){return this.excludeweekdays.includes(e.toString())||this.earliest&&ua(t,1)<Ke(this.earliest)||this.latest&&ua(t,-1)>Ke(this.latest)?!0:this.excludedates.some(n=>typeof n=="string"?n===ot(t):n.toDateString()===t.toDateString())}isPrevMonthAllowed(){const e=An(this.year,this.month,0);return!(this.earliest&&Ke(this.earliest)>e)}prevMonth(){const e=this.month===0?11:this.month-1,t=this.month===0?this.year-1:this.year;this.changeMonth(t,e)}isNextMonthAllowed(){const e=An(this.month===11?this.year+1:this.year,this.month===11?0:this.month+1,1);return!(this.latest&&Ke(this.latest)<e)}nextMonth(){const e=this.month===11?0:this.month+1,t=this.month===11?this.year+1:this.year;this.changeMonth(t,e)}changeMonth(e,t){this.year=e,this.month=t,this.tabIndexSet=0,this.focusedDate=null,this.selectableDates=[],this.requestUpdate()}isInRange(e){if(this.range&&this.selected.length===2){if(e>Ke(this.selected[0])&&e<Ke(this.selected[1]))return!0}else if(this.range&&this.selected.length===1&&this.rangeHovered&&e>Ke(this.selected[0])&&e<this.rangeHovered)return!0;return!1}isRangeAllowed(e){let t=!0;if(this._selected.length===1){const n=Fs({start:this._selected[0],end:e});if(Array.isArray(n)&&n.length)for(let r=0;r<n.length;r++)this.excludedates.forEach(i=>{i>this._selected[0]&&i<e&&(t=!1)}),this.excludeweekdays.includes(qm(n[r]).toString())&&(t=!1)}return t}emptySelected(){this.selected=[],this._selected=[],this.inRange={}}addToSelected(e){this.selected.includes(ot(e))||(this.selected=[...this.selected,ot(e)],this._selected=[...this._selected,e],this.range&&this.selected.length===2&&this.close())}removeFromSelected(e){if(this.selected.length===1)this.emptySelected();else{const t=this.selected.indexOf(ot(e)),n=[...this.selected],r=[...this._selected];n.splice(t,1),r.splice(t,1),this.selected=n,this._selected=r}}toggleSelected(e){const t=ot(e);this.selected.includes(t)?this.removeFromSelected(e):this.maxMultiple&&this.selected.length>=this.maxMultiple||this.addToSelected(e)}handleRangeSelect(e){const t=ot(e);return this.selected.includes(t)?this.selected.indexOf(t)===0?this.emptySelected():this.removeFromSelected(e):this.selected.length>1?(this.emptySelected(),this.addToSelected(e)):(this.selected.length===1&&!this.isRangeAllowed(e)&&this.emptySelected(),this.selected.length===1&&this._selected[0]>e&&this.emptySelected(),this.addToSelected(e)),Promise.resolve()}handleRangeHover(e){if(this.range&&this._selected.length===1&&this.isRangeAllowed(e)&&this._selected[0]<e){this.rangeHovered=e,this.inRange={};const t=Fs({start:this._selected[0],end:e});if(Array.isArray(t)&&t.length)for(let n=0;n<t.length;n++)this.inRange[ot(t[n])]=this.isInRange(t[n])}else this.rangeHovered=null}handleDateSelect(e){if(e)return this.range?this.handleRangeSelect(e):this.multiple?this.toggleSelected(e):(this.selected.includes(ot(e))?this.emptySelected():(this.emptySelected(),this.addToSelected(e)),this.close()),this.dispatchEvent(new CustomEvent("date-selected",{detail:this.selected,bubbles:!0,composed:!0})),Promise.resolve()}focusOnCurrentDate(){const e=ot(Ke()),t=this.querySelector(`div[data-date="${e}"]`);if(t instanceof HTMLDivElement)this.focusedDate=e,t.focus();else{const n=this.selectableDates.find(r=>!r.isDisabled);if(n){const r=this.querySelector(`div[data-date="${n.currentDateISO}"]`);r instanceof HTMLDivElement&&(this.focusedDate=n.currentDateISO,r.focus())}}}closeEvent(e){!this.contains(e.relatedTarget)&&!e.target.classList.contains("pkt-hide")&&this.close()}close(){this.dispatchEvent(new CustomEvent("close",{detail:!0,bubbles:!0,composed:!0}))}};Pe([j({type:Boolean})],Le.prototype,"multiple",2),Pe([j({type:Number})],Le.prototype,"maxMultiple",2),Pe([j({type:Boolean})],Le.prototype,"range",2),Pe([j({type:Boolean})],Le.prototype,"weeknumbers",2),Pe([j({type:Boolean})],Le.prototype,"withcontrols",2),Pe([j({converter:wr.csvToArray})],Le.prototype,"selected",2),Pe([j({type:String})],Le.prototype,"earliest",2),Pe([j({type:String})],Le.prototype,"latest",2),Pe([j({converter:wr.stringsToDate})],Le.prototype,"excludedates",2),Pe([j({converter:wr.csvToArray})],Le.prototype,"excludeweekdays",2),Pe([j({converter:wr.stringToDate})],Le.prototype,"currentmonth",2),Pe([j({type:Array})],Le.prototype,"dayStrings",2),Pe([j({type:Array})],Le.prototype,"dayStringsLong",2),Pe([j({type:Array})],Le.prototype,"monthStrings",2),Pe([j({type:String})],Le.prototype,"weekString",2),Pe([j({type:String})],Le.prototype,"prevMonthString",2),Pe([j({type:String})],Le.prototype,"nextMonthString",2),Pe([j({type:Array})],Le.prototype,"_selected",2),Pe([j({type:Number})],Le.prototype,"year",2),Pe([j({type:Number})],Le.prototype,"month",2),Pe([j({type:Number})],Le.prototype,"week",2),Pe([j({type:Date})],Le.prototype,"rangeHovered",2),Pe([Pt()],Le.prototype,"inRange",2),Pe([Pt()],Le.prototype,"focusedDate",2),Pe([Pt()],Le.prototype,"selectableDates",2),Pe([Pt()],Le.prototype,"currentmonthtouched",2),Pe([Pt()],Le.prototype,"tabIndexSet",2),Le=Pe([Ot("pkt-calendar")],Le);const Zm="pkt-tag",Xm=!0,Qm={closeTag:{type:"boolean",required:!1,default:!1},size:{required:!1,default:"medium",type:["small","medium","large"]},iconName:{type:"icon",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:"Lukk"}},eg={default:{description:"Teksten til tag"}},xr={name:Zm,"css-class":"pkt-tag",isElement:Xm,props:Qm,slots:eg};var tg=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,pn=(e,t,n,r)=>{for(var i=r>1?void 0:r?ng(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&&tg(t,n,i),i};let Kt=class extends At{constructor(){super(),this.defaultSlot=yt(),this.closeTag=xr.props.closeTag.default,this.size=xr.props.size.default,this.skin=xr.props.skin.default,this.textStyle=xr.props.textStyle.default,this.iconName=void 0,this.type=xr.props.type.default,this.ariaLabel=xr.props.ariaLabel.default,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:t},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new cn(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,"pkt-hide":this._isClosed};return this.closeTag?
|
|
260
|
+
</tr>`)}return p}isExcluded(e,t){return this.excludeweekdays.includes(e.toString())||this.earliest&&ua(t,1)<Ke(this.earliest)||this.latest&&ua(t,-1)>Ke(this.latest)?!0:this.excludedates.some(n=>typeof n=="string"?n===ot(t):n.toDateString()===t.toDateString())}isPrevMonthAllowed(){const e=An(this.year,this.month,0);return!(this.earliest&&Ke(this.earliest)>e)}prevMonth(){const e=this.month===0?11:this.month-1,t=this.month===0?this.year-1:this.year;this.changeMonth(t,e)}isNextMonthAllowed(){const e=An(this.month===11?this.year+1:this.year,this.month===11?0:this.month+1,1);return!(this.latest&&Ke(this.latest)<e)}nextMonth(){const e=this.month===11?0:this.month+1,t=this.month===11?this.year+1:this.year;this.changeMonth(t,e)}changeMonth(e,t){this.year=e,this.month=t,this.tabIndexSet=0,this.focusedDate=null,this.selectableDates=[],this.requestUpdate()}isInRange(e){if(this.range&&this.selected.length===2){if(e>Ke(this.selected[0])&&e<Ke(this.selected[1]))return!0}else if(this.range&&this.selected.length===1&&this.rangeHovered&&e>Ke(this.selected[0])&&e<this.rangeHovered)return!0;return!1}isRangeAllowed(e){let t=!0;if(this._selected.length===1){const n=Fs({start:this._selected[0],end:e});if(Array.isArray(n)&&n.length)for(let r=0;r<n.length;r++)this.excludedates.forEach(i=>{i>this._selected[0]&&i<e&&(t=!1)}),this.excludeweekdays.includes(qm(n[r]).toString())&&(t=!1)}return t}emptySelected(){this.selected=[],this._selected=[],this.inRange={}}addToSelected(e){this.selected.includes(ot(e))||(this.selected=[...this.selected,ot(e)],this._selected=[...this._selected,e],this.range&&this.selected.length===2&&this.close())}removeFromSelected(e){if(this.selected.length===1)this.emptySelected();else{const t=this.selected.indexOf(ot(e)),n=[...this.selected],r=[...this._selected];n.splice(t,1),r.splice(t,1),this.selected=n,this._selected=r}}toggleSelected(e){const t=ot(e);this.selected.includes(t)?this.removeFromSelected(e):this.maxMultiple&&this.selected.length>=this.maxMultiple||this.addToSelected(e)}handleRangeSelect(e){const t=ot(e);return this.selected.includes(t)?this.selected.indexOf(t)===0?this.emptySelected():this.removeFromSelected(e):this.selected.length>1?(this.emptySelected(),this.addToSelected(e)):(this.selected.length===1&&!this.isRangeAllowed(e)&&this.emptySelected(),this.selected.length===1&&this._selected[0]>e&&this.emptySelected(),this.addToSelected(e)),Promise.resolve()}handleRangeHover(e){if(this.range&&this._selected.length===1&&this.isRangeAllowed(e)&&this._selected[0]<e){this.rangeHovered=e,this.inRange={};const t=Fs({start:this._selected[0],end:e});if(Array.isArray(t)&&t.length)for(let n=0;n<t.length;n++)this.inRange[ot(t[n])]=this.isInRange(t[n])}else this.rangeHovered=null}handleDateSelect(e){if(e)return this.range?this.handleRangeSelect(e):this.multiple?this.toggleSelected(e):(this.selected.includes(ot(e))?this.emptySelected():(this.emptySelected(),this.addToSelected(e)),this.close()),this.dispatchEvent(new CustomEvent("date-selected",{detail:this.selected,bubbles:!0,composed:!0})),Promise.resolve()}focusOnCurrentDate(){const e=ot(Ke()),t=this.querySelector(`div[data-date="${e}"]`);if(t instanceof HTMLDivElement)this.focusedDate=e,t.focus();else{const n=this.selectableDates.find(r=>!r.isDisabled);if(n){const r=this.querySelector(`div[data-date="${n.currentDateISO}"]`);r instanceof HTMLDivElement&&(this.focusedDate=n.currentDateISO,r.focus())}}}closeEvent(e){!this.contains(e.relatedTarget)&&!e.target.classList.contains("pkt-hide")&&this.close()}close(){this.dispatchEvent(new CustomEvent("close",{detail:!0,bubbles:!0,composed:!0}))}};Pe([j({type:Boolean})],Le.prototype,"multiple",2),Pe([j({type:Number})],Le.prototype,"maxMultiple",2),Pe([j({type:Boolean})],Le.prototype,"range",2),Pe([j({type:Boolean})],Le.prototype,"weeknumbers",2),Pe([j({type:Boolean})],Le.prototype,"withcontrols",2),Pe([j({converter:wr.csvToArray})],Le.prototype,"selected",2),Pe([j({type:String})],Le.prototype,"earliest",2),Pe([j({type:String})],Le.prototype,"latest",2),Pe([j({converter:wr.stringsToDate})],Le.prototype,"excludedates",2),Pe([j({converter:wr.csvToArray})],Le.prototype,"excludeweekdays",2),Pe([j({converter:wr.stringToDate})],Le.prototype,"currentmonth",2),Pe([j({type:Array})],Le.prototype,"dayStrings",2),Pe([j({type:Array})],Le.prototype,"dayStringsLong",2),Pe([j({type:Array})],Le.prototype,"monthStrings",2),Pe([j({type:String})],Le.prototype,"weekString",2),Pe([j({type:String})],Le.prototype,"prevMonthString",2),Pe([j({type:String})],Le.prototype,"nextMonthString",2),Pe([j({type:Array})],Le.prototype,"_selected",2),Pe([j({type:Number})],Le.prototype,"year",2),Pe([j({type:Number})],Le.prototype,"month",2),Pe([j({type:Number})],Le.prototype,"week",2),Pe([j({type:Date})],Le.prototype,"rangeHovered",2),Pe([Pt()],Le.prototype,"inRange",2),Pe([Pt()],Le.prototype,"focusedDate",2),Pe([Pt()],Le.prototype,"selectableDates",2),Pe([Pt()],Le.prototype,"currentmonthtouched",2),Pe([Pt()],Le.prototype,"tabIndexSet",2),Le=Pe([Ot("pkt-calendar")],Le);const Zm="pkt-tag",Xm=!0,Qm={closeTag:{type:"boolean",required:!1,default:!1},size:{required:!1,default:"medium",type:["small","medium","large"]},iconName:{type:"icon",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:"Lukk"}},eg={default:{description:"Teksten til tag"}},xr={name:Zm,"css-class":"pkt-tag",isElement:Xm,props:Qm,slots:eg};var tg=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,pn=(e,t,n,r)=>{for(var i=r>1?void 0:r?ng(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&&tg(t,n,i),i};let Kt=class extends At{constructor(){super(),this.defaultSlot=yt(),this.closeTag=xr.props.closeTag.default,this.size=xr.props.size.default,this.skin=xr.props.skin.default,this.textStyle=xr.props.textStyle.default,this.iconName=void 0,this.type=xr.props.type.default,this.ariaLabel=xr.props.ariaLabel.default,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:t},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new cn(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,"pkt-hide":this._isClosed};return this.closeTag?Y`
|
|
261
261
|
<button
|
|
262
262
|
class=${We(n)}
|
|
263
263
|
type=${this.type}
|
|
264
264
|
aria-label=${this.ariaLabel}
|
|
265
265
|
@click=${this.close}
|
|
266
266
|
>
|
|
267
|
-
${this.iconName&&
|
|
267
|
+
${this.iconName&&Y`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
|
|
268
268
|
<span ${tt(this.defaultSlot)}></span>
|
|
269
269
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
270
270
|
</button>
|
|
271
|
-
`:
|
|
271
|
+
`:Y`
|
|
272
272
|
<span class=${We(t)}>
|
|
273
|
-
${this.iconName&&
|
|
273
|
+
${this.iconName&&Y` <pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon> `}
|
|
274
274
|
<span ${tt(this.defaultSlot)}></span>
|
|
275
275
|
</span>
|
|
276
|
-
`}};pn([j({type:Boolean,reflect:!0})],Kt.prototype,"closeTag",2),pn([j({type:String,reflect:!0})],Kt.prototype,"size",2),pn([j({type:String,reflect:!0})],Kt.prototype,"skin",2),pn([j({type:String,reflect:!0})],Kt.prototype,"textStyle",2),pn([j({type:String,reflect:!0})],Kt.prototype,"iconName",2),pn([j({type:String,reflect:!0})],Kt.prototype,"type",2),pn([j({type:String,reflect:!0})],Kt.prototype,"ariaLabel",2),pn([Pt()],Kt.prototype,"_isClosed",2),Kt=pn([Ot("pkt-tag")],Kt);const rg="pkt-card",ag=!0,ig={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},tags:{type:"array",description:"Liste av tags på kortet. Tar inn en array med 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:"icon",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:!0}}}},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",name:"Bilde",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.",properties:{src:{type:"string",description:"Bilde på kortet",required:!0},alt:{type:"string",description:"Tekst for aria-label",required:!0}}}},sg={default:{description:"Innholdet i kortet"}},bu={name:rg,"css-class":"pkt-card",isElement:ag,props:ig,slots:sg};var og=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,Xn=(e,t,n,r)=>{for(var i=r>1?void 0:r?lg(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&&og(t,n,i),i};let hn=class extends At{constructor(){super(),this.defaultSlot=yt(),this.skin=bu.props.skin.default,this.direction=bu.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new cn(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){const t={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction};return
|
|
276
|
+
`}};pn([j({type:Boolean,reflect:!0})],Kt.prototype,"closeTag",2),pn([j({type:String,reflect:!0})],Kt.prototype,"size",2),pn([j({type:String,reflect:!0})],Kt.prototype,"skin",2),pn([j({type:String,reflect:!0})],Kt.prototype,"textStyle",2),pn([j({type:String,reflect:!0})],Kt.prototype,"iconName",2),pn([j({type:String,reflect:!0})],Kt.prototype,"type",2),pn([j({type:String,reflect:!0})],Kt.prototype,"ariaLabel",2),pn([Pt()],Kt.prototype,"_isClosed",2),Kt=pn([Ot("pkt-tag")],Kt);const rg="pkt-card",ag=!0,ig={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},tags:{type:"array",description:"Liste av tags på kortet. Tar inn en array med 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:"icon",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:!0}}}},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",name:"Bilde",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.",properties:{src:{type:"string",description:"Bilde på kortet",required:!0},alt:{type:"string",description:"Tekst for aria-label",required:!0}}}},sg={default:{description:"Innholdet i kortet"}},bu={name:rg,"css-class":"pkt-card",isElement:ag,props:ig,slots:sg};var og=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,Xn=(e,t,n,r)=>{for(var i=r>1?void 0:r?lg(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&&og(t,n,i),i};let hn=class extends At{constructor(){super(),this.defaultSlot=yt(),this.skin=bu.props.skin.default,this.direction=bu.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new cn(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){const t={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction};return Y`
|
|
277
277
|
<div class=${We(t)}>
|
|
278
|
-
${this.image.src&&
|
|
278
|
+
${this.image.src&&Y`
|
|
279
279
|
<div class="pkt-card__image">
|
|
280
280
|
<img src=${this.image.src} alt=${this.image.alt||""} />
|
|
281
281
|
</div>
|
|
282
282
|
`}
|
|
283
283
|
<div class="pkt-card__wrapper">
|
|
284
|
-
${this.tags.length>0?
|
|
284
|
+
${this.tags.length>0?Y`
|
|
285
285
|
<div class="pkt-card__tags">
|
|
286
|
-
${this.tags.map(n=>
|
|
286
|
+
${this.tags.map(n=>Y`
|
|
287
287
|
<pkt-tag textStyle="normal-text" size="medium" skin=${n.skin}>
|
|
288
288
|
${n.text}
|
|
289
289
|
</pkt-tag>
|
|
290
290
|
`)}
|
|
291
291
|
</div>
|
|
292
|
-
`:
|
|
293
|
-
${this.heading&&
|
|
294
|
-
${this.subheading&&
|
|
295
|
-
${this.defaultSlot&&
|
|
292
|
+
`:ae}
|
|
293
|
+
${this.heading&&Y`<h3 class="pkt-txt-30-medium">${this.heading}</h3>`}
|
|
294
|
+
${this.subheading&&Y`<p class="pkt-txt-20-light">${this.subheading}</p>`}
|
|
295
|
+
${this.defaultSlot&&Y`<div class="pkt-card__content" ${tt(this.defaultSlot)}></div>`}
|
|
296
296
|
</div>
|
|
297
297
|
</div>
|
|
298
|
-
`}};Xn([j({type:String,reflect:!0})],hn.prototype,"skin",2),Xn([j({type:String,reflect:!0})],hn.prototype,"direction",2),Xn([j({type:Object,reflect:!0})],hn.prototype,"image",2),Xn([j({type:String,reflect:!0})],hn.prototype,"heading",2),Xn([j({type:String,reflect:!0})],hn.prototype,"subheading",2),Xn([j({type:Array,reflect:!0})],hn.prototype,"tags",2),hn=Xn([Ot("pkt-card")],hn);var ug=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,ga=(e,t,n,r)=>{for(var i=r>1?void 0:r?cg(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&&ug(t,n,i),i};let Sr=class extends At{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=yt(),this.namedSlot=yt(),this.slotController=new cn(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(t=>{this._list.push(t.toUpperCase())}),super.connectedCallback()}render(){const t={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return
|
|
298
|
+
`}};Xn([j({type:String,reflect:!0})],hn.prototype,"skin",2),Xn([j({type:String,reflect:!0})],hn.prototype,"direction",2),Xn([j({type:Object,reflect:!0})],hn.prototype,"image",2),Xn([j({type:String,reflect:!0})],hn.prototype,"heading",2),Xn([j({type:String,reflect:!0})],hn.prototype,"subheading",2),Xn([j({type:Array,reflect:!0})],hn.prototype,"tags",2),hn=Xn([Ot("pkt-card")],hn);var ug=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,ga=(e,t,n,r)=>{for(var i=r>1?void 0:r?cg(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&&ug(t,n,i),i};let Sr=class extends At{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=yt(),this.namedSlot=yt(),this.slotController=new cn(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(t=>{this._list.push(t.toUpperCase())}),super.connectedCallback()}render(){const t={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return Y`
|
|
299
299
|
<div class="${We(t)}">
|
|
300
300
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
301
301
|
|
|
@@ -319,15 +319,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
319
319
|
Si ${Gt.example.hi}
|
|
320
320
|
</button>
|
|
321
321
|
</div>
|
|
322
|
-
`}renderList(t){return
|
|
322
|
+
`}renderList(t){return Y`
|
|
323
323
|
<ul>
|
|
324
|
-
${t.map(n=>
|
|
324
|
+
${t.map(n=>Y`<li>${n}</li>`)}
|
|
325
325
|
</ul>
|
|
326
|
-
`}doStuff(t){return t.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};ga([j({type:String})],Sr.prototype,"string",2),ga([j({converter:tu})],Sr.prototype,"strings",2),ga([j({type:Boolean})],Sr.prototype,"darkmode",2),ga([j({type:Array})],Sr.prototype,"_list",2),Sr=ga([Ot("pkt-component")],Sr);var dg=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,_r=(e,t,n,r)=>{for(var i=r>1?void 0:r?pg(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&&dg(t,n,i),i};let Qn=class extends At{constructor(){super(),this.forId=ws(),this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Ft.props.helptextDropdownButton.default,this.isHelpTextOpen=!1}render(){const t=()=>{this.dispatchEvent(new CustomEvent("toggleHelpText",{bubbles:!0,detail:{isOpen:!this.isHelpTextOpen}})),this.isHelpTextOpen=!this.isHelpTextOpen},n={"pkt-inputwrapper__helptext":!0,"pkt-inputwrapper__helptext-expandable-open":this.isHelpTextOpen,"pkt-inputwrapper__helptext-expandable-closed":!this.isHelpTextOpen};return
|
|
327
|
-
${this.helptext?
|
|
326
|
+
`}doStuff(t){return t.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};ga([j({type:String})],Sr.prototype,"string",2),ga([j({converter:tu})],Sr.prototype,"strings",2),ga([j({type:Boolean})],Sr.prototype,"darkmode",2),ga([j({type:Array})],Sr.prototype,"_list",2),Sr=ga([Ot("pkt-component")],Sr);var dg=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,_r=(e,t,n,r)=>{for(var i=r>1?void 0:r?pg(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&&dg(t,n,i),i};let Qn=class extends At{constructor(){super(),this.forId=ws(),this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Ft.props.helptextDropdownButton.default,this.isHelpTextOpen=!1}render(){const t=()=>{this.dispatchEvent(new CustomEvent("toggleHelpText",{bubbles:!0,detail:{isOpen:!this.isHelpTextOpen}})),this.isHelpTextOpen=!this.isHelpTextOpen},n={"pkt-inputwrapper__helptext":!0,"pkt-inputwrapper__helptext-expandable-open":this.isHelpTextOpen,"pkt-inputwrapper__helptext-expandable-closed":!this.isHelpTextOpen};return Y`${this.helptext||this.helptextDropdown?Y`<div>
|
|
327
|
+
${this.helptext?Y`<div class="pkt-inputwrapper__helptext" id="${this.forId}-helptext">
|
|
328
328
|
${li(this.helptext)}
|
|
329
|
-
</div>`:
|
|
330
|
-
${this.helptextDropdown?
|
|
329
|
+
</div>`:ae}
|
|
330
|
+
${this.helptextDropdown?Y`<div class="pkt-inputwrapper__helptext-expandable">
|
|
331
331
|
<button
|
|
332
332
|
class="pkt-link pkt-link--icon-right pkt-btn pkt-btn--small pkt-btn--tertiary pkt-btn--icon-right"
|
|
333
333
|
type="button"
|
|
@@ -342,54 +342,54 @@ React keys must be passed directly to JSX without using spread:
|
|
|
342
342
|
<div class="${We(n)}">
|
|
343
343
|
${li(this.helptextDropdown)}
|
|
344
344
|
</div>
|
|
345
|
-
</div>`:
|
|
346
|
-
</div>`:
|
|
345
|
+
</div>`:ae}
|
|
346
|
+
</div>`:ae}`}};_r([j({type:String,reflect:!0})],Qn.prototype,"forId",2),_r([j({type:String,reflect:!0})],Qn.prototype,"helptext",2),_r([j({type:String,reflect:!0})],Qn.prototype,"helptextDropdown",2),_r([j({type:String,reflect:!0})],Qn.prototype,"helptextDropdownButton",2),_r([Pt()],Qn.prototype,"isHelpTextOpen",2),Qn=_r([Ot("pkt-helptext")],Qn);/**
|
|
347
347
|
* @license
|
|
348
348
|
* Copyright 2020 Google LLC
|
|
349
349
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
350
350
|
*/const hg=Symbol.for(""),Ns=(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
|
|
351
|
-
take care to ensure page security.`)})(r)+e[i+1],e[0]),r:hg});var fg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,Ze=(e,t,n,r)=>{for(var i=r>1?void 0:r?mg(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&&fg(t,n,i),i};let Ye=class extends At{constructor(){super(),this.defaultSlot=yt(),this.forId=ws(),this.label=Ft.props.label.default,this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Ft.props.helptextDropdownButton.default,this.counter=Ft.props.counter.default,this.counterCurrent=0,this.counterMaxLength=0,this.optionalTag=Ft.props.optionalTag.default,this.optionalText=Ft.props.optionalText.default,this.requiredTag=Ft.props.requiredTag.default,this.requiredText=Ft.props.requiredText.default,this.hasError=Ft.props.hasError.default,this.errorMessage="",this.disabled=Ft.props.disabled.default,this.inline=Ft.props.inline.default,this.ariaDescribedby=void 0,this.hasFieldset=Ft.props.hasFieldset.default,this.useWrapper=Ft.props.useWrapper.default,this.wrapperType=this.useWrapper?Ns`fieldset`:this.hasDropdown?Ns`div`:Ns`label`,this.slotController=new cn(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={"pkt-inputwrapper__label":!0,"pkt-inputwrapper__fieldset":this.hasFieldset,"pkt-inputwrapper__legend":this.hasFieldset},o=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:
|
|
352
|
-
>${this.optionalTag?this.optionalText:this.requiredTag?this.requiredText:
|
|
353
|
-
>`:
|
|
351
|
+
take care to ensure page security.`)})(r)+e[i+1],e[0]),r:hg});var fg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,Ze=(e,t,n,r)=>{for(var i=r>1?void 0:r?mg(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&&fg(t,n,i),i};let Ye=class extends At{constructor(){super(),this.defaultSlot=yt(),this.forId=ws(),this.label=Ft.props.label.default,this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Ft.props.helptextDropdownButton.default,this.counter=Ft.props.counter.default,this.counterCurrent=0,this.counterMaxLength=0,this.optionalTag=Ft.props.optionalTag.default,this.optionalText=Ft.props.optionalText.default,this.requiredTag=Ft.props.requiredTag.default,this.requiredText=Ft.props.requiredText.default,this.hasError=Ft.props.hasError.default,this.errorMessage="",this.disabled=Ft.props.disabled.default,this.inline=Ft.props.inline.default,this.ariaDescribedby=void 0,this.hasFieldset=Ft.props.hasFieldset.default,this.useWrapper=Ft.props.useWrapper.default,this.wrapperType=this.useWrapper?Ns`fieldset`:this.hasDropdown?Ns`div`:Ns`label`,this.slotController=new cn(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={"pkt-inputwrapper__label":!0,"pkt-inputwrapper__fieldset":this.hasFieldset,"pkt-inputwrapper__legend":this.hasFieldset},o=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:ae,u=()=>this.optionalTag||this.requiredTag?Y`<span class=${We(n)}
|
|
352
|
+
>${this.optionalTag?this.optionalText:this.requiredTag?this.requiredText:ae}</span
|
|
353
|
+
>`:ae,c=()=>this.useWrapper?this.hasFieldset?Y`<legend class="pkt-inputwrapper__legend" id="${this.forId}-label">
|
|
354
354
|
${this.label} ${u()}
|
|
355
|
-
</legend>`:r?
|
|
355
|
+
</legend>`:r?Y`<h2>${this.label} ${u()}</h2>`:Y`<span>${this.label} ${u()}</span>`:Y`<label for="${this.forId}" class="pkt-sr-only" aria-describedby="${o}"
|
|
356
356
|
>${this.label}</label
|
|
357
|
-
>`,p=()=>this.useWrapper&&(this.helptext||this.helptextDropdown)?
|
|
357
|
+
>`,p=()=>this.useWrapper&&(this.helptext||this.helptextDropdown)?Y`
|
|
358
358
|
<pkt-helptext
|
|
359
359
|
.forId=${this.forId}
|
|
360
360
|
.helptext=${this.helptext}
|
|
361
361
|
.helptextDropdown=${this.helptextDropdown}
|
|
362
362
|
.helptextDropdownButton=${this.helptextDropdownButton}
|
|
363
363
|
></pkt-helptext>
|
|
364
|
-
`:
|
|
364
|
+
`:ae,h=()=>this.counter?Y`<div class="pkt-input__counter" aria-live="polite" aria-atomic="true">
|
|
365
365
|
${this.counterCurrent||0}
|
|
366
|
-
${this.counterMaxLength?`/${this.counterMaxLength}`:
|
|
367
|
-
</div>`:
|
|
366
|
+
${this.counterMaxLength?`/${this.counterMaxLength}`:ae}
|
|
367
|
+
</div>`:ae,m=()=>this.hasError&&this.errorMessage?Y`<div
|
|
368
368
|
class="pkt-alert pkt-alert--error pkt-alert--compact"
|
|
369
369
|
aria-live="assertive"
|
|
370
370
|
>
|
|
371
371
|
<pkt-icon name="alert-error" class="pkt-alert__icon"></pkt-icon>
|
|
372
372
|
<div class="pkt-alert__text">${li(this.errorMessage)}</div>
|
|
373
|
-
</div>`:
|
|
373
|
+
</div>`:ae,v=()=>Y`
|
|
374
374
|
${c()} ${p()}
|
|
375
|
-
${r?
|
|
375
|
+
${r?Y`<label for="${this.forId}" class="pkt-sr-only" aria-describedby="${o}"
|
|
376
376
|
>${this.label}</label
|
|
377
|
-
>`:
|
|
377
|
+
>`:ae}
|
|
378
378
|
<div class="pkt-contents" ${tt(this.defaultSlot)}></div>
|
|
379
379
|
${h()} ${m()}
|
|
380
|
-
`,y=()=>this.hasFieldset?
|
|
380
|
+
`,y=()=>this.hasFieldset?Y`<fieldset class=${We(i)} aria-describedby="${o}">
|
|
381
381
|
${v()}
|
|
382
|
-
</fieldset>`:r?
|
|
382
|
+
</fieldset>`:r?Y`<div class=${We(i)}>${v()}</div>`:Y`<label
|
|
383
383
|
class=${We(i)}
|
|
384
384
|
for="${this.forId}"
|
|
385
385
|
aria-describedby="${o}"
|
|
386
386
|
>
|
|
387
387
|
${v()}
|
|
388
|
-
</label>`;return
|
|
388
|
+
</label>`;return Y`<div class=${We(t)}>${y()}</div> `}};Ze([j({type:String,reflect:!0})],Ye.prototype,"forId",2),Ze([j({type:String,reflect:!0})],Ye.prototype,"label",2),Ze([j({type:String,reflect:!0})],Ye.prototype,"helptext",2),Ze([j({type:String,reflect:!0})],Ye.prototype,"helptextDropdown",2),Ze([j({type:String,reflect:!0})],Ye.prototype,"helptextDropdownButton",2),Ze([j({type:Boolean,reflect:!0})],Ye.prototype,"counter",2),Ze([j({type:Number,reflect:!0})],Ye.prototype,"counterCurrent",2),Ze([j({type:Number,reflect:!0})],Ye.prototype,"counterMaxLength",2),Ze([j({type:Boolean,reflect:!0})],Ye.prototype,"optionalTag",2),Ze([j({type:String,reflect:!0})],Ye.prototype,"optionalText",2),Ze([j({type:Boolean,reflect:!0})],Ye.prototype,"requiredTag",2),Ze([j({type:String,reflect:!0})],Ye.prototype,"requiredText",2),Ze([j({type:Boolean,reflect:!0})],Ye.prototype,"hasError",2),Ze([j({type:String,reflect:!0})],Ye.prototype,"errorMessage",2),Ze([j({type:Boolean,reflect:!0})],Ye.prototype,"disabled",2),Ze([j({type:Boolean,reflect:!0})],Ye.prototype,"inline",2),Ze([j({type:String,reflect:!0})],Ye.prototype,"ariaDescribedby",2),Ze([j({type:Boolean,reflect:!0})],Ye.prototype,"hasFieldset",2),Ze([j({type:Boolean,reflect:!0})],Ye.prototype,"useWrapper",2),Ye=Ze([Ot("pkt-input-wrapper")],Ye);/**
|
|
389
389
|
* @license
|
|
390
390
|
* Copyright 2017 Google LLC
|
|
391
391
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
392
|
-
*/const ku=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},gg=ia(class extends ii{constructor(e){if(super(e),e.type!==ai.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=ff(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=[]),p=[];let h,m,v=0,y=i.length-1,b=0,k=o.length-1;for(;v<=y&&b<=k;)if(i[v]===null)v++;else if(i[y]===null)y--;else if(c[v]===u[b])p[b]=Yn(i[v],o[b]),v++,b++;else if(c[y]===u[k])p[k]=Yn(i[y],o[k]),y--,k--;else if(c[v]===u[k])p[k]=Yn(i[v],o[k]),sa(e,p[k+1],i[v]),v++,k--;else if(c[y]===u[b])p[b]=Yn(i[y],o[b]),sa(e,i[v],i[y]),y--,b++;else if(h===void 0&&(h=ku(u,b,k),m=ku(c,v,y)),h.has(c[v]))if(h.has(c[y])){const
|
|
392
|
+
*/const ku=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},gg=ia(class extends ii{constructor(e){if(super(e),e.type!==ai.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=ff(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=[]),p=[];let h,m,v=0,y=i.length-1,b=0,k=o.length-1;for(;v<=y&&b<=k;)if(i[v]===null)v++;else if(i[y]===null)y--;else if(c[v]===u[b])p[b]=Yn(i[v],o[b]),v++,b++;else if(c[y]===u[k])p[k]=Yn(i[y],o[k]),y--,k--;else if(c[v]===u[k])p[k]=Yn(i[v],o[k]),sa(e,p[k+1],i[v]),v++,k--;else if(c[y]===u[b])p[b]=Yn(i[y],o[b]),sa(e,i[v],i[y]),y--,b++;else if(h===void 0&&(h=ku(u,b,k),m=ku(c,v,y)),h.has(c[v]))if(h.has(c[y])){const x=m.get(u[b]),C=x!==void 0?i[x]:null;if(C===null){const N=sa(e,i[v]);Yn(N,o[b]),p[b]=N}else p[b]=Yn(C,o[b]),sa(e,i[v],C),i[x]=null;b++}else Cs(i[y]),y--;else Cs(i[v]),v++;for(;b<=k;){const x=sa(e,p[k+1]);Yn(x,o[b]),p[b++]=x}for(;v<=y;){const x=i[v++];x!==null&&Cs(x)}return this.ut=u,hf(e,p),un}}),vg="pkt-datepicker",yg=!0,Dg={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",default:!1,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"},useWrapper:{type:"boolean",name:"Bruk wrapper",description:"Indikerer at feltet skal ha synlig label og hjelpetekst",default:!0},id:{type:"string",name:"ID",description:"Unik identifikasjon for datovelgeren"}},bg={change:{type:"Event",description:"Returnerer valgt dato som streng i ISO-format"},"value-change":{type:"CustomEvent",description:"Returnerer en <code>array</code> med valgte datoer i ISO-format"},toggleHelpText:{type:"CustomEvent",description:"Returnerer <code>event.detail { isOpen: true }</code> eller <code>event.detail { isOpen: false }</code> når hjelpeteksten åpnes eller lukkes"}},$n={name:vg,"css-class":"pkt-datepicker",isElement:yg,props:Dg,events:bg};var kg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,Je=(e,t,n,r)=>{for(var i=r>1?void 0:r?wg(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&&kg(t,n,i),i};const wu=e=>new Promise(t=>setTimeout(t,e));let Ge=class extends ze{constructor(){super(...arguments),this.value="",this._value=this.value?Array.isArray(this.value)?this.value:this.value.split(","):[],this.label="Datovelger",this.dateformat=$n.props.dateformat.default,this.multiple=$n.props.multiple.default,this.maxlength=$n.props.maxlength.default,this.range=$n.props.range.default,this.showRangeLabels=!1,this.min=null,this.max=null,this.weeknumbers=$n.props.weeknumbers.default,this.withcontrols=$n.props.withcontrols.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.useWrapper=!0,this.calendarOpen=!1,this.timezone="Europe/Oslo",this.inputClasses={},this.buttonClasses={},this.inputRef=yt(),this.inputRefTo=yt(),this.btnRef=yt(),this.calRef=yt(),this.popupRef=yt(),this.addToSelected=t=>{const n=t.target;if(!n.value)return;const r=this.min?Ke(this.min):null,i=this.max?Ke(this.max):null,o=Ke(n.value.split(",")[0]);o&&!isNaN(o.getTime())&&(!r||o>=r)&&(!i||o<=i)&&this.calRef.value&&this.calRef.value.handleDateSelect(o),n.value=""}}async connectedCallback(){super.connectedCallback(),this.isMobileSafari=/iP(ad|od|hone)/i.test(window.navigator.userAgent)&&!!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/),this.inputType=this.isMobileSafari?"text":"date",document&&document.body.addEventListener("click",t=>{var n,r;(n=this.inputRef)!=null&&n.value&&(r=this.btnRef)!=null&&r.value&&!this.inputRef.value.contains(t.target)&&!(this.inputRefTo.value&&this.inputRefTo.value.contains(t.target))&&!this.btnRef.value.contains(t.target)&&!t.target.closest(".pkt-calendar-popup")&&this.calendarOpen&&(this.onBlur(),this.hideCalendar())}),this.value.length&&this._value.length===0&&(this._value=Array.isArray(this.value)?this.value:this.value.split(",")),this.min=this.min||$n.props.min.default,this.max=this.max||$n.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 wu(20),this.handleCalendarPosition())}disconnectedCallback(){super.disconnectedCallback(),document&&document.body.removeEventListener("click",t=>{var n,r;(n=this.inputRef)!=null&&n.value&&(r=this.btnRef)!=null&&r.value&&!this.inputRef.value.contains(t.target)&&!this.btnRef.value.contains(t.target)&&this.hideCalendar()})}attributeChangedCallback(t,n,r){if(t==="value"){if(this.range&&(r==null?void 0:r.split(",").length)===1)return;this.value!==n&&this.valueChanged(r,n)}t==="excludedates"&&typeof this.excludedates=="string"&&(this.excludedates=(r==null?void 0:r.split(","))??[]),t==="excludeweekdays"&&typeof this.excludeweekdays=="string"&&(this.excludeweekdays=(r==null?void 0:r.split(","))??[]),super.attributeChangedCallback(t,n,r)}updated(t){if(t.has("value")){if(this.range&&this.value.length===1)return;this.valueChanged(this.value,t.get("value"))}super.updated(t)}renderInput(){return Y`
|
|
393
393
|
<input
|
|
394
394
|
class="${We(this.inputClasses)}"
|
|
395
395
|
.type=${this.inputType}
|
|
@@ -406,8 +406,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
406
406
|
@change=${t=>{t.stopImmediatePropagation()}}
|
|
407
407
|
${tt(this.inputRef)}
|
|
408
408
|
/>
|
|
409
|
-
`}renderRangeInput(){const t={"pkt-input-prefix":this.showRangeLabels,"pkt-hide":!this.showRangeLabels};return
|
|
410
|
-
${this.showRangeLabels?
|
|
409
|
+
`}renderRangeInput(){const t={"pkt-input-prefix":this.showRangeLabels,"pkt-hide":!this.showRangeLabels};return Y`
|
|
410
|
+
${this.showRangeLabels?Y` <div class="pkt-input-prefix">${this.strings.generic.from}</div> `:ae}
|
|
411
411
|
<input
|
|
412
412
|
class=${We(this.inputClasses)}
|
|
413
413
|
.type=${this.inputType}
|
|
@@ -427,7 +427,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
427
427
|
<div class="${We(t)}" id="${this.id}-to-label">
|
|
428
428
|
${this.strings.generic.to}
|
|
429
429
|
</div>
|
|
430
|
-
${this.showRangeLabels?
|
|
430
|
+
${this.showRangeLabels?ae:Y` <div class="pkt-input-separator">–</div> `}
|
|
431
431
|
<input
|
|
432
432
|
class=${We(this.inputClasses)}
|
|
433
433
|
.type=${this.inputType}
|
|
@@ -445,13 +445,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
445
445
|
@change=${n=>{n.stopImmediatePropagation()}}
|
|
446
446
|
${tt(this.inputRefTo)}
|
|
447
447
|
/>
|
|
448
|
-
`}renderMultipleInput(){return
|
|
448
|
+
`}renderMultipleInput(){return Y`
|
|
449
449
|
<input
|
|
450
450
|
class=${We(this.inputClasses)}
|
|
451
451
|
.type=${this.inputType}
|
|
452
452
|
id="${this.id}-input"
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
min=${this.min||ae}
|
|
454
|
+
max=${this.max||ae}
|
|
455
455
|
@click=${t=>{t.preventDefault(),this.showCalendar()}}
|
|
456
456
|
@blur=${t=>{var n;(n=this.calRef.value)!=null&&n.contains(t.relatedTarget)||this.onBlur(),this.addToSelected(t)}}
|
|
457
457
|
@input=${t=>{this.onInput(),t.stopImmediatePropagation()}}
|
|
@@ -461,9 +461,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
461
461
|
@change=${t=>{t.stopImmediatePropagation()}}
|
|
462
462
|
${tt(this.inputRef)}
|
|
463
463
|
/>
|
|
464
|
-
`}renderTags(){return
|
|
464
|
+
`}renderTags(){return Y`
|
|
465
465
|
<div class="pkt-datepicker__tags" aria-live="polite">
|
|
466
|
-
${this._value[0]?gg(this._value??[],t=>t,t=>
|
|
466
|
+
${this._value[0]?gg(this._value??[],t=>t,t=>Y`
|
|
467
467
|
<pkt-tag
|
|
468
468
|
.id="${this.id+t+"-tag"}"
|
|
469
469
|
closeTag
|
|
@@ -471,9 +471,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
471
471
|
@close=${()=>{var n;return(n=this.calRef.value)==null?void 0:n.handleDateSelect(Ts(t))}}
|
|
472
472
|
><time datetime="${t}">${Du(t,this.dateformat)}</time></pkt-tag
|
|
473
473
|
>
|
|
474
|
-
`):
|
|
474
|
+
`):ae}
|
|
475
475
|
</div>
|
|
476
|
-
`}renderCalendar(){return
|
|
476
|
+
`}renderCalendar(){return Y`<div
|
|
477
477
|
class="pkt-calendar-popup pkt-${this.calendarOpen?"show":"hide"}"
|
|
478
478
|
@focusout=${t=>{this.calendarOpen&&this.handleFocusOut(t)}}
|
|
479
479
|
id="${this.id}-popup"
|
|
@@ -496,7 +496,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
496
496
|
@close=${()=>{this.onBlur(),this.hideCalendar()}}
|
|
497
497
|
${tt(this.calRef)}
|
|
498
498
|
></pkt-calendar>
|
|
499
|
-
</div>`}render(){return this.inputClasses={"pkt-input":!0,"pkt-datepicker__input":!0,"pkt-input--fullwidth":this.fullwidth,"pkt-datepicker--hasrangelabels":this.showRangeLabels,"pkt-datepicker--multiple":this.multiple,"pkt-datepicker--range":this.range},this.buttonClasses={"pkt-input-icon":!0,"pkt-btn":!0,"pkt-btn--icon-only":!0,"pkt-btn--tertiary":!0},
|
|
499
|
+
</div>`}render(){return this.inputClasses={"pkt-input":!0,"pkt-datepicker__input":!0,"pkt-input--fullwidth":this.fullwidth,"pkt-datepicker--hasrangelabels":this.showRangeLabels,"pkt-datepicker--multiple":this.multiple,"pkt-datepicker--range":this.range},this.buttonClasses={"pkt-input-icon":!0,"pkt-btn":!0,"pkt-btn--icon-only":!0,"pkt-btn--tertiary":!0},Y`
|
|
500
500
|
<pkt-input-wrapper
|
|
501
501
|
label="${this.label}"
|
|
502
502
|
forId="${this.id}-input"
|
|
@@ -517,7 +517,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
517
517
|
.helptextDropdownButton=${this.helptextDropdownButton}
|
|
518
518
|
class="pkt-datepicker"
|
|
519
519
|
>
|
|
520
|
-
${this.multiple?this.renderTags():
|
|
520
|
+
${this.multiple?this.renderTags():ae}
|
|
521
521
|
<div
|
|
522
522
|
class="pkt-datepicker__inputs ${this.range&&this.showRangeLabels?"pkt-input__range-inputs":""}"
|
|
523
523
|
>
|
|
@@ -537,37 +537,37 @@ React keys must be passed directly to JSX without using spread:
|
|
|
537
537
|
</div>
|
|
538
538
|
</pkt-input-wrapper>
|
|
539
539
|
${this.renderCalendar()}
|
|
540
|
-
`}handleCalendarPosition(){var t;if(this.popupRef.value&&this.inputRef.value){const n=this.multiple&&!!this.maxlength,r=((t=this.inputRef.value.parentElement)==null?void 0:t.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),i=n?r.height+30:r.height,o=this.popupRef.value.getBoundingClientRect().height;let u=n?"calc(100% - 30px)":"100%";r&&r.top+o>window.innerHeight&&r.top-o>0&&(u=`calc(100% - ${i}px - ${o}px)`),this.popupRef.value.style.top=u}}handleFocusOut(t){this.contains(t.target)||(this.onBlur(),this.hideCalendar())}async showCalendar(){var t;this.calendarOpen=!0,await wu(20),this.handleCalendarPosition(),this.isMobileSafari&&((t=this.calRef.value)==null||t.focusOnCurrentDate())}hideCalendar(){this.calendarOpen=!1}async toggleCalendar(t){t.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar()}};Je([j({type:String,reflect:!0})],Ge.prototype,"value",2),Je([j({type:Array})],Ge.prototype,"_value",2),Je([j({type:String,reflect:!0})],Ge.prototype,"label",2),Je([j({type:String})],Ge.prototype,"dateformat",2),Je([j({type:Boolean,reflect:!0})],Ge.prototype,"multiple",2),Je([j({type:Number,reflect:!0})],Ge.prototype,"maxlength",2),Je([j({type:Boolean,reflect:!0})],Ge.prototype,"range",2),Je([j({type:Boolean})],Ge.prototype,"showRangeLabels",2),Je([j({type:String,reflect:!0})],Ge.prototype,"min",2),Je([j({type:String,reflect:!0})],Ge.prototype,"max",2),Je([j({type:Boolean})],Ge.prototype,"weeknumbers",2),Je([j({type:Boolean,reflect:!0})],Ge.prototype,"withcontrols",2),Je([j({converter:wr.csvToArray})],Ge.prototype,"excludedates",2),Je([j({converter:wr.csvToArray})],Ge.prototype,"excludeweekdays",2),Je([j({type:String})],Ge.prototype,"currentmonth",2),Je([j({type:Boolean})],Ge.prototype,"useWrapper",2),Je([j({type:Boolean,reflect:!0})],Ge.prototype,"calendarOpen",2),Je([j({type:String})],Ge.prototype,"timezone",2),Je([Pt()],Ge.prototype,"inputClasses",2),Je([Pt()],Ge.prototype,"buttonClasses",2),Ge=Je([Ot("pkt-datepicker")],Ge);const Cg="pkt-link",xg=!0,Sg={href:{name:"URL",description:"URL til lenken",type:"string",default:"#"},target:{name:"Mål",description:"Mål for lenken",type:["_blank","_self","_parent","_top"],default:"_self"},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}},_g={default:{description:"Innholdet i lenken"}},Bs={name:Cg,"css-class":"pkt-link","dark-mode":!0,isElement:xg,props:Sg,slots:_g};var Eg=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,Er=(e,t,n,r)=>{for(var i=r>1?void 0:r?Fg(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&&Eg(t,n,i),i};let Tn=class extends At{constructor(){super(),this.defaultSlot=yt(),this.href=Bs.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=Bs.props.external.default,this.target=Bs.props.target.default,this.slotController=new cn(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
|
|
540
|
+
`}handleCalendarPosition(){var t;if(this.popupRef.value&&this.inputRef.value){const n=this.multiple&&!!this.maxlength,r=((t=this.inputRef.value.parentElement)==null?void 0:t.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),i=n?r.height+30:r.height,o=this.popupRef.value.getBoundingClientRect().height;let u=n?"calc(100% - 30px)":"100%";r&&r.top+o>window.innerHeight&&r.top-o>0&&(u=`calc(100% - ${i}px - ${o}px)`),this.popupRef.value.style.top=u}}handleFocusOut(t){this.contains(t.target)||(this.onBlur(),this.hideCalendar())}async showCalendar(){var t;this.calendarOpen=!0,await wu(20),this.handleCalendarPosition(),this.isMobileSafari&&((t=this.calRef.value)==null||t.focusOnCurrentDate())}hideCalendar(){this.calendarOpen=!1}async toggleCalendar(t){t.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar()}};Je([j({type:String,reflect:!0})],Ge.prototype,"value",2),Je([j({type:Array})],Ge.prototype,"_value",2),Je([j({type:String,reflect:!0})],Ge.prototype,"label",2),Je([j({type:String})],Ge.prototype,"dateformat",2),Je([j({type:Boolean,reflect:!0})],Ge.prototype,"multiple",2),Je([j({type:Number,reflect:!0})],Ge.prototype,"maxlength",2),Je([j({type:Boolean,reflect:!0})],Ge.prototype,"range",2),Je([j({type:Boolean})],Ge.prototype,"showRangeLabels",2),Je([j({type:String,reflect:!0})],Ge.prototype,"min",2),Je([j({type:String,reflect:!0})],Ge.prototype,"max",2),Je([j({type:Boolean})],Ge.prototype,"weeknumbers",2),Je([j({type:Boolean,reflect:!0})],Ge.prototype,"withcontrols",2),Je([j({converter:wr.csvToArray})],Ge.prototype,"excludedates",2),Je([j({converter:wr.csvToArray})],Ge.prototype,"excludeweekdays",2),Je([j({type:String})],Ge.prototype,"currentmonth",2),Je([j({type:Boolean})],Ge.prototype,"useWrapper",2),Je([j({type:Boolean,reflect:!0})],Ge.prototype,"calendarOpen",2),Je([j({type:String})],Ge.prototype,"timezone",2),Je([Pt()],Ge.prototype,"inputClasses",2),Je([Pt()],Ge.prototype,"buttonClasses",2),Ge=Je([Ot("pkt-datepicker")],Ge);const Cg="pkt-link",xg=!0,Sg={href:{name:"URL",description:"URL til lenken",type:"string",default:"#"},target:{name:"Mål",description:"Mål for lenken",type:["_blank","_self","_parent","_top"],default:"_self"},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}},_g={default:{description:"Innholdet i lenken"}},Bs={name:Cg,"css-class":"pkt-link","dark-mode":!0,isElement:xg,props:Sg,slots:_g};var Eg=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,Er=(e,t,n,r)=>{for(var i=r>1?void 0:r?Fg(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&&Eg(t,n,i),i};let Tn=class extends At{constructor(){super(),this.defaultSlot=yt(),this.href=Bs.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=Bs.props.external.default,this.target=Bs.props.target.default,this.slotController=new cn(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 Y`<a
|
|
541
541
|
class=${We(e)}
|
|
542
542
|
href=${this.href}
|
|
543
543
|
@click=${this.handleClick}
|
|
544
544
|
.target=${this.target}
|
|
545
|
-
.rel=${this.external?"noopener noreferrer":
|
|
546
|
-
>${this.iconName?
|
|
547
|
-
>`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};Er([j({type:String,reflect:!0})],Tn.prototype,"href",2),Er([j({type:String,reflect:!0})],Tn.prototype,"iconName",2),Er([j({type:String,reflect:!0})],Tn.prototype,"iconPosition",2),Er([j({type:Boolean,reflect:!0})],Tn.prototype,"external",2),Er([j({type:String,reflect:!0})],Tn.prototype,"target",2),Tn=Er([Ot("pkt-link")],Tn);var Ag=Object.defineProperty,$g=Object.getOwnPropertyDescriptor,er=(e,t,n,r)=>{for(var i=r>1?void 0:r?$g(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&&Ag(t,n,i),i};let fn=class extends At{constructor(){super(),this.defaultSlot=yt(),this.title="",this.href="#",this.iconName="",this.external=!1,this.openInNewTab=!1,this.skin="normal",this.slotController=new cn(this,this.defaultSlot)}render(){const e=["pkt-linkcard",this.skin&&`pkt-linkcard--${this.skin}`].filter(Boolean).join(" "),t=["pkt-linkcard__title",this.external&&"pkt-link pkt-link--external"].filter(Boolean).join(" ");return
|
|
545
|
+
.rel=${this.external?"noopener noreferrer":ae}
|
|
546
|
+
>${this.iconName?Y`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>`:""} <span ${tt(this.defaultSlot)}>Link</span></a
|
|
547
|
+
>`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};Er([j({type:String,reflect:!0})],Tn.prototype,"href",2),Er([j({type:String,reflect:!0})],Tn.prototype,"iconName",2),Er([j({type:String,reflect:!0})],Tn.prototype,"iconPosition",2),Er([j({type:Boolean,reflect:!0})],Tn.prototype,"external",2),Er([j({type:String,reflect:!0})],Tn.prototype,"target",2),Tn=Er([Ot("pkt-link")],Tn);var Ag=Object.defineProperty,$g=Object.getOwnPropertyDescriptor,er=(e,t,n,r)=>{for(var i=r>1?void 0:r?$g(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&&Ag(t,n,i),i};let fn=class extends At{constructor(){super(),this.defaultSlot=yt(),this.title="",this.href="#",this.iconName="",this.external=!1,this.openInNewTab=!1,this.skin="normal",this.slotController=new cn(this,this.defaultSlot)}render(){const e=["pkt-linkcard",this.skin&&`pkt-linkcard--${this.skin}`].filter(Boolean).join(" "),t=["pkt-linkcard__title",this.external&&"pkt-link pkt-link--external"].filter(Boolean).join(" ");return Y`
|
|
548
548
|
<a
|
|
549
549
|
href=${this.href}
|
|
550
550
|
class=${e}
|
|
551
551
|
target=${this.openInNewTab?"_blank":"_self"}
|
|
552
552
|
rel=${this.openInNewTab??"noopener noreferrer"}
|
|
553
553
|
>
|
|
554
|
-
${this.iconName&&
|
|
555
|
-
${this.title&&
|
|
554
|
+
${this.iconName&&Y`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
|
|
555
|
+
${this.title&&Y`<div class=${t}>${this.title}</div>`}
|
|
556
556
|
|
|
557
557
|
<div class="pkt-linkcard__text" ${tt(this.defaultSlot)}></div>
|
|
558
558
|
</a>
|
|
559
|
-
`}};er([j({type:String,reflect:!0})],fn.prototype,"title",2),er([j({type:String,reflect:!0})],fn.prototype,"href",2),er([j({type:String,reflect:!0})],fn.prototype,"iconName",2),er([j({type:Boolean,reflect:!0})],fn.prototype,"external",2),er([j({type:Boolean,reflect:!0})],fn.prototype,"openInNewTab",2),er([j({type:String,reflect:!0})],fn.prototype,"skin",2),fn=er([Ot("pkt-linkcard")],fn);const Tg="pkt-messagebox",Ng=!0,Bg={onClose:{description:"React: Event som trigges når meldingsboksen lukkes"},"on-close":{description:"Vue: Event som trigges når meldingsboksen lukkes"}},jg={title:{name:"Tittel",description:"Tittelen på meldingsboksen",type:"string"},skin:{name:"Utseende",description:"Velg farge på meldingsboksen",type:["beige","blue","red","green"],default:"beige"},compact:{name:"Kompakt",description:"Gjør meldingsboksen mindre",type:"boolean",default:!1},closable:{name:"Kan lukkes",description:"Viser lukkeknapp",type:"boolean",default:!1}},Lg={default:{description:"Innholdet i meldingsboksen"}},js={name:Tg,"css-class":"pkt-messagebox",isElement:Ng,events:Bg,props:jg,slots:Lg};var Pg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,Fr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Og(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&&Pg(t,n,i),i};let Nn=class extends At{constructor(){super(),this.defaultSlot=yt(),this.closable=js.props.closable.default,this.compact=js.props.compact.default,this.title="",this.skin=js.props.skin.default,this._isClosed=!1,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:e},bubbles:!0}))},this.slotController=new cn(this,this.defaultSlot),this._isClosed=!1}render(){const e={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable,"pkt-hide":this._isClosed};return
|
|
560
|
-
${this.closable?
|
|
559
|
+
`}};er([j({type:String,reflect:!0})],fn.prototype,"title",2),er([j({type:String,reflect:!0})],fn.prototype,"href",2),er([j({type:String,reflect:!0})],fn.prototype,"iconName",2),er([j({type:Boolean,reflect:!0})],fn.prototype,"external",2),er([j({type:Boolean,reflect:!0})],fn.prototype,"openInNewTab",2),er([j({type:String,reflect:!0})],fn.prototype,"skin",2),fn=er([Ot("pkt-linkcard")],fn);const Tg="pkt-messagebox",Ng=!0,Bg={onClose:{description:"React: Event som trigges når meldingsboksen lukkes"},"on-close":{description:"Vue: Event som trigges når meldingsboksen lukkes"}},jg={title:{name:"Tittel",description:"Tittelen på meldingsboksen",type:"string"},skin:{name:"Utseende",description:"Velg farge på meldingsboksen",type:["beige","blue","red","green"],default:"beige"},compact:{name:"Kompakt",description:"Gjør meldingsboksen mindre",type:"boolean",default:!1},closable:{name:"Kan lukkes",description:"Viser lukkeknapp",type:"boolean",default:!1}},Lg={default:{description:"Innholdet i meldingsboksen"}},js={name:Tg,"css-class":"pkt-messagebox",isElement:Ng,events:Bg,props:jg,slots:Lg};var Pg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,Fr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Og(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&&Pg(t,n,i),i};let Nn=class extends At{constructor(){super(),this.defaultSlot=yt(),this.closable=js.props.closable.default,this.compact=js.props.compact.default,this.title="",this.skin=js.props.skin.default,this._isClosed=!1,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:e},bubbles:!0}))},this.slotController=new cn(this,this.defaultSlot),this._isClosed=!1}render(){const e={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable,"pkt-hide":this._isClosed};return Y`<div class=${We(e)}>
|
|
560
|
+
${this.closable?Y`<div class="pkt-messagebox__close">
|
|
561
561
|
<button
|
|
562
562
|
@click=${this.close}
|
|
563
563
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
564
564
|
>
|
|
565
565
|
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
566
566
|
</button>
|
|
567
|
-
</div>`:
|
|
568
|
-
${this.title?
|
|
567
|
+
</div>`:ae}
|
|
568
|
+
${this.title?Y`<div class="pkt-messagebox__title">${this.title}</div>`:ae}
|
|
569
569
|
<div class="pkt-messagebox__text" ${tt(this.defaultSlot)}></div>
|
|
570
|
-
</div>`}};Fr([j({type:Boolean,reflect:!0})],Nn.prototype,"closable",2),Fr([j({type:Boolean,reflect:!0})],Nn.prototype,"compact",2),Fr([j({type:String,reflect:!0})],Nn.prototype,"title",2),Fr([j({type:String,reflect:!0})],Nn.prototype,"skin",2),Fr([Pt()],Nn.prototype,"_isClosed",2),Nn=Fr([Ot("pkt-messagebox")],Nn);const Mg="pkt-modal",Ig=!0,Rg={"background-click":{description:"Event som trigges når bakgrunnen trykkes på"},close:{description:"Event som trigges når meldingsboksen lukkes"}},qg={headingText:{name:"Heading text",description:"Heading tekst på modalen",type:"string"},hideCloseButton:{name:"Gjem 'Lukk'-knapp",description:"Gjemmer lukkeknappen. Dersom denne er satt til true, vil ikke lukkeknappen vises, og dermed er det viktig at man tilbyr en annen måte som f.eks. en knapp for å lukke modalen på.",type:"boolean",default:!1},closeOnBackdropClick:{name:"Lukk modalen når bakgrunnen trykkes på",description:"Lukk modalen når bakgrunnen trykkes på",type:"boolean",default:!1},size:{name:"Størrelse",description:"Størrelsen på modalen",type:["small","medium","large"],default:"medium"}},Hg={default:{description:"Innholdet i meldingen. Her tilbyr vi støtteklasser for å style 1-3 knapper i modalen."}},Ls={name:Mg,"css-class":"pkt-modal",isElements:Ig,events:Rg,props:qg,slots:Hg};var Ug=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,tr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Vg(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&&Ug(t,n,i),i};let mn=class extends At{constructor(){super(),this.headingText="",this.removePadding=!1,this.hideCloseButton=Ls.props.hideCloseButton.default,this.closeOnBackdropClick=Ls.props.closeOnBackdropClick.default,this.size=Ls.props.size.default,this.defaultSlot=yt(),this.dialogRef=yt(),this._isOpen=!1,this.close=(e,t=!1)=>{var n;this._isOpen=!1,t||(n=this.dialogRef.value)==null||n.close();const r=document.activeElement;r&&!this.isElementInViewport(r)&&r.scrollIntoView({behavior:"smooth",block:"nearest"}),this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),document.querySelector(".pkt-modal")&&document.body.classList.remove("pkt-modal--open"),this.requestUpdate()},this.showModal=e=>{var t;this._isOpen=!0,(t=this.dialogRef.value)==null||t.showModal(),document.querySelector(".pkt-modal")&&document.body.classList.add("pkt-modal--open"),this.dispatchEvent(new CustomEvent("showModal",{detail:{origin:e},bubbles:!0,composed:!0})),this.requestUpdate()},this.slotController=new cn(this,this.defaultSlot),this._isOpen=!1}async connectedCallback(){var e;super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown.bind(this)),document.addEventListener("click",this.handleBackdropClick.bind(this)),(e=this.dialogRef.value)==null||e.addEventListener("submit",t=>this.close(t,!0))}disconnectedCallback(){var e;super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown.bind(this)),document.removeEventListener("click",this.handleBackdropClick.bind(this)),(e=this.dialogRef.value)==null||e.removeEventListener("submit",t=>this.close(t,!0))}handleKeyDown(e){e.key==="Escape"&&this.close(e)}handleBackdropClick(e){var t;this.closeOnBackdropClick&&e.target===((t=this.dialogRef)==null?void 0:t.value)&&this.close(e)}isElementInViewport(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}render(){const e={"pkt-modal":!0,"pkt-modal--removePadding":this.removePadding??!1,"pkt-modal--noHeadingText":this.headingText===""||this.headingText===void 0,[`pkt-modal--${this.size}`]:this.size!==void 0},t={"pkt-modal__headingText":!0,"pkt-txt-24":!0},n={"pkt-modal__content":!0,"pkt-txt-18-light":!0};return
|
|
570
|
+
</div>`}};Fr([j({type:Boolean,reflect:!0})],Nn.prototype,"closable",2),Fr([j({type:Boolean,reflect:!0})],Nn.prototype,"compact",2),Fr([j({type:String,reflect:!0})],Nn.prototype,"title",2),Fr([j({type:String,reflect:!0})],Nn.prototype,"skin",2),Fr([Pt()],Nn.prototype,"_isClosed",2),Nn=Fr([Ot("pkt-messagebox")],Nn);const Mg="pkt-modal",Ig=!0,Rg={"background-click":{description:"Event som trigges når bakgrunnen trykkes på"},close:{description:"Event som trigges når meldingsboksen lukkes"}},qg={headingText:{name:"Heading text",description:"Heading tekst på modalen",type:"string"},hideCloseButton:{name:"Gjem 'Lukk'-knapp",description:"Gjemmer lukkeknappen. Dersom denne er satt til true, vil ikke lukkeknappen vises, og dermed er det viktig at man tilbyr en annen måte som f.eks. en knapp for å lukke modalen på.",type:"boolean",default:!1},closeOnBackdropClick:{name:"Lukk modalen når bakgrunnen trykkes på",description:"Lukk modalen når bakgrunnen trykkes på",type:"boolean",default:!1},size:{name:"Størrelse",description:"Størrelsen på modalen",type:["small","medium","large"],default:"medium"}},Hg={default:{description:"Innholdet i meldingen. Her tilbyr vi støtteklasser for å style 1-3 knapper i modalen."}},Ls={name:Mg,"css-class":"pkt-modal",isElements:Ig,events:Rg,props:qg,slots:Hg};var Ug=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,tr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Vg(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&&Ug(t,n,i),i};let mn=class extends At{constructor(){super(),this.headingText="",this.removePadding=!1,this.hideCloseButton=Ls.props.hideCloseButton.default,this.closeOnBackdropClick=Ls.props.closeOnBackdropClick.default,this.size=Ls.props.size.default,this.defaultSlot=yt(),this.dialogRef=yt(),this._isOpen=!1,this.close=(e,t=!1)=>{var n;this._isOpen=!1,t||(n=this.dialogRef.value)==null||n.close();const r=document.activeElement;r&&!this.isElementInViewport(r)&&r.scrollIntoView({behavior:"smooth",block:"nearest"}),this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),document.querySelector(".pkt-modal")&&document.body.classList.remove("pkt-modal--open"),this.requestUpdate()},this.showModal=e=>{var t;this._isOpen=!0,(t=this.dialogRef.value)==null||t.showModal(),document.querySelector(".pkt-modal")&&document.body.classList.add("pkt-modal--open"),this.dispatchEvent(new CustomEvent("showModal",{detail:{origin:e},bubbles:!0,composed:!0})),this.requestUpdate()},this.slotController=new cn(this,this.defaultSlot),this._isOpen=!1}async connectedCallback(){var e;super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown.bind(this)),document.addEventListener("click",this.handleBackdropClick.bind(this)),(e=this.dialogRef.value)==null||e.addEventListener("submit",t=>this.close(t,!0))}disconnectedCallback(){var e;super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown.bind(this)),document.removeEventListener("click",this.handleBackdropClick.bind(this)),(e=this.dialogRef.value)==null||e.removeEventListener("submit",t=>this.close(t,!0))}handleKeyDown(e){e.key==="Escape"&&this.close(e)}handleBackdropClick(e){var t;this.closeOnBackdropClick&&e.target===((t=this.dialogRef)==null?void 0:t.value)&&this.close(e)}isElementInViewport(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}render(){const e={"pkt-modal":!0,"pkt-modal--removePadding":this.removePadding??!1,"pkt-modal--noHeadingText":this.headingText===""||this.headingText===void 0,[`pkt-modal--${this.size}`]:this.size!==void 0},t={"pkt-modal__headingText":!0,"pkt-txt-24":!0},n={"pkt-modal__content":!0,"pkt-txt-18-light":!0};return Y`
|
|
571
571
|
<dialog
|
|
572
572
|
class=${We(e)}
|
|
573
573
|
aria-modal=${this._isOpen}
|
|
@@ -577,10 +577,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
577
577
|
autofocus
|
|
578
578
|
>
|
|
579
579
|
<div class="pkt-modal__header">
|
|
580
|
-
${this.headingText?
|
|
580
|
+
${this.headingText?Y`<h1 id="pkt-modal__headingText" class=${We(t)}>
|
|
581
581
|
${this.headingText}
|
|
582
|
-
</h1>`:
|
|
583
|
-
${this.hideCloseButton?
|
|
582
|
+
</h1>`:ae}
|
|
583
|
+
${this.hideCloseButton?ae:Y`<div class="pkt-modal__closeButton">
|
|
584
584
|
<button
|
|
585
585
|
@click=${r=>this.close(r)}
|
|
586
586
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
@@ -596,11 +596,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
596
596
|
${tt(this.defaultSlot)}
|
|
597
597
|
></div>
|
|
598
598
|
</dialog>
|
|
599
|
-
`}};tr([j({type:String,reflect:!0})],mn.prototype,"headingText",2),tr([j({type:Boolean,reflect:!0})],mn.prototype,"removePadding",2),tr([j({type:Boolean,reflect:!0})],mn.prototype,"hideCloseButton",2),tr([j({type:Boolean,reflect:!0})],mn.prototype,"closeOnBackdropClick",2),tr([j({type:String,reflect:!0})],mn.prototype,"size",2),tr([Pt()],mn.prototype,"_isOpen",2),mn=tr([Ot("pkt-modal")],mn);const
|
|
599
|
+
`}};tr([j({type:String,reflect:!0})],mn.prototype,"headingText",2),tr([j({type:Boolean,reflect:!0})],mn.prototype,"removePadding",2),tr([j({type:Boolean,reflect:!0})],mn.prototype,"hideCloseButton",2),tr([j({type:Boolean,reflect:!0})],mn.prototype,"closeOnBackdropClick",2),tr([j({type:String,reflect:!0})],mn.prototype,"size",2),tr([Pt()],mn.prototype,"_isOpen",2),mn=tr([Ot("pkt-modal")],mn);const we=on({tagName:"pkt-icon",elementClass:Jn,react:R,displayName:"PktIcon",events:{}});var Cu={exports:{}};/*!
|
|
600
600
|
Copyright (c) 2018 Jed Watson.
|
|
601
601
|
Licensed under the MIT License (MIT), see
|
|
602
602
|
http://jedwatson.github.io/classnames
|
|
603
|
-
*/(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})()})(Cu);var zg=Cu.exports;const ct=Za(zg),Wg=R.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,p]=R.useState(i),h=r?r.isOpen:c,m=b=>b??void 0,v=(b,k)=>{b.preventDefault(),r!==void 0&&r.onToggleClick(b,k),p(!h)},y=ct(t,"pkt-accordion-item");return g.jsxs("details",{className:y,ref:u,id:o,open:m(r?r.isOpen:c),children:[g.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${o}`,onClick:b=>v(b,o),children:[e,g.jsx(ke,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),g.jsx("div",{id:`pkt-accordion-item-content-${o}`,role:"region",className:"pkt-accordion-item__content",children:n})]})}),Gg=on({tagName:"pkt-alert",elementClass:Yt,react:R,displayName:"PktAlert",events:{onClose:"close"}}),Ps=R.forwardRef(({children:e,...t},n)=>g.jsx(Gg,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Ps.displayName="PktAlert";const xu=R.forwardRef(({href:e,text:t,onClick:n,className:r,...i},o)=>{const u=[r,"pkt-back-link"].filter(Boolean).join(" "),c=p=>{n&&n(p)};return g.jsx("nav",{ref:o,className:u,"aria-label":"Gå tilbake et steg",children:g.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:c,...i,children:[g.jsx(ke,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),g.jsx("span",{className:"pkt-back-link__text",children:t||"Forsiden"})]})})});xu.displayName="PktBackLink";const Yg=R.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 g.jsxs("nav",{ref:i,"aria-label":"brødsmulemeny",className:c,children:[g.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:o.map((p,h)=>g.jsx("li",{className:"pkt-breadcrumbs__item",children:h===o.length-1?g.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:g.jsx("span",{className:"pkt-breadcrumbs__text",children:p.text})}):t==="router"?g.jsxs(Un.Link,{to:p.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[g.jsx(ke,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:p.text})]}):g.jsxs("a",{href:p.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[g.jsx(ke,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:p.text})]})},`breadcrumb-${h}`))}),t==="router"?g.jsxs(Un.Link,{to:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[g.jsx(ke,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]}):g.jsxs("a",{href:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[g.jsx(ke,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]})]})}),nr=R.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:p,color:h,isLoading:m=!1,...v},y)=>{const b=[t,"pkt-btn",i&&`pkt-btn--${i}`,o&&`pkt-btn--${o}`,c&&`pkt-btn--${c}`,h&&`pkt-btn--${h}`,m&&"pkt-btn--active",p&&`pkt-btn--${p}`].filter(Boolean).join(" ");return g.jsxs("button",{...v,className:b,type:u,ref:y,children:[m&&g.jsx(ke,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.14/animations/"}),c!=="label-only"&&g.jsx(ke,{className:"pkt-btn__icon",name:n}),g.jsx("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&g.jsx(ke,{className:"pkt-btn__icon",name:r})]})});nr.displayName="PktButton";const Jg=on({tagName:"pkt-card",elementClass:hn,react:R,displayName:"PktCard",events:{}}),Su=R.forwardRef(({children:e,...t},n)=>g.jsx(Jg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Su.displayName="PktCard";const fi=R.forwardRef(({id:e,hasTile:t=!1,disabled:n=!1,label:r,labelPosition:i="right",hideLabel:o=!1,checkHelptext:u,hasError:c=!1,isSwitch:p=!1,className:h,...m},v)=>{const y=[h,"pkt-input-check"].filter(Boolean).join(" ");return g.jsx("div",{className:y,children:g.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"&&g.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]}),g.jsx("input",{ref:v,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:p?"switch":"checkbox",id:e,disabled:n,...m}),r&&i==="right"&&g.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});fi.displayName="PktCheckbox";const _u=on({tagName:"pkt-datepicker",elementClass:Ge,react:R,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Kg=({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,p;const u=[r,"pkt-footer"].filter(Boolean).join(" ");return g.jsx("footer",{className:u,"data-mode":"dark",children:g.jsxs("div",{className:"pkt-footer__container",children:[g.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:e.title}),g.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&g.jsx("li",{className:"pkt-footer__text",children:e.text}),(c=e.links)==null?void 0:c.map((h,m)=>g.jsx("li",{className:"pkt-footer__list-item",children:g.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:[g.jsx(ke,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${m}`))]})]}),g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:t.title}),g.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&g.jsx("li",{className:"pkt-footer__text",children:t.text}),(p=t.links)==null?void 0:p.map((h,m)=>g.jsx("li",{className:"pkt-footer__list-item",children:g.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:[g.jsx(ke,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${m}`))]})]}),g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),g.jsxs("ul",{className:"pkt-footer__list",children:[g.jsx("li",{className:"pkt-footer__list-item",children:g.jsxs("a",{className:"pkt-footer__link",href:i,children:[g.jsx(ke,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),g.jsx("li",{className:"pkt-footer__list-item",children:g.jsxs("a",{className:"pkt-footer__link",href:o,children:[g.jsx(ke,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),n&&g.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[g.jsx("div",{className:"pkt-footer__social-languages",children:n.filter(h=>h.language).map((h,m)=>g.jsx("div",{className:"pkt-footer__social-language",children:g.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-${m}`))}),g.jsx("div",{className:"pkt-footer__social-icons",children:n.filter(h=>h.iconName).map((h,m)=>g.jsx(R.Fragment,{children:g.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:g.jsx(ke,{className:"pkt-footer__social-icon",name:h.iconName})})},`sociallinks-${m}`))})]})]})})},Zg=({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 g.jsx("footer",{className:i,"data-mode":"dark",children:g.jsx("div",{className:"pkt-footer-simple__container",children:g.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((o,u)=>g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.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:[g.jsx(ke,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),o.text]})},u)),g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.jsxs("a",{className:"pkt-footer-simple__link",href:t,children:[g.jsx(ke,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.jsxs("a",{className:"pkt-footer-simple__link",href:n,children:[g.jsx(ke,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},Xg=R.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:p,userMenuFooter:h,canChangeRepresentation:m=!0,showMenuButton:v=!1,showLogOutButton:y=!1,openMenu:b,logOut:k,changeRepresentation:S,children:C,...N},E)=>{const _=R.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]),[$,x]=R.useState(!1),[T,O]=R.useState(0),[I,M]=R.useState(!1),Y=R.useRef(null);R.useEffect(()=>(document&&(document.addEventListener("mouseup",V),window.addEventListener("scroll",z)),()=>{document&&(document.removeEventListener("mouseup",V),window.removeEventListener("scroll",z))}));const ee=()=>{M(!I)},V=H=>{Y.current&&!Y.current.contains(H.target)&&M(!1)},z=()=>{if(i){const H=window.pageYOffset||document.documentElement.scrollTop;if(H<0||Math.abs(H-T)<60)return;x(H>T),O(H)}};return g.jsxs("header",{...N,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:ct(e,"pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":i,"pkt-header--hidden":$}),ref:E,children:[g.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?g.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:g.jsx(ke,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.14/logos/"})}):g.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:g.jsx(ke,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.14/logos/"})}),g.jsx("span",{className:"pkt-header__logo-service",children:n})]}),g.jsx("nav",{className:"pkt-header__actions",children:g.jsxs("ul",{className:"pkt-header__actions-row",children:[v&&g.jsx("li",{children:g.jsx(nr,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(o||c)&&g.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${I&&!$?"pkt-header--open-dropdown":""}`,ref:Y,children:[g.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:ee,children:[g.jsx(ke,{name:"user",className:"pkt-btn__icon"}),g.jsx("span",{className:"pkt-header__user-fullname",children:(c==null?void 0:c.name)||(o==null?void 0:o.name)}),g.jsx("span",{className:"pkt-header__user-shortname",children:(c==null?void 0:c.shortname)||(o==null?void 0:o.shortname)}),g.jsx(ke,{name:"chevron-thin-down",className:"pkt-btn--closed"}),g.jsx(ke,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),g.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[o&&g.jsxs("li",{children:[g.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),g.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.lastLoggedIn&&g.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",g.jsx("time",{children:_})]})]}),u&&g.jsx("li",{children:g.jsx("ul",{className:"pkt-list",children:u.map((H,X)=>g.jsx("li",{children:typeof H.target=="string"?g.jsxs("a",{href:H.target,className:"pkt-link",children:[H.iconName&&g.jsx(ke,{name:H.iconName,className:"pkt-link__icon"}),H.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:H.target,children:[H.iconName&&g.jsx(ke,{name:H.iconName,className:"pkt-link__icon"}),H.title]})},`userMenu-${X}`))})}),(c||m)&&g.jsxs("li",{children:[c&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),g.jsx("div",{className:"pkt-user-menu__name",children:c.name}),c.orgNumber&&g.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",c.orgNumber]})]}),g.jsx("ul",{className:"pkt-list mt-size-16",children:m&&g.jsx("li",{children:g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:S,children:[g.jsx(ke,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),g.jsx("li",{children:g.jsx("ul",{className:"pkt-list",children:(p||!y)&&g.jsxs(g.Fragment,{children:[p==null?void 0:p.map((H,X)=>g.jsx("li",{children:typeof H.target=="string"?g.jsxs("a",{href:H.target,className:"pkt-link",children:[H.iconName&&g.jsx(ke,{name:H.iconName,className:"pkt-link__icon"}),H.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:H.target,children:[H.iconName&&g.jsx(ke,{name:H.iconName,className:"pkt-link__icon"}),H.title]})},`userOptions-${X}`)),!y&&g.jsx("li",{children:g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:k,children:[g.jsx(ke,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),h&&g.jsx("li",{className:"footer",children:g.jsx("ul",{className:"pkt-list-horizontal bordered",children:h.map((H,X)=>g.jsx("li",{children:typeof H.target=="string"?g.jsx("a",{href:H.target,className:"pkt-link",children:H.title}):g.jsx("button",{className:"pkt-link-button pkt-link",onClick:H.target,children:H.title})},`userMenuFooter-${X}`))})})]})]}),C&&g.jsx("li",{children:C}),y&&g.jsx("li",{children:g.jsx(nr,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:k,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),Eu=R.forwardRef(({label:e,id:t,children:n,...r},i)=>g.jsxs("div",{className:"pkt-form-group",children:[g.jsx("label",{htmlFor:t,className:"pkt-form-label",children:e}),g.jsx("input",{className:"pkt-form-input",id:t,...r,ref:i}),n]}));Eu.displayName="PktInput";const Ar=R.forwardRef(({forId:e,label:t,helptext:n,helptextDropdown:r,helptextDropdownButton:i,counter:o,counterCurrent:u,counterMaxLength:c,optionalTag:p=!1,optionalText:h="Valgfritt",requiredTag:m=!1,requiredText:v="Må fylles ut",hasError:y,errorMessage:b,disabled:k,inline:S,ariaDescribedby:C,useWrapper:N=!0,children:E,className:_,hasFieldset:$=!1},x)=>{const[T,O]=R.useState(!1),I=()=>{O(!T)},M=()=>p?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":m?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",Y=p?h:m?v:"",ee=k?"pkt-inputwrapper--disabled":"",V=S?"pkt-inputwrapper--inline":"",z=y?"pkt-inputwrapper--error":"",H=!!r&&r!=="",X=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',oe=$?"fieldset":H?"div":"label",Ce=$?"legend":H?"h2":"span",re=C||(n?`${e}-helptext`:void 0);return g.jsxs("div",{className:["pkt-inputwrapper",_,ee,V,z].join(" "),ref:x,children:[N?g.jsx(g.Fragment,{children:g.jsxs(oe,{htmlFor:$?void 0:e,"aria-describedby":H?void 0:C,className:`pkt-inputwrapper__label${$?" pkt-inputwrapper__fieldset":""}`,children:[g.jsxs(Ce,{id:`${e}-label`,className:`${$?" pkt-inputwrapper__legend":""}`,children:[t,Y!==""&&g.jsx("span",{className:M(),children:Y})]}),n&&g.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:n}),H&&r!==""&&g.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[g.jsx(nr,{skin:"tertiary",size:"small",variant:"icon-right",iconName:T?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:I,children:g.jsx("span",{dangerouslySetInnerHTML:{__html:X}})}),g.jsx("div",{className:`pkt-inputwrapper__helptext ${T?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:r}),!$&&g.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":re,children:t})]}),g.jsx(g.Fragment,{children:E}),o&&g.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[u||0,c&&`/${c}`]})]})}):g.jsxs(g.Fragment,{children:[!$&&g.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":re,id:`${e}-label`,children:t}),E]}),y&&b&&g.jsx("div",{children:g.jsx(Ps,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});Ar.displayName="PktInputWrapper";const Qg=on({tagName:"pkt-link",elementClass:Tn,react:R,displayName:"PktLink",events:{onClick:"click"}}),Fu=R.forwardRef(({children:e,...t},n)=>g.jsx(Qg,{...t,ref:n,children:g.jsx("span",{className:"pkt-contents",children:e})}));Fu.displayName="PktLink";const ev=on({tagName:"pkt-linkcard",elementClass:fn,react:R,displayName:"PktLinkCard",events:{}}),Au=R.forwardRef(({children:e,...t},n)=>g.jsx(ev,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Au.displayName="PktLinkCard";const $u=R.forwardRef(({className:e,message:t,size:n="medium",inline:r=!1,isLoading:i=!0,variant:o="rainbow",delay:u=0,children:c,...p},h)=>{const m=`pkt-loader pkt-loader--${n}`,[v,y]=R.useState(!(u>0));u>0&&setTimeout(()=>{y(!0)},u);const b=k=>k==="shapes"?"loader":k==="blue"?"spinner-blue":"spinner";return g.jsx("div",{role:"status","aria-live":"polite","aria-busy":i,className:`pkt-loader--${r?"inline":"box"} ${e||""}`,children:i?g.jsx(g.Fragment,{children:v?g.jsxs("div",{className:m,"data-testid":"pkt-loader",ref:h,...p,children:[g.jsx(ke,{name:b(o),path:"https://punkt-cdn.oslo.kommune.no/12.14/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&g.jsx("p",{children:t})]}):null}):c})});$u.displayName="PktLoader";const tv=on({tagName:"pkt-messagebox",elementClass:Nn,react:R,displayName:"PktMessagebox",events:{onClose:"close"}}),Tu=R.forwardRef(({children:e,...t},n)=>g.jsx(tv,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Tu.displayName="PktMessagebox";const nv=on({tagName:"pkt-modal",elementClass:mn,react:R,displayName:"PktModal",events:{}}),Nu=R.forwardRef(({children:e,...t},n)=>g.jsx(nv,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Nu.displayName="PktModal";/*!
|
|
603
|
+
*/(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})()})(Cu);var zg=Cu.exports;const ct=Za(zg),Wg=R.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,p]=R.useState(i),h=r?r.isOpen:c,m=b=>b??void 0,v=(b,k)=>{b.preventDefault(),r!==void 0&&r.onToggleClick(b,k),p(!h)},y=ct(t,"pkt-accordion-item");return g.jsxs("details",{className:y,ref:u,id:o,open:m(r?r.isOpen:c),children:[g.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${o}`,onClick:b=>v(b,o),children:[e,g.jsx(we,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),g.jsx("div",{id:`pkt-accordion-item-content-${o}`,role:"region",className:"pkt-accordion-item__content",children:n})]})}),Gg=on({tagName:"pkt-alert",elementClass:Yt,react:R,displayName:"PktAlert",events:{onClose:"close"}}),Ps=R.forwardRef(({children:e,...t},n)=>g.jsx(Gg,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Ps.displayName="PktAlert";const xu=R.forwardRef(({href:e,text:t,onClick:n,className:r,...i},o)=>{const u=[r,"pkt-back-link"].filter(Boolean).join(" "),c=p=>{n&&n(p)};return g.jsx("nav",{ref:o,className:u,"aria-label":"Gå tilbake et steg",children:g.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:c,...i,children:[g.jsx(we,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),g.jsx("span",{className:"pkt-back-link__text",children:t||"Forsiden"})]})})});xu.displayName="PktBackLink";const Yg=R.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 g.jsxs("nav",{ref:i,"aria-label":"brødsmulemeny",className:c,children:[g.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:o.map((p,h)=>g.jsx("li",{className:"pkt-breadcrumbs__item",children:h===o.length-1?g.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:g.jsx("span",{className:"pkt-breadcrumbs__text",children:p.text})}):t==="router"?g.jsxs(Un.Link,{to:p.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[g.jsx(we,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:p.text})]}):g.jsxs("a",{href:p.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[g.jsx(we,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:p.text})]})},`breadcrumb-${h}`))}),t==="router"?g.jsxs(Un.Link,{to:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[g.jsx(we,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]}):g.jsxs("a",{href:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[g.jsx(we,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]})]})}),nr=R.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:p,color:h,isLoading:m=!1,...v},y)=>{const b=[t,"pkt-btn",i&&`pkt-btn--${i}`,o&&`pkt-btn--${o}`,c&&`pkt-btn--${c}`,h&&`pkt-btn--${h}`,m&&"pkt-btn--active",p&&`pkt-btn--${p}`].filter(Boolean).join(" ");return g.jsxs("button",{...v,className:b,type:u,ref:y,children:[m&&g.jsx(we,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.14/animations/"}),c!=="label-only"&&g.jsx(we,{className:"pkt-btn__icon",name:n}),g.jsx("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&g.jsx(we,{className:"pkt-btn__icon",name:r})]})});nr.displayName="PktButton";const Jg=on({tagName:"pkt-card",elementClass:hn,react:R,displayName:"PktCard",events:{}}),Su=R.forwardRef(({children:e,...t},n)=>g.jsx(Jg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Su.displayName="PktCard";const fi=R.forwardRef(({id:e,hasTile:t=!1,disabled:n=!1,label:r,labelPosition:i="right",hideLabel:o=!1,checkHelptext:u,hasError:c=!1,isSwitch:p=!1,className:h,...m},v)=>{const y=[h,"pkt-input-check"].filter(Boolean).join(" ");return g.jsx("div",{className:y,children:g.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"&&g.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]}),g.jsx("input",{ref:v,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:p?"switch":"checkbox",id:e,disabled:n,...m}),r&&i==="right"&&g.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});fi.displayName="PktCheckbox";const _u=on({tagName:"pkt-datepicker",elementClass:Ge,react:R,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Kg=({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,p;const u=[r,"pkt-footer"].filter(Boolean).join(" ");return g.jsx("footer",{className:u,"data-mode":"dark",children:g.jsxs("div",{className:"pkt-footer__container",children:[g.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:e.title}),g.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&g.jsx("li",{className:"pkt-footer__text",children:e.text}),(c=e.links)==null?void 0:c.map((h,m)=>g.jsx("li",{className:"pkt-footer__list-item",children:g.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:[g.jsx(we,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${m}`))]})]}),g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:t.title}),g.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&g.jsx("li",{className:"pkt-footer__text",children:t.text}),(p=t.links)==null?void 0:p.map((h,m)=>g.jsx("li",{className:"pkt-footer__list-item",children:g.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:[g.jsx(we,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${m}`))]})]}),g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),g.jsxs("ul",{className:"pkt-footer__list",children:[g.jsx("li",{className:"pkt-footer__list-item",children:g.jsxs("a",{className:"pkt-footer__link",href:i,children:[g.jsx(we,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),g.jsx("li",{className:"pkt-footer__list-item",children:g.jsxs("a",{className:"pkt-footer__link",href:o,children:[g.jsx(we,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),n&&g.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[g.jsx("div",{className:"pkt-footer__social-languages",children:n.filter(h=>h.language).map((h,m)=>g.jsx("div",{className:"pkt-footer__social-language",children:g.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-${m}`))}),g.jsx("div",{className:"pkt-footer__social-icons",children:n.filter(h=>h.iconName).map((h,m)=>g.jsx(R.Fragment,{children:g.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:g.jsx(we,{className:"pkt-footer__social-icon",name:h.iconName})})},`sociallinks-${m}`))})]})]})})},Zg=({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 g.jsx("footer",{className:i,"data-mode":"dark",children:g.jsx("div",{className:"pkt-footer-simple__container",children:g.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((o,u)=>g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.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:[g.jsx(we,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),o.text]})},u)),g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.jsxs("a",{className:"pkt-footer-simple__link",href:t,children:[g.jsx(we,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.jsxs("a",{className:"pkt-footer-simple__link",href:n,children:[g.jsx(we,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},Xg=R.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:p,userMenuFooter:h,canChangeRepresentation:m=!0,showMenuButton:v=!1,showLogOutButton:y=!1,openMenu:b,logOut:k,changeRepresentation:x,children:C,...N},_)=>{const E=R.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]),[$,S]=R.useState(!1),[T,M]=R.useState(0),[H,O]=R.useState(!1),z=R.useRef(null);R.useEffect(()=>(document&&(document.addEventListener("mouseup",Z),window.addEventListener("scroll",W)),()=>{document&&(document.removeEventListener("mouseup",Z),window.removeEventListener("scroll",W))}));const te=()=>{O(!H)},Z=I=>{z.current&&!z.current.contains(I.target)&&O(!1)},W=()=>{if(i){const I=window.pageYOffset||document.documentElement.scrollTop;if(I<0||Math.abs(I-T)<60)return;S(I>T),M(I)}};return g.jsxs("header",{...N,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:ct(e,"pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":i,"pkt-header--hidden":$}),ref:_,children:[g.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?g.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:g.jsx(we,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.14/logos/"})}):g.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:g.jsx(we,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.14/logos/"})}),g.jsx("span",{className:"pkt-header__logo-service",children:n})]}),g.jsx("nav",{className:"pkt-header__actions",children:g.jsxs("ul",{className:"pkt-header__actions-row",children:[v&&g.jsx("li",{children:g.jsx(nr,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(o||c)&&g.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${H&&!$?"pkt-header--open-dropdown":""}`,ref:z,children:[g.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":H,onClick:te,children:[g.jsx(we,{name:"user",className:"pkt-btn__icon"}),g.jsx("span",{className:"pkt-header__user-fullname",children:(c==null?void 0:c.name)||(o==null?void 0:o.name)}),g.jsx("span",{className:"pkt-header__user-shortname",children:(c==null?void 0:c.shortname)||(o==null?void 0:o.shortname)}),g.jsx(we,{name:"chevron-thin-down",className:"pkt-btn--closed"}),g.jsx(we,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),g.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[o&&g.jsxs("li",{children:[g.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),g.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.lastLoggedIn&&g.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",g.jsx("time",{children:E})]})]}),u&&g.jsx("li",{children:g.jsx("ul",{className:"pkt-list",children:u.map((I,J)=>g.jsx("li",{children:typeof I.target=="string"?g.jsxs("a",{href:I.target,className:"pkt-link",children:[I.iconName&&g.jsx(we,{name:I.iconName,className:"pkt-link__icon"}),I.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:I.target,children:[I.iconName&&g.jsx(we,{name:I.iconName,className:"pkt-link__icon"}),I.title]})},`userMenu-${J}`))})}),(c||m)&&g.jsxs("li",{children:[c&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),g.jsx("div",{className:"pkt-user-menu__name",children:c.name}),c.orgNumber&&g.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",c.orgNumber]})]}),g.jsx("ul",{className:"pkt-list mt-size-16",children:m&&g.jsx("li",{children:g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:x,children:[g.jsx(we,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),g.jsx("li",{children:g.jsx("ul",{className:"pkt-list",children:(p||!y)&&g.jsxs(g.Fragment,{children:[p==null?void 0:p.map((I,J)=>g.jsx("li",{children:typeof I.target=="string"?g.jsxs("a",{href:I.target,className:"pkt-link",children:[I.iconName&&g.jsx(we,{name:I.iconName,className:"pkt-link__icon"}),I.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:I.target,children:[I.iconName&&g.jsx(we,{name:I.iconName,className:"pkt-link__icon"}),I.title]})},`userOptions-${J}`)),!y&&g.jsx("li",{children:g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:k,children:[g.jsx(we,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),h&&g.jsx("li",{className:"footer",children:g.jsx("ul",{className:"pkt-list-horizontal bordered",children:h.map((I,J)=>g.jsx("li",{children:typeof I.target=="string"?g.jsx("a",{href:I.target,className:"pkt-link",children:I.title}):g.jsx("button",{className:"pkt-link-button pkt-link",onClick:I.target,children:I.title})},`userMenuFooter-${J}`))})})]})]}),C&&g.jsx("li",{children:C}),y&&g.jsx("li",{children:g.jsx(nr,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:k,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),Eu=R.forwardRef(({label:e,id:t,children:n,...r},i)=>g.jsxs("div",{className:"pkt-form-group",children:[g.jsx("label",{htmlFor:t,className:"pkt-form-label",children:e}),g.jsx("input",{className:"pkt-form-input",id:t,...r,ref:i}),n]}));Eu.displayName="PktInput";const Ar=R.forwardRef(({forId:e,label:t,helptext:n,helptextDropdown:r,helptextDropdownButton:i,counter:o,counterCurrent:u,counterMaxLength:c,optionalTag:p=!1,optionalText:h="Valgfritt",requiredTag:m=!1,requiredText:v="Må fylles ut",hasError:y,errorMessage:b,disabled:k,inline:x,ariaDescribedby:C,useWrapper:N=!0,children:_,className:E,hasFieldset:$=!1},S)=>{const[T,M]=R.useState(!1),H=()=>{M(!T)},O=()=>p?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":m?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",z=p?h:m?v:"",te=k?"pkt-inputwrapper--disabled":"",Z=x?"pkt-inputwrapper--inline":"",W=y?"pkt-inputwrapper--error":"",I=!!r&&r!=="",J=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',ee=$?"fieldset":I?"div":"label",de=$?"legend":I?"h2":"span",re=C||(n?`${e}-helptext`:void 0);return g.jsxs("div",{className:["pkt-inputwrapper",E,te,Z,W].join(" "),ref:S,children:[N?g.jsx(g.Fragment,{children:g.jsxs(ee,{htmlFor:$?void 0:e,"aria-describedby":I?void 0:C,className:`pkt-inputwrapper__label${$?" pkt-inputwrapper__fieldset":""}`,children:[g.jsxs(de,{id:`${e}-label`,className:`${$?" pkt-inputwrapper__legend":""}`,children:[t,z!==""&&g.jsx("span",{className:O(),children:z})]}),n&&g.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:n}),I&&r!==""&&g.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[g.jsx(nr,{skin:"tertiary",size:"small",variant:"icon-right",iconName:T?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:H,children:g.jsx("span",{dangerouslySetInnerHTML:{__html:J}})}),g.jsx("div",{className:`pkt-inputwrapper__helptext ${T?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:r}),!$&&g.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":re,children:t})]}),g.jsx(g.Fragment,{children:_}),o&&g.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[u||0,c&&`/${c}`]})]})}):g.jsxs(g.Fragment,{children:[!$&&g.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":re,id:`${e}-label`,children:t}),_]}),y&&b&&g.jsx("div",{children:g.jsx(Ps,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});Ar.displayName="PktInputWrapper";const Qg=on({tagName:"pkt-link",elementClass:Tn,react:R,displayName:"PktLink",events:{onClick:"click"}}),Fu=R.forwardRef(({children:e,...t},n)=>g.jsx(Qg,{...t,ref:n,children:g.jsx("span",{className:"pkt-contents",children:e})}));Fu.displayName="PktLink";const ev=on({tagName:"pkt-linkcard",elementClass:fn,react:R,displayName:"PktLinkCard",events:{}}),Au=R.forwardRef(({children:e,...t},n)=>g.jsx(ev,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Au.displayName="PktLinkCard";const $u=R.forwardRef(({className:e,message:t,size:n="medium",inline:r=!1,isLoading:i=!0,variant:o="rainbow",delay:u=0,children:c,...p},h)=>{const m=`pkt-loader pkt-loader--${n}`,[v,y]=R.useState(!(u>0));u>0&&setTimeout(()=>{y(!0)},u);const b=k=>k==="shapes"?"loader":k==="blue"?"spinner-blue":"spinner";return g.jsx("div",{role:"status","aria-live":"polite","aria-busy":i,className:`pkt-loader--${r?"inline":"box"} ${e||""}`,children:i?g.jsx(g.Fragment,{children:v?g.jsxs("div",{className:m,"data-testid":"pkt-loader",ref:h,...p,children:[g.jsx(we,{name:b(o),path:"https://punkt-cdn.oslo.kommune.no/12.14/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&g.jsx("p",{children:t})]}):null}):c})});$u.displayName="PktLoader";const tv=on({tagName:"pkt-messagebox",elementClass:Nn,react:R,displayName:"PktMessagebox",events:{onClose:"close"}}),Tu=R.forwardRef(({children:e,...t},n)=>g.jsx(tv,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Tu.displayName="PktMessagebox";const nv=on({tagName:"pkt-modal",elementClass:mn,react:R,displayName:"PktModal",events:{}}),Nu=R.forwardRef(({children:e,...t},n)=>g.jsx(nv,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Nu.displayName="PktModal";/*!
|
|
604
604
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
605
605
|
*
|
|
606
606
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
@@ -608,7 +608,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
608
608
|
*/function Bu(e){return Object.prototype.toString.call(e)==="[object Object]"}function rv(e){var t,n;return Bu(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Bu(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var ju={},mi=En&&En.__assign||function(){return mi=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},mi.apply(this,arguments)},av=En&&En.__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(ju,"__esModule",{value:!0});var va=[];function iv(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function sv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function ov(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function gi(e,t,n){n===void 0&&(n="");var r={indent:" ",singleQuotes:!0},i=mi(mi({},r),t),o;i.inlineCharacterLimit===void 0?o={newLine:`
|
|
609
609
|
`,newLineOrSpace:`
|
|
610
610
|
`,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 m=h.replace(new RegExp(o.newLine,"g"),"").replace(new RegExp(o.newLineOrSpace,"g")," ").replace(new RegExp(o.pad+"|"+o.indent,"g"),"");return m.length<=i.inlineCharacterLimit?m:h.replace(new RegExp(o.newLine+"|"+o.newLineOrSpace,"g"),`
|
|
611
|
-
`).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(va.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||sv(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";va.push(e);var c="["+o.newLine+e.map(function(h,m){var v=e.length-1===m?o.newLine:","+o.newLineOrSpace,y=gi(h,i,n+i.indent);return i.transform&&(y=i.transform(e,m,y)),o.indent+y+v}).join("")+o.pad+"]";return va.pop(),u(c)}if(iv(e)){var p=av(Object.keys(e),ov(e));if(i.filter&&(p=p.filter(function(m){return i.filter&&i.filter(e,m)})),p.length===0)return"{}";va.push(e);var c="{"+o.newLine+p.map(function(m,v){var y=p.length-1===v?o.newLine:","+o.newLineOrSpace,b=typeof m=="symbol",k=!b&&/^[a-z$_][a-z$_0-9]*$/i.test(m.toString()),
|
|
611
|
+
`).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(va.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||sv(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";va.push(e);var c="["+o.newLine+e.map(function(h,m){var v=e.length-1===m?o.newLine:","+o.newLineOrSpace,y=gi(h,i,n+i.indent);return i.transform&&(y=i.transform(e,m,y)),o.indent+y+v}).join("")+o.pad+"]";return va.pop(),u(c)}if(iv(e)){var p=av(Object.keys(e),ov(e));if(i.filter&&(p=p.filter(function(m){return i.filter&&i.filter(e,m)})),p.length===0)return"{}";va.push(e);var c="{"+o.newLine+p.map(function(m,v){var y=p.length-1===v?o.newLine:","+o.newLineOrSpace,b=typeof m=="symbol",k=!b&&/^[a-z$_][a-z$_0-9]*$/i.test(m.toString()),x=b||k?m:gi(m,i),C=gi(e[m],i,n+i.indent);return i.transform&&(C=i.transform(e,m,C)),o.indent+String(x)+": "+C+y}).join("")+o.pad+"}";return va.pop(),u(c)}return e=String(e).replace(/[\r\n]/g,function(h){return h===`
|
|
612
612
|
`?"\\n":"\\r"}),i.singleQuotes?(e=e.replace(/\\?'/g,"\\'"),"'"+e+"'"):(e=e.replace(/"/g,'\\"'),'"'+e+'"')}var lv=ju.prettyPrint=gi,Os={exports:{}},$e={};/**
|
|
613
613
|
* @license React
|
|
614
614
|
* react-is.production.min.js
|
|
@@ -617,7 +617,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
617
617
|
*
|
|
618
618
|
* This source code is licensed under the MIT license found in the
|
|
619
619
|
* LICENSE file in the root directory of this source tree.
|
|
620
|
-
*/var Lu;function uv(){if(Lu)return $e;Lu=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),k;k=Symbol.for("react.module.reference");function
|
|
620
|
+
*/var Lu;function uv(){if(Lu)return $e;Lu=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),k;k=Symbol.for("react.module.reference");function x(C){if(typeof C=="object"&&C!==null){var N=C.$$typeof;switch(N){case e:switch(C=C.type,C){case n:case i:case r:case h:case m:return C;default:switch(C=C&&C.$$typeof,C){case c:case u:case p:case y:case v:case o:return C;default:return N}}case t:return N}}}return $e.ContextConsumer=u,$e.ContextProvider=o,$e.Element=e,$e.ForwardRef=p,$e.Fragment=n,$e.Lazy=y,$e.Memo=v,$e.Portal=t,$e.Profiler=i,$e.StrictMode=r,$e.Suspense=h,$e.SuspenseList=m,$e.isAsyncMode=function(){return!1},$e.isConcurrentMode=function(){return!1},$e.isContextConsumer=function(C){return x(C)===u},$e.isContextProvider=function(C){return x(C)===o},$e.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},$e.isForwardRef=function(C){return x(C)===p},$e.isFragment=function(C){return x(C)===n},$e.isLazy=function(C){return x(C)===y},$e.isMemo=function(C){return x(C)===v},$e.isPortal=function(C){return x(C)===t},$e.isProfiler=function(C){return x(C)===i},$e.isStrictMode=function(C){return x(C)===r},$e.isSuspense=function(C){return x(C)===h},$e.isSuspenseList=function(C){return x(C)===m},$e.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===i||C===r||C===h||C===m||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===v||C.$$typeof===o||C.$$typeof===u||C.$$typeof===p||C.$$typeof===k||C.getModuleId!==void 0)},$e.typeOf=x,$e}var Te={};/**
|
|
621
621
|
* @license React
|
|
622
622
|
* react-is.development.js
|
|
623
623
|
*
|
|
@@ -625,21 +625,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
625
625
|
*
|
|
626
626
|
* This source code is licensed under the MIT license found in the
|
|
627
627
|
* LICENSE file in the root directory of this source tree.
|
|
628
|
-
*/var Pu;function cv(){return Pu||(Pu=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"),p=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),y=Symbol.for("react.server_context"),b=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),
|
|
628
|
+
*/var Pu;function cv(){return Pu||(Pu=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"),p=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),y=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"),N=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function $(ne){return!!(typeof ne=="string"||typeof ne=="function"||ne===c||ne===h||i||ne===p||ne===k||ne===x||r||ne===_||e||t||n||typeof ne=="object"&&ne!==null&&(ne.$$typeof===N||ne.$$typeof===C||ne.$$typeof===m||ne.$$typeof===v||ne.$$typeof===b||ne.$$typeof===E||ne.getModuleId!==void 0))}function S(ne){if(typeof ne=="object"&&ne!==null){var wt=ne.$$typeof;switch(wt){case o:var Fe=ne.type;switch(Fe){case c:case h:case p:case k:case x:return Fe;default:var He=Fe&&Fe.$$typeof;switch(He){case y:case v:case b:case N:case C:case m:return He;default:return wt}}case u:return wt}}}var T=v,M=m,H=o,O=b,z=c,te=N,Z=C,W=u,I=h,J=p,ee=k,de=x,re=!1,pe=!1;function De(ne){return re||(re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function le(ne){return pe||(pe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ue(ne){return S(ne)===v}function nt(ne){return S(ne)===m}function Oe(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===o}function Ee(ne){return S(ne)===b}function Re(ne){return S(ne)===c}function he(ne){return S(ne)===N}function Dt(ne){return S(ne)===C}function jt(ne){return S(ne)===u}function ht(ne){return S(ne)===h}function bt(ne){return S(ne)===p}function zt(ne){return S(ne)===k}function kt(ne){return S(ne)===x}Te.ContextConsumer=T,Te.ContextProvider=M,Te.Element=H,Te.ForwardRef=O,Te.Fragment=z,Te.Lazy=te,Te.Memo=Z,Te.Portal=W,Te.Profiler=I,Te.StrictMode=J,Te.Suspense=ee,Te.SuspenseList=de,Te.isAsyncMode=De,Te.isConcurrentMode=le,Te.isContextConsumer=ue,Te.isContextProvider=nt,Te.isElement=Oe,Te.isForwardRef=Ee,Te.isFragment=Re,Te.isLazy=he,Te.isMemo=Dt,Te.isPortal=jt,Te.isProfiler=ht,Te.isStrictMode=bt,Te.isSuspense=zt,Te.isSuspenseList=kt,Te.isValidElementType=$,Te.typeOf=S}()),Te}process.env.NODE_ENV==="production"?Os.exports=uv():Os.exports=cv();var tn=Os.exports,gn=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function ya(e){"@babel/helpers - typeof";return ya=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},ya(e)}function Ou(e){return dv(e)||pv(e)||hv(e)||fv()}function dv(e){if(Array.isArray(e))return Ms(e)}function pv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hv(e,t){if(e){if(typeof e=="string")return Ms(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 Ms(e,t)}}function Ms(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 fv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
629
629
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Is(e,t){return e===null||ya(e)!=="object"||e instanceof Date||e instanceof RegExp||Ah.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(n){return Is(n,t)}):Object.keys(e).sort().reduce(function(n,r){return r==="_owner"||(r==="current"||t.has(e[r])?n[r]="[Circular]":n[r]=Is(e[r],t)),n},{}))}function mv(e){return Is(e,new WeakSet)}var Mu=function(t){return{type:"string",value:t}},gv=function(t){return{type:"number",value:t}},vv=function(t,n,r,i){return{type:"ReactElement",displayName:t,props:n,defaultProps:r,childrens:i}},yv=function(t,n){return{type:"ReactFragment",key:t,childrens:n}},Dv=!!R.Fragment,Iu=function(t){return!t.name||t.name==="_default"?"No Display Name":t.name},bv=function e(t){switch(!0){case!!t.displayName:return t.displayName;case t.$$typeof===tn.Memo:return e(t.type);case t.$$typeof===tn.ForwardRef:return e(t.render);default:return Iu(t)}},kv=function(t){switch(!0){case typeof t.type=="string":return t.type;case typeof t.type=="function":return t.type.displayName?t.type.displayName:Iu(t.type);case tn.isForwardRef(t):case tn.isMemo(t):return bv(t.type);case tn.isContextConsumer(t):return"".concat(t.type._context.displayName||"Context",".Consumer");case tn.isContextProvider(t):return"".concat(t.type._context.displayName||"Context",".Provider");case tn.isLazy(t):return"Lazy";case tn.isProfiler(t):return"Profiler";case tn.isStrictMode(t):return"StrictMode";case tn.isSuspense(t):return"Suspense";default:return"UnknownElementType"}},Ru=function(t,n){return n!=="children"},wv=function(t){return t!==!0&&t!==!1&&t!==null&&t!==""},qu=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},Rs=function e(t,n){var r=n.displayName,i=r===void 0?kv:r;if(typeof t=="string")return Mu(t);if(typeof t=="number")return gv(t);if(!R.isValidElement(t))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(ya(t),"`"));var o=i(t),u=qu(t.props,Ru);t.ref!==null&&(u.ref=t.ref);var c=t.key;typeof c=="string"&&c.search(/^\./)&&(u.key=c);var p=qu(t.type.defaultProps||{},Ru),h=R.Children.toArray(t.props.children).filter(wv).map(function(m){return e(m,n)});return Dv&&t.type===R.Fragment?yv(c,h):vv(o,u,p,h)};function Cv(){}var xv=function(t){return t.toString().split(`
|
|
630
630
|
`).map(function(n){return n.trim()}).join("")},Hu=xv,Uu=function(e,t){var n=t.functionValue,r=n===void 0?Hu:n,i=t.showFunctions;return r(!i&&r===Hu?Cv:e)},Sv=function(e,t,n,r){var i=mv(e),o=lv(i,{transform:function(c,p,h){var m=c[p];return m&&R.isValidElement(m)?vi(Rs(m,r),!0,n,r):typeof m=="function"?Uu(m,r):h}});return t?o.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):o.replace(/\t/g,gn(1,r.tabStop)).replace(/\n([^$])/g,`
|
|
631
631
|
`.concat(gn(n+1,r.tabStop),"$1"))},_v=function(t){return t.replace(/"/g,""")},Ev=function(t,n,r,i){if(typeof t=="number")return"{".concat(String(t),"}");if(typeof t=="string")return'"'.concat(_v(t),'"');if(ya(t)==="symbol"){var o=t.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return o?"{Symbol('".concat(o,"')}"):"{Symbol()}"}return typeof t=="function"?"{".concat(Uu(t,i),"}"):R.isValidElement(t)?"{".concat(vi(Rs(t,i),!0,r,i),"}"):t instanceof Date?isNaN(t.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(t.toISOString(),'")}'):rv(t)||Array.isArray(t)?"{".concat(Sv(t,n,r,i),"}"):"{".concat(String(t),"}")},Fv=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 p=t?n:i,h=c.useBooleanShorthandSyntax,m=c.tabStop,v=Ev(p,o,u,c),y=" ",b=`
|
|
632
632
|
`.concat(gn(u+1,m)),k=v.includes(`
|
|
633
633
|
`);return h&&v==="{false}"&&!r?(y="",b=""):h&&v==="{true}"?(y+="".concat(e),b+="".concat(e)):(y+="".concat(e,"=").concat(v),b+="".concat(e,"=").concat(v)),{attributeFormattedInline:y,attributeFormattedMultiline:b,isMultilineAttribute:k}},Av=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(Mu(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n},$v=function(t){return["key","ref"].includes(t)},Tv=function(e){return function(t){var n=t.includes("key"),r=t.includes("ref"),i=t.filter(function(u){return!$v(u)}),o=Ou(e?i.sort():i);return r&&o.unshift("ref"),n&&o.unshift("key"),o}};function Nv(e,t){return Array.isArray(t)?function(n){return t.indexOf(n)===-1}:function(n){return t(e[n],n)}}var Bv=function(t,n,r,i,o){var u=o.tabStop;return t.type==="string"?n.split(`
|
|
634
634
|
`).map(function(c,p){return p===0?c:"".concat(gn(i,u)).concat(c)}).join(`
|
|
635
|
-
`):n},jv=function(t,n,r){return function(i){return Bv(i,vi(i,t,n,r),t,n,r)}},Lv=function(t,n){return function(r){var i=Object.keys(t).includes(r);return!i||i&&t[r]!==n[r]}},Vu=function(t,n,r,i,o){return o?gn(r,i).length+n.length>o:t.length>1},Pv=function(t,n,r,i,o,u,c){return(Vu(t,n,o,u,c)||r)&&!i},zu=function(e,t,n,r){var i=e.type,o=e.displayName,u=o===void 0?"":o,c=e.childrens,p=e.props,h=p===void 0?{}:p,m=e.defaultProps,v=m===void 0?{}:m;if(i!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));var y=r.filterProps,b=r.maxInlineAttributesLineLength,k=r.showDefaultProps,
|
|
636
|
-
`.concat(gn(n,C)),Pv(
|
|
637
|
-
`,N+=gn(
|
|
638
|
-
`.concat(gn(
|
|
639
|
-
`,N+=gn(
|
|
640
|
-
`,
|
|
641
|
-
`);return N.message&&!
|
|
642
|
-
${
|
|
635
|
+
`):n},jv=function(t,n,r){return function(i){return Bv(i,vi(i,t,n,r),t,n,r)}},Lv=function(t,n){return function(r){var i=Object.keys(t).includes(r);return!i||i&&t[r]!==n[r]}},Vu=function(t,n,r,i,o){return o?gn(r,i).length+n.length>o:t.length>1},Pv=function(t,n,r,i,o,u,c){return(Vu(t,n,o,u,c)||r)&&!i},zu=function(e,t,n,r){var i=e.type,o=e.displayName,u=o===void 0?"":o,c=e.childrens,p=e.props,h=p===void 0?{}:p,m=e.defaultProps,v=m===void 0?{}:m;if(i!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));var y=r.filterProps,b=r.maxInlineAttributesLineLength,k=r.showDefaultProps,x=r.sortProps,C=r.tabStop,N="<".concat(u),_=N,E=N,$=!1,S=[],T=Nv(h,y);Object.keys(h).filter(T).filter(Lv(v,h)).forEach(function(O){return S.push(O)}),Object.keys(v).filter(T).filter(function(){return k}).filter(function(O){return!S.includes(O)}).forEach(function(O){return S.push(O)});var M=Tv(x)(S);if(M.forEach(function(O){var z=Fv(O,Object.keys(h).includes(O),h[O],Object.keys(v).includes(O),v[O],t,n,r),te=z.attributeFormattedInline,Z=z.attributeFormattedMultiline,W=z.isMultilineAttribute;W&&($=!0),_+=te,E+=Z}),E+=`
|
|
636
|
+
`.concat(gn(n,C)),Pv(M,_,$,t,n,C,b)?N=E:N=_,c&&c.length>0){var H=n+1;N+=">",t||(N+=`
|
|
637
|
+
`,N+=gn(H,C)),N+=c.reduce(Av,[]).map(jv(t,H,r)).join(t?"":`
|
|
638
|
+
`.concat(gn(H,C))),t||(N+=`
|
|
639
|
+
`,N+=gn(H-1,C)),N+="</".concat(u,">")}else Vu(M,_,n,C,b)||(N+=" "),N+="/>";return N},Ov="",Wu="React.Fragment",Mv=function(t,n,r){var i={};return n&&(i={key:n}),{type:"ReactElement",displayName:t,props:i,defaultProps:{},childrens:r}},Iv=function(t){var n=t.key;return!!n},Rv=function(t){var n=t.childrens;return n.length===0},qv=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,p;return c?Rv(e)||Iv(e)?p=Wu:p=Ov:p=Wu,zu(Mv(p,o,u),t,n,r)},Hv=["<",">","{","}"],Uv=function(t){return Hv.some(function(n){return t.includes(n)})},Vv=function(t){return Uv(t)?"{`".concat(t,"`}"):t},zv=function(t){var n=t;return n.endsWith(" ")&&(n=n.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),n.startsWith(" ")&&(n=n.replace(/^(\s+)(.*)$/,"{'$1'}$2")),n},vi=function(e,t,n,r){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(zv(Vv(String(e.value)))):"";if(e.type==="ReactElement")return zu(e,t,n,r);if(e.type==="ReactFragment")return qv(e,t,n,r);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},Wv=function(e,t){return vi(e,!1,0,t)},Gv=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,p=c===void 0?!1:c,h=n.functionValue,m=n.tabStop,v=m===void 0?2:m,y=n.useBooleanShorthandSyntax,b=y===void 0?!0:y,k=n.useFragmentShortSyntax,x=k===void 0?!0:k,C=n.sortProps,N=C===void 0?!0:C,_=n.maxInlineAttributesLineLength,E=n.displayName;if(!t)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var $={filterProps:i,showDefaultProps:u,showFunctions:p,functionValue:h,tabStop:v,useBooleanShorthandSyntax:b,useFragmentShortSyntax:x,sortProps:N,maxInlineAttributesLineLength:_,displayName:E};return Wv(Rs(t,$),$)},Yv=Object.create,yi=Object.defineProperty,Jv=Object.getOwnPropertyDescriptor,Kv=Object.getOwnPropertyNames,Zv=Object.getPrototypeOf,Xv=Object.prototype.hasOwnProperty,Gu=e=>{throw TypeError(e)},Qv=(e,t)=>()=>(e&&(t=e(e=0)),t),qs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Di=(e,t)=>{for(var n in t)yi(e,n,{get:t[n],enumerable:!0})},Yu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Kv(t))!Xv.call(e,i)&&i!==n&&yi(e,i,{get:()=>t[i],enumerable:!(r=Jv(t,i))||r.enumerable});return e},bi=(e,t,n)=>(n=e!=null?Yv(Zv(e)):{},Yu(yi(n,"default",{value:e,enumerable:!0}),e)),e2=e=>Yu(yi({},"__esModule",{value:!0}),e),t2=(e,t,n)=>t.has(e)||Gu("Cannot "+n),n2=(e,t,n)=>t.has(e)?Gu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Da=(e,t,n)=>(t2(e,t,"access private method"),n),Hs=qs((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n}),Ju={};Di(Ju,{default:()=>Zu,shouldHighlight:()=>Ku});var Ku,Zu,r2=Qv(()=>{Ku=()=>!1,Zu=String}),a2=qs((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}),i2=qs(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=b,e.default=k;var t=(r2(),e2(Ju)),n=i(a2(),!0);function r(x){if(typeof WeakMap!="function")return null;var C=new WeakMap,N=new WeakMap;return(r=function(_){return _?N:C})(x)}function i(x,C){if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var N=r(C);if(N&&N.has(x))return N.get(x);var _={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in x)if($!=="default"&&{}.hasOwnProperty.call(x,$)){var S=E?Object.getOwnPropertyDescriptor(x,$):null;S&&(S.get||S.set)?Object.defineProperty(_,$,S):_[$]=x[$]}return _.default=x,N&&N.set(x,_),_}var o=n.default,u=(x,C)=>N=>x(C(N)),c;function p(x){return x?(c!=null||(c=(0,n.createColors)(!0)),c):o}var h=!1;function m(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 y(x,C,N){let _=Object.assign({column:0,line:-1},x.start),E=Object.assign({},_,x.end),{linesAbove:$=2,linesBelow:S=3}=N||{},T=_.line,M=_.column,H=E.line,O=E.column,z=Math.max(T-($+1),0),te=Math.min(C.length,H+S);T===-1&&(z=0),H===-1&&(te=C.length);let Z=H-T,W={};if(Z)for(let I=0;I<=Z;I++){let J=I+T;if(!M)W[J]=!0;else if(I===0){let ee=C[J-1].length;W[J]=[M,ee-M+1]}else if(I===Z)W[J]=[0,O];else{let ee=C[J-I].length;W[J]=[0,ee]}}else M===O?M?W[T]=[M,0]:W[T]=!0:W[T]=[M,O-M];return{start:z,end:te,markerLines:W}}function b(x,C,N={}){let _=(N.highlightCode||N.forceColor)&&(0,t.shouldHighlight)(N),E=p(N.forceColor),$=m(E),S=(W,I)=>_?W(I):I,T=x.split(v),{start:M,end:H,markerLines:O}=y(C,T,N),z=C.start&&typeof C.start.column=="number",te=String(H).length,Z=(_?(0,t.default)(x,N):x).split(v,H).slice(M,H).map((W,I)=>{let J=M+1+I,ee=` ${` ${J}`.slice(-te)} |`,de=O[J],re=!O[J+1];if(de){let pe="";if(Array.isArray(de)){let De=W.slice(0,Math.max(de[0]-1,0)).replace(/[^\t]/g," "),le=de[1]||1;pe=[`
|
|
640
|
+
`,S($.gutter,ee.replace(/\d/g," "))," ",De,S($.marker,"^").repeat(le)].join(""),re&&N.message&&(pe+=" "+S($.message,N.message))}return[S($.marker,">"),S($.gutter,ee),W.length>0?` ${W}`:"",pe].join("")}else return` ${S($.gutter,ee)}${W.length>0?` ${W}`:""}`}).join(`
|
|
641
|
+
`);return N.message&&!z&&(Z=`${" ".repeat(te+1)}${N.message}
|
|
642
|
+
${Z}`),_?E.reset(Z):Z}function k(x,C,N,_={}){if(!h){h=!0;let E="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let $=new Error(E);$.name="DeprecationWarning",console.warn(new Error(E))}}return N=Math.max(N,0),b(x,{start:{column:N,line:C}},_)}}),s2={};Di(s2,{__debug:()=>l0,check:()=>s0,doc:()=>cd,format:()=>yo,formatWithCursor:()=>pd,getSupportInfo:()=>o0,util:()=>dd,version:()=>PD});var o2=(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)},ki=o2;function Bn(){}Bn.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(E){return i?(setTimeout(function(){i(void 0,E)},0),!0):E}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var c=t.length,p=e.length,h=1,m=c+p;r.maxEditLength&&(m=Math.min(m,r.maxEditLength));var v=(n=r.timeout)!==null&&n!==void 0?n:1/0,y=Date.now()+v,b=[{oldPos:-1,lastComponent:void 0}],k=this.extractCommon(b[0],t,e,0);if(b[0].oldPos+1>=p&&k+1>=c)return u([{value:this.join(t),count:t.length}]);var x=-1/0,C=1/0;function N(){for(var E=Math.max(x,-h);E<=Math.min(C,h);E+=2){var $=void 0,S=b[E-1],T=b[E+1];S&&(b[E-1]=void 0);var M=!1;if(T){var H=T.oldPos-E;M=T&&0<=H&&H<c}var O=S&&S.oldPos+1<p;if(!M&&!O){b[E]=void 0;continue}if(!O||M&&S.oldPos+1<T.oldPos?$=o.addToPath(T,!0,void 0,0):$=o.addToPath(S,void 0,!0,1),k=o.extractCommon($,t,e,E),$.oldPos+1>=p&&k+1>=c)return u(l2(o,$.lastComponent,t,e,o.useLongestToken));b[E]=$,$.oldPos+1>=p&&(C=Math.min(C,E-1)),k+1>=c&&(x=Math.max(x,E+1))}h++}if(i)(function E(){setTimeout(function(){if(h>m||Date.now()>y)return i();N()||E()},0)})();else for(;h<=m&&Date.now()<=y;){var _=N();if(_)return _}},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,p=0;c+1<i&&u+1<o&&this.equals(t[c+1],n[u+1]);)c++,u++,p++;return p&&(e.lastComponent={count:p,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 l2(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,p=o.length,h=0,m=0;c<p;c++){var v=o[c];if(v.removed){if(v.value=e.join(r.slice(m,m+v.count)),m+=v.count,c&&o[c-1].added){var y=o[c-1];o[c-1]=o[c],o[c]=y}}else{if(!v.added&&i){var b=n.slice(h,h+v.count);b=b.map(function(x,C){var N=r[m+C];return N.length>x.length?N:x}),v.value=e.join(b)}else v.value=e.join(n.slice(h,h+v.count));h+=v.count,v.added||(m+=v.count)}}var k=o[p-1];return p>1&&typeof k.value=="string"&&(k.added||k.removed)&&e.equals("",k.value)&&(o[p-2].value+=k.value,o.pop()),o}var Xu=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Qu=/\S/,ec=new Bn;ec.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Qu.test(e)&&!Qu.test(t)},ec.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]&&Xu.test(t[n])&&Xu.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var tc=new Bn;tc.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
643
643
|
`));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 u2=new Bn;u2.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var c2=new Bn;c2.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function wi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wi=function(t){return typeof t}:wi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wi(e)}var d2=Object.prototype.toString,ba=new Bn;ba.useLongestToken=!0,ba.tokenize=tc.tokenize,ba.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(Us(e,null,null,i),i," ")},ba.equals=function(e,t){return Bn.prototype.equals.call(ba,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Us(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(d2.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]=Us(e[o],t,n,r,i);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),wi(e)==="object"&&e!==null){t.push(e),u={},n.push(u);var c=[],p;for(p in e)e.hasOwnProperty(p)&&c.push(p);for(c.sort(),o=0;o<c.length;o+=1)p=c[o],u[p]=Us(e[p],t,n,r,p);t.pop(),n.pop()}else u=e;return u}var Ci=new Bn;Ci.tokenize=function(e){return e.slice()},Ci.join=Ci.removeEmpty=function(e){return e};function p2(e,t,n){return Ci.diff(e,t,n)}function h2(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
644
644
|
`?"crlf":"cr":"lf"}function Vs(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
645
645
|
`;default:return`
|
|
@@ -649,65 +649,65 @@ ${V}`),E?_.reset(V):V}function k(S,C,N,E={}){if(!h){h=!0;let _="Passing lineNumb
|
|
|
649
649
|
`)}var rr="string",vn="array",ar="cursor",yn="indent",Dn="align",bn="trim",Tt="group",nn="fill",Mt="if-break",kn="indent-if-break",wn="line-suffix",Cn="line-suffix-boundary",dt="line",rn="label",Ht="break-parent",rc=new Set([ar,yn,Dn,bn,Tt,nn,Mt,kn,wn,Cn,dt,rn,Ht]);function m2(e){if(typeof e=="string")return rr;if(Array.isArray(e))return vn;if(!e)return;let{type:t}=e;if(rc.has(t))return t}var ir=m2,g2=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function v2(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
650
650
|
Expected it to be 'string' or 'object'.`;if(ir(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=g2([...rc].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
651
651
|
Expected it to be ${r}.`}var y2=class extends Error{constructor(t){super(v2(t));Kr(this,"name","InvalidDocError");this.doc=t}},$r=y2,ac={};function D2(e,t,n,r){let i=[e];for(;i.length>0;){let o=i.pop();if(o===ac){n(i.pop());continue}n&&i.push(o,ac);let u=ir(o);if(!u)throw new $r(o);if((t==null?void 0:t(o))!==!1)switch(u){case vn:case nn:{let c=u===vn?o:o.parts;for(let p=c.length,h=p-1;h>=0;--h)i.push(c[h]);break}case Mt:i.push(o.flatContents,o.breakContents);break;case Tt:if(r&&o.expandedStates)for(let c=o.expandedStates.length,p=c-1;p>=0;--p)i.push(o.expandedStates[p]);else i.push(o.contents);break;case Dn:case yn:case kn:case rn:case wn:i.push(o.contents);break;case rr:case ar:case bn:case Cn:case dt:case Ht:break;default:throw new $r(o)}}}var zs=D2,b2=()=>{},k2=b2;function xi(e){return{type:yn,contents:e}}function Tr(e,t){return{type:Dn,contents:t,n:e}}function ic(e,t={}){return k2(t.expandedStates),{type:Tt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function w2(e){return Tr(Number.NEGATIVE_INFINITY,e)}function C2(e){return Tr({type:"root"},e)}function x2(e){return Tr(-1,e)}function S2(e,t){return ic(e[0],{...t,expandedStates:e})}function sc(e){return{type:nn,parts:e}}function _2(e,t="",n={}){return{type:Mt,breakContents:e,flatContents:t,groupId:n.groupId}}function E2(e,t){return{type:kn,contents:e,groupId:t.groupId,negate:t.negate}}function Ws(e){return{type:wn,contents:e}}var F2={type:Cn},Si={type:Ht},A2={type:bn},Gs={type:dt,hard:!0},oc={type:dt,hard:!0,literal:!0},lc={type:dt},$2={type:dt,soft:!0},sr=[Gs,Si],uc=[oc,Si],Ys={type:ar};function cc(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function dc(e,t,n){let r=e;if(t>0){for(let i=0;i<Math.floor(t/n);++i)r=xi(r);r=Tr(t%n,r),r=Tr(Number.NEGATIVE_INFINITY,r)}return r}function T2(e,t){return e?{type:rn,label:e,contents:t}:t}function xn(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...xn(r));else{let i=xn(r);i!==""&&n.push(i)}return n}return e.type===Mt?{...e,breakContents:xn(e.breakContents),flatContents:xn(e.flatContents)}:e.type===Tt?{...e,contents:xn(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(xn)}:e.type===nn?{type:"fill",parts:e.parts.map(xn)}:e.contents?{...e,contents:xn(e.contents)}:e}function N2(e){let t=Object.create(null),n=new Set;return r(xn(e));function r(o,u,c){var p,h;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let m=o.map(r).filter(Boolean);return m.length===1?m[0]:`[${m.join(", ")}]`}if(o.type===dt){let m=((p=c==null?void 0:c[u+1])==null?void 0:p.type)===Ht;return o.literal?m?"literalline":"literallineWithoutBreakParent":o.hard?m?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===Ht)return((h=c==null?void 0:c[u-1])==null?void 0:h.type)===dt&&c[u-1].hard?void 0:"breakParent";if(o.type===bn)return"trim";if(o.type===yn)return"indent("+r(o.contents)+")";if(o.type===Dn)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===Mt)return"ifBreak("+r(o.breakContents)+(o.flatContents?", "+r(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${i(o.groupId)} }`:"")+")";if(o.type===kn){let m=[];o.negate&&m.push("negate: true"),o.groupId&&m.push(`groupId: ${i(o.groupId)}`);let v=m.length>0?`, { ${m.join(", ")} }`:"";return`indentIfBreak(${r(o.contents)}${v})`}if(o.type===Tt){let m=[];o.break&&o.break!=="propagated"&&m.push("shouldBreak: true"),o.id&&m.push(`id: ${i(o.id)}`);let v=m.length>0?`, { ${m.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(y=>r(y)).join(",")}]${v})`:`group(${r(o.contents)}${v})`}if(o.type===nn)return`fill([${o.parts.map(m=>r(m)).join(", ")}])`;if(o.type===wn)return"lineSuffix("+r(o.contents)+")";if(o.type===Cn)return"lineSuffixBoundary";if(o.type===rn)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 p=u+(c>0?` #${c}`:"");if(!n.has(p))return n.add(p),t[o]=`Symbol.for(${JSON.stringify(p)})`}}}var B2=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},lt=B2,j2=()=>/[#*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 L2(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function P2(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 O2=e=>!(L2(e)||P2(e)),M2=/[^\x20-\x7F]/u;function I2(e){if(!e)return 0;if(!M2.test(e))return e.length;e=e.replace(j2()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=O2(r)?1:2)}return t}var Js=I2;function _i(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(ir(o)){case vn:return t(o.map(r));case nn:return t({...o,parts:o.parts.map(r)});case Mt:return t({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case Tt:{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 Dn:case yn:case kn:case rn:case wn:return t({...o,contents:r(o.contents)});case rr:case ar:case bn:case Cn:case dt:case Ht:return t(o);default:throw new $r(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 zs(e,o),r}function R2(e){if(e.type===Tt&&e.break||e.type===dt&&e.hard||e.type===Ht)return!0}function q2(e){return Ks(e,R2,!1)}function pc(e){if(e.length>0){let t=lt(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function H2(e){let t=new Set,n=[];function r(o){if(o.type===Ht&&pc(n),o.type===Tt){if(n.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===Tt&&n.pop().break&&pc(n)}zs(e,r,i,!0)}function U2(e){return e.type===dt&&!e.hard?e.soft?"":" ":e.type===Mt?e.flatContents:e}function V2(e){return _i(e,U2)}function hc(e){for(e=[...e];e.length>=2&<(!1,e,-2).type===dt&<(!1,e,-1).type===Ht;)e.length-=2;if(e.length>0){let t=ka(lt(!1,e,-1));e[e.length-1]=t}return e}function ka(e){switch(ir(e)){case yn:case kn:case Tt:case wn:case rn:{let t=ka(e.contents);return{...e,contents:t}}case Mt:return{...e,breakContents:ka(e.breakContents),flatContents:ka(e.flatContents)};case nn:return{...e,parts:hc(e.parts)};case vn:return hc(e);case rr:return e.replace(/[\n\r]*$/u,"");case Dn:case ar:case bn:case Cn:case dt:case Ht:break;default:throw new $r(e)}return e}function fc(e){return ka(W2(e))}function z2(e){switch(ir(e)){case nn:if(e.parts.every(t=>t===""))return"";break;case Tt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Tt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Dn:case yn:case kn:case wn:if(!e.contents)return"";break;case Mt:if(!e.flatContents&&!e.breakContents)return"";break;case vn:{let t=[];for(let n of e){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof lt(!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 rr:case ar:case bn:case Cn:case dt:case rn:case Ht:break;default:throw new $r(e)}return e}function W2(e){return _i(e,t=>z2(t))}function G2(e,t=uc){return _i(e,n=>typeof n=="string"?cc(t,n.split(`
|
|
652
|
-
`)):n)}function Y2(e){if(e.type===dt)return!0}function J2(e){return Ks(e,Y2,!1)}function mc(e,t){return e.type===rn?{...e,contents:t(e.contents)}:t(e)}var Nt=Symbol("MODE_BREAK"),an=Symbol("MODE_FLAT"),wa=Symbol("cursor");function gc(){return{value:"",length:0,queue:[]}}function K2(e,t){return Zs(e,{type:"indent"},t)}function Z2(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||gc():t<0?Zs(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:Zs(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function Zs(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":m(),n.useTabs?p(1):h(n.tabWidth);break;case"stringAlign":m(),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 y(),{...e,value:i,length:o,queue:r};function p(k){i+=" ".repeat(k),o+=n.tabWidth*k}function h(k){i+=" ".repeat(k),o+=k}function m(){n.useTabs?v():y()}function v(){u>0&&p(u),b()}function y(){c>0&&h(c),b()}function b(){u=0,c=0}}function Xs(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===wa){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(wa);return t}function Ei(e,t,n,r,i,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,c=[e],p=[];for(;n>=0;){if(c.length===0){if(u===0)return!0;c.push(t[--u]);continue}let{mode:h,doc:m}=c.pop(),v=ir(m);switch(v){case rr:p.push(m),n-=Js(m);break;case vn:case nn:{let y=v===vn?m:m.parts;for(let b=y.length-1;b>=0;b--)c.push({mode:h,doc:y[b]});break}case yn:case Dn:case kn:case rn:c.push({mode:h,doc:m.contents});break;case bn:n+=Xs(p);break;case Tt:{if(o&&m.break)return!1;let y=m.break?Nt:h,b=m.expandedStates&&y===Nt?lt(!1,m.expandedStates,-1):m.contents;c.push({mode:y,doc:b});break}case Mt:{let y=(m.groupId?i[m.groupId]||an:h)===Nt?m.breakContents:m.flatContents;y&&c.push({mode:h,doc:y});break}case dt:if(h===Nt||m.hard)return!0;m.soft||(p.push(" "),n--);break;case wn:r=!0;break;case Cn:if(r)return!1;break}}return!1}function Fi(e,t){let n={},r=t.printWidth,i=Vs(t.endOfLine),o=0,u=[{ind:gc(),mode:Nt,doc:e}],c=[],p=!1,h=[],m=0;for(H2(e);u.length>0;){let{ind:y,mode:b,doc:k}=u.pop();switch(ir(k)){case rr:{let
|
|
652
|
+
`)):n)}function Y2(e){if(e.type===dt)return!0}function J2(e){return Ks(e,Y2,!1)}function mc(e,t){return e.type===rn?{...e,contents:t(e.contents)}:t(e)}var Nt=Symbol("MODE_BREAK"),an=Symbol("MODE_FLAT"),wa=Symbol("cursor");function gc(){return{value:"",length:0,queue:[]}}function K2(e,t){return Zs(e,{type:"indent"},t)}function Z2(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||gc():t<0?Zs(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:Zs(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function Zs(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":m(),n.useTabs?p(1):h(n.tabWidth);break;case"stringAlign":m(),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 y(),{...e,value:i,length:o,queue:r};function p(k){i+=" ".repeat(k),o+=n.tabWidth*k}function h(k){i+=" ".repeat(k),o+=k}function m(){n.useTabs?v():y()}function v(){u>0&&p(u),b()}function y(){c>0&&h(c),b()}function b(){u=0,c=0}}function Xs(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===wa){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(wa);return t}function Ei(e,t,n,r,i,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,c=[e],p=[];for(;n>=0;){if(c.length===0){if(u===0)return!0;c.push(t[--u]);continue}let{mode:h,doc:m}=c.pop(),v=ir(m);switch(v){case rr:p.push(m),n-=Js(m);break;case vn:case nn:{let y=v===vn?m:m.parts;for(let b=y.length-1;b>=0;b--)c.push({mode:h,doc:y[b]});break}case yn:case Dn:case kn:case rn:c.push({mode:h,doc:m.contents});break;case bn:n+=Xs(p);break;case Tt:{if(o&&m.break)return!1;let y=m.break?Nt:h,b=m.expandedStates&&y===Nt?lt(!1,m.expandedStates,-1):m.contents;c.push({mode:y,doc:b});break}case Mt:{let y=(m.groupId?i[m.groupId]||an:h)===Nt?m.breakContents:m.flatContents;y&&c.push({mode:h,doc:y});break}case dt:if(h===Nt||m.hard)return!0;m.soft||(p.push(" "),n--);break;case wn:r=!0;break;case Cn:if(r)return!1;break}}return!1}function Fi(e,t){let n={},r=t.printWidth,i=Vs(t.endOfLine),o=0,u=[{ind:gc(),mode:Nt,doc:e}],c=[],p=!1,h=[],m=0;for(H2(e);u.length>0;){let{ind:y,mode:b,doc:k}=u.pop();switch(ir(k)){case rr:{let x=i!==`
|
|
653
653
|
`?ki(!1,k,`
|
|
654
|
-
`,i):k;c.push(
|
|
654
|
+
`,i):k;c.push(x),u.length>0&&(o+=Js(x));break}case vn:for(let x=k.length-1;x>=0;x--)u.push({ind:y,mode:b,doc:k[x]});break;case ar:if(m>=2)throw new Error("There are too many 'cursor' in doc.");c.push(wa),m++;break;case yn:u.push({ind:K2(y,t),mode:b,doc:k.contents});break;case Dn:u.push({ind:Z2(y,k.n,t),mode:b,doc:k.contents});break;case bn:o-=Xs(c);break;case Tt:switch(b){case an:if(!p){u.push({ind:y,mode:k.break?Nt:an,doc:k.contents});break}case Nt:{p=!1;let x={ind:y,mode:an,doc:k.contents},C=r-o,N=h.length>0;if(!k.break&&Ei(x,u,C,N,n))u.push(x);else if(k.expandedStates){let _=lt(!1,k.expandedStates,-1);if(k.break){u.push({ind:y,mode:Nt,doc:_});break}else for(let E=1;E<k.expandedStates.length+1;E++)if(E>=k.expandedStates.length){u.push({ind:y,mode:Nt,doc:_});break}else{let $=k.expandedStates[E],S={ind:y,mode:an,doc:$};if(Ei(S,u,C,N,n)){u.push(S);break}}}else u.push({ind:y,mode:Nt,doc:k.contents});break}}k.id&&(n[k.id]=lt(!1,u,-1).mode);break;case nn:{let x=r-o,{parts:C}=k;if(C.length===0)break;let[N,_]=C,E={ind:y,mode:an,doc:N},$={ind:y,mode:Nt,doc:N},S=Ei(E,[],x,h.length>0,n,!0);if(C.length===1){S?u.push(E):u.push($);break}let T={ind:y,mode:an,doc:_},M={ind:y,mode:Nt,doc:_};if(C.length===2){S?u.push(T,E):u.push(M,$);break}C.splice(0,2);let H={ind:y,mode:b,doc:sc(C)},O=C[0];Ei({ind:y,mode:an,doc:[N,_,O]},[],x,h.length>0,n,!0)?u.push(H,T,E):S?u.push(H,M,E):u.push(H,M,$);break}case Mt:case kn:{let x=k.groupId?n[k.groupId]:b;if(x===Nt){let C=k.type===Mt?k.breakContents:k.negate?k.contents:xi(k.contents);C&&u.push({ind:y,mode:b,doc:C})}if(x===an){let C=k.type===Mt?k.flatContents:k.negate?xi(k.contents):k.contents;C&&u.push({ind:y,mode:b,doc:C})}break}case wn:h.push({ind:y,mode:b,doc:k.contents});break;case Cn:h.length>0&&u.push({ind:y,mode:b,doc:Gs});break;case dt:switch(b){case an:if(k.hard)p=!0;else{k.soft||(c.push(" "),o+=1);break}case Nt:if(h.length>0){u.push({ind:y,mode:b,doc:k},...h.reverse()),h.length=0;break}k.literal?y.root?(c.push(i,y.root.value),o=y.root.length):(c.push(i),o=0):(o-=Xs(c),c.push(i+y.value),o=y.length);break}break;case rn:u.push({ind:y,mode:b,doc:k.contents});break;case Ht:break;default:throw new $r(k)}u.length===0&&h.length>0&&(u.push(...h.reverse()),h.length=0)}let v=c.indexOf(wa);if(v!==-1){let y=c.indexOf(wa,v+1),b=c.slice(0,v).join(""),k=c.slice(v+1,y).join(""),x=c.slice(y+1).join("");return{formatted:b+k+x,cursorNodeStart:b.length,cursorNodeText:k}}return{formatted:c.join("")}}function X2(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 Qs=X2,or,eo,Ai,Q2=class{constructor(e){n2(this,or),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return lt(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:lt(!1,this.stack,-2)}get node(){return lt(!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=lt(!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[...Da(this,or,Ai).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?lt(!1,e,-2):null}getValue(){return lt(!1,this.stack,-1)}getNode(e=0){let t=Da(this,or,eo).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=lt(!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=Da(this,or,eo).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=lt(!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 Da(this,or,Ai).call(this))if(e(t))return t}hasAncestor(e){for(let t of Da(this,or,Ai).call(this))if(e(t))return!0;return!1}};or=new WeakSet,eo=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},Ai=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 ey=Q2,vc=new Proxy(()=>{},{get:()=>vc}),to=vc;function ty(e){return e!==null&&typeof e=="object"}var ny=ty;function*yc(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=o=>ny(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*ry(e,t){let n=[e];for(let r=0;r<n.length;r++){let i=n[r];for(let o of yc(i,t))yield o,n.push(o)}}function Ca(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 ay=Ca(/\s/u),jn=Ca(" "),Dc=Ca(",; "),bc=Ca(/[^\n\r]/u);function iy(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===`
|
|
655
655
|
`)return t-2;if(i===`
|
|
656
656
|
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
657
657
|
`)return t+2;if(i===`
|
|
658
|
-
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var lr=iy;function sy(e,t,n={}){let r=jn(e,n.backwards?t-1:t,n),i=lr(e,r,n);return r!==i}var Ln=sy;function oy(e){return Array.isArray(e)&&e.length>0}var ly=oy,kc=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),uy=e=>Object.keys(e).filter(t=>!kc.has(t));function cy(e){return e?t=>e(t,kc):uy}var $i=cy;function dy(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}function no(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=dy(e)}function Nr(e,t){t.leading=!0,t.trailing=!1,no(e,t)}function ur(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),no(e,t)}function Br(e,t){t.leading=!1,t.trailing=!0,no(e,t)}var ro=new WeakMap;function ao(e,t){if(ro.has(e))return ro.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:i},locStart:o,locEnd:u}=t;if(!r)return[];let c=((n==null?void 0:n(e,t))??[...yc(e,{getVisitorKeys:$i(i)})]).flatMap(p=>r(p)?[p]:ao(p,t));return c.sort((p,h)=>o(p)-o(h)||u(p)-u(h)),ro.set(e,c),c}function wc(e,t,n,r){let{locStart:i,locEnd:o}=n,u=i(t),c=o(t),p=ao(e,n),h,m,v=0,y=p.length;for(;v<y;){let b=v+y>>1,k=p[b],
|
|
658
|
+
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var lr=iy;function sy(e,t,n={}){let r=jn(e,n.backwards?t-1:t,n),i=lr(e,r,n);return r!==i}var Ln=sy;function oy(e){return Array.isArray(e)&&e.length>0}var ly=oy,kc=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),uy=e=>Object.keys(e).filter(t=>!kc.has(t));function cy(e){return e?t=>e(t,kc):uy}var $i=cy;function dy(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}function no(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=dy(e)}function Nr(e,t){t.leading=!0,t.trailing=!1,no(e,t)}function ur(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),no(e,t)}function Br(e,t){t.leading=!1,t.trailing=!0,no(e,t)}var ro=new WeakMap;function ao(e,t){if(ro.has(e))return ro.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:i},locStart:o,locEnd:u}=t;if(!r)return[];let c=((n==null?void 0:n(e,t))??[...yc(e,{getVisitorKeys:$i(i)})]).flatMap(p=>r(p)?[p]:ao(p,t));return c.sort((p,h)=>o(p)-o(h)||u(p)-u(h)),ro.set(e,c),c}function wc(e,t,n,r){let{locStart:i,locEnd:o}=n,u=i(t),c=o(t),p=ao(e,n),h,m,v=0,y=p.length;for(;v<y;){let b=v+y>>1,k=p[b],x=i(k),C=o(k);if(x<=u&&c<=C)return wc(k,t,n,k);if(C<=u){h=k,v=b+1;continue}if(c<=x){m=k,y=b;continue}throw new Error("Comment location overlaps with node location")}if((r==null?void 0:r.type)==="TemplateLiteral"){let{quasis:b}=r,k=so(b,t,n);h&&so(b,h,n)!==k&&(h=null),m&&so(b,m,n)!==k&&(m=null)}return{enclosingNode:r,precedingNode:h,followingNode:m}}var io=()=>!1;function py(e,t){let{comments:n}=e;if(delete e.comments,!ly(n)||!t.printer.canAttachComment)return;let r=[],{locStart:i,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:u=!1}={},handleComments:c={}},originalText:p}=t,{ownLine:h=io,endOfLine:m=io,remaining:v=io}=c,y=n.map((b,k)=>({...wc(e,b,t),comment:b,text:p,options:t,ast:e,isLastComment:n.length-1===k}));for(let[b,k]of y.entries()){let{comment:x,precedingNode:C,enclosingNode:N,followingNode:_,text:E,options:$,ast:S,isLastComment:T}=k;if($.parser==="json"||$.parser==="json5"||$.parser==="jsonc"||$.parser==="__js_expression"||$.parser==="__ts_expression"||$.parser==="__vue_expression"||$.parser==="__vue_ts_expression"){if(i(x)-i(S)<=0){Nr(S,x);continue}if(o(x)-o(S)>=0){Br(S,x);continue}}let M;if(u?M=[k]:(x.enclosingNode=N,x.precedingNode=C,x.followingNode=_,M=[x,E,$,S,T]),hy(E,$,y,b))x.placement="ownLine",h(...M)||(_?Nr(_,x):C?Br(C,x):ur(N||S,x));else if(fy(E,$,y,b))x.placement="endOfLine",m(...M)||(C?Br(C,x):_?Nr(_,x):ur(N||S,x));else if(x.placement="remaining",!v(...M))if(C&&_){let H=r.length;H>0&&r[H-1].followingNode!==_&&xc(r,$),r.push(k)}else C?Br(C,x):_?Nr(_,x):ur(N||S,x)}if(xc(r,t),!u)for(let b of n)delete b.precedingNode,delete b.enclosingNode,delete b.followingNode}var Cc=e=>!/[\S\n\u2028\u2029]/u.test(e);function hy(e,t,n,r){let{comment:i,precedingNode:o}=n[r],{locStart:u,locEnd:c}=t,p=u(i);if(o)for(let h=r-1;h>=0;h--){let{comment:m,precedingNode:v}=n[h];if(v!==o||!Cc(e.slice(c(m),p)))break;p=u(m)}return Ln(e,p,{backwards:!0})}function fy(e,t,n,r){let{comment:i,followingNode:o}=n[r],{locStart:u,locEnd:c}=t,p=c(i);if(o)for(let h=r+1;h<n.length;h++){let{comment:m,followingNode:v}=n[h];if(v!==o||!Cc(e.slice(p,u(m))))break;p=c(m)}return Ln(e,p)}function xc(e,t){var n,r;let i=e.length;if(i===0)return;let{precedingNode:o,followingNode:u}=e[0],c=t.locStart(u),p;for(p=i;p>0;--p){let{comment:h,precedingNode:m,followingNode:v}=e[p-1];to.strictEqual(m,o),to.strictEqual(v,u);let y=t.originalText.slice(t.locEnd(h),c);if(((r=(n=t.printer).isGap)==null?void 0:r.call(n,y,t))??/^[\s(]*$/u.test(y))c=t.locStart(h);else break}for(let[h,{comment:m}]of e.entries())h<p?Br(o,m):Nr(u,m);for(let h of[o,u])h.comments&&h.comments.length>1&&h.comments.sort((m,v)=>t.locStart(m)-t.locStart(v));e.length=0}function so(e,t,n){let r=n.locStart(t)-1;for(let i=1;i<e.length;++i)if(r<n.locStart(e[i]))return i-1;return 0}function my(e,t){let n=t-1;n=jn(e,n,{backwards:!0}),n=lr(e,n,{backwards:!0}),n=jn(e,n,{backwards:!0});let r=lr(e,n,{backwards:!0});return n!==r}var oo=my;function Sc(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function gy(e,t){var n;let r=e.node,i=[Sc(e,t)],{printer:o,originalText:u,locStart:c,locEnd:p}=t;if((n=o.isBlockComment)!=null&&n.call(o,r)){let m=Ln(u,p(r))?Ln(u,c(r),{backwards:!0})?sr:lc:" ";i.push(m)}else i.push(sr);let h=lr(u,jn(u,p(r)));return h!==!1&&Ln(u,h)&&i.push(sr),i}function vy(e,t,n){var r;let i=e.node,o=Sc(e,t),{printer:u,originalText:c,locStart:p}=t,h=(r=u.isBlockComment)==null?void 0:r.call(u,i);if(n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||Ln(c,p(i),{backwards:!0})){let m=oo(c,p(i));return{doc:Ws([sr,m?sr:"",o]),isBlock:h,hasLineSuffix:!0}}return!h||n!=null&&n.hasLineSuffix?{doc:[Ws([" ",o]),Si],isBlock:h,hasLineSuffix:!0}:{doc:[" ",o],isBlock:h,hasLineSuffix:!1}}function yy(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for("printedComments")];if((n.comments||[]).filter(c=>!r.has(c)).length===0)return{leading:"",trailing:""};let i=[],o=[],u;return e.each(()=>{let c=e.node;if(r!=null&&r.has(c))return;let{leading:p,trailing:h}=c;p?i.push(gy(e,t)):h&&(u=vy(e,t,u),o.push(u.doc))},"comments"),{leading:i,trailing:o}}function Dy(e,t,n){let{leading:r,trailing:i}=yy(e,n);return!r&&!i?t:mc(t,o=>[r,o,i])}function by(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:n}=e;for(let r of t){if(!r.printed&&!n.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}var _c=class extends Error{constructor(){super(...arguments);Kr(this,"name","ConfigError")}},Ec=class extends Error{constructor(){super(...arguments);Kr(this,"name","UndefinedParserError")}},ky={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
659
659
|
(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).
|
|
660
660
|
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.
|
|
661
661
|
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
|
|
662
662
|
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 Fc({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(i=>i.languages??[]),r=[];for(let i of Cy(Object.assign({},...e.map(({options:o})=>o),ky)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(o=>!o.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...wy(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*wy(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(p=>p.parsers&&Object.prototype.hasOwnProperty.call(p.parsers,o)),c=i.name;u!=null&&u.name&&(c+=` (plugin: ${u.name})`),yield{value:o,description:c}}}}function Cy(e){let t=[];for(let[n,r]of Object.entries(e)){let i={name:n,...r};Array.isArray(i.default)&&(i.default=lt(!1,i.default,-1).value),t.push(i)}return t}var xy=e=>String(e).split(/[/\\]/u).pop();function Ac(e,t){if(!t)return;let n=xy(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 Sy(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 _y(e,t){let n=e.plugins.flatMap(i=>i.languages??[]),r=Sy(n,t.language)??Ac(n,t.physicalFile)??Ac(n,t.file)??(t.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var Ey=_y,jr={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=>jr.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${jr.key(n)}: ${jr.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>jr.value({[e]:t})},$c=bi(Hs()),Fy=(e,t,{descriptor:n})=>{let r=[`${$c.default.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${$c.default.blue(typeof t=="string"?n.key(t):n.pair(t))}`),r.join("; ")+"."},Lr=bi(Hs()),Tc=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ti=Symbol.for("vnopts.VALUE_UNCHANGED"),Nc=" ".repeat(2),Ay=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),o=[];return r&&o.push(Bc(e,t,r,n.descriptor)),i&&o.push([Bc(e,t,i.title,n.descriptor)].concat(i.values.map(u=>jc(u,n.loggerPrintWidth))).join(`
|
|
663
663
|
`)),Lc(o,n.loggerPrintWidth)};function Bc(e,t,n,r){return[`Invalid ${Lr.default.red(r.key(e))} value.`,`Expected ${Lr.default.blue(n)},`,`but received ${t===Tc?Lr.default.gray("nothing"):Lr.default.red(r.value(t))}.`].join(" ")}function jc({text:e,list:t},n){let r=[];return e&&r.push(`- ${Lr.default.blue(e)}`),t&&r.push([`- ${Lr.default.blue(t.title)}:`].concat(t.values.map(i=>jc(i,n-Nc.length).replace(/^|\n/g,`$&${Nc}`))).join(`
|
|
664
664
|
`)),Lc(r,n)}function Lc(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,o]=e.map(u=>u.split(`
|
|
665
|
-
`,1)[0].length);return i>t&&i>o?r:n}var Pc=bi(Hs()),lo=[],Oc=[];function $y(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,p,h,m=0,v=0;for(;m<r;)Oc[m]=e.charCodeAt(o+m),lo[m]=++m;for(;v<i;)for(u=t.charCodeAt(o+v),p=v++,c=v,m=0;m<r;m++)h=u===Oc[m]?p:p+1,p=lo[m],c=lo[m]=p>c?h>c?c+1:h:h>p?p+1:h;return c}var Mc=(e,t,{descriptor:n,logger:r,schemas:i})=>{let o=[`Ignored unknown option ${Pc.default.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(c=>$y(e,c)<3);u&&o.push(`Did you mean ${Pc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},Ty=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Ny(e,t){let n=new e(t),r=Object.create(n);for(let i of Ty)i in t&&(r[i]=By(t[i],n,Pn.prototype[i].length));return r}var Pn=class{static create(e){return Ny(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 Ti}};function By(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var jy=class extends Pn{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}},Ly=class extends Pn{expected(){return"anything"}validate(){return!0}},Py=class extends Pn{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(Ic))}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(Ic))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function Ic({from:e,to:t}){return{from:[e],to:t}}var Oy=class extends Pn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function My(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 Iy(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 Ry(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function qy(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function Hy(e){return e===Math.floor(e)}function Uy(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 Vy(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function Rc(e){return e===void 0?{}:e}function qc(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return zy((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(qc)}}:{text:t}}function Hc(e,t){return e===!0?!0:e===!1?{value:t}:e}function Uc(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Vc(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 uo(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>Vc(n,t)):[Vc(e,t)]}function zc(e,t){let n=uo(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 zy(e,t){if(!e)throw new Error(t)}var Wy=class extends Pn{constructor(e){super(e),this._choices=Iy(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(Uy).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}},Gy=class extends Pn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Yy=class extends Gy{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Hy(e)}},Wc=class extends Pn{expected(){return"a string"}validate(e){return typeof e=="string"}},Jy=jr,Ky=Mc,Zy=Ay,Xy=Fy,Qy=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=Jy,unknown:o=Ky,invalid:u=Zy,deprecated:c=Xy,missing:p=()=>!1,required:h=()=>!1,preprocess:m=y=>y,postprocess:v=()=>Ti}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:My(e,"name"),normalizeDefaultResult:Rc,normalizeExpectedResult:qc,normalizeDeprecatedResult:Uc,normalizeForwardResult:uo,normalizeRedirectResult:zc,normalizeValidateResult:Hc},this._unknownHandler=o,this._invalidHandler=Vy(u),this._deprecatedHandler=c,this._identifyMissing=(y,b)=>!(y in b)||p(y,b),this._identifyRequired=h,this._preprocess=m,this._postprocess=v,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Ry()}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=Rc(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!==Ti&&(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 p=({from:v,to:y})=>{n.push(typeof y=="string"?{[y]:v}:{[y.key]:y.value})},h=({value:v,redirectTo:y})=>{let b=Uc(u.deprecated(v,this._utils),c,!0);if(b!==!1)if(b===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,y,this._utils));else for(let{value:k}of b){let S={key:o,value:k};if(!this._hasDeprecationWarned(S)){let C=typeof y=="string"?{key:y,value:k}:y;this._utils.logger.warn(this._deprecatedHandler(S,C,this._utils))}}};uo(u.forward(c,this._utils),c).forEach(p);let m=zc(u.redirect(c,this._utils),c);if(m.redirect.forEach(p),"remain"in m){let v=m.remain;t[o]=o in t?u.overlap(t[o],v,this._utils):v,h({value:v})}for(let{from:v,to:y}of m.redirect)h({value:v,redirectTo:y})}for(let o of i){let u=e[o];this._applyUnknownHandler(o,u,t,(c,p)=>{n.push({[c]:p})})}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]=qy(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=Hc(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!==Ti){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 p=this._utils.schemas[u];this._applyValidation(c,u,p),e[u]=c})}}}}},co;function eD(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=jr;let c=i?Array.isArray(i)?(y,b)=>i.includes(y)?{[y]:b}:void 0:(y,b)=>({[y]:b}):(y,b,k)=>{let{_:S,...C}=k.schemas;return Mc(y,b,{...k,schemas:C})},p=tD(t,{isCLI:r,FlagSchema:o}),h=new Qy(p,{logger:n,unknown:c,descriptor:u}),m=n!==!1;m&&co&&(h._hasDeprecationWarned=co);let v=h.normalize(e);return m&&(co=h._hasDeprecationWarned),v}function tD(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(Ly.create({name:"_"}));for(let i of e)r.push(nD(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(jy.create({name:i.alias,sourceName:i.name}));return r}function nD(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=Yy,t&&(o.preprocess=Number);break;case"string":u=Wc;break;case"choice":u=Wy,o.choices=e.choices.map(p=>p!=null&&p.redirect?{...p,redirect:{to:{key:e.name,value:p.redirect}}}:p);break;case"boolean":u=Oy;break;case"flag":u=r,o.flags=n.flatMap(p=>[p.alias,p.description&&p.name,p.oppositeDescription&&`no-${p.name}`].filter(Boolean));break;case"path":u=Wc;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(p,h,m)=>e.exception(p)||h.validate(p,m):o.validate=(p,h,m)=>p===void 0||h.validate(p,m),e.redirect&&(c.redirect=p=>p?{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 p=o.preprocess||(h=>h);o.preprocess=(h,m,v)=>m.preprocess(p(Array.isArray(h)?lt(!1,h,-1):h),v)}return e.array?Py.create({...t?{preprocess:p=>Array.isArray(p)?p:[p]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var rD=eD,aD=(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}}},Gc=aD;function Yc(e,t){if(!t)throw new Error("parserName is required.");let n=Gc(!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 _c(r)}function iD(e,t){if(!t)throw new Error("astFormat is required.");let n=Gc(!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 _c(r)}function Jc({plugins:e,parser:t}){let n=Yc(e,t);return Kc(n,t)}function Kc(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function sD(e,t){let n=e.printers[t];return typeof n=="function"?n():n}var Zc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function oD(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=Ey(r,{physicalFile:r.filepath}),!r.parser)throw new Ec(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ec("No parser and no file path given, couldn't infer a parser.");let i=Fc({plugins:e.plugins,showDeprecated:!0}).options,o={...Zc,...Object.fromEntries(i.filter(y=>y.default!==void 0).map(y=>[y.name,y.default]))},u=Yc(r.plugins,r.parser),c=await Kc(u,r.parser);r.astFormat=c.astFormat,r.locEnd=c.locEnd,r.locStart=c.locStart;let p=(n=u.printers)!=null&&n[c.astFormat]?u:iD(r.plugins,c.astFormat),h=await sD(p,c.astFormat);r.printer=h;let m=p.defaultOptions?Object.fromEntries(Object.entries(p.defaultOptions).filter(([,y])=>y!==void 0)):{},v={...o,...m};for(let[y,b]of Object.entries(v))(r[y]===null||r[y]===void 0)&&(r[y]=b);return r.parser==="json"&&(r.trailingComma="none"),rD(r,i,{passThrough:Object.keys(Zc),...t})}var Pr=oD,lD=bi(i2());async function uD(e,t){let n=await Jc(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(o){cD(o,e)}return{text:r,ast:i}}function cD(e,t){let{loc:n}=e;if(n){let r=(0,lD.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
|
|
666
|
-
`+r,e.codeFrame=r,e}throw e}var xa=uD;async function dD(e,t,n,r,i){let{embeddedLanguageFormatting:o,printer:{embed:u,hasPrettierIgnore:c=()=>!1,getVisitorKeys:p}}=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=$i(u.getVisitorKeys??p),m=[];b();let v=e.stack;for(let{print:k,node:
|
|
665
|
+
`,1)[0].length);return i>t&&i>o?r:n}var Pc=bi(Hs()),lo=[],Oc=[];function $y(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,p,h,m=0,v=0;for(;m<r;)Oc[m]=e.charCodeAt(o+m),lo[m]=++m;for(;v<i;)for(u=t.charCodeAt(o+v),p=v++,c=v,m=0;m<r;m++)h=u===Oc[m]?p:p+1,p=lo[m],c=lo[m]=p>c?h>c?c+1:h:h>p?p+1:h;return c}var Mc=(e,t,{descriptor:n,logger:r,schemas:i})=>{let o=[`Ignored unknown option ${Pc.default.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(c=>$y(e,c)<3);u&&o.push(`Did you mean ${Pc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},Ty=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Ny(e,t){let n=new e(t),r=Object.create(n);for(let i of Ty)i in t&&(r[i]=By(t[i],n,Pn.prototype[i].length));return r}var Pn=class{static create(e){return Ny(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 Ti}};function By(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var jy=class extends Pn{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}},Ly=class extends Pn{expected(){return"anything"}validate(){return!0}},Py=class extends Pn{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(Ic))}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(Ic))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function Ic({from:e,to:t}){return{from:[e],to:t}}var Oy=class extends Pn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function My(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 Iy(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 Ry(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function qy(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function Hy(e){return e===Math.floor(e)}function Uy(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 Vy(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function Rc(e){return e===void 0?{}:e}function qc(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return zy((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(qc)}}:{text:t}}function Hc(e,t){return e===!0?!0:e===!1?{value:t}:e}function Uc(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Vc(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 uo(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>Vc(n,t)):[Vc(e,t)]}function zc(e,t){let n=uo(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 zy(e,t){if(!e)throw new Error(t)}var Wy=class extends Pn{constructor(e){super(e),this._choices=Iy(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(Uy).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}},Gy=class extends Pn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Yy=class extends Gy{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Hy(e)}},Wc=class extends Pn{expected(){return"a string"}validate(e){return typeof e=="string"}},Jy=jr,Ky=Mc,Zy=Ay,Xy=Fy,Qy=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=Jy,unknown:o=Ky,invalid:u=Zy,deprecated:c=Xy,missing:p=()=>!1,required:h=()=>!1,preprocess:m=y=>y,postprocess:v=()=>Ti}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:My(e,"name"),normalizeDefaultResult:Rc,normalizeExpectedResult:qc,normalizeDeprecatedResult:Uc,normalizeForwardResult:uo,normalizeRedirectResult:zc,normalizeValidateResult:Hc},this._unknownHandler=o,this._invalidHandler=Vy(u),this._deprecatedHandler=c,this._identifyMissing=(y,b)=>!(y in b)||p(y,b),this._identifyRequired=h,this._preprocess=m,this._postprocess=v,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Ry()}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=Rc(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!==Ti&&(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 p=({from:v,to:y})=>{n.push(typeof y=="string"?{[y]:v}:{[y.key]:y.value})},h=({value:v,redirectTo:y})=>{let b=Uc(u.deprecated(v,this._utils),c,!0);if(b!==!1)if(b===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,y,this._utils));else for(let{value:k}of b){let x={key:o,value:k};if(!this._hasDeprecationWarned(x)){let C=typeof y=="string"?{key:y,value:k}:y;this._utils.logger.warn(this._deprecatedHandler(x,C,this._utils))}}};uo(u.forward(c,this._utils),c).forEach(p);let m=zc(u.redirect(c,this._utils),c);if(m.redirect.forEach(p),"remain"in m){let v=m.remain;t[o]=o in t?u.overlap(t[o],v,this._utils):v,h({value:v})}for(let{from:v,to:y}of m.redirect)h({value:v,redirectTo:y})}for(let o of i){let u=e[o];this._applyUnknownHandler(o,u,t,(c,p)=>{n.push({[c]:p})})}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]=qy(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=Hc(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!==Ti){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 p=this._utils.schemas[u];this._applyValidation(c,u,p),e[u]=c})}}}}},co;function eD(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=jr;let c=i?Array.isArray(i)?(y,b)=>i.includes(y)?{[y]:b}:void 0:(y,b)=>({[y]:b}):(y,b,k)=>{let{_:x,...C}=k.schemas;return Mc(y,b,{...k,schemas:C})},p=tD(t,{isCLI:r,FlagSchema:o}),h=new Qy(p,{logger:n,unknown:c,descriptor:u}),m=n!==!1;m&&co&&(h._hasDeprecationWarned=co);let v=h.normalize(e);return m&&(co=h._hasDeprecationWarned),v}function tD(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(Ly.create({name:"_"}));for(let i of e)r.push(nD(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(jy.create({name:i.alias,sourceName:i.name}));return r}function nD(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=Yy,t&&(o.preprocess=Number);break;case"string":u=Wc;break;case"choice":u=Wy,o.choices=e.choices.map(p=>p!=null&&p.redirect?{...p,redirect:{to:{key:e.name,value:p.redirect}}}:p);break;case"boolean":u=Oy;break;case"flag":u=r,o.flags=n.flatMap(p=>[p.alias,p.description&&p.name,p.oppositeDescription&&`no-${p.name}`].filter(Boolean));break;case"path":u=Wc;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(p,h,m)=>e.exception(p)||h.validate(p,m):o.validate=(p,h,m)=>p===void 0||h.validate(p,m),e.redirect&&(c.redirect=p=>p?{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 p=o.preprocess||(h=>h);o.preprocess=(h,m,v)=>m.preprocess(p(Array.isArray(h)?lt(!1,h,-1):h),v)}return e.array?Py.create({...t?{preprocess:p=>Array.isArray(p)?p:[p]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var rD=eD,aD=(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}}},Gc=aD;function Yc(e,t){if(!t)throw new Error("parserName is required.");let n=Gc(!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 _c(r)}function iD(e,t){if(!t)throw new Error("astFormat is required.");let n=Gc(!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 _c(r)}function Jc({plugins:e,parser:t}){let n=Yc(e,t);return Kc(n,t)}function Kc(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function sD(e,t){let n=e.printers[t];return typeof n=="function"?n():n}var Zc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function oD(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=Ey(r,{physicalFile:r.filepath}),!r.parser)throw new Ec(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ec("No parser and no file path given, couldn't infer a parser.");let i=Fc({plugins:e.plugins,showDeprecated:!0}).options,o={...Zc,...Object.fromEntries(i.filter(y=>y.default!==void 0).map(y=>[y.name,y.default]))},u=Yc(r.plugins,r.parser),c=await Kc(u,r.parser);r.astFormat=c.astFormat,r.locEnd=c.locEnd,r.locStart=c.locStart;let p=(n=u.printers)!=null&&n[c.astFormat]?u:iD(r.plugins,c.astFormat),h=await sD(p,c.astFormat);r.printer=h;let m=p.defaultOptions?Object.fromEntries(Object.entries(p.defaultOptions).filter(([,y])=>y!==void 0)):{},v={...o,...m};for(let[y,b]of Object.entries(v))(r[y]===null||r[y]===void 0)&&(r[y]=b);return r.parser==="json"&&(r.trailingComma="none"),rD(r,i,{passThrough:Object.keys(Zc),...t})}var Pr=oD,lD=bi(i2());async function uD(e,t){let n=await Jc(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(o){cD(o,e)}return{text:r,ast:i}}function cD(e,t){let{loc:n}=e;if(n){let r=(0,lD.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
|
|
666
|
+
`+r,e.codeFrame=r,e}throw e}var xa=uD;async function dD(e,t,n,r,i){let{embeddedLanguageFormatting:o,printer:{embed:u,hasPrettierIgnore:c=()=>!1,getVisitorKeys:p}}=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=$i(u.getVisitorKeys??p),m=[];b();let v=e.stack;for(let{print:k,node:x,pathStack:C}of m)try{e.stack=C;let N=await k(y,t,e,n);N&&i.set(x,N)}catch(N){if(globalThis.PRETTIER_DEBUG)throw N}e.stack=v;function y(k,x){return pD(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"){m.push({print:x,node:k,pathStack:[...e.stack]});return}i.set(k,x)}}}async function pD(e,t,n,r){let i=await Pr({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:o}=await xa(e,i),u=await r(o,i);return fc(u)}function hD(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:c}=e,p=i(c),h=o(c);for(let m of r)i(m)>=p&&o(m)<=h&&u.add(m);return n.slice(p,h)}var fD=hD;async function Ni(e,t){({ast:e}=await Qc(e,t));let n=new Map,r=new ey(e),i=new Map;await dD(r,u,t,Ni,i);let o=await Xc(r,t,u,void 0,i);return by(t),o;function u(p,h){return p===void 0||p===r?c(h):Array.isArray(p)?r.call(()=>c(h),...p):r.call(()=>c(h),p)}function c(p){let h=r.node;if(h==null)return"";let m=h&&typeof h=="object"&&p===void 0;if(m&&n.has(h))return n.get(h);let v=Xc(r,t,u,p,i);return m&&n.set(h,v),v}}function Xc(e,t,n,r,i){var o;let{node:u}=e,{printer:c}=t,p;return(o=c.hasPrettierIgnore)!=null&&o.call(c,e)?p=fD(e,t):i.has(u)?p=i.get(u):p=c.print(e,t,n,r),u===t.cursorNode&&(p=mc(p,h=>[Ys,h,Ys])),c.printComment&&(!c.willPrintOwnComments||!c.willPrintOwnComments(e,t))&&(p=Dy(e,p,t)),p}async function Qc(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,py(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function mD(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,o=$i(t.printer.getVisitorKeys),u=p=>r(p)<=n&&i(p)>=n,c=e;for(let p of ry(e,{getVisitorKeys:o,filter:u}))c=p;return c}var gD=mD;function vD(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=$i(r),o=n.ignoredProperties??new Set;return u(e);function u(c,p){if(!(c!==null&&typeof c=="object"))return c;if(Array.isArray(c))return c.map(y=>u(y,p)).filter(Boolean);let h={},m=new Set(i(c));for(let y in c)!Object.prototype.hasOwnProperty.call(c,y)||o.has(y)||(m.has(y)?h[y]=u(c[y],c):h[y]=c[y]);let v=n(c,h,p);if(v!==null)return v??h}}var yD=vD,DD=(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}},bD=DD,kD=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function wD(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(i=>td.has(i.type)&&r.has(i))}function ed(e){let t=bD(!1,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function CD(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 p of ed(t.parentNodes))if(n(p)>=u)o=p;else break;let c=r(t.node);for(let p of ed(e.parentNodes)){if(r(p)<=c)i=p;else break;if(i===o)break}return{startNode:i,endNode:o}}function po(e,t,n,r,i=[],o){let{locStart:u,locEnd:c}=n,p=u(e),h=c(e);if(!(t>h||t<p||o==="rangeEnd"&&t===p||o==="rangeStart"&&t===h)){for(let m of ao(e,n)){let v=po(m,t,n,r,[e,...i],o);if(v)return v}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function xD(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 td=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),SD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function nd(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 xD(t.type,n==null?void 0:n.type);case"json":case"json5":case"jsonc":case"json-stringify":return td.has(t.type);case"graphql":return SD.has(t.kind);case"vue":return t.tag!=="root"}return!1}function _D(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:o,locEnd:u}=t;to.ok(i>r);let c=e.slice(r,i).search(/\S/u),p=c===-1;if(!p)for(r+=c;i>r&&!/\S/u.test(e[i-1]);--i);let h=po(n,r,t,(b,k)=>nd(t,b,k),[],"rangeStart"),m=p?h:po(n,i,t,b=>nd(t,b),[],"rangeEnd");if(!h||!m)return{rangeStart:0,rangeEnd:0};let v,y;if(kD(t)){let b=wD(h,m);v=b,y=b}else({startNode:v,endNode:y}=CD(h,m,t));return{rangeStart:Math.min(o(v),o(y)),rangeEnd:Math.max(u(v),u(y))}}var rd="\uFEFF",ad=Symbol("cursor");async function id(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await xa(e,t);t.cursorOffset>=0&&(t.cursorNode=gD(r,t));let o=await Ni(r,t);n>0&&(o=dc([sr,o],n,t.tabWidth));let u=Fi(o,t);if(n>0){let p=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(p)),u.formatted=p+Vs(t.endOfLine)}let c=t[Symbol.for("comments")];if(t.cursorOffset>=0){let p,h,m,v,y;if(t.cursorNode&&u.cursorNodeText?(p=t.locStart(t.cursorNode),h=i.slice(p,t.locEnd(t.cursorNode)),m=t.cursorOffset-p,v=u.cursorNodeStart,y=u.cursorNodeText):(p=0,h=i,m=t.cursorOffset,v=0,y=u.formatted),h===y)return{formatted:u.formatted,cursorOffset:v+m,comments:c};let b=h.split("");b.splice(m,0,ad);let k=y.split(""),x=p2(b,k),C=v;for(let N of x)if(N.removed){if(N.value.includes(ad))break}else C+=N.count;return{formatted:u.formatted,cursorOffset:C,comments:c}}return{formatted:u.formatted,cursorOffset:-1,comments:c}}async function ED(e,t){let{ast:n,text:r}=await xa(e,t),{rangeStart:i,rangeEnd:o}=_D(r,t,n),u=r.slice(i,o),c=Math.min(i,r.lastIndexOf(`
|
|
667
667
|
`,i)+1),p=r.slice(c,i).match(/^\s*/u)[0],h=Qs(p,t.tabWidth),m=await id(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=o?t.cursorOffset-i:-1,endOfLine:"lf"},h),v=m.formatted.trimEnd(),{cursorOffset:y}=t;y>o?y+=v.length-u.length:m.cursorOffset>=0&&(y=m.cursorOffset+i);let b=r.slice(0,i)+v+r.slice(o);if(t.endOfLine!=="lf"){let k=Vs(t.endOfLine);y>=0&&k===`\r
|
|
668
668
|
`&&(y+=nc(b.slice(0,y),`
|
|
669
669
|
`)),b=ki(!1,b,`
|
|
670
670
|
`,k)}return{formatted:b,cursorOffset:y,comments:m.comments}}function ho(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function sd(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=ho(e,n,-1),r=ho(e,r,0),i=ho(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function od(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=sd(e,t),u=e.charAt(0)===rd;if(u&&(e=e.slice(1),n--,r--,i--),o==="auto"&&(o=h2(e)),e.includes("\r")){let c=p=>nc(e.slice(0,Math.max(p,0)),`\r
|
|
671
671
|
`);n-=c(n),r-=c(r),i-=c(i),e=f2(e)}return{hasBOM:u,text:e,options:sd(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o})}}async function ld(e,t){let n=await Jc(t);return!n.hasPragma||n.hasPragma(e)}async function ud(e,t){let{hasBOM:n,text:r,options:i}=od(e,await Pr(t));if(i.rangeStart>=i.rangeEnd&&r!==""||i.requirePragma&&!await ld(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return i.rangeStart>0||i.rangeEnd<r.length?o=await ED(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await ld(r,i)&&(r=i.printer.insertPragma(r)),o=await id(r,i)),n&&(o.formatted=rd+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function FD(e,t,n){let{text:r,options:i}=od(e,await Pr(t)),o=await xa(r,i);return n&&(n.preprocessForPrint&&(o.ast=await Qc(o.ast,i)),n.massage&&(o.ast=yD(o.ast,i))),o}async function AD(e,t){t=await Pr(t);let n=await Ni(e,t);return Fi(n,t)}async function $D(e,t){let n=N2(e),{formatted:r}=await ud(n,{...t,parser:"__js_expression"});return r}async function TD(e,t){t=await Pr(t);let{ast:n}=await xa(e,t);return Ni(n,t)}async function ND(e,t){return Fi(e,await Pr(t))}var cd={};Di(cd,{builders:()=>BD,printer:()=>jD,utils:()=>LD});var BD={join:cc,line:lc,softline:$2,hardline:sr,literalline:uc,group:ic,conditionalGroup:S2,fill:sc,lineSuffix:Ws,lineSuffixBoundary:F2,cursor:Ys,breakParent:Si,ifBreak:_2,trim:A2,indent:xi,indentIfBreak:E2,align:Tr,addAlignmentToDoc:dc,markAsRoot:C2,dedentToRoot:w2,dedent:x2,hardlineWithoutBreakParent:Gs,literallineWithoutBreakParent:oc,label:T2,concat:e=>e},jD={printDocToString:Fi},LD={willBreak:q2,traverseDoc:zs,findInDoc:Ks,mapDoc:_i,removeLines:V2,stripTrailingHardline:fc,replaceEndOfLine:G2,canBreak:J2},PD="3.3.3",dd={};Di(dd,{addDanglingComment:()=>ur,addLeadingComment:()=>Nr,addTrailingComment:()=>Br,getAlignmentSize:()=>Qs,getIndentSize:()=>HD,getMaxContinuousCount:()=>zD,getNextNonSpaceNonCommentCharacter:()=>GD,getNextNonSpaceNonCommentCharacterIndex:()=>t0,getStringWidth:()=>Js,hasNewline:()=>Ln,hasNewlineInRange:()=>JD,hasSpaces:()=>ZD,isNextLineEmpty:()=>i0,isNextLineEmptyAfterIndex:()=>vo,isPreviousLineEmpty:()=>r0,makeString:()=>QD,skip:()=>Ca,skipEverythingButNewLine:()=>bc,skipInlineComment:()=>fo,skipNewline:()=>lr,skipSpaces:()=>jn,skipToLineEnd:()=>Dc,skipTrailingComment:()=>mo,skipWhitespace:()=>ay});function OD(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 fo=OD;function MD(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?bc(e,t):t}var mo=MD;function ID(e,t){let n=null,r=t;for(;r!==n;)n=r,r=jn(e,r),r=fo(e,r),r=mo(e,r),r=lr(e,r);return r}var go=ID;function RD(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Dc(e,r),r=fo(e,r),r=jn(e,r);return r=mo(e,r),r=lr(e,r),r!==!1&&Ln(e,r)}var vo=RD;function qD(e,t){let n=e.lastIndexOf(`
|
|
672
672
|
`);return n===-1?0:Qs(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var HD=qD;function UD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function VD(e,t){let n=e.match(new RegExp(`(${UD(t)})+`,"gu"));return n===null?0:n.reduce((r,i)=>Math.max(r,i.length/t.length),0)}var zD=VD;function WD(e,t){let n=go(e,t);return n===!1?"":e.charAt(n)}var GD=WD;function YD(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
|
|
673
|
-
`)return!0;return!1}var JD=YD;function KD(e,t,n={}){return jn(e,n.backwards?t-1:t,n)!==t}var ZD=KD;function XD(e,t,n){let r=t==='"'?"'":'"',i=ki(!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 QD=XD;function e0(e,t,n){return go(e,n(t))}function t0(e,t){return arguments.length===2||typeof t=="number"?go(e,t):e0(...arguments)}function n0(e,t,n){return oo(e,n(t))}function r0(e,t){return arguments.length===2||typeof t=="number"?oo(e,t):n0(...arguments)}function a0(e,t,n){return vo(e,n(t))}function i0(e,t){return arguments.length===2||typeof t=="number"?vo(e,t):a0(...arguments)}function cr(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 pd=cr(ud);async function yo(e,t){let{formatted:n}=await pd(e,{...t,cursorOffset:-1});return n}async function s0(e,t){return await yo(e,t)===e}var o0=cr(Fc,0),l0={parse:cr(FD),formatAST:cr(AD),formatDoc:cr($D),printToDoc:cr(TD),printDocToString:cr(ND)},hd={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})},p=(a,s,l,d)=>{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:!(d=r(s,f))||d.enumerable});return a},h=a=>p(n({},"__esModule",{value:!0}),a),m=(a,s,l)=>s.has(a)||u("Cannot "+l),v=(a,s,l)=>(m(a,s,"read from private field"),s.get(a)),y=(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,d)=>(m(a,s,"write to private field"),s.set(a,l),l),k={};c(k,{languages:()=>oC,options:()=>uC,parsers:()=>Up,printers:()=>mx});var
|
|
674
|
-
Expected it to be 'string' or 'object'.`;if(re(a))throw new Error("doc is valid.");let l=Object.prototype.toString.call(a);if(l!=="[object Object]")return`Unexpected doc '${l}'.`;let d=
|
|
675
|
-
Expected it to be ${d}.`}var le=class extends Error{constructor(s){super(
|
|
676
|
-
`)):l)}var q="'",
|
|
677
|
-
`,"\f","\r"," "],Vo=new Sn(fr),Wt=Vo,zo=class extends Error{constructor(s,l,d="type"){super(`Unexpected ${l} node ${d}: ${JSON.stringify(s[d])}.`);Kr(this,"name","UnexpectedNodeError");this.node=s}},Na=zo;function Hi(a){return(a==null?void 0:a.type)==="front-matter"}var Qt=Hi,Ba=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),ja=new Set(["if","else if","for","switch","case"]);function La(a,s){var l;if(a.type==="text"||a.type==="comment"||Qt(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 d of s.parameters.children)ja.has(a.name)?delete d.expression:d.expression=d.expression.trim();a.type==="angularIcuExpression"&&(s.switchValue=a.switchValue.trim()),a.type==="angularLetDeclarationInitializer"&&delete s.value}La.ignoredProperties=Ba;var Wo=La;async function Ui(a,s){if(a.language==="yaml"){let l=a.value.trim(),d=l?await s(l,{parser:"yaml"}):"";return jt([a.startDelimiter,a.explicitLanguage,Ne,d,d?Ne:"",a.endDelimiter])}}var Go=Ui;function mr(a,s=!0){return[Ee([He,a]),s?He:""]}function _n(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 qt(a,s,l,d){l={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...l};let f=!0;d&&(l.__onHtmlBindingRoot=(F,L)=>{f=d(F,L)});let D=await s(a,l,s);return f?
|
|
673
|
+
`)return!0;return!1}var JD=YD;function KD(e,t,n={}){return jn(e,n.backwards?t-1:t,n)!==t}var ZD=KD;function XD(e,t,n){let r=t==='"'?"'":'"',i=ki(!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 QD=XD;function e0(e,t,n){return go(e,n(t))}function t0(e,t){return arguments.length===2||typeof t=="number"?go(e,t):e0(...arguments)}function n0(e,t,n){return oo(e,n(t))}function r0(e,t){return arguments.length===2||typeof t=="number"?oo(e,t):n0(...arguments)}function a0(e,t,n){return vo(e,n(t))}function i0(e,t){return arguments.length===2||typeof t=="number"?vo(e,t):a0(...arguments)}function cr(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 pd=cr(ud);async function yo(e,t){let{formatted:n}=await pd(e,{...t,cursorOffset:-1});return n}async function s0(e,t){return await yo(e,t)===e}var o0=cr(Fc,0),l0={parse:cr(FD),formatAST:cr(AD),formatDoc:cr($D),printToDoc:cr(TD),printDocToString:cr(ND)},hd={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})},p=(a,s,l,d)=>{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:!(d=r(s,f))||d.enumerable});return a},h=a=>p(n({},"__esModule",{value:!0}),a),m=(a,s,l)=>s.has(a)||u("Cannot "+l),v=(a,s,l)=>(m(a,s,"read from private field"),s.get(a)),y=(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,d)=>(m(a,s,"write to private field"),s.set(a,l),l),k={};c(k,{languages:()=>oC,options:()=>uC,parsers:()=>Up,printers:()=>mx});var x=(a,s,l,d)=>{if(!(a&&s==null))return s.replaceAll?s.replaceAll(l,d):l.global?s.replace(l,d):s.split(l).join(d)},C=x,N="string",_="array",E="cursor",$="indent",S="align",T="trim",M="group",H="fill",O="if-break",z="indent-if-break",te="line-suffix",Z="line-suffix-boundary",W="line",I="label",J="break-parent",ee=new Set([E,$,S,T,M,H,O,z,te,Z,W,I,J]);function de(a){if(typeof a=="string")return N;if(Array.isArray(a))return _;if(!a)return;let{type:s}=a;if(ee.has(s))return s}var re=de,pe=a=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(a);function De(a){let s=a===null?"null":typeof a;if(s!=="string"&&s!=="object")return`Unexpected doc '${s}',
|
|
674
|
+
Expected it to be 'string' or 'object'.`;if(re(a))throw new Error("doc is valid.");let l=Object.prototype.toString.call(a);if(l!=="[object Object]")return`Unexpected doc '${l}'.`;let d=pe([...ee].map(f=>`'${f}'`));return`Unexpected doc.type '${a.type}'.
|
|
675
|
+
Expected it to be ${d}.`}var le=class extends Error{constructor(s){super(De(s));Kr(this,"name","InvalidDocError");this.doc=s}},ue=le,nt=()=>{},Oe=nt;function Ee(a){return{type:$,contents:a}}function Re(a,s){return{type:S,contents:s,n:a}}function he(a,s={}){return Oe(s.expandedStates),{type:M,id:s.id,contents:a,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function Dt(a){return Re(Number.NEGATIVE_INFINITY,a)}function jt(a){return Re({type:"root"},a)}function ht(a){return{type:H,parts:a}}function bt(a,s="",l={}){return{type:O,breakContents:a,flatContents:s,groupId:l.groupId}}function zt(a,s){return{type:z,contents:a,groupId:s.groupId,negate:s.negate}}var kt={type:J},ne={type:W,hard:!0},wt={type:W,hard:!0,literal:!0},Fe={type:W},He={type:W,soft:!0},Ne=[ne,kt],In=[wt,kt];function Xt(a,s){let l=[];for(let d=0;d<s.length;d++)d!==0&&l.push(a),l.push(s[d]);return l}var Hr=(a,s,l)=>{if(!(a&&s==null))return Array.isArray(s)||typeof s=="string"?s[l<0?s.length+l:l]:s.at(l)},Rt=Hr;function Rn(a,s){if(typeof a=="string")return s(a);let l=new Map;return d(a);function d(D){if(l.has(D))return l.get(D);let F=f(D);return l.set(D,F),F}function f(D){switch(re(D)){case _:return s(D.map(d));case H:return s({...D,parts:D.parts.map(d)});case O:return s({...D,breakContents:d(D.breakContents),flatContents:d(D.flatContents)});case M:{let{expandedStates:F,contents:L}=D;return F?(F=F.map(d),L=F[0]):L=d(L),s({...D,contents:L,expandedStates:F})}case S:case $:case z:case I:case te:return s({...D,contents:d(D.contents)});case N:case E:case T:case Z:case W:case J:return s(D);default:throw new ue(D)}}}function P(a){switch(re(a)){case H:if(a.parts.every(s=>s===""))return"";break;case M:if(!a.contents&&!a.id&&!a.break&&!a.expandedStates)return"";if(a.contents.type===M&&a.contents.id===a.id&&a.contents.break===a.break&&a.contents.expandedStates===a.expandedStates)return a.contents;break;case S:case $:case z:case te:if(!a.contents)return"";break;case O:if(!a.flatContents&&!a.breakContents)return"";break;case _:{let s=[];for(let l of a){if(!l)continue;let[d,...f]=Array.isArray(l)?l:[l];typeof d=="string"&&typeof Rt(!1,s,-1)=="string"?s[s.length-1]+=d:s.push(d),s.push(...f)}return s.length===0?"":s.length===1?s[0]:s}case N:case E:case T:case Z:case W:case I:case J:break;default:throw new ue(a)}return a}function A(a){return Rn(a,s=>P(s))}function B(a,s=In){return Rn(a,l=>typeof l=="string"?Xt(s,l.split(`
|
|
676
|
+
`)):l)}var q="'",oe='"';function fe(a,s){let l=s===!0||s===q?q:oe,d=l===q?oe:q,f=0,D=0;for(let F of a)F===l?f++:F===d&&D++;return f>D?d:l}var me=fe;function rt(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ae,ft=class{constructor(a){y(this,Ae),b(this,Ae,new Set(a))}getLeadingWhitespaceCount(a){let s=v(this,Ae),l=0;for(let d=0;d<a.length&&s.has(a.charAt(d));d++)l++;return l}getTrailingWhitespaceCount(a){let s=v(this,Ae),l=0;for(let d=a.length-1;d>=0&&s.has(a.charAt(d));d--)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,Ae).has(a.charAt(0))}hasTrailingWhitespace(a){return v(this,Ae).has(Rt(!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=`[${rt([...v(this,Ae)].join(""))}]+`,d=new RegExp(s?`(${l})`:l,"u");return a.split(d)}hasWhitespaceCharacter(a){let s=v(this,Ae);return Array.prototype.some.call(a,l=>s.has(l))}hasNonWhitespaceCharacter(a){let s=v(this,Ae);return Array.prototype.some.call(a,l=>!s.has(l))}isWhitespaceOnly(a){let s=v(this,Ae);return Array.prototype.every.call(a,l=>s.has(l))}};Ae=new WeakMap;var Sn=ft,fr=[" ",`
|
|
677
|
+
`,"\f","\r"," "],Vo=new Sn(fr),Wt=Vo,zo=class extends Error{constructor(s,l,d="type"){super(`Unexpected ${l} node ${d}: ${JSON.stringify(s[d])}.`);Kr(this,"name","UnexpectedNodeError");this.node=s}},Na=zo;function Hi(a){return(a==null?void 0:a.type)==="front-matter"}var Qt=Hi,Ba=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),ja=new Set(["if","else if","for","switch","case"]);function La(a,s){var l;if(a.type==="text"||a.type==="comment"||Qt(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 d of s.parameters.children)ja.has(a.name)?delete d.expression:d.expression=d.expression.trim();a.type==="angularIcuExpression"&&(s.switchValue=a.switchValue.trim()),a.type==="angularLetDeclarationInitializer"&&delete s.value}La.ignoredProperties=Ba;var Wo=La;async function Ui(a,s){if(a.language==="yaml"){let l=a.value.trim(),d=l?await s(l,{parser:"yaml"}):"";return jt([a.startDelimiter,a.explicitLanguage,Ne,d,d?Ne:"",a.endDelimiter])}}var Go=Ui;function mr(a,s=!0){return[Ee([He,a]),s?He:""]}function _n(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 qt(a,s,l,d){l={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...l};let f=!0;d&&(l.__onHtmlBindingRoot=(F,L)=>{f=d(F,L)});let D=await s(a,l,s);return f?he(D):mr(D)}function Yo(a,s,l,d){let{node:f}=l,D=d.originalText.slice(f.sourceSpan.start.offset,f.sourceSpan.end.offset);return/^\s*$/u.test(D)?"":qt(D,a,{parser:"__ng_directive",__isInHtmlAttribute:!1},_n)}var Vi=Yo,zi=a=>String(a).split(/[/\\]/u).pop();function Wi(a,s){if(!s)return;let l=zi(s).toLowerCase();return a.find(({filenames:d})=>d==null?void 0:d.some(f=>f.toLowerCase()===l))??a.find(({extensions:d})=>d==null?void 0:d.some(f=>l.endsWith(f)))}function Jo(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 Ko(a,s){let l=a.plugins.flatMap(f=>f.languages??[]),d=Jo(l,s.language)??Wi(l,s.physicalFile)??Wi(l,s.file)??(s.physicalFile,void 0);return d==null?void 0:d.parsers[0]}var Ur=Ko,w="inline",U={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"},G="normal",se={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function _e(a){return a.type==="element"&&!a.hasExplicitNamespace&&!["html","svg"].includes(a.namespace)}var Se=_e,Ce=a=>C(!1,a,/^[\t\f\r ]*\n/gu,""),ge=a=>Ce(Wt.trimEnd(a)),mt=a=>{let s=a,l=Wt.getLeadingWhitespace(s);l&&(s=s.slice(l.length));let d=Wt.getTrailingWhitespace(s);return d&&(s=s.slice(0,-d.length)),{leadingWhitespace:l,trailingWhitespace:d,text:s}};function Ue(a,s){return!!(a.type==="ieConditionalComment"&&a.lastChild&&!a.lastChild.isSelfClosing&&!a.lastChild.endSourceSpan||a.type==="ieConditionalComment"&&!a.complete||Vr(a)&&a.children.some(l=>l.type!=="text"&&l.type!=="interpolation")||el(a,s)&&!gt(a)&&a.type!=="interpolation")}function qe(a){return a.type==="attribute"||!a.parent||!a.prev?!1:Lt(a.prev)}function Lt(a){return a.type==="comment"&&a.value.trim()==="prettier-ignore"}function at(a){return a.type==="text"||a.type==="comment"}function gt(a){return a.type==="element"&&(a.fullName==="script"||a.fullName==="style"||a.fullName==="svg:style"||a.fullName==="svg:script"||Se(a)&&(a.name==="script"||a.name==="style"))}function Ct(a){return a.children&&!gt(a)}function Pa(a){return gt(a)||a.type==="interpolation"||Gi(a)}function Gi(a){return wp(a).startsWith("pre")}function Zo(a,s){var l,d;let f=D();if(f&&!a.prev&&(d=(l=a.parent)==null?void 0:l.tagDefinition)!=null&&d.ignoreFirstLf)return a.type==="interpolation";return f;function D(){return Qt(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:Vr(a.parent)?!0:!(!a.prev&&(a.parent.type==="root"||Vr(a)&&a.parent||gt(a.parent)||Ji(a.parent,s)||!x1(a.parent.cssDisplay))||a.prev&&!E1(a.prev.cssDisplay))}}function g1(a,s){return Qt(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:Vr(a.parent)?!0:!(!a.next&&(a.parent.type==="root"||Vr(a)&&a.parent||gt(a.parent)||Ji(a.parent,s)||!S1(a.parent.cssDisplay))||a.next&&!_1(a.next.cssDisplay))}function v1(a){return F1(a.cssDisplay)&&!gt(a)}function Yi(a){return Qt(a)||a.next&&a.sourceSpan.end&&a.sourceSpan.end.line+1<a.next.sourceSpan.start.line}function y1(a){return mp(a)||a.type==="element"&&a.children.length>0&&(["body","script","style"].includes(a.name)||a.children.some(s=>b1(s)))||a.firstChild&&a.firstChild===a.lastChild&&a.firstChild.type!=="text"&&vp(a.firstChild)&&(!a.lastChild.isTrailingSpaceSensitive||yp(a.lastChild))}function mp(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 Xo(a){return Dp(a)||a.prev&&D1(a.prev)||gp(a)}function D1(a){return Dp(a)||a.type==="element"&&a.fullName==="br"||gp(a)}function gp(a){return vp(a)&&yp(a)}function vp(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 yp(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 Dp(a){switch(a.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(a.name)}return!1}function Qo(a){return a.lastChild?Qo(a.lastChild):a}function b1(a){var s;return(s=a.children)==null?void 0:s.some(l=>l.type!=="text")}function bp(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 k1(a,s){let{name:l,attrMap:d}=a;if(l!=="script"||Object.prototype.hasOwnProperty.call(d,"src"))return;let{type:f,lang:D}=a.attrMap;return!D&&!f?"babel":Ur(s,{language:D})??bp(f)}function w1(a,s){if(!el(a,s))return;let{attrMap:l}=a;if(Object.prototype.hasOwnProperty.call(l,"src"))return;let{type:d,lang:f}=l;return Ur(s,{language:f})??bp(d)}function C1(a,s){if(a.name!=="style")return;let{lang:l}=a.attrMap;return l?Ur(s,{language:l}):"css"}function kp(a,s){return k1(a,s)??C1(a,s)??w1(a,s)}function Oa(a){return a==="block"||a==="list-item"||a.startsWith("table")}function x1(a){return!Oa(a)&&a!=="inline-block"}function S1(a){return!Oa(a)&&a!=="inline-block"}function _1(a){return!Oa(a)}function E1(a){return!Oa(a)}function F1(a){return!Oa(a)&&a!=="inline-block"}function Vr(a){return wp(a).startsWith("pre")}function A1(a,s){let l=a;for(;l;){if(s(l))return!0;l=l.parent}return!1}function $1(a,s){var l;if(zr(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 d=!1;if(a.type==="element"&&a.namespace==="svg")if(A1(a,f=>f.fullName==="svg:foreignObject"))d=!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||d||Se(a))&&U[a.name]||w}}function wp(a){return a.type==="element"&&(!a.namespace||Se(a))&&se[a.name]||G}function T1(a){let s=Number.POSITIVE_INFINITY;for(let l of a.split(`
|
|
678
678
|
`)){if(l.length===0)continue;let d=Wt.getLeadingWhitespaceCount(l);if(d===0)return 0;l.length!==d&&d<s&&(s=d)}return s===Number.POSITIVE_INFINITY?0:s}function Cp(a,s=T1(a)){return s===0?a:a.split(`
|
|
679
679
|
`).map(l=>l.slice(s)).join(`
|
|
680
|
-
`)}function xp(a){return C(!1,C(!1,a,"'","'"),""",'"')}function qn(a){return xp(a.value)}var N1=new Set(["template","style","script"]);function Ji(a,s){return zr(a,s)&&!N1.has(a.fullName)}function zr(a,s){return s.parser==="vue"&&a.type==="element"&&a.parent.type==="root"&&a.fullName.toLowerCase()!=="html"}function el(a,s){return zr(a,s)&&(Ji(a,s)||a.attrMap.lang&&a.attrMap.lang!=="html")}function B1(a){let s=a.fullName;return s.charAt(0)==="#"||s==="slot-scope"||s==="v-slot"||s.startsWith("v-slot:")}function j1(a,s){let l=a.parent;if(!zr(l,s))return!1;let d=l.fullName,f=a.fullName;return d==="script"&&f==="setup"||d==="style"&&f==="vars"}function Sp(a,s=a.value){return a.parent.isWhitespaceSensitive?a.parent.isIndentationSensitive?B(s):B(Cp(
|
|
681
|
-
`||a==="\f"||a==="\r"||a===" "}var U1=/^[ \t\n\r\u000c]+/,V1=/^[, \t\n\r\u000c]+/,z1=/^[^ \t\n\r\u000c]+/,W1=/[,]+$/,Ap=/^\d+$/,G1=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Y1(a){let s=a.length,l,d,f,D,F,L=0,W;function Q(De){let Me,it=De.exec(a.substring(L));if(it)return[Me]=it,L+=Me.length,Me}let K=[];for(;;){if(Q(V1),L>=s){if(K.length===0)throw new Error("Must contain one or more image candidate strings.");return K}W=L,l=Q(z1),d=[],l.slice(-1)===","?(l=l.replace(W1,""),xe()):Be()}function Be(){for(Q(U1),f="",D="in descriptor";;){if(F=a.charAt(L),D==="in descriptor")if(Fp(F))f&&(d.push(f),f="",D="after descriptor");else if(F===","){L+=1,f&&d.push(f),xe();return}else if(F==="(")f+=F,D="in parens";else if(F===""){f&&d.push(f),xe();return}else f+=F;else if(D==="in parens")if(F===")")f+=F,D="in descriptor";else if(F===""){d.push(f),xe();return}else f+=F;else if(D==="after descriptor"&&!Fp(F))if(F===""){xe();return}else D="in descriptor",L-=1;L+=1}}function xe(){let De=!1,Me,it,vt,xt,Z={},be,st,et,Et,Jr;for(xt=0;xt<d.length;xt++)be=d[xt],st=be[be.length-1],et=be.substring(0,be.length-1),Et=parseInt(et,10),Jr=parseFloat(et),Ap.test(et)&&st==="w"?((Me||it)&&(De=!0),Et===0?De=!0:Me=Et):G1.test(et)&&st==="x"?((Me||it||vt)&&(De=!0),Jr<0?De=!0:it=Jr):Ap.test(et)&&st==="h"?((vt||it)&&(De=!0),Et===0?De=!0:vt=Et):De=!0;if(!De)Z.source={value:l,startOffset:W},Me&&(Z.width={value:Me}),it&&(Z.density={value:it}),vt&&(Z.height={value:vt}),K.push(Z);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${be}".`)}}var J1=Y1;function K1(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>X1(qn(a.node))}var $p={width:"w",height:"h",density:"x"},Z1=Object.keys($p);function X1(a){let s=J1(a),l=Z1.filter(K=>s.some(Be=>Object.prototype.hasOwnProperty.call(Be,K)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[d]=l,f=$p[d],D=s.map(K=>K.source.value),F=Math.max(...D.map(K=>K.length)),L=s.map(K=>K[d]?String(K[d].value):""),W=L.map(K=>{let Be=K.indexOf(".");return Be===-1?K.length:Be}),Q=Math.max(...W);return mr(Xt([",",Fe],D.map((K,Be)=>{let xe=[K],De=L[Be];if(De){let Me=F-K.length+1,it=Q-W[Be],vt=" ".repeat(Me+it);xe.push(bt(vt," "),De+f)}return xe})))}var Q1=K1;function ew(a,s){let{node:l}=a,d=qn(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!d.includes("{{"))return async f=>mr(await f(d,{parser:"css",__isHTMLStyleAttribute:!0}))}var nl=new WeakMap;function tw(a,s){let{root:l}=a;return nl.has(l)||nl.set(l,l.children.some(d=>_p(d,s)&&["ts","typescript"].includes(d.attrMap.lang))),nl.get(l)}var rl=tw;function nw(a,s,l){let{node:d}=l,f=qn(d);return qt(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},_n)}function rw(a,s,{parseWithTs:l}){return qt(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function aw(a){let s=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,l=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,d=a.trim();return s.test(d)||l.test(d)}async function iw(a,s,l,d){let f=qn(l.node),{left:D,operator:F,right:L}=sw(f),W=rl(l,d);return[pe(await qt(`function _(${D}) {}`,a,{parser:W?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",F," ",await qt(L,a,{parser:W?"__ts_expression":"__js_expression"})]}function sw(a){let s=/(.*?)\s+(in|of)\s+(.*)/su,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,d=/^\(|\)$/gu,f=a.match(s);if(!f)return;let D={};if(D.for=f[3].trim(),!D.for)return;let F=C(!1,f[1].trim(),d,""),L=F.match(l);L?(D.alias=F.replace(l,""),D.iterator1=L[1].trim(),L[2]&&(D.iterator2=L[2].trim())):D.alias=F;let W=[D.alias,D.iterator1,D.iterator2];if(!W.some((Q,K)=>!Q&&(K===0||W.slice(K+1).some(Boolean))))return{left:W.filter(Boolean).join(","),operator:f[2],right:D.for}}function ow(a,s){if(s.parser!=="vue")return;let{node:l}=a,d=l.fullName;if(d==="v-for")return iw;if(d==="generic"&&_p(l.parent,s))return nw;let f=qn(l),D=rl(a,s);if(B1(l)||j1(l,s))return F=>rw(f,F,{parseWithTs:D});if(d.startsWith("@")||d.startsWith("v-on:"))return F=>lw(f,F,{parseWithTs:D});if(d.startsWith(":")||d.startsWith("v-bind:"))return F=>uw(f,F,{parseWithTs:D});if(d.startsWith("v-"))return F=>Tp(f,F,{parseWithTs:D})}function lw(a,s,{parseWithTs:l}){return aw(a)?Tp(a,s,{parseWithTs:l}):qt(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},_n)}function uw(a,s,{parseWithTs:l}){return qt(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},_n)}function Tp(a,s,{parseWithTs:l}){return qt(a,s,{parser:l?"__ts_expression":"__js_expression"},_n)}var cw=ow;function dw(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 d of[Q1,ew,H1,cw,R1]){let f=d(a,s);if(f)return pw(f)}}}function pw(a){return async(s,l,d,f)=>{let D=await a(s,l,d,f);if(D)return D=Rn(D,F=>typeof F=="string"?C(!1,F,'"',"""):F),[d.node.rawName,'="',pe(D),'"']}}var hw=dw,Np=new Proxy(()=>{},{get:()=>Np}),Bp=Np;function fw(a){return Array.isArray(a)&&a.length>0}var al=fw;function Ki(a){return a.sourceSpan.start.offset}function Zi(a){return a.sourceSpan.end.offset}function il(a,s){return[a.isSelfClosing?"":mw(a,s),Ma(a,s)]}function mw(a,s){return a.lastChild&&qa(a.lastChild)?"":[gw(a,s),sl(a,s)]}function Ma(a,s){return(a.next?vr(a.next):Ra(a.parent))?"":[Ia(a,s),gr(a,s)]}function gw(a,s){return Ra(a)?Ia(a.lastChild,s):""}function gr(a,s){return qa(a)?sl(a.parent,s):Xi(a)?ll(a.next):""}function sl(a,s){if(Bp(!a.isSelfClosing),jp(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function Ia(a,s){if(jp(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 jp(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(qe(a)||Ue(a.parent,s))}function vr(a){return a.prev&&a.prev.type!=="docType"&&a.type!=="angularControlFlowBlock"&&!at(a.prev)&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function Ra(a){var s;return((s=a.lastChild)==null?void 0:s.isTrailingSpaceSensitive)&&!a.lastChild.hasTrailingSpaces&&!at(Qo(a.lastChild))&&!Vr(a)}function qa(a){return!a.next&&!a.hasTrailingSpaces&&a.isTrailingSpaceSensitive&&at(Qo(a))}function Xi(a){return a.next&&!at(a.next)&&at(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function vw(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Qi(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function yw(a,s,l){var d;let{node:f}=a;if(!al(f.attrs))return f.isSelfClosing?" ":"";let D=((d=f.prev)==null?void 0:d.type)==="comment"&&vw(f.prev.value),F=typeof D=="boolean"?()=>D:Array.isArray(D)?Be=>D.includes(Be.rawName):()=>!1,L=a.map(({node:Be})=>F(Be)?B(s.originalText.slice(Ki(Be),Zi(Be))):l(),"attrs"),W=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,Q=s.singleAttributePerLine&&f.attrs.length>1&&!zr(f,s)?Ne:Fe,K=[Ee([W?" ":Fe,Xt(Q,L)])];return f.firstChild&&Qi(f.firstChild)||f.isSelfClosing&&Ra(f.parent)||W?K.push(f.isSelfClosing?" ":""):K.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?Fe:He),K}function Dw(a){return a.firstChild&&Qi(a.firstChild)?"":ul(a)}function ol(a,s,l){let{node:d}=a;return[Ha(d,s),yw(a,s,l),d.isSelfClosing?"":Dw(d)]}function Ha(a,s){return a.prev&&Xi(a.prev)?"":[yr(a,s),ll(a)]}function yr(a,s){return Qi(a)?ul(a.parent):vr(a)?Ia(a.prev,s):""}function ll(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 ul(a){switch(Bp(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function bw(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Qi(a.firstChild)&&(l-=ul(a).length);let d=a.endSourceSpan.start.offset;return a.lastChild&&qa(a.lastChild)?d+=sl(a,s).length:Ra(a)&&(d-=Ia(a.lastChild,s).length),s.originalText.slice(l,d)}var Lp=bw,kw=new Set(["if","else if","for","switch","case"]);function ww(a,s){let{node:l}=a;switch(l.type){case"element":if(gt(l)||l.type==="interpolation")return;if(!l.isSelfClosing&&el(l,s)){let d=kp(l,s);return d?async(f,D)=>{let F=Lp(l,s),L=/^\s*$/u.test(F),W="";return L||(W=await f(me(F),{parser:d,__embeddedInHtml:!0}),L=W===""),[yr(l,s),pe(ol(a,s,D)),L?"":Ne,W,L?"":Ne,il(l,s),gr(l,s)]}:void 0}break;case"text":if(gt(l.parent)){let d=kp(l.parent,s);if(d)return async f=>{let D=d==="markdown"?Cp(l.value.replace(/^[^\S\n]*\n/u,"")):l.value,F={parser:d,__embeddedInHtml:!0};if(s.parser==="html"&&d==="babel"){let L="script",{attrMap:W}=l.parent;W&&(W.type==="module"||W.type==="text/babel"&&W["data-type"]==="module")&&(L="module"),F.__babelSourceType=L}return[kt,yr(l,s),await f(D,F),gr(l,s)]}}else if(l.parent.type==="interpolation")return async d=>{let f={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return s.parser==="angular"?f.parser="__ng_interpolation":s.parser==="vue"?f.parser=rl(a,s)?"__vue_ts_expression":"__vue_expression":f.parser="__js_expression",[Ee([Fe,await d(l.value,f)]),l.parent.next&&vr(l.parent.next)?" ":Fe]};break;case"attribute":return hw(a,s);case"front-matter":return d=>Go(l,d);case"angularControlFlowBlockParameters":return kw.has(a.parent.name)?Vi:void 0;case"angularLetDeclarationInitializer":return d=>qt(l.value,d,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var Cw=ww,Ua=null;function Va(a){if(Ua!==null&&typeof Ua.property){let s=Ua;return Ua=Va.prototype=null,s}return Ua=Va.prototype=a??Object.create(null),new Va}var xw=10;for(let a=0;a<=xw;a++)Va();function Sw(a){return Va(a)}function _w(a,s="type"){Sw(a);function l(d){let f=d[s],D=a[f];if(!Array.isArray(D))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:d});return D}return l}var Ew=_w,Fw={"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"]},Aw=Fw,$w=Ew(Aw),Tw=$w;function Nw(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function Bw(a){return`<!-- @format -->
|
|
680
|
+
`)}function xp(a){return C(!1,C(!1,a,"'","'"),""",'"')}function qn(a){return xp(a.value)}var N1=new Set(["template","style","script"]);function Ji(a,s){return zr(a,s)&&!N1.has(a.fullName)}function zr(a,s){return s.parser==="vue"&&a.type==="element"&&a.parent.type==="root"&&a.fullName.toLowerCase()!=="html"}function el(a,s){return zr(a,s)&&(Ji(a,s)||a.attrMap.lang&&a.attrMap.lang!=="html")}function B1(a){let s=a.fullName;return s.charAt(0)==="#"||s==="slot-scope"||s==="v-slot"||s.startsWith("v-slot:")}function j1(a,s){let l=a.parent;if(!zr(l,s))return!1;let d=l.fullName,f=a.fullName;return d==="script"&&f==="setup"||d==="style"&&f==="vars"}function Sp(a,s=a.value){return a.parent.isWhitespaceSensitive?a.parent.isIndentationSensitive?B(s):B(Cp(ge(s)),Ne):Xt(Fe,Wt.split(s))}function _p(a,s){return zr(a,s)&&a.name==="script"}var Ep=/\{\{(.+?)\}\}/su;async function L1(a,s){let l=[];for(let[d,f]of a.split(Ep).entries())if(d%2===0)l.push(B(f));else try{l.push(he(["{{",Ee([Fe,await qt(f,s,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),Fe,"}}"]))}catch{l.push("{{",B(f),"}}")}return l}function tl({parser:a}){return(s,l,d)=>qt(qn(d.node),s,{parser:a},_n)}var P1=tl({parser:"__ng_action"}),O1=tl({parser:"__ng_binding"}),M1=tl({parser:"__ng_directive"});function I1(a,s){if(s.parser!=="angular")return;let{node:l}=a,d=l.fullName;if(d.startsWith("(")&&d.endsWith(")")||d.startsWith("on-"))return P1;if(d.startsWith("[")&&d.endsWith("]")||/^bind(?:on)?-/u.test(d)||/^ng-(?:if|show|hide|class|style)$/u.test(d))return O1;if(d.startsWith("*"))return M1;let f=qn(l);if(/^i18n(?:-.+)?$/u.test(d))return()=>mr(ht(Sp(l,f.trim())),!f.includes("@@"));if(Ep.test(f))return D=>L1(f,D)}var R1=I1;function q1(a,s){let{node:l}=a,d=qn(l);if(l.fullName==="class"&&!s.parentParser&&!d.includes("{{"))return()=>d.trim().split(/\s+/u).join(" ")}var H1=q1;function Fp(a){return a===" "||a===`
|
|
681
|
+
`||a==="\f"||a==="\r"||a===" "}var U1=/^[ \t\n\r\u000c]+/,V1=/^[, \t\n\r\u000c]+/,z1=/^[^ \t\n\r\u000c]+/,W1=/[,]+$/,Ap=/^\d+$/,G1=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Y1(a){let s=a.length,l,d,f,D,F,L=0,V;function Q(be){let Me,it=be.exec(a.substring(L));if(it)return[Me]=it,L+=Me.length,Me}let K=[];for(;;){if(Q(V1),L>=s){if(K.length===0)throw new Error("Must contain one or more image candidate strings.");return K}V=L,l=Q(z1),d=[],l.slice(-1)===","?(l=l.replace(W1,""),xe()):Be()}function Be(){for(Q(U1),f="",D="in descriptor";;){if(F=a.charAt(L),D==="in descriptor")if(Fp(F))f&&(d.push(f),f="",D="after descriptor");else if(F===","){L+=1,f&&d.push(f),xe();return}else if(F==="(")f+=F,D="in parens";else if(F===""){f&&d.push(f),xe();return}else f+=F;else if(D==="in parens")if(F===")")f+=F,D="in descriptor";else if(F===""){d.push(f),xe();return}else f+=F;else if(D==="after descriptor"&&!Fp(F))if(F===""){xe();return}else D="in descriptor",L-=1;L+=1}}function xe(){let be=!1,Me,it,vt,xt,X={},ke,st,et,Et,Jr;for(xt=0;xt<d.length;xt++)ke=d[xt],st=ke[ke.length-1],et=ke.substring(0,ke.length-1),Et=parseInt(et,10),Jr=parseFloat(et),Ap.test(et)&&st==="w"?((Me||it)&&(be=!0),Et===0?be=!0:Me=Et):G1.test(et)&&st==="x"?((Me||it||vt)&&(be=!0),Jr<0?be=!0:it=Jr):Ap.test(et)&&st==="h"?((vt||it)&&(be=!0),Et===0?be=!0:vt=Et):be=!0;if(!be)X.source={value:l,startOffset:V},Me&&(X.width={value:Me}),it&&(X.density={value:it}),vt&&(X.height={value:vt}),K.push(X);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${ke}".`)}}var J1=Y1;function K1(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>X1(qn(a.node))}var $p={width:"w",height:"h",density:"x"},Z1=Object.keys($p);function X1(a){let s=J1(a),l=Z1.filter(K=>s.some(Be=>Object.prototype.hasOwnProperty.call(Be,K)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[d]=l,f=$p[d],D=s.map(K=>K.source.value),F=Math.max(...D.map(K=>K.length)),L=s.map(K=>K[d]?String(K[d].value):""),V=L.map(K=>{let Be=K.indexOf(".");return Be===-1?K.length:Be}),Q=Math.max(...V);return mr(Xt([",",Fe],D.map((K,Be)=>{let xe=[K],be=L[Be];if(be){let Me=F-K.length+1,it=Q-V[Be],vt=" ".repeat(Me+it);xe.push(bt(vt," "),be+f)}return xe})))}var Q1=K1;function ew(a,s){let{node:l}=a,d=qn(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!d.includes("{{"))return async f=>mr(await f(d,{parser:"css",__isHTMLStyleAttribute:!0}))}var nl=new WeakMap;function tw(a,s){let{root:l}=a;return nl.has(l)||nl.set(l,l.children.some(d=>_p(d,s)&&["ts","typescript"].includes(d.attrMap.lang))),nl.get(l)}var rl=tw;function nw(a,s,l){let{node:d}=l,f=qn(d);return qt(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},_n)}function rw(a,s,{parseWithTs:l}){return qt(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function aw(a){let s=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,l=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,d=a.trim();return s.test(d)||l.test(d)}async function iw(a,s,l,d){let f=qn(l.node),{left:D,operator:F,right:L}=sw(f),V=rl(l,d);return[he(await qt(`function _(${D}) {}`,a,{parser:V?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",F," ",await qt(L,a,{parser:V?"__ts_expression":"__js_expression"})]}function sw(a){let s=/(.*?)\s+(in|of)\s+(.*)/su,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,d=/^\(|\)$/gu,f=a.match(s);if(!f)return;let D={};if(D.for=f[3].trim(),!D.for)return;let F=C(!1,f[1].trim(),d,""),L=F.match(l);L?(D.alias=F.replace(l,""),D.iterator1=L[1].trim(),L[2]&&(D.iterator2=L[2].trim())):D.alias=F;let V=[D.alias,D.iterator1,D.iterator2];if(!V.some((Q,K)=>!Q&&(K===0||V.slice(K+1).some(Boolean))))return{left:V.filter(Boolean).join(","),operator:f[2],right:D.for}}function ow(a,s){if(s.parser!=="vue")return;let{node:l}=a,d=l.fullName;if(d==="v-for")return iw;if(d==="generic"&&_p(l.parent,s))return nw;let f=qn(l),D=rl(a,s);if(B1(l)||j1(l,s))return F=>rw(f,F,{parseWithTs:D});if(d.startsWith("@")||d.startsWith("v-on:"))return F=>lw(f,F,{parseWithTs:D});if(d.startsWith(":")||d.startsWith("v-bind:"))return F=>uw(f,F,{parseWithTs:D});if(d.startsWith("v-"))return F=>Tp(f,F,{parseWithTs:D})}function lw(a,s,{parseWithTs:l}){return aw(a)?Tp(a,s,{parseWithTs:l}):qt(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},_n)}function uw(a,s,{parseWithTs:l}){return qt(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},_n)}function Tp(a,s,{parseWithTs:l}){return qt(a,s,{parser:l?"__ts_expression":"__js_expression"},_n)}var cw=ow;function dw(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 d of[Q1,ew,H1,cw,R1]){let f=d(a,s);if(f)return pw(f)}}}function pw(a){return async(s,l,d,f)=>{let D=await a(s,l,d,f);if(D)return D=Rn(D,F=>typeof F=="string"?C(!1,F,'"',"""):F),[d.node.rawName,'="',he(D),'"']}}var hw=dw,Np=new Proxy(()=>{},{get:()=>Np}),Bp=Np;function fw(a){return Array.isArray(a)&&a.length>0}var al=fw;function Ki(a){return a.sourceSpan.start.offset}function Zi(a){return a.sourceSpan.end.offset}function il(a,s){return[a.isSelfClosing?"":mw(a,s),Ma(a,s)]}function mw(a,s){return a.lastChild&&qa(a.lastChild)?"":[gw(a,s),sl(a,s)]}function Ma(a,s){return(a.next?vr(a.next):Ra(a.parent))?"":[Ia(a,s),gr(a,s)]}function gw(a,s){return Ra(a)?Ia(a.lastChild,s):""}function gr(a,s){return qa(a)?sl(a.parent,s):Xi(a)?ll(a.next):""}function sl(a,s){if(Bp(!a.isSelfClosing),jp(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function Ia(a,s){if(jp(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 jp(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(qe(a)||Ue(a.parent,s))}function vr(a){return a.prev&&a.prev.type!=="docType"&&a.type!=="angularControlFlowBlock"&&!at(a.prev)&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function Ra(a){var s;return((s=a.lastChild)==null?void 0:s.isTrailingSpaceSensitive)&&!a.lastChild.hasTrailingSpaces&&!at(Qo(a.lastChild))&&!Vr(a)}function qa(a){return!a.next&&!a.hasTrailingSpaces&&a.isTrailingSpaceSensitive&&at(Qo(a))}function Xi(a){return a.next&&!at(a.next)&&at(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function vw(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Qi(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function yw(a,s,l){var d;let{node:f}=a;if(!al(f.attrs))return f.isSelfClosing?" ":"";let D=((d=f.prev)==null?void 0:d.type)==="comment"&&vw(f.prev.value),F=typeof D=="boolean"?()=>D:Array.isArray(D)?Be=>D.includes(Be.rawName):()=>!1,L=a.map(({node:Be})=>F(Be)?B(s.originalText.slice(Ki(Be),Zi(Be))):l(),"attrs"),V=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,Q=s.singleAttributePerLine&&f.attrs.length>1&&!zr(f,s)?Ne:Fe,K=[Ee([V?" ":Fe,Xt(Q,L)])];return f.firstChild&&Qi(f.firstChild)||f.isSelfClosing&&Ra(f.parent)||V?K.push(f.isSelfClosing?" ":""):K.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?Fe:He),K}function Dw(a){return a.firstChild&&Qi(a.firstChild)?"":ul(a)}function ol(a,s,l){let{node:d}=a;return[Ha(d,s),yw(a,s,l),d.isSelfClosing?"":Dw(d)]}function Ha(a,s){return a.prev&&Xi(a.prev)?"":[yr(a,s),ll(a)]}function yr(a,s){return Qi(a)?ul(a.parent):vr(a)?Ia(a.prev,s):""}function ll(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 ul(a){switch(Bp(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function bw(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Qi(a.firstChild)&&(l-=ul(a).length);let d=a.endSourceSpan.start.offset;return a.lastChild&&qa(a.lastChild)?d+=sl(a,s).length:Ra(a)&&(d-=Ia(a.lastChild,s).length),s.originalText.slice(l,d)}var Lp=bw,kw=new Set(["if","else if","for","switch","case"]);function ww(a,s){let{node:l}=a;switch(l.type){case"element":if(gt(l)||l.type==="interpolation")return;if(!l.isSelfClosing&&el(l,s)){let d=kp(l,s);return d?async(f,D)=>{let F=Lp(l,s),L=/^\s*$/u.test(F),V="";return L||(V=await f(ge(F),{parser:d,__embeddedInHtml:!0}),L=V===""),[yr(l,s),he(ol(a,s,D)),L?"":Ne,V,L?"":Ne,il(l,s),gr(l,s)]}:void 0}break;case"text":if(gt(l.parent)){let d=kp(l.parent,s);if(d)return async f=>{let D=d==="markdown"?Cp(l.value.replace(/^[^\S\n]*\n/u,"")):l.value,F={parser:d,__embeddedInHtml:!0};if(s.parser==="html"&&d==="babel"){let L="script",{attrMap:V}=l.parent;V&&(V.type==="module"||V.type==="text/babel"&&V["data-type"]==="module")&&(L="module"),F.__babelSourceType=L}return[kt,yr(l,s),await f(D,F),gr(l,s)]}}else if(l.parent.type==="interpolation")return async d=>{let f={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return s.parser==="angular"?f.parser="__ng_interpolation":s.parser==="vue"?f.parser=rl(a,s)?"__vue_ts_expression":"__vue_expression":f.parser="__js_expression",[Ee([Fe,await d(l.value,f)]),l.parent.next&&vr(l.parent.next)?" ":Fe]};break;case"attribute":return hw(a,s);case"front-matter":return d=>Go(l,d);case"angularControlFlowBlockParameters":return kw.has(a.parent.name)?Vi:void 0;case"angularLetDeclarationInitializer":return d=>qt(l.value,d,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var Cw=ww,Ua=null;function Va(a){if(Ua!==null&&typeof Ua.property){let s=Ua;return Ua=Va.prototype=null,s}return Ua=Va.prototype=a??Object.create(null),new Va}var xw=10;for(let a=0;a<=xw;a++)Va();function Sw(a){return Va(a)}function _w(a,s="type"){Sw(a);function l(d){let f=d[s],D=a[f];if(!Array.isArray(D))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:d});return D}return l}var Ew=_w,Fw={"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"]},Aw=Fw,$w=Ew(Aw),Tw=$w;function Nw(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function Bw(a){return`<!-- @format -->
|
|
682
682
|
|
|
683
|
-
`+a}var jw=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 Pp(a){let s=Zi(a);return a.type==="element"&&!a.endSourceSpan&&al(a.children)?Math.max(s,Pp(Rt(!1,a.children,-1))):s}function za(a,s,l){let d=a.node;if(qe(d)){let f=Pp(d);return[yr(d,s),B(Wt.trimEnd(s.originalText.slice(Ki(d)+(d.prev&&Xi(d.prev)?ll(d).length:0),f-(d.next&&vr(d.next)?Ia(d,s).length:0)))),gr(d,s)]}return l()}function es(a,s){return at(a)&&at(s)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?Xo(s)?Ne:Fe:"":Xo(s)?Ne:He:Xi(a)&&(qe(s)||s.firstChild||s.isSelfClosing||s.type==="element"&&s.attrs.length>0)||a.type==="element"&&a.isSelfClosing&&vr(s)?"":!s.isLeadingSpaceSensitive||Xo(s)||vr(s)&&a.lastChild&&qa(a.lastChild)&&a.lastChild.lastChild&&qa(a.lastChild.lastChild)?Ne:s.hasLeadingSpaces?Fe:He}function cl(a,s,l){let{node:d}=a;if(mp(d))return[kt,...a.map(D=>{let F=D.node,L=F.prev?es(F.prev,F):"";return[L?[L,Yi(F.prev)?Ne:""]:"",za(D,s,l)]},"children")];let f=d.children.map(()=>Symbol(""));return a.map((D,F)=>{let L=D.node;if(at(L)){if(L.prev&&at(L.prev)){let Me=es(L.prev,L);if(Me)return Yi(L.prev)?[Ne,Ne,za(D,s,l)]:[Me,za(D,s,l)]}return za(D,s,l)}let
|
|
683
|
+
`+a}var jw=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 Pp(a){let s=Zi(a);return a.type==="element"&&!a.endSourceSpan&&al(a.children)?Math.max(s,Pp(Rt(!1,a.children,-1))):s}function za(a,s,l){let d=a.node;if(qe(d)){let f=Pp(d);return[yr(d,s),B(Wt.trimEnd(s.originalText.slice(Ki(d)+(d.prev&&Xi(d.prev)?ll(d).length:0),f-(d.next&&vr(d.next)?Ia(d,s).length:0)))),gr(d,s)]}return l()}function es(a,s){return at(a)&&at(s)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?Xo(s)?Ne:Fe:"":Xo(s)?Ne:He:Xi(a)&&(qe(s)||s.firstChild||s.isSelfClosing||s.type==="element"&&s.attrs.length>0)||a.type==="element"&&a.isSelfClosing&&vr(s)?"":!s.isLeadingSpaceSensitive||Xo(s)||vr(s)&&a.lastChild&&qa(a.lastChild)&&a.lastChild.lastChild&&qa(a.lastChild.lastChild)?Ne:s.hasLeadingSpaces?Fe:He}function cl(a,s,l){let{node:d}=a;if(mp(d))return[kt,...a.map(D=>{let F=D.node,L=F.prev?es(F.prev,F):"";return[L?[L,Yi(F.prev)?Ne:""]:"",za(D,s,l)]},"children")];let f=d.children.map(()=>Symbol(""));return a.map((D,F)=>{let L=D.node;if(at(L)){if(L.prev&&at(L.prev)){let Me=es(L.prev,L);if(Me)return Yi(L.prev)?[Ne,Ne,za(D,s,l)]:[Me,za(D,s,l)]}return za(D,s,l)}let V=[],Q=[],K=[],Be=[],xe=L.prev?es(L.prev,L):"",be=L.next?es(L,L.next):"";return xe&&(Yi(L.prev)?V.push(Ne,Ne):xe===Ne?V.push(Ne):at(L.prev)?Q.push(xe):Q.push(bt("",He,{groupId:f[F-1]}))),be&&(Yi(L)?at(L.next)&&Be.push(Ne,Ne):be===Ne?at(L.next)&&Be.push(Ne):K.push(be)),[...V,he([...Q,he([za(D,s,l),...K],{id:f[F]})]),...Be]},"children")}function Lw(a,s,l){let{node:d}=a,f=[];Pw(a)&&f.push("} "),f.push("@",d.name),d.parameters&&f.push(" (",he(l("parameters")),")"),f.push(" {");let D=Op(d);return d.children.length>0?(d.firstChild.hasLeadingSpaces=!0,d.lastChild.hasTrailingSpaces=!0,f.push(Ee([Ne,cl(a,s,l)])),D&&f.push(Ne,"}")):D&&f.push("}"),he(f,{shouldBreak:!0})}function Op(a){var s,l;return!(((s=a.next)==null?void 0:s.type)==="angularControlFlowBlock"&&(l=jw.get(a.name))!=null&&l.has(a.next.name))}function Pw(a){let{previous:s}=a;return(s==null?void 0:s.type)==="angularControlFlowBlock"&&!qe(s)&&!Op(s)}function Ow(a,s,l){return[Ee([He,Xt([";",Fe],a.map(l,"children"))]),He]}function Mw(a,s,l){let{node:d}=a;return[Ha(d,s),he([d.switchValue.trim(),", ",d.clause,d.cases.length>0?[",",Ee([Fe,Xt(Fe,a.map(l,"cases"))])]:"",He]),Ma(d,s)]}function Iw(a,s,l){let{node:d}=a;return[d.value," {",he([Ee([He,a.map(({node:f})=>f.type==="text"&&!Wt.trim(f.value)?"":l(),"expression")]),He]),"}"]}function Rw(a,s,l){let{node:d}=a;if(Ue(d,s))return[yr(d,s),he(ol(a,s,l)),B(Lp(d,s)),...il(d,s),gr(d,s)];let f=d.children.length===1&&(d.firstChild.type==="interpolation"||d.firstChild.type==="angularIcuExpression")&&d.firstChild.isLeadingSpaceSensitive&&!d.firstChild.hasLeadingSpaces&&d.lastChild.isTrailingSpaceSensitive&&!d.lastChild.hasTrailingSpaces,D=Symbol("element-attr-group-id"),F=K=>he([he(ol(a,s,l),{id:D}),K,il(d,s)]),L=K=>f?zt(K,{groupId:D}):(gt(d)||Ji(d,s))&&d.parent.type==="root"&&s.parser==="vue"&&!s.vueIndentScriptAndStyle?K:Ee(K),V=()=>f?bt(He,"",{groupId:D}):d.firstChild.hasLeadingSpaces&&d.firstChild.isLeadingSpaceSensitive?Fe:d.firstChild.type==="text"&&d.isWhitespaceSensitive&&d.isIndentationSensitive?Dt(He):He,Q=()=>(d.next?vr(d.next):Ra(d.parent))?d.lastChild.hasTrailingSpaces&&d.lastChild.isTrailingSpaceSensitive?" ":"":f?bt(He,"",{groupId:D}):d.lastChild.hasTrailingSpaces&&d.lastChild.isTrailingSpaceSensitive?Fe:(d.lastChild.type==="comment"||d.lastChild.type==="text"&&d.isWhitespaceSensitive&&d.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${s.tabWidth*(a.ancestors.length-1)}}$`,"u").test(d.lastChild.value)?"":He;return d.children.length===0?F(d.hasDanglingSpaces&&d.isDanglingSpaceSensitive?Fe:""):F([y1(d)?kt:"",L([V(),cl(a,s,l)]),Q()])}function ts(a){return a>=9&&a<=32||a==160}function dl(a){return 48<=a&&a<=57}function ns(a){return a>=97&&a<=122||a>=65&&a<=90}function qw(a){return a>=97&&a<=102||a>=65&&a<=70||dl(a)}function pl(a){return a===10||a===13}function Mp(a){return 48<=a&&a<=55}function hl(a){return a===39||a===34||a===96}var Hw=/-+([a-z0-9])/g;function Uw(a){return a.replace(Hw,(...s)=>s[1].toUpperCase())}var fl=class Ch{constructor(s,l,d,f){this.file=s,this.offset=l,this.line=d,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,d=l.length,f=this.offset,D=this.line,F=this.col;for(;f>0&&s<0;)if(f--,s++,l.charCodeAt(f)==10){D--;let L=l.substring(0,f-1).lastIndexOf(`
|
|
684
684
|
`);F=L>0?f-L:f}else F--;for(;f<d&&s>0;){let L=l.charCodeAt(f);f++,s--,L==10?(D++,F=0):F++}return new Ch(this.file,f,D,F)}getContext(s,l){let d=this.file.content,f=this.offset;if(f!=null){f>d.length-1&&(f=d.length-1);let D=f,F=0,L=0;for(;F<s&&f>0&&(f--,F++,!(d[f]==`
|
|
685
685
|
`&&++L==l)););for(F=0,L=0;F<s&&D<d.length-1&&(D++,F++,!(d[D]==`
|
|
686
|
-
`&&++L==l)););return{before:d.substring(f,this.offset),after:d.substring(this.offset,D+1)}}return null}},Ip=class{constructor(a,s){this.content=a,this.url=s}},
|
|
687
|
-
`){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function Gw(a){let s=l=>{var d,f;return l.type==="element"&&((d=l.prev)==null?void 0:d.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 d=0;d<l.children.length;d++){let f=l.children[d];if(!s(f))continue;let D=f.prev,F=f.firstChild;l.removeChild(D),d--;let L=new ge(D.sourceSpan.start,F.sourceSpan.end),W=new ge(L.start,f.sourceSpan.end);f.condition=D.condition,f.sourceSpan=W,f.startSourceSpan=L,f.removeChild(F)}})}function Yw(a,s,l){a.walk(d=>{if(d.children)for(let f=0;f<d.children.length;f++){let D=d.children[f];if(D.type!=="text"&&!s(D))continue;D.type!=="text"&&(D.type="text",D.value=l(D));let F=D.prev;!F||F.type!=="text"||(F.value+=D.value,F.sourceSpan=new ge(F.sourceSpan.start,D.sourceSpan.end),d.removeChild(D),f--)}})}function Jw(a){return Yw(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function Kw(a){let s=l=>{var d,f;return l.type==="element"&&l.attrs.length===0&&l.children.length===1&&l.firstChild.type==="text"&&!Wt.hasWhitespaceCharacter(l.children[0].value)&&!l.firstChild.hasLeadingSpaces&&!l.firstChild.hasTrailingSpaces&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces&&l.isTrailingSpaceSensitive&&!l.hasTrailingSpaces&&((d=l.prev)==null?void 0:d.type)==="text"&&((f=l.next)==null?void 0:f.type)==="text"};a.walk(l=>{if(l.children)for(let d=0;d<l.children.length;d++){let f=l.children[d];if(!s(f))continue;let D=f.prev,F=f.next;D.value+=`<${f.rawName}>`+f.firstChild.value+`</${f.rawName}>`+F.value,D.sourceSpan=new ge(D.sourceSpan.start,F.sourceSpan.end),D.isTrailingSpaceSensitive=F.isTrailingSpaceSensitive,D.hasTrailingSpaces=F.hasTrailingSpaces,l.removeChild(f),d--,l.removeChild(F)}})}function Zw(a,s){if(s.parser==="html")return;let l=/\{\{(.+?)\}\}/su;a.walk(d=>{if(Ct(d))for(let f of d.children){if(f.type!=="text")continue;let D=f.sourceSpan.start,F=null,L=f.value.split(l);for(let W=0;W<L.length;W++,D=F){let Q=L[W];if(W%2===0){F=D.moveBy(Q.length),Q.length>0&&d.insertChildBefore(f,{type:"text",value:Q,sourceSpan:new ge(D,F)});continue}F=D.moveBy(Q.length+4),d.insertChildBefore(f,{type:"interpolation",sourceSpan:new ge(D,F),children:Q.length===0?[]:[{type:"text",value:Q,sourceSpan:new ge(D.moveBy(2),F.moveBy(-2))}]})}d.removeChild(f)}})}function Xw(a){a.walk(s=>{if(!s.children)return;if(s.children.length===0||s.children.length===1&&s.children[0].type==="text"&&Wt.trim(s.children[0].value).length===0){s.hasDanglingSpaces=s.children.length>0,s.children=[];return}let l=Pa(s),d=Gi(s);if(!l)for(let f=0;f<s.children.length;f++){let D=s.children[f];if(D.type!=="text")continue;let{leadingWhitespace:F,text:L,trailingWhitespace:W}=mt(D.value),Q=D.prev,K=D.next;L?(D.value=L,D.sourceSpan=new ge(D.sourceSpan.start.moveBy(F.length),D.sourceSpan.end.moveBy(-W.length)),F&&(Q&&(Q.hasTrailingSpaces=!0),D.hasLeadingSpaces=!0),W&&(D.hasTrailingSpaces=!0,K&&(K.hasLeadingSpaces=!0))):(s.removeChild(D),f--,(F||W)&&(Q&&(Q.hasTrailingSpaces=!0),K&&(K.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=d})}function Qw(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 eC(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 tC(a,s){a.walk(l=>{l.cssDisplay=$1(l,s)})}function nC(a,s){a.walk(l=>{let{children:d}=l;if(d){if(d.length===0){l.isDanglingSpaceSensitive=v1(l);return}for(let f of d)f.isLeadingSpaceSensitive=Zo(f,s),f.isTrailingSpaceSensitive=g1(f,s);for(let f=0;f<d.length;f++){let D=d[f];D.isLeadingSpaceSensitive=(f===0||D.prev.isTrailingSpaceSensitive)&&D.isLeadingSpaceSensitive,D.isTrailingSpaceSensitive=(f===d.length-1||D.next.isLeadingSpaceSensitive)&&D.isTrailingSpaceSensitive}}})}var rC=zw;function aC(a,s,l){let{node:d}=a;switch(d.type){case"front-matter":return B(d.raw);case"root":return s.__onHtmlRoot&&s.__onHtmlRoot(d),[pe(cl(a,s,l)),Ne];case"element":case"ieConditionalComment":return Rw(a,s,l);case"angularControlFlowBlock":return Lw(a,s,l);case"angularControlFlowBlockParameters":return Ow(a,s,l);case"angularControlFlowBlockParameter":return Wt.trim(d.expression);case"angularLetDeclaration":return pe(["@let ",pe([d.id," =",pe(Ee([Fe,l("init")]))]),";"]);case"angularLetDeclarationInitializer":return d.value;case"angularIcuExpression":return Mw(a,s,l);case"angularIcuCase":return Iw(a,s,l);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ha(d),Ma(d)];case"interpolation":return[Ha(d,s),...a.map(l,"children"),Ma(d,s)];case"text":{if(d.parent.type==="interpolation"){let D=/\n[^\S\n]*$/u,F=D.test(d.value),L=F?d.value.replace(D,""):d.value;return[B(L),F?Ne:""]}let f=A([yr(d,s),...Sp(d),gr(d,s)]);return Array.isArray(f)?ht(f):f}case"docType":return[pe([Ha(d,s)," ",C(!1,d.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),Ma(d,s)];case"comment":return[yr(d,s),B(s.originalText.slice(Ki(d),Zi(d))),gr(d,s)];case"attribute":{if(d.value===null)return d.rawName;let f=xp(d.value),D=fe(f,'"');return[d.rawName,"=",D,B(D==='"'?C(!1,f,'"',"""):C(!1,f,"'","'")),D]}case"cdata":default:throw new Na(d,"HTML")}}var iC={preprocess:rC,print:aC,insertPragma:Bw,massageAstNode:Wo,embed:Cw,getVisitorKeys:Tw},sC=iC,oC=[{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"]}],qp={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."}},Hp="HTML",lC={bracketSameLine:qp.bracketSameLine,htmlWhitespaceSensitivity:{category:Hp,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:qp.singleAttributePerLine,vueIndentScriptAndStyle:{category:Hp,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},uC=lC,Up={};c(Up,{angular:()=>px,html:()=>dx,lwc:()=>fx,vue:()=>hx});var Vp;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(Vp||(Vp={}));var zp;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(zp||(zp={}));var Wp;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Wp||(Wp={}));var Gp={name:"custom-elements"},Yp={name:"no-errors-schema"},Dr;(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"})(Dr||(Dr={}));var Jp;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Jp||(Jp={}));var en;(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"})(en||(en={}));function as(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 Kp(a){return as(a)[1]==="ng-container"}function Zp(a){return as(a)[1]==="ng-content"}function is(a){return a===null?null:as(a)[0]}function ss(a,s){return a?`:${a}:${s}`:s}var os;function Xp(){return os||(os={},ls(Dr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),ls(Dr.STYLE,["*|style"]),ls(Dr.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"]),ls(Dr.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"])),os}function ls(a,s){for(let l of s)os[l.toLowerCase()]=a}var cC=class{},dC="boolean",pC="number",hC="string",fC="object",mC=["[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:|"],Qp=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),gC=Array.from(Qp).reduce((a,[s,l])=>(a.set(s,l),a),new Map),vC=class extends cC{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,mC.forEach(a=>{let s=new Map,l=new Set,[d,f]=a.split("|"),D=f.split(","),[F,L]=d.split("^");F.split(",").forEach(Q=>{this._schema.set(Q.toLowerCase(),s),this._eventSchema.set(Q.toLowerCase(),l)});let W=L&&this._schema.get(L.toLowerCase());if(W){for(let[Q,K]of W)s.set(Q,K);for(let Q of this._eventSchema.get(L.toLowerCase()))l.add(Q)}D.forEach(Q=>{if(Q.length>0)switch(Q[0]){case"*":l.add(Q.substring(1));break;case"!":s.set(Q.substring(1),dC);break;case"#":s.set(Q.substring(1),pC);break;case"%":s.set(Q.substring(1),fC);break;default:s.set(Q,hC)}})})}hasProperty(a,s,l){if(l.some(d=>d.name===Yp.name))return!0;if(a.indexOf("-")>-1){if(Kp(a)||Zp(a))return!1;if(l.some(d=>d.name===Gp.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===Yp.name)||a.indexOf("-")>-1&&(Kp(a)||Zp(a)||s.some(l=>l.name===Gp.name))?!0:this._schema.has(a.toLowerCase())}securityContext(a,s,l){l&&(s=this.getMappedPropName(s)),a=a.toLowerCase(),s=s.toLowerCase();let d=Xp()[a+"|"+s];return d||(d=Xp()["*|"+s],d||Dr.NONE)}getMappedPropName(a){return Qp.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)})=...
|
|
688
|
-
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=>gC.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return Uw(a)}normalizeAnimationStyleValue(a,s,l){let d="",f=l.toString().trim(),D=null;if(yC(a)&&l!==0&&l!=="0")if(typeof l=="number")d="px";else{let F=l.match(/^[+-]?[\d\.]+([a-z]*)$/);F&&F[1].length==0&&(D=`Please provide a CSS unit value for ${s}:${l}`)}return{error:D,value:f+d}}};function yC(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 ce=class{constructor({closedByChildren:a,implicitNamespacePrefix:s,contentType:l=en.PARSABLE_DATA,closedByParent:d=!1,isVoid:f=!1,ignoreFirstLf:D=!1,preventNamespaceInheritance:F=!1,canSelfClose:L=!1}={}){this.closedByChildren={},this.closedByParent=!1,a&&a.length>0&&a.forEach(W=>this.closedByChildren[W]=!0),this.isVoid=f,this.closedByParent=d||f,this.implicitNamespacePrefix=s||null,this.contentType=l,this.ignoreFirstLf=D,this.preventNamespaceInheritance=F,this.canSelfClose=L??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}},eh,Wa;function ml(a){return Wa||(eh=new ce({canSelfClose:!0}),Wa=Object.assign(Object.create(null),{base:new ce({isVoid:!0}),meta:new ce({isVoid:!0}),area:new ce({isVoid:!0}),embed:new ce({isVoid:!0}),link:new ce({isVoid:!0}),img:new ce({isVoid:!0}),input:new ce({isVoid:!0}),param:new ce({isVoid:!0}),hr:new ce({isVoid:!0}),br:new ce({isVoid:!0}),source:new ce({isVoid:!0}),track:new ce({isVoid:!0}),wbr:new ce({isVoid:!0}),p:new ce({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 ce({closedByChildren:["tbody","tfoot"]}),tbody:new ce({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ce({closedByChildren:["tbody"],closedByParent:!0}),tr:new ce({closedByChildren:["tr"],closedByParent:!0}),td:new ce({closedByChildren:["td","th"],closedByParent:!0}),th:new ce({closedByChildren:["td","th"],closedByParent:!0}),col:new ce({isVoid:!0}),svg:new ce({implicitNamespacePrefix:"svg"}),foreignObject:new ce({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ce({implicitNamespacePrefix:"math"}),li:new ce({closedByChildren:["li"],closedByParent:!0}),dt:new ce({closedByChildren:["dt","dd"]}),dd:new ce({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ce({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ce({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ce({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ce({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ce({closedByChildren:["optgroup"],closedByParent:!0}),option:new ce({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ce({ignoreFirstLf:!0}),listing:new ce({ignoreFirstLf:!0}),style:new ce({contentType:en.RAW_TEXT}),script:new ce({contentType:en.RAW_TEXT}),title:new ce({contentType:{default:en.ESCAPABLE_RAW_TEXT,svg:en.PARSABLE_DATA}}),textarea:new ce({contentType:en.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new vC().allKnownElementNames().forEach(s=>{!Wa[s]&&is(s)===null&&(Wa[s]=new ce({canSelfClose:!1}))})),Wa[a]??eh}var Wr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},DC=class extends Wr{constructor(a,s,l,d){super(s,d),this.value=a,this.tokens=l,this.type="text"}visit(a,s){return a.visitText(this,s)}},bC=class extends Wr{constructor(a,s,l,d){super(s,d),this.value=a,this.tokens=l,this.type="cdata"}visit(a,s){return a.visitCdata(this,s)}},kC=class extends Wr{constructor(a,s,l,d,f,D){super(d,D),this.switchValue=a,this.type=s,this.cases=l,this.switchValueSourceSpan=f}visit(a,s){return a.visitExpansion(this,s)}},wC=class{constructor(a,s,l,d,f){this.value=a,this.expression=s,this.sourceSpan=l,this.valueSourceSpan=d,this.expSourceSpan=f,this.type="expansionCase"}visit(a,s){return a.visitExpansionCase(this,s)}},CC=class extends Wr{constructor(a,s,l,d,f,D,F){super(l,F),this.name=a,this.value=s,this.keySpan=d,this.valueSpan=f,this.valueTokens=D,this.type="attribute"}visit(a,s){return a.visitAttribute(this,s)}get nameSpan(){return this.keySpan}},Hn=class extends Wr{constructor(a,s,l,d,f,D=null,F=null,L){super(d,L),this.name=a,this.attrs=s,this.children=l,this.startSourceSpan=f,this.endSourceSpan=D,this.nameSpan=F,this.type="element"}visit(a,s){return a.visitElement(this,s)}},xC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},SC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="docType"}visit(a,s){return a.visitDocType(this,s)}},Gr=class extends Wr{constructor(a,s,l,d,f,D,F=null,L){super(d,L),this.name=a,this.parameters=s,this.children=l,this.nameSpan=f,this.startSourceSpan=D,this.endSourceSpan=F,this.type="block"}visit(a,s){return a.visitBlock(this,s)}},th=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)}},nh=class{constructor(a,s,l,d,f){this.name=a,this.value=s,this.sourceSpan=l,this.nameSpan=d,this.valueSpan=f,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitLetDeclaration(this,s)}};function rh(a,s,l=null){let d=[],f=a.visit?D=>a.visit(D,l)||D.visit(a,l):D=>D.visit(a,l);return s.forEach(D=>{let F=f(D);F&&d.push(F)}),d}var _C=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=[],d=this;function f(D){D&&l.push(rh(d,D,a))}return s(f),Array.prototype.concat.apply([],l)}},us={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:`
|
|
686
|
+
`&&++L==l)););return{before:d.substring(f,this.offset),after:d.substring(this.offset,D+1)}}return null}},Ip=class{constructor(a,s){this.content=a,this.url=s}},ve=class{constructor(a,s,l=a,d=null){this.start=a,this.end=s,this.fullStart=l,this.details=d}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},rs;(function(a){a[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR"})(rs||(rs={}));var Rp=class{constructor(a,s,l=rs.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}[${rs[this.level]} ->]${a.after}")`:this.msg}toString(){let a=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${a}`}},Vw=[Ww,Gw,Jw,Zw,Xw,tC,Qw,eC,nC,Kw];function zw(a,s){for(let l of Vw)l(a,s);return a}function Ww(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]===`
|
|
687
|
+
`){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function Gw(a){let s=l=>{var d,f;return l.type==="element"&&((d=l.prev)==null?void 0:d.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 d=0;d<l.children.length;d++){let f=l.children[d];if(!s(f))continue;let D=f.prev,F=f.firstChild;l.removeChild(D),d--;let L=new ve(D.sourceSpan.start,F.sourceSpan.end),V=new ve(L.start,f.sourceSpan.end);f.condition=D.condition,f.sourceSpan=V,f.startSourceSpan=L,f.removeChild(F)}})}function Yw(a,s,l){a.walk(d=>{if(d.children)for(let f=0;f<d.children.length;f++){let D=d.children[f];if(D.type!=="text"&&!s(D))continue;D.type!=="text"&&(D.type="text",D.value=l(D));let F=D.prev;!F||F.type!=="text"||(F.value+=D.value,F.sourceSpan=new ve(F.sourceSpan.start,D.sourceSpan.end),d.removeChild(D),f--)}})}function Jw(a){return Yw(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function Kw(a){let s=l=>{var d,f;return l.type==="element"&&l.attrs.length===0&&l.children.length===1&&l.firstChild.type==="text"&&!Wt.hasWhitespaceCharacter(l.children[0].value)&&!l.firstChild.hasLeadingSpaces&&!l.firstChild.hasTrailingSpaces&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces&&l.isTrailingSpaceSensitive&&!l.hasTrailingSpaces&&((d=l.prev)==null?void 0:d.type)==="text"&&((f=l.next)==null?void 0:f.type)==="text"};a.walk(l=>{if(l.children)for(let d=0;d<l.children.length;d++){let f=l.children[d];if(!s(f))continue;let D=f.prev,F=f.next;D.value+=`<${f.rawName}>`+f.firstChild.value+`</${f.rawName}>`+F.value,D.sourceSpan=new ve(D.sourceSpan.start,F.sourceSpan.end),D.isTrailingSpaceSensitive=F.isTrailingSpaceSensitive,D.hasTrailingSpaces=F.hasTrailingSpaces,l.removeChild(f),d--,l.removeChild(F)}})}function Zw(a,s){if(s.parser==="html")return;let l=/\{\{(.+?)\}\}/su;a.walk(d=>{if(Ct(d))for(let f of d.children){if(f.type!=="text")continue;let D=f.sourceSpan.start,F=null,L=f.value.split(l);for(let V=0;V<L.length;V++,D=F){let Q=L[V];if(V%2===0){F=D.moveBy(Q.length),Q.length>0&&d.insertChildBefore(f,{type:"text",value:Q,sourceSpan:new ve(D,F)});continue}F=D.moveBy(Q.length+4),d.insertChildBefore(f,{type:"interpolation",sourceSpan:new ve(D,F),children:Q.length===0?[]:[{type:"text",value:Q,sourceSpan:new ve(D.moveBy(2),F.moveBy(-2))}]})}d.removeChild(f)}})}function Xw(a){a.walk(s=>{if(!s.children)return;if(s.children.length===0||s.children.length===1&&s.children[0].type==="text"&&Wt.trim(s.children[0].value).length===0){s.hasDanglingSpaces=s.children.length>0,s.children=[];return}let l=Pa(s),d=Gi(s);if(!l)for(let f=0;f<s.children.length;f++){let D=s.children[f];if(D.type!=="text")continue;let{leadingWhitespace:F,text:L,trailingWhitespace:V}=mt(D.value),Q=D.prev,K=D.next;L?(D.value=L,D.sourceSpan=new ve(D.sourceSpan.start.moveBy(F.length),D.sourceSpan.end.moveBy(-V.length)),F&&(Q&&(Q.hasTrailingSpaces=!0),D.hasLeadingSpaces=!0),V&&(D.hasTrailingSpaces=!0,K&&(K.hasLeadingSpaces=!0))):(s.removeChild(D),f--,(F||V)&&(Q&&(Q.hasTrailingSpaces=!0),K&&(K.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=d})}function Qw(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 eC(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 tC(a,s){a.walk(l=>{l.cssDisplay=$1(l,s)})}function nC(a,s){a.walk(l=>{let{children:d}=l;if(d){if(d.length===0){l.isDanglingSpaceSensitive=v1(l);return}for(let f of d)f.isLeadingSpaceSensitive=Zo(f,s),f.isTrailingSpaceSensitive=g1(f,s);for(let f=0;f<d.length;f++){let D=d[f];D.isLeadingSpaceSensitive=(f===0||D.prev.isTrailingSpaceSensitive)&&D.isLeadingSpaceSensitive,D.isTrailingSpaceSensitive=(f===d.length-1||D.next.isLeadingSpaceSensitive)&&D.isTrailingSpaceSensitive}}})}var rC=zw;function aC(a,s,l){let{node:d}=a;switch(d.type){case"front-matter":return B(d.raw);case"root":return s.__onHtmlRoot&&s.__onHtmlRoot(d),[he(cl(a,s,l)),Ne];case"element":case"ieConditionalComment":return Rw(a,s,l);case"angularControlFlowBlock":return Lw(a,s,l);case"angularControlFlowBlockParameters":return Ow(a,s,l);case"angularControlFlowBlockParameter":return Wt.trim(d.expression);case"angularLetDeclaration":return he(["@let ",he([d.id," =",he(Ee([Fe,l("init")]))]),";"]);case"angularLetDeclarationInitializer":return d.value;case"angularIcuExpression":return Mw(a,s,l);case"angularIcuCase":return Iw(a,s,l);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ha(d),Ma(d)];case"interpolation":return[Ha(d,s),...a.map(l,"children"),Ma(d,s)];case"text":{if(d.parent.type==="interpolation"){let D=/\n[^\S\n]*$/u,F=D.test(d.value),L=F?d.value.replace(D,""):d.value;return[B(L),F?Ne:""]}let f=A([yr(d,s),...Sp(d),gr(d,s)]);return Array.isArray(f)?ht(f):f}case"docType":return[he([Ha(d,s)," ",C(!1,d.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),Ma(d,s)];case"comment":return[yr(d,s),B(s.originalText.slice(Ki(d),Zi(d))),gr(d,s)];case"attribute":{if(d.value===null)return d.rawName;let f=xp(d.value),D=me(f,'"');return[d.rawName,"=",D,B(D==='"'?C(!1,f,'"',"""):C(!1,f,"'","'")),D]}case"cdata":default:throw new Na(d,"HTML")}}var iC={preprocess:rC,print:aC,insertPragma:Bw,massageAstNode:Wo,embed:Cw,getVisitorKeys:Tw},sC=iC,oC=[{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"]}],qp={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."}},Hp="HTML",lC={bracketSameLine:qp.bracketSameLine,htmlWhitespaceSensitivity:{category:Hp,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:qp.singleAttributePerLine,vueIndentScriptAndStyle:{category:Hp,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},uC=lC,Up={};c(Up,{angular:()=>px,html:()=>dx,lwc:()=>fx,vue:()=>hx});var Vp;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(Vp||(Vp={}));var zp;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(zp||(zp={}));var Wp;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Wp||(Wp={}));var Gp={name:"custom-elements"},Yp={name:"no-errors-schema"},Dr;(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"})(Dr||(Dr={}));var Jp;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Jp||(Jp={}));var en;(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"})(en||(en={}));function as(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 Kp(a){return as(a)[1]==="ng-container"}function Zp(a){return as(a)[1]==="ng-content"}function is(a){return a===null?null:as(a)[0]}function ss(a,s){return a?`:${a}:${s}`:s}var os;function Xp(){return os||(os={},ls(Dr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),ls(Dr.STYLE,["*|style"]),ls(Dr.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"]),ls(Dr.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"])),os}function ls(a,s){for(let l of s)os[l.toLowerCase()]=a}var cC=class{},dC="boolean",pC="number",hC="string",fC="object",mC=["[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:|"],Qp=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),gC=Array.from(Qp).reduce((a,[s,l])=>(a.set(s,l),a),new Map),vC=class extends cC{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,mC.forEach(a=>{let s=new Map,l=new Set,[d,f]=a.split("|"),D=f.split(","),[F,L]=d.split("^");F.split(",").forEach(Q=>{this._schema.set(Q.toLowerCase(),s),this._eventSchema.set(Q.toLowerCase(),l)});let V=L&&this._schema.get(L.toLowerCase());if(V){for(let[Q,K]of V)s.set(Q,K);for(let Q of this._eventSchema.get(L.toLowerCase()))l.add(Q)}D.forEach(Q=>{if(Q.length>0)switch(Q[0]){case"*":l.add(Q.substring(1));break;case"!":s.set(Q.substring(1),dC);break;case"#":s.set(Q.substring(1),pC);break;case"%":s.set(Q.substring(1),fC);break;default:s.set(Q,hC)}})})}hasProperty(a,s,l){if(l.some(d=>d.name===Yp.name))return!0;if(a.indexOf("-")>-1){if(Kp(a)||Zp(a))return!1;if(l.some(d=>d.name===Gp.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===Yp.name)||a.indexOf("-")>-1&&(Kp(a)||Zp(a)||s.some(l=>l.name===Gp.name))?!0:this._schema.has(a.toLowerCase())}securityContext(a,s,l){l&&(s=this.getMappedPropName(s)),a=a.toLowerCase(),s=s.toLowerCase();let d=Xp()[a+"|"+s];return d||(d=Xp()["*|"+s],d||Dr.NONE)}getMappedPropName(a){return Qp.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)})=...
|
|
688
|
+
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=>gC.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return Uw(a)}normalizeAnimationStyleValue(a,s,l){let d="",f=l.toString().trim(),D=null;if(yC(a)&&l!==0&&l!=="0")if(typeof l=="number")d="px";else{let F=l.match(/^[+-]?[\d\.]+([a-z]*)$/);F&&F[1].length==0&&(D=`Please provide a CSS unit value for ${s}:${l}`)}return{error:D,value:f+d}}};function yC(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 ce=class{constructor({closedByChildren:a,implicitNamespacePrefix:s,contentType:l=en.PARSABLE_DATA,closedByParent:d=!1,isVoid:f=!1,ignoreFirstLf:D=!1,preventNamespaceInheritance:F=!1,canSelfClose:L=!1}={}){this.closedByChildren={},this.closedByParent=!1,a&&a.length>0&&a.forEach(V=>this.closedByChildren[V]=!0),this.isVoid=f,this.closedByParent=d||f,this.implicitNamespacePrefix=s||null,this.contentType=l,this.ignoreFirstLf=D,this.preventNamespaceInheritance=F,this.canSelfClose=L??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}},eh,Wa;function ml(a){return Wa||(eh=new ce({canSelfClose:!0}),Wa=Object.assign(Object.create(null),{base:new ce({isVoid:!0}),meta:new ce({isVoid:!0}),area:new ce({isVoid:!0}),embed:new ce({isVoid:!0}),link:new ce({isVoid:!0}),img:new ce({isVoid:!0}),input:new ce({isVoid:!0}),param:new ce({isVoid:!0}),hr:new ce({isVoid:!0}),br:new ce({isVoid:!0}),source:new ce({isVoid:!0}),track:new ce({isVoid:!0}),wbr:new ce({isVoid:!0}),p:new ce({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 ce({closedByChildren:["tbody","tfoot"]}),tbody:new ce({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ce({closedByChildren:["tbody"],closedByParent:!0}),tr:new ce({closedByChildren:["tr"],closedByParent:!0}),td:new ce({closedByChildren:["td","th"],closedByParent:!0}),th:new ce({closedByChildren:["td","th"],closedByParent:!0}),col:new ce({isVoid:!0}),svg:new ce({implicitNamespacePrefix:"svg"}),foreignObject:new ce({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ce({implicitNamespacePrefix:"math"}),li:new ce({closedByChildren:["li"],closedByParent:!0}),dt:new ce({closedByChildren:["dt","dd"]}),dd:new ce({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ce({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ce({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ce({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ce({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ce({closedByChildren:["optgroup"],closedByParent:!0}),option:new ce({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ce({ignoreFirstLf:!0}),listing:new ce({ignoreFirstLf:!0}),style:new ce({contentType:en.RAW_TEXT}),script:new ce({contentType:en.RAW_TEXT}),title:new ce({contentType:{default:en.ESCAPABLE_RAW_TEXT,svg:en.PARSABLE_DATA}}),textarea:new ce({contentType:en.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new vC().allKnownElementNames().forEach(s=>{!Wa[s]&&is(s)===null&&(Wa[s]=new ce({canSelfClose:!1}))})),Wa[a]??eh}var Wr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},DC=class extends Wr{constructor(a,s,l,d){super(s,d),this.value=a,this.tokens=l,this.type="text"}visit(a,s){return a.visitText(this,s)}},bC=class extends Wr{constructor(a,s,l,d){super(s,d),this.value=a,this.tokens=l,this.type="cdata"}visit(a,s){return a.visitCdata(this,s)}},kC=class extends Wr{constructor(a,s,l,d,f,D){super(d,D),this.switchValue=a,this.type=s,this.cases=l,this.switchValueSourceSpan=f}visit(a,s){return a.visitExpansion(this,s)}},wC=class{constructor(a,s,l,d,f){this.value=a,this.expression=s,this.sourceSpan=l,this.valueSourceSpan=d,this.expSourceSpan=f,this.type="expansionCase"}visit(a,s){return a.visitExpansionCase(this,s)}},CC=class extends Wr{constructor(a,s,l,d,f,D,F){super(l,F),this.name=a,this.value=s,this.keySpan=d,this.valueSpan=f,this.valueTokens=D,this.type="attribute"}visit(a,s){return a.visitAttribute(this,s)}get nameSpan(){return this.keySpan}},Hn=class extends Wr{constructor(a,s,l,d,f,D=null,F=null,L){super(d,L),this.name=a,this.attrs=s,this.children=l,this.startSourceSpan=f,this.endSourceSpan=D,this.nameSpan=F,this.type="element"}visit(a,s){return a.visitElement(this,s)}},xC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},SC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="docType"}visit(a,s){return a.visitDocType(this,s)}},Gr=class extends Wr{constructor(a,s,l,d,f,D,F=null,L){super(d,L),this.name=a,this.parameters=s,this.children=l,this.nameSpan=f,this.startSourceSpan=D,this.endSourceSpan=F,this.type="block"}visit(a,s){return a.visitBlock(this,s)}},th=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)}},nh=class{constructor(a,s,l,d,f){this.name=a,this.value=s,this.sourceSpan=l,this.nameSpan=d,this.valueSpan=f,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitLetDeclaration(this,s)}};function rh(a,s,l=null){let d=[],f=a.visit?D=>a.visit(D,l)||D.visit(a,l):D=>D.visit(a,l);return s.forEach(D=>{let F=f(D);F&&d.push(F)}),d}var _C=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=[],d=this;function f(D){D&&l.push(rh(d,D,a))}return s(f),Array.prototype.concat.apply([],l)}},us={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:`
|
|
689
689
|
`,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:""},EC="";us.ngsp=EC;var FC=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function AC(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],d=s[1];FC.forEach(f=>{if(f.test(l)||f.test(d))throw new Error(`['${l}', '${d}'] contains unusable interpolation symbol.`)})}}var $C=class xh{static fromArray(s){return s?(AC("interpolation",s),new xh(s[0],s[1])):ah}constructor(s,l){this.start=s,this.end=l}},ah=new $C("{{","}}"),gl=class extends Rp{constructor(a,s,l){super(l,a),this.tokenType=s}},TC=class{constructor(a,s,l){this.tokens=a,this.errors=s,this.nonNormalizedIcuExpressions=l}};function NC(a,s,l,d={}){let f=new LC(new Ip(a,s),l,d);return f.tokenize(),new TC(qC(f.tokens),f.errors,f.nonNormalizedIcuExpressions)}var BC=/\r\n?/g;function Yr(a){return`Unexpected character "${a===0?"EOF":String.fromCharCode(a)}"`}function ih(a){return`Unknown entity "${a}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function jC(a,s){return`Unable to parse entity "${s}" - ${a} character reference entities must end with ";"`}var cs;(function(a){a.HEX="hexadecimal",a.DEC="decimal"})(cs||(cs={}));var vl=class{constructor(a){this.error=a}},LC=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||ah,this._leadingTriviaCodePoints=l.leadingTriviaChars&&l.leadingTriviaChars.map(f=>f.codePointAt(0)||0),this._canSelfClose=l.canSelfClose||!1,this._allowHtmComponentClosingTags=l.allowHtmComponentClosingTags||!1;let d=l.range||{endPos:a.content.length,startPos:0,startLine:0,startCol:0};this._cursor=l.escapedString?new HC(a,d):new ch(a,d),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(BC,`
|
|
690
|
-
`)}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=>ts(l)?!a:lh(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(Qe),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Qe);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(uh);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 d=this._cursor.peek();if(d===92)this._cursor.advance();else if(d===s)s=null;else if(s===null&&hl(d))s=d;else if(d===40&&s===null)l++;else if(d===41&&s===null){if(l===0)break;l>0&&l--}this._cursor.advance()}this._endToken([this._cursor.getChars(a)]),this._attemptCharCodeUntilFn(uh)}}_consumeLetDeclaration(a){if(this._beginToken(30,a),ts(this._cursor.peek()))this._attemptCharCodeUntilFn(Qe);else{let l=this._endToken([this._cursor.getChars(a)]);l.type=33;return}let s=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Qe),!this._attemptCharCode(61)){s.type=33;return}this._attemptCharCodeUntilFn(l=>Qe(l)&&!pl(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=>ns(l)||l==36||l===95||s&&dl(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;hl(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(IC(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 gl("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 gl("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 gl(a,this._currentTokenType,s);return this._currentTokenStart=null,this._currentTokenType=null,new vl(l)}handleError(a){if(a instanceof yl&&(a=this._createError(a.msg,this._cursor.getSpan(a.cursor))),a instanceof vl)this.errors.push(a.error);else throw a}_attemptCharCode(a){return this._cursor.peek()===a?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(a){return RC(this._cursor.peek(),a)?(this._cursor.advance(),!0):!1}_requireCharCode(a){let s=this._cursor.clone();if(!this._attemptCharCode(a))throw this._createError(Yr(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 d=0;d<s;d++)if(!this._attemptCharCode(a.charCodeAt(d)))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(Yr(this._cursor.peek()),this._cursor.getSpan(s))}_requireStrCaseInsensitive(a){let s=this._cursor.clone();if(!this._attemptStrCaseInsensitive(a))throw this._createError(Yr(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(Yr(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),d=this._cursor.clone();if(this._attemptCharCodeUntilFn(OC),this._cursor.peek()!=59){this._cursor.advance();let D=l?cs.HEX:cs.DEC;throw this._createError(jC(D,this._cursor.getChars(s)),this._cursor.getSpan())}let f=this._cursor.getChars(d);this._cursor.advance();try{let D=parseInt(f,l?16:10);this._endToken([String.fromCharCode(D),this._cursor.getChars(s)])}catch{throw this._createError(ih(this._cursor.getChars(s)),this._cursor.getSpan())}}else{let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(MC),this._cursor.peek()!=59)this._beginToken(a,s),this._cursor=l,this._endToken(["&"]);else{let d=this._cursor.getChars(l);this._cursor.advance();let f=us[d];if(!f)throw this._createError(ih(d),this._cursor.getSpan(s));this._endToken([f,`&${d};`])}}}_consumeRawText(a,s){this._beginToken(a?6:7);let l=[];for(;;){let d=this._cursor.clone(),f=s();if(this._cursor=d,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&&!PC(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(sh,s===""?0:1);let d=this._cursor.getChars(l);return[s,d]}_consumeTagOpen(a){let s,l,d,f=[];try{if(!ns(this._cursor.peek()))throw this._createError(Yr(this._cursor.peek()),this._cursor.getSpan(a));for(d=this._consumeTagOpenStart(a),l=d.parts[0],s=d.parts[1],this._attemptCharCodeUntilFn(Qe);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[F,L]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(Qe),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(Qe);let W=this._consumeAttributeValue();f.push({prefix:F,name:L,value:W})}else f.push({prefix:F,name:L});this._attemptCharCodeUntilFn(Qe)}this._consumeTagOpenEnd()}catch(F){if(F instanceof vl){d?d.type=4:(this._beginToken(5,a),this._endToken(["<"]));return}throw F}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let D=this._getTagContentType(s,l,this._fullNameStack.length>0,f);this._handleFullNameStackForTagOpen(l,s),D===en.RAW_TEXT?this._consumeRawTextWithTagClose(l,s,!1):D===en.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(l,s,!0)}_consumeRawTextWithTagClose(a,s,l){this._consumeRawText(l,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Qe),!this._attemptStrCaseInsensitive(a?`${a}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(Qe),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(d=>d===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(Yr(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=()=>sh(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(Qe),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Qe),this._requireCharCode(62),this._endToken([]);else{let[s,l]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Qe),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 d=this._endToken([a]);s!==a&&this.nonNormalizedIcuExpressions.push(d)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Qe),this._beginToken(7);let l=this._readUntil(44);this._endToken([l]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Qe)}_consumeExpansionCaseStart(){this._beginToken(21);let a=this._readUntil(123).trim();this._endToken([a]),this._attemptCharCodeUntilFn(Qe),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Qe),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Qe),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(a,s,l,d){this._beginToken(a);let f=[];for(;!l();){let F=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(f.join(""))],F),f.length=0,this._consumeInterpolation(s,F,d),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 D=this._processCarriageReturns(f.join(""));return this._endToken([D]),D}_consumeInterpolation(a,s,l){let d=[];this._beginToken(a,s),d.push(this._interpolationConfig.start);let f=this._cursor.clone(),D=null,F=!1;for(;this._cursor.peek()!==0&&(l===null||!l());){let L=this._cursor.clone();if(this._isTagStart()){this._cursor=L,d.push(this._getProcessedChars(f,L)),this._endToken(d);return}if(D===null)if(this._attemptStr(this._interpolationConfig.end)){d.push(this._getProcessedChars(f,L)),d.push(this._interpolationConfig.end),this._endToken(d);return}else this._attemptStr("//")&&(F=!0);let W=this._cursor.peek();this._cursor.advance(),W===92?this._cursor.advance():W===D?D=null:!F&&D===null&&hl(W)&&(D=W)}d.push(this._getProcessedChars(f,this._cursor)),this._endToken(d)}_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(),lh(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=ss(a,s);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===l)&&this._fullNameStack.push(l)}_handleFullNameStackForTagClose(a,s){let l=ss(a,s);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===l&&this._fullNameStack.pop()}};function Qe(a){return!ts(a)||a===0}function sh(a){return ts(a)||a===62||a===60||a===47||a===39||a===34||a===61||a===0}function PC(a){return(a<97||122<a)&&(a<65||90<a)&&(a<48||a>57)}function OC(a){return a===59||a===0||!qw(a)}function MC(a){return a===59||a===0||!ns(a)}function IC(a){return a!==125}function RC(a,s){return oh(a)===oh(s)}function oh(a){return a>=97&&a<=122?a-97+65:a}function lh(a){return ns(a)||dl(a)||a===95}function uh(a){return a!==59&&Qe(a)}function qC(a){let s=[],l;for(let d=0;d<a.length;d++){let f=a[d];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 ch=class kl{constructor(s,l){if(s instanceof kl){this.file=s.file,this.input=s.input,this.end=s.end;let d=s.state;this.state={peek:d.peek,offset:d.offset,line:d.line,column:d.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 kl(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 d=s;if(l)for(;this.diff(s)>0&&l.indexOf(s.peek())!==-1;)d===s&&(s=s.clone()),s.advance();let f=this.locationFromCursor(s),D=this.locationFromCursor(this),F=d!==s?this.locationFromCursor(d):f;return new ge(f,D,F)}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 yl('Unexpected character "EOF"',this);let l=this.charAt(s.offset);l===10?(s.line++,s.column=0):pl(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 fl(s.file,s.state.offset,s.state.line,s.state.column)}},HC=class wl extends ch{constructor(s,l){s instanceof wl?(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 wl(this)}getChars(s){let l=s.clone(),d="";for(;l.internalState.offset<this.internalState.offset;)d+=String.fromCodePoint(l.peek()),l.advance();return d}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(),d=0;for(;s()!==125;)this.advanceState(this.internalState),d++;this.state.peek=this.decodeHexDigits(l,d)}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(Mp(s())){let l="",d=0,f=this.clone();for(;Mp(s())&&d<3;)f=this.clone(),l+=String.fromCodePoint(s()),this.advanceState(this.internalState),d++;this.state.peek=parseInt(l,8),this.internalState=f.internalState}else pl(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(s,l){let d=this.input.slice(s.internalState.offset,s.internalState.offset+l),f=parseInt(d,16);if(isNaN(f))throw s.state=s.internalState,new yl("Invalid hexadecimal escape sequence",s);return f}},yl=class{constructor(a,s){this.msg=a,this.cursor=s}},_t=class Sh extends Rp{static create(s,l,d){return new Sh(s,l,d)}constructor(s,l,d){super(l,d),this.elementName=s}},UC=class{constructor(a,s){this.rootNodes=a,this.errors=s}},VC=class{constructor(a){this.getTagDefinition=a}parse(a,s,l,d=!1,f){let D=De=>(Me,...it)=>De(Me.toLowerCase(),...it),F=d?this.getTagDefinition:D(this.getTagDefinition),L=De=>F(De).getContentType(),W=d?f:D(f),Q=NC(a,s,f?(De,Me,it,vt)=>{let xt=W(De,Me,it,vt);return xt!==void 0?xt:L(De)}:L,l),K=l&&l.canSelfClose||!1,Be=l&&l.allowHtmComponentClosingTags||!1,xe=new zC(Q.tokens,F,K,Be,d);return xe.build(),new UC(xe.rootNodes,Q.errors.concat(xe.errors))}},zC=class _h{constructor(s,l,d,f,D){this.tokens=s,this.getTagDefinition=l,this.canSelfClose=d,this.allowHtmComponentClosingTags=f,this.isTagNameCaseSensitive=D,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 Gr&&this.errors.push(_t.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(),d=this._getText(l),f=this._advanceIf(13);this._addToParent(new bC(d,new ge(s.sourceSpan.start,(f||l).sourceSpan.end),[l]))}_consumeComment(s){let l=this._advanceIf(7),d=this._advanceIf(11),f=l!=null?l.parts[0].trim():null,D=d==null?s.sourceSpan:new ge(s.sourceSpan.start,d.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new xC(f,D))}_consumeDocType(s){let l=this._advanceIf(7),d=this._advanceIf(19),f=l!=null?l.parts[0].trim():null,D=new ge(s.sourceSpan.start,(d||l||s).sourceSpan.end);this._addToParent(new SC(f,D))}_consumeExpansion(s){let l=this._advance(),d=this._advance(),f=[];for(;this._peek.type===21;){let F=this._parseExpansionCase();if(!F)return;f.push(F)}if(this._peek.type!==24){this.errors.push(_t.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let D=new ge(s.sourceSpan.start,this._peek.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new kC(l.parts[0],d.parts[0],f,D,l.sourceSpan)),this._advance()}_parseExpansionCase(){let s=this._advance();if(this._peek.type!==22)return this.errors.push(_t.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let l=this._advance(),d=this._collectExpansionExpTokens(l);if(!d)return null;let f=this._advance();d.push({type:34,parts:[],sourceSpan:f.sourceSpan});let D=new _h(d,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(D.build(),D.errors.length>0)return this.errors=this.errors.concat(D.errors),null;let F=new ge(s.sourceSpan.start,f.sourceSpan.end,s.sourceSpan.fullStart),L=new ge(l.sourceSpan.start,f.sourceSpan.end,l.sourceSpan.fullStart);return new wC(s.parts[0],D.rootNodes,F,s.sourceSpan,L)}_collectExpansionExpTokens(s){let l=[],d=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&d.push(this._peek.type),this._peek.type===23)if(dh(d,22)){if(d.pop(),d.length===0)return l}else return this.errors.push(_t.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(dh(d,20))d.pop();else return this.errors.push(_t.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(_t.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]==`
|
|
690
|
+
`)}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=>ts(l)?!a:lh(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(Qe),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Qe);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(uh);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 d=this._cursor.peek();if(d===92)this._cursor.advance();else if(d===s)s=null;else if(s===null&&hl(d))s=d;else if(d===40&&s===null)l++;else if(d===41&&s===null){if(l===0)break;l>0&&l--}this._cursor.advance()}this._endToken([this._cursor.getChars(a)]),this._attemptCharCodeUntilFn(uh)}}_consumeLetDeclaration(a){if(this._beginToken(30,a),ts(this._cursor.peek()))this._attemptCharCodeUntilFn(Qe);else{let l=this._endToken([this._cursor.getChars(a)]);l.type=33;return}let s=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Qe),!this._attemptCharCode(61)){s.type=33;return}this._attemptCharCodeUntilFn(l=>Qe(l)&&!pl(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=>ns(l)||l==36||l===95||s&&dl(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;hl(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(IC(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 gl("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 gl("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 gl(a,this._currentTokenType,s);return this._currentTokenStart=null,this._currentTokenType=null,new vl(l)}handleError(a){if(a instanceof yl&&(a=this._createError(a.msg,this._cursor.getSpan(a.cursor))),a instanceof vl)this.errors.push(a.error);else throw a}_attemptCharCode(a){return this._cursor.peek()===a?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(a){return RC(this._cursor.peek(),a)?(this._cursor.advance(),!0):!1}_requireCharCode(a){let s=this._cursor.clone();if(!this._attemptCharCode(a))throw this._createError(Yr(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 d=0;d<s;d++)if(!this._attemptCharCode(a.charCodeAt(d)))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(Yr(this._cursor.peek()),this._cursor.getSpan(s))}_requireStrCaseInsensitive(a){let s=this._cursor.clone();if(!this._attemptStrCaseInsensitive(a))throw this._createError(Yr(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(Yr(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),d=this._cursor.clone();if(this._attemptCharCodeUntilFn(OC),this._cursor.peek()!=59){this._cursor.advance();let D=l?cs.HEX:cs.DEC;throw this._createError(jC(D,this._cursor.getChars(s)),this._cursor.getSpan())}let f=this._cursor.getChars(d);this._cursor.advance();try{let D=parseInt(f,l?16:10);this._endToken([String.fromCharCode(D),this._cursor.getChars(s)])}catch{throw this._createError(ih(this._cursor.getChars(s)),this._cursor.getSpan())}}else{let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(MC),this._cursor.peek()!=59)this._beginToken(a,s),this._cursor=l,this._endToken(["&"]);else{let d=this._cursor.getChars(l);this._cursor.advance();let f=us[d];if(!f)throw this._createError(ih(d),this._cursor.getSpan(s));this._endToken([f,`&${d};`])}}}_consumeRawText(a,s){this._beginToken(a?6:7);let l=[];for(;;){let d=this._cursor.clone(),f=s();if(this._cursor=d,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&&!PC(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(sh,s===""?0:1);let d=this._cursor.getChars(l);return[s,d]}_consumeTagOpen(a){let s,l,d,f=[];try{if(!ns(this._cursor.peek()))throw this._createError(Yr(this._cursor.peek()),this._cursor.getSpan(a));for(d=this._consumeTagOpenStart(a),l=d.parts[0],s=d.parts[1],this._attemptCharCodeUntilFn(Qe);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[F,L]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(Qe),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(Qe);let V=this._consumeAttributeValue();f.push({prefix:F,name:L,value:V})}else f.push({prefix:F,name:L});this._attemptCharCodeUntilFn(Qe)}this._consumeTagOpenEnd()}catch(F){if(F instanceof vl){d?d.type=4:(this._beginToken(5,a),this._endToken(["<"]));return}throw F}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let D=this._getTagContentType(s,l,this._fullNameStack.length>0,f);this._handleFullNameStackForTagOpen(l,s),D===en.RAW_TEXT?this._consumeRawTextWithTagClose(l,s,!1):D===en.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(l,s,!0)}_consumeRawTextWithTagClose(a,s,l){this._consumeRawText(l,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Qe),!this._attemptStrCaseInsensitive(a?`${a}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(Qe),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(d=>d===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(Yr(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=()=>sh(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(Qe),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Qe),this._requireCharCode(62),this._endToken([]);else{let[s,l]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Qe),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 d=this._endToken([a]);s!==a&&this.nonNormalizedIcuExpressions.push(d)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Qe),this._beginToken(7);let l=this._readUntil(44);this._endToken([l]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Qe)}_consumeExpansionCaseStart(){this._beginToken(21);let a=this._readUntil(123).trim();this._endToken([a]),this._attemptCharCodeUntilFn(Qe),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Qe),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Qe),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(a,s,l,d){this._beginToken(a);let f=[];for(;!l();){let F=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(f.join(""))],F),f.length=0,this._consumeInterpolation(s,F,d),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 D=this._processCarriageReturns(f.join(""));return this._endToken([D]),D}_consumeInterpolation(a,s,l){let d=[];this._beginToken(a,s),d.push(this._interpolationConfig.start);let f=this._cursor.clone(),D=null,F=!1;for(;this._cursor.peek()!==0&&(l===null||!l());){let L=this._cursor.clone();if(this._isTagStart()){this._cursor=L,d.push(this._getProcessedChars(f,L)),this._endToken(d);return}if(D===null)if(this._attemptStr(this._interpolationConfig.end)){d.push(this._getProcessedChars(f,L)),d.push(this._interpolationConfig.end),this._endToken(d);return}else this._attemptStr("//")&&(F=!0);let V=this._cursor.peek();this._cursor.advance(),V===92?this._cursor.advance():V===D?D=null:!F&&D===null&&hl(V)&&(D=V)}d.push(this._getProcessedChars(f,this._cursor)),this._endToken(d)}_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(),lh(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=ss(a,s);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===l)&&this._fullNameStack.push(l)}_handleFullNameStackForTagClose(a,s){let l=ss(a,s);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===l&&this._fullNameStack.pop()}};function Qe(a){return!ts(a)||a===0}function sh(a){return ts(a)||a===62||a===60||a===47||a===39||a===34||a===61||a===0}function PC(a){return(a<97||122<a)&&(a<65||90<a)&&(a<48||a>57)}function OC(a){return a===59||a===0||!qw(a)}function MC(a){return a===59||a===0||!ns(a)}function IC(a){return a!==125}function RC(a,s){return oh(a)===oh(s)}function oh(a){return a>=97&&a<=122?a-97+65:a}function lh(a){return ns(a)||dl(a)||a===95}function uh(a){return a!==59&&Qe(a)}function qC(a){let s=[],l;for(let d=0;d<a.length;d++){let f=a[d];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 ch=class kl{constructor(s,l){if(s instanceof kl){this.file=s.file,this.input=s.input,this.end=s.end;let d=s.state;this.state={peek:d.peek,offset:d.offset,line:d.line,column:d.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 kl(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 d=s;if(l)for(;this.diff(s)>0&&l.indexOf(s.peek())!==-1;)d===s&&(s=s.clone()),s.advance();let f=this.locationFromCursor(s),D=this.locationFromCursor(this),F=d!==s?this.locationFromCursor(d):f;return new ve(f,D,F)}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 yl('Unexpected character "EOF"',this);let l=this.charAt(s.offset);l===10?(s.line++,s.column=0):pl(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 fl(s.file,s.state.offset,s.state.line,s.state.column)}},HC=class wl extends ch{constructor(s,l){s instanceof wl?(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 wl(this)}getChars(s){let l=s.clone(),d="";for(;l.internalState.offset<this.internalState.offset;)d+=String.fromCodePoint(l.peek()),l.advance();return d}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(),d=0;for(;s()!==125;)this.advanceState(this.internalState),d++;this.state.peek=this.decodeHexDigits(l,d)}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(Mp(s())){let l="",d=0,f=this.clone();for(;Mp(s())&&d<3;)f=this.clone(),l+=String.fromCodePoint(s()),this.advanceState(this.internalState),d++;this.state.peek=parseInt(l,8),this.internalState=f.internalState}else pl(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(s,l){let d=this.input.slice(s.internalState.offset,s.internalState.offset+l),f=parseInt(d,16);if(isNaN(f))throw s.state=s.internalState,new yl("Invalid hexadecimal escape sequence",s);return f}},yl=class{constructor(a,s){this.msg=a,this.cursor=s}},_t=class Sh extends Rp{static create(s,l,d){return new Sh(s,l,d)}constructor(s,l,d){super(l,d),this.elementName=s}},UC=class{constructor(a,s){this.rootNodes=a,this.errors=s}},VC=class{constructor(a){this.getTagDefinition=a}parse(a,s,l,d=!1,f){let D=be=>(Me,...it)=>be(Me.toLowerCase(),...it),F=d?this.getTagDefinition:D(this.getTagDefinition),L=be=>F(be).getContentType(),V=d?f:D(f),Q=NC(a,s,f?(be,Me,it,vt)=>{let xt=V(be,Me,it,vt);return xt!==void 0?xt:L(be)}:L,l),K=l&&l.canSelfClose||!1,Be=l&&l.allowHtmComponentClosingTags||!1,xe=new zC(Q.tokens,F,K,Be,d);return xe.build(),new UC(xe.rootNodes,Q.errors.concat(xe.errors))}},zC=class _h{constructor(s,l,d,f,D){this.tokens=s,this.getTagDefinition=l,this.canSelfClose=d,this.allowHtmComponentClosingTags=f,this.isTagNameCaseSensitive=D,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 Gr&&this.errors.push(_t.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(),d=this._getText(l),f=this._advanceIf(13);this._addToParent(new bC(d,new ve(s.sourceSpan.start,(f||l).sourceSpan.end),[l]))}_consumeComment(s){let l=this._advanceIf(7),d=this._advanceIf(11),f=l!=null?l.parts[0].trim():null,D=d==null?s.sourceSpan:new ve(s.sourceSpan.start,d.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new xC(f,D))}_consumeDocType(s){let l=this._advanceIf(7),d=this._advanceIf(19),f=l!=null?l.parts[0].trim():null,D=new ve(s.sourceSpan.start,(d||l||s).sourceSpan.end);this._addToParent(new SC(f,D))}_consumeExpansion(s){let l=this._advance(),d=this._advance(),f=[];for(;this._peek.type===21;){let F=this._parseExpansionCase();if(!F)return;f.push(F)}if(this._peek.type!==24){this.errors.push(_t.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let D=new ve(s.sourceSpan.start,this._peek.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new kC(l.parts[0],d.parts[0],f,D,l.sourceSpan)),this._advance()}_parseExpansionCase(){let s=this._advance();if(this._peek.type!==22)return this.errors.push(_t.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let l=this._advance(),d=this._collectExpansionExpTokens(l);if(!d)return null;let f=this._advance();d.push({type:34,parts:[],sourceSpan:f.sourceSpan});let D=new _h(d,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(D.build(),D.errors.length>0)return this.errors=this.errors.concat(D.errors),null;let F=new ve(s.sourceSpan.start,f.sourceSpan.end,s.sourceSpan.fullStart),L=new ve(l.sourceSpan.start,f.sourceSpan.end,l.sourceSpan.fullStart);return new wC(s.parts[0],D.rootNodes,F,s.sourceSpan,L)}_collectExpansionExpTokens(s){let l=[],d=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&d.push(this._peek.type),this._peek.type===23)if(dh(d,22)){if(d.pop(),d.length===0)return l}else return this.errors.push(_t.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(dh(d,20))d.pop();else return this.errors.push(_t.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(_t.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]==`
|
|
691
691
|
`){let d=this._getClosestParentElement();d!=null&&d.children.length==0&&this.getTagDefinition(d.name).ignoreFirstLf&&(l=l.substring(1))}return l}_consumeText(s){let l=[s],d=s.sourceSpan,f=s.parts[0];if(f.length>0&&f[0]===`
|
|
692
|
-
`){let D=this._getContainer();D!=null&&D.children.length===0&&this.getTagDefinition(D.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,ph):s.type===9?f+=s.parts[0]:f+=s.parts.join("");if(f.length>0){let D=s.sourceSpan;this._addToParent(new DC(f,new
|
|
692
|
+
`){let D=this._getContainer();D!=null&&D.children.length===0&&this.getTagDefinition(D.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,ph):s.type===9?f+=s.parts[0]:f+=s.parts.join("");if(f.length>0){let D=s.sourceSpan;this._addToParent(new DC(f,new ve(d.start,D.end,d.fullStart,d.details),l))}}_closeVoidElement(){let s=this._getContainer();s instanceof Hn&&this.getTagDefinition(s.name).isVoid&&this._containerStack.pop()}_consumeStartTag(s){let[l,d]=s.parts,f=[];for(;this._peek.type===14;)f.push(this._consumeAttr(this._advance()));let D=this._getElementFullName(l,d,this._getClosestParentElement()),F=!1;if(this._peek.type===2){this._advance(),F=!0;let be=this.getTagDefinition(D);this.canSelfClose||be.canSelfClose||is(D)!==null||be.isVoid||this.errors.push(_t.create(D,s.sourceSpan,`Only void, custom and foreign elements can be self closed "${s.parts[1]}"`))}else this._peek.type===1&&(this._advance(),F=!1);let L=this._peek.sourceSpan.fullStart,V=new ve(s.sourceSpan.start,L,s.sourceSpan.fullStart),Q=new ve(s.sourceSpan.start,L,s.sourceSpan.fullStart),K=new ve(s.sourceSpan.start.moveBy(1),s.sourceSpan.end),Be=new Hn(D,f,[],V,Q,void 0,K),xe=this._getContainer();this._pushContainer(Be,xe instanceof Hn&&this.getTagDefinition(xe.name).isClosedByChild(Be.name)),F?this._popContainer(D,Hn,V):s.type===4&&(this._popContainer(D,Hn,null),this.errors.push(_t.create(D,V,`Opening tag "${D}" 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(_t.create(l,s.sourceSpan,`Void elements do not have end tags "${s.parts[1]}"`));else if(!this._popContainer(l,Hn,s.sourceSpan)){let d=`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(_t.create(l,s.sourceSpan,d))}}_popContainer(s,l,d){let f=!1;for(let D=this._containerStack.length-1;D>=0;D--){let F=this._containerStack[D];if(is(F.name)?F.name===s:(s==null||F.name.toLowerCase()===s.toLowerCase())&&F instanceof l)return F.endSourceSpan=d,F.sourceSpan.end=d!==null?d.end:F.sourceSpan.end,this._containerStack.splice(D,this._containerStack.length-D),!f;(F instanceof Gr||F instanceof Hn&&!this.getTagDefinition(F.name).closedByParent)&&(f=!0)}return!1}_consumeAttr(s){let l=ss(s.parts[0],s.parts[1]),d=s.sourceSpan.end,f;this._peek.type===15&&(f=this._advance());let D="",F=[],L,V;if(this._peek.type===16)for(L=this._peek.sourceSpan,V=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let K=this._advance();F.push(K),K.type===17?D+=K.parts.join("").replace(/&([^;]+);/g,ph):K.type===9?D+=K.parts[0]:D+=K.parts.join(""),V=d=K.sourceSpan.end}this._peek.type===15&&(V=d=this._advance().sourceSpan.end);let Q=L&&V&&new ve((f==null?void 0:f.sourceSpan.start)??L.start,V,(f==null?void 0:f.sourceSpan.fullStart)??L.fullStart);return new CC(l,D,new ve(s.sourceSpan.start,d,s.sourceSpan.fullStart),s.sourceSpan,Q,F.length>0?F:void 0,void 0)}_consumeBlockOpen(s){let l=[];for(;this._peek.type===28;){let L=this._advance();l.push(new th(L.parts[0],L.sourceSpan))}this._peek.type===26&&this._advance();let d=this._peek.sourceSpan.fullStart,f=new ve(s.sourceSpan.start,d,s.sourceSpan.fullStart),D=new ve(s.sourceSpan.start,d,s.sourceSpan.fullStart),F=new Gr(s.parts[0],l,[],f,s.sourceSpan,D);this._pushContainer(F,!1)}_consumeBlockClose(s){this._popContainer(null,Gr,s.sourceSpan)||this.errors.push(_t.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 "}" HTML entity instead.'))}_consumeIncompleteBlock(s){let l=[];for(;this._peek.type===28;){let L=this._advance();l.push(new th(L.parts[0],L.sourceSpan))}let d=this._peek.sourceSpan.fullStart,f=new ve(s.sourceSpan.start,d,s.sourceSpan.fullStart),D=new ve(s.sourceSpan.start,d,s.sourceSpan.fullStart),F=new Gr(s.parts[0],l,[],f,s.sourceSpan,D);this._pushContainer(F,!1),this._popContainer(null,Gr,null),this.errors.push(_t.create(s.parts[0],f,`Incomplete block "${s.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(s){let l=s.parts[0],d,f;if(this._peek.type!==31){this.errors.push(_t.create(s.parts[0],s.sourceSpan,`Invalid @let declaration "${l}". Declaration must have a value.`));return}else d=this._advance();if(this._peek.type!==32){this.errors.push(_t.create(s.parts[0],s.sourceSpan,`Unterminated @let declaration "${l}". Declaration must be terminated with a semicolon.`));return}else f=this._advance();let D=f.sourceSpan.fullStart,F=new ve(s.sourceSpan.start,D,s.sourceSpan.fullStart),L=s.sourceSpan.toString().lastIndexOf(l),V=s.sourceSpan.start.moveBy(L),Q=new ve(V,s.sourceSpan.end),K=new nh(l,d.parts[0],F,Q,d.sourceSpan);this._addToParent(K)}_consumeIncompleteLet(s){let l=s.parts[0]??"",d=l?` "${l}"`:"";if(l.length>0){let f=s.sourceSpan.toString().lastIndexOf(l),D=s.sourceSpan.start.moveBy(f),F=new ve(D,s.sourceSpan.end),L=new ve(s.sourceSpan.start,s.sourceSpan.start.moveBy(0)),V=new nh(l,"",s.sourceSpan,F,L);this._addToParent(V)}this.errors.push(_t.create(s.parts[0],s.sourceSpan,`Incomplete @let declaration${d}. @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 Hn)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,d){if(s===""&&(s=this.getTagDefinition(l).implicitNamespacePrefix||"",s===""&&d!=null)){let f=as(d.name)[1];this.getTagDefinition(f).preventNamespaceInheritance||(s=is(d.name))}return ss(s,l)}};function dh(a,s){return a.length>0&&a[a.length-1]===s}function ph(a,s){return us[s]!==void 0?us[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 WC=class extends VC{constructor(){super(ml)}parse(a,s,l,d=!1,f){return super.parse(a,s,l,d,f)}},Dl=null,GC=()=>(Dl||(Dl=new WC),Dl);function hh(a,s={}){let{canSelfClose:l=!1,allowHtmComponentClosingTags:d=!1,isTagNameCaseSensitive:f=!1,getTagContentType:D,tokenizeAngularBlocks:F=!1,tokenizeAngularLetDeclaration:L=!1}=s;return GC().parse(a,"angular-html-parser",{tokenizeExpansionForms:F,interpolationConfig:void 0,canSelfClose:l,allowHtmComponentClosingTags:d,tokenizeBlocks:F,tokenizeLet:L},f,D)}function YC(a,s){let l=new SyntaxError(a+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(l,s)}var JC=YC,Ga=3;function KC(a){let s=a.slice(0,Ga);if(s!=="---"&&s!=="+++")return;let l=a.indexOf(`
|
|
693
693
|
`,Ga);if(l===-1)return;let d=a.slice(Ga,l).trim(),f=a.indexOf(`
|
|
694
694
|
${s}`,l),D=d;if(D||(D=s==="+++"?"toml":"yaml"),f===-1&&s==="---"&&D==="yaml"&&(f=a.indexOf(`
|
|
695
|
-
...`,l)),f===-1)return;let F=f+1+Ga,L=a.charAt(F+1);if(!/\s?/u.test(L))return;let W=a.slice(0,F);return{type:"front-matter",language:D,explicitLanguage:d,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:W.slice(-Ga),raw:W}}function ZC(a){let s=KC(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var XC=ZC,ds={attrs:!0,children:!0,cases:!0,expression:!0},fh=new Set(["parent"]),QC=class Ka{constructor(s={}){for(let l of new Set([...fh,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in ds&&(l=l.map(d=>this.createChild(d))),!fh.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let d in ds){let f=this[d];if(f){let D=ex(f,F=>F.map(s));l!==f&&(l||(l=new Ka({parent:this.parent})),l.setProperty(d,D))}}if(l)for(let d in this)d in ds||(l[d]=this[d]);return s(l||this)}walk(s){for(let l in ds){let d=this[l];if(d)for(let f=0;f<d.length;f++)d[f].walk(s)}s(this)}createChild(s){let l=s instanceof Ka?s.clone():new Ka(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 Ka(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 ex(a,s){let l=a.map(s);return l.some((d,f)=>d!==a[f])?l:a}var tx=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:rx},{regex:/^\[if([^\]]*)\]><!$/u,parse:ax},{regex:/^<!\s*\[endif\]$/u,parse:ix}];function nx(a,s){if(a.value)for(let{regex:l,parse:d}of tx){let f=a.value.match(l);if(f)return d(a,s,f)}return null}function rx(a,s,l){let[,d,f,D]=l,F=4+d.length,L=a.sourceSpan.start.moveBy(F),W=L.moveBy(D.length),[Q,K]=(()=>{try{return[!0,s(D,L).children]}catch{return[!1,[{type:"text",value:D,sourceSpan:new ge(L,W)}]]}})();return{type:"ieConditionalComment",complete:Q,children:K,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new ge(a.sourceSpan.start,L),endSourceSpan:new ge(W,a.sourceSpan.end)}}function ax(a,s,l){let[,d]=l;return{type:"ieConditionalStartComment",condition:C(!1,d.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function ix(a){return{type:"ieConditionalEndComment",sourceSpan:a.sourceSpan}}var bl=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"])]]),sx=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 ox(a){if(a.type==="block"){if(a.name=C(!1,a.name.toLowerCase(),/\s+/gu," ").trim(),a.type="angularControlFlowBlock",!al(a.parameters)){delete a.parameters;return}for(let s of a.parameters)s.type="angularControlFlowBlockParameter";a.parameters={type:"angularControlFlowBlockParameters",children:a.parameters,sourceSpan:new ge(a.parameters[0].sourceSpan.start,Rt(!1,a.parameters,-1).sourceSpan.end)}}}function lx(a){a.type==="letDeclaration"&&(a.type="angularLetDeclaration",a.id=a.name,a.init={type:"angularLetDeclarationInitializer",sourceSpan:new ge(a.valueSpan.start,a.valueSpan.end),value:a.value},delete a.name,delete a.value)}function ux(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function mh(a,s,l){let{name:d,canSelfClose:f=!0,normalizeTagName:D=!1,normalizeAttributeName:F=!1,allowHtmComponentClosingTags:L=!1,isTagNameCaseSensitive:W=!1,shouldParseAsRawText:Q}=s,{rootNodes:K,errors:Be}=hh(a,{canSelfClose:f,allowHtmComponentClosingTags:L,isTagNameCaseSensitive:W,getTagContentType:Q?(...Z)=>Q(...Z)?en.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:d==="angular"?!0:void 0,tokenizeAngularLetDeclaration:d==="angular"?!0:void 0});if(d==="vue"){if(K.some(et=>et.type==="docType"&&et.value==="html"||et.type==="element"&&et.name.toLowerCase()==="html"))return mh(a,yh,l);let Z,be=()=>Z??(Z=hh(a,{canSelfClose:f,allowHtmComponentClosingTags:L,isTagNameCaseSensitive:W})),st=et=>be().rootNodes.find(({startSourceSpan:Et})=>Et&&Et.start.offset===et.startSourceSpan.start.offset)??et;for(let[et,Et]of K.entries()){let{endSourceSpan:Jr,startSourceSpan:gx}=Et;if(Jr===null)Be=be().errors,K[et]=st(Et);else if(cx(Et,l)){let Dh=be().errors.find(bh=>bh.span.start.offset>gx.start.offset&&bh.span.start.offset<Jr.end.offset);Dh&&gh(Dh),K[et]=st(Et)}}}Be.length>0&&gh(Be[0]);let xe=Z=>{let be=Z.name.startsWith(":")?Z.name.slice(1).split(":")[0]:null,st=Z.nameSpan.toString(),et=be!==null&&st.startsWith(`${be}:`),Et=et?st.slice(be.length+1):st;Z.name=Et,Z.namespace=be,Z.hasExplicitNamespace=et},De=Z=>{switch(Z.type){case"element":xe(Z);for(let be of Z.attrs)xe(be),be.valueSpan?(be.value=be.valueSpan.toString(),/["']/u.test(be.value[0])&&(be.value=be.value.slice(1,-1))):be.value=null;break;case"comment":Z.value=Z.sourceSpan.toString().slice(4,-3);break;case"text":Z.value=Z.sourceSpan.toString();break}},Me=(Z,be)=>{let st=Z.toLowerCase();return be(st)?st:Z},it=Z=>{if(Z.type==="element"&&(D&&(!Z.namespace||Z.namespace===Z.tagDefinition.implicitNamespacePrefix||Se(Z))&&(Z.name=Me(Z.name,be=>sx.has(be))),F))for(let be of Z.attrs)be.namespace||(be.name=Me(be.name,st=>bl.has(Z.name)&&(bl.get("*").has(st)||bl.get(Z.name).has(st))))},vt=Z=>{Z.sourceSpan&&Z.endSourceSpan&&(Z.sourceSpan=new ge(Z.sourceSpan.start,Z.endSourceSpan.end))},xt=Z=>{if(Z.type==="element"){let be=ml(W?Z.name:Z.name.toLowerCase());!Z.namespace||Z.namespace===be.implicitNamespacePrefix||Se(Z)?Z.tagDefinition=be:Z.tagDefinition=ml("")}};return rh(new class extends _C{visitExpansionCase(Z,be){d==="angular"&&this.visitChildren(be,st=>{st(Z.expression)})}visit(Z){De(Z),xt(Z),it(Z),vt(Z)}},K),K}function cx(a,s){var l;if(a.type!=="element"||a.name!=="template")return!1;let d=(l=a.attrs.find(f=>f.name==="lang"))==null?void 0:l.value;return!d||Ur(s,{language:d})==="html"}function gh(a){let{msg:s,span:{start:l,end:d}}=a;throw JC(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:d.line+1,column:d.col+1}},cause:a})}function vh(a,s,l={},d=!0){let{frontMatter:f,content:D}=d?XC(a):{frontMatter:null,content:a},F=new Ip(a,l.filepath),L=new fl(F,0,0,0),W=L.moveBy(a.length),Q={type:"root",sourceSpan:new ge(L,W),children:mh(D,s,l)};if(f){let xe=new fl(F,0,0,0),De=xe.moveBy(f.raw.length);f.sourceSpan=new ge(xe,De),Q.children.unshift(f)}let K=new QC(Q),Be=(xe,De)=>{let{offset:Me}=De,it=C(!1,a.slice(0,Me),/[^\n\r]/gu," "),vt=vh(it+xe,s,l,!1);vt.sourceSpan=new ge(De,Rt(!1,vt.children,-1).sourceSpan.end);let xt=vt.children[0];return xt.length===Me?vt.children.shift():(xt.sourceSpan=new ge(xt.sourceSpan.start.moveBy(Me),xt.sourceSpan.end),xt.value=xt.value.slice(Me)),vt};return K.walk(xe=>{if(xe.type==="comment"){let De=nx(xe,Be);De&&xe.parent.replaceChild(xe,De)}ox(xe),lx(xe),ux(xe)}),K}function ps(a){return{parse:(s,l)=>vh(s,a,l),hasPragma:Nw,astFormat:"html",locStart:Ki,locEnd:Zi}}var yh={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},dx=ps(yh),px=ps({name:"angular"}),hx=ps({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(a,s,l,d){return a.toLowerCase()!=="html"&&!l&&(a!=="template"||d.some(({name:f,value:D})=>f==="lang"&&D!=="html"&&D!==""&&D!==void 0))}}),fx=ps({name:"lwc",canSelfClose:!1}),mx={html:sC};return h(k)})})(hd);var fd=hd.exports;const u0=Fh({__proto__:null,default:Za(fd)},[fd]);function c0(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 d0(e,t){if(e==null)return{};var n,r,i=c0(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 Do(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 p0(e){if(Array.isArray(e))return Do(e)}function h0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f0(e,t){if(e){if(typeof e=="string")return Do(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)?Do(e,t):void 0}}function m0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
696
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bo(e){return p0(e)||h0(e)||f0(e)||m0()}function Sa(e){"@babel/helpers - typeof";return Sa=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},Sa(e)}function g0(e,t){if(Sa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v0(e){var t=g0(e,"string");return Sa(t)=="symbol"?t:t+""}function md(e,t,n){return(t=v0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ko(){return ko=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},ko.apply(null,arguments)}function gd(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 Or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gd(Object(n),!0).forEach(function(r){md(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y0(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 wo={};function D0(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return wo[t]||(wo[t]=y0(e)),wo[t]}function b0(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=D0(r);return i.reduce(function(o,u){return Or(Or({},o),n[u])},t)}function vd(e){return e.join(" ")}function k0(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return yd({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function yd(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,p=t.type,h=t.tagName,m=t.value;if(p==="text")return m;if(h){var v=k0(n,o),y;if(!o)y=Or(Or({},c),{},{className:vd(c.className)});else{var b=Object.keys(n).reduce(function(N,
|
|
695
|
+
...`,l)),f===-1)return;let F=f+1+Ga,L=a.charAt(F+1);if(!/\s?/u.test(L))return;let V=a.slice(0,F);return{type:"front-matter",language:D,explicitLanguage:d,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:V.slice(-Ga),raw:V}}function ZC(a){let s=KC(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var XC=ZC,ds={attrs:!0,children:!0,cases:!0,expression:!0},fh=new Set(["parent"]),QC=class Ka{constructor(s={}){for(let l of new Set([...fh,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in ds&&(l=l.map(d=>this.createChild(d))),!fh.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let d in ds){let f=this[d];if(f){let D=ex(f,F=>F.map(s));l!==f&&(l||(l=new Ka({parent:this.parent})),l.setProperty(d,D))}}if(l)for(let d in this)d in ds||(l[d]=this[d]);return s(l||this)}walk(s){for(let l in ds){let d=this[l];if(d)for(let f=0;f<d.length;f++)d[f].walk(s)}s(this)}createChild(s){let l=s instanceof Ka?s.clone():new Ka(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 Ka(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 ex(a,s){let l=a.map(s);return l.some((d,f)=>d!==a[f])?l:a}var tx=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:rx},{regex:/^\[if([^\]]*)\]><!$/u,parse:ax},{regex:/^<!\s*\[endif\]$/u,parse:ix}];function nx(a,s){if(a.value)for(let{regex:l,parse:d}of tx){let f=a.value.match(l);if(f)return d(a,s,f)}return null}function rx(a,s,l){let[,d,f,D]=l,F=4+d.length,L=a.sourceSpan.start.moveBy(F),V=L.moveBy(D.length),[Q,K]=(()=>{try{return[!0,s(D,L).children]}catch{return[!1,[{type:"text",value:D,sourceSpan:new ve(L,V)}]]}})();return{type:"ieConditionalComment",complete:Q,children:K,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new ve(a.sourceSpan.start,L),endSourceSpan:new ve(V,a.sourceSpan.end)}}function ax(a,s,l){let[,d]=l;return{type:"ieConditionalStartComment",condition:C(!1,d.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function ix(a){return{type:"ieConditionalEndComment",sourceSpan:a.sourceSpan}}var bl=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"])]]),sx=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 ox(a){if(a.type==="block"){if(a.name=C(!1,a.name.toLowerCase(),/\s+/gu," ").trim(),a.type="angularControlFlowBlock",!al(a.parameters)){delete a.parameters;return}for(let s of a.parameters)s.type="angularControlFlowBlockParameter";a.parameters={type:"angularControlFlowBlockParameters",children:a.parameters,sourceSpan:new ve(a.parameters[0].sourceSpan.start,Rt(!1,a.parameters,-1).sourceSpan.end)}}}function lx(a){a.type==="letDeclaration"&&(a.type="angularLetDeclaration",a.id=a.name,a.init={type:"angularLetDeclarationInitializer",sourceSpan:new ve(a.valueSpan.start,a.valueSpan.end),value:a.value},delete a.name,delete a.value)}function ux(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function mh(a,s,l){let{name:d,canSelfClose:f=!0,normalizeTagName:D=!1,normalizeAttributeName:F=!1,allowHtmComponentClosingTags:L=!1,isTagNameCaseSensitive:V=!1,shouldParseAsRawText:Q}=s,{rootNodes:K,errors:Be}=hh(a,{canSelfClose:f,allowHtmComponentClosingTags:L,isTagNameCaseSensitive:V,getTagContentType:Q?(...X)=>Q(...X)?en.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:d==="angular"?!0:void 0,tokenizeAngularLetDeclaration:d==="angular"?!0:void 0});if(d==="vue"){if(K.some(et=>et.type==="docType"&&et.value==="html"||et.type==="element"&&et.name.toLowerCase()==="html"))return mh(a,yh,l);let X,ke=()=>X??(X=hh(a,{canSelfClose:f,allowHtmComponentClosingTags:L,isTagNameCaseSensitive:V})),st=et=>ke().rootNodes.find(({startSourceSpan:Et})=>Et&&Et.start.offset===et.startSourceSpan.start.offset)??et;for(let[et,Et]of K.entries()){let{endSourceSpan:Jr,startSourceSpan:gx}=Et;if(Jr===null)Be=ke().errors,K[et]=st(Et);else if(cx(Et,l)){let Dh=ke().errors.find(bh=>bh.span.start.offset>gx.start.offset&&bh.span.start.offset<Jr.end.offset);Dh&&gh(Dh),K[et]=st(Et)}}}Be.length>0&&gh(Be[0]);let xe=X=>{let ke=X.name.startsWith(":")?X.name.slice(1).split(":")[0]:null,st=X.nameSpan.toString(),et=ke!==null&&st.startsWith(`${ke}:`),Et=et?st.slice(ke.length+1):st;X.name=Et,X.namespace=ke,X.hasExplicitNamespace=et},be=X=>{switch(X.type){case"element":xe(X);for(let ke of X.attrs)xe(ke),ke.valueSpan?(ke.value=ke.valueSpan.toString(),/["']/u.test(ke.value[0])&&(ke.value=ke.value.slice(1,-1))):ke.value=null;break;case"comment":X.value=X.sourceSpan.toString().slice(4,-3);break;case"text":X.value=X.sourceSpan.toString();break}},Me=(X,ke)=>{let st=X.toLowerCase();return ke(st)?st:X},it=X=>{if(X.type==="element"&&(D&&(!X.namespace||X.namespace===X.tagDefinition.implicitNamespacePrefix||Se(X))&&(X.name=Me(X.name,ke=>sx.has(ke))),F))for(let ke of X.attrs)ke.namespace||(ke.name=Me(ke.name,st=>bl.has(X.name)&&(bl.get("*").has(st)||bl.get(X.name).has(st))))},vt=X=>{X.sourceSpan&&X.endSourceSpan&&(X.sourceSpan=new ve(X.sourceSpan.start,X.endSourceSpan.end))},xt=X=>{if(X.type==="element"){let ke=ml(V?X.name:X.name.toLowerCase());!X.namespace||X.namespace===ke.implicitNamespacePrefix||Se(X)?X.tagDefinition=ke:X.tagDefinition=ml("")}};return rh(new class extends _C{visitExpansionCase(X,ke){d==="angular"&&this.visitChildren(ke,st=>{st(X.expression)})}visit(X){be(X),xt(X),it(X),vt(X)}},K),K}function cx(a,s){var l;if(a.type!=="element"||a.name!=="template")return!1;let d=(l=a.attrs.find(f=>f.name==="lang"))==null?void 0:l.value;return!d||Ur(s,{language:d})==="html"}function gh(a){let{msg:s,span:{start:l,end:d}}=a;throw JC(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:d.line+1,column:d.col+1}},cause:a})}function vh(a,s,l={},d=!0){let{frontMatter:f,content:D}=d?XC(a):{frontMatter:null,content:a},F=new Ip(a,l.filepath),L=new fl(F,0,0,0),V=L.moveBy(a.length),Q={type:"root",sourceSpan:new ve(L,V),children:mh(D,s,l)};if(f){let xe=new fl(F,0,0,0),be=xe.moveBy(f.raw.length);f.sourceSpan=new ve(xe,be),Q.children.unshift(f)}let K=new QC(Q),Be=(xe,be)=>{let{offset:Me}=be,it=C(!1,a.slice(0,Me),/[^\n\r]/gu," "),vt=vh(it+xe,s,l,!1);vt.sourceSpan=new ve(be,Rt(!1,vt.children,-1).sourceSpan.end);let xt=vt.children[0];return xt.length===Me?vt.children.shift():(xt.sourceSpan=new ve(xt.sourceSpan.start.moveBy(Me),xt.sourceSpan.end),xt.value=xt.value.slice(Me)),vt};return K.walk(xe=>{if(xe.type==="comment"){let be=nx(xe,Be);be&&xe.parent.replaceChild(xe,be)}ox(xe),lx(xe),ux(xe)}),K}function ps(a){return{parse:(s,l)=>vh(s,a,l),hasPragma:Nw,astFormat:"html",locStart:Ki,locEnd:Zi}}var yh={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},dx=ps(yh),px=ps({name:"angular"}),hx=ps({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(a,s,l,d){return a.toLowerCase()!=="html"&&!l&&(a!=="template"||d.some(({name:f,value:D})=>f==="lang"&&D!=="html"&&D!==""&&D!==void 0))}}),fx=ps({name:"lwc",canSelfClose:!1}),mx={html:sC};return h(k)})})(hd);var fd=hd.exports;const u0=Fh({__proto__:null,default:Za(fd)},[fd]);function c0(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 d0(e,t){if(e==null)return{};var n,r,i=c0(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 Do(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 p0(e){if(Array.isArray(e))return Do(e)}function h0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f0(e,t){if(e){if(typeof e=="string")return Do(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)?Do(e,t):void 0}}function m0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
696
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bo(e){return p0(e)||h0(e)||f0(e)||m0()}function Sa(e){"@babel/helpers - typeof";return Sa=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},Sa(e)}function g0(e,t){if(Sa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v0(e){var t=g0(e,"string");return Sa(t)=="symbol"?t:t+""}function md(e,t,n){return(t=v0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ko(){return ko=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},ko.apply(null,arguments)}function gd(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 Or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gd(Object(n),!0).forEach(function(r){md(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y0(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 wo={};function D0(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return wo[t]||(wo[t]=y0(e)),wo[t]}function b0(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=D0(r);return i.reduce(function(o,u){return Or(Or({},o),n[u])},t)}function vd(e){return e.join(" ")}function k0(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return yd({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function yd(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,p=t.type,h=t.tagName,m=t.value;if(p==="text")return m;if(h){var v=k0(n,o),y;if(!o)y=Or(Or({},c),{},{className:vd(c.className)});else{var b=Object.keys(n).reduce(function(N,_){return _.split(".").forEach(function(E){N.includes(E)||N.push(E)}),N},[]),k=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&k.concat(c.className.filter(function(N){return!b.includes(N)}));y=Or(Or({},c),{},{className:vd(x)||void 0,style:b0(c.className,Object.assign({},c.style,i),n)})}var C=v(t.children);return R.createElement(h,ko({key:u},y),C)}}const w0=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var C0=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Dd(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 On(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dd(Object(n),!0).forEach(function(r){md(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var x0=/\n/g;function S0(e){return e.match(x0)}function _0(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var u=o+n;return R.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(u):r},"".concat(u,`
|
|
697
697
|
`))})}function E0(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 R.createElement("code",{style:Object.assign({},n,i)},_0({lines:t.replace(/\n$/,"").split(`
|
|
698
|
-
`),style:u,startingLineNumber:c}))}function F0(e){return"".concat(e.toString().length,".25em")}function bd(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 kd(e,t,n){var r={display:"inline-block",minWidth:F0(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=On(On({},r),i);return o}function Bi(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,p=e.className,h=p===void 0?[]:p,m=e.showLineNumbers,v=e.wrapLongLines,y=e.wrapLines,b=y===void 0?!1:y,k=b?On({},typeof c=="function"?c(n):c):{};if(k.className=k.className?[].concat(bo(k.className.trim().split(/\s+/)),bo(h)):h,n&&o){var
|
|
699
|
-
`);
|
|
700
|
-
`)};if(
|
|
701
|
-
`).length);var Dt=pe+_,jt=A0(Re,O,ee,S,N,_,Dt,T,M);return R.createElement(H,Oe,R.createElement(oe,v,!N&&le,V({rows:jt,stylesheet:c,useInlineStyles:b})))}}var B0=L0,j0=Object.prototype.hasOwnProperty;function L0(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)j0.call(n,r)&&(e[r]=n[r])}return e}var xd=Sd,Co=Sd.prototype;Co.space=null,Co.normal={},Co.property={};function Sd(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var _d=B0,P0=xd,O0=M0;function M0(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 P0(_d.apply(null,n),_d.apply(null,r),u)}var xo=I0;function I0(e){return e.toLowerCase()}var Ed=Fd,Ut=Fd.prototype;Ut.space=null,Ut.attribute=null,Ut.property=null,Ut.boolean=!1,Ut.booleanish=!1,Ut.overloadedBoolean=!1,Ut.number=!1,Ut.commaSeparated=!1,Ut.spaceSeparated=!1,Ut.commaOrSpaceSeparated=!1,Ut.mustUseProperty=!1,Ut.defined=!1;function Fd(e,t){this.property=e,this.attribute=t}var sn={},R0=0;sn.boolean=dr(),sn.booleanish=dr(),sn.overloadedBoolean=dr(),sn.number=dr(),sn.spaceSeparated=dr(),sn.commaSeparated=dr(),sn.commaOrSpaceSeparated=dr();function dr(){return Math.pow(2,++R0)}var Ad=Ed,$d=sn,Td=So;So.prototype=new Ad,So.prototype.defined=!0;var Nd=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],q0=Nd.length;function So(e,t,n,r){var i=-1,o;for(Bd(this,"space",r),Ad.call(this,e,t);++i<q0;)o=Nd[i],Bd(this,o,(n&$d[o])===$d[o])}function Bd(e,t,n){n&&(e[t]=n)}var jd=xo,H0=xd,U0=Td,_a=V0;function V0(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},i=e.properties,o=e.transform,u={},c={},p,h;for(p in i)h=new U0(p,o(r,p),i[p],t),n.indexOf(p)!==-1&&(h.mustUseProperty=!0),u[p]=h,c[jd(p)]=p,c[jd(h.attribute)]=p;return new H0(u,c,t)}var z0=_a,W0=z0({space:"xlink",transform:G0,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function G0(e,t){return"xlink:"+t.slice(5).toLowerCase()}var Y0=_a,J0=Y0({space:"xml",transform:K0,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function K0(e,t){return"xml:"+t.slice(3).toLowerCase()}var Z0=X0;function X0(e,t){return t in e?e[t]:t}var Q0=Z0,Ld=eb;function eb(e,t){return Q0(e,t.toLowerCase())}var tb=_a,nb=Ld,rb=tb({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:nb,properties:{xmlns:null,xmlnsXLink:null}}),_o=sn,ab=_a,Bt=_o.booleanish,Vt=_o.number,pr=_o.spaceSeparated,ib=ab({transform:sb,properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:Vt,ariaColIndex:Vt,ariaColSpan:Vt,ariaControls:pr,ariaCurrent:null,ariaDescribedBy:pr,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:pr,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:pr,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pr,ariaLevel:Vt,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:pr,ariaPlaceholder:null,ariaPosInSet:Vt,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:pr,ariaRowCount:Vt,ariaRowIndex:Vt,ariaRowSpan:Vt,ariaSelected:Bt,ariaSetSize:Vt,ariaSort:null,ariaValueMax:Vt,ariaValueMin:Vt,ariaValueNow:Vt,ariaValueText:null,role:null}});function sb(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Mr=sn,ob=_a,lb=Ld,ve=Mr.boolean,ub=Mr.overloadedBoolean,Ea=Mr.booleanish,Ie=Mr.number,St=Mr.spaceSeparated,ji=Mr.commaSeparated,cb=ob({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:lb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ji,acceptCharset:St,accessKey:St,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:St,autoFocus:ve,autoPlay:ve,capture:ve,charSet:null,checked:ve,cite:null,className:St,cols:Ie,colSpan:null,content:null,contentEditable:Ea,controls:ve,controlsList:St,coords:Ie|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:ub,draggable:Ea,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:St,height:Ie,hidden:ve,high:Ie,href:null,hrefLang:null,htmlFor:St,httpEquiv:St,id:null,imageSizes:null,imageSrcSet:ji,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:St,itemRef:St,itemScope:ve,itemType:St,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:Ie,manifest:null,max:null,maxLength:Ie,media:null,method:null,min:null,minLength:Ie,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,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:ve,optimum:Ie,pattern:null,ping:St,placeholder:null,playsInline:ve,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:St,required:ve,reversed:ve,rows:Ie,rowSpan:Ie,sandbox:St,scope:null,scoped:ve,seamless:ve,selected:ve,shape:null,size:Ie,sizes:null,slot:null,span:Ie,spellCheck:Ea,src:null,srcDoc:null,srcLang:null,srcSet:ji,start:Ie,step:null,style:null,tabIndex:Ie,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:Ea,width:Ie,wrap:null,align:null,aLink:null,archive:St,axis:null,background:null,bgColor:null,border:Ie,borderColor:null,bottomMargin:Ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:Ie,leftMargin:Ie,link:null,longDesc:null,lowSrc:null,marginHeight:Ie,marginWidth:Ie,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:Ie,rules:null,scheme:null,scrolling:Ea,standby:null,summary:null,text:null,topMargin:Ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:Ie,security:null,unselectable:null}}),db=O0,pb=W0,hb=J0,fb=rb,mb=ib,gb=cb,vb=db([hb,pb,fb,mb,gb]),yb=xo,Db=Td,bb=Ed,Eo="data",kb=xb,wb=/^data[-\w.:]+$/i,Pd=/-[a-z]/g,Cb=/[A-Z]/g;function xb(e,t){var n=yb(t),r=t,i=bb;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===Eo&&wb.test(t)&&(t.charAt(4)==="-"?r=Sb(t):t=_b(t),i=Db),new i(r,t))}function Sb(e){var t=e.slice(5).replace(Pd,Fb);return Eo+t.charAt(0).toUpperCase()+t.slice(1)}function _b(e){var t=e.slice(4);return Pd.test(t)?e:(t=t.replace(Cb,Eb),t.charAt(0)!=="-"&&(t="-"+t),Eo+t)}function Eb(e){return"-"+e.toLowerCase()}function Fb(e){return e.charAt(1).toUpperCase()}var Ab=$b,Od=/[#.]/g;function $b(e,t){for(var n=e||"",r=t||"div",i={},o=0,u,c,p;o<n.length;)Od.lastIndex=o,p=Od.exec(n),u=n.slice(o,p?p.index:n.length),u&&(c?c==="#"?i.id=u:i.className?i.className.push(u):i.className=[u]:r=u,o+=u.length),p&&(c=p[0],o++);return{type:"element",tagName:r,properties:i,children:[]}}var Fo={};Fo.parse=Bb,Fo.stringify=jb;var Md="",Tb=" ",Nb=/[ \t\n\r\f]+/g;function Bb(e){var t=String(e||Md).trim();return t===Md?[]:t.split(Nb)}function jb(e){return e.join(Tb).trim()}var Ao={};Ao.parse=Lb,Ao.stringify=Pb;var $o=",",Id=" ",Fa="";function Lb(e){for(var t=[],n=String(e||Fa),r=n.indexOf($o),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($o,i);return t}function Pb(e,t){var n=t||{},r=n.padLeft===!1?Fa:Id,i=n.padRight?Id:Fa;return e[e.length-1]===Fa&&(e=e.concat(Fa)),e.join(i+$o+r).trim()}var Ob=kb,Rd=xo,Mb=Ab,qd=Fo.parse,Hd=Ao.parse,Ib=qb,Rb={}.hasOwnProperty;function qb(e,t,n){var r=n?Wb(n):null;return i;function i(u,c){var p=Mb(u,t),h=Array.prototype.slice.call(arguments,2),m=p.tagName.toLowerCase(),v;if(p.tagName=r&&Rb.call(r,m)?r[m]:m,c&&Hb(c,p)&&(h.unshift(c),c=null),c)for(v in c)o(p.properties,v,c[v]);return Ud(p.children,h),p.tagName==="template"&&(p.content={type:"root",children:p.children},p.children=[]),p}function o(u,c,p){var h,m,v;p==null||p!==p||(h=Ob(e,c),m=h.property,v=p,typeof v=="string"&&(h.spaceSeparated?v=qd(v):h.commaSeparated?v=Hd(v):h.commaOrSpaceSeparated&&(v=qd(Hd(v).join(" ")))),m==="style"&&typeof p!="string"&&(v=zb(v)),m==="className"&&u.className&&(v=u.className.concat(v)),u[m]=Vb(h,m,v))}}function Hb(e,t){return typeof e=="string"||"length"in e||Ub(t.tagName,e)}function Ub(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 Ud(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;)Ud(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 Vb(e,t,n){var r,i,o;if(typeof n!="object"||!("length"in n))return Vd(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=Vd(e,t,n[r]);return o}function Vd(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===""||Rd(n)===Rd(t))&&(r=!0),r}function zb(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function Wb(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var Gb=vb,Yb=Ib,zd=Yb(Gb,"div");zd.displayName="html";var Jb=zd,Kb=Jb;const Zb={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:"ÿ"},Xb={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 Wd=Qb;function Qb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var ek=tk;function tk(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var nk=rk;function rk(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var ak=nk,ik=Wd,sk=ok;function ok(e){return ak(e)||ik(e)}var Li,lk=59,uk=ck;function ck(e){var t="&"+e+";",n;return Li=Li||document.createElement("i"),Li.innerHTML=t,n=Li.textContent,n.charCodeAt(n.length-1)===lk&&e!=="semi"||n===t?!1:n}var Gd=Zb,Yd=Xb,dk=Wd,pk=ek,Jd=sk,hk=uk,fk=Ek,mk={}.hasOwnProperty,Ir=String.fromCharCode,gk=Function.prototype,Kd={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},vk=9,Zd=10,yk=12,Dk=32,Xd=38,bk=59,kk=60,wk=61,Ck=35,xk=88,Sk=120,_k=65533,Rr="named",To="hexadecimal",No="decimal",Bo={};Bo[To]=16,Bo[No]=10;var Pi={};Pi[Rr]=Jd,Pi[No]=dk,Pi[To]=pk;var Qd=1,ep=2,tp=3,np=4,rp=5,jo=6,ap=7,Mn={};Mn[Qd]="Named character references must be terminated by a semicolon",Mn[ep]="Numeric character references must be terminated by a semicolon",Mn[tp]="Named character references cannot be empty",Mn[np]="Numeric character references cannot be empty",Mn[rp]="Named character references must be known",Mn[jo]="Numeric character references cannot be disallowed",Mn[ap]="Numeric character references cannot be outside the permissible Unicode range";function Ek(e,t){var n={},r,i;t||(t={});for(i in Kd)r=t[i],n[i]=r??Kd[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),Fk(e,n)}function Fk(e,t){var n=t.additional,r=t.nonTerminated,i=t.text,o=t.reference,u=t.warning,c=t.textContext,p=t.referenceContext,h=t.warningContext,m=t.position,v=t.indent||[],y=e.length,b=0,k=-1,S=m.column||1,C=m.line||1,N="",E=[],_,$,x,T,O,I,M,Y,ee,V,z,H,X,oe,Ce,re,de,ye,le;for(typeof n=="string"&&(n=n.charCodeAt(0)),re=ue(),Y=u?nt:gk,b--,y++;++b<y;)if(O===Zd&&(S=v[k]||1),O=e.charCodeAt(b),O===Xd){if(M=e.charCodeAt(b+1),M===vk||M===Zd||M===yk||M===Dk||M===Xd||M===kk||M!==M||n&&M===n){N+=Ir(O),S++;continue}for(X=b+1,H=X,le=X,M===Ck?(le=++H,M=e.charCodeAt(le),M===xk||M===Sk?(oe=To,le=++H):oe=No):oe=Rr,_="",z="",T="",Ce=Pi[oe],le--;++le<y&&(M=e.charCodeAt(le),!!Ce(M));)T+=Ir(M),oe===Rr&&mk.call(Gd,T)&&(_=T,z=Gd[T]);x=e.charCodeAt(le)===bk,x&&(le++,$=oe===Rr?hk(T):!1,$&&(_=T,z=$)),ye=1+le-X,!x&&!r||(T?oe===Rr?(x&&!z?Y(rp,1):(_!==T&&(le=H+_.length,ye=1+le-H,x=!1),x||(ee=_?Qd:tp,t.attribute?(M=e.charCodeAt(le),M===wk?(Y(ee,ye),z=null):Jd(M)?z=null:Y(ee,ye)):Y(ee,ye))),I=z):(x||Y(ep,ye),I=parseInt(T,Bo[oe]),Ak(I)?(Y(ap,ye),I=Ir(_k)):I in Yd?(Y(jo,ye),I=Yd[I]):(V="",$k(I)&&Y(jo,ye),I>65535&&(I-=65536,V+=Ir(I>>>10|55296),I=56320|I&1023),I=V+Ir(I))):oe!==Rr&&Y(np,ye)),I?(Oe(),re=ue(),b=le-1,S+=le-X+1,E.push(I),de=ue(),de.offset++,o&&o.call(p,I,{start:re,end:de},e.slice(X-1,le)),re=de):(T=e.slice(X-1,le),N+=T,S+=T.length,b=le-1)}else O===10&&(C++,k++,S=0),O===O?(N+=Ir(O),S++):Oe();return E.join("");function ue(){return{line:C,column:S,offset:b+(m.offset||0)}}function nt(Ee,Re){var pe=ue();pe.column+=Re,pe.offset+=Re,u.call(h,Mn[Ee],pe,Ee)}function Oe(){N&&(E.push(N),i&&i.call(c,N,{start:re,end:ue()}),N="")}}function Ak(e){return e>=55296&&e<=57343||e>1114111}function $k(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 ip={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
698
|
+
`),style:u,startingLineNumber:c}))}function F0(e){return"".concat(e.toString().length,".25em")}function bd(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 kd(e,t,n){var r={display:"inline-block",minWidth:F0(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=On(On({},r),i);return o}function Bi(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,p=e.className,h=p===void 0?[]:p,m=e.showLineNumbers,v=e.wrapLongLines,y=e.wrapLines,b=y===void 0?!1:y,k=b?On({},typeof c=="function"?c(n):c):{};if(k.className=k.className?[].concat(bo(k.className.trim().split(/\s+/)),bo(h)):h,n&&o){var x=kd(r,n,i);t.unshift(bd(n,x))}return v&m&&(k.style=On({display:"flex"},k.style)),{type:"element",tagName:"span",properties:k,children:t}}function wd(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(Bi({children:[i],className:bo(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);wd(i.children,o).forEach(function(u){return n.push(u)})}}return n}function A0(e,t,n,r,i,o,u,c,p){var h,m=wd(e.value),v=[],y=-1,b=0;function k(S,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Bi({children:S,lineNumber:T,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:i,lineProps:n,className:M,showLineNumbers:r,wrapLongLines:p,wrapLines:t})}function x(S,T){if(r&&T&&i){var M=kd(c,T,u);S.unshift(bd(T,M))}return S}function C(S,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||M.length>0?k(S,T,M):x(S,T)}for(var N=function(){var T=m[b],M=T.children[0].value,H=S0(M);if(H){var O=M.split(`
|
|
699
|
+
`);O.forEach(function(z,te){var Z=r&&v.length+o,W={type:"text",value:"".concat(z,`
|
|
700
|
+
`)};if(te===0){var I=m.slice(y+1,b).concat(Bi({children:[W],className:T.properties.className})),J=C(I,Z);v.push(J)}else if(te===O.length-1){var ee=m[b+1]&&m[b+1].children&&m[b+1].children[0],de={type:"text",value:"".concat(z)};if(ee){var re=Bi({children:[de],className:T.properties.className});m.splice(b+1,0,re)}else{var pe=[de],De=C(pe,Z,T.properties.className);v.push(De)}}else{var le=[W],ue=C(le,Z,T.properties.className);v.push(ue)}}),y=b}b++};b<m.length;)N();if(y!==m.length-1){var _=m.slice(y+1,m.length);if(_&&_.length){var E=r&&v.length+o,$=C(_,E);v.push($)}}return t?v:(h=[]).concat.apply(h,v)}function $0(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return yd({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function Cd(e){return e&&typeof e.highlightAuto<"u"}function T0(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(Cd(t)){var o=w0(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 N0(e,t){return function(r){var i=r.language,o=r.children,u=r.style,c=u===void 0?t:u,p=r.customStyle,h=p===void 0?{}:p,m=r.codeTagProps,v=m===void 0?{className:i?"language-".concat(i):void 0,style:On(On({},c['code[class*="language-"]']),c['code[class*="language-'.concat(i,'"]')])}:m,y=r.useInlineStyles,b=y===void 0?!0:y,k=r.showLineNumbers,x=k===void 0?!1:k,C=r.showInlineLineNumbers,N=C===void 0?!0:C,_=r.startingLineNumber,E=_===void 0?1:_,$=r.lineNumberContainerStyle,S=r.lineNumberStyle,T=S===void 0?{}:S,M=r.wrapLines,H=r.wrapLongLines,O=H===void 0?!1:H,z=r.lineProps,te=z===void 0?{}:z,Z=r.renderer,W=r.PreTag,I=W===void 0?"pre":W,J=r.CodeTag,ee=J===void 0?"code":J,de=r.code,re=de===void 0?(Array.isArray(o)?o[0]:o)||"":de,pe=r.astGenerator,De=d0(r,C0);pe=pe||e;var le=x?R.createElement(E0,{containerStyle:$,codeStyle:v.style||{},numberStyle:T,startingLineNumber:E,codeString:re}):null,ue=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},nt=Cd(pe)?"hljs":"prismjs",Oe=b?Object.assign({},De,{style:Object.assign({},ue,h)}):Object.assign({},De,{className:De.className?"".concat(nt," ").concat(De.className):nt,style:Object.assign({},h)});if(O?v.style=On({whiteSpace:"pre-wrap"},v.style):v.style=On({whiteSpace:"pre"},v.style),!pe)return R.createElement(I,Oe,le,R.createElement(ee,v,re));(M===void 0&&Z||O)&&(M=!0),Z=Z||$0;var Ee=[{type:"text",value:re}],Re=T0({astGenerator:pe,language:i,code:re,defaultCodeValue:Ee});Re.language===null&&(Re.value=Ee);var he=Re.value.length;he===1&&Re.value[0].type==="text"&&(he=Re.value[0].value.split(`
|
|
701
|
+
`).length);var Dt=he+E,jt=A0(Re,M,te,x,N,E,Dt,T,O);return R.createElement(I,Oe,R.createElement(ee,v,!N&&le,Z({rows:jt,stylesheet:c,useInlineStyles:b})))}}var B0=L0,j0=Object.prototype.hasOwnProperty;function L0(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)j0.call(n,r)&&(e[r]=n[r])}return e}var xd=Sd,Co=Sd.prototype;Co.space=null,Co.normal={},Co.property={};function Sd(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var _d=B0,P0=xd,O0=M0;function M0(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 P0(_d.apply(null,n),_d.apply(null,r),u)}var xo=I0;function I0(e){return e.toLowerCase()}var Ed=Fd,Ut=Fd.prototype;Ut.space=null,Ut.attribute=null,Ut.property=null,Ut.boolean=!1,Ut.booleanish=!1,Ut.overloadedBoolean=!1,Ut.number=!1,Ut.commaSeparated=!1,Ut.spaceSeparated=!1,Ut.commaOrSpaceSeparated=!1,Ut.mustUseProperty=!1,Ut.defined=!1;function Fd(e,t){this.property=e,this.attribute=t}var sn={},R0=0;sn.boolean=dr(),sn.booleanish=dr(),sn.overloadedBoolean=dr(),sn.number=dr(),sn.spaceSeparated=dr(),sn.commaSeparated=dr(),sn.commaOrSpaceSeparated=dr();function dr(){return Math.pow(2,++R0)}var Ad=Ed,$d=sn,Td=So;So.prototype=new Ad,So.prototype.defined=!0;var Nd=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],q0=Nd.length;function So(e,t,n,r){var i=-1,o;for(Bd(this,"space",r),Ad.call(this,e,t);++i<q0;)o=Nd[i],Bd(this,o,(n&$d[o])===$d[o])}function Bd(e,t,n){n&&(e[t]=n)}var jd=xo,H0=xd,U0=Td,_a=V0;function V0(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},i=e.properties,o=e.transform,u={},c={},p,h;for(p in i)h=new U0(p,o(r,p),i[p],t),n.indexOf(p)!==-1&&(h.mustUseProperty=!0),u[p]=h,c[jd(p)]=p,c[jd(h.attribute)]=p;return new H0(u,c,t)}var z0=_a,W0=z0({space:"xlink",transform:G0,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function G0(e,t){return"xlink:"+t.slice(5).toLowerCase()}var Y0=_a,J0=Y0({space:"xml",transform:K0,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function K0(e,t){return"xml:"+t.slice(3).toLowerCase()}var Z0=X0;function X0(e,t){return t in e?e[t]:t}var Q0=Z0,Ld=eb;function eb(e,t){return Q0(e,t.toLowerCase())}var tb=_a,nb=Ld,rb=tb({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:nb,properties:{xmlns:null,xmlnsXLink:null}}),_o=sn,ab=_a,Bt=_o.booleanish,Vt=_o.number,pr=_o.spaceSeparated,ib=ab({transform:sb,properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:Vt,ariaColIndex:Vt,ariaColSpan:Vt,ariaControls:pr,ariaCurrent:null,ariaDescribedBy:pr,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:pr,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:pr,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pr,ariaLevel:Vt,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:pr,ariaPlaceholder:null,ariaPosInSet:Vt,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:pr,ariaRowCount:Vt,ariaRowIndex:Vt,ariaRowSpan:Vt,ariaSelected:Bt,ariaSetSize:Vt,ariaSort:null,ariaValueMax:Vt,ariaValueMin:Vt,ariaValueNow:Vt,ariaValueText:null,role:null}});function sb(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Mr=sn,ob=_a,lb=Ld,ye=Mr.boolean,ub=Mr.overloadedBoolean,Ea=Mr.booleanish,Ie=Mr.number,St=Mr.spaceSeparated,ji=Mr.commaSeparated,cb=ob({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:lb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ji,acceptCharset:St,accessKey:St,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:St,autoFocus:ye,autoPlay:ye,capture:ye,charSet:null,checked:ye,cite:null,className:St,cols:Ie,colSpan:null,content:null,contentEditable:Ea,controls:ye,controlsList:St,coords:Ie|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:ub,draggable:Ea,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:St,height:Ie,hidden:ye,high:Ie,href:null,hrefLang:null,htmlFor:St,httpEquiv:St,id:null,imageSizes:null,imageSrcSet:ji,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:St,itemRef:St,itemScope:ye,itemType:St,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:Ie,manifest:null,max:null,maxLength:Ie,media:null,method:null,min:null,minLength:Ie,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,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:ye,optimum:Ie,pattern:null,ping:St,placeholder:null,playsInline:ye,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:St,required:ye,reversed:ye,rows:Ie,rowSpan:Ie,sandbox:St,scope:null,scoped:ye,seamless:ye,selected:ye,shape:null,size:Ie,sizes:null,slot:null,span:Ie,spellCheck:Ea,src:null,srcDoc:null,srcLang:null,srcSet:ji,start:Ie,step:null,style:null,tabIndex:Ie,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:Ea,width:Ie,wrap:null,align:null,aLink:null,archive:St,axis:null,background:null,bgColor:null,border:Ie,borderColor:null,bottomMargin:Ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:Ie,leftMargin:Ie,link:null,longDesc:null,lowSrc:null,marginHeight:Ie,marginWidth:Ie,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:Ie,rules:null,scheme:null,scrolling:Ea,standby:null,summary:null,text:null,topMargin:Ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:Ie,security:null,unselectable:null}}),db=O0,pb=W0,hb=J0,fb=rb,mb=ib,gb=cb,vb=db([hb,pb,fb,mb,gb]),yb=xo,Db=Td,bb=Ed,Eo="data",kb=xb,wb=/^data[-\w.:]+$/i,Pd=/-[a-z]/g,Cb=/[A-Z]/g;function xb(e,t){var n=yb(t),r=t,i=bb;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===Eo&&wb.test(t)&&(t.charAt(4)==="-"?r=Sb(t):t=_b(t),i=Db),new i(r,t))}function Sb(e){var t=e.slice(5).replace(Pd,Fb);return Eo+t.charAt(0).toUpperCase()+t.slice(1)}function _b(e){var t=e.slice(4);return Pd.test(t)?e:(t=t.replace(Cb,Eb),t.charAt(0)!=="-"&&(t="-"+t),Eo+t)}function Eb(e){return"-"+e.toLowerCase()}function Fb(e){return e.charAt(1).toUpperCase()}var Ab=$b,Od=/[#.]/g;function $b(e,t){for(var n=e||"",r=t||"div",i={},o=0,u,c,p;o<n.length;)Od.lastIndex=o,p=Od.exec(n),u=n.slice(o,p?p.index:n.length),u&&(c?c==="#"?i.id=u:i.className?i.className.push(u):i.className=[u]:r=u,o+=u.length),p&&(c=p[0],o++);return{type:"element",tagName:r,properties:i,children:[]}}var Fo={};Fo.parse=Bb,Fo.stringify=jb;var Md="",Tb=" ",Nb=/[ \t\n\r\f]+/g;function Bb(e){var t=String(e||Md).trim();return t===Md?[]:t.split(Nb)}function jb(e){return e.join(Tb).trim()}var Ao={};Ao.parse=Lb,Ao.stringify=Pb;var $o=",",Id=" ",Fa="";function Lb(e){for(var t=[],n=String(e||Fa),r=n.indexOf($o),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($o,i);return t}function Pb(e,t){var n=t||{},r=n.padLeft===!1?Fa:Id,i=n.padRight?Id:Fa;return e[e.length-1]===Fa&&(e=e.concat(Fa)),e.join(i+$o+r).trim()}var Ob=kb,Rd=xo,Mb=Ab,qd=Fo.parse,Hd=Ao.parse,Ib=qb,Rb={}.hasOwnProperty;function qb(e,t,n){var r=n?Wb(n):null;return i;function i(u,c){var p=Mb(u,t),h=Array.prototype.slice.call(arguments,2),m=p.tagName.toLowerCase(),v;if(p.tagName=r&&Rb.call(r,m)?r[m]:m,c&&Hb(c,p)&&(h.unshift(c),c=null),c)for(v in c)o(p.properties,v,c[v]);return Ud(p.children,h),p.tagName==="template"&&(p.content={type:"root",children:p.children},p.children=[]),p}function o(u,c,p){var h,m,v;p==null||p!==p||(h=Ob(e,c),m=h.property,v=p,typeof v=="string"&&(h.spaceSeparated?v=qd(v):h.commaSeparated?v=Hd(v):h.commaOrSpaceSeparated&&(v=qd(Hd(v).join(" ")))),m==="style"&&typeof p!="string"&&(v=zb(v)),m==="className"&&u.className&&(v=u.className.concat(v)),u[m]=Vb(h,m,v))}}function Hb(e,t){return typeof e=="string"||"length"in e||Ub(t.tagName,e)}function Ub(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 Ud(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;)Ud(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 Vb(e,t,n){var r,i,o;if(typeof n!="object"||!("length"in n))return Vd(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=Vd(e,t,n[r]);return o}function Vd(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===""||Rd(n)===Rd(t))&&(r=!0),r}function zb(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function Wb(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var Gb=vb,Yb=Ib,zd=Yb(Gb,"div");zd.displayName="html";var Jb=zd,Kb=Jb;const Zb={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:"ÿ"},Xb={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 Wd=Qb;function Qb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var ek=tk;function tk(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var nk=rk;function rk(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var ak=nk,ik=Wd,sk=ok;function ok(e){return ak(e)||ik(e)}var Li,lk=59,uk=ck;function ck(e){var t="&"+e+";",n;return Li=Li||document.createElement("i"),Li.innerHTML=t,n=Li.textContent,n.charCodeAt(n.length-1)===lk&&e!=="semi"||n===t?!1:n}var Gd=Zb,Yd=Xb,dk=Wd,pk=ek,Jd=sk,hk=uk,fk=Ek,mk={}.hasOwnProperty,Ir=String.fromCharCode,gk=Function.prototype,Kd={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},vk=9,Zd=10,yk=12,Dk=32,Xd=38,bk=59,kk=60,wk=61,Ck=35,xk=88,Sk=120,_k=65533,Rr="named",To="hexadecimal",No="decimal",Bo={};Bo[To]=16,Bo[No]=10;var Pi={};Pi[Rr]=Jd,Pi[No]=dk,Pi[To]=pk;var Qd=1,ep=2,tp=3,np=4,rp=5,jo=6,ap=7,Mn={};Mn[Qd]="Named character references must be terminated by a semicolon",Mn[ep]="Numeric character references must be terminated by a semicolon",Mn[tp]="Named character references cannot be empty",Mn[np]="Numeric character references cannot be empty",Mn[rp]="Named character references must be known",Mn[jo]="Numeric character references cannot be disallowed",Mn[ap]="Numeric character references cannot be outside the permissible Unicode range";function Ek(e,t){var n={},r,i;t||(t={});for(i in Kd)r=t[i],n[i]=r??Kd[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),Fk(e,n)}function Fk(e,t){var n=t.additional,r=t.nonTerminated,i=t.text,o=t.reference,u=t.warning,c=t.textContext,p=t.referenceContext,h=t.warningContext,m=t.position,v=t.indent||[],y=e.length,b=0,k=-1,x=m.column||1,C=m.line||1,N="",_=[],E,$,S,T,M,H,O,z,te,Z,W,I,J,ee,de,re,pe,De,le;for(typeof n=="string"&&(n=n.charCodeAt(0)),re=ue(),z=u?nt:gk,b--,y++;++b<y;)if(M===Zd&&(x=v[k]||1),M=e.charCodeAt(b),M===Xd){if(O=e.charCodeAt(b+1),O===vk||O===Zd||O===yk||O===Dk||O===Xd||O===kk||O!==O||n&&O===n){N+=Ir(M),x++;continue}for(J=b+1,I=J,le=J,O===Ck?(le=++I,O=e.charCodeAt(le),O===xk||O===Sk?(ee=To,le=++I):ee=No):ee=Rr,E="",W="",T="",de=Pi[ee],le--;++le<y&&(O=e.charCodeAt(le),!!de(O));)T+=Ir(O),ee===Rr&&mk.call(Gd,T)&&(E=T,W=Gd[T]);S=e.charCodeAt(le)===bk,S&&(le++,$=ee===Rr?hk(T):!1,$&&(E=T,W=$)),De=1+le-J,!S&&!r||(T?ee===Rr?(S&&!W?z(rp,1):(E!==T&&(le=I+E.length,De=1+le-I,S=!1),S||(te=E?Qd:tp,t.attribute?(O=e.charCodeAt(le),O===wk?(z(te,De),W=null):Jd(O)?W=null:z(te,De)):z(te,De))),H=W):(S||z(ep,De),H=parseInt(T,Bo[ee]),Ak(H)?(z(ap,De),H=Ir(_k)):H in Yd?(z(jo,De),H=Yd[H]):(Z="",$k(H)&&z(jo,De),H>65535&&(H-=65536,Z+=Ir(H>>>10|55296),H=56320|H&1023),H=Z+Ir(H))):ee!==Rr&&z(np,De)),H?(Oe(),re=ue(),b=le-1,x+=le-J+1,_.push(H),pe=ue(),pe.offset++,o&&o.call(p,H,{start:re,end:pe},e.slice(J-1,le)),re=pe):(T=e.slice(J-1,le),N+=T,x+=T.length,b=le-1)}else M===10&&(C++,k++,x=0),M===M?(N+=Ir(M),x++):Oe();return _.join("");function ue(){return{line:C,column:x,offset:b+(m.offset||0)}}function nt(Ee,Re){var he=ue();he.column+=Re,he.offset+=Re,u.call(h,Mn[Ee],he,Ee)}function Oe(){N&&(_.push(N),i&&i.call(c,N,{start:re,end:ue()}),N="")}}function Ak(e){return e>=55296&&e<=57343||e>1114111}function $k(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 ip={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
702
702
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
703
703
|
*
|
|
704
704
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
705
705
|
* @author Lea Verou <https://lea.verou.me>
|
|
706
706
|
* @namespace
|
|
707
707
|
* @public
|
|
708
|
-
*/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 p?new p(_.type,E(_.content),_.alias):Array.isArray(_)?_.map(E):_.replace(/&/g,"&").replace(/</g,"<").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(_,$){$=$||{};var x,T;switch(c.util.type(_)){case"Object":if(T=c.util.objId(_),$[T])return $[T];x={},$[T]=x;for(var O in _)_.hasOwnProperty(O)&&(x[O]=E(_[O],$));return x;case"Array":return T=c.util.objId(_),$[T]?$[T]:(x=[],$[T]=x,_.forEach(function(I,M){x[M]=E(I,$)}),x);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(x){var E=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack)||[])[1];if(E){var _=document.getElementsByTagName("script");for(var $ in _)if(_[$].src==E)return _[$]}return null}},isActive:function(E,_,$){for(var x="no-"+_;E;){var T=E.classList;if(T.contains(_))return!0;if(T.contains(x))return!1;E=E.parentElement}return!!$}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(E,_){var $=c.util.clone(c.languages[E]);for(var x in _)$[x]=_[x];return $},insertBefore:function(E,_,$,x){x=x||c.languages;var T=x[E],O={};for(var I in T)if(T.hasOwnProperty(I)){if(I==_)for(var M in $)$.hasOwnProperty(M)&&(O[M]=$[M]);$.hasOwnProperty(I)||(O[I]=T[I])}var Y=x[E];return x[E]=O,c.languages.DFS(c.languages,function(ee,V){V===Y&&ee!=E&&(this[ee]=O)}),O},DFS:function E(_,$,x,T){T=T||{};var O=c.util.objId;for(var I in _)if(_.hasOwnProperty(I)){$.call(_,I,_[I],x||I);var M=_[I],Y=c.util.type(M);Y==="Object"&&!T[O(M)]?(T[O(M)]=!0,E(M,$,null,T)):Y==="Array"&&!T[O(M)]&&(T[O(M)]=!0,E(M,$,I,T))}}},plugins:{},highlightAll:function(E,_){c.highlightAllUnder(document,E,_)},highlightAllUnder:function(E,_,$){var x={callback:$,container:E,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",x),x.elements=Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)),c.hooks.run("before-all-elements-highlight",x);for(var T=0,O;O=x.elements[T++];)c.highlightElement(O,_===!0,x.callback)},highlightElement:function(E,_,$){var x=c.util.getLanguage(E),T=c.languages[x];c.util.setLanguage(E,x);var O=E.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(O,x);var I=E.textContent,M={element:E,language:x,grammar:T,code:I};function Y(V){M.highlightedCode=V,c.hooks.run("before-insert",M),M.element.innerHTML=M.highlightedCode,c.hooks.run("after-highlight",M),c.hooks.run("complete",M),$&&$.call(M.element)}if(c.hooks.run("before-sanity-check",M),O=M.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!M.code){c.hooks.run("complete",M),$&&$.call(M.element);return}if(c.hooks.run("before-highlight",M),!M.grammar){Y(c.util.encode(M.code));return}if(_&&r.Worker){var ee=new Worker(c.filename);ee.onmessage=function(V){Y(V.data)},ee.postMessage(JSON.stringify({language:M.language,code:M.code,immediateClose:!0}))}else Y(c.highlight(M.code,M.grammar,M.language))},highlight:function(E,_,$){var x={code:E,grammar:_,language:$};if(c.hooks.run("before-tokenize",x),!x.grammar)throw new Error('The language "'+x.language+'" has no grammar.');return x.tokens=c.tokenize(x.code,x.grammar),c.hooks.run("after-tokenize",x),p.stringify(c.util.encode(x.tokens),x.language)},tokenize:function(E,_){var $=_.rest;if($){for(var x in $)_[x]=$[x];delete _.rest}var T=new v;return y(T,T.head,E),m(E,T,_,T.head,0),k(T)},hooks:{all:{},add:function(E,_){var $=c.hooks.all;$[E]=$[E]||[],$[E].push(_)},run:function(E,_){var $=c.hooks.all[E];if(!(!$||!$.length))for(var x=0,T;T=$[x++];)T(_)}},Token:p};r.Prism=c;function p(E,_,$,x){this.type=E,this.content=_,this.alias=$,this.length=(x||"").length|0}p.stringify=function E(_,$){if(typeof _=="string")return _;if(Array.isArray(_)){var x="";return _.forEach(function(Y){x+=E(Y,$)}),x}var T={type:_.type,content:E(_.content,$),tag:"span",classes:["token",_.type],attributes:{},language:$},O=_.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(T.classes,O):T.classes.push(O)),c.hooks.run("wrap",T);var I="";for(var M in T.attributes)I+=" "+M+'="'+(T.attributes[M]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+I+">"+T.content+"</"+T.tag+">"};function h(E,_,$,x){E.lastIndex=_;var T=E.exec($);if(T&&x&&T[1]){var O=T[1].length;T.index+=O,T[0]=T[0].slice(O)}return T}function m(E,_,$,x,T,O){for(var I in $)if(!(!$.hasOwnProperty(I)||!$[I])){var M=$[I];M=Array.isArray(M)?M:[M];for(var Y=0;Y<M.length;++Y){if(O&&O.cause==I+","+Y)return;var ee=M[Y],V=ee.inside,z=!!ee.lookbehind,H=!!ee.greedy,X=ee.alias;if(H&&!ee.pattern.global){var oe=ee.pattern.toString().match(/[imsuy]*$/)[0];ee.pattern=RegExp(ee.pattern.source,oe+"g")}for(var Ce=ee.pattern||ee,re=x.next,de=T;re!==_.tail&&!(O&&de>=O.reach);de+=re.value.length,re=re.next){var ye=re.value;if(_.length>E.length)return;if(!(ye instanceof p)){var le=1,ue;if(H){if(ue=h(Ce,de,E,z),!ue||ue.index>=E.length)break;var Re=ue.index,nt=ue.index+ue[0].length,Oe=de;for(Oe+=re.value.length;Re>=Oe;)re=re.next,Oe+=re.value.length;if(Oe-=re.value.length,de=Oe,re.value instanceof p)continue;for(var Ee=re;Ee!==_.tail&&(Oe<nt||typeof Ee.value=="string");Ee=Ee.next)le++,Oe+=Ee.value.length;le--,ye=E.slice(de,Oe),ue.index-=de}else if(ue=h(Ce,0,ye,z),!ue)continue;var Re=ue.index,pe=ue[0],Dt=ye.slice(0,Re),jt=ye.slice(Re+pe.length),ht=de+ye.length;O&&ht>O.reach&&(O.reach=ht);var bt=re.prev;Dt&&(bt=y(_,bt,Dt),de+=Dt.length),b(_,bt,le);var zt=new p(I,V?c.tokenize(pe,V):pe,X,pe);if(re=y(_,bt,zt),jt&&y(_,re,jt),le>1){var kt={cause:I+","+Y,reach:ht};m(E,_,$,re.prev,de,kt),O&&kt.reach>O.reach&&(O.reach=kt.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 y(E,_,$){var x=_.next,T={value:$,prev:_,next:x};return _.next=T,x.prev=T,E.length++,T}function b(E,_,$){for(var x=_.next,T=0;T<$&&x!==E.tail;T++)x=x.next;_.next=x,x.prev=_,E.length-=T}function k(E){for(var _=[],$=E.head.next;$!==E.tail;)_.push($.value),$=$.next;return _}if(!r.document)return r.addEventListener&&(c.disableWorkerMessageHandler||r.addEventListener("message",function(E){var _=JSON.parse(E.data),$=_.language,x=_.code,T=_.immediateClose;r.postMessage(c.highlight(x,c.languages[$],$)),T&&r.close()},!1)),c;var S=c.util.currentScript();S&&(c.filename=S.src,S.hasAttribute("data-manual")&&(c.manual=!0));function C(){c.manual||c.highlightAll()}if(!c.manual){var N=document.readyState;N==="loading"||N==="interactive"&&S&&S.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return c}(t);e.exports&&(e.exports=n),typeof En<"u"&&(En.Prism=n)})(ip);var Tk=ip.exports,Nk=Lo;Lo.displayName="markup",Lo.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Lo(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(/&/,"&"))}),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 Bk=Po;Po.displayName="css",Po.aliases=[];function Po(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 jk=Oo;Oo.displayName="clike",Oo.aliases=[];function Oo(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 Lk=Mo;Mo.displayName="javascript",Mo.aliases=["js"];function Mo(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 Aa=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof En=="object"?En:{},Pk=Xk();Aa.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ok=Kb,Mk=fk,sp=Tk,Ik=Nk,Rk=Bk,qk=jk,Hk=Lk;Pk();var Io={}.hasOwnProperty;function op(){}op.prototype=sp;var Xe=new op,Uk=Xe;Xe.highlight=zk,Xe.register=$a,Xe.alias=Vk,Xe.registered=Wk,Xe.listLanguages=Gk,$a(Ik),$a(Rk),$a(qk),$a(Hk),Xe.util.encode=Kk,Xe.Token.stringify=Yk;function $a(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Xe.languages[e.displayName]===void 0&&e(Xe)}function Vk(e,t){var n=Xe.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 zk(e,t){var n=sp.highlight,r;if(typeof e!="string")throw new Error("Expected `string` for `value`, got `"+e+"`");if(Xe.util.type(t)==="Object")r=t,t=null;else{if(typeof t!="string")throw new Error("Expected `string` for `name`, got `"+t+"`");if(Io.call(Xe.languages,t))r=Xe.languages[t];else throw new Error("Unknown language: `"+t+"` is not registered")}return n.call(this,e,r,t)}function Wk(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return Io.call(Xe.languages,e)}function Gk(){var e=Xe.languages,t=[],n;for(n in e)Io.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Yk(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:Xe.util.type(e)==="Array"?Jk(e,t):(r={type:e.type,content:Xe.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)),Xe.hooks.run("wrap",r),Ok(r.tag+"."+r.classes.join("."),Zk(r.attributes),r.content))}function Jk(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]=Xe.Token.stringify(o,t,n);return n}function Kk(e){return e}function Zk(e){var t;for(t in e)e[t]=Mk(e[t]);return e}function Xk(){var e="Prism"in Aa,t=e?Aa.Prism:void 0;return n;function n(){e?Aa.Prism=t:delete Aa.Prism,e=void 0,t=void 0}}const Ro=Za(Uk);var Ta=N0(Ro,{});Ta.registerLanguage=function(e,t){return Ro.register(t)},Ta.alias=function(e,t){return Ro.alias(e,t)};const lp={'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 Qk=qo;qo.displayName="jsx",qo.aliases=[];function qo(e){(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,m){return h=h.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(h,m)}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(""):""},p=function(h){for(var m=[],v=0;v<h.length;v++){var y=h[v],b=!1;if(typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?m.length>0&&m[m.length-1].tagName===c(y.content[0].content[1])&&m.pop():y.content[y.content.length-1].content==="/>"||m.push({tagName:c(y.content[0].content[1]),openedBraces:0}):m.length>0&&y.type==="punctuation"&&y.content==="{"?m[m.length-1].openedBraces++:m.length>0&&m[m.length-1].openedBraces>0&&y.type==="punctuation"&&y.content==="}"?m[m.length-1].openedBraces--:b=!0),(b||typeof y=="string")&&m.length>0&&m[m.length-1].openedBraces===0){var k=c(y);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)}y.content&&typeof y.content!="string"&&p(y.content)}};t.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||p(h.tokens)})})(e)}const e1=Za(Qk),t1=on({tagName:"pkt-tag",elementClass:Kt,react:R,displayName:"PktTag",events:{onClose:"close"}}),qr=R.forwardRef(({children:e,...t},n)=>g.jsx(t1,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));qr.displayName="PktTag";const up=R.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=R.useRef([]);R.useEffect(()=>{i.current=i.current.slice(0,t.length)},[t]);const o=(c,p)=>{p.action&&p.action(c),n&&n(c)},u=(c,p)=>{var h,m;e&&(p.code==="ArrowLeft"&&c!==0&&((h=i.current[c-1])==null||h.focus()),p.code==="ArrowRight"&&c<t.length-1&&((m=i.current[c+1])==null||m.focus()),(p.code==="ArrowDown"||p.code==="Space")&&o(c,t[c]))};return g.jsx("div",{className:"pkt-tabs",ref:r,children:g.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:t.map((c,p)=>g.jsx(R.Fragment,{children:c.href?g.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(p,h),onClick:()=>o(p,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[p]=h},children:[c.icon&&g.jsx(ke,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx(qr,{skin:c.tag.skin,size:"small",children:c.tag.text})]}):g.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(p,h),onClick:()=>o(p,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[p]=h},children:[c.icon&&g.jsx(ke,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx(qr,{skin:c.tag.skin,size:"small",children:c.tag.text})]},"b-"+p)},p))})})}),Oi=R.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,autocomplete:r="off",counter:i,counterMaxLength:o,className:u,disabled:c=!1,errorMessage:p,hasError:h=!1,helptext:m,helptextDropdown:v,helptextDropdownButton:y,iconNameRight:b,inline:k=!1,fullwidth:S=!1,label:C,name:N,optionalTag:E=!1,optionalText:_,requiredTag:$=!1,requiredText:x,placeholder:T,prefix:O,suffix:I,type:M="text",useWrapper:Y=!0,omitSearchIcon:ee=!1,value:V,onChange:z,...H},X)=>{const oe=[u,"pkt-textinput"].join(" "),Ce=n||`${e}-label`,re=M==="search"&&!b&&!ee;R.useRef(null);const[de,ye]=R.useState(0),le=ue=>{var nt,Oe;if(i&&ye(((Oe=(nt=ue.currentTarget)==null?void 0:nt.value)==null?void 0:Oe.length)||0),z)return z(ue)};return g.jsx(Ar,{ariaDescribedby:t,className:oe,disabled:c,errorMessage:p,forId:e,hasError:h,helptext:m,helptextDropdown:v,helptextDropdownButton:y,inline:k,label:C,optionalTag:E,optionalText:_,requiredTag:$,requiredText:x,useWrapper:Y,counter:i,counterCurrent:de,counterMaxLength:o,children:g.jsxs("div",{className:"pkt-input__container",children:[O&&g.jsx("div",{className:"pkt-input-prefix",children:O}),g.jsx("input",{ref:X,className:`pkt-input ${S?"pkt-input--fullwidth":""} ${o&&de>o?"pkt-input--counter-error":""}`,type:M,name:N||e,id:e,placeholder:T,autoComplete:r,value:V,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":Ce,...H,onChange:le}),I&&g.jsxs("p",{className:"pkt-input-suffix",children:[I,b&&g.jsx(ke,{className:"pkt-input-suffix-icon",name:b}),re&&g.jsx(ke,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!I&&b&&g.jsx(ke,{className:"pkt-input-icon",name:b}),!I&&re&&g.jsx(ke,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Mi=({className:e,compact:t=!1,skin:n="basic",responsiveView:r=!0,children:i})=>g.jsx("table",{"data-testid":"pkt-table",className:ct(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}),Ii=({className:e,children:t})=>g.jsx("thead",{className:ct(e,"pkt-table__header",{}),role:"rowgroup",children:t}),Ri=({children:e,className:t})=>g.jsx("tbody",{className:ct(t,"pkt-table__body",{}),role:"rowgroup",children:e}),hr=({className:e,children:t})=>g.jsx("tr",{className:ct(e,"pkt-table__row",{}),role:"row",children:t}),Zt=({className:e,children:t})=>g.jsx("th",{className:ct(e,"pkt-table__header-cell",{}),role:"columnheader",children:t}),It=({children:e,className:t,dataLabel:n})=>g.jsx("td",{className:ct(t,"pkt-table__data-cell",{}),"data-label":n,role:"cell","data-testid":"pkt-table__data-cell",children:e}),n1=({specs:e})=>{const t=r=>Array.isArray(r)?r.join(`
|
|
709
|
-
`):r,n=r=>typeof r=="boolean"?r?"true":"false":r;return g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Egenskaper"}),g.jsxs(Mi,{compact:!0,children:[g.jsx(Ii,{children:g.jsxs(hr,{children:[g.jsx(Zt,{children:"
|
|
710
|
-
`)})})]}):g.jsxs(g.Fragment,{children:[g.jsx(It,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),g.jsx(It,{dataLabel:"Type",children:g.jsx("pre",{children:i.type&&t(i.type)})}),g.jsx(It,{dataLabel:"Standardverdi",children:g.jsx("pre",{children:n(i.default)})})]})]},r))})]}),e.events&&g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Hendelser / handlinger"}),g.jsxs(Mi,{compact:!0,children:[g.jsx(Ii,{children:g.jsxs(hr,{children:[g.jsx(Zt,{children:"Event"}),g.jsx(Zt,{children:"Beskrivelse"}),g.jsx(Zt,{children:"Type"})]})}),g.jsx(Ri,{children:Object.entries(e.events||{}).map(([r,i])=>g.jsxs(hr,{children:[g.jsx(It,{dataLabel:"Event",children:g.jsx("pre",{children:r})}),g.jsx(It,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),g.jsx(It,{dataLabel:"Type",children:i.type})]},r))})]})]}),e.slots&&g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Innhold"}),g.jsxs(Mi,{compact:!0,children:[g.jsx(Ii,{children:g.jsxs(hr,{children:[g.jsx(Zt,{children:"Slot"}),g.jsx(Zt,{children:"Beskrivelse"})]})}),g.jsx(Ri,{children:Object.entries(e.slots||{}).map(([r,i])=>g.jsxs(hr,{children:[g.jsx(It,{dataLabel:"Slot",children:g.jsx("pre",{children:r})}),g.jsx(It,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]})]})},Ho=R.forwardRef(({ariaDescribedby:e,ariaLabelledby:t,children:n,className:r,disabled:i=!1,errorMessage:o,hasError:u,helptext:c,helptextDropdown:p,helptextDropdownButton:h,id:m,inline:v=!1,fullwidth:y=!1,label:b,name:k,optionalTag:S=!1,optionalText:C,requiredTag:N=!1,requiredText:E,..._},$)=>{const x=[r,"pkt-select"].join(" ");return g.jsx(Ar,{className:x,forId:m,label:b,helptext:c,helptextDropdown:p,helptextDropdownButton:h,optionalTag:S,optionalText:C,requiredTag:N,requiredText:E,hasError:u,errorMessage:o,disabled:i,inline:v,ariaDescribedby:e,children:g.jsx("select",{ref:$,className:`pkt-input ${y?"pkt-input--fullwidth":""}`,"aria-invalid":u,"aria-errormessage":`${m}-error`,"aria-labelledby":t||`${m}-label`,disabled:i,id:m,name:k||m,..._,children:n})})}),r1=[{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:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"headset",fn:"headset.svg",cat:"ui"},{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:"scooter",fn:"scooter.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",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:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{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"},{id:"wrench",fn:"wrench.svg",cat:"ui"}],cp=({propKey:e,spec:t,props:n,handleChange:r})=>{const i={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number",STRING:"string"},o=(u,c)=>{r(e,{...n[e],[u]:c})};if(t.type===i.BOOLEAN)return g.jsx(Ar,{label:t.name||e,forId:e,helptext:t.description||null,hasFieldset:!0,requiredTag:t.required,children:g.jsx(fi,{id:e,label:e,type:"checkbox",checked:n[e],onChange:u=>r(e,u.target.checked,t.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(t.type===i.ICON)return g.jsxs(Ho,{label:t.name||e,helptext:t.description||null,id:e,value:n[e],onChange:u=>r(e,u.target.value),requiredTag:t.required,children:[g.jsx("option",{value:""}),r1.map(u=>g.jsx("option",{value:u.id,children:u.id},u.id))]});if(t.type===i.DATE)return g.jsx(_u,{id:e,label:t.name||e,helptext:t.description||null,value:n[e],multiple:t.variant==="multiple",maxlength:999,onChange:u=>r(e,u.target.value),requiredTag:t.required});if(Array.isArray(t)||Array.isArray(t.type)||Array.isArray(t.values)){const u=Array.isArray(t)?t:t.values||t.type;return g.jsxs(Ho,{label:t.name||e,helptext:t.description||null,id:e,value:n[e],onChange:c=>r(e,c.target.value),requiredTag:t.required,children:[g.jsx("option",{value:""}),u.map(c=>g.jsx("option",{value:c,children:c},c))]})}return t.type===i.NUMBER?g.jsx(Oi,{id:e,label:t.name||e,helptext:t.description||null,type:"number",value:n[e],onChange:u=>r(e,parseFloat(u.currentTarget.value)),requiredTag:t.required}):t.type===i.OBJECT?(n[e]||(n[e]={}),g.jsxs("fieldset",{children:[g.jsx("legend",{children:t.name||e}),t.description&&g.jsx("p",{children:t.description}),Object.entries(t.properties).map(([u,c])=>g.jsx(cp,{propKey:u,props:n[e],spec:c,handleChange:(p,h)=>o(p,h)},u))]})):g.jsx(Oi,{id:e,label:t.name||e,helptext:t.description||null,type:"text",value:n[e],onChange:u=>r(e,t.type==="number"?parseFloat(u.currentTarget.value):u.currentTarget.value),requiredTag:t.required})};Ta.registerLanguage("jsx",e1);const dp=({specs:e,children:t,fullWidth:n})=>{var Y,ee;const r=e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).reduce((V,[z,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),V[z]=H.default),V),{}):{},[i,o]=R.useState(r),[u,c]=R.useState("light"),[p,h]=R.useState(""),[m,v]=R.useState(""),[y,b]=R.useState(""),[k,S]=R.useState("Rediger innhold"),[C,N]=R.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=V=>{V===1&&x(),V===2&&$(),b(""),N(z=>z.map((H,X)=>({...H,active:X===V})))},_=R.useRef(null),$=async()=>{if(e.isElement&&R.isValidElement(I))x().then(()=>{const V=R.isValidElement(I)?I.type.displayName||I.type.name:e.name;h(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
711
|
-
`+
|
|
708
|
+
*/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 E instanceof p?new p(E.type,_(E.content),E.alias):Array.isArray(E)?E.map(_):E.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(_){return Object.prototype.toString.call(_).slice(8,-1)},objId:function(_){return _.__id||Object.defineProperty(_,"__id",{value:++o}),_.__id},clone:function _(E,$){$=$||{};var S,T;switch(c.util.type(E)){case"Object":if(T=c.util.objId(E),$[T])return $[T];S={},$[T]=S;for(var M in E)E.hasOwnProperty(M)&&(S[M]=_(E[M],$));return S;case"Array":return T=c.util.objId(E),$[T]?$[T]:(S=[],$[T]=S,E.forEach(function(H,O){S[O]=_(H,$)}),S);default:return E}},getLanguage:function(_){for(;_;){var E=i.exec(_.className);if(E)return E[1].toLowerCase();_=_.parentElement}return"none"},setLanguage:function(_,E){_.className=_.className.replace(RegExp(i,"gi"),""),_.classList.add("language-"+E)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(S){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(_){var E=document.getElementsByTagName("script");for(var $ in E)if(E[$].src==_)return E[$]}return null}},isActive:function(_,E,$){for(var S="no-"+E;_;){var T=_.classList;if(T.contains(E))return!0;if(T.contains(S))return!1;_=_.parentElement}return!!$}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(_,E){var $=c.util.clone(c.languages[_]);for(var S in E)$[S]=E[S];return $},insertBefore:function(_,E,$,S){S=S||c.languages;var T=S[_],M={};for(var H in T)if(T.hasOwnProperty(H)){if(H==E)for(var O in $)$.hasOwnProperty(O)&&(M[O]=$[O]);$.hasOwnProperty(H)||(M[H]=T[H])}var z=S[_];return S[_]=M,c.languages.DFS(c.languages,function(te,Z){Z===z&&te!=_&&(this[te]=M)}),M},DFS:function _(E,$,S,T){T=T||{};var M=c.util.objId;for(var H in E)if(E.hasOwnProperty(H)){$.call(E,H,E[H],S||H);var O=E[H],z=c.util.type(O);z==="Object"&&!T[M(O)]?(T[M(O)]=!0,_(O,$,null,T)):z==="Array"&&!T[M(O)]&&(T[M(O)]=!0,_(O,$,H,T))}}},plugins:{},highlightAll:function(_,E){c.highlightAllUnder(document,_,E)},highlightAllUnder:function(_,E,$){var S={callback:$,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),c.hooks.run("before-all-elements-highlight",S);for(var T=0,M;M=S.elements[T++];)c.highlightElement(M,E===!0,S.callback)},highlightElement:function(_,E,$){var S=c.util.getLanguage(_),T=c.languages[S];c.util.setLanguage(_,S);var M=_.parentElement;M&&M.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(M,S);var H=_.textContent,O={element:_,language:S,grammar:T,code:H};function z(Z){O.highlightedCode=Z,c.hooks.run("before-insert",O),O.element.innerHTML=O.highlightedCode,c.hooks.run("after-highlight",O),c.hooks.run("complete",O),$&&$.call(O.element)}if(c.hooks.run("before-sanity-check",O),M=O.element.parentElement,M&&M.nodeName.toLowerCase()==="pre"&&!M.hasAttribute("tabindex")&&M.setAttribute("tabindex","0"),!O.code){c.hooks.run("complete",O),$&&$.call(O.element);return}if(c.hooks.run("before-highlight",O),!O.grammar){z(c.util.encode(O.code));return}if(E&&r.Worker){var te=new Worker(c.filename);te.onmessage=function(Z){z(Z.data)},te.postMessage(JSON.stringify({language:O.language,code:O.code,immediateClose:!0}))}else z(c.highlight(O.code,O.grammar,O.language))},highlight:function(_,E,$){var S={code:_,grammar:E,language:$};if(c.hooks.run("before-tokenize",S),!S.grammar)throw new Error('The language "'+S.language+'" has no grammar.');return S.tokens=c.tokenize(S.code,S.grammar),c.hooks.run("after-tokenize",S),p.stringify(c.util.encode(S.tokens),S.language)},tokenize:function(_,E){var $=E.rest;if($){for(var S in $)E[S]=$[S];delete E.rest}var T=new v;return y(T,T.head,_),m(_,T,E,T.head,0),k(T)},hooks:{all:{},add:function(_,E){var $=c.hooks.all;$[_]=$[_]||[],$[_].push(E)},run:function(_,E){var $=c.hooks.all[_];if(!(!$||!$.length))for(var S=0,T;T=$[S++];)T(E)}},Token:p};r.Prism=c;function p(_,E,$,S){this.type=_,this.content=E,this.alias=$,this.length=(S||"").length|0}p.stringify=function _(E,$){if(typeof E=="string")return E;if(Array.isArray(E)){var S="";return E.forEach(function(z){S+=_(z,$)}),S}var T={type:E.type,content:_(E.content,$),tag:"span",classes:["token",E.type],attributes:{},language:$},M=E.alias;M&&(Array.isArray(M)?Array.prototype.push.apply(T.classes,M):T.classes.push(M)),c.hooks.run("wrap",T);var H="";for(var O in T.attributes)H+=" "+O+'="'+(T.attributes[O]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+H+">"+T.content+"</"+T.tag+">"};function h(_,E,$,S){_.lastIndex=E;var T=_.exec($);if(T&&S&&T[1]){var M=T[1].length;T.index+=M,T[0]=T[0].slice(M)}return T}function m(_,E,$,S,T,M){for(var H in $)if(!(!$.hasOwnProperty(H)||!$[H])){var O=$[H];O=Array.isArray(O)?O:[O];for(var z=0;z<O.length;++z){if(M&&M.cause==H+","+z)return;var te=O[z],Z=te.inside,W=!!te.lookbehind,I=!!te.greedy,J=te.alias;if(I&&!te.pattern.global){var ee=te.pattern.toString().match(/[imsuy]*$/)[0];te.pattern=RegExp(te.pattern.source,ee+"g")}for(var de=te.pattern||te,re=S.next,pe=T;re!==E.tail&&!(M&&pe>=M.reach);pe+=re.value.length,re=re.next){var De=re.value;if(E.length>_.length)return;if(!(De instanceof p)){var le=1,ue;if(I){if(ue=h(de,pe,_,W),!ue||ue.index>=_.length)break;var Re=ue.index,nt=ue.index+ue[0].length,Oe=pe;for(Oe+=re.value.length;Re>=Oe;)re=re.next,Oe+=re.value.length;if(Oe-=re.value.length,pe=Oe,re.value instanceof p)continue;for(var Ee=re;Ee!==E.tail&&(Oe<nt||typeof Ee.value=="string");Ee=Ee.next)le++,Oe+=Ee.value.length;le--,De=_.slice(pe,Oe),ue.index-=pe}else if(ue=h(de,0,De,W),!ue)continue;var Re=ue.index,he=ue[0],Dt=De.slice(0,Re),jt=De.slice(Re+he.length),ht=pe+De.length;M&&ht>M.reach&&(M.reach=ht);var bt=re.prev;Dt&&(bt=y(E,bt,Dt),pe+=Dt.length),b(E,bt,le);var zt=new p(H,Z?c.tokenize(he,Z):he,J,he);if(re=y(E,bt,zt),jt&&y(E,re,jt),le>1){var kt={cause:H+","+z,reach:ht};m(_,E,$,re.prev,pe,kt),M&&kt.reach>M.reach&&(M.reach=kt.reach)}}}}}}function v(){var _={value:null,prev:null,next:null},E={value:null,prev:_,next:null};_.next=E,this.head=_,this.tail=E,this.length=0}function y(_,E,$){var S=E.next,T={value:$,prev:E,next:S};return E.next=T,S.prev=T,_.length++,T}function b(_,E,$){for(var S=E.next,T=0;T<$&&S!==_.tail;T++)S=S.next;E.next=S,S.prev=E,_.length-=T}function k(_){for(var E=[],$=_.head.next;$!==_.tail;)E.push($.value),$=$.next;return E}if(!r.document)return r.addEventListener&&(c.disableWorkerMessageHandler||r.addEventListener("message",function(_){var E=JSON.parse(_.data),$=E.language,S=E.code,T=E.immediateClose;r.postMessage(c.highlight(S,c.languages[$],$)),T&&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 N=document.readyState;N==="loading"||N==="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 En<"u"&&(En.Prism=n)})(ip);var Tk=ip.exports,Nk=Lo;Lo.displayName="markup",Lo.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Lo(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(/&/,"&"))}),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 Bk=Po;Po.displayName="css",Po.aliases=[];function Po(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 jk=Oo;Oo.displayName="clike",Oo.aliases=[];function Oo(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 Lk=Mo;Mo.displayName="javascript",Mo.aliases=["js"];function Mo(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 Aa=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof En=="object"?En:{},Pk=Xk();Aa.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ok=Kb,Mk=fk,sp=Tk,Ik=Nk,Rk=Bk,qk=jk,Hk=Lk;Pk();var Io={}.hasOwnProperty;function op(){}op.prototype=sp;var Xe=new op,Uk=Xe;Xe.highlight=zk,Xe.register=$a,Xe.alias=Vk,Xe.registered=Wk,Xe.listLanguages=Gk,$a(Ik),$a(Rk),$a(qk),$a(Hk),Xe.util.encode=Kk,Xe.Token.stringify=Yk;function $a(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Xe.languages[e.displayName]===void 0&&e(Xe)}function Vk(e,t){var n=Xe.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 zk(e,t){var n=sp.highlight,r;if(typeof e!="string")throw new Error("Expected `string` for `value`, got `"+e+"`");if(Xe.util.type(t)==="Object")r=t,t=null;else{if(typeof t!="string")throw new Error("Expected `string` for `name`, got `"+t+"`");if(Io.call(Xe.languages,t))r=Xe.languages[t];else throw new Error("Unknown language: `"+t+"` is not registered")}return n.call(this,e,r,t)}function Wk(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return Io.call(Xe.languages,e)}function Gk(){var e=Xe.languages,t=[],n;for(n in e)Io.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Yk(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:Xe.util.type(e)==="Array"?Jk(e,t):(r={type:e.type,content:Xe.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)),Xe.hooks.run("wrap",r),Ok(r.tag+"."+r.classes.join("."),Zk(r.attributes),r.content))}function Jk(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]=Xe.Token.stringify(o,t,n);return n}function Kk(e){return e}function Zk(e){var t;for(t in e)e[t]=Mk(e[t]);return e}function Xk(){var e="Prism"in Aa,t=e?Aa.Prism:void 0;return n;function n(){e?Aa.Prism=t:delete Aa.Prism,e=void 0,t=void 0}}const Ro=Za(Uk);var Ta=N0(Ro,{});Ta.registerLanguage=function(e,t){return Ro.register(t)},Ta.alias=function(e,t){return Ro.alias(e,t)};const lp={'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 Qk=qo;qo.displayName="jsx",qo.aliases=[];function qo(e){(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,m){return h=h.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(h,m)}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(""):""},p=function(h){for(var m=[],v=0;v<h.length;v++){var y=h[v],b=!1;if(typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?m.length>0&&m[m.length-1].tagName===c(y.content[0].content[1])&&m.pop():y.content[y.content.length-1].content==="/>"||m.push({tagName:c(y.content[0].content[1]),openedBraces:0}):m.length>0&&y.type==="punctuation"&&y.content==="{"?m[m.length-1].openedBraces++:m.length>0&&m[m.length-1].openedBraces>0&&y.type==="punctuation"&&y.content==="}"?m[m.length-1].openedBraces--:b=!0),(b||typeof y=="string")&&m.length>0&&m[m.length-1].openedBraces===0){var k=c(y);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)}y.content&&typeof y.content!="string"&&p(y.content)}};t.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||p(h.tokens)})})(e)}const e1=Za(Qk),t1=on({tagName:"pkt-tag",elementClass:Kt,react:R,displayName:"PktTag",events:{onClose:"close"}}),qr=R.forwardRef(({children:e,...t},n)=>g.jsx(t1,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));qr.displayName="PktTag";const up=R.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=R.useRef([]);R.useEffect(()=>{i.current=i.current.slice(0,t.length)},[t]);const o=(c,p)=>{p.action&&p.action(c),n&&n(c)},u=(c,p)=>{var h,m;e&&(p.code==="ArrowLeft"&&c!==0&&((h=i.current[c-1])==null||h.focus()),p.code==="ArrowRight"&&c<t.length-1&&((m=i.current[c+1])==null||m.focus()),(p.code==="ArrowDown"||p.code==="Space")&&o(c,t[c]))};return g.jsx("div",{className:"pkt-tabs",ref:r,children:g.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:t.map((c,p)=>g.jsx(R.Fragment,{children:c.href?g.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(p,h),onClick:()=>o(p,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[p]=h},children:[c.icon&&g.jsx(we,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx(qr,{skin:c.tag.skin,size:"small",children:c.tag.text})]}):g.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(p,h),onClick:()=>o(p,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[p]=h},children:[c.icon&&g.jsx(we,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx(qr,{skin:c.tag.skin,size:"small",children:c.tag.text})]},"b-"+p)},p))})})}),Oi=R.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,autocomplete:r="off",counter:i,counterMaxLength:o,className:u,disabled:c=!1,errorMessage:p,hasError:h=!1,helptext:m,helptextDropdown:v,helptextDropdownButton:y,iconNameRight:b,inline:k=!1,fullwidth:x=!1,label:C,name:N,optionalTag:_=!1,optionalText:E,requiredTag:$=!1,requiredText:S,placeholder:T,prefix:M,suffix:H,type:O="text",useWrapper:z=!0,omitSearchIcon:te=!1,value:Z,onChange:W,...I},J)=>{const ee=[u,"pkt-textinput"].join(" "),de=n||`${e}-label`,re=O==="search"&&!b&&!te;R.useRef(null);const[pe,De]=R.useState(0),le=ue=>{var nt,Oe;if(i&&De(((Oe=(nt=ue.currentTarget)==null?void 0:nt.value)==null?void 0:Oe.length)||0),W)return W(ue)};return g.jsx(Ar,{ariaDescribedby:t,className:ee,disabled:c,errorMessage:p,forId:e,hasError:h,helptext:m,helptextDropdown:v,helptextDropdownButton:y,inline:k,label:C,optionalTag:_,optionalText:E,requiredTag:$,requiredText:S,useWrapper:z,counter:i,counterCurrent:pe,counterMaxLength:o,children:g.jsxs("div",{className:"pkt-input__container",children:[M&&g.jsx("div",{className:"pkt-input-prefix",children:M}),g.jsx("input",{ref:J,className:`pkt-input ${x?"pkt-input--fullwidth":""} ${o&&pe>o?"pkt-input--counter-error":""}`,type:O,name:N||e,id:e,placeholder:T,autoComplete:r,value:Z,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":de,...I,onChange:le}),H&&g.jsxs("p",{className:"pkt-input-suffix",children:[H,b&&g.jsx(we,{className:"pkt-input-suffix-icon",name:b}),re&&g.jsx(we,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!H&&b&&g.jsx(we,{className:"pkt-input-icon",name:b}),!H&&re&&g.jsx(we,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Mi=({className:e,compact:t=!1,skin:n="basic",responsiveView:r=!0,children:i})=>g.jsx("table",{"data-testid":"pkt-table",className:ct(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}),Ii=({className:e,children:t})=>g.jsx("thead",{className:ct(e,"pkt-table__header",{}),role:"rowgroup",children:t}),Ri=({children:e,className:t})=>g.jsx("tbody",{className:ct(t,"pkt-table__body",{}),role:"rowgroup",children:e}),hr=({className:e,children:t})=>g.jsx("tr",{className:ct(e,"pkt-table__row",{}),role:"row",children:t}),Zt=({className:e,children:t})=>g.jsx("th",{className:ct(e,"pkt-table__header-cell",{}),role:"columnheader",children:t}),It=({children:e,className:t,dataLabel:n})=>g.jsx("td",{className:ct(t,"pkt-table__data-cell",{}),"data-label":n,role:"cell","data-testid":"pkt-table__data-cell",children:e}),n1=({specs:e})=>{const t=r=>Array.isArray(r)?r.join(`
|
|
709
|
+
`):r,n=r=>typeof r=="boolean"?r?"true":"false":r;return g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Egenskaper"}),g.jsxs(Mi,{compact:!0,children:[g.jsx(Ii,{children:g.jsxs(hr,{children:[g.jsx(Zt,{children:"Prop"}),g.jsx(Zt,{children:"Navn"}),g.jsx(Zt,{children:"Beskrivelse"}),g.jsx(Zt,{children:"Type"}),g.jsx(Zt,{children:"Standardverdi"})]})}),g.jsx(Ri,{children:Object.entries(e.props||{}).map(([r,i])=>g.jsxs(hr,{children:[g.jsx(It,{dataLabel:"Prop",children:g.jsx("pre",{children:r})}),g.jsx(It,{dataLabel:"Navn",children:!Array.isArray(i)&&i.name||r}),Array.isArray(i)?g.jsxs(g.Fragment,{children:[g.jsx(It,{dataLabel:"Beskrivelse"}),g.jsx(It,{dataLabel:"Type",children:g.jsx("pre",{children:i.join(`
|
|
710
|
+
`)})})]}):g.jsxs(g.Fragment,{children:[g.jsx(It,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),g.jsx(It,{dataLabel:"Type",children:g.jsx("pre",{children:i.type&&t(i.type)})}),g.jsx(It,{dataLabel:"Standardverdi",children:g.jsx("pre",{children:n(i.default)})})]})]},r))})]}),e.events&&g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Hendelser / handlinger"}),g.jsxs(Mi,{compact:!0,children:[g.jsx(Ii,{children:g.jsxs(hr,{children:[g.jsx(Zt,{children:"Event"}),g.jsx(Zt,{children:"Beskrivelse"}),g.jsx(Zt,{children:"Type"})]})}),g.jsx(Ri,{children:Object.entries(e.events||{}).map(([r,i])=>g.jsxs(hr,{children:[g.jsx(It,{dataLabel:"Event",children:g.jsx("pre",{children:r})}),g.jsx(It,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),g.jsx(It,{dataLabel:"Type",children:i.type})]},r))})]})]}),e.slots&&g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Innhold"}),g.jsxs(Mi,{compact:!0,children:[g.jsx(Ii,{children:g.jsxs(hr,{children:[g.jsx(Zt,{children:"Slot"}),g.jsx(Zt,{children:"Beskrivelse"})]})}),g.jsx(Ri,{children:Object.entries(e.slots||{}).map(([r,i])=>g.jsxs(hr,{children:[g.jsx(It,{dataLabel:"Slot",children:g.jsx("pre",{children:r})}),g.jsx(It,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]})]})},Ho=R.forwardRef(({ariaDescribedby:e,ariaLabelledby:t,children:n,className:r,disabled:i=!1,errorMessage:o,hasError:u,helptext:c,helptextDropdown:p,helptextDropdownButton:h,id:m,inline:v=!1,fullwidth:y=!1,label:b,name:k,optionalTag:x=!1,optionalText:C,requiredTag:N=!1,requiredText:_,...E},$)=>{const S=[r,"pkt-select"].join(" ");return g.jsx(Ar,{className:S,forId:m,label:b,helptext:c,helptextDropdown:p,helptextDropdownButton:h,optionalTag:x,optionalText:C,requiredTag:N,requiredText:_,hasError:u,errorMessage:o,disabled:i,inline:v,ariaDescribedby:e,children:g.jsx("select",{ref:$,className:`pkt-input ${y?"pkt-input--fullwidth":""}`,"aria-invalid":u,"aria-errormessage":`${m}-error`,"aria-labelledby":t||`${m}-label`,disabled:i,id:m,name:k||m,...E,children:n})})}),r1=[{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:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"headset",fn:"headset.svg",cat:"ui"},{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:"scooter",fn:"scooter.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",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:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{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"},{id:"wrench",fn:"wrench.svg",cat:"ui"}],cp=({propKey:e,spec:t,props:n,handleChange:r})=>{const i={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number",STRING:"string"},o=(u,c)=>{r(e,{...n[e],[u]:c})};if(t.type===i.BOOLEAN)return g.jsx(Ar,{label:t.name||e,forId:e,helptext:t.description||null,hasFieldset:!0,requiredTag:t.required,children:g.jsx(fi,{id:e,label:e,type:"checkbox",checked:n[e]||!1,onChange:u=>r(e,u.target.checked,t.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(t.type===i.ICON)return g.jsxs(Ho,{label:t.name||e,helptext:t.description||null,id:e,value:n[e],onChange:u=>r(e,u.target.value),requiredTag:t.required,children:[g.jsx("option",{value:""}),r1.map(u=>g.jsx("option",{value:u.id,children:u.id},u.id))]});if(t.type===i.DATE)return g.jsx(_u,{id:e,label:t.name||e,helptext:t.description||null,value:n[e],multiple:t.variant==="multiple",maxlength:999,onChange:u=>r(e,u.target.value),requiredTag:t.required});if(Array.isArray(t)||Array.isArray(t.type)||Array.isArray(t.values)){const u=Array.isArray(t)?t:t.values||t.type;return g.jsxs(Ho,{label:t.name||e,helptext:t.description||null,id:e,value:n[e],onChange:c=>r(e,c.target.value),requiredTag:t.required,children:[g.jsx("option",{value:""}),u.map(c=>g.jsx("option",{value:c,children:c},c))]})}return t.type===i.NUMBER?g.jsx(Oi,{id:e,label:t.name||e,helptext:t.description||null,type:"number",value:n[e],onChange:u=>r(e,parseFloat(u.currentTarget.value)),requiredTag:t.required}):t.type===i.OBJECT?(n[e]||(n[e]={}),g.jsxs("fieldset",{children:[g.jsx("legend",{children:t.name||e}),t.description&&g.jsx("p",{children:t.description}),Object.entries(t.properties).map(([u,c])=>g.jsx(cp,{propKey:u,props:n[e],spec:c,handleChange:(p,h)=>o(p,h)},u))]})):g.jsx(Oi,{id:e,label:t.name||e,helptext:t.description||null,type:"text",value:n[e],onChange:u=>r(e,t.type==="number"?parseFloat(u.currentTarget.value):u.currentTarget.value),requiredTag:t.required})};Ta.registerLanguage("jsx",e1);const dp=({specs:e,children:t,fullWidth:n})=>{var Z,W;const r=e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).reduce((I,[J,ee])=>(typeof ee=="object"&&!Array.isArray(ee)&&ee.default!==void 0&&ee.default!==null&&(ee.default==="false"&&(ee.default=!1),ee.default==="true"&&(ee.default=!0),I[J]=ee.default),I),{}):{},[i,o]=R.useState(0),[u,c]=R.useState(r),[p,h]=R.useState("light"),[m,v]=R.useState(""),[y,b]=R.useState(""),[k,x]=R.useState(""),[C,N]=R.useState("Rediger innhold"),[_,E]=R.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}]),$=I=>{I===1&&M(),I===2&&T(),x(""),E(J=>J.map((ee,de)=>({...ee,active:de===I})))},S=R.useRef(null),T=async()=>{if(e.isElement&&R.isValidElement(z))M().then(()=>{const I=R.isValidElement(z)?z.type.displayName||z.type.name:e.name;v(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
711
|
+
`+y.replaceAll(I,e.name||"").replaceAll("={","='").replaceAll(`}
|
|
712
712
|
`,`'
|
|
713
|
-
`).replaceAll(/([a-zA-Z0-9]+)(:)/g,'"$1"$2').replaceAll('"https"',"https").replaceAll("className","class"))});else{const V=await yo(_.current.innerHTML,{parser:"html",plugins:[u0]});h(V.replace(/<\!--.*?-->/g,""))}},x=async()=>{const V=await Gv(I);return v(V),Promise.resolve()},T=(V,z)=>{navigator.clipboard.writeText(z).then(()=>{b(V),console.log("Copied to clipboard",V)})},O=(V,z)=>g.jsxs("div",{className:"pkt-preview__copy",children:[y===V&&g.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),g.jsx(nr,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>T(V,z),children:"Kopier kode"})]}),I=R.isValidElement(t)&&R.cloneElement(t,{...i},t.props.children?t.props.children:(Y=e.slots)!=null&&Y.default?k:null),M=(V,z,H=!1)=>{if(!H&&(!z||z=="false")){const{[V]:X,...oe}=i;o(oe)}else o(X=>({...X,[V]:z}))};return g.jsxs("div",{className:"pkt-preview",children:[g.jsxs("div",{className:"pkt-preview__component-container","data-mode":u,children:[e["dark-mode"]&&g.jsx("div",{className:"pkt-preview__mode",children:g.jsx(fi,{id:"mode",label:"Dark mode",type:"checkbox",checked:u==="dark",onChange:V=>c(V.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),g.jsx("div",{className:`pkt-preview__component ${n&&"pkt-preview__component--fullwidth"}`,ref:_,children:g.jsx("div",{children:I})})]}),g.jsx(up,{tabs:C,onTabSelected:E}),g.jsxs("div",{className:`pkt-grid pkt-preview__opts ${C[0].active?"":"pkt-hide"}`,children:[((ee=e.slots)==null?void 0:ee.default)&&!t.props.children&&g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx(qr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),g.jsx(Oi,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:k,onChange:V=>S(V.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([V,z])=>g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx(qr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:V}),g.jsx(cp,{propKey:V,props:i,spec:z,handleChange:M})]},V)):g.jsx("p",{children:"OBS! Specs mangler props!"})]}),g.jsxs("div",{className:`pkt-preview__code ${C[1].active?"":"pkt-hide"}`,children:[g.jsx(Ta,{language:"jsx",style:lp,children:m}),O("jsx",m)]}),g.jsxs("div",{className:`pkt-preview__code ${C[2].active?"":"pkt-hide"}`,children:[g.jsx(Ta,{language:"html",style:lp,children:p}),O("html",p)]}),g.jsx("div",{className:`pkt-preview__specs ${C[3].active?"":"pkt-hide"}`,children:g.jsx(n1,{specs:e})})]})};dp.displayName="PktPreview";for(var pt=[],Uo=0;Uo<256;++Uo)pt.push((Uo+256).toString(16).slice(1));function a1(e,t=0){return(pt[e[t+0]]+pt[e[t+1]]+pt[e[t+2]]+pt[e[t+3]]+"-"+pt[e[t+4]]+pt[e[t+5]]+"-"+pt[e[t+6]]+pt[e[t+7]]+"-"+pt[e[t+8]]+pt[e[t+9]]+"-"+pt[e[t+10]]+pt[e[t+11]]+pt[e[t+12]]+pt[e[t+13]]+pt[e[t+14]]+pt[e[t+15]]).toLowerCase()}var qi,i1=new Uint8Array(16);function s1(){if(!qi&&(qi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qi(i1)}var o1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const pp={randomUUID:o1};function l1(e,t,n){if(pp.randomUUID&&!t&&!e)return pp.randomUUID();e=e||{};var r=e.random||(e.rng||s1)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,a1(r)}const hp=R.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:p,ariaLabel:h,ariaLabelledby:m,role:v="progressbar",className:y,ariaValueText:b,...k},S)=>{const C=R.useRef(null),[N,E]=R.useState(0),[_,$]=R.useState(p);R.useEffect(()=>{p||$(l1())},[p]),R.useEffect(()=>{if(C.current){const H=C.current;E(H.getBoundingClientRect().width)}});const x=n-t,T=e/x*100,O=n!==100||t!==0?Math.round(T):e,I=`${e} av ${n}`,M=u!=="none",Y=ct("pkt-progressbar__bar",{[`pkt-progressbar__bar--${r}`]:r}),ee=ct("pkt-progressbar__title",{"pkt-progressbar__title-center":o==="center"}),V=ct("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),z=ct({"pkt-progressbar__status-placement--following":c==="following","pkt-progressbar__status-placement--center":c==="center","pkt-progressbar__status-placement--left":c==="left"});return g.jsxs("div",{...k,ref:S,className:ct("pkt-progressbar__container",y),id:_,style:{"--pkt-progress-label-width":`${N}px`,"--pkt-progress-width":`${O}%`},children:[i&&g.jsx("p",{id:`${_}-title`,className:ee,children:i}),g.jsx("div",{role:v,className:"pkt-progressbar__bar-wrapper","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":e,"aria-labelledby":m||i&&`${_}-title`,"aria-label":h,"aria-valuetext":b,children:g.jsx("div",{className:Y})}),M&&g.jsx("div",{className:V,children:g.jsx("span",{className:z,ref:C,children:u==="percentage"?`${O}%`:I})})]})});hp.displayName="PktProgressbar";const fp=R.forwardRef(({id:e,name:t,label:n,className:r,hasTile:i=!1,disabled:o=!1,checkHelptext:u,hasError:c=!1,...p},h)=>{const m=[r,"pkt-input-check"].filter(Boolean).join(" ");return g.jsx("div",{className:m,children:g.jsxs("div",{className:`pkt-input-check__input ${i?"pkt-input-check__input--tile":""} ${o&&i?"pkt-input-check__input--tile-disabled":""}`,children:[g.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,...p}),g.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[n,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});fp.displayName="PktRadioButton";const u1=R.forwardRef(({appearance:e="local",disabled:t=!1,fullwidth:n=!1,id:r,label:i,name:o,placeholder:u="Søk…",suggestions:c,value:p="",action:h,method:m,onChange:v,onSearch:y,onSuggestionClick:b,...k},S)=>{const C=(x,T)=>{x?x():b&&b(T)},N=x=>{p=x.target.value},E=`pkt-searchinput pkt-searchinput--${e} ${n?"pkt-searchinput--fullwidth":""}`,_=i?"label":"div";let $;return h?$=x=>g.jsx("form",{role:"search",className:E,action:h,method:m,children:x}):$=x=>g.jsx("div",{role:"search",className:E,children:x}),$(g.jsxs(g.Fragment,{children:[g.jsxs(_,{htmlFor:i?r:void 0,className:i?"pkt-inputwrapper__label":"",children:[i&&g.jsx(g.Fragment,{children:i}),g.jsxs("div",{className:e==="local"?"pkt-input__container":"pkt-searchinput__field",children:[g.jsx("input",{className:`pkt-input ${n?"pkt-input--fullwidth":""}`,type:"search",name:o||r,id:r,placeholder:u,defaultValue:p,disabled:t,autoComplete:"off","aria-autocomplete":"list",ref:S,"aria-controls":`${r}-suggestions`,onChange:v||N,...k}),g.jsx(nr,{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:y&&(x=>{x.preventDefault(),y(p)}),onKeyUp:y&&(x=>{x.key==="Enter"&&(x.preventDefault(),y(p))}),children:i||u})]})]}),c&&g.jsx("ul",{id:`${r}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:c.map((x,T)=>g.jsx("li",{children:R.createElement(x.href?"a":x.onClick?"button":"div",{href:x.href,className:`pkt-searchinput__suggestion ${x.onClick?"pkt-link-button":""} ${x.href||x.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:x.onClick?"button":void 0,onClick:()=>C(x.onClick,T),onKeyUp:()=>C(x.onClick,T)},g.jsxs(g.Fragment,{children:[x.title&&g.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:x.title}),x.text&&g.jsx("p",{className:"pkt-searchinput__suggestion-text",children:x.text})]}))},`search-suggestion-${T}`))})]}))}),c1=R.forwardRef(({activeStep:e,className:t,children:n,hideNonActiveSteps:r=!1,hideNonActiveStepsContent:i=!0,orientation:o="vertical",...u},c)=>{const p=ct(t,"pkt-stepper",o==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),h=R.Children.map(n,(m,v)=>R.isValidElement(m)?R.cloneElement(m,{className:ct(m.props.className,{"pkt-step--hideStep":r&&v!==e,"pkt-step--hideContent":i&&v!==e})}):m);return g.jsx("ol",{"data-testid":"pkt-stepper",className:p,ref:c,...u,children:h})}),d1=g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:g.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),p1=g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[g.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),g.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),h1=g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[g.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),g.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"})]}),f1=({children:e,className:t,status:n="incomplete",title:r})=>g.jsxs("li",{className:ct("pkt-step",t,`pkt-step--${n}`),"data-testid":"pkt-step",children:[g.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),g.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),g.jsx("span",{className:ct("pkt-step__indicator"),children:n==="current"?p1:n==="completed"?h1:d1}),g.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),g.jsxs("div",{className:"pkt-step__wrapper",children:[g.jsx("div",{className:"pkt-step__title",children:r}),g.jsx("div",{className:"pkt-step__content",children:e})]})]}),m1=R.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,counter:r,counterMaxLength:i,className:o,disabled:u,errorMessage:c,hasError:p,helptext:h,helptextDropdown:m,helptextDropdownButton:v,inline:y,fullwidth:b=!1,label:k,name:S,optionalTag:C=!1,optionalText:N,requiredTag:E=!1,requiredText:_,placeholder:$,rows:x,useWrapper:T=!0,onChange:O,...I},M)=>{const Y=[o,"pkt-textinput","pkt-textarea"].join(" "),ee=n||`${e}-label`,V=R.useRef(null),[z,H]=R.useState(0),X=oe=>{var Ce,re;if(r&&H(((re=(Ce=oe.currentTarget)==null?void 0:Ce.value)==null?void 0:re.length)||0),O)return O(oe)};return R.useEffect(()=>{var oe,Ce;typeof M=="function"&&M(V.current),r&&H(((Ce=(oe=V==null?void 0:V.current)==null?void 0:oe.value)==null?void 0:Ce.length)||0)},[M]),g.jsx(Ar,{ariaDescribedby:t,className:Y,disabled:u,errorMessage:c,forId:e,hasError:p,helptext:h,helptextDropdown:m,helptextDropdownButton:v,inline:y,label:k,optionalTag:C,optionalText:N,requiredTag:E,requiredText:_,useWrapper:T,counter:r,counterCurrent:z,counterMaxLength:i,children:g.jsx("textarea",{ref:V,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&z>i?"pkt-input--counter-error":""}`,name:S||e,id:e,placeholder:$,disabled:u,rows:x,"aria-labelledby":ee,"aria-invalid":p,"aria-errormessage":`${e}-error`,...I,onChange:X})})});ae.PktAccordion=Nh,ae.PktAccordionItem=Wg,ae.PktAlert=Ps,ae.PktBackLink=xu,ae.PktBreadcrumbs=Yg,ae.PktButton=nr,ae.PktCard=Su,ae.PktCheckbox=fi,ae.PktDatepicker=_u,ae.PktFooter=Kg,ae.PktFooterSimple=Zg,ae.PktHeader=Xg,ae.PktIcon=ke,ae.PktInput=Eu,ae.PktInputWrapper=Ar,ae.PktLink=Fu,ae.PktLinkCard=Au,ae.PktLoader=$u,ae.PktMessagebox=Tu,ae.PktModal=Nu,ae.PktPreview=dp,ae.PktProgressbar=hp,ae.PktRadioButton=fp,ae.PktSearchInput=u1,ae.PktSelect=Ho,ae.PktStep=f1,ae.PktStepper=c1,ae.PktTable=Mi,ae.PktTableBody=Ri,ae.PktTableDataCell=It,ae.PktTableHeader=Ii,ae.PktTableHeaderCell=Zt,ae.PktTableRow=hr,ae.PktTabs=up,ae.PktTag=qr,ae.PktTextarea=m1,ae.PktTextinput=Oi,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
|
|
713
|
+
`).replaceAll(/([a-zA-Z0-9]+)(:)/g,'"$1"$2').replaceAll('"https"',"https").replaceAll("className","class"))});else{const I=await yo(S.current.innerHTML,{parser:"html",plugins:[u0]});v(I.replace(/<\!--.*?-->/g,""))}},M=async()=>{const I=await Gv(z);return b(I),Promise.resolve()},H=(I,J)=>{navigator.clipboard.writeText(J).then(()=>{x(I),console.log("Copied to clipboard",I)})},O=(I,J)=>g.jsxs("div",{className:"pkt-preview__copy",children:[k===I&&g.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),g.jsx(nr,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>H(I,J),children:"Kopier kode"})]}),z=R.isValidElement(t)&&R.cloneElement(t,{...u},t.props.children?t.props.children:(Z=e.slots)!=null&&Z.default?C:null),te=(I,J,ee=!1)=>{if(o(i+1),!ee&&(!J||J=="false")){const{[I]:de,...re}=u;c(re)}else c(de=>({...de,[I]:J}))};return g.jsxs("div",{className:"pkt-preview",children:[g.jsxs("div",{className:"pkt-preview__component-container","data-mode":p,children:[e["dark-mode"]&&g.jsx("div",{className:"pkt-preview__mode",children:g.jsx(fi,{id:"mode",label:"Dark mode",type:"checkbox",checked:p==="dark",onChange:I=>h(I.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),g.jsx("div",{className:`pkt-preview__component ${n&&"pkt-preview__component--fullwidth"}`,ref:S,children:g.jsx("div",{children:z})},i)]}),g.jsx(up,{tabs:_,onTabSelected:$}),g.jsxs("div",{className:`pkt-grid pkt-preview__opts ${_[0].active?"":"pkt-hide"}`,children:[((W=e.slots)==null?void 0:W.default)&&!t.props.children&&g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx(qr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),g.jsx(Oi,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:C,onChange:I=>N(I.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([I,J])=>g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx(qr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:I}),g.jsx(cp,{propKey:I,props:u,spec:J,handleChange:te})]},I)):g.jsx("p",{children:"OBS! Specs mangler props!"})]}),g.jsxs("div",{className:`pkt-preview__code ${_[1].active?"":"pkt-hide"}`,children:[g.jsx(Ta,{language:"jsx",style:lp,children:y}),O("jsx",y)]}),g.jsxs("div",{className:`pkt-preview__code ${_[2].active?"":"pkt-hide"}`,children:[g.jsx(Ta,{language:"html",style:lp,children:m}),O("html",m)]}),g.jsx("div",{className:`pkt-preview__specs ${_[3].active?"":"pkt-hide"}`,children:g.jsx(n1,{specs:e})})]})};dp.displayName="PktPreview";for(var pt=[],Uo=0;Uo<256;++Uo)pt.push((Uo+256).toString(16).slice(1));function a1(e,t=0){return(pt[e[t+0]]+pt[e[t+1]]+pt[e[t+2]]+pt[e[t+3]]+"-"+pt[e[t+4]]+pt[e[t+5]]+"-"+pt[e[t+6]]+pt[e[t+7]]+"-"+pt[e[t+8]]+pt[e[t+9]]+"-"+pt[e[t+10]]+pt[e[t+11]]+pt[e[t+12]]+pt[e[t+13]]+pt[e[t+14]]+pt[e[t+15]]).toLowerCase()}var qi,i1=new Uint8Array(16);function s1(){if(!qi&&(qi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qi(i1)}var o1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const pp={randomUUID:o1};function l1(e,t,n){if(pp.randomUUID&&!t&&!e)return pp.randomUUID();e=e||{};var r=e.random||(e.rng||s1)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,a1(r)}const hp=R.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:p,ariaLabel:h,ariaLabelledby:m,role:v="progressbar",className:y,ariaValueText:b,...k},x)=>{const C=R.useRef(null),[N,_]=R.useState(0),[E,$]=R.useState(p);R.useEffect(()=>{p||$(l1())},[p]),R.useEffect(()=>{if(C.current){const I=C.current;_(I.getBoundingClientRect().width)}});const S=n-t,T=e/S*100,M=n!==100||t!==0?Math.round(T):e,H=`${e} av ${n}`,O=u!=="none",z=ct("pkt-progressbar__bar",{[`pkt-progressbar__bar--${r}`]:r}),te=ct("pkt-progressbar__title",{"pkt-progressbar__title-center":o==="center"}),Z=ct("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),W=ct({"pkt-progressbar__status-placement--following":c==="following","pkt-progressbar__status-placement--center":c==="center","pkt-progressbar__status-placement--left":c==="left"});return g.jsxs("div",{...k,ref:x,className:ct("pkt-progressbar__container",y),id:E,style:{"--pkt-progress-label-width":`${N}px`,"--pkt-progress-width":`${M}%`},children:[i&&g.jsx("p",{id:`${E}-title`,className:te,children:i}),g.jsx("div",{role:v,className:"pkt-progressbar__bar-wrapper","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":e,"aria-labelledby":m||i&&`${E}-title`,"aria-label":h,"aria-valuetext":b,children:g.jsx("div",{className:z})}),O&&g.jsx("div",{className:Z,children:g.jsx("span",{className:W,ref:C,children:u==="percentage"?`${M}%`:H})})]})});hp.displayName="PktProgressbar";const fp=R.forwardRef(({id:e,name:t,label:n,className:r,hasTile:i=!1,disabled:o=!1,checkHelptext:u,hasError:c=!1,...p},h)=>{const m=[r,"pkt-input-check"].filter(Boolean).join(" ");return g.jsx("div",{className:m,children:g.jsxs("div",{className:`pkt-input-check__input ${i?"pkt-input-check__input--tile":""} ${o&&i?"pkt-input-check__input--tile-disabled":""}`,children:[g.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,...p}),g.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[n,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});fp.displayName="PktRadioButton";const u1=R.forwardRef(({appearance:e="local",disabled:t=!1,fullwidth:n=!1,id:r,label:i,name:o,placeholder:u="Søk…",suggestions:c,value:p="",action:h,method:m,onChange:v,onSearch:y,onSuggestionClick:b,...k},x)=>{const C=(S,T)=>{S?S():b&&b(T)},N=S=>{p=S.target.value},_=`pkt-searchinput pkt-searchinput--${e} ${n?"pkt-searchinput--fullwidth":""}`,E=i?"label":"div";let $;return h?$=S=>g.jsx("form",{role:"search",className:_,action:h,method:m,children:S}):$=S=>g.jsx("div",{role:"search",className:_,children:S}),$(g.jsxs(g.Fragment,{children:[g.jsxs(E,{htmlFor:i?r:void 0,className:i?"pkt-inputwrapper__label":"",children:[i&&g.jsx(g.Fragment,{children:i}),g.jsxs("div",{className:e==="local"?"pkt-input__container":"pkt-searchinput__field",children:[g.jsx("input",{className:`pkt-input ${n?"pkt-input--fullwidth":""}`,type:"search",name:o||r,id:r,placeholder:u,defaultValue:p,disabled:t,autoComplete:"off","aria-autocomplete":"list",ref:x,"aria-controls":`${r}-suggestions`,onChange:v||N,...k}),g.jsx(nr,{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:y&&(S=>{S.preventDefault(),y(p)}),onKeyUp:y&&(S=>{S.key==="Enter"&&(S.preventDefault(),y(p))}),children:i||u})]})]}),c&&g.jsx("ul",{id:`${r}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:c.map((S,T)=>g.jsx("li",{children:R.createElement(S.href?"a":S.onClick?"button":"div",{href:S.href,className:`pkt-searchinput__suggestion ${S.onClick?"pkt-link-button":""} ${S.href||S.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:S.onClick?"button":void 0,onClick:()=>C(S.onClick,T),onKeyUp:()=>C(S.onClick,T)},g.jsxs(g.Fragment,{children:[S.title&&g.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:S.title}),S.text&&g.jsx("p",{className:"pkt-searchinput__suggestion-text",children:S.text})]}))},`search-suggestion-${T}`))})]}))}),c1=R.forwardRef(({activeStep:e,className:t,children:n,hideNonActiveSteps:r=!1,hideNonActiveStepsContent:i=!0,orientation:o="vertical",...u},c)=>{const p=ct(t,"pkt-stepper",o==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),h=R.Children.map(n,(m,v)=>R.isValidElement(m)?R.cloneElement(m,{className:ct(m.props.className,{"pkt-step--hideStep":r&&v!==e,"pkt-step--hideContent":i&&v!==e})}):m);return g.jsx("ol",{"data-testid":"pkt-stepper",className:p,ref:c,...u,children:h})}),d1=g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:g.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),p1=g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[g.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),g.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),h1=g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[g.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),g.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"})]}),f1=({children:e,className:t,status:n="incomplete",title:r})=>g.jsxs("li",{className:ct("pkt-step",t,`pkt-step--${n}`),"data-testid":"pkt-step",children:[g.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),g.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),g.jsx("span",{className:ct("pkt-step__indicator"),children:n==="current"?p1:n==="completed"?h1:d1}),g.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),g.jsxs("div",{className:"pkt-step__wrapper",children:[g.jsx("div",{className:"pkt-step__title",children:r}),g.jsx("div",{className:"pkt-step__content",children:e})]})]}),m1=R.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,counter:r,counterMaxLength:i,className:o,disabled:u,errorMessage:c,hasError:p,helptext:h,helptextDropdown:m,helptextDropdownButton:v,inline:y,fullwidth:b=!1,label:k,name:x,optionalTag:C=!1,optionalText:N,requiredTag:_=!1,requiredText:E,placeholder:$,rows:S,useWrapper:T=!0,onChange:M,...H},O)=>{const z=[o,"pkt-textinput","pkt-textarea"].join(" "),te=n||`${e}-label`,Z=R.useRef(null),[W,I]=R.useState(0),J=ee=>{var de,re;if(r&&I(((re=(de=ee.currentTarget)==null?void 0:de.value)==null?void 0:re.length)||0),M)return M(ee)};return R.useEffect(()=>{var ee,de;typeof O=="function"&&O(Z.current),r&&I(((de=(ee=Z==null?void 0:Z.current)==null?void 0:ee.value)==null?void 0:de.length)||0)},[O]),g.jsx(Ar,{ariaDescribedby:t,className:z,disabled:u,errorMessage:c,forId:e,hasError:p,helptext:h,helptextDropdown:m,helptextDropdownButton:v,inline:y,label:k,optionalTag:C,optionalText:N,requiredTag:_,requiredText:E,useWrapper:T,counter:r,counterCurrent:W,counterMaxLength:i,children:g.jsx("textarea",{ref:Z,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&W>i?"pkt-input--counter-error":""}`,name:x||e,id:e,placeholder:$,disabled:u,rows:S,"aria-labelledby":te,"aria-invalid":p,"aria-errormessage":`${e}-error`,...H,onChange:J})})});ie.PktAccordion=Nh,ie.PktAccordionItem=Wg,ie.PktAlert=Ps,ie.PktBackLink=xu,ie.PktBreadcrumbs=Yg,ie.PktButton=nr,ie.PktCard=Su,ie.PktCheckbox=fi,ie.PktDatepicker=_u,ie.PktFooter=Kg,ie.PktFooterSimple=Zg,ie.PktHeader=Xg,ie.PktIcon=we,ie.PktInput=Eu,ie.PktInputWrapper=Ar,ie.PktLink=Fu,ie.PktLinkCard=Au,ie.PktLoader=$u,ie.PktMessagebox=Tu,ie.PktModal=Nu,ie.PktPreview=dp,ie.PktProgressbar=hp,ie.PktRadioButton=fp,ie.PktSearchInput=u1,ie.PktSelect=Ho,ie.PktStep=f1,ie.PktStepper=c1,ie.PktTable=Mi,ie.PktTableBody=Ri,ie.PktTableDataCell=It,ie.PktTableHeader=Ii,ie.PktTableHeaderCell=Zt,ie.PktTableRow=hr,ie.PktTabs=up,ie.PktTag=qr,ie.PktTextarea=m1,ie.PktTextinput=Oi,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|