@skill-map/cli 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/tutorial/sm-tutorial.md +94 -20
- package/dist/cli.js +1408 -1193
- package/dist/cli.js.map +1 -1
- package/dist/index.js +116 -99
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +903 -1004
- package/dist/kernel/index.js +116 -99
- package/dist/kernel/index.js.map +1 -1
- package/dist/ui/chunk-3SI3TVER.js +7 -0
- package/dist/ui/{chunk-4GTCV7V4.js → chunk-47OZB7LR.js} +1 -1
- package/dist/ui/{chunk-JMP2LDMI.js → chunk-5JBW2LUN.js} +1 -1
- package/dist/ui/chunk-BL7KARTN.js +317 -0
- package/dist/ui/chunk-DMSZOXER.js +1 -0
- package/dist/ui/{chunk-Y7MXGXU3.js → chunk-DZBSELHN.js} +1 -1
- package/dist/ui/chunk-EFKSD7PT.js +123 -0
- package/dist/ui/{chunk-Z2667C3S.js → chunk-FEPH4VNB.js} +1 -1
- package/dist/ui/{chunk-PY2R7LHN.js → chunk-FQOZBFJ5.js} +1 -1
- package/dist/ui/{chunk-WOLLYGGL.js → chunk-KJQEO6P3.js} +1 -1
- package/dist/ui/{chunk-VO6NF24F.js → chunk-LS2NXZQZ.js} +1 -1
- package/dist/ui/{chunk-J3YWUNFO.js → chunk-LTQTJU54.js} +1 -1
- package/dist/ui/{chunk-6BG7PBUN.js → chunk-NGIFGXW7.js} +1 -1
- package/dist/ui/{chunk-5W6J6H76.js → chunk-SBCO7ZSP.js} +1 -1
- package/dist/ui/chunk-VB56BUGO.js +1 -0
- package/dist/ui/{chunk-UXCAEDR6.js → chunk-VDQLDTTR.js} +1 -1
- package/dist/ui/{chunk-AD7RBRD3.js → chunk-WJLIYGWJ.js} +5 -5
- package/dist/ui/index.html +2 -2
- package/dist/ui/{main-TZL26MZU.js → main-LGW7AYEA.js} +2 -2
- package/dist/ui/{styles-IKG3B6AM.css → styles-CDN434T2.css} +1 -1
- package/package.json +10 -7
- package/dist/ui/chunk-BGDH7CDV.js +0 -1
- package/dist/ui/chunk-H2J55DNK.js +0 -7
- package/dist/ui/chunk-Q7L6LLAK.js +0 -1
- package/dist/ui/chunk-VH5GRUT7.js +0 -255
- package/dist/ui/chunk-XCUOAV77.js +0 -123
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var ft=Object.defineProperty,ve=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,be=(e,t,n)=>t in e?ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t)=>{for(var n in t||(t={}))pt.call(t,n)&&be(e,n,t[n]);if(ve)for(var n of ve(t))ht.call(t,n)&&be(e,n,t[n]);return e};function W(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0}function oe(e,t,n=new WeakSet){if(e===t)return!0;if(!e||!t||typeof e!="object"||typeof t!="object"||n.has(e)||n.has(t))return!1;n.add(e).add(t);let r=Array.isArray(e),i=Array.isArray(t),l,o,s;if(r&&i){if(o=e.length,o!=t.length)return!1;for(l=o;l--!==0;)if(!oe(e[l],t[l],n))return!1;return!0}if(r!=i)return!1;let a=e instanceof Date,u=t instanceof Date;if(a!=u)return!1;if(a&&u)return e.getTime()==t.getTime();let d=e instanceof RegExp,p=t instanceof RegExp;if(d!=p)return!1;if(d&&p)return e.toString()==t.toString();let c=Object.keys(e);if(o=c.length,o!==Object.keys(t).length)return!1;for(l=o;l--!==0;)if(!Object.prototype.hasOwnProperty.call(t,c[l]))return!1;for(l=o;l--!==0;)if(s=c[l],!oe(e[s],t[s],n))return!1;return!0}function gt(e,t){return oe(e,t)}function xe(e){return typeof e=="function"&&"call"in e&&"apply"in e}function h(e){return!W(e)}function Se(e,t){if(!e||!t)return null;try{let n=e[t];if(h(n))return n}catch{}if(Object.keys(e).length){if(xe(t))return t(e);if(t.indexOf(".")===-1)return e[t];{let n=t.split("."),r=e;for(let i=0,l=n.length;i<l;++i){if(r==null)return null;r=r[n[i]]}return r}}return null}function yt(e,t,n){return n?Se(e,n)===Se(t,n):gt(e,t)}function Bt(e,t){if(e!=null&&t&&t.length){for(let n of t)if(yt(e,n))return!0}return!1}function C(e,t=!0){return e instanceof Object&&e.constructor===Object&&(t||Object.keys(e).length!==0)}function Ce(e={},t={}){let n=mt({},e);return Object.keys(t).forEach(r=>{let i=r;C(t[i])&&i in e&&C(e[i])?n[i]=Ce(e[i],t[i]):n[i]=t[i]}),n}function N(...e){return e.reduce((t,n,r)=>r===0?n:Ce(t,n),{})}function It(e,t){let n=-1;if(h(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}function $(e,...t){return xe(e)?e(...t):e}function O(e,t=!0){return typeof e=="string"&&(t||e!=="")}function we(e){return O(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function le(e,t="",n={}){let r=we(t).split("."),i=r.shift();if(i){if(C(e)){let l=Object.keys(e).find(o=>we(o)===i)||"";return le($(e[l],n),r.join("."),n)}return}return $(e,n)}function Ee(e,t=!0){return Array.isArray(e)&&(t||e.length!==0)}function Mt(e){return e instanceof Date}function ne(e){return h(e)&&!isNaN(e)}function Ht(e=""){return h(e)&&e.length===1&&!!e.match(/\S| /)}function w(e,t){if(t){let n=t.test(e);return t.lastIndex=0,n}return!1}function se(...e){return N(...e)}function ae(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function Ut(e){if(e&&/[\xC0-\xFF\u0100-\u017E]/.test(e)){let t={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function re(e){return O(e)?e.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():e}function Kt(e){return e==="auto"?0:typeof e=="number"?e:Number(e.replace(/[^\d.]/g,"").replace(",","."))*1e3}function $e(){let e=new Map;return{on(t,n){let r=e.get(t);return r?r.push(n):r=[n],e.set(t,r),this},off(t,n){let r=e.get(t);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(t,n){let r=e.get(t);r&&r.forEach(i=>{i(n)})},clear(){e.clear()}}}function vt(e,t){return e?e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className):!1}function Oe(e,t){if(e&&t){let n=r=>{vt(e,r)||(e.classList?e.classList.add(r):e.className+=" "+r)};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function bt(){return window.innerWidth-document.documentElement.offsetWidth}function Xt(e){typeof e=="string"?Oe(document.body,e||"p-overflow-hidden"):(e!=null&&e.variableName&&document.body.style.setProperty(e.variableName,bt()+"px"),Oe(document.body,e?.className||"p-overflow-hidden"))}function ke(e,t){if(e&&t){let n=r=>{e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[t].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Zt(e){typeof e=="string"?ke(document.body,e||"p-overflow-hidden"):(e!=null&&e.variableName&&document.body.style.removeProperty(e.variableName),ke(document.body,e?.className||"p-overflow-hidden"))}function ue(e){for(let t of document?.styleSheets)try{for(let n of t?.cssRules)for(let r of n?.style)if(e.test(r))return{name:r,value:n.style.getPropertyValue(r).trim()}}catch{}return null}function Ae(e){let t={width:0,height:0};if(e){let[n,r]=[e.style.visibility,e.style.display],i=e.getBoundingClientRect();e.style.visibility="hidden",e.style.display="block",t.width=i.width||e.offsetWidth,t.height=i.height||e.offsetHeight,e.style.display=r,e.style.visibility=n}return t}function Ne(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0],i=e.innerWidth||n.clientWidth||r.clientWidth,l=e.innerHeight||n.clientHeight||r.clientHeight;return{width:i,height:l}}function de(e){return e?Math.abs(e.scrollLeft):0}function St(){let e=document.documentElement;return(window.pageXOffset||de(e))-(e.clientLeft||0)}function wt(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function xt(e){return e?getComputedStyle(e).direction==="rtl":!1}function Gt(e,t,n=!0){var r,i,l,o;if(e){let s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Ae(e),a=s.height,u=s.width,d=t.offsetHeight,p=t.offsetWidth,c=t.getBoundingClientRect(),f=wt(),g=St(),v=Ne(),y,b,S="top";c.top+d+a>v.height?(y=c.top+f-a,S="bottom",y<0&&(y=f)):y=d+c.top+f,c.left+u>v.width?b=Math.max(0,c.left+g+p-u):b=c.left+g,xt(e)?e.style.insetInlineEnd=b+"px":e.style.insetInlineStart=b+"px",e.style.top=y+"px",e.style.transformOrigin=S,n&&(e.style.marginTop=S==="bottom"?`calc(${(i=(r=ue(/-anchor-gutter$/))==null?void 0:r.value)!=null?i:"2px"} * -1)`:(o=(l=ue(/-anchor-gutter$/))==null?void 0:l.value)!=null?o:"")}}function Yt(e,t){e&&(typeof t=="string"?e.style.cssText=t:Object.entries(t||{}).forEach(([n,r])=>e.style[n]=r))}function Jt(e,t){if(e instanceof HTMLElement){let n=e.offsetWidth;if(t){let r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}function Qt(e,t,n=!0,r=void 0){var i;if(e){let l=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Ae(e),o=t.offsetHeight,s=t.getBoundingClientRect(),a=Ne(),u,d,p=r??"top";if(!r&&s.top+o+l.height>a.height?(u=-1*l.height,p="bottom",s.top+u<0&&(u=-1*s.top)):u=o,l.width>a.width?d=s.left*-1:s.left+l.width>a.width?d=(s.left+l.width-a.width)*-1:d=0,e.style.top=u+"px",e.style.insetInlineStart=d+"px",e.style.transformOrigin=p,n){let c=(i=ue(/-anchor-gutter$/))==null?void 0:i.value;e.style.marginTop=p==="bottom"?`calc(${c??"2px"} * -1)`:c??""}}}function Pe(e){if(e){let t=e.parentNode;return t&&t instanceof ShadowRoot&&t.host&&(t=t.host),t}return null}function Ct(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&Pe(e))}function T(e){return typeof Element<"u"?e instanceof Element:e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.nodeName=="string"}function je(e){let t=e;return e&&typeof e=="object"&&(Object.hasOwn(e,"current")?t=e.current:Object.hasOwn(e,"el")&&(Object.hasOwn(e.el,"nativeElement")?t=e.el.nativeElement:t=e.el)),T(t)?t:void 0}function Et(e,t){var n,r,i;if(e)switch(e){case"document":return document;case"window":return window;case"body":return document.body;case"@next":return t?.nextElementSibling;case"@prev":return t?.previousElementSibling;case"@first":return t?.firstElementChild;case"@last":return t?.lastElementChild;case"@child":return(n=t?.children)==null?void 0:n[0];case"@parent":return t?.parentElement;case"@grandparent":return(r=t?.parentElement)==null?void 0:r.parentElement;default:{if(typeof e=="string"){let s=e.match(/^@child\[(\d+)]/);return s?((i=t?.children)==null?void 0:i[parseInt(s[1],10)])||null:document.querySelector(e)||null}let l=(s=>typeof s=="function"&&"call"in s&&"apply"in s)(e)?e():e,o=je(l);return Ct(o)?o:l?.nodeType===9?l:void 0}}}function en(e,t){let n=Et(e,t);if(n)n.appendChild(t);else throw new Error("Cannot append "+t+" to "+e)}function Te(e,t={}){if(T(e)){let n=(r,i)=>{var l,o;let s=(l=e?.$attrs)!=null&&l[r]?[(o=e?.$attrs)==null?void 0:o[r]]:[];return[i].flat().reduce((a,u)=>{if(u!=null){let d=typeof u;if(d==="string"||d==="number")a.push(u);else if(d==="object"){let p=Array.isArray(u)?n(r,u):Object.entries(u).map(([c,f])=>r==="style"&&(f||f===0)?`${c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${f}`:f?c:void 0);a=p.length?a.concat(p.filter(c=>!!c)):a}}return a},s)};Object.entries(t).forEach(([r,i])=>{if(i!=null){let l=r.match(/^on(.+)/);l?e.addEventListener(l[1].toLowerCase(),i):r==="p-bind"||r==="pBind"?Te(e,i):(i=r==="class"?[...new Set(n("class",i))].join(" ").trim():r==="style"?n("style",i).join(";").trim():i,(e.$attrs=e.$attrs||{})&&(e.$attrs[r]=i),e.setAttribute(r,i))}})}}function tn(e,t={},...n){if(e){let r=document.createElement(e);return Te(r,t),r.append(...n),r}}function Le(e,t={}){return e?`<style${Object.entries(t).reduce((n,[r,i])=>n+` ${r}="${i}"`,"")}>${e}</style>`:""}function nn(e,t){if(e){e.style.opacity="0";let n=+new Date,r="0",i=function(){r=`${+e.style.opacity+(new Date().getTime()-n)/t}`,e.style.opacity=r,n=+new Date,+r<1&&("requestAnimationFrame"in window?requestAnimationFrame(i):setTimeout(i,16))};i()}}function $t(e,t){return T(e)?Array.from(e.querySelectorAll(t)):[]}function rn(e,t){return T(e)?e.matches(t)?e:e.querySelector(t):null}function on(e,t){e&&document.activeElement!==e&&e.focus(t)}function ln(e,t){if(T(e)){let n=e.getAttribute(t);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function _e(e,t=""){let n=$t(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
2
|
+
[href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${t},
|
|
3
|
+
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
4
|
+
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
5
|
+
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
6
|
+
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
7
|
+
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`),r=[];for(let i of n)getComputedStyle(i).display!="none"&&getComputedStyle(i).visibility!="hidden"&&r.push(i);return r}function sn(e,t){let n=_e(e,t);return n.length>0?n[0]:null}function an(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0}function un(e){var t;if(e){let n=(t=Pe(e))==null?void 0:t.childNodes,r=0;if(n)for(let i=0;i<n.length;i++){if(n[i]===e)return r;n[i].nodeType===1&&r++}}return-1}function dn(e,t){let n=_e(e,t);return n.length>0?n[n.length-1]:null}function cn(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||de(document.documentElement)||de(document.body)||0)}}return{top:"auto",left:"auto"}}function Ot(e,t){if(e){let n=e.offsetHeight;if(t){let r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}function fn(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function pn(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0}function hn(e){if(e){let t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return t==="INPUT"||t==="TEXTAREA"||t==="BUTTON"||t==="A"||n==="INPUT"||n==="TEXTAREA"||n==="BUTTON"||n==="A"||!!e.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1}function mn(e){return!!(e&&e.offsetParent!=null)}function gn(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window)}function yn(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function vn(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function bn(){return new Promise(e=>{requestAnimationFrame(()=>{requestAnimationFrame(e)})})}function Sn(e){var t;e&&("remove"in Element.prototype?e.remove():(t=e.parentNode)==null||t.removeChild(e))}function wn(e,t){let n=je(e);if(n)n.removeChild(t);else throw new Error("Cannot remove "+t+" from "+e)}function xn(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),l=i?parseFloat(i):0,o=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-r-l,a=e.scrollTop,u=e.clientHeight,d=Ot(t);s<0?e.scrollTop=a+s:s+d>u&&(e.scrollTop=a+s-u+d)}function Cn(e,t="",n){T(e)&&n!==null&&n!==void 0&&e.setAttribute(t,n)}function En(e,t,n=null,r){var i;t&&((i=e?.style)==null||i.setProperty(t,n,r))}var kt=Object.defineProperty,At=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Fe=(e,t,n)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))Be.call(t,n)&&Fe(e,n,t[n]);if(ie)for(var n of ie(t))Ie.call(t,n)&&Fe(e,n,t[n]);return e},j=(e,t)=>At(e,Nt(t)),k=(e,t)=>{var n={};for(var r in e)Be.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ie)for(var r of ie(e))t.indexOf(r)<0&&Ie.call(e,r)&&(n[r]=e[r]);return n};function kn(...e){return N(...e)}var Pt=$e(),P=Pt,A=/{([^}]*)}/g,Me=/(\d+\s+[\+\-\*\/]\s+\d+)/g,He=/var\([^)]+\)/g;function Re(e){return O(e)?e.replace(/[A-Z]/g,(t,n)=>n===0?t:"."+t.toLowerCase()).toLowerCase():e}function jn(e,t){Ee(e)?e.push(...t||[]):C(e)&&Object.assign(e,t)}function jt(e){return C(e)&&e.hasOwnProperty("$value")&&e.hasOwnProperty("$type")?e.$value:e}function Tn(e,t=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(n=>t.endsWith(n))?e:`${e}`.trim().split(" ").map(n=>ne(n)?`${n}px`:n).join(" ")}function Tt(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ce(e="",t=""){return Tt(`${O(e,!1)&&O(t,!1)?`${e}-`:e}${t}`)}function Ue(e="",t=""){return`--${ce(e,t)}`}function Lt(e=""){let t=(e.match(/{/g)||[]).length,n=(e.match(/}/g)||[]).length;return(t+n)%2!==0}function Ke(e,t="",n="",r=[],i){if(O(e)){let l=e.trim();if(Lt(l))return;if(w(l,A)){let o=l.replaceAll(A,s=>{let a=s.replace(/{|}/g,"").split(".").filter(u=>!r.some(d=>w(u,d)));return`var(${Ue(n,re(a.join("-")))}${h(i)?`, ${i}`:""})`});return w(o.replace(He,"0"),Me)?`calc(${o})`:o}return l}else if(ne(e))return e}function Ln(e={},t){if(O(t)){let n=t.trim();return w(n,A)?n.replaceAll(A,r=>le(e,r.replace(/{|}/g,""))):n}else if(ne(t))return t}function _t(e,t,n){O(t,!1)&&e.push(`${t}:${n};`)}function L(e,t){return e?`${e}{${t}}`:""}function qe(e,t){if(e.indexOf("dt(")===-1)return e;function n(o,s){let a=[],u=0,d="",p=null,c=0;for(;u<=o.length;){let f=o[u];if((f==='"'||f==="'"||f==="`")&&o[u-1]!=="\\"&&(p=p===f?null:f),!p&&(f==="("&&c++,f===")"&&c--,(f===","||u===o.length)&&c===0)){let g=d.trim();g.startsWith("dt(")?a.push(qe(g,s)):a.push(r(g)),d="",u++;continue}f!==void 0&&(d+=f),u++}return a}function r(o){let s=o[0];if((s==='"'||s==="'"||s==="`")&&o[o.length-1]===s)return o.slice(1,-1);let a=Number(o);return isNaN(a)?o:a}let i=[],l=[];for(let o=0;o<e.length;o++)if(e[o]==="d"&&e.slice(o,o+3)==="dt(")l.push(o),o+=2;else if(e[o]===")"&&l.length>0){let s=l.pop();l.length===0&&i.push([s,o])}if(!i.length)return e;for(let o=i.length-1;o>=0;o--){let[s,a]=i[o],u=e.slice(s+3,a),d=n(u,t),p=t(...d);e=e.slice(0,s)+p+e.slice(a+1)}return e}function Ve(e){return e.length===4?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e}function We(e){let t=parseInt(e.substring(1),16),n=t>>16&255,r=t>>8&255,i=t&255;return{r:n,g:r,b:i}}function Ft(e,t,n){return`#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}var ze=(e,t,n)=>{e=Ve(e),t=Ve(t);let r=(n/100*2-1+1)/2,i=1-r,l=We(e),o=We(t),s=Math.round(l.r*r+o.r*i),a=Math.round(l.g*r+o.g*i),u=Math.round(l.b*r+o.b*i);return Ft(s,a,u)},Rt=(e,t)=>ze("#000000",e,t),Vt=(e,t)=>ze("#ffffff",e,t),De=[50,100,200,300,400,500,600,700,800,900,950],Rn=e=>{if(w(e,A)){let t=e.replace(/{|}/g,"");return De.reduce((n,r)=>(n[r]=`{${t}.${r}}`,n),{})}return typeof e=="string"?De.reduce((t,n,r)=>(t[n]=r<=5?Vt(e,(5-r)*19):Rt(e,(r-5)*15),t),{}):e},Dn=e=>{var t;let n=x.getTheme(),r=fe(n,e,void 0,"variable"),i=(t=r?.match(/--[\w-]+/g))==null?void 0:t[0],l=fe(n,e,void 0,"value");return{name:i,variable:r,value:l}},D=(...e)=>fe(x.getTheme(),...e),fe=(e={},t,n,r)=>{if(t){let{variable:i,options:l}=x.defaults||{},{prefix:o,transform:s}=e?.options||l||{},a=w(t,A)?t:`{${t}}`;return r==="value"||W(r)&&s==="strict"?x.getTokenValue(t):Ke(a,void 0,o,[i.excludedKeyRegex],n)}return""};function Bn(e,...t){if(e instanceof Array){let n=e.reduce((r,i,l)=>{var o;return r+i+((o=$(t[l],{dt:D}))!=null?o:"")},"");return qe(n,D)}return $(e,{dt:D})}var pe=(e={})=>{let{preset:t,options:n}=e;return{preset(r){return t=t?se(t,r):r,this},options(r){return n=n?m(m({},n),r):r,this},primaryPalette(r){let{semantic:i}=t||{};return t=j(m({},t),{semantic:j(m({},i),{primary:r})}),this},surfacePalette(r){var i,l;let{semantic:o}=t||{},s=r&&Object.hasOwn(r,"light")?r.light:r,a=r&&Object.hasOwn(r,"dark")?r.dark:r,u={colorScheme:{light:m(m({},(i=o?.colorScheme)==null?void 0:i.light),!!s&&{surface:s}),dark:m(m({},(l=o?.colorScheme)==null?void 0:l.dark),!!a&&{surface:a})}};return t=j(m({},t),{semantic:m(m({},o),u)}),this},define({useDefaultPreset:r=!1,useDefaultOptions:i=!1}={}){return{preset:r?x.getPreset():t,options:i?x.getOptions():n}},update({mergePresets:r=!0,mergeOptions:i=!0}={}){let l={preset:r?se(x.getPreset(),t):t,options:i?m(m({},x.getOptions()),n):n};return x.setTheme(l),l},use(r){let i=this.define(r);return x.setTheme(i),i}}};function Wt(e,t={}){let n=x.defaults.variable,{prefix:r=n.prefix,selector:i=n.selector,excludedKeyRegex:l=n.excludedKeyRegex}=t,o=[],s=[],a=[{node:e,path:r}];for(;a.length;){let{node:d,path:p}=a.pop();for(let c in d){let f=d[c],g=jt(f),v=w(c,l)?ce(p):ce(p,re(c));if(C(g))a.push({node:g,path:v});else{let y=Ue(v),b=Ke(g,v,r,[l]);_t(s,y,b);let S=v;r&&S.startsWith(r+"-")&&(S=S.slice(r.length+1)),o.push(S.replace(/-/g,"."))}}}let u=s.join("");return{value:s,tokens:o,declarations:u,css:L(i,u)}}var E={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return{type:"class",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return{type:"attr",selector:`:root${e},:host${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:"media",selector:e,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return{type:"custom",selector:e,matched:!0}}}},resolve(e){let t=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[e].flat().map(n=>{var r;return(r=t.map(i=>i.resolve(n)).find(i=>i.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(e,t){return Wt(e,{prefix:t?.prefix})},getCommon({name:e="",theme:t={},params:n,set:r,defaults:i}){var l,o,s,a,u,d,p;let{preset:c,options:f}=t,g,v,y,b,S,_,B;if(h(c)&&f.transform!=="strict"){let{primitive:I,semantic:M,extend:H}=c,F=M||{},{colorScheme:U}=F,K=k(F,["colorScheme"]),q=H||{},{colorScheme:z}=q,R=k(q,["colorScheme"]),V=U||{},{dark:X}=V,Z=k(V,["dark"]),G=z||{},{dark:Y}=G,J=k(G,["dark"]),Q=h(I)?this._toVariables({primitive:I},f):{},ee=h(K)?this._toVariables({semantic:K},f):{},te=h(Z)?this._toVariables({light:Z},f):{},he=h(X)?this._toVariables({dark:X},f):{},me=h(R)?this._toVariables({semantic:R},f):{},ge=h(J)?this._toVariables({light:J},f):{},ye=h(Y)?this._toVariables({dark:Y},f):{},[Xe,Ze]=[(l=Q.declarations)!=null?l:"",Q.tokens],[Ge,Ye]=[(o=ee.declarations)!=null?o:"",ee.tokens||[]],[Je,Qe]=[(s=te.declarations)!=null?s:"",te.tokens||[]],[et,tt]=[(a=he.declarations)!=null?a:"",he.tokens||[]],[nt,rt]=[(u=me.declarations)!=null?u:"",me.tokens||[]],[it,ot]=[(d=ge.declarations)!=null?d:"",ge.tokens||[]],[lt,st]=[(p=ye.declarations)!=null?p:"",ye.tokens||[]];g=this.transformCSS(e,Xe,"light","variable",f,r,i),v=Ze;let at=this.transformCSS(e,`${Ge}${Je}`,"light","variable",f,r,i),ut=this.transformCSS(e,`${et}`,"dark","variable",f,r,i);y=`${at}${ut}`,b=[...new Set([...Ye,...Qe,...tt])];let dt=this.transformCSS(e,`${nt}${it}color-scheme:light`,"light","variable",f,r,i),ct=this.transformCSS(e,`${lt}color-scheme:dark`,"dark","variable",f,r,i);S=`${dt}${ct}`,_=[...new Set([...rt,...ot,...st])],B=$(c.css,{dt:D})}return{primitive:{css:g,tokens:v},semantic:{css:y,tokens:b},global:{css:S,tokens:_},style:B}},getPreset({name:e="",preset:t={},options:n,params:r,set:i,defaults:l,selector:o}){var s,a,u;let d,p,c;if(h(t)&&n.transform!=="strict"){let f=e.replace("-directive",""),g=t,{colorScheme:v,extend:y,css:b}=g,S=k(g,["colorScheme","extend","css"]),_=y||{},{colorScheme:B}=_,I=k(_,["colorScheme"]),M=v||{},{dark:H}=M,F=k(M,["dark"]),U=B||{},{dark:K}=U,q=k(U,["dark"]),z=h(S)?this._toVariables({[f]:m(m({},S),I)},n):{},R=h(F)?this._toVariables({[f]:m(m({},F),q)},n):{},V=h(H)?this._toVariables({[f]:m(m({},H),K)},n):{},[X,Z]=[(s=z.declarations)!=null?s:"",z.tokens||[]],[G,Y]=[(a=R.declarations)!=null?a:"",R.tokens||[]],[J,Q]=[(u=V.declarations)!=null?u:"",V.tokens||[]],ee=this.transformCSS(f,`${X}${G}`,"light","variable",n,i,l,o),te=this.transformCSS(f,J,"dark","variable",n,i,l,o);d=`${ee}${te}`,p=[...new Set([...Z,...Y,...Q])],c=$(b,{dt:D})}return{css:d,tokens:p,style:c}},getPresetC({name:e="",theme:t={},params:n,set:r,defaults:i}){var l;let{preset:o,options:s}=t,a=(l=o?.components)==null?void 0:l[e];return this.getPreset({name:e,preset:a,options:s,params:n,set:r,defaults:i})},getPresetD({name:e="",theme:t={},params:n,set:r,defaults:i}){var l,o;let s=e.replace("-directive",""),{preset:a,options:u}=t,d=((l=a?.components)==null?void 0:l[s])||((o=a?.directives)==null?void 0:o[s]);return this.getPreset({name:s,preset:d,options:u,params:n,set:r,defaults:i})},applyDarkColorScheme(e){return!(e.darkModeSelector==="none"||e.darkModeSelector===!1)},getColorSchemeOption(e,t){var n;return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===!0?t.options.darkModeSelector:(n=e.darkModeSelector)!=null?n:t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,r){let{cssLayer:i}=t;return i?`@layer ${$(i.order||i.name||"primeui",n)}`:""},getCommonStyleSheet({name:e="",theme:t={},params:n,props:r={},set:i,defaults:l}){let o=this.getCommon({name:e,theme:t,params:n,set:i,defaults:l}),s=Object.entries(r).reduce((a,[u,d])=>a.push(`${u}="${d}"`)&&a,[]).join(" ");return Object.entries(o||{}).reduce((a,[u,d])=>{if(C(d)&&Object.hasOwn(d,"css")){let p=ae(d.css),c=`${u}-variables`;a.push(`<style type="text/css" data-primevue-style-id="${c}" ${s}>${p}</style>`)}return a},[]).join("")},getStyleSheet({name:e="",theme:t={},params:n,props:r={},set:i,defaults:l}){var o;let s={name:e,theme:t,params:n,set:i,defaults:l},a=(o=e.includes("-directive")?this.getPresetD(s):this.getPresetC(s))==null?void 0:o.css,u=Object.entries(r).reduce((d,[p,c])=>d.push(`${p}="${c}"`)&&d,[]).join(" ");return a?`<style type="text/css" data-primevue-style-id="${e}-variables" ${u}>${ae(a)}</style>`:""},createTokens(e={},t,n="",r="",i={}){let l=function(s,a={},u=[]){if(u.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:s,path:this.path,paths:a,value:void 0};u.push(this.path),a.name=this.path,a.binding||(a.binding={});let d=this.value;if(typeof this.value=="string"&&A.test(this.value)){let p=this.value.trim().replace(A,c=>{var f;let g=c.slice(1,-1),v=this.tokens[g];if(!v)return console.warn(`Token not found for path: ${g}`),"__UNRESOLVED__";let y=v.computed(s,a,u);return Array.isArray(y)&&y.length===2?`light-dark(${y[0].value},${y[1].value})`:(f=y?.value)!=null?f:"__UNRESOLVED__"});d=Me.test(p.replace(He,"0"))?`calc(${p})`:p}return W(a.binding)&&delete a.binding,u.pop(),{colorScheme:s,path:this.path,paths:a,value:d.includes("__UNRESOLVED__")?void 0:d}},o=(s,a,u)=>{Object.entries(s).forEach(([d,p])=>{let c=w(d,t.variable.excludedKeyRegex)?a:a?`${a}.${Re(d)}`:Re(d),f=u?`${u}.${d}`:d;C(p)?o(p,c,f):(i[c]||(i[c]={paths:[],computed:(g,v={},y=[])=>{if(i[c].paths.length===1)return i[c].paths[0].computed(i[c].paths[0].scheme,v.binding,y);if(g&&g!=="none")for(let b=0;b<i[c].paths.length;b++){let S=i[c].paths[b];if(S.scheme===g)return S.computed(g,v.binding,y)}return i[c].paths.map(b=>b.computed(b.scheme,v[b.scheme],y))}}),i[c].paths.push({path:f,value:p,scheme:f.includes("colorScheme.light")?"light":f.includes("colorScheme.dark")?"dark":"none",computed:l,tokens:i}))})};return o(e,n,r),i},getTokenValue(e,t,n){var r;let i=(s=>s.split(".").filter(a=>!w(a.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(t),l=t.includes("colorScheme.light")?"light":t.includes("colorScheme.dark")?"dark":void 0,o=[(r=e[i])==null?void 0:r.computed(l)].flat().filter(s=>s);return o.length===1?o[0].value:o.reduce((s={},a)=>{let u=a,{colorScheme:d}=u,p=k(u,["colorScheme"]);return s[d]=p,s},void 0)},getSelectorRule(e,t,n,r){return n==="class"||n==="attr"?L(h(t)?`${e}${t},${e} ${t}`:e,r):L(e,L(t??":root,:host",r))},transformCSS(e,t,n,r,i={},l,o,s){if(h(t)){let{cssLayer:a}=i;if(r!=="style"){let u=this.getColorSchemeOption(i,o);t=n==="dark"?u.reduce((d,{type:p,selector:c})=>(h(c)&&(d+=c.includes("[CSS]")?c.replace("[CSS]",t):this.getSelectorRule(c,s,p,t)),d),""):L(s??":root,:host",t)}if(a){let u={name:"primeui",order:"primeui"};C(a)&&(u.name=$(a.name,{name:e,type:r})),h(u.name)&&(t=L(`@layer ${u.name}`,t),l?.layerNames(u.name))}return t}return""}},x={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){let{theme:t}=e;t&&(this._theme=j(m({},t),{options:m(m({},this.defaults.options),t.options)}),this._tokens=E.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return((e=this.theme)==null?void 0:e.preset)||{}},get options(){var e;return((e=this.theme)==null?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),P.emit("theme:change",e)},getPreset(){return this.preset},setPreset(e){this._theme=j(m({},this.theme),{preset:e}),this._tokens=E.createTokens(e,this.defaults),this.clearLoadedStyleNames(),P.emit("preset:change",e),P.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=j(m({},this.theme),{options:e}),this.clearLoadedStyleNames(),P.emit("options:change",e),P.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return E.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",t){return E.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e="",t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return E.getPresetC(n)},getDirective(e="",t){let n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return E.getPresetD(n)},getCustomPreset(e="",t,n,r){let i={name:e,preset:t,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return E.getPreset(i)},getLayerOrderCSS(e=""){return E.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",t,n="style",r){return E.transformCSS(e,t,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",t,n={}){return E.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return E.getStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:t}){this._loadingStyles.size&&(this._loadingStyles.delete(t),P.emit(`theme:${t}:load`,e),!this._loadingStyles.size&&P.emit("theme:load"))}};function Hn(...e){let t=N(x.getPreset(),...e);return x.setPreset(t),t}function Un(e){return pe().primaryPalette(e).update().preset}function Kn(e){return pe().surfacePalette(e).update().preset}function zn(...e){let t=N(...e);return x.setPreset(t),t}function Xn(e){return pe(e).update({mergePresets:!1})}var Dt=class{constructor({attrs:e}={}){this._styles=new Map,this._attrs=e||{}}get(e){return this._styles.get(e)}has(e){return this._styles.has(e)}delete(e){this._styles.delete(e)}clear(){this._styles.clear()}add(e,t){if(h(t)){let n={name:e,css:t,attrs:this._attrs,markup:Le(t,this._attrs)};this._styles.set(e,j(m({},n),{element:this.createStyleElement(n)}))}}update(){}getStyles(){return this._styles}getAllCSS(){return[...this._styles.values()].map(e=>e.css).filter(String)}getAllMarkup(){return[...this._styles.values()].map(e=>e.markup).filter(String)}getAllElements(){return[...this._styles.values()].map(e=>e.element)}createStyleElement(e={}){}},Gn=Dt;export{vt as a,Oe as b,Xt as c,ke as d,Zt as e,ue as f,Ae as g,Ne as h,St as i,wt as j,Gt as k,Yt as l,Jt as m,Qt as n,Et as o,en as p,Te as q,tn as r,nn as s,$t as t,rn as u,on as v,ln as w,_e as x,sn as y,an as z,un as A,dn as B,cn as C,Ot as D,fn as E,pn as F,hn as G,mn as H,gn as I,yn as J,vn as K,bn as L,Sn as M,wn as N,xn as O,Cn as P,En as Q,W as R,gt as S,xe as T,h as U,Se as V,yt as W,Bt as X,It as Y,$ as Z,O as _,we as $,le as aa,Ee as ba,Mt as ca,Ht as da,ae as ea,Ut as fa,Kt as ga,kn as ha,P as ia,A as ja,Me as ka,He as la,Re as ma,jn as na,jt as oa,Tn as pa,Tt as qa,ce as ra,Ue as sa,Lt as ta,Ke as ua,Ln as va,_t as wa,L as xa,qe as ya,ze as za,Rt as Aa,Vt as Ba,Rn as Ca,Dn as Da,D as Ea,fe as Fa,Bn as Ga,pe as Ha,Wt as Ia,E as Ja,x as Ka,Hn as La,Un as Ma,Kn as Na,zn as Oa,Xn as Pa,Gn as Qa};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as wn,c as Tn,d as In,e as kn}from"./chunk-
|
|
1
|
+
import{a as wn,c as Tn,d as In,e as kn}from"./chunk-FEPH4VNB.js";import{e as tn,j as mi,n as gn,o as bn,u as fi,v as yn,x as gi}from"./chunk-FQOZBFJ5.js";import{a as nt,b as bi,c as Lt,d as Sn,e as Rt,f as Mn,h as En,i as Dn,j as On}from"./chunk-VDQLDTTR.js";import{a as ht,b as hi,d as Ft,e as qe,f as vn,g as Bt,h as wt,i as Tt,j as ct,l as mt,m as xn,n as Cn}from"./chunk-LS2NXZQZ.js";import{$ as I,$a as M,$c as Wt,Aa as V,Ba as p,Bb as ft,Cb as gt,Cc as dn,Db as bt,Dc as Ri,Ec as Et,Fc as ut,Gc as pn,Hb as se,Hc as un,I as Ge,Ib as rt,Ic as he,J as de,Jb as j,Jc as W,K as ke,Ka as C,Kb as Ee,Kc as De,La as Yi,Lb as oi,Lc as Ie,M as pe,Ma as Zi,Mb as Oi,Na as ye,Nb as ai,O as R,Oa as ve,Ob as Kt,Oc as fe,Pb as Xi,Pc as Le,Qb as J,Qc as U,Rc as hn,Sc as Dt,T as _,Ta as r,Tb as ie,Tc as Ut,U as f,Ua as u,Uc as tt,V as T,Va as m,Vc as $,Wa as F,Wc as ze,X as ti,Xa as ne,Xb as Y,Xc as mn,Ya as oe,Yc as _n,Za as K,Zc as ui,_a as S,_c as q,aa as Ae,ab as E,ad as Ot,bc as en,bd as Ct,cc as w,cd as Vt,d as St,da as Oe,db as P,dc as X,dd as Q,ea as ii,eb as xe,ed as fn,fb as k,fd as it,ga as D,hb as s,ib as dt,jb as We,jc as Je,kb as Ve,lb as Fe,lc as je,mb as b,mc as we,nb as y,nc as He,nd as _i,oa as c,oc as Te,pc as ue,qc as Xe,rb as Me,sa as _e,sb as Pe,ub as Ce,vb as g,wa as O,wb as H,xa as Se,xb as ee,ya as ni,yb as le,za as be,zb as Ji,zc as ce}from"./chunk-LTQTJU54.js";import{A as jt,B as ci,E as an,F as xt,G as rn,H as Bi,K as lt,O as ln,P as qt,R as Li,S as di,U as Ne,V as Ke,W as st,X as sn,Y as pt,a as Ye,b as $t,ba as cn,ca as Qt,d as nn,da as pi,k as Gt,l as Vi,m as ri,n as li,o as on,p as Mt,t as et,u as ae,v as Be,w as Fi,x as yt,y as si,z as vt}from"./chunk-3SI3TVER.js";import{a as me,b as Ue}from"./chunk-VB56BUGO.js";var Vn=`
|
|
2
2
|
.p-datatable {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: block;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-Q7L6LLAK.js";var{entries:yt,setPrototypeOf:mt,isFrozen:Kt,getPrototypeOf:Zt,getOwnPropertyDescriptor:Jt}=Object,{freeze:y,seal:N,create:X}=Object,{apply:Fe,construct:He}=typeof Reflect<"u"&&Reflect;y||(y=function(n){return n});N||(N=function(n){return n});Fe||(Fe=function(n,l){for(var a=arguments.length,f=new Array(a>2?a-2:0),b=2;b<a;b++)f[b-2]=arguments[b];return n.apply(l,f)});He||(He=function(n){for(var l=arguments.length,a=new Array(l>1?l-1:0),f=1;f<l;f++)a[f-1]=arguments[f];return new n(...a)});var ee=T(Array.prototype.forEach),Qt=T(Array.prototype.lastIndexOf),pt=T(Array.prototype.pop),te=T(Array.prototype.push),en=T(Array.prototype.splice),O=Array.isArray,ie=T(String.prototype.toLowerCase),Pe=T(String.prototype.toString),Tt=T(String.prototype.match),Y=T(String.prototype.replace),dt=T(String.prototype.indexOf),tn=T(String.prototype.trim),nn=T(Number.prototype.toString),on=T(Boolean.prototype.toString),_t=typeof BigInt>"u"?null:T(BigInt.prototype.toString),Et=typeof Symbol>"u"?null:T(Symbol.prototype.toString),u=T(Object.prototype.hasOwnProperty),ne=T(Object.prototype.toString),g=T(RegExp.prototype.test),de=rn(TypeError);function T(i){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),f=1;f<l;f++)a[f-1]=arguments[f];return Fe(i,n,a)}}function rn(i){return function(){for(var n=arguments.length,l=new Array(n),a=0;a<n;a++)l[a]=arguments[a];return He(i,l)}}function s(i,n){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie;if(mt&&mt(i,null),!O(n))return i;let a=n.length;for(;a--;){let f=n[a];if(typeof f=="string"){let b=l(f);b!==f&&(Kt(n)||(n[a]=b),f=b)}i[f]=!0}return i}function an(i){for(let n=0;n<i.length;n++)u(i,n)||(i[n]=null);return i}function I(i){let n=X(null);for(let[l,a]of yt(i))u(i,l)&&(O(a)?n[l]=an(a):a&&typeof a=="object"&&a.constructor===Object?n[l]=I(a):n[l]=a);return n}function sn(i){switch(typeof i){case"string":return i;case"number":return nn(i);case"boolean":return on(i);case"bigint":return _t?_t(i):"0";case"symbol":return Et?Et(i):"Symbol()";case"undefined":return ne(i);case"function":case"object":{if(i===null)return ne(i);let n=i,l=j(n,"toString");if(typeof l=="function"){let a=l(n);return typeof a=="string"?a:ne(a)}return ne(i)}default:return ne(i)}}function j(i,n){for(;i!==null;){let a=Jt(i,n);if(a){if(a.get)return T(a.get);if(typeof a.value=="function")return T(a.value)}i=Zt(i)}function l(){return null}return l}function ln(i){try{return g(i,""),!0}catch{return!1}}var At=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xe=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ke=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cn=y(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ue=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),fn=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gt=y(["#text"]),ht=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ve=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),St=y(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),_e=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),un=N(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mn=N(/<%[\w\W]*|[\w\W]*%>/gm),pn=N(/\$\{[\w\W]*/gm),Tn=N(/^data-[\-\w.\u00B7-\uFFFF]+$/),dn=N(/^aria-[\-\w]+$/),bt=N(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_n=N(/^(?:\w+script|data):/i),En=N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Dt=N(/^html$/i),An=N(/^[a-z][.\w]*(-[.\w]+)+$/i),Rt=Object.freeze({__proto__:null,ARIA_ATTR:dn,ATTR_WHITESPACE:En,CUSTOM_ELEMENT:An,DATA_ATTR:Tn,DOCTYPE_NAME:Dt,ERB_EXPR:mn,IS_ALLOWED_URI:bt,IS_SCRIPT_OR_DATA:_n,MUSTACHE_EXPR:un,TMPLIT_EXPR:pn}),oe={element:1,text:3,progressingInstruction:7,comment:8,document:9},gn=function(){return typeof window>"u"?null:window},hn=function(n,l){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let a=null,f="data-tt-policy-suffix";l&&l.hasAttribute(f)&&(a=l.getAttribute(f));let b="dompurify"+(a?"#"+a:"");try{return n.createPolicy(b,{createHTML(H){return H},createScriptURL(H){return H}})}catch{return console.warn("TrustedTypes policy "+b+" could not be created."),null}},Ot=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function It(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn(),n=r=>It(r);if(n.version="3.4.2",n.removed=[],!i||!i.document||i.document.nodeType!==oe.document||!i.Element)return n.isSupported=!1,n;let{document:l}=i,a=l,f=a.currentScript,{DocumentFragment:b,HTMLTemplateElement:H,Node:Ee,Element:ze,NodeFilter:V,NamedNodeMap:Lt=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:Nt,DOMParser:Ct,trustedTypes:re}=i,$=ze.prototype,Mt=j($,"cloneNode"),wt=j($,"remove"),Pt=j($,"nextSibling"),xt=j($,"childNodes"),ae=j($,"parentNode");if(typeof H=="function"){let r=l.createElement("template");r.content&&r.content.ownerDocument&&(l=r.content.ownerDocument)}let S,q="",{implementation:Ae,createNodeIterator:kt,createDocumentFragment:Ut,getElementsByTagName:vt}=l,{importNode:Ft}=a,R=Ot();n.isSupported=typeof yt=="function"&&typeof ae=="function"&&Ae&&Ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:se,ERB_EXPR:le,TMPLIT_EXPR:ce,DATA_ATTR:Ht,ARIA_ATTR:zt,IS_SCRIPT_OR_DATA:Gt,ATTR_WHITESPACE:Ge,CUSTOM_ELEMENT:Bt}=Rt,{IS_ALLOWED_URI:Be}=Rt,_=null,We=s({},[...At,...xe,...ke,...Ue,...gt]),A=null,Ye=s({},[...ht,...ve,...St,..._e]),m=Object.seal(X(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,fe=null,k=Object.seal(X(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Xe=!0,ge=!0,je=!1,Ve=!0,U=!1,Z=!0,v=!1,he=!1,Se=!1,z=!1,ue=!1,me=!1,$e=!0,qe=!1,Ke="user-content-",Re=!0,J=!1,G={},w=null,Oe=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ze=null,Je=s({},["audio","video","img","source","image","track"]),ye=null,Qe=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pe="http://www.w3.org/1998/Math/MathML",Te="http://www.w3.org/2000/svg",P="http://www.w3.org/1999/xhtml",B=P,be=!1,De=null,Wt=s({},[pe,Te,P],Pe),Ie=s({},["mi","mo","mn","ms","mtext"]),Le=s({},["annotation-xml"]),Yt=s({},["title","style","font","a","script"]),Q=null,Xt=["application/xhtml+xml","text/html"],jt="text/html",d=null,W=null,Vt=l.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(W&&W===e)return;(!e||typeof e!="object")&&(e={}),e=I(e),Q=Xt.indexOf(e.PARSER_MEDIA_TYPE)===-1?jt:e.PARSER_MEDIA_TYPE,d=Q==="application/xhtml+xml"?Pe:ie,_=u(e,"ALLOWED_TAGS")&&O(e.ALLOWED_TAGS)?s({},e.ALLOWED_TAGS,d):We,A=u(e,"ALLOWED_ATTR")&&O(e.ALLOWED_ATTR)?s({},e.ALLOWED_ATTR,d):Ye,De=u(e,"ALLOWED_NAMESPACES")&&O(e.ALLOWED_NAMESPACES)?s({},e.ALLOWED_NAMESPACES,Pe):Wt,ye=u(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)?s(I(Qe),e.ADD_URI_SAFE_ATTR,d):Qe,Ze=u(e,"ADD_DATA_URI_TAGS")&&O(e.ADD_DATA_URI_TAGS)?s(I(Je),e.ADD_DATA_URI_TAGS,d):Je,w=u(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)?s({},e.FORBID_CONTENTS,d):Oe,K=u(e,"FORBID_TAGS")&&O(e.FORBID_TAGS)?s({},e.FORBID_TAGS,d):I({}),fe=u(e,"FORBID_ATTR")&&O(e.FORBID_ATTR)?s({},e.FORBID_ATTR,d):I({}),G=u(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?I(e.USE_PROFILES):e.USE_PROFILES:!1,Xe=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ve=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,Z=e.SAFE_FOR_XML!==!1,v=e.WHOLE_DOCUMENT||!1,z=e.RETURN_DOM||!1,ue=e.RETURN_DOM_FRAGMENT||!1,me=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,$e=e.SANITIZE_DOM!==!1,qe=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,J=e.IN_PLACE||!1,Be=ln(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:bt,B=typeof e.NAMESPACE=="string"?e.NAMESPACE:P,Ie=u(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?I(e.MATHML_TEXT_INTEGRATION_POINTS):s({},["mi","mo","mn","ms","mtext"]),Le=u(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?I(e.HTML_INTEGRATION_POINTS):s({},["annotation-xml"]);let t=u(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?I(e.CUSTOM_ELEMENT_HANDLING):X(null);if(m=X(null),u(t,"tagNameCheck")&&et(t.tagNameCheck)&&(m.tagNameCheck=t.tagNameCheck),u(t,"attributeNameCheck")&&et(t.attributeNameCheck)&&(m.attributeNameCheck=t.attributeNameCheck),u(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),U&&(ge=!1),ue&&(z=!0),G&&(_=s({},gt),A=X(null),G.html===!0&&(s(_,At),s(A,ht)),G.svg===!0&&(s(_,xe),s(A,ve),s(A,_e)),G.svgFilters===!0&&(s(_,ke),s(A,ve),s(A,_e)),G.mathMl===!0&&(s(_,Ue),s(A,St),s(A,_e))),k.tagCheck=null,k.attributeCheck=null,u(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?k.tagCheck=e.ADD_TAGS:O(e.ADD_TAGS)&&(_===We&&(_=I(_)),s(_,e.ADD_TAGS,d))),u(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?k.attributeCheck=e.ADD_ATTR:O(e.ADD_ATTR)&&(A===Ye&&(A=I(A)),s(A,e.ADD_ATTR,d))),u(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)&&s(ye,e.ADD_URI_SAFE_ATTR,d),u(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)&&(w===Oe&&(w=I(w)),s(w,e.FORBID_CONTENTS,d)),u(e,"ADD_FORBID_CONTENTS")&&O(e.ADD_FORBID_CONTENTS)&&(w===Oe&&(w=I(w)),s(w,e.ADD_FORBID_CONTENTS,d)),Re&&(_["#text"]=!0),v&&s(_,["html","head","body"]),_.table&&(s(_,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=e.TRUSTED_TYPES_POLICY,q=S.createHTML("")}else S===void 0&&(S=hn(re,f)),S!==null&&typeof q=="string"&&(q=S.createHTML(""));y&&y(e),W=e},tt=s({},[...xe,...ke,...cn]),nt=s({},[...Ue,...fn]),$t=function(e){let t=ae(e);(!t||!t.tagName)&&(t={namespaceURI:B,tagName:"template"});let o=ie(e.tagName),c=ie(t.tagName);return De[e.namespaceURI]?e.namespaceURI===Te?t.namespaceURI===P?o==="svg":t.namespaceURI===pe?o==="svg"&&(c==="annotation-xml"||Ie[c]):!!tt[o]:e.namespaceURI===pe?t.namespaceURI===P?o==="math":t.namespaceURI===Te?o==="math"&&Le[c]:!!nt[o]:e.namespaceURI===P?t.namespaceURI===Te&&!Le[c]||t.namespaceURI===pe&&!Ie[c]?!1:!nt[o]&&(Yt[o]||!tt[o]):!!(Q==="application/xhtml+xml"&&De[e.namespaceURI]):!1},C=function(e){te(n.removed,{element:e});try{ae(e).removeChild(e)}catch{wt(e)}},F=function(e,t){try{te(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{te(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(z||ue)try{C(t)}catch{}else try{t.setAttribute(e,"")}catch{}},ot=function(e){let t=null,o=null;if(Se)e="<remove></remove>"+e;else{let p=Tt(e,/^[\r\n\t ]+/);o=p&&p[0]}Q==="application/xhtml+xml"&&B===P&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let c=S?S.createHTML(e):e;if(B===P)try{t=new Ct().parseFromString(c,Q)}catch{}if(!t||!t.documentElement){t=Ae.createDocument(B,"template",null);try{t.documentElement.innerHTML=be?q:c}catch{}}let h=t.body||t.documentElement;return e&&o&&h.insertBefore(l.createTextNode(o),h.childNodes[0]||null),B===P?vt.call(t,v?"html":"body")[0]:v?t.documentElement:h},it=function(e){return kt.call(e.ownerDocument||e,e,V.SHOW_ELEMENT|V.SHOW_COMMENT|V.SHOW_TEXT|V.SHOW_PROCESSING_INSTRUCTION|V.SHOW_CDATA_SECTION,null)},Ce=function(e){return e instanceof Nt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Lt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Me=function(e){return typeof Ee=="function"&&e instanceof Ee};function x(r,e,t){ee(r,o=>{o.call(n,e,t,W)})}let rt=function(e){let t=null;if(x(R.beforeSanitizeElements,e,null),Ce(e))return C(e),!0;let o=d(e.nodeName);if(x(R.uponSanitizeElement,e,{tagName:o,allowedTags:_}),Z&&e.hasChildNodes()&&!Me(e.firstElementChild)&&g(/<[/\w!]/g,e.innerHTML)&&g(/<[/\w!]/g,e.textContent)||Z&&e.namespaceURI===P&&o==="style"&&Me(e.firstElementChild)||e.nodeType===oe.progressingInstruction||Z&&e.nodeType===oe.comment&&g(/<[/\w]/g,e.data))return C(e),!0;if(K[o]||!(k.tagCheck instanceof Function&&k.tagCheck(o))&&!_[o]){if(!K[o]&&st(o)&&(m.tagNameCheck instanceof RegExp&&g(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o)))return!1;if(Re&&!w[o]){let c=ae(e)||e.parentNode,h=xt(e)||e.childNodes;if(h&&c){let p=h.length;for(let D=p-1;D>=0;--D){let L=Mt(h[D],!0);c.insertBefore(L,Pt(e))}}}return C(e),!0}return e instanceof ze&&!$t(e)||(o==="noscript"||o==="noembed"||o==="noframes")&&g(/<\/no(script|embed|frames)/i,e.innerHTML)?(C(e),!0):(U&&e.nodeType===oe.text&&(t=e.textContent,ee([se,le,ce],c=>{t=Y(t,c," ")}),e.textContent!==t&&(te(n.removed,{element:e.cloneNode()}),e.textContent=t)),x(R.afterSanitizeElements,e,null),!1)},at=function(e,t,o){if(fe[t]||$e&&(t==="id"||t==="name")&&(o in l||o in Vt))return!1;let c=A[t]||k.attributeCheck instanceof Function&&k.attributeCheck(t,e);if(!(ge&&!fe[t]&&g(Ht,t))){if(!(Xe&&g(zt,t))){if(!c||fe[t]){if(!(st(e)&&(m.tagNameCheck instanceof RegExp&&g(m.tagNameCheck,e)||m.tagNameCheck instanceof Function&&m.tagNameCheck(e))&&(m.attributeNameCheck instanceof RegExp&&g(m.attributeNameCheck,t)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(t,e))||t==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&g(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o))))return!1}else if(!ye[t]){if(!g(Be,Y(o,Ge,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&dt(o,"data:")===0&&Ze[e])){if(!(je&&!g(Gt,Y(o,Ge,"")))){if(o)return!1}}}}}}return!0},qt=s({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),st=function(e){return!qt[ie(e)]&&g(Bt,e)},lt=function(e){x(R.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||Ce(e))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0},c=t.length;for(;c--;){let h=t[c],{name:p,namespaceURI:D,value:L}=h,M=d(p),we=L,E=p==="value"?we:tn(we);if(o.attrName=M,o.attrValue=E,o.keepAttr=!0,o.forceKeepAttr=void 0,x(R.uponSanitizeAttribute,e,o),E=o.attrValue,qe&&(M==="id"||M==="name")&&dt(E,Ke)!==0&&(F(p,e),E=Ke+E),Z&&g(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,E)){F(p,e);continue}if(M==="attributename"&&Tt(E,"href")){F(p,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){F(p,e);continue}if(!Ve&&g(/\/>/i,E)){F(p,e);continue}U&&ee([se,le,ce],ut=>{E=Y(E,ut," ")});let ft=d(e.nodeName);if(!at(ft,M,E)){F(p,e);continue}if(S&&typeof re=="object"&&typeof re.getAttributeType=="function"&&!D)switch(re.getAttributeType(ft,M)){case"TrustedHTML":{E=S.createHTML(E);break}case"TrustedScriptURL":{E=S.createScriptURL(E);break}}if(E!==we)try{D?e.setAttributeNS(D,p,E):e.setAttribute(p,E),Ce(e)?C(e):pt(n.removed)}catch{F(p,e)}}x(R.afterSanitizeAttributes,e,null)},ct=function(e){let t=null,o=it(e);for(x(R.beforeSanitizeShadowDOM,e,null);t=o.nextNode();)x(R.uponSanitizeShadowNode,t,null),rt(t),lt(t),t.content instanceof b&&ct(t.content);x(R.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,o=null,c=null,h=null;if(be=!r,be&&(r="<!-->"),typeof r!="string"&&!Me(r)&&(r=sn(r),typeof r!="string"))throw de("dirty is not a string, aborting");if(!n.isSupported)return r;if(he||Ne(e),n.removed=[],typeof r=="string"&&(J=!1),J){let L=r.nodeName;if(typeof L=="string"){let M=d(L);if(!_[M]||K[M])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof Ee)t=ot("<!---->"),o=t.ownerDocument.importNode(r,!0),o.nodeType===oe.element&&o.nodeName==="BODY"||o.nodeName==="HTML"?t=o:t.appendChild(o);else{if(!z&&!U&&!v&&r.indexOf("<")===-1)return S&&me?S.createHTML(r):r;if(t=ot(r),!t)return z?null:me?q:""}t&&Se&&C(t.firstChild);let p=it(J?r:t);for(;c=p.nextNode();)rt(c),lt(c),c.content instanceof b&&ct(c.content);if(J)return r;if(z){if(U){t.normalize();let L=t.innerHTML;ee([se,le,ce],M=>{L=Y(L,M," ")}),t.innerHTML=L}if(ue)for(h=Ut.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return(A.shadowroot||A.shadowrootmode)&&(h=Ft.call(a,h,!0)),h}let D=v?t.outerHTML:t.innerHTML;return v&&_["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&g(Dt,t.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
1
|
+
import"./chunk-VB56BUGO.js";var{entries:yt,setPrototypeOf:mt,isFrozen:Kt,getPrototypeOf:Zt,getOwnPropertyDescriptor:Jt}=Object,{freeze:y,seal:N,create:X}=Object,{apply:Fe,construct:He}=typeof Reflect<"u"&&Reflect;y||(y=function(n){return n});N||(N=function(n){return n});Fe||(Fe=function(n,l){for(var a=arguments.length,f=new Array(a>2?a-2:0),b=2;b<a;b++)f[b-2]=arguments[b];return n.apply(l,f)});He||(He=function(n){for(var l=arguments.length,a=new Array(l>1?l-1:0),f=1;f<l;f++)a[f-1]=arguments[f];return new n(...a)});var ee=T(Array.prototype.forEach),Qt=T(Array.prototype.lastIndexOf),pt=T(Array.prototype.pop),te=T(Array.prototype.push),en=T(Array.prototype.splice),O=Array.isArray,ie=T(String.prototype.toLowerCase),Pe=T(String.prototype.toString),Tt=T(String.prototype.match),Y=T(String.prototype.replace),dt=T(String.prototype.indexOf),tn=T(String.prototype.trim),nn=T(Number.prototype.toString),on=T(Boolean.prototype.toString),_t=typeof BigInt>"u"?null:T(BigInt.prototype.toString),Et=typeof Symbol>"u"?null:T(Symbol.prototype.toString),u=T(Object.prototype.hasOwnProperty),ne=T(Object.prototype.toString),g=T(RegExp.prototype.test),de=rn(TypeError);function T(i){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),f=1;f<l;f++)a[f-1]=arguments[f];return Fe(i,n,a)}}function rn(i){return function(){for(var n=arguments.length,l=new Array(n),a=0;a<n;a++)l[a]=arguments[a];return He(i,l)}}function s(i,n){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie;if(mt&&mt(i,null),!O(n))return i;let a=n.length;for(;a--;){let f=n[a];if(typeof f=="string"){let b=l(f);b!==f&&(Kt(n)||(n[a]=b),f=b)}i[f]=!0}return i}function an(i){for(let n=0;n<i.length;n++)u(i,n)||(i[n]=null);return i}function I(i){let n=X(null);for(let[l,a]of yt(i))u(i,l)&&(O(a)?n[l]=an(a):a&&typeof a=="object"&&a.constructor===Object?n[l]=I(a):n[l]=a);return n}function sn(i){switch(typeof i){case"string":return i;case"number":return nn(i);case"boolean":return on(i);case"bigint":return _t?_t(i):"0";case"symbol":return Et?Et(i):"Symbol()";case"undefined":return ne(i);case"function":case"object":{if(i===null)return ne(i);let n=i,l=j(n,"toString");if(typeof l=="function"){let a=l(n);return typeof a=="string"?a:ne(a)}return ne(i)}default:return ne(i)}}function j(i,n){for(;i!==null;){let a=Jt(i,n);if(a){if(a.get)return T(a.get);if(typeof a.value=="function")return T(a.value)}i=Zt(i)}function l(){return null}return l}function ln(i){try{return g(i,""),!0}catch{return!1}}var At=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xe=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ke=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cn=y(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ue=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),fn=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gt=y(["#text"]),ht=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ve=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),St=y(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),_e=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),un=N(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mn=N(/<%[\w\W]*|[\w\W]*%>/gm),pn=N(/\$\{[\w\W]*/gm),Tn=N(/^data-[\-\w.\u00B7-\uFFFF]+$/),dn=N(/^aria-[\-\w]+$/),bt=N(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_n=N(/^(?:\w+script|data):/i),En=N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Dt=N(/^html$/i),An=N(/^[a-z][.\w]*(-[.\w]+)+$/i),Rt=Object.freeze({__proto__:null,ARIA_ATTR:dn,ATTR_WHITESPACE:En,CUSTOM_ELEMENT:An,DATA_ATTR:Tn,DOCTYPE_NAME:Dt,ERB_EXPR:mn,IS_ALLOWED_URI:bt,IS_SCRIPT_OR_DATA:_n,MUSTACHE_EXPR:un,TMPLIT_EXPR:pn}),oe={element:1,text:3,progressingInstruction:7,comment:8,document:9},gn=function(){return typeof window>"u"?null:window},hn=function(n,l){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let a=null,f="data-tt-policy-suffix";l&&l.hasAttribute(f)&&(a=l.getAttribute(f));let b="dompurify"+(a?"#"+a:"");try{return n.createPolicy(b,{createHTML(H){return H},createScriptURL(H){return H}})}catch{return console.warn("TrustedTypes policy "+b+" could not be created."),null}},Ot=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function It(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn(),n=r=>It(r);if(n.version="3.4.2",n.removed=[],!i||!i.document||i.document.nodeType!==oe.document||!i.Element)return n.isSupported=!1,n;let{document:l}=i,a=l,f=a.currentScript,{DocumentFragment:b,HTMLTemplateElement:H,Node:Ee,Element:ze,NodeFilter:V,NamedNodeMap:Lt=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:Nt,DOMParser:Ct,trustedTypes:re}=i,$=ze.prototype,Mt=j($,"cloneNode"),wt=j($,"remove"),Pt=j($,"nextSibling"),xt=j($,"childNodes"),ae=j($,"parentNode");if(typeof H=="function"){let r=l.createElement("template");r.content&&r.content.ownerDocument&&(l=r.content.ownerDocument)}let S,q="",{implementation:Ae,createNodeIterator:kt,createDocumentFragment:Ut,getElementsByTagName:vt}=l,{importNode:Ft}=a,R=Ot();n.isSupported=typeof yt=="function"&&typeof ae=="function"&&Ae&&Ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:se,ERB_EXPR:le,TMPLIT_EXPR:ce,DATA_ATTR:Ht,ARIA_ATTR:zt,IS_SCRIPT_OR_DATA:Gt,ATTR_WHITESPACE:Ge,CUSTOM_ELEMENT:Bt}=Rt,{IS_ALLOWED_URI:Be}=Rt,_=null,We=s({},[...At,...xe,...ke,...Ue,...gt]),A=null,Ye=s({},[...ht,...ve,...St,..._e]),m=Object.seal(X(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,fe=null,k=Object.seal(X(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Xe=!0,ge=!0,je=!1,Ve=!0,U=!1,Z=!0,v=!1,he=!1,Se=!1,z=!1,ue=!1,me=!1,$e=!0,qe=!1,Ke="user-content-",Re=!0,J=!1,G={},w=null,Oe=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ze=null,Je=s({},["audio","video","img","source","image","track"]),ye=null,Qe=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pe="http://www.w3.org/1998/Math/MathML",Te="http://www.w3.org/2000/svg",P="http://www.w3.org/1999/xhtml",B=P,be=!1,De=null,Wt=s({},[pe,Te,P],Pe),Ie=s({},["mi","mo","mn","ms","mtext"]),Le=s({},["annotation-xml"]),Yt=s({},["title","style","font","a","script"]),Q=null,Xt=["application/xhtml+xml","text/html"],jt="text/html",d=null,W=null,Vt=l.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(W&&W===e)return;(!e||typeof e!="object")&&(e={}),e=I(e),Q=Xt.indexOf(e.PARSER_MEDIA_TYPE)===-1?jt:e.PARSER_MEDIA_TYPE,d=Q==="application/xhtml+xml"?Pe:ie,_=u(e,"ALLOWED_TAGS")&&O(e.ALLOWED_TAGS)?s({},e.ALLOWED_TAGS,d):We,A=u(e,"ALLOWED_ATTR")&&O(e.ALLOWED_ATTR)?s({},e.ALLOWED_ATTR,d):Ye,De=u(e,"ALLOWED_NAMESPACES")&&O(e.ALLOWED_NAMESPACES)?s({},e.ALLOWED_NAMESPACES,Pe):Wt,ye=u(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)?s(I(Qe),e.ADD_URI_SAFE_ATTR,d):Qe,Ze=u(e,"ADD_DATA_URI_TAGS")&&O(e.ADD_DATA_URI_TAGS)?s(I(Je),e.ADD_DATA_URI_TAGS,d):Je,w=u(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)?s({},e.FORBID_CONTENTS,d):Oe,K=u(e,"FORBID_TAGS")&&O(e.FORBID_TAGS)?s({},e.FORBID_TAGS,d):I({}),fe=u(e,"FORBID_ATTR")&&O(e.FORBID_ATTR)?s({},e.FORBID_ATTR,d):I({}),G=u(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?I(e.USE_PROFILES):e.USE_PROFILES:!1,Xe=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ve=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,Z=e.SAFE_FOR_XML!==!1,v=e.WHOLE_DOCUMENT||!1,z=e.RETURN_DOM||!1,ue=e.RETURN_DOM_FRAGMENT||!1,me=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,$e=e.SANITIZE_DOM!==!1,qe=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,J=e.IN_PLACE||!1,Be=ln(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:bt,B=typeof e.NAMESPACE=="string"?e.NAMESPACE:P,Ie=u(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?I(e.MATHML_TEXT_INTEGRATION_POINTS):s({},["mi","mo","mn","ms","mtext"]),Le=u(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?I(e.HTML_INTEGRATION_POINTS):s({},["annotation-xml"]);let t=u(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?I(e.CUSTOM_ELEMENT_HANDLING):X(null);if(m=X(null),u(t,"tagNameCheck")&&et(t.tagNameCheck)&&(m.tagNameCheck=t.tagNameCheck),u(t,"attributeNameCheck")&&et(t.attributeNameCheck)&&(m.attributeNameCheck=t.attributeNameCheck),u(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),U&&(ge=!1),ue&&(z=!0),G&&(_=s({},gt),A=X(null),G.html===!0&&(s(_,At),s(A,ht)),G.svg===!0&&(s(_,xe),s(A,ve),s(A,_e)),G.svgFilters===!0&&(s(_,ke),s(A,ve),s(A,_e)),G.mathMl===!0&&(s(_,Ue),s(A,St),s(A,_e))),k.tagCheck=null,k.attributeCheck=null,u(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?k.tagCheck=e.ADD_TAGS:O(e.ADD_TAGS)&&(_===We&&(_=I(_)),s(_,e.ADD_TAGS,d))),u(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?k.attributeCheck=e.ADD_ATTR:O(e.ADD_ATTR)&&(A===Ye&&(A=I(A)),s(A,e.ADD_ATTR,d))),u(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)&&s(ye,e.ADD_URI_SAFE_ATTR,d),u(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)&&(w===Oe&&(w=I(w)),s(w,e.FORBID_CONTENTS,d)),u(e,"ADD_FORBID_CONTENTS")&&O(e.ADD_FORBID_CONTENTS)&&(w===Oe&&(w=I(w)),s(w,e.ADD_FORBID_CONTENTS,d)),Re&&(_["#text"]=!0),v&&s(_,["html","head","body"]),_.table&&(s(_,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=e.TRUSTED_TYPES_POLICY,q=S.createHTML("")}else S===void 0&&(S=hn(re,f)),S!==null&&typeof q=="string"&&(q=S.createHTML(""));y&&y(e),W=e},tt=s({},[...xe,...ke,...cn]),nt=s({},[...Ue,...fn]),$t=function(e){let t=ae(e);(!t||!t.tagName)&&(t={namespaceURI:B,tagName:"template"});let o=ie(e.tagName),c=ie(t.tagName);return De[e.namespaceURI]?e.namespaceURI===Te?t.namespaceURI===P?o==="svg":t.namespaceURI===pe?o==="svg"&&(c==="annotation-xml"||Ie[c]):!!tt[o]:e.namespaceURI===pe?t.namespaceURI===P?o==="math":t.namespaceURI===Te?o==="math"&&Le[c]:!!nt[o]:e.namespaceURI===P?t.namespaceURI===Te&&!Le[c]||t.namespaceURI===pe&&!Ie[c]?!1:!nt[o]&&(Yt[o]||!tt[o]):!!(Q==="application/xhtml+xml"&&De[e.namespaceURI]):!1},C=function(e){te(n.removed,{element:e});try{ae(e).removeChild(e)}catch{wt(e)}},F=function(e,t){try{te(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{te(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(z||ue)try{C(t)}catch{}else try{t.setAttribute(e,"")}catch{}},ot=function(e){let t=null,o=null;if(Se)e="<remove></remove>"+e;else{let p=Tt(e,/^[\r\n\t ]+/);o=p&&p[0]}Q==="application/xhtml+xml"&&B===P&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let c=S?S.createHTML(e):e;if(B===P)try{t=new Ct().parseFromString(c,Q)}catch{}if(!t||!t.documentElement){t=Ae.createDocument(B,"template",null);try{t.documentElement.innerHTML=be?q:c}catch{}}let h=t.body||t.documentElement;return e&&o&&h.insertBefore(l.createTextNode(o),h.childNodes[0]||null),B===P?vt.call(t,v?"html":"body")[0]:v?t.documentElement:h},it=function(e){return kt.call(e.ownerDocument||e,e,V.SHOW_ELEMENT|V.SHOW_COMMENT|V.SHOW_TEXT|V.SHOW_PROCESSING_INSTRUCTION|V.SHOW_CDATA_SECTION,null)},Ce=function(e){return e instanceof Nt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Lt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Me=function(e){return typeof Ee=="function"&&e instanceof Ee};function x(r,e,t){ee(r,o=>{o.call(n,e,t,W)})}let rt=function(e){let t=null;if(x(R.beforeSanitizeElements,e,null),Ce(e))return C(e),!0;let o=d(e.nodeName);if(x(R.uponSanitizeElement,e,{tagName:o,allowedTags:_}),Z&&e.hasChildNodes()&&!Me(e.firstElementChild)&&g(/<[/\w!]/g,e.innerHTML)&&g(/<[/\w!]/g,e.textContent)||Z&&e.namespaceURI===P&&o==="style"&&Me(e.firstElementChild)||e.nodeType===oe.progressingInstruction||Z&&e.nodeType===oe.comment&&g(/<[/\w]/g,e.data))return C(e),!0;if(K[o]||!(k.tagCheck instanceof Function&&k.tagCheck(o))&&!_[o]){if(!K[o]&&st(o)&&(m.tagNameCheck instanceof RegExp&&g(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o)))return!1;if(Re&&!w[o]){let c=ae(e)||e.parentNode,h=xt(e)||e.childNodes;if(h&&c){let p=h.length;for(let D=p-1;D>=0;--D){let L=Mt(h[D],!0);c.insertBefore(L,Pt(e))}}}return C(e),!0}return e instanceof ze&&!$t(e)||(o==="noscript"||o==="noembed"||o==="noframes")&&g(/<\/no(script|embed|frames)/i,e.innerHTML)?(C(e),!0):(U&&e.nodeType===oe.text&&(t=e.textContent,ee([se,le,ce],c=>{t=Y(t,c," ")}),e.textContent!==t&&(te(n.removed,{element:e.cloneNode()}),e.textContent=t)),x(R.afterSanitizeElements,e,null),!1)},at=function(e,t,o){if(fe[t]||$e&&(t==="id"||t==="name")&&(o in l||o in Vt))return!1;let c=A[t]||k.attributeCheck instanceof Function&&k.attributeCheck(t,e);if(!(ge&&!fe[t]&&g(Ht,t))){if(!(Xe&&g(zt,t))){if(!c||fe[t]){if(!(st(e)&&(m.tagNameCheck instanceof RegExp&&g(m.tagNameCheck,e)||m.tagNameCheck instanceof Function&&m.tagNameCheck(e))&&(m.attributeNameCheck instanceof RegExp&&g(m.attributeNameCheck,t)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(t,e))||t==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&g(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o))))return!1}else if(!ye[t]){if(!g(Be,Y(o,Ge,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&dt(o,"data:")===0&&Ze[e])){if(!(je&&!g(Gt,Y(o,Ge,"")))){if(o)return!1}}}}}}return!0},qt=s({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),st=function(e){return!qt[ie(e)]&&g(Bt,e)},lt=function(e){x(R.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||Ce(e))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0},c=t.length;for(;c--;){let h=t[c],{name:p,namespaceURI:D,value:L}=h,M=d(p),we=L,E=p==="value"?we:tn(we);if(o.attrName=M,o.attrValue=E,o.keepAttr=!0,o.forceKeepAttr=void 0,x(R.uponSanitizeAttribute,e,o),E=o.attrValue,qe&&(M==="id"||M==="name")&&dt(E,Ke)!==0&&(F(p,e),E=Ke+E),Z&&g(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,E)){F(p,e);continue}if(M==="attributename"&&Tt(E,"href")){F(p,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){F(p,e);continue}if(!Ve&&g(/\/>/i,E)){F(p,e);continue}U&&ee([se,le,ce],ut=>{E=Y(E,ut," ")});let ft=d(e.nodeName);if(!at(ft,M,E)){F(p,e);continue}if(S&&typeof re=="object"&&typeof re.getAttributeType=="function"&&!D)switch(re.getAttributeType(ft,M)){case"TrustedHTML":{E=S.createHTML(E);break}case"TrustedScriptURL":{E=S.createScriptURL(E);break}}if(E!==we)try{D?e.setAttributeNS(D,p,E):e.setAttribute(p,E),Ce(e)?C(e):pt(n.removed)}catch{F(p,e)}}x(R.afterSanitizeAttributes,e,null)},ct=function(e){let t=null,o=it(e);for(x(R.beforeSanitizeShadowDOM,e,null);t=o.nextNode();)x(R.uponSanitizeShadowNode,t,null),rt(t),lt(t),t.content instanceof b&&ct(t.content);x(R.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,o=null,c=null,h=null;if(be=!r,be&&(r="<!-->"),typeof r!="string"&&!Me(r)&&(r=sn(r),typeof r!="string"))throw de("dirty is not a string, aborting");if(!n.isSupported)return r;if(he||Ne(e),n.removed=[],typeof r=="string"&&(J=!1),J){let L=r.nodeName;if(typeof L=="string"){let M=d(L);if(!_[M]||K[M])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof Ee)t=ot("<!---->"),o=t.ownerDocument.importNode(r,!0),o.nodeType===oe.element&&o.nodeName==="BODY"||o.nodeName==="HTML"?t=o:t.appendChild(o);else{if(!z&&!U&&!v&&r.indexOf("<")===-1)return S&&me?S.createHTML(r):r;if(t=ot(r),!t)return z?null:me?q:""}t&&Se&&C(t.firstChild);let p=it(J?r:t);for(;c=p.nextNode();)rt(c),lt(c),c.content instanceof b&&ct(c.content);if(J)return r;if(z){if(U){t.normalize();let L=t.innerHTML;ee([se,le,ce],M=>{L=Y(L,M," ")}),t.innerHTML=L}if(ue)for(h=Ut.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return(A.shadowroot||A.shadowrootmode)&&(h=Ft.call(a,h,!0)),h}let D=v?t.outerHTML:t.innerHTML;return v&&_["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&g(Dt,t.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
2
2
|
`+D),U&&ee([se,le,ce],L=>{D=Y(D,L," ")}),S&&me?S.createHTML(D):D},n.setConfig=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ne(r),he=!0},n.clearConfig=function(){W=null,he=!1},n.isValidAttribute=function(r,e,t){W||Ne({});let o=d(r),c=d(e);return at(o,c,t)},n.addHook=function(r,e){typeof e=="function"&&te(R[r],e)},n.removeHook=function(r,e){if(e!==void 0){let t=Qt(R[r],e);return t===-1?void 0:en(R[r],t,1)[0]}return pt(R[r])},n.removeHooks=function(r){R[r]=[]},n.removeAllHooks=function(){R=Ot()},n}var Sn=It();export{Sn as default};
|