@qubit-ltd/common-decorator 3.10.5 → 3.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/typeof";import t from"@babel/runtime/helpers/defineProperty";import o,{registerCloneHook as i}from"@qubit-ltd/clone";import{isUndefinedOrNull as a,isEmpty as u}from"@qubit-ltd/common-util";import{isString as p,isTypedArray as c,isCollection as y,isBuiltInClass as l}from"@qubit-ltd/type-detect";import d from"@babel/runtime/helpers/slicedToArray";import g from"@qubit-ltd/typeinfo";import m from"@babel/runtime/helpers/classCallCheck";import b from"@babel/runtime/helpers/createClass";import{NamingStyle as h}from"@qubit-ltd/naming-style";import v from"@qubit-ltd/json";import A from"util";import{ValidationResult as S}from"@qubit-ltd/common-validation-rule";var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var O,w,j={},E={};function requireGlobalThis(){if(w)return O;w=1;var check=function(r){return r&&r.Math===Math&&r};return O=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof P&&P)||check("object"==typeof O&&O)||function(){return this}()||Function("return this")()}var q,I,T,_,x,N,R,B,U,M,D,k,C,$,G,W,z,J,V,H,L,K,Q,X,Y,Z,ee,re,te,ne,oe,ie,ae,ue={exports:{}};function requireDefineGlobalProperty(){if(_)return T;_=1;var r=requireGlobalThis(),t=Object.defineProperty;return T=function(o,i){try{t(r,o,{value:i,configurable:!0,writable:!0})}catch(t){r[o]=i}return i}}function requireSharedStore(){if(x)return ue.exports;x=1;var r=function requireIsPure(){return I?q:(I=1,q=!1)}(),t=requireGlobalThis(),o=requireDefineGlobalProperty(),i="__core-js_shared__",a=ue.exports=t[i]||o(i,{});return(a.versions||(a.versions=[])).push({version:"3.45.1",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),ue.exports}function requireShared(){if(R)return N;R=1;var r=requireSharedStore();return N=function(t,o){return r[t]||(r[t]=o||{})}}function requireFails(){return U?B:(U=1,B=function(r){try{return!!r()}catch(r){return!0}})}function requireFunctionBindNative(){if(D)return M;D=1;var r=requireFails();return M=!r((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")}))}function requireFunctionUncurryThis(){if(C)return k;C=1;var r=requireFunctionBindNative(),t=Function.prototype,o=t.call,i=r&&t.bind.bind(o,o);return k=r?i:function(r){return function(){return o.apply(r,arguments)}},k}function requireIsNullOrUndefined(){return G?$:(G=1,$=function(r){return null==r})}function requireRequireObjectCoercible(){if(z)return W;z=1;var r=requireIsNullOrUndefined(),t=TypeError;return W=function(o){if(r(o))throw new t("Can't call method on "+o);return o}}function requireToObject(){if(V)return J;V=1;var r=requireRequireObjectCoercible(),t=Object;return J=function(o){return t(r(o))}}function requireHasOwnProperty(){if(L)return H;L=1;var r=requireFunctionUncurryThis(),t=requireToObject(),o=r({}.hasOwnProperty);return H=Object.hasOwn||function hasOwn(r,i){return o(t(r),i)}}function requireUid(){if(Q)return K;Q=1;var r=requireFunctionUncurryThis(),t=0,o=Math.random(),i=r(1.1.toString);return K=function(r){return"Symbol("+(void 0===r?"":r)+")_"+i(++t+o,36)}}function requireEnvironmentV8Version(){if(ee)return Z;ee=1;var r,t,o=requireGlobalThis(),i=function requireEnvironmentUserAgent(){if(Y)return X;Y=1;var r=requireGlobalThis().navigator,t=r&&r.userAgent;return X=t?String(t):""}(),a=o.process,u=o.Deno,p=a&&a.versions||u&&u.version,c=p&&p.v8;return c&&(t=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(t=+r[1]),Z=t}function requireSymbolConstructorDetection(){if(te)return re;te=1;var r=requireEnvironmentV8Version(),t=requireFails(),o=requireGlobalThis().String;return re=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))}function requireUseSymbolAsUid(){if(oe)return ne;oe=1;var r=requireSymbolConstructorDetection();return ne=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function requireWellKnownSymbol(){if(ae)return ie;ae=1;var r=requireGlobalThis(),t=requireShared(),o=requireHasOwnProperty(),i=requireUid(),a=requireSymbolConstructorDetection(),u=requireUseSymbolAsUid(),p=r.Symbol,c=t("wks"),y=u?p.for||p:p&&p.withoutSetter||i;return ie=function(r){return o(c,r)||(c[r]=a&&o(p,r)?p[r]:y("Symbol."+r)),c[r]}}var pe,ce,ye,le,fe,se,de,ge,me,be,he,ve,Ae,Se,Pe,Oe,we,je,Ee,qe,Ie,Fe,Te,_e,xe,Ne,Re,Be,Ue,Me,De,ke,Ce,$e,Ge,We,ze={};function requireDescriptors(){if(ce)return pe;ce=1;var r=requireFails();return pe=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function requireIsCallable$1(){if(le)return ye;le=1;var r="object"==typeof document&&document.all;return ye=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}function requireIsObject(){if(se)return fe;se=1;var r=requireIsCallable$1();return fe=function(t){return"object"==typeof t?null!==t:r(t)}}function requireIe8DomDefine(){if(be)return me;be=1;var r=requireDescriptors(),t=requireFails(),o=function requireDocumentCreateElement(){if(ge)return de;ge=1;var r=requireGlobalThis(),t=requireIsObject(),o=r.document,i=t(o)&&t(o.createElement);return de=function(r){return i?o.createElement(r):{}}}();return me=!r&&!t((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))}function requireAnObject(){if(Se)return Ae;Se=1;var r=requireIsObject(),t=String,o=TypeError;return Ae=function(i){if(r(i))return i;throw new o(t(i)+" is not an object")}}function requireFunctionCall$1(){if(Oe)return Pe;Oe=1;var r=requireFunctionBindNative(),t=Function.prototype.call;return Pe=r?t.bind(t):function(){return t.apply(t,arguments)},Pe}function requireGetBuiltIn(){if(je)return we;je=1;var r=requireGlobalThis(),t=requireIsCallable$1();return we=function(o,i){return arguments.length<2?(a=r[o],t(a)?a:void 0):r[o]&&r[o][i];var a},we}function requireIsSymbol$1(){if(Fe)return Ie;Fe=1;var r=requireGetBuiltIn(),t=requireIsCallable$1(),o=function requireObjectIsPrototypeOf(){if(qe)return Ee;qe=1;var r=requireFunctionUncurryThis();return Ee=r({}.isPrototypeOf)}(),i=requireUseSymbolAsUid(),a=Object;return Ie=i?function(r){return"symbol"==typeof r}:function(i){var u=r("Symbol");return t(u)&&o(u.prototype,a(i))}}function requireTryToString(){if(_e)return Te;_e=1;var r=String;return Te=function(t){try{return r(t)}catch(r){return"Object"}}}function requireACallable(){if(Ne)return xe;Ne=1;var r=requireIsCallable$1(),t=requireTryToString(),o=TypeError;return xe=function(i){if(r(i))return i;throw new o(t(i)+" is not a function")}}function requireGetMethod(){if(Be)return Re;Be=1;var r=requireACallable(),t=requireIsNullOrUndefined();return Re=function(o,i){var a=o[i];return t(a)?void 0:r(a)}}function requireOrdinaryToPrimitive(){if(Me)return Ue;Me=1;var r=requireFunctionCall$1(),t=requireIsCallable$1(),o=requireIsObject(),i=TypeError;return Ue=function(a,u){var p,c;if("string"===u&&t(p=a.toString)&&!o(c=r(p,a)))return c;if(t(p=a.valueOf)&&!o(c=r(p,a)))return c;if("string"!==u&&t(p=a.toString)&&!o(c=r(p,a)))return c;throw new i("Can't convert object to primitive value")}}function requireToPrimitive(){if(ke)return De;ke=1;var r=requireFunctionCall$1(),t=requireIsObject(),o=requireIsSymbol$1(),i=requireGetMethod(),a=requireOrdinaryToPrimitive(),u=requireWellKnownSymbol(),p=TypeError,c=u("toPrimitive");return De=function(u,y){if(!t(u)||o(u))return u;var l,d=i(u,c);if(d){if(void 0===y&&(y="default"),l=r(d,u,y),!t(l)||o(l))return l;throw new p("Can't convert object to primitive value")}return void 0===y&&(y="number"),a(u,y)}}function requireToPropertyKey(){if($e)return Ce;$e=1;var r=requireToPrimitive(),t=requireIsSymbol$1();return Ce=function(o){var i=r(o,"string");return t(i)?i:i+""}}function requireObjectDefineProperty(){if(Ge)return ze;Ge=1;var r=requireDescriptors(),t=requireIe8DomDefine(),o=function requireV8PrototypeDefineBug(){if(ve)return he;ve=1;var r=requireDescriptors(),t=requireFails();return he=r&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}(),i=requireAnObject(),a=requireToPropertyKey(),u=TypeError,p=Object.defineProperty,c=Object.getOwnPropertyDescriptor,y="enumerable",l="configurable",d="writable";return ze.f=r?o?function defineProperty(r,t,o){if(i(r),t=a(t),i(o),"function"==typeof r&&"prototype"===t&&"value"in o&&d in o&&!o[d]){var u=c(r,t);u&&u[d]&&(r[t]=o.value,o={configurable:l in o?o[l]:u[l],enumerable:y in o?o[y]:u[y],writable:!1})}return p(r,t,o)}:p:function defineProperty(r,o,c){if(i(r),o=a(o),i(c),t)try{return p(r,o,c)}catch(r){}if("get"in c||"set"in c)throw new u("Accessors not supported");return"value"in c&&(r[o]=c.value),r},ze}var Je,Ve,He={};function requirePath(){if(Ve)return Je;Ve=1;var r=requireGlobalThis();return Je=r}var Le,Ke,Qe,Xe,Ye,Ze={};function requireWellKnownSymbolDefine(){if(Qe)return Ke;Qe=1;var r=requirePath(),t=requireHasOwnProperty(),o=function requireWellKnownSymbolWrapped(){if(Le)return Ze;Le=1;var r=requireWellKnownSymbol();return Ze.f=r,Ze}(),i=requireObjectDefineProperty().f;return Ke=function(a){var u=r.Symbol||(r.Symbol={});t(u,a)||i(u,a,{value:o.f(a)})}}!function requireDecoratorMetadataV2(){return Ye||(Ye=1,function requireEsnext_function_metadata(){if(We)return E;We=1;var r=requireWellKnownSymbol(),t=requireObjectDefineProperty().f,o=r("metadata"),i=Function.prototype;return void 0===i[o]&&t(i,o,{value:null}),E}(),function requireEsnext_symbol_metadata(){return Xe||(Xe=1,requireWellKnownSymbolDefine()("metadata")),He}()),j}();var er="__cd_category__",rr="__cd_default_instance__",tr="__cd_next_id__",nr="__cd_name_field__",or="__cd_fields_metadata__",ir="__type__",ar="__element_type__",ur="__nullable__",pr="__empty__",cr="__label__",yr="__normalizer__",lr="__validator__",fr=new WeakMap,sr=function get(r){var t=fr.get(r);if(t)return t;var o=r[Symbol.metadata];return o?(fr.set(r,o),o):{}},dr=function set(r,t){fr.set(r,t)};function getClassMetadata(r,t){if("function"!=typeof r)throw new TypeError("The first argument must be a class constructor.");var o=sr(r);if(o)return o[t]}function isEnumClass(r){return"function"==typeof r&&"enum"===getClassMetadata(r,er)}function enumNormalizer(r){if(!isEnumClass(r))throw new TypeError("The argument must be the constructor function of an enumeration class decorated by `@Enum`.");return function(t){return r.of(t)}}function defaultNormalizer(r){var t,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i||(i={}),null!==(o=(t=i).path)&&void 0!==o||(t.path="");var a=g(r);switch(a.category){case"string":return isEnumClass(i.type)?enumNormalizer(i.type)(r):r.trim();case"array":case"typed-array":return r.map((function(r){return defaultNormalizer(r)}));case"map":return new Map(Array.from(r,(function(r){var t=d(r,2);return[t[0],defaultNormalizer(t[1],i)]})));case"set":return new Set(Array.from(r,(function(r){return defaultNormalizer(r,i)})));default:if(a.isBuiltIn)return r;if("function"==typeof r.normalize){var u={path:i.path,types:i.types,elementTypes:i.elementTypes};r.normalize("*",u)}return r}}var gr=b((function DefaultAssignmentOptions(){m(this,DefaultAssignmentOptions),t(this,"normalize",!0),t(this,"convertNaming",!1),t(this,"sourceNamingStyle","LOWER_UNDERSCORE"),t(this,"targetNamingStyle","LOWER_CAMEL"),t(this,"types",{}),t(this,"elementTypes",{})})),mr=b((function DefaultToJsonOptions(){m(this,DefaultToJsonOptions),t(this,"normalize",!0),t(this,"removeEmptyFields",!1),t(this,"convertNaming",!1),t(this,"sourceNamingStyle","LOWER_CAMEL"),t(this,"targetNamingStyle","LOWER_UNDERSCORE"),t(this,"space",void 0)}));function ownKeys$5(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread$5(r){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$5(Object(i),!0).forEach((function(o){t(r,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ownKeys$5(Object(i)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))}))}return r}var br=new Map,hr=function(){return b((function DefaultOptions(){m(this,DefaultOptions)}),null,[{key:"get",value:function get(r){var t=br.get(r);return t?o(t):void 0}},{key:"merge",value:function merge(r,t){var i=br.get(r);return o(void 0===i?t:_objectSpread$5(_objectSpread$5({},i),t))}},{key:"set",value:function set(r,t){var i=o(t),a=br.get(r);void 0===a?br.set(r,i):br.set(r,_objectSpread$5(_objectSpread$5({},a),i))}},{key:"reset",value:function reset(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(r)switch(r){case"assign":br.set("assign",new gr);break;case"toJSON":br.set("toJSON",new mr);break;default:throw new Error("Unknown aspect: ".concat(r))}else br.set("assign",new gr),br.set("toJSON",new mr)}}])}();function ofValueImpl(r,t){if(p(t)){var o=r[String(t).trim().toUpperCase()];return o instanceof r?o:void 0}}function getDefaultInstance(r){if(r.prototype===Object.prototype)return{};var t=sr(r),o=t[rr];return o instanceof r||(o=new r,t[rr]=o),o}function _createForOfIteratorHelper(r,t){var o="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!o){if(Array.isArray(r)||(o=function _unsupportedIterableToArray(r,t){if(r){if("string"==typeof r)return _arrayLikeToArray(r,t);var o={}.toString.call(r).slice(8,-1);return"Object"===o&&r.constructor&&(o=r.constructor.name),"Map"===o||"Set"===o?Array.from(r):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(r,t):void 0}}(r))||t){o&&(r=o);var i=0,a=function F(){};return{s:a,n:function n(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}},e:function e(r){throw r},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,p=!0,c=!1;return{s:function s(){o=o.call(r)},n:function n(){var r=o.next();return p=r.done,r},e:function e(r){c=!0,u=r},f:function f(){try{p||null==o.return||o.return()}finally{if(c)throw u}}}}function _arrayLikeToArray(r,t){(null==t||t>r.length)&&(t=r.length);for(var o=0,i=Array(t);o<t;o++)i[o]=r[o];return i}function getFieldMetadataObject(r,t){var o,i;if(null!=r){null!==(o=r[or])&&void 0!==o||(r[or]={});var a=r[or];return null!==(i=a[t])&&void 0!==i||(a[t]={}),a[t]}}function getFieldMetadata(r,t,o){var i=getFieldMetadataObject(r,t);return i?i[o]:void 0}function getFieldElementType(r,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};null!=o||(o=".".concat(t)),null!=i||(i={});var a=getFieldMetadata(sr(r),t,ar);if(a){if("function"!=typeof a)throw new TypeError("The annotated element type of '".concat(r.name,".").concat(o,"' is not a function."));return a}if(i&&i.elementTypes&&i.elementTypes[o]){var u=i.elementTypes[o];if("function"!=typeof u)throw new TypeError("The target element type of '".concat(r.name,".").concat(o,"' is not a function."));return u}var p=getDefaultInstance(r)[t];if(null!=p){var l=function getCollectionElementType(r){var t;if(Array.isArray(r)||c(r)){if(r.length>0&&"function"==typeof(null===(t=r[0])||void 0===t?void 0:t.constructor))return r[0].constructor}else if(y(r)&&r.size>0){var o=r.values().next().value;if(o&&"function"==typeof o.constructor)return o.constructor}return null}(p);if(null!=l)return l}return null}function getFieldType(r,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};null!=o||(o=".".concat(t)),null!=i||(i={});var a=getFieldMetadata(sr(r),t,ir);if(a){if("function"!=typeof a)throw new TypeError("The annotated type of '".concat(r.name,".").concat(o,"' is not a function."));return a}if(i&&i.types&&i.types[o]){var u=i.types[o];if("function"!=typeof u)throw new TypeError("The target type of '".concat(r.name,".").concat(o,"' is not a function."));return u}var p=getDefaultInstance(r)[t];if(null!=p&&"function"==typeof p.constructor)return p.constructor}function getSourceField(r,t){if(!0===(null==t?void 0:t.convertNaming)){var o=h.of(t.sourceNamingStyle);return h.of(t.targetNamingStyle).to(o,r)}return r}function hasPrototypeFunction(r,t){return null!==r&&r.prototype&&Reflect.has(r.prototype,t)&&"function"==typeof r.prototype[t]}hr.reset();var vr={includeAccessor:!1,includeNonEnumerable:!1,includeReadonly:!0,includeNonConfigurable:!0};function ownKeys$4(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread$4(r){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$4(Object(i),!0).forEach((function(o){t(r,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ownKeys$4(Object(i)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))}))}return r}var Ar={getAllFields:function getAllFields(r,t,o){var i=o.type,a=o.options,u=Object.keys(r),p=Object.getPrototypeOf(i);if(hasPrototypeFunction(p,"assign")){p.prototype.assign.call(r,t,a);var c=getDefaultInstance(p),y=Object.keys(c);return u.filter((function(r){return!y.includes(r)}))}return u},copyPropertiesWithoutNamingConversion:function copyPropertiesWithoutNamingConversion(r,t){a(t)||Object.keys(r).forEach((function(i){Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=o(t[i],vr))}))},cloneEnum:function cloneEnum(r,t){var o=t.sourcePath,i=t.targetType,a=t.defaultInstance;if(null===r)return null;if(void 0===r)return a;if(r instanceof i)return r;if("string"==typeof r){if(0===r.trim().length)return a;var u=ofValueImpl(i,r);if(void 0===u)throw new RangeError("The value of property '".concat(o,"' of the ")+"source object is not an enumerator of ".concat(i.name,": ").concat(r));return u}throw new RangeError("The value of property '".concat(o,"' of the source ")+"object is not an enumerator of ".concat(i.name,": ").concat(r))},cloneWithType:function cloneWithType(r,t){var i=t.targetPath,u=t.sourcePath,p=t.targetType,c=t.defaultInstance,y=t.options;if(a(r))return o(c,vr);if(l(p))return null===r?null:void 0===r?c:(r.constructor===p||console.warn("The value of the property '".concat(u,"' of the source ")+"object is not an instance of ".concat(p.name,":"),r),o(r,vr));if("enum"===getClassMetadata(p,er))return this.cloneEnum(r,{sourcePath:u,targetType:p,defaultInstance:c});var d=new p;return this.doAssign(d,r,{targetPath:i,sourcePath:u,targetType:p,defaultInstance:c,options:y})},cloneArrayWithElementType:function cloneArrayWithElementType(r,t){var i=this,u=t.targetPath,p=t.sourcePath,c=t.elementType,y=t.defaultArray,d=t.options;if(!Array.isArray(r))return console.error("The value of the property '".concat(p,"' of the source ")+"object should be an array:",r),o(y,vr);if(l(c))return o(r,vr);if("enum"===getClassMetadata(c,er))return r.map((function(r,t){return i.cloneEnum(r,{sourcePath:"".concat(p,"[").concat(t,"]"),targetType:c,defaultInstance:y?y[t]:void 0})}));var g=getDefaultInstance(c);return r.map((function(r,t){if(a(r))return r;var o=new c,l=y&&y[t]?y[t]:g;return i.doAssign(o,r,{targetPath:"".concat(u,"[").concat(t,"]"),sourcePath:"".concat(p,"[").concat(t,"]"),targetType:c,defaultInstance:l,options:d}),o}))},cloneNoType:function cloneNoType(r,t){var i=t.targetPath,u=t.sourcePath,p=t.defaultInstance,c=t.options;if(a(p))return o(r,_objectSpread$4(_objectSpread$4({},vr),{},{convertNaming:c.convertNaming,sourceNamingStyle:c.sourceNamingStyle,targetNamingStyle:c.targetNamingStyle}));var y=Object.getPrototypeOf(p).constructor,l=new y;return this.doAssign(l,r,{targetPath:i,sourcePath:u,targetType:y,defaultInstance:p,options:c})},cloneArrayNoElementType:function cloneArrayNoElementType(r,t){var i=t.sourcePath,a=t.defaultArray,u=t.options;return Array.isArray(r)?o(r,_objectSpread$4(_objectSpread$4({},vr),{},{convertNaming:u.convertNaming,sourceNamingStyle:u.sourceNamingStyle,targetNamingStyle:u.targetNamingStyle})):(console.error("The value of the property '".concat(i,"' of the source ")+"object should be an array:",r),o(a,vr))},doAssign:function doAssign(t,i,u){var p=this,c=u.targetPath,y=u.sourcePath,l=u.targetType,d=u.defaultInstance,g=u.options;if(a(i))this.copyPropertiesWithoutNamingConversion(t,d);else{var m=null!=d?d:getDefaultInstance(l);this.getAllFields(t,i,{type:l,options:g}).forEach((function(u){var d=m[u],b="".concat(c,".").concat(u),v=getSourceField(u,g),A="".concat(y,".").concat(v),S=i[v],P=getFieldType(l,u,b,g),O=getFieldElementType(l,u,b,g);if(Object.prototype.hasOwnProperty.call(i,v))a(S)?t[u]=S:O?t[u]=p.cloneArrayWithElementType(S,{targetPath:b,sourcePath:A,elementType:O,defaultArray:d,options:g}):P?t[u]=p.cloneWithType(S,{targetPath:b,sourcePath:A,targetType:P,defaultInstance:d,options:g}):a(d)?t[u]=o(S,_objectSpread$4(_objectSpread$4({},vr),{},{convertNaming:g.convertNaming,sourceNamingStyle:g.sourceNamingStyle,targetNamingStyle:g.targetNamingStyle})):Array.isArray(d)?t[u]=p.cloneArrayNoElementType(S,{targetPath:b,sourcePath:A,defaultArray:d,options:g}):"object"===r(d)?t[u]=p.cloneNoType(S,{targetPath:b,sourcePath:A,defaultInstance:d,options:g}):t[u]=o(S,_objectSpread$4(_objectSpread$4({},vr),{},{convertNaming:g.convertNaming,sourceNamingStyle:g.sourceNamingStyle,targetNamingStyle:g.targetNamingStyle}));else{var w=function getExistFieldWithDifferentNamingStyle(r,t){var o,i=h.values(),a=_createForOfIteratorHelper(i);try{for(a.s();!(o=a.n()).done;){var u,p=o.value,c=_createForOfIteratorHelper(i);try{for(c.s();!(u=c.n()).done;){var y=u.value,l=p.to(y,r);if(Object.prototype.hasOwnProperty.call(t,l))return l}}catch(r){c.e(r)}finally{c.f()}}}catch(r){a.e(r)}finally{a.f()}}(v,i);w&&(console.warn("Cannot find the source property '".concat(A,"' ")+"for the target property '".concat(b,"'. ")+"But the source object has a property '".concat(y,".").concat(w,"'. ")+"A correct naming conversion may be needed."),console.warn("The source object:",i),console.warn("The target object:",t)),t[u]=o(d,vr)}}))}return g.normalize?defaultNormalizer(t):t}};function assignImpl(r,t,o,i){var a=hr.merge("assign",i);return o instanceof r&&(a.convertNaming=!1),Ar.doAssign(t,o,{targetPath:"",sourcePath:"",targetType:r,defaultInstance:getDefaultInstance(r),options:a})}function assign(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("object"!==r(t))throw new TypeError("The target object must be an object.");return assignImpl(t.constructor,t,o,i)}function createImpl(t,o,i){if(null==o)return null;if("object"!==r(o))throw new TypeError("The first argument of ".concat(t.name,".create() must be an object."));if(hasPrototypeFunction(t,"assign")){var a=new t;return a.assign(o,i),a}var u=new t;return assignImpl(t,u,o,i)}function create(r,t){return createImpl(r,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0)}function createArrayImpl(r,t,o){if(null==t)return null;if(Array.isArray(t))return t.map((function(t){return createImpl(r,t,o)}));throw new TypeError("The first argument of ".concat(r.name,".createArray() must be an array."))}function createArray(r,t){return createArrayImpl(r,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0)}var Sr,Pr,Or,wr,jr,Er,qr,Ir,Fr,Tr,_r,xr,Nr,Rr,Br,Ur,Mr,Dr,kr,Cr,$r,Gr,Wr,zr,Jr,Vr,Hr,Lr,Kr,Qr,Xr,Yr,Zr,et,rt,tt,nt,ot,it,at,ut,pt,ct,yt,lt,ft,st=function(){function Page(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];m(this,Page),t(this,"totalCount",0),t(this,"totalPages",0),t(this,"pageIndex",0),t(this,"pageSize",0),t(this,"content",[]),this.totalCount=r,this.totalPages=o,this.pageIndex=i,this.pageSize=a,this.content=u}return b(Page,[{key:"assign",value:function assign(r){return assignImpl(Page,this,r,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}}],[{key:"newEmpty",value:function newEmpty(r){return new Page(0,0,0,r,[])}},{key:"getFrom",value:function getFrom(r,t){var o=t.length,i=r.pageSize,a=r.pageIndex,u=Math.ceil(o/i),p=a*i,c=Math.min(p+i,o);return new Page(o,u,a,i,t.slice(p,c))}}])}();function ownKeys$3(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,i)}return o}function createPageImpl(o,i,a){if(null==i)return null;if(function isValidPageSource(t,o){var i=hr.merge("assign",o);return null!=t&&"object"===r(t)&&"number"==typeof t[getSourceField("totalCount",i)]&&"number"==typeof t[getSourceField("totalPages",i)]&&"number"==typeof t[getSourceField("pageIndex",i)]&&"number"==typeof t[getSourceField("pageSize",i)]&&Array.isArray(t[getSourceField("content",i)])}(i,a)){var u=new st,p=function _objectSpread$3(r){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$3(Object(i),!0).forEach((function(o){t(r,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ownKeys$3(Object(i)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))}))}return r}({},a);return p.elementTypes?p.elementTypes[".content"]=o:p.elementTypes={".content":o},assignImpl(st,u,i,p)}throw new TypeError("Invalid page format: ".concat(v.stringify(i)))}function createPage(r,t){return createPageImpl(r,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0)}function setFieldMetadata(r,t,o,i){var a=getFieldMetadataObject(r,t);if(!a)throw new Error('The metadata of the field "'.concat(t,'" of the class does not exist.'));a[o]=i}function ElementType(r){return function decorate(t,o){var i=o.kind,a=o.name,u=o.metadata;if("field"!==i)throw new SyntaxError("The decorator @ElementType can only decorate a class field: ".concat(a));if("function"!=typeof r)throw new TypeError('The argument of @ElementType decorated on "'.concat(a,'" must be the constructor of a class.'));return setFieldMetadata(u,a,ar,r),function(r){if(null!=r&&!Array.isArray(r))throw new TypeError('The field "'.concat(a,'" decorated by @ElementType must be initialized with an array.'));return r}}}function ofCodeImpl(r,t){if(p(t)){var o=String(t).trim(),i=Object.keys(r).filter((function(t){return r[t]instanceof r})).find((function(t){var i;return(null===(i=r[t])||void 0===i?void 0:i.code)===o}));return i?r[i]:void 0}}function ofNameImpl(r,t){if(p(t)){var o=String(t).trim(),i=Object.keys(r).filter((function(t){return r[t]instanceof r})).find((function(t){var i;return(null===(i=r[t])||void 0===i?void 0:i.name)===o}));return i?r[i]:void 0}}function ofImpl(r,t){if(null!=t){if(t instanceof r)return t;var o,i;if(p(t))return null!==(o=null!==(i=ofValueImpl(r,t))&&void 0!==i?i:ofNameImpl(r,t))&&void 0!==o?o:ofCodeImpl(r,t)}}function setClassMetadata(r,t,o){var i=sr(r);if(!i)throw new Error('The metadata of the class "'.concat(r.name,'" has not been cached.'));i[t]=o}function isEnumerator(t){if(null==t||"object"!==r(t))return!1;var o=Object.getPrototypeOf(t);return!(!o||!o.constructor)&&"enum"===getClassMetadata(o.constructor,er)}function Enum(t,o){if(null===o||"object"!==r(o))throw new TypeError("The context must be an object.");if("function"!=typeof t||"class"!==o.kind)throw new TypeError("The `@Enum` can only decorate a class.");dr(t,o.metadata),setClassMetadata(t,er,"enum"),o.addInitializer((function(){Object.keys(t).forEach((function(o){"function"!=typeof t[o]&&function defineEnumerator(t,o){var i=t[o],a=new t;if(a.value=o,null==i)a.name=o;else if("string"==typeof i)a.name=i;else{if("object"!==r(i))throw new TypeError("The default value of the enumerator "+"".concat(t.name,".").concat(o," should be either a string or an object."));Object.assign(a,i)}Object.freeze(a),t[o]=a}(t,o)})),Object.freeze(t)})),t.prototype.toString=function toString(){return this.value},t.prototype.toJSON=function toJSON(){return this.value},t.values=function values(){return function valuesImpl(r){return Object.keys(r).filter((function(t){return r[t]instanceof r})).map((function(t){return r[t]}))}(t)},t.ofValue=function ofValue(r){return ofValueImpl(t,r)},t.hasValue=function hasValue(r){return void 0!==ofValueImpl(t,r)},t.ofName=function ofName(r){return ofNameImpl(t,r)},t.hasName=function hasName(r){return void 0!==ofNameImpl(t,r)},t.ofCode=function ofCode(r){return ofCodeImpl(t,r)},t.hasCode=function hasCode(r){return void 0!==ofCodeImpl(t,r)},t.of=function of(r){return ofImpl(t,r)},t.has=function has(r){return void 0!==ofImpl(t,r)}}function hasOwnProperty(r,t){if(!r||!r.prototype)return!1;if(Object.prototype.hasOwnProperty.call(r.prototype,t))return!0;var o=getDefaultInstance(r);return o&&Object.prototype.hasOwnProperty.call(o,t)}function hasOwnPrototypeFunction(r,t){return null!==r&&r.prototype&&Object.prototype.hasOwnProperty.call(r.prototype,t)&&"function"==typeof r.prototype[t]}function hasProperty(r,t){if(!r||!r.prototype)return!1;if(Reflect.has(r.prototype,t))return!0;var o=getDefaultInstance(r);return o&&Reflect.has(o,t)}function Label(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function decorate(o,i){var a=i.kind,u=i.name,p=i.metadata;if("field"!==a)throw new SyntaxError("The decorator @Label can only decorate a class field: ".concat(u));if("string"!=typeof r)throw new TypeError('The first argument of @Label decorated on "'.concat(u,'" must be a string.'));if(void 0!==t&&"string"!=typeof t)throw new TypeError('The second argument of @Label decorated on "'.concat(u,'" must be a string.'));setFieldMetadata(p,u,cr,{label:r,i18n:t})}}function requirePrototypeMethod(r,t){if(!hasPrototypeFunction(r,t))throw new TypeError("The class ".concat(r.name,' does not implement the prototype method "').concat(t,'()".'))}function requireIsArguments$1(){if(Pr)return Sr;Pr=1;var r=Object.prototype.toString;return Sr=function isArguments(t){var o=r.call(t),i="[object Arguments]"===o;return i||(i="[object Array]"!==o&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),i}}function requireImplementation$4(){if(wr)return Or;var r;if(wr=1,!Object.keys){var t=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=requireIsArguments$1(),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),p=a.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],equalsConstructorPrototype=function(r){var t=r.constructor;return t&&t.prototype===r},y={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},l=function(){if("undefined"==typeof window)return!1;for(var r in window)try{if(!y["$"+r]&&t.call(window,r)&&null!==window[r]&&"object"==typeof window[r])try{equalsConstructorPrototype(window[r])}catch(r){return!0}}catch(r){return!0}return!1}();r=function keys(r){var a=null!==r&&"object"==typeof r,y="[object Function]"===o.call(r),d=i(r),g=a&&"[object String]"===o.call(r),m=[];if(!a&&!y&&!d)throw new TypeError("Object.keys called on a non-object");var b=p&&y;if(g&&r.length>0&&!t.call(r,0))for(var h=0;h<r.length;++h)m.push(String(h));if(d&&r.length>0)for(var v=0;v<r.length;++v)m.push(String(v));else for(var A in r)b&&"prototype"===A||!t.call(r,A)||m.push(String(A));if(u)for(var S=function(r){if("undefined"==typeof window||!l)return equalsConstructorPrototype(r);try{return equalsConstructorPrototype(r)}catch(r){return!1}}(r),P=0;P<c.length;++P)S&&"constructor"===c[P]||!t.call(r,c[P])||m.push(c[P]);return m}}return Or=r}function requireObjectKeys(){if(Er)return jr;Er=1;var r=Array.prototype.slice,t=requireIsArguments$1(),o=Object.keys,i=o?function keys(r){return o(r)}:requireImplementation$4(),a=Object.keys;return i.shim=function shimObjectKeys(){if(Object.keys){var o=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);o||(Object.keys=function keys(o){return t(o)?a(r.call(o)):a(o)})}else Object.keys=i;return Object.keys||i},jr=i}function requireEsErrors(){return Ir?qr:(Ir=1,qr=Error)}function require_eval(){return Tr?Fr:(Tr=1,Fr=EvalError)}function requireRange(){return xr?_r:(xr=1,_r=RangeError)}function requireRef(){return Rr?Nr:(Rr=1,Nr=ReferenceError)}function requireSyntax(){return Ur?Br:(Ur=1,Br=SyntaxError)}function requireType(){return Dr?Mr:(Dr=1,Mr=TypeError)}function requireUri(){return Cr?kr:(Cr=1,kr=URIError)}function requireShams$3(){return Gr?$r:(Gr=1,$r=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var r={},t=Symbol("test"),o=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(o))return!1;for(t in r[t]=42,r)return!1;if("function"==typeof Object.keys&&0!==Object.keys(r).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(r).length)return!1;var i=Object.getOwnPropertySymbols(r);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(r,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0})}function requireHasSymbols$1(){if(zr)return Wr;zr=1;var r="undefined"!=typeof Symbol&&Symbol,t=requireShams$3();return Wr=function hasNativeSymbols(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}function requireHasProto(){if(Vr)return Jr;Vr=1;var r={__proto__:null,foo:{}},t=Object;return Jr=function hasProto(){return{__proto__:r}.foo===r.foo&&!(r instanceof t)}}function requireFunctionBind(){if(Qr)return Kr;Qr=1;var r=function requireImplementation$3(){if(Lr)return Hr;Lr=1;var r=Object.prototype.toString,t=Math.max,o=function concatty(r,t){for(var o=[],i=0;i<r.length;i+=1)o[i]=r[i];for(var a=0;a<t.length;a+=1)o[a+r.length]=t[a];return o};return Hr=function bind(i){var a=this;if("function"!=typeof a||"[object Function]"!==r.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var u,p=function slicy(r,t){for(var o=[],i=t,a=0;i<r.length;i+=1,a+=1)o[a]=r[i];return o}(arguments,1),c=t(0,a.length-p.length),y=[],l=0;l<c;l++)y[l]="$"+l;if(u=Function("binder","return function ("+function(r,t){for(var o="",i=0;i<r.length;i+=1)o+=r[i],i+1<r.length&&(o+=t);return o}(y,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof u){var r=a.apply(this,o(p,arguments));return Object(r)===r?r:this}return a.apply(i,o(p,arguments))})),a.prototype){var d=function Empty(){};d.prototype=a.prototype,u.prototype=new d,d.prototype=null}return u},Hr}();return Kr=Function.prototype.bind||r}function requireHasown(){if(Yr)return Xr;Yr=1;var r=Function.prototype.call,t=Object.prototype.hasOwnProperty,o=requireFunctionBind();return Xr=o.call(r,t)}function requireGetIntrinsic$5(){if(et)return Zr;var r;et=1;var t=requireEsErrors(),o=require_eval(),i=requireRange(),a=requireRef(),u=requireSyntax(),p=requireType(),c=requireUri(),y=Function,getEvalledConstructor=function(r){try{return y('"use strict"; return ('+r+").constructor;")()}catch(r){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(r){l=null}var throwTypeError=function(){throw new p},d=l?function(){try{return throwTypeError}catch(r){try{return l(arguments,"callee").get}catch(r){return throwTypeError}}}():throwTypeError,g=requireHasSymbols$1()(),m=requireHasProto()(),b=Object.getPrototypeOf||(m?function(r){return r.__proto__}:null),h={},v="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,A={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":d,"%TypedArray%":v,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(r){var S=b(b(r));A["%Error.prototype%"]=S}var P=function doEval(r){var t;if("%AsyncFunction%"===r)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===r)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===r)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===r){var o=doEval("%AsyncGeneratorFunction%");o&&(t=o.prototype)}else if("%AsyncIteratorPrototype%"===r){var i=doEval("%AsyncGenerator%");i&&b&&(t=b(i.prototype))}return A[r]=t,t},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=requireFunctionBind(),j=requireHasown(),E=w.call(Function.call,Array.prototype.concat),q=w.call(Function.apply,Array.prototype.splice),I=w.call(Function.call,String.prototype.replace),T=w.call(Function.call,String.prototype.slice),_=w.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=function getBaseIntrinsic(r,t){var o,i=r;if(j(O,i)&&(i="%"+(o=O[i])[0]+"%"),j(A,i)){var a=A[i];if(a===h&&(a=P(i)),void 0===a&&!t)throw new p("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:i,value:a}}throw new u("intrinsic "+r+" does not exist!")};return Zr=function GetIntrinsic(r,t){if("string"!=typeof r||0===r.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,r))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=function stringToPath(r){var t=T(r,0,1),o=T(r,-1);if("%"===t&&"%"!==o)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var i=[];return I(r,x,(function(r,t,o,a){i[i.length]=o?I(a,N,"$1"):t||r})),i}(r),i=o.length>0?o[0]:"",a=R("%"+i+"%",t),c=a.name,y=a.value,d=!1,g=a.alias;g&&(i=g[0],q(o,E([0,1],g)));for(var m=1,b=!0;m<o.length;m+=1){var h=o[m],v=T(h,0,1),S=T(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===S||"'"===S||"`"===S)&&v!==S)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&b||(d=!0),j(A,c="%"+(i+="."+h)+"%"))y=A[c];else if(null!=y){if(!(h in y)){if(!t)throw new p("base intrinsic for "+r+" exists, but the property is not available.");return}if(l&&m+1>=o.length){var P=l(y,h);y=(b=!!P)&&"get"in P&&!("originalValue"in P.get)?P.get:y[h]}else b=j(y,h),y=y[h];b&&!d&&(A[c]=y)}}return y},Zr}function requireEsDefineProperty$1(){if(tt)return rt;tt=1;var r=requireGetIntrinsic$5()("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(t){r=!1}return rt=r}function requireGetIntrinsic$4(){if(ot)return nt;var r;ot=1;var t=requireEsErrors(),o=require_eval(),i=requireRange(),a=requireRef(),u=requireSyntax(),p=requireType(),c=requireUri(),y=Function,getEvalledConstructor=function(r){try{return y('"use strict"; return ('+r+").constructor;")()}catch(r){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(r){l=null}var throwTypeError=function(){throw new p},d=l?function(){try{return throwTypeError}catch(r){try{return l(arguments,"callee").get}catch(r){return throwTypeError}}}():throwTypeError,g=requireHasSymbols$1()(),m=requireHasProto()(),b=Object.getPrototypeOf||(m?function(r){return r.__proto__}:null),h={},v="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,A={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":d,"%TypedArray%":v,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(r){var S=b(b(r));A["%Error.prototype%"]=S}var P=function doEval(r){var t;if("%AsyncFunction%"===r)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===r)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===r)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===r){var o=doEval("%AsyncGeneratorFunction%");o&&(t=o.prototype)}else if("%AsyncIteratorPrototype%"===r){var i=doEval("%AsyncGenerator%");i&&b&&(t=b(i.prototype))}return A[r]=t,t},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=requireFunctionBind(),j=requireHasown(),E=w.call(Function.call,Array.prototype.concat),q=w.call(Function.apply,Array.prototype.splice),I=w.call(Function.call,String.prototype.replace),T=w.call(Function.call,String.prototype.slice),_=w.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=function getBaseIntrinsic(r,t){var o,i=r;if(j(O,i)&&(i="%"+(o=O[i])[0]+"%"),j(A,i)){var a=A[i];if(a===h&&(a=P(i)),void 0===a&&!t)throw new p("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:i,value:a}}throw new u("intrinsic "+r+" does not exist!")};return nt=function GetIntrinsic(r,t){if("string"!=typeof r||0===r.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,r))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=function stringToPath(r){var t=T(r,0,1),o=T(r,-1);if("%"===t&&"%"!==o)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var i=[];return I(r,x,(function(r,t,o,a){i[i.length]=o?I(a,N,"$1"):t||r})),i}(r),i=o.length>0?o[0]:"",a=R("%"+i+"%",t),c=a.name,y=a.value,d=!1,g=a.alias;g&&(i=g[0],q(o,E([0,1],g)));for(var m=1,b=!0;m<o.length;m+=1){var h=o[m],v=T(h,0,1),S=T(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===S||"'"===S||"`"===S)&&v!==S)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&b||(d=!0),j(A,c="%"+(i+="."+h)+"%"))y=A[c];else if(null!=y){if(!(h in y)){if(!t)throw new p("base intrinsic for "+r+" exists, but the property is not available.");return}if(l&&m+1>=o.length){var P=l(y,h);y=(b=!!P)&&"get"in P&&!("originalValue"in P.get)?P.get:y[h]}else b=j(y,h),y=y[h];b&&!d&&(A[c]=y)}}return y},nt}function requireGopd$4(){if(at)return it;at=1;var r=requireGetIntrinsic$4()("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}return it=r}function requireDefineDataProperty(){if(pt)return ut;pt=1;var r=requireEsDefineProperty$1(),t=requireSyntax(),o=requireType(),i=requireGopd$4();return ut=function defineDataProperty(a,u,p){if(!a||"object"!=typeof a&&"function"!=typeof a)throw new o("`obj` must be an object or a function`");if("string"!=typeof u&&"symbol"!=typeof u)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,y=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,d=arguments.length>6&&arguments[6],g=!!i&&i(a,u);if(r)r(a,u,{configurable:null===l&&g?g.configurable:!l,enumerable:null===c&&g?g.enumerable:!c,value:p,writable:null===y&&g?g.writable:!y});else{if(!d&&(c||y||l))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");a[u]=p}},ut}function requireHasPropertyDescriptors(){if(yt)return ct;yt=1;var r=requireEsDefineProperty$1(),t=function hasPropertyDescriptors(){return!!r};return t.hasArrayLengthDefineBug=function hasArrayLengthDefineBug(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(r){return!0}},ct=t}function requireDefineProperties(){if(ft)return lt;ft=1;var r=requireObjectKeys(),t="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,i=Array.prototype.concat,a=requireDefineDataProperty(),u=requireHasPropertyDescriptors()(),defineProperty=function(r,t,i,p){if(t in r)if(!0===p){if(r[t]===i)return}else if("function"!=typeof(c=p)||"[object Function]"!==o.call(c)||!p())return;var c;u?a(r,t,i,!0):a(r,t,i)},defineProperties=function(o,a){var u=arguments.length>2?arguments[2]:{},p=r(a);t&&(p=i.call(p,Object.getOwnPropertySymbols(a)));for(var c=0;c<p.length;c+=1)defineProperty(o,p[c],a[p[c]],u[p[c]])};return defineProperties.supportsDescriptors=!!u,lt=defineProperties}i((function(r,t){return isEnumerator(t)?t:null}));var dt,gt,mt,bt,ht,vt,At,St,Pt,Ot,wt,jt,Et,qt,It,Ft,Tt,_t,xt,Nt,Rt,Bt,Ut,Mt,Dt,kt,Ct,$t,Gt,Wt,zt,Jt,Vt,Ht,Lt,Kt,Qt,Xt,Yt,Zt,en,rn,tn,nn,on,an,un,pn,cn,yn,ln,fn,sn,dn,gn,mn,bn,hn,vn,An,Sn,Pn,On,wn,jn,En,qn,In,Fn,Tn,_n,xn,Nn,Rn,Bn,Un={exports:{}};function requireGetIntrinsic$3(){if(gt)return dt;var r;gt=1;var t=requireEsErrors(),o=require_eval(),i=requireRange(),a=requireRef(),u=requireSyntax(),p=requireType(),c=requireUri(),y=Function,getEvalledConstructor=function(r){try{return y('"use strict"; return ('+r+").constructor;")()}catch(r){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(r){l=null}var throwTypeError=function(){throw new p},d=l?function(){try{return throwTypeError}catch(r){try{return l(arguments,"callee").get}catch(r){return throwTypeError}}}():throwTypeError,g=requireHasSymbols$1()(),m=requireHasProto()(),b=Object.getPrototypeOf||(m?function(r){return r.__proto__}:null),h={},v="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,A={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":d,"%TypedArray%":v,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(r){var S=b(b(r));A["%Error.prototype%"]=S}var P=function doEval(r){var t;if("%AsyncFunction%"===r)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===r)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===r)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===r){var o=doEval("%AsyncGeneratorFunction%");o&&(t=o.prototype)}else if("%AsyncIteratorPrototype%"===r){var i=doEval("%AsyncGenerator%");i&&b&&(t=b(i.prototype))}return A[r]=t,t},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=requireFunctionBind(),j=requireHasown(),E=w.call(Function.call,Array.prototype.concat),q=w.call(Function.apply,Array.prototype.splice),I=w.call(Function.call,String.prototype.replace),T=w.call(Function.call,String.prototype.slice),_=w.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=function getBaseIntrinsic(r,t){var o,i=r;if(j(O,i)&&(i="%"+(o=O[i])[0]+"%"),j(A,i)){var a=A[i];if(a===h&&(a=P(i)),void 0===a&&!t)throw new p("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:i,value:a}}throw new u("intrinsic "+r+" does not exist!")};return dt=function GetIntrinsic(r,t){if("string"!=typeof r||0===r.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,r))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=function stringToPath(r){var t=T(r,0,1),o=T(r,-1);if("%"===t&&"%"!==o)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var i=[];return I(r,x,(function(r,t,o,a){i[i.length]=o?I(a,N,"$1"):t||r})),i}(r),i=o.length>0?o[0]:"",a=R("%"+i+"%",t),c=a.name,y=a.value,d=!1,g=a.alias;g&&(i=g[0],q(o,E([0,1],g)));for(var m=1,b=!0;m<o.length;m+=1){var h=o[m],v=T(h,0,1),S=T(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===S||"'"===S||"`"===S)&&v!==S)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&b||(d=!0),j(A,c="%"+(i+="."+h)+"%"))y=A[c];else if(null!=y){if(!(h in y)){if(!t)throw new p("base intrinsic for "+r+" exists, but the property is not available.");return}if(l&&m+1>=o.length){var P=l(y,h);y=(b=!!P)&&"get"in P&&!("originalValue"in P.get)?P.get:y[h]}else b=j(y,h),y=y[h];b&&!d&&(A[c]=y)}}return y},dt}function requireSetFunctionLength(){if(bt)return mt;bt=1;var r=requireGetIntrinsic$3(),t=requireDefineDataProperty(),o=requireHasPropertyDescriptors()(),i=requireGopd$4(),a=requireType(),u=r("%Math.floor%");return mt=function setFunctionLength(r,p){if("function"!=typeof r)throw new a("`fn` is not a function");if("number"!=typeof p||p<0||p>4294967295||u(p)!==p)throw new a("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],y=!0,l=!0;if("length"in r&&i){var d=i(r,"length");d&&!d.configurable&&(y=!1),d&&!d.writable&&(l=!1)}return(y||l||!c)&&(o?t(r,"length",p,!0,!0):t(r,"length",p)),r},mt}function requireFunctionCall(){return vt?ht:(vt=1,ht=Function.prototype.call)}function requireFunctionApply(){return St?At:(St=1,At=Function.prototype.apply)}function requireActualApply(){if(jt)return wt;jt=1;var r=requireFunctionBind(),t=requireFunctionApply(),o=requireFunctionCall(),i=function requireReflectApply(){return Ot?Pt:(Ot=1,Pt="undefined"!=typeof Reflect&&Reflect&&Reflect.apply)}();return wt=i||r.call(o,t)}function requireCallBindApplyHelpers(){if(qt)return Et;qt=1;var r=requireFunctionBind(),t=requireType(),o=requireFunctionCall(),i=requireActualApply();return Et=function callBindBasic(a){if(a.length<1||"function"!=typeof a[0])throw new t("a function is required");return i(r,o,a)}}function requireApplyBind(){if(Ft)return It;Ft=1;var r=requireFunctionBind(),t=requireFunctionApply(),o=requireActualApply();return It=function applyBind(){return o(r,t,arguments)},It}function requireEsObjectAtoms$1(){return Rt?Nt:(Rt=1,Nt=Object)}function requireAbs(){return Ut?Bt:(Ut=1,Bt=Math.abs)}function requireFloor(){return Dt?Mt:(Dt=1,Mt=Math.floor)}function requireMax(){return Ct?kt:(Ct=1,kt=Math.max)}function requireMin(){return Gt?$t:(Gt=1,$t=Math.min)}function requirePow(){return zt?Wt:(zt=1,Wt=Math.pow)}function requireRound(){return Vt?Jt:(Vt=1,Jt=Math.round)}function require_isNaN(){return Lt?Ht:(Lt=1,Ht=Number.isNaN||function isNaN(r){return r!=r})}function requireSign(){if(Qt)return Kt;Qt=1;var r=require_isNaN();return Kt=function sign(t){return r(t)||0===t?t:t<0?-1:1}}function requireGOPD$3(){return Yt?Xt:(Yt=1,Xt=Object.getOwnPropertyDescriptor)}function requireGopd$3(){if(en)return Zt;en=1;var r=requireGOPD$3();if(r)try{r([],"length")}catch(t){r=null}return Zt=r}function requireEsDefineProperty(){if(tn)return rn;tn=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(t){r=!1}return rn=r}function requireHasSymbols(){if(un)return an;un=1;var r="undefined"!=typeof Symbol&&Symbol,t=function requireShams$1(){return on?nn:(on=1,nn=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var r={},t=Symbol("test"),o=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(o))return!1;for(var i in r[t]=42,r)return!1;if("function"==typeof Object.keys&&0!==Object.keys(r).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(r).length)return!1;var a=Object.getOwnPropertySymbols(r);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var u=Object.getOwnPropertyDescriptor(r,t);if(42!==u.value||!0!==u.enumerable)return!1}return!0})}();return an=function hasNativeSymbols(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}function requireReflect_getPrototypeOf(){return cn?pn:(cn=1,pn="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function requireEsObjectAtoms(){return ln?yn:(ln=1,yn=Object)}function requireObject_getPrototypeOf(){return sn?fn:(sn=1,fn=requireEsObjectAtoms().getPrototypeOf||null)}function requireGOPD$2(){return gn?dn:(gn=1,dn=Object.getOwnPropertyDescriptor)}function requireGopd$2(){if(bn)return mn;bn=1;var r=requireGOPD$2();if(r)try{r([],"length")}catch(t){r=null}return mn=r}function requireGet(){if(vn)return hn;vn=1;var r,t=requireCallBindApplyHelpers(),o=requireGopd$2();try{r=[].__proto__===Array.prototype}catch(r){if(!r||"object"!=typeof r||!("code"in r)||"ERR_PROTO_ACCESS"!==r.code)throw r}var i=!!r&&o&&o(Object.prototype,"__proto__"),a=Object,u=a.getPrototypeOf;return hn=i&&"function"==typeof i.get?t([i.get]):"function"==typeof u&&function getDunder(r){return u(null==r?r:a(r))}}function requireGetProto(){if(Sn)return An;Sn=1;var r=requireReflect_getPrototypeOf(),t=requireObject_getPrototypeOf(),o=requireGet();return An=r?function getProto(t){return r(t)}:t?function getProto(r){if(!r||"object"!=typeof r&&"function"!=typeof r)throw new TypeError("getProto: not an object");return t(r)}:o?function getProto(r){return o(r)}:null}function requireGetIntrinsic$2(){if(On)return Pn;var r;On=1;var t=requireEsObjectAtoms$1(),o=requireEsErrors(),i=require_eval(),a=requireRange(),u=requireRef(),p=requireSyntax(),c=requireType(),y=requireUri(),l=requireAbs(),d=requireFloor(),g=requireMax(),m=requireMin(),b=requirePow(),h=requireRound(),v=requireSign(),A=Function,getEvalledConstructor=function(r){try{return A('"use strict"; return ('+r+").constructor;")()}catch(r){}},S=requireGopd$3(),P=requireEsDefineProperty(),throwTypeError=function(){throw new c},O=S?function(){try{return throwTypeError}catch(r){try{return S(arguments,"callee").get}catch(r){return throwTypeError}}}():throwTypeError,w=requireHasSymbols()(),j=requireGetProto(),E=requireObject_getPrototypeOf(),q=requireReflect_getPrototypeOf(),I=requireFunctionApply(),T=requireFunctionCall(),_={},x="undefined"!=typeof Uint8Array&&j?j(Uint8Array):r,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":w&&j?j([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&j?j(j([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&w&&j?j((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&w&&j?j((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&j?j(""[Symbol.iterator]()):r,"%Symbol%":w?Symbol:r,"%SyntaxError%":p,"%ThrowTypeError%":O,"%TypedArray%":x,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":y,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":I,"%Object.defineProperty%":P,"%Object.getPrototypeOf%":E,"%Math.abs%":l,"%Math.floor%":d,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":b,"%Math.round%":h,"%Math.sign%":v,"%Reflect.getPrototypeOf%":q};if(j)try{null.error}catch(r){var R=j(j(r));N["%Error.prototype%"]=R}var B=function doEval(r){var t;if("%AsyncFunction%"===r)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===r)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===r)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===r){var o=doEval("%AsyncGeneratorFunction%");o&&(t=o.prototype)}else if("%AsyncIteratorPrototype%"===r){var i=doEval("%AsyncGenerator%");i&&j&&(t=j(i.prototype))}return N[r]=t,t},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=requireFunctionBind(),D=requireHasown(),k=M.call(T,Array.prototype.concat),C=M.call(I,Array.prototype.splice),$=M.call(T,String.prototype.replace),G=M.call(T,String.prototype.slice),W=M.call(T,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,V=function getBaseIntrinsic(r,t){var o,i=r;if(D(U,i)&&(i="%"+(o=U[i])[0]+"%"),D(N,i)){var a=N[i];if(a===_&&(a=B(i)),void 0===a&&!t)throw new c("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:i,value:a}}throw new p("intrinsic "+r+" does not exist!")};return Pn=function GetIntrinsic(r,t){if("string"!=typeof r||0===r.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,r))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=function stringToPath(r){var t=G(r,0,1),o=G(r,-1);if("%"===t&&"%"!==o)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new p("invalid intrinsic syntax, expected opening `%`");var i=[];return $(r,z,(function(r,t,o,a){i[i.length]=o?$(a,J,"$1"):t||r})),i}(r),i=o.length>0?o[0]:"",a=V("%"+i+"%",t),u=a.name,y=a.value,l=!1,d=a.alias;d&&(i=d[0],C(o,k([0,1],d)));for(var g=1,m=!0;g<o.length;g+=1){var b=o[g],h=G(b,0,1),v=G(b,-1);if(('"'===h||"'"===h||"`"===h||'"'===v||"'"===v||"`"===v)&&h!==v)throw new p("property names with quotes must have matching quotes");if("constructor"!==b&&m||(l=!0),D(N,u="%"+(i+="."+b)+"%"))y=N[u];else if(null!=y){if(!(b in y)){if(!t)throw new c("base intrinsic for "+r+" exists, but the property is not available.");return}if(S&&g+1>=o.length){var A=S(y,b);y=(m=!!A)&&"get"in A&&!("originalValue"in A.get)?A.get:y[b]}else m=D(y,b),y=y[b];m&&!l&&(N[u]=y)}}return y},Pn}function requireCallBound$1(){if(jn)return wn;jn=1;var r=requireGetIntrinsic$2(),t=requireCallBindApplyHelpers(),o=t([r("%String.prototype.indexOf%")]);return wn=function callBoundIntrinsic(i,a){var u=r(i,!!a);return"function"==typeof u&&o(i,".prototype.")>-1?t([u]):u}}function requireImplementation$2(){if(qn)return En;qn=1;var r=requireObjectKeys(),t=function requireShams$2(){return xt?_t:(xt=1,_t=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var r={},t=Symbol("test"),o=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(o))return!1;for(var i in r[t]=42,r)return!1;if("function"==typeof Object.keys&&0!==Object.keys(r).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(r).length)return!1;var a=Object.getOwnPropertySymbols(r);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var u=Object.getOwnPropertyDescriptor(r,t);if(42!==u.value||!0!==u.enumerable)return!1}return!0})}()(),o=requireCallBound$1(),i=requireEsObjectAtoms(),a=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),p=t?i.getOwnPropertySymbols:null;return En=function assign(o,c){if(null==o)throw new TypeError("target must be an object");var y=i(o);if(1===arguments.length)return y;for(var l=1;l<arguments.length;++l){var d=i(arguments[l]),g=r(d),m=t&&(i.getOwnPropertySymbols||p);if(m)for(var b=m(d),h=0;h<b.length;++h){var v=b[h];u(d,v)&&a(g,v)}for(var A=0;A<g.length;++A){var S=g[A];if(u(d,S)){var P=d[S];y[S]=P}}}return y},En}function requirePolyfill$2(){if(Fn)return In;Fn=1;var r=requireImplementation$2();return In=function getPolyfill(){return Object.assign?function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",t=r.split(""),o={},i=0;i<t.length;++i)o[t[i]]=t[i];var a=Object.assign({},o),u="";for(var p in a)u+=p;return r!==u}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch(t){return"y"===r[1]}return!1}()?r:Object.assign:r}}function requireObject_assign(){if(Nn)return xn;Nn=1;var r=requireDefineProperties(),t=function requireCallBind$4(){return Tt||(Tt=1,function(r){var t=requireSetFunctionLength(),o=requireEsDefineProperty$1(),i=requireCallBindApplyHelpers(),a=requireApplyBind();r.exports=function callBind(r){var o=i(arguments),a=r.length-(arguments.length-1);return t(o,1+(a>0?a:0),!0)},o?o(r.exports,"apply",{value:a}):r.exports.apply=a}(Un)),Un.exports}(),o=requireImplementation$2(),i=requirePolyfill$2(),a=function requireShim$2(){if(_n)return Tn;_n=1;var r=requireDefineProperties(),t=requirePolyfill$2();return Tn=function shimAssign(){var o=t();return r(Object,{assign:o},{assign:function(){return Object.assign!==o}}),o},Tn}(),u=t.apply(i()),p=function assign(r,t){return u(Object,arguments)};return r(p,{getPolyfill:i,implementation:o,shim:a}),xn=p}function requireGetIntrinsic$1(){if(Bn)return Rn;var r;Bn=1;var t=requireEsErrors(),o=require_eval(),i=requireRange(),a=requireRef(),u=requireSyntax(),p=requireType(),c=requireUri(),y=Function,getEvalledConstructor=function(r){try{return y('"use strict"; return ('+r+").constructor;")()}catch(r){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(r){l=null}var throwTypeError=function(){throw new p},d=l?function(){try{return throwTypeError}catch(r){try{return l(arguments,"callee").get}catch(r){return throwTypeError}}}():throwTypeError,g=requireHasSymbols$1()(),m=requireHasProto()(),b=Object.getPrototypeOf||(m?function(r){return r.__proto__}:null),h={},v="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,A={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":d,"%TypedArray%":v,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(r){var S=b(b(r));A["%Error.prototype%"]=S}var P=function doEval(r){var t;if("%AsyncFunction%"===r)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===r)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===r)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===r){var o=doEval("%AsyncGeneratorFunction%");o&&(t=o.prototype)}else if("%AsyncIteratorPrototype%"===r){var i=doEval("%AsyncGenerator%");i&&b&&(t=b(i.prototype))}return A[r]=t,t},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=requireFunctionBind(),j=requireHasown(),E=w.call(Function.call,Array.prototype.concat),q=w.call(Function.apply,Array.prototype.splice),I=w.call(Function.call,String.prototype.replace),T=w.call(Function.call,String.prototype.slice),_=w.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=function getBaseIntrinsic(r,t){var o,i=r;if(j(O,i)&&(i="%"+(o=O[i])[0]+"%"),j(A,i)){var a=A[i];if(a===h&&(a=P(i)),void 0===a&&!t)throw new p("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:i,value:a}}throw new u("intrinsic "+r+" does not exist!")};return Rn=function GetIntrinsic(r,t){if("string"!=typeof r||0===r.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,r))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=function stringToPath(r){var t=T(r,0,1),o=T(r,-1);if("%"===t&&"%"!==o)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var i=[];return I(r,x,(function(r,t,o,a){i[i.length]=o?I(a,N,"$1"):t||r})),i}(r),i=o.length>0?o[0]:"",a=R("%"+i+"%",t),c=a.name,y=a.value,d=!1,g=a.alias;g&&(i=g[0],q(o,E([0,1],g)));for(var m=1,b=!0;m<o.length;m+=1){var h=o[m],v=T(h,0,1),S=T(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===S||"'"===S||"`"===S)&&v!==S)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&b||(d=!0),j(A,c="%"+(i+="."+h)+"%"))y=A[c];else if(null!=y){if(!(h in y)){if(!t)throw new p("base intrinsic for "+r+" exists, but the property is not available.");return}if(l&&m+1>=o.length){var P=l(y,h);y=(b=!!P)&&"get"in P&&!("originalValue"in P.get)?P.get:y[h]}else b=j(y,h),y=y[h];b&&!d&&(A[c]=y)}}return y},Rn}var Mn,Dn,kn,Cn={exports:{}};function requireCallBind$3(){return Mn||(Mn=1,function(r){var t=requireFunctionBind(),o=requireGetIntrinsic$1(),i=requireSetFunctionLength(),a=requireType(),u=o("%Function.prototype.apply%"),p=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||t.call(p,u),y=requireEsDefineProperty$1(),l=o("%Math.max%");r.exports=function callBind(r){if("function"!=typeof r)throw new a("a function is required");var o=c(t,p,arguments);return i(o,1+l(0,r.length-(arguments.length-1)),!0)};var d=function applyBind(){return c(t,u,arguments)};y?y(r.exports,"apply",{value:d}):r.exports.apply=d}(Cn)),Cn.exports}function requireCallBound(){if(kn)return Dn;kn=1;var r=requireGetIntrinsic$1(),t=requireCallBind$3(),o=t(r("String.prototype.indexOf"));return Dn=function callBoundIntrinsic(i,a){var u=r(i,!!a);return"function"==typeof u&&o(i,".prototype.")>-1?t(u):u}}var $n,Gn,Wn,zn,Jn,Vn,Hn,Ln,Kn,Qn,Xn,Yn,Zn,eo,ro,to,no,oo,io,ao,uo,po,co,yo,lo,fo,so,go,mo,bo,ho,vo,Ao,So,Po,Oo,wo,jo,Eo,qo,Io,Fo={exports:{}};function requireSetFunctionName(){if(Jn)return zn;Jn=1;var r=requireDefineDataProperty(),t=requireHasPropertyDescriptors()(),o=function requireFunctionsHaveNames(){if(Wn)return Gn;Wn=1;var r=function functionsHaveNames(){return"string"==typeof function f(){}.name},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch(r){t=null}r.functionsHaveConfigurableNames=function functionsHaveConfigurableNames(){if(!r()||!t)return!1;var o=t((function(){}),"name");return!!o&&!!o.configurable};var o=Function.prototype.bind;return r.boundFunctionsHaveNames=function boundFunctionsHaveNames(){return r()&&"function"==typeof o&&""!==function f(){}.bind().name},Gn=r}().functionsHaveConfigurableNames(),i=requireType();return zn=function setFunctionName(a,u){if("function"!=typeof a)throw new i("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(t?r(a,"name",u,!0,!0):r(a,"name",u)),a},zn}function requireImplementation$1(){if(Hn)return Vn;Hn=1;var r=requireSetFunctionName(),t=requireType(),o=Object;return Vn=r((function flags(){if(null==this||this!==o(this))throw new t("RegExp.prototype.flags getter called on non-object");var r="";return this.hasIndices&&(r+="d"),this.global&&(r+="g"),this.ignoreCase&&(r+="i"),this.multiline&&(r+="m"),this.dotAll&&(r+="s"),this.unicode&&(r+="u"),this.unicodeSets&&(r+="v"),this.sticky&&(r+="y"),r}),"get flags",!0)}function requirePolyfill$1(){if(Kn)return Ln;Kn=1;var r=requireImplementation$1(),t=requireDefineProperties().supportsDescriptors,o=Object.getOwnPropertyDescriptor;return Ln=function getPolyfill(){if(t&&"gim"===/a/gim.flags){var i=o(RegExp.prototype,"flags");if(i&&"function"==typeof i.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var a="",u={};if(Object.defineProperty(u,"hasIndices",{get:function(){a+="d"}}),Object.defineProperty(u,"sticky",{get:function(){a+="y"}}),i.get.call(u),"dy"===a)return i.get}}return r}}function requireGOPD$1(){return Xn?Qn:(Xn=1,Qn=Object.getOwnPropertyDescriptor)}function requireGopd$1(){if(Zn)return Yn;Zn=1;var r=requireGOPD$1();if(r)try{r([],"length")}catch(t){r=null}return Yn=r}function requireRegexp_prototype_flags(){if(no)return to;no=1;var r=requireDefineProperties(),t=function requireCallBind$2(){return $n||($n=1,function(r){var t=requireSetFunctionLength(),o=requireEsDefineProperty$1(),i=requireCallBindApplyHelpers(),a=requireApplyBind();r.exports=function callBind(r){var o=i(arguments),a=r.length-(arguments.length-1);return t(o,1+(a>0?a:0),!0)},o?o(r.exports,"apply",{value:a}):r.exports.apply=a}(Fo)),Fo.exports}(),o=requireImplementation$1(),i=requirePolyfill$1(),a=function requireShim$1(){if(ro)return eo;ro=1;var r=requireDefineProperties().supportsDescriptors,t=requirePolyfill$1(),o=requireGopd$1(),i=Object.defineProperty,a=requireEsErrors(),u=requireGetProto(),p=/a/;return eo=function shimFlags(){if(!r||!u)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var c=t(),y=u(p),l=o(y,"flags");return l&&l.get===c||i(y,"flags",{configurable:!0,enumerable:!1,get:c}),c},eo}(),u=t(i());return r(u,{getPolyfill:i,implementation:o,shim:a}),to=u}function requireGetIntrinsic(){if(uo)return ao;var r;uo=1;var t=requireEsErrors(),o=require_eval(),i=requireRange(),a=requireRef(),u=requireSyntax(),p=requireType(),c=requireUri(),y=Function,getEvalledConstructor=function(r){try{return y('"use strict"; return ('+r+").constructor;")()}catch(r){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(r){l=null}var throwTypeError=function(){throw new p},d=l?function(){try{return throwTypeError}catch(r){try{return l(arguments,"callee").get}catch(r){return throwTypeError}}}():throwTypeError,g=requireHasSymbols$1()(),m=requireHasProto()(),b=Object.getPrototypeOf||(m?function(r){return r.__proto__}:null),h={},v="undefined"!=typeof Uint8Array&&b?b(Uint8Array):r,A={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":d,"%TypedArray%":v,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(r){var S=b(b(r));A["%Error.prototype%"]=S}var P=function doEval(r){var t;if("%AsyncFunction%"===r)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===r)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===r)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===r){var o=doEval("%AsyncGeneratorFunction%");o&&(t=o.prototype)}else if("%AsyncIteratorPrototype%"===r){var i=doEval("%AsyncGenerator%");i&&b&&(t=b(i.prototype))}return A[r]=t,t},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=requireFunctionBind(),j=requireHasown(),E=w.call(Function.call,Array.prototype.concat),q=w.call(Function.apply,Array.prototype.splice),I=w.call(Function.call,String.prototype.replace),T=w.call(Function.call,String.prototype.slice),_=w.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,R=function getBaseIntrinsic(r,t){var o,i=r;if(j(O,i)&&(i="%"+(o=O[i])[0]+"%"),j(A,i)){var a=A[i];if(a===h&&(a=P(i)),void 0===a&&!t)throw new p("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:i,value:a}}throw new u("intrinsic "+r+" does not exist!")};return ao=function GetIntrinsic(r,t){if("string"!=typeof r||0===r.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,r))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=function stringToPath(r){var t=T(r,0,1),o=T(r,-1);if("%"===t&&"%"!==o)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var i=[];return I(r,x,(function(r,t,o,a){i[i.length]=o?I(a,N,"$1"):t||r})),i}(r),i=o.length>0?o[0]:"",a=R("%"+i+"%",t),c=a.name,y=a.value,d=!1,g=a.alias;g&&(i=g[0],q(o,E([0,1],g)));for(var m=1,b=!0;m<o.length;m+=1){var h=o[m],v=T(h,0,1),S=T(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===S||"'"===S||"`"===S)&&v!==S)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&b||(d=!0),j(A,c="%"+(i+="."+h)+"%"))y=A[c];else if(null!=y){if(!(h in y)){if(!t)throw new p("base intrinsic for "+r+" exists, but the property is not available.");return}if(l&&m+1>=o.length){var P=l(y,h);y=(b=!!P)&&"get"in P&&!("originalValue"in P.get)?P.get:y[h]}else b=j(y,h),y=y[h];b&&!d&&(A[c]=y)}}return y},ao}function requireUtil_inspect(){return co?po:(co=1,po=A.inspect)}function requireObjectInspect(){if(lo)return yo;lo=1;var r="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&t&&"function"==typeof t.get?t.get:null,i=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=a&&u&&"function"==typeof u.get?u.get:null,c=a&&Set.prototype.forEach,y="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,m=Object.prototype.toString,b=Function.prototype.toString,h=String.prototype.match,v=String.prototype.slice,A=String.prototype.replace,S=String.prototype.toUpperCase,O=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,E=Array.prototype.join,q=Array.prototype.slice,I=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,N="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===N||"symbol")?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,U=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function addNumericSeparator(r,t){if(r===1/0||r===-1/0||r!=r||r&&r>-1e3&&r<1e3||w.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof r){var i=r<0?-I(-r):I(r);if(i!==r){var a=String(i),u=v.call(t,a.length+1);return A.call(a,o,"$&_")+"."+A.call(A.call(u,/([0-9]{3})/g,"$&_"),/_$/,"")}}return A.call(t,o,"$&_")}var M=requireUtil_inspect(),D=M.custom,k=isSymbol(D)?D:null;function wrapQuotes(r,t,o){var i="double"===(o.quoteStyle||t)?'"':"'";return i+r+i}function quote(r){return A.call(String(r),/"/g,"&quot;")}function isArray(r){return!("[object Array]"!==toStr(r)||R&&"object"==typeof r&&R in r)}function isRegExp(r){return!("[object RegExp]"!==toStr(r)||R&&"object"==typeof r&&R in r)}function isSymbol(r){if(N)return r&&"object"==typeof r&&r instanceof Symbol;if("symbol"==typeof r)return!0;if(!r||"object"!=typeof r||!x)return!1;try{return x.call(r),!0}catch(r){}return!1}yo=function inspect_(r,t,a,u){var m=t||{};if(has(m,"quoteStyle")&&"single"!==m.quoteStyle&&"double"!==m.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has(m,"maxStringLength")&&("number"==typeof m.maxStringLength?m.maxStringLength<0&&m.maxStringLength!==1/0:null!==m.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var S=!has(m,"customInspect")||m.customInspect;if("boolean"!=typeof S&&"symbol"!==S)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(m,"indent")&&null!==m.indent&&"\t"!==m.indent&&!(parseInt(m.indent,10)===m.indent&&m.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has(m,"numericSeparator")&&"boolean"!=typeof m.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=m.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return inspectString(r,m);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var I=String(r);return w?addNumericSeparator(r,I):I}if("bigint"==typeof r){var _=String(r)+"n";return w?addNumericSeparator(r,_):_}var D=void 0===m.depth?5:m.depth;if(void 0===a&&(a=0),a>=D&&D>0&&"object"==typeof r)return isArray(r)?"[Array]":"[Object]";var C=function getIndent(r,t){var o;if("\t"===r.indent)o="\t";else{if(!("number"==typeof r.indent&&r.indent>0))return null;o=E.call(Array(r.indent+1)," ")}return{base:o,prev:E.call(Array(t+1),o)}}(m,a);if(void 0===u)u=[];else if(indexOf(u,r)>=0)return"[Circular]";function inspect(r,t,o){if(t&&(u=q.call(u)).push(t),o){var i={depth:m.depth};return has(m,"quoteStyle")&&(i.quoteStyle=m.quoteStyle),inspect_(r,i,a+1,u)}return inspect_(r,m,a+1,u)}if("function"==typeof r&&!isRegExp(r)){var $=function nameOf(r){if(r.name)return r.name;var t=h.call(b.call(r),/^function\s*([\w$]+)/);if(t)return t[1];return null}(r),G=arrObjKeys(r,inspect);return"[Function"+($?": "+$:" (anonymous)")+"]"+(G.length>0?" { "+E.call(G,", ")+" }":"")}if(isSymbol(r)){var W=N?A.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(r);return"object"!=typeof r||N?W:markBoxed(W)}if(function isElement(r){if(!r||"object"!=typeof r)return!1;if("undefined"!=typeof HTMLElement&&r instanceof HTMLElement)return!0;return"string"==typeof r.nodeName&&"function"==typeof r.getAttribute}(r)){for(var z="<"+O.call(String(r.nodeName)),J=r.attributes||[],V=0;V<J.length;V++)z+=" "+J[V].name+"="+wrapQuotes(quote(J[V].value),"double",m);return z+=">",r.childNodes&&r.childNodes.length&&(z+="..."),z+="</"+O.call(String(r.nodeName))+">"}if(isArray(r)){if(0===r.length)return"[]";var H=arrObjKeys(r,inspect);return C&&!function singleLineValues(r){for(var t=0;t<r.length;t++)if(indexOf(r[t],"\n")>=0)return!1;return!0}(H)?"["+indentedJoin(H,C)+"]":"[ "+E.call(H,", ")+" ]"}if(function isError(r){return!("[object Error]"!==toStr(r)||R&&"object"==typeof r&&R in r)}(r)){var L=arrObjKeys(r,inspect);return"cause"in Error.prototype||!("cause"in r)||B.call(r,"cause")?0===L.length?"["+String(r)+"]":"{ ["+String(r)+"] "+E.call(L,", ")+" }":"{ ["+String(r)+"] "+E.call(j.call("[cause]: "+inspect(r.cause),L),", ")+" }"}if("object"==typeof r&&S){if(k&&"function"==typeof r[k]&&M)return M(r,{depth:D-a});if("symbol"!==S&&"function"==typeof r.inspect)return r.inspect()}if(function isMap(r){if(!o||!r||"object"!=typeof r)return!1;try{o.call(r);try{p.call(r)}catch(r){return!0}return r instanceof Map}catch(r){}return!1}(r)){var K=[];return i&&i.call(r,(function(t,o){K.push(inspect(o,r,!0)+" => "+inspect(t,r))})),collectionOf("Map",o.call(r),K,C)}if(function isSet(r){if(!p||!r||"object"!=typeof r)return!1;try{p.call(r);try{o.call(r)}catch(r){return!0}return r instanceof Set}catch(r){}return!1}(r)){var Q=[];return c&&c.call(r,(function(t){Q.push(inspect(t,r))})),collectionOf("Set",p.call(r),Q,C)}if(function isWeakMap(r){if(!y||!r||"object"!=typeof r)return!1;try{y.call(r,y);try{l.call(r,l)}catch(r){return!0}return r instanceof WeakMap}catch(r){}return!1}(r))return weakCollectionOf("WeakMap");if(function isWeakSet(r){if(!l||!r||"object"!=typeof r)return!1;try{l.call(r,l);try{y.call(r,y)}catch(r){return!0}return r instanceof WeakSet}catch(r){}return!1}(r))return weakCollectionOf("WeakSet");if(function isWeakRef(r){if(!d||!r||"object"!=typeof r)return!1;try{return d.call(r),!0}catch(r){}return!1}(r))return weakCollectionOf("WeakRef");if(function isNumber(r){return!("[object Number]"!==toStr(r)||R&&"object"==typeof r&&R in r)}(r))return markBoxed(inspect(Number(r)));if(function isBigInt(r){if(!r||"object"!=typeof r||!T)return!1;try{return T.call(r),!0}catch(r){}return!1}(r))return markBoxed(inspect(T.call(r)));if(function isBoolean(r){return!("[object Boolean]"!==toStr(r)||R&&"object"==typeof r&&R in r)}(r))return markBoxed(g.call(r));if(function isString(r){return!("[object String]"!==toStr(r)||R&&"object"==typeof r&&R in r)}(r))return markBoxed(inspect(String(r)));if("undefined"!=typeof window&&r===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&r===globalThis||void 0!==P&&r===P)return"{ [object globalThis] }";if(!function isDate(r){return!("[object Date]"!==toStr(r)||R&&"object"==typeof r&&R in r)}(r)&&!isRegExp(r)){var X=arrObjKeys(r,inspect),Y=U?U(r)===Object.prototype:r instanceof Object||r.constructor===Object,Z=r instanceof Object?"":"null prototype",ee=!Y&&R&&Object(r)===r&&R in r?v.call(toStr(r),8,-1):Z?"Object":"",re=(Y||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(ee||Z?"["+E.call(j.call([],ee||[],Z||[]),": ")+"] ":"");return 0===X.length?re+"{}":C?re+"{"+indentedJoin(X,C)+"}":re+"{ "+E.call(X,", ")+" }"}return String(r)};var C=Object.prototype.hasOwnProperty||function(r){return r in this};function has(r,t){return C.call(r,t)}function toStr(r){return m.call(r)}function indexOf(r,t){if(r.indexOf)return r.indexOf(t);for(var o=0,i=r.length;o<i;o++)if(r[o]===t)return o;return-1}function inspectString(r,t){if(r.length>t.maxStringLength){var o=r.length-t.maxStringLength,i="... "+o+" more character"+(o>1?"s":"");return inspectString(v.call(r,0,t.maxStringLength),t)+i}return wrapQuotes(A.call(A.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",t)}function lowbyte(r){var t=r.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return o?"\\"+o:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function markBoxed(r){return"Object("+r+")"}function weakCollectionOf(r){return r+" { ? }"}function collectionOf(r,t,o,i){return r+" ("+t+") {"+(i?indentedJoin(o,i):E.call(o,", "))+"}"}function indentedJoin(r,t){if(0===r.length)return"";var o="\n"+t.prev+t.base;return o+E.call(r,","+o)+"\n"+t.prev}function arrObjKeys(r,t){var o=isArray(r),i=[];if(o){i.length=r.length;for(var a=0;a<r.length;a++)i[a]=has(r,a)?t(r[a],r):""}var u,p="function"==typeof _?_(r):[];if(N){u={};for(var c=0;c<p.length;c++)u["$"+p[c]]=p[c]}for(var y in r)has(r,y)&&(o&&String(Number(y))===y&&y<r.length||N&&u["$"+y]instanceof Symbol||(w.call(/[^\w$]/,y)?i.push(t(y,r)+": "+t(r[y],r)):i.push(y+": "+t(r[y],r))));if("function"==typeof _)for(var l=0;l<p.length;l++)B.call(r,p[l])&&i.push("["+t(p[l])+"]: "+t(r[p[l]],r));return i}return yo}function requireSideChannel(){if(so)return fo;so=1;var r=requireGetIntrinsic(),t=requireCallBound(),o=requireObjectInspect(),i=requireType(),a=r("%WeakMap%",!0),u=r("%Map%",!0),p=t("WeakMap.prototype.get",!0),c=t("WeakMap.prototype.set",!0),y=t("WeakMap.prototype.has",!0),l=t("Map.prototype.get",!0),d=t("Map.prototype.set",!0),g=t("Map.prototype.has",!0),listGetNode=function(r,t){for(var o,i=r;null!==(o=i.next);i=o)if(o.key===t)return i.next=o.next,o.next=r.next,r.next=o,o};return fo=function getSideChannel(){var r,t,m,b={assert:function(r){if(!b.has(r))throw new i("Side channel does not contain "+o(r))},get:function(o){if(a&&o&&("object"==typeof o||"function"==typeof o)){if(r)return p(r,o)}else if(u){if(t)return l(t,o)}else if(m)return function(r,t){var o=listGetNode(r,t);return o&&o.value}(m,o)},has:function(o){if(a&&o&&("object"==typeof o||"function"==typeof o)){if(r)return y(r,o)}else if(u){if(t)return g(t,o)}else if(m)return function(r,t){return!!listGetNode(r,t)}(m,o);return!1},set:function(o,i){a&&o&&("object"==typeof o||"function"==typeof o)?(r||(r=new a),c(r,o,i)):u?(t||(t=new u),d(t,o,i)):(m||(m={key:{},next:null}),function(r,t,o){var i=listGetNode(r,t);i?i.value=o:r.next={key:t,next:r.next,value:o}}(m,o,i))}};return b},fo}function requireImplementation(){if(mo)return go;mo=1;var numberIsNaN=function(r){return r!=r};return go=function is(r,t){return 0===r&&0===t?1/r==1/t:r===t||!(!numberIsNaN(r)||!numberIsNaN(t))}}function requirePolyfill(){if(ho)return bo;ho=1;var r=requireImplementation();return bo=function getPolyfill(){return"function"==typeof Object.is?Object.is:r}}function requireShim(){if(Ao)return vo;Ao=1;var r=requirePolyfill(),t=requireDefineProperties();return vo=function shimObjectIs(){var o=r();return t(Object,{is:o},{is:function testObjectIs(){return Object.is!==o}}),o},vo}function requireShams(){if(wo)return Oo;wo=1;var r=requireShams$3();return Oo=function hasToStringTagShams(){return r()&&!!Symbol.toStringTag}}function requireIsArguments(){if(Eo)return jo;Eo=1;var r=requireShams()(),t=requireCallBound$1()("Object.prototype.toString"),o=function isArguments(o){return!(r&&o&&"object"==typeof o&&Symbol.toStringTag in o)&&"[object Arguments]"===t(o)},i=function isArguments(r){return!!o(r)||null!==r&&"object"==typeof r&&"length"in r&&"number"==typeof r.length&&r.length>=0&&"[object Array]"!==t(r)&&"callee"in r&&"[object Function]"===t(r.callee)},a=function(){return o(arguments)}();return o.isLegacyArguments=i,jo=a?o:i}var To,_o,xo,No,Ro,Bo,Uo,Mo,Do,ko,Co,$o,Go,Wo,zo,Jo={exports:{}};function requireIsArrayBuffer(){if(xo)return _o;xo=1;var r=function requireCallBind$1(){return To||(To=1,function(r){var t=requireSetFunctionLength(),o=requireEsDefineProperty$1(),i=requireCallBindApplyHelpers(),a=requireApplyBind();r.exports=function callBind(r){var o=i(arguments),a=r.length-(arguments.length-1);return t(o,1+(a>0?a:0),!0)},o?o(r.exports,"apply",{value:a}):r.exports.apply=a}(Jo)),Jo.exports}(),t=requireCallBound$1(),o=requireGetIntrinsic$2()("%ArrayBuffer%",!0),i=t("ArrayBuffer.prototype.byteLength",!0),a=t("Object.prototype.toString"),u=!!o&&!i&&new o(0).slice,p=!!u&&r(u);return _o=i||p?function isArrayBuffer(r){if(!r||"object"!=typeof r)return!1;try{return i?i(r):p(r,0),!0}catch(r){return!1}}:o?function isArrayBuffer(r){return"[object ArrayBuffer]"===a(r)}:function isArrayBuffer(r){return!1}}function requireIsDateObject(){if(Ro)return No;Ro=1;var r=requireCallBound$1(),t=r("Date.prototype.getDay"),o=r("Object.prototype.toString"),i=requireShams()();return No=function isDateObject(r){return"object"==typeof r&&null!==r&&(i?function tryDateGetDayCall(r){try{return t(r),!0}catch(r){return!1}}(r):"[object Date]"===o(r))}}function requireIsRegex(){if(Uo)return Bo;Uo=1;var r,t,o,i,a=requireCallBound(),u=requireShams()();if(u){r=a("Object.prototype.hasOwnProperty"),t=a("RegExp.prototype.exec"),o={};var throwRegexMarker=function(){throw o};i={toString:throwRegexMarker,valueOf:throwRegexMarker},"symbol"==typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=throwRegexMarker)}var p=a("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor;return Bo=u?function isRegex(a){if(!a||"object"!=typeof a)return!1;var u=c(a,"lastIndex");if(!(u&&r(u,"value")))return!1;try{t(a,i)}catch(r){return r===o}}:function isRegex(r){return!(!r||"object"!=typeof r&&"function"!=typeof r)&&"[object RegExp]"===p(r)}}function requireIsSharedArrayBuffer(){if(Do)return Mo;Do=1;var r=requireCallBound()("SharedArrayBuffer.prototype.byteLength",!0);return Mo=r?function isSharedArrayBuffer(t){if(!t||"object"!=typeof t)return!1;try{return r(t),!0}catch(r){return!1}}:function isSharedArrayBuffer(r){return!1}}function requireIsString(){if(Co)return ko;Co=1;var r=String.prototype.valueOf,t=Object.prototype.toString,o=requireShams()();return ko=function isString(i){return"string"==typeof i||"object"==typeof i&&(o?function tryStringObject(t){try{return r.call(t),!0}catch(r){return!1}}(i):"[object String]"===t.call(i))}}function requireIsNumberObject(){if(Go)return $o;Go=1;var r=Number.prototype.toString,t=Object.prototype.toString,o=requireShams()();return $o=function isNumberObject(i){return"number"==typeof i||"object"==typeof i&&(o?function tryNumberObject(t){try{return r.call(t),!0}catch(r){return!1}}(i):"[object Number]"===t.call(i))}}function requireIsBooleanObject(){if(zo)return Wo;zo=1;var r=requireCallBound(),t=r("Boolean.prototype.toString"),o=r("Object.prototype.toString"),i=requireShams()();return Wo=function isBoolean(r){return"boolean"==typeof r||null!==r&&"object"==typeof r&&(i&&Symbol.toStringTag in r?function booleanBrandCheck(r){try{return t(r),!0}catch(r){return!1}}(r):"[object Boolean]"===o(r))}}var Vo,Ho={exports:{}};function requireIsSymbol(){if(Vo)return Ho.exports;Vo=1;var r=Object.prototype.toString;if(requireHasSymbols$1()()){var t=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;Ho.exports=function isSymbol(i){if("symbol"==typeof i)return!0;if("[object Symbol]"!==r.call(i))return!1;try{return function isRealSymbolObject(r){return"symbol"==typeof r.valueOf()&&o.test(t.call(r))}(i)}catch(r){return!1}}}else Ho.exports=function isSymbol(r){return!1};return Ho.exports}var Lo,Ko,Qo,Xo,Yo,Zo,ei,ri,ti,ni,oi,ii={exports:{}};function requireIsBigint(){if(Qo)return ii.exports;if(Qo=1,function requireHasBigints(){if(Ko)return Lo;Ko=1;var r="undefined"!=typeof BigInt&&BigInt;return Lo=function hasNativeBigInts(){return"function"==typeof r&&"function"==typeof BigInt&&"bigint"==typeof r(42)&&"bigint"==typeof BigInt(42)}}()()){var r=BigInt.prototype.valueOf;ii.exports=function isBigInt(t){return null!=t&&"boolean"!=typeof t&&"string"!=typeof t&&"number"!=typeof t&&"symbol"!=typeof t&&"function"!=typeof t&&("bigint"==typeof t||function tryBigIntObject(t){try{return r.call(t),!0}catch(r){}return!1}(t))}}else ii.exports=function isBigInt(r){return!1};return ii.exports}function requireWhichBoxedPrimitive(){if(Yo)return Xo;Yo=1;var r=requireIsString(),t=requireIsNumberObject(),o=requireIsBooleanObject(),i=requireIsSymbol(),a=requireIsBigint();return Xo=function whichBoxedPrimitive(u){return null==u||"object"!=typeof u&&"function"!=typeof u?null:r(u)?"String":t(u)?"Number":o(u)?"Boolean":i(u)?"Symbol":a(u)?"BigInt":void 0}}function requireIsMap(){if(ei)return Zo;ei=1;var r,t="function"==typeof Map&&Map.prototype?Map:null,o="function"==typeof Set&&Set.prototype?Set:null;t||(r=function isMap(r){return!1});var i=t?Map.prototype.has:null,a=o?Set.prototype.has:null;return r||i||(r=function isMap(r){return!1}),Zo=r||function isMap(r){if(!r||"object"!=typeof r)return!1;try{if(i.call(r),a)try{a.call(r)}catch(r){return!0}return r instanceof t}catch(r){}return!1}}function requireIsSet(){if(ti)return ri;ti=1;var r,t="function"==typeof Map&&Map.prototype?Map:null,o="function"==typeof Set&&Set.prototype?Set:null;o||(r=function isSet(r){return!1});var i=t?Map.prototype.has:null,a=o?Set.prototype.has:null;return r||a||(r=function isSet(r){return!1}),ri=r||function isSet(r){if(!r||"object"!=typeof r)return!1;try{if(a.call(r),i)try{i.call(r)}catch(r){return!0}return r instanceof o}catch(r){}return!1}}var ai,ui,pi,ci,yi,li,fi,si,di,gi,mi,bi={exports:{}};function requireIsWeakset(){if(ai)return bi.exports;ai=1;var r=requireGetIntrinsic$2(),t=requireCallBound$1(),o=r("%WeakSet%",!0),i=t("WeakSet.prototype.has",!0);if(i){var a=t("WeakMap.prototype.has",!0);bi.exports=function isWeakSet(r){if(!r||"object"!=typeof r)return!1;try{if(i(r,i),a)try{a(r,a)}catch(r){return!0}return r instanceof o}catch(r){}return!1}}else bi.exports=function isWeakSet(r){return!1};return bi.exports}function requireWhichCollection(){if(pi)return ui;pi=1;var r=requireIsMap(),t=requireIsSet(),o=function requireIsWeakmap(){if(oi)return ni;oi=1;var r,t="function"==typeof WeakMap&&WeakMap.prototype?WeakMap:null,o="function"==typeof WeakSet&&WeakSet.prototype?WeakSet:null;t||(r=function isWeakMap(r){return!1});var i=t?t.prototype.has:null,a=o?o.prototype.has:null;return r||i||(r=function isWeakMap(r){return!1}),ni=r||function isWeakMap(r){if(!r||"object"!=typeof r)return!1;try{if(i.call(r,i),a)try{a.call(r,a)}catch(r){return!0}return r instanceof t}catch(r){}return!1}}(),i=requireIsWeakset();return ui=function whichCollection(a){if(a&&"object"==typeof a){if(r(a))return"Map";if(t(a))return"Set";if(o(a))return"WeakMap";if(i(a))return"WeakSet"}return!1}}function requireIsCallable(){if(yi)return ci;yi=1;var r,t,o=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw t}}),t={},i((function(){throw 42}),null,r)}catch(r){r!==t&&(i=null)}else i=null;var a=/^\s*class\b/,u=function isES6ClassFunction(r){try{var t=o.call(r);return a.test(t)}catch(r){return!1}},p=function tryFunctionToStr(r){try{return!u(r)&&(o.call(r),!0)}catch(r){return!1}},c=Object.prototype.toString,y="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),d=function isDocumentDotAll(){return!1};if("object"==typeof document){var g=document.all;c.call(g)===c.call(document.all)&&(d=function isDocumentDotAll(r){if((l||!r)&&(void 0===r||"object"==typeof r))try{var t=c.call(r);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==r("")}catch(r){}return!1})}return ci=i?function isCallable(o){if(d(o))return!0;if(!o)return!1;if("function"!=typeof o&&"object"!=typeof o)return!1;try{i(o,null,r)}catch(r){if(r!==t)return!1}return!u(o)&&p(o)}:function isCallable(r){if(d(r))return!0;if(!r)return!1;if("function"!=typeof r&&"object"!=typeof r)return!1;if(y)return p(r);if(u(r))return!1;var t=c.call(r);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&p(r)}}function requireForEach(){if(fi)return li;fi=1;var r=requireIsCallable(),t=Object.prototype.toString,o=Object.prototype.hasOwnProperty;return li=function forEach(i,a,u){if(!r(a))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=u),function isArray(r){return"[object Array]"===t.call(r)}(i)?function forEachArray(r,t,i){for(var a=0,u=r.length;a<u;a++)o.call(r,a)&&(null==i?t(r[a],a,r):t.call(i,r[a],a,r))}(i,a,p):"string"==typeof i?function forEachString(r,t,o){for(var i=0,a=r.length;i<a;i++)null==o?t(r.charAt(i),i,r):t.call(o,r.charAt(i),i,r)}(i,a,p):function forEachObject(r,t,i){for(var a in r)o.call(r,a)&&(null==i?t(r[a],a,r):t.call(i,r[a],a,r))}(i,a,p)},li}function requirePossibleTypedArrayNames(){return di?si:(di=1,si=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"])}function requireAvailableTypedArrays(){if(mi)return gi;mi=1;var r=requirePossibleTypedArrayNames(),t="undefined"==typeof globalThis?P:globalThis;return gi=function availableTypedArrays(){for(var o=[],i=0;i<r.length;i++)"function"==typeof t[r[i]]&&(o[o.length]=r[i]);return o}}var hi,vi,Ai,Si,Pi,Oi,wi,ji,Ei,qi,Ii,Fi={exports:{}};function requireCallBind(){return hi||(hi=1,function(r){var t=requireSetFunctionLength(),o=requireEsDefineProperty$1(),i=requireCallBindApplyHelpers(),a=requireApplyBind();r.exports=function callBind(r){var o=i(arguments),a=r.length-(arguments.length-1);return t(o,1+(a>0?a:0),!0)},o?o(r.exports,"apply",{value:a}):r.exports.apply=a}(Fi)),Fi.exports}function requireGOPD(){return Ai?vi:(Ai=1,vi=Object.getOwnPropertyDescriptor)}function requireGopd(){if(Pi)return Si;Pi=1;var r=requireGOPD();if(r)try{r([],"length")}catch(t){r=null}return Si=r}function requireWhichTypedArray(){if(wi)return Oi;wi=1;var r=requireForEach(),t=requireAvailableTypedArrays(),o=requireCallBind(),i=requireCallBound$1(),a=requireGopd(),u=requireGetProto(),p=i("Object.prototype.toString"),c=requireShams()(),y="undefined"==typeof globalThis?P:globalThis,l=t(),d=i("String.prototype.slice"),g=i("Array.prototype.indexOf",!0)||function indexOf(r,t){for(var o=0;o<r.length;o+=1)if(r[o]===t)return o;return-1},m={__proto__:null};r(l,c&&a&&u?function(r){var t=new y[r];if(Symbol.toStringTag in t&&u){var i=u(t),p=a(i,Symbol.toStringTag);if(!p&&i){var c=u(i);p=a(c,Symbol.toStringTag)}m["$"+r]=o(p.get)}}:function(r){var t=new y[r],i=t.slice||t.set;i&&(m["$"+r]=o(i))});return Oi=function whichTypedArray(t){if(!t||"object"!=typeof t)return!1;if(!c){var o=d(p(t),8,-1);return g(l,o)>-1?o:"Object"===o&&function tryAllSlices(t){var o=!1;return r(m,(function(r,i){if(!o)try{r(t),o=d(i,1)}catch(r){}})),o}(t)}return a?function tryAllTypedArrays(t){var o=!1;return r(m,(function(r,i){if(!o)try{"$"+r(t)===i&&(o=d(i,1))}catch(r){}})),o}(t):null}}function requireArrayBufferByteLength(){if(Ei)return ji;Ei=1;var r=requireCallBound$1()("ArrayBuffer.prototype.byteLength",!0),t=requireIsArrayBuffer();return ji=function byteLength(o){return t(o)?r?r(o):o.byteLength:NaN}}var Ti=function requireDeepEqual(){if(Ii)return qi;Ii=1;var r=requireObject_assign(),t=requireCallBound(),o=requireRegexp_prototype_flags(),i=requireGetIntrinsic$2(),a=function requireNode(){if(io)return oo;io=1;var r=Symbol.iterator;return oo=function getIterator(t){if(null!=t&&void 0!==t[r])return t[r]()}}(),u=requireSideChannel(),p=function requireObjectIs(){if(Po)return So;Po=1;var r=requireDefineProperties(),t=requireCallBind$3(),o=requireImplementation(),i=requirePolyfill(),a=requireShim(),u=t(i(),Object);return r(u,{getPolyfill:i,implementation:o,shim:a}),So=u}(),c=requireIsArguments(),y=function requireIsarray(){if(Io)return qo;Io=1;var r={}.toString;return qo=Array.isArray||function(t){return"[object Array]"==r.call(t)}}(),l=requireIsArrayBuffer(),d=requireIsDateObject(),g=requireIsRegex(),m=requireIsSharedArrayBuffer(),b=requireObjectKeys(),h=requireWhichBoxedPrimitive(),v=requireWhichCollection(),A=requireWhichTypedArray(),S=requireArrayBufferByteLength(),P=t("SharedArrayBuffer.prototype.byteLength",!0),O=t("Date.prototype.getTime"),w=Object.getPrototypeOf,j=t("Object.prototype.toString"),E=i("%Set%",!0),q=t("Map.prototype.has",!0),I=t("Map.prototype.get",!0),T=t("Map.prototype.size",!0),_=t("Set.prototype.add",!0),x=t("Set.prototype.delete",!0),N=t("Set.prototype.has",!0),R=t("Set.prototype.size",!0);function setHasEqualElement(r,t,o,i){for(var u,p=a(r);(u=p.next())&&!u.done;)if(internalDeepEqual(t,u.value,o,i))return x(r,u.value),!0;return!1}function findLooseMatchingPrimitives(r){return void 0===r?null:"object"!=typeof r?"symbol"!=typeof r&&("string"!=typeof r&&"number"!=typeof r||+r==+r):void 0}function mapMightHaveLoosePrim(t,o,i,a,u,p){var c=findLooseMatchingPrimitives(i);if(null!=c)return c;var y=I(o,c),l=r({},u,{strict:!1});return!(void 0===y&&!q(o,c)||!internalDeepEqual(a,y,l,p))&&(!q(t,c)&&internalDeepEqual(a,y,l,p))}function setMightHaveLoosePrim(r,t,o){var i=findLooseMatchingPrimitives(o);return null!=i?i:N(t,i)&&!N(r,i)}function mapHasEqualEntry(r,t,o,i,u,p){for(var c,y,l=a(r);(c=l.next())&&!c.done;)if(internalDeepEqual(o,y=c.value,u,p)&&internalDeepEqual(i,I(t,y),u,p))return x(r,y),!0;return!1}function internalDeepEqual(t,i,u,x){var B=u||{};if(B.strict?p(t,i):t===i)return!0;if(h(t)!==h(i))return!1;if(!t||!i||"object"!=typeof t&&"object"!=typeof i)return B.strict?p(t,i):t==i;var U,M=x.has(t),D=x.has(i);if(M&&D){if(x.get(t)===x.get(i))return!0}else U={};return M||x.set(t,U),D||x.set(i,U),function objEquiv(t,i,u,p){var h,x;if(typeof t!=typeof i)return!1;if(null==t||null==i)return!1;if(j(t)!==j(i))return!1;if(c(t)!==c(i))return!1;var B=y(t),U=y(i);if(B!==U)return!1;var M=t instanceof Error,D=i instanceof Error;if(M!==D)return!1;if((M||D)&&(t.name!==i.name||t.message!==i.message))return!1;var k=g(t),C=g(i);if(k!==C)return!1;if((k||C)&&(t.source!==i.source||o(t)!==o(i)))return!1;var $=d(t),G=d(i);if($!==G)return!1;if(($||G)&&O(t)!==O(i))return!1;if(u.strict&&w&&w(t)!==w(i))return!1;var W=A(t),z=A(i);if(W!==z)return!1;if(W||z){if(t.length!==i.length)return!1;for(h=0;h<t.length;h++)if(t[h]!==i[h])return!1;return!0}var J=isBuffer(t),V=isBuffer(i);if(J!==V)return!1;if(J||V){if(t.length!==i.length)return!1;for(h=0;h<t.length;h++)if(t[h]!==i[h])return!1;return!0}var H=l(t),L=l(i);if(H!==L)return!1;if(H||L)return S(t)===S(i)&&("function"==typeof Uint8Array&&internalDeepEqual(new Uint8Array(t),new Uint8Array(i),u,p));var K=m(t),Q=m(i);if(K!==Q)return!1;if(K||Q)return P(t)===P(i)&&("function"==typeof Uint8Array&&internalDeepEqual(new Uint8Array(t),new Uint8Array(i),u,p));if(typeof t!=typeof i)return!1;var X=b(t),Y=b(i);if(X.length!==Y.length)return!1;for(X.sort(),Y.sort(),h=X.length-1;h>=0;h--)if(X[h]!=Y[h])return!1;for(h=X.length-1;h>=0;h--)if(!internalDeepEqual(t[x=X[h]],i[x],u,p))return!1;var Z=v(t),ee=v(i);if(Z!==ee)return!1;if("Set"===Z||"Set"===ee)return function setEquiv(r,t,o,i){if(R(r)!==R(t))return!1;var u,p,c,y=a(r),l=a(t);for(;(u=y.next())&&!u.done;)if(u.value&&"object"==typeof u.value)c||(c=new E),_(c,u.value);else if(!N(t,u.value)){if(o.strict)return!1;if(!setMightHaveLoosePrim(r,t,u.value))return!1;c||(c=new E),_(c,u.value)}if(c){for(;(p=l.next())&&!p.done;)if(p.value&&"object"==typeof p.value){if(!setHasEqualElement(c,p.value,o.strict,i))return!1}else if(!o.strict&&!N(r,p.value)&&!setHasEqualElement(c,p.value,o.strict,i))return!1;return 0===R(c)}return!0}(t,i,u,p);if("Map"===Z)return function mapEquiv(t,o,i,u){if(T(t)!==T(o))return!1;var p,c,y,l,d,g,m=a(t),b=a(o);for(;(p=m.next())&&!p.done;)if(l=p.value[0],d=p.value[1],l&&"object"==typeof l)y||(y=new E),_(y,l);else if(void 0===(g=I(o,l))&&!q(o,l)||!internalDeepEqual(d,g,i,u)){if(i.strict)return!1;if(!mapMightHaveLoosePrim(t,o,l,d,i,u))return!1;y||(y=new E),_(y,l)}if(y){for(;(c=b.next())&&!c.done;)if(l=c.value[0],g=c.value[1],l&&"object"==typeof l){if(!mapHasEqualEntry(y,t,l,g,i,u))return!1}else if(!(i.strict||t.has(l)&&internalDeepEqual(I(t,l),g,i,u)||mapHasEqualEntry(y,t,l,g,r({},i,{strict:!1}),u)))return!1;return 0===R(y)}return!0}(t,i,u,p);return!0}(t,i,B,x)}function isBuffer(r){return!(!r||"object"!=typeof r||"number"!=typeof r.length)&&("function"==typeof r.copy&&"function"==typeof r.slice&&(!(r.length>0&&"number"!=typeof r[0])&&!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))))}return qi=function deepEqual(r,t,o){return internalDeepEqual(r,t,o,u())}}(),_i=getDefaultExportFromCjs(Ti);function normalizeFieldImpl(r,t,o,i){var a,u;if(null!=i||(i={}),null!==(u=(a=i).path)&&void 0!==u||(a.path=""),!Object.prototype.hasOwnProperty.call(t,o))return!1;var p=Object.getPrototypeOf(r);if(hasOwnPrototypeFunction(p,"normalizeField")&&p.prototype.normalizeField.call(t,o,i))return!0;var y=getFieldMetadata(sr(r),o,yr);if(void 0===y)return!1;var l=t[o];return function normalizeNullishField(r,t,o,i){return null==i}(0,0,0,l)||function normalizeArrayField(r,t,o,i,a,u){if(Array.isArray(i)||c(i)){var p="".concat(a.path,".").concat(o),y={type:getFieldElementType(r,o,p,a),path:p,types:a.types,elementTypes:a.elementTypes};return t[o]=i.map((function(r){return null==r?r:u(r,y)})),!0}return!1}(r,t,o,l,i,y)||function normalizeSetField(r,t,o,i,a,u){if(i instanceof Set){var p="".concat(a.path,".").concat(o),c={type:getFieldElementType(r,o,p,a),path:p,types:a.types,elementTypes:a.elementTypes};return t[o]=new Set(Array.from(i,(function(r){return u(r,c)}))),!0}return!1}(r,t,o,l,i,y)||function normalizeMapField(r,t,o,i,a,u){if(i instanceof Map){var p="".concat(a.path,".").concat(o),c={type:getFieldElementType(r,o,p,a),path:p,types:a.types,elementTypes:a.elementTypes};return t[o]=new Map(Array.from(i,(function(r){var t=d(r,2),o=t[0],i=t[1];return[o,u(i,c)]}))),!0}return!1}(r,t,o,l,i,y)||function normalizeNormalField(r,t,o,i,a,u){var p="".concat(a.path,".").concat(o),c={type:getFieldType(r,o,p,a),path:p,types:a.types,elementTypes:a.elementTypes};return t[o]=u(i,c),!0}(r,t,o,l,i,y)}function ownKeys$2(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread$2(r){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$2(Object(i),!0).forEach((function(o){t(r,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ownKeys$2(Object(i)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))}))}return r}function toJsonImpl(r,t,i){var a=hr.merge("toJSON",i);a.normalize&&(r=defaultNormalizer(r=o(r,vr)));var u=_objectSpread$2(_objectSpread$2({},vr),{},{pojo:!0,disableHooks:!0,useToJSON:!0,convertNaming:a.convertNaming,sourceNamingStyle:a.sourceNamingStyle,targetNamingStyle:a.targetNamingStyle,removeEmptyFields:a.removeEmptyFields,skipRootToJSON:a.skipRootToJSON});return o(r,u)}function toJsonStringImpl(r,t,o){var i=hr.merge("toJSON",o),a=t.toJSON("",i);return v.stringify(a,null,i.space)}function getFieldLabel(r,t){var o=getFieldMetadata(r,t,cr);return o?o.label:t}function getInstanceName(r,t){var o=r[nr];return o?t[o]:void 0}function isFieldNonEmpty(r,t){return!0===getFieldMetadata(r,t,pr)}function isFieldNullable(r,t){return!0===getFieldMetadata(r,t,ur)}function getElementValidationContext(r,t,o,i,a){var u,p,c,y,l,d={instance:o,owner:null!==(u=a.owner)&&void 0!==u?u:getInstanceName(t,o),field:i,type:null!==(p=a.type)&&void 0!==p?p:getFieldElementType(r,i),label:null!==(c=a.label)&&void 0!==c?c:getFieldLabel(t,i),nullable:null!==(y=a.nullable)&&void 0!==y?y:isFieldNullable(t,i),nonEmpty:null!==(l=a.nonEmpty)&&void 0!==l?l:isFieldNonEmpty(t,i)};return Object.assign(d,a)}function validateEmptyField(r,t,o,i,a){if(u(i)){if(a.nonEmpty||isFieldNonEmpty(r,o)){var p,c,y=null!==(p=a.label)&&void 0!==p?p:getFieldLabel(r,o),l=null!==(c=a.owner)&&void 0!==c?c:getInstanceName(r,t),d=l?"The ".concat(y," of ").concat(l," cannot be empty."):"The ".concat(y," cannot be empty.");return new S(!1,d)}return new S(!0)}return null}function validateNormalField(r,t,o,i,a,u,p){var c=function getValidationContext(r,t,o,i,a){var u,p,c,y,l,d={instance:o,owner:null!==(u=a.owner)&&void 0!==u?u:getInstanceName(t,o),field:i,type:null!==(p=a.type)&&void 0!==p?p:getFieldType(r,i),label:null!==(c=a.label)&&void 0!==c?c:getFieldLabel(t,i),nullable:null!==(y=a.nullable)&&void 0!==y?y:isFieldNullable(t,i),nonEmpty:null!==(l=a.nonEmpty)&&void 0!==l?l:isFieldNonEmpty(t,i)};return Object.assign(d,a)}(r,t,o,i,p);return u(a,c)}function validateFieldImpl(r,t,o,i){var a,u,p;if(!Object.prototype.hasOwnProperty.call(t,o))return null;var y=Object.getPrototypeOf(r);if(hasOwnPrototypeFunction(y,"validateField")){var l=y.prototype.validateField.call(t,o,i);if(null!==l)return l}var d=sr(r),g=getFieldMetadata(d,o,lr);if(void 0===g)return new S(!0);var m=t[o];return null!==(a=null!==(u=null!==(p=function validateArrayField(r,t,o,i,a,u,p){if(Array.isArray(a)||c(a)){var y=validateEmptyField(t,o,i,a,p);if(y)return y;var l=getElementValidationContext(r,t,o,i,p),d=a.map((function(r,t){return l.index=t,u(r,l)}));return S.merge(d)}return null}(r,d,t,o,m,g,i))&&void 0!==p?p:function validateSetField(r,t,o,i,a,u,p){if(a instanceof Set){var c=validateEmptyField(t,o,i,a,p);if(c)return c;var y=getElementValidationContext(r,t,o,i,p),l=Array.from(a,(function(r,t){return y.index=t,u(r,y)}));return S.merge(l)}return null}(r,d,t,o,m,g,i))&&void 0!==u?u:function validateMapField(r,t,o,i,a,u,p){if(a instanceof Map){var c=validateEmptyField(t,o,i,a,p);if(c)return c;var y=getElementValidationContext(r,t,o,i,p),l=Array.from(a,(function(r,t){return y.index=t,u(r[1],y)}));return S.merge(l)}return null}(r,d,t,o,m,g,i))&&void 0!==a?a:validateNormalField(r,d,t,o,m,g,i)}function ownKeys$1(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread$1(r){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$1(Object(i),!0).forEach((function(o){t(r,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ownKeys$1(Object(i)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))}))}return r}function Model(t,o){if(null===o||"object"!==r(o))throw new TypeError("The context must be an object.");if("function"!=typeof t||"class"!==o.kind)throw new TypeError("The `@Model` can only decorate a class.");dr(t,o.metadata),setClassMetadata(t,er,"model"),hasOwnPrototypeFunction(t,"assign")||(t.prototype.assign=function assign(r){return assignImpl(t,this,r,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}),hasOwnPrototypeFunction(t,"clear")||(t.prototype.clear=function clear(){return function clearImpl(r,t){requirePrototypeMethod(r,"assign");var o=getDefaultInstance(r);return t.assign(o,{normalize:!1,convertNaming:!1})}(t,this)}),hasOwnPrototypeFunction(t,"clone")||(t.prototype.clone=function clone(){return function cloneImpl(r,t){return requirePrototypeMethod(r,"assign"),(new r).assign(t,{normalize:!1,convertNaming:!1})}(t,this)}),hasOwnPrototypeFunction(t,"isEmpty")||(t.prototype.isEmpty=function isEmpty(){return function isEmptyImpl(r,t){var o=getDefaultInstance(r);return _i(t,o)}(t,this)}),hasOwnPrototypeFunction(t,"equals")||(t.prototype.equals=function equals(r){return function equalsImpl(r,t){return r===t||(null==t?null==r:null!=r&&Object.getPrototypeOf(r)===Object.getPrototypeOf(t)&&_i(r,t))}(this,r)}),hasOwnPrototypeFunction(t,"normalize")||(t.prototype.normalize=function normalize(){return function normalizeImpl(r,t,o,i){if(null==o||"*"===o)Object.keys(t).forEach((function(r){return t.normalizeField(r,i)}));else if(Array.isArray(o))o.forEach((function(r){return t.normalizeField(r,i)}));else{if("string"!=typeof o)throw new TypeError("The argument ".concat(r.name,".normalize() must be a string or an array of strings."));t.normalizeField(o,i)}return t}(t,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}),hasOwnPrototypeFunction(t,"normalizeField")||(t.prototype.normalizeField=function normalizeField(r){return normalizeFieldImpl(t,this,r,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}),hasOwnPrototypeFunction(t,"validate")||(t.prototype.validate=function validate(){return function validateImpl(r,t,o,i){if(null==o||"*"===o){var a=Object.keys(t).map((function(r){return t.validateField(r,i)}));return S.merge(a)}if(Array.isArray(o)){var u=o.map((function(r){return t.validateField(r,i)}));return S.merge(u)}if("string"==typeof o){var p=t.validateField(o,i);return null!=p?p:new S(!0)}throw new TypeError("The argument of ".concat(r.name,".validate()")+" must be a string or an array of strings.")}(t,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}),hasOwnPrototypeFunction(t,"validateField")||(t.prototype.validateField=function validateField(r){return validateFieldImpl(t,this,r,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}),hasOwnProperty(t,"id")&&!hasPrototypeFunction(t,"generateId")&&(setClassMetadata(t,tr,0),t.prototype.generateId=function generateId(){return function generateIdImpl(r,t){var o=getClassMetadata(r,tr);return t.id=o,setClassMetadata(r,tr,o+1),t.id}(t,this)}),hasOwnPrototypeFunction(t,"toJSON")||(t.prototype.toJSON=function toJSON(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"object"===r(t)&&(o=t,t=""),toJsonImpl(this,0,_objectSpread$1(_objectSpread$1({},o),{},{skipRootToJSON:!0}))}),hasOwnPrototypeFunction(t,"toJsonString")||(t.prototype.toJsonString=function toJsonString(){return toJsonStringImpl(0,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}),Object.prototype.hasOwnProperty.call(t,"create")||(t.create=function create(r){return createImpl(t,r,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}),Object.prototype.hasOwnProperty.call(t,"createArray")||(t.createArray=function createArray(r){return createArrayImpl(t,r,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}),Object.prototype.hasOwnProperty.call(t,"createPage")||(t.createPage=function createPage(r){return createPageImpl(t,r,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}),Object.prototype.hasOwnProperty.call(t,"isNullishOrEmpty")||(t.isNullishOrEmpty=function isNullishOrEmpty(r){return function isNullishOrEmptyImpl(r,t){if(requirePrototypeMethod(r,"isEmpty"),null==t)return!0;if(!(t instanceof r))throw new TypeError("The object must be an instance of the class ".concat(r.name,"."));return t.isEmpty()}(t,r)}),Object.prototype.hasOwnProperty.call(t,"parseJsonString")||(t.parseJsonString=function parseJsonString(r){return function parseJsonStringImpl(r,t,o){var i=v.parse(t),a=new r;return assignImpl(r,a,i,o)}(t,r,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)})}function NameField(r,t){var o=t.kind,i=t.name,a=t.metadata;if("field"!==o)throw new SyntaxError("The decorator @NameField can only decorate a class field: ".concat(i));var u=a[nr];if(u)throw new SyntaxError('@NameField cannot decorate on "'.concat(i,'", since it has already decorated on "').concat(u,'".'));a[nr]=i}function NonEmpty(r,t){var o=t.kind,i=t.name,a=t.metadata;if("field"!==o)throw new SyntaxError("The decorator @NonEmpty can only decorate a class field: ".concat(i));setFieldMetadata(a,i,pr,!0)}function isDecoratorContext(t){return null!==t&&"object"===r(t)&&null!==t.metadata&&"object"===r(t.metadata)&&"string"==typeof t.kind&&"string"==typeof t.name}function setNormalizer(t,o,i){var a=o.metadata,u=o.kind,p=o.name;if("field"!==u)throw new SyntaxError("The @Normalizable must decorate a class field: ".concat(p));if("function"!=typeof i)throw new TypeError('The argument of @Normalizable decorated on the "'.concat(p,'" field must be a function, but it is a ').concat(r(i),"."));setFieldMetadata(a,p,yr,i)}function Normalizable(){if(1===arguments.length){var r,t=null!==(r=arguments.length<=0?void 0:arguments[0])&&void 0!==r?r:defaultNormalizer;return function(r,o){return setNormalizer(0,o,t)}}if(2!==arguments.length||!isDecoratorContext(arguments.length<=1?void 0:arguments[1]))throw new SyntaxError("Invalid use of @Normalizable decorator.");setNormalizer(0,arguments.length<=1?void 0:arguments[1],defaultNormalizer)}function normalize(r){return defaultNormalizer(r)}function Nullable(r,t){var o=t.kind,i=t.name,a=t.metadata;if("field"!==o)throw new SyntaxError("The decorator @Nullable can only decorate a class field: ".concat(i));setFieldMetadata(a,i,ur,!0)}function Readonly(r,t){if("field"!==t.kind)throw new Error("@Readonly can only be applied to class fields.");var o;return t.addInitializer((function initializer(){void 0!==o?function createImmediateReadonlyInitializer(r,t){return function immediateReadonlyInitializer(){Object.defineProperty(this,r,{value:t,writable:!1,configurable:!1,enumerable:!0})}}(t.name,o).call(this):function createDeferredReadonlyInitializer(r){return function deferredReadonlyInitializer(){var t;Object.defineProperty(this,r,{configurable:!0,enumerable:!0,get:function get(){return t},set:function set(o){t=o,Object.defineProperty(this,r,{value:o,writable:!1,configurable:!1,enumerable:!0})}})}}(t.name).call(this)})),function initializer(r){return o=r,r}}function stringifyId(r){return null==r?"":p(r)?r:v.stringify(r)}function ownKeys(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread(r){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys(Object(i),!0).forEach((function(o){t(r,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))}))}return r}function toJSON(r){return toJsonImpl(r,0,_objectSpread(_objectSpread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{skipRootToJSON:!1}))}function toJsonString(t,o){if("object"!==r(t))throw new TypeError("The object to be serialized must be an object.");t.constructor;return toJsonStringImpl(0,t,o)}function Type(r){return function decorate(t,o){var i=o.kind,a=o.name,u=o.metadata;if("field"!==i)throw new SyntaxError("The decorator @Type can only decorate a class field: ".concat(a));if("function"!=typeof r)throw new TypeError('The argument of @Type decorated on "'.concat(a,'" must be the constructor of a class.'));setFieldMetadata(u,a,ir,r)}}function defaultValidator(t,o){var i=o.owner,a=o.type,p=o.label,c=o.nullable,y=o.nonEmpty;if(null==t){if(c)return new S(!0);var l=i?"必须设置".concat(i,"的").concat(p,"的值"):"必须设置".concat(p,"的值");return new S(!1,l)}if(u(t)&&y){var d=i?"".concat(i,"的").concat(p,"不能为空"):"".concat(p,"不能为空");return new S(!1,d)}if(a){if(isEnumClass(a)&&"string"==typeof t){if(a.hasValue(t))return new S(!0);var g=i?"".concat(i,"的").concat(p,"的值不受支持: ").concat(t):"".concat(p,"的值不受支持: ").concat(t);return new S(!1,g)}if(t.constructor!==a){var m=i?"".concat(i,"的").concat(p,"必须是 ").concat(a.name," 类型"):"".concat(p,"必须是 ").concat(a.name," 类型");return new S(!1,m)}}return"object"===r(t)&&"function"==typeof t.validate?t.validate("*",{owner:i}):new S(!0)}function setValidator(t,o,i){var a=o.metadata,u=o.kind,p=o.name;if("field"!==u)throw new SyntaxError("The @Validatable must decorate a class field: ".concat(p));if("function"!=typeof i)throw new TypeError('The argument of @Validatable decorated on the "'.concat(p,'" field must be a function, but it is a ').concat(r(i),"."));setFieldMetadata(a,p,lr,i)}function Validatable(){if(1===arguments.length){var r,t=null!==(r=arguments.length<=0?void 0:arguments[0])&&void 0!==r?r:defaultValidator;return function(r,o){return setValidator(0,o,t)}}if(2!==arguments.length||!isDecoratorContext(arguments.length<=1?void 0:arguments[1]))throw new SyntaxError("Invalid use of @Validatable decorator.");setValidator(0,arguments.length<=1?void 0:arguments[1],defaultValidator)}export{hr as DefaultOptions,ElementType,Enum,Label,Model,NameField,NonEmpty,Normalizable,Nullable,st as Page,Readonly,Type,Validatable,assign,create,createArray,createPage,defaultNormalizer,enumNormalizer,getDefaultInstance,getFieldElementType,getFieldType,getSourceField,hasOwnProperty,hasOwnPrototypeFunction,hasProperty,hasPrototypeFunction,isEnumClass,isEnumerator,normalize,stringifyId,toJSON,toJsonString};//# sourceMappingURL=common-decorator.min.mjs.map
1
+ import t from"@babel/runtime/helpers/typeof";import r from"@babel/runtime/helpers/defineProperty";import o,{registerCloneHook as i}from"@qubit-ltd/clone";import{isUndefinedOrNull as a,deepEqual as c,isEmpty as u}from"@qubit-ltd/common-util";import{isString as l,isTypedArray as p,isCollection as d,isBuiltInClass as h}from"@qubit-ltd/type-detect";import m from"@babel/runtime/helpers/slicedToArray";import y from"@qubit-ltd/typeinfo";import g from"@babel/runtime/helpers/classCallCheck";import b from"@babel/runtime/helpers/createClass";import{NamingStyle as v}from"@qubit-ltd/naming-style";import w from"@qubit-ltd/json";import I from"url";var S,O,P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},E={},j={};function requireGlobalThis(){if(O)return S;O=1;var check=function(t){return t&&t.Math===Math&&t};return S=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof P&&P)||check("object"==typeof S&&S)||function(){return this}()||Function("return this")()}var q,T,R,N,U,C,_,A,D,L,$,k,z,x,M,V,H,W,K,J,G,B,Q,Z,Y,X,ee,te,re,ne,oe,ie,ae,ce={exports:{}};function requireDefineGlobalProperty(){if(N)return R;N=1;var t=requireGlobalThis(),r=Object.defineProperty;return R=function(o,i){try{r(t,o,{value:i,configurable:!0,writable:!0})}catch(r){t[o]=i}return i}}function requireSharedStore(){if(U)return ce.exports;U=1;var t=function requireIsPure(){return T?q:(T=1,q=!1)}(),r=requireGlobalThis(),o=requireDefineGlobalProperty(),i="__core-js_shared__",a=ce.exports=r[i]||o(i,{});return(a.versions||(a.versions=[])).push({version:"3.45.1",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),ce.exports}function requireShared(){if(_)return C;_=1;var t=requireSharedStore();return C=function(r,o){return t[r]||(t[r]=o||{})}}function requireFails(){return D?A:(D=1,A=function(t){try{return!!t()}catch(t){return!0}})}function requireFunctionBindNative(){if($)return L;$=1;var t=requireFails();return L=!t((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function requireFunctionUncurryThis(){if(z)return k;z=1;var t=requireFunctionBindNative(),r=Function.prototype,o=r.call,i=t&&r.bind.bind(o,o);return k=t?i:function(t){return function(){return o.apply(t,arguments)}},k}function requireIsNullOrUndefined(){return M?x:(M=1,x=function(t){return null==t})}function requireRequireObjectCoercible(){if(H)return V;H=1;var t=requireIsNullOrUndefined(),r=TypeError;return V=function(o){if(t(o))throw new r("Can't call method on "+o);return o}}function requireToObject(){if(K)return W;K=1;var t=requireRequireObjectCoercible(),r=Object;return W=function(o){return r(t(o))}}function requireHasOwnProperty(){if(G)return J;G=1;var t=requireFunctionUncurryThis(),r=requireToObject(),o=t({}.hasOwnProperty);return J=Object.hasOwn||function hasOwn(t,i){return o(r(t),i)}}function requireUid(){if(Q)return B;Q=1;var t=requireFunctionUncurryThis(),r=0,o=Math.random(),i=t(1.1.toString);return B=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++r+o,36)}}function requireEnvironmentV8Version(){if(ee)return X;ee=1;var t,r,o=requireGlobalThis(),i=function requireEnvironmentUserAgent(){if(Y)return Z;Y=1;var t=requireGlobalThis().navigator,r=t&&t.userAgent;return Z=r?String(r):""}(),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;return l&&(r=(t=l.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(r=+t[1]),X=r}function requireSymbolConstructorDetection(){if(re)return te;re=1;var t=requireEnvironmentV8Version(),r=requireFails(),o=requireGlobalThis().String;return te=!!Object.getOwnPropertySymbols&&!r((function(){var r=Symbol("symbol detection");return!o(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function requireUseSymbolAsUid(){if(oe)return ne;oe=1;var t=requireSymbolConstructorDetection();return ne=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function requireWellKnownSymbol(){if(ae)return ie;ae=1;var t=requireGlobalThis(),r=requireShared(),o=requireHasOwnProperty(),i=requireUid(),a=requireSymbolConstructorDetection(),c=requireUseSymbolAsUid(),u=t.Symbol,l=r("wks"),p=c?u.for||u:u&&u.withoutSetter||i;return ie=function(t){return o(l,t)||(l[t]=a&&o(u,t)?u[t]:p("Symbol."+t)),l[t]}}var ue,se,le,fe,pe,de,he,me,ye,ge,be,ve,we,Ie,Se,Oe,Pe,Ee,je,qe,Te,Re,Ne,Ue,Ce,_e,Fe,Ae,De,Le,$e,ke,ze,xe,Me,Ve,He={};function requireDescriptors(){if(se)return ue;se=1;var t=requireFails();return ue=!t((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function requireIsCallable(){if(fe)return le;fe=1;var t="object"==typeof document&&document.all;return le=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function requireIsObject(){if(de)return pe;de=1;var t=requireIsCallable();return pe=function(r){return"object"==typeof r?null!==r:t(r)}}function requireIe8DomDefine(){if(ge)return ye;ge=1;var t=requireDescriptors(),r=requireFails(),o=function requireDocumentCreateElement(){if(me)return he;me=1;var t=requireGlobalThis(),r=requireIsObject(),o=t.document,i=r(o)&&r(o.createElement);return he=function(t){return i?o.createElement(t):{}}}();return ye=!t&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))}function requireAnObject(){if(Ie)return we;Ie=1;var t=requireIsObject(),r=String,o=TypeError;return we=function(i){if(t(i))return i;throw new o(r(i)+" is not an object")}}function requireFunctionCall(){if(Oe)return Se;Oe=1;var t=requireFunctionBindNative(),r=Function.prototype.call;return Se=t?r.bind(r):function(){return r.apply(r,arguments)},Se}function requireGetBuiltIn(){if(Ee)return Pe;Ee=1;var t=requireGlobalThis(),r=requireIsCallable();return Pe=function(o,i){return arguments.length<2?(a=t[o],r(a)?a:void 0):t[o]&&t[o][i];var a},Pe}function requireIsSymbol(){if(Re)return Te;Re=1;var t=requireGetBuiltIn(),r=requireIsCallable(),o=function requireObjectIsPrototypeOf(){if(qe)return je;qe=1;var t=requireFunctionUncurryThis();return je=t({}.isPrototypeOf)}(),i=requireUseSymbolAsUid(),a=Object;return Te=i?function(t){return"symbol"==typeof t}:function(i){var c=t("Symbol");return r(c)&&o(c.prototype,a(i))}}function requireTryToString(){if(Ue)return Ne;Ue=1;var t=String;return Ne=function(r){try{return t(r)}catch(t){return"Object"}}}function requireACallable(){if(_e)return Ce;_e=1;var t=requireIsCallable(),r=requireTryToString(),o=TypeError;return Ce=function(i){if(t(i))return i;throw new o(r(i)+" is not a function")}}function requireGetMethod(){if(Ae)return Fe;Ae=1;var t=requireACallable(),r=requireIsNullOrUndefined();return Fe=function(o,i){var a=o[i];return r(a)?void 0:t(a)},Fe}function requireOrdinaryToPrimitive(){if(Le)return De;Le=1;var t=requireFunctionCall(),r=requireIsCallable(),o=requireIsObject(),i=TypeError;return De=function(a,c){var u,l;if("string"===c&&r(u=a.toString)&&!o(l=t(u,a)))return l;if(r(u=a.valueOf)&&!o(l=t(u,a)))return l;if("string"!==c&&r(u=a.toString)&&!o(l=t(u,a)))return l;throw new i("Can't convert object to primitive value")}}function requireToPrimitive(){if(ke)return $e;ke=1;var t=requireFunctionCall(),r=requireIsObject(),o=requireIsSymbol(),i=requireGetMethod(),a=requireOrdinaryToPrimitive(),c=requireWellKnownSymbol(),u=TypeError,l=c("toPrimitive");return $e=function(c,p){if(!r(c)||o(c))return c;var d,h=i(c,l);if(h){if(void 0===p&&(p="default"),d=t(h,c,p),!r(d)||o(d))return d;throw new u("Can't convert object to primitive value")}return void 0===p&&(p="number"),a(c,p)}}function requireToPropertyKey(){if(xe)return ze;xe=1;var t=requireToPrimitive(),r=requireIsSymbol();return ze=function(o){var i=t(o,"string");return r(i)?i:i+""}}function requireObjectDefineProperty(){if(Me)return He;Me=1;var t=requireDescriptors(),r=requireIe8DomDefine(),o=function requireV8PrototypeDefineBug(){if(ve)return be;ve=1;var t=requireDescriptors(),r=requireFails();return be=t&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}(),i=requireAnObject(),a=requireToPropertyKey(),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",h="writable";return He.f=t?o?function defineProperty(t,r,o){if(i(t),r=a(r),i(o),"function"==typeof t&&"prototype"===r&&"value"in o&&h in o&&!o[h]){var c=l(t,r);c&&c[h]&&(t[r]=o.value,o={configurable:d in o?o[d]:c[d],enumerable:p in o?o[p]:c[p],writable:!1})}return u(t,r,o)}:u:function defineProperty(t,o,l){if(i(t),o=a(o),i(l),r)try{return u(t,o,l)}catch(t){}if("get"in l||"set"in l)throw new c("Accessors not supported");return"value"in l&&(t[o]=l.value),t},He}var We,Ke,Je={};function requirePath(){if(Ke)return We;Ke=1;var t=requireGlobalThis();return We=t}var Ge,Be,Qe,Ze,Ye,Xe={};function requireWellKnownSymbolDefine(){if(Qe)return Be;Qe=1;var t=requirePath(),r=requireHasOwnProperty(),o=function requireWellKnownSymbolWrapped(){if(Ge)return Xe;Ge=1;var t=requireWellKnownSymbol();return Xe.f=t,Xe}(),i=requireObjectDefineProperty().f;return Be=function(a){var c=t.Symbol||(t.Symbol={});r(c,a)||i(c,a,{value:o.f(a)})}}!function requireDecoratorMetadataV2(){return Ye||(Ye=1,function requireEsnext_function_metadata(){if(Ve)return j;Ve=1;var t=requireWellKnownSymbol(),r=requireObjectDefineProperty().f,o=t("metadata"),i=Function.prototype;return void 0===i[o]&&r(i,o,{value:null}),j}(),function requireEsnext_symbol_metadata(){return Ze||(Ze=1,requireWellKnownSymbolDefine()("metadata")),Je}()),E}();var et="__cd_category__",tt="__cd_default_instance__",rt="__cd_next_id__",nt="__cd_name_field__",ot="__cd_fields_metadata__",it="__type__",at="__element_type__",ct="__nullable__",ut="__empty__",st="__label__",lt="__normalizer__",ft="__validator__",pt=new WeakMap,dt=function get(t){var r=pt.get(t);if(r)return r;var o=t[Symbol.metadata];return o?(pt.set(t,o),o):{}},ht=function set(t,r){pt.set(t,r)};function getClassMetadata(t,r){if("function"!=typeof t)throw new TypeError("The first argument must be a class constructor.");var o=dt(t);if(o)return o[r]}function isEnumClass(t){return"function"==typeof t&&"enum"===getClassMetadata(t,et)}function enumNormalizer(t){if(!isEnumClass(t))throw new TypeError("The argument must be the constructor function of an enumeration class decorated by `@Enum`.");return function(r){return t.of(r)}}function defaultNormalizer(t){var r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=i||(i={}),null!==(o=(r=i).path)&&void 0!==o||(r.path="");var a=y(t);switch(a.category){case"string":return isEnumClass(i.type)?enumNormalizer(i.type)(t):t.trim();case"array":case"typed-array":return t.map((function(t){return defaultNormalizer(t)}));case"map":return new Map(Array.from(t,(function(t){var r=m(t,2);return[r[0],defaultNormalizer(r[1],i)]})));case"set":return new Set(Array.from(t,(function(t){return defaultNormalizer(t,i)})));default:if(a.isBuiltIn)return t;if("function"==typeof t.normalize){var c={path:i.path,types:i.types,elementTypes:i.elementTypes};t.normalize("*",c)}return t}}var mt=b((function DefaultAssignmentOptions(){g(this,DefaultAssignmentOptions),r(this,"normalize",!0),r(this,"convertNaming",!1),r(this,"sourceNamingStyle","LOWER_UNDERSCORE"),r(this,"targetNamingStyle","LOWER_CAMEL"),r(this,"types",{}),r(this,"elementTypes",{})})),yt=b((function DefaultToJsonOptions(){g(this,DefaultToJsonOptions),r(this,"normalize",!0),r(this,"removeEmptyFields",!1),r(this,"convertNaming",!1),r(this,"sourceNamingStyle","LOWER_CAMEL"),r(this,"targetNamingStyle","LOWER_UNDERSCORE"),r(this,"space",void 0)}));function ownKeys$5(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread$5(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$5(Object(i),!0).forEach((function(o){r(t,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys$5(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}var gt=new Map,bt=function(){return b((function DefaultOptions(){g(this,DefaultOptions)}),null,[{key:"get",value:function get(t){var r=gt.get(t);return r?o(r):void 0}},{key:"merge",value:function merge(t,r){var i=gt.get(t);return o(void 0===i?r:_objectSpread$5(_objectSpread$5({},i),r))}},{key:"set",value:function set(t,r){var i=o(r),a=gt.get(t);void 0===a?gt.set(t,i):gt.set(t,_objectSpread$5(_objectSpread$5({},a),i))}},{key:"reset",value:function reset(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(t)switch(t){case"assign":gt.set("assign",new mt);break;case"toJSON":gt.set("toJSON",new yt);break;default:throw new Error("Unknown aspect: ".concat(t))}else gt.set("assign",new mt),gt.set("toJSON",new yt)}}])}();function ofValueImpl(t,r){if(l(r)){var o=t[String(r).trim().toUpperCase()];return o instanceof t?o:void 0}}function getDefaultInstance(t){if(t.prototype===Object.prototype)return{};var r=dt(t),o=r[tt];return o instanceof t||(o=new t,r[tt]=o),o}function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}(t))||r){o&&(t=o);var i=0,a=function F(){};return{s:a,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,u=!0,l=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return u=t.done,t},e:function e(t){l=!0,c=t},f:function f(){try{u||null==o.return||o.return()}finally{if(l)throw c}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,i=Array(r);o<r;o++)i[o]=t[o];return i}function getFieldMetadataObject(t,r){var o,i;if(null!=t){null!==(o=t[ot])&&void 0!==o||(t[ot]={});var a=t[ot];return null!==(i=a[r])&&void 0!==i||(a[r]={}),a[r]}}function getFieldMetadata(t,r,o){var i=getFieldMetadataObject(t,r);return i?i[o]:void 0}function getFieldElementType(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};null!=o||(o=".".concat(r)),null!=i||(i={});var a=getFieldMetadata(dt(t),r,at);if(a){if("function"!=typeof a)throw new TypeError("The annotated element type of '".concat(t.name,".").concat(o,"' is not a function."));return a}if(i&&i.elementTypes&&i.elementTypes[o]){var c=i.elementTypes[o];if("function"!=typeof c)throw new TypeError("The target element type of '".concat(t.name,".").concat(o,"' is not a function."));return c}var u=getDefaultInstance(t)[r];if(null!=u){var l=function getCollectionElementType(t){var r;if(Array.isArray(t)||p(t)){if(t.length>0&&"function"==typeof(null===(r=t[0])||void 0===r?void 0:r.constructor))return t[0].constructor}else if(d(t)&&t.size>0){var o=t.values().next().value;if(o&&"function"==typeof o.constructor)return o.constructor}return null}(u);if(null!=l)return l}return null}function getFieldType(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};null!=o||(o=".".concat(r)),null!=i||(i={});var a=getFieldMetadata(dt(t),r,it);if(a){if("function"!=typeof a)throw new TypeError("The annotated type of '".concat(t.name,".").concat(o,"' is not a function."));return a}if(i&&i.types&&i.types[o]){var c=i.types[o];if("function"!=typeof c)throw new TypeError("The target type of '".concat(t.name,".").concat(o,"' is not a function."));return c}var u=getDefaultInstance(t)[r];if(null!=u&&"function"==typeof u.constructor)return u.constructor}function getSourceField(t,r){if(!0===(null==r?void 0:r.convertNaming)){var o=v.of(r.sourceNamingStyle);return v.of(r.targetNamingStyle).to(o,t)}return t}function hasPrototypeFunction(t,r){return null!==t&&t.prototype&&Reflect.has(t.prototype,r)&&"function"==typeof t.prototype[r]}bt.reset();var vt={includeAccessor:!1,includeNonEnumerable:!1,includeReadonly:!0,includeNonConfigurable:!0};function ownKeys$4(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread$4(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$4(Object(i),!0).forEach((function(o){r(t,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys$4(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}var wt={getAllFields:function getAllFields(t,r,o){var i=o.type,a=o.options,c=Object.keys(t),u=Object.getPrototypeOf(i);if(hasPrototypeFunction(u,"assign")){u.prototype.assign.call(t,r,a);var l=getDefaultInstance(u),p=Object.keys(l);return c.filter((function(t){return!p.includes(t)}))}return c},copyPropertiesWithoutNamingConversion:function copyPropertiesWithoutNamingConversion(t,r){a(r)||Object.keys(t).forEach((function(i){Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=o(r[i],vt))}))},cloneEnum:function cloneEnum(t,r){var o=r.sourcePath,i=r.targetType,a=r.defaultInstance;if(null===t)return null;if(void 0===t)return a;if(t instanceof i)return t;if("string"==typeof t){if(0===t.trim().length)return a;var c=ofValueImpl(i,t);if(void 0===c)throw new RangeError("The value of property '".concat(o,"' of the ")+"source object is not an enumerator of ".concat(i.name,": ").concat(t));return c}throw new RangeError("The value of property '".concat(o,"' of the source ")+"object is not an enumerator of ".concat(i.name,": ").concat(t))},cloneWithType:function cloneWithType(t,r){var i=r.targetPath,c=r.sourcePath,u=r.targetType,l=r.defaultInstance,p=r.options;if(a(t))return o(l,vt);if(h(u))return null===t?null:void 0===t?l:(t.constructor===u||console.warn("The value of the property '".concat(c,"' of the source ")+"object is not an instance of ".concat(u.name,":"),t),o(t,vt));if("enum"===getClassMetadata(u,et))return this.cloneEnum(t,{sourcePath:c,targetType:u,defaultInstance:l});var d=new u;return this.doAssign(d,t,{targetPath:i,sourcePath:c,targetType:u,defaultInstance:l,options:p})},cloneArrayWithElementType:function cloneArrayWithElementType(t,r){var i=this,c=r.targetPath,u=r.sourcePath,l=r.elementType,p=r.defaultArray,d=r.options;if(!Array.isArray(t))return console.error("The value of the property '".concat(u,"' of the source ")+"object should be an array:",t),o(p,vt);if(h(l))return o(t,vt);if("enum"===getClassMetadata(l,et))return t.map((function(t,r){return i.cloneEnum(t,{sourcePath:"".concat(u,"[").concat(r,"]"),targetType:l,defaultInstance:p?p[r]:void 0})}));var m=getDefaultInstance(l);return t.map((function(t,r){if(a(t))return t;var o=new l,h=p&&p[r]?p[r]:m;return i.doAssign(o,t,{targetPath:"".concat(c,"[").concat(r,"]"),sourcePath:"".concat(u,"[").concat(r,"]"),targetType:l,defaultInstance:h,options:d}),o}))},cloneNoType:function cloneNoType(t,r){var i=r.targetPath,c=r.sourcePath,u=r.defaultInstance,l=r.options;if(a(u))return o(t,_objectSpread$4(_objectSpread$4({},vt),{},{convertNaming:l.convertNaming,sourceNamingStyle:l.sourceNamingStyle,targetNamingStyle:l.targetNamingStyle}));var p=Object.getPrototypeOf(u).constructor,d=new p;return this.doAssign(d,t,{targetPath:i,sourcePath:c,targetType:p,defaultInstance:u,options:l})},cloneArrayNoElementType:function cloneArrayNoElementType(t,r){var i=r.sourcePath,a=r.defaultArray,c=r.options;return Array.isArray(t)?o(t,_objectSpread$4(_objectSpread$4({},vt),{},{convertNaming:c.convertNaming,sourceNamingStyle:c.sourceNamingStyle,targetNamingStyle:c.targetNamingStyle})):(console.error("The value of the property '".concat(i,"' of the source ")+"object should be an array:",t),o(a,vt))},doAssign:function doAssign(r,i,c){var u=this,l=c.targetPath,p=c.sourcePath,d=c.targetType,h=c.defaultInstance,m=c.options;if(a(i))this.copyPropertiesWithoutNamingConversion(r,h);else{var y=null!=h?h:getDefaultInstance(d);this.getAllFields(r,i,{type:d,options:m}).forEach((function(c){var h=y[c],g="".concat(l,".").concat(c),b=getSourceField(c,m),w="".concat(p,".").concat(b),I=i[b],S=getFieldType(d,c,g,m),O=getFieldElementType(d,c,g,m);if(Object.prototype.hasOwnProperty.call(i,b))a(I)?r[c]=I:O?r[c]=u.cloneArrayWithElementType(I,{targetPath:g,sourcePath:w,elementType:O,defaultArray:h,options:m}):S?r[c]=u.cloneWithType(I,{targetPath:g,sourcePath:w,targetType:S,defaultInstance:h,options:m}):a(h)?r[c]=o(I,_objectSpread$4(_objectSpread$4({},vt),{},{convertNaming:m.convertNaming,sourceNamingStyle:m.sourceNamingStyle,targetNamingStyle:m.targetNamingStyle})):Array.isArray(h)?r[c]=u.cloneArrayNoElementType(I,{targetPath:g,sourcePath:w,defaultArray:h,options:m}):"object"===t(h)?r[c]=u.cloneNoType(I,{targetPath:g,sourcePath:w,defaultInstance:h,options:m}):r[c]=o(I,_objectSpread$4(_objectSpread$4({},vt),{},{convertNaming:m.convertNaming,sourceNamingStyle:m.sourceNamingStyle,targetNamingStyle:m.targetNamingStyle}));else{var P=function getExistFieldWithDifferentNamingStyle(t,r){var o,i=v.values(),a=_createForOfIteratorHelper(i);try{for(a.s();!(o=a.n()).done;){var c,u=o.value,l=_createForOfIteratorHelper(i);try{for(l.s();!(c=l.n()).done;){var p=c.value,d=u.to(p,t);if(Object.prototype.hasOwnProperty.call(r,d))return d}}catch(t){l.e(t)}finally{l.f()}}}catch(t){a.e(t)}finally{a.f()}}(b,i);P&&(console.warn("Cannot find the source property '".concat(w,"' ")+"for the target property '".concat(g,"'. ")+"But the source object has a property '".concat(p,".").concat(P,"'. ")+"A correct naming conversion may be needed."),console.warn("The source object:",i),console.warn("The target object:",r)),r[c]=o(h,vt)}}))}return m.normalize?defaultNormalizer(r):r}};function assignImpl(t,r,o,i){var a=bt.merge("assign",i);return o instanceof t&&(a.convertNaming=!1),wt.doAssign(r,o,{targetPath:"",sourcePath:"",targetType:t,defaultInstance:getDefaultInstance(t),options:a})}function assign(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("object"!==t(r))throw new TypeError("The target object must be an object.");return assignImpl(r.constructor,r,o,i)}function createImpl(r,o,i){if(null==o)return null;if("object"!==t(o))throw new TypeError("The first argument of ".concat(r.name,".create() must be an object."));if(hasPrototypeFunction(r,"assign")){var a=new r;return a.assign(o,i),a}var c=new r;return assignImpl(r,c,o,i)}function create(t,r){return createImpl(t,r,arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0)}function createArrayImpl(t,r,o){if(null==r)return null;if(Array.isArray(r))return r.map((function(r){return createImpl(t,r,o)}));throw new TypeError("The first argument of ".concat(t.name,".createArray() must be an array."))}function createArray(t,r){return createArrayImpl(t,r,arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0)}var It=function(){function Page(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];g(this,Page),r(this,"totalCount",0),r(this,"totalPages",0),r(this,"pageIndex",0),r(this,"pageSize",0),r(this,"content",[]),this.totalCount=t,this.totalPages=o,this.pageIndex=i,this.pageSize=a,this.content=c}return b(Page,[{key:"assign",value:function assign(t){return assignImpl(Page,this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}}],[{key:"newEmpty",value:function newEmpty(t){return new Page(0,0,0,t,[])}},{key:"getFrom",value:function getFrom(t,r){var o=r.length,i=t.pageSize,a=t.pageIndex,c=Math.ceil(o/i),u=a*i,l=Math.min(u+i,o);return new Page(o,c,a,i,r.slice(u,l))}}])}();function ownKeys$3(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,i)}return o}function createPageImpl(o,i,a){if(null==i)return null;if(function isValidPageSource(r,o){var i=bt.merge("assign",o);return null!=r&&"object"===t(r)&&"number"==typeof r[getSourceField("totalCount",i)]&&"number"==typeof r[getSourceField("totalPages",i)]&&"number"==typeof r[getSourceField("pageIndex",i)]&&"number"==typeof r[getSourceField("pageSize",i)]&&Array.isArray(r[getSourceField("content",i)])}(i,a)){var c=new It,u=function _objectSpread$3(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$3(Object(i),!0).forEach((function(o){r(t,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys$3(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}({},a);return u.elementTypes?u.elementTypes[".content"]=o:u.elementTypes={".content":o},assignImpl(It,c,i,u)}throw new TypeError("Invalid page format: ".concat(w.stringify(i)))}function createPage(t,r){return createPageImpl(t,r,arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0)}function setFieldMetadata(t,r,o,i){var a=getFieldMetadataObject(t,r);if(!a)throw new Error('The metadata of the field "'.concat(r,'" of the class does not exist.'));a[o]=i}function ElementType(t){return function decorate(r,o){var i=o.kind,a=o.name,c=o.metadata;if("field"!==i)throw new SyntaxError("The decorator @ElementType can only decorate a class field: ".concat(a));if("function"!=typeof t)throw new TypeError('The argument of @ElementType decorated on "'.concat(a,'" must be the constructor of a class.'));return setFieldMetadata(c,a,at,t),function(t){if(null!=t&&!Array.isArray(t))throw new TypeError('The field "'.concat(a,'" decorated by @ElementType must be initialized with an array.'));return t}}}function ofCodeImpl(t,r){if(l(r)){var o=String(r).trim(),i=Object.keys(t).filter((function(r){return t[r]instanceof t})).find((function(r){var i;return(null===(i=t[r])||void 0===i?void 0:i.code)===o}));return i?t[i]:void 0}}function ofNameImpl(t,r){if(l(r)){var o=String(r).trim(),i=Object.keys(t).filter((function(r){return t[r]instanceof t})).find((function(r){var i;return(null===(i=t[r])||void 0===i?void 0:i.name)===o}));return i?t[i]:void 0}}function ofImpl(t,r){if(null!=r){if(r instanceof t)return r;var o,i;if(l(r))return null!==(o=null!==(i=ofValueImpl(t,r))&&void 0!==i?i:ofNameImpl(t,r))&&void 0!==o?o:ofCodeImpl(t,r)}}function setClassMetadata(t,r,o){var i=dt(t);if(!i)throw new Error('The metadata of the class "'.concat(t.name,'" has not been cached.'));i[r]=o}function isEnumerator(r){if(null==r||"object"!==t(r))return!1;var o=Object.getPrototypeOf(r);return!(!o||!o.constructor)&&"enum"===getClassMetadata(o.constructor,et)}function Enum(r,o){if(null===o||"object"!==t(o))throw new TypeError("The context must be an object.");if("function"!=typeof r||"class"!==o.kind)throw new TypeError("The `@Enum` can only decorate a class.");ht(r,o.metadata),setClassMetadata(r,et,"enum"),o.addInitializer((function(){Object.keys(r).forEach((function(o){"function"!=typeof r[o]&&function defineEnumerator(r,o){var i=r[o],a=new r;if(a.value=o,null==i)a.name=o;else if("string"==typeof i)a.name=i;else{if("object"!==t(i))throw new TypeError("The default value of the enumerator "+"".concat(r.name,".").concat(o," should be either a string or an object."));Object.assign(a,i)}Object.freeze(a),r[o]=a}(r,o)})),Object.freeze(r)})),r.prototype.toString=function toString(){return this.value},r.prototype.toJSON=function toJSON(){return this.value},r.values=function values(){return function valuesImpl(t){return Object.keys(t).filter((function(r){return t[r]instanceof t})).map((function(r){return t[r]}))}(r)},r.ofValue=function ofValue(t){return ofValueImpl(r,t)},r.hasValue=function hasValue(t){return void 0!==ofValueImpl(r,t)},r.ofName=function ofName(t){return ofNameImpl(r,t)},r.hasName=function hasName(t){return void 0!==ofNameImpl(r,t)},r.ofCode=function ofCode(t){return ofCodeImpl(r,t)},r.hasCode=function hasCode(t){return void 0!==ofCodeImpl(r,t)},r.of=function of(t){return ofImpl(r,t)},r.has=function has(t){return void 0!==ofImpl(r,t)}}function hasOwnProperty(t,r){if(!t||!t.prototype)return!1;if(Object.prototype.hasOwnProperty.call(t.prototype,r))return!0;var o=getDefaultInstance(t);return o&&Object.prototype.hasOwnProperty.call(o,r)}function hasOwnPrototypeFunction(t,r){return null!==t&&t.prototype&&Object.prototype.hasOwnProperty.call(t.prototype,r)&&"function"==typeof t.prototype[r]}function hasProperty(t,r){if(!t||!t.prototype)return!1;if(Reflect.has(t.prototype,r))return!0;var o=getDefaultInstance(t);return o&&Reflect.has(o,r)}function Label(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function decorate(o,i){var a=i.kind,c=i.name,u=i.metadata;if("field"!==a)throw new SyntaxError("The decorator @Label can only decorate a class field: ".concat(c));if("string"!=typeof t)throw new TypeError('The first argument of @Label decorated on "'.concat(c,'" must be a string.'));if(void 0!==r&&"string"!=typeof r)throw new TypeError('The second argument of @Label decorated on "'.concat(c,'" must be a string.'));setFieldMetadata(u,c,st,{label:t,i18n:r})}}function requirePrototypeMethod(t,r){if(!hasPrototypeFunction(t,r))throw new TypeError("The class ".concat(t.name,' does not implement the prototype method "').concat(r,'()".'))}function normalizeFieldImpl(t,r,o,i){var a,c;if(null!=i||(i={}),null!==(c=(a=i).path)&&void 0!==c||(a.path=""),!Object.prototype.hasOwnProperty.call(r,o))return!1;var u=Object.getPrototypeOf(t);if(hasOwnPrototypeFunction(u,"normalizeField")&&u.prototype.normalizeField.call(r,o,i))return!0;var l=getFieldMetadata(dt(t),o,lt);if(void 0===l)return!1;var d=r[o];return function normalizeNullishField(t,r,o,i){return null==i}(0,0,0,d)||function normalizeArrayField(t,r,o,i,a,c){if(Array.isArray(i)||p(i)){var u="".concat(a.path,".").concat(o),l={type:getFieldElementType(t,o,u,a),path:u,types:a.types,elementTypes:a.elementTypes};return r[o]=i.map((function(t){return null==t?t:c(t,l)})),!0}return!1}(t,r,o,d,i,l)||function normalizeSetField(t,r,o,i,a,c){if(i instanceof Set){var u="".concat(a.path,".").concat(o),l={type:getFieldElementType(t,o,u,a),path:u,types:a.types,elementTypes:a.elementTypes};return r[o]=new Set(Array.from(i,(function(t){return c(t,l)}))),!0}return!1}(t,r,o,d,i,l)||function normalizeMapField(t,r,o,i,a,c){if(i instanceof Map){var u="".concat(a.path,".").concat(o),l={type:getFieldElementType(t,o,u,a),path:u,types:a.types,elementTypes:a.elementTypes};return r[o]=new Map(Array.from(i,(function(t){var r=m(t,2),o=r[0],i=r[1];return[o,c(i,l)]}))),!0}return!1}(t,r,o,d,i,l)||function normalizeNormalField(t,r,o,i,a,c){var u="".concat(a.path,".").concat(o),l={type:getFieldType(t,o,u,a),path:u,types:a.types,elementTypes:a.elementTypes};return r[o]=c(i,l),!0}(t,r,o,d,i,l)}function ownKeys$2(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread$2(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$2(Object(i),!0).forEach((function(o){r(t,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys$2(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}function toJsonImpl(t,r,i){var a=bt.merge("toJSON",i);a.normalize&&(t=defaultNormalizer(t=o(t,vt)));var c=_objectSpread$2(_objectSpread$2({},vt),{},{pojo:!0,disableHooks:!0,useToJSON:!0,convertNaming:a.convertNaming,sourceNamingStyle:a.sourceNamingStyle,targetNamingStyle:a.targetNamingStyle,removeEmptyFields:a.removeEmptyFields,skipRootToJSON:a.skipRootToJSON});return o(t,c)}function toJsonStringImpl(t,r,o){var i=bt.merge("toJSON",o),a=r.toJSON("",i);return w.stringify(a,null,i.space)}function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}i((function(t,r){return isEnumerator(r)?r:null}));var St,Ot,Pt,Et,jt,qt,Tt,Rt,Nt,Ut,Ct,_t,Ft,At,Dt,Lt,$t,kt,zt,xt,Mt,Vt,Ht,Wt,Kt,Jt,Gt,Bt,Qt,Zt={};function requireObject(){if(Pt)return Ot;Pt=1;const t=function exists(t){return!(null==t||Number.isNaN(t))};return Ot=Object.freeze({exists:t,is:function is(r,o){return t(r)&&t(o)&&(o.constructor===r||o instanceof r)}})}function requireHelpers(){if(Tt)return qt;Tt=1;const t=function requireCast(){if(jt)return Et;jt=1;const{is:t,exists:r}=requireObject(),o=function number(o){let i;if(r(o)){const r=o.valueOf();if(t(Number,r))Number.isFinite(r)&&(i=r);else if(t(String,r)||t(Boolean,r)){const t=Number(r);Number.isFinite(t)&&(i=t)}}return i},i=function integer(t){const r=o(t);let i;if(void 0!==r){const t=parseInt(r,10);Number.isNaN(t)||(i=t)}return i};return Et=Object.freeze({number:o,num:function num(t,{ge:r,le:i}={}){let a=o(t);if(void 0!==a){const t=o(i),c=o(r);void 0!==t&&void 0!==c?(a<c||a>t)&&(a=void 0):(void 0!==t&&a>t||void 0!==c&&a<c)&&(a=void 0)}return a},int:function int(t,{le:r,ge:o}={}){let a=i(t);if(void 0!==a){const t=i(r),c=i(o);void 0!==t&&void 0!==c?(a<c||a>t)&&(a=void 0):(void 0!==t&&a>t||void 0!==c&&a<c)&&(a=void 0)}return a},integer:i})}(),r=requireObject();return qt=Object.freeze({cast:t,object:r})}function requireIp(){if(Nt)return Rt;Nt=1;const{object:{is:t}}=requireHelpers(),r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",i=`\n(\n(?:${o}:){7}(?:${o}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${o}:){6}(?:${r}|:${o}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${o}:){5}(?::${r}|(:${o}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${o}:){4}(?:(:${o}){0,1}:${r}|(:${o}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${o}:){3}(?:(:${o}){0,2}:${r}|(:${o}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${o}:){2}(?:(:${o}){0,3}:${r}|(:${o}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${o}:){1}(?:(:${o}){0,4}:${r}|(:${o}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::${o}){0,5}:${r}|(?::${o}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim();return Rt=Object.freeze({isIP:function isIP(o){return!!t(String,o)&&new RegExp(`(?:^${r}$)|(?:^${i}$)`).test(o)},isIPv4:function isIPv4(o){return!!t(String,o)&&new RegExp(`^${r}$`).test(o)},isIPv6:function isIPv6(r){return!!t(String,r)&&new RegExp(`^${i}$`).test(r)}})}function requirePunycode(){if(Ct)return Ut;Ct=1;const{domainToASCII:t,domainToUnicode:r}=I,{isIPv6:o}=requireIp(),{object:{is:i}}=requireHelpers();return Ut=Object.freeze({punycode:function punycode(r){return o(r)?r:i(String,r)?t(r):""},punydecode:function punydecode(t){return o(t)?t:i(String,t)?r(t):""}})}function requireConfig(){return Ft?_t:(Ft=1,_t=Object.freeze({maxLengthURL:2048,minPortInteger:0,maxPortInteger:65535}))}function requireParser(){if(Dt)return At;Dt=1;const{punycode:t,punydecode:r}=requirePunycode(),{isIPv6:o}=requireIp(),{cast:{int:i},object:{exists:a,is:c}}=requireHelpers(),{minPortInteger:u,maxPortInteger:l}=requireConfig(),p=/^(?:([^:/?#]+):)?(?:\/\/([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/,d=/^(?:\[([^\]]+)\]:?)([0-9]+)?$/,h=function hostToURI(t){return c(String,t)?o(t)?`[${t}]`:t:""},m=function recomposeURI(t){const r=t||{};if(!(c(String,r.scheme)&&r.scheme.length>0&&c(String,r.path)))return"";let o=r.scheme;if(c(String,r.host)){if(""!==r.path&&!r.path.startsWith("/"))return"";if(r.host.length<=2)return"";o+="://",c(String,r.userinfo)&&r.userinfo.length>0&&(o+=`${r.userinfo}@`),o+=h(r.host),a(r.port)&&void 0!==i(r.port,{ge:u,le:l})&&(o+=`:${r.port}`)}else{if(r.path.startsWith("//"))return"";o+=":"}return""===r.path&&c(String,r.host)?o+="/":o+=r.path,c(String,r.query)&&r.query.length>0&&(o+=`?${r.query}`),c(String,r.fragment)&&r.fragment.length>0&&(o+=`#${r.fragment}`),o};return At=Object.freeze({hostToURI:h,recomposeURI:m,parseURI:function parseURI(o){const u={scheme:null,authority:null,authorityPunydecoded:null,userinfo:null,host:null,hostPunydecoded:null,port:null,path:null,pathqf:null,query:null,fragment:null,href:null};if(!(c(String,o)&&o.length>0))return u;const[,l,y,g,b,v]=o.match(p);if(!(c(String,l)&&l.length>0))return u;let w=null,I=null,S=null,O=null,P=null,E=null;if(c(String,y)){let o=null;if([S=null,o=null]=y.split("@"),!a(o)&&a(S)&&(o=S,S=null),c(String,o)){const u=o.match(d);let l,p;c(Array,u)?[,l=null,p=null]=u:[l=null,p=null]=o.split(":");const m=c(String,l)?l.toLowerCase():null,y=t(m),g=r(m);m!==y?(O=y,P=m):m!==g?(O=m,P=g):(O=m,P=m),""!==O&&""!==P||(O=null),E=i(p)||p,a(P)&&(I="",a(S)&&(I+=`${S}@`),I+=h(P),a(E)&&(I+=`:${E}`)),a(O)?(w="",a(S)&&(w+=`${S}@`),w+=h(O),a(E)&&(w+=`:${E}`)):(S=null,E=null)}}const j=c(String,b)&&b.length>0?b:null,q=c(String,v)&&v.length>0?v:null;u.pathqf=c(String,g)?g.valueOf():null,c(String,u.pathqf)&&(c(String,j)&&(u.pathqf+=`?${j}`),c(String,q)&&(u.pathqf+=`#${q}`)),u.scheme=l.toLowerCase(),u.authority=w,u.authorityPunydecoded=I,u.userinfo=S,u.host=O,u.hostPunydecoded=P,u.port=E,u.path=g,u.query=j,u.fragment=q;const T=m({scheme:u.scheme,userinfo:u.userinfo,host:u.host,port:u.port,path:u.path,query:u.query,fragment:u.fragment});return u.href=""!==T?T:null,u}}),At}function requireChars(){if($t)return Lt;$t=1;const{object:{is:t}}=requireHelpers(),r=function isPathChar(r,o){if(!t(String,r))return!1;const i=!0===o,a=r.charCodeAt();return 37===a?!i:a>=36&&a<=59||a>=64&&a<=90||a>=97&&a<=122||33===a||61===a||95===a||126===a},o=function isSitemapPathChar(r,o){if(!t(String,r))return!1;const i=!0===o,a=r.charCodeAt();return 37===a?!i:a>=36&&a<=38||a>=40&&a<=41||a>=43&&a<=59||a>=97&&a<=122||33===a||61===a||64===a||95===a||126===a};return Lt=Object.freeze({isSchemeChar:function isSchemeChar(r,{start:o}={}){if(!t(String,r))return!1;const i=r.charCodeAt();return o?i>=97&&i<=122:i>=48&&i<=57||i>=97&&i<=122||43===i||45===i||46===i},isUserinfoChar:function isUserinfoChar(r,o){if(!t(String,r))return!1;const i=!0===o,a=r.charCodeAt();return 37===a?!i:a>=38&&a<=46||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||33===a||36===a||58===a||59===a||61===a||95===a||126===a},isSitemapUserinfoChar:function isSitemapUserinfoChar(r,o){if(!t(String,r))return!1;const i=!0===o,a=r.charCodeAt();return 37===a?!i:a>=40&&a<=41||a>=43&&a<=46||a>=48&&a<=57||a>=97&&a<=122||33===a||36===a||38===a||58===a||59===a||61===a||95===a||126===a},isDomainChar:function isDomainChar(r,{start:o,end:i}={}){if(!t(String,r))return!1;const a=r.charCodeAt();return(!0!==o&&!0!==i||45!==a)&&(a>=48&&a<=57||a>=97&&a<=122||45===a)},isPathChar:r,isSitemapPathChar:o,isQueryOrFragmentChar:function isQueryOrFragmentChar(o,i){return!!r(o,i)||t(String,o)&&63===o.charCodeAt()},isSitemapQueryOrFragmentChar:function isSitemapQueryOrFragmentChar(r,i){return!!o(r,i)||t(String,r)&&63===r.charCodeAt()},isPercentEncodingChar:function isPercentEncodingChar(r){if(!t(String,r))return!1;const o=r.charCodeAt();return o>=48&&o<=57||o>=65&&o<=70}})}function requireDomain(){if(zt)return kt;zt=1;const{punycode:t}=requirePunycode(),{isDomainChar:r}=requireChars(),{object:{is:o}}=requireHelpers(),i=function isDomainLabel(t){if(!o(String,t))return!1;const i=t.length;if(i<1||i>63)return!1;for(let o=0;o<i;o+=1){if(!r(t[o],{start:0===o,end:o===i-1}))return!1;if("-"===t[o]&&o+1<i&&"-"===t[o+1])return!1}return!0};return kt=Object.freeze({isDomainLabel:i,isDomain:function isDomain(r){if(!o(String,r))return!1;const a=t(r);if("localhost"===a)return!0;const c=a.length;if(c<=0||c>255)return!1;const u=a.split("."),l=u.length;if(l<=1)return!1;const p={};for(let t=0;t<l;t+=1)if(t!==l-1||""!==u[t]){const r=u[t].startsWith("xn--")?u[t].slice(4):u[t];if(!i(r))return!1;if(p[u[t]]=(p[u[t]]||0)+1,p[u[t]]>1)return!1}return!0}})}function requireSitemap(){if(Mt)return xt;Mt=1;const t={"*":"%2A"},r=Object.keys(t),o={};r.forEach((r=>{o[t[r]]=r}));const i=Object.keys(o),a={"&":"&amp;","'":"&apos;"},c=Object.keys(a),u={};c.forEach((t=>{u[a[t]]=t}));const l=Object.keys(u),p=l.length;return xt=Object.freeze({specialChars:t,specialCharsKeys:r,pencodings:o,pencodingsKeys:i,entities:a,entitiesKeys:c,escapeCodes:u,escapeCodesKeys:l,escapeCodesKeysLen:p})}function requireCheckers(){if(Ht)return Vt;Ht=1;const{maxLengthURL:t,minPortInteger:r,maxPortInteger:o}=requireConfig(),{parseURI:i}=requireParser(),{isDomain:a}=requireDomain(),{cast:{int:c},object:{exists:u,is:l}}=requireHelpers(),{isIP:p}=requireIp(),{escapeCodesKeys:d,escapeCodesKeysLen:h}=requireSitemap(),{isSchemeChar:m,isUserinfoChar:y,isPathChar:g,isQueryOrFragmentChar:b,isSitemapUserinfoChar:v,isSitemapPathChar:w,isSitemapQueryOrFragmentChar:I,isPercentEncodingChar:S}=requireChars(),O=function checkPercentEncoding(t,r,o){if(!l(String,t)){const t=new URIError("a string is required when checking for percent encoding");throw t.code="URI_INVALID_PERCENT_ENCODING",t}const i=l(Number,o)&&o>=0?o:t.length,a=l(Number,r)&&r<i?r:0;let c=0;if(i>0&&"%"===t[a]){if(!(a+2<i)){const t=new URIError("incomplete percent encoding found");throw t.code="URI_INVALID_PERCENT_ENCODING",t}if(!S(t[a+1])){const r=new URIError(`invalid percent encoding char '${t[a+1]}'`);throw r.code="URI_INVALID_PERCENT_ENCODING",r}if(!S(t[a+2])){const r=new URIError(`invalid percent encoding char '${t[a+2]}'`);throw r.code="URI_INVALID_PERCENT_ENCODING",r}c=2}return c},P=function checkSitemapEncoding(t,r,o){if(!l(String,t)){const t=new URIError("a string is required when checking for sitemap encoding");throw t.code="URI_INVALID_SITEMAP_ENCODING",t}const i=l(Number,o)&&o>=0?o:t.length,a=l(Number,r)&&r<i?r:0;let c=0;if(i>0&&"&"===t[a]){let r;for(let o=0;o<h;o+=1){const c=d[o],u=c.length;if(a+u<=i&&c===t.substring(a,a+u)){r=u-1;break}}if(!u(r)){const r=new URIError(`entity '${t[a]}' is not properly escaped`);throw r.code="URI_INVALID_SITEMAP_ENCODING",r}c=r}return c},E=function checkComponent({type:t,string:r,sitemap:o}={}){if(!["userinfo","path","query","fragment"].includes(t)){const r=new URIError(`unable to check pathqf, got '${t}' component to check`);throw r.code="URI_INVALID_CHECKING_COMPONENT",r}if("path"===t&&(!u(r)||""===r)||!u(r))return!0;const i=r.length,a=!0===o;let c;switch(t){case"userinfo":c=a?v:y;break;case"path":c=a?w:g;break;case"query":case"fragment":c=a?I:b}for(let o=0;o<i;o+=1){if(!c(r[o])){const i=new URIError(`invalid ${t} char '${r[o]}'`);throw i.code=`URI_INVALID_${t.toUpperCase()}_CHAR`,i}o+=O(r,o,i),a&&(o+=P(r,o,i))}return!0},j=function checkSchemeChars(t,r){if(!l(String,t)){const t=new URIError("scheme must be a string");throw t.code="URI_INVALID_SCHEME",t}const o=l(Number,r)&&r>0?r:t.length;if(o<=0){const t=new URIError("scheme cannot be empty");throw t.code="URI_INVALID_SCHEME",t}for(let r=0;r<o;r+=1)if(!m(t[r],{start:0===r})){const o=new URIError(`invalid scheme char '${t[r]}'`);throw o.code="URI_INVALID_SCHEME_CHAR",o}return!0},q=function checkLowercase(t){if(!l(String,t)){const t=new URIError("uri must be a string");throw t.code="URI_INVALID_TYPE",t}if(t.toLowerCase()!==t){const t=new URIError("uri cannot contain any uppercase characters");throw t.code="URI_INVALID_CHAR",t}return!0},T=function checkURISyntax(t){if(!l(String,t)){const t=new URIError("uri must be a string");throw t.code="URI_INVALID_TYPE",t}const{scheme:r,authority:o,authorityPunydecoded:a,userinfo:c,host:p,hostPunydecoded:d,port:h,path:m,pathqf:y,query:g,fragment:b,href:v}=i(t),w=l(String,r)?r.length:0;if(!l(String,r)){const t=new URIError("uri scheme is required");throw t.code="URI_MISSING_SCHEME",t}if(w<=0){const t=new URIError("uri scheme must not be empty");throw t.code="URI_EMPTY_SCHEME",t}if(!l(String,m)){const t=new URIError("uri path is required");throw t.code="URI_MISSING_PATH",t}if(l(String,o)&&o.length>0){if(""!==m&&!m.startsWith("/")){const t=new URIError("path must be empty or start with '/' when authority is present");throw t.code="URI_INVALID_PATH",t}}else if(m.startsWith("//")){const t=new URIError("path must not start with '//' when authority is not present");throw t.code="URI_INVALID_PATH",t}if(!u(o)&&u(a)){const t=new URIError(`host must be a valid ip or domain name, got '${d}'`);throw t.code="URI_INVALID_HOST",t}return{scheme:r,authority:o,authorityPunydecoded:a,userinfo:c,host:p,hostPunydecoded:d,port:h,path:m,pathqf:y,query:g,fragment:b,href:v,schemeLen:w,valid:!0}},R=function checkURI(t,{sitemap:i}={}){const{scheme:l,authority:d,authorityPunydecoded:h,userinfo:m,host:y,hostPunydecoded:g,port:b,path:v,pathqf:w,query:I,fragment:S,href:O,schemeLen:P}=T(t);if(j(l,P),u(d)){if(E({sitemap:i,type:"userinfo",string:m}),!p(y)&&!a(y)){const t=new URIError(`host must be a valid ip or domain name, got '${y}'`);throw t.code="URI_INVALID_HOST",t}if(u(b)&&void 0===c(b,{ge:r,le:o})){const t=new URIError(`port must be an integer between ${r}-${o}, got '${b}'`);throw t.code="URI_INVALID_PORT",t}}return E({sitemap:i,type:"path",string:v}),E({sitemap:i,type:"query",string:I}),E({sitemap:i,type:"fragment",string:S}),{scheme:l,authority:d,authorityPunydecoded:h,userinfo:m,host:y,hostPunydecoded:g,port:b,path:v,pathqf:w,query:I,fragment:S,href:O,valid:!0}},N=function checkHttpURL(r,{https:o,web:i,sitemap:a}={}){!0===a&&q(r);const c=[];!0===o?c.push("https"):!0===i?c.push("http","https"):c.push("http");const{scheme:u,authority:p,authorityPunydecoded:d,userinfo:h,host:m,hostPunydecoded:y,port:g,path:b,pathqf:v,query:w,fragment:I,href:S}=R(r,{sitemap:a});if(!c.includes(u)){const t=new URIError(`scheme must be ${c.join(" or ")}, got '${u}'`);throw t.code="URI_INVALID_SCHEME",t}if(!l(String,p)){const t=new URIError("authority is required");throw t.code="URI_MISSING_AUTHORITY",t}if(l(String,S)&&S.length>t){const r=new URIError(`max URL length of ${t} reached: ${S.length}`);throw r.code="URI_MAX_LENGTH_URL",r}return{scheme:u,authority:p,authorityPunydecoded:d,userinfo:h,host:m,hostPunydecoded:y,port:g,path:b,pathqf:v,query:w,fragment:I,href:S,valid:!0}};return Vt=Object.freeze({checkPercentEncoding:O,checkSitemapEncoding:P,checkComponent:E,checkSchemeChars:j,checkLowercase:q,checkURISyntax:T,checkURI:R,checkHttpURL:N,checkHttpsURL:function checkHttpsURL(t){return N(t,{https:!0})},checkHttpSitemapURL:function checkHttpSitemapURL(t){return N(t,{sitemap:!0})},checkHttpsSitemapURL:function checkHttpsSitemapURL(t){return N(t,{https:!0,sitemap:!0})},checkWebURL:function checkWebURL(t){return N(t,{web:!0})},checkSitemapURL:function checkSitemapURL(t){return N(t,{web:!0,sitemap:!0})}}),Vt}getDefaultExportFromCjs(function requireEmailValidator(){if(St)return Zt;St=1;var t=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;return Zt.validate=function(r){if(!r)return!1;if(r.length>254)return!1;if(!t.test(r))return!1;var o=r.split("@");return!(o[0].length>64||o[1].split(".").some((function(t){return t.length>63})))},Zt}());var Yt=function requireSrc(){if(Qt)return Bt;Qt=1;const{punycode:t,punydecode:r}=requirePunycode(),{parseURI:o,recomposeURI:i}=requireParser(),{isDomainLabel:a,isDomain:c}=requireDomain(),{isIP:u,isIPv4:l,isIPv6:p}=requireIp(),{checkURI:d,checkHttpURL:h,checkHttpsURL:m,checkHttpSitemapURL:y,checkHttpsSitemapURL:g,checkWebURL:b,checkSitemapURL:v}=requireCheckers(),{encodeURIComponentString:w,encodeURIString:I,encodeWebURL:S,encodeSitemapURL:O}=function requireEncoders(){if(Kt)return Wt;Kt=1;const{maxLengthURL:t,minPortInteger:r,maxPortInteger:o}=requireConfig(),{checkURISyntax:i,checkSchemeChars:a}=requireCheckers(),{isUserinfoChar:c,isPathChar:u,isQueryOrFragmentChar:l,isSitemapUserinfoChar:p,isSitemapPathChar:d,isSitemapQueryOrFragmentChar:h}=requireChars(),{recomposeURI:m}=requireParser(),{entities:y,specialChars:g}=requireSitemap(),{isDomain:b}=requireDomain(),{isIP:v}=requireIp(),{cast:{int:w},object:{exists:I,is:S}}=requireHelpers(),O=function encodeURIComponentString(t,{type:r,sitemap:o,lowercase:i}={}){if(!S(String,t))return"";const a=!0===i||!0===o?t.toLowerCase():t,m=a.length;let b="";for(let t=0;t<m;t+=1){let i=!1;if(!0===o&&(I(y[a[t]])?(b+=y[a[t]],i=!0):I(g[a[t]])&&(b+=g[a[t]],i=!0)),!i){let i;switch(r){case"userinfo":i=o&&p(a[t],!0)||c(a[t],!0);break;case"path":i=o&&d(a[t],!0)||u(a[t],!0);break;case"query":case"fragment":i=o&&h(a[t],!0)||l(a[t],!0);break;default:i=!1}b+=i?a[t]:encodeURIComponent(a[t])}}return b},P=function encodeURIString(c,{web:u,sitemap:l,lowercase:p}={}){const d=S(String,c)&&!0===p?c.toLowerCase():c,h=!0===u||!0===l,{scheme:y,authority:g,userinfo:P,host:E,port:j,path:q,query:T,fragment:R,schemeLen:N}=i(d);if(h){if("http"!==y&&"https"!==y){const t=new URIError(`scheme must be http or https, got '${y}'`);throw t.code="URI_INVALID_SCHEME",t}}else a(y,N);if(h&&!S(String,g)){const t=new URIError("authority is required");throw t.code="URI_MISSING_AUTHORITY",t}if(I(E)&&!v(E)&&!b(E)){const t=new URIError(`host must be a valid ip or domain name, got '${E}'`);throw t.code="URI_INVALID_HOST",t}if(I(j)&&void 0===w(j,{ge:r,le:o})){const t=new URIError(`port must be an integer between ${r}-${o}, got '${j}'`);throw t.code="URI_INVALID_PORT",t}const U=O(P,{sitemap:l,type:"userinfo",lowercase:!1}),C=O(q,{sitemap:l,type:"path",lowercase:!1}),_=O(T,{sitemap:l,type:"query",lowercase:!1}),A=O(R,{sitemap:l,type:"fragment",lowercase:!1}),D=m({scheme:y,host:E,port:j,userinfo:U,path:C,query:_,fragment:A});if(h&&D.length>t){const r=new URIError(`max URL length of ${t} reached: ${D.length}`);throw r.code="URI_MAX_LENGTH_URL",r}return D};return Wt=Object.freeze({encodeURIComponentString:O,encodeURIString:P,encodeWebURL:function encodeWebURL(t,{lowercase:r}={}){return P(t,{lowercase:r,web:!0})},encodeSitemapURL:function encodeSitemapURL(t){return P(t,{lowercase:!0,sitemap:!0})}}),Wt}(),{decodeURIComponentString:P,decodeURIString:E,decodeWebURL:j,decodeSitemapURL:q}=function requireDecoders(){if(Gt)return Jt;Gt=1;const{maxLengthURL:t,minPortInteger:r,maxPortInteger:o}=requireConfig(),{checkURISyntax:i,checkSchemeChars:a}=requireCheckers(),{cast:{int:c},object:{exists:u,is:l}}=requireHelpers(),{recomposeURI:p}=requireParser(),{isDomain:d}=requireDomain(),{isIP:h}=requireIp(),{escapeCodes:m,escapeCodesKeys:y,pencodings:g,pencodingsKeys:b}=requireSitemap(),v=function decodeURIComponentString(t,{sitemap:r,lowercase:o}={}){if(!l(String,t))return"";const i=!0===o?t.toLowerCase():t;if(!0===r){const r=new RegExp(y.concat(b).join("|"),"g"),o=i.replace(r,(t=>m[t]||g[t]));try{return decodeURIComponent(o)}catch(t){return""}}try{return decodeURIComponent(i)}catch(t){return""}},w=function decodeURIString(m,{web:y,sitemap:g,lowercase:b}={}){const w=l(String,m)&&!0===b?m.toLowerCase():m,I=!0===y||!0===g,{scheme:S,authority:O,userinfo:P,host:E,hostPunydecoded:j,port:q,path:T,query:R,fragment:N,schemeLen:U}=i(w);if(I){if("http"!==S&&"https"!==S){const t=new URIError(`scheme must be http or https, got '${S}'`);throw t.code="URI_INVALID_SCHEME",t}}else a(S,U);if(I&&!l(String,O)){const t=new URIError("authority is required");throw t.code="URI_MISSING_AUTHORITY",t}if(u(E)&&!h(E)&&!d(E)){const t=new URIError(`host must be a valid ip or domain name, got '${E}'`);throw t.code="URI_INVALID_HOST",t}if(u(q)&&void 0===c(q,{ge:r,le:o})){const t=new URIError(`port must be an integer between ${r}-${o}, got '${q}'`);throw t.code="URI_INVALID_PORT",t}const C=v(P,{sitemap:g,lowercase:!1}),_=v(T,{sitemap:g,lowercase:!1}),A=v(R,{sitemap:g,lowercase:!1}),D=v(N,{sitemap:g,lowercase:!1}),L=p({scheme:S,port:q,host:j,userinfo:C,path:_,query:A,fragment:D});if(I&&L.length>t){const r=new URIError(`max URL length of ${t} reached: ${L.length}`);throw r.code="URI_MAX_LENGTH_URL",r}return L};return Jt=Object.freeze({decodeURIComponentString:v,decodeURIString:w,decodeWebURL:function decodeWebURL(t,{lowercase:r}={}){return w(t,{lowercase:r,web:!0})},decodeSitemapURL:function decodeSitemapURL(t,{lowercase:r}={}){return w(t,{lowercase:r,sitemap:!0})}}),Jt}();return Bt=Object.freeze({punycode:t,punydecode:r,parseURI:o,recomposeURI:i,isDomainLabel:a,isDomain:c,isIP:u,isIPv4:l,isIPv6:p,checkURI:d,checkHttpURL:h,checkHttpsURL:m,checkHttpSitemapURL:y,checkHttpsSitemapURL:g,checkWebURL:b,checkSitemapURL:v,encodeURIComponentString:w,encodeURIString:I,encodeWebURL:S,encodeSitemapURL:O,decodeURIComponentString:P,decodeURIString:E,decodeWebURL:j,decodeSitemapURL:q})}();getDefaultExportFromCjs(Yt);var Xt=function(){function ValidationResult(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";g(this,ValidationResult),r(this,"success",!0),r(this,"description",""),r(this,"next",null),this.success=null==t||t,this.description=null!=o?o:"",this.next=null}return b(ValidationResult,null,[{key:"merge",value:function merge(t){if(Array.isArray(t)&&t.length>0){for(var r=new ValidationResult(!0),o=r,i=0;i<t.length;++i){var a=t[i];a&&!a.success&&(o.next=a,o=a)}return o.next=null,r.next?(o=r.next,r.next=null,o):r}return new ValidationResult(!0)}}])}();function getFieldLabel(t,r){var o=getFieldMetadata(t,r,st);return o?o.label:r}function getInstanceName(t,r){var o=t[nt];return o?r[o]:void 0}function isFieldNonEmpty(t,r){return!0===getFieldMetadata(t,r,ut)}function isFieldNullable(t,r){return!0===getFieldMetadata(t,r,ct)}function getElementValidationContext(t,r,o,i,a){var c,u,l,p,d,h={instance:o,owner:null!==(c=a.owner)&&void 0!==c?c:getInstanceName(r,o),field:i,type:null!==(u=a.type)&&void 0!==u?u:getFieldElementType(t,i),label:null!==(l=a.label)&&void 0!==l?l:getFieldLabel(r,i),nullable:null!==(p=a.nullable)&&void 0!==p?p:isFieldNullable(r,i),nonEmpty:null!==(d=a.nonEmpty)&&void 0!==d?d:isFieldNonEmpty(r,i)};return Object.assign(h,a)}function validateEmptyField(t,r,o,i,a){if(u(i)){if(a.nonEmpty||isFieldNonEmpty(t,o)){var c,l,p=null!==(c=a.label)&&void 0!==c?c:getFieldLabel(t,o),d=null!==(l=a.owner)&&void 0!==l?l:getInstanceName(t,r),h=d?"The ".concat(p," of ").concat(d," cannot be empty."):"The ".concat(p," cannot be empty.");return new Xt(!1,h)}return new Xt(!0)}return null}function validateNormalField(t,r,o,i,a,c,u){var l=function getValidationContext(t,r,o,i,a){var c,u,l,p,d,h={instance:o,owner:null!==(c=a.owner)&&void 0!==c?c:getInstanceName(r,o),field:i,type:null!==(u=a.type)&&void 0!==u?u:getFieldType(t,i),label:null!==(l=a.label)&&void 0!==l?l:getFieldLabel(r,i),nullable:null!==(p=a.nullable)&&void 0!==p?p:isFieldNullable(r,i),nonEmpty:null!==(d=a.nonEmpty)&&void 0!==d?d:isFieldNonEmpty(r,i)};return Object.assign(h,a)}(t,r,o,i,u);return c(a,l)}function validateFieldImpl(t,r,o,i){var a,c,u;if(!Object.prototype.hasOwnProperty.call(r,o))return null;var l=Object.getPrototypeOf(t);if(hasOwnPrototypeFunction(l,"validateField")){var d=l.prototype.validateField.call(r,o,i);if(null!==d)return d}var h=dt(t),m=getFieldMetadata(h,o,ft);if(void 0===m)return new Xt(!0);var y=r[o];return null!==(a=null!==(c=null!==(u=function validateArrayField(t,r,o,i,a,c,u){if(Array.isArray(a)||p(a)){var l=validateEmptyField(r,o,i,a,u);if(l)return l;var d=getElementValidationContext(t,r,o,i,u),h=a.map((function(t,r){return d.index=r,c(t,d)}));return Xt.merge(h)}return null}(t,h,r,o,y,m,i))&&void 0!==u?u:function validateSetField(t,r,o,i,a,c,u){if(a instanceof Set){var l=validateEmptyField(r,o,i,a,u);if(l)return l;var p=getElementValidationContext(t,r,o,i,u),d=Array.from(a,(function(t,r){return p.index=r,c(t,p)}));return Xt.merge(d)}return null}(t,h,r,o,y,m,i))&&void 0!==c?c:function validateMapField(t,r,o,i,a,c,u){if(a instanceof Map){var l=validateEmptyField(r,o,i,a,u);if(l)return l;var p=getElementValidationContext(t,r,o,i,u),d=Array.from(a,(function(t,r){return p.index=r,c(t[1],p)}));return Xt.merge(d)}return null}(t,h,r,o,y,m,i))&&void 0!==a?a:validateNormalField(t,h,r,o,y,m,i)}function ownKeys$1(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread$1(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys$1(Object(i),!0).forEach((function(o){r(t,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys$1(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}function Model(r,o){if(null===o||"object"!==t(o))throw new TypeError("The context must be an object.");if("function"!=typeof r||"class"!==o.kind)throw new TypeError("The `@Model` can only decorate a class.");ht(r,o.metadata),setClassMetadata(r,et,"model"),hasOwnPrototypeFunction(r,"assign")||(r.prototype.assign=function assign(t){return assignImpl(r,this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}),hasOwnPrototypeFunction(r,"clear")||(r.prototype.clear=function clear(){return function clearImpl(t,r){requirePrototypeMethod(t,"assign");var o=getDefaultInstance(t);return r.assign(o,{normalize:!1,convertNaming:!1})}(r,this)}),hasOwnPrototypeFunction(r,"clone")||(r.prototype.clone=function clone(){return function cloneImpl(t,r){return requirePrototypeMethod(t,"assign"),(new t).assign(r,{normalize:!1,convertNaming:!1})}(r,this)}),hasOwnPrototypeFunction(r,"isEmpty")||(r.prototype.isEmpty=function isEmpty(){return function isEmptyImpl(t,r){var o=getDefaultInstance(t);return c(r,o)}(r,this)}),hasOwnPrototypeFunction(r,"equals")||(r.prototype.equals=function equals(t){return function equalsImpl(t,r){return t===r||(null==r?null==t:null!=t&&Object.getPrototypeOf(t)===Object.getPrototypeOf(r)&&c(t,r))}(this,t)}),hasOwnPrototypeFunction(r,"normalize")||(r.prototype.normalize=function normalize(){return function normalizeImpl(t,r,o,i){if(null==o||"*"===o)Object.keys(r).forEach((function(t){return r.normalizeField(t,i)}));else if(Array.isArray(o))o.forEach((function(t){return r.normalizeField(t,i)}));else{if("string"!=typeof o)throw new TypeError("The argument ".concat(t.name,".normalize() must be a string or an array of strings."));r.normalizeField(o,i)}return r}(r,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}),hasOwnPrototypeFunction(r,"normalizeField")||(r.prototype.normalizeField=function normalizeField(t){return normalizeFieldImpl(r,this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}),hasOwnPrototypeFunction(r,"validate")||(r.prototype.validate=function validate(){return function validateImpl(t,r,o,i){if(null==o||"*"===o){var a=Object.keys(r).map((function(t){return r.validateField(t,i)}));return Xt.merge(a)}if(Array.isArray(o)){var c=o.map((function(t){return r.validateField(t,i)}));return Xt.merge(c)}if("string"==typeof o){var u=r.validateField(o,i);return null!=u?u:new Xt(!0)}throw new TypeError("The argument of ".concat(t.name,".validate()")+" must be a string or an array of strings.")}(r,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}),hasOwnPrototypeFunction(r,"validateField")||(r.prototype.validateField=function validateField(t){return validateFieldImpl(r,this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}),hasOwnProperty(r,"id")&&!hasPrototypeFunction(r,"generateId")&&(setClassMetadata(r,rt,0),r.prototype.generateId=function generateId(){return function generateIdImpl(t,r){var o=getClassMetadata(t,rt);return r.id=o,setClassMetadata(t,rt,o+1),r.id}(r,this)}),hasOwnPrototypeFunction(r,"toJSON")||(r.prototype.toJSON=function toJSON(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"object"===t(r)&&(o=r,r=""),toJsonImpl(this,0,_objectSpread$1(_objectSpread$1({},o),{},{skipRootToJSON:!0}))}),hasOwnPrototypeFunction(r,"toJsonString")||(r.prototype.toJsonString=function toJsonString(){return toJsonStringImpl(0,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}),Object.prototype.hasOwnProperty.call(r,"create")||(r.create=function create(t){return createImpl(r,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}),Object.prototype.hasOwnProperty.call(r,"createArray")||(r.createArray=function createArray(t){return createArrayImpl(r,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}),Object.prototype.hasOwnProperty.call(r,"createPage")||(r.createPage=function createPage(t){return createPageImpl(r,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)}),Object.prototype.hasOwnProperty.call(r,"isNullishOrEmpty")||(r.isNullishOrEmpty=function isNullishOrEmpty(t){return function isNullishOrEmptyImpl(t,r){if(requirePrototypeMethod(t,"isEmpty"),null==r)return!0;if(!(r instanceof t))throw new TypeError("The object must be an instance of the class ".concat(t.name,"."));return r.isEmpty()}(r,t)}),Object.prototype.hasOwnProperty.call(r,"parseJsonString")||(r.parseJsonString=function parseJsonString(t){return function parseJsonStringImpl(t,r,o){var i=w.parse(r),a=new t;return assignImpl(t,a,i,o)}(r,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0)})}function NameField(t,r){var o=r.kind,i=r.name,a=r.metadata;if("field"!==o)throw new SyntaxError("The decorator @NameField can only decorate a class field: ".concat(i));var c=a[nt];if(c)throw new SyntaxError('@NameField cannot decorate on "'.concat(i,'", since it has already decorated on "').concat(c,'".'));a[nt]=i}function NonEmpty(t,r){var o=r.kind,i=r.name,a=r.metadata;if("field"!==o)throw new SyntaxError("The decorator @NonEmpty can only decorate a class field: ".concat(i));setFieldMetadata(a,i,ut,!0)}function isDecoratorContext(r){return null!==r&&"object"===t(r)&&null!==r.metadata&&"object"===t(r.metadata)&&"string"==typeof r.kind&&"string"==typeof r.name}function setNormalizer(r,o,i){var a=o.metadata,c=o.kind,u=o.name;if("field"!==c)throw new SyntaxError("The @Normalizable must decorate a class field: ".concat(u));if("function"!=typeof i)throw new TypeError('The argument of @Normalizable decorated on the "'.concat(u,'" field must be a function, but it is a ').concat(t(i),"."));setFieldMetadata(a,u,lt,i)}function Normalizable(){if(1===arguments.length){var t,r=null!==(t=arguments.length<=0?void 0:arguments[0])&&void 0!==t?t:defaultNormalizer;return function(t,o){return setNormalizer(0,o,r)}}if(2!==arguments.length||!isDecoratorContext(arguments.length<=1?void 0:arguments[1]))throw new SyntaxError("Invalid use of @Normalizable decorator.");setNormalizer(0,arguments.length<=1?void 0:arguments[1],defaultNormalizer)}function normalize(t){return defaultNormalizer(t)}function Nullable(t,r){var o=r.kind,i=r.name,a=r.metadata;if("field"!==o)throw new SyntaxError("The decorator @Nullable can only decorate a class field: ".concat(i));setFieldMetadata(a,i,ct,!0)}function Readonly(t,r){if("field"!==r.kind)throw new Error("@Readonly can only be applied to class fields.");var o;return r.addInitializer((function initializer(){void 0!==o?function createImmediateReadonlyInitializer(t,r){return function immediateReadonlyInitializer(){Object.defineProperty(this,t,{value:r,writable:!1,configurable:!1,enumerable:!0})}}(r.name,o).call(this):function createDeferredReadonlyInitializer(t){return function deferredReadonlyInitializer(){var r;Object.defineProperty(this,t,{configurable:!0,enumerable:!0,get:function get(){return r},set:function set(o){r=o,Object.defineProperty(this,t,{value:o,writable:!1,configurable:!1,enumerable:!0})}})}}(r.name).call(this)})),function initializer(t){return o=t,t}}function stringifyId(t){return null==t?"":l(t)?t:w.stringify(t)}function ownKeys(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ownKeys(Object(i),!0).forEach((function(o){r(t,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}function toJSON(t){return toJsonImpl(t,0,_objectSpread(_objectSpread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{skipRootToJSON:!1}))}function toJsonString(r,o){if("object"!==t(r))throw new TypeError("The object to be serialized must be an object.");r.constructor;return toJsonStringImpl(0,r,o)}function Type(t){return function decorate(r,o){var i=o.kind,a=o.name,c=o.metadata;if("field"!==i)throw new SyntaxError("The decorator @Type can only decorate a class field: ".concat(a));if("function"!=typeof t)throw new TypeError('The argument of @Type decorated on "'.concat(a,'" must be the constructor of a class.'));setFieldMetadata(c,a,it,t)}}function defaultValidator(r,o){var i=o.owner,a=o.type,c=o.label,l=o.nullable,p=o.nonEmpty;if(null==r){if(l)return new Xt(!0);var d=i?"必须设置".concat(i,"的").concat(c,"的值"):"必须设置".concat(c,"的值");return new Xt(!1,d)}if(u(r)&&p){var h=i?"".concat(i,"的").concat(c,"不能为空"):"".concat(c,"不能为空");return new Xt(!1,h)}if(a){if(isEnumClass(a)&&"string"==typeof r){if(a.hasValue(r))return new Xt(!0);var m=i?"".concat(i,"的").concat(c,"的值不受支持: ").concat(r):"".concat(c,"的值不受支持: ").concat(r);return new Xt(!1,m)}if(r.constructor!==a){var y=i?"".concat(i,"的").concat(c,"必须是 ").concat(a.name," 类型"):"".concat(c,"必须是 ").concat(a.name," 类型");return new Xt(!1,y)}}return"object"===t(r)&&"function"==typeof r.validate?r.validate("*",{owner:i}):new Xt(!0)}function setValidator(r,o,i){var a=o.metadata,c=o.kind,u=o.name;if("field"!==c)throw new SyntaxError("The @Validatable must decorate a class field: ".concat(u));if("function"!=typeof i)throw new TypeError('The argument of @Validatable decorated on the "'.concat(u,'" field must be a function, but it is a ').concat(t(i),"."));setFieldMetadata(a,u,ft,i)}function Validatable(){if(1===arguments.length){var t,r=null!==(t=arguments.length<=0?void 0:arguments[0])&&void 0!==t?t:defaultValidator;return function(t,o){return setValidator(0,o,r)}}if(2!==arguments.length||!isDecoratorContext(arguments.length<=1?void 0:arguments[1]))throw new SyntaxError("Invalid use of @Validatable decorator.");setValidator(0,arguments.length<=1?void 0:arguments[1],defaultValidator)}export{bt as DefaultOptions,ElementType,Enum,Label,Model,NameField,NonEmpty,Normalizable,Nullable,It as Page,Readonly,Type,Validatable,assign,create,createArray,createPage,defaultNormalizer,enumNormalizer,getDefaultInstance,getFieldElementType,getFieldType,getSourceField,hasOwnProperty,hasOwnPrototypeFunction,hasProperty,hasPrototypeFunction,isEnumClass,isEnumerator,normalize,stringifyId,toJSON,toJsonString};//# sourceMappingURL=common-decorator.min.mjs.map