@likec4/core 1.59.2 → 1.59.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{i as e,t}from"../rolldown-runtime.mjs";import{i as n,r}from"./graphology-dag.mjs";var i=t((e=>{e.intersection=function(){if(arguments.length<2)throw Error(`mnemonist/Set.intersection: needs at least two arguments.`);var e=new Set,t=1/0,n=null,r,i,a=arguments.length;for(i=0;i<a;i++){if(r=arguments[i],r.size===0)return e;r.size<t&&(t=r.size,n=r)}for(var o=n.values(),s,c,l,u;s=o.next(),!s.done;){for(c=s.value,l=!0,i=0;i<a;i++)if(u=arguments[i],u!==n&&!u.has(c)){l=!1;break}l&&e.add(c)}return e},e.union=function(){if(arguments.length<2)throw Error(`mnemonist/Set.union: needs at least two arguments.`);var e=new Set,t,n=arguments.length,r,i;for(t=0;t<n;t++)for(r=arguments[t].values();i=r.next(),!i.done;)e.add(i.value);return e},e.difference=function(e,t){if(!e.size)return new Set;if(!t.size)return new Set(e);for(var n=new Set,r=e.values(),i;i=r.next(),!i.done;)t.has(i.value)||n.add(i.value);return n},e.symmetricDifference=function(e,t){for(var n=new Set,r=e.values(),i;i=r.next(),!i.done;)t.has(i.value)||n.add(i.value);for(r=t.values();i=r.next(),!i.done;)e.has(i.value)||n.add(i.value);return n},e.isSubset=function(e,t){var n=e.values(),r;if(e===t)return!0;if(e.size>t.size)return!1;for(;r=n.next(),!r.done;)if(!t.has(r.value))return!1;return!0},e.isSuperset=function(t,n){return e.isSubset(n,t)},e.add=function(e,t){for(var n=t.values(),r;r=n.next(),!r.done;)e.add(r.value)},e.subtract=function(e,t){for(var n=t.values(),r;r=n.next(),!r.done;)e.delete(r.value)},e.intersect=function(e,t){for(var n=e.values(),r;r=n.next(),!r.done;)t.has(r.value)||e.delete(r.value)},e.disjunct=function(e,t){for(var n=e.values(),r,i=[];r=n.next(),!r.done;)t.has(r.value)&&i.push(r.value);for(n=t.values();r=n.next(),!r.done;)e.has(r.value)||e.add(r.value);for(var a=0,o=i.length;a<o;a++)e.delete(i[a])},e.intersectionSize=function(e,t){var n;if(e.size>t.size&&(n=e,e=t,t=n),e.size===0)return 0;if(e===t)return e.size;for(var r=e.values(),i,a=0;i=r.next(),!i.done;)t.has(i.value)&&a++;return a},e.unionSize=function(t,n){var r=e.intersectionSize(t,n);return t.size+n.size-r},e.jaccard=function(t,n){var r=e.intersectionSize(t,n);return r===0?0:r/(t.size+n.size-r)},e.overlap=function(t,n){var r=e.intersectionSize(t,n);return r===0?0:r/Math.min(t.size,n.size)}})),a=t((e=>{var t=2**16-1,n=2**32-1,r=2**7-1,i=2**15-1,a=2**31-1;e.getPointerArray=function(e){var r=e-1;if(r<=255)return Uint8Array;if(r<=t)return Uint16Array;if(r<=n)return Uint32Array;throw Error(`mnemonist: Pointer Array of size > 4294967295 is not supported.`)},e.getSignedPointerArray=function(e){var t=e-1;return t<=r?Int8Array:t<=i?Int16Array:t<=a?Int32Array:Float64Array},e.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var o={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};e.getMinimalRepresentation=function(t,n){var r=null,i=0,a,s,c,l,u;for(l=0,u=t.length;l<u;l++)c=n?n(t[l]):t[l],s=e.getNumberType(c),a=o[s.name],a>i&&(i=a,r=s);return r},e.isTypedArray=function(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView(e)},e.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)i.set(arguments[t],n),n+=arguments[t].length;return i},e.indices=function(t){for(var n=new(e.getPointerArray(t))(t),r=0;r<t;r++)n[r]=r;return n}})),o=t((e=>{var t=n(),r=a();function isArrayLike(e){return Array.isArray(e)||r.isTypedArray(e)}function guessLength(e){if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size}function toArray(e){var n=guessLength(e),r=typeof n==`number`?Array(n):[],i=0;return t(e,function(e){r[i++]=e}),r}function toArrayWithIndices(e){var n=guessLength(e),i=typeof n==`number`?r.getPointerArray(n):Array,a=typeof n==`number`?Array(n):[],o=typeof n==`number`?new i(n):[],s=0;return t(e,function(e){a[s]=e,o[s]=s++}),[a,o]}e.isArrayLike=isArrayLike,e.guessLength=guessLength,e.toArray=toArray,e.toArrayWithIndices=toArrayWithIndices})),s=t(((e,t)=>{function DefaultMap(e){if(typeof e!=`function`)throw Error(`mnemonist/DefaultMap.constructor: expecting a function.`);this.items=new Map,this.factory=e,this.size=0}DefaultMap.prototype.clear=function(){this.items.clear(),this.size=0},DefaultMap.prototype.get=function(e){var t=this.items.get(e);return t===void 0&&(t=this.factory(e,this.size),this.items.set(e,t),this.size++),t},DefaultMap.prototype.peek=function(e){return this.items.get(e)},DefaultMap.prototype.set=function(e,t){return this.items.set(e,t),this.size=this.items.size,this},DefaultMap.prototype.has=function(e){return this.items.has(e)},DefaultMap.prototype.delete=function(e){var t=this.items.delete(e);return this.size=this.items.size,t},DefaultMap.prototype.forEach=function(e,t){t=arguments.length>1?t:this,this.items.forEach(e,t)},DefaultMap.prototype.entries=function(){return this.items.entries()},DefaultMap.prototype.keys=function(){return this.items.keys()},DefaultMap.prototype.values=function(){return this.items.values()},typeof Symbol<`u`&&(DefaultMap.prototype[Symbol.iterator]=DefaultMap.prototype.entries),DefaultMap.prototype.inspect=function(){return this.items},typeof Symbol<`u`&&(DefaultMap.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=DefaultMap.prototype.inspect),DefaultMap.autoIncrement=function(){var e=0;return function(){return e++}},t.exports=DefaultMap})),c=t(((e,t)=>{function DefaultWeakMap(e){if(typeof e!=`function`)throw Error(`mnemonist/DefaultWeakMap.constructor: expecting a function.`);this.items=new WeakMap,this.factory=e}DefaultWeakMap.prototype.clear=function(){this.items=new WeakMap},DefaultWeakMap.prototype.get=function(e){var t=this.items.get(e);return t===void 0&&(t=this.factory(e),this.items.set(e,t)),t},DefaultWeakMap.prototype.peek=function(e){return this.items.get(e)},DefaultWeakMap.prototype.set=function(e,t){return this.items.set(e,t),this},DefaultWeakMap.prototype.has=function(e){return this.items.has(e)},DefaultWeakMap.prototype.delete=function(e){return this.items.delete(e)},DefaultWeakMap.prototype.inspect=function(){return this.items},typeof Symbol<`u`&&(DefaultWeakMap.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=DefaultWeakMap.prototype.inspect),t.exports=DefaultWeakMap})),l=t(((e,t)=>{var i=r(),a=n();function MultiMap(e){this.Container=e||Array,this.items=new Map,this.clear(),Object.defineProperty(this.items,"constructor",{value:MultiMap,enumerable:!1})}MultiMap.prototype.clear=function(){this.size=0,this.dimension=0,this.items.clear()},MultiMap.prototype.set=function(e,t){var n=this.items.get(e),r;return n||(this.dimension++,n=new this.Container,this.items.set(e,n)),this.Container===Set?(r=n.size,n.add(t),r<n.size&&this.size++):(n.push(t),this.size++),this},MultiMap.prototype.delete=function(e){var t=this.items.get(e);return t?(this.size-=this.Container===Set?t.size:t.length,this.dimension--,this.items.delete(e),!0):!1},MultiMap.prototype.remove=function(e,t){var n=this.items.get(e),r,i;return n?this.Container===Set?(r=n.delete(t),r&&this.size--,n.size===0&&(this.items.delete(e),this.dimension--),r):(i=n.indexOf(t),i===-1?!1:(this.size--,n.length===1?(this.items.delete(e),this.dimension--,!0):(n.splice(i,1),!0))):!1},MultiMap.prototype.has=function(e){return this.items.has(e)},MultiMap.prototype.get=function(e){return this.items.get(e)},MultiMap.prototype.multiplicity=function(e){var t=this.items.get(e);return t===void 0?0:this.Container===Set?t.size:t.length},MultiMap.prototype.count=MultiMap.prototype.multiplicity,MultiMap.prototype.forEach=function(e,t){t=arguments.length>1?t:this;var n;function inner(r){e.call(t,r,n)}this.items.forEach(function(e,t){n=t,e.forEach(inner)})},MultiMap.prototype.forEachAssociation=function(e,t){t=arguments.length>1?t:this,this.items.forEach(e,t)},MultiMap.prototype.keys=function(){return this.items.keys()},MultiMap.prototype.values=function(){var e=this.items.values(),t=!1,n,r,a,o;return this.Container===Set?new i(function next(){if(!t){if(r=e.next(),r.done)return{done:!0};t=!0,n=r.value.values()}return r=n.next(),r.done?(t=!1,next()):{done:!1,value:r.value}}):new i(function next(){if(!t){if(r=e.next(),r.done)return{done:!0};t=!0,n=r.value,a=0,o=n.length}return a>=o?(t=!1,next()):{done:!1,value:n[a++]}})},MultiMap.prototype.entries=function(){var e=this.items.entries(),t=!1,n,r,a,o,s;return this.Container===Set?new i(function next(){if(!t){if(r=e.next(),r.done)return{done:!0};t=!0,a=r.value[0],n=r.value[1].values()}return r=n.next(),r.done?(t=!1,next()):{done:!1,value:[a,r.value]}}):new i(function next(){if(!t){if(r=e.next(),r.done)return{done:!0};t=!0,a=r.value[0],n=r.value[1],o=0,s=n.length}return o>=s?(t=!1,next()):{done:!1,value:[a,n[o++]]}})},MultiMap.prototype.containers=function(){return this.items.values()},MultiMap.prototype.associations=function(){return this.items.entries()},typeof Symbol<`u`&&(MultiMap.prototype[Symbol.iterator]=MultiMap.prototype.entries),MultiMap.prototype.inspect=function(){return this.items},typeof Symbol<`u`&&(MultiMap.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=MultiMap.prototype.inspect),MultiMap.prototype.toJSON=function(){return this.items},MultiMap.from=function(e,t){var n=new MultiMap(t);return a(e,function(e,t){n.set(t,e)}),n},t.exports=MultiMap})),u=t(((e,t)=>{var i=r(),a=n();function LinkedList(){this.clear()}LinkedList.prototype.clear=function(){this.head=null,this.tail=null,this.size=0},LinkedList.prototype.first=function(){return this.head?this.head.item:void 0},LinkedList.prototype.peek=LinkedList.prototype.first,LinkedList.prototype.last=function(){return this.tail?this.tail.item:void 0},LinkedList.prototype.push=function(e){var t={item:e,next:null};return this.head?(this.tail.next=t,this.tail=t):(this.head=t,this.tail=t),this.size++,this.size},LinkedList.prototype.unshift=function(e){var t={item:e,next:null};return this.head?(this.head.next||(this.tail=this.head),t.next=this.head,this.head=t):(this.head=t,this.tail=t),this.size++,this.size},LinkedList.prototype.shift=function(){if(this.size){var e=this.head;return this.head=e.next,this.size--,e.item}},LinkedList.prototype.forEach=function(e,t){if(this.size){t=arguments.length>1?t:this;for(var n=this.head,r=0;n;)e.call(t,n.item,r,this),n=n.next,r++}},LinkedList.prototype.toArray=function(){if(!this.size)return[];for(var e=Array(this.size),t=0,n=this.size,r=this.head;t<n;t++)e[t]=r.item,r=r.next;return e},LinkedList.prototype.values=function(){var e=this.head;return new i(function(){if(!e)return{done:!0};var t=e.item;return e=e.next,{value:t,done:!1}})},LinkedList.prototype.entries=function(){var e=this.head,t=0;return new i(function(){if(!e)return{done:!0};var n=e.item;return e=e.next,t++,{value:[t-1,n],done:!1}})},typeof Symbol<`u`&&(LinkedList.prototype[Symbol.iterator]=LinkedList.prototype.values),LinkedList.prototype.toString=function(){return this.toArray().join(`,`)},LinkedList.prototype.toJSON=function(){return this.toArray()},LinkedList.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:LinkedList,enumerable:!1}),e},typeof Symbol<`u`&&(LinkedList.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=LinkedList.prototype.inspect),LinkedList.from=function(e){var t=new LinkedList;return a(e,function(e){t.push(e)}),t},t.exports=LinkedList})),d=t(((e,t)=>{var i=r(),s=n(),c=a(),l=o();function LRUCache(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!=`number`||this.capacity<=0)throw Error(`mnemonist/lru-cache: capacity should be positive number.`);if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw Error(`mnemonist/lru-cache: capacity should be a finite positive integer.`);var r=c.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K=typeof e==`function`?new e(n):Array(n),this.V=typeof t==`function`?new t(n):Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}LRUCache.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},LRUCache.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this},LRUCache.prototype.set=function(e,t){var n=this.items[e];if(n!==void 0){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n},LRUCache.prototype.setpop=function(e,t){var n=null,r=null,i=this.items[e];return i===void 0?(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=this.K[i],delete this.items[r]),this.items[e]=i,this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,r?{evicted:!0,key:r,value:n}:null):(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n})},LRUCache.prototype.has=function(e){return e in this.items},LRUCache.prototype.get=function(e){var t=this.items[e];if(t!==void 0)return this.splayOnTop(t),this.V[t]},LRUCache.prototype.peek=function(e){var t=this.items[e];if(t!==void 0)return this.V[t]},LRUCache.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,i=this.head,a=this.K,o=this.V,s=this.forward;n<r;)e.call(t,o[i],a[i],this),i=s[i],n++},LRUCache.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,a=this.forward;return new i(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=a[n]),{done:!1,value:i}})},LRUCache.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,a=this.forward;return new i(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=a[n]),{done:!1,value:i}})},LRUCache.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,a=this.V,o=this.forward;return new i(function(){if(e>=t)return{done:!0};var i=r[n],s=a[n];return e++,e<t&&(n=o[n]),{done:!1,value:[i,s]}})},typeof Symbol<`u`&&(LRUCache.prototype[Symbol.iterator]=LRUCache.prototype.entries),LRUCache.prototype.inspect=function(){for(var e=new Map,t=this.entries(),n;n=t.next(),!n.done;)e.set(n.value[0],n.value[1]);return Object.defineProperty(e,"constructor",{value:LRUCache,enumerable:!1}),e},typeof Symbol<`u`&&(LRUCache.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=LRUCache.prototype.inspect),LRUCache.from=function(e,t,n,r){if(arguments.length<2){if(r=l.guessLength(e),typeof r!=`number`)throw Error(`mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.`)}else arguments.length===2&&(r=t,t=null,n=null);var i=new LRUCache(t,n,r);return s(e,function(e,t){i.set(t,e)}),i},t.exports=LRUCache})),f=t(((e,t)=>{var r=d(),i=n(),s=a(),c=o();function LRUMap(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!=`number`||this.capacity<=0)throw Error(`mnemonist/lru-map: capacity should be positive number.`);if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw Error(`mnemonist/lru-map: capacity should be a finite positive integer.`);var r=s.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K=typeof e==`function`?new e(n):Array(n),this.V=typeof t==`function`?new t(n):Array(n),this.size=0,this.head=0,this.tail=0,this.items=new Map}LRUMap.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items.clear()},LRUMap.prototype.set=function(e,t){var n=this.items.get(e);if(n!==void 0){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],this.items.delete(this.K[n])),this.items.set(e,n),this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n},LRUMap.prototype.setpop=function(e,t){var n=null,r=null,i=this.items.get(e);return i===void 0?(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=this.K[i],this.items.delete(r)),this.items.set(e,i),this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,r?{evicted:!0,key:r,value:n}:null):(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n})},LRUMap.prototype.has=function(e){return this.items.has(e)},LRUMap.prototype.get=function(e){var t=this.items.get(e);if(t!==void 0)return this.splayOnTop(t),this.V[t]},LRUMap.prototype.peek=function(e){var t=this.items.get(e);if(t!==void 0)return this.V[t]},LRUMap.prototype.splayOnTop=r.prototype.splayOnTop,LRUMap.prototype.forEach=r.prototype.forEach,LRUMap.prototype.keys=r.prototype.keys,LRUMap.prototype.values=r.prototype.values,LRUMap.prototype.entries=r.prototype.entries,typeof Symbol<`u`&&(LRUMap.prototype[Symbol.iterator]=LRUMap.prototype.entries),LRUMap.prototype.inspect=r.prototype.inspect,LRUMap.from=function(e,t,n,r){if(arguments.length<2){if(r=c.guessLength(e),typeof r!=`number`)throw Error(`mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.`)}else arguments.length===2&&(r=t,t=null,n=null);var a=new LRUMap(t,n,r);return i(e,function(e,t){a.set(t,e)}),a},t.exports=LRUMap})),p=t(((e,t)=>{var i=r(),a=n();function Queue(){this.clear()}Queue.prototype.clear=function(){this.items=[],this.offset=0,this.size=0},Queue.prototype.enqueue=function(e){return this.items.push(e),++this.size},Queue.prototype.dequeue=function(){if(this.size){var e=this.items[this.offset];return++this.offset*2>=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,e}},Queue.prototype.peek=function(){if(this.size)return this.items[this.offset]},Queue.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=this.offset,r=0,i=this.items.length;n<i;n++,r++)e.call(t,this.items[n],r,this)},Queue.prototype.toArray=function(){return this.items.slice(this.offset)},Queue.prototype.values=function(){var e=this.items,t=this.offset;return new i(function(){if(t>=e.length)return{done:!0};var n=e[t];return t++,{value:n,done:!1}})},Queue.prototype.entries=function(){var e=this.items,t=this.offset,n=0;return new i(function(){if(t>=e.length)return{done:!0};var r=e[t];return t++,{value:[n++,r],done:!1}})},typeof Symbol<`u`&&(Queue.prototype[Symbol.iterator]=Queue.prototype.values),Queue.prototype.toString=function(){return this.toArray().join(`,`)},Queue.prototype.toJSON=function(){return this.toArray()},Queue.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:Queue,enumerable:!1}),e},typeof Symbol<`u`&&(Queue.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=Queue.prototype.inspect),Queue.from=function(e){var t=new Queue;return a(e,function(e){t.enqueue(e)}),t},Queue.of=function(){return Queue.from(arguments)},t.exports=Queue})),m=t(((e,t)=>{var i=r(),a=n();function Stack(){this.clear()}Stack.prototype.clear=function(){this.items=[],this.size=0},Stack.prototype.push=function(e){return this.items.push(e),++this.size},Stack.prototype.pop=function(){if(this.size!==0)return this.size--,this.items.pop()},Stack.prototype.peek=function(){return this.items[this.size-1]},Stack.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.items.length;n<r;n++)e.call(t,this.items[r-n-1],n,this)},Stack.prototype.toArray=function(){for(var e=Array(this.size),t=this.size-1,n=this.size;n--;)e[n]=this.items[t-n];return e},Stack.prototype.values=function(){var e=this.items,t=e.length,n=0;return new i(function(){if(n>=t)return{done:!0};var r=e[t-n-1];return n++,{value:r,done:!1}})},Stack.prototype.entries=function(){var e=this.items,t=e.length,n=0;return new i(function(){if(n>=t)return{done:!0};var r=e[t-n-1];return{value:[n++,r],done:!1}})},typeof Symbol<`u`&&(Stack.prototype[Symbol.iterator]=Stack.prototype.values),Stack.prototype.toString=function(){return this.toArray().join(`,`)},Stack.prototype.toJSON=function(){return this.toArray()},Stack.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:Stack,enumerable:!1}),e},typeof Symbol<`u`&&(Stack.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=Stack.prototype.inspect),Stack.from=function(e){var t=new Stack;return a(e,function(e){t.push(e)}),t},Stack.of=function(){return Stack.from(arguments)},t.exports=Stack})),h=e(i(),1),g=e(s(),1),_=e(c(),1),v=e(u(),1),y=e(f(),1),b=e(l(),1),x=e(p(),1),S=e(m(),1);export{b as a,S as c,y as i,_ as n,x as o,v as r,h as s,g as t};
1
+ import{i as e,t}from"../rolldown-runtime.mjs";import{i as n,r}from"./graphology-dag.mjs";var i=t((e=>{e.intersection=function(){if(arguments.length<2)throw Error(`mnemonist/Set.intersection: needs at least two arguments.`);var e=new Set,t=1/0,n=null,r,i,a=arguments.length;for(i=0;i<a;i++){if(r=arguments[i],r.size===0)return e;r.size<t&&(t=r.size,n=r)}for(var o=n.values(),s,c,l,u;s=o.next(),!s.done;){for(c=s.value,l=!0,i=0;i<a;i++)if(u=arguments[i],u!==n&&!u.has(c)){l=!1;break}l&&e.add(c)}return e},e.union=function(){if(arguments.length<2)throw Error(`mnemonist/Set.union: needs at least two arguments.`);var e=new Set,t,n=arguments.length,r,i;for(t=0;t<n;t++)for(r=arguments[t].values();i=r.next(),!i.done;)e.add(i.value);return e},e.difference=function(e,t){if(!e.size)return new Set;if(!t.size)return new Set(e);for(var n=new Set,r=e.values(),i;i=r.next(),!i.done;)t.has(i.value)||n.add(i.value);return n},e.symmetricDifference=function(e,t){for(var n=new Set,r=e.values(),i;i=r.next(),!i.done;)t.has(i.value)||n.add(i.value);for(r=t.values();i=r.next(),!i.done;)e.has(i.value)||n.add(i.value);return n},e.isSubset=function(e,t){var n=e.values(),r;if(e===t)return!0;if(e.size>t.size)return!1;for(;r=n.next(),!r.done;)if(!t.has(r.value))return!1;return!0},e.isSuperset=function(t,n){return e.isSubset(n,t)},e.add=function(e,t){for(var n=t.values(),r;r=n.next(),!r.done;)e.add(r.value)},e.subtract=function(e,t){for(var n=t.values(),r;r=n.next(),!r.done;)e.delete(r.value)},e.intersect=function(e,t){for(var n=e.values(),r;r=n.next(),!r.done;)t.has(r.value)||e.delete(r.value)},e.disjunct=function(e,t){for(var n=e.values(),r,i=[];r=n.next(),!r.done;)t.has(r.value)&&i.push(r.value);for(n=t.values();r=n.next(),!r.done;)e.has(r.value)||e.add(r.value);for(var a=0,o=i.length;a<o;a++)e.delete(i[a])},e.intersectionSize=function(e,t){var n;if(e.size>t.size&&(n=e,e=t,t=n),e.size===0)return 0;if(e===t)return e.size;for(var r=e.values(),i,a=0;i=r.next(),!i.done;)t.has(i.value)&&a++;return a},e.unionSize=function(t,n){var r=e.intersectionSize(t,n);return t.size+n.size-r},e.jaccard=function(t,n){var r=e.intersectionSize(t,n);return r===0?0:r/(t.size+n.size-r)},e.overlap=function(t,n){var r=e.intersectionSize(t,n);return r===0?0:r/Math.min(t.size,n.size)}})),a=t((e=>{var t=2**16-1,n=2**32-1,r=127,i=2**15-1,a=2**31-1;e.getPointerArray=function(e){var r=e-1;if(r<=255)return Uint8Array;if(r<=t)return Uint16Array;if(r<=n)return Uint32Array;throw Error(`mnemonist: Pointer Array of size > 4294967295 is not supported.`)},e.getSignedPointerArray=function(e){var t=e-1;return t<=r?Int8Array:t<=i?Int16Array:t<=a?Int32Array:Float64Array},e.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var o={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};e.getMinimalRepresentation=function(t,n){var r=null,i=0,a,s,c,l,u;for(l=0,u=t.length;l<u;l++)c=n?n(t[l]):t[l],s=e.getNumberType(c),a=o[s.name],a>i&&(i=a,r=s);return r},e.isTypedArray=function(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView(e)},e.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)i.set(arguments[t],n),n+=arguments[t].length;return i},e.indices=function(t){for(var n=new(e.getPointerArray(t))(t),r=0;r<t;r++)n[r]=r;return n}})),o=t((e=>{var t=n(),r=a();function isArrayLike(e){return Array.isArray(e)||r.isTypedArray(e)}function guessLength(e){if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size}function toArray(e){var n=guessLength(e),r=typeof n==`number`?Array(n):[],i=0;return t(e,function(e){r[i++]=e}),r}function toArrayWithIndices(e){var n=guessLength(e),i=typeof n==`number`?r.getPointerArray(n):Array,a=typeof n==`number`?Array(n):[],o=typeof n==`number`?new i(n):[],s=0;return t(e,function(e){a[s]=e,o[s]=s++}),[a,o]}e.isArrayLike=isArrayLike,e.guessLength=guessLength,e.toArray=toArray,e.toArrayWithIndices=toArrayWithIndices})),s=t(((e,t)=>{function DefaultMap(e){if(typeof e!=`function`)throw Error(`mnemonist/DefaultMap.constructor: expecting a function.`);this.items=new Map,this.factory=e,this.size=0}DefaultMap.prototype.clear=function(){this.items.clear(),this.size=0},DefaultMap.prototype.get=function(e){var t=this.items.get(e);return t===void 0&&(t=this.factory(e,this.size),this.items.set(e,t),this.size++),t},DefaultMap.prototype.peek=function(e){return this.items.get(e)},DefaultMap.prototype.set=function(e,t){return this.items.set(e,t),this.size=this.items.size,this},DefaultMap.prototype.has=function(e){return this.items.has(e)},DefaultMap.prototype.delete=function(e){var t=this.items.delete(e);return this.size=this.items.size,t},DefaultMap.prototype.forEach=function(e,t){t=arguments.length>1?t:this,this.items.forEach(e,t)},DefaultMap.prototype.entries=function(){return this.items.entries()},DefaultMap.prototype.keys=function(){return this.items.keys()},DefaultMap.prototype.values=function(){return this.items.values()},typeof Symbol<`u`&&(DefaultMap.prototype[Symbol.iterator]=DefaultMap.prototype.entries),DefaultMap.prototype.inspect=function(){return this.items},typeof Symbol<`u`&&(DefaultMap.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=DefaultMap.prototype.inspect),DefaultMap.autoIncrement=function(){var e=0;return function(){return e++}},t.exports=DefaultMap})),c=t(((e,t)=>{function DefaultWeakMap(e){if(typeof e!=`function`)throw Error(`mnemonist/DefaultWeakMap.constructor: expecting a function.`);this.items=new WeakMap,this.factory=e}DefaultWeakMap.prototype.clear=function(){this.items=new WeakMap},DefaultWeakMap.prototype.get=function(e){var t=this.items.get(e);return t===void 0&&(t=this.factory(e),this.items.set(e,t)),t},DefaultWeakMap.prototype.peek=function(e){return this.items.get(e)},DefaultWeakMap.prototype.set=function(e,t){return this.items.set(e,t),this},DefaultWeakMap.prototype.has=function(e){return this.items.has(e)},DefaultWeakMap.prototype.delete=function(e){return this.items.delete(e)},DefaultWeakMap.prototype.inspect=function(){return this.items},typeof Symbol<`u`&&(DefaultWeakMap.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=DefaultWeakMap.prototype.inspect),t.exports=DefaultWeakMap})),l=t(((e,t)=>{var i=r(),a=n();function MultiMap(e){this.Container=e||Array,this.items=new Map,this.clear(),Object.defineProperty(this.items,"constructor",{value:MultiMap,enumerable:!1})}MultiMap.prototype.clear=function(){this.size=0,this.dimension=0,this.items.clear()},MultiMap.prototype.set=function(e,t){var n=this.items.get(e),r;return n||(this.dimension++,n=new this.Container,this.items.set(e,n)),this.Container===Set?(r=n.size,n.add(t),r<n.size&&this.size++):(n.push(t),this.size++),this},MultiMap.prototype.delete=function(e){var t=this.items.get(e);return t?(this.size-=this.Container===Set?t.size:t.length,this.dimension--,this.items.delete(e),!0):!1},MultiMap.prototype.remove=function(e,t){var n=this.items.get(e),r,i;return n?this.Container===Set?(r=n.delete(t),r&&this.size--,n.size===0&&(this.items.delete(e),this.dimension--),r):(i=n.indexOf(t),i!==-1&&(this.size--,n.length===1?(this.items.delete(e),this.dimension--,!0):(n.splice(i,1),!0))):!1},MultiMap.prototype.has=function(e){return this.items.has(e)},MultiMap.prototype.get=function(e){return this.items.get(e)},MultiMap.prototype.multiplicity=function(e){var t=this.items.get(e);return t===void 0?0:this.Container===Set?t.size:t.length},MultiMap.prototype.count=MultiMap.prototype.multiplicity,MultiMap.prototype.forEach=function(e,t){t=arguments.length>1?t:this;var n;function inner(r){e.call(t,r,n)}this.items.forEach(function(e,t){n=t,e.forEach(inner)})},MultiMap.prototype.forEachAssociation=function(e,t){t=arguments.length>1?t:this,this.items.forEach(e,t)},MultiMap.prototype.keys=function(){return this.items.keys()},MultiMap.prototype.values=function(){var e=this.items.values(),t=!1,n,r,a,o;return this.Container===Set?new i(function next(){if(!t){if(r=e.next(),r.done)return{done:!0};t=!0,n=r.value.values()}return r=n.next(),r.done?(t=!1,next()):{done:!1,value:r.value}}):new i(function next(){if(!t){if(r=e.next(),r.done)return{done:!0};t=!0,n=r.value,a=0,o=n.length}return a>=o?(t=!1,next()):{done:!1,value:n[a++]}})},MultiMap.prototype.entries=function(){var e=this.items.entries(),t=!1,n,r,a,o,s;return this.Container===Set?new i(function next(){if(!t){if(r=e.next(),r.done)return{done:!0};t=!0,a=r.value[0],n=r.value[1].values()}return r=n.next(),r.done?(t=!1,next()):{done:!1,value:[a,r.value]}}):new i(function next(){if(!t){if(r=e.next(),r.done)return{done:!0};t=!0,a=r.value[0],n=r.value[1],o=0,s=n.length}return o>=s?(t=!1,next()):{done:!1,value:[a,n[o++]]}})},MultiMap.prototype.containers=function(){return this.items.values()},MultiMap.prototype.associations=function(){return this.items.entries()},typeof Symbol<`u`&&(MultiMap.prototype[Symbol.iterator]=MultiMap.prototype.entries),MultiMap.prototype.inspect=function(){return this.items},typeof Symbol<`u`&&(MultiMap.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=MultiMap.prototype.inspect),MultiMap.prototype.toJSON=function(){return this.items},MultiMap.from=function(e,t){var n=new MultiMap(t);return a(e,function(e,t){n.set(t,e)}),n},t.exports=MultiMap})),u=t(((e,t)=>{var i=r(),a=n();function LinkedList(){this.clear()}LinkedList.prototype.clear=function(){this.head=null,this.tail=null,this.size=0},LinkedList.prototype.first=function(){return this.head?this.head.item:void 0},LinkedList.prototype.peek=LinkedList.prototype.first,LinkedList.prototype.last=function(){return this.tail?this.tail.item:void 0},LinkedList.prototype.push=function(e){var t={item:e,next:null};return this.head?(this.tail.next=t,this.tail=t):(this.head=t,this.tail=t),this.size++,this.size},LinkedList.prototype.unshift=function(e){var t={item:e,next:null};return this.head?(this.head.next||(this.tail=this.head),t.next=this.head,this.head=t):(this.head=t,this.tail=t),this.size++,this.size},LinkedList.prototype.shift=function(){if(this.size){var e=this.head;return this.head=e.next,this.size--,e.item}},LinkedList.prototype.forEach=function(e,t){if(this.size){t=arguments.length>1?t:this;for(var n=this.head,r=0;n;)e.call(t,n.item,r,this),n=n.next,r++}},LinkedList.prototype.toArray=function(){if(!this.size)return[];for(var e=Array(this.size),t=0,n=this.size,r=this.head;t<n;t++)e[t]=r.item,r=r.next;return e},LinkedList.prototype.values=function(){var e=this.head;return new i(function(){if(!e)return{done:!0};var t=e.item;return e=e.next,{value:t,done:!1}})},LinkedList.prototype.entries=function(){var e=this.head,t=0;return new i(function(){if(!e)return{done:!0};var n=e.item;return e=e.next,t++,{value:[t-1,n],done:!1}})},typeof Symbol<`u`&&(LinkedList.prototype[Symbol.iterator]=LinkedList.prototype.values),LinkedList.prototype.toString=function(){return this.toArray().join(`,`)},LinkedList.prototype.toJSON=function(){return this.toArray()},LinkedList.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:LinkedList,enumerable:!1}),e},typeof Symbol<`u`&&(LinkedList.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=LinkedList.prototype.inspect),LinkedList.from=function(e){var t=new LinkedList;return a(e,function(e){t.push(e)}),t},t.exports=LinkedList})),d=t(((e,t)=>{var i=r(),s=n(),c=a(),l=o();function LRUCache(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!=`number`||this.capacity<=0)throw Error(`mnemonist/lru-cache: capacity should be positive number.`);if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw Error(`mnemonist/lru-cache: capacity should be a finite positive integer.`);var r=c.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K=typeof e==`function`?new e(n):Array(n),this.V=typeof t==`function`?new t(n):Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}LRUCache.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},LRUCache.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this},LRUCache.prototype.set=function(e,t){var n=this.items[e];if(n!==void 0){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n},LRUCache.prototype.setpop=function(e,t){var n=null,r=null,i=this.items[e];return i===void 0?(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=this.K[i],delete this.items[r]),this.items[e]=i,this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,r?{evicted:!0,key:r,value:n}:null):(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n})},LRUCache.prototype.has=function(e){return e in this.items},LRUCache.prototype.get=function(e){var t=this.items[e];if(t!==void 0)return this.splayOnTop(t),this.V[t]},LRUCache.prototype.peek=function(e){var t=this.items[e];if(t!==void 0)return this.V[t]},LRUCache.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,i=this.head,a=this.K,o=this.V,s=this.forward;n<r;)e.call(t,o[i],a[i],this),i=s[i],n++},LRUCache.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,a=this.forward;return new i(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=a[n]),{done:!1,value:i}})},LRUCache.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,a=this.forward;return new i(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=a[n]),{done:!1,value:i}})},LRUCache.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,a=this.V,o=this.forward;return new i(function(){if(e>=t)return{done:!0};var i=r[n],s=a[n];return e++,e<t&&(n=o[n]),{done:!1,value:[i,s]}})},typeof Symbol<`u`&&(LRUCache.prototype[Symbol.iterator]=LRUCache.prototype.entries),LRUCache.prototype.inspect=function(){for(var e=new Map,t=this.entries(),n;n=t.next(),!n.done;)e.set(n.value[0],n.value[1]);return Object.defineProperty(e,"constructor",{value:LRUCache,enumerable:!1}),e},typeof Symbol<`u`&&(LRUCache.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=LRUCache.prototype.inspect),LRUCache.from=function(e,t,n,r){if(arguments.length<2){if(r=l.guessLength(e),typeof r!=`number`)throw Error(`mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.`)}else arguments.length===2&&(r=t,t=null,n=null);var i=new LRUCache(t,n,r);return s(e,function(e,t){i.set(t,e)}),i},t.exports=LRUCache})),f=t(((e,t)=>{var r=d(),i=n(),s=a(),c=o();function LRUMap(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!=`number`||this.capacity<=0)throw Error(`mnemonist/lru-map: capacity should be positive number.`);if(!isFinite(this.capacity)||Math.floor(this.capacity)!==this.capacity)throw Error(`mnemonist/lru-map: capacity should be a finite positive integer.`);var r=s.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K=typeof e==`function`?new e(n):Array(n),this.V=typeof t==`function`?new t(n):Array(n),this.size=0,this.head=0,this.tail=0,this.items=new Map}LRUMap.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items.clear()},LRUMap.prototype.set=function(e,t){var n=this.items.get(e);if(n!==void 0){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],this.items.delete(this.K[n])),this.items.set(e,n),this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n},LRUMap.prototype.setpop=function(e,t){var n=null,r=null,i=this.items.get(e);return i===void 0?(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=this.K[i],this.items.delete(r)),this.items.set(e,i),this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,r?{evicted:!0,key:r,value:n}:null):(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n})},LRUMap.prototype.has=function(e){return this.items.has(e)},LRUMap.prototype.get=function(e){var t=this.items.get(e);if(t!==void 0)return this.splayOnTop(t),this.V[t]},LRUMap.prototype.peek=function(e){var t=this.items.get(e);if(t!==void 0)return this.V[t]},LRUMap.prototype.splayOnTop=r.prototype.splayOnTop,LRUMap.prototype.forEach=r.prototype.forEach,LRUMap.prototype.keys=r.prototype.keys,LRUMap.prototype.values=r.prototype.values,LRUMap.prototype.entries=r.prototype.entries,typeof Symbol<`u`&&(LRUMap.prototype[Symbol.iterator]=LRUMap.prototype.entries),LRUMap.prototype.inspect=r.prototype.inspect,LRUMap.from=function(e,t,n,r){if(arguments.length<2){if(r=c.guessLength(e),typeof r!=`number`)throw Error(`mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.`)}else arguments.length===2&&(r=t,t=null,n=null);var a=new LRUMap(t,n,r);return i(e,function(e,t){a.set(t,e)}),a},t.exports=LRUMap})),p=t(((e,t)=>{var i=r(),a=n();function Queue(){this.clear()}Queue.prototype.clear=function(){this.items=[],this.offset=0,this.size=0},Queue.prototype.enqueue=function(e){return this.items.push(e),++this.size},Queue.prototype.dequeue=function(){if(this.size){var e=this.items[this.offset];return++this.offset*2>=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,e}},Queue.prototype.peek=function(){if(this.size)return this.items[this.offset]},Queue.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=this.offset,r=0,i=this.items.length;n<i;n++,r++)e.call(t,this.items[n],r,this)},Queue.prototype.toArray=function(){return this.items.slice(this.offset)},Queue.prototype.values=function(){var e=this.items,t=this.offset;return new i(function(){if(t>=e.length)return{done:!0};var n=e[t];return t++,{value:n,done:!1}})},Queue.prototype.entries=function(){var e=this.items,t=this.offset,n=0;return new i(function(){if(t>=e.length)return{done:!0};var r=e[t];return t++,{value:[n++,r],done:!1}})},typeof Symbol<`u`&&(Queue.prototype[Symbol.iterator]=Queue.prototype.values),Queue.prototype.toString=function(){return this.toArray().join(`,`)},Queue.prototype.toJSON=function(){return this.toArray()},Queue.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:Queue,enumerable:!1}),e},typeof Symbol<`u`&&(Queue.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=Queue.prototype.inspect),Queue.from=function(e){var t=new Queue;return a(e,function(e){t.enqueue(e)}),t},Queue.of=function(){return Queue.from(arguments)},t.exports=Queue})),m=t(((e,t)=>{var i=r(),a=n();function Stack(){this.clear()}Stack.prototype.clear=function(){this.items=[],this.size=0},Stack.prototype.push=function(e){return this.items.push(e),++this.size},Stack.prototype.pop=function(){if(this.size!==0)return this.size--,this.items.pop()},Stack.prototype.peek=function(){return this.items[this.size-1]},Stack.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.items.length;n<r;n++)e.call(t,this.items[r-n-1],n,this)},Stack.prototype.toArray=function(){for(var e=Array(this.size),t=this.size-1,n=this.size;n--;)e[n]=this.items[t-n];return e},Stack.prototype.values=function(){var e=this.items,t=e.length,n=0;return new i(function(){if(n>=t)return{done:!0};var r=e[t-n-1];return n++,{value:r,done:!1}})},Stack.prototype.entries=function(){var e=this.items,t=e.length,n=0;return new i(function(){if(n>=t)return{done:!0};var r=e[t-n-1];return{value:[n++,r],done:!1}})},typeof Symbol<`u`&&(Stack.prototype[Symbol.iterator]=Stack.prototype.values),Stack.prototype.toString=function(){return this.toArray().join(`,`)},Stack.prototype.toJSON=function(){return this.toArray()},Stack.prototype.inspect=function(){var e=this.toArray();return Object.defineProperty(e,"constructor",{value:Stack,enumerable:!1}),e},typeof Symbol<`u`&&(Stack.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=Stack.prototype.inspect),Stack.from=function(e){var t=new Stack;return a(e,function(e){t.push(e)}),t},Stack.of=function(){return Stack.from(arguments)},t.exports=Stack})),h=e(i(),1),g=e(s(),1),_=e(c(),1),v=e(u(),1),y=e(f(),1),b=e(l(),1),x=e(p(),1),S=e(m(),1);export{b as a,S as c,y as i,_ as n,x as o,v as r,h as s,g as t};
@@ -1 +1 @@
1
- import"../rolldown-runtime.mjs";function serialize(t){return typeof t==`string`?`'${t}'`:new e().serialize(t)}const e=function(){class o{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let e of[`Error`,`RegExp`,`URL`])o.prototype[`$`+e]=function(t){return`${e}(${t})`};for(let e of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])o.prototype[`$`+e]=function(t){return`${e}[${t.join(`,`)}]`};for(let e of[`BigInt64Array`,`BigUint64Array`])o.prototype[`$`+e]=function(t){return`${e}[${t.join(`n,`)}${t.length>0?`n`:``}]`};return o}(),t=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],n=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],r=[];var k=class{_data=new i;_hash=new i([...t]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let i=this._hash.words,a=i[0],s=i[1],c=i[2],u=i[3],d=i[4],f=i[5],p=i[6],m=i[7];for(let i=0;i<64;i++){if(i<16)r[i]=e[t+i]|0;else{let e=r[i-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,n=r[i-2],a=(n<<15|n>>>17)^(n<<13|n>>>19)^n>>>10;r[i]=t+r[i-7]+a+r[i-16]}let h=d&f^~d&p,g=a&s^a&c^s&c,_=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),v=(d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25),y=m+v+h+n[i]+r[i],b=_+g;m=p,p=f,f=d,d=u+y|0,u=c,c=s,s=a,a=y+b|0}i[0]=i[0]+a|0,i[1]=i[1]+s|0,i[2]=i[2]+c|0,i[3]=i[3]+u|0,i[4]=i[4]+d|0,i[5]=i[5]+f|0,i[6]=i[6]+p|0,i[7]=i[7]+m|0}_append(e){typeof e==`string`&&(e=i.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,a=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=a}return new i(t,a)}},i=class l{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(e){let t=unescape(encodeURIComponent(e)),n=t.length,r=[];for(let e=0;e<n;e++)r[e>>>2]|=(t.charCodeAt(e)&255)<<24-e%4*8;return new l(r,n)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function digest(e){return new k().finalize(e).toBase64()}function hash(e){return digest(serialize(e))}export{hash as t};
1
+ import"../rolldown-runtime.mjs";function serialize(e){return typeof e==`string`?`'${e}'`:new t().serialize(e)}const e=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function compareStrings(t,n){if(t===n)return 0;let r=Math.min(t.length,n.length),i=0;for(let a=0;a<r;a++){let r=t.charCodeAt(a),o=n.charCodeAt(a);if(r===o)continue;let s=r<128&&e[r]?e[r]:r+128,c=o<128&&e[o]?e[o]:o+128;if(s!==c)return s<c?-1:1;i===0&&(i=r>o?-1:1)}return t.length===n.length?i:t.length<n.length?-1:1}const t=(function(){class Serializer{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?compareStrings(e,t):n===`number`&&r===`number`?e-t:compareStrings(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(compareStrings),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let e of[`Error`,`RegExp`,`URL`])Serializer.prototype[`$`+e]=function(t){return`${e}(${t})`};for(let e of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])Serializer.prototype[`$`+e]=function(t){return`${e}[${t.join(`,`)}]`};for(let e of[`BigInt64Array`,`BigUint64Array`])Serializer.prototype[`$`+e]=function(t){return`${e}[${t.join(`n,`)}${t.length>0?`n`:``}]`};return Serializer})(),n=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],r=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],i=[];var SHA256=class{_data=new a;_hash=new a([...n]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,a=n[0],o=n[1],s=n[2],c=n[3],l=n[4],u=n[5],d=n[6],f=n[7];for(let n=0;n<64;n++){if(n<16)i[n]=e[t+n]|0;else{let e=i[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=i[n-2],a=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;i[n]=t+i[n-7]+a+i[n-16]}let p=l&u^~l&d,m=a&o^a&s^o&s,h=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),g=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),_=f+g+p+r[n]+i[n],v=h+m;f=d,d=u,u=l,l=c+_|0,c=s,s=o,o=a,a=_+v|0}n[0]=n[0]+a|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+c|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0}_append(e){typeof e==`string`&&(e=a.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new a(t,i)}},a=class WordArray{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(e){let t=unescape(encodeURIComponent(e)),n=t.length,r=[];for(let e=0;e<n;e++)r[e>>>2]|=(t.charCodeAt(e)&255)<<24-e%4*8;return new WordArray(r,n)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function digest(e){return new SHA256().finalize(e).toBase64()}function hash(e){return digest(serialize(e))}export{hash as t};
@@ -0,0 +1 @@
1
+ import"../rolldown-runtime.mjs";import{n as e}from"./hast-util-to-html.mjs";import{O as t}from"./mdast.mjs";const n={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function isDecimal(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function isHexadecimal(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function isAlphabetical(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function isAlphanumerical(e){return isAlphabetical(e)||isDecimal(e)}const r=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function parseEntities(i,a){let o=a||{},s=typeof o.additional==`string`?o.additional.charCodeAt(0):o.additional,c=[],l=0,u=-1,d=``,f,p;o.position&&(`start`in o.position||`indent`in o.position?(p=o.position.indent,f=o.position.start):f=o.position);let m=(f?f.line:0)||1,h=(f?f.column:0)||1,g=now(),_;for(l--;++l<=i.length;)if(_===10&&(h=(p?p[u]:0)||1),_=i.charCodeAt(l),_===38){let r=i.charCodeAt(l+1);if(r===9||r===10||r===12||r===32||r===38||r===60||Number.isNaN(r)||s&&r===s){d+=String.fromCharCode(_),h++;continue}let a=l+1,u=a,f=a,p;if(r===35){f=++u;let e=i.charCodeAt(f);e===88||e===120?(p=`hexadecimal`,f=++u):p=`decimal`}else p=`named`;let m=``,v=``,y=``,b=p===`named`?isAlphanumerical:p===`decimal`?isDecimal:isHexadecimal;for(f--;++f<=i.length;){let n=i.charCodeAt(f);if(!b(n))break;y+=String.fromCharCode(n),p===`named`&&e.includes(y)&&(m=y,v=t(y))}let x=i.charCodeAt(f)===59;if(x){f++;let e=p===`named`&&t(y);e&&(m=y,v=e)}let S=1+f-a,C=``;if(!(!x&&o.nonTerminated===!1)){if(!y)p!==`named`&&warning(4,S);else if(p===`named`){if(x&&!v)warning(5,1);else if(m!==y&&(f=u+m.length,S=1+f-u,x=!1),!x){let e=m?1:3;if(o.attribute){let t=i.charCodeAt(f);t===61?(warning(e,S),v=``):isAlphanumerical(t)?v=``:warning(e,S)}else warning(e,S)}C=v}else{x||warning(2,S);let e=Number.parseInt(y,p===`hexadecimal`?16:10);if(prohibited(e))warning(7,S),C=`�`;else if(e in n)warning(6,S),C=n[e];else{let t=``;disallowed(e)&&warning(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}}if(C){flush(),g=now(),l=f-1,h+=f-a+1,c.push(C);let e=now();e.offset++,o.reference&&o.reference.call(o.referenceContext||void 0,C,{start:g,end:e},i.slice(a-1,f)),g=e}else y=i.slice(a-1,f),d+=y,h+=y.length,l=f-1}else _===10&&(m++,u++,h=0),Number.isNaN(_)?flush():(d+=String.fromCharCode(_),h++);return c.join(``);function now(){return{line:m,column:h,offset:l+((f?f.offset:0)||0)}}function warning(e,t){let n;o.warning&&(n=now(),n.column+=t,n.offset+=t,o.warning.call(o.warningContext||void 0,r[e],n,e))}function flush(){d&&=(c.push(d),o.text&&o.text.call(o.textContext||void 0,d,{start:g,end:now()}),``)}}function prohibited(e){return e>=55296&&e<=57343||e>1114111}function disallowed(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}export{parseEntities as t};
@@ -0,0 +1,3 @@
1
+ import"../rolldown-runtime.mjs";import{t as e}from"./hastscript.mjs";import{t}from"./parse-entities.mjs";clike.displayName=`clike`,clike.aliases=[];function clike(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}c.displayName=`c`,c.aliases=[];function c(e){e.register(clike),e.languages.c=e.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore(`c`,`string`,{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore(`c`,`function`,{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}cpp.displayName=`cpp`,cpp.aliases=[];function cpp(e){e.register(c),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])})(e)}arduino.displayName=`arduino`,arduino.aliases=[`ino`];function arduino(e){e.register(cpp),e.languages.arduino=e.languages.extend(`cpp`,{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}bash.displayName=`bash`,bash.aliases=[`sh`,`shell`];function bash(e){(function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},i={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=[`comment`,`function-name`,`for-or-select`,`assign-left`,`parameter`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],o=i.variable[1].inside,s=0;s<a.length;s++)o[a[s]]=e.languages.bash[a[s]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(e)}csharp.displayName=`csharp`,csharp.aliases=[`cs`,`dotnet`];function csharp(e){e.register(clike),(function(e){function replace(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return`(?:`+t[+n]+`)`})}function re(e,t,n){return RegExp(replace(e,t),n||``)}function nested(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return`(?:`+e+`)`});return e.replace(/<<self>>/g,`[^\\s\\S]`)}var t={type:`bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void`,typeDeclaration:`class enum interface record struct`,contextual:`add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)`,other:`abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield`};function keywordsToPattern(e){return`\\b(?:`+e.trim().replace(/ /g,`|`)+`)\\b`}var n=keywordsToPattern(t.typeDeclaration),i=RegExp(keywordsToPattern(t.type+` `+t.typeDeclaration+` `+t.contextual+` `+t.other)),a=keywordsToPattern(t.typeDeclaration+` `+t.contextual+` `+t.other),o=keywordsToPattern(t.type+` `+t.typeDeclaration+` `+t.other),s=nested(`<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>`,2),l=nested(`\\((?:[^()]|<<self>>)*\\)`,2),u=`@?\\b[A-Za-z_]\\w*\\b`,d=replace(`<<0>>(?:\\s*<<1>>)?`,[u,s]),f=replace(`(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*`,[a,d]),p=`\\[\\s*(?:,\\s*)*\\]`,m=replace(`<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?`,[f,p]),h=replace(`(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?`,[replace(`\\(<<0>>+(?:,<<0>>+)+\\)`,[replace(`[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>`,[s,l,p])]),f,p]),g={keyword:i,punctuation:/[<>()?,.:[\]]/},_=`'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`,v=`"(?:\\\\.|[^\\\\"\\r\\n])*"`,y=`@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")`;e.languages.csharp=e.languages.extend(`clike`,{string:[{pattern:re(`(^|[^$\\\\])<<0>>`,[y]),lookbehind:!0,greedy:!0},{pattern:re(`(^|[^@$\\\\])<<0>>`,[v]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:re(`(\\busing\\s+static\\s+)<<0>>(?=\\s*;)`,[f]),lookbehind:!0,inside:g},{pattern:re(`(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)`,[u,h]),lookbehind:!0,inside:g},{pattern:re(`(\\busing\\s+)<<0>>(?=\\s*=)`,[u]),lookbehind:!0},{pattern:re(`(\\b<<0>>\\s+)<<1>>`,[n,d]),lookbehind:!0,inside:g},{pattern:re(`(\\bcatch\\s*\\(\\s*)<<0>>`,[f]),lookbehind:!0,inside:g},{pattern:re(`(\\bwhere\\s+)<<0>>`,[u]),lookbehind:!0},{pattern:re(`(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>`,[m]),lookbehind:!0,inside:g},{pattern:re(`\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))`,[h,o,u]),inside:g}],keyword:i,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore(`csharp`,`number`,{range:{pattern:/\.\./,alias:`operator`}}),e.languages.insertBefore(`csharp`,`punctuation`,{"named-parameter":{pattern:re(`([(,]\\s*)<<0>>(?=\\s*:)`,[u]),lookbehind:!0,alias:`punctuation`}}),e.languages.insertBefore(`csharp`,`class-name`,{namespace:{pattern:re(`(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])`,[u]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:re(`(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))`,[l]),lookbehind:!0,alias:`class-name`,inside:g},"return-type":{pattern:re(`<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))`,[h,f]),inside:g,alias:`class-name`},"constructor-invocation":{pattern:re(`(\\bnew\\s+)<<0>>(?=\\s*[[({])`,[h]),lookbehind:!0,inside:g,alias:`class-name`},"generic-method":{pattern:re(`<<0>>\\s*<<1>>(?=\\s*\\()`,[u,s]),inside:{function:re(`^<<0>>`,[u]),generic:{pattern:RegExp(s),alias:`class-name`,inside:g}}},"type-list":{pattern:re(`\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))`,[n,d,u,h,i.source,l,`\\bnew\\s*\\(\\s*\\)`]),lookbehind:!0,inside:{"record-arguments":{pattern:re(`(^(?!new\\s*\\()<<0>>\\s*)<<1>>`,[d,l]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:i,"class-name":{pattern:RegExp(h),greedy:!0,inside:g},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:`property`,inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:`keyword`}}}});var b=v+`|`+_,x=replace(`\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>`,[b]),S=nested(replace(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[x]),2),C=`\\b(?:assembly|event|field|method|module|param|property|return|type)\\b`,w=replace(`<<0>>(?:\\s*\\(<<1>>*\\))?`,[f,S]);e.languages.insertBefore(`csharp`,`class-name`,{attribute:{pattern:re(`((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])`,[C,w]),lookbehind:!0,greedy:!0,inside:{target:{pattern:re(`^<<0>>(?=\\s*:)`,[C]),alias:`keyword`},"attribute-arguments":{pattern:re(`\\(<<0>>*\\)`,[S]),inside:e.languages.csharp},"class-name":{pattern:RegExp(f),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var T=`:[^}\\r\\n]+`,E=nested(replace(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[x]),2),D=replace(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[E,T]),O=nested(replace(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[b]),2),k=replace(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[O,T]);function createInterpolationInside(t,n){return{interpolation:{pattern:re(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:re(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[n,T]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:`language-csharp`,inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore(`csharp`,`string`,{"interpolation-string":[{pattern:re(`(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{"])*"`,[D]),lookbehind:!0,greedy:!0,inside:createInterpolationInside(D,E)},{pattern:re(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[k]),lookbehind:!0,greedy:!0,inside:createInterpolationInside(k,O)}],char:{pattern:RegExp(_),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp})(e)}markup.displayName=`markup`,markup.aliases=[`atom`,`html`,`mathml`,`rss`,`ssml`,`svg`,`xml`];function markup(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside[`attr-value`].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside[`internal-subset`].inside=e.languages.markup,e.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.value.replace(/&amp;/,`&`))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function addInlined(t,n){var i={};i[`language-`+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};a[`language-`+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return t}),`i`),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore(`markup`,`cdata`,o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+t+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,`language-`+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend(`markup`,{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}css.displayName=`css`,css.aliases=[];function css(e){(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(e)}diff.displayName=`diff`,diff.aliases=[];function diff(e){(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach(function(n){var i=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),n===`diff`&&a.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+i+`].*(?:\r
2
+ ?|
3
+ |(?![\\s\\S])))+`,`m`),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})})(e)}go.displayName=`go`,go.aliases=[];function go(e){e.register(clike),e.languages.go=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore(`go`,`string`,{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go[`class-name`]}ini.displayName=`ini`,ini.aliases=[];function ini(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:`selector`},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:`attr-name`},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:`attr-value`,inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}java.displayName=`java`,java.aliases=[];function java(e){e.register(clike),(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,i={pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),lookbehind:!0,inside:i.inside},{pattern:RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)`+n+`[A-Z]\\w*\\b`),lookbehind:!0,inside:i.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(`(\\bimport\\s+)`+n+`(?:[A-Z]\\w*|\\*)(?=\\s*;)`),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(`(\\bimport\\s+static\\s+)`+n+`(?:\\w+|\\*)(?=\\s*;)`),lookbehind:!0,alias:`static`,inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}regex.displayName=`regex`,regex.aliases=[];function regex(e){(function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:`escape`},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:`class-name`},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:`class-name`},o=`(?:[^\\\\-]|`+n.source+`)`,s=RegExp(o+`-`+o),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:`variable`};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:`operator`},"char-class-punctuation":{pattern:/^\[|\]$/,alias:`punctuation`},range:{pattern:s,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:`operator`}}},"special-escape":t,"char-set":a,escape:n}},"special-escape":t,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:`keyword`},{pattern:/\\k<[^<>']+>/,alias:`keyword`,inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:`function`},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:`punctuation`,inside:{"group-name":l}},{pattern:/\)/,alias:`punctuation`}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:`number`},alternation:{pattern:/\|/,alias:`keyword`}}})(e)}javascript.displayName=`javascript`,javascript.aliases=[`js`];function javascript(e){e.register(clike),e.languages.javascript=e.languages.extend(`clike`,{"class-name":[e.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),e.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),e.languages.markup&&(e.languages.markup.tag.addInlined(`script`,`javascript`),e.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),e.languages.js=e.languages.javascript}json.displayName=`json`,json.aliases=[`webmanifest`];function json(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:`keyword`}},e.languages.webmanifest=e.languages.json}kotlin.displayName=`kotlin`,kotlin.aliases=[`kt`,`kts`];function kotlin(e){e.register(clike),(function(e){e.languages.kotlin=e.languages.extend(`clike`,{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin[`class-name`];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:`punctuation`},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore(`kotlin`,`string`,{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:`multiline`,inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:`singleline`,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore(`kotlin`,`keyword`,{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:`builtin`}}),e.languages.insertBefore(`kotlin`,`function`,{label:{pattern:/\b\w+@|@\w+\b/,alias:`symbol`}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(e)}less.displayName=`less`,less.aliases=[];function less(e){e.register(css),e.languages.less=e.languages.extend(`css`,{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore(`less`,`property`,{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:`function`}})}lua.displayName=`lua`,lua.aliases=[];function lua(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}makefile.displayName=`makefile`,makefile.aliases=[];function makefile(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:`builtin`},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:`symbol`,inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}yaml.displayName=`yaml`,yaml.aliases=[`yml`];function yaml(e){(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i=`(?:`+n.source+`(?:[ ]+`+t.source+`)?|`+t.source+`(?:[ ]+`+n.source+`)?)`,a=`(?:[^\\s\\x00-\\x08\\x0e-\\x1f!"#%&'*,\\-:>?@[\\]\`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*`.replace(/<PLAIN>/g,function(){return`[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]`}),o=`"(?:[^"\\\\\\r\\n]|\\\\.)*"|'(?:[^'\\\\\\r\\n]|\\\\.)*'`;function createValuePattern(e,t){t=(t||``).replace(/m/g,``)+`m`;var n=`([:\\-,[{]\\s*(?:\\s<<prop>>[ \\t]+)?)(?:<<value>>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))`.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(`([\\-:]\\s*(?:\\s<<prop>>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)`.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:`string`},comment:/#.*/,key:{pattern:RegExp(`((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<<prop>>[ \\t]+)?)<<key>>(?=\\s*:\\s)`.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return`(?:`+a+`|`+o+`)`})),lookbehind:!0,greedy:!0,alias:`atrule`},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:`important`},datetime:{pattern:createValuePattern(`\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?`),lookbehind:!0,alias:`number`},boolean:{pattern:createValuePattern(`false|true`,`i`),lookbehind:!0,alias:`important`},null:{pattern:createValuePattern(`null|~`,`i`),lookbehind:!0,alias:`important`},string:{pattern:createValuePattern(o),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(`[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)`,`i`),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(e)}markdown.displayName=`markdown`,markdown.aliases=[`md`];function markdown(e){e.register(markup),(function(e){function createInline(e){return e=e.replace(/<inner>/g,function(){return`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var t="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",n=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return t}),i=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+n+i+`(?:`+n+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+n+i+`)(?:`+n+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(t),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+n+`)`+i+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+n+`$`),inside:{"table-header":{pattern:RegExp(t),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:createInline(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:createInline(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function walkTokens(e){if(!(!e||typeof e==`string`))for(var t=0,n=e.length;t<n;t++){var i=e[t];if(i.type!==`code`){walkTokens(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var l=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,l]:o.alias.push(l):o.alias=[l]}}}walkTokens(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,i=0,a=t.classes.length;i<a;i++){var o=t.classes[i],s=/language-(.+)/.exec(o);if(s){n=s[1];break}}var l=e.languages[n];if(l)t.content=e.highlight(t.content.value,l,n);else if(n&&n!==`none`&&e.plugins.autoloader){var u=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=u,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(u);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}}),RegExp(e.languages.markup.tag.pattern.source,`gi`),String.fromCodePoint||String.fromCharCode,e.languages.md=e.languages.markdown})(e)}objectivec.displayName=`objectivec`,objectivec.aliases=[`objc`];function objectivec(e){e.register(c),e.languages.objectivec=e.languages.extend(`c`,{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec[`class-name`],e.languages.objc=e.languages.objectivec}perl.displayName=`perl`,perl.aliases=[];function perl(e){(function(e){var t=`(?:\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)|\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}|\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\]|<(?:[^<>\\\\]|\\\\[\\s\\S])*>)`;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(`\\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\\s*(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`([a-zA-Z0-9])(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2`,t].join(`|`)+`)`),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(`\\b(?:m|qr)(?![a-zA-Z0-9])\\s*(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`([a-zA-Z0-9])(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2`,t].join(`|`)+`)[msixpodualngc]*`),greedy:!0},{pattern:RegExp(`(^|[^-])\\b(?:s|tr|y)(?![a-zA-Z0-9])\\s*(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2`,`([a-zA-Z0-9])(?:(?!\\3)[^\\\\]|\\\\[\\s\\S])*\\3(?:(?!\\3)[^\\\\]|\\\\[\\s\\S])*\\3`,t+`\\s*`+t].join(`|`)+`)[msixpodualngcer]*`),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:`symbol`},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:`string`},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}markupTemplating.displayName=`markup-templating`,markupTemplating.aliases=[];function markupTemplating(e){e.register(markup),(function(e){function getPlaceholder(e,t){return`___`+e.toUpperCase()+t+`___`}Object.defineProperties(e.languages[`markup-templating`]={},{buildPlaceholders:{value:function(t,n,i,a){if(t.language===n){var o=t.tokenStack=[];t.code=t.code.replace(i,function(e){if(typeof a==`function`&&!a(e))return e;for(var i=o.length,s;t.code.indexOf(s=getPlaceholder(n,i))!==-1;)++i;return o[i]=e,s}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language!==n||!t.tokenStack)return;t.grammar=e.languages[n];var i=0,a=Object.keys(t.tokenStack);function walkTokens(o){for(var s=0;s<o.length&&!(i>=a.length);s++){var l=o[s];if(typeof l==`string`||l.content&&typeof l.content==`string`){var u=a[i],d=t.tokenStack[u],f=typeof l==`string`?l:l.content,p=getPlaceholder(n,u),m=f.indexOf(p);if(m>-1){++i;var h=f.substring(0,m),g=new e.Token(n,e.tokenize(d,t.grammar),`language-`+n,d),_=f.substring(m+p.length),v=[];h&&v.push.apply(v,walkTokens([h])),v.push(g),_&&v.push.apply(v,walkTokens([_])),typeof l==`string`?o.splice.apply(o,[s,1].concat(v)):l.content=v}}else l.content&&walkTokens(l.content)}return o}walkTokens(t.tokens)}}})})(e)}php.displayName=`php`,php.aliases=[];function php(e){e.register(markupTemplating),(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:`nowdoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:`backtick-quoted-string`,greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:`single-quoted-string`,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:`double-quoted-string`,greedy:!0,inside:{interpolation:s}}];e.languages.insertBefore(`php`,`variable`,{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add(`after-tokenize`,function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)})})(e)}python.displayName=`python`,python.aliases=[`py`];function python(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python[`string-interpolation`].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}r.displayName=`r`,r.aliases=[];function r(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:`operator`},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}ruby.displayName=`ruby`,ruby.aliases=[`rb`];function ruby(e){e.register(clike),(function(e){e.languages.ruby=e.languages.extend(`clike`,{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore(`ruby`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:`punctuation`}}};delete e.languages.ruby.function;var n=`(?:`+[`([^a-zA-Z0-9\\s{(\\[<=])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S]|\\((?:[^()\\\\]|\\\\[\\s\\S])*\\))*\\)`,`\\{(?:[^{}\\\\]|\\\\[\\s\\S]|\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\})*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S]|\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S]|<(?:[^<>\\\\]|\\\\[\\s\\S])*>)*>`].join(`|`)+`)`,i=`(?:"(?:\\\\.|[^"\\\\\\r\\n])*"|(?:\\b[a-zA-Z_]\\w*|[^\\s\\0-\\x7F]+)[?!]?|\\$.)`;e.languages.insertBefore(`ruby`,`keyword`,{"regex-literal":[{pattern:RegExp(`%r`+n+`[egimnosux]{0,6}`),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(`(^|[^:]):`+i),lookbehind:!0,greedy:!0},{pattern:RegExp(`([\\r\\n{(,][ \\t]*)`+i+`(?=:(?!:))`),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore(`ruby`,`string`,{"string-literal":[{pattern:RegExp(`%[qQiIwWs]?`+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(`%x`+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:`string`}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:`string`}}}]}),delete e.languages.ruby.string,e.languages.insertBefore(`ruby`,`number`,{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby})(e)}rust.displayName=`rust`,rust.aliases=[];function rust(e){(function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/`,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:`attr-name`,inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:`punctuation`},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:`symbol`},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:`punctuation`},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:`function`},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:`class-name`},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:`namespace`},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:`namespace`,inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:`property`},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(e)}sass.displayName=`sass`,sass.aliases=[];function sass(e){e.register(css),(function(e){e.languages.sass=e.languages.extend(`css`,{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore(`sass`,`atrule`,{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore(`sass`,`property`,{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore(`sass`,`punctuation`,{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}scss.displayName=`scss`,scss.aliases=[];function scss(e){e.register(css),e.languages.scss=e.languages.extend(`css`,{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:`important`},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore(`scss`,`atrule`,{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore(`scss`,`important`,{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore(`scss`,`function`,{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:`keyword`},placeholder:{pattern:/%[-\w]+/,alias:`selector`},statement:{pattern:/\B!(?:default|optional)\b/i,alias:`keyword`},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:`keyword`},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}sql.displayName=`sql`,sql.aliases=[];function sql(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}swift.displayName=`swift`,swift.aliases=[];function swift(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift[`string-literal`].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}typescript.displayName=`typescript`,typescript.aliases=[`ts`];function typescript(e){e.register(javascript),(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(e)}basic.displayName=`basic`,basic.aliases=[];function basic(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}vbnet.displayName=`vbnet`,vbnet.aliases=[];function vbnet(e){e.register(basic),e.languages.vbnet=e.languages.extend(`basic`,{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}var n=0,i={},a={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function deepClone(e,t){t||={};var n,i;switch(a.util.type(e)){case`Object`:if(i=a.util.objId(e),t[i])return t[i];for(var o in n={},t[i]=n,e)e.hasOwnProperty(o)&&(n[o]=deepClone(e[o],t));return n;case`Array`:return i=a.util.objId(e),t[i]?t[i]:(n=[],t[i]=n,e.forEach(function(e,i){n[i]=deepClone(e,t)}),n);default:return e}}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,t){var n=a.util.clone(a.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){i||=a.languages;var o=i[e],s={};for(var l in o)if(o.hasOwnProperty(l)){if(l==t)for(var u in n)n.hasOwnProperty(u)&&(s[u]=n[u]);n.hasOwnProperty(l)||(s[l]=o[l])}var d=i[e];return i[e]=s,a.languages.DFS(a.languages,function(t,n){n===d&&t!=e&&(this[t]=s)}),s},DFS:function DFS(e,t,n,i){i||={};var o=a.util.objId;for(var s in e)if(e.hasOwnProperty(s)){t.call(e,s,e[s],n||s);var l=e[s],u=a.util.type(l);u===`Object`&&!i[o(l)]?(i[o(l)]=!0,DFS(l,t,null,i)):u===`Array`&&!i[o(l)]&&(i[o(l)]=!0,DFS(l,t,s,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(a.hooks.run(`before-tokenize`,i),!i.grammar)throw Error(`The language "`+i.language+`" has no grammar.`);return i.tokens=a.tokenize(i.code,i.grammar),a.hooks.run(`after-tokenize`,i),Token.stringify(a.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var i in n)t[i]=n[i];delete t.rest}var a=new LinkedList;return addAfter(a,a.head,e),matchGrammar(e,a,t,a.head,0),toArray(a)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(!(!n||!n.length))for(var i=0,o;o=n[i++];)o(t)}},Token};function Token(e,t,n,i){this.type=e,this.content=t,this.alias=n,this.length=(i||``).length|0}function matchPattern(e,t,n,i){e.lastIndex=t;var a=e.exec(n);if(a&&i&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function matchGrammar(e,t,n,i,o,s){for(var l in n)if(!(!n.hasOwnProperty(l)||!n[l])){var u=n[l];u=Array.isArray(u)?u:[u];for(var d=0;d<u.length;++d){if(s&&s.cause==l+`,`+d)return;var f=u[d],p=f.inside,m=!!f.lookbehind,h=!!f.greedy,g=f.alias;if(h&&!f.pattern.global){var _=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,_+`g`)}for(var v=f.pattern||f,y=i.next,b=o;y!==t.tail&&!(s&&b>=s.reach);b+=y.value.length,y=y.next){var x=y.value;if(t.length>e.length)return;if(!(x instanceof Token)){var S=1,C;if(h){if(C=matchPattern(v,b,e,m),!C||C.index>=e.length)break;var w=C.index,T=C.index+C[0].length,E=b;for(E+=y.value.length;w>=E;)y=y.next,E+=y.value.length;if(E-=y.value.length,b=E,y.value instanceof Token)continue;for(var D=y;D!==t.tail&&(E<T||typeof D.value==`string`);D=D.next)S++,E+=D.value.length;S--,x=e.slice(b,E),C.index-=b}else if(C=matchPattern(v,0,x,m),!C)continue;var w=C.index,O=C[0],k=x.slice(0,w),A=x.slice(w+O.length),j=b+x.length;s&&j>s.reach&&(s.reach=j);var M=y.prev;k&&(M=addAfter(t,M,k),b+=k.length),removeRange(t,M,S);var N=new Token(l,p?a.tokenize(O,p):O,g,O);if(y=addAfter(t,M,N),A&&addAfter(t,y,A),S>1){var P={cause:l+`,`+d,reach:j};matchGrammar(e,t,n,y.prev,b,P),s&&P.reach>s.reach&&(s.reach=P.reach)}}}}}}function LinkedList(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function addAfter(e,t,n){var i=t.next,a={value:n,prev:t,next:i};return t.next=a,i.prev=a,e.length++,a}function removeRange(e,t,n){for(var i=t.next,a=0;a<n&&i!==e.tail;a++)i=i.next;t.next=i,i.prev=t,e.length-=a}function toArray(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const o=a;function Refractor(){}Refractor.prototype=o;const s=new Refractor;s.highlight=highlight,s.register=register,s.alias=alias,s.registered=registered,s.listLanguages=listLanguages,s.util.encode=encode,s.Token.stringify=stringify;function highlight(e,t){if(typeof e!=`string`)throw TypeError("Expected `string` for `value`, got `"+e+"`");let n,i;if(t&&typeof t==`object`)n=t;else{if(i=t,typeof i!=`string`)throw TypeError("Expected `string` for `name`, got `"+i+"`");if(Object.hasOwn(s.languages,i))n=s.languages[i];else throw Error("Unknown language: `"+i+"` is not registered")}return{type:`root`,children:o.highlight.call(s,e,n,i)}}function register(e){if(typeof e!=`function`||!e.displayName)throw Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(s.languages,e.displayName)||e(s)}function alias(e,t){let n=s.languages,i={};typeof e==`string`?t&&(i[e]=t):i=e;let a;for(a in i)if(Object.hasOwn(i,a)){let e=i[a],t=typeof e==`string`?[e]:e,o=-1;for(;++o<t.length;)n[t[o]]=n[a]}}function registered(e){if(typeof e!=`string`)throw TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(s.languages,e)}function listLanguages(){let e=s.languages,t=[],n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]==`object`&&t.push(n);return t}function stringify(t,n){if(typeof t==`string`)return{type:`text`,value:t};if(Array.isArray(t)){let e=[],i=-1;for(;++i<t.length;)t[i]!==null&&t[i]!==void 0&&t[i]!==``&&e.push(stringify(t[i],n));return e}let i={attributes:{},classes:[`token`,t.type],content:stringify(t.content,n),language:n,tag:`span`,type:t.type};return t.alias&&i.classes.push(...typeof t.alias==`string`?[t.alias]:t.alias),s.hooks.run(`wrap`,i),e(i.tag+`.`+i.classes.join(`.`),attributes(i.attributes),i.content)}function encode(e){return e}function attributes(e){let n;for(n in e)Object.hasOwn(e,n)&&(e[n]=t(e[n]));return e}s.register(clike),s.register(c),s.register(cpp),s.register(arduino),s.register(bash),s.register(csharp),s.register(markup),s.register(css),s.register(diff),s.register(go),s.register(ini),s.register(java),s.register(regex),s.register(javascript),s.register(json),s.register(kotlin),s.register(less),s.register(lua),s.register(makefile),s.register(yaml),s.register(markdown),s.register(objectivec),s.register(perl),s.register(markupTemplating),s.register(php),s.register(python),s.register(r),s.register(ruby),s.register(rust),s.register(sass),s.register(scss),s.register(sql),s.register(swift),s.register(typescript),s.register(basic),s.register(vbnet);export{s as t};
@@ -0,0 +1,4 @@
1
+ import{i as r,t as i}from"../rolldown-runtime.mjs";import{t as c}from"./refractor.mjs";import{D as u,E as d}from"./mdast.mjs";function toString(r){return`children`in r?all(r):`value`in r?r.value:``}function one(r){return r.type===`text`?r.value:`children`in r?all(r):``}function all(r){let i=-1,c=[];for(;++i<r.children.length;)c[i]=one(r.children[i]);return c.join(``)}const f={}.hasOwnProperty;function filter(r,i,c){let d=u(c||i),p=(i&&typeof i==`object`&&`cascade`in i?i.cascade:void 0)??!0;return preorder(r);function preorder(r,i,c){let u=[];if(!d(r,i,c))return;if(parent(r)){let i=-1;for(;++i<r.children.length;){let c=preorder(r.children[i],i,r);c&&u.push(c)}if(p&&r.children.length>0&&u.length===0)return}let m={},h;for(h in r)f.call(r,h)&&(m[h]=h===`children`?u:r[h]);return m}}function parent(r){return`children`in r&&r.children!==void 0}var p=r(i(((r,i)=>{function parsePart(r){let i=[],c;for(let u of r.split(`,`).map(r=>r.trim()))if(/^-?\d+$/.test(u))i.push(parseInt(u,10));else if(c=u.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[r,u,d,f]=c;if(u&&f){u=parseInt(u),f=parseInt(f);let r=u<f?1:-1;(d===`-`||d===`..`||d===`‥`)&&(f+=r);for(let c=u;c!==f;c+=r)i.push(c)}}return i}r.default=parsePart,i.exports=parsePart}))(),1);function o(){o=function(r,i){return new t(r,void 0,i)};var r=RegExp.prototype,i=new WeakMap;function t(r,c,u){var d=new RegExp(r,c);return i.set(d,u||i.get(r)),s(d,t.prototype)}function n(r,c){var u=i.get(c);return Object.keys(u).reduce(function(i,c){var d=u[c];if(typeof d==`number`)i[c]=r[d];else{for(var f=0;r[d[f]]===void 0&&f+1<d.length;)f++;i[c]=r[d[f]]}return i},Object.create(null))}return function(r,i){if(typeof i!=`function`&&i!==null)throw TypeError(`Super expression must either be null or a function`);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),i&&s(r,i)}(t,RegExp),t.prototype.exec=function(i){var c=r.exec.call(this,i);if(c){c.groups=n(c,this);var u=c.indices;u&&(u.groups=n(u,this))}return c},t.prototype[Symbol.replace]=function(c,u){if(typeof u==`string`){var d=i.get(this);return r[Symbol.replace].call(this,c,u.replace(/\$<([^>]+)>/g,function(r,i){var c=d[i];return`$`+(Array.isArray(c)?c.join(`$`):c)}))}if(typeof u==`function`){var f=this;return r[Symbol.replace].call(this,c,function(){var r=arguments;return typeof r[r.length-1]!=`object`&&(r=[].slice.call(r)).push(n(r,f)),u.apply(this,r)})}return r[Symbol.replace].call(this,c,u)},o.apply(this,arguments)}function s(r,i){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},s(r,i)}function l(r,i){(i==null||i>r.length)&&(i=r.length);for(var c=0,u=Array(i);c<i;c++)u[c]=r[c];return u}function a(r,i){var c=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(c)return(c=c.call(r)).next.bind(c);if(Array.isArray(r)||(c=function(r,i){if(r){if(typeof r==`string`)return l(r,i);var c=Object.prototype.toString.call(r).slice(8,-1);return c===`Object`&&r.constructor&&(c=r.constructor.name),c===`Map`||c===`Set`?Array.from(r):c===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?l(r,i):void 0}}(r))||i&&r&&typeof r.length==`number`){c&&(r=c);var u=0;return function(){return u>=r.length?{done:!0}:{done:!1,value:r[u++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=function(r){return function(i){return i===void 0&&(i={}),function(r,i){if(i&&!r.registered(i))throw Error(`The default language "`+i+`" is not registered with refractor.`)}(r,i.defaultLanguage),function(r){d(r,`element`,l)};function l(c,u,d){var f,m;if(d&&d.tagName===`pre`&&c.tagName===`code`){var h=(c==null||(f=c.data)==null?void 0:f.meta)||(c==null||(m=c.properties)==null?void 0:m.metastring)||``;c.properties.className?typeof c.properties.className==`boolean`?c.properties.className=[]:Array.isArray(c.properties.className)||(c.properties.className=[c.properties.className]):c.properties.className=[];var g,_,v=function(r){for(var i,c=a(r.properties.className);!(i=c()).done;){var u=i.value;if(u.slice(0,9)===`language-`)return u.slice(9).toLowerCase()}return null}(c);if(!v&&i.defaultLanguage&&c.properties.className.push(`language-`+(v=i.defaultLanguage)),c.properties.className.push(`code-highlight`),v)try{var y,b=(y=v)!=null&&y.includes(`diff-`)?v.split(`-`)[1]:v;g=r.highlight(toString(c),b),d.properties.className=(d.properties.className||[]).concat(`language-`+b)}catch(r){if(!i.ignoreMissing||!/Unknown language/.test(r.message))throw r;g=c}else g=c;g.children=(_=1,function e(r){return r.reduce(function(r,i){if(i.type===`text`){var c=i.value,u=(c.match(/\n/g)||``).length;if(u===0)i.position={start:{line:_,column:1},end:{line:_,column:1}},r.push(i);else for(var d,f=c.split(`
3
+ `),p=a(f.entries());!(d=p()).done;){var m=d.value,h=m[0],g=m[1];r.push({type:`text`,value:h===f.length-1?g:g+`
4
+ `,position:{start:{line:_+h,column:1},end:{line:_+h,column:1}}})}return _+=u,r}if(Object.prototype.hasOwnProperty.call(i,`children`)){var v=_;return i.children=e(i.children),r.push(i),i.position={start:{line:v,column:1},end:{line:_,column:1}},r}return r.push(i),r},[])})(g.children),g.position=g.children.length>0?{start:{line:g.children[0].position.start.line,column:0},end:{line:g.children[g.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var S,C=function(r){var i=/{([\d,-]+)}/,c=r.split(`,`).map(function(r){return r.trim()}).join();if(i.test(c)){var u=i.exec(c)[1],d=(0,p.default)(u);return function(r){return d.includes(r+1)}}return function(){return!1}}(h),w=function(r){var i=o(/showLineNumbers=(\d+)/i,{lines:1});if(i.test(r)){var c=i.exec(r);return Number(c.groups.lines)}return 1}(h),T=function(r){for(var i=Array(r),c=0;c<r;c++)i[c]={type:`element`,tagName:`span`,properties:{className:[]},children:[]};return i}(g.position.end.line),E=[`showlinenumbers=false`,`showlinenumbers="false"`,`showlinenumbers={false}`],x=function(){var r,c,u=S.value,d=u[0],f=u[1];f.properties.className=[`code-line`],f.children=filter(g,function(r){return r.position.start.line<=d+1&&r.position.end.line>=d+1}).children,(h.toLowerCase().includes(`showlinenumbers`)||!0===i.showLineNumbers||typeof i.showLineNumbers==`object`&&i.showLineNumbers.includes(v))&&!E.some(function(r){return h.toLowerCase().includes(r)})&&(f.properties.line=[(d+w).toString()],f.properties.className.push(`line-number`)),C(d)&&f.properties.className.push(`highlight-line`),(v===`diff`||(r=v)!=null&&r.includes(`diff-`))&&toString(f).substring(0,1)===`-`?f.properties.className.push(`deleted`):(v===`diff`||(c=v)!=null&&c.includes(`diff-`))&&toString(f).substring(0,1)===`+`&&f.properties.className.push(`inserted`)},D=a(T.entries());!(S=D()).done;)x();T.length>0&&toString(T[T.length-1]).trim()===``&&T.pop(),c.children=T}}}}(c);export{m as t};
@@ -1,3 +1,3 @@
1
- import"../rolldown-runtime.mjs";import{S as e,_ as t,a as n,b as r,c as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,s as m,t as h,u as g,v as _,x as v,y}from"./mdast.mjs";const b={tokenize:tokenizeWwwPrefix,partial:!0},x={tokenize:tokenizeDomain,partial:!0},S={tokenize:tokenizePath,partial:!0},C={tokenize:tokenizeTrail,partial:!0},w={tokenize:tokenizeEmailDomainDotTrail,partial:!0},T={name:`wwwAutolink`,tokenize:tokenizeWwwAutolink,previous:previousWww},E={name:`protocolAutolink`,tokenize:tokenizeProtocolAutolink,previous:previousProtocol},D={name:`emailAutolink`,tokenize:tokenizeEmailAutolink,previous:previousEmail},O={};function gfmAutolinkLiteral(){return{text:O}}let k=48;for(;k<123;)O[k]=D,k++,k===58?k=65:k===91&&(k=97);O[43]=D,O[45]=D,O[46]=D,O[95]=D,O[72]=[D,E],O[104]=[D,E],O[87]=[D,T],O[119]=[D,T];function tokenizeEmailAutolink(e,t,n){let r=this,i,a;return start;function start(t){return!gfmAtext(t)||!previousEmail.call(r,r.previous)||previousUnbalanced(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),atext(t))}function atext(t){return gfmAtext(t)?(e.consume(t),atext):t===64?(e.consume(t),emailDomain):n(t)}function emailDomain(t){return t===46?e.check(w,emailDomainAfter,emailDomainDot)(t):t===45||t===95||o(t)?(a=!0,e.consume(t),emailDomain):emailDomainAfter(t)}function emailDomainDot(t){return e.consume(t),i=!0,emailDomain}function emailDomainAfter(o){return a&&i&&s(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function tokenizeWwwAutolink(e,t,n){let r=this;return wwwStart;function wwwStart(t){return t!==87&&t!==119||!previousWww.call(r,r.previous)||previousUnbalanced(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(b,e.attempt(x,e.attempt(S,wwwAfter),n),n)(t))}function wwwAfter(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function tokenizeProtocolAutolink(n,r,i){let a=this,o=``,c=!1;return protocolStart;function protocolStart(e){return(e===72||e===104)&&previousProtocol.call(a,a.previous)&&!previousUnbalanced(a.events)?(n.enter(`literalAutolink`),n.enter(`literalAutolinkHttp`),o+=String.fromCodePoint(e),n.consume(e),protocolPrefixInside):i(e)}function protocolPrefixInside(e){if(s(e)&&o.length<5)return o+=String.fromCodePoint(e),n.consume(e),protocolPrefixInside;if(e===58){let t=o.toLowerCase();if(t===`http`||t===`https`)return n.consume(e),protocolSlashesInside}return i(e)}function protocolSlashesInside(e){return e===47?(n.consume(e),c?afterProtocol:(c=!0,protocolSlashesInside)):i(e)}function afterProtocol(r){return r===null||t(r)||y(r)||e(r)||v(r)?i(r):n.attempt(x,n.attempt(S,protocolAfter),i)(r)}function protocolAfter(e){return n.exit(`literalAutolinkHttp`),n.exit(`literalAutolink`),r(e)}}function tokenizeWwwPrefix(e,t,n){let r=0;return wwwPrefixInside;function wwwPrefixInside(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),wwwPrefixInside):t===46&&r===3?(e.consume(t),wwwPrefixAfter):n(t)}function wwwPrefixAfter(e){return e===null?n(e):t(e)}}function tokenizeDomain(t,n,r){let i,a,o;return domainInside;function domainInside(n){return n===46||n===95?t.check(C,domainAfter,domainAtPunctuation)(n):n===null||y(n)||e(n)||n!==45&&v(n)?domainAfter(n):(o=!0,t.consume(n),domainInside)}function domainAtPunctuation(e){return e===95?i=!0:(a=i,i=void 0),t.consume(e),domainInside}function domainAfter(e){return a||i||!o?r(e):n(e)}}function tokenizePath(t,n){let r=0,i=0;return pathInside;function pathInside(a){return a===40?(r++,t.consume(a),pathInside):a===41&&i<r?pathAtPunctuation(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?t.check(C,n,pathAtPunctuation)(a):a===null||y(a)||e(a)?n(a):(t.consume(a),pathInside)}function pathAtPunctuation(e){return e===41&&i++,t.consume(e),pathInside}}function tokenizeTrail(t,n,r){return trail;function trail(i){return i===33||i===34||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===63||i===95||i===126?(t.consume(i),trail):i===38?(t.consume(i),trailCharacterReferenceStart):i===93?(t.consume(i),trailBracketAfter):i===60||i===null||y(i)||e(i)?n(i):r(i)}function trailBracketAfter(t){return t===null||t===40||t===91||y(t)||e(t)?n(t):trail(t)}function trailCharacterReferenceStart(e){return s(e)?trailCharacterReferenceInside(e):r(e)}function trailCharacterReferenceInside(e){return e===59?(t.consume(e),trail):s(e)?(t.consume(e),trailCharacterReferenceInside):r(e)}}function tokenizeEmailDomainDotTrail(e,t,n){return start;function start(t){return e.consume(t),after}function after(e){return o(e)?n(e):t(e)}}function previousWww(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||y(e)}function previousProtocol(e){return!s(e)}function previousEmail(e){return!(e===47||gfmAtext(e))}function gfmAtext(e){return e===43||e===45||e===46||e===95||o(e)}function previousUnbalanced(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const A={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{91:{name:`gfmFootnoteCall`,tokenize:tokenizeGfmFootnoteCall},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return start;function start(i){if(!o||!o._balanced)return n(i);let s=u(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function resolveToPotentialGfmFootnoteCall(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function tokenizeGfmFootnoteCall(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return start;function start(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),callStart}function callStart(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,callData):n(t)}function callData(s){if(a>999||s===93&&!o||s===null||s===91||y(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(u(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return y(s)||(o=!0),a++,e.consume(s),s===92?callEscape:callData}function callEscape(t){return t===91||t===92||t===93?(e.consume(t),a++,callData):callData(t)}}function tokenizeDefinitionStart(e,t,r){let i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o,s=0,c;return start;function start(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),labelAtMarker}function labelAtMarker(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,labelInside):r(t)}function labelInside(t){if(s>999||t===93&&!c||t===null||t===91||y(t))return r(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return o=u(i.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),labelAfter}return y(t)||(c=!0),s++,e.consume(t),t===92?labelEscape:labelInside}function labelEscape(t){return t===91||t===92||t===93?(e.consume(t),s++,labelInside):labelInside(t)}function labelAfter(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),a.includes(o)||a.push(o),n(e,whitespaceAfter,`gfmFootnoteDefinitionWhitespace`)):r(t)}function whitespaceAfter(e){return t(e)}}function tokenizeDefinitionContinuation(e,t,n){return e.check(c,t,e.attempt(A,t,n))}function gfmFootnoteDefinitionEnd(e){e.exit(`gfmFootnoteDefinition`)}function tokenizeIndent(e,t,r){let i=this;return n(e,afterPrefix,`gfmFootnoteDefinitionIndent`,5);function afterPrefix(e){let n=i.events[i.events.length-1];return n&&n[1].type===`gfmFootnoteDefinitionIndent`&&n[2].sliceSerialize(n[1],!0).length===4?t(e):r(e)}}function gfmStrikethrough(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:tokenizeStrikethrough,resolveAll:resolveAllStrikethrough};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function resolveAllStrikethrough(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let a={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[[`enter`,a,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,o,t]],c=t.parser.constructs.insideSpan.null;c&&i(s,s.length,0,f(c,e.slice(r+1,n),t)),i(s,s.length,0,[[`exit`,o,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,a,t]]),i(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function tokenizeStrikethrough(e,n,r){let i=this.previous,a=this.events,o=0;return start;function start(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),more(t))}function more(a){let s=p(i);if(a===126)return o>1?r(a):(e.consume(a),o++,more);if(o<2&&!t)return r(a);let c=e.exit(`strikethroughSequenceTemporary`),l=p(a);return c._open=!l||l===2&&!!s,c._close=!s||s===2&&!!l,n(a)}}}var EditMap=class{constructor(){this.map=[]}add(e,t,n){addImplementation(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function addImplementation(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function gfmTableAlign(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function gfmTable(){return{flow:{null:{name:`table`,tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(e,t,i){let a=this,o=0,s=0,c;return start;function start(e){let t=a.events.length-1;for(;t>-1;){let e=a.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let n=t>-1?a.events[t][1].type:null,r=n===`tableHead`||n===`tableRow`?bodyRowStart:headRowBefore;return r===bodyRowStart&&a.parser.lazy[a.now().line]?i(e):r(e)}function headRowBefore(t){return e.enter(`tableHead`),e.enter(`tableRow`),headRowStart(t)}function headRowStart(e){return e===124?headRowBreak(e):(c=!0,s+=1,headRowBreak(e))}function headRowBreak(t){return t===null?i(t):_(t)?s>1?(s=0,a.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),headDelimiterStart):i(t):r(t)?n(e,headRowBreak,`whitespace`)(t):(s+=1,c&&(c=!1,o+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),c=!0,headRowBreak):(e.enter(`data`),headRowData(t)))}function headRowData(t){return t===null||t===124||y(t)?(e.exit(`data`),headRowBreak(t)):(e.consume(t),t===92?headRowEscape:headRowData)}function headRowEscape(t){return t===92||t===124?(e.consume(t),headRowData):headRowData(t)}function headDelimiterStart(t){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(t):(e.enter(`tableDelimiterRow`),c=!1,r(t)?n(e,headDelimiterBefore,`linePrefix`,a.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):headDelimiterBefore(t))}function headDelimiterBefore(t){return t===45||t===58?headDelimiterValueBefore(t):t===124?(c=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),headDelimiterCellBefore):headDelimiterNok(t)}function headDelimiterCellBefore(t){return r(t)?n(e,headDelimiterValueBefore,`whitespace`)(t):headDelimiterValueBefore(t)}function headDelimiterValueBefore(t){return t===58?(s+=1,c=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),headDelimiterLeftAlignmentAfter):t===45?(s+=1,headDelimiterLeftAlignmentAfter(t)):t===null||_(t)?headDelimiterCellAfter(t):headDelimiterNok(t)}function headDelimiterLeftAlignmentAfter(t){return t===45?(e.enter(`tableDelimiterFiller`),headDelimiterFiller(t)):headDelimiterNok(t)}function headDelimiterFiller(t){return t===45?(e.consume(t),headDelimiterFiller):t===58?(c=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),headDelimiterRightAlignmentAfter):(e.exit(`tableDelimiterFiller`),headDelimiterRightAlignmentAfter(t))}function headDelimiterRightAlignmentAfter(t){return r(t)?n(e,headDelimiterCellAfter,`whitespace`)(t):headDelimiterCellAfter(t)}function headDelimiterCellAfter(n){return n===124?headDelimiterBefore(n):n===null||_(n)?!c||o!==s?headDelimiterNok(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):headDelimiterNok(n)}function headDelimiterNok(e){return i(e)}function bodyRowStart(t){return e.enter(`tableRow`),bodyRowBreak(t)}function bodyRowBreak(i){return i===124?(e.enter(`tableCellDivider`),e.consume(i),e.exit(`tableCellDivider`),bodyRowBreak):i===null||_(i)?(e.exit(`tableRow`),t(i)):r(i)?n(e,bodyRowBreak,`whitespace`)(i):(e.enter(`data`),bodyRowData(i))}function bodyRowData(t){return t===null||t===124||y(t)?(e.exit(`data`),bodyRowBreak(t)):(e.consume(t),t===92?bodyRowEscape:bodyRowData)}function bodyRowEscape(t){return t===92||t===124?(e.consume(t),bodyRowData):bodyRowData(t)}}function resolveTable(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new EditMap;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(flushTableEnd(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=flushCell(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=flushCell(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=flushCell(f,t,o,i,n,d)):(o[0]=o[1],d=flushCell(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&flushTableEnd(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=gfmTableAlign(t.events,n))}return e}function flushCell(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},getPoint(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=getPoint(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=getPoint(t.events,n[2]),a=getPoint(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},getPoint(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function flushTableEnd(e,t,n,r,i){let a=[],o=getPoint(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function getPoint(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}const j={name:`tasklistCheck`,tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:j}}}function tokenizeTasklistCheck(e,t,n){let i=this;return open;function open(t){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),inside)}function inside(t){return y(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),close):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),close):n(t)}function close(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),after):n(t)}function after(i){return _(i)?t(i):r(i)?e.check({tokenize:spaceThenNonSpace},t,n)(i):n(i)}}function spaceThenNonSpace(e,t,r){return n(e,after,`whitespace`);function after(e){return e===null?r(e):t(e)}}function gfm(e){return m([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(e),gfmTable(),gfmTaskListItem()])}const M={};function remarkGfm(e){let t=this,n=e||M,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(gfm(n)),a.push(l()),o.push(g(n))}const N=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,P=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,remarkAlert=({legacyTitle:e=!1,tagName:t=`div`}={})=>n=>{a(n,`blockquote`,(n,r,i)=>{let a=``,o=``,s=!0,c=n.children.map(t=>{if(s&&t.type===`paragraph`){let n=t.children[0],r=n.type===`text`?n.value:``,i=e?P:N,c=r.match(i);if(c&&(s=!1,a=c[1].toLocaleLowerCase(),o=e&&c[2]||a.toLocaleUpperCase(),r.includes(`
2
- `)&&(t.children[0]={type:`text`,value:r.replace(i,``).replace(/^\n+/,``)}),!r.includes(`
3
- `))){let e=[];t.children.forEach((t,n)=>{n!=0&&(n!=1||t.type!==`break`)&&e.push(t)}),t.children=[...e]}}return t});a&&(n.data={hName:t,hProperties:{className:[`markdown-alert`,`markdown-alert-${a}`],dir:`auto`}},c.unshift({type:`paragraph`,children:[getAlertIcon(a),{type:`text`,value:o.replace(/^\//,``)}],data:{hProperties:{className:`markdown-alert-title`,dir:`auto`}}})),n.children=[...c]})};function getAlertIcon(e){return{type:`emphasis`,data:{hName:`svg`,hProperties:{className:[`octicon`],viewBox:`0 0 16 16`,width:`16`,height:`16`,ariaHidden:`true`}},children:[{type:`emphasis`,data:{hName:`path`,hProperties:{d:F[e]??``}},children:[]}]}}const F={note:`M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`,tip:`M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z`,important:`M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`,warning:`M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`,caution:`M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`};function remarkParse(e){let t=this;t.parser=parser;function parser(n){return d(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function remarkRehype(e,t){return e&&`run`in e?async function(n,r){let i=h(n,{file:r,...t});await e.run(i,r)}:function(n,r){return h(n,{file:r,...e||t})}}export{remarkGfm as i,remarkParse as n,remarkAlert as r,remarkRehype as t};
1
+ import"../rolldown-runtime.mjs";import{E as e,_ as t,a as n,b as r,c as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,s as m,t as h,u as g,v as _,x as v,y}from"./mdast.mjs";const b={tokenize:tokenizeWwwPrefix,partial:!0},x={tokenize:tokenizeDomain,partial:!0},S={tokenize:tokenizePath,partial:!0},C={tokenize:tokenizeTrail,partial:!0},w={tokenize:tokenizeEmailDomainDotTrail,partial:!0},T={name:`wwwAutolink`,tokenize:tokenizeWwwAutolink,previous:previousWww},E={name:`protocolAutolink`,tokenize:tokenizeProtocolAutolink,previous:previousProtocol},D={name:`emailAutolink`,tokenize:tokenizeEmailAutolink,previous:previousEmail},O={};function gfmAutolinkLiteral(){return{text:O}}let k=48;for(;k<123;)O[k]=D,k++,k===58?k=65:k===91&&(k=97);O[43]=D,O[45]=D,O[46]=D,O[95]=D,O[72]=[D,E],O[104]=[D,E],O[87]=[D,T],O[119]=[D,T];function tokenizeEmailAutolink(e,t,n){let r=this,i,a;return start;function start(t){return!gfmAtext(t)||!previousEmail.call(r,r.previous)||previousUnbalanced(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),atext(t))}function atext(t){return gfmAtext(t)?(e.consume(t),atext):t===64?(e.consume(t),emailDomain):n(t)}function emailDomain(t){return t===46?e.check(w,emailDomainAfter,emailDomainDot)(t):t===45||t===95||s(t)?(a=!0,e.consume(t),emailDomain):emailDomainAfter(t)}function emailDomainDot(t){return e.consume(t),i=!0,emailDomain}function emailDomainAfter(o){return a&&i&&u(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function tokenizeWwwAutolink(e,t,n){let r=this;return wwwStart;function wwwStart(t){return t!==87&&t!==119||!previousWww.call(r,r.previous)||previousUnbalanced(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(b,e.attempt(x,e.attempt(S,wwwAfter),n),n)(t))}function wwwAfter(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function tokenizeProtocolAutolink(e,t,n){let i=this,a=``,s=!1;return protocolStart;function protocolStart(t){return(t===72||t===104)&&previousProtocol.call(i,i.previous)&&!previousUnbalanced(i.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),a+=String.fromCodePoint(t),e.consume(t),protocolPrefixInside):n(t)}function protocolPrefixInside(t){if(u(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),protocolPrefixInside;if(t===58){let n=a.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),protocolSlashesInside}return n(t)}function protocolSlashesInside(t){return t===47?(e.consume(t),s?afterProtocol:(s=!0,protocolSlashesInside)):n(t)}function afterProtocol(t){return t===null||o(t)||_(t)||v(t)||r(t)?n(t):e.attempt(x,e.attempt(S,protocolAfter),n)(t)}function protocolAfter(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function tokenizeWwwPrefix(e,t,n){let r=0;return wwwPrefixInside;function wwwPrefixInside(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),wwwPrefixInside):t===46&&r===3?(e.consume(t),wwwPrefixAfter):n(t)}function wwwPrefixAfter(e){return e===null?n(e):t(e)}}function tokenizeDomain(e,t,n){let i,a,o;return domainInside;function domainInside(t){return t===46||t===95?e.check(C,domainAfter,domainAtPunctuation)(t):t===null||_(t)||v(t)||t!==45&&r(t)?domainAfter(t):(o=!0,e.consume(t),domainInside)}function domainAtPunctuation(t){return t===95?i=!0:(a=i,i=void 0),e.consume(t),domainInside}function domainAfter(e){return a||i||!o?n(e):t(e)}}function tokenizePath(e,t){let n=0,r=0;return pathInside;function pathInside(i){return i===40?(n++,e.consume(i),pathInside):i===41&&r<n?pathAtPunctuation(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(C,t,pathAtPunctuation)(i):i===null||_(i)||v(i)?t(i):(e.consume(i),pathInside)}function pathAtPunctuation(t){return t===41&&r++,e.consume(t),pathInside}}function tokenizeTrail(e,t,n){return trail;function trail(r){return r===33||r===34||r===39||r===41||r===42||r===44||r===46||r===58||r===59||r===63||r===95||r===126?(e.consume(r),trail):r===38?(e.consume(r),trailCharacterReferenceStart):r===93?(e.consume(r),trailBracketAfter):r===60||r===null||_(r)||v(r)?t(r):n(r)}function trailBracketAfter(e){return e===null||e===40||e===91||_(e)||v(e)?t(e):trail(e)}function trailCharacterReferenceStart(e){return u(e)?trailCharacterReferenceInside(e):n(e)}function trailCharacterReferenceInside(t){return t===59?(e.consume(t),trail):u(t)?(e.consume(t),trailCharacterReferenceInside):n(t)}}function tokenizeEmailDomainDotTrail(e,t,n){return start;function start(t){return e.consume(t),after}function after(e){return s(e)?n(e):t(e)}}function previousWww(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||_(e)}function previousProtocol(e){return!u(e)}function previousEmail(e){return!(e===47||gfmAtext(e))}function gfmAtext(e){return e===43||e===45||e===46||e===95||s(e)}function previousUnbalanced(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const A={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{91:{name:`gfmFootnoteCall`,tokenize:tokenizeGfmFootnoteCall},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return start;function start(i){if(!o||!o._balanced)return n(i);let s=p(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function resolveToPotentialGfmFootnoteCall(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function tokenizeGfmFootnoteCall(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return start;function start(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),callStart}function callStart(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,callData):n(t)}function callData(s){if(a>999||s===93&&!o||s===null||s===91||_(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(p(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return _(s)||(o=!0),a++,e.consume(s),s===92?callEscape:callData}function callEscape(t){return t===91||t===92||t===93?(e.consume(t),a++,callData):callData(t)}}function tokenizeDefinitionStart(e,t,r){let i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o,s=0,c;return start;function start(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),labelAtMarker}function labelAtMarker(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,labelInside):r(t)}function labelInside(t){if(s>999||t===93&&!c||t===null||t===91||_(t))return r(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return o=p(i.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),labelAfter}return _(t)||(c=!0),s++,e.consume(t),t===92?labelEscape:labelInside}function labelEscape(t){return t===91||t===92||t===93?(e.consume(t),s++,labelInside):labelInside(t)}function labelAfter(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),a.includes(o)||a.push(o),n(e,whitespaceAfter,`gfmFootnoteDefinitionWhitespace`)):r(t)}function whitespaceAfter(e){return t(e)}}function tokenizeDefinitionContinuation(e,t,n){return e.check(c,t,e.attempt(A,t,n))}function gfmFootnoteDefinitionEnd(e){e.exit(`gfmFootnoteDefinition`)}function tokenizeIndent(e,t,r){let i=this;return n(e,afterPrefix,`gfmFootnoteDefinitionIndent`,5);function afterPrefix(e){let n=i.events[i.events.length-1];return n&&n[1].type===`gfmFootnoteDefinitionIndent`&&n[2].sliceSerialize(n[1],!0).length===4?t(e):r(e)}}function gfmStrikethrough(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:tokenizeStrikethrough,resolveAll:resolveAllStrikethrough};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function resolveAllStrikethrough(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let a={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[[`enter`,a,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,o,t]],c=t.parser.constructs.insideSpan.null;c&&i(s,s.length,0,f(c,e.slice(r+1,n),t)),i(s,s.length,0,[[`exit`,o,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,a,t]]),i(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function tokenizeStrikethrough(e,n,r){let i=this.previous,o=this.events,s=0;return start;function start(t){return i===126&&o[o.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),more(t))}function more(o){let c=a(i);if(o===126)return s>1?r(o):(e.consume(o),s++,more);if(s<2&&!t)return r(o);let l=e.exit(`strikethroughSequenceTemporary`),u=a(o);return l._open=!u||u===2&&!!c,l._close=!c||c===2&&!!u,n(o)}}}var EditMap=class{constructor(){this.map=[]}add(e,t,n){addImplementation(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function addImplementation(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function gfmTableAlign(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function gfmTable(){return{flow:{null:{name:`table`,tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(e,r,i){let a=this,o=0,s=0,c;return start;function start(e){let t=a.events.length-1;for(;t>-1;){let e=a.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let n=t>-1?a.events[t][1].type:null,r=n===`tableHead`||n===`tableRow`?bodyRowStart:headRowBefore;return r===bodyRowStart&&a.parser.lazy[a.now().line]?i(e):r(e)}function headRowBefore(t){return e.enter(`tableHead`),e.enter(`tableRow`),headRowStart(t)}function headRowStart(e){return e===124?headRowBreak(e):(c=!0,s+=1,headRowBreak(e))}function headRowBreak(r){return r===null?i(r):t(r)?s>1?(s=0,a.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),headDelimiterStart):i(r):y(r)?n(e,headRowBreak,`whitespace`)(r):(s+=1,c&&(c=!1,o+=1),r===124?(e.enter(`tableCellDivider`),e.consume(r),e.exit(`tableCellDivider`),c=!0,headRowBreak):(e.enter(`data`),headRowData(r)))}function headRowData(t){return t===null||t===124||_(t)?(e.exit(`data`),headRowBreak(t)):(e.consume(t),t===92?headRowEscape:headRowData)}function headRowEscape(t){return t===92||t===124?(e.consume(t),headRowData):headRowData(t)}function headDelimiterStart(t){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(t):(e.enter(`tableDelimiterRow`),c=!1,y(t)?n(e,headDelimiterBefore,`linePrefix`,a.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):headDelimiterBefore(t))}function headDelimiterBefore(t){return t===45||t===58?headDelimiterValueBefore(t):t===124?(c=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),headDelimiterCellBefore):headDelimiterNok(t)}function headDelimiterCellBefore(t){return y(t)?n(e,headDelimiterValueBefore,`whitespace`)(t):headDelimiterValueBefore(t)}function headDelimiterValueBefore(n){return n===58?(s+=1,c=!0,e.enter(`tableDelimiterMarker`),e.consume(n),e.exit(`tableDelimiterMarker`),headDelimiterLeftAlignmentAfter):n===45?(s+=1,headDelimiterLeftAlignmentAfter(n)):n===null||t(n)?headDelimiterCellAfter(n):headDelimiterNok(n)}function headDelimiterLeftAlignmentAfter(t){return t===45?(e.enter(`tableDelimiterFiller`),headDelimiterFiller(t)):headDelimiterNok(t)}function headDelimiterFiller(t){return t===45?(e.consume(t),headDelimiterFiller):t===58?(c=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),headDelimiterRightAlignmentAfter):(e.exit(`tableDelimiterFiller`),headDelimiterRightAlignmentAfter(t))}function headDelimiterRightAlignmentAfter(t){return y(t)?n(e,headDelimiterCellAfter,`whitespace`)(t):headDelimiterCellAfter(t)}function headDelimiterCellAfter(n){return n===124?headDelimiterBefore(n):n===null||t(n)?!c||o!==s?headDelimiterNok(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),r(n)):headDelimiterNok(n)}function headDelimiterNok(e){return i(e)}function bodyRowStart(t){return e.enter(`tableRow`),bodyRowBreak(t)}function bodyRowBreak(i){return i===124?(e.enter(`tableCellDivider`),e.consume(i),e.exit(`tableCellDivider`),bodyRowBreak):i===null||t(i)?(e.exit(`tableRow`),r(i)):y(i)?n(e,bodyRowBreak,`whitespace`)(i):(e.enter(`data`),bodyRowData(i))}function bodyRowData(t){return t===null||t===124||_(t)?(e.exit(`data`),bodyRowBreak(t)):(e.consume(t),t===92?bodyRowEscape:bodyRowData)}function bodyRowEscape(t){return t===92||t===124?(e.consume(t),bodyRowData):bodyRowData(t)}}function resolveTable(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new EditMap;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(flushTableEnd(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=flushCell(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=flushCell(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=flushCell(f,t,o,i,n,d)):(o[0]=o[1],d=flushCell(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&flushTableEnd(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=gfmTableAlign(t.events,n))}return e}function flushCell(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},getPoint(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=getPoint(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=getPoint(t.events,n[2]),a=getPoint(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},getPoint(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function flushTableEnd(e,t,n,r,i){let a=[],o=getPoint(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function getPoint(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}const j={name:`tasklistCheck`,tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:j}}}function tokenizeTasklistCheck(e,n,r){let i=this;return open;function open(t){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),inside)}function inside(t){return _(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),close):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),close):r(t)}function close(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),after):r(t)}function after(i){return t(i)?n(i):y(i)?e.check({tokenize:spaceThenNonSpace},n,r)(i):r(i)}}function spaceThenNonSpace(e,t,r){return n(e,after,`whitespace`);function after(e){return e===null?r(e):t(e)}}function gfm(e){return m([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(e),gfmTable(),gfmTaskListItem()])}const M={};function remarkGfm(e){let t=this,n=e||M,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(gfm(n)),a.push(l()),o.push(g(n))}const N=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,P=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,remarkAlert=({legacyTitle:t=!1,tagName:n=`div`,classNames:r=``}={})=>i=>{e(i,`blockquote`,(e,i,a)=>{let o=``,s=``,c=!0,l=e.children.map(e=>{if(c&&e.type===`paragraph`){let n=e.children[0],r=n.type===`text`?n.value:``,i=t?P:N,a=r.match(i);if(a&&(c=!1,o=a[1].toLocaleLowerCase(),s=t&&a[2]||o.toLocaleUpperCase(),r.includes(`
2
+ `)&&(e.children[0]={type:`text`,value:r.replace(i,``).replace(/^\n+/,``)}),!r.includes(`
3
+ `))){let t=[];e.children.forEach((e,n)=>{n!=0&&(n!=1||e.type!==`break`)&&t.push(e)}),e.children=[...t]}}return e});o&&(e.data={hName:n,hProperties:{className:[`markdown-alert`,`markdown-alert-${o}`,...r.split(` `).filter(e=>e.length)],dir:`auto`}},l.unshift({type:`paragraph`,children:[getAlertIcon(o),{type:`text`,value:s.replace(/^\//,``)}],data:{hProperties:{className:`markdown-alert-title`,dir:`auto`}}})),e.children=[...l]})};function getAlertIcon(e){return{type:`emphasis`,data:{hName:`svg`,hProperties:{className:[`octicon`],viewBox:`0 0 16 16`,width:`16`,height:`16`,ariaHidden:`true`}},children:[{type:`emphasis`,data:{hName:`path`,hProperties:{d:F[e]??``}},children:[]}]}}const F={note:`M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`,tip:`M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z`,important:`M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`,warning:`M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`,caution:`M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`};function remarkParse(e){let t=this;t.parser=parser;function parser(n){return d(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function remarkRehype(e,t){return e&&`run`in e?async function(n,r){let i=h(n,{file:r,...t});await e.run(i,r)}:function(n,r){return h(n,{file:r,...e||t})}}export{remarkGfm as i,remarkParse as n,remarkAlert as r,remarkRehype as t};
@@ -1 +1 @@
1
- import{r as s}from"../rolldown-runtime.mjs";function e$21(s,c,l){let r=l=>s(l,...c);return l===void 0?r:Object.assign(r,{lazy:l,lazyArgs:c})}s(e$21,`e`);function t$37(s,c,l){let u=s.length-c.length;if(u===0)return s(...c);if(u===1)return e$21(s,c,l);throw Error(`Wrong number of arguments`)}s(t$37,`t`);function t$36(...s){return t$37(c,s)}s(t$36,`t`);const c=s((s,c)=>c.every(c=>c(s)),`n`);function t$35(...s){return t$37(l,s)}s(t$35,`t`);const l=s((s,c)=>c.some(c=>c(s)),`n`);function t$34(...s){return t$37(u,s)}s(t$34,`t`);const u=s((s,c)=>[...s,...c],`n`);function e$20(s){return()=>s}s(e$20,`e`);const d={done:!0,hasNext:!1},f={done:!1,hasNext:!1},p=s(()=>d,`n`),m=s(s=>({hasNext:!0,next:s,done:!1}),`r`);function t$32(s,...c){let l=s,u=c.map(s=>`lazy`in s?r$14(s):void 0),d=0;for(;d<c.length;){if(u[d]===void 0||!i$7(l)){let s=c[d];l=s(l),d+=1;continue}let s=[];for(let l=d;l<c.length;l++){let c=u[l];if(c===void 0||(s.push(c),c.isSingle))break}let f=[];for(let c of l)if(n$30(c,f,s))break;let{isSingle:p}=s.at(-1);l=p?f[0]:f,d+=s.length}return l}s(t$32,`t`);function n$30(s,c,l){if(l.length===0)return c.push(s),!1;let u=s,d=f,p=!1;for(let[s,f]of l.entries()){let{index:m,items:h}=f;if(h.push(u),d=f(u,m,h),f.index+=1,d.hasNext){if(d.hasMany??!1){for(let u of d.next)if(n$30(u,c,l.slice(s+1)))return!0;return p}u=d.next}if(!d.hasNext)break;d.done&&(p=!0)}return d.hasNext&&c.push(u),p}s(n$30,`n`);function r$14(s){let{lazy:c,lazyArgs:l}=s,u=c(...l);return Object.assign(u,{isSingle:c.single??!1,index:0,items:[]})}s(r$14,`r`);function i$7(s){return typeof s==`string`||typeof s==`object`&&!!s&&Symbol.iterator in s}s(i$7,`i`);function t$31(s,c){let l=c.length-s.length;if(l===1){let[l,...u]=c;return t$32(l,{lazy:s,lazyArgs:u})}if(l===0){let l={lazy:s,lazyArgs:c};return Object.assign(s=>t$32(s,l),l)}throw Error(`Wrong number of arguments`)}s(t$31,`t`);function t$30(...s){return t$37(h,s)}s(t$30,`t`);const h=s((s,c)=>s.length>=c,`n`),g={asc:(s,c)=>s>c,desc:(s,c)=>s<c};function t$29(s,c){let[l,...u]=c;if(!i$6(l))return s(l,r$13(...u));let d=r$13(l,...u);return c=>s(c,d)}s(t$29,`t`);function r$13(s,c,...l){let u=typeof s==`function`?s:s[0],d=typeof s==`function`?`asc`:s[1],{[d]:f}=g,p=c===void 0?void 0:r$13(c,...l);return(s,c)=>{let l=u(s),d=u(c);return f(l,d)?1:f(d,l)?-1:p?.(s,c)??0}}s(r$13,`r`);function i$6(s){if(_(s))return!0;if(typeof s!=`object`||!Array.isArray(s))return!1;let[c,l,...u]=s;return _(c)&&typeof l==`string`&&l in g&&u.length===0}s(i$6,`i`);const _=s(s=>typeof s==`function`&&s.length===1,`a`);function t$28(...s){return t$37(n$28,s)}s(t$28,`t`);function n$28(s,c){for(let[l,u]of s.entries())if(!c(u,l,s))return s.slice(l);return[]}s(n$28,`n`);function t$27(...s){return t$37(Object.entries,s)}s(t$27,`t`);function n$27(...s){return t$37(v,s,y)}s(n$27,`n`);const v=s((s,c)=>s.filter(c),`r`),y=s(s=>(c,l,u)=>s(c,l,u)?{done:!1,hasNext:!0,next:c}:f,`i`),b=s(s=>Object.assign(s,{single:!0}),`e`);function r$11(...s){return t$37(x,s,b(S))}s(r$11,`r`);const x=s((s,c)=>s.find(c),`i`),S=s(s=>(c,l,u)=>s(c,l,u)?{done:!0,hasNext:!0,next:c}:f,`a`);function t$26(...s){return t$37(C,s)}s(t$26,`t`);const C=s((s,c)=>{for(let l=s.length-1;l>=0;l--){let u=s[l];if(c(u,l,s))return u}},`n`);function n$25(...s){return t$37(w,s,b(T))}s(n$25,`n`);const w=s(([s])=>s,`r`),T=s(()=>E,`i`),E=s(s=>({hasNext:!0,next:s,done:!0}),`a`);function n$24(...s){return t$29(r$9,s)}s(n$24,`n`);function r$9(s,c){if(!t$30(s,2))return s[0];let[l]=s,[,...u]=s;for(let s of u)c(s,l)<0&&(l=s);return l}s(r$9,`r`);function t$25(...s){return t$37(D,s,O)}s(t$25,`t`);const D=s((s,c)=>s.flatMap(c),`n`),O=s(s=>(c,l,u)=>{let d=s(c,l,u);return Array.isArray(d)?{done:!1,hasNext:!0,hasMany:!0,next:d}:{done:!1,hasNext:!0,next:d}},`r`);function t$24(...s){return t$37(n$22,s,k)}s(t$24,`t`);function n$22(s,c){return s.forEach(c),s}s(n$22,`n`);const k=s(s=>(c,l,u)=>(s(c,l,u),{done:!1,hasNext:!0,next:c}),`r`);function t$23(...s){return t$37(A,s)}s(t$23,`t`);const A=s((s,c)=>{let l=Object.create(null);for(let u=0;u<s.length;u++){let d=s[u],f=c(d,u,s);if(f!==void 0){let s=l[f];s===void 0?l[f]=[d]:s.push(d)}}return Object.setPrototypeOf(l,Object.prototype),l},`n`);function t$22(...s){return t$37(n$20,s)}s(t$22,`t`);function n$20(s,c){if(s===c||Object.is(s,c))return!0;if(typeof s!=`object`||typeof c!=`object`||s===null||c===null||!r$6(s,c))return!1;if(Array.isArray(s))return i$2(s,c);if(s instanceof Map)return a(s,c);if(s instanceof Set)return o(s,c);if(s instanceof Date)return s.getTime()===c.getTime();if(s instanceof RegExp)return s.toString()===c.toString();if(Object.keys(s).length!==Object.keys(c).length)return!1;for(let[l,u]of Object.entries(s))if(!(l in c)||!n$20(u,c[l]))return!1;return!0}s(n$20,`n`);function r$6(s,c){let l=Object.getPrototypeOf(s),u=Object.getPrototypeOf(c);return l===u?!0:l===null?u===Object.prototype:l===Object.prototype&&u===null}s(r$6,`r`);function i$2(s,c){if(s.length!==c.length)return!1;for(let[l,u]of s.entries())if(!n$20(u,c[l]))return!1;return!0}s(i$2,`i`);function a(s,c){if(s.size!==c.size)return!1;for(let[l,u]of s.entries())if(!c.has(l)||!n$20(u,c.get(l)))return!1;return!0}function o(s,c){if(s.size!==c.size)return!1;let l=[...c];for(let c of s){let s=!1;for(let[u,d]of l.entries())if(n$20(c,d)){s=!0,l.splice(u,1);break}if(!s)return!1}return!0}function e$16(){return j}s(e$16,`e`);const j=s(s=>s,`t`);function e$15(s){return Array.isArray(s)}s(e$15,`e`);function e$14(s){return typeof s==`boolean`}s(e$14,`e`);function e$13(s){return s!==void 0}s(e$13,`e`);function e$12(s){return s===``||s===void 0?!0:Array.isArray(s)?s.length===0:Object.keys(s).length===0}s(e$12,`e`);function e$11(s){if(s==null||s===``)return!0;if(typeof s!=`object`)return!1;if(`length`in s&&typeof s.length==`number`)return s.length===0;if(`size`in s&&typeof s.size==`number`)return s.size===0;for(let c in s)return!1;return Object.getOwnPropertySymbols(s).length===0}s(e$11,`e`);const M=s(s=>typeof s==`function`,`e`);function e$9(s){return s!=null}s(e$9,`e`);function e$8(s){return c=>!s(c)}s(e$8,`e`);function e$7(s){return s==null}s(e$7,`e`);function e$6(s){return typeof s==`number`&&!Number.isNaN(s)}s(e$6,`e`);function t$20(...s){return t$37(n$19,s)}s(t$20,`t`);function n$19(s,c){if(s===c||Object.is(s,c))return!0;if(typeof s!=`object`||!s||typeof c!=`object`||!c)return!1;if(s instanceof Map&&c instanceof Map)return r$5(s,c);if(s instanceof Set&&c instanceof Set)return i$1(s,c);let l=Object.keys(s);if(l.length!==Object.keys(c).length)return!1;for(let u of l){if(!Object.hasOwn(c,u))return!1;let{[u]:l}=s,{[u]:d}=c;if(l!==d||!Object.is(l,d))return!1}return!0}s(n$19,`n`);function r$5(s,c){if(s.size!==c.size)return!1;for(let[l,u]of s){let s=c.get(l);if(u!==s||!Object.is(u,s))return!1}return!0}s(r$5,`r`);function i$1(s,c){if(s.size!==c.size)return!1;for(let l of s)if(!c.has(l))return!1;return!0}s(i$1,`i`);function e$5(s){return typeof s==`string`}s(e$5,`e`);function e$4(s){return!!s}s(e$4,`e`);function t$19(...s){return t$37(N,s)}s(t$19,`t`);const N=s(s=>s.at(-1),`n`);function t$18(...s){return t$37(P,s,F)}s(t$18,`t`);const P=s((s,c)=>s.map(c),`n`),F=s(s=>(c,l,u)=>({done:!1,hasNext:!0,next:s(c,l,u)}),`r`);function t$17(...s){return t$37(n$16,s)}s(t$17,`t`);function n$16(s,c){let l={};for(let[u,d]of s.entries()){let[f,p]=c(d,u,s);l[f]=p}return l}s(n$16,`n`);function t$16(...s){return t$37(n$15,s)}s(t$16,`t`);function n$15(s,c){let l={};for(let[u,d]of Object.entries(s))l[u]=c(d,u,s);return l}s(n$15,`n`);function n$14(...s){return t$37(r$3,s)}s(n$14,`n`);function r$3(s,c){if(!t$30(c,1))return{...s};if(!t$30(c,2)){let{[c[0]]:l,...u}=s;return u}let l={...s};for(let s of c)delete l[s];return l}s(r$3,`r`);function t$15(...s){return t$37(n$13,s)}s(t$15,`t`);function n$13(s,c){let l={...s};for(let[u,d]of Object.entries(l))c(d,u,s)&&delete l[u];return l}s(n$13,`n`);function t$14(...s){return t$37(I,s)}s(t$14,`t`);const I=s(s=>s.length===1?s[0]:void 0,`n`);function t$13(...s){return t$37(L,s)}s(t$13,`t`);const L=s((s,c)=>{let l=[[],[]];for(let[u,d]of s.entries())c(d,u,s)?l[0].push(d):l[1].push(d);return l},`n`);function t$12(...s){return t$37(n$10,s)}s(t$12,`t`);function n$10(s,c){let l={};for(let u of c)u in s&&(l[u]=s[u]);return l}s(n$10,`n`);function t$11(...s){return t$37(n$9,s)}s(t$11,`t`);function n$9(s,c){let l={};for(let[u,d]of Object.entries(s))c(d,u,s)&&(l[u]=d);return l}s(n$9,`n`);function t$10(...s){return c=>t$32(c,...s)}s(t$10,`t`);function e$3(s,...c){return typeof s==`string`||typeof s==`number`||typeof s==`symbol`?l=>t$9(l,s,...c):t$9(s,...c)}s(e$3,`e`);function t$9(s,...c){let l=s;for(let s of c){if(l==null)return;l=l[s]}return l}s(t$9,`t`);function t$8(...s){return t$37(n$8,s)}s(t$8,`t`);function n$8(s,c,l){let u={};for(let[d,f]of s.entries()){let p=c(f,d,s);u[p]=l(f,d,s)}return u}s(n$8,`n`);function e$2(s,c){let l=Math.ceil(s),u=Math.floor(c);if(u<l)throw RangeError(`randomInteger: The range [${s.toString()},${c.toString()}] contains no integer`);return Math.floor(Math.random()*(u-l+1)+l)}s(e$2,`e`);function t$7(...s){return t$37(R,s)}s(t$7,`t`);const R=s((s,c,l)=>s.reduce(c,l),`n`);function t$6(...s){return t$37(n$6,s)}s(t$6,`t`);function n$6(s){return[...s].reverse()}s(n$6,`n`);function t$5(...s){return t$37(n$5,s)}s(t$5,`t`);function n$5(s,c){let l=[...s];return l.sort(c),l}s(n$5,`n`);function t$4(...s){return t$29(z,s)}s(t$4,`t`);const z=s((s,c)=>[...s].sort(c),`n`);function e$1(s,c,l){return typeof c==`number`||c===void 0?l=>l.split(s,c):s.split(c,l)}s(e$1,`e`);function n$3(...s){return t$37(B,s,i)}s(n$3,`n`);const B=s((s,c)=>c<0?[]:s.slice(0,c),`r`);function i(s){if(s<=0)return p;let c=s;return s=>(--c,{done:c<=0,hasNext:!0,next:s})}function t$3(...s){return t$37(n$2,s)}s(t$3,`t`);function n$2(s,c){let l=[];for(let[u,d]of s.entries()){if(!c(d,u,s))break;l.push(d)}return l}s(n$2,`n`);function n$1(...s){return t$31(r$1,s)}s(n$1,`n`);function r$1(){let s=new Set;return c=>s.has(c)?f:(s.add(c),{done:!1,hasNext:!0,next:c})}s(r$1,`r`);function t$2(...s){return t$37(Object.values,s)}s(t$2,`t`);function e(...s){return s.length===2?(c,...l)=>V(c,...s,...l):V(...s)}const V=s((s,c,l,...u)=>c(s,...u)?typeof l==`function`?l(s,...u):l.onTrue(s,...u):typeof l==`function`?s:l.onFalse(s,...u),`t`);function t(...s){return t$37(n,s,r)}const n=(s,c)=>s.length<c.length?s.map((s,l)=>[s,c[l]]):c.map((c,l)=>[s[l],c]),r=s=>(c,l)=>({hasNext:!0,next:[c,s[l]],done:l>=s.length-1});export{m as $,e$7 as A,t$22 as B,t$17 as C,e$5 as D,e$4 as E,e$12 as F,n$25 as G,t$24 as H,e$13 as I,n$27 as J,t$26 as K,e$14 as L,e$9 as M,M as N,t$20 as O,e$11 as P,t$32 as Q,e$15 as R,t$16 as S,t$19 as T,t$25 as U,t$23 as V,n$24 as W,t$28 as X,t$27 as Y,t$30 as Z,t$12 as _,t$3 as a,t$37 as at,t$15 as b,t$4 as c,t$7 as d,f as et,e$2 as f,t$11 as g,t$10 as h,n$1 as i,t$36 as it,e$8 as j,e$6 as k,t$5 as l,e$3 as m,e as n,t$34 as nt,n$3 as o,t$8 as p,r$11 as q,t$2 as r,t$35 as rt,e$1 as s,t,e$20 as tt,t$6 as u,t$13 as v,t$18 as w,n$14 as x,t$14 as y,e$16 as z};
1
+ import{r as s}from"../rolldown-runtime.mjs";function e$20(s,c,l){let r=l=>s(l,...c);return l===void 0?r:Object.assign(r,{lazy:l,lazyArgs:c})}s(e$20,`e`);function t$36(s,c,l){let u=s.length-c.length;if(u===0)return s(...c);if(u===1)return e$20(s,c,l);throw Error(`Wrong number of arguments`)}s(t$36,`t`);function t$35(...s){return t$36(c,s)}s(t$35,`t`);const c=s((s,c)=>c.every(c=>c(s)),`n`);function t$34(...s){return t$36(l,s)}s(t$34,`t`);const l=s((s,c)=>c.some(c=>c(s)),`n`);function t$33(...s){return t$36(u,s)}s(t$33,`t`);const u=s((s,c)=>[...s,...c],`n`);function e$19(s){return()=>s}s(e$19,`e`);const d={done:!0,hasNext:!1},f={done:!1,hasNext:!1},p=s(()=>d,`n`),m=s(s=>({hasNext:!0,next:s,done:!1}),`r`);function t$31(s,...c){let l=s,u=c.map(s=>`lazy`in s?{lazyEvaluator:s.lazy(...s.lazyArgs),isSingle:s.lazy.single??!1,index:0,items:[]}:void 0),d=0;for(;d<c.length;){if(u[d]===void 0||!a$4(l)){let s=c[d];l=s(l),d+=1;continue}let s=n$30(u,d),f=r$14(l,s),{isSingle:p}=s.at(-1);l=p?f[0]:f,d+=s.length}return l}s(t$31,`t`);function n$30(s,c){let l=[];for(let u=c;u<s.length;u++){let c=s[u];if(c===void 0||(l.push(c),c.isSingle))break}return l}s(n$30,`n`);function r$14(s,c){let l=[];for(let u of s)if(i$8(u,l,c))break;return l}s(r$14,`r`);function i$8(s,c,l){if(l.length===0)return c.push(s),!1;let u=s,d=f,p=!1;for(let[s,{items:f,lazyEvaluator:m}]of l.entries())if(f.push(u),d=m(u,f.length-1,f),d.done&&(p=!0),d.hasNext){if(d.hasMany??!1){for(let u of d.next)if(i$8(u,c,l.slice(s+1)))return!0;return p}u=d.next}else break;return d.hasNext&&c.push(u),p}s(i$8,`i`);function a$4(s){return typeof s==`string`||typeof s==`object`&&!!s&&Symbol.iterator in s}s(a$4,`a`);function t$30(s,c){let l=c.length-s.length;if(l===1){let[l,...u]=c;return t$31(l,{lazy:s,lazyArgs:u})}if(l===0){let l={lazy:s,lazyArgs:c};return Object.assign(s=>t$31(s,l),l)}throw Error(`Wrong number of arguments`)}s(t$30,`t`);function t$29(...s){return t$36(h,s)}s(t$29,`t`);const h=s((s,c)=>s.length>=c,`n`),g={asc:(s,c)=>s>c,desc:(s,c)=>s<c};function t$28(s,c){let[l,...u]=c;if(!i$7(l))return s(l,r$13(...u));let d=r$13(l,...u);return c=>s(c,d)}s(t$28,`t`);function r$13(s,c,...l){let u=typeof s==`function`?s:s[0],d=typeof s==`function`?`asc`:s[1],f=g[d],p=c===void 0?void 0:r$13(c,...l);return(s,c)=>{let l=u(s),d=u(c);return f(l,d)?1:f(d,l)?-1:p?.(s,c)??0}}s(r$13,`r`);function i$7(s){if(_(s))return!0;if(typeof s!=`object`||!Array.isArray(s))return!1;let[c,l,...u]=s;return _(c)&&typeof l==`string`&&Object.hasOwn(g,l)&&u.length===0}s(i$7,`i`);const _=s(s=>typeof s==`function`&&s.length===1,`a`);function t$27(...s){return t$36(n$28,s)}s(t$27,`t`);function n$28(s,c){for(let[l,u]of s.entries())if(!c(u,l,s))return s.slice(l);return[]}s(n$28,`n`);function t$26(...s){return t$36(Object.entries,s)}s(t$26,`t`);function n$27(...s){return t$36(v,s,y)}s(n$27,`n`);const v=s((s,c)=>s.filter(c),`r`),y=s(s=>(c,l,u)=>s(c,l,u)?{done:!1,hasNext:!0,next:c}:f,`i`),b=s(s=>Object.assign(s,{single:!0}),`e`);function r$11(...s){return t$36(x,s,b(S))}s(r$11,`r`);const x=s((s,c)=>s.find(c),`i`),S=s(s=>(c,l,u)=>s(c,l,u)?{done:!0,hasNext:!0,next:c}:f,`a`);function t$25(...s){return t$36(C,s)}s(t$25,`t`);const C=s((s,c)=>{for(let l=s.length-1;l>=0;l--){let u=s[l];if(c(u,l,s))return u}},`n`);function n$25(...s){return t$36(w,s,b(T))}s(n$25,`n`);const w=s(([s])=>s,`r`),T=s(()=>E,`i`),E=s(s=>({hasNext:!0,next:s,done:!0}),`a`);function n$24(...s){return t$28(r$9,s)}s(n$24,`n`);function r$9(s,c){if(!t$29(s,2))return s[0];let[l]=s,[,...u]=s;for(let s of u)c(s,l)<0&&(l=s);return l}s(r$9,`r`);function t$24(...s){return t$36(D,s,O)}s(t$24,`t`);const D=s((s,c)=>s.flatMap(c),`n`),O=s(s=>(c,l,u)=>{let d=s(c,l,u);return Array.isArray(d)?{done:!1,hasNext:!0,hasMany:!0,next:d}:{done:!1,hasNext:!0,next:d}},`r`);function t$23(...s){return t$36(n$22,s,k)}s(t$23,`t`);function n$22(s,c){return s.forEach(c),s}s(n$22,`n`);const k=s(s=>(c,l,u)=>(s(c,l,u),{done:!1,hasNext:!0,next:c}),`r`);function t$22(...s){return t$36(A,s)}s(t$22,`t`);const A=s((s,c)=>{let l=Object.create(null);for(let u=0;u<s.length;u++){let d=s[u],f=c(d,u,s);if(f!==void 0){let s=l[f];s===void 0?l[f]=[d]:s.push(d)}}return Object.setPrototypeOf(l,Object.prototype),l},`n`);function t$21(...s){return t$36(n$20,s)}s(t$21,`t`);function n$20(s,c){if(s===c||Object.is(s,c))return!0;if(typeof s!=`object`||typeof c!=`object`||s===null||c===null||!r$6(s,c))return!1;if(Array.isArray(s))return i$3(s,c);if(s instanceof Map)return a(s,c);if(s instanceof Set)return o(s,c);if(s instanceof Date)return s.getTime()===c.getTime();if(s instanceof RegExp)return s.toString()===c.toString();if(Object.keys(s).length!==Object.keys(c).length)return!1;for(let[l,u]of Object.entries(s))if(!Object.hasOwn(c,l)||!n$20(u,c[l]))return!1;return!0}s(n$20,`n`);function r$6(s,c){let l=Object.getPrototypeOf(s),u=Object.getPrototypeOf(c);return l===u?!0:l===null?u===Object.prototype:l===Object.prototype&&u===null}s(r$6,`r`);function i$3(s,c){if(s.length!==c.length)return!1;for(let[l,u]of s.entries())if(!n$20(u,c[l]))return!1;return!0}s(i$3,`i`);function a(s,c){if(s.size!==c.size)return!1;for(let[l,u]of s)if(!c.has(l)||!n$20(u,c.get(l)))return!1;return!0}function o(s,c){if(s.size!==c.size)return!1;let l=[...c];for(let c of s){let s=l.findIndex(s=>n$20(c,s));if(s===-1)return!1;l.splice(s,1)}return!0}function e$15(){return j}s(e$15,`e`);const j=s(s=>s,`t`);function e$14(s){return Array.isArray(s)}s(e$14,`e`);function e$13(s){return typeof s==`boolean`}s(e$13,`e`);function e$12(s){return s!==void 0}s(e$12,`e`);function e$11(s){return s===``||s===void 0?!0:Array.isArray(s)?s.length===0:Object.keys(s).length===0}s(e$11,`e`);function e$10(s){if(s===``||s==null)return!0;if(typeof s!=`object`)return!1;if(`length`in s&&typeof s.length==`number`)return s.length===0;if(`size`in s&&typeof s.size==`number`)return s.size===0;for(let c in s)return!1;return Object.getOwnPropertySymbols(s).length===0}s(e$10,`e`);const M=s(s=>typeof s==`function`,`e`);function e$8(s){return s!=null}s(e$8,`e`);function e$7(s){return c=>!s(c)}s(e$7,`e`);function e$6(s){return s==null}s(e$6,`e`);function e$5(s){return typeof s==`number`&&!Number.isNaN(s)}s(e$5,`e`);function t$19(...s){return t$36(n$19,s)}s(t$19,`t`);function n$19(s,c){if(s===c||Object.is(s,c))return!0;if(typeof s!=`object`||!s||typeof c!=`object`||!c)return!1;if(s instanceof Map&&c instanceof Map)return r$5(s,c);if(s instanceof Set&&c instanceof Set)return i$2(s,c);let l=Object.keys(s);if(l.length!==Object.keys(c).length)return!1;for(let u of l){if(!Object.hasOwn(c,u))return!1;let l=s[u],d=c[u];if(l!==d&&!Object.is(l,d))return!1}return!0}s(n$19,`n`);function r$5(s,c){if(s.size!==c.size)return!1;for(let[l,u]of s){let s=c.get(l);if(u!==s&&!Object.is(u,s))return!1}return!0}s(r$5,`r`);function i$2(s,c){if(s.size!==c.size)return!1;for(let l of s)if(!c.has(l))return!1;return!0}s(i$2,`i`);function e$4(s){return typeof s==`string`}s(e$4,`e`);function e$3(s){return!!s}s(e$3,`e`);function t$18(...s){return t$36(N,s)}s(t$18,`t`);const N=s(s=>s.at(-1),`n`);function t$17(...s){return t$36(P,s,F)}s(t$17,`t`);const P=s((s,c)=>s.map(c),`n`),F=s(s=>(c,l,u)=>({done:!1,hasNext:!0,next:s(c,l,u)}),`r`);function t$16(...s){return t$36(n$16,s)}s(t$16,`t`);function n$16(s,c){let l={};for(let[u,d]of s.entries()){let[f,p]=c(d,u,s);l[f]=p}return l}s(n$16,`n`);function t$15(...s){return t$36(n$15,s)}s(t$15,`t`);function n$15(s,c){let l={};for(let[u,d]of Object.entries(s))l[u]=c(d,u,s);return l}s(n$15,`n`);function n$14(...s){return t$36(r$3,s)}s(n$14,`n`);function r$3(s,c){if(!t$29(c,1))return{...s};if(!t$29(c,2)){let{[c[0]]:l,...u}=s;return u}let l={...s};for(let s of c)delete l[s];return l}s(r$3,`r`);function t$14(...s){return t$36(n$13,s)}s(t$14,`t`);function n$13(s,c){let l={...s};for(let[u,d]of Object.entries(l))c(d,u,s)&&delete l[u];return l}s(n$13,`n`);function t$13(...s){return t$36(I,s)}s(t$13,`t`);const I=s(s=>s.length===1?s[0]:void 0,`n`);function t$12(...s){return t$36(L,s)}s(t$12,`t`);const L=s((s,c)=>{let l=[[],[]];for(let[u,d]of s.entries())c(d,u,s)?l[0].push(d):l[1].push(d);return l},`n`);function t$11(...s){return t$36(n$10,s)}s(t$11,`t`);function n$10(s,c){let l={};for(let u of c)u in s&&(l[u]=s[u]);return l}s(n$10,`n`);function t$10(...s){return t$36(n$9,s)}s(t$10,`t`);function n$9(s,c){let l={};for(let[u,d]of Object.entries(s))c(d,u,s)&&(l[u]=d);return l}s(n$9,`n`);function t$9(...s){return c=>t$31(c,...s)}s(t$9,`t`);function e$2(s,...c){return typeof s==`string`||typeof s==`number`||typeof s==`symbol`?l=>t$8(l,s,...c):t$8(s,...c)}s(e$2,`e`);function t$8(s,...c){let l=s;for(let s of c){if(l==null)return;l=l[s]}return l}s(t$8,`t`);function t$7(...s){return t$36(n$8,s)}s(t$7,`t`);function n$8(s,c,l){let u={};for(let[d,f]of s.entries()){let p=c(f,d,s);u[p]=l(f,d,s)}return u}s(n$8,`n`);function e$1(s,c){let l=Math.ceil(s),u=Math.floor(c);if(u<l)throw RangeError(`randomInteger: The range [${s.toString()},${c.toString()}] contains no integer`);return Math.floor(Math.random()*(u-l+1)+l)}s(e$1,`e`);function t$6(...s){return t$36(R,s)}s(t$6,`t`);const R=s((s,c,l)=>s.reduce(c,l),`n`);function t$5(...s){return t$36(n$6,s)}s(t$5,`t`);function n$6(s){return[...s].reverse()}s(n$6,`n`);function t$4(...s){return t$36(n$5,s)}s(t$4,`t`);function n$5(s,c){let l=[...s];return l.sort(c),l}s(n$5,`n`);function t$3(...s){return t$28(z,s)}s(t$3,`t`);const z=s((s,c)=>[...s].sort(c),`n`);function n$3(...s){return t$36(B,s,i$1)}s(n$3,`n`);const B=s((s,c)=>c<0?[]:s.slice(0,c),`r`);function i$1(s){if(s<=0)return p;let c=s;return s=>(--c,{done:c<=0,hasNext:!0,next:s})}s(i$1,`i`);function t$2(...s){return t$36(n$2,s)}s(t$2,`t`);function n$2(s,c){let l=[];for(let[u,d]of s.entries()){if(!c(d,u,s))break;l.push(d)}return l}s(n$2,`n`);function n$1(...s){return t$30(r$1,s)}s(n$1,`n`);function r$1(){let s=new Set;return c=>s.has(c)?f:(s.add(c),{done:!1,hasNext:!0,next:c})}s(r$1,`r`);function t$1(...s){return t$36(Object.values,s)}s(t$1,`t`);function e(...s){return s.length===2?(c,...l)=>t(c,...s,...l):t(...s)}const t=(s,c,l,...u)=>c(s,...u)?typeof l==`function`?l(s,...u):l.onTrue(s,...u):typeof l==`function`?s:l.onFalse(s,...u);function n(...s){return t$36(r,s,i)}const r=(s,c)=>s.length<c.length?s.map((s,l)=>[s,c[l]]):c.map((c,l)=>[s[l],c]),i=s=>s.length===0?p:(c,l)=>({hasNext:!0,next:[c,s[l]],done:l>=s.length-1});export{f as $,e$7 as A,t$22 as B,t$17 as C,t$19 as D,e$4 as E,e$12 as F,t$25 as G,t$24 as H,e$13 as I,t$26 as J,r$11 as K,e$14 as L,M,e$10 as N,e$5 as O,e$11 as P,m as Q,e$15 as R,t$16 as S,e$3 as T,n$24 as U,t$23 as V,n$25 as W,t$29 as X,t$27 as Y,t$31 as Z,t$12 as _,t$2 as a,n$14 as b,t$4 as c,e$1 as d,e$19 as et,t$7 as f,t$11 as g,t$10 as h,n$1 as i,t$36 as it,e$8 as j,e$6 as k,t$5 as l,t$9 as m,e as n,t$34 as nt,n$3 as o,e$2 as p,n$27 as q,t$1 as r,t$35 as rt,t$3 as s,n as t,t$33 as tt,t$6 as u,t$13 as v,t$18 as w,t$15 as x,t$14 as y,t$21 as z};