diff --git a/404.html b/404.html index 38353a20..488cc351 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -
1){var b=h.slice(0,v.index),g=h.slice(v.index+v.length);y=b.join(":")+"::"+g.join(":")}else y=h.join(":");return o&&(y+="%"+o),y}var T=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N=void 0==="".match(/(){0}/)[1];function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?s:i;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(T);if(o){N?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=_(A(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=E[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)j(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=k.toASCII(r.host.replace(n.PCT_ENCODED,S).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}j(r,i)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var D=/^\.\.?\//,F=/^\/\.(\/|$)/,I=/^\/\.\.(\/|$)/,M=/^\/?(?:.|\n)*?(?=\/|$)/;function L(e){for(var t=[];e.length;)if(e.match(D))e=e.replace(D,"");else if(e.match(F))e=e.replace(F,"/");else if(e.match(I))e=e.replace(I,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(M);if(r){var n=r[0];e=e.slice(n.length),t.push(n)}else throw Error("Unexpected dot segment condition")}return t.join("")}function $(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.iri?s:i,a=[],l=E[(n.scheme||e.scheme||"").toLowerCase()];if(l&&l.serialize&&l.serialize(e,n),e.host){if(o.IPV6ADDRESS.test(e.host));else if(n.domainHost||l&&l.domainHost)try{e.host=n.iri?k.toUnicode(e.host):k.toASCII(e.host.replace(o.PCT_ENCODED,S).toLowerCase())}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(n.iri?"Unicode":"ASCII")+" via punycode: "+t}}j(e,o),"suffix"!==n.reference&&e.scheme&&(a.push(e.scheme),a.push(":"));var u=(t=!1!==n.iri?s:i,r=[],void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(_(A(String(e.host),t),t).replace(t.IPV6ADDRESS,function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})),("number"==typeof e.port||"string"==typeof e.port)&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0);if(void 0!==u&&("suffix"!==n.reference&&a.push("//"),a.push(u),e.path&&"/"!==e.path.charAt(0)&&a.push("/")),void 0!==e.path){var c=e.path;n.absolutePath||l&&l.absolutePath||(c=L(c)),void 0===u&&(c=c.replace(/^\/\//,"/%2F")),a.push(c)}return void 0!==e.query&&(a.push("?"),a.push(e.query)),void 0!==e.fragment&&(a.push("#"),a.push(e.fragment)),a.join("")}function V(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],o={};return n||(e=R($(e,r),r),t=R($(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=L(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=L(t.path||""),o.query=t.query):(t.path?("/"===t.path.charAt(0)?o.path=L(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=L(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function z(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:i.PCT_ENCODED,S)}var q={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return(e.port===(r?443:80)||""===e.port)&&(e.port=void 0),e.path||(e.path="/"),e}},B={scheme:"https",domainHost:q.domainHost,parse:q.parse,serialize:q.serialize};function U(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var Z={scheme:"ws",domainHost:!0,parse:function(e,t){return e.secure=U(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e,t){if((e.port===(U(e)?443:80)||""===e.port)&&(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=l(e.resourceName.split("?"),2),n=r[0],o=r[1];e.path=n&&"/"!==n?n:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},W={scheme:"wss",domainHost:Z.domainHost,parse:Z.parse,serialize:Z.serialize},H={},K="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Q="[0-9A-Fa-f]",Y=r(r("%[EFef]"+Q+"%"+Q+Q+"%"+Q+Q)+"|"+r("%[89A-Fa-f]"+Q+"%"+Q+Q)+"|"+r("%"+Q+Q)),G=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),J=RegExp(K,"g"),X=RegExp(Y,"g"),ee=RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',G),"g"),et=RegExp(t("[^]",K,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g");function er(e){var t=S(e);return t.match(J)?t:e}var en={scheme:"mailto",parse:function(e,t){var r=e.to=e.path?e.path.split(","):[];if(e.path=void 0,e.query){for(var n=!1,o={},a=e.query.split("&"),i=0,s=a.length;i 1){var b=h.slice(0,v.index),g=h.slice(v.index+v.length);y=b.join(":")+"::"+g.join(":")}else y=h.join(":");return o&&(y+="%"+o),y}var T=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N=void 0==="".match(/(){0}/)[1];function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?s:i;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(T);if(o){N?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=_(A(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=E[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)j(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=k.toASCII(r.host.replace(n.PCT_ENCODED,S).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}j(r,i)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var D=/^\.\.?\//,F=/^\/\.(\/|$)/,I=/^\/\.\.(\/|$)/,M=/^\/?(?:.|\n)*?(?=\/|$)/;function L(e){for(var t=[];e.length;)if(e.match(D))e=e.replace(D,"");else if(e.match(F))e=e.replace(F,"/");else if(e.match(I))e=e.replace(I,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(M);if(r){var n=r[0];e=e.slice(n.length),t.push(n)}else throw Error("Unexpected dot segment condition")}return t.join("")}function $(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.iri?s:i,a=[],l=E[(n.scheme||e.scheme||"").toLowerCase()];if(l&&l.serialize&&l.serialize(e,n),e.host){if(o.IPV6ADDRESS.test(e.host));else if(n.domainHost||l&&l.domainHost)try{e.host=n.iri?k.toUnicode(e.host):k.toASCII(e.host.replace(o.PCT_ENCODED,S).toLowerCase())}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(n.iri?"Unicode":"ASCII")+" via punycode: "+t}}j(e,o),"suffix"!==n.reference&&e.scheme&&(a.push(e.scheme),a.push(":"));var u=(t=!1!==n.iri?s:i,r=[],void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(_(A(String(e.host),t),t).replace(t.IPV6ADDRESS,function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})),("number"==typeof e.port||"string"==typeof e.port)&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0);if(void 0!==u&&("suffix"!==n.reference&&a.push("//"),a.push(u),e.path&&"/"!==e.path.charAt(0)&&a.push("/")),void 0!==e.path){var c=e.path;n.absolutePath||l&&l.absolutePath||(c=L(c)),void 0===u&&(c=c.replace(/^\/\//,"/%2F")),a.push(c)}return void 0!==e.query&&(a.push("?"),a.push(e.query)),void 0!==e.fragment&&(a.push("#"),a.push(e.fragment)),a.join("")}function V(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],o={};return n||(e=R($(e,r),r),t=R($(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=L(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=L(t.path||""),o.query=t.query):(t.path?("/"===t.path.charAt(0)?o.path=L(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=L(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function z(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:i.PCT_ENCODED,S)}var q={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return(e.port===(r?443:80)||""===e.port)&&(e.port=void 0),e.path||(e.path="/"),e}},B={scheme:"https",domainHost:q.domainHost,parse:q.parse,serialize:q.serialize};function U(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var Z={scheme:"ws",domainHost:!0,parse:function(e,t){return e.secure=U(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e,t){if((e.port===(U(e)?443:80)||""===e.port)&&(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=l(e.resourceName.split("?"),2),n=r[0],o=r[1];e.path=n&&"/"!==n?n:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},W={scheme:"wss",domainHost:Z.domainHost,parse:Z.parse,serialize:Z.serialize},H={},K="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Q="[0-9A-Fa-f]",Y=r(r("%[EFef]"+Q+"%"+Q+Q+"%"+Q+Q)+"|"+r("%[89A-Fa-f]"+Q+"%"+Q+Q)+"|"+r("%"+Q+Q)),G=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),J=RegExp(K,"g"),X=RegExp(Y,"g"),ee=RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',G),"g"),et=RegExp(t("[^]",K,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g");function er(e){var t=S(e);return t.match(J)?t:e}var en={scheme:"mailto",parse:function(e,t){var r=e.to=e.path?e.path.split(","):[];if(e.path=void 0,e.query){for(var n=!1,o={},a=e.query.split("&"),i=0,s=a.length;i Demo app for the React JSON Schema Form Builder, which allows a user to visually build a form and obtain the JSON Schema corresponding to it The Visual Form Builder tab corresponds to the actual Form Builder component. This reads in code from the JSON Schema, which is stored and updated live in the "Edit Schema" tab, and renders the code as manipulatable form elements. The result of the form is rendered with the material design theme in the Preview Form tab. The Pre-Configured Components tab also demonstrates how the form builder takes advantage of the definitions property of JSON Schema to render definitions. Demo app for the React JSON Schema Form Builder, which allows a user to visually build a form and obtain the JSON Schema corresponding to it The Visual Form Builder tab corresponds to the actual Form Builder component. This reads in code from the JSON Schema, which is stored and updated live in the "Edit Schema" tab, and renders the code as manipulatable form elements. The result of the form is rendered with the material design theme in the Preview Form tab. The Pre-Configured Components tab also demonstrates how the form builder takes advantage of the definitions property of JSON Schema to render definitions.e.length)&&(t=e.length);for(var r=0,n=Array(t);r
":""}(e)+function(){for(var e=[],t=0;t<2*P;t++)e.push(" ");return e.join("")}()}if(!s)for(var o=0;o
":"")+t.join("")}let l="",u=n.tokens.length-1;for(var o=0;o
":"")+t:l+=t;break;case":":l+=t+" ";break;case",":l+=t+x(e.depth);break;default:l+=t}}return s+=2,{tokens:n.tokens,noSpaces:a,indented:i,json:JSON.stringify(e),jsObject:e,markup:l,lines:s}}}}var p=f},70422:function(e,t){function r(e,t=null,r=null){var n=[];function o(e,t,r,a=0){let i;if(null!==r&&a=n)return!1;if(v(t)){for(var a=0,i=Object.keys(t),s=i.length;a1)&&(1===t?Object.keys(e)[0]:!!(0===t&&["string","number"].indexOf(O(e))>-1)&&e)}function l(e){return!1===(v(e)?e:!(["null","undefined"].indexOf(O(e))>-1||["",0,!1].indexOf(e)>-1)&&e)}function u(e){return -1===["array","object"].indexOf(O(e))?0:Object.keys(e).length}function c(e,t,r=null,n=0){if(y(e,t)||v(t)&&g(e,t)&&m(e,Object.keys(t))&&y(h(e,Object.keys(t)),t))return!0;if((null===r||ne.length)&&(t=e.length);for(var r=0,n=Array(t);rReact JSON Schema Form Builder
React JSON Schema Form Builder