wiki.techinc.nl/resources/lib/codex/codex.umd.cjs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

2 lines
129 KiB
JavaScript
Raw Normal View History

(function(w,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(w=typeof globalThis!="undefined"?globalThis:w||self,t(w.codex={},w.Vue))})(this,function(w,t){"use strict";var ki=Object.defineProperty,$i=Object.defineProperties;var Bi=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var mn=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable;var bt=(w,t,F)=>t in w?ki(w,t,{enumerable:!0,configurable:!0,writable:!0,value:F}):w[t]=F,z=(w,t)=>{for(var F in t||(t={}))mn.call(t,F)&&bt(w,F,t[F]);if(tt)for(var F of tt(t))hn.call(t,F)&&bt(w,F,t[F]);return w},W=(w,t)=>$i(w,Bi(t));var ae=(w,t)=>{var F={};for(var Y in w)mn.call(w,Y)&&t.indexOf(Y)<0&&(F[Y]=w[Y]);if(w!=null&&tt)for(var Y of tt(w))t.indexOf(Y)<0&&hn.call(w,Y)&&(F[Y]=w[Y]);return F};var de=(w,t,F)=>(bt(w,typeof t!="symbol"?t+"":t,F),F);var Q=(w,t,F)=>new Promise((Y,_e)=>{var nt=ce=>{try{Ee(F.next(ce))}catch(Ve){_e(Ve)}},ot=ce=>{try{Ee(F.throw(ce))}catch(Ve){_e(Ve)}},Ee=ce=>ce.done?Y(ce.value):Promise.resolve(ce.value).then(nt,ot);Ee((F=F.apply(w,t)).next())});const F='<path d="M11.53 2.3A1.85 1.85 0 0010 1.21 1.85 1.85 0 008.48 2.3L.36 16.36C-.48 17.81.21 19 1.88 19h16.24c1.67 0 2.36-1.19 1.52-2.64zM11 16H9v-2h2zm0-4H9V6h2z"/>',Y='<path d="M12.43 14.34A5 5 0 0110 15a5 5 0 113.95-2L17 16.09V3a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 001.45-.63z"/><circle cx="10" cy="10" r="3"/>',_e='<path d="M10 0a10 10 0 1010 10A10 10 0 0010 0m5.66 14.24-1.41 1.41L10 11.41l-4.24 4.25-1.42-1.42L8.59 10 4.34 5.76l1.42-1.42L10 8.59l4.24-4.24 1.41 1.41L11.41 10z"/>',nt='<path d="m4.34 2.93 12.73 12.73-1.41 1.41L2.93 4.35z"/><path d="M17.07 4.34 4.34 17.07l-1.41-1.41L15.66 2.93z"/>',ot='<path d="M10 15 2 5h16z"/>',Ee='<path d="M13.728 1H6.272L1 6.272v7.456L6.272 19h7.456L19 13.728V6.272zM11 15H9v-2h2zm0-4H9V5h2z"/>',ce='<path d="m17.5 4.75-7.5 7.5-7.5-7.5L1 6.25l9 9 9-9z"/>',Ve='<path d="M19 3H1v14h18zM3 14l3.5-4.5 2.5 3L12.5 8l4.5 6z"/><path d="M19 5H1V3h18zm0 12H1v-2h18z"/>',bn='<path d="M8 19a1 1 0 001 1h2a1 1 0 001-1v-1H8zm9-12a7 7 0 10-12 4.9S7 14 7 15v1a1 1 0 001 1h4a1 1 0 001-1v-1c0-1 2-3.1 2-3.1A7 7 0 0017 7"/>',gn='<path d="M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0M9 5h2v2H9zm0 4h2v6H9z"/>',yn='<path d="M7 1 5.6 2.5 13 10l-7.4 7.5L7 19l9-9z"/>',Cn='<path d="m4 10 9 9 1.4-1.5L7 10l7.4-7.5L13 1z"/>',wn='<path d="M12.2 13.6a7 7 0 111.4-1.4l5.4 5.4-1.4 1.4zM3 8a5 5 0 1010 0A5 5 0 003 8"/>',kn='<path d="M10 0 3 8h14zm0 18-7-8h14z"/>',$n='<path d="M10 20a10 10 0 010-20 10 10 0 110 20m-2-5 9-8.5L15.5 5 8 12 4.5 8.5 3 10z"/>',Bn='<path d="m10 5 8 10H2z"/>',gt=F,Sn=Y,In=_e,lt=nt,xn=ot,yt=Ee,Ct=ce,En=Ve,Vn={langCodeMap:{ar:bn},default:gn},An={ltr:yn,shouldFlip:!0},Nn={ltr:Cn,shouldFlip:!0},Tn=wn,Mn=kn,wt=$n,Ln=Bn;function Dn(e,n,o){if(typeof e=="string"||"path"in e)return e;if("shouldFlip"in e)return e.ltr;if("rtl"in e)return o==="rtl"?e.rtl:e.ltr;const l=n in e.langCodeMap?e.langCodeMap[n]:e.default;return typeof l=="string"||"path"in l?l:l.ltr}function Rn(e,n){if(typeof e=="string")return!1;if("langCodeMap"in e){const o=n in e.langCodeMap?e.langCodeMap[n]:e.default;if(typeof o=="string")return!1;e=o}if("shouldFlipExceptions"in e&&Array.isArray(e.shouldFlipExceptions)){const o=e.shouldFlipExceptions.indexOf(n);return o===void 0||o===-1}return"shouldFlip"in e?e.shouldFlip:!1}function Fe(e){const n=t.ref(null);return t.onMounted(()=>{const o=window.getComputedStyle(e.value).direction;n.value=o==="ltr"||o==="rtl"?o:null}),n}function kt(e){const n=t.ref("");return t.onMounted(()=>{let o=e.value;for(;o&&o.lang==="";)o=o.parentElement;n.value=o?o.lang:null}),n}function q(e){return n=>typeof n=="string"&&e.indexOf(n)!==-1}const ve="cdx",On=["default","progressive","destructive"],_n=["normal","primary","quiet"],Fn=["medium","large"],vn=["x-small","small","medium"],$t=q(["notice","warning","error","success"]),zn=["text","search","number","email","month","password","tel","url","week","date","datetime-local","time"],ue=["default