s.charCodeAt(0)){for(n=0;n>=1}else{for(n=0,a=1;n
>=1}0==--d&&(d=Math.pow(2,p),p++),delete u[s]}else for(n=0,a=i[s];n
>=1;0==--d&&(d=Math.pow(2,p),p++),i[f]=y++,s=String(c)}if(""!==s){if(Object.prototype.hasOwnProperty.call(u,s)){if(256>s.charCodeAt(0)){for(n=0;n
>=1}else{for(n=0,a=1;n
>=1}0==--d&&(d=Math.pow(2,p),p++),delete u[s]}else for(n=0,a=i[s];n
>=1;0==--d&&(d=Math.pow(2,p),p++)}for(n=0,a=2;n
>=1;for(;;){if(v<<=1,g==t-1){m.push(r(v));break}g++}return m.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,r,n){var a,o,i,u,c,f,s,d=[],y=4,p=4,m=3,v="",g=[],_={val:n(0),position:r,index:1};for(a=0;a<3;a+=1)d[a]=a;for(i=0,c=4,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;switch(i){case 0:for(i=0,c=256,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;s=e(i);break;case 1:for(i=0,c=65536,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;s=e(i);break;case 2:return""}for(d[3]=s,o=s,g.push(s);;){if(_.index>t)return"";for(i=0,c=Math.pow(2,m),f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;switch(s=i){case 0:for(i=0,c=256,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;d[p++]=e(i),s=p-1,y--;break;case 1:for(i=0,c=65536,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;d[p++]=e(i),s=p-1,y--;break;case 2:return g.join("")}if(0==y&&(y=Math.pow(2,m),m++),d[s])v=d[s];else{if(s!==p)return null;v=o+o.charAt(0)}g.push(v),d[p++]=o+v.charAt(0),y--,o=v,0==y&&(y=Math.pow(2,m),m++)}}};return a}();void 0!==(n=(function(){return a}).call(t,r,t,e))&&(e.exports=n)},14419:function(e,t,r){let n=r(60697),a=r(69450),o=n.types;e.exports=class RandExp{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if("string"==typeof e)this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m");else throw Error("Expected a regexp or string");this.tokens=n(e)}_setDefaults(e){this.max=null!=e.max?e.max:null!=RandExp.prototype.max?RandExp.prototype.max:100,this.defaultRange=e.defaultRange?e.defaultRange:this.defaultRange.clone(),e.randInt&&(this.randInt=e.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,a,i,u;switch(e.type){case o.ROOT:case o.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),r=e.options?this._randSelect(e.options):e.stack,n="",i=0,u=r.length;i{var t,r,u=0,c={type:a.ROOT,stack:[]},f=c,s=c.stack,d=[],repeatErr=t=>{n.error(e,`Nothing to repeat at column ${t-1}`)},y=n.strToChars(e);for(t=y.length;u({type:n.POSITION,value:"b"}),t.nonWordBoundary=()=>({type:n.POSITION,value:"B"}),t.begin=()=>({type:n.POSITION,value:"^"}),t.end=()=>({type:n.POSITION,value:"$"})},94992:function(e,t,r){let n=r(30504),INTS=()=>[{type:n.RANGE,from:48,to:57}],WORDS=()=>[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(INTS()),WHITESPACE=()=>[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.RANGE,from:8192,to:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}],NOTANYCHAR=()=>[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}];t.words=()=>({type:n.SET,set:WORDS(),not:!1}),t.notWords=()=>({type:n.SET,set:WORDS(),not:!0}),t.ints=()=>({type:n.SET,set:INTS(),not:!1}),t.notInts=()=>({type:n.SET,set:INTS(),not:!0}),t.whitespace=()=>({type:n.SET,set:WHITESPACE(),not:!1}),t.notWhitespace=()=>({type:n.SET,set:WHITESPACE(),not:!0}),t.anyChar=()=>({type:n.SET,set:NOTANYCHAR(),not:!0})},30504:function(e){e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},86245:function(e,t,r){let n=r(30504),a=r(94992),o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,function(e,t,r,n,a,i,u,c){if(r)return e;var f=String.fromCharCode(t?8:n?parseInt(n,16):a?parseInt(a,16):i?parseInt(i,8):u?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(u):o[c]);return/[[\]{}^$.|?*+()]/.test(f)&&(f="\\"+f),f})},t.tokenizeClass=(e,r)=>{for(var o,i,u=[],c=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(o=c.exec(e));)if(o[1])u.push(a.words());else if(o[2])u.push(a.ints());else if(o[3])u.push(a.whitespace());else if(o[4])u.push(a.notWords());else if(o[5])u.push(a.notInts());else if(o[6])u.push(a.notWhitespace());else if(o[7])u.push({type:n.RANGE,from:(o[8]||o[9]).charCodeAt(0),to:o[10].charCodeAt(0)});else{if(!(i=o[12]))return[u,c.lastIndex];u.push({type:n.CHAR,value:i.charCodeAt(0)})}t.error(r,"Unterminated character class")},t.error=(e,t)=>{throw SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},37297:function(e,t,r){"use strict";var n,a,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommentFactory=void 0;var c=u(r(55423));(n=a||(t.CommentFactory=a={})).description=function(e,t){void 0===t&&(t=!1);var r,n,a,u,f,s,d,y,p,m=null===(d=e.declarations)||void 0===d?void 0:d[0];if(m){var v=o(c.default.versionMajorMinor.split(".").map(Number),2),g=v[0],_=v[1];if(g<5||5===g&&_<1){var b=[],x=c.default.displayPartsToString(e.getDocumentationComment(void 0));if(x.length&&(b.push(x),t&&e.getJsDocTags().length&&b.push("")),t)try{for(var S=i(e.getJsDocTags()),T=S.next();!T.done;T=S.next()){var E=T.value;b.push(E.text?"@".concat(E.name," ").concat(c.default.displayPartsToString(E.text)):"@".concat(E.name))}}catch(e){r={error:e}}finally{try{T&&!T.done&&(n=S.return)&&n.call(S)}finally{if(r)throw r.error}}return b.length?b.map(function(e){return e.split("\r\n").join("\n")}).join("\n"):void 0}var w=c.default.getJSDocCommentsAndTags(m);if(0!==w.length){var P=[];try{for(var j=i(w),I=j.next();!I.done;I=j.next()){var A=I.value;if(c.default.isJSDoc(A)){var F=c.default.getTextOfJSDocComment(A.comment);if((null==F?void 0:F.length)&&(P.push(F),t&&(null===(y=A.tags)||void 0===y?void 0:y.length)&&P.push("")),t)try{for(var M=(f=void 0,i(null!==(p=A.tags)&&void 0!==p?p:[])),O=M.next();!O.done;O=M.next()){var E=O.value;P.push(parseJSDocTag(E))}}catch(e){f={error:e}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(f)throw f.error}}}else t&&P.push(parseJSDocTag(A))}}catch(e){a={error:e}}finally{try{I&&!I.done&&(u=j.return)&&u.call(j)}finally{if(a)throw a.error}}var C=P.map(function(e){return e.split("\r\n").join("\n")}).join("\n");return C.length?C:void 0}}},n.merge=function(e){return e.map(function(e){return e.text}).map(function(e){return e.split("\r\n").join("\n")}).join("")};var parseJSDocTag=function(e){var t,r=null===(t=e.name)||void 0===t?void 0:t.getText(),n=c.default.getTextOfJSDocComment(e.comment);return["@".concat(e.tagName.text),r,n].filter(function(e){return!!(null==e?void 0:e.length)}).join(" ")}},73906:function(e,t,r){"use strict";var n,a,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionFactory=void 0;var u=i(r(55423)),c=r(46657);(n=a||(t.ExpressionFactory=a={})).number=function(e){return e<0?u.default.factory.createPrefixUnaryExpression(u.default.SyntaxKind.MinusToken,u.default.factory.createNumericLiteral(Math.abs(e))):u.default.factory.createNumericLiteral(e)},n.bigint=function(e){return u.default.factory.createCallExpression(u.default.factory.createIdentifier("BigInt"),void 0,[u.default.factory.createIdentifier(e.toString())])},n.isRequired=function(e){return u.default.factory.createStrictInequality(u.default.factory.createIdentifier("undefined"),e)},n.isArray=function(e){return u.default.factory.createCallExpression(u.default.factory.createIdentifier("Array.isArray"),void 0,[e])},n.isObject=function(e){return function(t){var r=[u.default.factory.createStrictEquality(u.default.factory.createStringLiteral("object"),u.default.factory.createTypeOfExpression(t))];return!0===e.checkNull&&r.push(u.default.factory.createStrictInequality(u.default.factory.createNull(),t)),!0===e.checkArray&&r.push(u.default.factory.createStrictEquality(u.default.factory.createFalse(),u.default.factory.createCallExpression(u.default.factory.createIdentifier("Array.isArray"),void 0,[t]))),1===r.length?r[0]:r.reduce(function(e,t){return u.default.factory.createLogicalAnd(e,t)})}},n.isInstanceOf=function(e){return function(t){return u.default.factory.createBinaryExpression(t,u.default.factory.createToken(u.default.SyntaxKind.InstanceOfKeyword),u.default.factory.createIdentifier(e))}},n.coalesce=function(e){return function(t){return u.default.factory.createBinaryExpression(e,u.default.factory.createToken(u.default.SyntaxKind.QuestionQuestionToken),t)}},n.currying=function(e){return function(t){if(0===t.length)return u.default.factory.createCallExpression(e,void 0,void 0);var r,n,a=u.default.factory.createCallExpression(e,void 0,[t[0]]);try{for(var i=o(t.slice(1)),c=i.next();!c.done;c=i.next()){var f=c.value;a=u.default.factory.createCallExpression(a,void 0,[f])}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}},n.selfCall=function(e){return u.default.isCallExpression(e)?e:u.default.factory.createCallExpression(u.default.factory.createParenthesizedExpression(u.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,e)),void 0,void 0)},n.getEscapedText=function(e){return function(t){return e.printNode(u.default.EmitHint.Expression,t,t.getSourceFile())}},n.transpile=function(e){return function(t){var r=u.default.createSourceFile("".concat(c.RandomGenerator.uuid(),".ts"),t,u.default.ScriptTarget.ESNext,!0,u.default.ScriptKind.TS).statements[0];if(void 0===r)throw ReferenceError("Error on ExpressionFactory.transpile(): no statement exists.");if(!u.default.isExpressionStatement(r))throw TypeError("Error on ExpressionFactory.transpile(): statement is not an expression statement.");return function(t){var visitor=function(r){return u.default.isIdentifier(r)&&"$input"===r.text?t:u.default.visitEachChild(u.default.factory.cloneNode(r),visitor,e)};return visitor(r.expression)}}}},61387:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierFactory=void 0;var i=o(r(55423)),u=r(5724),c=r(12301);(n=a||(t.IdentifierFactory=a={})).identifier=function(e){return u.Escaper.variable(e)?i.default.factory.createIdentifier(e):i.default.factory.createStringLiteral(e)},n.access=function(e){return function(t){var r=n.identifier(t);return i.default.isStringLiteral(r)?i.default.factory.createElementAccessExpression(e,r):i.default.factory.createPropertyAccessExpression(e,r)}},n.getName=function(e){var t,r=null===(t=e.escapedText)||void 0===t?void 0:t.toString();return"string"==typeof r?r:i.default.isPropertyAccessExpression(e)?"".concat(n.getName(e.expression),".").concat(e.name.escapedText.toString()):i.default.isElementAccessExpression(e)?"".concat(n.getName(e.expression),"[").concat(n.getName(e.argumentExpression),"]"):"uknown"},n.postfix=function(e){return u.Escaper.variable(e)?'".'.concat(e,'"'):'"['.concat(JSON.stringify(e).split('"').join('\\"'),']"')},n.parameter=function(e,t,r){return void 0!==i.default.getDecorators?i.default.factory.createParameterDeclaration(void 0,void 0,e,(null==r?void 0:r.kind)===i.default.SyntaxKind.QuestionToken?i.default.factory.createToken(i.default.SyntaxKind.QuestionToken):void 0,null!=t?t:c.TypeFactory.keyword("any"),r&&r.kind!==i.default.SyntaxKind.QuestionToken?r:void 0):i.default.factory.createParameterDeclaration(void 0,void 0,void 0,e,(null==r?void 0:r.kind)===i.default.SyntaxKind.QuestionToken?i.default.factory.createToken(i.default.SyntaxKind.QuestionToken):void 0,t,r&&r.kind!==i.default.SyntaxKind.QuestionToken?r:void 0)}},67711:function(e,t,r){"use strict";var n,a,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonMetadataFactory=void 0;var i=r(86752),u=r(63664),c=r(92595),f=r(43390);(n=a||(t.JsonMetadataFactory=a={})).analyze=function(e){return function(t,r){return function(a){var o=new c.MetadataCollection,i=f.MetadataFactory.analyze(t,r)({escape:!0,constant:!0,absorb:!0,validate:n.validate})(o)(a);if(!1===i.success)throw u.TransformerError.from(e)(i.errors);return[o,i.data]}}},n.validate=function(e){var t,r,n=[];(e.atomics.some(function(e){return"bigint"===e.type})||e.constants.some(function(e){return"bigint"===e.type}))&&n.push("JSON does not support bigint type."),(e.tuples.some(function(e){return e.type.elements.some(function(e){return!1===e.isRequired()})})||e.arrays.some(function(e){return!1===e.type.value.isRequired()}))&&n.push("JSON does not support undefined type in array."),e.maps.length&&n.push("JSON does not support Map type."),e.sets.length&&n.push("JSON does not support Set type.");try{for(var a=o(e.natives),u=a.next();!u.done;u=a.next()){var c=u.value;!1===i.AtomicPredicator.native(c)&&"Date"!==c&&n.push("JSON does not support ".concat(c," type."))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return n}},97846:function(e,t,r){"use strict";var n,a,o,i,u,c,f,s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralFactory=void 0;var y=d(r(55423)),p=r(73906),m=r(61387);(n=f||(t.LiteralFactory=f={})).generate=function(e){if(null===e)return y.default.factory.createNull();if(y.default.isIdentifier(e))return e;if(e instanceof Array)return o(e);if("object"==typeof e)return a(e);if("string"==typeof e)return c(e);if("boolean"==typeof e)return i(e);if("number"==typeof e)return i(e);else if("bigint"==typeof e)return u(e);else if("function"==typeof e)return y.default.factory.createIdentifier("undefined");else throw TypeError("Error on LiteralFactory.generate(): unknown type.")},a=function(e){return y.default.factory.createObjectLiteralExpression(Object.entries(e).filter(function(e){return void 0!==e[1]}).map(function(e){var t=s(e,2),r=t[0],a=t[1];return y.default.factory.createPropertyAssignment(m.IdentifierFactory.identifier(r),n.generate(a))}),!0)},o=function(e){return y.default.factory.createArrayLiteralExpression(e.map(n.generate),!0)},i=function(e){return y.default.factory.createIdentifier(e.toString())},u=function(e){return p.ExpressionFactory.bigint(e)},c=function(e){return y.default.factory.createStringLiteral(e)}},92595:function(e,t,r){"use strict";var n,a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataCollection=void 0;var u=r(49596),c=r(63860),f=r(58962),s=r(84530),d=r(61261),y=r(63224),p=r(37297),m=r(12301),v=function(){function MetadataCollection(e){this.options=e,this.objects_=new Map,this.object_unions_=new Map,this.aliases_=new Map,this.arrays_=new Map,this.tuples_=new Map,this.names_=new Map,this.object_index_=0,this.recursive_array_index_=0,this.recursive_tuple_index_=0}return MetadataCollection.prototype.aliases=function(){return o([],a(this.aliases_.values()),!1)},MetadataCollection.prototype.objects=function(){return o([],a(this.objects_.values()),!1)},MetadataCollection.prototype.unions=function(){return o([],a(this.object_unions_.values()),!1)},MetadataCollection.prototype.arrays=function(){return o([],a(this.arrays_.values()),!1)},MetadataCollection.prototype.tuples=function(){return o([],a(this.tuples_.values()),!1)},MetadataCollection.prototype.getName=function(e,t){var r,n,a=(n=m.TypeFactory.getFullName(e)(t),(null===(r=this.options)||void 0===r?void 0:r.replace)?this.options.replace(n):n),o=y.MapUtil.take(this.names_)(a,function(){return new Map}),i=o.get(t);if(void 0!==i)return i;var u=o.size?"".concat(a,".o").concat(o.size):a;return o.set(t,u),u},MetadataCollection.prototype.getUnionIndex=function(e){var t=e.objects.map(function(e){return e.name}).join(" | ");return y.MapUtil.take(this.object_unions_)(t,function(){return e.objects}),o([],a(this.object_unions_.keys()),!1).indexOf(t)},MetadataCollection.prototype.emplace=function(e,t){var r,n,a,o,i,u,c=this.objects_.get(t);if(void 0!==c)return[c,!1];var s=this.getName(e,t),d=f.MetadataObject.create({name:s,properties:[],description:null!==(n=null!==(r=t.aliasSymbol&&p.CommentFactory.description(t.aliasSymbol))&&void 0!==r?r:t.symbol&&p.CommentFactory.description(t.symbol))&&void 0!==n?n:void 0,jsDocTags:null!==(u=null!==(o=null===(a=t.aliasSymbol)||void 0===a?void 0:a.getJsDocTags())&&void 0!==o?o:null===(i=t.symbol)||void 0===i?void 0:i.getJsDocTags())&&void 0!==u?u:[],validated:!1,index:this.object_index_++,recursive:null,nullables:[]});return this.objects_.set(t,d),[d,!0]},MetadataCollection.prototype.emplaceAlias=function(e,t,r){var n,a,o=this.aliases_.get(t);if(void 0!==o)return[o,!1,function(){}];var i=this.getName(e,t),c=u.MetadataAlias.create({name:i,value:null,description:null!==(n=p.CommentFactory.description(r))&&void 0!==n?n:null,recursive:null,nullables:[],jsDocTags:null!==(a=r.getJsDocTags())&&void 0!==a?a:[]});return this.aliases_.set(t,c),[c,!0,function(e){return(0,d.Writable)(c).value=e}]},MetadataCollection.prototype.emplaceArray=function(e,t){var r=this.arrays_.get(t);if(void 0!==r)return[r,!1,function(){}];var n=this.getName(e,t),a=c.MetadataArrayType.create({name:n,value:null,index:null,recursive:null,nullables:[]});return this.arrays_.set(t,a),[a,!0,function(e){return(0,d.Writable)(a).value=e}]},MetadataCollection.prototype.emplaceTuple=function(e,t){var r=this.tuples_.get(t);if(void 0!==r)return[r,!1,function(){}];var n=this.getName(e,t),a=s.MetadataTupleType.create({name:n,elements:null,index:null,recursive:null,nullables:[]});return this.tuples_.set(t,a),[a,!0,function(e){return(0,d.Writable)(a).elements=e}]},MetadataCollection.prototype.setObjectRecursive=function(e,t){(0,d.Writable)(e).recursive=t},MetadataCollection.prototype.setAliasRecursive=function(e,t){(0,d.Writable)(e).recursive=t},MetadataCollection.prototype.setArrayRecursive=function(e,t){(0,d.Writable)(e).recursive=t,t&&((0,d.Writable)(e).index=this.recursive_array_index_++)},MetadataCollection.prototype.setTupleRecursive=function(e,t){(0,d.Writable)(e).recursive=t,t&&((0,d.Writable)(e).index=this.recursive_tuple_index_++)},MetadataCollection.prototype.toJSON=function(){return{objects:this.objects().map(function(e){return e.toJSON()}),aliases:this.aliases().map(function(e){return e.toJSON()}),arrays:o([],a(this.arrays_.values()),!1).map(function(e){return e.toJSON()}),tuples:o([],a(this.tuples_.values()),!1).map(function(e){return e.toJSON()})}},MetadataCollection}();t.MetadataCollection=v,(n=v||(t.MetadataCollection=v={})).replace=function(e){var t,r,n,o,u=e;try{for(var c=i(g),f=c.next();!f.done;f=c.next()){var s=a(f.value,1)[0];u=u.split(s).join("")}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}if(0!==u.length)return u;try{for(var d=i(g),y=d.next();!y.done;y=d.next()){var p=a(y.value,2),s=p[0],m=p[1];e=e.split(s).join(m)}}catch(e){n={error:e}}finally{try{y&&!y.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}return e},n.escape=function(e){var t,r;try{for(var n=i(g),o=n.next();!o.done;o=n.next()){var u=a(o.value,2),c=u[0],f=u[1];""!==f&&(e=e.split(f).join(c))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return e};var g=[["$","_dollar_"],["&","_and_"],["|","_or_"],["{","_blt_"],["}","_bgt_"],["<","_lt_"],[">","_gt_"],["[","_alt_"],["]","_agt_"],[",","_comma_"],["`","_backquote_"],["'","_singlequote_"],['"',"_doublequote_"],[" ","_space_"],["?","_question_"],[":","_colon_"],[";","_semicolon_"]]},7825:function(e,t,r){"use strict";var n,a,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a"),target:"array",kind:"minItems",value:parse_integer(e)(!0)(t),validate:"".concat(t," <= $input.length"),exclusive:!0},{name:"MaxItems<".concat(t,">"),target:"array",kind:"maxItems",value:parse_integer(e)(!0)(t),validate:"$input.length <= ".concat(t),exclusive:!0}]}}},minItems:function(e){return function(t){return{array:[{name:"MinItems<".concat(t,">"),target:"array",kind:"minItems",value:parse_integer(e)(!0)(t),validate:"".concat(t," <= $input.length"),exclusive:!0}]}}},maxItems:function(e){return function(t){return{array:[{name:"MaxItems<".concat(t,">"),target:"array",kind:"maxItems",value:parse_integer(e)(!0)(t),validate:"$input.length <= ".concat(t),exclusive:!0}]}}},type:function(){return function(e){return(e.startsWith("{")&&e.endsWith("}")&&(e=e.substring(1,e.length-1)),"int"===e?e="int32":"uint"===e&&(e="uint32"),!1===["int32","uint32","int64","uint64","float","double"].includes(e))?{}:{number:[{name:"Type<".concat(JSON.stringify(e),">"),target:"number",kind:"type",value:e,validate:"int32"===e?"Math.floor($input) === $input && -2147483648 <= $input && $input <= 2147483647":"uint32"===e?"Math.floor($input) === $input && 0 <= $input && $input <= 4294967295":"int64"===e?"Math.floor($input) === $input && -9223372036854775808 <= $input && $input <= 9223372036854775807":"uint64"===e?"Math.floor($input) === $input && 0 <= $input && $input <= 18446744073709551615":"float"===e?"-1.175494351e38 <= $input && $input <= 3.4028235e38":"true",exclusive:!0}],bigint:[{name:"Type<".concat(JSON.stringify(e),">"),target:"bigint",kind:"type",value:e,validate:"int64"===e?"true":"BigInt(0) <= $input",exclusive:!0}]}}},minimum:function(e){return function(t){var r;return{number:[{name:"Minimum<".concat(t,">"),target:"number",kind:"minimum",value:parse_number(e)(t),validate:"".concat(t," <= $input"),exclusive:["minimum","exclusiveMinimum"]}],bigint:[{name:"Minimum<".concat(t,"n>"),target:"bigint",kind:"minimum",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"".concat(t," <= $input"),exclusive:["minimum","exclusiveMinimum"]}]}}},maximum:function(e){return function(t){var r;return{number:[{name:"Maximum<".concat(t,">"),target:"number",kind:"maximum",value:parse_number(e)(t),validate:"$input <= ".concat(t),exclusive:["maximum","exclusiveMaximum"]}],bigint:[{name:"Maximum<".concat(t,"n>"),target:"bigint",kind:"maximum",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"$input <= ".concat(t),exclusive:["maximum","exclusiveMaximum"]}]}}},exclusiveMinimum:function(e){return function(t){var r;return{number:[{name:"ExclusiveMinimum<".concat(t,">"),target:"number",kind:"exclusiveMinimum",value:parse_number(e)(t),validate:"".concat(t," < $input"),exclusive:["minimum","exclusiveMinimum"]}],bigint:[{name:"ExclusiveMinimum<".concat(t,"n>"),target:"bigint",kind:"exclusiveMinimum",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"".concat(t," < $input"),exclusive:["minimum","exclusiveMinimum"]}]}}},exclusiveMaximum:function(e){return function(t){var r;return{number:[{name:"ExclusiveMaximum<".concat(t,">"),target:"number",kind:"exclusiveMaximum",value:parse_number(e)(t),validate:"$input < ".concat(t),exclusive:["maximum","exclusiveMaximum"]}],bigint:[{name:"ExclusiveMaximum<".concat(t,"n>"),target:"bigint",kind:"exclusiveMaximum",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"$input < ".concat(t),exclusive:["maximum","exclusiveMaximum"]}]}}},multipleOf:function(e){return function(t){var r;return{number:[{name:"MultipleOf<".concat(t,">"),target:"number",kind:"multipleOf",value:parse_number(e)(t),validate:"$input % ".concat(t," === 0"),exclusive:!0}],bigint:[{name:"MultipleOf<".concat(t,"n>"),target:"bigint",kind:"multipleOf",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"$input % ".concat(t,"n === 0n"),exclusive:!0}]}}},format:function(){return function(e){var t=y.get(e);return void 0===t?{}:{string:[{name:"Format<".concat(JSON.stringify(t[0]),">"),target:"string",kind:"format",value:t[0],validate:t[1],exclusive:!0}]}}},pattern:function(){return function(e){return{string:[{name:"Pattern<".concat(JSON.stringify(e),">"),target:"string",kind:"pattern",value:e,validate:"RegExp(/".concat(e,"/).test($input)"),exclusive:["format"]}]}}},length:function(e){return function(t){return{string:[{name:"MinLength<".concat(t,">"),target:"string",kind:"minLength",value:parse_number(e)(t),validate:"".concat(t," <= $input.length"),exclusive:!0},{name:"MaxLength<".concat(t,">"),target:"string",kind:"maxLength",value:parse_number(e)(t),validate:"$input.length <= ".concat(t),exclusive:!0}]}}},minLength:function(e){return function(t){return{string:[{name:"MinLength<".concat(t,">"),target:"string",kind:"minLength",value:parse_number(e)(t),validate:"".concat(t," <= $input.length"),exclusive:!0}]}}},maxLength:function(e){return function(t){return{string:[{name:"MaxLength<".concat(t,">"),target:"string",kind:"maxLength",value:parse_number(e)(t),validate:"$input.length <= ".concat(t),exclusive:!0}]}}}},parse_number=function(e){return function(t){var r=Number(t);return!0===isNaN(r)?e("invalid number"):r}},parse_integer=function(e){return function(t){return function(r){var n=parse_number(e)(r);return null===n?null:Math.floor(n)!==n?e("invalid integer"):!0===t&&n<0?e("invalid unsigned integer"):n}}},y=new Map(u(u([],i(Object.entries(f.FormatCheatSheet).map(function(e){var t=i(e,2),r=t[0];return[r,[r,t[1]]]})),!1),[["datetime",["date-time","!isNaN(new Date($input).getTime())"]],["dateTime",["date-time","!isNaN(new Date($input).getTime())"]]],!1))},43390:function(e,t,r){"use strict";var n,a,o,i,u,c,f,s,d=this&&this.__assign||function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},p=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataFactory=void 0;var g=v(r(55423)),_=r(3078),b=r(51665),x=r(71903),S=r(30628),T=r(56896),E=r(73906);(n=s||(t.MetadataFactory=s={})).analyze=function(e,t){return function(r){return function(n){return function(o){var i=[],u=(0,x.explore_metadata)(e)(r)(n)(i)(o,{top:!0,object:null,property:null,nested:null,escaped:!1,aliased:!1});return(0,S.iterate_metadata_collection)(i)(n),(0,T.iterate_metadata_sort)(n)(u),r.validate&&i.push.apply(i,p([],y(a(t)(r)(r.validate)(u)),!1)),i.length?{success:!1,errors:i}:{success:!0,data:u}}}}},n.soleLiteral=function(e){var t=_.Metadata.initialize();return t.constants.push(b.MetadataConstant.from({values:[e],type:"string"})),t},a=function(e){return function(t){return function(r){return function(n){var a={functor:r,errors:[],objects:new Set,arrays:new Set,tuples:new Set,aliases:new Set};return o(e)(t)(a)(n,{object:null,property:null,nested:null,top:!0,aliased:!1,escaped:!1}),a.errors}}}},o=function(e){return function(t){return function(r){return function(n,a){var s,v,_,b,x,S,T,w,P,j,I,A,F,M,O,C,N,R,L=[];if(void 0!==e)try{for(var U=m(n.atomics),q=U.next();!q.done;q=U.next()){var z=q.value;try{for(var B=(_=void 0,m(z.tags)),H=B.next();!H.done;H=B.next()){var V=H.value;try{for(var J=(x=void 0,m(V.filter(function(e){return void 0!==e.validate&&void 0===e.predicate}))),G=J.next();!G.done;G=J.next()){var Q=G.value;try{Q.predicate=E.ExpressionFactory.transpile(e)(Q.validate)}catch(e){L.push("Unable to transpile type tag script: ".concat(JSON.stringify(Q.validate))),Q.predicate=function(){return g.default.factory.createTrue()}}}}catch(e){x={error:e}}finally{try{G&&!G.done&&(S=J.return)&&S.call(J)}finally{if(x)throw x.error}}}}catch(e){_={error:e}}finally{try{H&&!H.done&&(b=B.return)&&b.call(B)}finally{if(_)throw _.error}}}}catch(e){s={error:e}}finally{try{q&&!q.done&&(v=U.return)&&v.call(U)}finally{if(s)throw s.error}}L.push.apply(L,p([],y(r.functor(n,a)),!1)),L.length&&r.errors.push({name:n.getName(),explore:d({},a),messages:p([],y(new Set(L)),!1)});try{for(var W=m(n.aliases),K=W.next();!K.done;K=W.next()){var Y=K.value;i(e)(t)(r)(Y,a)}}catch(e){T={error:e}}finally{try{K&&!K.done&&(w=W.return)&&w.call(W)}finally{if(T)throw T.error}}try{for(var Z=m(n.arrays),X=Z.next();!X.done;X=Z.next()){var ee=X.value;u(e)(t)(r)(ee.type,a)}}catch(e){P={error:e}}finally{try{X&&!X.done&&(j=Z.return)&&j.call(Z)}finally{if(P)throw P.error}}try{for(var et=m(n.tuples),er=et.next();!er.done;er=et.next()){var en=er.value;c(e)(t)(r)(en.type,a)}}catch(e){I={error:e}}finally{try{er&&!er.done&&(A=et.return)&&A.call(et)}finally{if(I)throw I.error}}try{for(var ea=m(n.objects),eo=ea.next();!eo.done;eo=ea.next()){var ei=eo.value;f(e)(t)(r)(ei)}}catch(e){F={error:e}}finally{try{eo&&!eo.done&&(M=ea.return)&&M.call(ea)}finally{if(F)throw F.error}}try{for(var eu=m(n.sets),ec=eu.next();!ec.done;ec=eu.next()){var el=ec.value;o(e)(t)(r)(el,a)}}catch(e){O={error:e}}finally{try{ec&&!ec.done&&(C=eu.return)&&C.call(eu)}finally{if(O)throw O.error}}try{for(var ef=m(n.maps),es=ef.next();!es.done;es=ef.next()){var ed=es.value;o(e)(t)(r)(ed.key,a),o(e)(t)(r)(ed.value,a)}}catch(e){N={error:e}}finally{try{es&&!es.done&&(R=ef.return)&&R.call(ef)}finally{if(N)throw N.error}}!0===t.escape&&null!==n.escaped&&o(e)(t)(r)(n.escaped.returns,d(d({},a),{escaped:!0}))}}}},i=function(e){return function(t){return function(r){return function(n,a){r.aliases.has(n)||(r.aliases.add(n),o(e)(t)(r)(n.value,d(d({},a),{nested:n,aliased:!0})))}}}},u=function(e){return function(t){return function(r){return function(n,a){r.arrays.has(n)||(r.arrays.add(n),o(e)(t)(r)(n.value,d(d({},a),{nested:n,top:!1})))}}}},c=function(e){return function(t){return function(r){return function(n,a){var i,u;if(!r.tuples.has(n)){r.tuples.add(n);try{for(var c=m(n.elements),f=c.next();!f.done;f=c.next()){var s=f.value;o(e)(t)(r)(s,d(d({},a),{nested:n,top:!1}))}}catch(e){i={error:e}}finally{try{f&&!f.done&&(u=c.return)&&u.call(c)}finally{if(i)throw i.error}}}}}}},f=function(e){return function(t){return function(r){return function(n){var a,i;if(!r.objects.has(n)){if(r.objects.add(n),t.validate){var u={object:n,top:!1,property:null,nested:null,escaped:!1,aliased:!1},c=t.validate(_.Metadata.create(d(d({},_.Metadata.initialize()),{objects:[n]})),u);c.length&&r.errors.push({name:n.name,explore:u,messages:p([],y(new Set(c)),!1)})}try{for(var f=m(n.properties),s=f.next();!s.done;s=f.next()){var v=s.value;o(e)(t)(r)(v.value,{object:n,property:v.key.isSoleLiteral()?v.key.getSoleLiteral():{},nested:null,top:!1,aliased:!1,escaped:!1})}}catch(e){a={error:e}}finally{try{s&&!s.done&&(i=f.return)&&i.call(f)}finally{if(a)throw a.error}}}}}}}},76331:function(e,t){"use strict";var r,n,a,o,i,u=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},f=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)?(e.push({name:f([t],c(o.map(function(e){return e.name})),!1).join(" & "),explore:i,messages:m}),[]):_}}},r.validate=function(e){return function(t){return function(r){var n,a,o=!0;try{for(var i=u(r),c=i.next();!c.done;c=i.next())c.value.target!==t&&o&&(o=e(null)("target must constains ".concat(t," type")))}catch(e){n={error:e}}finally{try{c&&!c.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}return r.forEach(function(t,n){if(!1!==t.exclusive){if(!0===t.exclusive){var a=r.some(function(e,r){return n!==r&&e.kind===t.kind});!0===a&&o&&(o=e(null)("kind '".concat(t.kind,"' can't be duplicated")))}else if(Array.isArray(t.exclusive)){var a=r.find(function(e,r){return n!==r&&e.kind===t.kind&&t.exclusive.includes(e.name)});void 0!==a&&(null!=o||(o=e(null)("kind '".concat(t.kind,"' can't be used with '").concat(a.name,"'"))))}}}),o}}},n=function(e){return function(t,r){var n;if("target"===t&&(1!==r.constants.length||r.constants[0].values.length!==r.size()||r.constants[0].values.some(function(e){return"boolean"!==e&&"bigint"!==e&&"number"!==e&&"string"!==e&&"array"!==e})))return e(t)("must be one of 'boolean', 'bigint', 'number', 'string', 'array'");if("kind"===t&&(1!==r.size()||1!==r.constants.length||"string"!==r.constants[0].type||1!==r.constants[0].values.length))return e(t)("must be a string literal type");if("value"===t&&(r.size()>1||0!==r.size()&&(1!==r.constants.length||1!==r.constants[0].values.length)))return e(t)("must be a constant literal type or undefined value");if("exclusive"===t)return null!==o(e)(t)(r);if("validate"===t){if(0===r.size()&&!1===r.isRequired()&&!1===r.nullable||1===r.size()&&1===r.constants.length&&"string"===r.constants[0].type&&1===r.constants[0].values.length==!0)return!0;var a=null===(n=r.objects[0])||void 0===n?void 0:n.properties.map(function(e){return e.key.getSoleLiteral()}).filter(function(e){return null!==e});if(void 0===a)return e("target")("must be one of 'boolean', 'bigint', 'number', 'string', 'array'");if(!1===(1===r.size()&&1===r.objects.length&&r.objects[0].properties.every(function(e){return 1===e.value.size()&&e.value.isRequired()&&!1===e.value.nullable&&1===e.value.constants.length&&"string"===e.value.constants[0].type&&1===e.value.constants[0].values.length&&a.includes(e.key.getSoleLiteral())})))return e(t)("must be a string literal type or Record type.")}return!0}},a=function(e){return function(t){var r,n,a,i,u,find=function(e){var r,n;return null===(n=null===(r=t.properties[0])||void 0===r?void 0:r.value.objects[0])||void 0===n?void 0:n.properties.find(function(t){return t.key.getSoleLiteral()===e})},c=find("target").value.constants[0].values,f=find("kind").value.constants[0].values[0],s=null===(i=null===(a=find("value"))||void 0===a?void 0:a.value.constants[0])||void 0===i?void 0:i.values[0],d=o(e)("exclusive")(null===(u=find("exclusive"))||void 0===u?void 0:u.value);if(null===d)return null;var y=(n=null===(r=find("validate"))||void 0===r?void 0:r.value)&&0!==n.size()?n.constants.length?Object.fromEntries(c.map(function(e){return[e,n.constants[0].values[0]]})):Object.fromEntries(n.objects[0].properties.map(function(e){return[e.key.getSoleLiteral(),e.value.constants[0].values[0]]})):{};return{name:t.name,target:c,kind:f,value:s,validate:y,exclusive:null!=d&&d}}},o=function(e){return function(t){return function(r){return void 0!==r&&(1===r.size()&&1===r.constants.length&&"boolean"===r.constants[0].type&&1===r.constants[0].values.length?r.constants[0].values[0]:1===r.size()&&1===r.tuples.length&&r.tuples[0].type.elements.every(function(e){return 1===e.size()&&1===e.constants.length&&"string"===e.constants[0].type&&1===e.constants[0].values.length})?r.tuples[0].type.elements.map(function(e){return e.constants[0].values[0]}):(e(t)("must a boolean literal type or a tuple of string literal types."),null))}}};var s=["target","kind","value"],d=f(f([],c(s),!1),["validate","exclusive"],!1)},84981:function(e,t,r){"use strict";var n,a,o,i,u,c,f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumericRangeFactory=void 0;var s=f(r(55423)),d=r(73906);(n=i||(t.NumericRangeFactory=i={})).number=function(e){return function(t){return u[e](t)}},n.bigint=function(e){return function(t){return c[e](t)}},(a=u||(u={})).int32=function(e){return s.default.factory.createLogicalAnd(integer(e),between("-2147483648","2147483647")(e))},a.uint32=function(e){return s.default.factory.createLogicalAnd(integer(e),between("0","4294967295")(e))},a.int64=function(e){return s.default.factory.createLogicalAnd(integer(e),between("-9223372036854775808","9223372036854775807")(e))},a.uint64=function(e){return s.default.factory.createLogicalAnd(integer(e),between("0","18446744073709551615")(e))},a.float=function(e){return between("-1.175494351e38","3.4028235e38")(e)},a.double=function(){return s.default.factory.createTrue()},(o=c||(c={})).int64=function(){return s.default.factory.createTrue()},o.uint64=function(e){return s.default.factory.createLessThanEquals(s.default.factory.createCallExpression(s.default.factory.createIdentifier("BigInt"),void 0,[d.ExpressionFactory.number(0)]),e)};var integer=function(e){return s.default.factory.createStrictEquality(s.default.factory.createCallExpression(s.default.factory.createIdentifier("Math.floor"),void 0,[e]),e)},between=function(e,t){return function(r){return s.default.factory.createLogicalAnd(s.default.factory.createLessThanEquals(s.default.factory.createIdentifier(e),r),s.default.factory.createLessThanEquals(r,s.default.factory.createIdentifier(t)))}}},74123:function(e,t,r){"use strict";var n,a,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a cannot be used in both number and bigint types. Recommend to remove from number type'))};try{for(var _=o(["int64","uint64"]),b=_.next();!b.done;b=_.next()){var x=b.value;_loop_1(x)}}catch(e){a={error:e}}finally{try{b&&!b.done&&(i=_.return)&&i.call(_)}finally{if(a)throw a.error}}}return e.arrays.length&&e.arrays.some(function(e){return!!e.type.value.arrays.length})&&noSupport("over two dimenstional array type"),e.arrays.length&&e.arrays.some(function(e){return!1===e.type.value.isRequired()||!0===e.type.value.nullable})&&noSupport("optional type in array"),e.arrays.length&&e.arrays.some(function(e){return e.type.value.size()>1})&&noSupport("union type in array"),e.arrays.length&&e.arrays.some(function(e){return e.type.value.maps.length||e.type.value.objects.length&&e.type.value.objects.some(function(e){return!1===c.ProtobufUtil.isStaticObject(e)})})&&noSupport("dynamic object in array"),e.size()>1&&e.arrays.length&&noSupport("union type with array type"),e.objects.length&&e.objects.some(function(e){return 0===e.properties.length})&&noSupport("empty object type"),e.objects.length&&e.objects.some(function(e){return e.properties.filter(function(e){return!e.key.isSoleLiteral()}).length>1})&&noSupport("object type with multiple dynamic key typed properties. Keep only one."),e.objects.length&&e.objects.some(function(e){return e.properties.some(function(e){return e.key.isSoleLiteral()})&&e.properties.some(function(e){return!e.key.isSoleLiteral()})})&&noSupport("object type with mixed static and dynamic key typed properties. Keep statics or dynamic only."),e.objects.length&&e.objects.some(function(e){return e.properties.some(function(e){return!0===e.key.isSoleLiteral()&&!1===s.Escaper.variable(e.key.getSoleLiteral())})})&&noSupport("object type with invalid static key name."),e.objects.length&&isDynamicObject(e.objects[0])&&e.objects[0].properties.some(function(e){return!!e.value.arrays.length})&&noSupport("dynamic object with array value type"),e.size()>1&&e.objects.length&&isDynamicObject(e.objects[0])&&noSupport("union type with dynamic object type"),e.objects.length&&e.objects.some(function(e){return isDynamicObject(e)&&e.properties.some(function(e){return c.ProtobufUtil.isUnion(e.value)})})&&noSupport("union type in dynamic property"),e.maps.length&&e.maps.some(function(e){return c.ProtobufUtil.isUnion(e.key)})&&noSupport("union key typed map"),e.maps.length&&e.maps.some(function(e){return 1!==c.ProtobufUtil.getAtomics(e.key).length})&&noSupport("non-atomic key typed map"),e.maps.length&&e.maps.some(function(e){return!1===e.key.isRequired()||e.key.nullable})&&noSupport("optional key typed map"),e.maps.length&&e.maps.some(function(e){return!!e.value.arrays.length})&&noSupport("map type with array value type"),e.size()>1&&e.maps.length&&noSupport("union type with map type"),e.maps.length&&e.maps.some(function(e){return c.ProtobufUtil.isUnion(e.value)})&&noSupport("union type in map value type"),u};var isDynamicObject=function(e){return!1===e.properties[0].key.isSoleLiteral()},y=new Map(u(u([["Date","string"],["Boolean","boolean"],["BigInt","bigint"],["Number","number"],["String","string"]],i(["Buffer","Uint8ClampedArray","Uint16Array","Uint32Array","BigUint64Array","Int8Array","Int16Array","Int32Array","BigInt64Array","Float32Array","Float64Array","DataView","ArrayBuffer","SharedArrayBuffer"].map(function(e){return[e,"Uint8Array"]})),!1),[["WeakSet","Array"],["WeakMap","Map"]],!1))},6152:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatementFactory=void 0;var i=o(r(55423));(n=a||(t.StatementFactory=a={})).mut=function(e,t){return i.default.factory.createVariableStatement(void 0,i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(e,void 0,void 0,t)],i.default.NodeFlags.Let))},n.constant=function(e,t){return i.default.factory.createVariableStatement(void 0,i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(e,void 0,void 0,t)],i.default.NodeFlags.Const))},n.entry=function(e){return function(t){return i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(i.default.factory.createArrayBindingPattern([i.default.factory.createBindingElement(void 0,void 0,i.default.factory.createIdentifier(e),void 0),i.default.factory.createBindingElement(void 0,void 0,i.default.factory.createIdentifier(t),void 0)]),void 0,void 0,void 0)],i.default.NodeFlags.Const)}},n.transpile=function(e){return i.default.factory.createExpressionStatement(i.default.factory.createIdentifier(i.default.transpile(e)))},n.block=function(e){return i.default.factory.createBlock([i.default.factory.createExpressionStatement(e)],!0)}},95374:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateFactory=void 0;var i=o(r(55423));(a||(t.TemplateFactory=a={})).generate=function(e){if(e.every(function(e){return i.default.isStringLiteral(e)}))return i.default.factory.createStringLiteral(e.map(function(e){return e.text}).join(""));var t={value:"",index:0};n(e)(t);for(var r=i.default.factory.createTemplateHead(t.value),a=[];;){var o=e[t.index++];n(e)(t);var u=t.index===e.length;if(a.push(i.default.factory.createTemplateSpan(o,u?i.default.factory.createTemplateTail(t.value):i.default.factory.createTemplateMiddle(t.value))),!0===u)break}return i.default.factory.createTemplateExpression(r,a)},n=function(e){return function(t){var r=e.findIndex(function(e,r){return r>=t.index&&!i.default.isStringLiteral(e)}),n=-1!==r?r:e.length;t.value=e.slice(t.index,n).map(function(e){return e.text}).reduce(function(e,t){return e+t},""),t.index=n}}},12301:function(e,t,r){"use strict";var n,a,o,i,u,c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFactory=void 0;var f=c(r(55423));(n=u||(t.TypeFactory=u={})).isFunction=function(e){return null!==a(e)},a=function(e){var t,r,n=null===(r=null===(t=e.symbol)||void 0===t?void 0:t.declarations)||void 0===r?void 0:r[0];return void 0===n?null:f.default.isFunctionLike(n)?n:(f.default.isPropertyAssignment(n)||f.default.isPropertyDeclaration(n))&&f.default.isFunctionLike(n.initializer)?n.initializer:null},n.getReturnType=function(e){return function(t){return function(r){var n=t.getProperty(r);if(!n||!n.valueDeclaration)return null;var a=e.getTypeOfSymbolAtLocation(n,n.valueDeclaration),o=e.getSignaturesOfType(a,f.default.SignatureKind.Call)[0];return o?o.getReturnType():null}}},n.getFullName=function(e){return function(t,r){if(null!=r||(r=null!==(a=t.aliasSymbol)&&void 0!==a?a:t.getSymbol()),void 0===r)return e.typeToString(t);if(void 0===t.aliasSymbol&&t.isUnionOrIntersection()){var a,o=t.isIntersection()?" & ":" | ";return t.types.map(function(t){return n.getFullName(e)(t)}).join(o)}var u=i(r),c=t.aliasSymbol?t.aliasTypeArguments||[]:e.getTypeArguments(t);return c.length?"Promise"===u?n.getFullName(e)(c[0]):"".concat(u,"<").concat(c.map(function(t){return n.getFullName(e)(t)}).join(", "),">"):u}},o=function(e){return function(t){return f.default.isModuleBlock(e)?o(e.parent.parent)("".concat(e.parent.name.getFullText().trim(),".").concat(t)):t}},i=function(e){var t,r,n=null===(r=null===(t=e.getDeclarations())||void 0===t?void 0:t[0])||void 0===r?void 0:r.parent;return n?o(n)(e.escapedName.toString()):"__type"},n.keyword=function(e){return f.default.factory.createKeywordTypeNode("void"===e?f.default.SyntaxKind.VoidKeyword:"any"===e?f.default.SyntaxKind.AnyKeyword:"unknown"===e?f.default.SyntaxKind.UnknownKeyword:"boolean"===e?f.default.SyntaxKind.BooleanKeyword:"number"===e?f.default.SyntaxKind.NumberKeyword:"bigint"===e?f.default.SyntaxKind.BigIntKeyword:f.default.SyntaxKind.StringKeyword)}},84411:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValueFactory=void 0;var i=o(r(55423));(n=a||(t.ValueFactory=a={})).NULL=function(){return i.default.factory.createNull()},n.UNDEFINED=function(){return i.default.factory.createIdentifier("undefined")},n.BOOLEAN=function(e){return e?i.default.factory.createTrue():i.default.factory.createFalse()},n.INPUT=function(e){return void 0===e&&(e="input"),i.default.factory.createIdentifier(e)},n.TYPEOF=function(e){return i.default.factory.createTypeOfExpression(e)}},19614:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataHelper=void 0;var n,a=r(3078),o=r(51665);(n||(t.MetadataHelper=n={})).literal_to_metadata=function(e){var t=a.Metadata.initialize();return t.constants.push(o.MetadataConstant.create({type:"string",values:[e]})),t}},30500:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.emend_metadata_atomics=void 0;var a=r(45041),o=r(73346);t.emend_metadata_atomics=function(e){var t,r,_loop_1=function(t){var r=e.constants.findIndex(function(e){return e.type===t.type});-1!==r&&e.constants.splice(r,1)};try{for(var i=n(e.atomics),u=i.next();!u.done;u=i.next()){var c=u.value;_loop_1(c)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}var f=e.constants.findIndex(function(e){return"boolean"===e.type});if(-1!==f&&2===e.constants[f].values.length){var s=e.constants.splice(f,1)[0];o.ArrayUtil.take(e.atomics,function(e){return"boolean"===e.type},function(){var e;return a.MetadataAtomic.create({type:"boolean",tags:null!==(e=s.tags)&&void 0!==e?e:[]})}),s.tags=void 0}e.templates.length&&void 0!==e.atomics.find(function(e){return"string"===e.type})&&e.templates.splice(0,e.templates.length)}},33389:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.emplace_metadata_alias=void 0;var o=r(73346),i=r(71903);t.emplace_metadata_alias=function(e){return function(t){return function(r){return function(u){return function(c,f,s){var d=a(r.emplaceAlias(e,c,c.aliasSymbol),3),y=d[0],p=d[1],m=d[2];return o.ArrayUtil.add(y.nullables,f),!1===p||m((0,i.explore_metadata)(e)(t)(r)(u)(c,n(n({},s),{escaped:!1,aliased:!0}))),y}}}}}},33455:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.emplace_metadata_array_type=void 0;var o=r(73346),i=r(71903);t.emplace_metadata_array_type=function(e){return function(t){return function(r){return function(u){return function(c,f,s){var d=a(r.emplaceArray(e,c),3),y=d[0],p=d[1],m=d[2];return o.ArrayUtil.add(y.nullables,f),!1===p||m((0,i.explore_metadata)(e)(t)(r)(u)(c.getNumberIndexType(),n(n({},s),{escaped:!1,aliased:!1}))),y}}}}}},18083:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.emplace_metadata_object=void 0;var i=o(r(55423)),u=r(56724),c=r(61261),f=r(73346),s=r(37297),d=r(19614),y=r(71903);r(78167),t.emplace_metadata_object=function(e){return function(t){return function(r){return function(o){return function(p,m){var v,g,_,b,x,S,T=n(r.emplace(e,p),2),E=T[0],w=T[1];if(f.ArrayUtil.add(E.nullables,m,function(e){return e===m}),!1===w)return E;var P=p.isClass()?function(e){var t,r,n=null===(r=null===(t=e.getChildren()[0])||void 0===t?void 0:t.getChildren()[0])||void 0===r?void 0:r.kind;return n!==i.default.SyntaxKind.PrivateKeyword&&n!==i.default.SyntaxKind.ProtectedKeyword&&(i.default.isParameter(e)||isProperty(e))}:function(e){return isProperty(e)},insert=function(e){return function(t){return function(r,n){var a,o,i=r&&null!==(a=s.CommentFactory.description(r))&&void 0!==a?a:null,c=(null!==(o=null==r?void 0:r.getJsDocTags())&&void 0!==o?o:[]).filter(null!=n?n:function(){return!0}),f=u.MetadataProperty.create({key:e,value:t,description:i,jsDocTags:c});return E.properties.push(f),f}}};try{for(var j=a(p.getApparentProperties()),I=j.next();!I.done;I=j.next()){var A=I.value;!function(a){if(void 0===(null!==(x=a.getJsDocTags(e))&&void 0!==x?x:[]).find(function(e){return"internal"===e.name})){var u,f,s,m=n((s=(f=null===(u=a.getDeclarations())||void 0===u?void 0:u[0])?e.getTypeOfSymbolAtLocation(a,f):e.getTypeOfPropertyOfType(p,a.name),[f,s]),2),v=m[0],g=m[1];if((!v||!1!==P(v))&&void 0!==g){var _=d.MetadataHelper.literal_to_metadata(a.name),b=(0,y.explore_metadata)(e)(t)(r)(o)(g,{top:!1,object:E,property:a.name,nested:null,escaped:!1,aliased:!1});(0,c.Writable)(b).optional=(a.flags&i.default.SymbolFlags.Optional)!=0,insert(_)(b)(a)}}}(A)}}catch(e){v={error:e}}finally{try{I&&!I.done&&(g=j.return)&&g.call(j)}finally{if(v)throw v.error}}try{for(var F=a(e.getIndexInfosOfType(p)),M=F.next();!M.done;M=F.next()){var O=M.value,analyzer=function(n){return function(a){return(0,y.explore_metadata)(e)(t)(r)(o)(n,{top:!1,object:E,property:a,nested:null,escaped:!1,aliased:!1})}},C=analyzer(O.keyType)(null),N=analyzer(O.type)({});C.atomics.length+C.constants.map(function(e){return e.values.length}).reduce(function(e,t){return e+t},0)+C.templates.length+C.natives.filter(function(e){return"Boolean"===e||"BigInt"===e||"Number"===e||"String"===e}).length!==C.size()&&o.push({name:C.getName(),explore:{top:!1,object:E,property:"[key]",nested:null,escaped:!1,aliased:!1},messages:[]}),insert(C)(N)((null===(S=O.declaration)||void 0===S?void 0:S.parent)?e.getSymbolAtLocation(O.declaration.parent):void 0,function(e){return"default"!==e.name})}}catch(e){_={error:e}}finally{try{M&&!M.done&&(b=F.return)&&b.call(F)}finally{if(_)throw _.error}}return E}}}}};var isProperty=function(e){return i.default.isPropertyDeclaration(e)||i.default.isPropertyAssignment(e)||i.default.isPropertySignature(e)||i.default.isTypeLiteralNode(e)}},70373:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.emplace_metadata_tuple=void 0;var i=o(r(55423)),u=r(3078),c=r(61261),f=r(73346),s=r(71903);t.emplace_metadata_tuple=function(e){return function(t){return function(r){return function(o){return function(d,y,p){var m,v,g,_=a(r.emplaceTuple(e,d),3),b=_[0],x=_[1],S=_[2];if(f.ArrayUtil.add(b.nullables,y),!1===x)return b;var T=null!==(g=null!==(m=d.elementFlags)&&void 0!==m?m:null===(v=d.target)||void 0===v?void 0:v.elementFlags)&&void 0!==g?g:[];return S(e.getTypeArguments(d).map(function(a,f){var d=(0,s.explore_metadata)(e)(t)(r)(o)(a,n(n({},p),{nested:b,aliased:!1,escaped:!1})),y=T[f];if(y===i.default.ElementFlags.Optional&&((0,c.Writable)(d).optional=!0),y!==i.default.ElementFlags.Rest)return d;var m=u.Metadata.initialize();return(0,c.Writable)(m).rest=d,m})),b}}}}}},71903:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.explore_metadata=void 0;var n=r(3078),a=r(30500),o=r(24149);t.explore_metadata=function(e){return function(t){return function(r){return function(i){return function(u,c){var f=n.Metadata.initialize(c.escaped);return null===u||((0,o.iterate_metadata)(e)(t)(r)(i)(f,u,c),(0,a.emend_metadata_atomics)(f),f.escaped&&((0,a.emend_metadata_atomics)(f.escaped.original),(0,a.emend_metadata_atomics)(f.escaped.returns))),f}}}}}},24149:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_collection=void 0;var a=r(18521);t.iterate_metadata_collection=function(e){return function(t){try{for(var r,o,i,u,c,f,s=n(t.arrays()),d=s.next();!d.done;d=s.next()){var y=d.value;null===y.recursive&&t.setArrayRecursive(y,isArrayRecursive(new Set)(y)(y.value))}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}try{for(var p=n(t.tuples()),m=p.next();!m.done;m=p.next()){var v=m.value;if(null===v.recursive){var g=new Set;t.setTupleRecursive(v,v.elements.some(isTupleRecursive(g)(v)))}}}catch(e){i={error:e}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(i)throw i.error}}var _loop_1=function(r){if((0,a.iterate_metadata_comment_tags)(e)(r),null===r.recursive){var n=new Set;t.setObjectRecursive(r,r.properties.some(function(e){return isObjectRecursive(n)(r)(e.value)}))}};try{for(var _=n(t.objects()),b=_.next();!b.done;b=_.next()){var x=b.value;_loop_1(x)}}catch(e){c={error:e}}finally{try{b&&!b.done&&(f=_.return)&&f.call(_)}finally{if(c)throw c.error}}}};var isArrayRecursive=function(e){return function(t){return function(r){return!e.has(r)&&(e.add(r),r.arrays.some(function(r){return r.type===t||isArrayRecursive(e)(t)(r.type.value)})||r.aliases.some(function(r){return isArrayRecursive(e)(t)(r.value)})||r.tuples.some(function(r){return!r.type.recursive&&r.type.elements.some(function(r){return isArrayRecursive(e)(t)(r)})})||r.maps.some(function(r){return isArrayRecursive(e)(t)(r.value)})||r.sets.some(function(r){return isArrayRecursive(e)(t)(r)})||null!==r.escaped&&isArrayRecursive(e)(t)(r.escaped.returns)||null!==r.rest&&isArrayRecursive(e)(t)(r.rest))}}},isTupleRecursive=function(e){return function(t){return function(r){return!e.has(r)&&(e.add(r),r.tuples.some(function(r){return r.type===t||r.type.elements.some(function(r){return isTupleRecursive(e)(t)(r)})})||r.arrays.some(function(r){return!r.type.recursive&&isTupleRecursive(e)(t)(r.type.value)})||r.maps.some(function(r){return isTupleRecursive(e)(t)(r.value)})||r.sets.some(function(r){return isTupleRecursive(e)(t)(r)})||r.aliases.some(function(r){return isTupleRecursive(e)(t)(r.value)})||null!==r.escaped&&isTupleRecursive(e)(t)(r.escaped.returns)||null!==r.rest&&isTupleRecursive(e)(t)(r.rest))}}},isObjectRecursive=function(e){return function(t){return function(r){return!e.has(r)&&(e.add(r),r.objects.some(function(r){return t===r||r.properties.some(function(r){return isObjectRecursive(e)(t)(r.value)})})||r.aliases.some(function(r){return isObjectRecursive(e)(t)(r.value)})||r.arrays.some(function(r){return!r.type.recursive&&isObjectRecursive(e)(t)(r.type.value)})||r.tuples.some(function(r){return!r.type.recursive&&r.type.elements.some(function(r){return isObjectRecursive(e)(t)(r)})})||r.maps.some(function(r){return isObjectRecursive(e)(t)(r.value)})||r.sets.some(function(r){return isObjectRecursive(e)(t)(r)})||null!==r.escaped&&isObjectRecursive(e)(t)(r.escaped.returns)||null!==r.rest&&isObjectRecursive(e)(t)(r.rest))}}}},18521:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_comment_tags=void 0;var a=r(7825);t.iterate_metadata_comment_tags=function(e){return function(t){var r,o;if(!0!==t.tagged_){t.tagged_=!0;try{for(var i=n(t.properties),u=i.next();!u.done;u=i.next()){var c=u.value;a.MetadataCommentTagFactory.analyze(e)(c.value)(c.jsDocTags,{top:!1,object:t,property:c.key.isSoleLiteral()?c.key.getSoleLiteral():{},nested:null,escaped:!1,aliased:!1})}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}}}}},95032:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_constant=void 0;var a=n(r(55423)),o=r(51665),i=r(73346);t.iterate_metadata_constant=function(e){return function(t){return function(r,n){if(!t.constant)return!1;if(n.isLiteral()){var u,c="object"==typeof n.value?BigInt("".concat(n.value.negative?"-":"").concat(n.value.base10Value)):n.value,f=i.ArrayUtil.take(r.constants,function(e){return e.type===typeof c},function(){return o.MetadataConstant.create({type:typeof c,values:[]})});return i.ArrayUtil.add(f.values,c,function(e,t){return e===t}),!0}if(u=a.default.TypeFlags.BooleanLiteral,(n.getFlags()&u)!=0){var s="true"===e.typeToString(n),f=i.ArrayUtil.take(r.constants,function(e){return"boolean"===e.type},function(){return o.MetadataConstant.create({type:"boolean",values:[]})});return i.ArrayUtil.add(f.values,s,function(e,t){return e===t}),!0}return!1}}}},84991:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_intersection=void 0;var c=u(r(55423)),f=r(45041),s=r(51665),d=r(73346),y=r(92595),p=r(76331),m=r(71903),v=r(24149),g=r(22481);t.iterate_metadata_intersection=function(e){return function(t){return function(r){return function(u){return function(_,b,x){if(!b.isIntersection()||b.types.every(function(t){return(t.getFlags()&c.default.TypeFlags.Object)!=0&&!e.isArrayType(t)&&!e.isTupleType(t)}))return!1;var S,T,E,w,P,j,I,A,F,M,O=new y.MetadataCollection,C=[],N=o([],a(new Map(b.types.map(function(r){var a=(0,m.explore_metadata)(e)(n(n({},t),{absorb:!0}))(O)(C)(r,n(n({},x),{aliased:!1}));return[a.getName(),a]})).values()),!1);if(C.length)return u.push.apply(u,o([],a(C),!1)),!0;if(1===N.length)return(0,v.iterate_metadata)(e)(t)(r)(u)(_,b.types[0],x),!0;if(N.every(function(e){return e.objects.length===e.size()}))return!1;var R=void 0===(E=null===(T=null===(S=N.find(function(e){return 1===e.size()&&1===e.constants.length&&"boolean"===e.constants[0].type}))||void 0===S?void 0:S.constants[0])||void 0===T?void 0:T.values[0])?null:N.every(function(e){return 0===e.atomics.length||e.atomics.every(function(e){return"boolean"!==e.type})})?E:null;if(null!==R&&!0===_.boolean_literal_intersected_)return _.constants.find(function(e){return"boolean"===e.type}).values.push(R),!0;var L=N.map(function(e,t){return[e,t]}).filter(function(e){var t=a(e,1)[0];return 1===t.size()&&(1===t.atomics.length||1===t.constants.length&&"boolean"===t.constants[0].type||1===t.arrays.length)}),U=N.filter(function(e){return e.size()===e.constants.map(function(e){return e.values.length}).reduce(function(e,t){return e+t},0)+e.templates.length&&!(1===e.size()&&"boolean"===e.constants[0].type)}),q=N.filter(function(e){return!1===e.nullable&&!0===e.isRequired()&&e.objects.length&&e.objects.length===e.size()&&e.objects.every(function(e){return e.properties.every(function(e){return e.value.optional})})}),z=new Set(L.map(function(e){var t=a(e,1)[0];return o(o([],a(t.atomics.map(function(e){return e.type})),!1),a(t.constants.filter(function(e){return"boolean"===e.type}).map(function(e){return e.type})),!1)}).flat()),B=new Set(L.map(function(e){return a(e,1)[0].arrays.map(function(e){return e.type.name})}).flat());if(z.size+B.size>1||L.length+q.length+U.length!==N.length)return u.push({name:N.map(function(e){return e.getName()}).join(" & "),explore:n({},x),messages:["nonsensible intersection"]}),!0;if(0===z.size&&0===B.size&&U.length){try{for(var H=i(U),V=H.next();!V.done;V=H.next()){var J=V.value;try{for(var G=(j=void 0,i(J.templates)),Q=G.next();!Q.done;Q=G.next()){var W=Q.value;d.ArrayUtil.add(_.templates,W,function(e,t){return e.map(function(e){return e.getName()}).join(" | ")===t.map(function(e){return e.getName()}).join(" | ")})}}catch(e){j={error:e}}finally{try{Q&&!Q.done&&(I=G.return)&&I.call(G)}finally{if(j)throw j.error}}var _loop_1=function(e){var t,r,n=_.constants.find(function(t){return t.type===e.type});if(n)try{for(var a=(t=void 0,i(e.values)),o=a.next();!o.done;o=a.next()){var u=o.value;d.ArrayUtil.add(n.values,u,function(e,t){return e===t})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else _.constants.push(s.MetadataConstant.create(e))};try{for(var K=(A=void 0,i(J.constants)),Y=K.next();!Y.done;Y=K.next()){var Z=Y.value;_loop_1(Z)}}catch(e){A={error:e}}finally{try{Y&&!Y.done&&(F=K.return)&&F.call(K)}finally{if(A)throw A.error}}}}catch(e){w={error:e}}finally{try{V&&!V.done&&(P=H.return)&&P.call(H)}finally{if(w)throw w.error}}return!0}var X=R?"boolean":z.size?z.values().next().value:"array";if("boolean"===X||"bigint"===X||"number"===X||"string"===X)null===R?d.ArrayUtil.add(_.atomics,f.MetadataAtomic.create({type:z.values().next().value,tags:[]}),function(e,t){return e.type===t.type}):d.ArrayUtil.take(_.constants,function(e){return"boolean"===e.type},function(){return s.MetadataConstant.create({type:"boolean",values:[R]})});else if("array"===X){var ee=B.values().next().value;_.arrays.some(function(e){return e.type.name===ee})||(0,g.iterate_metadata_array)(e)(t)(r)(u)(_,b.types[L.find(function(e){return 1===e[0].arrays.length})[1]],n(n({},x),{aliased:!1,escaped:!1}))}if(q.length){var et=p.MetadataTypeTagFactory.analyze(u)(X)(q.map(function(e){return e.objects}).flat(),x);if(et.length){if("array"===X)_.arrays.at(-1).tags.push(et);else if(null===R)_.atomics.find(function(e){return e.type===X}).tags.push(et);else{var er=_.constants.find(function(e){return"boolean"===e.type});null!==(M=er.tags)&&void 0!==M||(er.tags=[]),er.tags.push(et)}}}return null!==R&&(_.boolean_literal_intersected_=!0),!0}}}}}},57540:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")}),!0}}}}}},54053:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_sort=void 0;var a=r(3078),o=r(58962);t.iterate_metadata_sort=function(e){return function(t){var r,a,o,i,u,c,f,s,d,y,p=new Set;try{for(var m=n(e.arrays()),v=m.next();!v.done;v=m.next()){var g=v.value;iterate(p)(e)(g.value)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}try{for(var _=n(e.tuples()),b=_.next();!b.done;b=_.next()){var x=b.value;try{for(var S=(u=void 0,n(x.elements)),T=S.next();!T.done;T=S.next()){var E=T.value;iterate(p)(e)(E)}}catch(e){u={error:e}}finally{try{T&&!T.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(i=_.return)&&i.call(_)}finally{if(o)throw o.error}}try{for(var w=n(e.objects()),P=w.next();!P.done;P=w.next()){var j=P.value;try{for(var I=(d=void 0,n(j.properties)),A=I.next();!A.done;A=I.next()){var F=A.value;iterate(p)(e)(F.value)}}catch(e){d={error:e}}finally{try{A&&!A.done&&(y=I.return)&&y.call(I)}finally{if(d)throw d.error}}}}catch(e){f={error:e}}finally{try{P&&!P.done&&(s=w.return)&&s.call(w)}finally{if(f)throw f.error}}iterate(p)(e)(t)}};var iterate=function(e){return function(t){return function(r){var i,u,c,f;if(!e.has(r)){e.add(r);try{for(var s=n(r.maps),d=s.next();!d.done;d=s.next()){var y=d.value;iterate(e)(t)(y.value)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(u=s.return)&&u.call(s)}finally{if(i)throw i.error}}try{for(var p=n(r.sets),m=p.next();!m.done;m=p.next()){var v=m.value;iterate(e)(t)(v)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(f=p.return)&&f.call(p)}finally{if(c)throw c.error}}null!==r.escaped&&iterate(e)(t)(r.escaped.returns),null!==r.rest&&iterate(e)(t)(r.rest),r.objects.length>1&&(r.objects.sort(function(e,t){return o.MetadataObject.covers(e,t)?-1:o.MetadataObject.covers(t,e)?1:0}),r.union_index=t.getUnionIndex(r)),r.arrays.length>1&&r.arrays.sort(function(e,t){return a.Metadata.covers(e.type.value,t.type.value)?-1:a.Metadata.covers(t.type.value,e.type.value)?1:0}),r.tuples.length>1&&r.tuples.sort(function(e,t){var r=a.Metadata.initialize(),n=a.Metadata.initialize();return r.tuples.push(e),n.tuples.push(t),a.Metadata.covers(r,n)?-1:a.Metadata.covers(n,r)?1:0})}}}}},92861:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},f=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},S=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")}).join(" | "));ea(a.sets.some(function(e){return e.any})?null:f(e)(t)(r)(n,a.sets,_(_({},i),{from:"array"})))}if(a.maps.length){var ea=prepare((0,H.check_native)("Map")(n),a.maps.map(function(e){var t=e.key,r=e.value;return"Map<".concat(t,", ").concat(r,">")}).join(" | "));ea(a.maps.some(function(e){return e.key.any&&e.value.any})?null:s(e)(t)(r)(n,a.maps,_(_({},i),{from:"array"})))}if(a.tuples.length+a.arrays.length>0){var ea=prepare(t.atomist(i)({expected:S(S([],x(a.tuples.map(function(e){return e.type.name})),!1),x(a.arrays.map(function(e){return e.getName()})),!1).join(" | "),expression:w.ExpressionFactory.isArray(n),conditions:[]})(n),S(S([],x(a.tuples),!1),x(a.arrays),!1).map(function(e){return e.type.name}).join(" | "));ea(0===a.arrays.length?1===a.tuples.length?u(e)(t)(r)(n,a.tuples[0],_(_({},i),{from:"array"})):d(e)(t)(r)(n,a.tuples,_(_({},i),{from:"array"})):a.arrays.some(function(e){return e.type.value.any})?null:0===a.tuples.length?1===a.arrays.length?o(e)(t)(r)(n,a.arrays[0],_(_({},i),{from:"array"})):y(e)(t)(r)(n,a.arrays,_(_({},i),{from:"array"})):p(e)(t)(r)(n,S(S([],x(a.tuples),!1),x(a.arrays),!1),i))}if(a.objects.length>0&&prepare(w.ExpressionFactory.isObject({checkNull:!0,checkArray:a.objects.some(function(e){return e.properties.every(function(e){return!e.key.isSoleLiteral()||!e.value.isRequired()})})})(n),a.objects.map(function(e){return e.name}).join(" | "))(v(t)(r)(n,a,_(_({},i),{from:"object"}))),en.length){var transformer=function(e){return function(t){return t.body?{expression:e(t.pre,t.body),combined:!0}:{expression:t.pre,combined:!1}}};1===en.length?O.push(transformer(function(e,r){return t.combiner(i)("and")(n,[e,r].map(function(t){return{expression:t,combined:t!==e}}),a.getName())})(en[0])):O.push({expression:t.combiner(i)("or")(n,en.map(transformer(E.default.factory.createLogicalAnd)),a.getName()),combined:!0})}return F.length&&O.length?t.combiner(i)("and")(n,S(S([],x(F),!1),[{expression:t.combiner(i)("or")(n,O,a.getName()),combined:!0}],!1),a.getName()):O.length?t.combiner(i)("or")(n,O,a.getName()):t.success}}}},n.decode_object=function(e){return function(t){var r=R.FeatureProgrammer.decode_object(e)(t);return function(e,t,n){return t.validated=!0,r(e,t,n)}}},o=function(e){return function(t){return function(r){return function(n,a,o){return!1===a.type.recursive?i(e)(t)(r)(n,a,o):(o=_(_({},o),{source:"function",from:"array"}),E.default.factory.createLogicalOr(E.default.factory.createCallExpression(E.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"a").concat(a.type.index))),void 0,R.FeatureProgrammer.argumentsArray(t)(_(_({},o),{source:"function",from:"array"}))(n)),t.joiner.failure(n,a.type.name,o)))}}}},i=function(e){return function(t){return function(r){return function(a,o,i){var u=(0,z.check_array_length)(e)(o)(a),c=R.FeatureProgrammer.decode_array({prefix:t.prefix,trace:t.trace,path:t.path,decoder:function(){return n.decode(e)(t)(r)}})(r)(t.joiner.array)(a,o,i);return null===u.expression&&0===u.conditions.length?c:E.default.factory.createLogicalAnd(t.atomist(i)(u)(a),c)}}}},u=function(e){return function(t){return function(r){return function(n,a,o){return!1===a.type.recursive?c(e)(t)(r)(n,a.type,o):(o=_(_({},o),{source:"function",from:"array"}),E.default.factory.createLogicalOr(E.default.factory.createCallExpression(E.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,R.FeatureProgrammer.argumentsArray(t)(_(_({},o),{source:"function"}))(n)),t.joiner.failure(n,a.type.name,o)))}}}},c=function(e){return function(t){return function(r){return function(a,o,i){var u=o.elements.filter(function(e){return null===e.rest}).map(function(o,u){return n.decode(e)(t)(r)(E.default.factory.createElementAccessExpression(a,u),o,_(_({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(u,']"'):'"['.concat(u,']"')}))}),c=o.elements.length&&null!==o.elements.at(-1).rest?n.decode(e)(t)(r)(E.default.factory.createCallExpression(P.IdentifierFactory.access(a)("slice"),void 0,[w.ExpressionFactory.number(o.elements.length-1)]),(0,W.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),_(_({},i),{start:o.elements.length-1})):null,f=E.default.factory.createPropertyAccessExpression(a,"length");return t.combiner(i)("and")(a,S(S(S([],x(null===c?o.elements.every(function(e){return!1===e.optional})?[{combined:!1,expression:E.default.factory.createStrictEquality(f,w.ExpressionFactory.number(o.elements.length))}]:[{combined:!1,expression:E.default.factory.createLogicalAnd(E.default.factory.createLessThanEquals(w.ExpressionFactory.number(o.elements.filter(function(e){return!1===e.optional}).length),f),E.default.factory.createGreaterThanEquals(w.ExpressionFactory.number(o.elements.length),f))}]:[]),!1),x(t.joiner.tuple?[{expression:t.joiner.tuple(u),combined:!0}]:u.map(function(e){return{expression:e,combined:!0}})),!1),x(null!==c?[{expression:c,combined:!0}]:[]),!1),"[".concat(o.elements.map(function(e){return e.getName()}).join(", "),"]"))}}}},f=function(e){return function(t){return function(r){return function(a,i,u){return E.default.factory.createCallExpression(q.UnionExplorer.set({checker:n.decode(e)(t)(r),decoder:o(e)(t)(r),empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}})([])(a,i,u),void 0,void 0)}}}},s=function(e){return function(t){return function(r){return function(a,i,u){return E.default.factory.createCallExpression(q.UnionExplorer.map({checker:function(a,o,i){var u=n.decode(e)(t)(r);return E.default.factory.createLogicalAnd(u(E.default.factory.createElementAccessExpression(a,0),o[0],_(_({},i),{postfix:"".concat(i.postfix,"[0]")})),u(E.default.factory.createElementAccessExpression(a,1),o[1],_(_({},i),{postfix:"".concat(i.postfix,"[1]")})))},decoder:o(e)(t)(r),empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}})([])(a,i,u),void 0,void 0)}}}},d=function(e){return function(t){return function(r){return function(n,a,o){return m(t)(r)(q.UnionExplorer.tuple({checker:u(e)(t)(r),decoder:u(e)(t)(r),empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}}))(n,a,o)}}}},y=function(e){return function(t){return function(r){return function(a,i,u){return m(t)(r)(q.UnionExplorer.array({checker:n.decode(e)(t)(r),decoder:o(e)(t)(r),empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}}))(a,i,u)}}}},p=function(e){return function(t){return function(r){return function(a,i,c){return m(t)(r)(q.UnionExplorer.array_or_tuple({checker:function(a,o,c,f){return o instanceof C.MetadataTuple?u(e)(t)(r)(a,o,c):t.atomist(c)({expected:i.map(function(e){return e instanceof O.MetadataArray?e.getName():e.type.name}).join(" | "),expression:n.decode(e)(t)(r)(a,o,c),conditions:[]})(f)},decoder:function(n,a,i){return a instanceof C.MetadataTuple?u(e)(t)(r)(n,a,i):o(e)(t)(r)(n,a,i)},empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}}))(a,i,c)}}}},m=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&E.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=_(_({},o),{source:"function",from:"array"}),E.default.factory.createLogicalOr(E.default.factory.createCallExpression(E.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(R.FeatureProgrammer.parameterDeclarations(e)(F.TypeFactory.keyword("any"))(E.default.factory.createIdentifier("input")))(_(_({},o),{postfix:""}))(E.default.factory.createIdentifier("input"))})),void 0,R.FeatureProgrammer.argumentsArray(e)(o)(n)),e.joiner.failure(n,a.map(function(e){return e.type.name}).join(" | "),o))}}}},v=function(e){return function(t){return function(r,a,o){return 1===a.objects.length?n.decode_object(e)(t)(r,a.objects[0],o):E.default.factory.createCallExpression(E.default.factory.createIdentifier(t.useLocal("".concat(e.prefix,"u").concat(a.union_index))),void 0,R.FeatureProgrammer.argumentsArray(e)(o)(r))}}};var create_add=function(e){return function(t){return function(r,n,a){void 0===a&&(a=t);var o=r?E.default.factory.createStrictEquality:E.default.factory.createStrictInequality;e.push({expression:o(n,a),combined:!1})}}}},12114:function(e,t,r){"use strict";var n,a,o,i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},I=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},F=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RandomProgrammer=void 0;var M=F(r(55423)),O=r(73906),C=r(61387),N=r(92595),R=r(43390),L=r(6152),U=r(95374),q=r(12301),z=r(3078),B=r(23879),H=r(63860),V=r(45041),J=r(35191),G=r(84530),Q=r(63664),W=r(5724),K=r(31959),Y=r(2112),Z=r(63114),X=r(59573);(w||(t.RandomProgrammer=w={})).write=function(e){return function(t){return function(r){var u=new K.FunctionImporter(t.getText());return function(c,f){var s=new N.MetadataCollection,d=R.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0,validate:function(e){var t=[];return e.natives.some(function(e){return"WeakSet"===e})?t.push("WeakSet is not supported."):e.natives.some(function(e){return"WeakMap"===e})&&t.push("WeakMap is not supported."),t}})(s)(c);if(!1===d.success)throw Q.TransformerError.from("typia.".concat(u.method))(d.errors);var y={objects:n(u)(s),arrays:a(u)(s),tuples:o(u)(s)},p=i(u)({function:!1,recursive:!1})(d.data);return M.default.factory.createArrowFunction(void 0,void 0,[C.IdentifierFactory.parameter("generator",M.default.factory.createTypeReferenceNode("Partial"),null!=r?r:M.default.factory.createToken(M.default.SyntaxKind.QuestionToken))],M.default.factory.createTypeReferenceNode("typia.Resolved<".concat(null!=f?f:q.TypeFactory.getFullName(e.checker)(c),">")),void 0,M.default.factory.createBlock(I(I(I(I(I([],j(u.declare(t)),!1),j(y.objects),!1),j(y.arrays),!1),j(y.tuples),!1),[M.default.factory.createReturnStatement(p)],!1),!0))}}}},n=function(e){return function(t){return t.objects().map(function(t,r){return L.StatementFactory.constant(ee.object(r),M.default.factory.createArrowFunction(void 0,void 0,[C.IdentifierFactory.parameter("_recursive",q.TypeFactory.keyword("boolean"),M.default.factory.createIdentifier(String(t.recursive))),C.IdentifierFactory.parameter("_depth",q.TypeFactory.keyword("number"),O.ExpressionFactory.number(0))],q.TypeFactory.keyword("any"),void 0,Y.RandomJoiner.object(COALESCE(e))(i(e)({recursive:t.recursive,function:!0}))(t)))})}},a=function(e){return function(t){return t.arrays().filter(function(e){return e.recursive}).map(function(t,r){return L.StatementFactory.constant(ee.array(r),M.default.factory.createArrowFunction(void 0,void 0,[C.IdentifierFactory.parameter("length",q.TypeFactory.keyword("number")),C.IdentifierFactory.parameter("_recursive",q.TypeFactory.keyword("boolean"),M.default.factory.createTrue()),C.IdentifierFactory.parameter("_depth",q.TypeFactory.keyword("number"),O.ExpressionFactory.number(0))],q.TypeFactory.keyword("any"),void 0,Y.RandomJoiner.array(COALESCE(e))(i(e)({recursive:!0,function:!0}))({recursive:!0,function:!0})(M.default.factory.createIdentifier("length"))(t.value)))})}},o=function(e){return function(t){return t.tuples().filter(function(e){return e.recursive}).map(function(t,r){return L.StatementFactory.constant(ee.tuple(r),M.default.factory.createArrowFunction(void 0,void 0,[C.IdentifierFactory.parameter("_recursive",q.TypeFactory.keyword("boolean"),M.default.factory.createTrue()),C.IdentifierFactory.parameter("_depth",q.TypeFactory.keyword("number"),O.ExpressionFactory.number(0))],q.TypeFactory.keyword("any"),void 0,Y.RandomJoiner.tuple(i(e)({function:!0,recursive:!0}))(t.elements)))})}},i=function(e){return function(t){return function(r){var n,a,o,x,S,T,E,w,P,F,O,C,N,R,L,U,q,z,B,H,V=[];r.any&&V.push(M.default.factory.createStringLiteral("any type used...")),(!1===r.isRequired()||!0===r.functional)&&V.push(M.default.factory.createIdentifier("undefined")),!0===r.nullable&&V.push(M.default.factory.createNull());try{for(var J=A(r.constants),G=J.next();!G.done;G=J.next()){var Q=G.value;try{for(var W=(o=void 0,A(Q.values)),K=W.next();!K.done;K=W.next()){var Y=K.value;V.push(c(Y))}}catch(e){o={error:e}}finally{try{K&&!K.done&&(x=W.return)&&x.call(W)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{G&&!G.done&&(a=J.return)&&a.call(J)}finally{if(n)throw n.error}}try{for(var Z=A(r.templates),X=Z.next();!X.done;X=Z.next()){var ee=X.value;V.push(f(e)(t)(ee))}}catch(e){S={error:e}}finally{try{X&&!X.done&&(T=Z.return)&&T.call(Z)}finally{if(S)throw S.error}}try{for(var et=A(r.atomics),er=et.next();!er.done;er=et.next()){var en=er.value;"boolean"===en.type?V.push(u(e)):"number"===en.type?V.push.apply(V,I([],j(s(e)(en)),!1)):"string"===en.type?V.push.apply(V,I([],j(y(e)(en)),!1)):"bigint"===en.type&&V.push.apply(V,I([],j(d(e)(en)),!1))}}catch(e){E={error:e}}finally{try{er&&!er.done&&(w=et.return)&&w.call(et)}finally{if(E)throw E.error}}r.escaped&&V.push(i(e)(t)(r.escaped.returns));try{for(var ea=A(r.arrays),eo=ea.next();!eo.done;eo=ea.next()){var ei=eo.value;V.push.apply(V,I([],j(p(e)(t)(ei)),!1))}}catch(e){P={error:e}}finally{try{eo&&!eo.done&&(F=ea.return)&&F.call(ea)}finally{if(P)throw P.error}}try{for(var eu=A(r.tuples),ec=eu.next();!ec.done;ec=eu.next()){var el=ec.value;V.push(m(e)(t)(el))}}catch(e){O={error:e}}finally{try{ec&&!ec.done&&(C=eu.return)&&C.call(eu)}finally{if(O)throw O.error}}try{for(var ef=A(r.objects),es=ef.next();!es.done;es=ef.next()){var ed=es.value;V.push(v(e)(t)(ed))}}catch(e){N={error:e}}finally{try{es&&!es.done&&(R=ef.return)&&R.call(ef)}finally{if(N)throw N.error}}try{for(var ey=A(r.natives),ep=ey.next();!ep.done;ep=ey.next()){var em=ep.value;V.push(b(e)(em))}}catch(e){L={error:e}}finally{try{ep&&!ep.done&&(U=ey.return)&&U.call(ey)}finally{if(L)throw L.error}}try{for(var ev=A(r.sets),eh=ev.next();!eh.done;eh=ev.next()){var eg=eh.value;V.push(g(e)(t)(eg))}}catch(e){q={error:e}}finally{try{eh&&!eh.done&&(z=ev.return)&&z.call(ev)}finally{if(q)throw q.error}}try{for(var e_=A(r.maps),eb=e_.next();!eb.done;eb=e_.next()){var ex=eb.value;V.push(_(e)(t)(ex))}}catch(e){B={error:e}}finally{try{eb&&!eb.done&&(H=e_.return)&&H.call(e_)}finally{if(B)throw B.error}}return 1===V.length?V[0]:M.default.factory.createCallExpression(M.default.factory.createCallExpression(e.use("pick"),void 0,[M.default.factory.createArrayLiteralExpression(V.map(function(e){return M.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,e)}),!0)]),void 0,void 0)}}},u=function(e){return M.default.factory.createCallExpression(COALESCE(e)("boolean"),void 0,void 0)},c=function(e){return"boolean"==typeof e?M.default.factory.createIdentifier(e.toString()):"number"==typeof e?O.ExpressionFactory.number(e):"string"==typeof e?M.default.factory.createStringLiteral(e):O.ExpressionFactory.bigint(Number(e))},f=function(e){return function(t){return function(r){return U.TemplateFactory.generate(r.map(function(r){return i(e)(t)(r)}))}}},s=function(e){return function(t){return(t.tags.length?t.tags:[[]]).map(function(t){var r=t.find(function(e){return"type"===e.kind&&("int32"===e.value||"int64"===e.value)})?"int":t.find(function(e){return"type"===e.kind&&("uint32"===e.value||"uint64"===e.value)})?"uint":"double",n=t.find(function(e){return"multipleOf"===e.kind});return(0,X.random_custom)(COALESCE(e))("number")(t)(Z.RandomRanger.number({type:r,transform:function(e){return O.ExpressionFactory.number(e)},setter:function(t){return M.default.factory.createCallExpression("double"!==r||void 0!==n?COALESCE(e)("integer"):COALESCE(e)("number"),void 0,t.map(function(e){return O.ExpressionFactory.number(e)}))}})({minimum:0,maximum:100,gap:10})(t))})}},d=function(e){return function(t){return(t.tags.length?t.tags:[[]]).map(function(t){return(0,X.random_custom)(COALESCE(e))("bigint")(t)(Z.RandomRanger.number({type:t.find(function(e){return"type"===e.kind&&("uint"===e.value||"uint64"===e.value)})?"uint":"int",transform:function(e){return O.ExpressionFactory.bigint(e)},setter:function(t){return M.default.factory.createCallExpression(COALESCE(e)("bigint"),void 0,t.map(function(e){return O.ExpressionFactory.bigint(e)}))}})({minimum:0,maximum:100,gap:10})(t))})}},y=function(e){return function(t){return(t.tags.length?t.tags:[[]]).map(function(t){return(0,X.random_custom)(COALESCE(e))("string")(t)(function(){try{for(var r,n,a=A(t),o=a.next();!o.done;o=a.next()){var i=o.value;if("format"===i.kind)return M.default.factory.createCallExpression(COALESCE(e)(emendFormat(i.value)),void 0,void 0);if("pattern"===i.kind)return M.default.factory.createCallExpression(COALESCE(e)("pattern"),void 0,[M.default.factory.createIdentifier("/".concat(i.value,"/"))])}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}var u=Z.RandomRanger.length(COALESCE(e))({minimum:5,maximum:25,gap:5})({minimum:"minLength",maximum:"maxLength"})(t);return M.default.factory.createCallExpression(COALESCE(e)("string"),void 0,u?[u]:void 0)}())})}},p=function(e){return function(t){return function(r){var n=(r.tags.length?r.tags:[[]]).map(function(t){return Z.RandomRanger.length(COALESCE(e))({minimum:0,maximum:3,gap:3})({minimum:"minItems",maximum:"maxItems"})(t)});return r.type.recursive?n.map(function(n){return M.default.factory.createCallExpression(M.default.factory.createIdentifier(e.useLocal(ee.array(r.type.index))),void 0,[null!=n?n:COALESCE(e)("length"),M.default.factory.createTrue(),t.recursive?M.default.factory.createAdd(O.ExpressionFactory.number(1),M.default.factory.createIdentifier("_depth")):O.ExpressionFactory.number(0)])}):n.map(function(n){var a=Y.RandomJoiner.array(COALESCE(e))(i(e)(t))(t)(n)(r.type.value);return t.recursive?M.default.factory.createConditionalExpression(M.default.factory.createLogicalAnd(M.default.factory.createIdentifier("_recursive"),M.default.factory.createLessThan(O.ExpressionFactory.number(5),M.default.factory.createIdentifier("_depth"))),void 0,M.default.factory.createIdentifier("[]"),void 0,a):a})}}},m=function(e){return function(t){return function(r){return r.type.recursive?M.default.factory.createCallExpression(M.default.factory.createIdentifier(e.useLocal(ee.tuple(r.type.index))),void 0,[M.default.factory.createTrue(),t.recursive?M.default.factory.createAdd(O.ExpressionFactory.number(1),M.default.factory.createIdentifier("_depth")):O.ExpressionFactory.number(0)]):Y.RandomJoiner.tuple(i(e)(t))(r.type.elements)}}},v=function(e){return function(t){return function(r){return M.default.factory.createCallExpression(M.default.factory.createIdentifier(e.useLocal(ee.object(r.index))),void 0,t.function?[t.recursive?M.default.factory.createTrue():M.default.factory.createIdentifier("_recursive"),M.default.factory.createConditionalExpression(M.default.factory.createIdentifier("_recursive"),void 0,M.default.factory.createAdd(O.ExpressionFactory.number(1),M.default.factory.createIdentifier("_depth")),void 0,M.default.factory.createIdentifier("_depth"))]:void 0)}}},g=function(e){return function(t){return function(r){return M.default.factory.createNewExpression(M.default.factory.createIdentifier("Set"),void 0,[p(e)(t)(B.MetadataArray.create({tags:[],type:H.MetadataArrayType.create({value:r,recursive:!1,index:null,nullables:[],name:"Set<".concat(r.getName(),">")})}))[0]])}}},_=function(e){return function(t){return function(r){var n;return M.default.factory.createNewExpression(M.default.factory.createIdentifier("Map"),void 0,[p(e)(t)(B.MetadataArray.create({tags:[],type:H.MetadataArrayType.create({name:"Map<".concat(r.key.getName(),", ").concat(r.value.getName(),">"),index:null,recursive:!1,nullables:[],value:z.Metadata.create(P(P({},z.Metadata.initialize()),{tuples:[((n=G.MetadataTupleType.create({name:"[".concat(r.key.getName(),", ").concat(r.value.getName(),"]"),index:null,recursive:!1,nullables:[],elements:[r.key,r.value]})).of_map=!0,J.MetadataTuple.create({type:n,tags:[]}))]}))})}))[0]])}}},b=function(e){return function(t){if("Boolean"===t)return u(e);if("Number"===t)return s(e)(V.MetadataAtomic.create({type:"number",tags:[]}))[0];if("String"===t)return y(e)(V.MetadataAtomic.create({type:"string",tags:[]}))[0];if("Date"===t)return x(e);if("Uint8Array"===t||"Uint8ClampedArray"===t||"Uint16Array"===t||"Uint32Array"===t||"BigUint64Array"===t||"Int8Array"===t||"Int16Array"===t||"Int32Array"===t||"BigInt64Array"===t||"Float32Array"===t||"Float64Array"===t)return S(e)(t);if("ArrayBuffer"===t||"SharedArrayBuffer"===t)return T(e)(t);if("DataView"===t)return E(e);else return M.default.factory.createNewExpression(M.default.factory.createIdentifier(t),void 0,[])}},x=function(e){return M.default.factory.createNewExpression(M.default.factory.createIdentifier("Date"),void 0,[M.default.factory.createCallExpression(COALESCE(e)("datetime"),void 0,[])])},S=function(e){return function(t){new BigInt64Array;var r=j(function(){if("Uint8Array"===t||"Uint8ClampedArray"===t)return[0,255];if("Uint16Array"===t)return[0,65535];if("Uint32Array"===t)return[0,4294967295];if("BigUint64Array"===t)return[0,18446744073709552e3];if("Int8Array"===t)return[-128,127];if("Int16Array"===t)return[-32768,32767];if("Int32Array"===t)return[-2147483648,2147483647];else if("BigInt64Array"===t)return[-0x8000000000000000,0x7fffffffffffffff];else if("Float32Array"===t)return[-1175494351e29,34028235e31];return[Number.MIN_VALUE,Number.MAX_VALUE]}(),2),n=r[0],a=r[1],o="BigInt64Array"===t||"BigUint64Array"===t?O.ExpressionFactory.bigint:O.ExpressionFactory.number;return M.default.factory.createNewExpression(M.default.factory.createIdentifier(t),[],[M.default.factory.createCallExpression(COALESCE(e)("array"),void 0,[M.default.factory.createArrowFunction(void 0,void 0,[],q.TypeFactory.keyword("any"),void 0,M.default.factory.createCallExpression(COALESCE(e)("Float32Array"===t||"Float64Array"===t?"number":"BigInt64Array"===t||"BigUint64Array"===t?"bigint":"integer"),void 0,[o(n),o(a)]))])])}},T=function(e){return function(t){return"ArrayBuffer"===t?C.IdentifierFactory.access(S(e)("Uint8Array"))("buffer"):O.ExpressionFactory.selfCall(M.default.factory.createBlock([L.StatementFactory.constant("length",M.default.factory.createCallExpression(COALESCE(e)("integer"),void 0,[])),L.StatementFactory.constant("buffer",M.default.factory.createNewExpression(M.default.factory.createIdentifier("SharedArrayBuffer"),[],[M.default.factory.createIdentifier("length")])),L.StatementFactory.constant("bytes",M.default.factory.createNewExpression(M.default.factory.createIdentifier("Uint8Array"),[],[M.default.factory.createIdentifier("buffer")])),M.default.factory.createExpressionStatement(M.default.factory.createCallExpression(C.IdentifierFactory.access(M.default.factory.createIdentifier("bytes"))("set"),void 0,[M.default.factory.createCallExpression(COALESCE(e)("array"),void 0,[M.default.factory.createArrowFunction(void 0,void 0,[],q.TypeFactory.keyword("any"),void 0,M.default.factory.createCallExpression(COALESCE(e)("integer"),void 0,[O.ExpressionFactory.number(0),O.ExpressionFactory.number(255)])),M.default.factory.createIdentifier("length")]),O.ExpressionFactory.number(0)])),M.default.factory.createReturnStatement(M.default.factory.createIdentifier("buffer"))],!0))}},E=function(e){return M.default.factory.createNewExpression(M.default.factory.createIdentifier("DataView"),[],[C.IdentifierFactory.access(S(e)("Uint8Array"))("buffer")])};var ee={object:function(e){return"$ro".concat(e)},array:function(e){return"$ra".concat(e)},tuple:function(e){return"$rt".concat(e)}},COALESCE=function(e){return function(t){return O.ExpressionFactory.coalesce(W.Escaper.variable(t)?M.default.factory.createPropertyAccessChain(M.default.factory.createIdentifier("generator"),M.default.factory.createToken(M.default.SyntaxKind.QuestionDotToken),M.default.factory.createIdentifier(t)):M.default.factory.createElementAccessChain(M.default.factory.createIdentifier("generator"),M.default.factory.createToken(M.default.SyntaxKind.QuestionDotToken),M.default.factory.createStringLiteral(t)))(C.IdentifierFactory.access(e.use("generator"))(t))}},emendFormat=function(e){return"date-time"===e?"datetime":e.split("-").map(function(e,t){return 0===t||0===e.length?e:e[0].toUpperCase()+e.substring(1)}).join("")}},89345:function(e,t,r){"use strict";var n,a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")),void 0,u.default.factory.createBlock([s.StatementFactory.constant("errors",u.default.factory.createAsExpression(u.default.factory.createArrayLiteralExpression([]),u.default.factory.createArrayTypeNode(d.TypeFactory.keyword("any")))),s.StatementFactory.constant("__is",_),u.default.factory.createIfStatement(u.default.factory.createStrictEquality(u.default.factory.createFalse(),u.default.factory.createCallExpression(u.default.factory.createIdentifier("__is"),void 0,[u.default.factory.createIdentifier("input")])),u.default.factory.createBlock([s.StatementFactory.constant("$report",u.default.factory.createCallExpression(f.IdentifierFactory.access(u.default.factory.createParenthesizedExpression(u.default.factory.createAsExpression(t,d.TypeFactory.keyword("any"))))("report"),[],[u.default.factory.createIdentifier("errors")])),u.default.factory.createExpressionStatement(u.default.factory.createCallExpression(b,void 0,[u.default.factory.createIdentifier("input"),u.default.factory.createStringLiteral("$input"),u.default.factory.createTrue()]))])),s.StatementFactory.constant("success",u.default.factory.createStrictEquality(c.ExpressionFactory.number(0),u.default.factory.createIdentifier("errors.length"))),u.default.factory.createReturnStatement(u.default.factory.createAsExpression(create_output(),d.TypeFactory.keyword("any")))],!0))}}}};var combine=function(e){return function(t){return function(r){return function(n){if(!1===n.tracable)return p.IsProgrammer.configure({object:validate_object(e)(t)(r),numeric:!0})(t)(r).combiner(n);var a=n.postfix?"_path + ".concat(n.postfix):"_path";return function(e){return function(t,r,o){return"and"===e?r.map(function(e){return e.combined?e.expression:u.default.factory.createLogicalOr(e.expression,create_report_call("top"===n.source?u.default.factory.createTrue():u.default.factory.createIdentifier("_exceptionable"))(u.default.factory.createIdentifier(a),o,t))}).reduce(u.default.factory.createLogicalAnd):u.default.factory.createLogicalOr(r.map(function(e){return e.expression}).reduce(u.default.factory.createLogicalOr),create_report_call("top"===n.source?u.default.factory.createTrue():u.default.factory.createIdentifier("_exceptionable"))(u.default.factory.createIdentifier(a),o,t))}}}}}},validate_object=function(e){return function(t){return function(r){return(0,_.check_object)({equals:e,undefined:!0,assert:!1,reduce:u.default.factory.createLogicalAnd,positive:u.default.factory.createTrue(),superfluous:function(e){return create_report_call()(u.default.factory.createAdd(u.default.factory.createIdentifier("_path"),u.default.factory.createCallExpression(r.use("join"),void 0,[u.default.factory.createIdentifier("key")])),"undefined",e)},halt:function(e){return u.default.factory.createLogicalOr(u.default.factory.createStrictEquality(u.default.factory.createFalse(),u.default.factory.createIdentifier("_exceptionable")),e)}})(t)(r)}}},joiner=function(e){return function(t){return function(r){return{object:validate_object(e)(t)(r),array:function(e,t){return(0,g.check_everything)(u.default.factory.createCallExpression(f.IdentifierFactory.access(e)("map"),void 0,[t]))},failure:function(e,t,r){return create_report_call((null==r?void 0:r.from)==="top"?u.default.factory.createTrue():u.default.factory.createIdentifier("_exceptionable"))(u.default.factory.createIdentifier((null==r?void 0:r.postfix)?"_path + ".concat(r.postfix):"_path"),t,e)},tuple:function(e){return(0,g.check_everything)(u.default.factory.createArrayLiteralExpression(e,!0))}}}}},create_output=function(){return u.default.factory.createObjectLiteralExpression([u.default.factory.createShorthandPropertyAssignment("success"),u.default.factory.createShorthandPropertyAssignment("errors"),u.default.factory.createPropertyAssignment("data",u.default.factory.createConditionalExpression(u.default.factory.createIdentifier("success"),void 0,u.default.factory.createIdentifier("input"),void 0,u.default.factory.createIdentifier("undefined")))],!0)},create_report_call=function(e){return function(t,r,n){return u.default.factory.createCallExpression(u.default.factory.createIdentifier("$report"),void 0,[null!=e?e:u.default.factory.createIdentifier("_exceptionable"),u.default.factory.createObjectLiteralExpression([u.default.factory.createPropertyAssignment("path",t),u.default.factory.createPropertyAssignment("expected",u.default.factory.createStringLiteral(r)),u.default.factory.createPropertyAssignment("value",n)],!0)])}}},86752:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtomicPredicator=void 0;var n,a,o=r(73346);(n=a||(t.AtomicPredicator=a={})).constant=function(e){return function(t){return!o.ArrayUtil.has(e.atomics,function(e){return e.type===t})&&!o.ArrayUtil.has(e.natives,function(e){return e.toLowerCase()===t})}},n.atomic=function(e){return function(t){return!o.ArrayUtil.has(e.natives,function(e){return e.toLowerCase()===t})}},n.native=function(e){return i.has(e.toLowerCase())},n.template=function(e){return!o.ArrayUtil.has(e.atomics,function(e){return"string"===e.type})};var i=new Set(["boolean","bigint","number","string"])},1739:function(e,t,r){"use strict";var n,a,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a1}},94492:function(e,t,r){"use strict";var n,a,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=1&&e.properties.every(function(e){return e.key.isSoleLiteral()})},r.size=function(e){return r.getAtomics(e).length+e.arrays.length+e.tuples.length+e.natives.length+e.objects.length+e.maps.length},r.isUnion=function(e){return r.size(e)>1},r.getAtomics=function(e){var t,r,a,c,f=new Set;e.templates.length&&f.add("string");try{for(var s=o(e.constants),d=s.next();!d.done;d=s.next()){var y=d.value;"boolean"===y.type?f.add("bool"):"bigint"===y.type?f.add("uint64"):"number"===y.type?f.add(deduce_numeric_type(y.values)):"string"===y.type&&f.add("string")}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}try{for(var p=o(e.atomics),m=p.next();!m.done;m=p.next()){var v=m.value;"boolean"===v.type?f.add("bool"):"bigint"===v.type?decode_bigint(v.tags).forEach(function(e){return f.add(e)}):"number"===v.type?decode_number(v.tags).forEach(function(e){return f.add(e)}):"string"===v.type&&f.add("string")}}catch(e){a={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(a)throw a.error}}return u([],i(f),!1).sort(n)},r.getNumbers=function(e){var t,r,a,c,f=new Set;try{for(var s=o(e.constants),d=s.next();!d.done;d=s.next()){var y=d.value;"number"===y.type&&f.add(deduce_numeric_type(y.values))}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}try{for(var p=o(e.atomics),m=p.next();!m.done;m=p.next()){var v=m.value;"number"===v.type&&decode_number(v.tags).forEach(function(e){return f.add(e)})}}catch(e){a={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(a)throw a.error}}return u([],i(f),!1).sort(n)},r.getBigints=function(e){var t,r,a,c,f=new Set;try{for(var s=o(e.constants),d=s.next();!d.done;d=s.next()){var y=d.value;"bigint"===y.type&&f.add("uint64")}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}try{for(var p=o(e.atomics),m=p.next();!m.done;m=p.next()){var v=m.value;"bigint"===v.type&&decode_bigint(v.tags).forEach(function(e){return f.add(e)})}}catch(e){a={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(a)throw a.error}}return u([],i(f),!1).sort(n)},n=function(e,t){return c.get(e)-c.get(t)};var c=new Map(["bool","int32","uint32","int64","uint64","float","double","string"].map(function(e,t){return[e,t]})),deduce_numeric_type=function(e){return e.every(function(e){return Math.floor(e)===e})?e.every(function(e){return -2147483648<=e&&e<=2147483647})?"int32":"int64":"double"},decode_bigint=function(e){if(0===e.length)return["int64"];var t,r,n,a=new Set;try{for(var c=o(e),f=c.next();!f.done;f=c.next()){var s=f.value,d=null===(n=s.find(function(e){return"type"===e.kind&&("int64"===e.value||"uint64"===e.value)}))||void 0===n?void 0:n.value;a.add(null!=d?d:"int64")}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return u([],i(a),!1)},decode_number=function(e){if(0===e.length)return["double"];var t,r,n,a=new Set;try{for(var c=o(e),f=c.next();!f.done;f=c.next()){var s=f.value,d=null===(n=s.find(function(e){return"type"===e.kind&&("int32"===e.value||"uint32"===e.value||"int64"===e.value||"uint64"===e.value||"float"===e.value||"double"===e.value)}))||void 0===n?void 0:n.value;a.add(null!=d?d:"double")}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return u([],i(a),!1)}},3065:function(e,t,r){"use strict";var n,a,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnionExplorer=void 0;var c=u(r(55423)),f=r(73906),s=r(61387),d=r(3078),y=r(23879),p=r(63860),m=r(35191),v=r(84530),g=r(45826),_=r(99560);(n=a||(t.UnionExplorer=a={})).object=function(e,t){return void 0===t&&(t=0),function(r,a,i){if(1===a.length)return e.objector.decoder()(r,a[0],i);var u="(".concat(a.map(function(e){return e.name}).join(" | "),")"),d=_.UnionPredicator.object(a);if(0===d.length){var y=e.objector.unionizer(r,a,o(o({},i),{tracable:!1}));return e.objector.full?e.objector.full(y)(r,u,i):y}var p=a.filter(function(e){return void 0===d.find(function(t){return t.object===e})}),m=d.filter(function(e){return null!==e.property.key.getSoleLiteral()}).map(function(a,d,y){var m=a.property.key.getSoleLiteral(),v=s.IdentifierFactory.access(r)(m),g=a.neighbour?e.objector.checker()(v,a.property.value,o(o({},i),{tracable:!1,postfix:s.IdentifierFactory.postfix(m)})):(e.objector.required||function(e){return e})(f.ExpressionFactory.isRequired(v));return c.default.factory.createIfStatement((e.objector.is||function(e){return e})(g),c.default.factory.createReturnStatement(e.objector.decoder()(r,a.object,i)),d===y.length-1?p.length?c.default.factory.createReturnStatement(n.object(e,t+1)(r,p,i)):e.objector.failure(r,u,i):void 0)}).reverse().reduce(function(e,t){return c.default.factory.createIfStatement(t.expression,t.thenStatement,e)});return c.default.factory.createCallExpression(c.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,c.default.factory.createBlock([m],!0)),void 0,void 0)}},n.tuple=function(e){return(0,g.check_union_array_like)({transform:function(e){return e},element:function(e){return e},size:null,front:function(e){return e},array:function(e){return e},name:function(e){return e.type.name}})(e)},n.array=function(e){return(0,g.check_union_array_like)({transform:function(e){return e},element:function(e){return e.type.value},size:function(e){return s.IdentifierFactory.access(e)("length")},front:function(e){return c.default.factory.createElementAccessExpression(e,0)},array:function(e){return e},name:function(e){return e.type.name}})(e)},n.array_or_tuple=function(e){return(0,g.check_union_array_like)({transform:function(e){return e},element:function(e){return e instanceof y.MetadataArray?e.type.value:e},size:function(e){return s.IdentifierFactory.access(e)("length")},front:function(e){return c.default.factory.createElementAccessExpression(e,0)},array:function(e){return e},name:function(e){return e.type.name}})(e)},n.set=function(e){return(0,g.check_union_array_like)({transform:function(e){return y.MetadataArray.create({tags:[],type:p.MetadataArrayType.create({name:"Set<".concat(e.getName(),">"),index:null,recursive:!1,nullables:[],value:e})})},element:function(e){return e.type.value},size:function(e){return s.IdentifierFactory.access(e)("size")},front:function(e){return s.IdentifierFactory.access(c.default.factory.createCallExpression(s.IdentifierFactory.access(c.default.factory.createCallExpression(s.IdentifierFactory.access(e)("values"),void 0,void 0))("next"),void 0,void 0))("value")},array:function(e){return c.default.factory.createArrayLiteralExpression([c.default.factory.createSpreadElement(e)],!1)},name:function(e,t){return"Set<".concat(t.getName(),">")}})(e)},n.map=function(e){return(0,g.check_union_array_like)({element:function(e){return e.type.value.tuples[0].type.elements},size:function(e){return s.IdentifierFactory.access(e)("size")},front:function(e){return s.IdentifierFactory.access(c.default.factory.createCallExpression(s.IdentifierFactory.access(c.default.factory.createCallExpression(s.IdentifierFactory.access(e)("entries"),void 0,void 0))("next"),void 0,void 0))("value")},array:function(e){return c.default.factory.createArrayLiteralExpression([c.default.factory.createSpreadElement(e)],!1)},name:function(e,t){var r=i(t,2),n=r[0],a=r[1];return"Map<".concat(n.getName(),", ").concat(a.getName(),">")},transform:function(e){var t;return y.MetadataArray.create({tags:[],type:p.MetadataArrayType.create({name:"Map<".concat(e.key.getName(),", ").concat(e.value.getName(),">"),index:null,recursive:!1,nullables:[],value:d.Metadata.create(o(o({},d.Metadata.initialize()),{tuples:[((t=m.MetadataTuple.create({tags:[],type:v.MetadataTupleType.create({name:"[".concat(e.key.getName(),", ").concat(e.value.getName(),"]"),index:null,recursive:!1,nullables:[],elements:[e.key,e.value]})})).type.of_map=!0,t)]}))})})}})(e)}},99560:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.UnionPredicator=void 0;var i=r(3078),u=r(73346),c=r(63224);(n||(t.UnionPredicator=n={})).object=function(e){var t,r,n,f,s=new Map;try{for(var d=o(e),y=d.next();!y.done;y=d.next()){var p=y.value;try{for(var m=(n=void 0,o(p.properties)),v=m.next();!v.done;v=m.next()){var g=v.value.key.getSoleLiteral();null!==g&&c.MapUtil.take(s)(g,function(){return u.ArrayUtil.repeat(e.length,function(){return null})})}}catch(e){n={error:e}}finally{try{v&&!v.done&&(f=m.return)&&f.call(m)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{y&&!y.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}e.forEach(function(e,t){var r,n;try{for(var a=o(e.properties),i=a.next();!i.done;i=a.next()){var u=i.value,c=u.key.getSoleLiteral();null!==c&&(s.get(c)[t]=u)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}});var _=[];return e.forEach(function(e,t){var r=[];if(e.properties.forEach(function(e){if(!1!==e.value.isRequired()){var n=e.key.getSoleLiteral();if(null!==n){var a=s.get(n).filter(function(e,r){return t!==r&&null!==e});!0===(0===a.length||a.every(function(t){return!i.Metadata.intersects(e.value,t.value)}))&&r.push({property:e,neighbour:0!==a.length})}}}),0!==r.length){var n=r.find(function(e){return e.property.value.isConstant()})||r[0];_.push(a({index:t,object:e},n))}}),_}},41510:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disable_function_importer_declare=void 0,t.disable_function_importer_declare=function(e){return disable(e)};var disable=function(e){return{method:e.method,empty:function(){return e.empty()},use:function(t){return e.use(t)},useLocal:function(t){return e.useLocal(t)},hasLocal:function(t){return e.hasLocal(t)},declare:function(e){return[]},declareUnions:function(){return[]},increment:function(){return e.increment()},emplaceUnion:function(t,r,n){return e.emplaceUnion(t,r,n)},trace:function(){return e.trace()}}}},40225:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("decode",d.HttpHeadersProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("assert",s.AssertProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("output")]),f.TypeFactory.keyword("any")))]))}}}},87176:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("decode",d.HttpQueryProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("assert",s.AssertProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("output")]),f.TypeFactory.keyword("any")))]))}}}},94694:function(e,t,r){"use strict";var n,a,o,i,u,c,f=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HttpHeadersProgrammer=void 0;var p=y(r(55423)),m=r(73906),v=r(61387),g=r(92595),_=r(43390),b=r(6152),x=r(12301),S=r(63860),T=r(63664),E=r(5724),w=r(63224),P=r(31959),j=r(92273);(n=c||(t.HttpHeadersProgrammer=c={})).INPUT_TYPE="Record",n.write=function(e){return function(t){return function(r,o){var i=new P.FunctionImporter(t.getText()),u=new g.MetadataCollection,c=_.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0,validate:n.validate})(u)(r);if(!1===c.success)throw T.TransformerError.from("typia.http.".concat(i.method))(c.errors);var d=c.data.objects[0],y=a(i)(d);return p.default.factory.createArrowFunction(void 0,void 0,[v.IdentifierFactory.parameter("input",p.default.factory.createTypeReferenceNode(n.INPUT_TYPE))],p.default.factory.createTypeReferenceNode("typia.Resolved<".concat(null!=o?o:x.TypeFactory.getFullName(e.checker)(r),">")),void 0,p.default.factory.createBlock(s(s([],f(i.declare(t)),!1),f(y),!1),!0))}}},n.validate=function(e,t){var r,n,a,o,i=[],insert=function(e){return i.push(e)};if(!0===t.top)(1!==e.objects.length||1!==e.bucket())&&insert("only one object type is allowed."),!0===e.nullable&&insert("headers cannot be null."),!1===e.isRequired()&&insert("headers cannot be null.");else if(null!==t.nested&&t.nested instanceof S.MetadataArrayType){var u=j.HttpMetadataUtil.atomics(e),c=e.atomics.length+e.templates.length+e.constants.map(function(e){return e.values.length}).reduce(function(e,t){return e+t},0);u.size>1&&insert("union type is not allowed in array."),e.size()!==c&&insert("only atomic or constant types are allowed in array."),!0===e.nullable&&insert("nullable type is not allowed in array."),!1===e.isRequired()&&insert("optional type is not allowed in array.")}else if(t.object&&null!==t.property){"object"==typeof t.property&&insert("dynamic property is not allowed."),e.tuples.length&&insert("tuple type is not allowed."),j.HttpMetadataUtil.isUnion(e)&&insert("union type is not allowed."),(e.objects.length||e.sets.length||e.maps.length||e.natives.length)&&insert("nested object type is not allowed."),!0===e.nullable&&insert("nullable type is not allowed.");var y=e.arrays.length>=1||e.tuples.length>=1;"string"==typeof t.property&&"set-cookie"===t.property.toLowerCase()&&!1===y&&insert("".concat(t.property," property must be array.")),"string"==typeof t.property&&I.has(t.property.toLowerCase())&&!0===y&&insert("property cannot be array.")}else if(t.object&&null===t.property){var p=new Map;try{for(var m=d(t.object.properties),v=m.next();!v.done;v=m.next()){var g=v.value.key.getSoleLiteral();null!==g&&w.MapUtil.take(p)(g.toLowerCase(),function(){return new Set}).add(g)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}try{for(var _=d(p),b=_.next();!b.done;b=_.next()){var x=f(b.value,2),g=x[0],T=x[1];T.size>1&&insert("duplicated keys when converting to lowercase letters: [".concat(s([],f(T),!1).join(", "),"] -> ").concat(g))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(a)throw a.error}}}return i},a=function(e){return function(t){var r=p.default.factory.createIdentifier("output"),n=[];return s(s([b.StatementFactory.constant("output",p.default.factory.createObjectLiteralExpression(t.properties.map(function(t){return!t.value.isRequired()&&t.value.arrays.length+t.value.tuples.length>0&&n.push(t.key.constants[0].values[0]),o(e)(t)}),!0))],f(n.map(function(e){var t=v.IdentifierFactory.access(r)(e);return p.default.factory.createIfStatement(p.default.factory.createStrictEquality(m.ExpressionFactory.number(0),v.IdentifierFactory.access(t)("length")),p.default.factory.createExpressionStatement(p.default.factory.createDeleteExpression(t)))})),!1),[p.default.factory.createReturnStatement(p.default.factory.createAsExpression(r,x.TypeFactory.keyword("any")))],!1)}},o=function(e){return function(t){var r,n,a,o=t.key.constants[0].values[0],c=t.value,s=f(c.atomics.length?[c.atomics[0].type,!1]:c.constants.length?[c.constants[0].type,!1]:c.templates.length?["string",!1]:(a=null!==(n=null===(r=c.arrays[0])||void 0===r?void 0:r.type.value)&&void 0!==n?n:c.tuples[0].type.elements[0]).atomics.length?[a.atomics[0].type,!0]:a.templates.length?["string",!0]:[a.constants[0].type,!0],2),d=s[0],y=s[1],m=v.IdentifierFactory.access(p.default.factory.createIdentifier("input"))(o.toLowerCase());return p.default.factory.createPropertyAssignment(E.Escaper.variable(o)?o:p.default.factory.createStringLiteral(o),y?"set-cookie"===o?m:u(e)(d)(o)(c)(m):i(e)(d)(m))}},i=function(e){return function(t){return function(r){return"string"===t?r:p.default.factory.createCallExpression(e.use(t),void 0,[r])}}},u=function(e){return function(t){return function(r){return function(n){return function(a){var o=p.default.factory.createCallChain(p.default.factory.createPropertyAccessChain(p.default.factory.createCallChain(p.default.factory.createPropertyAccessChain(a,p.default.factory.createToken(p.default.SyntaxKind.QuestionDotToken),p.default.factory.createIdentifier("split")),void 0,void 0,[p.default.factory.createStringLiteral("cookie"===r?"; ":", ")]),p.default.factory.createToken(p.default.SyntaxKind.QuestionDotToken),p.default.factory.createIdentifier("map")),void 0,void 0,[e.use(t)]);return p.default.factory.createConditionalExpression(m.ExpressionFactory.isArray(a),void 0,p.default.factory.createCallExpression(v.IdentifierFactory.access(a)("map"),void 0,[e.use(t)]),void 0,!1===n.isRequired()?o:p.default.factory.createBinaryExpression(o,p.default.factory.createToken(p.default.SyntaxKind.QuestionQuestionToken),p.default.factory.createArrayLiteralExpression([],!1)))}}}}};var I=new Set(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","server","user-agent"])},4494:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),i.default.factory.createLiteralTypeNode(i.default.factory.createNull())]),void 0,i.default.factory.createBlock([c.StatementFactory.constant("is",s.IsProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("headers",d.HttpHeadersProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("headers"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createIfStatement(i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.ExclamationToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("output")])),i.default.factory.createReturnStatement(i.default.factory.createNull())),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},26334:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),i.default.factory.createLiteralTypeNode(i.default.factory.createNull())]),void 0,i.default.factory.createBlock([c.StatementFactory.constant("is",s.IsProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("query",d.HttpQueryProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("query"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createIfStatement(i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.ExclamationToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("output")])),i.default.factory.createReturnStatement(i.default.factory.createNull())),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},50457:function(e,t,r){"use strict";var n,a,o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a1&&insert("do not allow union type"),t}},57330:function(e,t,r){"use strict";var n,a,o,i,u,c,f=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")),void 0,y.default.factory.createBlock(s(s([],f(i.declare(t)),!1),f(g),!1),!0))}}},n.validate=function(e,t){var r=[],insert=function(e){return r.push(e)};if(!0===t.top)(1!==e.objects.length||1!==e.bucket())&&insert("only one object type is allowed."),!0===e.nullable&&insert("query parameters cannot be null."),!1===e.isRequired()&&insert("query parameters cannot be undefined.");else if(null!==t.nested&&t.nested instanceof b.MetadataArrayType){var n=E.HttpMetadataUtil.atomics(e),a=e.atomics.length+e.templates.length+e.constants.map(function(e){return e.values.length}).reduce(function(e,t){return e+t},0);n.size>1&&insert("union type is not allowed in array."),e.size()!==a&&insert("only atomic or constant types are allowed in array.")}else t.object&&null!==t.property&&("object"==typeof t.property&&insert("dynamic property is not allowed."),e.tuples.length&&insert("tuple type is not allowed."),E.HttpMetadataUtil.isUnion(e)&&insert("union type is not allowed."),(e.objects.length||e.sets.length||e.maps.length||e.natives.length)&&insert("nested object type is not allowed."));return r},a=function(e){return function(t){var r=y.default.factory.createIdentifier("input"),n=y.default.factory.createIdentifier("output");return[y.default.factory.createExpressionStatement(y.default.factory.createBinaryExpression(r,y.default.factory.createToken(y.default.SyntaxKind.EqualsToken),y.default.factory.createAsExpression(y.default.factory.createCallExpression(e.use("params"),void 0,[r]),y.default.factory.createTypeReferenceNode("URLSearchParams")))),g.StatementFactory.constant("output",y.default.factory.createObjectLiteralExpression(t.properties.map(function(t){return o(e)(t)}),!0)),y.default.factory.createReturnStatement(y.default.factory.createAsExpression(n,_.TypeFactory.keyword("any")))]}},o=function(e){return function(t){var r,n,a,o=t.key.constants[0].values[0],c=t.value,s=f(c.atomics.length?[c.atomics[0].type,!1]:c.constants.length?[c.constants[0].type,!1]:c.templates.length?["string",!1]:(a=null!==(n=null===(r=c.arrays[0])||void 0===r?void 0:r.type.value)&&void 0!==n?n:c.tuples[0].type.elements[0]).atomics.length?[a.atomics[0].type,!0]:a.templates.length?["string",!0]:[a.constants[0].type,!0],2),d=s[0],m=s[1];return y.default.factory.createPropertyAssignment(S.Escaper.variable(o)?o:y.default.factory.createStringLiteral(o),m?u(e)(c)(y.default.factory.createCallExpression(p.IdentifierFactory.access(y.default.factory.createCallExpression(y.default.factory.createIdentifier("input.getAll"),void 0,[y.default.factory.createStringLiteral(o)]))("map"),void 0,[y.default.factory.createArrowFunction(void 0,void 0,[p.IdentifierFactory.parameter("elem")],void 0,void 0,i(e)(d)(!1)(y.default.factory.createIdentifier("elem")))])):i(e)(d)(!1===c.nullable&&!1===c.isRequired())(y.default.factory.createCallExpression(y.default.factory.createIdentifier("input.get"),void 0,[y.default.factory.createStringLiteral(o)])))}},i=function(e){return function(t){return function(r){return function(n){var a=y.default.factory.createCallExpression(e.use(t),void 0,[n]);return r?y.default.factory.createBinaryExpression(a,y.default.factory.createToken(y.default.SyntaxKind.QuestionQuestionToken),y.default.factory.createIdentifier("undefined")):a}}}},u=function(e){return function(t){return function(r){return t.nullable||!1===t.isRequired()?y.default.factory.createCallExpression(e.use("array"),void 0,[r,t.nullable?y.default.factory.createNull():y.default.factory.createIdentifier("undefined")]):r}}}},24635:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("headers",d.HttpHeadersProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("headers"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("output")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},23262:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("query",d.HttpQueryProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("query"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("output")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},30535:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_COMPONENTS_PREFIX=void 0,t.JSON_COMPONENTS_PREFIX="#/components"},38379:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_array=void 0;var u=r(15566);t.application_array=function(e){return function(t){return function(r){var i=(0,u.application_schema)(e)(!1)(t)(r.type.value)({}),c={type:"array",items:null},out=function(e){return e.items=i,e};if(0===r.tags.length)return[out(c)];var f=r.tags.map(function(t){return application_array_tags(e)(n({},c))(t)});return o([],a(new Map(f.map(function(e){return[JSON.stringify(e),e]})).values()),!1).map(function(e){return out(e)})}}};var application_array_tags=function(e){return function(t){return function(r){var n,a;try{for(var o=i(r.slice().sort(function(e,t){return e.kind.localeCompare(t.kind)})),u=o.next();!u.done;u=o.next()){var c=u.value;"minItems"===c.kind&&"number"==typeof c.value?t.minItems=c.value:"maxItems"===c.kind&&"number"==typeof c.value&&(t.maxItems=c.value)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}return e.surplus&&(t["x-typia-typeTags"]=r.map(function(e){return{target:e.target,name:e.name,kind:e.kind,value:e.value,validate:e.validate,exclusive:e.exclusive}})),t}}}},70141:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_default=void 0,t.application_default=function(e){return function(t){return function(n){var a,o,i,u,c=(null!==(i=e["x-typia-jsDocTags"])&&void 0!==i?i:[]).filter(function(e){return"default"===e.name});try{for(var f=r(c),s=f.next();!s.done;s=f.next()){var d=s.value;if((null===(u=d.text)||void 0===u?void 0:u.length)&&t(d.text[0].text))return n(d.text[0].text)}}catch(e){a={error:e}}finally{try{s&&!s.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}}}}},21683:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_default_string=void 0;var a=r(1494);t.application_default_string=function(e){return function(t){return function(r){return(0,a.application_default)(t)(function(t){var a,o,i,u,c=[];e.atomics.find(function(e){return"number"===e.type||"bigint"===e.type})&&c.push(Number.isNaN(Number(t))),e.atomics.find(function(e){return"boolean"===e.type})&&c.push("true"!==t&&"false"!==t);try{for(var f=n(e.constants),s=f.next();!s.done;s=f.next()){var d=s.value;try{for(var y=(i=void 0,n(d.values)),p=y.next();!p.done;p=y.next()){var m=p.value;c.push(t!==m.toString())}}catch(e){i={error:e}}finally{try{p&&!p.done&&(u=y.return)&&u.call(y)}finally{if(i)throw i.error}}}}catch(e){a={error:e}}finally{try{s&&!s.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}return void 0!==r.minLength&&c.push(t.length>=r.minLength),void 0!==r.maxLength&&c.push(t.length<=r.maxLength),void 0!==r.pattern&&c.push(new RegExp(r.pattern).test(t)),c.every(function(e){return e})})(function(e){return e})}}}},16229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.application_escaped=void 0;var n=r(15566);t.application_escaped=function(e){return function(t){return function(r){return function(a){var o=(0,n.application_schema)(e)(t)(r)(a.returns)({});if(null===o)return[];if(is_date(new Set)(a.original)){var i=is_string(o)?o:is_one_of(o)?o.oneOf.find(is_string):void 0;void 0!==i&&"date"!==i.format&&"date-time"!==i.format&&(i.format="date-time")}return is_one_of(o)?o.oneOf:[o]}}}};var is_string=function(e){return"string"===e.type},is_one_of=function(e){return Array.isArray(e.oneOf)},is_date=function(e){return function(t){return!e.has(t)&&(e.add(t),t.natives.some(function(e){return"Date"===e})||t.arrays.some(function(t){return is_date(e)(t.type.value)})||t.tuples.some(function(t){return t.type.elements.some(is_date(e))})||t.aliases.some(function(t){return is_date(e)(t.value)}))}}},88072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.application_native=void 0;var n=r(30535);t.application_native=function(e){return function(t){return function(r){return function(a){var o,i,u,c,f="ajv"===e.purpose?r:"".concat(r).concat(a?".Nullable":"");return(null===(o=t.schemas)||void 0===o?void 0:o[f])===void 0&&(null!==(i=t.schemas)&&void 0!==i||(t.schemas={}),null!==(u=(c=t.schemas)[f])&&void 0!==u||(c[f]={type:"object",$id:"ajv"===e.purpose?"".concat(n.JSON_COMPONENTS_PREFIX,"/objects/").concat(f):void 0,properties:{},nullable:"swagger"===e.purpose?a:void 0})),{$ref:"".concat(n.JSON_COMPONENTS_PREFIX,"/objects/").concat(f)}}}}}},44286:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_number=void 0;var u=r(1494);t.application_number=function(e){return function(t){return function(r){var i={type:"number"},out=function(e){var t;return null!==(t=e.default)&&void 0!==t||(e.default=(0,u.application_default)(r)(function(t){var r=Number(t),n=[!Number.isNaN(r)];return void 0!==e.minimum&&(!0===e.exclusiveMinimum?n.push(r>e.minimum):n.push(r>=e.minimum)),void 0!==e.maximum&&(!0===e.exclusiveMaximum?n.push(r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.application_object=void 0;var i=r(37297),u=r(3078),c=r(28868),f=r(30535),s=r(15566),d=r(76555);t.application_object=function(e){return function(t){return function(r){return function(n){if(!0===r._Is_literal())return create_object_schema(e)(t)(r)(n);var a,o,i="ajv"===e.purpose?r.name:"".concat(r.name).concat(n?".Nullable":""),u="".concat(f.JSON_COMPONENTS_PREFIX,"/schemas/").concat(i);if((null===(a=t.schemas)||void 0===a?void 0:a[i])!==void 0)return{$ref:u};var c={$id:"ajv"===e.purpose?u:void 0};return null!==(o=t.schemas)&&void 0!==o||(t.schemas={}),t.schemas[i]=c,Object.assign(c,create_object_schema(e)(t)(r)(n)),{$ref:u}}}}};var create_object_schema=function(e){return function(t){return function(r){return function(u){var f,y,p,m,v,g={},_={patternProperties:{},additionalProperties:void 0},b=[];try{for(var x=a(r.properties),S=x.next();!S.done;S=x.next()){var T=S.value;!function(r){if(!(!0===r.value.functional&&!1===r.value.nullable&&!0===r.value.isRequired()&&0===r.value.size()||r.jsDocTags.find(function(e){return"hidden"===e.name}))){var a,o,u,f=r.key.getSoleLiteral(),y=(0,s.application_schema)(e)(!0)(t)(r.value)(n(n({deprecated:r.jsDocTags.some(function(e){return"deprecated"===e.name})||void 0,title:(null===(a=null==(o=r.jsDocTags.find(function(e){return"title"===e.name}))?void 0:o.text)||void 0===a?void 0:a.length)?i.CommentFactory.merge(o.text):void 0,description:null!==(p=r.description)&&void 0!==p?p:void 0},e.surplus?{"x-typia-required":r.value.required,"x-typia-optional":r.value.optional}:{}),{"x-typia-jsDocTags":(u=r.jsDocTags.filter(function(e){return"title"!==e.name&&"deprecated"!==e.name&&"hidden"!==e.name})).length?u:void 0}));if(null!==y){if(!1===e.surplus&&(null===(m=y["x-typia-jsDocTags"])||void 0===m?void 0:m.length)&&delete y["x-typia-jsDocTags"],null!==f)g[f]=y,!0===r.value.isRequired()&&b.push(f);else{var v=(0,d.metadata_to_pattern)(!0)(r.key);v===c.PatternUtil.STRING?_.additionalProperties=[r.value,y]:_.patternProperties[v]=[r.value,y]}}}}(T)}}catch(e){f={error:e}}finally{try{S&&!S.done&&(y=x.return)&&y.call(x)}finally{if(f)throw f.error}}var E={additionalProperties:null===(v=_.additionalProperties)||void 0===v?void 0:v[1],patternProperties:function(){if(0!==Object.keys(_.patternProperties).length){var e,t,r={};try{for(var n=a(Object.entries(_.patternProperties)),i=n.next();!i.done;i=n.next()){var u=o(i.value,2),c=u[0],f=u[1];r[c]=f[1]}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r}}()};return n(n({type:"object",properties:g,nullable:"swagger"===e.purpose?u:void 0,required:b.length?b:void 0,description:r.description},e.surplus?{"x-typia-jsDocTags":r.jsDocTags}:{}),"ajv"===e.purpose?E:e.surplus?{"x-typia-additionalProperties":E.additionalProperties,"x-typia-patternProperties":E.patternProperties,additionalProperties:join(e)(t)(_)}:{})}}}},join=function(e){return function(t){return function(r){var n,a=Object.values(r.patternProperties||{});if(r.additionalProperties&&a.push(r.additionalProperties),0!==a.length){if(1===a.length)return a[0][1];var o=a.map(function(e){return e[0]}).reduce(function(e,t){return u.Metadata.merge(e,t)});return null!==(n=(0,s.application_schema)(e)(!0)(t)(o)(e.surplus?{"x-typia-required":!1}:{}))&&void 0!==n?n:void 0}}}}},15566:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_schema=void 0;var o=r(45041),i=r(86752),u=r(38379),c=r(95333),f=r(70141),s=r(59672),d=r(16229),y=r(88072),p=r(44286),m=r(68725),v=r(24014),g=r(33502),_=r(30829);t.application_schema=function(e){return function(t){return function(r){return function(x){return function(S){if(!0===x.any)return n(n({},S),{type:void 0});if(x.nullable&&x.empty())return n({type:"null"},S);var T,E,w,P,j,I,A,F,M,O,C,N,R,L,U=[];x.nullable&&"swagger"!==e.purpose&&U.push(n(n({},S),{type:"null"}));var q=x.nullable&&"swagger"===e.purpose?function(e){return U.push(n(n({},e),{nullable:!!e.type||void 0}))}:function(e){return U.push(e)};null!==x.escaped&&(0,d.application_escaped)(e)(t)(r)(x.escaped).forEach(q),x.templates.length&&i.AtomicPredicator.template(x)&&q((0,g.application_templates)(x)(S));try{for(var z=a(x.constants),B=z.next();!B.done;B=z.next()){var H=B.value;if("bigint"===H.type)throw TypeError(b);"string"===H.type&&x.templates.length||!1===i.AtomicPredicator.constant(x)(H.type)||q((0,s.application_constant)(H)(S))}}catch(e){T={error:e}}finally{try{B&&!B.done&&(E=z.return)&&E.call(z)}finally{if(T)throw T.error}}try{for(var V=a(x.atomics),J=V.next();!J.done;J=V.next()){var G=J.value;if("bigint"===G.type)throw TypeError(b);"boolean"===G.type?(0,f.application_boolean)(e)(G)(S).forEach(q):"number"===G.type?(0,p.application_number)(e)(G)(S).forEach(q):"string"===G.type&&(0,v.application_string)(e)(x)(G)(S).forEach(q)}}catch(e){w={error:e}}finally{try{J&&!J.done&&(P=V.return)&&P.call(V)}finally{if(w)throw w.error}}try{for(var Q=a(x.arrays),W=Q.next();!W.done;W=Q.next()){var K=W.value;(0,c.application_array)(e)(r)(K).forEach(q)}}catch(e){j={error:e}}finally{try{W&&!W.done&&(I=Q.return)&&I.call(Q)}finally{if(j)throw j.error}}try{for(var Y=a(x.tuples),Z=Y.next();!Z.done;Z=Y.next()){var X=Z.value;q((0,_.application_tuple)(e)(r)(X)(S))}}catch(e){A={error:e}}finally{try{Z&&!Z.done&&(F=Y.return)&&F.call(Y)}finally{if(A)throw A.error}}try{for(var ee=a(x.natives),et=ee.next();!et.done;et=ee.next()){var er=et.value;!function(t){if(i.AtomicPredicator.native(t)){var n=t.toLowerCase();if(!x.atomics.some(function(e){return e.type===n})){if("bigint"===n)throw TypeError(b);"boolean"===n?q((0,f.application_boolean)(e)(o.MetadataAtomic.create({type:"boolean",tags:[]}))(S)[0]):"number"===n?q((0,p.application_number)(e)(o.MetadataAtomic.create({type:"number",tags:[]}))(S)[0]):"string"===n&&q((0,v.application_string)(e)(x)(o.MetadataAtomic.create({type:"string",tags:[]}))(S)[0])}}else q((0,y.application_native)(e)(r)(t)(x.nullable))}(er)}}catch(e){M={error:e}}finally{try{et&&!et.done&&(O=ee.return)&&O.call(ee)}finally{if(M)throw M.error}}x.sets.length&&q((0,y.application_native)(e)(r)("Set")(x.nullable)),x.maps.length&&q((0,y.application_native)(e)(r)("Map")(x.nullable));try{for(var en=a(x.objects),ea=en.next();!ea.done;ea=en.next()){var eo=ea.value;q((0,m.application_object)(e)(r)(eo)(x.nullable))}}catch(e){C={error:e}}finally{try{ea&&!ea.done&&(N=en.return)&&N.call(en)}finally{if(C)throw C.error}}try{for(var ei=a(x.aliases),eu=ei.next();!eu.done;eu=ei.next()){var ec=eu.value;q((0,u.application_alias)(e)(t)(r)(ec)(x.nullable))}}catch(e){R={error:e}}finally{try{eu&&!eu.done&&(L=ei.return)&&L.call(ei)}finally{if(R)throw R.error}}return 0===U.length?!0===t?null:n(n({},S),{type:void 0}):1===U.length?n(n({},U[0]),S):n({oneOf:U},S)}}}}};var b="Error on typia.application(): does not allow bigint type."},24014:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_string=void 0;var u=r(21683);t.application_string=function(e){return function(t){return function(r){return function(i){var c={type:"string"},out=function(e){var r;return null!==(r=e.default)&&void 0!==r||(e.default=(0,u.application_default_string)(t)(i)(c)),e};if(0===r.tags.length)return[out(c)];var f=r.tags.map(function(t){return application_string_tags(e)(n({},c))(t)});return o([],a(new Map(f.map(function(e){return[JSON.stringify(e),e]})).values()),!1).map(function(e){return out(e)})}}}};var application_string_tags=function(e){return function(t){return function(r){var n,a;try{for(var o=i(r.slice().sort(function(e,t){return e.kind.localeCompare(t.kind)})),u=o.next();!u.done;u=o.next()){var c=u.value;"minLength"===c.kind&&"number"==typeof c.value?t.minLength=c.value:"maxLength"===c.kind&&"number"==typeof c.value?t.maxLength=c.value:"format"===c.kind&&"string"==typeof c.value?t.format=c.value:"pattern"===c.kind?t.pattern=c.value:"default"===c.kind&&"string"==typeof c.value&&(t.default=c.value)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}return e.surplus&&(t["x-typia-typeTags"]=r.map(function(e){return{target:e.target,name:e.name,kind:e.kind,value:e.value,validate:e.validate,exclusive:e.exclusive}})),t}}}},33502:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.application_templates=void 0;var n=r(21683),a=r(76555);t.application_templates=function(e){return function(t){var r={type:"string"};return r.pattern=(0,a.metadata_to_pattern)(!0)(e),r.default=(0,n.application_default_string)(e)(t)(r),r}}},30829:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r & ".concat(t.name),expression:(null!==(a=t.predicate)&&void 0!==a?a:n.ExpressionFactory.transpile(e.context)(t.validate))(r)}})})}}}},67790:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.check_bigint=void 0;var a=n(r(55423)),o=r(73906);t.check_bigint=function(e){return function(t){return function(r){var n=check_bigint_type_tags(e)(t)(r);return{expected:t.getName(),expression:a.default.factory.createStrictEquality(a.default.factory.createStringLiteral("bigint"),a.default.factory.createTypeOfExpression(r)),conditions:n}}}};var check_bigint_type_tags=function(e){return function(t){return function(r){return t.tags.map(function(e){return e.filter(function(e){return!!e.validate})}).filter(function(e){return!!e.length}).map(function(t){return t.map(function(t){var n;return{expected:"bigint & ".concat(t.name),expression:(null!==(n=t.predicate)&&void 0!==n?n:o.ExpressionFactory.transpile(e.context)(t.validate))(r)}})})}}}},95013:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.metadata_to_pattern=void 0;var a=r(73346),o=r(28868),i=r(26290);t.metadata_to_pattern=function(e){return function(t){if(void 0!==t.atomics.find(function(e){return"string"===e.type}))return"(.*)";var r,u,c,f,s=a.ArrayUtil.flat(t.constants.map(function(e){return"string"!==e.type?e.values.map(function(e){return e.toString()}):e.values.map(function(e){return o.PatternUtil.escape(e)})}));try{for(var d=n(t.atomics),y=d.next();!y.done;y=d.next()){var p=y.value;"number"===p.type||"bigint"===p.type?s.push(o.PatternUtil.NUMBER):"boolean"===p.type&&s.push(o.PatternUtil.BOOLEAN)}}catch(e){r={error:e}}finally{try{y&&!y.done&&(u=d.return)&&u.call(d)}finally{if(r)throw r.error}}try{for(var m=n(t.templates),v=m.next();!v.done;v=m.next()){var g=v.value;s.push("("+(0,i.template_to_pattern)(!1)(g)+")")}}catch(e){c={error:e}}finally{try{v&&!v.done&&(f=m.return)&&f.call(m)}finally{if(c)throw c.error}}var _=1===s.length?s[0]:"("+s.join("|")+")";return e?o.PatternUtil.fix(_):_}}},19973:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.prune_object_properties=void 0;var a=n(r(55423)),o=r(6152),i=r(76555);t.prune_object_properties=function(e){var t=a.default.factory.createIdentifier("input"),r=a.default.factory.createIdentifier("key"),n=e.properties.map(function(e){var t=e.key.getSoleLiteral();return null!==t?a.default.factory.createStrictEquality(a.default.factory.createStringLiteral(t),a.default.factory.createIdentifier("key")):a.default.factory.createCallExpression(a.default.factory.createIdentifier("RegExp(/".concat((0,i.metadata_to_pattern)(!0)(e.key),"/).test")),void 0,[r])}),u=[];return n.length&&u.push(a.default.factory.createIfStatement(n.reduce(function(e,t){return a.default.factory.createLogicalOr(e,t)}),a.default.factory.createContinueStatement())),u.push(a.default.factory.createExpressionStatement(a.default.factory.createDeleteExpression(a.default.factory.createElementAccessExpression(t,r)))),a.default.factory.createForOfStatement(void 0,o.StatementFactory.constant("key").declarationList,a.default.factory.createCallExpression(a.default.factory.createIdentifier("Object.keys"),void 0,[t]),1===u.length?u[0]:a.default.factory.createBlock(u,!0))}},59573:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.random_custom=void 0;var a=n(r(55423)),o=r(73906),i=r(97846);t.random_custom=function(e){return function(t){return function(r){return function(n){return o.ExpressionFactory.coalesce(a.default.factory.createCallChain(a.default.factory.createPropertyAccessChain(e("customs"),a.default.factory.createToken(a.default.SyntaxKind.QuestionDotToken),a.default.factory.createIdentifier(t)),a.default.factory.createToken(a.default.SyntaxKind.QuestionDotToken),void 0,[i.LiteralFactory.generate(r.map(function(e){return{name:e.name,kind:e.kind,value:e.value}}))]))(n)}}}}},11430:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stringify_dynamic_properties=void 0;var o=a(r(55423)),i=r(61387),u=r(95374),c=r(76555);t.stringify_dynamic_properties=function(e,t){var r,a,u,f=[o.default.factory.createIfStatement(o.default.factory.createStrictEquality(o.default.factory.createIdentifier("undefined"),o.default.factory.createIdentifier("value")),o.default.factory.createReturnStatement(o.default.factory.createStringLiteral("")))],output=function(){var e=o.default.factory.createCallExpression(i.IdentifierFactory.access(o.default.factory.createCallExpression(o.default.factory.createIdentifier("Object.entries"),void 0,[o.default.factory.createIdentifier("input")]))("map"),void 0,[o.default.factory.createArrowFunction(void 0,void 0,[i.IdentifierFactory.parameter(o.default.factory.createArrayBindingPattern([o.default.factory.createBindingElement(void 0,void 0,"key"),o.default.factory.createBindingElement(void 0,void 0,"value")]),o.default.factory.createTypeReferenceNode("[string, any]"))],void 0,void 0,o.default.factory.createBlock(f))]),t=o.default.factory.createCallExpression(i.IdentifierFactory.access(e)("filter"),void 0,[o.default.factory.createArrowFunction(void 0,void 0,[i.IdentifierFactory.parameter("str")],void 0,void 0,o.default.factory.createStrictInequality(o.default.factory.createStringLiteral(""),o.default.factory.createIdentifier("str")))]);return o.default.factory.createCallExpression(i.IdentifierFactory.access(t)("join"),void 0,[o.default.factory.createStringLiteral(",")])};if(t.length&&f.push(o.default.factory.createIfStatement(o.default.factory.createCallExpression(i.IdentifierFactory.access(o.default.factory.createArrayLiteralExpression(t.map(function(e){return o.default.factory.createStringLiteral(e)})))("some"),void 0,[o.default.factory.createArrowFunction(void 0,void 0,[i.IdentifierFactory.parameter("regular")],void 0,void 0,o.default.factory.createStrictEquality(o.default.factory.createIdentifier("regular"),o.default.factory.createIdentifier("key")))]),o.default.factory.createReturnStatement(o.default.factory.createStringLiteral("")))),!0==(1===e.length&&1===e[0].key.size()&&(null===(u=e[0].key.atomics[0])||void 0===u?void 0:u.type)==="string"))return f.push(stringify(e[0])),output();try{for(var s=n(e),d=s.next();!d.done;d=s.next()){var y=d.value,p=o.default.factory.createIfStatement(o.default.factory.createCallExpression(o.default.factory.createIdentifier("RegExp(/".concat((0,c.metadata_to_pattern)(!0)(y.key),"/).test")),void 0,[o.default.factory.createIdentifier("key")]),stringify(y));f.push(p)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return f.push(o.default.factory.createReturnStatement(o.default.factory.createStringLiteral(""))),output()};var stringify=function(e){return o.default.factory.createReturnStatement(u.TemplateFactory.generate([o.default.factory.createCallExpression(o.default.factory.createIdentifier("JSON.stringify"),[],[o.default.factory.createIdentifier("key")]),o.default.factory.createStringLiteral(":"),e.expression]))}},11606:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")),void 0,i.default.factory.createBlock([f.StatementFactory.constant("assert",d.AssertProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("input"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("JSON.parse"),void 0,[i.default.factory.createIdentifier("input")]))),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("input")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},20433:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([f.StatementFactory.constant("is",d.IsProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("input"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("JSON.parse"),void 0,[i.default.factory.createIdentifier("input")]))),i.default.factory.createReturnStatement(i.default.factory.createConditionalExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("input")]),void 0,i.default.factory.createAsExpression(i.default.factory.createIdentifier("input"),s.TypeFactory.keyword("any")),void 0,i.default.factory.createNull()))]))}}}},5042:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},A=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},M=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonStringifyProgrammer=void 0;var O=M(r(55423)),C=r(73906),N=r(61387),R=r(67711),L=r(6152),U=r(12301),q=r(84411),z=r(3078),B=r(23879),H=r(45041),V=r(73346),J=r(12114),G=r(63348),Q=r(86752),W=r(31959),K=r(3306),Y=r(38252),Z=r(91934),X=r(97144),ee=r(60572),et=r(39687),er=r(11058),en=r(59714);(P||(t.JsonStringifyProgrammer=P={})).write=function(e){return function(t){var r=new W.FunctionImporter(t.getText()),n=T(e)(r);return J.FeatureProgrammer.write(e)(j(j({},n),{addition:function(n){return A(A([],I(G.IsProgrammer.write_function_statements(e)(r)(n)),!1),I(r.declare(t)),!1)}}))(r)}},n=function(e){return function(t){return function(r){return function(a,i,c){if(!0===i.any)return g(a,i,c)(b(a,i,c)(O.default.factory.createCallExpression(O.default.factory.createIdentifier("JSON.stringify"),void 0,[a])));if(0===i.size()&&(!1===i.isRequired()||!0===i.nullable))return!1===i.isRequired()&&!0===i.nullable?"array"===c.from?O.default.factory.createStringLiteral("null"):O.default.factory.createConditionalExpression(O.default.factory.createStrictEquality(O.default.factory.createNull(),a),void 0,O.default.factory.createStringLiteral("null"),void 0,O.default.factory.createIdentifier("undefined")):!1===i.isRequired()?"array"===c.from?O.default.factory.createStringLiteral("null"):O.default.factory.createIdentifier("undefined"):O.default.factory.createStringLiteral("null");var v,S,T,E,w,P,M,N,R,L=[];if(null!==i.escaped?L.push({type:"resolved",is:function(){return G.IsProgrammer.decode_to_json(!1)(a)},value:function(){return d(e)(t)(r)(a,i.escaped.returns,c)}}):!0===i.functional&&L.push({type:"functional",is:function(){return G.IsProgrammer.decode_functional(a)},value:function(){return y(c)}}),(i.templates.length||V.ArrayUtil.has(i.constants,function(e){return"string"===e.type}))&&Q.AtomicPredicator.template(i)){var q=z.Metadata.initialize();q.atomics.push(H.MetadataAtomic.create({type:"string",tags:[]})),L.push({type:"template literal",is:function(){return G.IsProgrammer.decode(e)(r)(a,q,c)},value:function(){return f(e)(r)(a,"string",c)}})}var _loop_1=function(t){if(!1===Q.AtomicPredicator.constant(i)(t.type))return"continue";"string"!==t.type?L.push({type:"atomic",is:function(){var n;return G.IsProgrammer.decode(e)(r)(a,((n=z.Metadata.initialize()).atomics.push(H.MetadataAtomic.create({type:t.type,tags:[]})),n),c)},value:function(){return f(e)(r)(a,t.type,c)}}):0===i.templates.length&&L.push({type:"const string",is:function(){var t;return G.IsProgrammer.decode(e)(r)(a,((t=z.Metadata.initialize()).atomics.push(H.MetadataAtomic.create({type:"string",tags:[]})),t),c)},value:function(){return s(e)(r)(a,A([],I(t.values),!1),c)}})};try{for(var B=F(i.constants),J=B.next();!J.done;J=B.next()){var W=J.value;_loop_1(W)}}catch(e){S={error:e}}finally{try{J&&!J.done&&(T=B.return)&&T.call(B)}finally{if(S)throw S.error}}var _loop_2=function(t){Q.AtomicPredicator.atomic(i)(t.type)&&L.push({type:"atomic",is:function(){var n;return G.IsProgrammer.decode(e)(r)(a,((n=z.Metadata.initialize()).atomics.push(t),n),c)},value:function(){return f(e)(r)(a,t.type,c)}})};try{for(var K=F(i.atomics),Z=K.next();!Z.done;Z=K.next()){var X=Z.value;_loop_2(X)}}catch(e){E={error:e}}finally{try{Z&&!Z.done&&(w=K.return)&&w.call(K)}finally{if(E)throw E.error}}var _loop_3=function(n){L.push({type:"tuple",is:function(){var t;return G.IsProgrammer.decode(e)(r)(a,((t=z.Metadata.initialize()).tuples.push(n),t),c)},value:function(){return u(e)(t)(r)(a,n,c)}})};try{for(var et=F(i.tuples),en=et.next();!en.done;en=et.next()){var ea=en.value;_loop_3(ea)}}catch(e){P={error:e}}finally{try{en&&!en.done&&(M=et.return)&&M.call(et)}finally{if(P)throw P.error}}if(i.arrays.length){var eo=1===i.arrays.length?function(){return o(t)(r)(a,i.arrays[0],j(j({},c),{from:"array"}))}:i.arrays.some(function(e){return e.type.value.any})?function(){return O.default.factory.createCallExpression(O.default.factory.createIdentifier("JSON.stringify"),void 0,[a])}:function(){return m(e)(t)(r)(a,i.arrays,j(j({},c),{from:"array"}))};L.push({type:"array",is:function(){return C.ExpressionFactory.isArray(a)},value:eo})}if(i.natives.length){var _loop_4=function(t){L.push({type:"object",is:function(){return(0,ee.check_native)(t)(a)},value:function(){return Q.AtomicPredicator.native(t)?f(e)(r)(a,t.toLowerCase(),c):O.default.factory.createStringLiteral("{}")}})};try{for(var ei=F(i.natives),eu=ei.next();!eu.done;eu=ei.next()){var ec=eu.value;_loop_4(ec)}}catch(e){N={error:e}}finally{try{eu&&!eu.done&&(R=ei.return)&&R.call(ei)}finally{if(N)throw N.error}}}i.sets.length&&L.push({type:"object",is:function(){return C.ExpressionFactory.isInstanceOf("Set")(a)},value:function(){return O.default.factory.createStringLiteral("{}")}}),i.maps.length&&L.push({type:"object",is:function(){return C.ExpressionFactory.isInstanceOf("Map")(a)},value:function(){return O.default.factory.createStringLiteral("{}")}}),i.objects.length&&L.push({type:"object",is:function(){return C.ExpressionFactory.isObject({checkNull:!0,checkArray:i.objects.some(function(e){return e.properties.every(function(e){return!e.key.isSoleLiteral()||!e.value.isRequired()})})})(a)},value:function(){var o,u;return!1===i.isParentResolved()&&1===i.objects.length&&i.objects[0]._Is_simple("top"===c.from?0:1)?(o=i.objects[0],u=(0,er.feature_object_entries)({decoder:function(){return n(e)(t)(r)},trace:!1,path:!1})(r)(o)(O.default.factory.createAsExpression(a,U.TypeFactory.keyword("any"))),Y.StringifyJoiner.object(r)(O.default.factory.createAsExpression(a,U.TypeFactory.keyword("any")),u)):p(t)(r)(a,i,j(j({},c),{from:"object"}))}});return 0===L.length?O.default.factory.createCallExpression(O.default.factory.createIdentifier("JSON.stringify"),void 0,[a]):(v=1===L.length?L[0].value():O.default.factory.createCallExpression(O.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,x(r,a,L,i.getName())),void 0,void 0),g(a,i,c)(_(a,i)(v)))}}}},a=function(e){return J.FeatureProgrammer.decode_object({trace:!1,path:!1,prefix:S})(e)},o=function(e){return function(t){return function(r,n,a){return n.type.recursive?O.default.factory.createCallExpression(O.default.factory.createIdentifier(t.useLocal("".concat(e.prefix,"a").concat(n.type.index))),void 0,J.FeatureProgrammer.argumentsArray(e)(j(j({},a),{source:"function",from:"array"}))(r)):i(e)(t)(r,n,a)}}},i=function(e){return function(t){return function(r,n,a){return J.FeatureProgrammer.decode_array(e)(t)(Y.StringifyJoiner.array)(r,n,a)}}},u=function(e){return function(t){return function(r){return function(n,a,o){return a.type.recursive?O.default.factory.createCallExpression(O.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,J.FeatureProgrammer.argumentsArray(t)(j(j({},o),{source:"function"}))(n)):c(e)(t)(r)(n,a.type,o)}}}},c=function(e){return function(t){return function(r){return function(a,o,i){var u=o.elements.filter(function(e){return null===e.rest}).map(function(o,u){return n(e)(t)(r)(O.default.factory.createElementAccessExpression(a,u),o,j(j({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(u,']"'):'"['.concat(u,']"')}))}),c=function(){if(0===o.elements.length||null===o.elements.at(-1).rest)return null;var u=n(e)(t)(r)(O.default.factory.createCallExpression(N.IdentifierFactory.access(a)("slice"),void 0,[C.ExpressionFactory.number(o.elements.length-1)]),(0,en.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),j(j({},i),{start:o.elements.length-1}));return O.default.factory.createCallExpression(r.use("rest"),void 0,[u])}();return Y.StringifyJoiner.tuple(u,c)}}}},f=function(e){return function(t){return function(r,n,a){return"string"===n?O.default.factory.createCallExpression(t.use("string"),void 0,[r]):("number"===n&&K.OptionPredicator.numeric(e.options)&&(r=O.default.factory.createCallExpression(t.use("number"),void 0,[r])),"top"!==a.from?r:O.default.factory.createCallExpression(N.IdentifierFactory.access(r)("toString"),void 0,void 0))}}},s=function(e){return function(t){return function(r,n,a){return n.every(function(e){return!Z.StringifyPredicator.require_escape(e)})?[O.default.factory.createStringLiteral('"'),r,O.default.factory.createStringLiteral('"')].reduce(function(e,t){return O.default.factory.createAdd(e,t)}):f(e)(t)(r,"string",a)}}},d=function(e){return function(t){return function(r){return function(a,o,i){return n(e)(t)(r)(O.default.factory.createCallExpression(N.IdentifierFactory.access(a)("toJSON"),void 0,[]),o,i)}}}},y=function(e){return"array"===e.from?O.default.factory.createStringLiteral("null"):O.default.factory.createIdentifier("undefined")},p=function(e){return function(t){return function(r,n,o){return 1===n.objects.length?a(t)(r,n.objects[0],o):O.default.factory.createCallExpression(O.default.factory.createIdentifier(t.useLocal("".concat(S,"u").concat(n.union_index))),void 0,J.FeatureProgrammer.argumentsArray(e)(o)(r))}}},m=function(e){return function(t){return function(r){return function(n,a,i){return v(t)(r)(X.UnionExplorer.array({checker:G.IsProgrammer.decode(e)(r),decoder:o(t)(r),empty:O.default.factory.createStringLiteral("[]"),success:O.default.factory.createTrue(),failure:function(e,t){return w(r)(t)(e)}}))(n,a,i)}}}},v=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&O.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=j(j({},o),{source:"function",from:"array"}),O.default.factory.createCallExpression(O.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(J.FeatureProgrammer.parameterDeclarations(e)(U.TypeFactory.keyword("any"))(O.default.factory.createIdentifier("input")))(j(j({},o),{postfix:""}))(O.default.factory.createIdentifier("input"))})),void 0,J.FeatureProgrammer.argumentsArray(e)(o)(n))}}}},g=function(e,t,r){return!0===t.isRequired()&&!1===t.any?function(e){return e}:function(t){return O.default.factory.createConditionalExpression(O.default.factory.createStrictInequality(O.default.factory.createIdentifier("undefined"),e),void 0,t,void 0,"array"===r.from?O.default.factory.createStringLiteral("null"):O.default.factory.createIdentifier("undefined"))}},_=function(e,t){return!1===t.nullable?function(e){return e}:function(t){return O.default.factory.createConditionalExpression(O.default.factory.createStrictInequality(O.default.factory.createNull(),e),void 0,t,void 0,O.default.factory.createStringLiteral("null"))}},b=function(e,t,r){return!1===t.functional?function(e){return e}:function(t){return O.default.factory.createConditionalExpression(O.default.factory.createStrictInequality(O.default.factory.createStringLiteral("function"),q.ValueFactory.TYPEOF(e)),void 0,t,void 0,y(r))}},x=function(e,t,r,n){return O.default.factory.createBlock(A(A([],I(r.map(function(e){return O.default.factory.createIfStatement(e.is(),O.default.factory.createReturnStatement(e.value()))})),!1),[w(e)(n)(t)],!1),!0)},S="$s",T=function(e){return function(t){var r={types:{input:function(t,r){return O.default.factory.createTypeReferenceNode(null!=r?r:U.TypeFactory.getFullName(e.checker)(t))},output:function(){return U.TypeFactory.keyword("string")}},prefix:S,trace:!1,path:!1,initializer:E,decoder:function(){return n(e)(r)(t)},objector:{checker:function(){return function(r,n,a){return G.IsProgrammer.decode(e)(t)(r,n,a)}},decoder:function(){return a(t)},joiner:Y.StringifyJoiner.object(t),unionizer:(0,et.decode_union_object)(G.IsProgrammer.decode_object(e)(t))(a(t))(function(e){return e})(function(e,r){return w(t)(r)(e)}),failure:function(e,r){return w(t)(r)(e)}},generator:{arrays:function(){return function(e){return e.arrays().filter(function(e){return e.recursive}).map(function(e,n){return L.StatementFactory.constant("".concat(r.prefix,"a").concat(n),O.default.factory.createArrowFunction(void 0,void 0,J.FeatureProgrammer.parameterDeclarations(r)(U.TypeFactory.keyword("any"))(O.default.factory.createIdentifier("input")),U.TypeFactory.keyword("any"),void 0,i(r)(t)(O.default.factory.createIdentifier("input"),B.MetadataArray.create({type:e,tags:[]}),{tracable:r.trace,source:"function",from:"array",postfix:""})))})}},tuples:function(){var n;return n=t,function(t){return t.tuples().filter(function(e){return e.recursive}).map(function(t,a){return L.StatementFactory.constant("".concat(r.prefix,"t").concat(a),O.default.factory.createArrowFunction(void 0,void 0,J.FeatureProgrammer.parameterDeclarations(r)(U.TypeFactory.keyword("any"))(O.default.factory.createIdentifier("input")),U.TypeFactory.keyword("any"),void 0,c(e)(r)(n)(O.default.factory.createIdentifier("input"),t,{tracable:r.trace,source:"function",from:"array",postfix:""})))})}}}};return r}},E=function(e){return function(t){return function(r){return R.JsonMetadataFactory.analyze("typia.json.".concat(t.method))(e.checker,e.context)(r)}}},w=function(e){return function(t){return function(r){return O.default.factory.createExpressionStatement(O.default.factory.createCallExpression(e.use("throws"),[],[O.default.factory.createObjectLiteralExpression([O.default.factory.createPropertyAssignment("expected",O.default.factory.createStringLiteral(t)),O.default.factory.createPropertyAssignment("value",r)],!0)]))}}}},78600:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([f.StatementFactory.constant("validate",d.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),f.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("JSON.parse"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("output")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},77284:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("stringify",d.JsonStringifyProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")]),f.TypeFactory.keyword("any"))),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("output.data"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("stringify"),void 0,[i.default.factory.createIdentifier("input")])))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},60962:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("assert",s.AssertProgrammer.write(e)(t)(!1)(r,n)),c.StatementFactory.constant("clone",d.MiscCloneProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),i.default.factory.createExpressionStatement(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("input")])),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("clone"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},98453:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},j=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},A=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MiscCloneProgrammer=void 0;var F=A(r(55423)),M=r(73906),O=r(61387),C=r(92595),N=r(43390),R=r(6152),L=r(12301),U=r(3078),q=r(23879),z=r(63664),B=r(12114),H=r(63348),V=r(1739),J=r(31959),G=r(97144),Q=r(39687),W=r(59714);(E||(t.MiscCloneProgrammer=E={})).write=function(e){return function(t){var r=new J.FunctionImporter(t.getText());return B.FeatureProgrammer.write(e)(w(w({},x(e)(r)),{addition:function(n){return j(j([],P(H.IsProgrammer.write_function_statements(e)(r)(n)),!1),P(r.declare(t)),!1)}}))(r)}},n=function(e){return function(t){return function(r){return function(n,a,o){if(a.any||a.arrays.some(function(e){return e.type.value.any})||a.tuples.some(function(e){return!!e.type.elements.length&&e.type.elements.every(function(e){return e.any})}))return F.default.factory.createCallExpression(r.use("any"),void 0,[n]);var i,c,s,d,y,_,b=[];a.functional&&b.push({type:"functional",is:function(){return F.default.factory.createStrictEquality(F.default.factory.createStringLiteral("function"),F.default.factory.createTypeOfExpression(n))},value:function(){return F.default.factory.createIdentifier("undefined")}});var _loop_1=function(a){b.push({type:"tuple",is:function(){var t;return H.IsProgrammer.decode(e)(r)(n,((t=U.Metadata.initialize()).tuples.push(a),t),o)},value:function(){return u(e)(t)(r)(n,a,o)}})};try{for(var x=I(a.tuples),S=x.next();!S.done;S=x.next()){var T=S.value;_loop_1(T)}}catch(e){i={error:e}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(i)throw i.error}}a.arrays.length&&b.push({type:"array",is:function(){return M.ExpressionFactory.isArray(n)},value:function(){return g(e)(t)(r)(n,a.arrays,w(w({},o),{from:"array"}))}}),a.sets.length&&b.push({type:"set",is:function(){return M.ExpressionFactory.isInstanceOf("Set")(n)},value:function(){return p(e)(t)(r)(n,a.sets,w(w({},o),{from:"array"}))}}),a.maps.length&&b.push({type:"map",is:function(){return M.ExpressionFactory.isInstanceOf("Map")(n)},value:function(){return m(e)(t)(r)(n,a.maps,w(w({},o),{from:"array"}))}});var _loop_2=function(e){b.push({type:"native",is:function(){return M.ExpressionFactory.isInstanceOf(e)(n)},value:function(){return"Boolean"===e||"Number"===e||"String"===e?F.default.factory.createCallExpression(O.IdentifierFactory.access(n)("valueOf"),void 0,void 0):f(e)(n)}})};try{for(var E=I(a.natives),P=E.next();!P.done;P=E.next()){var j=P.value;_loop_2(j)}}catch(e){s={error:e}}finally{try{P&&!P.done&&(d=E.return)&&d.call(E)}finally{if(s)throw s.error}}a.objects.length&&b.push({type:"object",is:function(){return M.ExpressionFactory.isObject({checkNull:!0,checkArray:!1})(n)},value:function(){return v(t)(r)(n,a,w(w({},o),{from:"object"}))}});var A=n;try{for(var C=I(b.reverse()),N=C.next();!N.done;N=C.next()){var R=N.value;A=F.default.factory.createConditionalExpression(R.is(),void 0,R.value(),void 0,A)}}catch(e){y={error:e}}finally{try{N&&!N.done&&(_=C.return)&&_.call(C)}finally{if(y)throw y.error}}return F.default.factory.createAsExpression(A,L.TypeFactory.keyword("any"))}}}},a=function(e){return B.FeatureProgrammer.decode_object({trace:!1,path:!1,prefix:b})(e)},o=function(e){return function(t){return function(r,n,a){return n.type.recursive?F.default.factory.createCallExpression(F.default.factory.createIdentifier(t.useLocal("".concat(e.prefix,"a").concat(n.type.index))),void 0,B.FeatureProgrammer.argumentsArray(e)(w(w({},a),{source:"function",from:"array"}))(r)):i(e)(t)(r,n,a)}}},i=function(e){return function(t){return function(r,n,a){return B.FeatureProgrammer.decode_array(e)(t)(V.CloneJoiner.array)(r,n,a)}}},u=function(e){return function(t){return function(r){return function(n,a,o){return a.type.recursive?F.default.factory.createCallExpression(F.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,B.FeatureProgrammer.argumentsArray(t)(w(w({},o),{source:"function"}))(n)):c(e)(t)(r)(n,a.type,o)}}}},c=function(e){return function(t){return function(r){return function(a,o,i){var u=o.elements.filter(function(e){return null===e.rest}).map(function(o,u){return n(e)(t)(r)(F.default.factory.createElementAccessExpression(a,u),o,w(w({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(u,']"'):'"['.concat(u,']"')}))}),c=0===o.elements.length||null===o.elements.at(-1).rest?null:n(e)(t)(r)(F.default.factory.createCallExpression(O.IdentifierFactory.access(a)("slice"),void 0,[M.ExpressionFactory.number(o.elements.length-1)]),(0,W.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),w(w({},i),{start:o.elements.length-1}));return V.CloneJoiner.tuple(u,c)}}}},f=function(e){return function(t){return"Date"===e||"Uint8Array"===e||"Uint8ClampedArray"===e||"Uint16Array"===e||"Uint32Array"===e||"BigUint64Array"===e||"Int8Array"===e||"Int16Array"===e||"Int32Array"===e||"BigInt64Array"===e||"Float32Array"===e||"Float64Array"===e?s(e)(t):"ArrayBuffer"===e||"SharedArrayBuffer"===e?d(e)(t):"DataView"===e?y(t):F.default.factory.createCallExpression(F.default.factory.createIdentifier(e),void 0,[])}},s=function(e){return function(t){return F.default.factory.createNewExpression(F.default.factory.createIdentifier(e),void 0,[t])}},d=function(e){return function(t){return M.ExpressionFactory.selfCall(F.default.factory.createBlock([R.StatementFactory.constant("buffer",F.default.factory.createNewExpression(F.default.factory.createIdentifier(e),void 0,[O.IdentifierFactory.access(t)("byteLength")])),F.default.factory.createExpressionStatement(F.default.factory.createCallExpression(O.IdentifierFactory.access(F.default.factory.createNewExpression(F.default.factory.createIdentifier("Uint8Array"),void 0,[F.default.factory.createIdentifier("buffer")]))("set"),void 0,[F.default.factory.createNewExpression(F.default.factory.createIdentifier("Uint8Array"),void 0,[t])])),F.default.factory.createReturnStatement(F.default.factory.createIdentifier("buffer"))],!0))}},y=function(e){return F.default.factory.createNewExpression(F.default.factory.createIdentifier("DataView"),void 0,[O.IdentifierFactory.access(e)("buffer")])},p=function(e){return function(t){return function(r){return function(n,a,i){return F.default.factory.createCallExpression(G.UnionExplorer.set({checker:H.IsProgrammer.decode(e)(r),decoder:function(e,n,a){return F.default.factory.createNewExpression(F.default.factory.createIdentifier("Set"),[L.TypeFactory.keyword("any")],[o(t)(r)(e,n,a)])},empty:F.default.factory.createNewExpression(F.default.factory.createIdentifier("Set"),[L.TypeFactory.keyword("any")],[]),success:F.default.factory.createTrue(),failure:function(e,t){return T(r)(t)(e)}})([])(n,a,i),void 0,void 0)}}}},m=function(e){return function(t){return function(r){return function(n,a,i){return F.default.factory.createCallExpression(G.UnionExplorer.map({checker:function(t,n,a){var o=H.IsProgrammer.decode(e)(r);return F.default.factory.createLogicalAnd(o(F.default.factory.createElementAccessExpression(t,0),n[0],w(w({},a),{postfix:"".concat(a.postfix,"[0]")})),o(F.default.factory.createElementAccessExpression(t,1),n[1],w(w({},a),{postfix:"".concat(a.postfix,"[1]")})))},decoder:function(e,n,a){return F.default.factory.createNewExpression(F.default.factory.createIdentifier("Map"),[L.TypeFactory.keyword("any"),L.TypeFactory.keyword("any")],[o(t)(r)(e,n,a)])},empty:F.default.factory.createNewExpression(F.default.factory.createIdentifier("Map"),[L.TypeFactory.keyword("any"),L.TypeFactory.keyword("any")],[]),success:F.default.factory.createTrue(),failure:function(e,t){return T(r)(t)(e)}})([])(n,a,i),void 0,void 0)}}}},v=function(e){return function(t){return function(r,n,o){return 1===n.objects.length?a(t)(r,n.objects[0],o):F.default.factory.createCallExpression(F.default.factory.createIdentifier(t.useLocal("".concat(b,"u").concat(n.union_index))),void 0,B.FeatureProgrammer.argumentsArray(e)(o)(r))}}},g=function(e){return function(t){return function(r){return function(n,a,i){return _(t)(r)(G.UnionExplorer.array({checker:H.IsProgrammer.decode(e)(r),decoder:o(t)(r),empty:F.default.factory.createIdentifier("[]"),success:F.default.factory.createTrue(),failure:function(e,t){return T(r)(t)(e)}}))(n,a,i)}}}},_=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&F.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=w(w({},o),{source:"function",from:"array"}),F.default.factory.createCallExpression(F.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(B.FeatureProgrammer.parameterDeclarations(e)(L.TypeFactory.keyword("any"))(F.default.factory.createIdentifier("input")))(w(w({},o),{postfix:""}))(F.default.factory.createIdentifier("input"))})),void 0,B.FeatureProgrammer.argumentsArray(e)(o)(n))}}}},b="$c",x=function(e){return function(t){var r={types:{input:function(t,r){return F.default.factory.createTypeReferenceNode(null!=r?r:L.TypeFactory.getFullName(e.checker)(t))},output:function(t,r){return F.default.factory.createTypeReferenceNode("typia.Resolved<".concat(null!=r?r:L.TypeFactory.getFullName(e.checker)(t),">"))}},prefix:b,trace:!1,path:!1,initializer:S,decoder:function(){return n(e)(r)(t)},objector:{checker:function(){return H.IsProgrammer.decode(e)(t)},decoder:function(){return a(t)},joiner:V.CloneJoiner.object,unionizer:(0,Q.decode_union_object)(H.IsProgrammer.decode_object(e)(t))(a(t))(function(e){return e})(function(e,r){return T(t)(r)(e)}),failure:function(e,r){return T(t)(r)(e)}},generator:{arrays:function(){return function(e){return e.arrays().filter(function(e){return e.recursive}).map(function(e,n){return R.StatementFactory.constant("".concat(r.prefix,"a").concat(n),F.default.factory.createArrowFunction(void 0,void 0,B.FeatureProgrammer.parameterDeclarations(r)(L.TypeFactory.keyword("any"))(F.default.factory.createIdentifier("input")),L.TypeFactory.keyword("any"),void 0,i(r)(t)(F.default.factory.createIdentifier("input"),q.MetadataArray.create({type:e,tags:[]}),{tracable:r.trace,source:"function",from:"array",postfix:""})))})}},tuples:function(){var n;return n=t,function(t){return t.tuples().filter(function(e){return e.recursive}).map(function(t,a){return R.StatementFactory.constant("".concat(r.prefix,"t").concat(a),F.default.factory.createArrowFunction(void 0,void 0,B.FeatureProgrammer.parameterDeclarations(r)(L.TypeFactory.keyword("any"))(F.default.factory.createIdentifier("input")),L.TypeFactory.keyword("any"),void 0,c(e)(r)(n)(F.default.factory.createIdentifier("input"),t,{tracable:r.trace,source:"function",from:"array",postfix:""})))})}}}};return r}},S=function(e){return function(t){return function(r){var n=new C.MetadataCollection,a=N.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0,validate:function(e){var t=[];return e.natives.some(function(e){return"WeakSet"===e})?t.push("unable to clone WeakSet"):e.natives.some(function(e){return"WeakMap"===e})&&t.push("unable to clone WeakMap"),t}})(n)(r);if(!1===a.success)throw z.TransformerError.from("typia.misc.".concat(t.method))(a.errors);return[n,a.data]}}},T=function(e){return function(t){return function(r){return F.default.factory.createExpressionStatement(F.default.factory.createCallExpression(e.use("throws"),[],[F.default.factory.createObjectLiteralExpression([F.default.factory.createPropertyAssignment("expected",F.default.factory.createStringLiteral(t)),F.default.factory.createPropertyAssignment("value",r)],!0)]))}}}},94286:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),i.default.factory.createLiteralTypeNode(i.default.factory.createNull())]),void 0,i.default.factory.createBlock([c.StatementFactory.constant("is",s.IsProgrammer.write(e)(t)(!1)(r,n)),c.StatementFactory.constant("clone",d.MiscCloneProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),i.default.factory.createIfStatement(i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.ExclamationToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createNull())),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("clone"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},12311:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},x=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},T=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MiscPruneProgrammer=void 0;var E=T(r(55423)),w=r(73906),P=r(61387),j=r(92595),I=r(43390),A=r(6152),F=r(12301),M=r(3078),O=r(23879),C=r(63664),N=r(12114),R=r(63348),L=r(31959),U=r(3065),q=r(97144),z=r(39687),B=r(59714);(g||(t.MiscPruneProgrammer=g={})).write=function(e){return function(t){var r=new L.FunctionImporter(t.getText());return N.FeatureProgrammer.write(e)(_(_({},p(e)(r)),{addition:function(n){return x(x([],b(R.IsProgrammer.write_function_statements(e)(r)(n)),!1),b(r.declare(t)),!1)}}))(r)}},n=function(e){return function(t){return function(r){return function(n,a,o){if(!1===d(a))return E.default.factory.createBlock([]);var u,s,y,p,m=[],_loop_1=function(a){m.push({type:"tuple",is:function(){var t;return R.IsProgrammer.decode(e)(r)(n,((t=M.Metadata.initialize()).tuples.push(a),t),o)},value:function(){return i(e)(t)(r)(n,a,o)}})};try{for(var v=S(a.tuples.filter(function(e){return e.type.elements.some(function(e){var t;return d(null!==(t=e.rest)&&void 0!==t?t:e)})})),g=v.next();!g.done;g=v.next()){var b=g.value;_loop_1(b)}}catch(e){u={error:e}}finally{try{g&&!g.done&&(s=v.return)&&s.call(v)}finally{if(u)throw u.error}}if(a.arrays.filter(function(e){return d(e.type.value)}).length&&m.push({type:"array",is:function(){return w.ExpressionFactory.isArray(n)},value:function(){return f(e)(t)(r)(n,a.arrays,_(_({},o),{from:"array"}))}}),a.natives.length){var _loop_2=function(e){m.push({type:"native",is:function(){return w.ExpressionFactory.isInstanceOf(e)(n)},value:function(){return E.default.factory.createReturnStatement()}})};try{for(var x=S(a.natives),T=x.next();!T.done;T=x.next()){var P=T.value;_loop_2(P)}}catch(e){y={error:e}}finally{try{T&&!T.done&&(p=x.return)&&p.call(x)}finally{if(y)throw y.error}}}a.sets.length&&m.push({type:"set",is:function(){return w.ExpressionFactory.isInstanceOf("Set")(n)},value:function(){return E.default.factory.createReturnStatement()}}),a.maps.length&&m.push({type:"map",is:function(){return w.ExpressionFactory.isInstanceOf("Map")(n)},value:function(){return E.default.factory.createReturnStatement()}}),a.objects.length&&m.push({type:"object",is:function(){return w.ExpressionFactory.isObject({checkNull:!0,checkArray:!1})(n)},value:function(){return c(t)(r)(n,a,_(_({},o),{from:"object"}))}});var j=m.map(function(e){var t;return E.default.factory.createIfStatement(e.is(),(t=e.value(),E.default.isReturnStatement(t)||E.default.isBlock(t)?t:E.default.factory.createExpressionStatement(t)))});return E.default.factory.createBlock(j,!0)}}}},a=function(e){return N.FeatureProgrammer.decode_object({trace:!1,path:!1,prefix:y})(e)},o=function(e){return function(t){return function(r,n,a){return N.FeatureProgrammer.decode_array(e)(t)(U.PruneJoiner.array)(r,n,a)}}},i=function(e){return function(t){return function(r){return function(n,a,o){return a.type.recursive?E.default.factory.createCallExpression(E.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,N.FeatureProgrammer.argumentsArray(t)(_(_({},o),{source:"function"}))(n)):u(e)(t)(r)(n,a.type,o)}}}},u=function(e){return function(t){return function(r){return function(a,o,i){var u=o.elements.map(function(e,t){return[e,t]}).filter(function(e){var t=b(e,1)[0];return d(t)&&null===t.rest}).map(function(o){var u=b(o,2),c=u[0],f=u[1];return n(e)(t)(r)(E.default.factory.createElementAccessExpression(a,f),c,_(_({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(f,']"'):'"['.concat(f,']"')}))}),c=function(){if(0===o.elements.length)return null;var u=o.elements.at(-1).rest;return null===u||!1===d(u)?null:n(e)(t)(r)(E.default.factory.createCallExpression(P.IdentifierFactory.access(a)("slice"),void 0,[w.ExpressionFactory.number(o.elements.length-1)]),(0,B.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),_(_({},i),{start:o.elements.length-1}))}();return U.PruneJoiner.tuple(u,c)}}}},c=function(e){return function(t){return function(r,n,o){return 1===n.objects.length?a(t)(r,n.objects[0],o):E.default.factory.createCallExpression(E.default.factory.createIdentifier(t.useLocal("".concat(y,"u").concat(n.union_index))),void 0,N.FeatureProgrammer.argumentsArray(e)(o)(r))}}},f=function(e){return function(t){return function(r){return function(n,a,i){return s(t)(r)(q.UnionExplorer.array({checker:R.IsProgrammer.decode(e)(r),decoder:function(e,n,a){return n.type.recursive?E.default.factory.createCallExpression(E.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"a").concat(n.type.index))),void 0,N.FeatureProgrammer.argumentsArray(t)(_(_({},a),{source:"function",from:"array"}))(e)):o(t)(r)(e,n,a)},empty:E.default.factory.createStringLiteral("[]"),success:E.default.factory.createTrue(),failure:function(e,t){return v(r)(t)(e)}}))(n,a,i)}}}},s=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&E.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=_(_({},o),{source:"function",from:"array"}),E.default.factory.createCallExpression(E.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(N.FeatureProgrammer.parameterDeclarations(e)(F.TypeFactory.keyword("any"))(E.default.factory.createIdentifier("input")))(_(_({},o),{postfix:""}))(E.default.factory.createIdentifier("input"))})),void 0,N.FeatureProgrammer.argumentsArray(e)(o)(n))}}}},d=function(e){return!1===e.any&&(0!==e.objects.length||e.tuples.some(function(e){return!!e.type.elements.length&&e.type.elements.some(function(e){var t;return d(null!==(t=e.rest)&&void 0!==t?t:e)})})||e.arrays.some(function(e){return d(e.type.value)}))},y="$p",p=function(e){return function(t){var r={types:{input:function(t,r){return E.default.factory.createTypeReferenceNode(null!=r?r:F.TypeFactory.getFullName(e.checker)(t))},output:function(){return F.TypeFactory.keyword("void")}},prefix:y,trace:!1,path:!1,initializer:m,decoder:function(){return n(e)(r)(t)},objector:{checker:function(){return R.IsProgrammer.decode(e)(t)},decoder:function(){return a(t)},joiner:U.PruneJoiner.object,unionizer:(0,z.decode_union_object)(R.IsProgrammer.decode_object(e)(t))(a(t))(function(e){return e})(function(e,r){return v(t)(r)(e)}),failure:function(e,r){return v(t)(r)(e)}},generator:{arrays:function(){return function(e){return e.arrays().filter(function(e){return e.recursive}).map(function(e,n){return A.StatementFactory.constant("".concat(r.prefix,"a").concat(n),E.default.factory.createArrowFunction(void 0,void 0,N.FeatureProgrammer.parameterDeclarations(r)(F.TypeFactory.keyword("any"))(E.default.factory.createIdentifier("input")),F.TypeFactory.keyword("any"),void 0,o(r)(t)(E.default.factory.createIdentifier("input"),O.MetadataArray.create({type:e,tags:[]}),{tracable:r.trace,source:"function",from:"array",postfix:""})))})}},tuples:function(){var n;return n=t,function(t){return t.tuples().filter(function(e){return e.recursive}).map(function(t,a){return A.StatementFactory.constant("".concat(r.prefix,"t").concat(a),E.default.factory.createArrowFunction(void 0,void 0,N.FeatureProgrammer.parameterDeclarations(r)(F.TypeFactory.keyword("any"))(E.default.factory.createIdentifier("input")),F.TypeFactory.keyword("any"),void 0,u(e)(r)(n)(E.default.factory.createIdentifier("input"),t,{tracable:r.trace,source:"function",from:"array",postfix:""})))})}}}};return r}},m=function(e){return function(t){return function(r){var n=new j.MetadataCollection,a=I.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0})(n)(r);if(!1===a.success)throw C.TransformerError.from("typia.misc.".concat(t.method))(a.errors);return[n,a.data]}}},v=function(e){return function(t){return function(r){return E.default.factory.createExpressionStatement(E.default.factory.createCallExpression(e.use("throws"),[],[E.default.factory.createObjectLiteralExpression([E.default.factory.createPropertyAssignment("expected",E.default.factory.createStringLiteral(t)),E.default.factory.createPropertyAssignment("value",r)],!0)]))}}}},66129:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("clone",d.MiscCloneProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")]),f.TypeFactory.keyword("any"))),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("output.data"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("clone"),void 0,[i.default.factory.createIdentifier("input")])))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},90705:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("prune",d.MiscPruneProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createCallExpression(i.default.factory.createIdentifier("prune"),void 0,[i.default.factory.createIdentifier("input")]))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},60454:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},w=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},j=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotationGeneralProgrammer=void 0;var I=j(r(55423)),A=r(73906),F=r(61387),M=r(92595),O=r(43390),C=r(6152),N=r(12301),R=r(3078),L=r(23879),U=r(63664),q=r(85422),z=r(12114),B=r(63348),H=r(31959),V=r(94492),J=r(97144),G=r(39687),Q=r(59714);(n=S||(t.NotationGeneralProgrammer=S={})).returnType=function(e){return function(t){return"typia.".concat(q.StringUtil.capitalize(e.name),"Case<").concat(t,">")}},n.write=function(e){return function(t){return function(r){var n=new H.FunctionImporter(r.getText());return z.FeatureProgrammer.write(t)(T(T({},_(e)(t)(n)),{addition:function(e){return w(w([],E(B.IsProgrammer.write_function_statements(t)(n)(e)),!1),E(n.declare(r)),!1)}}))(n)}}},a=function(e){return function(t){return function(r){return function(n,a,o){if(a.any||a.arrays.some(function(e){return e.type.value.any})||a.tuples.some(function(e){return!!e.type.elements.length&&e.type.elements.every(function(e){return e.any})}))return I.default.factory.createCallExpression(r.use("any"),void 0,[n]);var i,u,f,v,g,_,b=[];a.functional&&b.push({type:"functional",is:function(){return I.default.factory.createStrictEquality(I.default.factory.createStringLiteral("function"),I.default.factory.createTypeOfExpression(n))},value:function(){return I.default.factory.createIdentifier("undefined")}});var _loop_1=function(a){b.push({type:"tuple",is:function(){var t;return B.IsProgrammer.decode(e)(r)(n,((t=R.Metadata.initialize()).tuples.push(a),t),o)},value:function(){return c(e)(t)(r)(n,a,o)}})};try{for(var x=P(a.tuples),S=x.next();!S.done;S=x.next()){var E=S.value;_loop_1(E)}}catch(e){i={error:e}}finally{try{S&&!S.done&&(u=x.return)&&u.call(x)}finally{if(i)throw i.error}}a.arrays.length&&b.push({type:"array",is:function(){return A.ExpressionFactory.isArray(n)},value:function(){return m(e)(t)(r)(n,a.arrays,T(T({},o),{from:"array"}))}}),a.sets.length&&b.push({type:"set",is:function(){return A.ExpressionFactory.isInstanceOf("Set")(n)},value:function(){return d(e)(t)(r)(n,a.sets,T(T({},o),{from:"array"}))}}),a.maps.length&&b.push({type:"map",is:function(){return A.ExpressionFactory.isInstanceOf("Map")(n)},value:function(){return y(e)(t)(r)(n,a.maps,T(T({},o),{from:"array"}))}});var _loop_2=function(e){if("WeakSet"===e||"WeakMap"===e)return"continue";b.push({type:"native",is:function(){return A.ExpressionFactory.isInstanceOf(e)(n)},value:function(){return"Boolean"===e||"Number"===e||"String"===e?I.default.factory.createCallExpression(F.IdentifierFactory.access(n)("valueOf"),void 0,void 0):s(e)(n)}})};try{for(var w=P(a.natives),j=w.next();!j.done;j=w.next()){var M=j.value;_loop_2(M)}}catch(e){f={error:e}}finally{try{j&&!j.done&&(v=w.return)&&v.call(w)}finally{if(f)throw f.error}}a.objects.length&&b.push({type:"object",is:function(){return A.ExpressionFactory.isObject({checkNull:!0,checkArray:!1})(n)},value:function(){return p(t)(r)(n,a,T(T({},o),{from:"object"}))}});var O=n;try{for(var C=P(b.reverse()),L=C.next();!L.done;L=C.next()){var U=L.value;O=I.default.factory.createConditionalExpression(U.is(),void 0,U.value(),void 0,O)}}catch(e){g={error:e}}finally{try{L&&!L.done&&(_=C.return)&&_.call(C)}finally{if(g)throw g.error}}return I.default.factory.createAsExpression(O,N.TypeFactory.keyword("any"))}}}},o=function(e){return z.FeatureProgrammer.decode_object({trace:!1,path:!1,prefix:g})(e)},i=function(e){return function(t){return function(r,n,a){return n.type.recursive?I.default.factory.createCallExpression(I.default.factory.createIdentifier(t.useLocal("".concat(e.prefix,"a").concat(n.type.index))),void 0,z.FeatureProgrammer.argumentsArray(e)(T(T({},a),{source:"function",from:"array"}))(r)):u(e)(t)(r,n,a)}}},u=function(e){return function(t){return function(r,n,a){return z.FeatureProgrammer.decode_array(e)(t)(V.NotationJoiner.array)(r,n,a)}}},c=function(e){return function(t){return function(r){return function(n,a,o){return a.type.recursive?I.default.factory.createCallExpression(I.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,z.FeatureProgrammer.argumentsArray(t)(T(T({},o),{source:"function"}))(n)):f(e)(t)(r)(n,a.type,o)}}}},f=function(e){return function(t){return function(r){return function(n,o,i){var u=o.elements.filter(function(e){return null===e.rest}).map(function(o,u){return a(e)(t)(r)(I.default.factory.createElementAccessExpression(n,u),o,T(T({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(u,']"'):'"['.concat(u,']"')}))}),c=0===o.elements.length||null===o.elements.at(-1).rest?null:a(e)(t)(r)(I.default.factory.createCallExpression(F.IdentifierFactory.access(n)("slice"),void 0,[A.ExpressionFactory.number(o.elements.length-1)]),(0,Q.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),T(T({},i),{start:o.elements.length-1}));return V.NotationJoiner.tuple(u,c)}}}},s=function(e){return function(t){return"Date"===e?I.default.factory.createNewExpression(I.default.factory.createIdentifier(e),void 0,[t]):t}},d=function(e){return function(t){return function(r){return function(n,a,o){return I.default.factory.createCallExpression(J.UnionExplorer.set({checker:B.IsProgrammer.decode(e)(r),decoder:function(e,n,a){return I.default.factory.createNewExpression(I.default.factory.createIdentifier("Set"),[N.TypeFactory.keyword("any")],[i(t)(r)(e,n,a)])},empty:I.default.factory.createNewExpression(I.default.factory.createIdentifier("Set"),[N.TypeFactory.keyword("any")],[]),success:I.default.factory.createTrue(),failure:function(e,t){return x(r)(t)(e)}})([])(n,a,o),void 0,void 0)}}}},y=function(e){return function(t){return function(r){return function(n,a,o){return I.default.factory.createCallExpression(J.UnionExplorer.map({checker:function(t,n,a){var o=B.IsProgrammer.decode(e)(r);return I.default.factory.createLogicalAnd(o(I.default.factory.createElementAccessExpression(t,0),n[0],T(T({},a),{postfix:"".concat(a.postfix,"[0]")})),o(I.default.factory.createElementAccessExpression(t,1),n[1],T(T({},a),{postfix:"".concat(a.postfix,"[1]")})))},decoder:function(e,n,a){return I.default.factory.createNewExpression(I.default.factory.createIdentifier("Map"),[N.TypeFactory.keyword("any"),N.TypeFactory.keyword("any")],[i(t)(r)(e,n,a)])},empty:I.default.factory.createNewExpression(I.default.factory.createIdentifier("Map"),[N.TypeFactory.keyword("any"),N.TypeFactory.keyword("any")],[]),success:I.default.factory.createTrue(),failure:function(e,t){return x(r)(t)(e)}})([])(n,a,o),void 0,void 0)}}}},p=function(e){return function(t){return function(r,n,a){return 1===n.objects.length?o(t)(r,n.objects[0],a):I.default.factory.createCallExpression(I.default.factory.createIdentifier(t.useLocal("".concat(g,"u").concat(n.union_index))),void 0,z.FeatureProgrammer.argumentsArray(e)(a)(r))}}},m=function(e){return function(t){return function(r){return function(n,a,o){return v(t)(r)(J.UnionExplorer.array({checker:B.IsProgrammer.decode(e)(r),decoder:i(t)(r),empty:I.default.factory.createIdentifier("[]"),success:I.default.factory.createTrue(),failure:function(e,t){return x(r)(t)(e)}}))(n,a,o)}}}},v=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&I.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=T(T({},o),{source:"function",from:"array"}),I.default.factory.createCallExpression(I.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(z.FeatureProgrammer.parameterDeclarations(e)(N.TypeFactory.keyword("any"))(I.default.factory.createIdentifier("input")))(T(T({},o),{postfix:""}))(I.default.factory.createIdentifier("input"))})),void 0,z.FeatureProgrammer.argumentsArray(e)(o)(n))}}}},g="$c",_=function(e){return function(t){return function(r){var i={types:{input:function(e,r){return I.default.factory.createTypeReferenceNode(null!=r?r:N.TypeFactory.getFullName(t.checker)(e))},output:function(r,a){return I.default.factory.createTypeReferenceNode(n.returnType(e)(null!=a?a:N.TypeFactory.getFullName(t.checker)(r)))}},prefix:g,trace:!1,path:!1,initializer:b,decoder:function(){return a(t)(i)(r)},objector:{checker:function(){return B.IsProgrammer.decode(t)(r)},decoder:function(){return o(r)},joiner:V.NotationJoiner.object(e),unionizer:(0,G.decode_union_object)(B.IsProgrammer.decode_object(t)(r))(o(r))(function(e){return e})(function(e,t){return x(r)(t)(e)}),failure:function(e,t){return x(r)(t)(e)}},generator:{arrays:function(){return function(e){return e.arrays().filter(function(e){return e.recursive}).map(function(e,t){return C.StatementFactory.constant("".concat(i.prefix,"a").concat(t),I.default.factory.createArrowFunction(void 0,void 0,z.FeatureProgrammer.parameterDeclarations(i)(N.TypeFactory.keyword("any"))(I.default.factory.createIdentifier("input")),N.TypeFactory.keyword("any"),void 0,u(i)(r)(I.default.factory.createIdentifier("input"),L.MetadataArray.create({type:e,tags:[]}),{tracable:i.trace,source:"function",from:"array",postfix:""})))})}},tuples:function(){var e;return e=r,function(r){return r.tuples().filter(function(e){return e.recursive}).map(function(r,n){return C.StatementFactory.constant("".concat(i.prefix,"t").concat(n),I.default.factory.createArrowFunction(void 0,void 0,z.FeatureProgrammer.parameterDeclarations(i)(N.TypeFactory.keyword("any"))(I.default.factory.createIdentifier("input")),N.TypeFactory.keyword("any"),void 0,f(t)(i)(e)(I.default.factory.createIdentifier("input"),r,{tracable:i.trace,source:"function",from:"array",postfix:""})))})}}}};return i}}},b=function(e){return function(t){return function(r){var n=new M.MetadataCollection,a=O.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0})(n)(r);if(!1===a.success)throw U.TransformerError.from("typia.misc.".concat(t.method))(a.errors);return[n,a.data]}}},x=function(e){return function(t){return function(r){return I.default.factory.createExpressionStatement(I.default.factory.createCallExpression(e.use("throws"),[],[I.default.factory.createObjectLiteralExpression([I.default.factory.createPropertyAssignment("expected",I.default.factory.createStringLiteral(t)),I.default.factory.createPropertyAssignment("value",r)],!0)]))}}}},97172:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},t),{options:a(a({},t.options),{functional:!1,numeric:!0})}))(r)(!1)(n,o)),c.StatementFactory.constant("general",d.NotationGeneralProgrammer.write(e)(a(a({},t),{options:a(a({},t.options),{functional:!1,numeric:!1})}))(r)(n,o)),c.StatementFactory.constant("output",i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")]),f.TypeFactory.keyword("any"))),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("output.data"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("general"),void 0,[i.default.factory.createIdentifier("input")])))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}}},38162:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("decode",d.ProtobufDecodeProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("assert",s.AssertProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("output")]),f.TypeFactory.keyword("any")))]))}}}},77717:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},_=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProtobufDecodeProgrammer=void 0;var S=x(r(55423)),T=r(73906),E=r(61387),w=r(92595),P=r(43390),j=r(74123),I=r(6152),A=r(12301),F=r(3078),M=r(45041),O=r(56724),C=r(31959),N=r(96188);(m||(t.ProtobufDecodeProgrammer=m={})).write=function(e){return function(t){return function(r,a){var o=new C.FunctionImporter(t.getText()),i=new w.MetadataCollection,u=j.ProtobufFactory.metadata(t.getText())(e.checker,e.context)(i)(r),c=i.objects().filter(function(e){return N.ProtobufUtil.isStaticObject(e)}).map(function(t){return I.StatementFactory.constant("".concat(R,"o").concat(t.index),n(e)(o)(t))}),f=I.StatementFactory.constant("reader",S.default.factory.createNewExpression(o.use("Reader"),void 0,[S.default.factory.createIdentifier("input")]));return S.default.factory.createArrowFunction(void 0,void 0,[E.IdentifierFactory.parameter("input",S.default.factory.createTypeReferenceNode("Uint8Array"))],S.default.factory.createTypeReferenceNode("typia.Resolved<".concat(null!=a?a:A.TypeFactory.getFullName(e.checker)(r),">")),void 0,S.default.factory.createBlock(_(_(_([],g(o.declare(t)),!1),g(c),!1),[f,S.default.factory.createReturnStatement(s(!0)(u.objects[0]))],!1),!0))}}},n=function(e){return function(t){return function(r){return S.default.factory.createArrowFunction(void 0,void 0,[E.IdentifierFactory.parameter("reader"),E.IdentifierFactory.parameter("length",A.TypeFactory.keyword("number"),T.ExpressionFactory.number(-1))],A.TypeFactory.keyword("any"),void 0,S.default.factory.createBlock(_(_([S.default.factory.createExpressionStatement(S.default.factory.createBinaryExpression(S.default.factory.createIdentifier("length"),S.default.factory.createToken(S.default.SyntaxKind.EqualsToken),S.default.factory.createConditionalExpression(S.default.factory.createLessThan(S.default.factory.createIdentifier("length"),T.ExpressionFactory.number(0)),void 0,S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("size"),void 0,void 0),void 0,S.default.factory.createAdd(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0),S.default.factory.createIdentifier("length")))))],g(a(e)(t)({condition:S.default.factory.createLessThan(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0),S.default.factory.createIdentifier("length")),tag:"tag",output:"output"})(r.properties)),!1),[S.default.factory.createReturnStatement(S.default.factory.createIdentifier("output"))],!1),!0))}}},a=function(e){return function(t){return function(r){return function(n){var a=1,u=n.map(function(n){var o=i(e)(t)(a)(E.IdentifierFactory.access(S.default.factory.createIdentifier(r.output))(n.key.getSoleLiteral()),n.value);return a+=N.ProtobufUtil.size(n.value),o}).flat();return[I.StatementFactory.constant(r.output,S.default.factory.createAsExpression(S.default.factory.createObjectLiteralExpression(n.filter(function(t){return!(!0===e.compilerOptions.exactOptionalPropertyTypes&&!0===t.value.optional)}).map(function(e){return S.default.factory.createPropertyAssignment(E.IdentifierFactory.identifier(e.key.getSoleLiteral()),o(e.value))}),!0),A.TypeFactory.keyword("any"))),S.default.factory.createWhileStatement(r.condition,S.default.factory.createBlock([I.StatementFactory.constant(r.tag,S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("uint32"),void 0,void 0)),S.default.factory.createSwitchStatement(S.default.factory.createUnsignedRightShift(S.default.factory.createIdentifier(r.tag),T.ExpressionFactory.number(3)),S.default.factory.createCaseBlock(_(_([],g(u),!1),[S.default.factory.createDefaultClause([S.default.factory.createExpressionStatement(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("skipType"),void 0,[S.default.factory.createBitwiseAnd(S.default.factory.createIdentifier(r.tag),T.ExpressionFactory.number(7))])),S.default.factory.createBreakStatement()])],!1)))]))]}}}},o=function(e){return S.default.factory.createAsExpression(e.nullable?S.default.factory.createNull():!1===e.isRequired()?S.default.factory.createIdentifier("undefined"):e.arrays.length?S.default.factory.createArrayLiteralExpression():e.maps.length?S.default.factory.createNewExpression(S.default.factory.createIdentifier("Map"),void 0,[]):e.natives.length?S.default.factory.createNewExpression(S.default.factory.createIdentifier("Uint8Array"),void 0,[]):e.atomics.some(function(e){return"string"===e.type})||e.constants.some(function(e){return"string"===e.type&&e.values.some(function(e){return""===e})})||e.templates.some(function(e){return 1===e.length&&"string"===e[0].getName()})?S.default.factory.createStringLiteral(""):e.objects.length&&e.objects.some(function(e){return!N.ProtobufUtil.isStaticObject(e)})?S.default.factory.createObjectLiteralExpression():S.default.factory.createIdentifier("undefined"),A.TypeFactory.keyword("any"))},i=function(e){return function(t){return function(r){return function(n,a){var o,i,p,m,v,x,E,w,P=[],emplace=function(e){return function(t){return P.push(S.default.factory.createCaseClause(T.ExpressionFactory.number(r++),Array.isArray(t)?_(_([S.default.factory.createExpressionStatement(S.default.factory.createIdentifier("// type: ".concat(e)))],g(t),!1),[S.default.factory.createBreakStatement()],!1):[S.default.factory.createExpressionStatement(S.default.factory.createIdentifier("// ".concat(e))),S.default.factory.createExpressionStatement(S.default.factory.createBinaryExpression(n,S.default.factory.createToken(S.default.SyntaxKind.EqualsToken),t)),S.default.factory.createBreakStatement()]))}},j=a.isRequired()&&!a.nullable;try{for(var I=b(N.ProtobufUtil.getAtomics(a)),A=I.next();!A.done;A=I.next()){var F=A.value;emplace(F)(u(a)(F))}}catch(e){o={error:e}}finally{try{A&&!A.done&&(i=I.return)&&i.call(I)}finally{if(o)throw o.error}}a.natives.length&&emplace("bytes")(c("bytes"));try{for(var M=b(a.arrays),O=M.next();!O.done;O=M.next()){var C=O.value;emplace("Array<".concat(C.type.value.getName(),">"))(f(n,C,j))}}catch(e){p={error:e}}finally{try{O&&!O.done&&(m=M.return)&&m.call(M)}finally{if(p)throw p.error}}try{for(var R=b(a.maps),L=R.next();!L.done;L=R.next()){var U=L.value;emplace("Map"))(y(e)(t)(n,U,j))}}catch(e){v={error:e}}finally{try{L&&!L.done&&(x=R.return)&&x.call(R)}finally{if(v)throw v.error}}try{for(var q=b(a.objects),z=q.next();!z.done;z=q.next()){var B=z.value;emplace(B.name)(N.ProtobufUtil.isStaticObject(B)?s(!1)(B):d(e)(t)(n,B,j))}}catch(e){E={error:e}}finally{try{z&&!z.done&&(w=q.return)&&w.call(q)}finally{if(E)throw E.error}}return P}}}},u=function(e){return function(t){if("string"===t)return c("string");var r=S.default.factory.createCallExpression(E.IdentifierFactory.access(S.default.factory.createIdentifier("reader"))(t),void 0,void 0);return"int64"!==t&&"uint64"!==t?r:N.ProtobufUtil.getNumbers(e).some(function(e){return e===t})?S.default.factory.createCallExpression(S.default.factory.createIdentifier("Number"),void 0,[r]):r}},c=function(e){return S.default.factory.createCallExpression(E.IdentifierFactory.access(S.default.factory.createIdentifier("reader"))(e),void 0,void 0)},f=function(e,t,r){var n=[];!1===r&&n.push(S.default.factory.createBinaryExpression(e,S.default.factory.createToken(S.default.SyntaxKind.QuestionQuestionEqualsToken),S.default.factory.createAsExpression(S.default.factory.createArrayLiteralExpression(),S.default.factory.createTypeReferenceNode("any[]"))));var a=N.ProtobufUtil.getAtomics(t.type.value),o=a.length?function(){return u(t.type.value)(a[0])}:t.type.value.natives.length?function(){return c("bytes")}:t.type.value.objects.length?function(){return s(!1)(t.type.value.objects[0])}:null;if(null===o)throw Error("Never reach here.");return a.length&&"string"!==a[0]?n.push(S.default.factory.createIfStatement(S.default.factory.createStrictEquality(T.ExpressionFactory.number(2),S.default.factory.createBitwiseAnd(S.default.factory.createIdentifier("tag"),T.ExpressionFactory.number(7))),S.default.factory.createBlock([I.StatementFactory.constant("piece",S.default.factory.createAdd(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("uint32"),void 0,void 0),S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0))),S.default.factory.createWhileStatement(S.default.factory.createLessThan(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0),S.default.factory.createIdentifier("piece")),S.default.factory.createExpressionStatement(S.default.factory.createCallExpression(E.IdentifierFactory.access(e)("push"),void 0,[o()])))],!0),S.default.factory.createExpressionStatement(S.default.factory.createCallExpression(E.IdentifierFactory.access(e)("push"),void 0,[o()])))):n.push(S.default.factory.createCallExpression(E.IdentifierFactory.access(e)("push"),void 0,[o()])),n.map(function(e){return S.default.isExpression(e)?S.default.factory.createExpressionStatement(e):e})},s=function(e){return function(t){return S.default.factory.createCallExpression(S.default.factory.createIdentifier("".concat(R,"o").concat(t.index)),void 0,_([S.default.factory.createIdentifier("reader")],g(e?[]:[S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("uint32"),void 0,void 0)]),!1))}},d=function(e){return function(t){return function(r,n,a){var o,i=n.properties[0];return p(e)(t)({initializer:function(){return S.default.factory.createBinaryExpression(r,S.default.factory.createToken(S.default.SyntaxKind.QuestionQuestionEqualsToken),S.default.factory.createObjectLiteralExpression())},setter:function(){return S.default.factory.createBinaryExpression(S.default.factory.createElementAccessExpression(r,S.default.factory.createIdentifier("entry.key")),S.default.factory.createToken(S.default.SyntaxKind.EqualsToken),S.default.factory.createIdentifier("entry.value"))}})(O.MetadataProperty.create(v(v({},i),{key:((o=F.Metadata.initialize()).atomics.push(M.MetadataAtomic.create({type:"string",tags:[]})),o)})),a)}}},y=function(e){return function(t){return function(r,n,a){return p(e)(t)({initializer:function(){return S.default.factory.createBinaryExpression(r,S.default.factory.createToken(S.default.SyntaxKind.QuestionQuestionEqualsToken),S.default.factory.createNewExpression(S.default.factory.createIdentifier("Map"),[A.TypeFactory.keyword("any"),A.TypeFactory.keyword("any")],[]))},setter:function(){return S.default.factory.createCallExpression(E.IdentifierFactory.access(r)("set"),void 0,[S.default.factory.createIdentifier("entry.key"),S.default.factory.createIdentifier("entry.value")])}})(n,a)}}},p=function(e){return function(t){return function(r){return function(n,o){var i=_(_(_(_([],g(o?[]:[S.default.factory.createExpressionStatement(r.initializer())]),!1),[I.StatementFactory.constant("piece",S.default.factory.createAdd(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("uint32"),void 0,void 0),S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0)))],!1),g(a(e)(t)({condition:S.default.factory.createLessThan(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0),S.default.factory.createIdentifier("piece")),tag:"kind",output:"entry"})([O.MetadataProperty.create({key:P.MetadataFactory.soleLiteral("key"),value:n.key,description:null,jsDocTags:[]}),O.MetadataProperty.create({key:P.MetadataFactory.soleLiteral("value"),value:n.value,description:null,jsDocTags:[]})])),!1),[S.default.factory.createExpressionStatement(r.setter())],!1);return[S.default.factory.createExpressionStatement(T.ExpressionFactory.selfCall(S.default.factory.createBlock(i,!0)))]}}}};var R="$pd",READER=function(){return S.default.factory.createIdentifier("reader")}},84282:function(e,t,r){"use strict";var n,a,o,i,u,c,f,s,d,y,p,m,v,g,_,b,x,S,T=this&&this.__assign||function(){return(T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},w=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},j=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProtobufEncodeProgrammer=void 0;var I=j(r(55423)),A=r(73906),F=r(61387),M=r(92595),O=r(84981),C=r(74123),N=r(6152),R=r(12301),L=r(3078),U=r(45041),q=r(56724),z=r(63348),B=r(31959),H=r(96188),V=r(99560),J=r(39687);(S||(t.ProtobufEncodeProgrammer=S={})).write=function(e){return function(t){return function(r,a){var o=new B.FunctionImporter(t.getText()),i=new M.MetadataCollection,u=C.ProtobufFactory.metadata(t.getText())(e.checker,e.context)(i)(r),callEncoder=function(e){return function(t){return N.StatementFactory.constant(e,I.default.factory.createCallExpression(I.default.factory.createIdentifier("encoder"),void 0,[t]))}},c=[N.StatementFactory.constant("encoder",n(e)(o)(i)(u)),callEncoder("sizer")(I.default.factory.createNewExpression(o.use("Sizer"),void 0,[])),callEncoder("writer")(I.default.factory.createNewExpression(o.use("Writer"),void 0,[I.default.factory.createIdentifier("sizer")])),I.default.factory.createReturnStatement(I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())("buffer"),void 0,void 0))];return I.default.factory.createArrowFunction(void 0,void 0,[F.IdentifierFactory.parameter("input",I.default.factory.createTypeReferenceNode(null!=a?a:R.TypeFactory.getFullName(e.checker)(r)))],I.default.factory.createTypeReferenceNode("Uint8Array"),void 0,I.default.factory.createBlock(w(w([],E(o.declare(t,!1)),!1),E(c),!1),!0))}}},n=function(e){return function(t){return function(r){return function(n){var i=r.objects().filter(function(e){return H.ProtobufUtil.isStaticObject(e)}).map(function(r){return N.StatementFactory.constant("".concat(b,"o").concat(r.index),a(e)(t)(I.default.factory.createIdentifier("input"),r,{source:"function",from:"object",tracable:!1,postfix:""}))}),u=o(e)(t)(null)(I.default.factory.createIdentifier("input"),n,{source:"top",from:"top",tracable:!1,postfix:""});return I.default.factory.createArrowFunction(void 0,void 0,[F.IdentifierFactory.parameter("writer")],R.TypeFactory.keyword("any"),void 0,I.default.factory.createBlock(w(w(w(w(w([],E(t.declareUnions()),!1),E(i),!1),E(z.IsProgrammer.write_function_statements(e)(t)(r)),!1),E(u.statements),!1),[I.default.factory.createReturnStatement(I.default.factory.createIdentifier("writer"))],!1),!0))}}}},a=function(e){return function(t){return function(r,n,a){var i=1,u=n.properties.map(function(n){var u=o(e)(t)(i)(F.IdentifierFactory.access(r)(n.key.getSoleLiteral()),n.value,a);return i+=H.ProtobufUtil.size(n.value),w([I.default.factory.createExpressionStatement(I.default.factory.createIdentifier('// property "'.concat(n.key.getSoleLiteral(),'"')))],E(u.statements),!1)}).flat();return I.default.factory.createArrowFunction(void 0,void 0,[F.IdentifierFactory.parameter("input")],R.TypeFactory.keyword("any"),void 0,I.default.factory.createBlock(u,!0))}}},o=function(e){return function(t){return function(r){return function(n,a,o){var c,m,v=a.isRequired()&&!1===a.nullable?function(e){return e}:!1===a.isRequired()&&!0===a.nullable?function(e){return I.default.factory.createBlock([I.default.factory.createIfStatement(I.default.factory.createLogicalAnd(I.default.factory.createStrictInequality(I.default.factory.createIdentifier("undefined"),n),I.default.factory.createStrictInequality(I.default.factory.createNull(),n)),e)],!0)}:!1===a.isRequired()?function(e){return I.default.factory.createBlock([I.default.factory.createIfStatement(I.default.factory.createStrictInequality(I.default.factory.createIdentifier("undefined"),n),e)],!0)}:function(e){return I.default.factory.createBlock([I.default.factory.createIfStatement(I.default.factory.createStrictInequality(I.default.factory.createNull(),n),e)],!0)},g=[],b=H.ProtobufUtil.getNumbers(a),x=H.ProtobufUtil.getBigints(a),_loop_1=function(e){"bool"===e?g.push({type:"bool",is:function(){return I.default.factory.createStrictEquality(I.default.factory.createStringLiteral("boolean"),I.default.factory.createTypeOfExpression(n))},value:function(e){return s(e)(n)}}):"int32"===e||"uint32"===e||"float"===e||"double"===e?g.push(d(b)(e)(n)):"int64"===e||"uint64"===e?b.some(function(t){return t===e})?g.push(d(b)(e)(n)):g.push(y(x)(e)(n)):"string"===e&&g.push({type:"string",is:function(){return I.default.factory.createStrictEquality(I.default.factory.createStringLiteral("string"),I.default.factory.createTypeOfExpression(n))},value:function(e){return p("string")(e)(n)}})};try{for(var S=P(H.ProtobufUtil.getAtomics(a)),E=S.next();!E.done;E=S.next()){var w=E.value;_loop_1(w)}}catch(e){c={error:e}}finally{try{E&&!E.done&&(m=S.return)&&m.call(S)}finally{if(c)throw c.error}}return v((a.natives.length&&g.push({type:"bytes",is:function(){return A.ExpressionFactory.isInstanceOf("Uint8Array")(n)},value:function(e){return p("bytes")(e)(n)}}),a.arrays.length&&g.push({type:"array",is:function(){return A.ExpressionFactory.isArray(n)},value:function(r){return f(e)(t)(r)(n,a.arrays[0],T(T({},o),{from:"array"}))}}),a.maps.length&&g.push({type:"map",is:function(){return A.ExpressionFactory.isInstanceOf("Map")(n)},value:function(r){return u(e)(t)(r)(n,a.maps[0],T(T({},o),{from:"array"}))}}),a.objects.length&&g.push({type:"object",is:function(){return A.ExpressionFactory.isObject({checkNull:!0,checkArray:!1})(n)},value:function(r){return _(e)(t)(0)(r)(n,a.objects,T(T({},o),{from:"object"}))}}),1===g.length)?g[0].value(r):i(t)(r)(g)(a.getName())(n))}}}},i=function(e){return function(t){return function(r){return function(n){return function(a){return I.default.factory.createBlock([r.map(function(o,i){return I.default.factory.createIfStatement(o.is(),o.value(t?t+i:null),i===r.length-1?x(e)(n)(a):void 0)}).reverse().reduce(function(e,t){return I.default.factory.createIfStatement(t.expression,t.thenStatement,e)})],!0)}}}}},u=function(e){return function(t){return function(r){return function(n,a,i){var u=w(w(w([I.default.factory.createExpressionStatement(m(2)(r)),I.default.factory.createExpressionStatement(I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())("fork"),void 0,void 0))],E(o(e)(t)(1)(I.default.factory.createIdentifier("key"),a.key,i).statements),!1),E(o(e)(t)(2)(I.default.factory.createIdentifier("value"),a.value,i).statements),!1),[I.default.factory.createExpressionStatement(I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())("ldelim"),void 0,void 0))],!1);return I.default.factory.createBlock([I.default.factory.createForOfStatement(void 0,N.StatementFactory.entry("key")("value"),n,I.default.factory.createBlock(u))],!0)}}}},c=function(e){return function(t){return function(r){return function(n,a,o){var i,c=a.properties[0];return!1===c.key.isSoleLiteral()?u(e)(t)(r)(I.default.factory.createCallExpression(I.default.factory.createIdentifier("Object.entries"),[],[n]),q.MetadataProperty.create(T(T({},c),{key:((i=L.Metadata.initialize()).atomics.push(U.MetadataAtomic.create({type:"string",tags:[]})),i)})),o):I.default.factory.createBlock(w(w(w([I.default.factory.createIdentifier("//".concat(null!==r?" ".concat(r," -> "):"").concat(a.name))],E(null!==r?[m(2)(r),I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())("fork"),void 0,void 0)]:[]),!1),[I.default.factory.createCallExpression(I.default.factory.createIdentifier(t.useLocal("".concat(b,"o").concat(a.index))),[],[n])],!1),E(null!==r?[I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())("ldelim"),void 0,void 0)]:[]),!1).map(function(e){return I.default.factory.createExpressionStatement(e)}),!0)}}}},f=function(e){return function(t){return function(r){return function(n,a,i){var u,c=v(a.type.value),forLoop=function(r){return I.default.factory.createForOfStatement(void 0,I.default.factory.createVariableDeclarationList([I.default.factory.createVariableDeclaration("elem")],I.default.NodeFlags.Const),n,o(e)(t)(r)(I.default.factory.createIdentifier("elem"),a.type.value,i))};return u=2===c?I.default.factory.createBlock([forLoop(r)],!0):I.default.factory.createBlock([I.default.factory.createExpressionStatement(m(2)(r)),I.default.factory.createExpressionStatement(I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())("fork"),void 0,void 0)),forLoop(null),I.default.factory.createExpressionStatement(I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())("ldelim"),void 0,void 0))],!0),I.default.factory.createBlock([I.default.factory.createIfStatement(I.default.factory.createStrictInequality(A.ExpressionFactory.number(0),F.IdentifierFactory.access(n)("length")),u)],!0)}}}},s=function(e){return function(t){return I.default.factory.createBlock(w(w([],E(null!==e?[m(0)(e)]:[]),!1),[I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())("bool"),void 0,[t])],!1).map(function(e){return I.default.factory.createExpressionStatement(e)}),!0)}},d=function(e){return function(t){return function(r){return{type:t,is:function(){return 1===e.length?I.default.factory.createStrictEquality(I.default.factory.createStringLiteral("number"),I.default.factory.createTypeOfExpression(r)):I.default.factory.createLogicalAnd(I.default.factory.createStrictEquality(I.default.factory.createStringLiteral("number"),I.default.factory.createTypeOfExpression(r)),O.NumericRangeFactory.number(t)(r))},value:function(e){return I.default.factory.createBlock(w(w([],E(null!==e?[m(g(t))(e)]:[]),!1),[I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())(t),void 0,[r])],!1).map(function(e){return I.default.factory.createExpressionStatement(e)}),!0)}}}}},y=function(e){return function(t){return function(r){return{type:t,is:function(){return 1===e.length?I.default.factory.createStrictEquality(I.default.factory.createStringLiteral("bigint"),I.default.factory.createTypeOfExpression(r)):I.default.factory.createLogicalAnd(I.default.factory.createStrictEquality(I.default.factory.createStringLiteral("bigint"),I.default.factory.createTypeOfExpression(r)),O.NumericRangeFactory.bigint(t)(r))},value:function(e){return I.default.factory.createBlock(w(w([],E(null!==e?[m(0)(e)]:[]),!1),[I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())(t),void 0,[r])],!1).map(function(e){return I.default.factory.createExpressionStatement(e)}),!0)}}}}},p=function(e){return function(t){return function(r){return I.default.factory.createBlock([m(2)(t),I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())(e),void 0,[r])].map(function(e){return I.default.factory.createExpressionStatement(e)}),!0)}}},m=function(e){return function(t){return I.default.factory.createCallExpression(F.IdentifierFactory.access(WRITER())("uint32"),void 0,[A.ExpressionFactory.number(t<<3|e)])}},v=function(e){if(e.arrays.length||e.objects.length||e.maps.length||e.natives.length)return 2;var t=H.ProtobufUtil.getAtomics(e)[0];return"string"===t?2:"bool"===t||"int32"===t||"uint32"===t||"int64"===t||"uint64"===t?0:"float"===t?5:1},g=function(e){return"double"===e?1:"float"===e?5:0},_=function(e){return function(t){return function(r){return function(n){return function(a,o,i,u){if(1===o.length)return c(e)(t)(u?u.get(o[0]):n)(a,o[0],i);var f="(".concat(o.map(function(e){return e.name}).join(" | "),")"),s=V.UnionPredicator.object(o);if(null!=u||(u=new Map(o.map(function(e,t){return[e,n+t]}))),0===s.length){var d=(0,J.decode_union_object)(z.IsProgrammer.decode_object(e)(t))(function(r,n,a){return A.ExpressionFactory.selfCall(c(e)(t)(u.get(n))(r,n,a))})(function(e){return e})(function(e,r){return x(t)(r)(e)})(a,o,i);return N.StatementFactory.block(d)}var y=o.filter(function(e){return void 0===s.find(function(t){return t.object===e})}),p=s.filter(function(e){return null!==e.property.key.getSoleLiteral()}).map(function(o,s,d){var p=o.property.key.getSoleLiteral(),m=F.IdentifierFactory.access(a)(p),v=o.neighbour?z.IsProgrammer.decode(e)(t)(m,o.property.value,T(T({},i),{tracable:!1,postfix:F.IdentifierFactory.postfix(p)})):A.ExpressionFactory.isRequired(m);return I.default.factory.createIfStatement(v,I.default.factory.createExpressionStatement(A.ExpressionFactory.selfCall(c(e)(t)(u.get(o.object))(a,o.object,i))),s===d.length-1?y.length?I.default.factory.createExpressionStatement(A.ExpressionFactory.selfCall(_(e)(t)(r+1)(n)(a,y,i,u))):x(t)(f)(a):void 0)}).reverse().reduce(function(e,t){return I.default.factory.createIfStatement(t.expression,t.thenStatement,e)});return I.default.factory.createBlock([p],!0)}}}}},b="$pe",x=function(e){return function(t){return function(r){return I.default.factory.createExpressionStatement(I.default.factory.createCallExpression(e.use("throws"),[],[I.default.factory.createObjectLiteralExpression([I.default.factory.createPropertyAssignment("expected",I.default.factory.createStringLiteral(t)),I.default.factory.createPropertyAssignment("value",r)],!0)]))}}};var WRITER=function(){return I.default.factory.createIdentifier("writer")}},49466:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),i.default.factory.createLiteralTypeNode(i.default.factory.createNull())]),void 0,i.default.factory.createBlock([c.StatementFactory.constant("is",s.IsProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.ProtobufDecodeProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createIfStatement(i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.ExclamationToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("output")])),i.default.factory.createReturnStatement(i.default.factory.createNull())),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},8266:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},p=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")}};var P=" ".repeat(4)},87500:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.ProtobufDecodeProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("output")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},87229:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("encode",d.ProtobufEncodeProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")]),f.TypeFactory.keyword("any"))),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("output.data"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("encode"),void 0,[i.default.factory.createIdentifier("input")])))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},3078:function(e,t,r){"use strict";var n,a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a1},Metadata.prototype.getSoleLiteral=function(){return 1===this.size()&&1===this.constants.length&&"string"===this.constants[0].type&&1===this.constants[0].values.length?this.constants[0].values[0]:null},Metadata.prototype.isSoleLiteral=function(){return null!==this.getSoleLiteral()},Metadata.prototype.isParentResolved=function(){return this.parent_resolved_},Metadata}();t.Metadata=m,(n=m||(t.Metadata=m={})).intersects=function(e,t){if(e.any||t.any||!1===e.isRequired()&&!1===t.isRequired()||!0===e.nullable&&!0===t.nullable||!0===e.functional&&!0===t.functional||e.arrays.length&&t.arrays.length||e.tuples.length&&t.tuples.length||e.objects.length&&t.objects.length||e.aliases.length&&t.aliases.length||e.natives.length&&t.natives.length&&e.natives.some(function(e){return t.natives.some(function(t){return e===t})}))return!0;var r,n,u,c,_loop_1=function(e){if(t.atomics.some(function(t){return e.type===t.type})||t.constants.some(function(t){return e.type===t.type}))return{value:!0}};try{for(var f=a(e.atomics),s=f.next();!s.done;s=f.next()){var d=s.value,y=_loop_1(d);if("object"==typeof y)return y.value}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}var _loop_2=function(e){if(void 0!==t.atomics.find(function(t){return t.type===e.type}))return{value:!0};var r=t.constants.find(function(t){return t.type===e.type});return void 0===r?"continue":new Set(i(i([],o(e.values),!1),o(r.values),!1)).size!==e.values.length+r.values.length?{value:!0}:void 0};try{for(var p=a(e.constants),m=p.next();!m.done;m=p.next()){var v=m.value,g=_loop_2(v);if("object"==typeof g)return g.value}}catch(e){u={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}return!!(e.templates.length&&t.atomics.some(function(e){return"string"===e.type}))||!!(t.templates.length&&e.atomics.some(function(e){return"string"===e.type}))},n.covers=function(e,t,r){if(void 0===r&&(r=0),e===t)return!1;if(e.any)return!0;if(t.any)return!1;if(0===r){var o,i,u,c,f,s,d,p,m,v,g,_,b,x,_loop_3=function(t){if(!e.arrays.some(function(e){return n.covers(e.type.value,t.type.value,r+1)}))return{value:!1}};try{for(var S=a(t.arrays),T=S.next();!T.done;T=S.next()){var E=T.value,w=_loop_3(E);if("object"==typeof w)return w.value}}catch(e){o={error:e}}finally{try{T&&!T.done&&(i=S.return)&&i.call(S)}finally{if(o)throw o.error}}var _loop_4=function(t){if(0!==t.type.elements.length&&!1===e.tuples.some(function(e){return e.type.elements.length>=t.type.elements.length&&e.type.elements.slice(t.type.elements.length).every(function(e,a){return n.covers(e,t.type.elements[a],r+1)})}))return{value:!1}};try{for(var P=a(t.tuples),j=P.next();!j.done;j=P.next()){var I=j.value,A=_loop_4(I);if("object"==typeof A)return A.value}}catch(e){u={error:e}}finally{try{j&&!j.done&&(c=P.return)&&c.call(P)}finally{if(u)throw u.error}}}var _loop_5=function(t){if(!1===e.objects.some(function(e){return y.MetadataObject.covers(e,t)}))return{value:!1}};try{for(var F=a(t.objects),M=F.next();!M.done;M=F.next()){var O=M.value,C=_loop_5(O);if("object"==typeof C)return C.value}}catch(e){f={error:e}}finally{try{M&&!M.done&&(s=F.return)&&s.call(F)}finally{if(f)throw f.error}}var _loop_6=function(t){if(!1===e.aliases.some(function(e){return e.name===t.name}))return{value:!1}};try{for(var N=a(t.aliases),R=N.next();!R.done;R=N.next()){var L=R.value,U=_loop_6(L);if("object"==typeof U)return U.value}}catch(e){d={error:e}}finally{try{R&&!R.done&&(p=N.return)&&p.call(N)}finally{if(d)throw d.error}}var _loop_7=function(t){if(!1===e.natives.some(function(e){return e===t}))return{value:!1}};try{for(var q=a(t.natives),z=q.next();!z.done;z=q.next()){var B=z.value,H=_loop_7(B);if("object"==typeof H)return H.value}}catch(e){m={error:e}}finally{try{z&&!z.done&&(v=q.return)&&v.call(q)}finally{if(m)throw m.error}}var _loop_8=function(t){if(!1===e.sets.some(function(e){return n.covers(e,t)}))return{value:!1}};try{for(var V=a(t.sets),J=V.next();!J.done;J=V.next()){var G=J.value,Q=_loop_8(G);if("object"==typeof Q)return Q.value}}catch(e){g={error:e}}finally{try{J&&!J.done&&(_=V.return)&&_.call(V)}finally{if(g)throw g.error}}if(t.atomics.some(function(t){return!1===e.atomics.some(function(e){return e.type===t.type})}))return!1;var _loop_9=function(t){if(e.atomics.some(function(e){return t.type===e.type}))return"continue";var r=e.constants.find(function(e){return e.type===t.type});return void 0===r?{value:!1}:t.values.some(function(e){return!1===r.values.includes(e)})?{value:!1}:void 0};try{for(var W=a(t.constants),K=W.next();!K.done;K=W.next()){var Y=K.value,Z=_loop_9(Y);if("object"==typeof Z)return Z.value}}catch(e){b={error:e}}finally{try{K&&!K.done&&(x=W.return)&&x.call(W)}finally{if(b)throw b.error}}return!1!==e.functional||!t.functional},n.merge=function(e,t){var r,c,f,y,p,m,v,g,_=n.create({any:e.any||t.any,nullable:e.nullable||t.nullable,required:e.required&&t.required,optional:e.optional||t.optional,functional:e.functional||t.functional,escaped:null!==e.escaped&&null!==t.escaped?d.MetadataEscaped.create({original:n.merge(e.escaped.original,t.escaped.original),returns:n.merge(e.escaped.returns,t.escaped.returns)}):null!==(v=e.escaped)&&void 0!==v?v:t.escaped,atomics:mergeTaggedTypes({container:e.atomics,equals:function(e,t){return e.type===t.type},getter:function(e){return e.tags}})(t.atomics),constants:i([],o(e.constants),!1),templates:e.templates.slice(),rest:null!==e.rest&&null!==t.rest?n.merge(e.rest,t.rest):null!==(g=e.rest)&&void 0!==g?g:t.rest,arrays:mergeTaggedTypes({container:e.arrays,equals:function(e,t){return e.type.name===t.type.name},getter:function(e){return e.tags}})(t.arrays),tuples:mergeTaggedTypes({container:e.tuples,equals:function(e,t){return e.type.name===t.type.name},getter:function(e){return e.tags}})(t.tuples),objects:e.objects.slice(),aliases:e.aliases.slice(),natives:i([],o(new Set(i(i([],o(e.natives),!1),o(t.natives),!1))),!1),sets:e.sets.slice(),maps:e.maps.slice()}),_loop_10=function(e){var t,r,n=u.ArrayUtil.take(_.constants,function(t){return t.type===e.type},function(){return s.MetadataConstant.create({type:e.type,values:[]})});try{for(var o=(t=void 0,a(e.values)),i=o.next();!i.done;i=o.next()){var c=i.value;u.ArrayUtil.add(n.values,c)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}};try{for(var b=a(t.constants),x=b.next();!x.done;x=b.next()){var S=x.value;_loop_10(S)}}catch(e){r={error:e}}finally{try{x&&!x.done&&(c=b.return)&&c.call(b)}finally{if(r)throw r.error}}try{for(var T=a(t.objects),E=T.next();!E.done;E=T.next()){var w=E.value;u.ArrayUtil.set(_.objects,w,function(e){return e.name})}}catch(e){f={error:e}}finally{try{E&&!E.done&&(y=T.return)&&y.call(T)}finally{if(f)throw f.error}}try{for(var P=a(t.aliases),j=P.next();!j.done;j=P.next()){var I=j.value;u.ArrayUtil.set(_.aliases,I,function(e){return e.name})}}catch(e){p={error:e}}finally{try{j&&!j.done&&(m=P.return)&&m.call(P)}finally{if(p)throw p.error}}return _};var getName=function(e){if(!0===e.any)return"any";var t,r,n,o,i,u,c,f,s,d,y,p,m,v,g,_,b,x,S,T,E,w,P=[];!0===e.nullable&&P.push("null"),!1===e.isRequired()&&P.push("undefined");try{for(var j=a(e.atomics),I=j.next();!I.done;I=j.next()){var A=I.value;P.push(A.getName())}}catch(e){t={error:e}}finally{try{I&&!I.done&&(r=j.return)&&r.call(j)}finally{if(t)throw t.error}}try{for(var F=a(e.constants),M=F.next();!M.done;M=F.next()){var O=M.value;try{for(var C=(i=void 0,a(O.values)),N=C.next();!N.done;N=C.next()){var R=N.value;P.push("string"===O.type?JSON.stringify(R):R.toString())}}catch(e){i={error:e}}finally{try{N&&!N.done&&(u=C.return)&&u.call(C)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{M&&!M.done&&(o=F.return)&&o.call(F)}finally{if(n)throw n.error}}try{for(var L=a(e.templates),U=L.next();!U.done;U=L.next()){var q=U.value;P.push("`"+q.map(function(e){return e.isConstant()&&1===e.size()?e.constants[0].values[0]:"${".concat(e.getName(),"}")}).join("").split("`").join("\\`")+"`")}}catch(e){c={error:e}}finally{try{U&&!U.done&&(f=L.return)&&f.call(L)}finally{if(c)throw c.error}}try{for(var z=a(e.natives),B=z.next();!B.done;B=z.next()){var H=B.value;P.push(H)}}catch(e){s={error:e}}finally{try{B&&!B.done&&(d=z.return)&&d.call(z)}finally{if(s)throw s.error}}try{for(var V=a(e.sets),J=V.next();!J.done;J=V.next()){var G=J.value;P.push("Set<".concat(G.getName(),">"))}}catch(e){y={error:e}}finally{try{J&&!J.done&&(p=V.return)&&p.call(V)}finally{if(y)throw y.error}}try{for(var Q=a(e.maps),W=Q.next();!W.done;W=Q.next()){var K=W.value;P.push("Map<".concat(K.key.getName(),", ").concat(K.value.getName(),">"))}}catch(e){m={error:e}}finally{try{W&&!W.done&&(v=Q.return)&&v.call(Q)}finally{if(m)throw m.error}}null!==e.rest&&P.push("...".concat(e.rest.getName()));try{for(var Y=a(e.tuples),Z=Y.next();!Z.done;Z=Y.next()){var X=Z.value;P.push(X.type.name)}}catch(e){g={error:e}}finally{try{Z&&!Z.done&&(_=Y.return)&&_.call(Y)}finally{if(g)throw g.error}}try{for(var ee=a(e.arrays),et=ee.next();!et.done;et=ee.next()){var er=et.value;P.push(er.getName())}}catch(e){b={error:e}}finally{try{et&&!et.done&&(x=ee.return)&&x.call(ee)}finally{if(b)throw b.error}}try{for(var en=a(e.objects),ea=en.next();!ea.done;ea=en.next()){var eo=ea.value;P.push(eo.name)}}catch(e){S={error:e}}finally{try{ea&&!ea.done&&(T=en.return)&&T.call(en)}finally{if(S)throw S.error}}try{for(var ei=a(e.aliases),eu=ei.next();!eu.done;eu=ei.next()){var ec=eu.value;P.push(ec.name)}}catch(e){E={error:e}}finally{try{eu&&!eu.done&&(w=ei.return)&&w.call(ei)}finally{if(E)throw E.error}}return(null!==e.escaped&&P.push(e.escaped.getName()),0===P.length)?"unknown":1===P.length?P[0]:(P.sort(),"(".concat(P.join(" | "),")"))},mergeTaggedTypes=function(e){return function(t){var r,n,u=i([],o(e.container),!1),_loop_11=function(t){var r,n,o=e.container.find(function(r){return e.equals(r,t)});if(void 0===o)return u.push(t),"continue";var i=e.getter(o).map(function(e){return e.map(function(e){return e.name})}).sort();try{for(var c=(r=void 0,a(e.getter(t))),f=c.next();!f.done;f=c.next()){var s=f.value;!function(t){var r=t.map(function(e){return e.name}).sort();!i.some(function(e){return e.length===r.length&&e.every(function(e,t){return e===r[t]})})&&e.getter(o).push(t)}(s)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}};try{for(var c=a(t),f=c.next();!f.done;f=c.next()){var s=f.value;_loop_11(s)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return u}}},49596:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataAlias=void 0;var r=function(){function MetadataAlias(e){this.name=e.name,this.value=e.value,this.description=e.description,this.jsDocTags=e.jsDocTags,this.recursive=e.recursive,this.nullables=e.nullables}return MetadataAlias.create=function(e){return new MetadataAlias(e)},MetadataAlias._From_without_value=function(e){return MetadataAlias.create({name:e.name,value:null,description:e.description,recursive:e.recursive,jsDocTags:e.jsDocTags.slice(),nullables:e.nullables.slice()})},MetadataAlias.prototype.toJSON=function(){return{name:this.name,value:this.value.toJSON(),description:this.description,recursive:this.recursive,jsDocTags:this.jsDocTags.slice(),nullables:this.nullables.slice()}},MetadataAlias}();t.MetadataAlias=r},23879:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=1&&this.properties.every(function(e){return e.key.isSoleLiteral()})},MetadataObject.prototype._Is_simple=function(e){return void 0===e&&(e=0),!1===this.recursive&&this.properties.length<10&&this.properties.every(function(t){return t.key.isSoleLiteral()&&1===t.value.size()&&!0===t.value.isRequired()&&!1===t.value.nullable&&(1===t.value.atomics.length||e<1&&1===t.value.objects.length&&t.value.objects[0]._Is_simple(e+1))})},MetadataObject.prototype._Is_literal=function(){var e,t=this;return null!==(e=this.literal_)&&void 0!==e?e:this.literal_=function(){if(!0===t.recursive)return!1;if("__type"===t.name)return!0;if(!1===t.name.startsWith("__type.o"))return!1;var e=Number(t.name.substr(8));return!1===isNaN(e)&&Number.isInteger(e)}()},MetadataObject.prototype.toJSON=function(){return{name:this.name,properties:this.properties.map(function(e){return e.toJSON()}),description:this.description,jsDocTags:this.jsDocTags,index:this.index,recursive:this.recursive,nullables:this.nullables.slice()}},MetadataObject}();t.MetadataObject=n,(r=n||(t.MetadataObject=n={})).intersects=function(e,t){return e.properties.some(function(e){return void 0!==t.properties.find(function(t){return e.key.getName()===t.key.getName()})})},r.covers=function(e,t){return e.properties.length>=t.properties.length&&e.properties.every(function(e){return void 0!==t.properties.find(function(t){return e.key.getName()===t.key.getName()})})}},56724:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataProperty=void 0;var n=r(3078),a=function(){function MetadataProperty(e){this.key=e.key,this.value=e.value,this.description=e.description,this.jsDocTags=e.jsDocTags}return MetadataProperty.create=function(e){return new MetadataProperty(e)},MetadataProperty.from=function(e,t){return MetadataProperty.create({key:n.Metadata.from(e.key,t),value:n.Metadata.from(e.value,t),description:e.description,jsDocTags:e.jsDocTags.slice()})},MetadataProperty.prototype.toJSON=function(){return{key:this.key.toJSON(),value:this.value.toJSON(),description:this.description,jsDocTags:this.jsDocTags}},MetadataProperty}();t.MetadataProperty=a},35191:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataTuple=void 0;var r=function(){function MetadataTuple(e){this.type=e.type,this.tags=e.tags}return MetadataTuple.create=function(e){return new MetadataTuple(e)},MetadataTuple.prototype.toJSON=function(){return{type:this.type.toJSON(),tags:this.tags.map(function(e){return e.slice()})}},MetadataTuple}();t.MetadataTuple=r},84530:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataTupleType=void 0;var r=function(){function MetadataTupleType(e){this.name=e.name,this.elements=e.elements,this.index=e.index,this.recursive=e.recursive,this.nullables=e.nullables}return MetadataTupleType._From_without_elements=function(e){return MetadataTupleType.create({name:e.name,index:e.index,elements:null,recursive:e.recursive,nullables:e.nullables.slice()})},MetadataTupleType.create=function(e){return new MetadataTupleType(e)},MetadataTupleType.prototype.isRest=function(){return this.elements.length>0&&null!==this.elements[this.elements.length-1].rest},MetadataTupleType.prototype.toJSON=function(){return{name:this.name,index:this.index,elements:this.elements.map(function(e){return e.toJSON()}),recursive:this.recursive,nullables:this.nullables.slice()}},MetadataTupleType}();t.MetadataTupleType=r},97420:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatCheatSheet=void 0;var RegexCall=function(e){return"".concat(e,".test($input)")};t.FormatCheatSheet={byte:RegexCall("/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm"),password:"true",regex:"(() => { try { new RegExp($input); return true; } catch { return false; } })()",uuid:RegexCall("/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i"),email:RegexCall("/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i"),hostname:RegexCall("/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i"),"idn-email":RegexCall('/^(([^<>()[\\]\\.,;:\\s@\\"]+(\\.[^<>()[\\]\\.,;:\\s@\\"]+)*)|(\\".+\\"))@(([^<>()[\\]\\.,;:\\s@\\"]+\\.)+[^<>()[\\]\\.,;:\\s@\\"]{2,})$/i'),"idn-hostname":RegexCall("/^([a-z0-9\\u00a1-\\uffff0-9]+(-[a-z0-9\\u00a1-\\uffff0-9]+)*\\.)+[a-z\\u00a1-\\uffff]{2,}$/i"),iri:RegexCall('/^[A-Za-z][\\d+-.A-Za-z]*:[^\\u0000-\\u0020"<>\\\\^`{|}]*$/u'),"iri-reference":RegexCall('/^[A-Za-z][\\d+-.A-Za-z]*:[^\\u0000-\\u0020"<>\\\\^`{|}]*$/u'),ipv4:RegexCall("/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/"),ipv6:RegexCall("/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))$/i"),uri:"".concat(RegexCall("/\\/|:/")," && ").concat(RegexCall("/^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i")),"uri-reference":RegexCall("/^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'\"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i"),"uri-template":RegexCall("/^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i"),url:RegexCall("/^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu"),"date-time":"!isNaN(new Date($input).getTime())",date:RegexCall("/^(\\d{4})-(\\d{2})-(\\d{2})$/"),time:RegexCall("/^(\\d\\d):(\\d\\d):(\\d\\d(?:\\.\\d+)?)(z|([+-])(\\d\\d)(?::?(\\d\\d))?)?$/i"),duration:RegexCall("/^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/"),"json-pointer":RegexCall("/^(?:\\/(?:[^~/]|~0|~1)*)*$/"),"relative-json-pointer":RegexCall("/^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/")}},88781:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transform=void 0;var a=n(r(55423)),o=r(58451);t.transform=function(e,t,r){var n=e.getCompilerOptions();return!1==(void 0!==n.strictNullChecks?!!n.strictNullChecks:!!n.strict)&&r.addDiagnostic({category:a.default.DiagnosticCategory.Error,code:"(typia)",file:void 0,start:void 0,length:void 0,messageText:"strict mode is required."}),o.FileTransformer.transform({program:e,compilerOptions:n,checker:e.getTypeChecker(),printer:a.default.createPrinter(),options:null!=t?t:{},extras:r})},t.default=t.transform},72546:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionTransformer=void 0;var i=o(r(1864)),u=r(58741),c=r(57589),f=r(38545),s=r(45791),d=r(78970),y=r(69473),p=r(28499),m=r(56246),v=r(81393),g=r(12232),_=r(5385),b=r(46502),x=r(51160),S=r(21230),T=r(69314),E=r(70501),w=r(81238),P=r(42025),j=r(69858),I=r(44953),A=r(59706),F=r(81550),M=r(77464),O=r(88556),C=r(20122),N=r(99103),R=r(7072),L=r(91092),U=r(92438),q=r(62037),z=r(31173),B=r(46323),H=r(8200),V=r(20097),J=r(61237),G=r(91654),Q=r(69539),W=r(37273),K=r(30951),Y=r(29763),Z=r(30098),X=r(62521),ee=r(28059),et=r(13184),er=r(82245),en=r(79645),ea=r(79790),eo=r(50561),ei=r(97199),eu=r(73624),ec=r(86864),el=r(51027),ef=r(50692),es=r(54021),ed=r(81739),ey=r(31897),ep=r(5071),em=r(30533),ev=r(93105),eh=r(34514),eg=r(91319),e_=r(22894),eb=r(14315),ex=r(8996),eS=r(84724),eT=r(53555),eE=r(90114),ew=r(91108),eP=r(72233),ej=r(31549),eI=r(9018),eA=r(31783),eF=r(33851),eM=r(50083),eO=r(52474),ek=r(71233),eC=r(60125),eN=r(96903),eR=r(46436),eL=r(68649),eD=r(63295),eU=r(23312),eq=r(81131),ez=r(38027),eB=r(20743);(a||(t.CallExpressionTransformer=a={})).transform=function(e){return function(t){var r,a,o=null===(r=e.checker.getResolvedSignature(t))||void 0===r?void 0:r.declaration;if(!o)return t;var u=i.default.resolve(o.getSourceFile().fileName);if(!1===n(u))return t;var c=u.split(i.default.sep).at(-1).split(".")[0],f=e.checker.getTypeAtLocation(o).symbol.name,s=null===(a=eH[c])||void 0===a?void 0:a[f];if(void 0===s)return t;var d=s()(e)(t.expression)(t);return null!=d?d:t}},n=function(e){return Object.keys(eH).some(function(t){return e.includes(i.default.join("node_modules","typia","lib","".concat(t,".d.ts")))})};var eH={module:{assert:function(){return c.AssertTransformer.transform({equals:!1,guard:!1})},assertGuard:function(){return c.AssertTransformer.transform({equals:!1,guard:!0})},assertType:function(){return c.AssertTransformer.transform({equals:!1,guard:!1})},is:function(){return p.IsTransformer.transform(!1)},validate:function(){return v.ValidateTransformer.transform(!1)},assertEquals:function(){return c.AssertTransformer.transform({equals:!0,guard:!1})},assertGuardEquals:function(){return c.AssertTransformer.transform({equals:!0,guard:!0})},equals:function(){return p.IsTransformer.transform(!0)},validateEquals:function(){return v.ValidateTransformer.transform(!0)},random:function(){return m.RandomTransformer.transform},metadata:function(){return eB.ReflectMetadataTransformer.transform},createAssert:function(){return f.CreateAssertTransformer.transform({equals:!1,guard:!1})},createAssertGuard:function(){return f.CreateAssertTransformer.transform({equals:!1,guard:!0})},createAssertType:function(){return f.CreateAssertTransformer.transform({equals:!1,guard:!1})},createIs:function(){return s.CreateIsTransformer.transform(!1)},createValidate:function(){return y.CreateValidateTransformer.transform(!1)},createAssertEquals:function(){return f.CreateAssertTransformer.transform({equals:!0,guard:!1})},createAssertGuardEquals:function(){return f.CreateAssertTransformer.transform({equals:!0,guard:!0})},createEquals:function(){return s.CreateIsTransformer.transform(!0)},createValidateEquals:function(){return y.CreateValidateTransformer.transform(!0)},createRandom:function(){return d.CreateRandomTransformer.transform}},http:{headers:function(){return A.HttpHeadersTransformer.transform},isHeaders:function(){return F.HttpIsHeadersTransformer.transform},assertHeaders:function(){return j.HttpAssertHeadersTransformer.transform},validateHeaders:function(){return N.HttpValidateHeadersTransformer.transform},parameter:function(){return O.HttpParameterTransformer.transform},query:function(){return C.HttpQueryTransformer.transform},isQuery:function(){return M.HttpIsQueryTransformer.transform},assertQuery:function(){return I.HttpAssertQueryTransformer.transform},validateQuery:function(){return R.HttpValidateQueryTransformer.transform},createHeaders:function(){return b.CreateHttpHeadersTransformer.transform},createIsHeaders:function(){return x.CreateHttpIsHeadersTransformer.transform},createAssertHeaders:function(){return g.CreateHttpAssertHeadersTransformer.transform},createValidateHeaders:function(){return w.CreateHttpValidateHeadersTransformer.transform},createParameter:function(){return T.CreateHttpParameterTransformer.transform},createQuery:function(){return E.CreateHttpQueryTransformer.transform},createIsQuery:function(){return S.CreateHttpIsQueryTransformer.transform},createAssertQuery:function(){return _.CreateHttpAssertQueryTransformer.transform},createValidateQuery:function(){return P.CreateHttpValidateQueryTransformer.transform}},json:{application:function(){return function(e){return function(){return L.JsonApplicationTransformer.transform(e)}}},isParse:function(){return W.JsonIsParseTransformer.transform},assertParse:function(){return U.JsonAssertParseTransformer.transform},validateParse:function(){return Z.JsonValidateParseTransformer.transform},stringify:function(){return Y.JsonStringifyTransformer.transform},assertStringify:function(){return q.JsonAssertStringifyTransformer.transform},isStringify:function(){return K.JsonIsStringifyTransformer.transform},validateStringify:function(){return X.JsonValidateStringifyTransformer.transform},createIsParse:function(){return H.JsonCreateIsParseTransformer.transform},createAssertParse:function(){return z.JsonCreateAssertParseTransformer.transform},createValidateParse:function(){return G.JsonCreateValidateParseTransformer.transform},createStringify:function(){return J.JsonCreateStringifyTransformer.transform},createAssertStringify:function(){return B.JsonCreateAssertStringifyTransformer.transform},createIsStringify:function(){return V.JsonCreateIsStringifyTransformer.transform},createValidateStringify:function(){return Q.JsonCreateValidateStringifyTransformer.transform}},protobuf:{message:function(){return eU.ProtobufMessageTransformer.transform},encode:function(){return eR.ProtobufEncodeTransformer.transform},assertEncode:function(){return eP.ProtobufAssertEncodeTransformer.transform},isEncode:function(){return eD.ProtobufIsEncodeTransformer.transform},validateEncode:function(){return ez.ProtobufValidateEncodeTransformer.transform},decode:function(){return eN.ProtobufDecodeTransformer.transform},assertDecode:function(){return ew.ProtobufAssertDecodeTransformer.transform},isDecode:function(){return eL.ProtobufIsDecodeTransformer.transform},validateDecode:function(){return eq.ProtobufValidateDecodeTransformer.transform},createEncode:function(){return eF.ProtobufCreateEncodeTransformer.transform},createAssertEncode:function(){return eI.ProtobufCreateAssertEncodeTransformer.transform},createIsEncode:function(){return eO.ProtobufCreateIsEncodeTransformer.transform},createValidateEncode:function(){return eC.ProtobufCreateValidateEncodeTransformer.transform},createDecode:function(){return eA.ProtobufCreateDecodeTransformer.transform},createAssertDecode:function(){return ej.ProtobufCreateAssertDecodeTransformer.transform},createIsDecode:function(){return eM.ProtobufCreateIsDecodeTransformer.transform},createValidateDecode:function(){return ek.ProtobufCreateValidateDecodeTransformer.transform}},reflect:{metadata:function(){return eB.ReflectMetadataTransformer.transform}},misc:{literals:function(){return function(e){return function(){return ey.MiscLiteralsTransformer.transform(e)}}},clone:function(){return er.MiscCloneTransformer.transform},assertClone:function(){return ee.MiscAssertCloneTransformer.transform},isClone:function(){return es.MiscIsCloneTransformer.transform},validateClone:function(){return em.MiscValidateCloneTransformer.transform},prune:function(){return ep.MiscPruneTransformer.transform},assertPrune:function(){return et.MiscAssertPruneTransformer.transform},isPrune:function(){return ed.MiscIsPruneTransformer.transform},validatePrune:function(){return ev.MiscValidatePruneTransformer.transform},createClone:function(){return eo.MiscCreateCloneTransformer.transform},createAssertClone:function(){return en.MiscCreateAssertCloneTransformer.transform},createIsClone:function(){return ei.MiscCreateIsCloneTransformer.transform},createValidateClone:function(){return el.MiscCreateValidateCloneTransformer.transform},createPrune:function(){return ec.MiscCreatePruneTransformer.transform},createAssertPrune:function(){return ea.MiscCreateAssertPruneTransformer.transform},createIsPrune:function(){return eu.MiscCreateIsPruneTransformer.transform},createValidatePrune:function(){return ef.MiscCreateValidatePruneTransformer.transform}},notations:{camel:function(){return eS.NotationGeneralTransformer.transform(u.NamingConvention.camel)},assertCamel:function(){return eh.NotationAssertGeneralTransformer.transform(u.NamingConvention.camel)},isCamel:function(){return eT.NotationIsGeneralTransformer.transform(u.NamingConvention.camel)},validateCamel:function(){return eE.NotationValidateGeneralTransformer.transform(u.NamingConvention.camel)},pascal:function(){return eS.NotationGeneralTransformer.transform(u.NamingConvention.pascal)},assertPascal:function(){return eh.NotationAssertGeneralTransformer.transform(u.NamingConvention.pascal)},isPascal:function(){return eT.NotationIsGeneralTransformer.transform(u.NamingConvention.pascal)},validatePascal:function(){return eE.NotationValidateGeneralTransformer.transform(u.NamingConvention.pascal)},snake:function(){return eS.NotationGeneralTransformer.transform(u.NamingConvention.snake)},assertSnake:function(){return eh.NotationAssertGeneralTransformer.transform(u.NamingConvention.snake)},isSnake:function(){return eT.NotationIsGeneralTransformer.transform(u.NamingConvention.snake)},validateSnake:function(){return eE.NotationValidateGeneralTransformer.transform(u.NamingConvention.snake)},createCamel:function(){return e_.NotationCreateGeneralTransformer.transform(u.NamingConvention.camel)},createAssertCamel:function(){return eg.NotationCreateAssertGeneralTransformer.transform(u.NamingConvention.camel)},createIsCamel:function(){return eb.NotationCreateIsGeneralTransformer.transform(u.NamingConvention.camel)},createValidateCamel:function(){return ex.NotationCreateValidateGeneralTransformer.transform(u.NamingConvention.camel)},createPascal:function(){return e_.NotationCreateGeneralTransformer.transform(u.NamingConvention.pascal)},createAssertPascal:function(){return eg.NotationCreateAssertGeneralTransformer.transform(u.NamingConvention.pascal)},createIsPascal:function(){return eb.NotationCreateIsGeneralTransformer.transform(u.NamingConvention.pascal)},createValidatePascal:function(){return ex.NotationCreateValidateGeneralTransformer.transform(u.NamingConvention.pascal)},createSnake:function(){return e_.NotationCreateGeneralTransformer.transform(u.NamingConvention.snake)},createAssertSnake:function(){return eg.NotationCreateAssertGeneralTransformer.transform(u.NamingConvention.snake)},createIsSnake:function(){return eb.NotationCreateIsGeneralTransformer.transform(u.NamingConvention.snake)},createValidateSnake:function(){return ex.NotationCreateValidateGeneralTransformer.transform(u.NamingConvention.snake)}}}},58451:function(e,t,r){"use strict";var n,a,o,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GenericTransformer=void 0;var c=u(r(55423)),f=r(63664);(n=o||(t.GenericTransformer=o={})).scalar=function(e){return function(t){return function(r){return function(n){return function(o){if(1!==o.arguments.length)throw new f.TransformerError({code:"typia.".concat(e),message:"no input value."});var u=i(o.typeArguments&&o.typeArguments[0]?[r.checker.getTypeFromTypeNode(o.typeArguments[0]),o.typeArguments[0],!0]:[r.checker.getTypeAtLocation(o.arguments[0]),o.arguments[0],!1],3),s=u[0],d=u[1],y=u[2];if(s.isTypeParameter())throw new f.TransformerError({code:"typia.".concat(e),message:"non-specified generic argument."});return c.default.factory.createCallExpression(t(r)(n)(s,y?d.getFullText().trim():a(r.checker)(s)(d)),void 0,[o.arguments[0]])}}}}},n.factory=function(e){return function(t){return function(r){return function(n){return function(a){if(!(null===(o=a.typeArguments)||void 0===o?void 0:o[0]))throw new f.TransformerError({code:"typia.".concat(e),message:"generic argument is not specified."});var o,i=a.typeArguments[0],u=r.checker.getTypeFromTypeNode(i);if(u.isTypeParameter())throw new f.TransformerError({code:"typia.".concat(e),message:"non-specified generic argument."});return t(r)(n)(u,i.getFullText().trim())}}}}},a=function(e){return function(t){return function(r){return e.typeToString(t,r,c.default.TypeFormatFlags.NodeBuilderFlagsMask)}}}},61261:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Writable=void 0,t.Writable=function(e){return e}},73346:function(e,t){"use strict";var r,n,a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.NameEncoder=void 0,(r=n||(t.NameEncoder=n={})).encode=function(e){var t,r;try{for(var n=a(i),u=n.next();!u.done;u=n.next()){var c=o(u.value,2),f=c[0],s=c[1];e=e.split(f).join(s)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return e},r.decode=function(e){var t,r;try{for(var n=a(i),u=n.next();!u.done;u=n.next()){var c=o(u.value,2),f=c[0],s=c[1];""!==s&&(e=e.split(s).join(f))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return e};var i=[["$","_dollar_"],["&","_and_"],["|","_or_"],["{","_blt_"],["}","_bgt_"],["<","_lt_"],[">","_gt_"],["(","_lp_"],[")","_rp_"],["[","_alt_"],["]","_agt_"],[",","_comma_"],["`","_backquote_"],["'","_singlequote_"],['"',"_doublequote_"],[" ","_space_"]]},70505:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.pascal=t.camel=t.snake=void 0;var a=r(85422);t.snake=function(e){for(var t=[],r=0;r0;--r)t[r]-t[r-1]==1&&t.splice(r,1);if(0!==t.length&&0===t[0]&&t.splice(0,1),0===t.length)return e.toLowerCase();for(var a="",r=0;r1&&e[1]===e[1].toLowerCase()?"_"+e[1].toUpperCase()+e.substring(2):e},t.pascal=function(e){return 0===(e=removeSnake(e)).length?e:e[0]===e[0].toLowerCase()?e[0].toUpperCase()+e.substring(1):"_"===e[0]&&e.length>1&&e[1]===e[1].toLowerCase()?"_"+e[1].toUpperCase()+e.substring(2):e};var removeSnake=function(e){for(var t=[],r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.PatternUtil=void 0,(r=n||(t.PatternUtil=n={})).fix=function(e){var t=e.indexOf(r.STRING),n=e.lastIndexOf(r.STRING);return[-1===t||none("(")(e.slice(0,t))?"^":"",e,-1===n||none(")")(e.slice(n+r.STRING.length))?"$":""].join("")},r.escape=function(e){return e.replace(/[|\\/{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},r.NUMBER="[+-]?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?",r.BOOLEAN="true|false",r.STRING="(.*)";var none=function(e){return function(t){var r,n;try{for(var o=a(t),i=o.next();!i.done;i=o.next())if(i.value!==e)return!0}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}}},92989:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.relativeJsonPointer=t.jsonPointer=t.duration=t.time=t.date=t.datetime=t.url=t.uriTemplate=t.uriReference=t.uri=t.ipv6=t.ipv4=t.iriReference=t.iri=t.idnHostname=t.idnEmail=t.hostname=t.email=t.uuid=t.regex=t.password=t.byte=t.pattern=t.length=t.pick=t.array=t.string=t.number=t.bigint=t.integer=t.boolean=void 0;var o=a(r(14419)),i="abcdefghijklmnopqrstuvwxyz";t.boolean=function(){return .5>Math.random()},t.integer=function(e,t){return null!=e||(e=0),null!=t||(t=100),Math.floor(Math.random()*(t-e+1))+e},t.bigint=function(e,r){return BigInt((0,t.integer)(Number(null!=e?e:BigInt(0)),Number(null!=r?r:BigInt(100))))},t.number=function(e,t){return null!=e||(e=0),null!=t||(t=100),Math.random()*(t-e)+e},t.string=function(e){return Array(null!=e?e:(0,t.integer)(5,10)).fill(0).map(function(){return i[(0,t.integer)(0,i.length-1)]}).join("")},t.array=function(e,r){return Array(null!=r?r:(0,t.length)()).fill(0).map(function(t,r){return e(r)})},t.pick=function(e){return e[(0,t.integer)(0,e.length-1)]},t.length=function(){return(0,t.integer)(0,3)},t.pattern=function(e){return new o.default(e).gen()},t.byte=function(){return"vt7ekz4lIoNTTS9sDQYdWKharxIFAR54+z/umIxSgUM="},t.password=function(){return(0,t.string)((0,t.integer)(4,16))},t.regex=function(){return"/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/"},t.uuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},t.email=function(){return"".concat((0,t.string)(10),"@").concat((0,t.string)(10),".").concat((0,t.string)(3))},t.hostname=function(){return"".concat((0,t.string)(10),".").concat((0,t.string)(3))},t.idnEmail=function(){return(0,t.email)()},t.idnHostname=function(){return(0,t.hostname)()},t.iri=function(){return(0,t.url)()},t.iriReference=function(){return(0,t.url)()},t.ipv4=function(){return(0,t.array)(function(){return(0,t.integer)(0,255)},4).join(".")},t.ipv6=function(){return(0,t.array)(function(){return(0,t.integer)(0,65535).toString(16)},8).join(":")},t.uri=function(){return(0,t.url)()},t.uriReference=function(){return(0,t.url)()},t.uriTemplate=function(){return(0,t.url)()},t.url=function(){return"https://".concat((0,t.string)(10),".").concat((0,t.string)(3))},t.datetime=function(e,r){return new Date((0,t.number)(null!=e?e:Date.now()-30*u,null!=r?r:Date.now()+7*u)).toISOString()},t.date=function(e,r){return new Date((0,t.number)(null!=e?e:0,null!=r?r:2*Date.now())).toISOString().substring(0,10)},t.time=function(){return new Date((0,t.number)(0,u)).toISOString().substring(11,23)},t.duration=function(){var e=durate([["Y",(0,t.integer)(0,100)],["M",(0,t.integer)(0,12)],["D",(0,t.integer)(0,31)]]),r=durate([["H",(0,t.integer)(0,24)],["M",(0,t.integer)(0,60)],["S",(0,t.integer)(0,60)]]);return e.length+r.length===0?"PT0S":"P".concat(e).concat(r.length?"T":"").concat(r)},t.jsonPointer=function(){return"/components/schemas/".concat((0,t.string)(10))},t.relativeJsonPointer=function(){return"".concat((0,t.integer)(0,10),"#")};var u=864e5,durate=function(e){return e.filter(function(e){var t=n(e,2);return 0!==(t[0],t[1])}).map(function(e){var t=n(e,2),r=t[0],a=t[1];return"".concat(a).concat(r)}).join("")}},46657:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RandomGenerator=void 0,t.RandomGenerator=o(r(92989))},81061:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;ae.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?e.apply(this,n):function(){for(var e=arguments.length,r=Array(e),a=0;a=n.length?n.apply(this,r):function(){for(var t=arguments.length,n=Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};i.initial(e),i.handler(t);var r={current:e},n=curry(didStateUpdate)(r,t),a=curry(updateState)(r),o=curry(i.changes)(e),u=curry(extractChanges)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return i.selector(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(t,["monaco"]);p(function(e){return{config:function merge(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],merge(e[r],t[r]))}),_objectSpread2(_objectSpread2({},e),t)}(e.config,n),monaco:r}})},init:function(){var e=y(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(p({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),utils_makeCancelable(m);if(window.monaco&&window.monaco.editor)return storeMonacoInstance(window.monaco),e.resolve(window.monaco),utils_makeCancelable(m);utils_compose(injectScripts,getMonacoLoaderScript)(configureLoader)}return utils_makeCancelable(m)},__getMonacoInstance:function(){return y(function(e){return e.monaco})}},g=r(67294),_={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},b={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},$=function({children:e}){return g.createElement("div",{style:b.container},e)},x=(0,g.memo)(function({width:e,height:t,isEditorReady:r,loading:n,_ref:a,className:o,wrapperProps:i}){return g.createElement("section",{style:{..._.wrapper,width:e,height:t},...i},!r&&g.createElement($,null,n),g.createElement("div",{ref:a,style:{..._.fullWidth,...!r&&_.hide},className:o}))}),k=function(e){(0,g.useEffect)(e,[])},l=function(e,t,r=!0){let n=(0,g.useRef)(!0);(0,g.useEffect)(n.current||!r?()=>{n.current=!1}:e,t)};function D(){}function h(e,t,r,n){return e.editor.getModel(te(e,n))||e.editor.createModel(t,r,n?te(e,n):void 0)}function te(e,t){return e.Uri.parse(t)}(0,g.memo)(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:a,originalModelPath:o,modifiedModelPath:i,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:c=!1,theme:f="light",loading:s="Loading...",options:d={},height:y="100%",width:p="100%",className:m,wrapperProps:_={},beforeMount:b=D,onMount:S=D}){let[T,E]=(0,g.useState)(!1),[w,P]=(0,g.useState)(!0),j=(0,g.useRef)(null),I=(0,g.useRef)(null),A=(0,g.useRef)(null),F=(0,g.useRef)(S),M=(0,g.useRef)(b),O=(0,g.useRef)(!1);k(()=>{let e=v.init();return e.then(e=>(I.current=e)&&P(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let t;return j.current?(t=j.current?.getModel(),void(u||t?.original?.dispose(),c||t?.modified?.dispose(),j.current?.dispose())):e.cancel()}}),l(()=>{if(j.current&&I.current){let t=j.current.getOriginalEditor(),a=h(I.current,e||"",n||r||"text",o||"");a!==t.getModel()&&t.setModel(a)}},[o],T),l(()=>{if(j.current&&I.current){let e=j.current.getModifiedEditor(),n=h(I.current,t||"",a||r||"text",i||"");n!==e.getModel()&&e.setModel(n)}},[i],T),l(()=>{let e=j.current.getModifiedEditor();e.getOption(I.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],T),l(()=>{j.current?.getModel()?.original.setValue(e||"")},[e],T),l(()=>{let{original:e,modified:t}=j.current.getModel();I.current.editor.setModelLanguage(e,n||r||"text"),I.current.editor.setModelLanguage(t,a||r||"text")},[r,n,a],T),l(()=>{I.current?.editor.setTheme(f)},[f],T),l(()=>{j.current?.updateOptions(d)},[d],T);let C=(0,g.useCallback)(()=>{if(!I.current)return;M.current(I.current);let u=h(I.current,e||"",n||r||"text",o||""),c=h(I.current,t||"",a||r||"text",i||"");j.current?.setModel({original:u,modified:c})},[r,t,a,e,n,o,i]),N=(0,g.useCallback)(()=>{!O.current&&A.current&&(j.current=I.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...d}),C(),I.current?.editor.setTheme(f),E(!0),O.current=!0)},[d,f,C]);return(0,g.useEffect)(()=>{T&&F.current(j.current,I.current)},[T]),(0,g.useEffect)(()=>{w||T||N()},[w,T,N]),g.createElement(x,{width:p,height:y,isEditorReady:T,loading:s,_ref:A,className:m,wrapperProps:_})});var se=function(e){let t=(0,g.useRef)();return(0,g.useEffect)(()=>{t.current=e},[e]),t.current},S=new Map,T=(0,g.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:a,path:o,theme:i="light",line:u,loading:c="Loading...",options:f={},overrideServices:s={},saveViewState:d=!0,keepCurrentModel:y=!1,width:p="100%",height:m="100%",className:_,wrapperProps:b={},beforeMount:T=D,onMount:E=D,onChange:w,onValidate:P=D}){let[j,I]=(0,g.useState)(!1),[A,F]=(0,g.useState)(!0),M=(0,g.useRef)(null),O=(0,g.useRef)(null),C=(0,g.useRef)(null),N=(0,g.useRef)(E),R=(0,g.useRef)(T),L=(0,g.useRef)(),U=(0,g.useRef)(n),q=se(o),z=(0,g.useRef)(!1),B=(0,g.useRef)(!1);k(()=>{let e=v.init();return e.then(e=>(M.current=e)&&F(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>O.current?void(L.current?.dispose(),y?d&&S.set(o,O.current.saveViewState()):O.current.getModel()?.dispose(),O.current.dispose()):e.cancel()}),l(()=>{let i=h(M.current,e||n||"",t||a||"",o||r||"");i!==O.current?.getModel()&&(d&&S.set(q,O.current?.saveViewState()),O.current?.setModel(i),d&&O.current?.restoreViewState(S.get(o)))},[o],j),l(()=>{O.current?.updateOptions(f)},[f],j),l(()=>{O.current&&void 0!==n&&(O.current.getOption(M.current.editor.EditorOption.readOnly)?O.current.setValue(n):n===O.current.getValue()||(B.current=!0,O.current.executeEdits("",[{range:O.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),O.current.pushUndoStop(),B.current=!1))},[n],j),l(()=>{let e=O.current?.getModel();e&&a&&M.current?.editor.setModelLanguage(e,a)},[a],j),l(()=>{void 0!==u&&O.current?.revealLine(u)},[u],j),l(()=>{M.current?.editor.setTheme(i)},[i],j);let H=(0,g.useCallback)(()=>{if(!(!C.current||!M.current)&&!z.current){R.current(M.current);let c=o||r,y=h(M.current,n||e||"",t||a||"",c||"");O.current=M.current?.editor.create(C.current,{model:y,automaticLayout:!0,...f},s),d&&O.current.restoreViewState(S.get(c)),M.current.editor.setTheme(i),void 0!==u&&O.current.revealLine(u),I(!0),z.current=!0}},[e,t,r,n,a,o,f,s,d,i,u]);return(0,g.useEffect)(()=>{j&&N.current(O.current,M.current)},[j]),(0,g.useEffect)(()=>{A||j||H()},[A,j,H]),U.current=n,(0,g.useEffect)(()=>{j&&w&&(L.current?.dispose(),L.current=O.current?.onDidChangeModelContent(e=>{B.current||w(O.current.getValue(),e)}))},[j,w]),(0,g.useEffect)(()=>{if(j){let e=M.current.editor.onDidChangeMarkers(e=>{let t=O.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=M.current.editor.getModelMarkers({resource:t});P?.(e)}});return()=>{e?.dispose()}}return()=>{}},[j,P]),g.createElement(x,{width:p,height:m,isEditorReady:j,loading:c,_ref:C,className:_,wrapperProps:b})})}}]);
\ No newline at end of file
diff --git a/_next/static/chunks/583-d6de9980fd54d302.js b/_next/static/chunks/583-d6de9980fd54d302.js
new file mode 100644
index 0000000000..d02dad51ac
--- /dev/null
+++ b/_next/static/chunks/583-d6de9980fd54d302.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[583],{69450:function(e){"use strict";let SubRange=class SubRange{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.highe.high)}touches(e){return!(this.high+1e.high)}add(e){return new SubRange(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.highe+t.length,0)}add(e,t){var _add=e=>{for(var t=0;t{for(var t=0;t{for(var t=0;t{for(var r=t.low;r<=t.high;)e.push(r),r++;return e},[])}subranges(){return this.ranges.map(e=>({low:e.low,high:e.high,length:1+e.high-e.low}))}};e.exports=DRange},26961:function(e,t,r){var n,a=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function getBaseValue(e,t){if(!n[e]){n[e]={};for(var r=0;r>>8,r[2*n+1]=i%256}return r},decompressFromUint8Array:function(t){if(null==t)return a.decompress(t);for(var r=Array(t.length/2),n=0,o=r.length;ns.charCodeAt(0)){for(n=0;n>=1}else{for(n=0,a=1;n
>=1}0==--d&&(d=Math.pow(2,p),p++),delete u[s]}else for(n=0,a=i[s];n
>=1;0==--d&&(d=Math.pow(2,p),p++),i[f]=y++,s=String(c)}if(""!==s){if(Object.prototype.hasOwnProperty.call(u,s)){if(256>s.charCodeAt(0)){for(n=0;n
>=1}else{for(n=0,a=1;n
>=1}0==--d&&(d=Math.pow(2,p),p++),delete u[s]}else for(n=0,a=i[s];n
>=1;0==--d&&(d=Math.pow(2,p),p++)}for(n=0,a=2;n
>=1;for(;;){if(v<<=1,g==t-1){m.push(r(v));break}g++}return m.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,r,n){var a,o,i,u,c,f,s,d=[],y=4,p=4,m=3,v="",g=[],_={val:n(0),position:r,index:1};for(a=0;a<3;a+=1)d[a]=a;for(i=0,c=4,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;switch(i){case 0:for(i=0,c=256,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;s=e(i);break;case 1:for(i=0,c=65536,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;s=e(i);break;case 2:return""}for(d[3]=s,o=s,g.push(s);;){if(_.index>t)return"";for(i=0,c=Math.pow(2,m),f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;switch(s=i){case 0:for(i=0,c=256,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;d[p++]=e(i),s=p-1,y--;break;case 1:for(i=0,c=65536,f=1;f!=c;)u=_.val&_.position,_.position>>=1,0==_.position&&(_.position=r,_.val=n(_.index++)),i|=(u>0?1:0)*f,f<<=1;d[p++]=e(i),s=p-1,y--;break;case 2:return g.join("")}if(0==y&&(y=Math.pow(2,m),m++),d[s])v=d[s];else{if(s!==p)return null;v=o+o.charAt(0)}g.push(v),d[p++]=o+v.charAt(0),y--,o=v,0==y&&(y=Math.pow(2,m),m++)}}};return a}();void 0!==(n=(function(){return a}).call(t,r,t,e))&&(e.exports=n)},14419:function(e,t,r){let n=r(60697),a=r(69450),o=n.types;e.exports=class RandExp{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if("string"==typeof e)this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m");else throw Error("Expected a regexp or string");this.tokens=n(e)}_setDefaults(e){this.max=null!=e.max?e.max:null!=RandExp.prototype.max?RandExp.prototype.max:100,this.defaultRange=e.defaultRange?e.defaultRange:this.defaultRange.clone(),e.randInt&&(this.randInt=e.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,a,i,u;switch(e.type){case o.ROOT:case o.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),r=e.options?this._randSelect(e.options):e.stack,n="",i=0,u=r.length;i{var t,r,u=0,c={type:a.ROOT,stack:[]},f=c,s=c.stack,d=[],repeatErr=t=>{n.error(e,`Nothing to repeat at column ${t-1}`)},y=n.strToChars(e);for(t=y.length;u({type:n.POSITION,value:"b"}),t.nonWordBoundary=()=>({type:n.POSITION,value:"B"}),t.begin=()=>({type:n.POSITION,value:"^"}),t.end=()=>({type:n.POSITION,value:"$"})},94992:function(e,t,r){let n=r(30504),INTS=()=>[{type:n.RANGE,from:48,to:57}],WORDS=()=>[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(INTS()),WHITESPACE=()=>[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.RANGE,from:8192,to:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}],NOTANYCHAR=()=>[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}];t.words=()=>({type:n.SET,set:WORDS(),not:!1}),t.notWords=()=>({type:n.SET,set:WORDS(),not:!0}),t.ints=()=>({type:n.SET,set:INTS(),not:!1}),t.notInts=()=>({type:n.SET,set:INTS(),not:!0}),t.whitespace=()=>({type:n.SET,set:WHITESPACE(),not:!1}),t.notWhitespace=()=>({type:n.SET,set:WHITESPACE(),not:!0}),t.anyChar=()=>({type:n.SET,set:NOTANYCHAR(),not:!0})},30504:function(e){e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},86245:function(e,t,r){let n=r(30504),a=r(94992),o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,function(e,t,r,n,a,i,u,c){if(r)return e;var f=String.fromCharCode(t?8:n?parseInt(n,16):a?parseInt(a,16):i?parseInt(i,8):u?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(u):o[c]);return/[[\]{}^$.|?*+()]/.test(f)&&(f="\\"+f),f})},t.tokenizeClass=(e,r)=>{for(var o,i,u=[],c=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(o=c.exec(e));)if(o[1])u.push(a.words());else if(o[2])u.push(a.ints());else if(o[3])u.push(a.whitespace());else if(o[4])u.push(a.notWords());else if(o[5])u.push(a.notInts());else if(o[6])u.push(a.notWhitespace());else if(o[7])u.push({type:n.RANGE,from:(o[8]||o[9]).charCodeAt(0),to:o[10].charCodeAt(0)});else{if(!(i=o[12]))return[u,c.lastIndex];u.push({type:n.CHAR,value:i.charCodeAt(0)})}t.error(r,"Unterminated character class")},t.error=(e,t)=>{throw SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},37297:function(e,t,r){"use strict";var n,a,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommentFactory=void 0;var c=u(r(55423));(n=a||(t.CommentFactory=a={})).description=function(e,t){void 0===t&&(t=!1);var r,n,a,u,f,s,d,y,p,m=null===(d=e.declarations)||void 0===d?void 0:d[0];if(m){var v=o(c.default.versionMajorMinor.split(".").map(Number),2),g=v[0],_=v[1];if(g<5||5===g&&_<1){var b=[],x=c.default.displayPartsToString(e.getDocumentationComment(void 0));if(x.length&&(b.push(x),t&&e.getJsDocTags().length&&b.push("")),t)try{for(var S=i(e.getJsDocTags()),T=S.next();!T.done;T=S.next()){var E=T.value;b.push(E.text?"@".concat(E.name," ").concat(c.default.displayPartsToString(E.text)):"@".concat(E.name))}}catch(e){r={error:e}}finally{try{T&&!T.done&&(n=S.return)&&n.call(S)}finally{if(r)throw r.error}}return b.length?b.map(function(e){return e.split("\r\n").join("\n")}).join("\n"):void 0}var w=c.default.getJSDocCommentsAndTags(m);if(0!==w.length){var P=[];try{for(var I=i(w),j=I.next();!j.done;j=I.next()){var F=j.value;if(c.default.isJSDoc(F)){var A=c.default.getTextOfJSDocComment(F.comment);if((null==A?void 0:A.length)&&(P.push(A),t&&(null===(y=F.tags)||void 0===y?void 0:y.length)&&P.push("")),t)try{for(var M=(f=void 0,i(null!==(p=F.tags)&&void 0!==p?p:[])),O=M.next();!O.done;O=M.next()){var E=O.value;P.push(parseJSDocTag(E))}}catch(e){f={error:e}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(f)throw f.error}}}else t&&P.push(parseJSDocTag(F))}}catch(e){a={error:e}}finally{try{j&&!j.done&&(u=I.return)&&u.call(I)}finally{if(a)throw a.error}}var C=P.map(function(e){return e.split("\r\n").join("\n")}).join("\n");return C.length?C:void 0}}},n.merge=function(e){return e.map(function(e){return e.text}).map(function(e){return e.split("\r\n").join("\n")}).join("")};var parseJSDocTag=function(e){var t,r=null===(t=e.name)||void 0===t?void 0:t.getText(),n=c.default.getTextOfJSDocComment(e.comment);return["@".concat(e.tagName.text),r,n].filter(function(e){return!!(null==e?void 0:e.length)}).join(" ")}},73906:function(e,t,r){"use strict";var n,a,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionFactory=void 0;var u=i(r(55423)),c=r(46657);(n=a||(t.ExpressionFactory=a={})).number=function(e){return e<0?u.default.factory.createPrefixUnaryExpression(u.default.SyntaxKind.MinusToken,u.default.factory.createNumericLiteral(Math.abs(e))):u.default.factory.createNumericLiteral(e)},n.bigint=function(e){return u.default.factory.createCallExpression(u.default.factory.createIdentifier("BigInt"),void 0,[u.default.factory.createIdentifier(e.toString())])},n.isRequired=function(e){return u.default.factory.createStrictInequality(u.default.factory.createIdentifier("undefined"),e)},n.isArray=function(e){return u.default.factory.createCallExpression(u.default.factory.createIdentifier("Array.isArray"),void 0,[e])},n.isObject=function(e){return function(t){var r=[u.default.factory.createStrictEquality(u.default.factory.createStringLiteral("object"),u.default.factory.createTypeOfExpression(t))];return!0===e.checkNull&&r.push(u.default.factory.createStrictInequality(u.default.factory.createNull(),t)),!0===e.checkArray&&r.push(u.default.factory.createStrictEquality(u.default.factory.createFalse(),u.default.factory.createCallExpression(u.default.factory.createIdentifier("Array.isArray"),void 0,[t]))),1===r.length?r[0]:r.reduce(function(e,t){return u.default.factory.createLogicalAnd(e,t)})}},n.isInstanceOf=function(e){return function(t){return u.default.factory.createBinaryExpression(t,u.default.factory.createToken(u.default.SyntaxKind.InstanceOfKeyword),u.default.factory.createIdentifier(e))}},n.coalesce=function(e){return function(t){return u.default.factory.createBinaryExpression(e,u.default.factory.createToken(u.default.SyntaxKind.QuestionQuestionToken),t)}},n.currying=function(e){return function(t){if(0===t.length)return u.default.factory.createCallExpression(e,void 0,void 0);var r,n,a=u.default.factory.createCallExpression(e,void 0,[t[0]]);try{for(var i=o(t.slice(1)),c=i.next();!c.done;c=i.next()){var f=c.value;a=u.default.factory.createCallExpression(a,void 0,[f])}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}},n.selfCall=function(e){return u.default.isCallExpression(e)?e:u.default.factory.createCallExpression(u.default.factory.createParenthesizedExpression(u.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,e)),void 0,void 0)},n.getEscapedText=function(e){return function(t){return e.printNode(u.default.EmitHint.Expression,t,t.getSourceFile())}},n.transpile=function(e){return function(t){var r=u.default.createSourceFile("".concat(c.RandomGenerator.uuid(),".ts"),t,u.default.ScriptTarget.ESNext,!0,u.default.ScriptKind.TS).statements[0];if(void 0===r)throw ReferenceError("Error on ExpressionFactory.transpile(): no statement exists.");if(!u.default.isExpressionStatement(r))throw TypeError("Error on ExpressionFactory.transpile(): statement is not an expression statement.");return function(t){var visitor=function(r){return u.default.isIdentifier(r)&&"$input"===r.text?t:u.default.visitEachChild(u.default.factory.cloneNode(r),visitor,e)};return visitor(r.expression)}}}},61387:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierFactory=void 0;var i=o(r(55423)),u=r(5724),c=r(12301);(n=a||(t.IdentifierFactory=a={})).identifier=function(e){return u.Escaper.variable(e)?i.default.factory.createIdentifier(e):i.default.factory.createStringLiteral(e)},n.access=function(e){return function(t){var r=n.identifier(t);return i.default.isStringLiteral(r)?i.default.factory.createElementAccessExpression(e,r):i.default.factory.createPropertyAccessExpression(e,r)}},n.getName=function(e){var t,r=null===(t=e.escapedText)||void 0===t?void 0:t.toString();return"string"==typeof r?r:i.default.isPropertyAccessExpression(e)?"".concat(n.getName(e.expression),".").concat(e.name.escapedText.toString()):i.default.isElementAccessExpression(e)?"".concat(n.getName(e.expression),"[").concat(n.getName(e.argumentExpression),"]"):"uknown"},n.postfix=function(e){return u.Escaper.variable(e)?'".'.concat(e,'"'):'"['.concat(JSON.stringify(e).split('"').join('\\"'),']"')},n.parameter=function(e,t,r){return void 0!==i.default.getDecorators?i.default.factory.createParameterDeclaration(void 0,void 0,e,(null==r?void 0:r.kind)===i.default.SyntaxKind.QuestionToken?i.default.factory.createToken(i.default.SyntaxKind.QuestionToken):void 0,null!=t?t:c.TypeFactory.keyword("any"),r&&r.kind!==i.default.SyntaxKind.QuestionToken?r:void 0):i.default.factory.createParameterDeclaration(void 0,void 0,void 0,e,(null==r?void 0:r.kind)===i.default.SyntaxKind.QuestionToken?i.default.factory.createToken(i.default.SyntaxKind.QuestionToken):void 0,t,r&&r.kind!==i.default.SyntaxKind.QuestionToken?r:void 0)}},67711:function(e,t,r){"use strict";var n,a,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonMetadataFactory=void 0;var i=r(86752),u=r(63664),c=r(92595),f=r(43390);(n=a||(t.JsonMetadataFactory=a={})).analyze=function(e){return function(t,r){return function(a){var o=new c.MetadataCollection,i=f.MetadataFactory.analyze(t,r)({escape:!0,constant:!0,absorb:!0,validate:n.validate})(o)(a);if(!1===i.success)throw u.TransformerError.from(e)(i.errors);return[o,i.data]}}},n.validate=function(e){var t,r,n=[];(e.atomics.some(function(e){return"bigint"===e.type})||e.constants.some(function(e){return"bigint"===e.type}))&&n.push("JSON does not support bigint type."),(e.tuples.some(function(e){return e.type.elements.some(function(e){return!1===e.isRequired()})})||e.arrays.some(function(e){return!1===e.type.value.isRequired()}))&&n.push("JSON does not support undefined type in array."),e.maps.length&&n.push("JSON does not support Map type."),e.sets.length&&n.push("JSON does not support Set type.");try{for(var a=o(e.natives),u=a.next();!u.done;u=a.next()){var c=u.value;!1===i.AtomicPredicator.native(c)&&"Date"!==c&&n.push("JSON does not support ".concat(c," type."))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return n}},97846:function(e,t,r){"use strict";var n,a,o,i,u,c,f,s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralFactory=void 0;var y=d(r(55423)),p=r(73906),m=r(61387);(n=f||(t.LiteralFactory=f={})).generate=function(e){if(null===e)return y.default.factory.createNull();if(y.default.isIdentifier(e))return e;if(e instanceof Array)return o(e);if("object"==typeof e)return a(e);if("string"==typeof e)return c(e);if("boolean"==typeof e)return i(e);if("number"==typeof e)return i(e);else if("bigint"==typeof e)return u(e);else if("function"==typeof e)return y.default.factory.createIdentifier("undefined");else throw TypeError("Error on LiteralFactory.generate(): unknown type.")},a=function(e){return y.default.factory.createObjectLiteralExpression(Object.entries(e).filter(function(e){return void 0!==e[1]}).map(function(e){var t=s(e,2),r=t[0],a=t[1];return y.default.factory.createPropertyAssignment(m.IdentifierFactory.identifier(r),n.generate(a))}),!0)},o=function(e){return y.default.factory.createArrayLiteralExpression(e.map(n.generate),!0)},i=function(e){return y.default.factory.createIdentifier(e.toString())},u=function(e){return p.ExpressionFactory.bigint(e)},c=function(e){return y.default.factory.createStringLiteral(e)}},92595:function(e,t,r){"use strict";var n,a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataCollection=void 0;var u=r(49596),c=r(63860),f=r(58962),s=r(84530),d=r(61261),y=r(63224),p=r(37297),m=r(12301),v=function(){function MetadataCollection(e){this.options=e,this.objects_=new Map,this.object_unions_=new Map,this.aliases_=new Map,this.arrays_=new Map,this.tuples_=new Map,this.names_=new Map,this.object_index_=0,this.recursive_array_index_=0,this.recursive_tuple_index_=0}return MetadataCollection.prototype.aliases=function(){return o([],a(this.aliases_.values()),!1)},MetadataCollection.prototype.objects=function(){return o([],a(this.objects_.values()),!1)},MetadataCollection.prototype.unions=function(){return o([],a(this.object_unions_.values()),!1)},MetadataCollection.prototype.arrays=function(){return o([],a(this.arrays_.values()),!1)},MetadataCollection.prototype.tuples=function(){return o([],a(this.tuples_.values()),!1)},MetadataCollection.prototype.getName=function(e,t){var r,n,a=(n=m.TypeFactory.getFullName(e)(t),(null===(r=this.options)||void 0===r?void 0:r.replace)?this.options.replace(n):n),o=y.MapUtil.take(this.names_)(a,function(){return new Map}),i=o.get(t);if(void 0!==i)return i;var u=o.size?"".concat(a,".o").concat(o.size):a;return o.set(t,u),u},MetadataCollection.prototype.getUnionIndex=function(e){var t=e.objects.map(function(e){return e.name}).join(" | ");return y.MapUtil.take(this.object_unions_)(t,function(){return e.objects}),o([],a(this.object_unions_.keys()),!1).indexOf(t)},MetadataCollection.prototype.emplace=function(e,t){var r,n,a,o,i,u,c=this.objects_.get(t);if(void 0!==c)return[c,!1];var s=this.getName(e,t),d=f.MetadataObject.create({name:s,properties:[],description:null!==(n=null!==(r=t.aliasSymbol&&p.CommentFactory.description(t.aliasSymbol))&&void 0!==r?r:t.symbol&&p.CommentFactory.description(t.symbol))&&void 0!==n?n:void 0,jsDocTags:null!==(u=null!==(o=null===(a=t.aliasSymbol)||void 0===a?void 0:a.getJsDocTags())&&void 0!==o?o:null===(i=t.symbol)||void 0===i?void 0:i.getJsDocTags())&&void 0!==u?u:[],validated:!1,index:this.object_index_++,recursive:null,nullables:[]});return this.objects_.set(t,d),[d,!0]},MetadataCollection.prototype.emplaceAlias=function(e,t,r){var n,a,o=this.aliases_.get(t);if(void 0!==o)return[o,!1,function(){}];var i=this.getName(e,t),c=u.MetadataAlias.create({name:i,value:null,description:null!==(n=p.CommentFactory.description(r))&&void 0!==n?n:null,recursive:null,nullables:[],jsDocTags:null!==(a=r.getJsDocTags())&&void 0!==a?a:[]});return this.aliases_.set(t,c),[c,!0,function(e){return(0,d.Writable)(c).value=e}]},MetadataCollection.prototype.emplaceArray=function(e,t){var r=this.arrays_.get(t);if(void 0!==r)return[r,!1,function(){}];var n=this.getName(e,t),a=c.MetadataArrayType.create({name:n,value:null,index:null,recursive:null,nullables:[]});return this.arrays_.set(t,a),[a,!0,function(e){return(0,d.Writable)(a).value=e}]},MetadataCollection.prototype.emplaceTuple=function(e,t){var r=this.tuples_.get(t);if(void 0!==r)return[r,!1,function(){}];var n=this.getName(e,t),a=s.MetadataTupleType.create({name:n,elements:null,index:null,recursive:null,nullables:[]});return this.tuples_.set(t,a),[a,!0,function(e){return(0,d.Writable)(a).elements=e}]},MetadataCollection.prototype.setObjectRecursive=function(e,t){(0,d.Writable)(e).recursive=t},MetadataCollection.prototype.setAliasRecursive=function(e,t){(0,d.Writable)(e).recursive=t},MetadataCollection.prototype.setArrayRecursive=function(e,t){(0,d.Writable)(e).recursive=t,t&&((0,d.Writable)(e).index=this.recursive_array_index_++)},MetadataCollection.prototype.setTupleRecursive=function(e,t){(0,d.Writable)(e).recursive=t,t&&((0,d.Writable)(e).index=this.recursive_tuple_index_++)},MetadataCollection.prototype.toJSON=function(){return{objects:this.objects().map(function(e){return e.toJSON()}),aliases:this.aliases().map(function(e){return e.toJSON()}),arrays:o([],a(this.arrays_.values()),!1).map(function(e){return e.toJSON()}),tuples:o([],a(this.tuples_.values()),!1).map(function(e){return e.toJSON()})}},MetadataCollection}();t.MetadataCollection=v,(n=v||(t.MetadataCollection=v={})).replace=function(e){var t,r,n,o,u=e;try{for(var c=i(g),f=c.next();!f.done;f=c.next()){var s=a(f.value,1)[0];u=u.split(s).join("")}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}if(0!==u.length)return u;try{for(var d=i(g),y=d.next();!y.done;y=d.next()){var p=a(y.value,2),s=p[0],m=p[1];e=e.split(s).join(m)}}catch(e){n={error:e}}finally{try{y&&!y.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}return e},n.escape=function(e){var t,r;try{for(var n=i(g),o=n.next();!o.done;o=n.next()){var u=a(o.value,2),c=u[0],f=u[1];""!==f&&(e=e.split(f).join(c))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return e};var g=[["$","_dollar_"],["&","_and_"],["|","_or_"],["{","_blt_"],["}","_bgt_"],["<","_lt_"],[">","_gt_"],["[","_alt_"],["]","_agt_"],[",","_comma_"],["`","_backquote_"],["'","_singlequote_"],['"',"_doublequote_"],[" ","_space_"],["?","_question_"],[":","_colon_"],[";","_semicolon_"]]},7825:function(e,t,r){"use strict";var n,a,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a"),target:"array",kind:"minItems",value:parse_integer(e)(!0)(t),validate:"".concat(t," <= $input.length"),exclusive:!0},{name:"MaxItems<".concat(t,">"),target:"array",kind:"maxItems",value:parse_integer(e)(!0)(t),validate:"$input.length <= ".concat(t),exclusive:!0}]}}},minItems:function(e){return function(t){return{array:[{name:"MinItems<".concat(t,">"),target:"array",kind:"minItems",value:parse_integer(e)(!0)(t),validate:"".concat(t," <= $input.length"),exclusive:!0}]}}},maxItems:function(e){return function(t){return{array:[{name:"MaxItems<".concat(t,">"),target:"array",kind:"maxItems",value:parse_integer(e)(!0)(t),validate:"$input.length <= ".concat(t),exclusive:!0}]}}},type:function(){return function(e){return(e.startsWith("{")&&e.endsWith("}")&&(e=e.substring(1,e.length-1)),"int"===e?e="int32":"uint"===e&&(e="uint32"),!1===["int32","uint32","int64","uint64","float","double"].includes(e))?{}:{number:[{name:"Type<".concat(JSON.stringify(e),">"),target:"number",kind:"type",value:e,validate:"int32"===e?"Math.floor($input) === $input && -2147483648 <= $input && $input <= 2147483647":"uint32"===e?"Math.floor($input) === $input && 0 <= $input && $input <= 4294967295":"int64"===e?"Math.floor($input) === $input && -9223372036854775808 <= $input && $input <= 9223372036854775807":"uint64"===e?"Math.floor($input) === $input && 0 <= $input && $input <= 18446744073709551615":"float"===e?"-1.175494351e38 <= $input && $input <= 3.4028235e38":"true",exclusive:!0}],bigint:[{name:"Type<".concat(JSON.stringify(e),">"),target:"bigint",kind:"type",value:e,validate:"int64"===e?"true":"BigInt(0) <= $input",exclusive:!0}]}}},minimum:function(e){return function(t){var r;return{number:[{name:"Minimum<".concat(t,">"),target:"number",kind:"minimum",value:parse_number(e)(t),validate:"".concat(t," <= $input"),exclusive:["minimum","exclusiveMinimum"]}],bigint:[{name:"Minimum<".concat(t,"n>"),target:"bigint",kind:"minimum",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"".concat(t," <= $input"),exclusive:["minimum","exclusiveMinimum"]}]}}},maximum:function(e){return function(t){var r;return{number:[{name:"Maximum<".concat(t,">"),target:"number",kind:"maximum",value:parse_number(e)(t),validate:"$input <= ".concat(t),exclusive:["maximum","exclusiveMaximum"]}],bigint:[{name:"Maximum<".concat(t,"n>"),target:"bigint",kind:"maximum",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"$input <= ".concat(t),exclusive:["maximum","exclusiveMaximum"]}]}}},exclusiveMinimum:function(e){return function(t){var r;return{number:[{name:"ExclusiveMinimum<".concat(t,">"),target:"number",kind:"exclusiveMinimum",value:parse_number(e)(t),validate:"".concat(t," < $input"),exclusive:["minimum","exclusiveMinimum"]}],bigint:[{name:"ExclusiveMinimum<".concat(t,"n>"),target:"bigint",kind:"exclusiveMinimum",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"".concat(t," < $input"),exclusive:["minimum","exclusiveMinimum"]}]}}},exclusiveMaximum:function(e){return function(t){var r;return{number:[{name:"ExclusiveMaximum<".concat(t,">"),target:"number",kind:"exclusiveMaximum",value:parse_number(e)(t),validate:"$input < ".concat(t),exclusive:["maximum","exclusiveMaximum"]}],bigint:[{name:"ExclusiveMaximum<".concat(t,"n>"),target:"bigint",kind:"exclusiveMaximum",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"$input < ".concat(t),exclusive:["maximum","exclusiveMaximum"]}]}}},multipleOf:function(e){return function(t){var r;return{number:[{name:"MultipleOf<".concat(t,">"),target:"number",kind:"multipleOf",value:parse_number(e)(t),validate:"$input % ".concat(t," === 0"),exclusive:!0}],bigint:[{name:"MultipleOf<".concat(t,"n>"),target:"bigint",kind:"multipleOf",value:null===(r=parse_integer(e)(!1)(t))?null:BigInt(r),validate:"$input % ".concat(t,"n === 0n"),exclusive:!0}]}}},format:function(){return function(e){var t=y.get(e);return void 0===t?{}:{string:[{name:"Format<".concat(JSON.stringify(t[0]),">"),target:"string",kind:"format",value:t[0],validate:t[1],exclusive:!0}]}}},pattern:function(){return function(e){return{string:[{name:"Pattern<".concat(JSON.stringify(e),">"),target:"string",kind:"pattern",value:e,validate:"RegExp(/".concat(e,"/).test($input)"),exclusive:["format"]}]}}},length:function(e){return function(t){return{string:[{name:"MinLength<".concat(t,">"),target:"string",kind:"minLength",value:parse_number(e)(t),validate:"".concat(t," <= $input.length"),exclusive:!0},{name:"MaxLength<".concat(t,">"),target:"string",kind:"maxLength",value:parse_number(e)(t),validate:"$input.length <= ".concat(t),exclusive:!0}]}}},minLength:function(e){return function(t){return{string:[{name:"MinLength<".concat(t,">"),target:"string",kind:"minLength",value:parse_number(e)(t),validate:"".concat(t," <= $input.length"),exclusive:!0}]}}},maxLength:function(e){return function(t){return{string:[{name:"MaxLength<".concat(t,">"),target:"string",kind:"maxLength",value:parse_number(e)(t),validate:"$input.length <= ".concat(t),exclusive:!0}]}}}},parse_number=function(e){return function(t){var r=Number(t);return!0===isNaN(r)?e("invalid number"):r}},parse_integer=function(e){return function(t){return function(r){var n=parse_number(e)(r);return null===n?null:Math.floor(n)!==n?e("invalid integer"):!0===t&&n<0?e("invalid unsigned integer"):n}}},y=new Map(u(u([],i(Object.entries(f.FormatCheatSheet).map(function(e){var t=i(e,2),r=t[0];return[r,[r,t[1]]]})),!1),[["datetime",["date-time","!isNaN(new Date($input).getTime())"]],["dateTime",["date-time","!isNaN(new Date($input).getTime())"]]],!1))},43390:function(e,t,r){"use strict";var n,a,o,i,u,c,f,s,d=this&&this.__assign||function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},p=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataFactory=void 0;var g=v(r(55423)),_=r(3078),b=r(51665),x=r(71903),S=r(30628),T=r(56896),E=r(73906);(n=s||(t.MetadataFactory=s={})).analyze=function(e,t){return function(r){return function(n){return function(o){var i=[],u=(0,x.explore_metadata)(e)(r)(n)(i)(o,{top:!0,object:null,property:null,nested:null,escaped:!1,aliased:!1});return(0,S.iterate_metadata_collection)(i)(n),(0,T.iterate_metadata_sort)(n)(u),r.validate&&i.push.apply(i,p([],y(a(t)(r)(r.validate)(u)),!1)),i.length?{success:!1,errors:i}:{success:!0,data:u}}}}},n.soleLiteral=function(e){var t=_.Metadata.initialize();return t.constants.push(b.MetadataConstant.from({values:[e],type:"string"})),t},a=function(e){return function(t){return function(r){return function(n){var a={functor:r,errors:[],objects:new Set,arrays:new Set,tuples:new Set,aliases:new Set};return o(e)(t)(a)(n,{object:null,property:null,nested:null,top:!0,aliased:!1,escaped:!1}),a.errors}}}},o=function(e){return function(t){return function(r){return function(n,a){var s,v,_,b,x,S,T,w,P,I,j,F,A,M,O,C,N,R,L=[];if(void 0!==e)try{for(var U=m(n.atomics),H=U.next();!H.done;H=U.next()){var q=H.value;try{for(var z=(_=void 0,m(q.tags)),B=z.next();!B.done;B=z.next()){var V=B.value;try{for(var J=(x=void 0,m(V.filter(function(e){return void 0!==e.validate&&void 0===e.predicate}))),G=J.next();!G.done;G=J.next()){var Q=G.value;try{Q.predicate=E.ExpressionFactory.transpile(e)(Q.validate)}catch(e){L.push("Unable to transpile type tag script: ".concat(JSON.stringify(Q.validate))),Q.predicate=function(){return g.default.factory.createTrue()}}}}catch(e){x={error:e}}finally{try{G&&!G.done&&(S=J.return)&&S.call(J)}finally{if(x)throw x.error}}}}catch(e){_={error:e}}finally{try{B&&!B.done&&(b=z.return)&&b.call(z)}finally{if(_)throw _.error}}}}catch(e){s={error:e}}finally{try{H&&!H.done&&(v=U.return)&&v.call(U)}finally{if(s)throw s.error}}L.push.apply(L,p([],y(r.functor(n,a)),!1)),L.length&&r.errors.push({name:n.getName(),explore:d({},a),messages:p([],y(new Set(L)),!1)});try{for(var W=m(n.aliases),K=W.next();!K.done;K=W.next()){var Y=K.value;i(e)(t)(r)(Y,a)}}catch(e){T={error:e}}finally{try{K&&!K.done&&(w=W.return)&&w.call(W)}finally{if(T)throw T.error}}try{for(var Z=m(n.arrays),X=Z.next();!X.done;X=Z.next()){var ee=X.value;u(e)(t)(r)(ee.type,a)}}catch(e){P={error:e}}finally{try{X&&!X.done&&(I=Z.return)&&I.call(Z)}finally{if(P)throw P.error}}try{for(var et=m(n.tuples),er=et.next();!er.done;er=et.next()){var en=er.value;c(e)(t)(r)(en.type,a)}}catch(e){j={error:e}}finally{try{er&&!er.done&&(F=et.return)&&F.call(et)}finally{if(j)throw j.error}}try{for(var ea=m(n.objects),eo=ea.next();!eo.done;eo=ea.next()){var ei=eo.value;f(e)(t)(r)(ei)}}catch(e){A={error:e}}finally{try{eo&&!eo.done&&(M=ea.return)&&M.call(ea)}finally{if(A)throw A.error}}try{for(var eu=m(n.sets),ec=eu.next();!ec.done;ec=eu.next()){var el=ec.value;o(e)(t)(r)(el,a)}}catch(e){O={error:e}}finally{try{ec&&!ec.done&&(C=eu.return)&&C.call(eu)}finally{if(O)throw O.error}}try{for(var ef=m(n.maps),es=ef.next();!es.done;es=ef.next()){var ed=es.value;o(e)(t)(r)(ed.key,a),o(e)(t)(r)(ed.value,a)}}catch(e){N={error:e}}finally{try{es&&!es.done&&(R=ef.return)&&R.call(ef)}finally{if(N)throw N.error}}!0===t.escape&&null!==n.escaped&&o(e)(t)(r)(n.escaped.returns,d(d({},a),{escaped:!0}))}}}},i=function(e){return function(t){return function(r){return function(n,a){r.aliases.has(n)||(r.aliases.add(n),o(e)(t)(r)(n.value,d(d({},a),{nested:n,aliased:!0})))}}}},u=function(e){return function(t){return function(r){return function(n,a){r.arrays.has(n)||(r.arrays.add(n),o(e)(t)(r)(n.value,d(d({},a),{nested:n,top:!1})))}}}},c=function(e){return function(t){return function(r){return function(n,a){var i,u;if(!r.tuples.has(n)){r.tuples.add(n);try{for(var c=m(n.elements),f=c.next();!f.done;f=c.next()){var s=f.value;o(e)(t)(r)(s,d(d({},a),{nested:n,top:!1}))}}catch(e){i={error:e}}finally{try{f&&!f.done&&(u=c.return)&&u.call(c)}finally{if(i)throw i.error}}}}}}},f=function(e){return function(t){return function(r){return function(n){var a,i;if(!r.objects.has(n)){if(r.objects.add(n),t.validate){var u={object:n,top:!1,property:null,nested:null,escaped:!1,aliased:!1},c=t.validate(_.Metadata.create(d(d({},_.Metadata.initialize()),{objects:[n]})),u);c.length&&r.errors.push({name:n.name,explore:u,messages:p([],y(new Set(c)),!1)})}try{for(var f=m(n.properties),s=f.next();!s.done;s=f.next()){var v=s.value;o(e)(t)(r)(v.value,{object:n,property:v.key.isSoleLiteral()?v.key.getSoleLiteral():{},nested:null,top:!1,aliased:!1,escaped:!1})}}catch(e){a={error:e}}finally{try{s&&!s.done&&(i=f.return)&&i.call(f)}finally{if(a)throw a.error}}}}}}}},76331:function(e,t){"use strict";var r,n,a,o,i,u=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},f=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)?(e.push({name:f([t],c(o.map(function(e){return e.name})),!1).join(" & "),explore:i,messages:m}),[]):_}}},r.validate=function(e){return function(t){return function(r){var n,a,o=!0;try{for(var i=u(r),c=i.next();!c.done;c=i.next())c.value.target!==t&&o&&(o=e(null)("target must constains ".concat(t," type")))}catch(e){n={error:e}}finally{try{c&&!c.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}return r.forEach(function(t,n){if(!1!==t.exclusive){if(!0===t.exclusive){var a=r.some(function(e,r){return n!==r&&e.kind===t.kind});!0===a&&o&&(o=e(null)("kind '".concat(t.kind,"' can't be duplicated")))}else if(Array.isArray(t.exclusive)){var a=r.find(function(e,r){return n!==r&&e.kind===t.kind&&t.exclusive.includes(e.name)});void 0!==a&&(null!=o||(o=e(null)("kind '".concat(t.kind,"' can't be used with '").concat(a.name,"'"))))}}}),o}}},n=function(e){return function(t,r){var n;if("target"===t&&(1!==r.constants.length||r.constants[0].values.length!==r.size()||r.constants[0].values.some(function(e){return"boolean"!==e&&"bigint"!==e&&"number"!==e&&"string"!==e&&"array"!==e})))return e(t)("must be one of 'boolean', 'bigint', 'number', 'string', 'array'");if("kind"===t&&(1!==r.size()||1!==r.constants.length||"string"!==r.constants[0].type||1!==r.constants[0].values.length))return e(t)("must be a string literal type");if("value"===t&&(r.size()>1||0!==r.size()&&(1!==r.constants.length||1!==r.constants[0].values.length)))return e(t)("must be a constant literal type or undefined value");if("exclusive"===t)return null!==o(e)(t)(r);if("validate"===t){if(0===r.size()&&!1===r.isRequired()&&!1===r.nullable||1===r.size()&&1===r.constants.length&&"string"===r.constants[0].type&&1===r.constants[0].values.length==!0)return!0;var a=null===(n=r.objects[0])||void 0===n?void 0:n.properties.map(function(e){return e.key.getSoleLiteral()}).filter(function(e){return null!==e});if(void 0===a)return e("target")("must be one of 'boolean', 'bigint', 'number', 'string', 'array'");if(!1===(1===r.size()&&1===r.objects.length&&r.objects[0].properties.every(function(e){return 1===e.value.size()&&e.value.isRequired()&&!1===e.value.nullable&&1===e.value.constants.length&&"string"===e.value.constants[0].type&&1===e.value.constants[0].values.length&&a.includes(e.key.getSoleLiteral())})))return e(t)("must be a string literal type or Record type.")}return!0}},a=function(e){return function(t){var r,n,a,i,u,find=function(e){var r,n;return null===(n=null===(r=t.properties[0])||void 0===r?void 0:r.value.objects[0])||void 0===n?void 0:n.properties.find(function(t){return t.key.getSoleLiteral()===e})},c=find("target").value.constants[0].values,f=find("kind").value.constants[0].values[0],s=null===(i=null===(a=find("value"))||void 0===a?void 0:a.value.constants[0])||void 0===i?void 0:i.values[0],d=o(e)("exclusive")(null===(u=find("exclusive"))||void 0===u?void 0:u.value);if(null===d)return null;var y=(n=null===(r=find("validate"))||void 0===r?void 0:r.value)&&0!==n.size()?n.constants.length?Object.fromEntries(c.map(function(e){return[e,n.constants[0].values[0]]})):Object.fromEntries(n.objects[0].properties.map(function(e){return[e.key.getSoleLiteral(),e.value.constants[0].values[0]]})):{};return{name:t.name,target:c,kind:f,value:s,validate:y,exclusive:null!=d&&d}}},o=function(e){return function(t){return function(r){return void 0!==r&&(1===r.size()&&1===r.constants.length&&"boolean"===r.constants[0].type&&1===r.constants[0].values.length?r.constants[0].values[0]:1===r.size()&&1===r.tuples.length&&r.tuples[0].type.elements.every(function(e){return 1===e.size()&&1===e.constants.length&&"string"===e.constants[0].type&&1===e.constants[0].values.length})?r.tuples[0].type.elements.map(function(e){return e.constants[0].values[0]}):(e(t)("must a boolean literal type or a tuple of string literal types."),null))}}};var s=["target","kind","value"],d=f(f([],c(s),!1),["validate","exclusive"],!1)},84981:function(e,t,r){"use strict";var n,a,o,i,u,c,f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumericRangeFactory=void 0;var s=f(r(55423)),d=r(73906);(n=i||(t.NumericRangeFactory=i={})).number=function(e){return function(t){return u[e](t)}},n.bigint=function(e){return function(t){return c[e](t)}},(a=u||(u={})).int32=function(e){return s.default.factory.createLogicalAnd(integer(e),between("-2147483648","2147483647")(e))},a.uint32=function(e){return s.default.factory.createLogicalAnd(integer(e),between("0","4294967295")(e))},a.int64=function(e){return s.default.factory.createLogicalAnd(integer(e),between("-9223372036854775808","9223372036854775807")(e))},a.uint64=function(e){return s.default.factory.createLogicalAnd(integer(e),between("0","18446744073709551615")(e))},a.float=function(e){return between("-1.175494351e38","3.4028235e38")(e)},a.double=function(){return s.default.factory.createTrue()},(o=c||(c={})).int64=function(){return s.default.factory.createTrue()},o.uint64=function(e){return s.default.factory.createLessThanEquals(s.default.factory.createCallExpression(s.default.factory.createIdentifier("BigInt"),void 0,[d.ExpressionFactory.number(0)]),e)};var integer=function(e){return s.default.factory.createStrictEquality(s.default.factory.createCallExpression(s.default.factory.createIdentifier("Math.floor"),void 0,[e]),e)},between=function(e,t){return function(r){return s.default.factory.createLogicalAnd(s.default.factory.createLessThanEquals(s.default.factory.createIdentifier(e),r),s.default.factory.createLessThanEquals(r,s.default.factory.createIdentifier(t)))}}},74123:function(e,t,r){"use strict";var n,a,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a cannot be used in both number and bigint types. Recommend to remove from number type'))};try{for(var _=o(["int64","uint64"]),b=_.next();!b.done;b=_.next()){var x=b.value;_loop_1(x)}}catch(e){a={error:e}}finally{try{b&&!b.done&&(i=_.return)&&i.call(_)}finally{if(a)throw a.error}}}return e.arrays.length&&e.arrays.some(function(e){return!!e.type.value.arrays.length})&&noSupport("over two dimenstional array type"),e.arrays.length&&e.arrays.some(function(e){return!1===e.type.value.isRequired()||!0===e.type.value.nullable})&&noSupport("optional type in array"),e.arrays.length&&e.arrays.some(function(e){return e.type.value.size()>1})&&noSupport("union type in array"),e.arrays.length&&e.arrays.some(function(e){return e.type.value.maps.length||e.type.value.objects.length&&e.type.value.objects.some(function(e){return!1===c.ProtobufUtil.isStaticObject(e)})})&&noSupport("dynamic object in array"),e.size()>1&&e.arrays.length&&noSupport("union type with array type"),e.objects.length&&e.objects.some(function(e){return 0===e.properties.length})&&noSupport("empty object type"),e.objects.length&&e.objects.some(function(e){return e.properties.filter(function(e){return!e.key.isSoleLiteral()}).length>1})&&noSupport("object type with multiple dynamic key typed properties. Keep only one."),e.objects.length&&e.objects.some(function(e){return e.properties.some(function(e){return e.key.isSoleLiteral()})&&e.properties.some(function(e){return!e.key.isSoleLiteral()})})&&noSupport("object type with mixed static and dynamic key typed properties. Keep statics or dynamic only."),e.objects.length&&e.objects.some(function(e){return e.properties.some(function(e){return!0===e.key.isSoleLiteral()&&!1===s.Escaper.variable(e.key.getSoleLiteral())})})&&noSupport("object type with invalid static key name."),e.objects.length&&isDynamicObject(e.objects[0])&&e.objects[0].properties.some(function(e){return!!e.value.arrays.length})&&noSupport("dynamic object with array value type"),e.size()>1&&e.objects.length&&isDynamicObject(e.objects[0])&&noSupport("union type with dynamic object type"),e.objects.length&&e.objects.some(function(e){return isDynamicObject(e)&&e.properties.some(function(e){return c.ProtobufUtil.isUnion(e.value)})})&&noSupport("union type in dynamic property"),e.maps.length&&e.maps.some(function(e){return c.ProtobufUtil.isUnion(e.key)})&&noSupport("union key typed map"),e.maps.length&&e.maps.some(function(e){return 1!==c.ProtobufUtil.getAtomics(e.key).length})&&noSupport("non-atomic key typed map"),e.maps.length&&e.maps.some(function(e){return!1===e.key.isRequired()||e.key.nullable})&&noSupport("optional key typed map"),e.maps.length&&e.maps.some(function(e){return!!e.value.arrays.length})&&noSupport("map type with array value type"),e.size()>1&&e.maps.length&&noSupport("union type with map type"),e.maps.length&&e.maps.some(function(e){return c.ProtobufUtil.isUnion(e.value)})&&noSupport("union type in map value type"),u};var isDynamicObject=function(e){return!1===e.properties[0].key.isSoleLiteral()},y=new Map(u(u([["Date","string"],["Boolean","boolean"],["BigInt","bigint"],["Number","number"],["String","string"]],i(["Buffer","Uint8ClampedArray","Uint16Array","Uint32Array","BigUint64Array","Int8Array","Int16Array","Int32Array","BigInt64Array","Float32Array","Float64Array","DataView","ArrayBuffer","SharedArrayBuffer"].map(function(e){return[e,"Uint8Array"]})),!1),[["WeakSet","Array"],["WeakMap","Map"]],!1))},6152:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatementFactory=void 0;var i=o(r(55423));(n=a||(t.StatementFactory=a={})).mut=function(e,t){return i.default.factory.createVariableStatement(void 0,i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(e,void 0,void 0,t)],i.default.NodeFlags.Let))},n.constant=function(e,t){return i.default.factory.createVariableStatement(void 0,i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(e,void 0,void 0,t)],i.default.NodeFlags.Const))},n.entry=function(e){return function(t){return i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(i.default.factory.createArrayBindingPattern([i.default.factory.createBindingElement(void 0,void 0,i.default.factory.createIdentifier(e),void 0),i.default.factory.createBindingElement(void 0,void 0,i.default.factory.createIdentifier(t),void 0)]),void 0,void 0,void 0)],i.default.NodeFlags.Const)}},n.transpile=function(e){return i.default.factory.createExpressionStatement(i.default.factory.createIdentifier(i.default.transpile(e)))},n.block=function(e){return i.default.factory.createBlock([i.default.factory.createExpressionStatement(e)],!0)}},95374:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateFactory=void 0;var i=o(r(55423));(a||(t.TemplateFactory=a={})).generate=function(e){if(e.every(function(e){return i.default.isStringLiteral(e)}))return i.default.factory.createStringLiteral(e.map(function(e){return e.text}).join(""));var t={value:"",index:0};n(e)(t);for(var r=i.default.factory.createTemplateHead(t.value),a=[];;){var o=e[t.index++];n(e)(t);var u=t.index===e.length;if(a.push(i.default.factory.createTemplateSpan(o,u?i.default.factory.createTemplateTail(t.value):i.default.factory.createTemplateMiddle(t.value))),!0===u)break}return i.default.factory.createTemplateExpression(r,a)},n=function(e){return function(t){var r=e.findIndex(function(e,r){return r>=t.index&&!i.default.isStringLiteral(e)}),n=-1!==r?r:e.length;t.value=e.slice(t.index,n).map(function(e){return e.text}).reduce(function(e,t){return e+t},""),t.index=n}}},12301:function(e,t,r){"use strict";var n,a,o,i,u,c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFactory=void 0;var f=c(r(55423));(n=u||(t.TypeFactory=u={})).isFunction=function(e){return null!==a(e)},a=function(e){var t,r,n=null===(r=null===(t=e.symbol)||void 0===t?void 0:t.declarations)||void 0===r?void 0:r[0];return void 0===n?null:f.default.isFunctionLike(n)?n:(f.default.isPropertyAssignment(n)||f.default.isPropertyDeclaration(n))&&f.default.isFunctionLike(n.initializer)?n.initializer:null},n.getReturnType=function(e){return function(t){return function(r){var n=t.getProperty(r);if(!n||!n.valueDeclaration)return null;var a=e.getTypeOfSymbolAtLocation(n,n.valueDeclaration),o=e.getSignaturesOfType(a,f.default.SignatureKind.Call)[0];return o?o.getReturnType():null}}},n.getFullName=function(e){return function(t,r){if(null!=r||(r=null!==(a=t.aliasSymbol)&&void 0!==a?a:t.getSymbol()),void 0===r)return e.typeToString(t);if(void 0===t.aliasSymbol&&t.isUnionOrIntersection()){var a,o=t.isIntersection()?" & ":" | ";return t.types.map(function(t){return n.getFullName(e)(t)}).join(o)}var u=i(r),c=t.aliasSymbol?t.aliasTypeArguments||[]:e.getTypeArguments(t);return c.length?"Promise"===u?n.getFullName(e)(c[0]):"".concat(u,"<").concat(c.map(function(t){return n.getFullName(e)(t)}).join(", "),">"):u}},o=function(e){return function(t){return f.default.isModuleBlock(e)?o(e.parent.parent)("".concat(e.parent.name.getFullText().trim(),".").concat(t)):t}},i=function(e){var t,r,n=null===(r=null===(t=e.getDeclarations())||void 0===t?void 0:t[0])||void 0===r?void 0:r.parent;return n?o(n)(e.escapedName.toString()):"__type"},n.keyword=function(e){return f.default.factory.createKeywordTypeNode("void"===e?f.default.SyntaxKind.VoidKeyword:"any"===e?f.default.SyntaxKind.AnyKeyword:"unknown"===e?f.default.SyntaxKind.UnknownKeyword:"boolean"===e?f.default.SyntaxKind.BooleanKeyword:"number"===e?f.default.SyntaxKind.NumberKeyword:"bigint"===e?f.default.SyntaxKind.BigIntKeyword:f.default.SyntaxKind.StringKeyword)}},84411:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValueFactory=void 0;var i=o(r(55423));(n=a||(t.ValueFactory=a={})).NULL=function(){return i.default.factory.createNull()},n.UNDEFINED=function(){return i.default.factory.createIdentifier("undefined")},n.BOOLEAN=function(e){return e?i.default.factory.createTrue():i.default.factory.createFalse()},n.INPUT=function(e){return void 0===e&&(e="input"),i.default.factory.createIdentifier(e)},n.TYPEOF=function(e){return i.default.factory.createTypeOfExpression(e)}},19614:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataHelper=void 0;var n,a=r(3078),o=r(51665);(n||(t.MetadataHelper=n={})).literal_to_metadata=function(e){var t=a.Metadata.initialize();return t.constants.push(o.MetadataConstant.create({type:"string",values:[e]})),t}},30500:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.emend_metadata_atomics=void 0;var a=r(45041),o=r(73346);t.emend_metadata_atomics=function(e){var t,r,_loop_1=function(t){var r=e.constants.findIndex(function(e){return e.type===t.type});-1!==r&&e.constants.splice(r,1)};try{for(var i=n(e.atomics),u=i.next();!u.done;u=i.next()){var c=u.value;_loop_1(c)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}var f=e.constants.findIndex(function(e){return"boolean"===e.type});if(-1!==f&&2===e.constants[f].values.length){var s=e.constants.splice(f,1)[0];o.ArrayUtil.take(e.atomics,function(e){return"boolean"===e.type},function(){var e;return a.MetadataAtomic.create({type:"boolean",tags:null!==(e=s.tags)&&void 0!==e?e:[]})}),s.tags=void 0}e.templates.length&&void 0!==e.atomics.find(function(e){return"string"===e.type})&&e.templates.splice(0,e.templates.length)}},33389:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.emplace_metadata_alias=void 0;var o=r(73346),i=r(71903);t.emplace_metadata_alias=function(e){return function(t){return function(r){return function(u){return function(c,f,s){var d=a(r.emplaceAlias(e,c,c.aliasSymbol),3),y=d[0],p=d[1],m=d[2];return o.ArrayUtil.add(y.nullables,f),!1===p||m((0,i.explore_metadata)(e)(t)(r)(u)(c,n(n({},s),{escaped:!1,aliased:!0}))),y}}}}}},33455:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.emplace_metadata_array_type=void 0;var o=r(73346),i=r(71903);t.emplace_metadata_array_type=function(e){return function(t){return function(r){return function(u){return function(c,f,s){var d=a(r.emplaceArray(e,c),3),y=d[0],p=d[1],m=d[2];return o.ArrayUtil.add(y.nullables,f),!1===p||m((0,i.explore_metadata)(e)(t)(r)(u)(c.getNumberIndexType(),n(n({},s),{escaped:!1,aliased:!1}))),y}}}}}},18083:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.emplace_metadata_object=void 0;var i=o(r(55423)),u=r(56724),c=r(61261),f=r(73346),s=r(37297),d=r(19614),y=r(71903);r(78167),t.emplace_metadata_object=function(e){return function(t){return function(r){return function(o){return function(p,m){var v,g,_,b,x,S,T=n(r.emplace(e,p),2),E=T[0],w=T[1];if(f.ArrayUtil.add(E.nullables,m,function(e){return e===m}),!1===w)return E;var P=p.isClass()?function(e){var t,r,n=null===(r=null===(t=e.getChildren()[0])||void 0===t?void 0:t.getChildren()[0])||void 0===r?void 0:r.kind;return n!==i.default.SyntaxKind.PrivateKeyword&&n!==i.default.SyntaxKind.ProtectedKeyword&&(i.default.isParameter(e)||isProperty(e))}:function(e){return isProperty(e)},insert=function(e){return function(t){return function(r,n){var a,o,i=r&&null!==(a=s.CommentFactory.description(r))&&void 0!==a?a:null,c=(null!==(o=null==r?void 0:r.getJsDocTags())&&void 0!==o?o:[]).filter(null!=n?n:function(){return!0}),f=u.MetadataProperty.create({key:e,value:t,description:i,jsDocTags:c});return E.properties.push(f),f}}};try{for(var I=a(p.getApparentProperties()),j=I.next();!j.done;j=I.next()){var F=j.value;!function(a){if(void 0===(null!==(x=a.getJsDocTags(e))&&void 0!==x?x:[]).find(function(e){return"internal"===e.name})){var u,f,s,m=n((s=(f=null===(u=a.getDeclarations())||void 0===u?void 0:u[0])?e.getTypeOfSymbolAtLocation(a,f):e.getTypeOfPropertyOfType(p,a.name),[f,s]),2),v=m[0],g=m[1];if((!v||!1!==P(v))&&void 0!==g){var _=d.MetadataHelper.literal_to_metadata(a.name),b=(0,y.explore_metadata)(e)(t)(r)(o)(g,{top:!1,object:E,property:a.name,nested:null,escaped:!1,aliased:!1});(0,c.Writable)(b).optional=(a.flags&i.default.SymbolFlags.Optional)!=0,insert(_)(b)(a)}}}(F)}}catch(e){v={error:e}}finally{try{j&&!j.done&&(g=I.return)&&g.call(I)}finally{if(v)throw v.error}}try{for(var A=a(e.getIndexInfosOfType(p)),M=A.next();!M.done;M=A.next()){var O=M.value,analyzer=function(n){return function(a){return(0,y.explore_metadata)(e)(t)(r)(o)(n,{top:!1,object:E,property:a,nested:null,escaped:!1,aliased:!1})}},C=analyzer(O.keyType)(null),N=analyzer(O.type)({});C.atomics.length+C.constants.map(function(e){return e.values.length}).reduce(function(e,t){return e+t},0)+C.templates.length+C.natives.filter(function(e){return"Boolean"===e||"BigInt"===e||"Number"===e||"String"===e}).length!==C.size()&&o.push({name:C.getName(),explore:{top:!1,object:E,property:"[key]",nested:null,escaped:!1,aliased:!1},messages:[]}),insert(C)(N)((null===(S=O.declaration)||void 0===S?void 0:S.parent)?e.getSymbolAtLocation(O.declaration.parent):void 0,function(e){return"default"!==e.name})}}catch(e){_={error:e}}finally{try{M&&!M.done&&(b=A.return)&&b.call(A)}finally{if(_)throw _.error}}return E}}}}};var isProperty=function(e){return i.default.isPropertyDeclaration(e)||i.default.isPropertyAssignment(e)||i.default.isPropertySignature(e)||i.default.isTypeLiteralNode(e)}},70373:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.emplace_metadata_tuple=void 0;var i=o(r(55423)),u=r(3078),c=r(61261),f=r(73346),s=r(71903);t.emplace_metadata_tuple=function(e){return function(t){return function(r){return function(o){return function(d,y,p){var m,v,g,_=a(r.emplaceTuple(e,d),3),b=_[0],x=_[1],S=_[2];if(f.ArrayUtil.add(b.nullables,y),!1===x)return b;var T=null!==(g=null!==(m=d.elementFlags)&&void 0!==m?m:null===(v=d.target)||void 0===v?void 0:v.elementFlags)&&void 0!==g?g:[];return S(e.getTypeArguments(d).map(function(a,f){var d=(0,s.explore_metadata)(e)(t)(r)(o)(a,n(n({},p),{nested:b,aliased:!1,escaped:!1})),y=T[f];if(y===i.default.ElementFlags.Optional&&((0,c.Writable)(d).optional=!0),y!==i.default.ElementFlags.Rest)return d;var m=u.Metadata.initialize();return(0,c.Writable)(m).rest=d,m})),b}}}}}},71903:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.explore_metadata=void 0;var n=r(3078),a=r(30500),o=r(24149);t.explore_metadata=function(e){return function(t){return function(r){return function(i){return function(u,c){var f=n.Metadata.initialize(c.escaped);return null===u||((0,o.iterate_metadata)(e)(t)(r)(i)(f,u,c),(0,a.emend_metadata_atomics)(f),f.escaped&&((0,a.emend_metadata_atomics)(f.escaped.original),(0,a.emend_metadata_atomics)(f.escaped.returns))),f}}}}}},24149:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_collection=void 0;var a=r(18521);t.iterate_metadata_collection=function(e){return function(t){try{for(var r,o,i,u,c,f,s=n(t.arrays()),d=s.next();!d.done;d=s.next()){var y=d.value;null===y.recursive&&t.setArrayRecursive(y,isArrayRecursive(new Set)(y)(y.value))}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}try{for(var p=n(t.tuples()),m=p.next();!m.done;m=p.next()){var v=m.value;if(null===v.recursive){var g=new Set;t.setTupleRecursive(v,v.elements.some(isTupleRecursive(g)(v)))}}}catch(e){i={error:e}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(i)throw i.error}}var _loop_1=function(r){if((0,a.iterate_metadata_comment_tags)(e)(r),null===r.recursive){var n=new Set;t.setObjectRecursive(r,r.properties.some(function(e){return isObjectRecursive(n)(r)(e.value)}))}};try{for(var _=n(t.objects()),b=_.next();!b.done;b=_.next()){var x=b.value;_loop_1(x)}}catch(e){c={error:e}}finally{try{b&&!b.done&&(f=_.return)&&f.call(_)}finally{if(c)throw c.error}}}};var isArrayRecursive=function(e){return function(t){return function(r){return!e.has(r)&&(e.add(r),r.arrays.some(function(r){return r.type===t||isArrayRecursive(e)(t)(r.type.value)})||r.aliases.some(function(r){return isArrayRecursive(e)(t)(r.value)})||r.tuples.some(function(r){return!r.type.recursive&&r.type.elements.some(function(r){return isArrayRecursive(e)(t)(r)})})||r.maps.some(function(r){return isArrayRecursive(e)(t)(r.value)})||r.sets.some(function(r){return isArrayRecursive(e)(t)(r)})||null!==r.escaped&&isArrayRecursive(e)(t)(r.escaped.returns)||null!==r.rest&&isArrayRecursive(e)(t)(r.rest))}}},isTupleRecursive=function(e){return function(t){return function(r){return!e.has(r)&&(e.add(r),r.tuples.some(function(r){return r.type===t||r.type.elements.some(function(r){return isTupleRecursive(e)(t)(r)})})||r.arrays.some(function(r){return!r.type.recursive&&isTupleRecursive(e)(t)(r.type.value)})||r.maps.some(function(r){return isTupleRecursive(e)(t)(r.value)})||r.sets.some(function(r){return isTupleRecursive(e)(t)(r)})||r.aliases.some(function(r){return isTupleRecursive(e)(t)(r.value)})||null!==r.escaped&&isTupleRecursive(e)(t)(r.escaped.returns)||null!==r.rest&&isTupleRecursive(e)(t)(r.rest))}}},isObjectRecursive=function(e){return function(t){return function(r){return!e.has(r)&&(e.add(r),r.objects.some(function(r){return t===r||r.properties.some(function(r){return isObjectRecursive(e)(t)(r.value)})})||r.aliases.some(function(r){return isObjectRecursive(e)(t)(r.value)})||r.arrays.some(function(r){return!r.type.recursive&&isObjectRecursive(e)(t)(r.type.value)})||r.tuples.some(function(r){return!r.type.recursive&&r.type.elements.some(function(r){return isObjectRecursive(e)(t)(r)})})||r.maps.some(function(r){return isObjectRecursive(e)(t)(r.value)})||r.sets.some(function(r){return isObjectRecursive(e)(t)(r)})||null!==r.escaped&&isObjectRecursive(e)(t)(r.escaped.returns)||null!==r.rest&&isObjectRecursive(e)(t)(r.rest))}}}},18521:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_comment_tags=void 0;var a=r(7825);t.iterate_metadata_comment_tags=function(e){return function(t){var r,o;if(!0!==t.tagged_){t.tagged_=!0;try{for(var i=n(t.properties),u=i.next();!u.done;u=i.next()){var c=u.value;a.MetadataCommentTagFactory.analyze(e)(c.value)(c.jsDocTags,{top:!1,object:t,property:c.key.isSoleLiteral()?c.key.getSoleLiteral():{},nested:null,escaped:!1,aliased:!1})}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}}}}},95032:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_constant=void 0;var a=n(r(55423)),o=r(51665),i=r(73346);t.iterate_metadata_constant=function(e){return function(t){return function(r,n){if(!t.constant)return!1;if(n.isLiteral()){var u,c="object"==typeof n.value?BigInt("".concat(n.value.negative?"-":"").concat(n.value.base10Value)):n.value,f=i.ArrayUtil.take(r.constants,function(e){return e.type===typeof c},function(){return o.MetadataConstant.create({type:typeof c,values:[]})});return i.ArrayUtil.add(f.values,c,function(e,t){return e===t}),!0}if(u=a.default.TypeFlags.BooleanLiteral,(n.getFlags()&u)!=0){var s="true"===e.typeToString(n),f=i.ArrayUtil.take(r.constants,function(e){return"boolean"===e.type},function(){return o.MetadataConstant.create({type:"boolean",values:[]})});return i.ArrayUtil.add(f.values,s,function(e,t){return e===t}),!0}return!1}}}},84991:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_intersection=void 0;var c=u(r(55423)),f=r(45041),s=r(51665),d=r(73346),y=r(92595),p=r(76331),m=r(71903),v=r(24149),g=r(22481);t.iterate_metadata_intersection=function(e){return function(t){return function(r){return function(u){return function(_,b,x){if(!b.isIntersection()||b.types.every(function(t){return(t.getFlags()&c.default.TypeFlags.Object)!=0&&!e.isArrayType(t)&&!e.isTupleType(t)}))return!1;var S,T,E,w,P,I,j,F,A,M,O=new y.MetadataCollection,C=[],N=o([],a(new Map(b.types.map(function(r){var a=(0,m.explore_metadata)(e)(n(n({},t),{absorb:!0}))(O)(C)(r,n(n({},x),{aliased:!1}));return[a.getName(),a]})).values()),!1);if(C.length)return u.push.apply(u,o([],a(C),!1)),!0;if(1===N.length)return(0,v.iterate_metadata)(e)(t)(r)(u)(_,b.types[0],x),!0;if(N.every(function(e){return e.objects.length===e.size()}))return!1;var R=void 0===(E=null===(T=null===(S=N.find(function(e){return 1===e.size()&&1===e.constants.length&&"boolean"===e.constants[0].type}))||void 0===S?void 0:S.constants[0])||void 0===T?void 0:T.values[0])?null:N.every(function(e){return 0===e.atomics.length||e.atomics.every(function(e){return"boolean"!==e.type})})?E:null;if(null!==R&&!0===_.boolean_literal_intersected_)return _.constants.find(function(e){return"boolean"===e.type}).values.push(R),!0;var L=N.map(function(e,t){return[e,t]}).filter(function(e){var t=a(e,1)[0];return 1===t.size()&&(1===t.atomics.length||1===t.constants.length&&"boolean"===t.constants[0].type||1===t.arrays.length)}),U=N.filter(function(e){return e.size()===e.constants.map(function(e){return e.values.length}).reduce(function(e,t){return e+t},0)+e.templates.length&&!(1===e.size()&&"boolean"===e.constants[0].type)}),H=N.filter(function(e){return!1===e.nullable&&!0===e.isRequired()&&e.objects.length&&e.objects.length===e.size()&&e.objects.every(function(e){return e.properties.every(function(e){return e.value.optional})})}),q=new Set(L.map(function(e){var t=a(e,1)[0];return o(o([],a(t.atomics.map(function(e){return e.type})),!1),a(t.constants.filter(function(e){return"boolean"===e.type}).map(function(e){return e.type})),!1)}).flat()),z=new Set(L.map(function(e){return a(e,1)[0].arrays.map(function(e){return e.type.name})}).flat());if(q.size+z.size>1||L.length+H.length+U.length!==N.length)return u.push({name:N.map(function(e){return e.getName()}).join(" & "),explore:n({},x),messages:["nonsensible intersection"]}),!0;if(0===q.size&&0===z.size&&U.length){try{for(var B=i(U),V=B.next();!V.done;V=B.next()){var J=V.value;try{for(var G=(I=void 0,i(J.templates)),Q=G.next();!Q.done;Q=G.next()){var W=Q.value;d.ArrayUtil.add(_.templates,W,function(e,t){return e.map(function(e){return e.getName()}).join(" | ")===t.map(function(e){return e.getName()}).join(" | ")})}}catch(e){I={error:e}}finally{try{Q&&!Q.done&&(j=G.return)&&j.call(G)}finally{if(I)throw I.error}}var _loop_1=function(e){var t,r,n=_.constants.find(function(t){return t.type===e.type});if(n)try{for(var a=(t=void 0,i(e.values)),o=a.next();!o.done;o=a.next()){var u=o.value;d.ArrayUtil.add(n.values,u,function(e,t){return e===t})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else _.constants.push(s.MetadataConstant.create(e))};try{for(var K=(F=void 0,i(J.constants)),Y=K.next();!Y.done;Y=K.next()){var Z=Y.value;_loop_1(Z)}}catch(e){F={error:e}}finally{try{Y&&!Y.done&&(A=K.return)&&A.call(K)}finally{if(F)throw F.error}}}}catch(e){w={error:e}}finally{try{V&&!V.done&&(P=B.return)&&P.call(B)}finally{if(w)throw w.error}}return!0}var X=R?"boolean":q.size?q.values().next().value:"array";if("boolean"===X||"bigint"===X||"number"===X||"string"===X)null===R?d.ArrayUtil.add(_.atomics,f.MetadataAtomic.create({type:q.values().next().value,tags:[]}),function(e,t){return e.type===t.type}):d.ArrayUtil.take(_.constants,function(e){return"boolean"===e.type},function(){return s.MetadataConstant.create({type:"boolean",values:[R]})});else if("array"===X){var ee=z.values().next().value;_.arrays.some(function(e){return e.type.name===ee})||(0,g.iterate_metadata_array)(e)(t)(r)(u)(_,b.types[L.find(function(e){return 1===e[0].arrays.length})[1]],n(n({},x),{aliased:!1,escaped:!1}))}if(H.length){var et=p.MetadataTypeTagFactory.analyze(u)(X)(H.map(function(e){return e.objects}).flat(),x);if(et.length){if("array"===X)_.arrays.at(-1).tags.push(et);else if(null===R)_.atomics.find(function(e){return e.type===X}).tags.push(et);else{var er=_.constants.find(function(e){return"boolean"===e.type});null!==(M=er.tags)&&void 0!==M||(er.tags=[]),er.tags.push(et)}}}return null!==R&&(_.boolean_literal_intersected_=!0),!0}}}}}},57540:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")}),!0}}}}}},54053:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a"},{name:"slice",return:"Blob"},{name:"text",return:"Promise"}],properties:[{name:"size",type:"number"},{name:"type",type:"string"}]}]})),!1),[["DataView",{methods:["getFloat32","getFloat64","getInt8","getInt16","getInt32","getUint8","getUint16","getUint32"].map(function(e){return{name:e,return:"number"}})}]],!1)),f=["WeakMap","WeakSet"].map(function(e){return{name:e,methods:["has","delete"].map(function(e){return{name:e,return:"boolean"}})}})},9859:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_object=void 0;var a=n(r(55423)),o=r(73346),i=r(18083);t.iterate_metadata_object=function(e){return function(t){return function(r){return function(n){return function(u,c,f){if(void 0===f&&(f=!1),!1===f){var s;if(s=a.default.TypeFlags.Object,(c.getFlags()&s)==0&&!c.isIntersection()&&"object"!==c.intrinsicName)return!1}var d=(0,i.emplace_metadata_object)(e)(t)(r)(n)(c,u.nullable);return o.ArrayUtil.add(u.objects,d,function(e){return e.name===d.name}),!0}}}}}},16322:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.iterate_metadata_sort=void 0;var a=r(3078),o=r(58962);t.iterate_metadata_sort=function(e){return function(t){var r,a,o,i,u,c,f,s,d,y,p=new Set;try{for(var m=n(e.arrays()),v=m.next();!v.done;v=m.next()){var g=v.value;iterate(p)(e)(g.value)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}try{for(var _=n(e.tuples()),b=_.next();!b.done;b=_.next()){var x=b.value;try{for(var S=(u=void 0,n(x.elements)),T=S.next();!T.done;T=S.next()){var E=T.value;iterate(p)(e)(E)}}catch(e){u={error:e}}finally{try{T&&!T.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(i=_.return)&&i.call(_)}finally{if(o)throw o.error}}try{for(var w=n(e.objects()),P=w.next();!P.done;P=w.next()){var I=P.value;try{for(var j=(d=void 0,n(I.properties)),F=j.next();!F.done;F=j.next()){var A=F.value;iterate(p)(e)(A.value)}}catch(e){d={error:e}}finally{try{F&&!F.done&&(y=j.return)&&y.call(j)}finally{if(d)throw d.error}}}}catch(e){f={error:e}}finally{try{P&&!P.done&&(s=w.return)&&s.call(w)}finally{if(f)throw f.error}}iterate(p)(e)(t)}};var iterate=function(e){return function(t){return function(r){var i,u,c,f;if(!e.has(r)){e.add(r);try{for(var s=n(r.maps),d=s.next();!d.done;d=s.next()){var y=d.value;iterate(e)(t)(y.value)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(u=s.return)&&u.call(s)}finally{if(i)throw i.error}}try{for(var p=n(r.sets),m=p.next();!m.done;m=p.next()){var v=m.value;iterate(e)(t)(v)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(f=p.return)&&f.call(p)}finally{if(c)throw c.error}}null!==r.escaped&&iterate(e)(t)(r.escaped.returns),null!==r.rest&&iterate(e)(t)(r.rest),r.objects.length>1&&(r.objects.sort(function(e,t){return o.MetadataObject.covers(e,t)?-1:o.MetadataObject.covers(t,e)?1:0}),r.union_index=t.getUnionIndex(r)),r.arrays.length>1&&r.arrays.sort(function(e,t){return a.Metadata.covers(e.type.value,t.type.value)?-1:a.Metadata.covers(t.type.value,e.type.value)?1:0}),r.tuples.length>1&&r.tuples.sort(function(e,t){var r=a.Metadata.initialize(),n=a.Metadata.initialize();return r.tuples.push(e),n.tuples.push(t),a.Metadata.covers(r,n)?-1:a.Metadata.covers(n,r)?1:0})}}}}},92861:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},f=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},S=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")}).join(" | "));ea(a.sets.some(function(e){return e.any})?null:f(e)(t)(r)(n,a.sets,_(_({},i),{from:"array"})))}if(a.maps.length){var ea=prepare((0,B.check_native)("Map")(n),a.maps.map(function(e){var t=e.key,r=e.value;return"Map<".concat(t,", ").concat(r,">")}).join(" | "));ea(a.maps.some(function(e){return e.key.any&&e.value.any})?null:s(e)(t)(r)(n,a.maps,_(_({},i),{from:"array"})))}if(a.tuples.length+a.arrays.length>0){var ea=prepare(t.atomist(i)({expected:S(S([],x(a.tuples.map(function(e){return e.type.name})),!1),x(a.arrays.map(function(e){return e.getName()})),!1).join(" | "),expression:w.ExpressionFactory.isArray(n),conditions:[]})(n),S(S([],x(a.tuples),!1),x(a.arrays),!1).map(function(e){return e.type.name}).join(" | "));ea(0===a.arrays.length?1===a.tuples.length?u(e)(t)(r)(n,a.tuples[0],_(_({},i),{from:"array"})):d(e)(t)(r)(n,a.tuples,_(_({},i),{from:"array"})):a.arrays.some(function(e){return e.type.value.any})?null:0===a.tuples.length?1===a.arrays.length?o(e)(t)(r)(n,a.arrays[0],_(_({},i),{from:"array"})):y(e)(t)(r)(n,a.arrays,_(_({},i),{from:"array"})):p(e)(t)(r)(n,S(S([],x(a.tuples),!1),x(a.arrays),!1),i))}if(a.objects.length>0&&prepare(w.ExpressionFactory.isObject({checkNull:!0,checkArray:a.objects.some(function(e){return e.properties.every(function(e){return!e.key.isSoleLiteral()||!e.value.isRequired()})})})(n),a.objects.map(function(e){return e.name}).join(" | "))(v(t)(r)(n,a,_(_({},i),{from:"object"}))),en.length){var transformer=function(e){return function(t){return t.body?{expression:e(t.pre,t.body),combined:!0}:{expression:t.pre,combined:!1}}};1===en.length?O.push(transformer(function(e,r){return t.combiner(i)("and")(n,[e,r].map(function(t){return{expression:t,combined:t!==e}}),a.getName())})(en[0])):O.push({expression:t.combiner(i)("or")(n,en.map(transformer(E.default.factory.createLogicalAnd)),a.getName()),combined:!0})}return A.length&&O.length?t.combiner(i)("and")(n,S(S([],x(A),!1),[{expression:t.combiner(i)("or")(n,O,a.getName()),combined:!0}],!1),a.getName()):O.length?t.combiner(i)("or")(n,O,a.getName()):t.success}}}},n.decode_object=function(e){return function(t){var r=R.FeatureProgrammer.decode_object(e)(t);return function(e,t,n){return t.validated=!0,r(e,t,n)}}},o=function(e){return function(t){return function(r){return function(n,a,o){return!1===a.type.recursive?i(e)(t)(r)(n,a,o):(o=_(_({},o),{source:"function",from:"array"}),E.default.factory.createLogicalOr(E.default.factory.createCallExpression(E.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"a").concat(a.type.index))),void 0,R.FeatureProgrammer.argumentsArray(t)(_(_({},o),{source:"function",from:"array"}))(n)),t.joiner.failure(n,a.type.name,o)))}}}},i=function(e){return function(t){return function(r){return function(a,o,i){var u=(0,q.check_array_length)(e)(o)(a),c=R.FeatureProgrammer.decode_array({prefix:t.prefix,trace:t.trace,path:t.path,decoder:function(){return n.decode(e)(t)(r)}})(r)(t.joiner.array)(a,o,i);return null===u.expression&&0===u.conditions.length?c:E.default.factory.createLogicalAnd(t.atomist(i)(u)(a),c)}}}},u=function(e){return function(t){return function(r){return function(n,a,o){return!1===a.type.recursive?c(e)(t)(r)(n,a.type,o):(o=_(_({},o),{source:"function",from:"array"}),E.default.factory.createLogicalOr(E.default.factory.createCallExpression(E.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,R.FeatureProgrammer.argumentsArray(t)(_(_({},o),{source:"function"}))(n)),t.joiner.failure(n,a.type.name,o)))}}}},c=function(e){return function(t){return function(r){return function(a,o,i){var u=o.elements.filter(function(e){return null===e.rest}).map(function(o,u){return n.decode(e)(t)(r)(E.default.factory.createElementAccessExpression(a,u),o,_(_({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(u,']"'):'"['.concat(u,']"')}))}),c=o.elements.length&&null!==o.elements.at(-1).rest?n.decode(e)(t)(r)(E.default.factory.createCallExpression(P.IdentifierFactory.access(a)("slice"),void 0,[w.ExpressionFactory.number(o.elements.length-1)]),(0,W.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),_(_({},i),{start:o.elements.length-1})):null,f=E.default.factory.createPropertyAccessExpression(a,"length");return t.combiner(i)("and")(a,S(S(S([],x(null===c?o.elements.every(function(e){return!1===e.optional})?[{combined:!1,expression:E.default.factory.createStrictEquality(f,w.ExpressionFactory.number(o.elements.length))}]:[{combined:!1,expression:E.default.factory.createLogicalAnd(E.default.factory.createLessThanEquals(w.ExpressionFactory.number(o.elements.filter(function(e){return!1===e.optional}).length),f),E.default.factory.createGreaterThanEquals(w.ExpressionFactory.number(o.elements.length),f))}]:[]),!1),x(t.joiner.tuple?[{expression:t.joiner.tuple(u),combined:!0}]:u.map(function(e){return{expression:e,combined:!0}})),!1),x(null!==c?[{expression:c,combined:!0}]:[]),!1),"[".concat(o.elements.map(function(e){return e.getName()}).join(", "),"]"))}}}},f=function(e){return function(t){return function(r){return function(a,i,u){return E.default.factory.createCallExpression(H.UnionExplorer.set({checker:n.decode(e)(t)(r),decoder:o(e)(t)(r),empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}})([])(a,i,u),void 0,void 0)}}}},s=function(e){return function(t){return function(r){return function(a,i,u){return E.default.factory.createCallExpression(H.UnionExplorer.map({checker:function(a,o,i){var u=n.decode(e)(t)(r);return E.default.factory.createLogicalAnd(u(E.default.factory.createElementAccessExpression(a,0),o[0],_(_({},i),{postfix:"".concat(i.postfix,"[0]")})),u(E.default.factory.createElementAccessExpression(a,1),o[1],_(_({},i),{postfix:"".concat(i.postfix,"[1]")})))},decoder:o(e)(t)(r),empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}})([])(a,i,u),void 0,void 0)}}}},d=function(e){return function(t){return function(r){return function(n,a,o){return m(t)(r)(H.UnionExplorer.tuple({checker:u(e)(t)(r),decoder:u(e)(t)(r),empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}}))(n,a,o)}}}},y=function(e){return function(t){return function(r){return function(a,i,u){return m(t)(r)(H.UnionExplorer.array({checker:n.decode(e)(t)(r),decoder:o(e)(t)(r),empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}}))(a,i,u)}}}},p=function(e){return function(t){return function(r){return function(a,i,c){return m(t)(r)(H.UnionExplorer.array_or_tuple({checker:function(a,o,c,f){return o instanceof C.MetadataTuple?u(e)(t)(r)(a,o,c):t.atomist(c)({expected:i.map(function(e){return e instanceof O.MetadataArray?e.getName():e.type.name}).join(" | "),expression:n.decode(e)(t)(r)(a,o,c),conditions:[]})(f)},decoder:function(n,a,i){return a instanceof C.MetadataTuple?u(e)(t)(r)(n,a,i):o(e)(t)(r)(n,a,i)},empty:t.success,success:t.success,failure:function(e,r,n){return E.default.factory.createReturnStatement(t.joiner.failure(e,r,n))}}))(a,i,c)}}}},m=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&E.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=_(_({},o),{source:"function",from:"array"}),E.default.factory.createLogicalOr(E.default.factory.createCallExpression(E.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(R.FeatureProgrammer.parameterDeclarations(e)(A.TypeFactory.keyword("any"))(E.default.factory.createIdentifier("input")))(_(_({},o),{postfix:""}))(E.default.factory.createIdentifier("input"))})),void 0,R.FeatureProgrammer.argumentsArray(e)(o)(n)),e.joiner.failure(n,a.map(function(e){return e.type.name}).join(" | "),o))}}}},v=function(e){return function(t){return function(r,a,o){return 1===a.objects.length?n.decode_object(e)(t)(r,a.objects[0],o):E.default.factory.createCallExpression(E.default.factory.createIdentifier(t.useLocal("".concat(e.prefix,"u").concat(a.union_index))),void 0,R.FeatureProgrammer.argumentsArray(e)(o)(r))}}};var create_add=function(e){return function(t){return function(r,n,a){void 0===a&&(a=t);var o=r?E.default.factory.createStrictEquality:E.default.factory.createStrictInequality;e.push({expression:o(n,a),combined:!1})}}}},12114:function(e,t,r){"use strict";var n,a,o,i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},A=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RandomProgrammer=void 0;var C=O(r(55423)),N=r(73906),R=r(61387),L=r(92595),U=r(43390),H=r(6152),q=r(95374),z=r(12301),B=r(3078),V=r(23879),J=r(63860),G=r(45041),Q=r(35191),W=r(84530),K=r(63664),Y=r(5724),Z=r(31959),X=r(2112),ee=r(63114),et=r(59573);(I||(t.RandomProgrammer=I={})).write=function(e){return function(t){return function(r){var u=new Z.FunctionImporter(t.getText());return function(c,f){var s=new L.MetadataCollection,d=U.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0,validate:function(e){var t=[];return e.natives.some(function(e){return"WeakSet"===e})?t.push("WeakSet is not supported."):e.natives.some(function(e){return"WeakMap"===e})&&t.push("WeakMap is not supported."),t}})(s)(c);if(!1===d.success)throw K.TransformerError.from("typia.".concat(u.method))(d.errors);var y={objects:n(u)(s),arrays:a(u)(s),tuples:o(u)(s)},p=i(u)({function:!1,recursive:!1})(d.data);return C.default.factory.createArrowFunction(void 0,void 0,[R.IdentifierFactory.parameter("generator",C.default.factory.createTypeReferenceNode("Partial"),null!=r?r:C.default.factory.createToken(C.default.SyntaxKind.QuestionToken))],C.default.factory.createTypeReferenceNode("typia.Resolved<".concat(null!=f?f:z.TypeFactory.getFullName(e.checker)(c),">")),void 0,C.default.factory.createBlock(A(A(A(A(A([],F(u.declare(t)),!1),F(y.objects),!1),F(y.arrays),!1),F(y.tuples),!1),[C.default.factory.createReturnStatement(p)],!1),!0))}}}},n=function(e){return function(t){return t.objects().map(function(t,r){return H.StatementFactory.constant(er.object(r),C.default.factory.createArrowFunction(void 0,void 0,[R.IdentifierFactory.parameter("_recursive",z.TypeFactory.keyword("boolean"),C.default.factory.createIdentifier(String(t.recursive))),R.IdentifierFactory.parameter("_depth",z.TypeFactory.keyword("number"),N.ExpressionFactory.number(0))],z.TypeFactory.keyword("any"),void 0,X.RandomJoiner.object(COALESCE(e))(i(e)({recursive:t.recursive,function:!0}))(t)))})}},a=function(e){return function(t){return t.arrays().filter(function(e){return e.recursive}).map(function(t,r){return H.StatementFactory.constant(er.array(r),C.default.factory.createArrowFunction(void 0,void 0,[R.IdentifierFactory.parameter("length",z.TypeFactory.keyword("number")),R.IdentifierFactory.parameter("_recursive",z.TypeFactory.keyword("boolean"),C.default.factory.createTrue()),R.IdentifierFactory.parameter("_depth",z.TypeFactory.keyword("number"),N.ExpressionFactory.number(0))],z.TypeFactory.keyword("any"),void 0,X.RandomJoiner.array(COALESCE(e))(i(e)({recursive:!0,function:!0}))({recursive:!0,function:!0})(C.default.factory.createIdentifier("length"))(t.value)))})}},o=function(e){return function(t){return t.tuples().filter(function(e){return e.recursive}).map(function(t,r){return H.StatementFactory.constant(er.tuple(r),C.default.factory.createArrowFunction(void 0,void 0,[R.IdentifierFactory.parameter("_recursive",z.TypeFactory.keyword("boolean"),C.default.factory.createTrue()),R.IdentifierFactory.parameter("_depth",z.TypeFactory.keyword("number"),N.ExpressionFactory.number(0))],z.TypeFactory.keyword("any"),void 0,X.RandomJoiner.tuple(i(e)({function:!0,recursive:!0}))(t.elements)))})}},i=function(e){return function(t){return function(r){var n,a,o,x,S,T,E,w,P,I,j,O,N,R,L,U,H,q,z,B,V=[];r.any&&V.push(C.default.factory.createStringLiteral("any type used...")),(!1===r.isRequired()||!0===r.functional)&&V.push(C.default.factory.createIdentifier("undefined")),!0===r.nullable&&V.push(C.default.factory.createNull());try{for(var J=M(r.constants),G=J.next();!G.done;G=J.next()){var Q=G.value;try{for(var W=(o=void 0,M(Q.values)),K=W.next();!K.done;K=W.next()){var Y=K.value;V.push(c(Y))}}catch(e){o={error:e}}finally{try{K&&!K.done&&(x=W.return)&&x.call(W)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{G&&!G.done&&(a=J.return)&&a.call(J)}finally{if(n)throw n.error}}try{for(var Z=M(r.templates),X=Z.next();!X.done;X=Z.next()){var ee=X.value;V.push(f(e)(t)(ee))}}catch(e){S={error:e}}finally{try{X&&!X.done&&(T=Z.return)&&T.call(Z)}finally{if(S)throw S.error}}try{for(var et=M(r.atomics),er=et.next();!er.done;er=et.next()){var en=er.value;"boolean"===en.type?V.push(u(e)):"number"===en.type?V.push.apply(V,A([],F(s(e)(en)),!1)):"string"===en.type?V.push.apply(V,A([],F(y(e)(en)),!1)):"bigint"===en.type&&V.push.apply(V,A([],F(d(e)(en)),!1))}}catch(e){E={error:e}}finally{try{er&&!er.done&&(w=et.return)&&w.call(et)}finally{if(E)throw E.error}}r.escaped&&V.push(i(e)(t)(r.escaped.returns));try{for(var ea=M(r.arrays),eo=ea.next();!eo.done;eo=ea.next()){var ei=eo.value;V.push.apply(V,A([],F(p(e)(t)(ei)),!1))}}catch(e){P={error:e}}finally{try{eo&&!eo.done&&(I=ea.return)&&I.call(ea)}finally{if(P)throw P.error}}try{for(var eu=M(r.tuples),ec=eu.next();!ec.done;ec=eu.next()){var el=ec.value;V.push(m(e)(t)(el))}}catch(e){j={error:e}}finally{try{ec&&!ec.done&&(O=eu.return)&&O.call(eu)}finally{if(j)throw j.error}}try{for(var ef=M(r.objects),es=ef.next();!es.done;es=ef.next()){var ed=es.value;V.push(v(e)(t)(ed))}}catch(e){N={error:e}}finally{try{es&&!es.done&&(R=ef.return)&&R.call(ef)}finally{if(N)throw N.error}}try{for(var ey=M(r.natives),ep=ey.next();!ep.done;ep=ey.next()){var em=ep.value;V.push(b(e)(em))}}catch(e){L={error:e}}finally{try{ep&&!ep.done&&(U=ey.return)&&U.call(ey)}finally{if(L)throw L.error}}try{for(var ev=M(r.sets),eh=ev.next();!eh.done;eh=ev.next()){var eg=eh.value;V.push(g(e)(t)(eg))}}catch(e){H={error:e}}finally{try{eh&&!eh.done&&(q=ev.return)&&q.call(ev)}finally{if(H)throw H.error}}try{for(var e_=M(r.maps),eb=e_.next();!eb.done;eb=e_.next()){var ex=eb.value;V.push(_(e)(t)(ex))}}catch(e){z={error:e}}finally{try{eb&&!eb.done&&(B=e_.return)&&B.call(e_)}finally{if(z)throw z.error}}return 1===V.length?V[0]:C.default.factory.createCallExpression(C.default.factory.createCallExpression(e.use("pick"),void 0,[C.default.factory.createArrayLiteralExpression(V.map(function(e){return C.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,e)}),!0)]),void 0,void 0)}}},u=function(e){return C.default.factory.createCallExpression(COALESCE(e)("boolean"),void 0,void 0)},c=function(e){return"boolean"==typeof e?C.default.factory.createIdentifier(e.toString()):"number"==typeof e?N.ExpressionFactory.number(e):"string"==typeof e?C.default.factory.createStringLiteral(e):N.ExpressionFactory.bigint(Number(e))},f=function(e){return function(t){return function(r){return q.TemplateFactory.generate(r.map(function(r){return i(e)(t)(r)}))}}},s=function(e){return function(t){return(t.tags.length?t.tags:[[]]).map(function(t){var r=t.find(function(e){return"type"===e.kind&&("int32"===e.value||"int64"===e.value)})?"int":t.find(function(e){return"type"===e.kind&&("uint32"===e.value||"uint64"===e.value)})?"uint":"double",n=t.find(function(e){return"multipleOf"===e.kind});return(0,et.random_custom)(COALESCE(e))("number")(t)(ee.RandomRanger.number({type:r,transform:function(e){return N.ExpressionFactory.number(e)},setter:function(t){return C.default.factory.createCallExpression("double"!==r||void 0!==n?COALESCE(e)("integer"):COALESCE(e)("number"),void 0,t.map(function(e){return N.ExpressionFactory.number(e)}))}})({minimum:0,maximum:100,gap:10})(t))})}},d=function(e){return function(t){return(t.tags.length?t.tags:[[]]).map(function(t){return(0,et.random_custom)(COALESCE(e))("bigint")(t)(ee.RandomRanger.number({type:t.find(function(e){return"type"===e.kind&&("uint"===e.value||"uint64"===e.value)})?"uint":"int",transform:function(e){return N.ExpressionFactory.bigint(e)},setter:function(t){return C.default.factory.createCallExpression(COALESCE(e)("bigint"),void 0,t.map(function(e){return N.ExpressionFactory.bigint(e)}))}})({minimum:0,maximum:100,gap:10})(t))})}},y=function(e){return function(t){return(t.tags.length?t.tags:[[]]).map(function(t){return(0,et.random_custom)(COALESCE(e))("string")(t)(function(){try{for(var r,n,a=M(t),o=a.next();!o.done;o=a.next()){var i=o.value;if("format"===i.kind)return C.default.factory.createCallExpression(COALESCE(e)(emendFormat(i.value)),void 0,void 0);if("pattern"===i.kind)return C.default.factory.createCallExpression(COALESCE(e)("pattern"),void 0,[C.default.factory.createIdentifier("/".concat(i.value,"/"))])}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}var u=ee.RandomRanger.length(COALESCE(e))({minimum:5,maximum:25,gap:5})({minimum:"minLength",maximum:"maxLength"})(t);return C.default.factory.createCallExpression(COALESCE(e)("string"),void 0,u?[u]:void 0)}())})}},p=function(e){return function(t){return function(r){var n=(r.tags.length?r.tags:[[]]).map(function(t){return ee.RandomRanger.length(COALESCE(e))({minimum:0,maximum:3,gap:3})({minimum:"minItems",maximum:"maxItems"})(t)});return r.type.recursive?n.map(function(n){return C.default.factory.createCallExpression(C.default.factory.createIdentifier(e.useLocal(er.array(r.type.index))),void 0,[null!=n?n:COALESCE(e)("length"),C.default.factory.createTrue(),t.recursive?C.default.factory.createAdd(N.ExpressionFactory.number(1),C.default.factory.createIdentifier("_depth")):N.ExpressionFactory.number(0)])}):n.map(function(n){var a=X.RandomJoiner.array(COALESCE(e))(i(e)(t))(t)(n)(r.type.value);return t.recursive?C.default.factory.createConditionalExpression(C.default.factory.createLogicalAnd(C.default.factory.createIdentifier("_recursive"),C.default.factory.createLessThan(N.ExpressionFactory.number(5),C.default.factory.createIdentifier("_depth"))),void 0,C.default.factory.createIdentifier("[]"),void 0,a):a})}}},m=function(e){return function(t){return function(r){return r.type.recursive?C.default.factory.createCallExpression(C.default.factory.createIdentifier(e.useLocal(er.tuple(r.type.index))),void 0,[C.default.factory.createTrue(),t.recursive?C.default.factory.createAdd(N.ExpressionFactory.number(1),C.default.factory.createIdentifier("_depth")):N.ExpressionFactory.number(0)]):X.RandomJoiner.tuple(i(e)(t))(r.type.elements)}}},v=function(e){return function(t){return function(r){return C.default.factory.createCallExpression(C.default.factory.createIdentifier(e.useLocal(er.object(r.index))),void 0,t.function?[t.recursive?C.default.factory.createTrue():C.default.factory.createIdentifier("_recursive"),C.default.factory.createConditionalExpression(C.default.factory.createIdentifier("_recursive"),void 0,C.default.factory.createAdd(N.ExpressionFactory.number(1),C.default.factory.createIdentifier("_depth")),void 0,C.default.factory.createIdentifier("_depth"))]:void 0)}}},g=function(e){return function(t){return function(r){return C.default.factory.createNewExpression(C.default.factory.createIdentifier("Set"),void 0,[p(e)(t)(V.MetadataArray.create({tags:[],type:J.MetadataArrayType.create({value:r,recursive:!1,index:null,nullables:[],name:"Set<".concat(r.getName(),">")})}))[0]])}}},_=function(e){return function(t){return function(r){var n;return C.default.factory.createNewExpression(C.default.factory.createIdentifier("Map"),void 0,[p(e)(t)(V.MetadataArray.create({tags:[],type:J.MetadataArrayType.create({name:"Map<".concat(r.key.getName(),", ").concat(r.value.getName(),">"),index:null,recursive:!1,nullables:[],value:B.Metadata.create(j(j({},B.Metadata.initialize()),{tuples:[((n=W.MetadataTupleType.create({name:"[".concat(r.key.getName(),", ").concat(r.value.getName(),"]"),index:null,recursive:!1,nullables:[],elements:[r.key,r.value]})).of_map=!0,Q.MetadataTuple.create({type:n,tags:[]}))]}))})}))[0]])}}},b=function(e){return function(t){if("Boolean"===t)return u(e);if("Number"===t)return s(e)(G.MetadataAtomic.create({type:"number",tags:[]}))[0];if("String"===t)return y(e)(G.MetadataAtomic.create({type:"string",tags:[]}))[0];if("Date"===t)return x(e);if("Uint8Array"===t||"Uint8ClampedArray"===t||"Uint16Array"===t||"Uint32Array"===t||"BigUint64Array"===t||"Int8Array"===t||"Int16Array"===t||"Int32Array"===t||"BigInt64Array"===t||"Float32Array"===t||"Float64Array"===t)return S(e)(t);if("ArrayBuffer"===t||"SharedArrayBuffer"===t)return w(e)(t);if("DataView"===t)return P(e);else if("Blob"===t)return T(e);else if("File"===t)return E(e);else return C.default.factory.createNewExpression(C.default.factory.createIdentifier(t),void 0,[])}},x=function(e){return C.default.factory.createNewExpression(C.default.factory.createIdentifier("Date"),void 0,[C.default.factory.createCallExpression(COALESCE(e)("datetime"),void 0,[])])},S=function(e){return function(t){new BigInt64Array;var r=F(function(){if("Uint8Array"===t||"Uint8ClampedArray"===t)return[0,255];if("Uint16Array"===t)return[0,65535];if("Uint32Array"===t)return[0,4294967295];if("BigUint64Array"===t)return[0,18446744073709552e3];if("Int8Array"===t)return[-128,127];if("Int16Array"===t)return[-32768,32767];if("Int32Array"===t)return[-2147483648,2147483647];else if("BigInt64Array"===t)return[-0x8000000000000000,0x7fffffffffffffff];else if("Float32Array"===t)return[-1175494351e29,34028235e31];return[Number.MIN_VALUE,Number.MAX_VALUE]}(),2),n=r[0],a=r[1],o="BigInt64Array"===t||"BigUint64Array"===t?N.ExpressionFactory.bigint:N.ExpressionFactory.number;return C.default.factory.createNewExpression(C.default.factory.createIdentifier(t),[],[C.default.factory.createCallExpression(COALESCE(e)("array"),void 0,[C.default.factory.createArrowFunction(void 0,void 0,[],z.TypeFactory.keyword("any"),void 0,C.default.factory.createCallExpression(COALESCE(e)("Float32Array"===t||"Float64Array"===t?"number":"BigInt64Array"===t||"BigUint64Array"===t?"bigint":"integer"),void 0,[o(n),o(a)]))])])}},T=function(e){return C.default.factory.createNewExpression(C.default.factory.createIdentifier("Blob"),void 0,[C.default.factory.createArrayLiteralExpression([S(e)("Uint8Array")],!0)])},E=function(e){return C.default.factory.createNewExpression(C.default.factory.createIdentifier("File"),void 0,[C.default.factory.createArrayLiteralExpression([S(e)("Uint8Array")],!0),C.default.factory.createTemplateExpression(C.default.factory.createTemplateHead(""),[C.default.factory.createTemplateSpan(C.default.factory.createCallExpression(COALESCE(e)("string"),void 0,[C.default.factory.createNumericLiteral(8)]),C.default.factory.createTemplateMiddle(".")),C.default.factory.createTemplateSpan(C.default.factory.createCallExpression(COALESCE(e)("string"),void 0,[C.default.factory.createNumericLiteral(3)]),C.default.factory.createTemplateTail(""))])])},w=function(e){return function(t){return"ArrayBuffer"===t?R.IdentifierFactory.access(S(e)("Uint8Array"))("buffer"):N.ExpressionFactory.selfCall(C.default.factory.createBlock([H.StatementFactory.constant("length",C.default.factory.createCallExpression(COALESCE(e)("integer"),void 0,[])),H.StatementFactory.constant("buffer",C.default.factory.createNewExpression(C.default.factory.createIdentifier("SharedArrayBuffer"),[],[C.default.factory.createIdentifier("length")])),H.StatementFactory.constant("bytes",C.default.factory.createNewExpression(C.default.factory.createIdentifier("Uint8Array"),[],[C.default.factory.createIdentifier("buffer")])),C.default.factory.createExpressionStatement(C.default.factory.createCallExpression(R.IdentifierFactory.access(C.default.factory.createIdentifier("bytes"))("set"),void 0,[C.default.factory.createCallExpression(COALESCE(e)("array"),void 0,[C.default.factory.createArrowFunction(void 0,void 0,[],z.TypeFactory.keyword("any"),void 0,C.default.factory.createCallExpression(COALESCE(e)("integer"),void 0,[N.ExpressionFactory.number(0),N.ExpressionFactory.number(255)])),C.default.factory.createIdentifier("length")]),N.ExpressionFactory.number(0)])),C.default.factory.createReturnStatement(C.default.factory.createIdentifier("buffer"))],!0))}},P=function(e){return C.default.factory.createNewExpression(C.default.factory.createIdentifier("DataView"),[],[R.IdentifierFactory.access(S(e)("Uint8Array"))("buffer")])};var er={object:function(e){return"$ro".concat(e)},array:function(e){return"$ra".concat(e)},tuple:function(e){return"$rt".concat(e)}},COALESCE=function(e){return function(t){return N.ExpressionFactory.coalesce(Y.Escaper.variable(t)?C.default.factory.createPropertyAccessChain(C.default.factory.createIdentifier("generator"),C.default.factory.createToken(C.default.SyntaxKind.QuestionDotToken),C.default.factory.createIdentifier(t)):C.default.factory.createElementAccessChain(C.default.factory.createIdentifier("generator"),C.default.factory.createToken(C.default.SyntaxKind.QuestionDotToken),C.default.factory.createStringLiteral(t)))(R.IdentifierFactory.access(e.use("generator"))(t))}},emendFormat=function(e){return"date-time"===e?"datetime":e.split("-").map(function(e,t){return 0===t||0===e.length?e:e[0].toUpperCase()+e.substring(1)}).join("")}},89345:function(e,t,r){"use strict";var n,a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")),void 0,u.default.factory.createBlock([s.StatementFactory.constant("errors",u.default.factory.createAsExpression(u.default.factory.createArrayLiteralExpression([]),u.default.factory.createArrayTypeNode(d.TypeFactory.keyword("any")))),s.StatementFactory.constant("__is",_),u.default.factory.createIfStatement(u.default.factory.createStrictEquality(u.default.factory.createFalse(),u.default.factory.createCallExpression(u.default.factory.createIdentifier("__is"),void 0,[u.default.factory.createIdentifier("input")])),u.default.factory.createBlock([s.StatementFactory.constant("$report",u.default.factory.createCallExpression(f.IdentifierFactory.access(u.default.factory.createParenthesizedExpression(u.default.factory.createAsExpression(t,d.TypeFactory.keyword("any"))))("report"),[],[u.default.factory.createIdentifier("errors")])),u.default.factory.createExpressionStatement(u.default.factory.createCallExpression(b,void 0,[u.default.factory.createIdentifier("input"),u.default.factory.createStringLiteral("$input"),u.default.factory.createTrue()]))])),s.StatementFactory.constant("success",u.default.factory.createStrictEquality(c.ExpressionFactory.number(0),u.default.factory.createIdentifier("errors.length"))),u.default.factory.createReturnStatement(u.default.factory.createAsExpression(create_output(),d.TypeFactory.keyword("any")))],!0))}}}};var combine=function(e){return function(t){return function(r){return function(n){if(!1===n.tracable)return p.IsProgrammer.configure({object:validate_object(e)(t)(r),numeric:!0})(t)(r).combiner(n);var a=n.postfix?"_path + ".concat(n.postfix):"_path";return function(e){return function(t,r,o){return"and"===e?r.map(function(e){return e.combined?e.expression:u.default.factory.createLogicalOr(e.expression,create_report_call("top"===n.source?u.default.factory.createTrue():u.default.factory.createIdentifier("_exceptionable"))(u.default.factory.createIdentifier(a),o,t))}).reduce(u.default.factory.createLogicalAnd):u.default.factory.createLogicalOr(r.map(function(e){return e.expression}).reduce(u.default.factory.createLogicalOr),create_report_call("top"===n.source?u.default.factory.createTrue():u.default.factory.createIdentifier("_exceptionable"))(u.default.factory.createIdentifier(a),o,t))}}}}}},validate_object=function(e){return function(t){return function(r){return(0,_.check_object)({equals:e,undefined:!0,assert:!1,reduce:u.default.factory.createLogicalAnd,positive:u.default.factory.createTrue(),superfluous:function(e){return create_report_call()(u.default.factory.createAdd(u.default.factory.createIdentifier("_path"),u.default.factory.createCallExpression(r.use("join"),void 0,[u.default.factory.createIdentifier("key")])),"undefined",e)},halt:function(e){return u.default.factory.createLogicalOr(u.default.factory.createStrictEquality(u.default.factory.createFalse(),u.default.factory.createIdentifier("_exceptionable")),e)}})(t)(r)}}},joiner=function(e){return function(t){return function(r){return{object:validate_object(e)(t)(r),array:function(e,t){return(0,g.check_everything)(u.default.factory.createCallExpression(f.IdentifierFactory.access(e)("map"),void 0,[t]))},failure:function(e,t,r){return create_report_call((null==r?void 0:r.from)==="top"?u.default.factory.createTrue():u.default.factory.createIdentifier("_exceptionable"))(u.default.factory.createIdentifier((null==r?void 0:r.postfix)?"_path + ".concat(r.postfix):"_path"),t,e)},tuple:function(e){return(0,g.check_everything)(u.default.factory.createArrayLiteralExpression(e,!0))}}}}},create_output=function(){return u.default.factory.createObjectLiteralExpression([u.default.factory.createShorthandPropertyAssignment("success"),u.default.factory.createShorthandPropertyAssignment("errors"),u.default.factory.createPropertyAssignment("data",u.default.factory.createConditionalExpression(u.default.factory.createIdentifier("success"),void 0,u.default.factory.createIdentifier("input"),void 0,u.default.factory.createIdentifier("undefined")))],!0)},create_report_call=function(e){return function(t,r,n){return u.default.factory.createCallExpression(u.default.factory.createIdentifier("$report"),void 0,[null!=e?e:u.default.factory.createIdentifier("_exceptionable"),u.default.factory.createObjectLiteralExpression([u.default.factory.createPropertyAssignment("path",t),u.default.factory.createPropertyAssignment("expected",u.default.factory.createStringLiteral(r)),u.default.factory.createPropertyAssignment("value",n)],!0)])}}},86752:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtomicPredicator=void 0;var n,a,o=r(73346);(n=a||(t.AtomicPredicator=a={})).constant=function(e){return function(t){return!o.ArrayUtil.has(e.atomics,function(e){return e.type===t})&&!o.ArrayUtil.has(e.natives,function(e){return e.toLowerCase()===t})}},n.atomic=function(e){return function(t){return!o.ArrayUtil.has(e.natives,function(e){return e.toLowerCase()===t})}},n.native=function(e){return i.has(e.toLowerCase())},n.template=function(e){return!o.ArrayUtil.has(e.atomics,function(e){return"string"===e.type})};var i=new Set(["boolean","bigint","number","string"])},1739:function(e,t,r){"use strict";var n,a,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a1}},94492:function(e,t,r){"use strict";var n,a,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=1&&e.properties.every(function(e){return e.key.isSoleLiteral()})},r.size=function(e){return r.getAtomics(e).length+e.arrays.length+e.tuples.length+e.natives.length+e.objects.length+e.maps.length},r.isUnion=function(e){return r.size(e)>1},r.getAtomics=function(e){var t,r,a,c,f=new Set;e.templates.length&&f.add("string");try{for(var s=o(e.constants),d=s.next();!d.done;d=s.next()){var y=d.value;"boolean"===y.type?f.add("bool"):"bigint"===y.type?f.add("uint64"):"number"===y.type?f.add(deduce_numeric_type(y.values)):"string"===y.type&&f.add("string")}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}try{for(var p=o(e.atomics),m=p.next();!m.done;m=p.next()){var v=m.value;"boolean"===v.type?f.add("bool"):"bigint"===v.type?decode_bigint(v.tags).forEach(function(e){return f.add(e)}):"number"===v.type?decode_number(v.tags).forEach(function(e){return f.add(e)}):"string"===v.type&&f.add("string")}}catch(e){a={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(a)throw a.error}}return u([],i(f),!1).sort(n)},r.getNumbers=function(e){var t,r,a,c,f=new Set;try{for(var s=o(e.constants),d=s.next();!d.done;d=s.next()){var y=d.value;"number"===y.type&&f.add(deduce_numeric_type(y.values))}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}try{for(var p=o(e.atomics),m=p.next();!m.done;m=p.next()){var v=m.value;"number"===v.type&&decode_number(v.tags).forEach(function(e){return f.add(e)})}}catch(e){a={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(a)throw a.error}}return u([],i(f),!1).sort(n)},r.getBigints=function(e){var t,r,a,c,f=new Set;try{for(var s=o(e.constants),d=s.next();!d.done;d=s.next()){var y=d.value;"bigint"===y.type&&f.add("uint64")}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}try{for(var p=o(e.atomics),m=p.next();!m.done;m=p.next()){var v=m.value;"bigint"===v.type&&decode_bigint(v.tags).forEach(function(e){return f.add(e)})}}catch(e){a={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(a)throw a.error}}return u([],i(f),!1).sort(n)},n=function(e,t){return c.get(e)-c.get(t)};var c=new Map(["bool","int32","uint32","int64","uint64","float","double","string"].map(function(e,t){return[e,t]})),deduce_numeric_type=function(e){return e.every(function(e){return Math.floor(e)===e})?e.every(function(e){return -2147483648<=e&&e<=2147483647})?"int32":"int64":"double"},decode_bigint=function(e){if(0===e.length)return["int64"];var t,r,n,a=new Set;try{for(var c=o(e),f=c.next();!f.done;f=c.next()){var s=f.value,d=null===(n=s.find(function(e){return"type"===e.kind&&("int64"===e.value||"uint64"===e.value)}))||void 0===n?void 0:n.value;a.add(null!=d?d:"int64")}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return u([],i(a),!1)},decode_number=function(e){if(0===e.length)return["double"];var t,r,n,a=new Set;try{for(var c=o(e),f=c.next();!f.done;f=c.next()){var s=f.value,d=null===(n=s.find(function(e){return"type"===e.kind&&("int32"===e.value||"uint32"===e.value||"int64"===e.value||"uint64"===e.value||"float"===e.value||"double"===e.value)}))||void 0===n?void 0:n.value;a.add(null!=d?d:"double")}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return u([],i(a),!1)}},3065:function(e,t,r){"use strict";var n,a,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnionExplorer=void 0;var c=u(r(55423)),f=r(73906),s=r(61387),d=r(3078),y=r(23879),p=r(63860),m=r(35191),v=r(84530),g=r(45826),_=r(99560);(n=a||(t.UnionExplorer=a={})).object=function(e,t){return void 0===t&&(t=0),function(r,a,i){if(1===a.length)return e.objector.decoder()(r,a[0],i);var u="(".concat(a.map(function(e){return e.name}).join(" | "),")"),d=_.UnionPredicator.object(a);if(0===d.length){var y=e.objector.unionizer(r,a,o(o({},i),{tracable:!1}));return e.objector.full?e.objector.full(y)(r,u,i):y}var p=a.filter(function(e){return void 0===d.find(function(t){return t.object===e})}),m=d.filter(function(e){return null!==e.property.key.getSoleLiteral()}).map(function(a,d,y){var m=a.property.key.getSoleLiteral(),v=s.IdentifierFactory.access(r)(m),g=a.neighbour?e.objector.checker()(v,a.property.value,o(o({},i),{tracable:!1,postfix:s.IdentifierFactory.postfix(m)})):(e.objector.required||function(e){return e})(f.ExpressionFactory.isRequired(v));return c.default.factory.createIfStatement((e.objector.is||function(e){return e})(g),c.default.factory.createReturnStatement(e.objector.decoder()(r,a.object,i)),d===y.length-1?p.length?c.default.factory.createReturnStatement(n.object(e,t+1)(r,p,i)):e.objector.failure(r,u,i):void 0)}).reverse().reduce(function(e,t){return c.default.factory.createIfStatement(t.expression,t.thenStatement,e)});return c.default.factory.createCallExpression(c.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,c.default.factory.createBlock([m],!0)),void 0,void 0)}},n.tuple=function(e){return(0,g.check_union_array_like)({transform:function(e){return e},element:function(e){return e},size:null,front:function(e){return e},array:function(e){return e},name:function(e){return e.type.name}})(e)},n.array=function(e){return(0,g.check_union_array_like)({transform:function(e){return e},element:function(e){return e.type.value},size:function(e){return s.IdentifierFactory.access(e)("length")},front:function(e){return c.default.factory.createElementAccessExpression(e,0)},array:function(e){return e},name:function(e){return e.type.name}})(e)},n.array_or_tuple=function(e){return(0,g.check_union_array_like)({transform:function(e){return e},element:function(e){return e instanceof y.MetadataArray?e.type.value:e},size:function(e){return s.IdentifierFactory.access(e)("length")},front:function(e){return c.default.factory.createElementAccessExpression(e,0)},array:function(e){return e},name:function(e){return e.type.name}})(e)},n.set=function(e){return(0,g.check_union_array_like)({transform:function(e){return y.MetadataArray.create({tags:[],type:p.MetadataArrayType.create({name:"Set<".concat(e.getName(),">"),index:null,recursive:!1,nullables:[],value:e})})},element:function(e){return e.type.value},size:function(e){return s.IdentifierFactory.access(e)("size")},front:function(e){return s.IdentifierFactory.access(c.default.factory.createCallExpression(s.IdentifierFactory.access(c.default.factory.createCallExpression(s.IdentifierFactory.access(e)("values"),void 0,void 0))("next"),void 0,void 0))("value")},array:function(e){return c.default.factory.createArrayLiteralExpression([c.default.factory.createSpreadElement(e)],!1)},name:function(e,t){return"Set<".concat(t.getName(),">")}})(e)},n.map=function(e){return(0,g.check_union_array_like)({element:function(e){return e.type.value.tuples[0].type.elements},size:function(e){return s.IdentifierFactory.access(e)("size")},front:function(e){return s.IdentifierFactory.access(c.default.factory.createCallExpression(s.IdentifierFactory.access(c.default.factory.createCallExpression(s.IdentifierFactory.access(e)("entries"),void 0,void 0))("next"),void 0,void 0))("value")},array:function(e){return c.default.factory.createArrayLiteralExpression([c.default.factory.createSpreadElement(e)],!1)},name:function(e,t){var r=i(t,2),n=r[0],a=r[1];return"Map<".concat(n.getName(),", ").concat(a.getName(),">")},transform:function(e){var t;return y.MetadataArray.create({tags:[],type:p.MetadataArrayType.create({name:"Map<".concat(e.key.getName(),", ").concat(e.value.getName(),">"),index:null,recursive:!1,nullables:[],value:d.Metadata.create(o(o({},d.Metadata.initialize()),{tuples:[((t=m.MetadataTuple.create({tags:[],type:v.MetadataTupleType.create({name:"[".concat(e.key.getName(),", ").concat(e.value.getName(),"]"),index:null,recursive:!1,nullables:[],elements:[e.key,e.value]})})).type.of_map=!0,t)]}))})})}})(e)}},99560:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.UnionPredicator=void 0;var i=r(3078),u=r(73346),c=r(63224);(n||(t.UnionPredicator=n={})).object=function(e){var t,r,n,f,s=new Map;try{for(var d=o(e),y=d.next();!y.done;y=d.next()){var p=y.value;try{for(var m=(n=void 0,o(p.properties)),v=m.next();!v.done;v=m.next()){var g=v.value.key.getSoleLiteral();null!==g&&c.MapUtil.take(s)(g,function(){return u.ArrayUtil.repeat(e.length,function(){return null})})}}catch(e){n={error:e}}finally{try{v&&!v.done&&(f=m.return)&&f.call(m)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{y&&!y.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}e.forEach(function(e,t){var r,n;try{for(var a=o(e.properties),i=a.next();!i.done;i=a.next()){var u=i.value,c=u.key.getSoleLiteral();null!==c&&(s.get(c)[t]=u)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}});var _=[];return e.forEach(function(e,t){var r=[];if(e.properties.forEach(function(e){if(!1!==e.value.isRequired()){var n=e.key.getSoleLiteral();if(null!==n){var a=s.get(n).filter(function(e,r){return t!==r&&null!==e});!0===(0===a.length||a.every(function(t){return!i.Metadata.intersects(e.value,t.value)}))&&r.push({property:e,neighbour:0!==a.length})}}}),0!==r.length){var n=r.find(function(e){return e.property.value.isConstant()})||r[0];_.push(a({index:t,object:e},n))}}),_}},41510:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disable_function_importer_declare=void 0,t.disable_function_importer_declare=function(e){return disable(e)};var disable=function(e){return{method:e.method,empty:function(){return e.empty()},use:function(t){return e.use(t)},useLocal:function(t){return e.useLocal(t)},hasLocal:function(t){return e.hasLocal(t)},declare:function(e){return[]},declareUnions:function(){return[]},increment:function(){return e.increment()},emplaceUnion:function(t,r,n){return e.emplaceUnion(t,r,n)},trace:function(){return e.trace()}}}},87097:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("decode",d.HttpFormDataProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("assert",s.AssertProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("output")]),f.TypeFactory.keyword("any")))]))}}}},40225:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("decode",d.HttpHeadersProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("assert",s.AssertProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("output")]),f.TypeFactory.keyword("any")))]))}}}},87176:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("decode",d.HttpQueryProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("assert",s.AssertProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("output")]),f.TypeFactory.keyword("any")))]))}}}},85766:function(e,t,r){"use strict";var n,a,o,i,u,c,f=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")),void 0,y.default.factory.createBlock(s(s([],f(i.declare(t)),!1),f(g),!1),!0))}}},n.validate=function(e,t){var r=[],insert=function(e){return r.push(e)};if(!0===t.top)(1!==e.objects.length||1!==e.bucket())&&insert("only one object type is allowed."),!0===e.nullable&&insert("formdata parameters cannot be null."),!1===e.isRequired()&&insert("formdata parameters cannot be undefined.");else if(null!==t.nested&&t.nested instanceof b.MetadataArrayType){var n=E.HttpMetadataUtil.atomics(e),a=e.atomics.length+e.templates.length+e.constants.map(function(e){return e.values.length}).reduce(function(e,t){return e+t},0)+e.natives.filter(function(e){return"Blob"===e||"File"===e}).length;n.size>1&&insert("union type is not allowed in array."),e.size()!==a&&insert("only atomic, constant or blob (file) types are allowed in array.")}else t.object&&null!==t.property&&("object"==typeof t.property&&insert("dynamic property is not allowed."),e.tuples.length&&insert("tuple type is not allowed."),E.HttpMetadataUtil.isUnion(e)&&insert("union type is not allowed."),(e.objects.length||e.sets.length||e.maps.length||e.natives.length)&&insert("nested object type is not allowed."));return r},a=function(e){return function(t){var r=y.default.factory.createIdentifier("output");return[g.StatementFactory.constant("output",y.default.factory.createObjectLiteralExpression(t.properties.map(function(t){return o(e)(t)}),!0)),y.default.factory.createReturnStatement(y.default.factory.createAsExpression(r,_.TypeFactory.keyword("any")))]}},o=function(e){return function(t){var r,n,a,o=t.key.constants[0].values[0],c=t.value,s=f(c.atomics.length?[c.atomics[0].type,!1]:c.constants.length?[c.constants[0].type,!1]:c.templates.length?["string",!1]:c.natives.includes("Blob")?["blob",!1]:c.natives.includes("File")?["file",!1]:(a=null!==(n=null===(r=c.arrays[0])||void 0===r?void 0:r.type.value)&&void 0!==n?n:c.tuples[0].type.elements[0]).atomics.length?[a.atomics[0].type,!0]:a.templates.length?["string",!0]:a.natives.includes("Blob")?["blob",!0]:a.natives.includes("File")?["file",!0]:[a.constants[0].type,!0],2),d=s[0],m=s[1];return y.default.factory.createPropertyAssignment(S.Escaper.variable(o)?o:y.default.factory.createStringLiteral(o),m?u(e)(c)(y.default.factory.createCallExpression(p.IdentifierFactory.access(y.default.factory.createCallExpression(y.default.factory.createIdentifier("input.getAll"),void 0,[y.default.factory.createStringLiteral(o)]))("map"),void 0,[y.default.factory.createArrowFunction(void 0,void 0,[p.IdentifierFactory.parameter("elem")],void 0,void 0,i(e)(d)(!1)(y.default.factory.createIdentifier("elem")))])):i(e)(d)(!1===c.nullable&&!1===c.isRequired())(y.default.factory.createCallExpression(y.default.factory.createIdentifier("input.get"),void 0,[y.default.factory.createStringLiteral(o)])))}},i=function(e){return function(t){return function(r){return function(n){var a=y.default.factory.createCallExpression(e.use(t),void 0,[n]);return r?y.default.factory.createBinaryExpression(a,y.default.factory.createToken(y.default.SyntaxKind.QuestionQuestionToken),y.default.factory.createIdentifier("undefined")):a}}}},u=function(e){return function(t){return function(r){return t.nullable||!1===t.isRequired()?y.default.factory.createCallExpression(e.use("array"),void 0,[r,t.nullable?y.default.factory.createNull():y.default.factory.createIdentifier("undefined")]):r}}}},94694:function(e,t,r){"use strict";var n,a,o,i,u,c,f=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HttpHeadersProgrammer=void 0;var p=y(r(55423)),m=r(73906),v=r(61387),g=r(92595),_=r(43390),b=r(6152),x=r(12301),S=r(63860),T=r(63664),E=r(5724),w=r(63224),P=r(31959),I=r(92273);(n=c||(t.HttpHeadersProgrammer=c={})).INPUT_TYPE="Record",n.write=function(e){return function(t){return function(r,o){var i=new P.FunctionImporter(t.getText()),u=new g.MetadataCollection,c=_.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0,validate:n.validate})(u)(r);if(!1===c.success)throw T.TransformerError.from("typia.http.".concat(i.method))(c.errors);var d=c.data.objects[0],y=a(i)(d);return p.default.factory.createArrowFunction(void 0,void 0,[v.IdentifierFactory.parameter("input",p.default.factory.createTypeReferenceNode(n.INPUT_TYPE))],p.default.factory.createTypeReferenceNode("typia.Resolved<".concat(null!=o?o:x.TypeFactory.getFullName(e.checker)(r),">")),void 0,p.default.factory.createBlock(s(s([],f(i.declare(t)),!1),f(y),!1),!0))}}},n.validate=function(e,t){var r,n,a,o,i=[],insert=function(e){return i.push(e)};if(!0===t.top)(1!==e.objects.length||1!==e.bucket())&&insert("only one object type is allowed."),!0===e.nullable&&insert("headers cannot be null."),!1===e.isRequired()&&insert("headers cannot be null.");else if(null!==t.nested&&t.nested instanceof S.MetadataArrayType){var u=I.HttpMetadataUtil.atomics(e),c=e.atomics.length+e.templates.length+e.constants.map(function(e){return e.values.length}).reduce(function(e,t){return e+t},0);u.size>1&&insert("union type is not allowed in array."),e.size()!==c&&insert("only atomic or constant types are allowed in array."),!0===e.nullable&&insert("nullable type is not allowed in array."),!1===e.isRequired()&&insert("optional type is not allowed in array.")}else if(t.object&&null!==t.property){"object"==typeof t.property&&insert("dynamic property is not allowed."),e.tuples.length&&insert("tuple type is not allowed."),I.HttpMetadataUtil.isUnion(e)&&insert("union type is not allowed."),(e.objects.length||e.sets.length||e.maps.length||e.natives.length)&&insert("nested object type is not allowed."),!0===e.nullable&&insert("nullable type is not allowed.");var y=e.arrays.length>=1||e.tuples.length>=1;"string"==typeof t.property&&"set-cookie"===t.property.toLowerCase()&&!1===y&&insert("".concat(t.property," property must be array.")),"string"==typeof t.property&&j.has(t.property.toLowerCase())&&!0===y&&insert("property cannot be array.")}else if(t.object&&null===t.property){var p=new Map;try{for(var m=d(t.object.properties),v=m.next();!v.done;v=m.next()){var g=v.value.key.getSoleLiteral();null!==g&&w.MapUtil.take(p)(g.toLowerCase(),function(){return new Set}).add(g)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}try{for(var _=d(p),b=_.next();!b.done;b=_.next()){var x=f(b.value,2),g=x[0],T=x[1];T.size>1&&insert("duplicated keys when converting to lowercase letters: [".concat(s([],f(T),!1).join(", "),"] -> ").concat(g))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(a)throw a.error}}}return i},a=function(e){return function(t){var r=p.default.factory.createIdentifier("output"),n=[];return s(s([b.StatementFactory.constant("output",p.default.factory.createObjectLiteralExpression(t.properties.map(function(t){return!t.value.isRequired()&&t.value.arrays.length+t.value.tuples.length>0&&n.push(t.key.constants[0].values[0]),o(e)(t)}),!0))],f(n.map(function(e){var t=v.IdentifierFactory.access(r)(e);return p.default.factory.createIfStatement(p.default.factory.createStrictEquality(m.ExpressionFactory.number(0),v.IdentifierFactory.access(t)("length")),p.default.factory.createExpressionStatement(p.default.factory.createDeleteExpression(t)))})),!1),[p.default.factory.createReturnStatement(p.default.factory.createAsExpression(r,x.TypeFactory.keyword("any")))],!1)}},o=function(e){return function(t){var r,n,a,o=t.key.constants[0].values[0],c=t.value,s=f(c.atomics.length?[c.atomics[0].type,!1]:c.constants.length?[c.constants[0].type,!1]:c.templates.length?["string",!1]:(a=null!==(n=null===(r=c.arrays[0])||void 0===r?void 0:r.type.value)&&void 0!==n?n:c.tuples[0].type.elements[0]).atomics.length?[a.atomics[0].type,!0]:a.templates.length?["string",!0]:[a.constants[0].type,!0],2),d=s[0],y=s[1],m=v.IdentifierFactory.access(p.default.factory.createIdentifier("input"))(o.toLowerCase());return p.default.factory.createPropertyAssignment(E.Escaper.variable(o)?o:p.default.factory.createStringLiteral(o),y?"set-cookie"===o?m:u(e)(d)(o)(c)(m):i(e)(d)(m))}},i=function(e){return function(t){return function(r){return"string"===t?r:p.default.factory.createCallExpression(e.use(t),void 0,[r])}}},u=function(e){return function(t){return function(r){return function(n){return function(a){var o=p.default.factory.createCallChain(p.default.factory.createPropertyAccessChain(p.default.factory.createCallChain(p.default.factory.createPropertyAccessChain(a,p.default.factory.createToken(p.default.SyntaxKind.QuestionDotToken),p.default.factory.createIdentifier("split")),void 0,void 0,[p.default.factory.createStringLiteral("cookie"===r?"; ":", ")]),p.default.factory.createToken(p.default.SyntaxKind.QuestionDotToken),p.default.factory.createIdentifier("map")),void 0,void 0,[e.use(t)]);return p.default.factory.createConditionalExpression(m.ExpressionFactory.isArray(a),void 0,p.default.factory.createCallExpression(v.IdentifierFactory.access(a)("map"),void 0,[e.use(t)]),void 0,!1===n.isRequired()?o:p.default.factory.createBinaryExpression(o,p.default.factory.createToken(p.default.SyntaxKind.QuestionQuestionToken),p.default.factory.createArrayLiteralExpression([],!1)))}}}}};var j=new Set(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","server","user-agent"])},93067:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),i.default.factory.createLiteralTypeNode(i.default.factory.createNull())]),void 0,i.default.factory.createBlock([c.StatementFactory.constant("is",s.IsProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.HttpFormDataProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createIfStatement(i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.ExclamationToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("output")])),i.default.factory.createReturnStatement(i.default.factory.createNull())),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},4494:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),i.default.factory.createLiteralTypeNode(i.default.factory.createNull())]),void 0,i.default.factory.createBlock([c.StatementFactory.constant("is",s.IsProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.HttpHeadersProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createIfStatement(i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.ExclamationToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("output")])),i.default.factory.createReturnStatement(i.default.factory.createNull())),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},26334:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),i.default.factory.createLiteralTypeNode(i.default.factory.createNull())]),void 0,i.default.factory.createBlock([c.StatementFactory.constant("is",s.IsProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.HttpQueryProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createIfStatement(i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.ExclamationToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("output")])),i.default.factory.createReturnStatement(i.default.factory.createNull())),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},50457:function(e,t,r){"use strict";var n,a,o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a1&&insert("do not allow union type"),t}},57330:function(e,t,r){"use strict";var n,a,o,i,u,c,f=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")),void 0,y.default.factory.createBlock(s(s([],f(i.declare(t)),!1),f(g),!1),!0))}}},n.validate=function(e,t){var r=[],insert=function(e){return r.push(e)};if(!0===t.top)(1!==e.objects.length||1!==e.bucket())&&insert("only one object type is allowed."),!0===e.nullable&&insert("query parameters cannot be null."),!1===e.isRequired()&&insert("query parameters cannot be undefined.");else if(null!==t.nested&&t.nested instanceof b.MetadataArrayType){var n=E.HttpMetadataUtil.atomics(e),a=e.atomics.length+e.templates.length+e.constants.map(function(e){return e.values.length}).reduce(function(e,t){return e+t},0);n.size>1&&insert("union type is not allowed in array."),e.size()!==a&&insert("only atomic or constant types are allowed in array.")}else t.object&&null!==t.property&&("object"==typeof t.property&&insert("dynamic property is not allowed."),e.tuples.length&&insert("tuple type is not allowed."),E.HttpMetadataUtil.isUnion(e)&&insert("union type is not allowed."),(e.objects.length||e.sets.length||e.maps.length||e.natives.length)&&insert("nested object type is not allowed."));return r},a=function(e){return function(t){var r=y.default.factory.createIdentifier("input"),n=y.default.factory.createIdentifier("output");return[y.default.factory.createExpressionStatement(y.default.factory.createBinaryExpression(r,y.default.factory.createToken(y.default.SyntaxKind.EqualsToken),y.default.factory.createAsExpression(y.default.factory.createCallExpression(e.use("params"),void 0,[r]),y.default.factory.createTypeReferenceNode("URLSearchParams")))),g.StatementFactory.constant("output",y.default.factory.createObjectLiteralExpression(t.properties.map(function(t){return o(e)(t)}),!0)),y.default.factory.createReturnStatement(y.default.factory.createAsExpression(n,_.TypeFactory.keyword("any")))]}},o=function(e){return function(t){var r,n,a,o=t.key.constants[0].values[0],c=t.value,s=f(c.atomics.length?[c.atomics[0].type,!1]:c.constants.length?[c.constants[0].type,!1]:c.templates.length?["string",!1]:(a=null!==(n=null===(r=c.arrays[0])||void 0===r?void 0:r.type.value)&&void 0!==n?n:c.tuples[0].type.elements[0]).atomics.length?[a.atomics[0].type,!0]:a.templates.length?["string",!0]:[a.constants[0].type,!0],2),d=s[0],m=s[1];return y.default.factory.createPropertyAssignment(S.Escaper.variable(o)?o:y.default.factory.createStringLiteral(o),m?u(e)(c)(y.default.factory.createCallExpression(p.IdentifierFactory.access(y.default.factory.createCallExpression(y.default.factory.createIdentifier("input.getAll"),void 0,[y.default.factory.createStringLiteral(o)]))("map"),void 0,[y.default.factory.createArrowFunction(void 0,void 0,[p.IdentifierFactory.parameter("elem")],void 0,void 0,i(e)(d)(!1)(y.default.factory.createIdentifier("elem")))])):i(e)(d)(!1===c.nullable&&!1===c.isRequired())(y.default.factory.createCallExpression(y.default.factory.createIdentifier("input.get"),void 0,[y.default.factory.createStringLiteral(o)])))}},i=function(e){return function(t){return function(r){return function(n){var a=y.default.factory.createCallExpression(e.use(t),void 0,[n]);return r?y.default.factory.createBinaryExpression(a,y.default.factory.createToken(y.default.SyntaxKind.QuestionQuestionToken),y.default.factory.createIdentifier("undefined")):a}}}},u=function(e){return function(t){return function(r){return t.nullable||!1===t.isRequired()?y.default.factory.createCallExpression(e.use("array"),void 0,[r,t.nullable?y.default.factory.createNull():y.default.factory.createIdentifier("undefined")]):r}}}},2351:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.HttpFormDataProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("output")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},24635:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.HttpHeadersProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("output")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},23262:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.HttpQueryProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("output")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},30535:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_COMPONENTS_PREFIX=void 0,t.JSON_COMPONENTS_PREFIX="#/components"},38379:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_array=void 0;var u=r(15566);t.application_array=function(e){return function(t){return function(r){var i=(0,u.application_schema)(e)(!1)(t)(r.type.value)({}),c={type:"array",items:null},out=function(e){return e.items=i,e};if(0===r.tags.length)return[out(c)];var f=r.tags.map(function(t){return application_array_tags(e)(n({},c))(t)});return o([],a(new Map(f.map(function(e){return[JSON.stringify(e),e]})).values()),!1).map(function(e){return out(e)})}}};var application_array_tags=function(e){return function(t){return function(r){var n,a;try{for(var o=i(r.slice().sort(function(e,t){return e.kind.localeCompare(t.kind)})),u=o.next();!u.done;u=o.next()){var c=u.value;"minItems"===c.kind&&"number"==typeof c.value?t.minItems=c.value:"maxItems"===c.kind&&"number"==typeof c.value&&(t.maxItems=c.value)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}return e.surplus&&(t["x-typia-typeTags"]=r.map(function(e){return{target:e.target,name:e.name,kind:e.kind,value:e.value,validate:e.validate,exclusive:e.exclusive}})),t}}}},70141:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_default=void 0,t.application_default=function(e){return function(t){return function(n){var a,o,i,u,c=(null!==(i=e["x-typia-jsDocTags"])&&void 0!==i?i:[]).filter(function(e){return"default"===e.name});try{for(var f=r(c),s=f.next();!s.done;s=f.next()){var d=s.value;if((null===(u=d.text)||void 0===u?void 0:u.length)&&t(d.text[0].text))return n(d.text[0].text)}}catch(e){a={error:e}}finally{try{s&&!s.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}}}}},21683:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_default_string=void 0;var a=r(1494);t.application_default_string=function(e){return function(t){return function(r){return(0,a.application_default)(t)(function(t){var a,o,i,u,c=[];e.atomics.find(function(e){return"number"===e.type||"bigint"===e.type})&&c.push(Number.isNaN(Number(t))),e.atomics.find(function(e){return"boolean"===e.type})&&c.push("true"!==t&&"false"!==t);try{for(var f=n(e.constants),s=f.next();!s.done;s=f.next()){var d=s.value;try{for(var y=(i=void 0,n(d.values)),p=y.next();!p.done;p=y.next()){var m=p.value;c.push(t!==m.toString())}}catch(e){i={error:e}}finally{try{p&&!p.done&&(u=y.return)&&u.call(y)}finally{if(i)throw i.error}}}}catch(e){a={error:e}}finally{try{s&&!s.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}return void 0!==r.minLength&&c.push(t.length>=r.minLength),void 0!==r.maxLength&&c.push(t.length<=r.maxLength),void 0!==r.pattern&&c.push(new RegExp(r.pattern).test(t)),c.every(function(e){return e})})(function(e){return e})}}}},16229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.application_escaped=void 0;var n=r(15566);t.application_escaped=function(e){return function(t){return function(r){return function(a){var o=(0,n.application_schema)(e)(t)(r)(a.returns)({});if(null===o)return[];if(is_date(new Set)(a.original)){var i=is_string(o)?o:is_one_of(o)?o.oneOf.find(is_string):void 0;void 0!==i&&"date"!==i.format&&"date-time"!==i.format&&(i.format="date-time")}return is_one_of(o)?o.oneOf:[o]}}}};var is_string=function(e){return"string"===e.type},is_one_of=function(e){return Array.isArray(e.oneOf)},is_date=function(e){return function(t){return!e.has(t)&&(e.add(t),t.natives.some(function(e){return"Date"===e})||t.arrays.some(function(t){return is_date(e)(t.type.value)})||t.tuples.some(function(t){return t.type.elements.some(is_date(e))})||t.aliases.some(function(t){return is_date(e)(t.value)}))}}},88072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.application_native=void 0;var n=r(30535);t.application_native=function(e){return function(t){return function(r){return function(a){if("Blob"===r||"File"===r)return{type:"string",format:"binary",nullable:a};var o,i,u,c,f="ajv"===e.purpose?r:"".concat(r).concat(a?".Nullable":"");return(null===(o=t.schemas)||void 0===o?void 0:o[f])===void 0&&(null!==(i=t.schemas)&&void 0!==i||(t.schemas={}),null!==(u=(c=t.schemas)[f])&&void 0!==u||(c[f]={type:"object",$id:"ajv"===e.purpose?"".concat(n.JSON_COMPONENTS_PREFIX,"/objects/").concat(f):void 0,properties:{},nullable:"swagger"===e.purpose?a:void 0})),{$ref:"".concat(n.JSON_COMPONENTS_PREFIX,"/objects/").concat(f)}}}}}},44286:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_number=void 0;var u=r(1494);t.application_number=function(e){return function(t){return function(r){var i={type:"number"},out=function(e){var t;return null!==(t=e.default)&&void 0!==t||(e.default=(0,u.application_default)(r)(function(t){var r=Number(t),n=[!Number.isNaN(r)];return void 0!==e.minimum&&(!0===e.exclusiveMinimum?n.push(r>e.minimum):n.push(r>=e.minimum)),void 0!==e.maximum&&(!0===e.exclusiveMaximum?n.push(r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.application_object=void 0;var i=r(37297),u=r(3078),c=r(28868),f=r(30535),s=r(15566),d=r(76555);t.application_object=function(e){return function(t){return function(r){return function(n){if(!0===r._Is_literal())return create_object_schema(e)(t)(r)(n);var a,o,i="ajv"===e.purpose?r.name:"".concat(r.name).concat(n?".Nullable":""),u="".concat(f.JSON_COMPONENTS_PREFIX,"/schemas/").concat(i);if((null===(a=t.schemas)||void 0===a?void 0:a[i])!==void 0)return{$ref:u};var c={$id:"ajv"===e.purpose?u:void 0};return null!==(o=t.schemas)&&void 0!==o||(t.schemas={}),t.schemas[i]=c,Object.assign(c,create_object_schema(e)(t)(r)(n)),{$ref:u}}}}};var create_object_schema=function(e){return function(t){return function(r){return function(u){var f,y,p,m,v,g={},_={patternProperties:{},additionalProperties:void 0},b=[];try{for(var x=a(r.properties),S=x.next();!S.done;S=x.next()){var T=S.value;!function(r){if(!(!0===r.value.functional&&!1===r.value.nullable&&!0===r.value.isRequired()&&0===r.value.size()||r.jsDocTags.find(function(e){return"hidden"===e.name}))){var a,o,u,f=r.key.getSoleLiteral(),y=(0,s.application_schema)(e)(!0)(t)(r.value)(n(n({deprecated:r.jsDocTags.some(function(e){return"deprecated"===e.name})||void 0,title:(null===(a=null==(o=r.jsDocTags.find(function(e){return"title"===e.name}))?void 0:o.text)||void 0===a?void 0:a.length)?i.CommentFactory.merge(o.text):void 0,description:null!==(p=r.description)&&void 0!==p?p:void 0},e.surplus?{"x-typia-required":r.value.required,"x-typia-optional":r.value.optional}:{}),{"x-typia-jsDocTags":(u=r.jsDocTags.filter(function(e){return"title"!==e.name&&"deprecated"!==e.name&&"hidden"!==e.name})).length?u:void 0}));if(null!==y){if(!1===e.surplus&&(null===(m=y["x-typia-jsDocTags"])||void 0===m?void 0:m.length)&&delete y["x-typia-jsDocTags"],null!==f)g[f]=y,!0===r.value.isRequired()&&b.push(f);else{var v=(0,d.metadata_to_pattern)(!0)(r.key);v===c.PatternUtil.STRING?_.additionalProperties=[r.value,y]:_.patternProperties[v]=[r.value,y]}}}}(T)}}catch(e){f={error:e}}finally{try{S&&!S.done&&(y=x.return)&&y.call(x)}finally{if(f)throw f.error}}var E={additionalProperties:null===(v=_.additionalProperties)||void 0===v?void 0:v[1],patternProperties:function(){if(0!==Object.keys(_.patternProperties).length){var e,t,r={};try{for(var n=a(Object.entries(_.patternProperties)),i=n.next();!i.done;i=n.next()){var u=o(i.value,2),c=u[0],f=u[1];r[c]=f[1]}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r}}()};return n(n({type:"object",properties:g,nullable:"swagger"===e.purpose?u:void 0,required:b.length?b:void 0,description:r.description},e.surplus?{"x-typia-jsDocTags":r.jsDocTags}:{}),"ajv"===e.purpose?E:e.surplus?{"x-typia-additionalProperties":E.additionalProperties,"x-typia-patternProperties":E.patternProperties,additionalProperties:join(e)(t)(_)}:{})}}}},join=function(e){return function(t){return function(r){var n,a=Object.values(r.patternProperties||{});if(r.additionalProperties&&a.push(r.additionalProperties),0!==a.length){if(1===a.length)return a[0][1];var o=a.map(function(e){return e[0]}).reduce(function(e,t){return u.Metadata.merge(e,t)});return null!==(n=(0,s.application_schema)(e)(!0)(t)(o)(e.surplus?{"x-typia-required":!1}:{}))&&void 0!==n?n:void 0}}}}},15566:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_schema=void 0;var o=r(45041),i=r(86752),u=r(38379),c=r(95333),f=r(70141),s=r(59672),d=r(16229),y=r(88072),p=r(44286),m=r(68725),v=r(24014),g=r(33502),_=r(30829);t.application_schema=function(e){return function(t){return function(r){return function(x){return function(S){if(!0===x.any)return n(n({},S),{type:void 0});if(x.nullable&&x.empty())return n({type:"null"},S);var T,E,w,P,I,j,F,A,M,O,C,N,R,L,U=[];x.nullable&&"swagger"!==e.purpose&&U.push(n(n({},S),{type:"null"}));var H=x.nullable&&"swagger"===e.purpose?function(e){return U.push(n(n({},e),{nullable:!!e.type||void 0}))}:function(e){return U.push(e)};null!==x.escaped&&(0,d.application_escaped)(e)(t)(r)(x.escaped).forEach(H),x.templates.length&&i.AtomicPredicator.template(x)&&H((0,g.application_templates)(x)(S));try{for(var q=a(x.constants),z=q.next();!z.done;z=q.next()){var B=z.value;if("bigint"===B.type)throw TypeError(b);"string"===B.type&&x.templates.length||!1===i.AtomicPredicator.constant(x)(B.type)||H((0,s.application_constant)(B)(S))}}catch(e){T={error:e}}finally{try{z&&!z.done&&(E=q.return)&&E.call(q)}finally{if(T)throw T.error}}try{for(var V=a(x.atomics),J=V.next();!J.done;J=V.next()){var G=J.value;if("bigint"===G.type)throw TypeError(b);"boolean"===G.type?(0,f.application_boolean)(e)(G)(S).forEach(H):"number"===G.type?(0,p.application_number)(e)(G)(S).forEach(H):"string"===G.type&&(0,v.application_string)(e)(x)(G)(S).forEach(H)}}catch(e){w={error:e}}finally{try{J&&!J.done&&(P=V.return)&&P.call(V)}finally{if(w)throw w.error}}try{for(var Q=a(x.arrays),W=Q.next();!W.done;W=Q.next()){var K=W.value;(0,c.application_array)(e)(r)(K).forEach(H)}}catch(e){I={error:e}}finally{try{W&&!W.done&&(j=Q.return)&&j.call(Q)}finally{if(I)throw I.error}}try{for(var Y=a(x.tuples),Z=Y.next();!Z.done;Z=Y.next()){var X=Z.value;H((0,_.application_tuple)(e)(r)(X)(S))}}catch(e){F={error:e}}finally{try{Z&&!Z.done&&(A=Y.return)&&A.call(Y)}finally{if(F)throw F.error}}try{for(var ee=a(x.natives),et=ee.next();!et.done;et=ee.next()){var er=et.value;!function(t){if(i.AtomicPredicator.native(t)){var n=t.toLowerCase();if(!x.atomics.some(function(e){return e.type===n})){if("bigint"===n)throw TypeError(b);"boolean"===n?H((0,f.application_boolean)(e)(o.MetadataAtomic.create({type:"boolean",tags:[]}))(S)[0]):"number"===n?H((0,p.application_number)(e)(o.MetadataAtomic.create({type:"number",tags:[]}))(S)[0]):"string"===n&&H((0,v.application_string)(e)(x)(o.MetadataAtomic.create({type:"string",tags:[]}))(S)[0])}}else H((0,y.application_native)(e)(r)(t)(x.nullable))}(er)}}catch(e){M={error:e}}finally{try{et&&!et.done&&(O=ee.return)&&O.call(ee)}finally{if(M)throw M.error}}x.sets.length&&H((0,y.application_native)(e)(r)("Set")(x.nullable)),x.maps.length&&H((0,y.application_native)(e)(r)("Map")(x.nullable));try{for(var en=a(x.objects),ea=en.next();!ea.done;ea=en.next()){var eo=ea.value;H((0,m.application_object)(e)(r)(eo)(x.nullable))}}catch(e){C={error:e}}finally{try{ea&&!ea.done&&(N=en.return)&&N.call(en)}finally{if(C)throw C.error}}try{for(var ei=a(x.aliases),eu=ei.next();!eu.done;eu=ei.next()){var ec=eu.value;H((0,u.application_alias)(e)(t)(r)(ec)(x.nullable))}}catch(e){R={error:e}}finally{try{eu&&!eu.done&&(L=ei.return)&&L.call(ei)}finally{if(R)throw R.error}}return 0===U.length?!0===t?null:n(n({},S),{type:void 0}):1===U.length?n(n({},U[0]),S):n({oneOf:U},S)}}}}};var b="Error on typia.application(): does not allow bigint type."},24014:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.application_string=void 0;var u=r(21683);t.application_string=function(e){return function(t){return function(r){return function(i){var c={type:"string"},out=function(e){var r;return null!==(r=e.default)&&void 0!==r||(e.default=(0,u.application_default_string)(t)(i)(c)),e};if(0===r.tags.length)return[out(c)];var f=r.tags.map(function(t){return application_string_tags(e)(n({},c))(t)});return o([],a(new Map(f.map(function(e){return[JSON.stringify(e),e]})).values()),!1).map(function(e){return out(e)})}}}};var application_string_tags=function(e){return function(t){return function(r){var n,a;try{for(var o=i(r.slice().sort(function(e,t){return e.kind.localeCompare(t.kind)})),u=o.next();!u.done;u=o.next()){var c=u.value;"minLength"===c.kind&&"number"==typeof c.value?t.minLength=c.value:"maxLength"===c.kind&&"number"==typeof c.value?t.maxLength=c.value:"format"===c.kind&&"string"==typeof c.value?t.format=c.value:"pattern"===c.kind?t.pattern=c.value:"default"===c.kind&&"string"==typeof c.value&&(t.default=c.value)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}return e.surplus&&(t["x-typia-typeTags"]=r.map(function(e){return{target:e.target,name:e.name,kind:e.kind,value:e.value,validate:e.validate,exclusive:e.exclusive}})),t}}}},33502:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.application_templates=void 0;var n=r(21683),a=r(76555);t.application_templates=function(e){return function(t){var r={type:"string"};return r.pattern=(0,a.metadata_to_pattern)(!0)(e),r.default=(0,n.application_default_string)(e)(t)(r),r}}},30829:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r & ".concat(t.name),expression:(null!==(a=t.predicate)&&void 0!==a?a:n.ExpressionFactory.transpile(e.context)(t.validate))(r)}})})}}}},67790:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.check_bigint=void 0;var a=n(r(55423)),o=r(73906);t.check_bigint=function(e){return function(t){return function(r){var n=check_bigint_type_tags(e)(t)(r);return{expected:t.getName(),expression:a.default.factory.createStrictEquality(a.default.factory.createStringLiteral("bigint"),a.default.factory.createTypeOfExpression(r)),conditions:n}}}};var check_bigint_type_tags=function(e){return function(t){return function(r){return t.tags.map(function(e){return e.filter(function(e){return!!e.validate})}).filter(function(e){return!!e.length}).map(function(t){return t.map(function(t){var n;return{expected:"bigint & ".concat(t.name),expression:(null!==(n=t.predicate)&&void 0!==n?n:o.ExpressionFactory.transpile(e.context)(t.validate))(r)}})})}}}},95013:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.metadata_to_pattern=void 0;var a=r(73346),o=r(28868),i=r(26290);t.metadata_to_pattern=function(e){return function(t){if(void 0!==t.atomics.find(function(e){return"string"===e.type}))return"(.*)";var r,u,c,f,s=a.ArrayUtil.flat(t.constants.map(function(e){return"string"!==e.type?e.values.map(function(e){return e.toString()}):e.values.map(function(e){return o.PatternUtil.escape(e)})}));try{for(var d=n(t.atomics),y=d.next();!y.done;y=d.next()){var p=y.value;"number"===p.type||"bigint"===p.type?s.push(o.PatternUtil.NUMBER):"boolean"===p.type&&s.push(o.PatternUtil.BOOLEAN)}}catch(e){r={error:e}}finally{try{y&&!y.done&&(u=d.return)&&u.call(d)}finally{if(r)throw r.error}}try{for(var m=n(t.templates),v=m.next();!v.done;v=m.next()){var g=v.value;s.push("("+(0,i.template_to_pattern)(!1)(g)+")")}}catch(e){c={error:e}}finally{try{v&&!v.done&&(f=m.return)&&f.call(m)}finally{if(c)throw c.error}}var _=1===s.length?s[0]:"("+s.join("|")+")";return e?o.PatternUtil.fix(_):_}}},19973:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.prune_object_properties=void 0;var a=n(r(55423)),o=r(6152),i=r(76555);t.prune_object_properties=function(e){var t=a.default.factory.createIdentifier("input"),r=a.default.factory.createIdentifier("key"),n=e.properties.map(function(e){var t=e.key.getSoleLiteral();return null!==t?a.default.factory.createStrictEquality(a.default.factory.createStringLiteral(t),a.default.factory.createIdentifier("key")):a.default.factory.createCallExpression(a.default.factory.createIdentifier("RegExp(/".concat((0,i.metadata_to_pattern)(!0)(e.key),"/).test")),void 0,[r])}),u=[];return n.length&&u.push(a.default.factory.createIfStatement(n.reduce(function(e,t){return a.default.factory.createLogicalOr(e,t)}),a.default.factory.createContinueStatement())),u.push(a.default.factory.createExpressionStatement(a.default.factory.createDeleteExpression(a.default.factory.createElementAccessExpression(t,r)))),a.default.factory.createForOfStatement(void 0,o.StatementFactory.constant("key").declarationList,a.default.factory.createCallExpression(a.default.factory.createIdentifier("Object.keys"),void 0,[t]),1===u.length?u[0]:a.default.factory.createBlock(u,!0))}},59573:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.random_custom=void 0;var a=n(r(55423)),o=r(73906),i=r(97846);t.random_custom=function(e){return function(t){return function(r){return function(n){return o.ExpressionFactory.coalesce(a.default.factory.createCallChain(a.default.factory.createPropertyAccessChain(e("customs"),a.default.factory.createToken(a.default.SyntaxKind.QuestionDotToken),a.default.factory.createIdentifier(t)),a.default.factory.createToken(a.default.SyntaxKind.QuestionDotToken),void 0,[i.LiteralFactory.generate(r.map(function(e){return{name:e.name,kind:e.kind,value:e.value}}))]))(n)}}}}},11430:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stringify_dynamic_properties=void 0;var o=a(r(55423)),i=r(61387),u=r(95374),c=r(76555);t.stringify_dynamic_properties=function(e,t){var r,a,u,f=[o.default.factory.createIfStatement(o.default.factory.createStrictEquality(o.default.factory.createIdentifier("undefined"),o.default.factory.createIdentifier("value")),o.default.factory.createReturnStatement(o.default.factory.createStringLiteral("")))],output=function(){var e=o.default.factory.createCallExpression(i.IdentifierFactory.access(o.default.factory.createCallExpression(o.default.factory.createIdentifier("Object.entries"),void 0,[o.default.factory.createIdentifier("input")]))("map"),void 0,[o.default.factory.createArrowFunction(void 0,void 0,[i.IdentifierFactory.parameter(o.default.factory.createArrayBindingPattern([o.default.factory.createBindingElement(void 0,void 0,"key"),o.default.factory.createBindingElement(void 0,void 0,"value")]),o.default.factory.createTypeReferenceNode("[string, any]"))],void 0,void 0,o.default.factory.createBlock(f))]),t=o.default.factory.createCallExpression(i.IdentifierFactory.access(e)("filter"),void 0,[o.default.factory.createArrowFunction(void 0,void 0,[i.IdentifierFactory.parameter("str")],void 0,void 0,o.default.factory.createStrictInequality(o.default.factory.createStringLiteral(""),o.default.factory.createIdentifier("str")))]);return o.default.factory.createCallExpression(i.IdentifierFactory.access(t)("join"),void 0,[o.default.factory.createStringLiteral(",")])};if(t.length&&f.push(o.default.factory.createIfStatement(o.default.factory.createCallExpression(i.IdentifierFactory.access(o.default.factory.createArrayLiteralExpression(t.map(function(e){return o.default.factory.createStringLiteral(e)})))("some"),void 0,[o.default.factory.createArrowFunction(void 0,void 0,[i.IdentifierFactory.parameter("regular")],void 0,void 0,o.default.factory.createStrictEquality(o.default.factory.createIdentifier("regular"),o.default.factory.createIdentifier("key")))]),o.default.factory.createReturnStatement(o.default.factory.createStringLiteral("")))),!0==(1===e.length&&1===e[0].key.size()&&(null===(u=e[0].key.atomics[0])||void 0===u?void 0:u.type)==="string"))return f.push(stringify(e[0])),output();try{for(var s=n(e),d=s.next();!d.done;d=s.next()){var y=d.value,p=o.default.factory.createIfStatement(o.default.factory.createCallExpression(o.default.factory.createIdentifier("RegExp(/".concat((0,c.metadata_to_pattern)(!0)(y.key),"/).test")),void 0,[o.default.factory.createIdentifier("key")]),stringify(y));f.push(p)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return f.push(o.default.factory.createReturnStatement(o.default.factory.createStringLiteral(""))),output()};var stringify=function(e){return o.default.factory.createReturnStatement(u.TemplateFactory.generate([o.default.factory.createCallExpression(o.default.factory.createIdentifier("JSON.stringify"),[],[o.default.factory.createIdentifier("key")]),o.default.factory.createStringLiteral(":"),e.expression]))}},11606:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonApplicationProgrammer=void 0;var c=r(63664),f=r(86752),s=r(15566);(a=(n=o||(t.JsonApplicationProgrammer=o={})).IOptions||(n.IOptions={})).complement=function(e){var t,r;return{purpose:null!==(t=null==e?void 0:e.purpose)&&void 0!==t?t:"swagger",surplus:null!==(r=null==e?void 0:e.surplus)&&void 0!==r&&r}},n.write=function(e){return function(t){var r=a.complement(e),n={schemas:{}},o=(0,s.application_schema)(r)(!0)(n);return i({schemas:t.map(function(e,t){var r=o(e)({});if(null===r)throw new c.TransformerError({code:"typia.json.application",message:"invalid type on argument - (".concat(e.getName(),", ").concat(t,")")});return r}),components:n},r)}},n.validate=function(e){var t,r,n=[];(e.atomics.some(function(e){return"bigint"===e.type})||e.constants.some(function(e){return"bigint"===e.type}))&&n.push("JSON schema does not support bigint type."),(e.tuples.some(function(e){return e.type.elements.some(function(e){return!1===e.isRequired()})})||e.arrays.some(function(e){return!1===e.type.value.isRequired()}))&&n.push("JSON schema does not support undefined type in array."),e.maps.length&&n.push("JSON schema does not support Map type."),e.sets.length&&n.push("JSON schema does not support Set type.");try{for(var a=u(e.natives),o=a.next();!o.done;o=a.next()){var i=o.value;!1===f.AtomicPredicator.native(i)&&"Date"!==i&&"Blob"!==i&&"File"!==i&&n.push("JSON schema does not support ".concat(i," type."))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return n}},29057:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([f.StatementFactory.constant("assert",d.AssertProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("input"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("JSON.parse"),void 0,[i.default.factory.createIdentifier("input")]))),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("input")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},20433:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([f.StatementFactory.constant("is",d.IsProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("input"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("JSON.parse"),void 0,[i.default.factory.createIdentifier("input")]))),i.default.factory.createReturnStatement(i.default.factory.createConditionalExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("input")]),void 0,i.default.factory.createAsExpression(i.default.factory.createIdentifier("input"),s.TypeFactory.keyword("any")),void 0,i.default.factory.createNull()))]))}}}},5042:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},F=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},M=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonStringifyProgrammer=void 0;var O=M(r(55423)),C=r(73906),N=r(61387),R=r(67711),L=r(6152),U=r(12301),H=r(84411),q=r(3078),z=r(23879),B=r(45041),V=r(73346),J=r(12114),G=r(63348),Q=r(86752),W=r(31959),K=r(3306),Y=r(38252),Z=r(91934),X=r(97144),ee=r(60572),et=r(39687),er=r(11058),en=r(59714);(P||(t.JsonStringifyProgrammer=P={})).write=function(e){return function(t){var r=new W.FunctionImporter(t.getText()),n=T(e)(r);return J.FeatureProgrammer.write(e)(I(I({},n),{addition:function(n){return F(F([],j(G.IsProgrammer.write_function_statements(e)(r)(n)),!1),j(r.declare(t)),!1)}}))(r)}},n=function(e){return function(t){return function(r){return function(a,i,c){if(!0===i.any)return g(a,i,c)(b(a,i,c)(O.default.factory.createCallExpression(O.default.factory.createIdentifier("JSON.stringify"),void 0,[a])));if(0===i.size()&&(!1===i.isRequired()||!0===i.nullable))return!1===i.isRequired()&&!0===i.nullable?"array"===c.from?O.default.factory.createStringLiteral("null"):O.default.factory.createConditionalExpression(O.default.factory.createStrictEquality(O.default.factory.createNull(),a),void 0,O.default.factory.createStringLiteral("null"),void 0,O.default.factory.createIdentifier("undefined")):!1===i.isRequired()?"array"===c.from?O.default.factory.createStringLiteral("null"):O.default.factory.createIdentifier("undefined"):O.default.factory.createStringLiteral("null");var v,S,T,E,w,P,M,N,R,L=[];if(null!==i.escaped?L.push({type:"resolved",is:function(){return G.IsProgrammer.decode_to_json(!1)(a)},value:function(){return d(e)(t)(r)(a,i.escaped.returns,c)}}):!0===i.functional&&L.push({type:"functional",is:function(){return G.IsProgrammer.decode_functional(a)},value:function(){return y(c)}}),(i.templates.length||V.ArrayUtil.has(i.constants,function(e){return"string"===e.type}))&&Q.AtomicPredicator.template(i)){var H=q.Metadata.initialize();H.atomics.push(B.MetadataAtomic.create({type:"string",tags:[]})),L.push({type:"template literal",is:function(){return G.IsProgrammer.decode(e)(r)(a,H,c)},value:function(){return f(e)(r)(a,"string",c)}})}var _loop_1=function(t){if(!1===Q.AtomicPredicator.constant(i)(t.type))return"continue";"string"!==t.type?L.push({type:"atomic",is:function(){var n;return G.IsProgrammer.decode(e)(r)(a,((n=q.Metadata.initialize()).atomics.push(B.MetadataAtomic.create({type:t.type,tags:[]})),n),c)},value:function(){return f(e)(r)(a,t.type,c)}}):0===i.templates.length&&L.push({type:"const string",is:function(){var t;return G.IsProgrammer.decode(e)(r)(a,((t=q.Metadata.initialize()).atomics.push(B.MetadataAtomic.create({type:"string",tags:[]})),t),c)},value:function(){return s(e)(r)(a,F([],j(t.values),!1),c)}})};try{for(var z=A(i.constants),J=z.next();!J.done;J=z.next()){var W=J.value;_loop_1(W)}}catch(e){S={error:e}}finally{try{J&&!J.done&&(T=z.return)&&T.call(z)}finally{if(S)throw S.error}}var _loop_2=function(t){Q.AtomicPredicator.atomic(i)(t.type)&&L.push({type:"atomic",is:function(){var n;return G.IsProgrammer.decode(e)(r)(a,((n=q.Metadata.initialize()).atomics.push(t),n),c)},value:function(){return f(e)(r)(a,t.type,c)}})};try{for(var K=A(i.atomics),Z=K.next();!Z.done;Z=K.next()){var X=Z.value;_loop_2(X)}}catch(e){E={error:e}}finally{try{Z&&!Z.done&&(w=K.return)&&w.call(K)}finally{if(E)throw E.error}}var _loop_3=function(n){L.push({type:"tuple",is:function(){var t;return G.IsProgrammer.decode(e)(r)(a,((t=q.Metadata.initialize()).tuples.push(n),t),c)},value:function(){return u(e)(t)(r)(a,n,c)}})};try{for(var et=A(i.tuples),en=et.next();!en.done;en=et.next()){var ea=en.value;_loop_3(ea)}}catch(e){P={error:e}}finally{try{en&&!en.done&&(M=et.return)&&M.call(et)}finally{if(P)throw P.error}}if(i.arrays.length){var eo=1===i.arrays.length?function(){return o(t)(r)(a,i.arrays[0],I(I({},c),{from:"array"}))}:i.arrays.some(function(e){return e.type.value.any})?function(){return O.default.factory.createCallExpression(O.default.factory.createIdentifier("JSON.stringify"),void 0,[a])}:function(){return m(e)(t)(r)(a,i.arrays,I(I({},c),{from:"array"}))};L.push({type:"array",is:function(){return C.ExpressionFactory.isArray(a)},value:eo})}if(i.natives.length){var _loop_4=function(t){L.push({type:"object",is:function(){return(0,ee.check_native)(t)(a)},value:function(){return Q.AtomicPredicator.native(t)?f(e)(r)(a,t.toLowerCase(),c):O.default.factory.createStringLiteral("{}")}})};try{for(var ei=A(i.natives),eu=ei.next();!eu.done;eu=ei.next()){var ec=eu.value;_loop_4(ec)}}catch(e){N={error:e}}finally{try{eu&&!eu.done&&(R=ei.return)&&R.call(ei)}finally{if(N)throw N.error}}}i.sets.length&&L.push({type:"object",is:function(){return C.ExpressionFactory.isInstanceOf("Set")(a)},value:function(){return O.default.factory.createStringLiteral("{}")}}),i.maps.length&&L.push({type:"object",is:function(){return C.ExpressionFactory.isInstanceOf("Map")(a)},value:function(){return O.default.factory.createStringLiteral("{}")}}),i.objects.length&&L.push({type:"object",is:function(){return C.ExpressionFactory.isObject({checkNull:!0,checkArray:i.objects.some(function(e){return e.properties.every(function(e){return!e.key.isSoleLiteral()||!e.value.isRequired()})})})(a)},value:function(){var o,u;return!1===i.isParentResolved()&&1===i.objects.length&&i.objects[0]._Is_simple("top"===c.from?0:1)?(o=i.objects[0],u=(0,er.feature_object_entries)({decoder:function(){return n(e)(t)(r)},trace:!1,path:!1})(r)(o)(O.default.factory.createAsExpression(a,U.TypeFactory.keyword("any"))),Y.StringifyJoiner.object(r)(O.default.factory.createAsExpression(a,U.TypeFactory.keyword("any")),u)):p(t)(r)(a,i,I(I({},c),{from:"object"}))}});return 0===L.length?O.default.factory.createCallExpression(O.default.factory.createIdentifier("JSON.stringify"),void 0,[a]):(v=1===L.length?L[0].value():O.default.factory.createCallExpression(O.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,x(r,a,L,i.getName())),void 0,void 0),g(a,i,c)(_(a,i)(v)))}}}},a=function(e){return J.FeatureProgrammer.decode_object({trace:!1,path:!1,prefix:S})(e)},o=function(e){return function(t){return function(r,n,a){return n.type.recursive?O.default.factory.createCallExpression(O.default.factory.createIdentifier(t.useLocal("".concat(e.prefix,"a").concat(n.type.index))),void 0,J.FeatureProgrammer.argumentsArray(e)(I(I({},a),{source:"function",from:"array"}))(r)):i(e)(t)(r,n,a)}}},i=function(e){return function(t){return function(r,n,a){return J.FeatureProgrammer.decode_array(e)(t)(Y.StringifyJoiner.array)(r,n,a)}}},u=function(e){return function(t){return function(r){return function(n,a,o){return a.type.recursive?O.default.factory.createCallExpression(O.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,J.FeatureProgrammer.argumentsArray(t)(I(I({},o),{source:"function"}))(n)):c(e)(t)(r)(n,a.type,o)}}}},c=function(e){return function(t){return function(r){return function(a,o,i){var u=o.elements.filter(function(e){return null===e.rest}).map(function(o,u){return n(e)(t)(r)(O.default.factory.createElementAccessExpression(a,u),o,I(I({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(u,']"'):'"['.concat(u,']"')}))}),c=function(){if(0===o.elements.length||null===o.elements.at(-1).rest)return null;var u=n(e)(t)(r)(O.default.factory.createCallExpression(N.IdentifierFactory.access(a)("slice"),void 0,[C.ExpressionFactory.number(o.elements.length-1)]),(0,en.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),I(I({},i),{start:o.elements.length-1}));return O.default.factory.createCallExpression(r.use("rest"),void 0,[u])}();return Y.StringifyJoiner.tuple(u,c)}}}},f=function(e){return function(t){return function(r,n,a){return"string"===n?O.default.factory.createCallExpression(t.use("string"),void 0,[r]):("number"===n&&K.OptionPredicator.numeric(e.options)&&(r=O.default.factory.createCallExpression(t.use("number"),void 0,[r])),"top"!==a.from?r:O.default.factory.createCallExpression(N.IdentifierFactory.access(r)("toString"),void 0,void 0))}}},s=function(e){return function(t){return function(r,n,a){return n.every(function(e){return!Z.StringifyPredicator.require_escape(e)})?[O.default.factory.createStringLiteral('"'),r,O.default.factory.createStringLiteral('"')].reduce(function(e,t){return O.default.factory.createAdd(e,t)}):f(e)(t)(r,"string",a)}}},d=function(e){return function(t){return function(r){return function(a,o,i){return n(e)(t)(r)(O.default.factory.createCallExpression(N.IdentifierFactory.access(a)("toJSON"),void 0,[]),o,i)}}}},y=function(e){return"array"===e.from?O.default.factory.createStringLiteral("null"):O.default.factory.createIdentifier("undefined")},p=function(e){return function(t){return function(r,n,o){return 1===n.objects.length?a(t)(r,n.objects[0],o):O.default.factory.createCallExpression(O.default.factory.createIdentifier(t.useLocal("".concat(S,"u").concat(n.union_index))),void 0,J.FeatureProgrammer.argumentsArray(e)(o)(r))}}},m=function(e){return function(t){return function(r){return function(n,a,i){return v(t)(r)(X.UnionExplorer.array({checker:G.IsProgrammer.decode(e)(r),decoder:o(t)(r),empty:O.default.factory.createStringLiteral("[]"),success:O.default.factory.createTrue(),failure:function(e,t){return w(r)(t)(e)}}))(n,a,i)}}}},v=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&O.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=I(I({},o),{source:"function",from:"array"}),O.default.factory.createCallExpression(O.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(J.FeatureProgrammer.parameterDeclarations(e)(U.TypeFactory.keyword("any"))(O.default.factory.createIdentifier("input")))(I(I({},o),{postfix:""}))(O.default.factory.createIdentifier("input"))})),void 0,J.FeatureProgrammer.argumentsArray(e)(o)(n))}}}},g=function(e,t,r){return!0===t.isRequired()&&!1===t.any?function(e){return e}:function(t){return O.default.factory.createConditionalExpression(O.default.factory.createStrictInequality(O.default.factory.createIdentifier("undefined"),e),void 0,t,void 0,"array"===r.from?O.default.factory.createStringLiteral("null"):O.default.factory.createIdentifier("undefined"))}},_=function(e,t){return!1===t.nullable?function(e){return e}:function(t){return O.default.factory.createConditionalExpression(O.default.factory.createStrictInequality(O.default.factory.createNull(),e),void 0,t,void 0,O.default.factory.createStringLiteral("null"))}},b=function(e,t,r){return!1===t.functional?function(e){return e}:function(t){return O.default.factory.createConditionalExpression(O.default.factory.createStrictInequality(O.default.factory.createStringLiteral("function"),H.ValueFactory.TYPEOF(e)),void 0,t,void 0,y(r))}},x=function(e,t,r,n){return O.default.factory.createBlock(F(F([],j(r.map(function(e){return O.default.factory.createIfStatement(e.is(),O.default.factory.createReturnStatement(e.value()))})),!1),[w(e)(n)(t)],!1),!0)},S="$s",T=function(e){return function(t){var r={types:{input:function(t,r){return O.default.factory.createTypeReferenceNode(null!=r?r:U.TypeFactory.getFullName(e.checker)(t))},output:function(){return U.TypeFactory.keyword("string")}},prefix:S,trace:!1,path:!1,initializer:E,decoder:function(){return n(e)(r)(t)},objector:{checker:function(){return function(r,n,a){return G.IsProgrammer.decode(e)(t)(r,n,a)}},decoder:function(){return a(t)},joiner:Y.StringifyJoiner.object(t),unionizer:(0,et.decode_union_object)(G.IsProgrammer.decode_object(e)(t))(a(t))(function(e){return e})(function(e,r){return w(t)(r)(e)}),failure:function(e,r){return w(t)(r)(e)}},generator:{arrays:function(){return function(e){return e.arrays().filter(function(e){return e.recursive}).map(function(e,n){return L.StatementFactory.constant("".concat(r.prefix,"a").concat(n),O.default.factory.createArrowFunction(void 0,void 0,J.FeatureProgrammer.parameterDeclarations(r)(U.TypeFactory.keyword("any"))(O.default.factory.createIdentifier("input")),U.TypeFactory.keyword("any"),void 0,i(r)(t)(O.default.factory.createIdentifier("input"),z.MetadataArray.create({type:e,tags:[]}),{tracable:r.trace,source:"function",from:"array",postfix:""})))})}},tuples:function(){var n;return n=t,function(t){return t.tuples().filter(function(e){return e.recursive}).map(function(t,a){return L.StatementFactory.constant("".concat(r.prefix,"t").concat(a),O.default.factory.createArrowFunction(void 0,void 0,J.FeatureProgrammer.parameterDeclarations(r)(U.TypeFactory.keyword("any"))(O.default.factory.createIdentifier("input")),U.TypeFactory.keyword("any"),void 0,c(e)(r)(n)(O.default.factory.createIdentifier("input"),t,{tracable:r.trace,source:"function",from:"array",postfix:""})))})}}}};return r}},E=function(e){return function(t){return function(r){return R.JsonMetadataFactory.analyze("typia.json.".concat(t.method))(e.checker,e.context)(r)}}},w=function(e){return function(t){return function(r){return O.default.factory.createExpressionStatement(O.default.factory.createCallExpression(e.use("throws"),[],[O.default.factory.createObjectLiteralExpression([O.default.factory.createPropertyAssignment("expected",O.default.factory.createStringLiteral(t)),O.default.factory.createPropertyAssignment("value",r)],!0)]))}}}},78600:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([f.StatementFactory.constant("validate",d.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),f.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("JSON.parse"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("output")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},77284:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("stringify",d.JsonStringifyProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")]),f.TypeFactory.keyword("any"))),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("output.data"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("stringify"),void 0,[i.default.factory.createIdentifier("input")])))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},60962:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("assert",s.AssertProgrammer.write(e)(t)(!1)(r,n)),c.StatementFactory.constant("clone",d.MiscCloneProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),i.default.factory.createExpressionStatement(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("input")])),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("clone"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},98453:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},I=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},F=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MiscCloneProgrammer=void 0;var A=F(r(55423)),M=r(73906),O=r(61387),C=r(92595),N=r(43390),R=r(6152),L=r(12301),U=r(3078),H=r(23879),q=r(63664),z=r(12114),B=r(63348),V=r(1739),J=r(31959),G=r(97144),Q=r(39687),W=r(59714);(E||(t.MiscCloneProgrammer=E={})).write=function(e){return function(t){var r=new J.FunctionImporter(t.getText());return z.FeatureProgrammer.write(e)(w(w({},x(e)(r)),{addition:function(n){return I(I([],P(B.IsProgrammer.write_function_statements(e)(r)(n)),!1),P(r.declare(t)),!1)}}))(r)}},n=function(e){return function(t){return function(r){return function(n,a,o){if(a.any||a.arrays.some(function(e){return e.type.value.any})||a.tuples.some(function(e){return!!e.type.elements.length&&e.type.elements.every(function(e){return e.any})}))return A.default.factory.createCallExpression(r.use("any"),void 0,[n]);var i,c,s,d,y,_,b=[];a.functional&&b.push({type:"functional",is:function(){return A.default.factory.createStrictEquality(A.default.factory.createStringLiteral("function"),A.default.factory.createTypeOfExpression(n))},value:function(){return A.default.factory.createIdentifier("undefined")}});var _loop_1=function(a){b.push({type:"tuple",is:function(){var t;return B.IsProgrammer.decode(e)(r)(n,((t=U.Metadata.initialize()).tuples.push(a),t),o)},value:function(){return u(e)(t)(r)(n,a,o)}})};try{for(var x=j(a.tuples),S=x.next();!S.done;S=x.next()){var T=S.value;_loop_1(T)}}catch(e){i={error:e}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(i)throw i.error}}a.arrays.length&&b.push({type:"array",is:function(){return M.ExpressionFactory.isArray(n)},value:function(){return g(e)(t)(r)(n,a.arrays,w(w({},o),{from:"array"}))}}),a.sets.length&&b.push({type:"set",is:function(){return M.ExpressionFactory.isInstanceOf("Set")(n)},value:function(){return p(e)(t)(r)(n,a.sets,w(w({},o),{from:"array"}))}}),a.maps.length&&b.push({type:"map",is:function(){return M.ExpressionFactory.isInstanceOf("Map")(n)},value:function(){return m(e)(t)(r)(n,a.maps,w(w({},o),{from:"array"}))}});var _loop_2=function(e){b.push({type:"native",is:function(){return M.ExpressionFactory.isInstanceOf(e)(n)},value:function(){return"Boolean"===e||"Number"===e||"String"===e?A.default.factory.createCallExpression(O.IdentifierFactory.access(n)("valueOf"),void 0,void 0):f(e)(n)}})};try{for(var E=j(a.natives),P=E.next();!P.done;P=E.next()){var I=P.value;_loop_2(I)}}catch(e){s={error:e}}finally{try{P&&!P.done&&(d=E.return)&&d.call(E)}finally{if(s)throw s.error}}a.objects.length&&b.push({type:"object",is:function(){return M.ExpressionFactory.isObject({checkNull:!0,checkArray:!1})(n)},value:function(){return v(t)(r)(n,a,w(w({},o),{from:"object"}))}});var F=n;try{for(var C=j(b.reverse()),N=C.next();!N.done;N=C.next()){var R=N.value;F=A.default.factory.createConditionalExpression(R.is(),void 0,R.value(),void 0,F)}}catch(e){y={error:e}}finally{try{N&&!N.done&&(_=C.return)&&_.call(C)}finally{if(y)throw y.error}}return A.default.factory.createAsExpression(F,L.TypeFactory.keyword("any"))}}}},a=function(e){return z.FeatureProgrammer.decode_object({trace:!1,path:!1,prefix:b})(e)},o=function(e){return function(t){return function(r,n,a){return n.type.recursive?A.default.factory.createCallExpression(A.default.factory.createIdentifier(t.useLocal("".concat(e.prefix,"a").concat(n.type.index))),void 0,z.FeatureProgrammer.argumentsArray(e)(w(w({},a),{source:"function",from:"array"}))(r)):i(e)(t)(r,n,a)}}},i=function(e){return function(t){return function(r,n,a){return z.FeatureProgrammer.decode_array(e)(t)(V.CloneJoiner.array)(r,n,a)}}},u=function(e){return function(t){return function(r){return function(n,a,o){return a.type.recursive?A.default.factory.createCallExpression(A.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,z.FeatureProgrammer.argumentsArray(t)(w(w({},o),{source:"function"}))(n)):c(e)(t)(r)(n,a.type,o)}}}},c=function(e){return function(t){return function(r){return function(a,o,i){var u=o.elements.filter(function(e){return null===e.rest}).map(function(o,u){return n(e)(t)(r)(A.default.factory.createElementAccessExpression(a,u),o,w(w({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(u,']"'):'"['.concat(u,']"')}))}),c=0===o.elements.length||null===o.elements.at(-1).rest?null:n(e)(t)(r)(A.default.factory.createCallExpression(O.IdentifierFactory.access(a)("slice"),void 0,[M.ExpressionFactory.number(o.elements.length-1)]),(0,W.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),w(w({},i),{start:o.elements.length-1}));return V.CloneJoiner.tuple(u,c)}}}},f=function(e){return function(t){return"Date"===e||"Uint8Array"===e||"Uint8ClampedArray"===e||"Uint16Array"===e||"Uint32Array"===e||"BigUint64Array"===e||"Int8Array"===e||"Int16Array"===e||"Int32Array"===e||"BigInt64Array"===e||"Float32Array"===e||"Float64Array"===e?s(e)(t):"ArrayBuffer"===e||"SharedArrayBuffer"===e?d(e)(t):"DataView"===e?y(t):A.default.factory.createCallExpression(A.default.factory.createIdentifier(e),void 0,[])}},s=function(e){return function(t){return A.default.factory.createNewExpression(A.default.factory.createIdentifier(e),void 0,[t])}},d=function(e){return function(t){return M.ExpressionFactory.selfCall(A.default.factory.createBlock([R.StatementFactory.constant("buffer",A.default.factory.createNewExpression(A.default.factory.createIdentifier(e),void 0,[O.IdentifierFactory.access(t)("byteLength")])),A.default.factory.createExpressionStatement(A.default.factory.createCallExpression(O.IdentifierFactory.access(A.default.factory.createNewExpression(A.default.factory.createIdentifier("Uint8Array"),void 0,[A.default.factory.createIdentifier("buffer")]))("set"),void 0,[A.default.factory.createNewExpression(A.default.factory.createIdentifier("Uint8Array"),void 0,[t])])),A.default.factory.createReturnStatement(A.default.factory.createIdentifier("buffer"))],!0))}},y=function(e){return A.default.factory.createNewExpression(A.default.factory.createIdentifier("DataView"),void 0,[O.IdentifierFactory.access(e)("buffer")])},p=function(e){return function(t){return function(r){return function(n,a,i){return A.default.factory.createCallExpression(G.UnionExplorer.set({checker:B.IsProgrammer.decode(e)(r),decoder:function(e,n,a){return A.default.factory.createNewExpression(A.default.factory.createIdentifier("Set"),[L.TypeFactory.keyword("any")],[o(t)(r)(e,n,a)])},empty:A.default.factory.createNewExpression(A.default.factory.createIdentifier("Set"),[L.TypeFactory.keyword("any")],[]),success:A.default.factory.createTrue(),failure:function(e,t){return T(r)(t)(e)}})([])(n,a,i),void 0,void 0)}}}},m=function(e){return function(t){return function(r){return function(n,a,i){return A.default.factory.createCallExpression(G.UnionExplorer.map({checker:function(t,n,a){var o=B.IsProgrammer.decode(e)(r);return A.default.factory.createLogicalAnd(o(A.default.factory.createElementAccessExpression(t,0),n[0],w(w({},a),{postfix:"".concat(a.postfix,"[0]")})),o(A.default.factory.createElementAccessExpression(t,1),n[1],w(w({},a),{postfix:"".concat(a.postfix,"[1]")})))},decoder:function(e,n,a){return A.default.factory.createNewExpression(A.default.factory.createIdentifier("Map"),[L.TypeFactory.keyword("any"),L.TypeFactory.keyword("any")],[o(t)(r)(e,n,a)])},empty:A.default.factory.createNewExpression(A.default.factory.createIdentifier("Map"),[L.TypeFactory.keyword("any"),L.TypeFactory.keyword("any")],[]),success:A.default.factory.createTrue(),failure:function(e,t){return T(r)(t)(e)}})([])(n,a,i),void 0,void 0)}}}},v=function(e){return function(t){return function(r,n,o){return 1===n.objects.length?a(t)(r,n.objects[0],o):A.default.factory.createCallExpression(A.default.factory.createIdentifier(t.useLocal("".concat(b,"u").concat(n.union_index))),void 0,z.FeatureProgrammer.argumentsArray(e)(o)(r))}}},g=function(e){return function(t){return function(r){return function(n,a,i){return _(t)(r)(G.UnionExplorer.array({checker:B.IsProgrammer.decode(e)(r),decoder:o(t)(r),empty:A.default.factory.createIdentifier("[]"),success:A.default.factory.createTrue(),failure:function(e,t){return T(r)(t)(e)}}))(n,a,i)}}}},_=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&A.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=w(w({},o),{source:"function",from:"array"}),A.default.factory.createCallExpression(A.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(z.FeatureProgrammer.parameterDeclarations(e)(L.TypeFactory.keyword("any"))(A.default.factory.createIdentifier("input")))(w(w({},o),{postfix:""}))(A.default.factory.createIdentifier("input"))})),void 0,z.FeatureProgrammer.argumentsArray(e)(o)(n))}}}},b="$c",x=function(e){return function(t){var r={types:{input:function(t,r){return A.default.factory.createTypeReferenceNode(null!=r?r:L.TypeFactory.getFullName(e.checker)(t))},output:function(t,r){return A.default.factory.createTypeReferenceNode("typia.Resolved<".concat(null!=r?r:L.TypeFactory.getFullName(e.checker)(t),">"))}},prefix:b,trace:!1,path:!1,initializer:S,decoder:function(){return n(e)(r)(t)},objector:{checker:function(){return B.IsProgrammer.decode(e)(t)},decoder:function(){return a(t)},joiner:V.CloneJoiner.object,unionizer:(0,Q.decode_union_object)(B.IsProgrammer.decode_object(e)(t))(a(t))(function(e){return e})(function(e,r){return T(t)(r)(e)}),failure:function(e,r){return T(t)(r)(e)}},generator:{arrays:function(){return function(e){return e.arrays().filter(function(e){return e.recursive}).map(function(e,n){return R.StatementFactory.constant("".concat(r.prefix,"a").concat(n),A.default.factory.createArrowFunction(void 0,void 0,z.FeatureProgrammer.parameterDeclarations(r)(L.TypeFactory.keyword("any"))(A.default.factory.createIdentifier("input")),L.TypeFactory.keyword("any"),void 0,i(r)(t)(A.default.factory.createIdentifier("input"),H.MetadataArray.create({type:e,tags:[]}),{tracable:r.trace,source:"function",from:"array",postfix:""})))})}},tuples:function(){var n;return n=t,function(t){return t.tuples().filter(function(e){return e.recursive}).map(function(t,a){return R.StatementFactory.constant("".concat(r.prefix,"t").concat(a),A.default.factory.createArrowFunction(void 0,void 0,z.FeatureProgrammer.parameterDeclarations(r)(L.TypeFactory.keyword("any"))(A.default.factory.createIdentifier("input")),L.TypeFactory.keyword("any"),void 0,c(e)(r)(n)(A.default.factory.createIdentifier("input"),t,{tracable:r.trace,source:"function",from:"array",postfix:""})))})}}}};return r}},S=function(e){return function(t){return function(r){var n=new C.MetadataCollection,a=N.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0,validate:function(e){var t=[];return e.natives.some(function(e){return"WeakSet"===e})?t.push("unable to clone WeakSet"):e.natives.some(function(e){return"WeakMap"===e})&&t.push("unable to clone WeakMap"),t}})(n)(r);if(!1===a.success)throw q.TransformerError.from("typia.misc.".concat(t.method))(a.errors);return[n,a.data]}}},T=function(e){return function(t){return function(r){return A.default.factory.createExpressionStatement(A.default.factory.createCallExpression(e.use("throws"),[],[A.default.factory.createObjectLiteralExpression([A.default.factory.createPropertyAssignment("expected",A.default.factory.createStringLiteral(t)),A.default.factory.createPropertyAssignment("value",r)],!0)]))}}}},94286:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),i.default.factory.createLiteralTypeNode(i.default.factory.createNull())]),void 0,i.default.factory.createBlock([c.StatementFactory.constant("is",s.IsProgrammer.write(e)(t)(!1)(r,n)),c.StatementFactory.constant("clone",d.MiscCloneProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),i.default.factory.createIfStatement(i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.ExclamationToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createNull())),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("clone"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},12311:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},x=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},T=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MiscPruneProgrammer=void 0;var E=T(r(55423)),w=r(73906),P=r(61387),I=r(92595),j=r(43390),F=r(6152),A=r(12301),M=r(3078),O=r(23879),C=r(63664),N=r(12114),R=r(63348),L=r(31959),U=r(3065),H=r(97144),q=r(39687),z=r(59714);(g||(t.MiscPruneProgrammer=g={})).write=function(e){return function(t){var r=new L.FunctionImporter(t.getText());return N.FeatureProgrammer.write(e)(_(_({},p(e)(r)),{addition:function(n){return x(x([],b(R.IsProgrammer.write_function_statements(e)(r)(n)),!1),b(r.declare(t)),!1)}}))(r)}},n=function(e){return function(t){return function(r){return function(n,a,o){if(!1===d(a))return E.default.factory.createBlock([]);var u,s,y,p,m=[],_loop_1=function(a){m.push({type:"tuple",is:function(){var t;return R.IsProgrammer.decode(e)(r)(n,((t=M.Metadata.initialize()).tuples.push(a),t),o)},value:function(){return i(e)(t)(r)(n,a,o)}})};try{for(var v=S(a.tuples.filter(function(e){return e.type.elements.some(function(e){var t;return d(null!==(t=e.rest)&&void 0!==t?t:e)})})),g=v.next();!g.done;g=v.next()){var b=g.value;_loop_1(b)}}catch(e){u={error:e}}finally{try{g&&!g.done&&(s=v.return)&&s.call(v)}finally{if(u)throw u.error}}if(a.arrays.filter(function(e){return d(e.type.value)}).length&&m.push({type:"array",is:function(){return w.ExpressionFactory.isArray(n)},value:function(){return f(e)(t)(r)(n,a.arrays,_(_({},o),{from:"array"}))}}),a.natives.length){var _loop_2=function(e){m.push({type:"native",is:function(){return w.ExpressionFactory.isInstanceOf(e)(n)},value:function(){return E.default.factory.createReturnStatement()}})};try{for(var x=S(a.natives),T=x.next();!T.done;T=x.next()){var P=T.value;_loop_2(P)}}catch(e){y={error:e}}finally{try{T&&!T.done&&(p=x.return)&&p.call(x)}finally{if(y)throw y.error}}}a.sets.length&&m.push({type:"set",is:function(){return w.ExpressionFactory.isInstanceOf("Set")(n)},value:function(){return E.default.factory.createReturnStatement()}}),a.maps.length&&m.push({type:"map",is:function(){return w.ExpressionFactory.isInstanceOf("Map")(n)},value:function(){return E.default.factory.createReturnStatement()}}),a.objects.length&&m.push({type:"object",is:function(){return w.ExpressionFactory.isObject({checkNull:!0,checkArray:!1})(n)},value:function(){return c(t)(r)(n,a,_(_({},o),{from:"object"}))}});var I=m.map(function(e){var t;return E.default.factory.createIfStatement(e.is(),(t=e.value(),E.default.isReturnStatement(t)||E.default.isBlock(t)?t:E.default.factory.createExpressionStatement(t)))});return E.default.factory.createBlock(I,!0)}}}},a=function(e){return N.FeatureProgrammer.decode_object({trace:!1,path:!1,prefix:y})(e)},o=function(e){return function(t){return function(r,n,a){return N.FeatureProgrammer.decode_array(e)(t)(U.PruneJoiner.array)(r,n,a)}}},i=function(e){return function(t){return function(r){return function(n,a,o){return a.type.recursive?E.default.factory.createCallExpression(E.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,N.FeatureProgrammer.argumentsArray(t)(_(_({},o),{source:"function"}))(n)):u(e)(t)(r)(n,a.type,o)}}}},u=function(e){return function(t){return function(r){return function(a,o,i){var u=o.elements.map(function(e,t){return[e,t]}).filter(function(e){var t=b(e,1)[0];return d(t)&&null===t.rest}).map(function(o){var u=b(o,2),c=u[0],f=u[1];return n(e)(t)(r)(E.default.factory.createElementAccessExpression(a,f),c,_(_({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(f,']"'):'"['.concat(f,']"')}))}),c=function(){if(0===o.elements.length)return null;var u=o.elements.at(-1).rest;return null===u||!1===d(u)?null:n(e)(t)(r)(E.default.factory.createCallExpression(P.IdentifierFactory.access(a)("slice"),void 0,[w.ExpressionFactory.number(o.elements.length-1)]),(0,z.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),_(_({},i),{start:o.elements.length-1}))}();return U.PruneJoiner.tuple(u,c)}}}},c=function(e){return function(t){return function(r,n,o){return 1===n.objects.length?a(t)(r,n.objects[0],o):E.default.factory.createCallExpression(E.default.factory.createIdentifier(t.useLocal("".concat(y,"u").concat(n.union_index))),void 0,N.FeatureProgrammer.argumentsArray(e)(o)(r))}}},f=function(e){return function(t){return function(r){return function(n,a,i){return s(t)(r)(H.UnionExplorer.array({checker:R.IsProgrammer.decode(e)(r),decoder:function(e,n,a){return n.type.recursive?E.default.factory.createCallExpression(E.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"a").concat(n.type.index))),void 0,N.FeatureProgrammer.argumentsArray(t)(_(_({},a),{source:"function",from:"array"}))(e)):o(t)(r)(e,n,a)},empty:E.default.factory.createStringLiteral("[]"),success:E.default.factory.createTrue(),failure:function(e,t){return v(r)(t)(e)}}))(n,a,i)}}}},s=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&E.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=_(_({},o),{source:"function",from:"array"}),E.default.factory.createCallExpression(E.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(N.FeatureProgrammer.parameterDeclarations(e)(A.TypeFactory.keyword("any"))(E.default.factory.createIdentifier("input")))(_(_({},o),{postfix:""}))(E.default.factory.createIdentifier("input"))})),void 0,N.FeatureProgrammer.argumentsArray(e)(o)(n))}}}},d=function(e){return!1===e.any&&(0!==e.objects.length||e.tuples.some(function(e){return!!e.type.elements.length&&e.type.elements.some(function(e){var t;return d(null!==(t=e.rest)&&void 0!==t?t:e)})})||e.arrays.some(function(e){return d(e.type.value)}))},y="$p",p=function(e){return function(t){var r={types:{input:function(t,r){return E.default.factory.createTypeReferenceNode(null!=r?r:A.TypeFactory.getFullName(e.checker)(t))},output:function(){return A.TypeFactory.keyword("void")}},prefix:y,trace:!1,path:!1,initializer:m,decoder:function(){return n(e)(r)(t)},objector:{checker:function(){return R.IsProgrammer.decode(e)(t)},decoder:function(){return a(t)},joiner:U.PruneJoiner.object,unionizer:(0,q.decode_union_object)(R.IsProgrammer.decode_object(e)(t))(a(t))(function(e){return e})(function(e,r){return v(t)(r)(e)}),failure:function(e,r){return v(t)(r)(e)}},generator:{arrays:function(){return function(e){return e.arrays().filter(function(e){return e.recursive}).map(function(e,n){return F.StatementFactory.constant("".concat(r.prefix,"a").concat(n),E.default.factory.createArrowFunction(void 0,void 0,N.FeatureProgrammer.parameterDeclarations(r)(A.TypeFactory.keyword("any"))(E.default.factory.createIdentifier("input")),A.TypeFactory.keyword("any"),void 0,o(r)(t)(E.default.factory.createIdentifier("input"),O.MetadataArray.create({type:e,tags:[]}),{tracable:r.trace,source:"function",from:"array",postfix:""})))})}},tuples:function(){var n;return n=t,function(t){return t.tuples().filter(function(e){return e.recursive}).map(function(t,a){return F.StatementFactory.constant("".concat(r.prefix,"t").concat(a),E.default.factory.createArrowFunction(void 0,void 0,N.FeatureProgrammer.parameterDeclarations(r)(A.TypeFactory.keyword("any"))(E.default.factory.createIdentifier("input")),A.TypeFactory.keyword("any"),void 0,u(e)(r)(n)(E.default.factory.createIdentifier("input"),t,{tracable:r.trace,source:"function",from:"array",postfix:""})))})}}}};return r}},m=function(e){return function(t){return function(r){var n=new I.MetadataCollection,a=j.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0})(n)(r);if(!1===a.success)throw C.TransformerError.from("typia.misc.".concat(t.method))(a.errors);return[n,a.data]}}},v=function(e){return function(t){return function(r){return E.default.factory.createExpressionStatement(E.default.factory.createCallExpression(e.use("throws"),[],[E.default.factory.createObjectLiteralExpression([E.default.factory.createPropertyAssignment("expected",E.default.factory.createStringLiteral(t)),E.default.factory.createPropertyAssignment("value",r)],!0)]))}}}},66129:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("clone",d.MiscCloneProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")]),f.TypeFactory.keyword("any"))),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("output.data"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("clone"),void 0,[i.default.factory.createIdentifier("input")])))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},90705:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("prune",d.MiscPruneProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createCallExpression(i.default.factory.createIdentifier("prune"),void 0,[i.default.factory.createIdentifier("input")]))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},60454:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},w=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},I=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotationGeneralProgrammer=void 0;var j=I(r(55423)),F=r(73906),A=r(61387),M=r(92595),O=r(43390),C=r(6152),N=r(12301),R=r(3078),L=r(23879),U=r(63664),H=r(85422),q=r(12114),z=r(63348),B=r(31959),V=r(94492),J=r(97144),G=r(39687),Q=r(59714);(n=S||(t.NotationGeneralProgrammer=S={})).returnType=function(e){return function(t){return"typia.".concat(H.StringUtil.capitalize(e.name),"Case<").concat(t,">")}},n.write=function(e){return function(t){return function(r){var n=new B.FunctionImporter(r.getText());return q.FeatureProgrammer.write(t)(T(T({},_(e)(t)(n)),{addition:function(e){return w(w([],E(z.IsProgrammer.write_function_statements(t)(n)(e)),!1),E(n.declare(r)),!1)}}))(n)}}},a=function(e){return function(t){return function(r){return function(n,a,o){if(a.any||a.arrays.some(function(e){return e.type.value.any})||a.tuples.some(function(e){return!!e.type.elements.length&&e.type.elements.every(function(e){return e.any})}))return j.default.factory.createCallExpression(r.use("any"),void 0,[n]);var i,u,f,v,g,_,b=[];a.functional&&b.push({type:"functional",is:function(){return j.default.factory.createStrictEquality(j.default.factory.createStringLiteral("function"),j.default.factory.createTypeOfExpression(n))},value:function(){return j.default.factory.createIdentifier("undefined")}});var _loop_1=function(a){b.push({type:"tuple",is:function(){var t;return z.IsProgrammer.decode(e)(r)(n,((t=R.Metadata.initialize()).tuples.push(a),t),o)},value:function(){return c(e)(t)(r)(n,a,o)}})};try{for(var x=P(a.tuples),S=x.next();!S.done;S=x.next()){var E=S.value;_loop_1(E)}}catch(e){i={error:e}}finally{try{S&&!S.done&&(u=x.return)&&u.call(x)}finally{if(i)throw i.error}}a.arrays.length&&b.push({type:"array",is:function(){return F.ExpressionFactory.isArray(n)},value:function(){return m(e)(t)(r)(n,a.arrays,T(T({},o),{from:"array"}))}}),a.sets.length&&b.push({type:"set",is:function(){return F.ExpressionFactory.isInstanceOf("Set")(n)},value:function(){return d(e)(t)(r)(n,a.sets,T(T({},o),{from:"array"}))}}),a.maps.length&&b.push({type:"map",is:function(){return F.ExpressionFactory.isInstanceOf("Map")(n)},value:function(){return y(e)(t)(r)(n,a.maps,T(T({},o),{from:"array"}))}});var _loop_2=function(e){if("WeakSet"===e||"WeakMap"===e)return"continue";b.push({type:"native",is:function(){return F.ExpressionFactory.isInstanceOf(e)(n)},value:function(){return"Boolean"===e||"Number"===e||"String"===e?j.default.factory.createCallExpression(A.IdentifierFactory.access(n)("valueOf"),void 0,void 0):s(e)(n)}})};try{for(var w=P(a.natives),I=w.next();!I.done;I=w.next()){var M=I.value;_loop_2(M)}}catch(e){f={error:e}}finally{try{I&&!I.done&&(v=w.return)&&v.call(w)}finally{if(f)throw f.error}}a.objects.length&&b.push({type:"object",is:function(){return F.ExpressionFactory.isObject({checkNull:!0,checkArray:!1})(n)},value:function(){return p(t)(r)(n,a,T(T({},o),{from:"object"}))}});var O=n;try{for(var C=P(b.reverse()),L=C.next();!L.done;L=C.next()){var U=L.value;O=j.default.factory.createConditionalExpression(U.is(),void 0,U.value(),void 0,O)}}catch(e){g={error:e}}finally{try{L&&!L.done&&(_=C.return)&&_.call(C)}finally{if(g)throw g.error}}return j.default.factory.createAsExpression(O,N.TypeFactory.keyword("any"))}}}},o=function(e){return q.FeatureProgrammer.decode_object({trace:!1,path:!1,prefix:g})(e)},i=function(e){return function(t){return function(r,n,a){return n.type.recursive?j.default.factory.createCallExpression(j.default.factory.createIdentifier(t.useLocal("".concat(e.prefix,"a").concat(n.type.index))),void 0,q.FeatureProgrammer.argumentsArray(e)(T(T({},a),{source:"function",from:"array"}))(r)):u(e)(t)(r,n,a)}}},u=function(e){return function(t){return function(r,n,a){return q.FeatureProgrammer.decode_array(e)(t)(V.NotationJoiner.array)(r,n,a)}}},c=function(e){return function(t){return function(r){return function(n,a,o){return a.type.recursive?j.default.factory.createCallExpression(j.default.factory.createIdentifier(r.useLocal("".concat(t.prefix,"t").concat(a.type.index))),void 0,q.FeatureProgrammer.argumentsArray(t)(T(T({},o),{source:"function"}))(n)):f(e)(t)(r)(n,a.type,o)}}}},f=function(e){return function(t){return function(r){return function(n,o,i){var u=o.elements.filter(function(e){return null===e.rest}).map(function(o,u){return a(e)(t)(r)(j.default.factory.createElementAccessExpression(n,u),o,T(T({},i),{from:"array",postfix:i.postfix.length?"".concat(i.postfix.slice(0,-1),"[").concat(u,']"'):'"['.concat(u,']"')}))}),c=0===o.elements.length||null===o.elements.at(-1).rest?null:a(e)(t)(r)(j.default.factory.createCallExpression(A.IdentifierFactory.access(n)("slice"),void 0,[F.ExpressionFactory.number(o.elements.length-1)]),(0,Q.wrap_metadata_rest_tuple)(o.elements.at(-1).rest),T(T({},i),{start:o.elements.length-1}));return V.NotationJoiner.tuple(u,c)}}}},s=function(e){return function(t){return"Date"===e?j.default.factory.createNewExpression(j.default.factory.createIdentifier(e),void 0,[t]):t}},d=function(e){return function(t){return function(r){return function(n,a,o){return j.default.factory.createCallExpression(J.UnionExplorer.set({checker:z.IsProgrammer.decode(e)(r),decoder:function(e,n,a){return j.default.factory.createNewExpression(j.default.factory.createIdentifier("Set"),[N.TypeFactory.keyword("any")],[i(t)(r)(e,n,a)])},empty:j.default.factory.createNewExpression(j.default.factory.createIdentifier("Set"),[N.TypeFactory.keyword("any")],[]),success:j.default.factory.createTrue(),failure:function(e,t){return x(r)(t)(e)}})([])(n,a,o),void 0,void 0)}}}},y=function(e){return function(t){return function(r){return function(n,a,o){return j.default.factory.createCallExpression(J.UnionExplorer.map({checker:function(t,n,a){var o=z.IsProgrammer.decode(e)(r);return j.default.factory.createLogicalAnd(o(j.default.factory.createElementAccessExpression(t,0),n[0],T(T({},a),{postfix:"".concat(a.postfix,"[0]")})),o(j.default.factory.createElementAccessExpression(t,1),n[1],T(T({},a),{postfix:"".concat(a.postfix,"[1]")})))},decoder:function(e,n,a){return j.default.factory.createNewExpression(j.default.factory.createIdentifier("Map"),[N.TypeFactory.keyword("any"),N.TypeFactory.keyword("any")],[i(t)(r)(e,n,a)])},empty:j.default.factory.createNewExpression(j.default.factory.createIdentifier("Map"),[N.TypeFactory.keyword("any"),N.TypeFactory.keyword("any")],[]),success:j.default.factory.createTrue(),failure:function(e,t){return x(r)(t)(e)}})([])(n,a,o),void 0,void 0)}}}},p=function(e){return function(t){return function(r,n,a){return 1===n.objects.length?o(t)(r,n.objects[0],a):j.default.factory.createCallExpression(j.default.factory.createIdentifier(t.useLocal("".concat(g,"u").concat(n.union_index))),void 0,q.FeatureProgrammer.argumentsArray(e)(a)(r))}}},m=function(e){return function(t){return function(r){return function(n,a,o){return v(t)(r)(J.UnionExplorer.array({checker:z.IsProgrammer.decode(e)(r),decoder:i(t)(r),empty:j.default.factory.createIdentifier("[]"),success:j.default.factory.createTrue(),failure:function(e,t){return x(r)(t)(e)}}))(n,a,o)}}}},v=function(e){return function(t){return function(r){return function(n,a,o){var arrow=function(e){return function(t){return function(n){return r(e)(n,a,t)}}};return a.every(function(e){return!1===e.type.recursive})&&j.default.factory.createCallExpression(arrow([])(o)(n),void 0,[]),o=T(T({},o),{source:"function",from:"array"}),j.default.factory.createCallExpression(j.default.factory.createIdentifier(t.emplaceUnion(e.prefix,a.map(function(e){return e.type.name}).join(" | "),function(){return arrow(q.FeatureProgrammer.parameterDeclarations(e)(N.TypeFactory.keyword("any"))(j.default.factory.createIdentifier("input")))(T(T({},o),{postfix:""}))(j.default.factory.createIdentifier("input"))})),void 0,q.FeatureProgrammer.argumentsArray(e)(o)(n))}}}},g="$c",_=function(e){return function(t){return function(r){var i={types:{input:function(e,r){return j.default.factory.createTypeReferenceNode(null!=r?r:N.TypeFactory.getFullName(t.checker)(e))},output:function(r,a){return j.default.factory.createTypeReferenceNode(n.returnType(e)(null!=a?a:N.TypeFactory.getFullName(t.checker)(r)))}},prefix:g,trace:!1,path:!1,initializer:b,decoder:function(){return a(t)(i)(r)},objector:{checker:function(){return z.IsProgrammer.decode(t)(r)},decoder:function(){return o(r)},joiner:V.NotationJoiner.object(e),unionizer:(0,G.decode_union_object)(z.IsProgrammer.decode_object(t)(r))(o(r))(function(e){return e})(function(e,t){return x(r)(t)(e)}),failure:function(e,t){return x(r)(t)(e)}},generator:{arrays:function(){return function(e){return e.arrays().filter(function(e){return e.recursive}).map(function(e,t){return C.StatementFactory.constant("".concat(i.prefix,"a").concat(t),j.default.factory.createArrowFunction(void 0,void 0,q.FeatureProgrammer.parameterDeclarations(i)(N.TypeFactory.keyword("any"))(j.default.factory.createIdentifier("input")),N.TypeFactory.keyword("any"),void 0,u(i)(r)(j.default.factory.createIdentifier("input"),L.MetadataArray.create({type:e,tags:[]}),{tracable:i.trace,source:"function",from:"array",postfix:""})))})}},tuples:function(){var e;return e=r,function(r){return r.tuples().filter(function(e){return e.recursive}).map(function(r,n){return C.StatementFactory.constant("".concat(i.prefix,"t").concat(n),j.default.factory.createArrowFunction(void 0,void 0,q.FeatureProgrammer.parameterDeclarations(i)(N.TypeFactory.keyword("any"))(j.default.factory.createIdentifier("input")),N.TypeFactory.keyword("any"),void 0,f(t)(i)(e)(j.default.factory.createIdentifier("input"),r,{tracable:i.trace,source:"function",from:"array",postfix:""})))})}}}};return i}}},b=function(e){return function(t){return function(r){var n=new M.MetadataCollection,a=O.MetadataFactory.analyze(e.checker,e.context)({escape:!1,constant:!0,absorb:!0})(n)(r);if(!1===a.success)throw U.TransformerError.from("typia.misc.".concat(t.method))(a.errors);return[n,a.data]}}},x=function(e){return function(t){return function(r){return j.default.factory.createExpressionStatement(j.default.factory.createCallExpression(e.use("throws"),[],[j.default.factory.createObjectLiteralExpression([j.default.factory.createPropertyAssignment("expected",j.default.factory.createStringLiteral(t)),j.default.factory.createPropertyAssignment("value",r)],!0)]))}}}},97172:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},t),{options:a(a({},t.options),{functional:!1,numeric:!0})}))(r)(!1)(n,o)),c.StatementFactory.constant("general",d.NotationGeneralProgrammer.write(e)(a(a({},t),{options:a(a({},t.options),{functional:!1,numeric:!1})}))(r)(n,o)),c.StatementFactory.constant("output",i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")]),f.TypeFactory.keyword("any"))),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("output.data"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("general"),void 0,[i.default.factory.createIdentifier("input")])))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}}},38162:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("decode",d.ProtobufDecodeProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("assert",s.AssertProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("assert"),void 0,[i.default.factory.createIdentifier("output")]),f.TypeFactory.keyword("any")))]))}}}},77717:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},_=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProtobufDecodeProgrammer=void 0;var S=x(r(55423)),T=r(73906),E=r(61387),w=r(92595),P=r(43390),I=r(74123),j=r(6152),F=r(12301),A=r(3078),M=r(45041),O=r(56724),C=r(31959),N=r(96188);(m||(t.ProtobufDecodeProgrammer=m={})).write=function(e){return function(t){return function(r,a){var o=new C.FunctionImporter(t.getText()),i=new w.MetadataCollection,u=I.ProtobufFactory.metadata(t.getText())(e.checker,e.context)(i)(r),c=i.objects().filter(function(e){return N.ProtobufUtil.isStaticObject(e)}).map(function(t){return j.StatementFactory.constant("".concat(R,"o").concat(t.index),n(e)(o)(t))}),f=j.StatementFactory.constant("reader",S.default.factory.createNewExpression(o.use("Reader"),void 0,[S.default.factory.createIdentifier("input")]));return S.default.factory.createArrowFunction(void 0,void 0,[E.IdentifierFactory.parameter("input",S.default.factory.createTypeReferenceNode("Uint8Array"))],S.default.factory.createTypeReferenceNode("typia.Resolved<".concat(null!=a?a:F.TypeFactory.getFullName(e.checker)(r),">")),void 0,S.default.factory.createBlock(_(_(_([],g(o.declare(t)),!1),g(c),!1),[f,S.default.factory.createReturnStatement(s(!0)(u.objects[0]))],!1),!0))}}},n=function(e){return function(t){return function(r){return S.default.factory.createArrowFunction(void 0,void 0,[E.IdentifierFactory.parameter("reader"),E.IdentifierFactory.parameter("length",F.TypeFactory.keyword("number"),T.ExpressionFactory.number(-1))],F.TypeFactory.keyword("any"),void 0,S.default.factory.createBlock(_(_([S.default.factory.createExpressionStatement(S.default.factory.createBinaryExpression(S.default.factory.createIdentifier("length"),S.default.factory.createToken(S.default.SyntaxKind.EqualsToken),S.default.factory.createConditionalExpression(S.default.factory.createLessThan(S.default.factory.createIdentifier("length"),T.ExpressionFactory.number(0)),void 0,S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("size"),void 0,void 0),void 0,S.default.factory.createAdd(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0),S.default.factory.createIdentifier("length")))))],g(a(e)(t)({condition:S.default.factory.createLessThan(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0),S.default.factory.createIdentifier("length")),tag:"tag",output:"output"})(r.properties)),!1),[S.default.factory.createReturnStatement(S.default.factory.createIdentifier("output"))],!1),!0))}}},a=function(e){return function(t){return function(r){return function(n){var a=1,u=n.map(function(n){var o=i(e)(t)(a)(E.IdentifierFactory.access(S.default.factory.createIdentifier(r.output))(n.key.getSoleLiteral()),n.value);return a+=N.ProtobufUtil.size(n.value),o}).flat();return[j.StatementFactory.constant(r.output,S.default.factory.createAsExpression(S.default.factory.createObjectLiteralExpression(n.filter(function(t){return!(!0===e.compilerOptions.exactOptionalPropertyTypes&&!0===t.value.optional)}).map(function(e){return S.default.factory.createPropertyAssignment(E.IdentifierFactory.identifier(e.key.getSoleLiteral()),o(e.value))}),!0),F.TypeFactory.keyword("any"))),S.default.factory.createWhileStatement(r.condition,S.default.factory.createBlock([j.StatementFactory.constant(r.tag,S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("uint32"),void 0,void 0)),S.default.factory.createSwitchStatement(S.default.factory.createUnsignedRightShift(S.default.factory.createIdentifier(r.tag),T.ExpressionFactory.number(3)),S.default.factory.createCaseBlock(_(_([],g(u),!1),[S.default.factory.createDefaultClause([S.default.factory.createExpressionStatement(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("skipType"),void 0,[S.default.factory.createBitwiseAnd(S.default.factory.createIdentifier(r.tag),T.ExpressionFactory.number(7))])),S.default.factory.createBreakStatement()])],!1)))]))]}}}},o=function(e){return S.default.factory.createAsExpression(e.nullable?S.default.factory.createNull():!1===e.isRequired()?S.default.factory.createIdentifier("undefined"):e.arrays.length?S.default.factory.createArrayLiteralExpression():e.maps.length?S.default.factory.createNewExpression(S.default.factory.createIdentifier("Map"),void 0,[]):e.natives.length?S.default.factory.createNewExpression(S.default.factory.createIdentifier("Uint8Array"),void 0,[]):e.atomics.some(function(e){return"string"===e.type})||e.constants.some(function(e){return"string"===e.type&&e.values.some(function(e){return""===e})})||e.templates.some(function(e){return 1===e.length&&"string"===e[0].getName()})?S.default.factory.createStringLiteral(""):e.objects.length&&e.objects.some(function(e){return!N.ProtobufUtil.isStaticObject(e)})?S.default.factory.createObjectLiteralExpression():S.default.factory.createIdentifier("undefined"),F.TypeFactory.keyword("any"))},i=function(e){return function(t){return function(r){return function(n,a){var o,i,p,m,v,x,E,w,P=[],emplace=function(e){return function(t){return P.push(S.default.factory.createCaseClause(T.ExpressionFactory.number(r++),Array.isArray(t)?_(_([S.default.factory.createExpressionStatement(S.default.factory.createIdentifier("// type: ".concat(e)))],g(t),!1),[S.default.factory.createBreakStatement()],!1):[S.default.factory.createExpressionStatement(S.default.factory.createIdentifier("// ".concat(e))),S.default.factory.createExpressionStatement(S.default.factory.createBinaryExpression(n,S.default.factory.createToken(S.default.SyntaxKind.EqualsToken),t)),S.default.factory.createBreakStatement()]))}},I=a.isRequired()&&!a.nullable;try{for(var j=b(N.ProtobufUtil.getAtomics(a)),F=j.next();!F.done;F=j.next()){var A=F.value;emplace(A)(u(a)(A))}}catch(e){o={error:e}}finally{try{F&&!F.done&&(i=j.return)&&i.call(j)}finally{if(o)throw o.error}}a.natives.length&&emplace("bytes")(c("bytes"));try{for(var M=b(a.arrays),O=M.next();!O.done;O=M.next()){var C=O.value;emplace("Array<".concat(C.type.value.getName(),">"))(f(n,C,I))}}catch(e){p={error:e}}finally{try{O&&!O.done&&(m=M.return)&&m.call(M)}finally{if(p)throw p.error}}try{for(var R=b(a.maps),L=R.next();!L.done;L=R.next()){var U=L.value;emplace("Map"))(y(e)(t)(n,U,I))}}catch(e){v={error:e}}finally{try{L&&!L.done&&(x=R.return)&&x.call(R)}finally{if(v)throw v.error}}try{for(var H=b(a.objects),q=H.next();!q.done;q=H.next()){var z=q.value;emplace(z.name)(N.ProtobufUtil.isStaticObject(z)?s(!1)(z):d(e)(t)(n,z,I))}}catch(e){E={error:e}}finally{try{q&&!q.done&&(w=H.return)&&w.call(H)}finally{if(E)throw E.error}}return P}}}},u=function(e){return function(t){if("string"===t)return c("string");var r=S.default.factory.createCallExpression(E.IdentifierFactory.access(S.default.factory.createIdentifier("reader"))(t),void 0,void 0);return"int64"!==t&&"uint64"!==t?r:N.ProtobufUtil.getNumbers(e).some(function(e){return e===t})?S.default.factory.createCallExpression(S.default.factory.createIdentifier("Number"),void 0,[r]):r}},c=function(e){return S.default.factory.createCallExpression(E.IdentifierFactory.access(S.default.factory.createIdentifier("reader"))(e),void 0,void 0)},f=function(e,t,r){var n=[];!1===r&&n.push(S.default.factory.createBinaryExpression(e,S.default.factory.createToken(S.default.SyntaxKind.QuestionQuestionEqualsToken),S.default.factory.createAsExpression(S.default.factory.createArrayLiteralExpression(),S.default.factory.createTypeReferenceNode("any[]"))));var a=N.ProtobufUtil.getAtomics(t.type.value),o=a.length?function(){return u(t.type.value)(a[0])}:t.type.value.natives.length?function(){return c("bytes")}:t.type.value.objects.length?function(){return s(!1)(t.type.value.objects[0])}:null;if(null===o)throw Error("Never reach here.");return a.length&&"string"!==a[0]?n.push(S.default.factory.createIfStatement(S.default.factory.createStrictEquality(T.ExpressionFactory.number(2),S.default.factory.createBitwiseAnd(S.default.factory.createIdentifier("tag"),T.ExpressionFactory.number(7))),S.default.factory.createBlock([j.StatementFactory.constant("piece",S.default.factory.createAdd(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("uint32"),void 0,void 0),S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0))),S.default.factory.createWhileStatement(S.default.factory.createLessThan(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0),S.default.factory.createIdentifier("piece")),S.default.factory.createExpressionStatement(S.default.factory.createCallExpression(E.IdentifierFactory.access(e)("push"),void 0,[o()])))],!0),S.default.factory.createExpressionStatement(S.default.factory.createCallExpression(E.IdentifierFactory.access(e)("push"),void 0,[o()])))):n.push(S.default.factory.createCallExpression(E.IdentifierFactory.access(e)("push"),void 0,[o()])),n.map(function(e){return S.default.isExpression(e)?S.default.factory.createExpressionStatement(e):e})},s=function(e){return function(t){return S.default.factory.createCallExpression(S.default.factory.createIdentifier("".concat(R,"o").concat(t.index)),void 0,_([S.default.factory.createIdentifier("reader")],g(e?[]:[S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("uint32"),void 0,void 0)]),!1))}},d=function(e){return function(t){return function(r,n,a){var o,i=n.properties[0];return p(e)(t)({initializer:function(){return S.default.factory.createBinaryExpression(r,S.default.factory.createToken(S.default.SyntaxKind.QuestionQuestionEqualsToken),S.default.factory.createObjectLiteralExpression())},setter:function(){return S.default.factory.createBinaryExpression(S.default.factory.createElementAccessExpression(r,S.default.factory.createIdentifier("entry.key")),S.default.factory.createToken(S.default.SyntaxKind.EqualsToken),S.default.factory.createIdentifier("entry.value"))}})(O.MetadataProperty.create(v(v({},i),{key:((o=A.Metadata.initialize()).atomics.push(M.MetadataAtomic.create({type:"string",tags:[]})),o)})),a)}}},y=function(e){return function(t){return function(r,n,a){return p(e)(t)({initializer:function(){return S.default.factory.createBinaryExpression(r,S.default.factory.createToken(S.default.SyntaxKind.QuestionQuestionEqualsToken),S.default.factory.createNewExpression(S.default.factory.createIdentifier("Map"),[F.TypeFactory.keyword("any"),F.TypeFactory.keyword("any")],[]))},setter:function(){return S.default.factory.createCallExpression(E.IdentifierFactory.access(r)("set"),void 0,[S.default.factory.createIdentifier("entry.key"),S.default.factory.createIdentifier("entry.value")])}})(n,a)}}},p=function(e){return function(t){return function(r){return function(n,o){var i=_(_(_(_([],g(o?[]:[S.default.factory.createExpressionStatement(r.initializer())]),!1),[j.StatementFactory.constant("piece",S.default.factory.createAdd(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("uint32"),void 0,void 0),S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0)))],!1),g(a(e)(t)({condition:S.default.factory.createLessThan(S.default.factory.createCallExpression(E.IdentifierFactory.access(READER())("index"),void 0,void 0),S.default.factory.createIdentifier("piece")),tag:"kind",output:"entry"})([O.MetadataProperty.create({key:P.MetadataFactory.soleLiteral("key"),value:n.key,description:null,jsDocTags:[]}),O.MetadataProperty.create({key:P.MetadataFactory.soleLiteral("value"),value:n.value,description:null,jsDocTags:[]})])),!1),[S.default.factory.createExpressionStatement(r.setter())],!1);return[S.default.factory.createExpressionStatement(T.ExpressionFactory.selfCall(S.default.factory.createBlock(i,!0)))]}}}};var R="$pd",READER=function(){return S.default.factory.createIdentifier("reader")}},84282:function(e,t,r){"use strict";var n,a,o,i,u,c,f,s,d,y,p,m,v,g,_,b,x,S,T=this&&this.__assign||function(){return(T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},w=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},I=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProtobufEncodeProgrammer=void 0;var j=I(r(55423)),F=r(73906),A=r(61387),M=r(92595),O=r(84981),C=r(74123),N=r(6152),R=r(12301),L=r(3078),U=r(45041),H=r(56724),q=r(63348),z=r(31959),B=r(96188),V=r(99560),J=r(39687);(S||(t.ProtobufEncodeProgrammer=S={})).write=function(e){return function(t){return function(r,a){var o=new z.FunctionImporter(t.getText()),i=new M.MetadataCollection,u=C.ProtobufFactory.metadata(t.getText())(e.checker,e.context)(i)(r),callEncoder=function(e){return function(t){return N.StatementFactory.constant(e,j.default.factory.createCallExpression(j.default.factory.createIdentifier("encoder"),void 0,[t]))}},c=[N.StatementFactory.constant("encoder",n(e)(o)(i)(u)),callEncoder("sizer")(j.default.factory.createNewExpression(o.use("Sizer"),void 0,[])),callEncoder("writer")(j.default.factory.createNewExpression(o.use("Writer"),void 0,[j.default.factory.createIdentifier("sizer")])),j.default.factory.createReturnStatement(j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())("buffer"),void 0,void 0))];return j.default.factory.createArrowFunction(void 0,void 0,[A.IdentifierFactory.parameter("input",j.default.factory.createTypeReferenceNode(null!=a?a:R.TypeFactory.getFullName(e.checker)(r)))],j.default.factory.createTypeReferenceNode("Uint8Array"),void 0,j.default.factory.createBlock(w(w([],E(o.declare(t,!1)),!1),E(c),!1),!0))}}},n=function(e){return function(t){return function(r){return function(n){var i=r.objects().filter(function(e){return B.ProtobufUtil.isStaticObject(e)}).map(function(r){return N.StatementFactory.constant("".concat(b,"o").concat(r.index),a(e)(t)(j.default.factory.createIdentifier("input"),r,{source:"function",from:"object",tracable:!1,postfix:""}))}),u=o(e)(t)(null)(j.default.factory.createIdentifier("input"),n,{source:"top",from:"top",tracable:!1,postfix:""});return j.default.factory.createArrowFunction(void 0,void 0,[A.IdentifierFactory.parameter("writer")],R.TypeFactory.keyword("any"),void 0,j.default.factory.createBlock(w(w(w(w(w([],E(t.declareUnions()),!1),E(i),!1),E(q.IsProgrammer.write_function_statements(e)(t)(r)),!1),E(u.statements),!1),[j.default.factory.createReturnStatement(j.default.factory.createIdentifier("writer"))],!1),!0))}}}},a=function(e){return function(t){return function(r,n,a){var i=1,u=n.properties.map(function(n){var u=o(e)(t)(i)(A.IdentifierFactory.access(r)(n.key.getSoleLiteral()),n.value,a);return i+=B.ProtobufUtil.size(n.value),w([j.default.factory.createExpressionStatement(j.default.factory.createIdentifier('// property "'.concat(n.key.getSoleLiteral(),'"')))],E(u.statements),!1)}).flat();return j.default.factory.createArrowFunction(void 0,void 0,[A.IdentifierFactory.parameter("input")],R.TypeFactory.keyword("any"),void 0,j.default.factory.createBlock(u,!0))}}},o=function(e){return function(t){return function(r){return function(n,a,o){var c,m,v=a.isRequired()&&!1===a.nullable?function(e){return e}:!1===a.isRequired()&&!0===a.nullable?function(e){return j.default.factory.createBlock([j.default.factory.createIfStatement(j.default.factory.createLogicalAnd(j.default.factory.createStrictInequality(j.default.factory.createIdentifier("undefined"),n),j.default.factory.createStrictInequality(j.default.factory.createNull(),n)),e)],!0)}:!1===a.isRequired()?function(e){return j.default.factory.createBlock([j.default.factory.createIfStatement(j.default.factory.createStrictInequality(j.default.factory.createIdentifier("undefined"),n),e)],!0)}:function(e){return j.default.factory.createBlock([j.default.factory.createIfStatement(j.default.factory.createStrictInequality(j.default.factory.createNull(),n),e)],!0)},g=[],b=B.ProtobufUtil.getNumbers(a),x=B.ProtobufUtil.getBigints(a),_loop_1=function(e){"bool"===e?g.push({type:"bool",is:function(){return j.default.factory.createStrictEquality(j.default.factory.createStringLiteral("boolean"),j.default.factory.createTypeOfExpression(n))},value:function(e){return s(e)(n)}}):"int32"===e||"uint32"===e||"float"===e||"double"===e?g.push(d(b)(e)(n)):"int64"===e||"uint64"===e?b.some(function(t){return t===e})?g.push(d(b)(e)(n)):g.push(y(x)(e)(n)):"string"===e&&g.push({type:"string",is:function(){return j.default.factory.createStrictEquality(j.default.factory.createStringLiteral("string"),j.default.factory.createTypeOfExpression(n))},value:function(e){return p("string")(e)(n)}})};try{for(var S=P(B.ProtobufUtil.getAtomics(a)),E=S.next();!E.done;E=S.next()){var w=E.value;_loop_1(w)}}catch(e){c={error:e}}finally{try{E&&!E.done&&(m=S.return)&&m.call(S)}finally{if(c)throw c.error}}return v((a.natives.length&&g.push({type:"bytes",is:function(){return F.ExpressionFactory.isInstanceOf("Uint8Array")(n)},value:function(e){return p("bytes")(e)(n)}}),a.arrays.length&&g.push({type:"array",is:function(){return F.ExpressionFactory.isArray(n)},value:function(r){return f(e)(t)(r)(n,a.arrays[0],T(T({},o),{from:"array"}))}}),a.maps.length&&g.push({type:"map",is:function(){return F.ExpressionFactory.isInstanceOf("Map")(n)},value:function(r){return u(e)(t)(r)(n,a.maps[0],T(T({},o),{from:"array"}))}}),a.objects.length&&g.push({type:"object",is:function(){return F.ExpressionFactory.isObject({checkNull:!0,checkArray:!1})(n)},value:function(r){return _(e)(t)(0)(r)(n,a.objects,T(T({},o),{from:"object"}))}}),1===g.length)?g[0].value(r):i(t)(r)(g)(a.getName())(n))}}}},i=function(e){return function(t){return function(r){return function(n){return function(a){return j.default.factory.createBlock([r.map(function(o,i){return j.default.factory.createIfStatement(o.is(),o.value(t?t+i:null),i===r.length-1?x(e)(n)(a):void 0)}).reverse().reduce(function(e,t){return j.default.factory.createIfStatement(t.expression,t.thenStatement,e)})],!0)}}}}},u=function(e){return function(t){return function(r){return function(n,a,i){var u=w(w(w([j.default.factory.createExpressionStatement(m(2)(r)),j.default.factory.createExpressionStatement(j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())("fork"),void 0,void 0))],E(o(e)(t)(1)(j.default.factory.createIdentifier("key"),a.key,i).statements),!1),E(o(e)(t)(2)(j.default.factory.createIdentifier("value"),a.value,i).statements),!1),[j.default.factory.createExpressionStatement(j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())("ldelim"),void 0,void 0))],!1);return j.default.factory.createBlock([j.default.factory.createForOfStatement(void 0,N.StatementFactory.entry("key")("value"),n,j.default.factory.createBlock(u))],!0)}}}},c=function(e){return function(t){return function(r){return function(n,a,o){var i,c=a.properties[0];return!1===c.key.isSoleLiteral()?u(e)(t)(r)(j.default.factory.createCallExpression(j.default.factory.createIdentifier("Object.entries"),[],[n]),H.MetadataProperty.create(T(T({},c),{key:((i=L.Metadata.initialize()).atomics.push(U.MetadataAtomic.create({type:"string",tags:[]})),i)})),o):j.default.factory.createBlock(w(w(w([j.default.factory.createIdentifier("//".concat(null!==r?" ".concat(r," -> "):"").concat(a.name))],E(null!==r?[m(2)(r),j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())("fork"),void 0,void 0)]:[]),!1),[j.default.factory.createCallExpression(j.default.factory.createIdentifier(t.useLocal("".concat(b,"o").concat(a.index))),[],[n])],!1),E(null!==r?[j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())("ldelim"),void 0,void 0)]:[]),!1).map(function(e){return j.default.factory.createExpressionStatement(e)}),!0)}}}},f=function(e){return function(t){return function(r){return function(n,a,i){var u,c=v(a.type.value),forLoop=function(r){return j.default.factory.createForOfStatement(void 0,j.default.factory.createVariableDeclarationList([j.default.factory.createVariableDeclaration("elem")],j.default.NodeFlags.Const),n,o(e)(t)(r)(j.default.factory.createIdentifier("elem"),a.type.value,i))};return u=2===c?j.default.factory.createBlock([forLoop(r)],!0):j.default.factory.createBlock([j.default.factory.createExpressionStatement(m(2)(r)),j.default.factory.createExpressionStatement(j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())("fork"),void 0,void 0)),forLoop(null),j.default.factory.createExpressionStatement(j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())("ldelim"),void 0,void 0))],!0),j.default.factory.createBlock([j.default.factory.createIfStatement(j.default.factory.createStrictInequality(F.ExpressionFactory.number(0),A.IdentifierFactory.access(n)("length")),u)],!0)}}}},s=function(e){return function(t){return j.default.factory.createBlock(w(w([],E(null!==e?[m(0)(e)]:[]),!1),[j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())("bool"),void 0,[t])],!1).map(function(e){return j.default.factory.createExpressionStatement(e)}),!0)}},d=function(e){return function(t){return function(r){return{type:t,is:function(){return 1===e.length?j.default.factory.createStrictEquality(j.default.factory.createStringLiteral("number"),j.default.factory.createTypeOfExpression(r)):j.default.factory.createLogicalAnd(j.default.factory.createStrictEquality(j.default.factory.createStringLiteral("number"),j.default.factory.createTypeOfExpression(r)),O.NumericRangeFactory.number(t)(r))},value:function(e){return j.default.factory.createBlock(w(w([],E(null!==e?[m(g(t))(e)]:[]),!1),[j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())(t),void 0,[r])],!1).map(function(e){return j.default.factory.createExpressionStatement(e)}),!0)}}}}},y=function(e){return function(t){return function(r){return{type:t,is:function(){return 1===e.length?j.default.factory.createStrictEquality(j.default.factory.createStringLiteral("bigint"),j.default.factory.createTypeOfExpression(r)):j.default.factory.createLogicalAnd(j.default.factory.createStrictEquality(j.default.factory.createStringLiteral("bigint"),j.default.factory.createTypeOfExpression(r)),O.NumericRangeFactory.bigint(t)(r))},value:function(e){return j.default.factory.createBlock(w(w([],E(null!==e?[m(0)(e)]:[]),!1),[j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())(t),void 0,[r])],!1).map(function(e){return j.default.factory.createExpressionStatement(e)}),!0)}}}}},p=function(e){return function(t){return function(r){return j.default.factory.createBlock([m(2)(t),j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())(e),void 0,[r])].map(function(e){return j.default.factory.createExpressionStatement(e)}),!0)}}},m=function(e){return function(t){return j.default.factory.createCallExpression(A.IdentifierFactory.access(WRITER())("uint32"),void 0,[F.ExpressionFactory.number(t<<3|e)])}},v=function(e){if(e.arrays.length||e.objects.length||e.maps.length||e.natives.length)return 2;var t=B.ProtobufUtil.getAtomics(e)[0];return"string"===t?2:"bool"===t||"int32"===t||"uint32"===t||"int64"===t||"uint64"===t?0:"float"===t?5:1},g=function(e){return"double"===e?1:"float"===e?5:0},_=function(e){return function(t){return function(r){return function(n){return function(a,o,i,u){if(1===o.length)return c(e)(t)(u?u.get(o[0]):n)(a,o[0],i);var f="(".concat(o.map(function(e){return e.name}).join(" | "),")"),s=V.UnionPredicator.object(o);if(null!=u||(u=new Map(o.map(function(e,t){return[e,n+t]}))),0===s.length){var d=(0,J.decode_union_object)(q.IsProgrammer.decode_object(e)(t))(function(r,n,a){return F.ExpressionFactory.selfCall(c(e)(t)(u.get(n))(r,n,a))})(function(e){return e})(function(e,r){return x(t)(r)(e)})(a,o,i);return N.StatementFactory.block(d)}var y=o.filter(function(e){return void 0===s.find(function(t){return t.object===e})}),p=s.filter(function(e){return null!==e.property.key.getSoleLiteral()}).map(function(o,s,d){var p=o.property.key.getSoleLiteral(),m=A.IdentifierFactory.access(a)(p),v=o.neighbour?q.IsProgrammer.decode(e)(t)(m,o.property.value,T(T({},i),{tracable:!1,postfix:A.IdentifierFactory.postfix(p)})):F.ExpressionFactory.isRequired(m);return j.default.factory.createIfStatement(v,j.default.factory.createExpressionStatement(F.ExpressionFactory.selfCall(c(e)(t)(u.get(o.object))(a,o.object,i))),s===d.length-1?y.length?j.default.factory.createExpressionStatement(F.ExpressionFactory.selfCall(_(e)(t)(r+1)(n)(a,y,i,u))):x(t)(f)(a):void 0)}).reverse().reduce(function(e,t){return j.default.factory.createIfStatement(t.expression,t.thenStatement,e)});return j.default.factory.createBlock([p],!0)}}}}},b="$pe",x=function(e){return function(t){return function(r){return j.default.factory.createExpressionStatement(j.default.factory.createCallExpression(e.use("throws"),[],[j.default.factory.createObjectLiteralExpression([j.default.factory.createPropertyAssignment("expected",j.default.factory.createStringLiteral(t)),j.default.factory.createPropertyAssignment("value",r)],!0)]))}}};var WRITER=function(){return j.default.factory.createIdentifier("writer")}},49466:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r")),i.default.factory.createLiteralTypeNode(i.default.factory.createNull())]),void 0,i.default.factory.createBlock([c.StatementFactory.constant("is",s.IsProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.ProtobufDecodeProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createIfStatement(i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.ExclamationToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("is"),void 0,[i.default.factory.createIdentifier("output")])),i.default.factory.createReturnStatement(i.default.factory.createNull())),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},8266:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},y=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},p=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a")}};var P=" ".repeat(4)},87500:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r>")),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("decode",d.ProtobufDecodeProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createCallExpression(i.default.factory.createIdentifier("decode"),void 0,[i.default.factory.createIdentifier("input")])),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("output")]),i.default.factory.createTypeReferenceNode("any")))]))}}}},87229:function(e,t,r){"use strict";var n,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"),void 0,i.default.factory.createBlock([c.StatementFactory.constant("validate",s.ValidateProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!0})}))(t)(!1)(r,n)),c.StatementFactory.constant("encode",d.ProtobufEncodeProgrammer.write(a(a({},e),{options:a(a({},e.options),{functional:!1,numeric:!1})}))(t)(r,n)),c.StatementFactory.constant("output",i.default.factory.createAsExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("validate"),void 0,[i.default.factory.createIdentifier("input")]),f.TypeFactory.keyword("any"))),i.default.factory.createIfStatement(i.default.factory.createIdentifier("output.success"),i.default.factory.createExpressionStatement(i.default.factory.createBinaryExpression(i.default.factory.createIdentifier("output.data"),i.default.SyntaxKind.EqualsToken,i.default.factory.createCallExpression(i.default.factory.createIdentifier("encode"),void 0,[i.default.factory.createIdentifier("input")])))),i.default.factory.createReturnStatement(i.default.factory.createIdentifier("output"))]))}}}},3078:function(e,t,r){"use strict";var n,a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a1},Metadata.prototype.getSoleLiteral=function(){return 1===this.size()&&1===this.constants.length&&"string"===this.constants[0].type&&1===this.constants[0].values.length?this.constants[0].values[0]:null},Metadata.prototype.isSoleLiteral=function(){return null!==this.getSoleLiteral()},Metadata.prototype.isParentResolved=function(){return this.parent_resolved_},Metadata}();t.Metadata=m,(n=m||(t.Metadata=m={})).intersects=function(e,t){if(e.any||t.any||!1===e.isRequired()&&!1===t.isRequired()||!0===e.nullable&&!0===t.nullable||!0===e.functional&&!0===t.functional||e.arrays.length&&t.arrays.length||e.tuples.length&&t.tuples.length||e.objects.length&&t.objects.length||e.aliases.length&&t.aliases.length||e.natives.length&&t.natives.length&&e.natives.some(function(e){return t.natives.some(function(t){return e===t})}))return!0;var r,n,u,c,_loop_1=function(e){if(t.atomics.some(function(t){return e.type===t.type})||t.constants.some(function(t){return e.type===t.type}))return{value:!0}};try{for(var f=a(e.atomics),s=f.next();!s.done;s=f.next()){var d=s.value,y=_loop_1(d);if("object"==typeof y)return y.value}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}var _loop_2=function(e){if(void 0!==t.atomics.find(function(t){return t.type===e.type}))return{value:!0};var r=t.constants.find(function(t){return t.type===e.type});return void 0===r?"continue":new Set(i(i([],o(e.values),!1),o(r.values),!1)).size!==e.values.length+r.values.length?{value:!0}:void 0};try{for(var p=a(e.constants),m=p.next();!m.done;m=p.next()){var v=m.value,g=_loop_2(v);if("object"==typeof g)return g.value}}catch(e){u={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}return!!(e.templates.length&&t.atomics.some(function(e){return"string"===e.type}))||!!(t.templates.length&&e.atomics.some(function(e){return"string"===e.type}))},n.covers=function(e,t,r){if(void 0===r&&(r=0),e===t)return!1;if(e.any)return!0;if(t.any)return!1;if(0===r){var o,i,u,c,f,s,d,p,m,v,g,_,b,x,_loop_3=function(t){if(!e.arrays.some(function(e){return n.covers(e.type.value,t.type.value,r+1)}))return{value:!1}};try{for(var S=a(t.arrays),T=S.next();!T.done;T=S.next()){var E=T.value,w=_loop_3(E);if("object"==typeof w)return w.value}}catch(e){o={error:e}}finally{try{T&&!T.done&&(i=S.return)&&i.call(S)}finally{if(o)throw o.error}}var _loop_4=function(t){if(0!==t.type.elements.length&&!1===e.tuples.some(function(e){return e.type.elements.length>=t.type.elements.length&&e.type.elements.slice(t.type.elements.length).every(function(e,a){return n.covers(e,t.type.elements[a],r+1)})}))return{value:!1}};try{for(var P=a(t.tuples),I=P.next();!I.done;I=P.next()){var j=I.value,F=_loop_4(j);if("object"==typeof F)return F.value}}catch(e){u={error:e}}finally{try{I&&!I.done&&(c=P.return)&&c.call(P)}finally{if(u)throw u.error}}}var _loop_5=function(t){if(!1===e.objects.some(function(e){return y.MetadataObject.covers(e,t)}))return{value:!1}};try{for(var A=a(t.objects),M=A.next();!M.done;M=A.next()){var O=M.value,C=_loop_5(O);if("object"==typeof C)return C.value}}catch(e){f={error:e}}finally{try{M&&!M.done&&(s=A.return)&&s.call(A)}finally{if(f)throw f.error}}var _loop_6=function(t){if(!1===e.aliases.some(function(e){return e.name===t.name}))return{value:!1}};try{for(var N=a(t.aliases),R=N.next();!R.done;R=N.next()){var L=R.value,U=_loop_6(L);if("object"==typeof U)return U.value}}catch(e){d={error:e}}finally{try{R&&!R.done&&(p=N.return)&&p.call(N)}finally{if(d)throw d.error}}var _loop_7=function(t){if(!1===e.natives.some(function(e){return e===t}))return{value:!1}};try{for(var H=a(t.natives),q=H.next();!q.done;q=H.next()){var z=q.value,B=_loop_7(z);if("object"==typeof B)return B.value}}catch(e){m={error:e}}finally{try{q&&!q.done&&(v=H.return)&&v.call(H)}finally{if(m)throw m.error}}var _loop_8=function(t){if(!1===e.sets.some(function(e){return n.covers(e,t)}))return{value:!1}};try{for(var V=a(t.sets),J=V.next();!J.done;J=V.next()){var G=J.value,Q=_loop_8(G);if("object"==typeof Q)return Q.value}}catch(e){g={error:e}}finally{try{J&&!J.done&&(_=V.return)&&_.call(V)}finally{if(g)throw g.error}}if(t.atomics.some(function(t){return!1===e.atomics.some(function(e){return e.type===t.type})}))return!1;var _loop_9=function(t){if(e.atomics.some(function(e){return t.type===e.type}))return"continue";var r=e.constants.find(function(e){return e.type===t.type});return void 0===r?{value:!1}:t.values.some(function(e){return!1===r.values.includes(e)})?{value:!1}:void 0};try{for(var W=a(t.constants),K=W.next();!K.done;K=W.next()){var Y=K.value,Z=_loop_9(Y);if("object"==typeof Z)return Z.value}}catch(e){b={error:e}}finally{try{K&&!K.done&&(x=W.return)&&x.call(W)}finally{if(b)throw b.error}}return!1!==e.functional||!t.functional},n.merge=function(e,t){var r,c,f,y,p,m,v,g,_=n.create({any:e.any||t.any,nullable:e.nullable||t.nullable,required:e.required&&t.required,optional:e.optional||t.optional,functional:e.functional||t.functional,escaped:null!==e.escaped&&null!==t.escaped?d.MetadataEscaped.create({original:n.merge(e.escaped.original,t.escaped.original),returns:n.merge(e.escaped.returns,t.escaped.returns)}):null!==(v=e.escaped)&&void 0!==v?v:t.escaped,atomics:mergeTaggedTypes({container:e.atomics,equals:function(e,t){return e.type===t.type},getter:function(e){return e.tags}})(t.atomics),constants:i([],o(e.constants),!1),templates:e.templates.slice(),rest:null!==e.rest&&null!==t.rest?n.merge(e.rest,t.rest):null!==(g=e.rest)&&void 0!==g?g:t.rest,arrays:mergeTaggedTypes({container:e.arrays,equals:function(e,t){return e.type.name===t.type.name},getter:function(e){return e.tags}})(t.arrays),tuples:mergeTaggedTypes({container:e.tuples,equals:function(e,t){return e.type.name===t.type.name},getter:function(e){return e.tags}})(t.tuples),objects:e.objects.slice(),aliases:e.aliases.slice(),natives:i([],o(new Set(i(i([],o(e.natives),!1),o(t.natives),!1))),!1),sets:e.sets.slice(),maps:e.maps.slice()}),_loop_10=function(e){var t,r,n=u.ArrayUtil.take(_.constants,function(t){return t.type===e.type},function(){return s.MetadataConstant.create({type:e.type,values:[]})});try{for(var o=(t=void 0,a(e.values)),i=o.next();!i.done;i=o.next()){var c=i.value;u.ArrayUtil.add(n.values,c)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}};try{for(var b=a(t.constants),x=b.next();!x.done;x=b.next()){var S=x.value;_loop_10(S)}}catch(e){r={error:e}}finally{try{x&&!x.done&&(c=b.return)&&c.call(b)}finally{if(r)throw r.error}}try{for(var T=a(t.objects),E=T.next();!E.done;E=T.next()){var w=E.value;u.ArrayUtil.set(_.objects,w,function(e){return e.name})}}catch(e){f={error:e}}finally{try{E&&!E.done&&(y=T.return)&&y.call(T)}finally{if(f)throw f.error}}try{for(var P=a(t.aliases),I=P.next();!I.done;I=P.next()){var j=I.value;u.ArrayUtil.set(_.aliases,j,function(e){return e.name})}}catch(e){p={error:e}}finally{try{I&&!I.done&&(m=P.return)&&m.call(P)}finally{if(p)throw p.error}}return _};var getName=function(e){if(!0===e.any)return"any";var t,r,n,o,i,u,c,f,s,d,y,p,m,v,g,_,b,x,S,T,E,w,P=[];!0===e.nullable&&P.push("null"),!1===e.isRequired()&&P.push("undefined");try{for(var I=a(e.atomics),j=I.next();!j.done;j=I.next()){var F=j.value;P.push(F.getName())}}catch(e){t={error:e}}finally{try{j&&!j.done&&(r=I.return)&&r.call(I)}finally{if(t)throw t.error}}try{for(var A=a(e.constants),M=A.next();!M.done;M=A.next()){var O=M.value;try{for(var C=(i=void 0,a(O.values)),N=C.next();!N.done;N=C.next()){var R=N.value;P.push("string"===O.type?JSON.stringify(R):R.toString())}}catch(e){i={error:e}}finally{try{N&&!N.done&&(u=C.return)&&u.call(C)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{M&&!M.done&&(o=A.return)&&o.call(A)}finally{if(n)throw n.error}}try{for(var L=a(e.templates),U=L.next();!U.done;U=L.next()){var H=U.value;P.push("`"+H.map(function(e){return e.isConstant()&&1===e.size()?e.constants[0].values[0]:"${".concat(e.getName(),"}")}).join("").split("`").join("\\`")+"`")}}catch(e){c={error:e}}finally{try{U&&!U.done&&(f=L.return)&&f.call(L)}finally{if(c)throw c.error}}try{for(var q=a(e.natives),z=q.next();!z.done;z=q.next()){var B=z.value;P.push(B)}}catch(e){s={error:e}}finally{try{z&&!z.done&&(d=q.return)&&d.call(q)}finally{if(s)throw s.error}}try{for(var V=a(e.sets),J=V.next();!J.done;J=V.next()){var G=J.value;P.push("Set<".concat(G.getName(),">"))}}catch(e){y={error:e}}finally{try{J&&!J.done&&(p=V.return)&&p.call(V)}finally{if(y)throw y.error}}try{for(var Q=a(e.maps),W=Q.next();!W.done;W=Q.next()){var K=W.value;P.push("Map<".concat(K.key.getName(),", ").concat(K.value.getName(),">"))}}catch(e){m={error:e}}finally{try{W&&!W.done&&(v=Q.return)&&v.call(Q)}finally{if(m)throw m.error}}null!==e.rest&&P.push("...".concat(e.rest.getName()));try{for(var Y=a(e.tuples),Z=Y.next();!Z.done;Z=Y.next()){var X=Z.value;P.push(X.type.name)}}catch(e){g={error:e}}finally{try{Z&&!Z.done&&(_=Y.return)&&_.call(Y)}finally{if(g)throw g.error}}try{for(var ee=a(e.arrays),et=ee.next();!et.done;et=ee.next()){var er=et.value;P.push(er.getName())}}catch(e){b={error:e}}finally{try{et&&!et.done&&(x=ee.return)&&x.call(ee)}finally{if(b)throw b.error}}try{for(var en=a(e.objects),ea=en.next();!ea.done;ea=en.next()){var eo=ea.value;P.push(eo.name)}}catch(e){S={error:e}}finally{try{ea&&!ea.done&&(T=en.return)&&T.call(en)}finally{if(S)throw S.error}}try{for(var ei=a(e.aliases),eu=ei.next();!eu.done;eu=ei.next()){var ec=eu.value;P.push(ec.name)}}catch(e){E={error:e}}finally{try{eu&&!eu.done&&(w=ei.return)&&w.call(ei)}finally{if(E)throw E.error}}return(null!==e.escaped&&P.push(e.escaped.getName()),0===P.length)?"unknown":1===P.length?P[0]:(P.sort(),"(".concat(P.join(" | "),")"))},mergeTaggedTypes=function(e){return function(t){var r,n,u=i([],o(e.container),!1),_loop_11=function(t){var r,n,o=e.container.find(function(r){return e.equals(r,t)});if(void 0===o)return u.push(t),"continue";var i=e.getter(o).map(function(e){return e.map(function(e){return e.name})}).sort();try{for(var c=(r=void 0,a(e.getter(t))),f=c.next();!f.done;f=c.next()){var s=f.value;!function(t){var r=t.map(function(e){return e.name}).sort();!i.some(function(e){return e.length===r.length&&e.every(function(e,t){return e===r[t]})})&&e.getter(o).push(t)}(s)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}};try{for(var c=a(t),f=c.next();!f.done;f=c.next()){var s=f.value;_loop_11(s)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return u}}},49596:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataAlias=void 0;var r=function(){function MetadataAlias(e){this.name=e.name,this.value=e.value,this.description=e.description,this.jsDocTags=e.jsDocTags,this.recursive=e.recursive,this.nullables=e.nullables}return MetadataAlias.create=function(e){return new MetadataAlias(e)},MetadataAlias._From_without_value=function(e){return MetadataAlias.create({name:e.name,value:null,description:e.description,recursive:e.recursive,jsDocTags:e.jsDocTags.slice(),nullables:e.nullables.slice()})},MetadataAlias.prototype.toJSON=function(){return{name:this.name,value:this.value.toJSON(),description:this.description,recursive:this.recursive,jsDocTags:this.jsDocTags.slice(),nullables:this.nullables.slice()}},MetadataAlias}();t.MetadataAlias=r},23879:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=1&&this.properties.every(function(e){return e.key.isSoleLiteral()})},MetadataObject.prototype._Is_simple=function(e){return void 0===e&&(e=0),!1===this.recursive&&this.properties.length<10&&this.properties.every(function(t){return t.key.isSoleLiteral()&&1===t.value.size()&&!0===t.value.isRequired()&&!1===t.value.nullable&&(1===t.value.atomics.length||e<1&&1===t.value.objects.length&&t.value.objects[0]._Is_simple(e+1))})},MetadataObject.prototype._Is_literal=function(){var e,t=this;return null!==(e=this.literal_)&&void 0!==e?e:this.literal_=function(){if(!0===t.recursive)return!1;if("__type"===t.name)return!0;if(!1===t.name.startsWith("__type.o"))return!1;var e=Number(t.name.substr(8));return!1===isNaN(e)&&Number.isInteger(e)}()},MetadataObject.prototype.toJSON=function(){return{name:this.name,properties:this.properties.map(function(e){return e.toJSON()}),description:this.description,jsDocTags:this.jsDocTags,index:this.index,recursive:this.recursive,nullables:this.nullables.slice()}},MetadataObject}();t.MetadataObject=n,(r=n||(t.MetadataObject=n={})).intersects=function(e,t){return e.properties.some(function(e){return void 0!==t.properties.find(function(t){return e.key.getName()===t.key.getName()})})},r.covers=function(e,t){return e.properties.length>=t.properties.length&&e.properties.every(function(e){return void 0!==t.properties.find(function(t){return e.key.getName()===t.key.getName()})})}},56724:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataProperty=void 0;var n=r(3078),a=function(){function MetadataProperty(e){this.key=e.key,this.value=e.value,this.description=e.description,this.jsDocTags=e.jsDocTags}return MetadataProperty.create=function(e){return new MetadataProperty(e)},MetadataProperty.from=function(e,t){return MetadataProperty.create({key:n.Metadata.from(e.key,t),value:n.Metadata.from(e.value,t),description:e.description,jsDocTags:e.jsDocTags.slice()})},MetadataProperty.prototype.toJSON=function(){return{key:this.key.toJSON(),value:this.value.toJSON(),description:this.description,jsDocTags:this.jsDocTags}},MetadataProperty}();t.MetadataProperty=a},35191:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataTuple=void 0;var r=function(){function MetadataTuple(e){this.type=e.type,this.tags=e.tags}return MetadataTuple.create=function(e){return new MetadataTuple(e)},MetadataTuple.prototype.toJSON=function(){return{type:this.type.toJSON(),tags:this.tags.map(function(e){return e.slice()})}},MetadataTuple}();t.MetadataTuple=r},84530:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataTupleType=void 0;var r=function(){function MetadataTupleType(e){this.name=e.name,this.elements=e.elements,this.index=e.index,this.recursive=e.recursive,this.nullables=e.nullables}return MetadataTupleType._From_without_elements=function(e){return MetadataTupleType.create({name:e.name,index:e.index,elements:null,recursive:e.recursive,nullables:e.nullables.slice()})},MetadataTupleType.create=function(e){return new MetadataTupleType(e)},MetadataTupleType.prototype.isRest=function(){return this.elements.length>0&&null!==this.elements[this.elements.length-1].rest},MetadataTupleType.prototype.toJSON=function(){return{name:this.name,index:this.index,elements:this.elements.map(function(e){return e.toJSON()}),recursive:this.recursive,nullables:this.nullables.slice()}},MetadataTupleType}();t.MetadataTupleType=r},97420:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatCheatSheet=void 0;var RegexCall=function(e){return"".concat(e,".test($input)")};t.FormatCheatSheet={byte:RegexCall("/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm"),password:"true",regex:"(() => { try { new RegExp($input); return true; } catch { return false; } })()",uuid:RegexCall("/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i"),email:RegexCall("/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i"),hostname:RegexCall("/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i"),"idn-email":RegexCall('/^(([^<>()[\\]\\.,;:\\s@\\"]+(\\.[^<>()[\\]\\.,;:\\s@\\"]+)*)|(\\".+\\"))@(([^<>()[\\]\\.,;:\\s@\\"]+\\.)+[^<>()[\\]\\.,;:\\s@\\"]{2,})$/i'),"idn-hostname":RegexCall("/^([a-z0-9\\u00a1-\\uffff0-9]+(-[a-z0-9\\u00a1-\\uffff0-9]+)*\\.)+[a-z\\u00a1-\\uffff]{2,}$/i"),iri:RegexCall('/^[A-Za-z][\\d+-.A-Za-z]*:[^\\u0000-\\u0020"<>\\\\^`{|}]*$/u'),"iri-reference":RegexCall('/^[A-Za-z][\\d+-.A-Za-z]*:[^\\u0000-\\u0020"<>\\\\^`{|}]*$/u'),ipv4:RegexCall("/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/"),ipv6:RegexCall("/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))$/i"),uri:"".concat(RegexCall("/\\/|:/")," && ").concat(RegexCall("/^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i")),"uri-reference":RegexCall("/^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'\"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i"),"uri-template":RegexCall("/^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i"),url:RegexCall("/^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu"),"date-time":"!isNaN(new Date($input).getTime())",date:RegexCall("/^(\\d{4})-(\\d{2})-(\\d{2})$/"),time:RegexCall("/^(\\d\\d):(\\d\\d):(\\d\\d(?:\\.\\d+)?)(z|([+-])(\\d\\d)(?::?(\\d\\d))?)?$/i"),duration:RegexCall("/^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/"),"json-pointer":RegexCall("/^(?:\\/(?:[^~/]|~0|~1)*)*$/"),"relative-json-pointer":RegexCall("/^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/")}},88781:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transform=void 0;var a=n(r(55423)),o=r(58451);t.transform=function(e,t,r){var n=e.getCompilerOptions();return!1==(void 0!==n.strictNullChecks?!!n.strictNullChecks:!!n.strict)&&r.addDiagnostic({category:a.default.DiagnosticCategory.Error,code:"(typia)",file:void 0,start:void 0,length:void 0,messageText:"strict mode is required."}),o.FileTransformer.transform({program:e,compilerOptions:n,checker:e.getTypeChecker(),printer:a.default.createPrinter(),options:null!=t?t:{},extras:r})},t.default=t.transform},72546:function(e,t,r){"use strict";var n,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionTransformer=void 0;var i=o(r(1864)),u=r(58741),c=r(57589),f=r(38545),s=r(45791),d=r(78970),y=r(69473),p=r(28499),m=r(56246),v=r(81393),g=r(12232),_=r(5385),b=r(46502),x=r(51160),S=r(21230),T=r(69314),E=r(70501),w=r(81238),P=r(42025),I=r(69858),j=r(44953),F=r(59706),A=r(81550),M=r(77464),O=r(88556),C=r(20122),N=r(99103),R=r(7072),L=r(91092),U=r(92438),H=r(62037),q=r(31173),z=r(46323),B=r(8200),V=r(20097),J=r(61237),G=r(91654),Q=r(69539),W=r(37273),K=r(30951),Y=r(29763),Z=r(30098),X=r(62521),ee=r(28059),et=r(13184),er=r(82245),en=r(79645),ea=r(79790),eo=r(50561),ei=r(97199),eu=r(73624),ec=r(86864),el=r(51027),ef=r(50692),es=r(54021),ed=r(81739),ey=r(31897),ep=r(5071),em=r(30533),ev=r(93105),eh=r(34514),eg=r(91319),e_=r(22894),eb=r(14315),ex=r(8996),eS=r(84724),eT=r(53555),eE=r(90114),ew=r(91108),eP=r(72233),eI=r(31549),ej=r(9018),eF=r(31783),eA=r(33851),eM=r(50083),eO=r(52474),ek=r(71233),eC=r(60125),eN=r(96903),eR=r(46436),eL=r(68649),eD=r(63295),eU=r(23312),eH=r(81131),eq=r(38027),ez=r(20743),eB=r(29968),eV=r(98525),eJ=r(64270),eG=r(14948),e$=r(45753),eQ=r(20505),eW=r(23196),eK=r(6479);(a||(t.CallExpressionTransformer=a={})).transform=function(e){return function(t){var r,a,o=null===(r=e.checker.getResolvedSignature(t))||void 0===r?void 0:r.declaration;if(!o)return t;var u=i.default.resolve(o.getSourceFile().fileName);if(!1===n(u))return t;var c=u.split(i.default.sep).at(-1).split(".")[0],f=e.checker.getTypeAtLocation(o).symbol.name,s=null===(a=eY[c])||void 0===a?void 0:a[f];if(void 0===s)return t;var d=s()(e)(t.expression)(t);return null!=d?d:t}},n=function(e){return Object.keys(eY).some(function(t){return e.includes(i.default.join("node_modules","typia","lib","".concat(t,".d.ts")))})};var eY={module:{assert:function(){return c.AssertTransformer.transform({equals:!1,guard:!1})},assertGuard:function(){return c.AssertTransformer.transform({equals:!1,guard:!0})},assertType:function(){return c.AssertTransformer.transform({equals:!1,guard:!1})},is:function(){return p.IsTransformer.transform(!1)},validate:function(){return v.ValidateTransformer.transform(!1)},assertEquals:function(){return c.AssertTransformer.transform({equals:!0,guard:!1})},assertGuardEquals:function(){return c.AssertTransformer.transform({equals:!0,guard:!0})},equals:function(){return p.IsTransformer.transform(!0)},validateEquals:function(){return v.ValidateTransformer.transform(!0)},random:function(){return m.RandomTransformer.transform},metadata:function(){return ez.ReflectMetadataTransformer.transform},createAssert:function(){return f.CreateAssertTransformer.transform({equals:!1,guard:!1})},createAssertGuard:function(){return f.CreateAssertTransformer.transform({equals:!1,guard:!0})},createAssertType:function(){return f.CreateAssertTransformer.transform({equals:!1,guard:!1})},createIs:function(){return s.CreateIsTransformer.transform(!1)},createValidate:function(){return y.CreateValidateTransformer.transform(!1)},createAssertEquals:function(){return f.CreateAssertTransformer.transform({equals:!0,guard:!1})},createAssertGuardEquals:function(){return f.CreateAssertTransformer.transform({equals:!0,guard:!0})},createEquals:function(){return s.CreateIsTransformer.transform(!0)},createValidateEquals:function(){return y.CreateValidateTransformer.transform(!0)},createRandom:function(){return d.CreateRandomTransformer.transform}},http:{formData:function(){return eV.HttpFormDataTransformer.transform},isFormData:function(){return eJ.HttpIsFormDataTransformer.transform},assertFormData:function(){return eB.HttpAssertFormDataTransformer.transform},validateFormData:function(){return eG.HttpValidateFormDataTransformer.transform},headers:function(){return F.HttpHeadersTransformer.transform},isHeaders:function(){return A.HttpIsHeadersTransformer.transform},assertHeaders:function(){return I.HttpAssertHeadersTransformer.transform},validateHeaders:function(){return N.HttpValidateHeadersTransformer.transform},parameter:function(){return O.HttpParameterTransformer.transform},query:function(){return C.HttpQueryTransformer.transform},isQuery:function(){return M.HttpIsQueryTransformer.transform},assertQuery:function(){return j.HttpAssertQueryTransformer.transform},validateQuery:function(){return R.HttpValidateQueryTransformer.transform},createFormData:function(){return eQ.CreateHttpFormDataTransformer.transform},createIsFormData:function(){return eW.CreateHttpIsFormDataTransformer.transform},createAssertFormData:function(){return e$.CreateHttpAssertFormDataTransformer.transform},createValidateFormData:function(){return eK.CreateHttpValidateFormDataTransformer.transform},createHeaders:function(){return b.CreateHttpHeadersTransformer.transform},createIsHeaders:function(){return x.CreateHttpIsHeadersTransformer.transform},createAssertHeaders:function(){return g.CreateHttpAssertHeadersTransformer.transform},createValidateHeaders:function(){return w.CreateHttpValidateHeadersTransformer.transform},createParameter:function(){return T.CreateHttpParameterTransformer.transform},createQuery:function(){return E.CreateHttpQueryTransformer.transform},createIsQuery:function(){return S.CreateHttpIsQueryTransformer.transform},createAssertQuery:function(){return _.CreateHttpAssertQueryTransformer.transform},createValidateQuery:function(){return P.CreateHttpValidateQueryTransformer.transform}},json:{application:function(){return function(e){return function(){return L.JsonApplicationTransformer.transform(e)}}},isParse:function(){return W.JsonIsParseTransformer.transform},assertParse:function(){return U.JsonAssertParseTransformer.transform},validateParse:function(){return Z.JsonValidateParseTransformer.transform},stringify:function(){return Y.JsonStringifyTransformer.transform},assertStringify:function(){return H.JsonAssertStringifyTransformer.transform},isStringify:function(){return K.JsonIsStringifyTransformer.transform},validateStringify:function(){return X.JsonValidateStringifyTransformer.transform},createIsParse:function(){return B.JsonCreateIsParseTransformer.transform},createAssertParse:function(){return q.JsonCreateAssertParseTransformer.transform},createValidateParse:function(){return G.JsonCreateValidateParseTransformer.transform},createStringify:function(){return J.JsonCreateStringifyTransformer.transform},createAssertStringify:function(){return z.JsonCreateAssertStringifyTransformer.transform},createIsStringify:function(){return V.JsonCreateIsStringifyTransformer.transform},createValidateStringify:function(){return Q.JsonCreateValidateStringifyTransformer.transform}},protobuf:{message:function(){return eU.ProtobufMessageTransformer.transform},encode:function(){return eR.ProtobufEncodeTransformer.transform},assertEncode:function(){return eP.ProtobufAssertEncodeTransformer.transform},isEncode:function(){return eD.ProtobufIsEncodeTransformer.transform},validateEncode:function(){return eq.ProtobufValidateEncodeTransformer.transform},decode:function(){return eN.ProtobufDecodeTransformer.transform},assertDecode:function(){return ew.ProtobufAssertDecodeTransformer.transform},isDecode:function(){return eL.ProtobufIsDecodeTransformer.transform},validateDecode:function(){return eH.ProtobufValidateDecodeTransformer.transform},createEncode:function(){return eA.ProtobufCreateEncodeTransformer.transform},createAssertEncode:function(){return ej.ProtobufCreateAssertEncodeTransformer.transform},createIsEncode:function(){return eO.ProtobufCreateIsEncodeTransformer.transform},createValidateEncode:function(){return eC.ProtobufCreateValidateEncodeTransformer.transform},createDecode:function(){return eF.ProtobufCreateDecodeTransformer.transform},createAssertDecode:function(){return eI.ProtobufCreateAssertDecodeTransformer.transform},createIsDecode:function(){return eM.ProtobufCreateIsDecodeTransformer.transform},createValidateDecode:function(){return ek.ProtobufCreateValidateDecodeTransformer.transform}},reflect:{metadata:function(){return ez.ReflectMetadataTransformer.transform}},misc:{literals:function(){return function(e){return function(){return ey.MiscLiteralsTransformer.transform(e)}}},clone:function(){return er.MiscCloneTransformer.transform},assertClone:function(){return ee.MiscAssertCloneTransformer.transform},isClone:function(){return es.MiscIsCloneTransformer.transform},validateClone:function(){return em.MiscValidateCloneTransformer.transform},prune:function(){return ep.MiscPruneTransformer.transform},assertPrune:function(){return et.MiscAssertPruneTransformer.transform},isPrune:function(){return ed.MiscIsPruneTransformer.transform},validatePrune:function(){return ev.MiscValidatePruneTransformer.transform},createClone:function(){return eo.MiscCreateCloneTransformer.transform},createAssertClone:function(){return en.MiscCreateAssertCloneTransformer.transform},createIsClone:function(){return ei.MiscCreateIsCloneTransformer.transform},createValidateClone:function(){return el.MiscCreateValidateCloneTransformer.transform},createPrune:function(){return ec.MiscCreatePruneTransformer.transform},createAssertPrune:function(){return ea.MiscCreateAssertPruneTransformer.transform},createIsPrune:function(){return eu.MiscCreateIsPruneTransformer.transform},createValidatePrune:function(){return ef.MiscCreateValidatePruneTransformer.transform}},notations:{camel:function(){return eS.NotationGeneralTransformer.transform(u.NamingConvention.camel)},assertCamel:function(){return eh.NotationAssertGeneralTransformer.transform(u.NamingConvention.camel)},isCamel:function(){return eT.NotationIsGeneralTransformer.transform(u.NamingConvention.camel)},validateCamel:function(){return eE.NotationValidateGeneralTransformer.transform(u.NamingConvention.camel)},pascal:function(){return eS.NotationGeneralTransformer.transform(u.NamingConvention.pascal)},assertPascal:function(){return eh.NotationAssertGeneralTransformer.transform(u.NamingConvention.pascal)},isPascal:function(){return eT.NotationIsGeneralTransformer.transform(u.NamingConvention.pascal)},validatePascal:function(){return eE.NotationValidateGeneralTransformer.transform(u.NamingConvention.pascal)},snake:function(){return eS.NotationGeneralTransformer.transform(u.NamingConvention.snake)},assertSnake:function(){return eh.NotationAssertGeneralTransformer.transform(u.NamingConvention.snake)},isSnake:function(){return eT.NotationIsGeneralTransformer.transform(u.NamingConvention.snake)},validateSnake:function(){return eE.NotationValidateGeneralTransformer.transform(u.NamingConvention.snake)},createCamel:function(){return e_.NotationCreateGeneralTransformer.transform(u.NamingConvention.camel)},createAssertCamel:function(){return eg.NotationCreateAssertGeneralTransformer.transform(u.NamingConvention.camel)},createIsCamel:function(){return eb.NotationCreateIsGeneralTransformer.transform(u.NamingConvention.camel)},createValidateCamel:function(){return ex.NotationCreateValidateGeneralTransformer.transform(u.NamingConvention.camel)},createPascal:function(){return e_.NotationCreateGeneralTransformer.transform(u.NamingConvention.pascal)},createAssertPascal:function(){return eg.NotationCreateAssertGeneralTransformer.transform(u.NamingConvention.pascal)},createIsPascal:function(){return eb.NotationCreateIsGeneralTransformer.transform(u.NamingConvention.pascal)},createValidatePascal:function(){return ex.NotationCreateValidateGeneralTransformer.transform(u.NamingConvention.pascal)},createSnake:function(){return e_.NotationCreateGeneralTransformer.transform(u.NamingConvention.snake)},createAssertSnake:function(){return eg.NotationCreateAssertGeneralTransformer.transform(u.NamingConvention.snake)},createIsSnake:function(){return eb.NotationCreateIsGeneralTransformer.transform(u.NamingConvention.snake)},createValidateSnake:function(){return ex.NotationCreateValidateGeneralTransformer.transform(u.NamingConvention.snake)}}}},58451:function(e,t,r){"use strict";var n,a,o,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GenericTransformer=void 0;var c=u(r(55423)),f=r(63664);(n=o||(t.GenericTransformer=o={})).scalar=function(e){return function(t){return function(r){return function(n){return function(o){if(1!==o.arguments.length)throw new f.TransformerError({code:"typia.".concat(e),message:"no input value."});var u=i(o.typeArguments&&o.typeArguments[0]?[r.checker.getTypeFromTypeNode(o.typeArguments[0]),o.typeArguments[0],!0]:[r.checker.getTypeAtLocation(o.arguments[0]),o.arguments[0],!1],3),s=u[0],d=u[1],y=u[2];if(s.isTypeParameter())throw new f.TransformerError({code:"typia.".concat(e),message:"non-specified generic argument."});return c.default.factory.createCallExpression(t(r)(n)(s,y?d.getFullText().trim():a(r.checker)(s)(d)),void 0,[o.arguments[0]])}}}}},n.factory=function(e){return function(t){return function(r){return function(n){return function(a){if(!(null===(o=a.typeArguments)||void 0===o?void 0:o[0]))throw new f.TransformerError({code:"typia.".concat(e),message:"generic argument is not specified."});var o,i=a.typeArguments[0],u=r.checker.getTypeFromTypeNode(i);if(u.isTypeParameter())throw new f.TransformerError({code:"typia.".concat(e),message:"non-specified generic argument."});return t(r)(n)(u,i.getFullText().trim())}}}}},a=function(e){return function(t){return function(r){return e.typeToString(t,r,c.default.TypeFormatFlags.NodeBuilderFlagsMask)}}}},61261:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Writable=void 0,t.Writable=function(e){return e}},73346:function(e,t){"use strict";var r,n,a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.NameEncoder=void 0,(r=n||(t.NameEncoder=n={})).encode=function(e){var t,r;try{for(var n=a(i),u=n.next();!u.done;u=n.next()){var c=o(u.value,2),f=c[0],s=c[1];e=e.split(f).join(s)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return e},r.decode=function(e){var t,r;try{for(var n=a(i),u=n.next();!u.done;u=n.next()){var c=o(u.value,2),f=c[0],s=c[1];""!==s&&(e=e.split(s).join(f))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return e};var i=[["$","_dollar_"],["&","_and_"],["|","_or_"],["{","_blt_"],["}","_bgt_"],["<","_lt_"],[">","_gt_"],["(","_lp_"],[")","_rp_"],["[","_alt_"],["]","_agt_"],[",","_comma_"],["`","_backquote_"],["'","_singlequote_"],['"',"_doublequote_"],[" ","_space_"]]},70505:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.pascal=t.camel=t.snake=void 0;var a=r(85422);t.snake=function(e){for(var t=[],r=0;r0;--r)t[r]-t[r-1]==1&&t.splice(r,1);if(0!==t.length&&0===t[0]&&t.splice(0,1),0===t.length)return e.toLowerCase();for(var a="",r=0;r1&&e[1]===e[1].toLowerCase()?"_"+e[1].toUpperCase()+e.substring(2):e},t.pascal=function(e){return 0===(e=removeSnake(e)).length?e:e[0]===e[0].toLowerCase()?e[0].toUpperCase()+e.substring(1):"_"===e[0]&&e.length>1&&e[1]===e[1].toLowerCase()?"_"+e[1].toUpperCase()+e.substring(2):e};var removeSnake=function(e){for(var t=[],r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.PatternUtil=void 0,(r=n||(t.PatternUtil=n={})).fix=function(e){var t=e.indexOf(r.STRING),n=e.lastIndexOf(r.STRING);return[-1===t||none("(")(e.slice(0,t))?"^":"",e,-1===n||none(")")(e.slice(n+r.STRING.length))?"$":""].join("")},r.escape=function(e){return e.replace(/[|\\/{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},r.NUMBER="[+-]?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?",r.BOOLEAN="true|false",r.STRING="(.*)";var none=function(e){return function(t){var r,n;try{for(var o=a(t),i=o.next();!i.done;i=o.next())if(i.value!==e)return!0}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}}},92989:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.relativeJsonPointer=t.jsonPointer=t.duration=t.time=t.date=t.datetime=t.url=t.uriTemplate=t.uriReference=t.uri=t.ipv6=t.ipv4=t.iriReference=t.iri=t.idnHostname=t.idnEmail=t.hostname=t.email=t.uuid=t.regex=t.password=t.byte=t.pattern=t.length=t.pick=t.array=t.string=t.number=t.bigint=t.integer=t.boolean=void 0;var o=a(r(14419)),i="abcdefghijklmnopqrstuvwxyz";t.boolean=function(){return .5>Math.random()},t.integer=function(e,t){return null!=e||(e=0),null!=t||(t=100),Math.floor(Math.random()*(t-e+1))+e},t.bigint=function(e,r){return BigInt((0,t.integer)(Number(null!=e?e:BigInt(0)),Number(null!=r?r:BigInt(100))))},t.number=function(e,t){return null!=e||(e=0),null!=t||(t=100),Math.random()*(t-e)+e},t.string=function(e){return Array(null!=e?e:(0,t.integer)(5,10)).fill(0).map(function(){return i[(0,t.integer)(0,i.length-1)]}).join("")},t.array=function(e,r){return Array(null!=r?r:(0,t.length)()).fill(0).map(function(t,r){return e(r)})},t.pick=function(e){return e[(0,t.integer)(0,e.length-1)]},t.length=function(){return(0,t.integer)(0,3)},t.pattern=function(e){return new o.default(e).gen()},t.byte=function(){return"vt7ekz4lIoNTTS9sDQYdWKharxIFAR54+z/umIxSgUM="},t.password=function(){return(0,t.string)((0,t.integer)(4,16))},t.regex=function(){return"/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/"},t.uuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},t.email=function(){return"".concat((0,t.string)(10),"@").concat((0,t.string)(10),".").concat((0,t.string)(3))},t.hostname=function(){return"".concat((0,t.string)(10),".").concat((0,t.string)(3))},t.idnEmail=function(){return(0,t.email)()},t.idnHostname=function(){return(0,t.hostname)()},t.iri=function(){return(0,t.url)()},t.iriReference=function(){return(0,t.url)()},t.ipv4=function(){return(0,t.array)(function(){return(0,t.integer)(0,255)},4).join(".")},t.ipv6=function(){return(0,t.array)(function(){return(0,t.integer)(0,65535).toString(16)},8).join(":")},t.uri=function(){return(0,t.url)()},t.uriReference=function(){return(0,t.url)()},t.uriTemplate=function(){return(0,t.url)()},t.url=function(){return"https://".concat((0,t.string)(10),".").concat((0,t.string)(3))},t.datetime=function(e,r){return new Date((0,t.number)(null!=e?e:Date.now()-30*u,null!=r?r:Date.now()+7*u)).toISOString()},t.date=function(e,r){return new Date((0,t.number)(null!=e?e:0,null!=r?r:2*Date.now())).toISOString().substring(0,10)},t.time=function(){return new Date((0,t.number)(0,u)).toISOString().substring(11,23)},t.duration=function(){var e=durate([["Y",(0,t.integer)(0,100)],["M",(0,t.integer)(0,12)],["D",(0,t.integer)(0,31)]]),r=durate([["H",(0,t.integer)(0,24)],["M",(0,t.integer)(0,60)],["S",(0,t.integer)(0,60)]]);return e.length+r.length===0?"PT0S":"P".concat(e).concat(r.length?"T":"").concat(r)},t.jsonPointer=function(){return"/components/schemas/".concat((0,t.string)(10))},t.relativeJsonPointer=function(){return"".concat((0,t.integer)(0,10),"#")};var u=864e5,durate=function(e){return e.filter(function(e){var t=n(e,2);return 0!==(t[0],t[1])}).map(function(e){var t=n(e,2),r=t[0],a=t[1];return"".concat(a).concat(r)}).join("")}},46657:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RandomGenerator=void 0,t.RandomGenerator=o(r(92989))},81061:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;ae.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?e.apply(this,n):function(){for(var e=arguments.length,r=Array(e),a=0;a=n.length?n.apply(this,r):function(){for(var t=arguments.length,n=Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};i.initial(e),i.handler(t);var r={current:e},n=curry(didStateUpdate)(r,t),a=curry(updateState)(r),o=curry(i.changes)(e),u=curry(extractChanges)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return i.selector(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(t,["monaco"]);p(function(e){return{config:function merge(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],merge(e[r],t[r]))}),_objectSpread2(_objectSpread2({},e),t)}(e.config,n),monaco:r}})},init:function(){var e=y(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(p({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),utils_makeCancelable(m);if(window.monaco&&window.monaco.editor)return storeMonacoInstance(window.monaco),e.resolve(window.monaco),utils_makeCancelable(m);utils_compose(injectScripts,getMonacoLoaderScript)(configureLoader)}return utils_makeCancelable(m)},__getMonacoInstance:function(){return y(function(e){return e.monaco})}},g=r(67294),_={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},b={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},$=function({children:e}){return g.createElement("div",{style:b.container},e)},x=(0,g.memo)(function({width:e,height:t,isEditorReady:r,loading:n,_ref:a,className:o,wrapperProps:i}){return g.createElement("section",{style:{..._.wrapper,width:e,height:t},...i},!r&&g.createElement($,null,n),g.createElement("div",{ref:a,style:{..._.fullWidth,...!r&&_.hide},className:o}))}),k=function(e){(0,g.useEffect)(e,[])},l=function(e,t,r=!0){let n=(0,g.useRef)(!0);(0,g.useEffect)(n.current||!r?()=>{n.current=!1}:e,t)};function D(){}function h(e,t,r,n){return e.editor.getModel(te(e,n))||e.editor.createModel(t,r,n?te(e,n):void 0)}function te(e,t){return e.Uri.parse(t)}(0,g.memo)(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:a,originalModelPath:o,modifiedModelPath:i,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:c=!1,theme:f="light",loading:s="Loading...",options:d={},height:y="100%",width:p="100%",className:m,wrapperProps:_={},beforeMount:b=D,onMount:S=D}){let[T,E]=(0,g.useState)(!1),[w,P]=(0,g.useState)(!0),I=(0,g.useRef)(null),j=(0,g.useRef)(null),F=(0,g.useRef)(null),A=(0,g.useRef)(S),M=(0,g.useRef)(b),O=(0,g.useRef)(!1);k(()=>{let e=v.init();return e.then(e=>(j.current=e)&&P(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let t;return I.current?(t=I.current?.getModel(),void(u||t?.original?.dispose(),c||t?.modified?.dispose(),I.current?.dispose())):e.cancel()}}),l(()=>{if(I.current&&j.current){let t=I.current.getOriginalEditor(),a=h(j.current,e||"",n||r||"text",o||"");a!==t.getModel()&&t.setModel(a)}},[o],T),l(()=>{if(I.current&&j.current){let e=I.current.getModifiedEditor(),n=h(j.current,t||"",a||r||"text",i||"");n!==e.getModel()&&e.setModel(n)}},[i],T),l(()=>{let e=I.current.getModifiedEditor();e.getOption(j.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],T),l(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],T),l(()=>{let{original:e,modified:t}=I.current.getModel();j.current.editor.setModelLanguage(e,n||r||"text"),j.current.editor.setModelLanguage(t,a||r||"text")},[r,n,a],T),l(()=>{j.current?.editor.setTheme(f)},[f],T),l(()=>{I.current?.updateOptions(d)},[d],T);let C=(0,g.useCallback)(()=>{if(!j.current)return;M.current(j.current);let u=h(j.current,e||"",n||r||"text",o||""),c=h(j.current,t||"",a||r||"text",i||"");I.current?.setModel({original:u,modified:c})},[r,t,a,e,n,o,i]),N=(0,g.useCallback)(()=>{!O.current&&F.current&&(I.current=j.current.editor.createDiffEditor(F.current,{automaticLayout:!0,...d}),C(),j.current?.editor.setTheme(f),E(!0),O.current=!0)},[d,f,C]);return(0,g.useEffect)(()=>{T&&A.current(I.current,j.current)},[T]),(0,g.useEffect)(()=>{w||T||N()},[w,T,N]),g.createElement(x,{width:p,height:y,isEditorReady:T,loading:s,_ref:F,className:m,wrapperProps:_})});var se=function(e){let t=(0,g.useRef)();return(0,g.useEffect)(()=>{t.current=e},[e]),t.current},S=new Map,T=(0,g.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:a,path:o,theme:i="light",line:u,loading:c="Loading...",options:f={},overrideServices:s={},saveViewState:d=!0,keepCurrentModel:y=!1,width:p="100%",height:m="100%",className:_,wrapperProps:b={},beforeMount:T=D,onMount:E=D,onChange:w,onValidate:P=D}){let[I,j]=(0,g.useState)(!1),[F,A]=(0,g.useState)(!0),M=(0,g.useRef)(null),O=(0,g.useRef)(null),C=(0,g.useRef)(null),N=(0,g.useRef)(E),R=(0,g.useRef)(T),L=(0,g.useRef)(),U=(0,g.useRef)(n),H=se(o),q=(0,g.useRef)(!1),z=(0,g.useRef)(!1);k(()=>{let e=v.init();return e.then(e=>(M.current=e)&&A(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>O.current?void(L.current?.dispose(),y?d&&S.set(o,O.current.saveViewState()):O.current.getModel()?.dispose(),O.current.dispose()):e.cancel()}),l(()=>{let i=h(M.current,e||n||"",t||a||"",o||r||"");i!==O.current?.getModel()&&(d&&S.set(H,O.current?.saveViewState()),O.current?.setModel(i),d&&O.current?.restoreViewState(S.get(o)))},[o],I),l(()=>{O.current?.updateOptions(f)},[f],I),l(()=>{O.current&&void 0!==n&&(O.current.getOption(M.current.editor.EditorOption.readOnly)?O.current.setValue(n):n===O.current.getValue()||(z.current=!0,O.current.executeEdits("",[{range:O.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),O.current.pushUndoStop(),z.current=!1))},[n],I),l(()=>{let e=O.current?.getModel();e&&a&&M.current?.editor.setModelLanguage(e,a)},[a],I),l(()=>{void 0!==u&&O.current?.revealLine(u)},[u],I),l(()=>{M.current?.editor.setTheme(i)},[i],I);let B=(0,g.useCallback)(()=>{if(!(!C.current||!M.current)&&!q.current){R.current(M.current);let c=o||r,y=h(M.current,n||e||"",t||a||"",c||"");O.current=M.current?.editor.create(C.current,{model:y,automaticLayout:!0,...f},s),d&&O.current.restoreViewState(S.get(c)),M.current.editor.setTheme(i),void 0!==u&&O.current.revealLine(u),j(!0),q.current=!0}},[e,t,r,n,a,o,f,s,d,i,u]);return(0,g.useEffect)(()=>{I&&N.current(O.current,M.current)},[I]),(0,g.useEffect)(()=>{F||I||B()},[F,I,B]),U.current=n,(0,g.useEffect)(()=>{I&&w&&(L.current?.dispose(),L.current=O.current?.onDidChangeModelContent(e=>{z.current||w(O.current.getValue(),e)}))},[I,w]),(0,g.useEffect)(()=>{if(I){let e=M.current.editor.onDidChangeMarkers(e=>{let t=O.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=M.current.editor.getModelMarkers({resource:t});P?.(e)}});return()=>{e?.dispose()}}return()=>{}},[I,P]),g.createElement(x,{width:p,height:m,isEditorReady:I,loading:c,_ref:C,className:_,wrapperProps:b})})}}]);
\ No newline at end of file
diff --git a/_next/static/chunks/nextra-data-en-US.json b/_next/static/chunks/nextra-data-en-US.json
index 56c4bd78ba..0abe69d9e0 100644
--- a/_next/static/chunks/nextra-data-en-US.json
+++ b/_next/static/chunks/nextra-data-en-US.json
@@ -1 +1 @@
-{"/docs":{"title":"Index","data":{"outline#Outline":"// RUNTIME VALIDATORS\r\nexport function is(input: unknown): input is T; // returns boolean\r\nexport function assert(input: unknown): T; // throws TypeGuardError\r\nexport function assertGuard(input: unknown): asserts input is T;\r\nexport function validate(input: unknown): IValidation; // detailed\r\n\r\n// JSON FUNCTIONS\r\nexport namespace json {\r\n export function application(): IJsonApplication; // JSON schema\r\n export function assertParse(input: string): T; // type safe parser\r\n export function assertStringify(input: T): string; // safe and faster\r\n}\r\n\r\n// PROTOCOL BUFFER\r\nexport namespace protobuf {\r\n export function message(): string; // Protocol Buffer message\r\n export function assertDecode(buffer: Uint8Array): T; // safe decoder\r\n export function assertEncode(input: T): Uint8Array; // safe encoder\r\n}\r\n\r\n// RANDOM GENERATOR\r\nexport function random(g?: Partial): T;\nTypia is a transformer library supporting below features:\nSuper-fast Runtime Validators\nEnhanced JSON functions\nProtocol Buffer encoder and decoder\nRandom data generator\nOnly one line required, with pure TypeScript type\nRuntime validator is 20,000x faster than class-validator\nJSON serialization is 200x faster than class-transformer","sponsors#Sponsors":"Thanks for your support.Your donation would encourage typia development."}},"/docs/misc":{"title":"Misc","data":{"misc-module#misc module":"","clone-functions#clone() functions":"export namespace misc {\r\n export function clone(input: T): T;\r\n export function assertClone(input: T | unknown): Resolved;\r\n export function isClone(input: T | unknown): Resolved | null;\r\n export function validateClone(input: T | unknown): IValidation>;\r\n\r\n export function createClone(): (input: T) => Resolved;\r\n export function createAssertClone(): (input: T | unknown) => Resolved;\r\n export function createIsClone(): (input: T | unknown) => Resolved | null;\r\n export function createValidateClone