28 lines
2.4 MiB
JavaScript
28 lines
2.4 MiB
JavaScript
|
(function(){var k={75583:function(k,v){"use strict";Object.defineProperty(v,"__esModule",{value:true});v.cloneNode=cloneNode;function cloneNode(k){return Object.assign({},k)}},26333:function(k,v,E){"use strict";Object.defineProperty(v,"__esModule",{value:true});var P={numberLiteralFromRaw:true,withLoc:true,withRaw:true,funcParam:true,indexLiteral:true,memIndexLiteral:true,instruction:true,objectInstruction:true,traverse:true,signatures:true,cloneNode:true,moduleContextFromModuleAST:true};Object.defineProperty(v,"numberLiteralFromRaw",{enumerable:true,get:function get(){return L.numberLiteralFromRaw}});Object.defineProperty(v,"withLoc",{enumerable:true,get:function get(){return L.withLoc}});Object.defineProperty(v,"withRaw",{enumerable:true,get:function get(){return L.withRaw}});Object.defineProperty(v,"funcParam",{enumerable:true,get:function get(){return L.funcParam}});Object.defineProperty(v,"indexLiteral",{enumerable:true,get:function get(){return L.indexLiteral}});Object.defineProperty(v,"memIndexLiteral",{enumerable:true,get:function get(){return L.memIndexLiteral}});Object.defineProperty(v,"instruction",{enumerable:true,get:function get(){return L.instruction}});Object.defineProperty(v,"objectInstruction",{enumerable:true,get:function get(){return L.objectInstruction}});Object.defineProperty(v,"traverse",{enumerable:true,get:function get(){return N.traverse}});Object.defineProperty(v,"signatures",{enumerable:true,get:function get(){return q.signatures}});Object.defineProperty(v,"cloneNode",{enumerable:true,get:function get(){return le.cloneNode}});Object.defineProperty(v,"moduleContextFromModuleAST",{enumerable:true,get:function get(){return pe.moduleContextFromModuleAST}});var R=E(860);Object.keys(R).forEach((function(k){if(k==="default"||k==="__esModule")return;if(Object.prototype.hasOwnProperty.call(P,k))return;if(k in v&&v[k]===R[k])return;Object.defineProperty(v,k,{enumerable:true,get:function get(){return R[k]}})}));var L=E(68958);var N=E(11885);var q=E(96395);var ae=E(20885);Object.keys(ae).forEach((function(k){if(k==="default"||k==="__esModule")return;if(Object.prototype.hasOwnProperty.call(P,k))return;if(k in v&&v[k]===ae[k])return;Object.defineProperty(v,k,{enumerable:true,get:function get(){return ae[k]}})}));var le=E(75583);var pe=E(15067)},68958:function(k,v,E){"use strict";Object.defineProperty(v,"__esModule",{value:true});v.numberLiteralFromRaw=numberLiteralFromRaw;v.instruction=instruction;v.objectInstruction=objectInstruction;v.withLoc=withLoc;v.withRaw=withRaw;v.funcParam=funcParam;v.indexLiteral=indexLiteral;v.memIndexLiteral=memIndexLiteral;var P=E(37197);var R=E(860);function numberLiteralFromRaw(k){var v=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"i32";var E=k;if(typeof k==="string"){k=k.replace(/_/g,"")}if(typeof k==="number"){return(0,R.numberLiteral)(k,String(E))}else{switch(v){case"i32":{return(0,R.numberLiteral)((0,P.parse32I)(k),String(E))}case"u32":{return(0,R.numberLiteral)((0,P.parseU32)(k),String(E))}case"i64":{return(0,R.longNumberLiteral)((0,P.parse64I)(k),String(E))}case"f32":{return(0,R.floatLiteral)((0,P.parse32F)(k),(0,P.isNanLiteral)(k),(0,P.isInfLiteral)(k),String(E))}default:{return(0,R.floatLiteral)((0,P.parse64F)(k),(0,P.isNanLiteral)(k),(0,P.isInfLiteral)(k),String(E))}}}}function instruction(k){var v=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var E=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return(0,R.instr)(k,undefined,v,E)}function objectInstruction(k,v){var E=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var P=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};return(0,R.instr)(k,v,E,P)}function withLoc(k,v,E){var P={start:E,end:v};k.loc=P;return k}function withRaw(k,v){k.raw=v;return k}function funcParam(k,v){return{id:v,valtype:k}}function indexLiteral(k){var v=numberLiteralFromRaw(k,"u32");return v}function memIndexLiteral(k){var v=numberLiteralFromRaw(k,"u32");return v}},92489:function(k,v){"use strict";Object.defineProperty(v,"__esModule",{value:true});v.createPath=createPath;function ow
|
||
|
/*!
|
||
|
* mime-db
|
||
|
* Copyright(c) 2014 Jonathan Ong
|
||
|
* MIT Licensed
|
||
|
*/
|
||
|
k.exports=E(66282)},24230:function(k,v,E){"use strict";
|
||
|
/*!
|
||
|
* mime-types
|
||
|
* Copyright(c) 2014 Jonathan Ong
|
||
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
||
|
* MIT Licensed
|
||
|
*/var P=E(95183);var R=E(71017).extname;var L=/^\s*([^;\s]*)(?:;|\s|$)/;var N=/^text\//i;v.charset=charset;v.charsets={lookup:charset};v.contentType=contentType;v.extension=extension;v.extensions=Object.create(null);v.lookup=lookup;v.types=Object.create(null);populateMaps(v.extensions,v.types);function charset(k){if(!k||typeof k!=="string"){return false}var v=L.exec(k);var E=v&&P[v[1].toLowerCase()];if(E&&E.charset){return E.charset}if(v&&N.test(v[1])){return"UTF-8"}return false}function contentType(k){if(!k||typeof k!=="string"){return false}var E=k.indexOf("/")===-1?v.lookup(k):k;if(!E){return false}if(E.indexOf("charset")===-1){var P=v.charset(E);if(P)E+="; charset="+P.toLowerCase()}return E}function extension(k){if(!k||typeof k!=="string"){return false}var E=L.exec(k);var P=E&&v.extensions[E[1].toLowerCase()];if(!P||!P.length){return false}return P[0]}function lookup(k){if(!k||typeof k!=="string"){return false}var E=R("x."+k).toLowerCase().substr(1);if(!E){return false}return v.types[E]||false}function populateMaps(k,v){var E=["nginx","apache",undefined,"iana"];Object.keys(P).forEach((function forEachMimeType(R){var L=P[R];var N=L.extensions;if(!N||!N.length){return}k[R]=N;for(var q=0;q<N.length;q++){var ae=N[q];if(v[ae]){var le=E.indexOf(P[v[ae]].source);var pe=E.indexOf(L.source);if(v[ae]!=="application/octet-stream"&&(le>pe||le===pe&&v[ae].substr(0,12)==="application/")){continue}}v[ae]=R}}))}},94362:function(k,v,E){"use strict";var P;P={value:true};v.Z=void 0;const{stringHints:R,numberHints:L}=E(30892);const N={type:1,not:1,oneOf:1,anyOf:1,if:1,enum:1,const:1,instanceof:1,required:2,pattern:2,patternRequired:2,format:2,formatMinimum:2,formatMaximum:2,minimum:2,exclusiveMinimum:2,maximum:2,exclusiveMaximum:2,multipleOf:2,uniqueItems:2,contains:2,minLength:2,maxLength:2,minItems:2,maxItems:2,minProperties:2,maxProperties:2,dependencies:2,propertyNames:2,additionalItems:2,additionalProperties:2,absolutePath:2};function filterMax(k,v){const E=k.reduce(((k,E)=>Math.max(k,v(E))),0);return k.filter((k=>v(k)===E))}function filterChildren(k){let v=k;v=filterMax(v,(k=>k.dataPath?k.dataPath.length:0));v=filterMax(v,(k=>N[k.keyword]||2));return v}function findAllChildren(k,v){let E=k.length-1;const predicate=v=>k[E].schemaPath.indexOf(v)!==0;while(E>-1&&!v.every(predicate)){if(k[E].keyword==="anyOf"||k[E].keyword==="oneOf"){const v=extractRefs(k[E]);const P=findAllChildren(k.slice(0,E),v.concat(k[E].schemaPath));E=P-1}else{E-=1}}return E+1}function extractRefs(k){const{schema:v}=k;if(!Array.isArray(v)){return[]}return v.map((({$ref:k})=>k)).filter((k=>k))}function groupChildrenByFirstChild(k){const v=[];let E=k.length-1;while(E>0){const P=k[E];if(P.keyword==="anyOf"||P.keyword==="oneOf"){const R=extractRefs(P);const L=findAllChildren(k.slice(0,E),R.concat(P.schemaPath));if(L!==E){v.push(Object.assign({},P,{children:k.slice(L,E)}));E=L}else{v.push(P)}}else{v.push(P)}E-=1}if(E===0){v.push(k[E])}return v.reverse()}function indent(k,v){return k.replace(/\n(?!$)/g,`\n${v}`)}function hasNotInSchema(k){return!!k.not}function findFirstTypedSchema(k){if(hasNotInSchema(k)){return findFirstTypedSchema(k.not)}return k}function canApplyNot(k){const v=findFirstTypedSchema(k);return likeNumber(v)||likeInteger(v)||likeString(v)||likeNull(v)||likeBoolean(v)}function isObject(k){return typeof k==="object"&&k!==null}function likeNumber(k){return k.type==="number"||typeof k.minimum!=="undefined"||typeof k.exclusiveMinimum!=="undefined"||typeof k.maximum!=="undefined"||typeof k.exclusiveMaximum!=="undefined"||typeof k.multipleOf!=="undefined"}function likeInteger(k){return k.type==="integer"||typeof k.minimum!=="undefined"||typeof k.exclusiveMinimum!=="undefined"||typeof k.maximum!=="undefined"||typeof k.exclusiveMaximum!=="undefined"||typeof k.multipleOf!=="undefined"}function likeString(k){return k.type==="string"||typeof k.minLength!=="undefined"||typeof k.maxLength!=="undefined"||typeof k.pattern!=="undefined"||typeof k.format!=="undefined"||typeof k.formatMinimum!=="undefined"||typeof k.formatMaximum!=="undefined"}function likeBoolean(k){
|
||
|
/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation.
|
||
|
|
||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
purpose with or without fee is hereby granted.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
***************************************************************************** */
|
||
|
var v;var E;var P;var R;var L;var N;var q;var ae;var le;var pe;var me;var ye;var _e;var Ie;var Me;var Te;var je;var Ne;var Be;var qe;var Ue;var Ge;var He;(function(v){var E=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(k){v(createExporter(E,createExporter(k)))}))}else if(true&&typeof k.exports==="object"){v(createExporter(E,createExporter(k.exports)))}else{v(createExporter(E))}function createExporter(k,v){if(k!==E){if(typeof Object.create==="function"){Object.defineProperty(k,"__esModule",{value:true})}else{k.__esModule=true}}return function(E,P){return k[E]=v?v(E,P):P}}})((function(k){var We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,v){k.__proto__=v}||function(k,v){for(var E in v)if(v.hasOwnProperty(E))k[E]=v[E]};v=function(k,v){We(k,v);function __(){this.constructor=k}k.prototype=v===null?Object.create(v):(__.prototype=v.prototype,new __)};E=Object.assign||function(k){for(var v,E=1,P=arguments.length;E<P;E++){v=arguments[E];for(var R in v)if(Object.prototype.hasOwnProperty.call(v,R))k[R]=v[R]}return k};P=function(k,v){var E={};for(var P in k)if(Object.prototype.hasOwnProperty.call(k,P)&&v.indexOf(P)<0)E[P]=k[P];if(k!=null&&typeof Object.getOwnPropertySymbols==="function")for(var R=0,P=Object.getOwnPropertySymbols(k);R<P.length;R++){if(v.indexOf(P[R])<0&&Object.prototype.propertyIsEnumerable.call(k,P[R]))E[P[R]]=k[P[R]]}return E};R=function(k,v,E,P){var R=arguments.length,L=R<3?v:P===null?P=Object.getOwnPropertyDescriptor(v,E):P,N;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")L=Reflect.decorate(k,v,E,P);else for(var q=k.length-1;q>=0;q--)if(N=k[q])L=(R<3?N(L):R>3?N(v,E,L):N(v,E))||L;return R>3&&L&&Object.defineProperty(v,E,L),L};L=function(k,v){return function(E,P){v(E,P,k)}};N=function(k,v){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(k,v)};q=function(k,v,E,P){function adopt(k){return k instanceof E?k:new E((function(v){v(k)}))}return new(E||(E=Promise))((function(E,R){function fulfilled(k){try{step(P.next(k))}catch(k){R(k)}}function rejected(k){try{step(P["throw"](k))}catch(k){R(k)}}function step(k){k.done?E(k.value):adopt(k.value).then(fulfilled,rejected)}step((P=P.apply(k,v||[])).next())}))};ae=function(k,v){var E={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},P,R,L,N;return N={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(N[Symbol.iterator]=function(){return this}),N;function verb(k){return function(v){return step([k,v])}}function step(N){if(P)throw new TypeError("Generator is already executing.");while(E)try{if(P=1,R&&(L=N[0]&2?R["return"]:N[0]?R["throw"]||((L=R["return"])&&L.call(R),0):R.next)&&!(L=L.call(R,N[1])).done)return L;if(R=0,L)N=[N[0]&2,L.value];switch(N[0]){case 0:case 1:L=N;break;case 4:E.label++;return{value:N[1],done:false};case 5:E.label++;R=N[1];N=[0];continue;case 7:N=E.ops.pop();E.trys.pop();continue;default:if(!(L=E.trys,L=L.length>0&&L[L.length-1])&&(N[0]===6||N[0]===2)){E=0;continue}if(N[0]===3&&(!L||N[1]>L[0]&&N[1]<L[3])){E.label=N[1];break}if(N[0]===6&&E.label<L[1]){E.label=L[1];L=N;break}if(L&&E.label<L[2]){E.label=L[2];E.ops.push(N);break}if(L[2])E.ops.pop();E.trys.pop();continue}N=v.call(k,E)}catch(k){N=[6,k];R=0}finally{P=L=0}if(N[0]&5)throw N[1];return{value:N[0]?N[1]:void 0,done:true}}};He=function(k,v,E,P){if(P===undefined)P=E;k[P]=v[E]};le=function(k,v){for(var E in k)if(E!=="default"&&!v.hasOwnProperty(E))v[E]=k[E]};pe=function(k){var v=typeof Symbol==="function"&&Symbol.iterator,E=v&&k[v],P=0;if(E)return E.call(k);if(k&&typeof k.length==="number")return{next:function(){if(k&&P>=k.length)k=void 0;return{value:k&&k[P++],done:!k}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")};me=function(k,v){var E=typeof Symbol==="function"&&k[Symbol.iterator];if(!E)return k;var P=E.call(k),R,L=[],N;try{while((v===void 0||v-- >0)&&!(R=P.next()).done)L.push(R.value)}catch(k){N={error:k}}finally{t
|