50 lines
489 KiB
JavaScript
50 lines
489 KiB
JavaScript
|
|
import{aG as fc,aH as oa,aF as za}from"./0-vendor-react-DWOJpYrt.js";function co(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=co(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hc(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=co(e))&&(r&&(r+=" "),r+=t);return r}const ks=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ds=hc,Z_=(e,t)=>n=>{var r;if(t?.variants==null)return Ds(e,n?.class,n?.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(l=>{const f=n?.[l],E=i?.[l];if(f===null)return null;const b=ks(f)||ks(E);return a[l][b]}),u=n&&Object.entries(n).reduce((l,f)=>{let[E,b]=f;return b===void 0||(l[E]=b),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,f)=>{let{class:E,className:b,...A}=f;return Object.entries(A).every(N=>{let[_,y]=N;return Array.isArray(y)?y.includes({...i,...u}[_]):{...i,...u}[_]===y})?[...l,E,b]:l},[]);return Ds(e,o,c,n?.class,n?.className)},ss="-",mc=e=>{const t=Ec(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const u=o.split(ss);return u[0]===""&&u.length!==1&&u.shift(),lo(u,t)||pc(o)},getConflictingClassGroupIds:(o,u)=>{const c=n[o]||[];return u&&r[o]?[...c,...r[o]]:c}}},lo=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?lo(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(ss);return t.validators.find(({validator:o})=>o(i))?.classGroupId},Ls=/^\[(.+)\]$/,pc=e=>{if(Ls.test(e)){const t=Ls.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ec=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return bc(Object.entries(e.classGroups),n).forEach(([i,o])=>{$a(o,r,i,t)}),r},$a=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:Ms(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(gc(a)){$a(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,o])=>{$a(o,Ms(t,i),n,r)})})},Ms=(e,t)=>{let n=e;return t.split(ss).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},gc=e=>e.isThemeGetter,bc=(e,t)=>t?e.map(([n,r])=>{const a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,u])=>[t+o,u])):i);return[n,a]}):e,_c=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return a(i,o),o},set(i,o){n.has(i)?n.set(i,o):a(i,o)}}},fo="!",Tc=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],i=t.length,o=u=>{const c=[];let l=0,f=0,E;for(let y=0;y<u.length;y++){let I=u[y];if(l===0){if(I===a&&(r||u.slice(y,y+i)===t)){c.push(u.slice(f,y)),f=y+i;continue}if(I==="/"){E=y;continue}}I==="["?l++:I==="]"&&l--}const b=c.length===0?u:u.substring(f),A=b.startsWith(fo),N=A?b.substring(1):b,_=E&&E>f?E-f:void 0;return{modifiers:c,hasImportantModifier:A,baseClassName:N,maybePostfixModifierPosition:_}};return n?u=>n({className:u,parseClassName:o}):o},Ac=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Nc=e=>({cache:_c(e.cacheSize),parseClassName:Tc(e),...mc(e)}),Sc=/\s+/,yc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(Sc);let u="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:f,hasImportantModifier:E,baseClassName:b,maybePostfixModifierPosition:A}=n(l);let N=!!A,_=r(N?b.substring(0,A):b);if(!_){if(!N){u=l+(u.length>0?" "+u:u);continue}if(_=r(b),!_){u=l+(u.length>0?" "+u:u);continue}N=!1}const y=Ac(f).join(":"),I=E?y+fo:y,x=I+_;if(i.includes(x))continue;i.push(x);const U=a(_,N);for(let v=0;v<U.length;++v){const H=U[v];i.push(I+H)}u=l+(u.length>0?" "+u:u)}return u};function Oc(){let e=0,t,n,r="
|
||
|
|
`).filter(o=>o),a=Math.min(...r.map(o=>o.length-o.trimStart().length)),i=r.map(o=>o.slice(a)).map(o=>" ".repeat(this.indent*2)+o);for(const o of i)this.content.push(o)}compile(){const t=Function,n=this?.args,a=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,a.join(`
|
||
|
|
`))}}const ql={major:4,minor:3,patch:6},Ue=C("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ql;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(o,u,c)=>{let l=wn(o),f;for(const E of u){if(E._zod.def.when){if(!E._zod.def.when(o))continue}else if(l)continue;const b=o.issues.length,A=E._zod.check(o);if(A instanceof Promise&&c?.async===!1)throw new Ln;if(f||A instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await A,o.issues.length!==b&&(l||(l=wn(o,b)))});else{if(o.issues.length===b)continue;l||(l=wn(o,b))}}return f?f.then(()=>o):o},i=(o,u,c)=>{if(wn(o))return o.aborted=!0,o;const l=a(u,r,c);if(l instanceof Promise){if(c.async===!1)throw new Ln;return l.then(f=>e._zod.parse(f,c))}return e._zod.parse(l,c)};e._zod.run=(o,u)=>{if(u.skipChecks)return e._zod.parse(o,u);if(u.direction==="backward"){const l=e._zod.parse({value:o.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(f=>i(f,o,u)):i(l,o,u)}const c=e._zod.parse(o,u);if(c instanceof Promise){if(u.async===!1)throw new Ln;return c.then(l=>a(l,r,u))}return a(c,r,u)}}he(e,"~standard",()=>({validate:a=>{try{const i=al(e,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return sl(e,a).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}))}),fs=C("$ZodString",(e,t)=>{Ue.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??vl(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ie=C("$ZodStringFormat",(e,t)=>{da.init(e,t),fs.init(e,t)}),Vl=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Al),Ie.init(e,t)}),Xl=C("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ps(r))}else t.pattern??(t.pattern=Ps());Ie.init(e,t)}),Ql=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Nl),Ie.init(e,t)}),jl=C("$ZodURL",(e,t)=>{Ie.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),a=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=a.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Jl=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=yl()),Ie.init(e,t)}),ed=C("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=_l),Ie.init(e,t)}),td=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ml),Ie.init(e,t)}),nd=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=pl),Ie.init(e,t)}),rd=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=El),Ie.init(e,t)}),ad=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=gl),Ie.init(e,t)}),sd=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=bl),Ie.init(e,t)}),id=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ml(t)),Ie.init(e,t)}),od=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Dl),Ie.init(e,t)}),ud=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ll(t)),Ie.init(e,t)}),cd=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Tl),Ie.init(e,t)}),ld=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ol),Ie.init(e,t),e._zod.bag.format="ipv4"}),dd=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Il),Ie.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),fd=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Cl),Ie.init(e,
|
||
|
|
if (${v}.issues.length) {
|
||
|
|
if (${H} in input) {
|
||
|
|
payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
|
||
|
|
...iss,
|
||
|
|
path: iss.path ? [${H}, ...iss.path] : [${H}]
|
||
|
|
})));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
if (${v}.value === undefined) {
|
||
|
|
if (${H} in input) {
|
||
|
|
newResult[${H}] = undefined;
|
||
|
|
}
|
||
|
|
} else {
|
||
|
|
newResult[${H}] = ${v}.value;
|
||
|
|
}
|
||
|
|
|
||
|
|
`):A.write(`
|
||
|
|
if (${v}.issues.length) {
|
||
|
|
payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
|
||
|
|
...iss,
|
||
|
|
path: iss.path ? [${H}, ...iss.path] : [${H}]
|
||
|
|
})));
|
||
|
|
}
|
||
|
|
|
||
|
|
if (${v}.value === undefined) {
|
||
|
|
if (${H} in input) {
|
||
|
|
newResult[${H}] = undefined;
|
||
|
|
}
|
||
|
|
} else {
|
||
|
|
newResult[${H}] = ${v}.value;
|
||
|
|
}
|
||
|
|
|
||
|
|
`)}A.write("payload.value = newResult;"),A.write("return payload;");const x=A.compile();return(U,v)=>x(b,U,v)};let i;const o=jr,u=!go.jitless,l=u&&Kc.value,f=t.catchall;let E;e._zod.parse=(b,A)=>{E??(E=r.value);const N=b.value;return o(N)?u&&l&&A?.async===!1&&A.jitless!==!0?(i||(i=a(t.shape)),b=i(b,A),f?ko([],N,b,A,E,e):b):n(b,A):(b.issues.push({expected:"object",code:"invalid_type",input:N,inst:e}),b)}});function Us(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const a=e.filter(i=>!wn(i));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(o=>hn(o,r,fn())))}),t)}const Od=C("$ZodUnion",(e,t)=>{Ue.init(e,t),he(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),he(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),he(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),he(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${a.map(i=>us(i.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(a,i)=>{if(n)return r(a,i);let o=!1;const u=[];for(const c of t.options){const l=c._zod.run({value:a.value,issues:[]},i);if(l instanceof Promise)u.push(l),o=!0;else{if(l.issues.length===0)return l;u.push(l)}}return o?Promise.all(u).then(c=>Us(c,a,e,i)):Us(u,a,e,i)}}),Id=C("$ZodIntersection",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,i=t.left._zod.run({value:a,issues:[]},r),o=t.right._zod.run({value:a,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([c,l])=>Fs(n,c,l)):Fs(n,i,o)}});function Ya(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(hr(e)&&hr(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),a={...e,...t};for(const i of r){const o=Ya(e[i],t[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};a[i]=o.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],i=t[r],o=Ya(a,i);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Fs(e,t,n){const r=new Map;let a;for(const u of t.issues)if(u.code==="unrecognized_keys"){a??(a=u);for(const c of u.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(u);for(const u of n.issues)if(u.code==="unrecognized_keys")for(const c of u.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(u);const i=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&a&&e.issues.push({...a,keys:i}),wn(e))return e;const o=Ya(t.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Cd=C("$ZodEnum",(e,t)=>{Ue.init(e,t);const n=bo(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(a=>Zc.has(typeof a)).map(a=>typeof a=="string"?ua(a):a.toString()).join("|")})$`),e._zod.parse=(a,i)=>{const o=a.value;return r.has(o)||a.issues.push({code:"invalid_value",values:n,input:o,inst:e}),a}}),Rd=C("$ZodTransform",(e,t)=>{Ue.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Eo(e.constructor.name);const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(o=>(n.value=o,n));if(a instanceof Promise)throw new Ln;return n.value=a,n}});function Hs(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Do=C("$ZodOptional",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",e._zod.optout="optional",he(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),he(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${us(n.source)})?$`):void 0}),e.
|
||
|
|
|
||
|
|
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const o of e.seen.entries()){const u=o[1];if(t===o[0]){i(o);continue}if(e.external){const l=e.external.registry.get(o[0])?.id;if(t!==o[0]&&l){i(o);continue}}if(e.metadataRegistry.get(o[0])?.id){i(o);continue}if(u.cycle){i(o);continue}if(u.count>1&&e.reused==="ref"){i(o);continue}}}function Po(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=o=>{const u=e.seen.get(o);if(u.ref===null)return;const c=u.def??u.schema,l={...c},f=u.ref;if(u.ref=null,f){r(f);const b=e.seen.get(f),A=b.schema;if(A.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(A)):Object.assign(c,A),Object.assign(c,l),o._zod.parent===f)for(const _ in c)_==="$ref"||_==="allOf"||_ in l||delete c[_];if(A.$ref&&b.def)for(const _ in c)_==="$ref"||_==="allOf"||_ in b.def&&JSON.stringify(c[_])===JSON.stringify(b.def[_])&&delete c[_]}const E=o._zod.parent;if(E&&E!==f){r(E);const b=e.seen.get(E);if(b?.schema.$ref&&(c.$ref=b.schema.$ref,b.def))for(const A in c)A==="$ref"||A==="allOf"||A in b.def&&JSON.stringify(c[A])===JSON.stringify(b.def[A])&&delete c[A]}e.override({zodSchema:o,jsonSchema:c,path:u.path??[]})};for(const o of[...e.seen.entries()].reverse())r(o[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const o=e.external.registry.get(t)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(o)}Object.assign(a,n.def??n.schema);const i=e.external?.defs??{};for(const o of e.seen.entries()){const u=o[1];u.def&&u.defId&&(i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{const o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...t["~standard"],jsonSchema:{input:ta(t,"input",e.processors),output:ta(t,"output",e.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function je(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return je(r.element,n);if(r.type==="set")return je(r.valueType,n);if(r.type==="lazy")return je(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return je(r.innerType,n);if(r.type==="intersection")return je(r.left,n)||je(r.right,n);if(r.type==="record"||r.type==="map")return je(r.keyType,n)||je(r.valueType,n);if(r.type==="pipe")return je(r.in,n)||je(r.out,n);if(r.type==="object"){for(const a in r.shape)if(je(r.shape[a],n))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(je(a,n))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(je(a,n))return!0;return!!(r.rest&&je(r.rest,n))}return!1}const kf=(e,t={})=>n=>{const r=vo({...n,processors:t});return Ke(e,r),xo(r,e),Po(r,e)},ta=(e,t,n={})=>r=>{const{libraryOptions:a,target:i}=r??{},o=vo({...a??{},target:i,io:t,processors:n});return Ke(e,o),xo(o,e),Po(o,e)},Df={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Lf=(e,t,n,r)=>{const a=n;a.type="string";const{minimum:i,maximum:o,format:u,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof i=="number"&&(a.minLength=i),typeof o=="number"&&(a.maxLength=o),u&&(a.format=Df[u]??u,a.format===""&&delete a.format,u==="time"&&delete a.format),l&&(a.contentEncoding=l),c&&c.size>0){const f=[...c];f.length===1?a.pattern=f[0].source:f.length>1&&(a.allOf=[...f.map(E=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:E.source}))])}},Mf=(e,t,n,r)=>{n.not={}},vf=(e,t,n,r)=>{},xf=(e,t,n,r)=>{const a=e._zod.def,i=bo(a.entries);i.every(o=>typeof o=="number")&&(n.type="numb
|
||
|
|
`,si="/",ii="*",cn="",kh="comment",Dh="declaration";function Lh(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(N){var _=N.match(Nh);_&&(n+=_.length);var y=N.lastIndexOf(wh);r=~y?N.length-y:r+N.length}function i(){var N={line:n,column:r};return function(_){return _.position=new o(N),l(),_}}function o(N){this.start=N,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function u(N){var _=new Error(t.source+":"+n+":"+r+": "+N);if(_.reason=N,_.filename=t.source,_.line=n,_.column=r,_.source=e,!t.silent)throw _}function c(N){var _=N.exec(e);if(_){var y=_[0];return a(y),e=e.slice(y.length),_}}function l(){c(Sh)}function f(N){var _;for(N=N||[];_=E();)_!==!1&&N.push(_);return N}function E(){var N=i();if(!(si!=e.charAt(0)||ii!=e.charAt(1))){for(var _=2;cn!=e.charAt(_)&&(ii!=e.charAt(_)||si!=e.charAt(_+1));)++_;if(_+=2,cn===e.charAt(_-1))return u("End of comment missing");var y=e.slice(2,_-2);return r+=2,a(y),e=e.slice(_),r+=2,N({type:kh,comment:y})}}function b(){var N=i(),_=c(yh);if(_){if(E(),!c(Oh))return u("property missing ':'");var y=c(Ih),I=N({type:Dh,property:oi(_[0].replace(ai,cn)),value:y?oi(y[0].replace(ai,cn)):cn});return c(Ch),I}}function A(){var N=[];f(N);for(var _;_=b();)_!==!1&&(N.push(_),f(N));return N}return l(),A()}function oi(e){return e?e.replace(Rh,cn):cn}function Mh(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Lh(e),a=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:o,value:u}=i;a?t(o,u,i):u&&(n=n||{},n[o]=u)}),n}const vh=Object.freeze(Object.defineProperty({__proto__:null,default:Mh},Symbol.toStringTag,{value:"Module"})),xh=fc(vh);var qn={},ui;function Ph(){if(ui)return qn;ui=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(l){return!l||n.test(l)||e.test(l)},o=function(l,f){return f.toUpperCase()},u=function(l,f){return"".concat(f,"-")},c=function(l,f){return f===void 0&&(f={}),i(l)?l:(l=l.toLowerCase(),f.reactCompat?l=l.replace(a,u):l=l.replace(r,u),l.replace(t,o))};return qn.camelCase=c,qn}var Vn,ci;function Bh(){if(ci)return Vn;ci=1;var e=Vn&&Vn.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(xh),n=Ph();function r(a,i){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(u,c){u&&c&&(o[(0,n.camelCase)(u,i)]=c)}),o}return r.default=r,Vn=r,Vn}var Uh=Bh();const aT=oa(Uh),ps=qo("end"),jt=qo("start");function qo(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Fh(e){const t=jt(e),n=ps(e);if(t&&n)return{start:t,end:n}}function Hh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?li(e.position):"start"in e||"end"in e?li(e):"line"in e||"column"in e?qa(e):""}function qa(e){return di(e&&e.line)+":"+di(e&&e.column)}function li(e){return qa(e&&e.start)+"-"+qa(e&&e.end)}function di(e){return e&&typeof e=="number"?e:1}class ot extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const u=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=u?u.line:void 0,this.name=Hh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0
|
||
|
|
`)}function fm(e){return e==null?"":String(e)}function _i(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Ti={}.hasOwnProperty;function Xo(e,t){const n=t||{};function r(a,...i){let o=r.invalid;const u=r.handlers;if(a&&Ti.call(a,e)){const c=String(a[e]);o=Ti.call(u,c)?u[c]:r.unknown}if(o)return o.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function pT(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}var Ra={exports:{}},Ai;function hm(){return Ai||(Ai=1,(function(e){(function(){var t;t=e.exports=a,t.format=a,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(a.apply(null,arguments))}function r(i,o){return a.apply(null,[i].concat(o))}function a(i){for(var o=1,u=[].slice.call(arguments),c=0,l=i.length,f="",E,b=!1,A,N,_=!1,y,I=function(){return u[o++]},x=function(){for(var U="";/\d/.test(i[c]);)U+=i[c++],E=i[c];return U.length>0?parseInt(U):null};c<l;++c)if(E=i[c],b)switch(b=!1,E=="."?(_=!1,E=i[++c]):E=="0"&&i[c+1]=="."?(_=!0,c+=2,E=i[c]):_=!0,y=x(),E){case"b":f+=parseInt(I(),10).toString(2);break;case"c":A=I(),typeof A=="string"||A instanceof String?f+=A:f+=String.fromCharCode(parseInt(A,10));break;case"d":f+=parseInt(I(),10);break;case"f":N=String(parseFloat(I()).toFixed(y||6)),f+=_?N:N.replace(/^0/,"");break;case"j":f+=JSON.stringify(I());break;case"o":f+="0"+parseInt(I(),10).toString(8);break;case"s":f+=I();break;case"x":f+="0x"+parseInt(I(),10).toString(16);break;case"X":f+="0x"+parseInt(I(),10).toString(16).toUpperCase();break;default:f+=E;break}else E==="%"?b=!0:f+=E;return f}})()})(Ra)),Ra.exports}var mm=hm();const pm=oa(mm),ET=Object.assign(on(Error),{eval:on(EvalError),range:on(RangeError),reference:on(ReferenceError),syntax:on(SyntaxError),type:on(TypeError),uri:on(URIError)});function on(e){return t.displayName=e.displayName||e.name,t;function t(n,...r){const a=n&&pm(n,...r);return new e(a)}}const Ni=/[#.]/g;function Em(e,t){const n=e||"",r={};let a=0,i,o;for(;a<n.length;){Ni.lastIndex=a;const u=Ni.exec(n),c=n.slice(a,u?u.index:n.length);c&&(i?i==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:o=c,a+=c.length),u&&(i=u[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function Qo(e,t,n){const r=n?Tm(n):void 0;function a(i,o,...u){let c;if(i==null){c={type:"root",children:[]};const l=o;u.unshift(l)}else{c=Em(i,t);const l=c.tagName.toLowerCase(),f=r?r.get(l):void 0;if(c.tagName=f||l,gm(o))u.unshift(o);else for(const[E,b]of Object.entries(o))bm(e,c.properties,E,b)}for(const l of u)Xa(c.children,l);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function gm(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const o of i)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function bm(e,t,n,r){const a=ms(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=ri(r):a.commaSeparated?i=Js(r):a.commaOrSpaceSeparated?i=ri(Js(r).join(" ")):i=Si(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?_m(r):String(r);if(Array.isArray(i)){const o=[];for(const u of i)o.push(Si(a,a.property,u));i=o}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function Xa(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Xa(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Xa(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or
|
||
|
|
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const ln={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},jo={}.hasOwnProperty,Om=Object.prototype;function Im(e,t){const n=t||{};return gs({file:n.file||void 0,location:!1,schema:n.space==="svg"?br:fa,verbose:n.verbose||!1},e)}function gs(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},qr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Jo(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),o=ym(i),u=o.toPoint(0),c=o.toPoint(i.length);n.position={start:u,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},qr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},qr(e,r,n),n}default:return n=Cm(e,t),n}}function Jo(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=gs(e,t[n]);r.push(a)}return r}function Cm(e,t){const n=e.schema;e.schema=t.namespaceURI===ln.svg?br:fa;let r=-1;const a={};for(;++r<t.attrs.length;){const u=t.attrs[r],c=(u.prefix?u.prefix+":":"")+u.name;jo.call(Om,c)||(a[c]=u.value)}const o=(e.schema.space==="svg"?Sm:Nm)(t.tagName,a,Jo(e,t.childNodes));if(qr(e,t,o),o.tagName==="template"){const u=t,c=u.sourceCodeLocation,l=c&&c.startTag&&kn(c.startTag),f=c&&c.endTag&&kn(c.endTag),E=gs(e,u.content);l&&f&&e.file&&(E.position={start:l.end,end:f.start}),o.content=E}return e.schema=n,o}function qr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Rm(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Rm(e,t,n){const r=kn(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let o;if(n.attrs)for(o in n.attrs)jo.call(n.attrs,o)&&(i[ms(e.schema,o).property]=kn(n.attrs[o]));n.startTag;const u=kn(n.startTag),c=n.endTag?kn(n.endTag):void 0,l={opening:u};c&&(l.closing=c),l.properties=i,t.data={position:l}}}return r}function kn(e){const t=Oi({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Oi({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Oi(e){return e.line&&e.column?e:void 0}const wm={},km={}.hasOwnProperty,eu=Xo("type",{handlers:{root:Lm,element:Bm,text:xm,comment:Pm,doctype:vm}});function Dm(e,t){const r=(t||wm).space;return eu(e,r==="svg"?br:fa)}function Lm(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=bs(e.children,n,t),Un(e,n),n}function Mm(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=bs(e.children,n,t),Un(e,n),n}function vm(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Un(e,t),t}function xm(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Un(e,t),t}function Pm(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Un(e,t),t}function Bm(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=br);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&km.call(e.properties,i)){const c=Um(r,i,e.properties[i]);c&&a.push(c)}}const o=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:ln[o],childNodes:[],parentNode:null};return u.childNodes=bs(e.children,u,r),Un(e,u),e.tagName==="template"&&e.content&&(u.content=Mm(e.content,r)),u}function Um(e,t,n){const r=ms(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?ch(n):Ah(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i))
|
||
|
|
`.repeat(l)||" "),l=-1,c.push(f))}return c.join("")}function xu(e,t,n){return e.type==="element"?$g(e,t,n):e.type==="text"?n.whitespace==="normal"?Pu(e,n):Gg(e):[]}function $g(e,t,n){const r=Bu(e,n),a=e.children||[];let i=-1,o=[];if(zg(e))return o;let u,c;for(ts(e)||Ki(e)&&$i(t,e,Ki)?c=`
|
||
|
|
`:Hg(e)?(u=2,c=2):vu(e)&&(u=1,c=1);++i<a.length;)o=o.concat(xu(a[i],e,{whitespace:r,breakBefore:i?void 0:u,breakAfter:i<a.length-1?ts(a[i+1]):c}));return Wi(e)&&$i(t,e,Wi)&&o.push(" "),u&&o.unshift(u),c&&o.push(c),o}function Pu(e,t){const n=String(e.value),r=[],a=[];let i=0;for(;i<=n.length;){Gi.lastIndex=i;const c=Gi.exec(n),l=c&&"index"in c?c.index:n.length;r.push(Yg(n.slice(i,l).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,l===n.length?t.breakAfter:!0)),i=l+1}let o=-1,u;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(a.push(r[o]),u=void 0):r[o]?(typeof u=="number"&&a.push(u),a.push(r[o]),u=0):(o===0||o===r.length-1)&&a.push(0);return a}function Gg(e){return[String(e.value)]}function Yg(e,t,n){const r=[];let a=0,i;for(;a<e.length;){Yi.lastIndex=a;const o=Yi.exec(e);i=o?o.index:e.length,!a&&!i&&o&&!t&&r.push(""),a!==i&&r.push(e.slice(a,i)),a=o?i+o[0].length:i}return a!==i&&!n&&r.push(""),r.join(" ")}function Bu(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Wg(e){return!!(e.properties||{}).hidden}function Kg(e){return e.tagName==="td"||e.tagName==="th"}function Zg(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function qg(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},E={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0},A=t.optional(a)+e.IDENT_RE+"\\s*\\(",N=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],_=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","c
|
||
|
|
`},l]}}const ub=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),cb=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],lb=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],db=[...cb,...lb],fb=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),$u=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Gu=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),hb=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-le
|
||
|
|
]`,N={scope:"string",variants:[f,l,E,b]},_={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},y=["false","null","true"],I=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],x=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v={keyword:I,literal:(le=>{const Se=[];return le.forEach(we=>{Se.push(we),we.toLowerCase()===we?Se.push(we.toUpperCase()):Se.push(we.toLowerCase())}),Se})(y),built_in:x},H=le=>le.map(Se=>Se.replace(/\|\d+$/,"")),W={variants:[{match:[/new/,t.concat(A,"+"),t.concat("(?!",H(x).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},me=t.concat(r,"\\b(?!\\()"),ie={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),me],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,t.concat(/::/,t.lookahead(/(?!class\b)/)),me],scope:{1:"title.class",3:"variable.constant"}},{match:[a,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ce={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},Me={relevance:0,begin:/\(/,end:/\)/,keywords:v,contains:[ce,o,ie,e.C_BLOCK_COMMENT_MODE,N,_,W]},oe={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",H(I).join("\\b|"),"|",H(x).join("\\b|"),"\\b)"),r,t.concat(A,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Me]};Me.contains.push(oe);const Q=[ce,ie,e.C_BLOCK_COMMENT_MODE,N,_,W],He={begin:t.concat(/#\[\s*\\?/,t.either(a,i)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:y,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:y,keyword:[
|
||
|
|
https://github.com/highlightjs/highlight.js/issues/2277`),Be=L,de=B),ne===void 0&&(ne=!0);const Nt={code:de,language:Be};at("before:highlight",Nt);const Gt=Nt.result?Nt.result:ct(Nt.language,Nt.code,ne);return Gt.code=Nt.code,at("after:highlight",Gt),Gt}function ct(L,B,ne,de){const Be=Object.create(null);function Nt(P,Y){return P.keywords[Y]}function Gt(){if(!X.keywords){Ye.addText(_e);return}let P=0;X.keywordPatternRe.lastIndex=0;let Y=X.keywordPatternRe.exec(_e),te="";for(;Y;){te+=_e.substring(P,Y.index);const fe=wt.case_insensitive?Y[0].toLowerCase():Y[0],qe=Nt(X,fe);if(qe){const[xt,lc]=qe;if(Ye.addText(te),te="",Be[fe]=(Be[fe]||0)+1,Be[fe]<=Sn&&(xr+=lc),xt.startsWith("_"))te+=Y[0];else{const dc=wt.classNameAliases[xt]||xt;Rt(Y[0],dc)}}else te+=Y[0];P=X.keywordPatternRe.lastIndex,Y=X.keywordPatternRe.exec(_e)}te+=_e.substring(P),Ye.addText(te)}function Mr(){if(_e==="")return;let P=null;if(typeof X.subLanguage=="string"){if(!O[X.subLanguage]){Ye.addText(_e);return}P=ct(X.subLanguage,_e,!0,ws[X.subLanguage]),ws[X.subLanguage]=P._top}else P=On(_e,X.subLanguage.length?X.subLanguage:null);X.relevance>0&&(xr+=P.relevance),Ye.__addSublanguage(P._emitter,P.language)}function lt(){X.subLanguage!=null?Mr():Gt(),_e=""}function Rt(P,Y){P!==""&&(Ye.startScope(Y),Ye.addText(P),Ye.endScope())}function Os(P,Y){let te=1;const fe=Y.length-1;for(;te<=fe;){if(!P._emit[te]){te++;continue}const qe=wt.classNameAliases[P[te]]||P[te],xt=Y[te];qe?Rt(xt,qe):(_e=xt,Gt(),_e=""),te++}}function Is(P,Y){return P.scope&&typeof P.scope=="string"&&Ye.openNode(wt.classNameAliases[P.scope]||P.scope),P.beginScope&&(P.beginScope._wrap?(Rt(_e,wt.classNameAliases[P.beginScope._wrap]||P.beginScope._wrap),_e=""):P.beginScope._multi&&(Os(P.beginScope,Y),_e="")),X=Object.create(P,{parent:{value:X}}),X}function Cs(P,Y,te){let fe=U(P.endRe,te);if(fe){if(P["on:end"]){const qe=new t(P);P["on:end"](Y,qe),qe.isMatchIgnored&&(fe=!1)}if(fe){for(;P.endsParent&&P.parent;)P=P.parent;return P}}if(P.endsWithParent)return Cs(P.parent,Y,te)}function sc(P){return X.matcher.regexIndex===0?(_e+=P[0],1):(Aa=!0,0)}function ic(P){const Y=P[0],te=P.rule,fe=new t(te),qe=[te.__beforeBegin,te["on:begin"]];for(const xt of qe)if(xt&&(xt(P,fe),fe.isMatchIgnored))return sc(Y);return te.skip?_e+=Y:(te.excludeBegin&&(_e+=Y),lt(),!te.returnBegin&&!te.excludeBegin&&(_e=Y)),Is(te,P),te.returnBegin?0:Y.length}function oc(P){const Y=P[0],te=B.substring(P.index),fe=Cs(X,P,te);if(!fe)return rn;const qe=X;X.endScope&&X.endScope._wrap?(lt(),Rt(Y,X.endScope._wrap)):X.endScope&&X.endScope._multi?(lt(),Os(X.endScope,P)):qe.skip?_e+=Y:(qe.returnEnd||qe.excludeEnd||(_e+=Y),lt(),qe.excludeEnd&&(_e=Y));do X.scope&&Ye.closeNode(),!X.skip&&!X.subLanguage&&(xr+=X.relevance),X=X.parent;while(X!==fe.parent);return fe.starts&&Is(fe.starts,P),qe.returnEnd?0:Y.length}function uc(){const P=[];for(let Y=X;Y!==wt;Y=Y.parent)Y.scope&&P.unshift(Y.scope);P.forEach(Y=>Ye.openNode(Y))}let vr={};function Rs(P,Y){const te=Y&&Y[0];if(_e+=P,te==null)return lt(),0;if(vr.type==="begin"&&Y.type==="end"&&vr.index===Y.index&&te===""){if(_e+=B.slice(Y.index,Y.index+1),!Ce){const fe=new Error(`0 width match regex (${L})`);throw fe.languageName=L,fe.badRule=vr.rule,fe}return 1}if(vr=Y,Y.type==="begin")return ic(Y);if(Y.type==="illegal"&&!ne){const fe=new Error('Illegal lexeme "'+te+'" for mode "'+(X.scope||"<unnamed>")+'"');throw fe.mode=X,fe}else if(Y.type==="end"){const fe=oc(Y);if(fe!==rn)return fe}if(Y.type==="illegal"&&te==="")return _e+=`
|
||
|
|
`,1;if(Ta>1e5&&Ta>Y.index*3)throw new Error("potential infinite loop, way more iterations than matches");return _e+=te,te.length}const wt=w(L);if(!wt)throw _t(ye.replace("{}",L)),new Error('Unknown language: "'+L+'"');const cc=Nn(wt);let _a="",X=de||cc;const ws={},Ye=new F.__emitter(F);uc();let _e="",xr=0,sn=0,Ta=0,Aa=!1;try{if(wt.__emitTokens)wt.__emitTokens(B,Ye);else{for(X.matcher.considerAll();;){Ta++,Aa?Aa=!1:X.matcher.considerAll(),X.matcher.lastIndex=sn;const P=X.matcher.exec(B);if(!P)break;const Y=B.substring(sn,P.index),te=Rs(Y,P);sn=P.index+te}Rs(B.substring(sn))}return Ye.finalize(),_a=Ye.toHTML(),{language:L,value:_a,relevance:xr,illegal:!1,_emitter:Ye,_top:X}}catch(P){if(P.message&&P.message.includes("Illegal"))return{language:L,value:nn(B),illegal:!0,relevance:0,_illegalBy:{message:P.message,index:sn,context:B.slice(sn-100,sn+100),mode:P.mode,resultSoFar:_a},_emitter:Ye};if(Ce)return{language:L,value:nn(B),illegal:!1,relevance:0,errorRaised:P,_emitter:Ye,_top:X};throw P}}function yn(L){const B={value:nn(L),illegal:!1,relevance:0,_top:z,_emitter:new F.__emitter(F)};return B._emitter.addText(L),B}function On(L,B){B=B||F.languages||Object.keys(O);const ne=yn(L),de=B.filter(w).filter(ge).map(lt=>ct(lt,L,!1));de.unshift(ne);const Be=de.sort((lt,Rt)=>{if(lt.relevance!==Rt.relevance)return Rt.relevance-lt.relevance;if(lt.language&&Rt.language){if(w(lt.language).supersetOf===Rt.language)return 1;if(w(Rt.language).supersetOf===lt.language)return-1}return 0}),[Nt,Gt]=Be,Mr=Nt;return Mr.secondBest=Gt,Mr}function Yn(L,B,ne){const de=B&&k[B]||ne;L.classList.add("hljs"),L.classList.add(`language-${de}`)}function In(L){let B=null;const ne=xe(L);if(Z(ne))return;if(at("before:highlightElement",{el:L,language:ne}),L.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",L);return}if(L.children.length>0&&(F.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(L)),F.throwUnescapedHTML))throw new Gn("One of your code blocks includes unescaped HTML.",L.innerHTML);B=L;const de=B.textContent,Be=ne?ue(de,{language:ne,ignoreIllegals:!0}):On(de);L.innerHTML=Be.value,L.dataset.highlighted="yes",Yn(L,ne,Be.language),L.result={language:Be.language,re:Be.relevance,relevance:Be.relevance},Be.secondBest&&(L.secondBest={language:Be.secondBest.language,relevance:Be.secondBest.relevance}),at("after:highlightElement",{el:L,result:Be,text:de})}function At(L){F=wr(F,L)}const Dr=()=>{an(),ut("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Lr(){an(),ut("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Wn=!1;function an(){function L(){an()}if(document.readyState==="loading"){Wn||window.addEventListener("DOMContentLoaded",L,!1),Wn=!0;return}document.querySelectorAll(F.cssSelector).forEach(In)}function ba(L,B){let ne=null;try{ne=B(p)}catch(de){if(_t("Language definition for '{}' could not be registered.".replace("{}",L)),Ce)_t(de);else throw de;ne=z}ne.name||(ne.name=L),O[L]=ne,ne.rawDefinition=B.bind(null,p),ne.aliases&&$(ne.aliases,{languageName:L})}function G(L){delete O[L];for(const B of Object.keys(k))k[B]===L&&delete k[B]}function g(){return Object.keys(O)}function w(L){return L=(L||"").toLowerCase(),O[L]||O[k[L]]}function $(L,{languageName:B}){typeof L=="string"&&(L=[L]),L.forEach(ne=>{k[ne.toLowerCase()]=B})}function ge(L){const B=w(L);return B&&!B.disableAutodetect}function ze(L){L["before:highlightBlock"]&&!L["before:highlightElement"]&&(L["before:highlightElement"]=B=>{L["before:highlightBlock"](Object.assign({block:B.el},B))}),L["after:highlightBlock"]&&!L["after:highlightElement"]&&(L["after:highlightElement"]=B=>{L["after:highlightBlock"](Object.assign({block:B.el},B))})}function ke(L){ze(L),K.push(L)}function Ze(L){const B=K.indexOf(L);B!==-1&&K.splice(B,1)}function at(L,B){const ne=L;K.forEach(functi
|
||
|
|
`+Ze),It&&Wr([Q,He,le],at=>{Ze=er(Ze,at," ")}),v&&en?v.createHTML(Ze):Ze},t.setConfig=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};z(G),se=!0},t.clearConfig=function(){K=null,se=!1},t.isValidAttribute=function(G,g,w){K||z({});const $=k(G),ge=k(g);return Lr($,ge,w)},t.addHook=function(G,g){typeof g=="function"&&Jn(oe[G],g)},t.removeHook=function(G,g){if(g!==void 0){const w=Pb(oe[G],g);return w===-1?void 0:Bb(oe[G],w,1)[0]}return eo(oe[G])},t.removeHooks=function(G){oe[G]=[]},t.removeAllHooks=function(){oe=io()},t}ac();function We(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function e_(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Zr=43200,oo=1440;let t_={};function n_(){return t_}function uo(e){const t=We(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Qr(e,t){const n=We(e),r=We(t),a=n.getTime()-r.getTime();return a<0?-1:a>0?1:a}function r_(e){return e_(e,Date.now())}function a_(e,t){const n=We(e),r=We(t),a=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return a*12+i}function s_(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function i_(e,t){return+We(e)-+We(t)}function o_(e){const t=We(e);return t.setHours(23,59,59,999),t}function u_(e){const t=We(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function c_(e){const t=We(e);return+o_(t)==+u_(t)}function l_(e,t){const n=We(e),r=We(t),a=Qr(n,r),i=Math.abs(a_(n,r));let o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-a*i);let u=Qr(n,r)===-a;c_(We(e))&&i===1&&Qr(e,r)===1&&(u=!1),o=a*(i-Number(u))}return o===0?0:o}function d_(e,t,n){const r=i_(e,t)/1e3;return s_(n?.roundingMethod)(r)}const f_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},h_=(e,t,n)=>{let r;const a=f_[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ha(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const m_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},p_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},E_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g_={date:Ha({formats:m_,defaultWidth:"full"}),time:Ha({formats:p_,defaultWidth:"full"}),dateTime:Ha({formats:E_,defaultWidth:"full"})},b_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},__=(e,t,n,r)=>b_[e];function ar(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=n?.width?String(n.width):o;a=e.formattingValues[
|