nuxt-og-image 6.2.2 → 6.2.4
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/devtools/200.html +1 -1
- package/dist/devtools/404.html +1 -1
- package/dist/devtools/_nuxt/B9YJLOLG.js +1 -0
- package/dist/devtools/_nuxt/C-b6hTTf.js +6 -0
- package/dist/devtools/_nuxt/{C43RJ96S.js → CGddsLij.js} +1 -1
- package/dist/devtools/_nuxt/CNPcxXHG.js +173 -0
- package/dist/devtools/_nuxt/Co3OAyKc.js +3 -0
- package/dist/devtools/_nuxt/D2zWjF09.js +3 -0
- package/dist/devtools/_nuxt/{CvNNTRMq.js → D84yDWKI.js} +1 -1
- package/dist/devtools/_nuxt/DLPfJAyQ.js +2 -0
- package/dist/devtools/_nuxt/DevtoolsSection.a-2R---I.css +1 -0
- package/dist/devtools/_nuxt/DevtoolsSnippet.D9AS35aC.css +1 -0
- package/dist/devtools/_nuxt/Dy6LapUo.js +4 -0
- package/dist/devtools/_nuxt/{CpuQYDy3.js → Ll4Fy5iv.js} +3 -3
- package/dist/devtools/_nuxt/builds/latest.json +1 -1
- package/dist/devtools/_nuxt/builds/meta/05e8381a-ae36-4c96-9530-7973642e8e38.json +1 -0
- package/dist/devtools/_nuxt/entry._es5B19-.css +2 -0
- package/dist/devtools/_nuxt/fira-code.Bc8wnsZt.woff2 +0 -0
- package/dist/devtools/_nuxt/hubot-sans.DLGyhQVu.woff2 +0 -0
- package/dist/devtools/_nuxt/{pages.CDhNRoVq.css → pages.CcgChwrv.css} +1 -1
- package/dist/devtools/_nuxt/{CRtPOoB-.js → u09lXEfj.js} +1 -1
- package/dist/devtools/debug/index.html +1 -1
- package/dist/devtools/docs/index.html +1 -1
- package/dist/devtools/index.html +1 -1
- package/dist/devtools/templates/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/app/utils.d.ts +1 -1
- package/dist/runtime/app/utils.js +7 -5
- package/dist/runtime/server/og-image/bindings/font-assets/cloudflare.js +7 -1
- package/dist/runtime/server/og-image/context.js +4 -1
- package/dist/runtime/server/utils.d.ts +2 -2
- package/dist/runtime/server/utils.js +7 -1
- package/dist/runtime/shared/urlEncoding.js +4 -1
- package/package.json +7 -6
- package/dist/devtools/_fonts/4qBuU9MRVUlPZNPSF7Xom_sK8RBEnfYu-9VXFrdq8A8-8TDwLE1HAj1sQn7XxVWtM_7sIaPM-DTdO3Pf8U2DF1U.woff2 +0 -0
- package/dist/devtools/_fonts/6dYsbWUd_BpKJ7mdDihgOcya1gHXLpJBuMYXux3WMjE-q3fYNS8YbW5n7ZeXI2vSNgkRWW5VDPKAl51SNTjG2qk.woff2 +0 -0
- package/dist/devtools/_fonts/Lr-hqqZZsYmCt0ITUlr1CUrWim9fsKvoDFZliMxgNHY-iTa_Yt_PzhOY9TX7ZXdSlEPim6iRt92xhECwaxWxd5w.woff2 +0 -0
- package/dist/devtools/_fonts/OknHvWI6KtYn1JQBzX7eSpNDBQ8520F9TvSUJYkVf6A-xeZn9253svK_8Q2LD0XEruY_MnEsuCRO5LenPoggC0Y.woff2 +0 -0
- package/dist/devtools/_fonts/UA7OtwYHwGN_HjcVGTdmiQxUit7FlqkCwxVUWSeXVnQ-B4OXCFOL_tWrYODpQTc07aMaj0c2cewTOmBRWR9tD-A.woff2 +0 -0
- package/dist/devtools/_fonts/qxAYvKsXWeYv731eb-h5TRurcdIP_W44mpNdX-HABAk-zUDeMEFlNtNbrwvT9JxLEBg0TphGy70O6RfIoIX_ZwU.woff2 +0 -0
- package/dist/devtools/_nuxt/BEORfcQ_.js +0 -1
- package/dist/devtools/_nuxt/BEdoAkfG.js +0 -6
- package/dist/devtools/_nuxt/BykovKkl.js +0 -3860
- package/dist/devtools/_nuxt/C-_BEQcf.js +0 -1
- package/dist/devtools/_nuxt/CIwXbaiw.js +0 -1
- package/dist/devtools/_nuxt/CKdyiXtI.js +0 -1
- package/dist/devtools/_nuxt/CY1D91SV.js +0 -2
- package/dist/devtools/_nuxt/CnH6h21e.js +0 -2
- package/dist/devtools/_nuxt/CoeG5aRH.js +0 -1
- package/dist/devtools/_nuxt/D6AJApH8.js +0 -173
- package/dist/devtools/_nuxt/DDwWk7b3.js +0 -1
- package/dist/devtools/_nuxt/DevtoolsSection.C1KD0MpU.css +0 -1
- package/dist/devtools/_nuxt/DevtoolsSnippet.BwKMIfPi.css +0 -1
- package/dist/devtools/_nuxt/DoRHgNUl.js +0 -3
- package/dist/devtools/_nuxt/SGtgF_Gu.js +0 -3
- package/dist/devtools/_nuxt/builds/meta/b2c063c5-9c5d-4281-9910-3144eff93f61.json +0 -1
- package/dist/devtools/_nuxt/entry.C8gtTt3O.css +0 -2
- package/dist/devtools/_nuxt/error-404.ByLYA_NH.css +0 -1
- package/dist/devtools/_nuxt/error-500.BvP9j_y_.css +0 -1
- package/dist/devtools/_nuxt/fPeJDony.js +0 -1
- /package/dist/devtools/_nuxt/{CCTv7mmB.js → BwW5PI4u.js} +0 -0
- /package/dist/devtools/_nuxt/{CuJezOxb.js → Bx_VzvYa.js} +0 -0
- /package/dist/devtools/_nuxt/{O5eLyffU.js → CDUvHTjX.js} +0 -0
- /package/dist/devtools/_nuxt/{E8AZ6HoH.js → PnYIYlhI.js} +0 -0
- /package/dist/devtools/_nuxt/{C5jzcy9i.js → z1-BJQbH.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,O as t,k as n,n as r,xt as i}from"./DoRHgNUl.js";import{i as a}from"./CoeG5aRH.js";var o=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,s=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,c=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function l(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){u(e);return}return t}function u(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function d(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!c.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(o.test(e)||s.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,l)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var f=/#/g,ee=/&/g,te=/\//g,ne=/=/g,re=/\?/g,p=/\+/g,ie=/%5e/gi,ae=/%60/gi,oe=/%7c/gi,se=/%20/gi,ce=/%2f/gi,le=/%252f/gi;function m(e){return encodeURI(``+e).replace(oe,`|`)}function h(e){return m(typeof e==`string`?e:JSON.stringify(e)).replace(p,`%2B`).replace(se,`+`).replace(f,`%23`).replace(ee,`%26`).replace(ae,"`").replace(ie,`^`).replace(te,`%2F`)}function g(e){return h(e).replace(ne,`%3D`)}function ue(e){return m(e).replace(f,`%23`).replace(re,`%3F`).replace(le,`%2F`).replace(ee,`%26`).replace(p,`%2B`)}function _(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function de(e){return _(e.replace(ce,`%252F`))}function fe(e){return _(e.replace(p,` `))}function pe(e){return _(e.replace(p,` `))}function v(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=fe(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=pe(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function me(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${g(e)}=${h(t)}`).join(`&`):`${g(e)}=${h(t)}`:g(e)}function he(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>me(t,e[t])).filter(Boolean).join(`&`)}var ge=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,y=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_e=/^([/\\]\s*){2,}[^/\\]/,ve=/^[\s\0]*(blob|data|javascript|vbscript):$/i,ye=/\/$|\/\?|\/#/,be=/^\.?\//;function b(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?ge.test(e):y.test(e)||(t.acceptRelative?_e.test(e):!1)}function xe(e){return!!e&&ve.test(e)}function x(e=``,t){return t?ye.test(e):e.endsWith(`/`)}function S(e=``,t){if(!t)return(x(e)?e.slice(0,-1):e)||`/`;if(!x(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function C(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(x(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function Se(e,t){if(we(t)||b(e))return e;let n=S(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return Ee(n,e)}function Ce(e,t){if(we(t))return e;let n=S(t);if(!e.startsWith(n))return e;let r=e[n.length];if(r&&r!==`/`&&r!==`?`)return e;let i=e.slice(n.length);return i[0]===`/`?i:`/`+i}function w(e,t){let n=E(e);return n.search=he({...v(n.search),...t}),je(n)}function we(e){return!e||e===`/`}function Te(e){return e&&e!==`/`}function Ee(e,...t){let n=e||``;for(let e of t.filter(e=>Te(e)))if(n){let t=e.replace(be,``);n=C(n)+t}else n=e;return n}function De(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&b(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function Oe(e){return ke(e,`https://`)}function ke(e,t){let n=e.match(y);return n||=e.match(/^\/{2,}/),n?t+e.slice(n[0].length):t+e}function Ae(e,t){return _(S(e))===_(S(t))}var T=Symbol.for(`ufo:protocolRelative`);function E(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!b(e,{acceptRelative:!0}))return t?E(t+e):D(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=D(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[T]:!r}}function D(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function je(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[T]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function O(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function k(e,t,n=`.`,r){if(!O(t))return k(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:O(a)&&O(i[t])?i[t]=k(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Me(e){return(...t)=>t.reduce((t,n)=>k(t,n,``,e),{})}var Ne=Me(),Pe=Me((e,t,n)=>{if(e[t]!==void 0&&typeof n==`function`)return e[t]=n(e[t]),!0});function Fe(e,t){try{return t in e}catch{return!1}}var Ie=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:A(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=Be(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function Le(e){if(typeof e==`string`)return new Ie(e);if(Re(e))return e;let t=new Ie(e.message??e.statusMessage??``,{cause:e.cause||e});if(Fe(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=A(e.statusCode,t.statusCode):e.status&&(t.statusCode=A(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;Be(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Re(e){return e?.constructor?.__h3_error__===!0}var ze=/[^\u0009\u0020-\u007E]/g;function Be(e=``){return e.replace(ze,``)}function A(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var Ve=Symbol(`layout-meta`),He=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var j=()=>a()?.$router,Ue=()=>n()?e(He,a()._route):a()._route;function We(e){return e}var Ge=()=>{try{if(a()._processingMiddleware)return!0}catch{return!1}return!1},Ke=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?M(e):j().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let r=b(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&xe(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let o=Ge();if(!i&&o){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=E(e);return{path:t,...n&&{query:v(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let s=j(),c=a();if(i)return c._scope.stop(),t?.replace?location.replace(n):location.href=n,o?c.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?N(e):e;return t?.replace?s.replace(l):s.push(l)};function M(e){return w(e.path||``,e.query||{})+(e.hash||``)}function N(e){let t=E(e);return ue(de(t.pathname))+t.search+t.hash}var qe=`__nuxt_error`,P=()=>i(a().payload,`error`),Je=e=>{let t=F(e);try{let e=P();a().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Ye=async(e={})=>{let t=a(),n=P();t.callHook(`app:error:cleared`,e),e.redirect&&await j().replace(e.redirect),n.value=void 0},Xe=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,F=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=Le(e);return Object.defineProperty(t,qe,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,`status`,{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,`statusText`,{get:()=>t.statusMessage,configurable:!0}),t},I=typeof document<`u`;function L(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Ze(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&L(e.default)}var R=Object.assign;function Qe(e,t){let n={};for(let r in t){let i=t[r];n[r]=z(i)?i.map(e):e(i)}return n}var $e=()=>{},z=Array.isArray;function et(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var B=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),V=Symbol(``);B.MATCHER_NOT_FOUND,B.NAVIGATION_GUARD_REDIRECT,B.NAVIGATION_ABORTED,B.NAVIGATION_CANCELLED,B.NAVIGATION_DUPLICATED;function H(e,t){return R(Error(),{type:e,[V]:!0},t)}function tt(e,t){return e instanceof Error&&V in e&&(t==null||!!(e.type&t))}var nt=Symbol(``),rt=Symbol(``),it=Symbol(``),at=Symbol(``),ot=Symbol(``),U=/#/g,st=/&/g,ct=/\//g,lt=/=/g,ut=/\?/g,W=/\+/g,dt=/%5B/g,ft=/%5D/g,G=/%5E/g,pt=/%60/g,K=/%7B/g,mt=/%7C/g,ht=/%7D/g,gt=/%20/g;function q(e){return e==null?``:encodeURI(``+e).replace(mt,`|`).replace(dt,`[`).replace(ft,`]`)}function _t(e){return q(e).replace(K,`{`).replace(ht,`}`).replace(G,`^`)}function J(e){return q(e).replace(W,`%2B`).replace(gt,`+`).replace(U,`%23`).replace(st,`%26`).replace(pt,"`").replace(K,`{`).replace(ht,`}`).replace(G,`^`)}function vt(e){return J(e).replace(lt,`%3D`)}function yt(e){return q(e).replace(U,`%23`).replace(ut,`%3F`)}function bt(e){return yt(e).replace(ct,`%2F`)}function Y(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var xt=/\/$/,St=e=>e.replace(xt,``);function Ct(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=At(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Y(o)}}function wt(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Tt(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Et(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&X(t.matched[r],n.matched[i])&&Dt(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function X(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ot(e[n],t[n]))return!1;return!0}function Ot(e,t){return z(e)?kt(e,t):z(t)?kt(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function kt(e,t){return z(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function At(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var jt={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Mt=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Nt=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Pt(e){if(!e)if(I){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),St(e)}var Ft=/^[^#]+#/;function It(e,t){return e.replace(Ft,`#`)+t}function Lt(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Rt=()=>({left:window.scrollX,top:window.scrollY});function zt(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Lt(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Bt(e,t){return(history.state?history.state.position-t:-1)+e}var Z=new Map;function Vt(e,t){Z.set(e,t)}function Ht(e){let t=Z.get(e);return Z.delete(e),t}function Ut(e){return typeof e==`string`||e&&typeof e==`object`}function Wt(e){return typeof e==`string`||typeof e==`symbol`}function Gt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(W,` `),i=r.indexOf(`=`),a=Y(i<0?r:r.slice(0,i)),o=i<0?null:Y(r.slice(i+1));if(a in t){let e=t[a];z(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Kt(e){let t=``;for(let n in e){let r=e[n];if(n=vt(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(z(r)?r.map(e=>e&&J(e)):[r&&J(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function qt(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=z(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Jt(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Q(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(H(B.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Ut(e)?c(H(B.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Yt(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(L(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Q(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Ze(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Q(c,n,r,o,e,i)()}))}}return a}function Xt(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>X(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>X(e,s))||i.push(s))}return[n,r,i]}var Zt=(e,n)=>({default:()=>e?t(r,e===!0?{}:e,n):n.default?.()}),Qt=/(:\w+)\([^)]+\)/g,$t=/(:\w+)[?+*]/g,en=/:\w+/g;function tn(e){let t=e?.meta.key??e.path.replace(Qt,`$1`).replace($t,`$1`).replace(en,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function nn(e,t){return e===t||t===jt?!1:tn(e)===tn(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}function rn(e){return Array.isArray(e)?e:[e]}function an(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?rn(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?rn(n.onBeforeLeave):void 0});return Ne(...t)}var $=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),on=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),sn=e=>{let t=a();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{$(()=>e())}):$(()=>e())};export{We as $,Kt as A,tt as B,X as C,Ct as D,Gt as E,Qe as F,it as G,et as H,R as I,Ye as J,ot as K,H as L,Tt as M,Jt as N,Vt as O,B as P,P as Q,z as R,Dt as S,qt as T,$e as U,nt as V,at as W,Xe as X,F as Y,Je as Z,Ht as _,w as _t,Zt as a,Ve as at,Wt as b,S as bt,Mt as c,Pe as ct,It as d,De as dt,N as et,Y as f,Ee as ft,Yt as g,Oe as gt,Xt as h,Se as ht,an as i,j as it,wt as j,zt as k,jt as l,b as lt,bt as m,E as mt,on as n,M as nt,nn as o,He as ot,_t as p,v as pt,rt as q,$ as r,Ue as rt,Nt as s,Ne as st,sn as t,Ke as tt,Rt as u,Ae as ut,Bt as v,C as vt,Pt as w,Et as x,d as xt,Q as y,Ce as yt,I as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,S as t,U as n,at as r,g as i,jt as a,y as o}from"./DoRHgNUl.js";import"./C-_BEQcf.js";import{t as s}from"./BEORfcQ_.js";import{d as c,p as l}from"#entry";var u={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=c({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:404},statusText:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(c){let g=c;return l({title:`${g.status} - ${g.statusText} | ${g.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(l,g)=>{let _=s;return n(),o(`div`,u,[i(`div`,d,[i(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:a(c.status)},null,8,f),i(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:a(c.statusText)},null,8,p),i(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:a(c.description)},null,8,m),i(`div`,h,[e(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:r(()=>[t(a(c.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-96b96d5c`]]);export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as e,g as t,jt as n,y as r}from"./DoRHgNUl.js";import{d as i,p as a}from"#entry";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=i({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(i){let d=i;return a({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(a,d)=>(e(),r(`div`,o,[t(`div`,s,[t(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:n(i.status)},null,8,c),t(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:n(i.statusText)},null,8,l),t(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:n(i.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-fab766da`]]);export{d as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as e,K as t,T as n,Tt as r,U as i,_ as a,at as o,g as s,jt as c,u as l,v as u,y as d}from"./DoRHgNUl.js";import"./C-_BEQcf.js";import{t as f}from"./SGtgF_Gu.js";import"./BEdoAkfG.js";import"./BEORfcQ_.js";import{t as p}from"./CvNNTRMq.js";import{t as m}from"./C43RJ96S.js";var h={class:`h-full max-h-full overflow-hidden space-y-5`},g={class:`space-y-2 p-3 bg-amber-500/10 rounded-lg border border-amber-500/20`},_=n({__name:`debug`,setup(n){let{globalDebug:_,debug:v}=f();return(n,f)=>{let y=p,b=m;return i(),d(`div`,h,[r(v)?.warnings?.length?(i(),a(y,{key:0,icon:`carbon:warning`,text:`Satori Warnings`},{default:o(()=>[s(`div`,g,[(i(!0),d(l,null,t(r(v).warnings,(e,t)=>(i(),d(`div`,{key:t,class:`text-sm text-amber-200 font-mono`},c(e),1))),128))])]),_:1})):u(``,!0),e(y,{icon:`carbon:settings`,text:`Compatibility`},{default:o(()=>[e(b,{code:JSON.stringify(r(_)?.compatibility||{},null,2),lang:`json`,label:`Compatibility`},null,8,[`code`])]),_:1}),e(y,{icon:`carbon:ibm-cloud-pak-manta-automated-data-lineage`,text:`vNodes`},{default:o(()=>[e(b,{code:JSON.stringify(r(v)?.vnodes||{},null,2),lang:`json`,label:`vNodes`},null,8,[`code`])]),_:1}),e(y,{icon:`carbon:ibm-cloud-pak-manta-automated-data-lineage`,text:`SVG`},{default:o(()=>[e(b,{code:r(v)?.svg?.replaceAll(`>`,`>
|
|
2
|
-
`)||``,lang:`xml`,label:`SVG`},null,8,[`code`])]),_:1}),e(y,{icon:`carbon:settings`,text:`Runtime Config`},{default:o(()=>[e(b,{code:JSON.stringify(r(_)?.runtimeConfig||{},null,2),lang:`json`,label:`Runtime Config`},null,8,[`code`])]),_:1})])}}});export{_ as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}();String.prototype.startsWith=String.prototype.startsWith||function(e){return this.indexOf(e)===0},String.prototype.padStart=String.prototype.padStart||function(e,t){for(var n=this;n.length<e;)n=t+n;return n};var r={cb:`0f8ff`,tqw:`aebd7`,q:`-ffff`,qmrn:`7fffd4`,zr:`0ffff`,bg:`5f5dc`,bsq:`e4c4`,bck:`---`,nch:`ebcd`,b:`--ff`,bvt:`8a2be2`,brwn:`a52a2a`,brw:`deb887`,ctb:`5f9ea0`,hrt:`7fff-`,chcT:`d2691e`,cr:`7f50`,rnw:`6495ed`,crns:`8dc`,crms:`dc143c`,cn:`-ffff`,Db:`--8b`,Dcn:`-8b8b`,Dgnr:`b8860b`,Dgr:`a9a9a9`,Dgrn:`-64-`,Dkhk:`bdb76b`,Dmgn:`8b-8b`,Dvgr:`556b2f`,Drng:`8c-`,Drch:`9932cc`,Dr:`8b--`,Dsmn:`e9967a`,Dsgr:`8fbc8f`,DsTb:`483d8b`,DsTg:`2f4f4f`,Dtrq:`-ced1`,Dvt:`94-d3`,ppnk:`1493`,pskb:`-bfff`,mgr:`696969`,grb:`1e90ff`,rbrc:`b22222`,rwht:`af0`,stg:`228b22`,chs:`-ff`,gnsb:`dcdcdc`,st:`8f8ff`,g:`d7-`,gnr:`daa520`,gr:`808080`,grn:`-8-0`,grnw:`adff2f`,hnw:`0fff0`,htpn:`69b4`,nnr:`cd5c5c`,ng:`4b-82`,vr:`0`,khk:`0e68c`,vnr:`e6e6fa`,nrb:`0f5`,wngr:`7cfc-`,mnch:`acd`,Lb:`add8e6`,Lcr:`08080`,Lcn:`e0ffff`,Lgnr:`afad2`,Lgr:`d3d3d3`,Lgrn:`90ee90`,Lpnk:`b6c1`,Lsmn:`a07a`,Lsgr:`20b2aa`,Lskb:`87cefa`,LsTg:`778899`,Lstb:`b0c4de`,Lw:`e0`,m:`-ff-`,mgrn:`32cd32`,nn:`af0e6`,mgnt:`-ff`,mrn:`8--0`,mqm:`66cdaa`,mmb:`--cd`,mmrc:`ba55d3`,mmpr:`9370db`,msg:`3cb371`,mmsT:`7b68ee`,"":`-fa9a`,mtr:`48d1cc`,mmvt:`c71585`,mnLb:`191970`,ntc:`5fffa`,mstr:`e4e1`,mccs:`e4b5`,vjw:`dead`,nv:`--80`,c:`df5e6`,v:`808-0`,vrb:`6b8e23`,rng:`a5-`,rngr:`45-`,rch:`da70d6`,pgnr:`eee8aa`,pgrn:`98fb98`,ptrq:`afeeee`,pvtr:`db7093`,ppwh:`efd5`,pchp:`dab9`,pr:`cd853f`,pnk:`c0cb`,pm:`dda0dd`,pwrb:`b0e0e6`,prp:`8-080`,cc:`663399`,r:`--`,sbr:`bc8f8f`,rb:`4169e1`,sbrw:`8b4513`,smn:`a8072`,nbr:`4a460`,sgrn:`2e8b57`,ssh:`5ee`,snn:`a0522d`,svr:`c0c0c0`,skb:`87ceeb`,sTb:`6a5acd`,sTgr:`708090`,snw:`afa`,n:`-ff7f`,stb:`4682b4`,tn:`d2b48c`,t:`-8080`,thst:`d8bfd8`,tmT:`6347`,trqs:`40e0d0`,vt:`ee82ee`,whT:`5deb3`,wht:``,hts:`5f5f5`,w:`-`,wgrn:`9acd32`};function i(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return(t>0?e.toFixed(t).replace(/0+$/,``).replace(/\.$/,``):e.toString())||`0`}var a=function(){function a(t,r,i,o){e(this,a);var s=this;function c(e){if(e.startsWith(`hsl`)){var t=n(e.match(/([\-\d\.e]+)/g).map(Number),4),r=t[0],i=t[1],o=t[2],c=t[3];c===void 0&&(c=1),r/=360,i/=100,o/=100,s.hsla=[r,i,o,c]}else if(e.startsWith(`rgb`)){var l=n(e.match(/([\-\d\.e]+)/g).map(Number),4),u=l[0],d=l[1],f=l[2],p=l[3];p===void 0&&(p=1),s.rgba=[u,d,f,p]}else e.startsWith(`#`)?s.rgba=a.hexToRgb(e):s.rgba=a.nameToRgb(e)||a.hexToRgb(e)}if(t!==void 0)if(Array.isArray(t))this.rgba=t;else if(i===void 0){var l=t&&``+t;l&&c(l.toLowerCase())}else this.rgba=[t,r,i,o===void 0?1:o]}return t(a,[{key:`printRGB`,value:function(e){var t=(e?this.rgba:this.rgba.slice(0,3)).map(function(e,t){return i(e,t===3?3:0)});return e?`rgba(`+t+`)`:`rgb(`+t+`)`}},{key:`printHSL`,value:function(e){var t=[360,100,100,1],n=[``,`%`,`%`,``],r=(e?this.hsla:this.hsla.slice(0,3)).map(function(e,r){return i(e*t[r],r===3?3:1)+n[r]});return e?`hsla(`+r+`)`:`hsl(`+r+`)`}},{key:`printHex`,value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:`rgba`,get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw Error(`No color is set`);return this._rgba=a.hslToRgb(this._hsla)},set:function(e){e.length===3&&(e[3]=1),this._rgba=e,this._hsla=null}},{key:`rgbString`,get:function(){return this.printRGB()}},{key:`rgbaString`,get:function(){return this.printRGB(!0)}},{key:`hsla`,get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw Error(`No color is set`);return this._hsla=a.rgbToHsl(this._rgba)},set:function(e){e.length===3&&(e[3]=1),this._hsla=e,this._rgba=null}},{key:`hslString`,get:function(){return this.printHSL()}},{key:`hslaString`,get:function(){return this.printHSL(!0)}},{key:`hex`,get:function(){return`#`+this.rgba.map(function(e,t){return t<3?e.toString(16):Math.round(e*255).toString(16)}).map(function(e){return e.padStart(2,`0`)}).join(``)},set:function(e){this.rgba=a.hexToRgb(e)}}],[{key:`hexToRgb`,value:function(e){var t=(e.startsWith(`#`)?e.slice(1):e).replace(/^(\w{3})$/,`$1F`).replace(/^(\w)(\w)(\w)(\w)$/,`$1$1$2$2$3$3$4$4`).replace(/^(\w{6})$/,`$1FF`);if(!t.match(/^([0-9a-fA-F]{8})$/))throw Error(`Unknown hex color; `+e);var n=t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(e){return parseInt(e,16)});return n[3]/=255,n}},{key:`nameToRgb`,value:function(e){var t=r[e.toLowerCase().replace(`at`,`T`).replace(/[aeiouyldf]/g,``).replace(`ght`,`L`).replace(`rk`,`D`).slice(-5,4)];return t===void 0?t:a.hexToRgb(t.replace(/\-/g,`00`).padStart(6,`f`))}},{key:`rgbToHsl`,value:function(e){var t=n(e,4),r=t[0],i=t[1],a=t[2],o=t[3];r/=255,i/=255,a/=255;var s=Math.max(r,i,a),c=Math.min(r,i,a),l=void 0,u=void 0,d=(s+c)/2;if(s===c)l=u=0;else{var f=s-c;switch(u=d>.5?f/(2-s-c):f/(s+c),s){case r:l=(i-a)/f+(i<a?6:0);break;case i:l=(a-r)/f+2;break;case a:l=(r-i)/f+4;break}l/=6}return[l,u,d,o]}},{key:`hslToRgb`,value:function(e){var t=n(e,4),r=t[0],i=t[1],a=t[2],o=t[3],s=void 0,c=void 0,l=void 0;if(i===0)s=c=l=a;else{var u=function(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e},d=a<.5?a*(1+i):a+i-a*i,f=2*a-d;s=u(f,d,r+1/3),c=u(f,d,r),l=u(f,d,r-1/3)}var p=[s*255,c*255,l*255].map(Math.round);return p[3]=o,p}}]),a}(),o=function(){function n(){e(this,n),this._events=[]}return t(n,[{key:`add`,value:function(e,t,n){e.addEventListener(t,n,!1),this._events.push({target:e,type:t,handler:n})}},{key:`remove`,value:function(e,t,r){this._events=this._events.filter(function(i){var a=!0;return e&&e!==i.target&&(a=!1),t&&t!==i.type&&(a=!1),r&&r!==i.handler&&(a=!1),a&&n._doRemove(i.target,i.type,i.handler),!a})}},{key:`destroy`,value:function(){this._events.forEach(function(e){return n._doRemove(e.target,e.type,e.handler)}),this._events=[]}}],[{key:`_doRemove`,value:function(e,t,n){e.removeEventListener(t,n,!1)}}]),n}();function s(e){var t=document.createElement(`div`);return t.innerHTML=e,t.firstElementChild}function c(e,t,n){var r=!1;function i(e,t,n){return Math.max(t,Math.min(e,n))}function a(e,a,o){if(o&&(r=!0),r){e.preventDefault();var s=t.getBoundingClientRect(),c=s.width,l=s.height,u=a.clientX,d=a.clientY,f=i(u-s.left,0,c),p=i(d-s.top,0,l);n(f/c,p/l)}}function o(e,t){(e.buttons===void 0?e.which:e.buttons)===1?a(e,e,t):r=!1}function s(e,t){e.touches.length===1?a(e,e.touches[0],t):r=!1}e.add(t,`mousedown`,function(e){o(e,!0)}),e.add(t,`touchstart`,function(e){s(e,!0)}),e.add(window,`mousemove`,o),e.add(t,`touchmove`,s),e.add(window,`mouseup`,function(e){r=!1}),e.add(t,`touchend`,function(e){r=!1}),e.add(t,`touchcancel`,function(e){r=!1})}var l=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
|
|
2
|
-
linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,u=360,d=`keydown`,f=`mousedown`,p=`focusin`;function m(e,t){return(t||document).querySelector(e)}function h(e){e.preventDefault(),e.stopPropagation()}function g(e,t,n,r,i){e.add(t,d,function(e){n.indexOf(e.key)>=0&&(i&&h(e),r(e))})}var _=function(){function n(t){e(this,n),this.settings={popup:`right`,layout:`default`,alpha:!0,editor:!0,editorFormat:`hex`,cancelButton:!1,defaultColor:`#0cf`},this._events=new o,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(t)}return t(n,[{key:`setOptions`,value:function(e){var t=this;if(!e)return;var n=this.settings;function r(e,t,n){for(var r in e)n&&n.indexOf(r)>=0||(t[r]=e[r])}if(e instanceof HTMLElement)n.parent=e;else{n.parent&&e.parent&&n.parent!==e.parent&&(this._events.remove(n.parent),this._popupInited=!1),r(e,n),e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose);var i=e.color||e.colour;i&&this._setColor(i)}var a=n.parent;if(a&&n.popup&&!this._popupInited){var o=function(e){return t.openHandler(e)};this._events.add(a,`click`,o),g(this._events,a,[` `,`Spacebar`,`Enter`],o),this._popupInited=!0}else e.parent&&!n.popup&&this.show()}},{key:`openHandler`,value:function(e){if(this.show()){e&&e.preventDefault(),this.settings.parent.style.pointerEvents=`none`;var t=e&&e.type===d?this._domEdit:this.domElement;setTimeout(function(){return t.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:`closeHandler`,value:function(e){var t=e&&e.type,n=!1;if(!e)n=!0;else if(t===f||t===p){var r=(this.__containedEvent||0)+100;e.timeStamp>r&&(n=!0)}else h(e),n=!0;n&&this.hide()&&(this.settings.parent.style.pointerEvents=``,t!==f&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:`movePopup`,value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:`setColor`,value:function(e,t){this._setColor(e,{silent:t})}},{key:`_setColor`,value:function(e,t){if(typeof e==`string`&&(e=e.trim()),e){t||={};var n=void 0;try{n=new a(e)}catch(e){if(t.failSilently)return;throw e}if(!this.settings.alpha){var r=n.hsla;r[3]=1,n.hsla=r}this.colour=this.color=n,this._setHSLA(null,null,null,null,t)}}},{key:`setColour`,value:function(e,t){this.setColor(e,t)}},{key:`show`,value:function(){if(!this.settings.parent)return!1;if(this.domElement){var e=this._toggleDOM(!0);return this._setPosition(),e}var t=s(this.settings.template||`<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>`);return this.domElement=t,this._domH=m(`.picker_hue`,t),this._domSL=m(`.picker_sl`,t),this._domA=m(`.picker_alpha`,t),this._domEdit=m(`.picker_editor input`,t),this._domSample=m(`.picker_sample`,t),this._domOkay=m(`.picker_done button`,t),this._domCancel=m(`.picker_cancel button`,t),t.classList.add(`layout_`+this.settings.layout),this.settings.alpha||t.classList.add(`no_alpha`),this.settings.editor||t.classList.add(`no_editor`),this.settings.cancelButton||t.classList.add(`no_cancel`),this._ifPopup(function(){return t.classList.add(`popup`)}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:`hide`,value:function(){return this._toggleDOM(!1)}},{key:`destroy`,value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:`_bindEvents`,value:function(){var e=this,t=this,n=this.domElement,r=this._events;function i(e,t,n){r.add(e,t,n)}i(n,`click`,function(e){return e.preventDefault()}),c(r,this._domH,function(e,n){return t._setHSLA(e)}),c(r,this._domSL,function(e,n){return t._setHSLA(null,e,1-n)}),this.settings.alpha&&c(r,this._domA,function(e,n){return t._setHSLA(null,null,null,1-n)});var a=this._domEdit;i(a,`input`,function(e){t._setColor(this.value,{fromEditor:!0,failSilently:!0})}),i(a,`focus`,function(e){var t=this;t.selectionStart===t.selectionEnd&&t.select()}),this._ifPopup(function(){var t=function(t){return e.closeHandler(t)};i(window,f,t),i(window,p,t),g(r,n,[`Esc`,`Escape`],t);var a=function(t){e.__containedEvent=t.timeStamp};i(n,f,a),i(n,p,a),i(e._domCancel,`click`,t)});var o=function(t){e._ifPopup(function(){return e.closeHandler(t)}),e.onDone&&e.onDone(e.colour)};i(this._domOkay,`click`,o),g(r,n,[`Enter`],o)}},{key:`_setPosition`,value:function(){var e=this.settings.parent,t=this.domElement;e!==t.parentNode&&e.appendChild(t),this._ifPopup(function(n){getComputedStyle(e).position===`static`&&(e.style.position=`relative`);var r=n===!0?`popup_right`:`popup_`+n;[`popup_top`,`popup_bottom`,`popup_left`,`popup_right`].forEach(function(e){e===r?t.classList.add(e):t.classList.remove(e)}),t.classList.add(r)})}},{key:`_setHSLA`,value:function(e,t,n,r,i){i||={};var a=this.colour,o=a.hsla;[e,t,n,r].forEach(function(e,t){(e||e===0)&&(o[t]=e)}),a.hsla=o,this._updateUI(i),this.onChange&&!i.silent&&this.onChange(a)}},{key:`_updateUI`,value:function(e){if(!this.domElement)return;e||={};var t=this.colour,n=t.hsla,r=`hsl(`+n[0]*u+`, 100%, 50%)`,i=t.hslString,a=t.hslaString,o=this._domH,s=this._domSL,c=this._domA,d=m(`.picker_selector`,o),f=m(`.picker_selector`,s),p=m(`.picker_selector`,c);function h(e,t,n){t.style.left=n*100+`%`}function g(e,t,n){t.style.top=n*100+`%`}h(o,d,n[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,h(s,f,n[1]),g(s,f,1-n[2]),s.style.color=i,g(c,p,1-n[3]);var _=i,v=`linear-gradient(`+[_,_.replace(`hsl`,`hsla`).replace(`)`,`, 0)`)]+`)`;if(this._domA.style.background=v+`, `+l,!e.fromEditor){var y=this.settings.editorFormat,b=this.settings.alpha,x=void 0;switch(y){case`rgb`:x=t.printRGB(b);break;case`hsl`:x=t.printHSL(b);break;default:x=t.printHex(b)}this._domEdit.value=x}this._domSample.style.color=a}},{key:`_ifPopup`,value:function(e,t){this.settings.parent&&this.settings.popup?e&&e(this.settings.popup):t&&t()}},{key:`_toggleDOM`,value:function(e){var t=this.domElement;if(!t)return!1;var n=e?``:`none`,r=t.style.display!==n;return r&&(t.style.display=n),r}}]),n}(),v=document.createElement(`style`);v.textContent=`.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}`,document.documentElement.firstElementChild.appendChild(v),_.StyleElement=v;export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,_t as t,ct as n,k as r,lt as i,mt as a}from"./DoRHgNUl.js";function o(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?o(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var s=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function c(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n instanceof Promise)return n.then(()=>c(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function l(e,t,n){if(e.length>0)return c(e,t,0,s(n))}function u(e,t,n){if(e.length>0){let r=s(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function d(e,t){for(let n of[...e])n(t)}var f=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,`name`,{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=o(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=o(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(l,e,t)}callHookParallel(e,...t){return this.callHookWith(u,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&d(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&d(this._after,r)}):(this._after&&r&&d(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function p(){return new f}function m(e={}){let t,n=!1,r=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let a=()=>{if(i){let e=i.getStore();if(e!==void 0)return e}return t};return{use:()=>{let e=a();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>a(),set:(e,i)=>{i||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,a)=>{r(e),t=e;try{return i?i.run(e,a):a()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;let a=()=>{t=e},o=()=>t===e?a:void 0;x.add(o);try{let a=i?i.run(e,r):r();return n||(t=void 0),await a}finally{x.delete(o)}}}}function h(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=m({...e,...r})),t[n]}}}var g=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof global<`u`?global:typeof window<`u`?window:{},_=`__unctx__`,v=g[_]||(g[_]=h()),y=(e,t={})=>v.get(e,t),b=`__unctx_async_handlers__`,x=g[b]||(g[b]=new Set);function S(e){let t=[];for(let e of x){let n=e();n&&t.push(n)}let n=()=>{for(let e of t)e()},r=e();return r&&typeof r==`object`&&`catch`in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}var C={id:`__nuxt-loader`},w={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},T={deep:!1},E={},D=`#__nuxt`,O=`nuxt-app`,k=36e5,A=`vite:preloadError`;function j(e=`nuxt-app`){return y(e,{asyncContext:!1})}var M=`__nuxt_plugin`;function N(e){let r=0,o={_id:e.id||`nuxt-app`,_scope:n(),provide:void 0,versions:{get nuxt(){return`4.4.2`},get vue(){return o.vueApp.version}},payload:t({...e.ssrContext?.payload||{},data:t({}),state:a({}),once:new Set,_errors:t({})}),static:{data:{}},runWithContext(e){return o._scope.active&&!i()?o._scope.run(()=>R(o,e)):R(o,e)},isHydrating:!0,deferHydration(){if(!o.isHydrating)return()=>{};r++;let e=!1;return()=>{if(!e&&(e=!0,r--,r===0))return o.isHydrating=!1,o.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:t({}),_state:t({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(o.payload[t],e[t]);break;default:o.payload[t]=e[t]}}o.hooks=p(),o.hook=o.hooks.hook;{let e=o.hooks.callHook;o.hooks.callHook=(t,...n)=>Promise.resolve().then(()=>e(t,...n))}o.callHook=o.hooks.callHook,o.provide=(e,t)=>{let n=`$`+e;H(o,n,t),H(o.vueApp.config.globalProperties,n,t)},H(o.vueApp,`$nuxt`,o),H(o.vueApp.config.globalProperties,`$nuxt`,o);{window.addEventListener(A,e=>{o.callHook(`app:chunkError`,{error:e.payload}),e.payload.message.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=B;let e=o.hook(`app:error`,(...e)=>{console.error(`[nuxt] error caught during app initialization`,...e)});o.hook(`app:mounted`,e)}let s=o.payload.config;return o.provide(`config`,s),o}function P(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function F(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function I(e,t){let n=new Set,r=[],i=[],a,o=0;async function s(c){let l=c.dependsOn?.filter(e=>t.some(t=>t._name===e)&&!n.has(e))??[];if(l.length>0)r.push([new Set(l),c]);else{let t=F(e,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([e,t])=>{e.has(c._name)&&(e.delete(c._name),e.size===0&&(o++,await s(t)))})))}).catch(t=>{if(!c.parallel&&!e.payload.error)throw t;a||=t});c.parallel?i.push(t):await t}}for(let n of t)P(e,n);for(let e of t)await s(e);if(await Promise.all(i),o)for(let e=0;e<o;e++)await Promise.all(i);if(a)throw e.payload.error||a}function L(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[M]:!0,_name:t})}function R(e,t,n){return j(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function z(t){let n;return r()&&(n=e()?.appContext.app.$nuxt),n||=j(t).tryUse(),n||null}function B(e){let t=z(e);if(!t)throw Error(`[nuxt] instance unavailable`);return t}function V(e){return B().$config}function H(e,t,n){Object.defineProperty(e,t,{get:()=>n})}export{V as a,T as c,k as d,D as f,B as i,E as l,p as m,N as n,O as o,S as p,L as r,C as s,I as t,w as u};
|