@mongodb-js/compass-web 0.36.0 → 0.36.1
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.
- package/dist/157.ab4998e7eb2874601f10.mjs +2 -0
- package/dist/{566.513352a4be9e2a46530b.mjs → 183.652977da27df0eb51f2b.mjs} +3 -3
- package/dist/187.761186d8e743ea68ec17.mjs +2 -0
- package/dist/{20.f2c2353886886939e128.mjs.LICENSE.txt → 187.761186d8e743ea68ec17.mjs.LICENSE.txt} +6 -0
- package/dist/503.edf8a9c8de8551ffb233.mjs +378 -0
- package/dist/811.caf23f67d965d1c56224.mjs +1 -0
- package/dist/819.a2cb944a78e8da07819a.mjs +2 -0
- package/dist/832.e3ec48107659934f74e7.mjs +2 -0
- package/dist/941.489a74e5b1130ccb5673.mjs +2 -0
- package/dist/957.77fd779cd858963de4c6.mjs +1 -0
- package/dist/965.521bb6d90f74d9a364b7.mjs +1 -0
- package/dist/assets-manifest.json +11 -11
- package/dist/compass-web.mjs +9 -9
- package/dist/index-bde52cb3.dcb93bf5aae17031a20c.mjs +1 -0
- package/package.json +39 -38
- package/dist/149.abccc0e903c0f5ea7354.mjs +0 -372
- package/dist/20.f2c2353886886939e128.mjs +0 -2
- package/dist/207.d69541eff41412663f35.mjs +0 -2
- package/dist/563.mjs +0 -1
- package/dist/68.f1ca0ed16b5fa27e2cf1.mjs +0 -1
- package/dist/69.mjs +0 -1
- package/dist/724.8aae14d079e334751961.mjs +0 -8
- package/dist/724.8aae14d079e334751961.mjs.LICENSE.txt +0 -5
- package/dist/737.mjs +0 -1
- package/dist/745.mjs +0 -1
- package/dist/832.a6fb147f7fd965a7f30c.mjs +0 -2
- package/dist/938.e127bbcdd0ce0eab8722.mjs +0 -2
- package/dist/965.3c1bdf715c3551cfe1ba.mjs +0 -1
- package/dist/995.c3bb8ac49cdffa0211da.mjs +0 -2
- package/dist/index-bde52cb3.a964d5743a224d2efb82.mjs +0 -1
- /package/dist/{995.c3bb8ac49cdffa0211da.mjs.LICENSE.txt → 157.ab4998e7eb2874601f10.mjs.LICENSE.txt} +0 -0
- /package/dist/{566.513352a4be9e2a46530b.mjs.LICENSE.txt → 183.652977da27df0eb51f2b.mjs.LICENSE.txt} +0 -0
- /package/dist/{149.abccc0e903c0f5ea7354.mjs.LICENSE.txt → 503.edf8a9c8de8551ffb233.mjs.LICENSE.txt} +0 -0
- /package/dist/{207.d69541eff41412663f35.mjs.LICENSE.txt → 819.a2cb944a78e8da07819a.mjs.LICENSE.txt} +0 -0
- /package/dist/{832.a6fb147f7fd965a7f30c.mjs.LICENSE.txt → 832.e3ec48107659934f74e7.mjs.LICENSE.txt} +0 -0
- /package/dist/{938.e127bbcdd0ce0eab8722.mjs.LICENSE.txt → 941.489a74e5b1130ccb5673.mjs.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 207.d69541eff41412663f35.mjs.LICENSE.txt */
|
|
2
|
-
export const __webpack_esm_id__=207;export const __webpack_esm_ids__=[207];export const __webpack_esm_modules__={219:(e,t,r)=>{var n=r(66143)(r(77450),"DataView");e.exports=n},804:(e,t,r)=>{var n=r(7079),i=r(75678);function a(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}a.prototype=n(i.prototype),a.prototype.constructor=a,e.exports=a},1462:(e,t,r)=>{var n=r(70158),i=r(64271),a=r(36802),o=n?n.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(o&&e&&e[o])}},1832:(e,t,r)=>{var n=r(24878);e.exports=function(e){return n(this.__data__,e)>-1}},2007:(e,t,r)=>{var n=r(70158),i=r(61234),a=r(86305),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},2152:(e,t,r)=>{var n=r(43501),i=r(5277);e.exports=function(e,t){return n(i(e,t),1)}},2189:(e,t,r)=>{var n=r(91706),i=n&&new n;e.exports=i},2318:(e,t,r)=>{var n=r(8736),i=r(63627);e.exports=function(e,t,r,a){var o=r.length,s=o,l=!a;if(null==e)return!s;for(e=Object(e);o--;){var u=r[o];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var c=(u=r[o])[0],p=e[c],h=u[1];if(l&&u[2]){if(void 0===p&&!(c in e))return!1}else{var d=new n;if(a)var f=a(p,h,c,e,t,d);if(!(void 0===f?i(h,p,3,a,d):f))return!1}}return!0}},3229:(e,t,r)=>{var n=r(58462),i=r(52733);e.exports=function(e,t){var r=-1,a=i(e)?Array(e.length):[];return n(e,(function(e,n,i){a[++r]=t(e,n,i)})),a}},3863:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3944:(e,t,r)=>{var n=r(24878);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},4106:(e,t,r)=>{var n=r(79845),i=r(27241),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var o=e[t];a.call(e,t)&&i(o,r)&&(void 0!==r||t in e)||n(e,t,r)}},4436:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},4942:(e,t,r)=>{var n=r(66446),i=r(61595)((function(e,t){return null==e?{}:n(e,t)}));e.exports=i},5277:(e,t,r)=>{var n=r(79603),i=r(43434),a=r(3229),o=r(36802);e.exports=function(e,t){return(o(e)?n:a)(e,i(t,3))}},6617:(e,t,r)=>{var n=r(58599),i=0;e.exports=function(e){var t=++i;return n(e)+t}},7079:(e,t,r)=>{var n=r(54200),i=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},7506:(e,t,r)=>{var n=r(52733),i=r(71039);e.exports=function(e){return i(e)&&n(e)}},8204:(e,t,r)=>{var n=r(26334);e.exports=function(e,t){var r;if("function"!=typeof t)throw new TypeError("Expected a function");return e=n(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}},8280:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},8591:(e,t,r)=>{var n=r(37512),i=r(62430),a=r(43434),o=r(36802);e.exports=function(e,t){return function(r,s){var l=o(r)?n:i,u=t?t():{};return l(r,e,a(s,2),u)}}},8639:e=>{e.exports=function(e){return void 0===e}},8736:(e,t,r)=>{var n=r(75182),i=r(34627),a=r(3863),o=r(52742),s=r(86498),l=r(79034);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=s,u.prototype.set=l,e.exports=u},8881:(e,t,r)=>{var n=r(52242),i=r(65811),a=r(29785);e.exports=function(e){return function(t,r,o){return o&&"number"!=typeof o&&i(t,r,o)&&(r=o=void 0),t=a(t),void 0===r?(r=t,t=0):r=a(r),o=void 0===o?t<r?1:-1:a(o),n(t,r,o,e)}}},9625:(e,t,r)=>{var n=r(70158),i=r(81507),a=r(27241),o=r(28642),s=r(78434),l=r(48536),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var f=1&n;if(d||(d=l),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var g=o(d(e),d(t),n,u,p,h);return h.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},9693:(e,t,r)=>{var n=r(71077),i=r(804),a=r(75678),o=r(36802),s=r(71039),l=r(64006),u=Object.prototype.hasOwnProperty;function c(e){if(s(e)&&!o(e)&&!(e instanceof n)){if(e instanceof i)return e;if(u.call(e,"__wrapped__"))return l(e)}return new i(e)}c.prototype=a.prototype,c.prototype.constructor=c,e.exports=c},9739:e=>{e.exports=function(){}},9875:(e,t,r)=>{var n=r(27458),i=r(71039);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},10028:(e,t,r)=>{var n=r(85453),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},10439:(e,t,r)=>{var n=r(54200);e.exports=function(e){return e==e&&!n(e)}},10675:(e,t,r)=>{var n=r(69279),i=r(22811),a=r(23674);e.exports=function(e,t,r){for(var o=-1,s=t.length,l={};++o<s;){var u=t[o],c=n(e,u);r(c,u)&&i(l,a(u,e),c)}return l}},10740:(e,t,r)=>{var n=r(45471)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},10814:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},11095:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},11214:(e,t,r)=>{e=r.nmd(e);var n=r(90627),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&n.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},11310:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}},11385:(e,t,r)=>{var n=r(65879);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},11835:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},11989:e=>{e.exports=function(){this.__data__=[],this.size=0}},12310:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},12511:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},13306:(e,t,r)=>{r.d(t,{z:()=>l});let n=[],i=[];function a(e){if(e<768)return!1;for(let t=0,r=n.length;;){let a=t+r>>1;if(e<n[a])r=a;else{if(!(e>=i[a]))return!0;t=a+1}if(t==r)return!1}}function o(e){return e>=127462&&e<=127487}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let t=0,r=0;t<e.length;t++)(t%2?i:n).push(r+=e[t])})();const s=8205;function l(e,t,r=!0,n=!0){return(r?u:c)(e,t,n)}function u(e,t,r){if(t==e.length)return t;t&&h(e.charCodeAt(t))&&d(e.charCodeAt(t-1))&&t--;let n=p(e,t);for(t+=f(n);t<e.length;){let i=p(e,t);if(n==s||i==s||r&&a(i))t+=f(i),n=i;else{if(!o(i))break;{let r=0,n=t-2;for(;n>=0&&o(p(e,n));)r++,n-=2;if(r%2==0)break;t+=2}}}return t}function c(e,t,r){for(;t>0;){let n=u(e,t-2,r);if(n<t)return n;t--}return 0}function p(e,t){let r=e.charCodeAt(t);if(!d(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return h(n)?n-56320+(r-55296<<10)+65536:r}function h(e){return e>=56320&&e<57344}function d(e){return e>=55296&&e<56320}function f(e){return e<65536?1:2}},13692:(e,t,r)=>{var n=r(40566);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},13919:(e,t,r)=>{var n=r(2007),i=r(71039);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},14114:e=>{e.exports=function(e){return e!=e}},14956:(e,t,r)=>{var n=r(25098),i=r(53292),a=r(52733);e.exports=function(e){return a(e)?n(e,!0):i(e)}},15286:(e,t,r)=>{var n=r(80712),i=r(63655);e.exports=function(e,t){return e&&n(e,t,i)}},16231:(e,t,r)=>{var n=r(36802),i=r(13919),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||o.test(e)||!a.test(e)||null!=t&&e in Object(t)}},17208:(e,t,r)=>{var n=r(19792);e.exports=function(e){return n(this,e).has(e)}},17865:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},18329:(e,t,r)=>{var n=r(32484),i=r(56392),a=r(77450);e.exports=function(e,t,r,o){var s=1&t,l=i(e);return function t(){for(var i=-1,u=arguments.length,c=-1,p=o.length,h=Array(p+u),d=this&&this!==a&&this instanceof t?l:e;++c<p;)h[c]=o[c];for(;u--;)h[c++]=arguments[++i];return n(d,s?r:this,h)}}},18916:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},19564:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},19792:(e,t,r)=>{var n=r(56287);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},19875:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},20235:(e,t,r)=>{var n=r(10439),i=r(63655);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var a=t[r],o=e[a];t[r]=[a,o,n(o)]}return t}},20846:(e,t,r)=>{var n=r(97110),i=r(44345),a=r(58599),o=r(60854);e.exports=function(e,t,r){return e=a(e),void 0===(t=r?void 0:t)?i(e)?o(e):n(e):e.match(t)||[]}},20990:function(e,t,r){var n;e=r.nmd(e),function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,c=1/0,p=9007199254740991,h=NaN,d=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",_="[object Function]",x="[object GeneratorFunction]",k="[object Map]",w="[object Number]",S="[object Object]",I="[object Promise]",P="[object RegExp]",$="[object Set]",E="[object String]",A="[object Symbol]",C="[object WeakMap]",T="[object ArrayBuffer]",D="[object DataView]",z="[object Float32Array]",M="[object Float64Array]",O="[object Int8Array]",j="[object Int16Array]",F="[object Int32Array]",N="[object Uint8Array]",R="[object Uint8ClampedArray]",U="[object Uint16Array]",L="[object Uint32Array]",Z=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,H=RegExp(G.source),W=RegExp(q.source),J=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",$e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ee="["+xe+"]",Ae="["+$e+"]",Ce="["+ke+"]",Te="\\d+",De="["+we+"]",ze="["+Se+"]",Me="[^"+xe+$e+Te+we+Se+Ie+"]",Oe="\\ud83c[\\udffb-\\udfff]",je="[^"+xe+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="["+Ie+"]",Ue="\\u200d",Le="(?:"+ze+"|"+Me+")",Ze="(?:"+Re+"|"+Me+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Be="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ce+"|"+Oe+")?",qe="["+Pe+"]?",He=qe+Ge+"(?:"+Ue+"(?:"+[je,Fe,Ne].join("|")+")"+qe+Ge+")*",We="(?:"+[De,Fe,Ne].join("|")+")"+He,Je="(?:"+[je+Ce+"?",Ce,Fe,Ne,Ee].join("|")+")",Ke=RegExp("['’]","g"),Xe=RegExp(Ce,"g"),Ye=RegExp(Oe+"(?="+Oe+")|"+Je+He,"g"),Qe=RegExp([Re+"?"+ze+"+"+Ve+"(?="+[Ae,Re,"$"].join("|")+")",Ze+"+"+Be+"(?="+[Ae,Re+Le,"$"].join("|")+")",Re+"?"+Le+"+"+Ve,Re+"+"+Be,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,We].join("|"),"g"),et=RegExp("["+Ue+xe+ke+Pe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,it={};it[z]=it[M]=it[O]=it[j]=it[F]=it[N]=it[R]=it[U]=it[L]=!0,it[m]=it[g]=it[T]=it[v]=it[D]=it[y]=it[b]=it[_]=it[k]=it[w]=it[S]=it[P]=it[$]=it[E]=it[C]=!1;var at={};at[m]=at[g]=at[T]=at[D]=at[v]=at[y]=at[z]=at[M]=at[O]=at[j]=at[F]=at[k]=at[w]=at[S]=at[P]=at[$]=at[E]=at[A]=at[N]=at[R]=at[U]=at[L]=!0,at[b]=at[_]=at[C]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ut="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ct="object"==typeof self&&self&&self.Object===Object&&self,pt=ut||ct||Function("return this")(),ht=t&&!t.nodeType&&t,dt=ht&&e&&!e.nodeType&&e,ft=dt&&dt.exports===ht,mt=ft&&ut.process,gt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,bt=gt&>.isMap,_t=gt&>.isRegExp,xt=gt&>.isSet,kt=gt&>.isTypedArray;function wt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function St(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function It(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Pt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function $t(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Et(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function At(e,t){return!(null==e||!e.length)&&Rt(e,t,0)>-1}function Ct(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function Tt(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function Dt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function zt(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function Mt(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function Ot(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var jt=Vt("length");function Ft(e,t,r){var n;return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function Nt(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Rt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Nt(e,Lt,r)}function Ut(e,t,r,n){for(var i=r-1,a=e.length;++i<a;)if(n(e[i],t))return i;return-1}function Lt(e){return e!=e}function Zt(e,t){var r=null==e?0:e.length;return r?qt(e,t)/r:h}function Vt(e){return function(t){return null==t?i:t[e]}}function Bt(e){return function(t){return null==e?i:e[t]}}function Gt(e,t,r,n,i){return i(e,(function(e,i,a){r=n?(n=!1,e):t(r,e,i,a)})),r}function qt(e,t){for(var r,n=-1,a=e.length;++n<a;){var o=t(e[n]);o!==i&&(r=r===i?o:r+o)}return r}function Ht(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Wt(e){return e?e.slice(0,pr(e)+1).replace(ne,""):e}function Jt(e){return function(t){return e(t)}}function Kt(e,t){return Tt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Yt(e,t){for(var r=-1,n=e.length;++r<n&&Rt(t,e[r],0)>-1;);return r}function Qt(e,t){for(var r=e.length;r--&&Rt(t,e[r],0)>-1;);return r}var er=Bt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=Bt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(e){return"\\"+ot[e]}function nr(e){return et.test(e)}function ir(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ar(e,t){return function(r){return e(t(r))}}function or(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];o!==t&&o!==s||(e[r]=s,a[i++]=r)}return a}function sr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function lr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function ur(e){return nr(e)?function(e){for(var t=Ye.lastIndex=0;Ye.test(e);)++t;return t}(e):jt(e)}function cr(e){return nr(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.split("")}(e)}function pr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var hr=Bt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),dr=function e(t){var r,n=(t=null==t?pt:dr.defaults(pt.Object(),t,dr.pick(pt,rt))).Array,ie=t.Date,xe=t.Error,ke=t.Function,we=t.Math,Se=t.Object,Ie=t.RegExp,Pe=t.String,$e=t.TypeError,Ee=n.prototype,Ae=ke.prototype,Ce=Se.prototype,Te=t["__core-js_shared__"],De=Ae.toString,ze=Ce.hasOwnProperty,Me=0,Oe=(r=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",je=Ce.toString,Fe=De.call(Se),Ne=pt._,Re=Ie("^"+De.call(ze).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ft?t.Buffer:i,Le=t.Symbol,Ze=t.Uint8Array,Ve=Ue?Ue.allocUnsafe:i,Be=ar(Se.getPrototypeOf,Se),Ge=Se.create,qe=Ce.propertyIsEnumerable,He=Ee.splice,We=Le?Le.isConcatSpreadable:i,Je=Le?Le.iterator:i,Ye=Le?Le.toStringTag:i,et=function(){try{var e=la(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ut=ie&&ie.now!==pt.Date.now&&ie.now,ct=t.setTimeout!==pt.setTimeout&&t.setTimeout,ht=we.ceil,dt=we.floor,mt=Se.getOwnPropertySymbols,gt=Ue?Ue.isBuffer:i,jt=t.isFinite,Bt=Ee.join,fr=ar(Se.keys,Se),mr=we.max,gr=we.min,vr=ie.now,yr=t.parseInt,br=we.random,_r=Ee.reverse,xr=la(t,"DataView"),kr=la(t,"Map"),wr=la(t,"Promise"),Sr=la(t,"Set"),Ir=la(t,"WeakMap"),Pr=la(Se,"create"),$r=Ir&&new Ir,Er={},Ar=ja(xr),Cr=ja(kr),Tr=ja(wr),Dr=ja(Sr),zr=ja(Ir),Mr=Le?Le.prototype:i,Or=Mr?Mr.valueOf:i,jr=Mr?Mr.toString:i;function Fr(e){if(es(e)&&!Vo(e)&&!(e instanceof Lr)){if(e instanceof Ur)return e;if(ze.call(e,"__wrapped__"))return Fa(e)}return new Ur(e)}var Nr=function(){function e(){}return function(t){if(!Qo(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Rr(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Lr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Br(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Br;++t<r;)this.add(e[t])}function qr(e){var t=this.__data__=new Vr(e);this.size=t.size}function Hr(e,t){var r=Vo(e),n=!r&&Zo(e),i=!r&&!n&&Ho(e),a=!r&&!n&&!i&&ls(e),o=r||n||i||a,s=o?Ht(e.length,Pe):[],l=s.length;for(var u in e)!t&&!ze.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ma(u,l))||s.push(u);return s}function Wr(e){var t=e.length;return t?e[Gn(0,t-1)]:i}function Jr(e,t){return Ta(Pi(e),an(t,0,e.length))}function Kr(e){return Ta(Pi(e))}function Xr(e,t,r){(r!==i&&!Ro(e[t],r)||r===i&&!(t in e))&&rn(e,t,r)}function Yr(e,t,r){var n=e[t];ze.call(e,t)&&Ro(n,r)&&(r!==i||t in e)||rn(e,t,r)}function Qr(e,t){for(var r=e.length;r--;)if(Ro(e[r][0],t))return r;return-1}function en(e,t,r,n){return cn(e,(function(e,i,a){t(n,e,r(e),a)})),n}function tn(e,t){return e&&$i(t,Cs(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,a=t.length,o=n(a),s=null==e;++r<a;)o[r]=s?i:Is(e,t[r]);return o}function an(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function on(e,t,r,n,a,o){var s,l=1&t,u=2&t,c=4&t;if(r&&(s=a?r(e,n,a,o):r(e)),s!==i)return s;if(!Qo(e))return e;var p=Vo(e);if(p){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ze.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return Pi(e,s)}else{var h=pa(e),d=h==_||h==x;if(Ho(e))return _i(e,l);if(h==S||h==m||d&&!a){if(s=u||d?{}:da(e),!l)return u?function(e,t){return $i(e,ca(e),t)}(e,function(e,t){return e&&$i(t,Ts(t),e)}(s,e)):function(e,t){return $i(e,ua(e),t)}(e,tn(s,e))}else{if(!at[h])return a?e:{};s=function(e,t,r){var n,i=e.constructor;switch(t){case T:return xi(e);case v:case y:return new i(+e);case D:return function(e,t){var r=t?xi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case z:case M:case O:case j:case F:case N:case R:case U:case L:return ki(e,r);case k:return new i;case w:case E:return new i(e);case P:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case $:return new i;case A:return n=e,Or?Se(Or.call(n)):{}}}(e,h,l)}}o||(o=new qr);var f=o.get(e);if(f)return f;o.set(e,s),as(e)?e.forEach((function(n){s.add(on(n,t,r,n,e,o))})):ts(e)&&e.forEach((function(n,i){s.set(i,on(n,t,r,i,e,o))}));var g=p?i:(c?u?ta:ea:u?Ts:Cs)(e);return It(g||e,(function(n,i){g&&(n=e[i=n]),Yr(s,i,on(n,t,r,i,e,o))})),s}function sn(e,t,r){var n=r.length;if(null==e)return!n;for(e=Se(e);n--;){var a=r[n],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function ln(e,t,r){if("function"!=typeof e)throw new $e(a);return $a((function(){e.apply(i,r)}),t)}function un(e,t,r,n){var i=-1,a=At,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=Tt(t,Jt(r))),n?(a=Ct,o=!1):t.length>=200&&(a=Xt,o=!1,t=new Gr(t));e:for(;++i<s;){var c=e[i],p=null==r?c:r(c);if(c=n||0!==c?c:0,o&&p==p){for(var h=u;h--;)if(t[h]===p)continue e;l.push(c)}else a(t,p,n)||l.push(c)}return l}Fr.templateSettings={escape:J,evaluate:K,interpolate:X,variable:"",imports:{_:Fr}},Fr.prototype=Rr.prototype,Fr.prototype.constructor=Fr,Ur.prototype=Nr(Rr.prototype),Ur.prototype.constructor=Ur,Lr.prototype=Nr(Rr.prototype),Lr.prototype.constructor=Lr,Zr.prototype.clear=function(){this.__data__=Pr?Pr(null):{},this.size=0},Zr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Zr.prototype.get=function(e){var t=this.__data__;if(Pr){var r=t[e];return r===o?i:r}return ze.call(t,e)?t[e]:i},Zr.prototype.has=function(e){var t=this.__data__;return Pr?t[e]!==i:ze.call(t,e)},Zr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pr&&t===i?o:t,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(e){var t=this.__data__,r=Qr(t,e);return!(r<0||(r==t.length-1?t.pop():He.call(t,r,1),--this.size,0))},Vr.prototype.get=function(e){var t=this.__data__,r=Qr(t,e);return r<0?i:t[r][1]},Vr.prototype.has=function(e){return Qr(this.__data__,e)>-1},Vr.prototype.set=function(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Br.prototype.clear=function(){this.size=0,this.__data__={hash:new Zr,map:new(kr||Vr),string:new Zr}},Br.prototype.delete=function(e){var t=oa(this,e).delete(e);return this.size-=t?1:0,t},Br.prototype.get=function(e){return oa(this,e).get(e)},Br.prototype.has=function(e){return oa(this,e).has(e)},Br.prototype.set=function(e,t){var r=oa(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(e){return this.__data__.set(e,o),this},Gr.prototype.has=function(e){return this.__data__.has(e)},qr.prototype.clear=function(){this.__data__=new Vr,this.size=0},qr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},qr.prototype.get=function(e){return this.__data__.get(e)},qr.prototype.has=function(e){return this.__data__.has(e)},qr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!kr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Br(n)}return r.set(e,t),this.size=r.size,this};var cn=Ci(yn),pn=Ci(bn,!0);function hn(e,t){var r=!0;return cn(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function dn(e,t,r){for(var n=-1,a=e.length;++n<a;){var o=e[n],s=t(o);if(null!=s&&(l===i?s==s&&!ss(s):r(s,l)))var l=s,u=o}return u}function fn(e,t){var r=[];return cn(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function mn(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=fa),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?mn(s,t-1,r,n,i):Dt(i,s):n||(i[i.length]=s)}return i}var gn=Ti(),vn=Ti(!0);function yn(e,t){return e&&gn(e,t,Cs)}function bn(e,t){return e&&vn(e,t,Cs)}function _n(e,t){return Et(t,(function(t){return Ko(e[t])}))}function xn(e,t){for(var r=0,n=(t=gi(t,e)).length;null!=e&&r<n;)e=e[Oa(t[r++])];return r&&r==n?e:i}function kn(e,t,r){var n=t(e);return Vo(e)?n:Dt(n,r(e))}function wn(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ye&&Ye in Se(e)?function(e){var t=ze.call(e,Ye),r=e[Ye];try{e[Ye]=i;var n=!0}catch(e){}var a=je.call(e);return n&&(t?e[Ye]=r:delete e[Ye]),a}(e):function(e){return je.call(e)}(e)}function Sn(e,t){return e>t}function In(e,t){return null!=e&&ze.call(e,t)}function Pn(e,t){return null!=e&&t in Se(e)}function $n(e,t,r){for(var a=r?Ct:At,o=e[0].length,s=e.length,l=s,u=n(s),c=1/0,p=[];l--;){var h=e[l];l&&t&&(h=Tt(h,Jt(t))),c=gr(h.length,c),u[l]=!r&&(t||o>=120&&h.length>=120)?new Gr(l&&h):i}h=e[0];var d=-1,f=u[0];e:for(;++d<o&&p.length<c;){var m=h[d],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?Xt(f,g):a(p,g,r))){for(l=s;--l;){var v=u[l];if(!(v?Xt(v,g):a(e[l],g,r)))continue e}f&&f.push(g),p.push(m)}}return p}function En(e,t,r){var n=null==(e=Sa(e,t=gi(t,e)))?e:e[Oa(Wa(t))];return null==n?i:wt(n,e,r)}function An(e){return es(e)&&wn(e)==m}function Cn(e,t,r,n,a){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,r,n,a,o){var s=Vo(e),l=Vo(t),u=s?g:pa(e),c=l?g:pa(t),p=(u=u==m?S:u)==S,h=(c=c==m?S:c)==S,d=u==c;if(d&&Ho(e)){if(!Ho(t))return!1;s=!0,p=!1}if(d&&!p)return o||(o=new qr),s||ls(e)?Yi(e,t,r,n,a,o):function(e,t,r,n,i,a,o){switch(r){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!a(new Ze(e),new Ze(t)));case v:case y:case w:return Ro(+e,+t);case b:return e.name==t.name&&e.message==t.message;case P:case E:return e==t+"";case k:var s=ir;case $:var l=1&n;if(s||(s=sr),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=2,o.set(e,t);var c=Yi(s(e),s(t),n,i,a,o);return o.delete(e),c;case A:if(Or)return Or.call(e)==Or.call(t)}return!1}(e,t,u,r,n,a,o);if(!(1&r)){var f=p&&ze.call(e,"__wrapped__"),_=h&&ze.call(t,"__wrapped__");if(f||_){var x=f?e.value():e,I=_?t.value():t;return o||(o=new qr),a(x,I,r,n,o)}}return!!d&&(o||(o=new qr),function(e,t,r,n,a,o){var s=1&r,l=ea(e),u=l.length;if(u!=ea(t).length&&!s)return!1;for(var c=u;c--;){var p=l[c];if(!(s?p in t:ze.call(t,p)))return!1}var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var f=!0;o.set(e,t),o.set(t,e);for(var m=s;++c<u;){var g=e[p=l[c]],v=t[p];if(n)var y=s?n(v,g,p,t,e,o):n(g,v,p,e,t,o);if(!(y===i?g===v||a(g,v,r,n,o):y)){f=!1;break}m||(m="constructor"==p)}if(f&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,r,n,a,o))}(e,t,r,n,Cn,a))}function Tn(e,t,r,n){var a=r.length,o=a,s=!n;if(null==e)return!o;for(e=Se(e);a--;){var l=r[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var u=(l=r[a])[0],c=e[u],p=l[1];if(s&&l[2]){if(c===i&&!(u in e))return!1}else{var h=new qr;if(n)var d=n(c,p,u,e,t,h);if(!(d===i?Cn(p,c,3,n,h):d))return!1}}return!0}function Dn(e){return!(!Qo(e)||(t=e,Oe&&Oe in t))&&(Ko(e)?Re:me).test(ja(e));var t}function zn(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Vo(e)?Nn(e[0],e[1]):Fn(e):pl(e)}function Mn(e){if(!_a(e))return fr(e);var t=[];for(var r in Se(e))ze.call(e,r)&&"constructor"!=r&&t.push(r);return t}function On(e,t){return e<t}function jn(e,t){var r=-1,i=Go(e)?n(e.length):[];return cn(e,(function(e,n,a){i[++r]=t(e,n,a)})),i}function Fn(e){var t=sa(e);return 1==t.length&&t[0][2]?ka(t[0][0],t[0][1]):function(r){return r===e||Tn(r,e,t)}}function Nn(e,t){return va(e)&&xa(t)?ka(Oa(e),t):function(r){var n=Is(r,e);return n===i&&n===t?Ps(r,e):Cn(t,n,3)}}function Rn(e,t,r,n,a){e!==t&&gn(t,(function(o,s){if(a||(a=new qr),Qo(o))!function(e,t,r,n,a,o,s){var l=Ia(e,r),u=Ia(t,r),c=s.get(u);if(c)Xr(e,r,c);else{var p=o?o(l,u,r+"",e,t,s):i,h=p===i;if(h){var d=Vo(u),f=!d&&Ho(u),m=!d&&!f&&ls(u);p=u,d||f||m?Vo(l)?p=l:qo(l)?p=Pi(l):f?(h=!1,p=_i(u,!0)):m?(h=!1,p=ki(u,!0)):p=[]:ns(u)||Zo(u)?(p=l,Zo(l)?p=gs(l):Qo(l)&&!Ko(l)||(p=da(u))):h=!1}h&&(s.set(u,p),a(p,u,n,o,s),s.delete(u)),Xr(e,r,p)}}(e,t,s,r,Rn,n,a);else{var l=n?n(Ia(e,s),o,s+"",e,t,a):i;l===i&&(l=o),Xr(e,s,l)}}),Ts)}function Un(e,t){var r=e.length;if(r)return ma(t+=t<0?r:0,r)?e[t]:i}function Ln(e,t,r){t=t.length?Tt(t,(function(e){return Vo(e)?function(t){return xn(t,1===e.length?e[0]:e)}:e})):[rl];var n=-1;t=Tt(t,Jt(aa()));var i=jn(e,(function(e,r,i){var a=Tt(t,(function(t){return t(e)}));return{criteria:a,index:++n,value:e}}));return function(e){var t=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=wi(i[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));t--;)e[t]=e[t].value;return e}(i)}function Zn(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=xn(e,o);r(s,o)&&Kn(a,gi(o,e),s)}return a}function Vn(e,t,r,n){var i=n?Ut:Rt,a=-1,o=t.length,s=e;for(e===t&&(t=Pi(t)),r&&(s=Tt(e,Jt(r)));++a<o;)for(var l=0,u=t[a],c=r?r(u):u;(l=i(s,c,l,n))>-1;)s!==e&&He.call(s,l,1),He.call(e,l,1);return e}function Bn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==a){var a=i;ma(i)?He.call(e,i,1):li(e,i)}}return e}function Gn(e,t){return e+dt(br()*(t-e+1))}function qn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=dt(t/2))&&(e+=e)}while(t);return r}function Hn(e,t){return Ea(wa(e,t,rl),e+"")}function Wn(e){return Wr(Rs(e))}function Jn(e,t){var r=Rs(e);return Ta(r,an(t,0,r.length))}function Kn(e,t,r,n){if(!Qo(e))return e;for(var a=-1,o=(t=gi(t,e)).length,s=o-1,l=e;null!=l&&++a<o;){var u=Oa(t[a]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=s){var p=l[u];(c=n?n(p,u,l):i)===i&&(c=Qo(p)?p:ma(t[a+1])?[]:{})}Yr(l,u,c),l=l[u]}return e}var Xn=$r?function(e,t){return $r.set(e,t),e}:rl,Yn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:rl;function Qn(e){return Ta(Rs(e))}function ei(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=n(a);++i<a;)o[i]=e[i+t];return o}function ti(e,t){var r;return cn(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function ri(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var a=n+i>>>1,o=e[a];null!==o&&!ss(o)&&(r?o<=t:o<t)?n=a+1:i=a}return i}return ni(e,t,rl,r)}function ni(e,t,r,n){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=r(t))!=t,l=null===t,u=ss(t),c=t===i;a<o;){var p=dt((a+o)/2),h=r(e[p]),d=h!==i,f=null===h,m=h==h,g=ss(h);if(s)var v=n||m;else v=c?m&&(n||d):l?m&&d&&(n||!f):u?m&&d&&!f&&(n||!g):!f&&!g&&(n?h<=t:h<t);v?a=p+1:o=p}return gr(o,4294967294)}function ii(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r],s=t?t(o):o;if(!r||!Ro(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function ai(e){return"number"==typeof e?e:ss(e)?h:+e}function oi(e){if("string"==typeof e)return e;if(Vo(e))return Tt(e,oi)+"";if(ss(e))return jr?jr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,r){var n=-1,i=At,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=Ct;else if(a>=200){var u=t?null:qi(e);if(u)return sr(u);o=!1,i=Xt,l=new Gr}else l=t?[]:s;e:for(;++n<a;){var c=e[n],p=t?t(c):c;if(c=r||0!==c?c:0,o&&p==p){for(var h=l.length;h--;)if(l[h]===p)continue e;t&&l.push(p),s.push(c)}else i(l,p,r)||(l!==s&&l.push(p),s.push(c))}return s}function li(e,t){var r=-1,n=(t=gi(t,e)).length;if(!n)return!0;for(;++r<n;){var i=Oa(t[r]);if("__proto__"===i&&!ze.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&r<n-1)return!1}var a=Sa(e,t);return null==a||delete a[Oa(Wa(t))]}function ui(e,t,r,n){return Kn(e,t,r(xn(e,t)),n)}function ci(e,t,r,n){for(var i=e.length,a=n?i:-1;(n?a--:++a<i)&&t(e[a],a,e););return r?ei(e,n?0:a,n?a+1:i):ei(e,n?a+1:0,n?i:a)}function pi(e,t){var r=e;return r instanceof Lr&&(r=r.value()),zt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),r)}function hi(e,t,r){var i=e.length;if(i<2)return i?si(e[0]):[];for(var a=-1,o=n(i);++a<i;)for(var s=e[a],l=-1;++l<i;)l!=a&&(o[a]=un(o[a]||s,e[l],t,r));return si(mn(o,1),t,r)}function di(e,t,r){for(var n=-1,a=e.length,o=t.length,s={};++n<a;){var l=n<o?t[n]:i;r(s,e[n],l)}return s}function fi(e){return qo(e)?e:[]}function mi(e){return"function"==typeof e?e:rl}function gi(e,t){return Vo(e)?e:va(e,t)?[e]:Ma(vs(e))}var vi=Hn;function yi(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:ei(e,t,r)}var bi=ot||function(e){return pt.clearTimeout(e)};function _i(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}function xi(e){var t=new e.constructor(e.byteLength);return new Ze(t).set(new Ze(e)),t}function ki(e,t){var r=t?xi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function wi(e,t){if(e!==t){var r=e!==i,n=null===e,a=e==e,o=ss(e),s=t!==i,l=null===t,u=t==t,c=ss(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||n&&s&&u||!r&&u||!a)return 1;if(!n&&!o&&!c&&e<t||c&&r&&a&&!n&&!o||l&&r&&a||!s&&a||!u)return-1}return 0}function Si(e,t,r,i){for(var a=-1,o=e.length,s=r.length,l=-1,u=t.length,c=mr(o-s,0),p=n(u+c),h=!i;++l<u;)p[l]=t[l];for(;++a<s;)(h||a<o)&&(p[r[a]]=e[a]);for(;c--;)p[l++]=e[a++];return p}function Ii(e,t,r,i){for(var a=-1,o=e.length,s=-1,l=r.length,u=-1,c=t.length,p=mr(o-l,0),h=n(p+c),d=!i;++a<p;)h[a]=e[a];for(var f=a;++u<c;)h[f+u]=t[u];for(;++s<l;)(d||a<o)&&(h[f+r[s]]=e[a++]);return h}function Pi(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function $i(e,t,r,n){var a=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var l=t[o],u=n?n(r[l],e[l],l,r,e):i;u===i&&(u=e[l]),a?rn(r,l,u):Yr(r,l,u)}return r}function Ei(e,t){return function(r,n){var i=Vo(r)?St:en,a=t?t():{};return i(r,e,aa(n,2),a)}}function Ai(e){return Hn((function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:i,s=a>2?r[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&ga(r[0],r[1],s)&&(o=a<3?i:o,a=1),t=Se(t);++n<a;){var l=r[n];l&&e(t,l,n,o)}return t}))}function Ci(e,t){return function(r,n){if(null==r)return r;if(!Go(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Se(r);(t?a--:++a<i)&&!1!==n(o[a],a,o););return r}}function Ti(e){return function(t,r,n){for(var i=-1,a=Se(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===r(a[l],l,a))break}return t}}function Di(e){return function(t){var r=nr(t=vs(t))?cr(t):i,n=r?r[0]:t.charAt(0),a=r?yi(r,1).join(""):t.slice(1);return n[e]()+a}}function zi(e){return function(t){return zt(Ks(Zs(t).replace(Ke,"")),e,"")}}function Mi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Nr(e.prototype),n=e.apply(r,t);return Qo(n)?n:r}}function Oi(e){return function(t,r,n){var a=Se(t);if(!Go(t)){var o=aa(r,3);t=Cs(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,n);return s>-1?a[o?t[s]:s]:i}}function ji(e){return Qi((function(t){var r=t.length,n=r,o=Ur.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new $e(a);if(o&&!l&&"wrapper"==na(s))var l=new Ur([],!0)}for(n=l?n:r;++n<r;){var u=na(s=t[n]),c="wrapper"==u?ra(s):i;l=c&&ya(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[na(c[0])].apply(l,c[3]):1==s.length&&ya(s)?l[u]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Vo(n))return l.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}}))}function Fi(e,t,r,a,o,s,l,c,p,h){var d=t&u,f=1&t,m=2&t,g=24&t,v=512&t,y=m?i:Mi(e);return function u(){for(var b=arguments.length,_=n(b),x=b;x--;)_[x]=arguments[x];if(g)var k=ia(u),w=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(_,k);if(a&&(_=Si(_,a,o,g)),s&&(_=Ii(_,s,l,g)),b-=w,g&&b<h){var S=or(_,k);return Bi(e,t,Fi,u.placeholder,r,_,S,c,p,h-b)}var I=f?r:this,P=m?I[e]:e;return b=_.length,c?_=function(e,t){for(var r=e.length,n=gr(t.length,r),a=Pi(e);n--;){var o=t[n];e[n]=ma(o,r)?a[o]:i}return e}(_,c):v&&b>1&&_.reverse(),d&&p<b&&(_.length=p),this&&this!==pt&&this instanceof u&&(P=y||Mi(P)),P.apply(I,_)}}function Ni(e,t){return function(r,n){return function(e,t,r,n){return yn(e,(function(e,i,a){t(n,r(e),i,a)})),n}(r,e,t(n),{})}}function Ri(e,t){return function(r,n){var a;if(r===i&&n===i)return t;if(r!==i&&(a=r),n!==i){if(a===i)return n;"string"==typeof r||"string"==typeof n?(r=oi(r),n=oi(n)):(r=ai(r),n=ai(n)),a=e(r,n)}return a}}function Ui(e){return Qi((function(t){return t=Tt(t,Jt(aa())),Hn((function(r){var n=this;return e(t,(function(e){return wt(e,n,r)}))}))}))}function Li(e,t){var r=(t=t===i?" ":oi(t)).length;if(r<2)return r?qn(t,e):t;var n=qn(t,ht(e/ur(t)));return nr(t)?yi(cr(n),0,e).join(""):n.slice(0,e)}function Zi(e){return function(t,r,a){return a&&"number"!=typeof a&&ga(t,r,a)&&(r=a=i),t=hs(t),r===i?(r=t,t=0):r=hs(r),function(e,t,r,i){for(var a=-1,o=mr(ht((t-e)/(r||1)),0),s=n(o);o--;)s[i?o:++a]=e,e+=r;return s}(t,r,a=a===i?t<r?1:-1:hs(a),e)}}function Vi(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ms(t),r=ms(r)),e(t,r)}}function Bi(e,t,r,n,a,o,s,u,c,p){var h=8&t;t|=h?l:64,4&(t&=~(h?64:l))||(t&=-4);var d=[e,t,a,h?o:i,h?s:i,h?i:o,h?i:s,u,c,p],f=r.apply(i,d);return ya(e)&&Pa(f,d),f.placeholder=n,Aa(f,e,t)}function Gi(e){var t=we[e];return function(e,r){if(e=ms(e),(r=null==r?0:gr(ds(r),292))&&jt(e)){var n=(vs(e)+"e").split("e");return+((n=(vs(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var qi=Sr&&1/sr(new Sr([,-0]))[1]==c?function(e){return new Sr(e)}:sl;function Hi(e){return function(t){var r=pa(t);return r==k?ir(t):r==$?lr(t):function(e,t){return Tt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Wi(e,t,r,o,c,p,h,d){var f=2&t;if(!f&&"function"!=typeof e)throw new $e(a);var m=o?o.length:0;if(m||(t&=-97,o=c=i),h=h===i?h:mr(ds(h),0),d=d===i?d:ds(d),m-=c?c.length:0,64&t){var g=o,v=c;o=c=i}var y=f?i:ra(e),b=[e,t,r,o,c,g,v,p,h,d];if(y&&function(e,t){var r=e[1],n=t[1],i=r|n,a=i<131,o=n==u&&8==r||n==u&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!o)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Si(c,l,t[4]):l,e[4]=c?or(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ii(c,l,t[6]):l,e[6]=c?or(e[5],s):t[6]),(l=t[7])&&(e[7]=l),n&u&&(e[8]=null==e[8]?t[8]:gr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],r=b[2],o=b[3],c=b[4],!(d=b[9]=b[9]===i?f?0:e.length:mr(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,r){var a=Mi(e);return function o(){for(var s=arguments.length,l=n(s),u=s,c=ia(o);u--;)l[u]=arguments[u];var p=s<3&&l[0]!==c&&l[s-1]!==c?[]:or(l,c);return(s-=p.length)<r?Bi(e,t,Fi,o.placeholder,i,l,p,i,i,r-s):wt(this&&this!==pt&&this instanceof o?a:e,this,l)}}(e,t,d):t!=l&&33!=t||c.length?Fi.apply(i,b):function(e,t,r,i){var a=1&t,o=Mi(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,p=n(c+l),h=this&&this!==pt&&this instanceof t?o:e;++u<c;)p[u]=i[u];for(;l--;)p[u++]=arguments[++s];return wt(h,a?r:this,p)}}(e,t,r,o);else var _=function(e,t,r){var n=1&t,i=Mi(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return Aa((y?Xn:Pa)(_,b),e,t)}function Ji(e,t,r,n){return e===i||Ro(e,Ce[r])&&!ze.call(n,r)?t:e}function Ki(e,t,r,n,a,o){return Qo(e)&&Qo(t)&&(o.set(t,e),Rn(e,t,i,Ki,o),o.delete(t)),e}function Xi(e){return ns(e)?i:e}function Yi(e,t,r,n,a,o){var s=1&r,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(e),p=o.get(t);if(c&&p)return c==t&&p==e;var h=-1,d=!0,f=2&r?new Gr:i;for(o.set(e,t),o.set(t,e);++h<l;){var m=e[h],g=t[h];if(n)var v=s?n(g,m,h,t,e,o):n(m,g,h,e,t,o);if(v!==i){if(v)continue;d=!1;break}if(f){if(!Ot(t,(function(e,t){if(!Xt(f,t)&&(m===e||a(m,e,r,n,o)))return f.push(t)}))){d=!1;break}}else if(m!==g&&!a(m,g,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Qi(e){return Ea(wa(e,i,Va),e+"")}function ea(e){return kn(e,Cs,ua)}function ta(e){return kn(e,Ts,ca)}var ra=$r?function(e){return $r.get(e)}:sl;function na(e){for(var t=e.name+"",r=Er[t],n=ze.call(Er,t)?r.length:0;n--;){var i=r[n],a=i.func;if(null==a||a==e)return i.name}return t}function ia(e){return(ze.call(Fr,"placeholder")?Fr:e).placeholder}function aa(){var e=Fr.iteratee||nl;return e=e===nl?zn:e,arguments.length?e(arguments[0],arguments[1]):e}function oa(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function sa(e){for(var t=Cs(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,xa(i)]}return t}function la(e,t){var r=function(e,t){return null==e?i:e[t]}(e,t);return Dn(r)?r:i}var ua=mt?function(e){return null==e?[]:(e=Se(e),Et(mt(e),(function(t){return qe.call(e,t)})))}:fl,ca=mt?function(e){for(var t=[];e;)Dt(t,ua(e)),e=Be(e);return t}:fl,pa=wn;function ha(e,t,r){for(var n=-1,i=(t=gi(t,e)).length,a=!1;++n<i;){var o=Oa(t[n]);if(!(a=null!=e&&r(e,o)))break;e=e[o]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&Yo(i)&&ma(o,i)&&(Vo(e)||Zo(e))}function da(e){return"function"!=typeof e.constructor||_a(e)?{}:Nr(Be(e))}function fa(e){return Vo(e)||Zo(e)||!!(We&&e&&e[We])}function ma(e,t){var r=typeof e;return!!(t=null==t?p:t)&&("number"==r||"symbol"!=r&&ve.test(e))&&e>-1&&e%1==0&&e<t}function ga(e,t,r){if(!Qo(r))return!1;var n=typeof t;return!!("number"==n?Go(r)&&ma(t,r.length):"string"==n&&t in r)&&Ro(r[t],e)}function va(e,t){if(Vo(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ss(e))||Q.test(e)||!Y.test(e)||null!=t&&e in Se(t)}function ya(e){var t=na(e),r=Fr[t];if("function"!=typeof r||!(t in Lr.prototype))return!1;if(e===r)return!0;var n=ra(r);return!!n&&e===n[0]}(xr&&pa(new xr(new ArrayBuffer(1)))!=D||kr&&pa(new kr)!=k||wr&&pa(wr.resolve())!=I||Sr&&pa(new Sr)!=$||Ir&&pa(new Ir)!=C)&&(pa=function(e){var t=wn(e),r=t==S?e.constructor:i,n=r?ja(r):"";if(n)switch(n){case Ar:return D;case Cr:return k;case Tr:return I;case Dr:return $;case zr:return C}return t});var ba=Te?Ko:ml;function _a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)}function xa(e){return e==e&&!Qo(e)}function ka(e,t){return function(r){return null!=r&&r[e]===t&&(t!==i||e in Se(r))}}function wa(e,t,r){return t=mr(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=mr(i.length-t,0),s=n(o);++a<o;)s[a]=i[t+a];a=-1;for(var l=n(t+1);++a<t;)l[a]=i[a];return l[t]=r(s),wt(e,this,l)}}function Sa(e,t){return t.length<2?e:xn(e,ei(t,0,-1))}function Ia(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pa=Ca(Xn),$a=ct||function(e,t){return pt.setTimeout(e,t)},Ea=Ca(Yn);function Aa(e,t,r){var n=t+"";return Ea(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return It(f,(function(r){var n="_."+r[0];t&r[1]&&!At(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(n),r)))}function Ca(e){var t=0,r=0;return function(){var n=vr(),a=16-(n-r);if(r=n,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ta(e,t){var r=-1,n=e.length,a=n-1;for(t=t===i?n:t;++r<t;){var o=Gn(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Da,za,Ma=(Da=zo((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,i){t.push(n?i.replace(ce,"$1"):r||e)})),t}),(function(e){return 500===za.size&&za.clear(),e})),za=Da.cache,Da);function Oa(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ja(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fa(e){if(e instanceof Lr)return e.clone();var t=new Ur(e.__wrapped__,e.__chain__);return t.__actions__=Pi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Na=Hn((function(e,t){return qo(e)?un(e,mn(t,1,qo,!0)):[]})),Ra=Hn((function(e,t){var r=Wa(t);return qo(r)&&(r=i),qo(e)?un(e,mn(t,1,qo,!0),aa(r,2)):[]})),Ua=Hn((function(e,t){var r=Wa(t);return qo(r)&&(r=i),qo(e)?un(e,mn(t,1,qo,!0),i,r):[]}));function La(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ds(r);return i<0&&(i=mr(n+i,0)),Nt(e,aa(t,3),i)}function Za(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=n-1;return r!==i&&(a=ds(r),a=r<0?mr(n+a,0):gr(a,n-1)),Nt(e,aa(t,3),a,!0)}function Va(e){return null!=e&&e.length?mn(e,1):[]}function Ba(e){return e&&e.length?e[0]:i}var Ga=Hn((function(e){var t=Tt(e,fi);return t.length&&t[0]===e[0]?$n(t):[]})),qa=Hn((function(e){var t=Wa(e),r=Tt(e,fi);return t===Wa(r)?t=i:r.pop(),r.length&&r[0]===e[0]?$n(r,aa(t,2)):[]})),Ha=Hn((function(e){var t=Wa(e),r=Tt(e,fi);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?$n(r,i,t):[]}));function Wa(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Ja=Hn(Ka);function Ka(e,t){return e&&e.length&&t&&t.length?Vn(e,t):e}var Xa=Qi((function(e,t){var r=null==e?0:e.length,n=nn(e,t);return Bn(e,Tt(t,(function(e){return ma(e,r)?+e:e})).sort(wi)),n}));function Ya(e){return null==e?e:_r.call(e)}var Qa=Hn((function(e){return si(mn(e,1,qo,!0))})),eo=Hn((function(e){var t=Wa(e);return qo(t)&&(t=i),si(mn(e,1,qo,!0),aa(t,2))})),to=Hn((function(e){var t=Wa(e);return t="function"==typeof t?t:i,si(mn(e,1,qo,!0),i,t)}));function ro(e){if(!e||!e.length)return[];var t=0;return e=Et(e,(function(e){if(qo(e))return t=mr(e.length,t),!0})),Ht(t,(function(t){return Tt(e,Vt(t))}))}function no(e,t){if(!e||!e.length)return[];var r=ro(e);return null==t?r:Tt(r,(function(e){return wt(t,i,e)}))}var io=Hn((function(e,t){return qo(e)?un(e,t):[]})),ao=Hn((function(e){return hi(Et(e,qo))})),oo=Hn((function(e){var t=Wa(e);return qo(t)&&(t=i),hi(Et(e,qo),aa(t,2))})),so=Hn((function(e){var t=Wa(e);return t="function"==typeof t?t:i,hi(Et(e,qo),i,t)})),lo=Hn(ro),uo=Hn((function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,no(e,r)}));function co(e){var t=Fr(e);return t.__chain__=!0,t}function po(e,t){return t(e)}var ho=Qi((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,a=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Lr&&ma(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[a],thisArg:i}),new Ur(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)})),fo=Ei((function(e,t,r){ze.call(e,r)?++e[r]:rn(e,r,1)})),mo=Oi(La),go=Oi(Za);function vo(e,t){return(Vo(e)?It:cn)(e,aa(t,3))}function yo(e,t){return(Vo(e)?Pt:pn)(e,aa(t,3))}var bo=Ei((function(e,t,r){ze.call(e,r)?e[r].push(t):rn(e,r,[t])})),_o=Hn((function(e,t,r){var i=-1,a="function"==typeof t,o=Go(e)?n(e.length):[];return cn(e,(function(e){o[++i]=a?wt(t,e,r):En(e,t,r)})),o})),xo=Ei((function(e,t,r){rn(e,r,t)}));function ko(e,t){return(Vo(e)?Tt:jn)(e,aa(t,3))}var wo=Ei((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),So=Hn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&ga(e,t[0],t[1])?t=[]:r>2&&ga(t[0],t[1],t[2])&&(t=[t[0]]),Ln(e,mn(t,1),[])})),Io=ut||function(){return pt.Date.now()};function Po(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Wi(e,u,i,i,i,i,t)}function $o(e,t){var r;if("function"!=typeof t)throw new $e(a);return e=ds(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Eo=Hn((function(e,t,r){var n=1;if(r.length){var i=or(r,ia(Eo));n|=l}return Wi(e,n,t,r,i)})),Ao=Hn((function(e,t,r){var n=3;if(r.length){var i=or(r,ia(Ao));n|=l}return Wi(t,n,e,r,i)}));function Co(e,t,r){var n,o,s,l,u,c,p=0,h=!1,d=!1,f=!0;if("function"!=typeof e)throw new $e(a);function m(t){var r=n,a=o;return n=o=i,p=t,l=e.apply(a,r)}function g(e){var r=e-c;return c===i||r>=t||r<0||d&&e-p>=s}function v(){var e=Io();if(g(e))return y(e);u=$a(v,function(e){var r=t-(e-c);return d?gr(r,s-(e-p)):r}(e))}function y(e){return u=i,f&&n?m(e):(n=o=i,l)}function b(){var e=Io(),r=g(e);if(n=arguments,o=this,c=e,r){if(u===i)return function(e){return p=e,u=$a(v,t),h?m(e):l}(c);if(d)return bi(u),u=$a(v,t),m(c)}return u===i&&(u=$a(v,t)),l}return t=ms(t)||0,Qo(r)&&(h=!!r.leading,s=(d="maxWait"in r)?mr(ms(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f),b.cancel=function(){u!==i&&bi(u),p=0,n=c=o=u=i},b.flush=function(){return u===i?l:y(Io())},b}var To=Hn((function(e,t){return ln(e,1,t)})),Do=Hn((function(e,t,r){return ln(e,ms(t)||0,r)}));function zo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new $e(a);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(zo.Cache||Br),r}function Mo(e){if("function"!=typeof e)throw new $e(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}zo.Cache=Br;var Oo=vi((function(e,t){var r=(t=1==t.length&&Vo(t[0])?Tt(t[0],Jt(aa())):Tt(mn(t,1),Jt(aa()))).length;return Hn((function(n){for(var i=-1,a=gr(n.length,r);++i<a;)n[i]=t[i].call(this,n[i]);return wt(e,this,n)}))})),jo=Hn((function(e,t){var r=or(t,ia(jo));return Wi(e,l,i,t,r)})),Fo=Hn((function(e,t){var r=or(t,ia(Fo));return Wi(e,64,i,t,r)})),No=Qi((function(e,t){return Wi(e,256,i,i,i,t)}));function Ro(e,t){return e===t||e!=e&&t!=t}var Uo=Vi(Sn),Lo=Vi((function(e,t){return e>=t})),Zo=An(function(){return arguments}())?An:function(e){return es(e)&&ze.call(e,"callee")&&!qe.call(e,"callee")},Vo=n.isArray,Bo=vt?Jt(vt):function(e){return es(e)&&wn(e)==T};function Go(e){return null!=e&&Yo(e.length)&&!Ko(e)}function qo(e){return es(e)&&Go(e)}var Ho=gt||ml,Wo=yt?Jt(yt):function(e){return es(e)&&wn(e)==y};function Jo(e){if(!es(e))return!1;var t=wn(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function Ko(e){if(!Qo(e))return!1;var t=wn(e);return t==_||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(e){return"number"==typeof e&&e==ds(e)}function Yo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function Qo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Jt(bt):function(e){return es(e)&&pa(e)==k};function rs(e){return"number"==typeof e||es(e)&&wn(e)==w}function ns(e){if(!es(e)||wn(e)!=S)return!1;var t=Be(e);if(null===t)return!0;var r=ze.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&De.call(r)==Fe}var is=_t?Jt(_t):function(e){return es(e)&&wn(e)==P},as=xt?Jt(xt):function(e){return es(e)&&pa(e)==$};function os(e){return"string"==typeof e||!Vo(e)&&es(e)&&wn(e)==E}function ss(e){return"symbol"==typeof e||es(e)&&wn(e)==A}var ls=kt?Jt(kt):function(e){return es(e)&&Yo(e.length)&&!!it[wn(e)]},us=Vi(On),cs=Vi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Go(e))return os(e)?cr(e):Pi(e);if(Je&&e[Je])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Je]());var t=pa(e);return(t==k?ir:t==$?sr:Rs)(e)}function hs(e){return e?(e=ms(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=hs(e),r=t%1;return t==t?r?t-r:t:0}function fs(e){return e?an(ds(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return h;if(Qo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wt(e);var r=fe.test(e);return r||ge.test(e)?lt(e.slice(2),r?2:8):de.test(e)?h:+e}function gs(e){return $i(e,Ts(e))}function vs(e){return null==e?"":oi(e)}var ys=Ai((function(e,t){if(_a(t)||Go(t))$i(t,Cs(t),e);else for(var r in t)ze.call(t,r)&&Yr(e,r,t[r])})),bs=Ai((function(e,t){$i(t,Ts(t),e)})),_s=Ai((function(e,t,r,n){$i(t,Ts(t),e,n)})),xs=Ai((function(e,t,r,n){$i(t,Cs(t),e,n)})),ks=Qi(nn),ws=Hn((function(e,t){e=Se(e);var r=-1,n=t.length,a=n>2?t[2]:i;for(a&&ga(t[0],t[1],a)&&(n=1);++r<n;)for(var o=t[r],s=Ts(o),l=-1,u=s.length;++l<u;){var c=s[l],p=e[c];(p===i||Ro(p,Ce[c])&&!ze.call(e,c))&&(e[c]=o[c])}return e})),Ss=Hn((function(e){return e.push(i,Ki),wt(zs,i,e)}));function Is(e,t,r){var n=null==e?i:xn(e,t);return n===i?r:n}function Ps(e,t){return null!=e&&ha(e,t,Pn)}var $s=Ni((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=r}),Qs(rl)),Es=Ni((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),ze.call(e,t)?e[t].push(r):e[t]=[r]}),aa),As=Hn(En);function Cs(e){return Go(e)?Hr(e):Mn(e)}function Ts(e){return Go(e)?Hr(e,!0):function(e){if(!Qo(e))return function(e){var t=[];if(null!=e)for(var r in Se(e))t.push(r);return t}(e);var t=_a(e),r=[];for(var n in e)("constructor"!=n||!t&&ze.call(e,n))&&r.push(n);return r}(e)}var Ds=Ai((function(e,t,r){Rn(e,t,r)})),zs=Ai((function(e,t,r,n){Rn(e,t,r,n)})),Ms=Qi((function(e,t){var r={};if(null==e)return r;var n=!1;t=Tt(t,(function(t){return t=gi(t,e),n||(n=t.length>1),t})),$i(e,ta(e),r),n&&(r=on(r,7,Xi));for(var i=t.length;i--;)li(r,t[i]);return r})),Os=Qi((function(e,t){return null==e?{}:function(e,t){return Zn(e,t,(function(t,r){return Ps(e,r)}))}(e,t)}));function js(e,t){if(null==e)return{};var r=Tt(ta(e),(function(e){return[e]}));return t=aa(t),Zn(e,r,(function(e,r){return t(e,r[0])}))}var Fs=Hi(Cs),Ns=Hi(Ts);function Rs(e){return null==e?[]:Kt(e,Cs(e))}var Us=zi((function(e,t,r){return t=t.toLowerCase(),e+(r?Ls(t):t)}));function Ls(e){return Js(vs(e).toLowerCase())}function Zs(e){return(e=vs(e))&&e.replace(ye,er).replace(Xe,"")}var Vs=zi((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Bs=zi((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Gs=Di("toLowerCase"),qs=zi((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Hs=zi((function(e,t,r){return e+(r?" ":"")+Js(t)})),Ws=zi((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Js=Di("toUpperCase");function Ks(e,t,r){return e=vs(e),(t=r?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xs=Hn((function(e,t){try{return wt(e,i,t)}catch(e){return Jo(e)?e:new xe(e)}})),Ys=Qi((function(e,t){return It(t,(function(t){t=Oa(t),rn(e,t,Eo(e[t],e))})),e}));function Qs(e){return function(){return e}}var el=ji(),tl=ji(!0);function rl(e){return e}function nl(e){return zn("function"==typeof e?e:on(e,1))}var il=Hn((function(e,t){return function(r){return En(r,e,t)}})),al=Hn((function(e,t){return function(r){return En(e,r,t)}}));function ol(e,t,r){var n=Cs(t),i=_n(t,n);null!=r||Qo(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=_n(t,Cs(t)));var a=!(Qo(r)&&"chain"in r&&!r.chain),o=Ko(e);return It(i,(function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__);return(r.__actions__=Pi(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Dt([this.value()],arguments))})})),e}function sl(){}var ll=Ui(Tt),ul=Ui($t),cl=Ui(Ot);function pl(e){return va(e)?Vt(Oa(e)):function(e){return function(t){return xn(t,e)}}(e)}var hl=Zi(),dl=Zi(!0);function fl(){return[]}function ml(){return!1}var gl,vl=Ri((function(e,t){return e+t}),0),yl=Gi("ceil"),bl=Ri((function(e,t){return e/t}),1),_l=Gi("floor"),xl=Ri((function(e,t){return e*t}),1),kl=Gi("round"),wl=Ri((function(e,t){return e-t}),0);return Fr.after=function(e,t){if("function"!=typeof t)throw new $e(a);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Fr.ary=Po,Fr.assign=ys,Fr.assignIn=bs,Fr.assignInWith=_s,Fr.assignWith=xs,Fr.at=ks,Fr.before=$o,Fr.bind=Eo,Fr.bindAll=Ys,Fr.bindKey=Ao,Fr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Vo(e)?e:[e]},Fr.chain=co,Fr.chunk=function(e,t,r){t=(r?ga(e,t,r):t===i)?1:mr(ds(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,s=0,l=n(ht(a/t));o<a;)l[s++]=ei(e,o,o+=t);return l},Fr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i},Fr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Dt(Vo(r)?Pi(r):[r],mn(t,1))},Fr.cond=function(e){var t=null==e?0:e.length,r=aa();return e=t?Tt(e,(function(e){if("function"!=typeof e[1])throw new $e(a);return[r(e[0]),e[1]]})):[],Hn((function(r){for(var n=-1;++n<t;){var i=e[n];if(wt(i[0],this,r))return wt(i[1],this,r)}}))},Fr.conforms=function(e){return function(e){var t=Cs(e);return function(r){return sn(r,e,t)}}(on(e,1))},Fr.constant=Qs,Fr.countBy=fo,Fr.create=function(e,t){var r=Nr(e);return null==t?r:tn(r,t)},Fr.curry=function e(t,r,n){var a=Wi(t,8,i,i,i,i,i,r=n?i:r);return a.placeholder=e.placeholder,a},Fr.curryRight=function e(t,r,n){var a=Wi(t,16,i,i,i,i,i,r=n?i:r);return a.placeholder=e.placeholder,a},Fr.debounce=Co,Fr.defaults=ws,Fr.defaultsDeep=Ss,Fr.defer=To,Fr.delay=Do,Fr.difference=Na,Fr.differenceBy=Ra,Fr.differenceWith=Ua,Fr.drop=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=r||t===i?1:ds(t))<0?0:t,n):[]},Fr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,0,(t=n-(t=r||t===i?1:ds(t)))<0?0:t):[]},Fr.dropRightWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!0,!0):[]},Fr.dropWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!0):[]},Fr.fill=function(e,t,r,n){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&ga(e,t,r)&&(r=0,n=a),function(e,t,r,n){var a=e.length;for((r=ds(r))<0&&(r=-r>a?0:a+r),(n=n===i||n>a?a:ds(n))<0&&(n+=a),n=r>n?0:fs(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Fr.filter=function(e,t){return(Vo(e)?Et:fn)(e,aa(t,3))},Fr.flatMap=function(e,t){return mn(ko(e,t),1)},Fr.flatMapDeep=function(e,t){return mn(ko(e,t),c)},Fr.flatMapDepth=function(e,t,r){return r=r===i?1:ds(r),mn(ko(e,t),r)},Fr.flatten=Va,Fr.flattenDeep=function(e){return null!=e&&e.length?mn(e,c):[]},Fr.flattenDepth=function(e,t){return null!=e&&e.length?mn(e,t=t===i?1:ds(t)):[]},Fr.flip=function(e){return Wi(e,512)},Fr.flow=el,Fr.flowRight=tl,Fr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];rn(n,i[0],i[1])}return n},Fr.functions=function(e){return null==e?[]:_n(e,Cs(e))},Fr.functionsIn=function(e){return null==e?[]:_n(e,Ts(e))},Fr.groupBy=bo,Fr.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Fr.intersection=Ga,Fr.intersectionBy=qa,Fr.intersectionWith=Ha,Fr.invert=$s,Fr.invertBy=Es,Fr.invokeMap=_o,Fr.iteratee=nl,Fr.keyBy=xo,Fr.keys=Cs,Fr.keysIn=Ts,Fr.map=ko,Fr.mapKeys=function(e,t){var r={};return t=aa(t,3),yn(e,(function(e,n,i){rn(r,t(e,n,i),e)})),r},Fr.mapValues=function(e,t){var r={};return t=aa(t,3),yn(e,(function(e,n,i){rn(r,n,t(e,n,i))})),r},Fr.matches=function(e){return Fn(on(e,1))},Fr.matchesProperty=function(e,t){return Nn(e,on(t,1))},Fr.memoize=zo,Fr.merge=Ds,Fr.mergeWith=zs,Fr.method=il,Fr.methodOf=al,Fr.mixin=ol,Fr.negate=Mo,Fr.nthArg=function(e){return e=ds(e),Hn((function(t){return Un(t,e)}))},Fr.omit=Ms,Fr.omitBy=function(e,t){return js(e,Mo(aa(t)))},Fr.once=function(e){return $o(2,e)},Fr.orderBy=function(e,t,r,n){return null==e?[]:(Vo(t)||(t=null==t?[]:[t]),Vo(r=n?i:r)||(r=null==r?[]:[r]),Ln(e,t,r))},Fr.over=ll,Fr.overArgs=Oo,Fr.overEvery=ul,Fr.overSome=cl,Fr.partial=jo,Fr.partialRight=Fo,Fr.partition=wo,Fr.pick=Os,Fr.pickBy=js,Fr.property=pl,Fr.propertyOf=function(e){return function(t){return null==e?i:xn(e,t)}},Fr.pull=Ja,Fr.pullAll=Ka,Fr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Vn(e,t,aa(r,2)):e},Fr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Vn(e,t,i,r):e},Fr.pullAt=Xa,Fr.range=hl,Fr.rangeRight=dl,Fr.rearg=No,Fr.reject=function(e,t){return(Vo(e)?Et:fn)(e,Mo(aa(t,3)))},Fr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],a=e.length;for(t=aa(t,3);++n<a;){var o=e[n];t(o,n,e)&&(r.push(o),i.push(n))}return Bn(e,i),r},Fr.rest=function(e,t){if("function"!=typeof e)throw new $e(a);return Hn(e,t=t===i?t:ds(t))},Fr.reverse=Ya,Fr.sampleSize=function(e,t,r){return t=(r?ga(e,t,r):t===i)?1:ds(t),(Vo(e)?Jr:Jn)(e,t)},Fr.set=function(e,t,r){return null==e?e:Kn(e,t,r)},Fr.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:Kn(e,t,r,n)},Fr.shuffle=function(e){return(Vo(e)?Kr:Qn)(e)},Fr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&ga(e,t,r)?(t=0,r=n):(t=null==t?0:ds(t),r=r===i?n:ds(r)),ei(e,t,r)):[]},Fr.sortBy=So,Fr.sortedUniq=function(e){return e&&e.length?ii(e):[]},Fr.sortedUniqBy=function(e,t){return e&&e.length?ii(e,aa(t,2)):[]},Fr.split=function(e,t,r){return r&&"number"!=typeof r&&ga(e,t,r)&&(t=r=i),(r=r===i?d:r>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=oi(t))&&nr(e)?yi(cr(e),0,r):e.split(t,r):[]},Fr.spread=function(e,t){if("function"!=typeof e)throw new $e(a);return t=null==t?0:mr(ds(t),0),Hn((function(r){var n=r[t],i=yi(r,0,t);return n&&Dt(i,n),wt(e,this,i)}))},Fr.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Fr.take=function(e,t,r){return e&&e.length?ei(e,0,(t=r||t===i?1:ds(t))<0?0:t):[]},Fr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=n-(t=r||t===i?1:ds(t)))<0?0:t,n):[]},Fr.takeRightWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!1,!0):[]},Fr.takeWhile=function(e,t){return e&&e.length?ci(e,aa(t,3)):[]},Fr.tap=function(e,t){return t(e),e},Fr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new $e(a);return Qo(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Co(e,t,{leading:n,maxWait:t,trailing:i})},Fr.thru=po,Fr.toArray=ps,Fr.toPairs=Fs,Fr.toPairsIn=Ns,Fr.toPath=function(e){return Vo(e)?Tt(e,Oa):ss(e)?[e]:Pi(Ma(vs(e)))},Fr.toPlainObject=gs,Fr.transform=function(e,t,r){var n=Vo(e),i=n||Ho(e)||ls(e);if(t=aa(t,4),null==r){var a=e&&e.constructor;r=i?n?new a:[]:Qo(e)&&Ko(a)?Nr(Be(e)):{}}return(i?It:yn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Fr.unary=function(e){return Po(e,1)},Fr.union=Qa,Fr.unionBy=eo,Fr.unionWith=to,Fr.uniq=function(e){return e&&e.length?si(e):[]},Fr.uniqBy=function(e,t){return e&&e.length?si(e,aa(t,2)):[]},Fr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Fr.unset=function(e,t){return null==e||li(e,t)},Fr.unzip=ro,Fr.unzipWith=no,Fr.update=function(e,t,r){return null==e?e:ui(e,t,mi(r))},Fr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:ui(e,t,mi(r),n)},Fr.values=Rs,Fr.valuesIn=function(e){return null==e?[]:Kt(e,Ts(e))},Fr.without=io,Fr.words=Ks,Fr.wrap=function(e,t){return jo(mi(t),e)},Fr.xor=ao,Fr.xorBy=oo,Fr.xorWith=so,Fr.zip=lo,Fr.zipObject=function(e,t){return di(e||[],t||[],Yr)},Fr.zipObjectDeep=function(e,t){return di(e||[],t||[],Kn)},Fr.zipWith=uo,Fr.entries=Fs,Fr.entriesIn=Ns,Fr.extend=bs,Fr.extendWith=_s,ol(Fr,Fr),Fr.add=vl,Fr.attempt=Xs,Fr.camelCase=Us,Fr.capitalize=Ls,Fr.ceil=yl,Fr.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ms(r))==r?r:0),t!==i&&(t=(t=ms(t))==t?t:0),an(ms(e),t,r)},Fr.clone=function(e){return on(e,4)},Fr.cloneDeep=function(e){return on(e,5)},Fr.cloneDeepWith=function(e,t){return on(e,5,t="function"==typeof t?t:i)},Fr.cloneWith=function(e,t){return on(e,4,t="function"==typeof t?t:i)},Fr.conformsTo=function(e,t){return null==t||sn(e,t,Cs(t))},Fr.deburr=Zs,Fr.defaultTo=function(e,t){return null==e||e!=e?t:e},Fr.divide=bl,Fr.endsWith=function(e,t,r){e=vs(e),t=oi(t);var n=e.length,a=r=r===i?n:an(ds(r),0,n);return(r-=t.length)>=0&&e.slice(r,a)==t},Fr.eq=Ro,Fr.escape=function(e){return(e=vs(e))&&W.test(e)?e.replace(q,tr):e},Fr.escapeRegExp=function(e){return(e=vs(e))&&re.test(e)?e.replace(te,"\\$&"):e},Fr.every=function(e,t,r){var n=Vo(e)?$t:hn;return r&&ga(e,t,r)&&(t=i),n(e,aa(t,3))},Fr.find=mo,Fr.findIndex=La,Fr.findKey=function(e,t){return Ft(e,aa(t,3),yn)},Fr.findLast=go,Fr.findLastIndex=Za,Fr.findLastKey=function(e,t){return Ft(e,aa(t,3),bn)},Fr.floor=_l,Fr.forEach=vo,Fr.forEachRight=yo,Fr.forIn=function(e,t){return null==e?e:gn(e,aa(t,3),Ts)},Fr.forInRight=function(e,t){return null==e?e:vn(e,aa(t,3),Ts)},Fr.forOwn=function(e,t){return e&&yn(e,aa(t,3))},Fr.forOwnRight=function(e,t){return e&&bn(e,aa(t,3))},Fr.get=Is,Fr.gt=Uo,Fr.gte=Lo,Fr.has=function(e,t){return null!=e&&ha(e,t,In)},Fr.hasIn=Ps,Fr.head=Ba,Fr.identity=rl,Fr.includes=function(e,t,r,n){e=Go(e)?e:Rs(e),r=r&&!n?ds(r):0;var i=e.length;return r<0&&(r=mr(i+r,0)),os(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Rt(e,t,r)>-1},Fr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ds(r);return i<0&&(i=mr(n+i,0)),Rt(e,t,i)},Fr.inRange=function(e,t,r){return t=hs(t),r===i?(r=t,t=0):r=hs(r),function(e,t,r){return e>=gr(t,r)&&e<mr(t,r)}(e=ms(e),t,r)},Fr.invoke=As,Fr.isArguments=Zo,Fr.isArray=Vo,Fr.isArrayBuffer=Bo,Fr.isArrayLike=Go,Fr.isArrayLikeObject=qo,Fr.isBoolean=function(e){return!0===e||!1===e||es(e)&&wn(e)==v},Fr.isBuffer=Ho,Fr.isDate=Wo,Fr.isElement=function(e){return es(e)&&1===e.nodeType&&!ns(e)},Fr.isEmpty=function(e){if(null==e)return!0;if(Go(e)&&(Vo(e)||"string"==typeof e||"function"==typeof e.splice||Ho(e)||ls(e)||Zo(e)))return!e.length;var t=pa(e);if(t==k||t==$)return!e.size;if(_a(e))return!Mn(e).length;for(var r in e)if(ze.call(e,r))return!1;return!0},Fr.isEqual=function(e,t){return Cn(e,t)},Fr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?Cn(e,t,i,r):!!n},Fr.isError=Jo,Fr.isFinite=function(e){return"number"==typeof e&&jt(e)},Fr.isFunction=Ko,Fr.isInteger=Xo,Fr.isLength=Yo,Fr.isMap=ts,Fr.isMatch=function(e,t){return e===t||Tn(e,t,sa(t))},Fr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,Tn(e,t,sa(t),r)},Fr.isNaN=function(e){return rs(e)&&e!=+e},Fr.isNative=function(e){if(ba(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dn(e)},Fr.isNil=function(e){return null==e},Fr.isNull=function(e){return null===e},Fr.isNumber=rs,Fr.isObject=Qo,Fr.isObjectLike=es,Fr.isPlainObject=ns,Fr.isRegExp=is,Fr.isSafeInteger=function(e){return Xo(e)&&e>=-9007199254740991&&e<=p},Fr.isSet=as,Fr.isString=os,Fr.isSymbol=ss,Fr.isTypedArray=ls,Fr.isUndefined=function(e){return e===i},Fr.isWeakMap=function(e){return es(e)&&pa(e)==C},Fr.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==wn(e)},Fr.join=function(e,t){return null==e?"":Bt.call(e,t)},Fr.kebabCase=Vs,Fr.last=Wa,Fr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=n;return r!==i&&(a=(a=ds(r))<0?mr(n+a,0):gr(a,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,a):Nt(e,Lt,a,!0)},Fr.lowerCase=Bs,Fr.lowerFirst=Gs,Fr.lt=us,Fr.lte=cs,Fr.max=function(e){return e&&e.length?dn(e,rl,Sn):i},Fr.maxBy=function(e,t){return e&&e.length?dn(e,aa(t,2),Sn):i},Fr.mean=function(e){return Zt(e,rl)},Fr.meanBy=function(e,t){return Zt(e,aa(t,2))},Fr.min=function(e){return e&&e.length?dn(e,rl,On):i},Fr.minBy=function(e,t){return e&&e.length?dn(e,aa(t,2),On):i},Fr.stubArray=fl,Fr.stubFalse=ml,Fr.stubObject=function(){return{}},Fr.stubString=function(){return""},Fr.stubTrue=function(){return!0},Fr.multiply=xl,Fr.nth=function(e,t){return e&&e.length?Un(e,ds(t)):i},Fr.noConflict=function(){return pt._===this&&(pt._=Ne),this},Fr.noop=sl,Fr.now=Io,Fr.pad=function(e,t,r){e=vs(e);var n=(t=ds(t))?ur(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return Li(dt(i),r)+e+Li(ht(i),r)},Fr.padEnd=function(e,t,r){e=vs(e);var n=(t=ds(t))?ur(e):0;return t&&n<t?e+Li(t-n,r):e},Fr.padStart=function(e,t,r){e=vs(e);var n=(t=ds(t))?ur(e):0;return t&&n<t?Li(t-n,r)+e:e},Fr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),yr(vs(e).replace(ne,""),t||0)},Fr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&ga(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var a=br();return gr(e+a*(t-e+st("1e-"+((a+"").length-1))),t)}return Gn(e,t)},Fr.reduce=function(e,t,r){var n=Vo(e)?zt:Gt,i=arguments.length<3;return n(e,aa(t,4),r,i,cn)},Fr.reduceRight=function(e,t,r){var n=Vo(e)?Mt:Gt,i=arguments.length<3;return n(e,aa(t,4),r,i,pn)},Fr.repeat=function(e,t,r){return t=(r?ga(e,t,r):t===i)?1:ds(t),qn(vs(e),t)},Fr.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fr.result=function(e,t,r){var n=-1,a=(t=gi(t,e)).length;for(a||(a=1,e=i);++n<a;){var o=null==e?i:e[Oa(t[n])];o===i&&(n=a,o=r),e=Ko(o)?o.call(e):o}return e},Fr.round=kl,Fr.runInContext=e,Fr.sample=function(e){return(Vo(e)?Wr:Wn)(e)},Fr.size=function(e){if(null==e)return 0;if(Go(e))return os(e)?ur(e):e.length;var t=pa(e);return t==k||t==$?e.size:Mn(e).length},Fr.snakeCase=qs,Fr.some=function(e,t,r){var n=Vo(e)?Ot:ti;return r&&ga(e,t,r)&&(t=i),n(e,aa(t,3))},Fr.sortedIndex=function(e,t){return ri(e,t)},Fr.sortedIndexBy=function(e,t,r){return ni(e,t,aa(r,2))},Fr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ri(e,t);if(n<r&&Ro(e[n],t))return n}return-1},Fr.sortedLastIndex=function(e,t){return ri(e,t,!0)},Fr.sortedLastIndexBy=function(e,t,r){return ni(e,t,aa(r,2),!0)},Fr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ri(e,t,!0)-1;if(Ro(e[r],t))return r}return-1},Fr.startCase=Hs,Fr.startsWith=function(e,t,r){return e=vs(e),r=null==r?0:an(ds(r),0,e.length),t=oi(t),e.slice(r,r+t.length)==t},Fr.subtract=wl,Fr.sum=function(e){return e&&e.length?qt(e,rl):0},Fr.sumBy=function(e,t){return e&&e.length?qt(e,aa(t,2)):0},Fr.template=function(e,t,r){var n=Fr.templateSettings;r&&ga(e,t,r)&&(t=i),e=vs(e),t=xs({},t,n,Ji);var a=xs({},t.imports,n.imports,Ji),o=Cs(a),s=Kt(a,o);It(o,(function(e){if(ue.test(e))throw new xe("Invalid `imports` option passed into `_.template`")}));var l,u,c=0,p=t.interpolate||be,h="__p += '",d=Ie((t.escape||be).source+"|"+p.source+"|"+(p===X?pe:be).source+"|"+(t.evaluate||be).source+"|$","g"),f="//# sourceURL="+(ze.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(d,(function(t,r,n,i,a,o){return n||(n=i),h+=e.slice(c,o).replace(_e,rr),r&&(l=!0,h+="' +\n__e("+r+") +\n'"),a&&(u=!0,h+="';\n"+a+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=o+t.length,t})),h+="';\n";var m=ze.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(u?h.replace(Z,""):h).replace(V,"$1").replace(B,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xs((function(){return ke(o,f+"return "+h).apply(i,s)}));if(g.source=h,Jo(g))throw g;return g},Fr.times=function(e,t){if((e=ds(e))<1||e>p)return[];var r=d,n=gr(e,d);t=aa(t),e-=d;for(var i=Ht(n,t);++r<e;)t(r);return i},Fr.toFinite=hs,Fr.toInteger=ds,Fr.toLength=fs,Fr.toLower=function(e){return vs(e).toLowerCase()},Fr.toNumber=ms,Fr.toSafeInteger=function(e){return e?an(ds(e),-9007199254740991,p):0===e?e:0},Fr.toString=vs,Fr.toUpper=function(e){return vs(e).toUpperCase()},Fr.trim=function(e,t,r){if((e=vs(e))&&(r||t===i))return Wt(e);if(!e||!(t=oi(t)))return e;var n=cr(e),a=cr(t);return yi(n,Yt(n,a),Qt(n,a)+1).join("")},Fr.trimEnd=function(e,t,r){if((e=vs(e))&&(r||t===i))return e.slice(0,pr(e)+1);if(!e||!(t=oi(t)))return e;var n=cr(e);return yi(n,0,Qt(n,cr(t))+1).join("")},Fr.trimStart=function(e,t,r){if((e=vs(e))&&(r||t===i))return e.replace(ne,"");if(!e||!(t=oi(t)))return e;var n=cr(e);return yi(n,Yt(n,cr(t))).join("")},Fr.truncate=function(e,t){var r=30,n="...";if(Qo(t)){var a="separator"in t?t.separator:a;r="length"in t?ds(t.length):r,n="omission"in t?oi(t.omission):n}var o=(e=vs(e)).length;if(nr(e)){var s=cr(e);o=s.length}if(r>=o)return e;var l=r-ur(n);if(l<1)return n;var u=s?yi(s,0,l).join(""):e.slice(0,l);if(a===i)return u+n;if(s&&(l+=u.length-l),is(a)){if(e.slice(l).search(a)){var c,p=u;for(a.global||(a=Ie(a.source,vs(he.exec(a))+"g")),a.lastIndex=0;c=a.exec(p);)var h=c.index;u=u.slice(0,h===i?l:h)}}else if(e.indexOf(oi(a),l)!=l){var d=u.lastIndexOf(a);d>-1&&(u=u.slice(0,d))}return u+n},Fr.unescape=function(e){return(e=vs(e))&&H.test(e)?e.replace(G,hr):e},Fr.uniqueId=function(e){var t=++Me;return vs(e)+t},Fr.upperCase=Ws,Fr.upperFirst=Js,Fr.each=vo,Fr.eachRight=yo,Fr.first=Ba,ol(Fr,(gl={},yn(Fr,(function(e,t){ze.call(Fr.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),Fr.VERSION="4.18.1",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fr[e].placeholder=Fr})),It(["drop","take"],(function(e,t){Lr.prototype[e]=function(r){r=r===i?1:mr(ds(r),0);var n=this.__filtered__&&!t?new Lr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,d),type:e+(n.__dir__<0?"Right":"")}),n},Lr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Lr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:aa(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),It(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Lr.prototype[e]=function(){return this[r](1).value()[0]}})),It(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Lr.prototype[e]=function(){return this.__filtered__?new Lr(this):this[r](1)}})),Lr.prototype.compact=function(){return this.filter(rl)},Lr.prototype.find=function(e){return this.filter(e).head()},Lr.prototype.findLast=function(e){return this.reverse().find(e)},Lr.prototype.invokeMap=Hn((function(e,t){return"function"==typeof e?new Lr(this):this.map((function(r){return En(r,e,t)}))})),Lr.prototype.reject=function(e){return this.filter(Mo(aa(e)))},Lr.prototype.slice=function(e,t){e=ds(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Lr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=ds(t))<0?r.dropRight(-t):r.take(t-e)),r)},Lr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Lr.prototype.toArray=function(){return this.take(d)},yn(Lr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),a=Fr[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);a&&(Fr.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,l=t instanceof Lr,u=s[0],c=l||Vo(t),p=function(e){var t=a.apply(Fr,Dt([e],s));return n&&h?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,d=!!this.__actions__.length,f=o&&!h,m=l&&!d;if(!o&&c){t=m?t:new Lr(this);var g=e.apply(t,s);return g.__actions__.push({func:po,args:[p],thisArg:i}),new Ur(g,h)}return f&&m?e.apply(this,s):(g=this.thru(p),f?n?g.value()[0]:g.value():g)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ee[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Fr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Vo(i)?i:[],e)}return this[r]((function(r){return t.apply(Vo(r)?r:[],e)}))}})),yn(Lr.prototype,(function(e,t){var r=Fr[t];if(r){var n=r.name+"";ze.call(Er,n)||(Er[n]=[]),Er[n].push({name:t,func:r})}})),Er[Fi(i,2).name]=[{name:"wrapper",func:i}],Lr.prototype.clone=function(){var e=new Lr(this.__wrapped__);return e.__actions__=Pi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pi(this.__views__),e},Lr.prototype.reverse=function(){if(this.__filtered__){var e=new Lr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Lr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Vo(e),n=t<0,i=r?e.length:0,a=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var a=r[n],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=gr(t,e+o);break;case"takeRight":e=mr(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,u=n?s:o-1,c=this.__iteratees__,p=c.length,h=0,d=gr(l,this.__takeCount__);if(!r||!n&&i==l&&d==l)return pi(e,this.__actions__);var f=[];e:for(;l--&&h<d;){for(var m=-1,g=e[u+=t];++m<p;){var v=c[m],y=v.iteratee,b=v.type,_=y(g);if(2==b)g=_;else if(!_){if(1==b)continue e;break e}}f[h++]=g}return f},Fr.prototype.at=ho,Fr.prototype.chain=function(){return co(this)},Fr.prototype.commit=function(){return new Ur(this.value(),this.__chain__)},Fr.prototype.next=function(){this.__values__===i&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Fr.prototype.plant=function(e){for(var t,r=this;r instanceof Rr;){var n=Fa(r);n.__index__=0,n.__values__=i,t?a.__wrapped__=n:t=n;var a=n;r=r.__wrapped__}return a.__wrapped__=e,t},Fr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Lr){var t=e;return this.__actions__.length&&(t=new Lr(this)),(t=t.reverse()).__actions__.push({func:po,args:[Ya],thisArg:i}),new Ur(t,this.__chain__)}return this.thru(Ya)},Fr.prototype.toJSON=Fr.prototype.valueOf=Fr.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Fr.prototype.first=Fr.prototype.head,Je&&(Fr.prototype[Je]=function(){return this}),Fr}();pt._=dr,(n=function(){return dr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},21645:(e,t,r)=>{var n=r(59981),i=r(63655);e.exports=function(e){return null==e?[]:n(e,i(e))}},21755:(e,t,r)=>{var n=r(12310),i=r(67588),a=Math.min;e.exports=function(e,t){for(var r=e.length,o=a(t.length,r),s=n(e);o--;){var l=t[o];e[o]=i(l,r)?s[l]:void 0}return e}},22738:(e,t,r)=>{var n=r(69279),i=r(52577);e.exports=function(e,t){return t.length<2?e:n(e,i(t,0,-1))}},22811:(e,t,r)=>{var n=r(4106),i=r(23674),a=r(67588),o=r(54200),s=r(43772);e.exports=function(e,t,r,l){if(!o(e))return e;for(var u=-1,c=(t=i(t,e)).length,p=c-1,h=e;null!=h&&++u<c;){var d=s(t[u]),f=r;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(u!=p){var m=h[d];void 0===(f=l?l(m,d,h):void 0)&&(f=o(m)?m:a(t[u+1])?[]:{})}n(h,d,f),h=h[d]}return e}},23124:(e,t,r)=>{var n=r(46380),i=r(9739),a=r(48536),o=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=o},23674:(e,t,r)=>{var n=r(36802),i=r(16231),a=r(90929),o=r(58599);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:a(o(e))}},24273:(e,t,r)=>{var n=r(96926),i=r(45815),a=r(13692),o=r(12310),s=r(37648),l=r(64271),u=r(36802),c=r(7506),p=r(46977),h=r(46971),d=r(54200),f=r(42332),m=r(73974),g=r(12511),v=r(81971);e.exports=function(e,t,r,y,b,_,x){var k=g(e,r),w=g(t,r),S=x.get(w);if(S)n(e,r,S);else{var I=_?_(k,w,r+"",e,t,x):void 0,P=void 0===I;if(P){var $=u(w),E=!$&&p(w),A=!$&&!E&&m(w);I=w,$||E||A?u(k)?I=k:c(k)?I=o(k):E?(P=!1,I=i(w,!0)):A?(P=!1,I=a(w,!0)):I=[]:f(w)||l(w)?(I=k,l(k)?I=v(k):d(k)&&!h(k)||(I=s(w))):P=!1}P&&(x.set(w,I),b(I,w,y,_,x),x.delete(w)),n(e,r,I)}}},24878:(e,t,r)=>{var n=r(27241);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},25098:(e,t,r)=>{var n=r(28837),i=r(64271),a=r(36802),o=r(46977),s=r(67588),l=r(73974),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),c=!r&&i(e),p=!r&&!c&&o(e),h=!r&&!c&&!p&&l(e),d=r||c||p||h,f=d?n(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||d&&("length"==g||p&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},25159:(e,t,r)=>{var n=r(85718),i=r(96325),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},25278:(e,t,r)=>{var n=r(31493),i=r(85877),a=r(63164),o=r(17208),s=r(35768);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},26015:(e,t,r)=>{var n=r(8736),i=r(96926),a=r(80712),o=r(24273),s=r(54200),l=r(14956),u=r(12511);e.exports=function e(t,r,c,p,h){t!==r&&a(r,(function(a,l){if(h||(h=new n),s(a))o(t,r,l,c,e,p,h);else{var d=p?p(u(t,l),a,l+"",t,r,h):void 0;void 0===d&&(d=a),i(t,l,d)}}),l)}},26334:(e,t,r)=>{var n=r(29785);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},27241:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},27327:(e,t,r)=>{var n=r(2007),i=r(71039);e.exports=function(e){return i(e)&&"[object Date]"==n(e)}},27458:(e,t,r)=>{var n=r(219),i=r(96142),a=r(65897),o=r(46380),s=r(91706),l=r(2007),u=r(79966),c="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",f="[object DataView]",m=u(n),g=u(i),v=u(a),y=u(o),b=u(s),_=l;(n&&_(new n(new ArrayBuffer(1)))!=f||i&&_(new i)!=c||a&&_(a.resolve())!=p||o&&_(new o)!=h||s&&_(new s)!=d)&&(_=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return f;case g:return c;case v:return p;case y:return h;case b:return d}return t}),e.exports=_},28095:(e,t,r)=>{var n=r(42332);e.exports=function(e){return n(e)?void 0:e}},28293:(e,t,r)=>{var n=r(27458),i=r(71039);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},28642:(e,t,r)=>{var n=r(55304),i=r(30981),a=r(59196);e.exports=function(e,t,r,o,s,l){var u=1&r,c=e.length,p=t.length;if(c!=p&&!(u&&p>c))return!1;var h=l.get(e),d=l.get(t);if(h&&d)return h==t&&d==e;var f=-1,m=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++f<c;){var v=e[f],y=t[f];if(o)var b=u?o(y,v,f,t,e,l):o(v,y,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!a(g,t)&&(v===e||s(v,e,r,o,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,r,o,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},28693:(e,t,r)=>{var n=r(42680),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],a=i.call(n,t)?r.length:0;a--;){var o=r[a],s=o.func;if(null==s||s==e)return o.name}return t}},28837:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},29785:(e,t,r)=>{var n=r(80119),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},30508:(e,t,r)=>{var n=r(46372),i=r(67508),a=r(30928);e.exports=function(e,t,r,o,s,l,u,c,p,h){var d=8&t;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var f=[e,t,s,d?l:void 0,d?u:void 0,d?void 0:l,d?void 0:u,c,p,h],m=r.apply(void 0,f);return n(e)&&i(m,f),m.placeholder=o,a(m,e,t)}},30865:(e,t,r)=>{var n=r(75564),i=r(14956);e.exports=function(e,t){return e&&n(t,i(t),e)}},30896:(e,t,r)=>{var n=r(78837),i=r(56418),a=r(40502),o=r(35337),s=n((function(e,t,r){var n=1;if(r.length){var l=o(r,a(s));n|=32}return i(e,n,t,r,l)}));s.placeholder={},e.exports=s},30921:(e,t,r)=>{var n=r(78837),i=r(27241),a=r(65811),o=r(14956),s=Object.prototype,l=s.hasOwnProperty,u=n((function(e,t){e=Object(e);var r=-1,n=t.length,u=n>2?t[2]:void 0;for(u&&a(t[0],t[1],u)&&(n=1);++r<n;)for(var c=t[r],p=o(c),h=-1,d=p.length;++h<d;){var f=p[h],m=e[f];(void 0===m||i(m,s[f])&&!l.call(e,f))&&(e[f]=c[f])}return e}));e.exports=u},30928:(e,t,r)=>{var n=r(99864),i=r(45457),a=r(79904),o=r(51253);e.exports=function(e,t,r){var s=t+"";return a(e,i(s,o(n(s),r)))}},30981:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},31398:(e,t,r)=>{var n=r(23674),i=r(11835),a=r(22738),o=r(43772),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=-1,l=(t=n(t,e)).length;if(!l)return!0;for(;++r<l;){var u=o(t[r]);if("__proto__"===u&&!s.call(e,"__proto__"))return!1;if(("constructor"===u||"prototype"===u)&&r<l-1)return!1}var c=a(e,t);return null==c||delete c[o(i(t))]}},31493:(e,t,r)=>{var n=r(72142),i=r(75182),a=r(96142);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||i),string:new n}}},31654:(e,t,r)=>{var n=r(75564),i=r(63655);e.exports=function(e,t){return e&&n(t,i(t),e)}},32484:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},32566:(e,t,r)=>{var n=r(85330);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},33843:(e,t,r)=>{var n=r(9875),i=r(60872),a=r(11214),o=a&&a.isSet,s=o?i(o):n;e.exports=s},34150:e=>{e.exports=function(){return[]}},34627:(e,t,r)=>{var n=r(75182);e.exports=function(){this.__data__=new n,this.size=0}},34856:e=>{e.exports=function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}},35264:(e,t,r)=>{var n=r(59578);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},35337:e=>{var t="__lodash_placeholder__";e.exports=function(e,r){for(var n=-1,i=e.length,a=0,o=[];++n<i;){var s=e[n];s!==r&&s!==t||(e[n]=t,o[a++]=n)}return o}},35768:(e,t,r)=>{var n=r(19792);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},35848:(e,t,r)=>{r.d(t,{V9:()=>E_});var n=r(9606).URL,i=r(67787).Buffer;function a(e,t,r){function n(r,n){var i;Object.defineProperty(r,"_zod",{value:r._zod??{},enumerable:!1}),(i=r._zod).traits??(i.traits=new Set),r._zod.traits.add(e),t(r,n);for(const e in o.prototype)e in r||Object.defineProperty(r,e,{value:o.prototype[e].bind(r)});r._zod.constr=o,r._zod.def=n}const i=r?.Parent??Object;class a extends i{}function o(e){var t;const i=r?.Parent?new a:this;n(i,e),(t=i._zod).deferred??(t.deferred=[]);for(const e of i._zod.deferred)e();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!(r?.Parent&&t instanceof r.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}class o extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const s={};function l(e){return s}function u(e,t){return"bigint"==typeof t?t.toString():t}function c(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function p(e){return null==e}function h(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function d(e,t,r){Object.defineProperty(e,t,{get(){{const n=r();return e[t]=n,n}},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function f(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function m(e=10){let t="";for(let r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyz"[Math.floor(26*Math.random())];return t}function g(e){return JSON.stringify(e)}const v=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function y(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const b=c((()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}}));function _(e){if(!1===y(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!(!1===y(r)||!1===Object.prototype.hasOwnProperty.call(r,"isPrototypeOf"))}const x=new Set(["string","number","symbol"]);function k(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function S(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}const I={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function P(e,t=0){for(let r=t;r<e.issues.length;r++)if(!0!==e.issues[r].continue)return!0;return!1}function $(e,t){return t.map((t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t}))}function E(e){return"string"==typeof e?e:e?.message}function A(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const i=E(e.inst?._zod.def?.error?.(e))??E(t?.error?.(e))??E(r.customError?.(e))??E(r.localeError?.(e))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function C(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function T(...e){const[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}const D=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,u,2),enumerable:!0})},z=a("$ZodError",D),M=a("$ZodError",D,{Parent:Error}),O=e=>(t,r,n,i)=>{const a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new o;if(s.issues.length){const t=new(i?.Err??e)(s.issues.map((e=>A(e,a,l()))));throw v(t,i?.callee),t}return s.value},j=e=>async(t,r,n,i)=>{const a=n?Object.assign(n,{async:!0}):{async:!0};let o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){const t=new(i?.Err??e)(o.issues.map((e=>A(e,a,l()))));throw v(t,i?.callee),t}return o.value},F=e=>(t,r,n)=>{const i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new o;return a.issues.length?{success:!1,error:new(e??z)(a.issues.map((e=>A(e,i,l()))))}:{success:!0,data:a.value}},N=F(M),R=e=>async(t,r,n)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map((e=>A(e,i,l()))))}:{success:!0,data:a.value}},U=R(M),L=/^[cC][^\s-]{8,}$/,Z=/^[0-9a-z]+$/,V=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,B=/^[0-9a-vA-V]{20}$/,G=/^[A-Za-z0-9]{27}$/,q=/^[a-zA-Z0-9_-]{21}$/,H=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,W=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,J=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,K=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,X=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Y=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Q=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ee=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,te=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,re=/^[A-Za-z0-9_-]*$/,ne=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,ie=/^\+(?:[0-9]){6,14}[0-9]$/,ae="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",oe=new RegExp(`^${ae}$`);function se(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}const le=/^\d+$/,ue=/^-?\d+(?:\.\d+)?/i,ce=/true|false/i,pe=/null/i,he=/^[^A-Z]*$/,de=/^[^a-z]*$/,fe=a("$ZodCheck",((e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])})),me={number:"number",bigint:"bigint",object:"date"},ge=a("$ZodCheckLessThan",((e,t)=>{fe.init(e,t);const r=me[typeof t.value];e._zod.onattach.push((e=>{const r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)})),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}})),ve=a("$ZodCheckGreaterThan",((e,t)=>{fe.init(e,t);const r=me[typeof t.value];e._zod.onattach.push((e=>{const r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)})),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}})),ye=a("$ZodCheckMultipleOf",((e,t)=>{fe.init(e,t),e._zod.onattach.push((e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)})),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===function(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}})),be=a("$ZodCheckNumberFormat",((e,t)=>{fe.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),n=r?"int":"number",[i,a]=I[t.format];e._zod.onattach.push((e=>{const n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=a,r&&(n.pattern=le)})),e._zod.check=o=>{const s=o.value;if(r){if(!Number.isInteger(s))return void o.issues.push({expected:n,format:t.format,code:"invalid_type",input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}))}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inst:e})}})),_e=a("$ZodCheckMaxLength",((e,t)=>{fe.init(e,t),e._zod.when=e=>{const t=e.value;return!p(t)&&void 0!==t.length},e._zod.onattach.push((e=>{const r=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(e._zod.bag.maximum=t.maximum)})),e._zod.check=r=>{const n=r.value;if(n.length<=t.maximum)return;const i=C(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}})),xe=a("$ZodCheckMinLength",((e,t)=>{fe.init(e,t),e._zod.when=e=>{const t=e.value;return!p(t)&&void 0!==t.length},e._zod.onattach.push((e=>{const r=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(e._zod.bag.minimum=t.minimum)})),e._zod.check=r=>{const n=r.value;if(n.length>=t.minimum)return;const i=C(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}})),ke=a("$ZodCheckLengthEquals",((e,t)=>{fe.init(e,t),e._zod.when=e=>{const t=e.value;return!p(t)&&void 0!==t.length},e._zod.onattach.push((e=>{const r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length})),e._zod.check=r=>{const n=r.value,i=n.length;if(i===t.length)return;const a=C(n),o=i>t.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},input:r.value,inst:e,continue:!t.abort})}})),we=a("$ZodCheckStringFormat",((e,t)=>{var r;fe.init(e,t),e._zod.onattach.push((e=>{const r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))})),(r=e._zod).check??(r.check=r=>{if(!t.pattern)throw new Error("Not implemented.");t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})})})),Se=a("$ZodCheckRegex",((e,t)=>{we.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}})),Ie=a("$ZodCheckLowerCase",((e,t)=>{t.pattern??(t.pattern=he),we.init(e,t)})),Pe=a("$ZodCheckUpperCase",((e,t)=>{t.pattern??(t.pattern=de),we.init(e,t)})),$e=a("$ZodCheckIncludes",((e,t)=>{fe.init(e,t);const r=k(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push((e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)})),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}})),Ee=a("$ZodCheckStartsWith",((e,t)=>{fe.init(e,t);const r=new RegExp(`^${k(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push((e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)})),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}})),Ae=a("$ZodCheckEndsWith",((e,t)=>{fe.init(e,t);const r=new RegExp(`.*${k(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push((e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)})),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}})),Ce=a("$ZodCheckOverwrite",((e,t)=>{fe.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}));class Te{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter((e=>e)),r=Math.min(...t.map((e=>e.length-e.trimStart().length))),n=t.map((e=>e.slice(r))).map((e=>" ".repeat(2*this.indent)+e));for(const e of n)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map((e=>` ${e}`))].join("\n"))}}const De={major:4,minor:0,patch:0},ze=a("$ZodType",((e,t)=>{var r;e??(e={}),d(e._zod,"id",(()=>t.type+"_"+m(10))),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=De;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const t of n)for(const r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push((()=>{e._zod.run=e._zod.parse}));else{const t=(e,t,r)=>{let n,i=P(e);for(const a of t){if(a._zod.when){if(!a._zod.when(e))continue}else if(i)continue;const t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&!1===r?.async)throw new o;if(n||s instanceof Promise)n=(n??Promise.resolve()).then((async()=>{await s,e.issues.length!==t&&(i||(i=P(e,t)))}));else{if(e.issues.length===t)continue;i||(i=P(e,t))}}return n?n.then((()=>e)):e};e._zod.run=(r,i)=>{const a=e._zod.parse(r,i);if(a instanceof Promise){if(!1===i.async)throw new o;return a.then((e=>t(e,n,i)))}return t(a,n,i)}}e["~standard"]={validate:t=>{try{const r=N(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return U(e,t).then((e=>e.success?{value:e.data}:{issues:e.error?.issues}))}},vendor:"zod",version:1}})),Me=a("$ZodString",((e,t)=>{ze.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>new RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`))(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}})),Oe=a("$ZodStringFormat",((e,t)=>{we.init(e,t),Me.init(e,t)})),je=a("$ZodGUID",((e,t)=>{t.pattern??(t.pattern=W),Oe.init(e,t)})),Fe=a("$ZodUUID",((e,t)=>{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=J(e))}else t.pattern??(t.pattern=J());Oe.init(e,t)})),Ne=a("$ZodEmail",((e,t)=>{t.pattern??(t.pattern=K),Oe.init(e,t)})),Re=a("$ZodURL",((e,t)=>{Oe.init(e,t),e._zod.check=r=>{try{const i=new n(r.value);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ne.source,input:r.value,inst:e,continue:!t.abort})),void(t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})))}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}})),Ue=a("$ZodEmoji",((e,t)=>{t.pattern??(t.pattern=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Oe.init(e,t)})),Le=a("$ZodNanoID",((e,t)=>{t.pattern??(t.pattern=q),Oe.init(e,t)})),Ze=a("$ZodCUID",((e,t)=>{t.pattern??(t.pattern=L),Oe.init(e,t)})),Ve=a("$ZodCUID2",((e,t)=>{t.pattern??(t.pattern=Z),Oe.init(e,t)})),Be=a("$ZodULID",((e,t)=>{t.pattern??(t.pattern=V),Oe.init(e,t)})),Ge=a("$ZodXID",((e,t)=>{t.pattern??(t.pattern=B),Oe.init(e,t)})),qe=a("$ZodKSUID",((e,t)=>{t.pattern??(t.pattern=G),Oe.init(e,t)})),He=a("$ZodISODateTime",((e,t)=>{t.pattern??(t.pattern=function(e){const t=se({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-]\\d{2}:\\d{2})");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${ae}T(?:${n})$`)}(t)),Oe.init(e,t),e._zod.check})),We=a("$ZodISODate",((e,t)=>{t.pattern??(t.pattern=oe),Oe.init(e,t)})),Je=a("$ZodISOTime",((e,t)=>{t.pattern??(t.pattern=function(e){return new RegExp(`^${se(e)}$`)}(t)),Oe.init(e,t),e._zod.check})),Ke=a("$ZodISODuration",((e,t)=>{t.pattern??(t.pattern=H),Oe.init(e,t)})),Xe=a("$ZodIPv4",((e,t)=>{t.pattern??(t.pattern=X),Oe.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.format="ipv4"}))})),Ye=a("$ZodIPv6",((e,t)=>{t.pattern??(t.pattern=Y),Oe.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.format="ipv6"})),e._zod.check=r=>{try{new n(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}})),Qe=a("$ZodCIDRv4",((e,t)=>{t.pattern??(t.pattern=Q),Oe.init(e,t)})),et=a("$ZodCIDRv6",((e,t)=>{t.pattern??(t.pattern=ee),Oe.init(e,t),e._zod.check=r=>{const[i,a]=r.value.split("/");try{if(!a)throw new Error;const e=Number(a);if(`${e}`!==a)throw new Error;if(e<0||e>128)throw new Error;new n(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}}));function tt(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const rt=a("$ZodBase64",((e,t)=>{t.pattern??(t.pattern=te),Oe.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.contentEncoding="base64"})),e._zod.check=r=>{tt(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}})),nt=a("$ZodBase64URL",((e,t)=>{t.pattern??(t.pattern=re),Oe.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.contentEncoding="base64url"})),e._zod.check=r=>{(function(e){if(!re.test(e))return!1;const t=e.replace(/[-_]/g,(e=>"-"===e?"+":"/"));return tt(t.padEnd(4*Math.ceil(t.length/4),"="))})(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}})),it=a("$ZodE164",((e,t)=>{t.pattern??(t.pattern=ie),Oe.init(e,t)})),at=a("$ZodJWT",((e,t)=>{Oe.init(e,t),e._zod.check=r=>{(function(e,t=null){try{const r=e.split(".");if(3!==r.length)return!1;const[n]=r,i=JSON.parse(atob(n));return!("typ"in i&&"JWT"!==i?.typ||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}})(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}})),ot=a("$ZodNumber",((e,t)=>{ze.init(e,t),e._zod.pattern=e._zod.bag.pattern??ue,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;const a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}})),st=a("$ZodNumber",((e,t)=>{be.init(e,t),ot.init(e,t)})),lt=a("$ZodBoolean",((e,t)=>{ze.init(e,t),e._zod.pattern=ce,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}const i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}})),ut=a("$ZodNull",((e,t)=>{ze.init(e,t),e._zod.pattern=pe,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{const{value:n}=t;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}})),ct=a("$ZodUnknown",((e,t)=>{ze.init(e,t),e._zod.parse=e=>e})),pt=a("$ZodNever",((e,t)=>{ze.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}));function ht(e,t,r){e.issues.length&&t.issues.push(...$(r,e.issues)),t.value[r]=e.value}const dt=a("$ZodArray",((e,t)=>{ze.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);const a=[];for(let e=0;e<i.length;e++){const o=i[e],s=t.element._zod.run({value:o,issues:[]},n);s instanceof Promise?a.push(s.then((t=>ht(t,r,e)))):ht(s,r,e)}return a.length?Promise.all(a).then((()=>r)):r}}));function ft(e,t,r){e.issues.length&&t.issues.push(...$(r,e.issues)),t.value[r]=e.value}function mt(e,t,r,n){e.issues.length?void 0===n[r]?t.value[r]=r in n?void 0:e.value:t.issues.push(...$(r,e.issues)):void 0===e.value?r in n&&(t.value[r]=void 0):t.value[r]=e.value}const gt=a("$ZodObject",((e,t)=>{ze.init(e,t);const r=c((()=>{const e=Object.keys(t.shape);for(const r of e)if(!(t.shape[r]instanceof ze))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const r=function(e){return Object.keys(e).filter((t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout))}(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}));let n;d(e._zod,"propValues",(()=>{const e=t.shape,r={};for(const t in e){const n=e[t]._zod;if(n.values){r[t]??(r[t]=new Set);for(const e of n.values)r[t].add(e)}}return r}));const i=y,a=!s.jitless,o=a&&b.value,{catchall:l}=t;let u;e._zod.parse=(s,c)=>{u??(u=r.value);const p=s.value;if(!i(p))return s.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),s;const h=[];if(a&&o&&!1===c?.async&&!0!==c.jitless)n||(n=(e=>{const t=new Te(["shape","payload","ctx"]),{keys:n,optionalKeys:i}=r.value,a=e=>{const t=g(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const o=Object.create(null);for(const e of n)o[e]=m(15);t.write("const newResult = {}");for(const e of n)if(i.has(e)){const r=o[e];t.write(`const ${r} = ${a(e)};`);const n=g(e);t.write(`\n if (${r}.issues.length) {\n if (input[${n}] === undefined) {\n if (${n} in input) {\n newResult[${n}] = undefined;\n }\n } else {\n payload.issues = payload.issues.concat(\n ${r}.issues.map((iss) => ({\n ...iss,\n path: iss.path ? [${n}, ...iss.path] : [${n}],\n }))\n );\n }\n } else if (${r}.value === undefined) {\n if (${n} in input) newResult[${n}] = undefined;\n } else {\n newResult[${n}] = ${r}.value;\n }\n `)}else{const r=o[e];t.write(`const ${r} = ${a(e)};`),t.write(`\n if (${r}.issues.length) payload.issues = payload.issues.concat(${r}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${g(e)}, ...iss.path] : [${g(e)}]\n })));`),t.write(`newResult[${g(e)}] = ${r}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");const s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),s=n(s,c);else{s.value={};const e=u.shape;for(const t of u.keys){const r=e[t],n=r._zod.run({value:p[t],issues:[]},c),i="optional"===r._zod.optin&&"optional"===r._zod.optout;n instanceof Promise?h.push(n.then((e=>i?mt(e,s,t,p):ft(e,s,t)))):i?mt(n,s,t,p):ft(n,s,t)}}if(!l)return h.length?Promise.all(h).then((()=>s)):s;const d=[],f=u.keySet,v=l._zod,y=v.def.type;for(const e of Object.keys(p)){if(f.has(e))continue;if("never"===y){d.push(e);continue}const t=v.run({value:p[e],issues:[]},c);t instanceof Promise?h.push(t.then((t=>ft(t,s,e)))):ft(t,s,e)}return d.length&&s.issues.push({code:"unrecognized_keys",keys:d,input:p,inst:e}),h.length?Promise.all(h).then((()=>s)):s}}));function vt(e,t,r,n){for(const r of e)if(0===r.issues.length)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map((e=>e.issues.map((e=>A(e,n,l())))))}),t}const yt=a("$ZodUnion",((e,t)=>{ze.init(e,t),d(e._zod,"values",(()=>{if(t.options.every((e=>e._zod.values)))return new Set(t.options.flatMap((e=>Array.from(e._zod.values))))})),d(e._zod,"pattern",(()=>{if(t.options.every((e=>e._zod.pattern))){const e=t.options.map((e=>e._zod.pattern));return new RegExp(`^(${e.map((e=>h(e.source))).join("|")})$`)}})),e._zod.parse=(r,n)=>{let i=!1;const a=[];for(const e of t.options){const t=e._zod.run({value:r.value,issues:[]},n);if(t instanceof Promise)a.push(t),i=!0;else{if(0===t.issues.length)return t;a.push(t)}}return i?Promise.all(a).then((t=>vt(t,r,e,n))):vt(a,r,e,n)}})),bt=a("$ZodDiscriminatedUnion",((e,t)=>{yt.init(e,t);const r=e._zod.parse;d(e._zod,"propValues",(()=>{const e={};for(const r of t.options){const n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const[t,r]of Object.entries(n)){e[t]||(e[t]=new Set);for(const n of r)e[t].add(n)}}return e}));const n=c((()=>{const e=t.options,r=new Map;for(const n of e){const e=n._zod.propValues[t.discriminator];if(!e||0===e.size)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(const t of e){if(r.has(t))throw new Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r}));e._zod.parse=(i,a)=>{const o=i.value;if(!y(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;const s=n.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:o,path:[t.discriminator],inst:e}),i)}})),_t=a("$ZodIntersection",((e,t)=>{ze.init(e,t),e._zod.parse=(e,r)=>{const{value:n}=e,i=t.left._zod.run({value:n,issues:[]},r),a=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then((([t,r])=>kt(e,t,r))):kt(e,i,a)}}));function xt(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(_(e)&&_(t)){const r=Object.keys(t),n=Object.keys(e).filter((e=>-1!==r.indexOf(e))),i={...e,...t};for(const r of n){const n=xt(e[r],t[r]);if(!n.valid)return{valid:!1,mergeErrorPath:[r,...n.mergeErrorPath]};i[r]=n.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const i=xt(e[n],t[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function kt(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),P(e))return e;const n=xt(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const wt=a("$ZodRecord",((e,t)=>{ze.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!_(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;const a=[];if(t.keyType._zod.values){const o=t.keyType._zod.values;r.value={};for(const e of o)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){const o=t.valueType._zod.run({value:i[e],issues:[]},n);o instanceof Promise?a.push(o.then((t=>{t.issues.length&&r.issues.push(...$(e,t.issues)),r.value[e]=t.value}))):(o.issues.length&&r.issues.push(...$(e,o.issues)),r.value[e]=o.value)}let s;for(const e in i)o.has(e)||(s=s??[],s.push(e));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else{r.value={};for(const o of Reflect.ownKeys(i)){if("__proto__"===o)continue;const s=t.keyType._zod.run({value:o,issues:[]},n);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:s.issues.map((e=>A(e,n,l()))),input:o,path:[o],inst:e}),r.value[s.value]=s.value;continue}const u=t.valueType._zod.run({value:i[o],issues:[]},n);u instanceof Promise?a.push(u.then((e=>{e.issues.length&&r.issues.push(...$(o,e.issues)),r.value[s.value]=e.value}))):(u.issues.length&&r.issues.push(...$(o,u.issues)),r.value[s.value]=u.value)}}return a.length?Promise.all(a).then((()=>r)):r}})),St=a("$ZodEnum",((e,t)=>{ze.init(e,t);const r=function(e){const t=Object.values(e).filter((e=>"number"==typeof e));return Object.entries(e).filter((([e,r])=>-1===t.indexOf(+e))).map((([e,t])=>t))}(t.entries);e._zod.values=new Set(r),e._zod.pattern=new RegExp(`^(${r.filter((e=>x.has(typeof e))).map((e=>"string"==typeof e?k(e):e.toString())).join("|")})$`),e._zod.parse=(t,n)=>{const i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:r,input:i,inst:e}),t}})),It=a("$ZodLiteral",((e,t)=>{ze.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map((e=>"string"==typeof e?k(e):e?e.toString():String(e))).join("|")})$`),e._zod.parse=(r,n)=>{const i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}})),Pt=a("$ZodTransform",((e,t)=>{ze.init(e,t),e._zod.parse=(e,r)=>{const n=t.transform(e.value,e);if(r.async)return(n instanceof Promise?n:Promise.resolve(n)).then((t=>(e.value=t,e)));if(n instanceof Promise)throw new o;return e.value=n,e}})),$t=a("$ZodOptional",((e,t)=>{ze.init(e,t),e._zod.optin="optional",e._zod.optout="optional",d(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0)),d(e._zod,"pattern",(()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${h(e.source)})?$`):void 0})),e._zod.parse=(e,r)=>void 0===e.value?e:t.innerType._zod.run(e,r)})),Et=a("$ZodNullable",((e,t)=>{ze.init(e,t),d(e._zod,"optin",(()=>t.innerType._zod.optin)),d(e._zod,"optout",(()=>t.innerType._zod.optout)),d(e._zod,"pattern",(()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${h(e.source)}|null)$`):void 0})),d(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0)),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)})),At=a("$ZodDefault",((e,t)=>{ze.init(e,t),e._zod.optin="optional",d(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,r)=>{if(void 0===e.value)return e.value=t.defaultValue,e;const n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then((e=>Ct(e,t))):Ct(n,t)}}));function Ct(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const Tt=a("$ZodPrefault",((e,t)=>{ze.init(e,t),e._zod.optin="optional",d(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,r)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))})),Dt=a("$ZodNonOptional",((e,t)=>{ze.init(e,t),d(e._zod,"values",(()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter((e=>void 0!==e))):void 0})),e._zod.parse=(r,n)=>{const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then((t=>zt(t,e))):zt(i,e)}}));function zt(e,t){return!e.issues.length&&void 0===e.value&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Mt=a("$ZodCatch",((e,t)=>{ze.init(e,t),d(e._zod,"optin",(()=>t.innerType._zod.optin)),d(e._zod,"optout",(()=>t.innerType._zod.optout)),d(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,r)=>{const n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then((n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map((e=>A(e,r,l())))},input:e.value}),e.issues=[]),e))):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map((e=>A(e,r,l())))},input:e.value}),e.issues=[]),e)}})),Ot=a("$ZodPipe",((e,t)=>{ze.init(e,t),d(e._zod,"values",(()=>t.in._zod.values)),d(e._zod,"optin",(()=>t.in._zod.optin)),d(e._zod,"optout",(()=>t.out._zod.optout)),e._zod.parse=(e,r)=>{const n=t.in._zod.run(e,r);return n instanceof Promise?n.then((e=>jt(e,t,r))):jt(n,t,r)}}));function jt(e,t,r){return P(e)?e:t.out._zod.run({value:e.value,issues:e.issues},r)}const Ft=a("$ZodReadonly",((e,t)=>{ze.init(e,t),d(e._zod,"propValues",(()=>t.innerType._zod.propValues)),d(e._zod,"optin",(()=>t.innerType._zod.optin)),d(e._zod,"optout",(()=>t.innerType._zod.optout)),e._zod.parse=(e,r)=>{const n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(Nt):Nt(n)}}));function Nt(e){return e.value=Object.freeze(e.value),e}const Rt=a("$ZodCustom",((e,t)=>{fe.init(e,t),ze.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{const n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then((t=>Ut(t,r,n,e)));Ut(i,r,n,e)}}));function Ut(e,t,r,n){if(!e){const e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(T(e))}}class Lt{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const r=t[0];if(this._map.set(e,r),r&&"object"==typeof r&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}remove(e){return this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const r={...this.get(t)??{}};return delete r.id,{...r,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}function Zt(){return new Lt}const Vt=Zt();function Bt(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...S(t)})}function Gt(e,t){return new ge({check:"less_than",...S(t),value:e,inclusive:!1})}function qt(e,t){return new ge({check:"less_than",...S(t),value:e,inclusive:!0})}function Ht(e,t){return new ve({check:"greater_than",...S(t),value:e,inclusive:!1})}function Wt(e,t){return new ve({check:"greater_than",...S(t),value:e,inclusive:!0})}function Jt(e,t){return new ye({check:"multiple_of",...S(t),value:e})}function Kt(e,t){return new _e({check:"max_length",...S(t),maximum:e})}function Xt(e,t){return new xe({check:"min_length",...S(t),minimum:e})}function Yt(e,t){return new ke({check:"length_equals",...S(t),length:e})}function Qt(e){return new Ce({check:"overwrite",tx:e})}const er=a("ZodISODateTime",((e,t)=>{He.init(e,t),fr.init(e,t)}));function tr(e){return function(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...S(t)})}(er,e)}const rr=a("ZodISODate",((e,t)=>{We.init(e,t),fr.init(e,t)}));const nr=a("ZodISOTime",((e,t)=>{Je.init(e,t),fr.init(e,t)}));const ir=a("ZodISODuration",((e,t)=>{Ke.init(e,t),fr.init(e,t)}));const ar=a("ZodError",((e,t)=>{z.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>function(e,t){const r=t||function(e){return e.message},n={_errors:[]},i=e=>{for(const t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map((e=>i({issues:e})));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)n._errors.push(r(t));else{let e=n,i=0;for(;i<t.path.length;){const n=t.path[i];i===t.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(r(t))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(e),n}(e,t)},flatten:{value:t=>function(e,t=e=>e.message){const r={},n=[];for(const i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})}),{Parent:Error}),or=O(ar),sr=j(ar),lr=F(ar),ur=R(ar),cr=a("ZodType",((e,t)=>(ze.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map((e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e))]}),e.clone=(t,r)=>w(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>or(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>lr(e,t,r),e.parseAsync=async(t,r)=>sr(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>ur(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(function(e,t={}){return function(e,t,r){return new e({type:"custom",check:"custom",fn:t,...S(r)})}(wn,e,t)}(t,r)),e.superRefine=t=>e.check(function(e){const t=function(e,t){const r=new fe({check:"custom",...S(t)});return r._zod.check=e,r}((r=>(r.addIssue=e=>{if("string"==typeof e)r.issues.push(T(e,r.value,t._zod.def));else{const n=e;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(T(n))}},e(r.value,r))),void 0);return t}(t)),e.overwrite=t=>e.check(Qt(t)),e.optional=()=>dn(e),e.nullable=()=>mn(e),e.nullish=()=>dn(mn(e)),e.nonoptional=t=>function(e,t){return new yn({type:"nonoptional",innerType:e,...S(t)})}(e,t),e.array=()=>Hr(e),e.or=t=>Yr([e,t]),e.and=t=>rn(e,t),e.transform=t=>xn(e,pn(t)),e.default=t=>function(e,t){return new gn({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}(e,t),e.prefault=t=>function(e,t){return new vn({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}(e,t),e.catch=t=>function(e,t){return new bn({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}(e,t),e.pipe=t=>xn(e,t),e.readonly=()=>function(e){return new kn({type:"readonly",innerType:e})}(e),e.describe=t=>{const r=e.clone();return Vt.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>Vt.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return Vt.get(e);const r=e.clone();return Vt.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e))),pr=a("_ZodString",((e,t)=>{Me.init(e,t),cr.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new Se({check:"string_format",format:"regex",...S(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new $e({check:"string_format",format:"includes",...S(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new Ee({check:"string_format",format:"starts_with",...S(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new Ae({check:"string_format",format:"ends_with",...S(t),suffix:e})}(...t)),e.min=(...t)=>e.check(Xt(...t)),e.max=(...t)=>e.check(Kt(...t)),e.length=(...t)=>e.check(Yt(...t)),e.nonempty=(...t)=>e.check(Xt(1,...t)),e.lowercase=t=>e.check(function(e){return new Ie({check:"string_format",format:"lowercase",...S(e)})}(t)),e.uppercase=t=>e.check(function(e){return new Pe({check:"string_format",format:"uppercase",...S(e)})}(t)),e.trim=()=>e.check(Qt((e=>e.trim()))),e.normalize=(...t)=>e.check(function(e){return Qt((t=>t.normalize(e)))}(...t)),e.toLowerCase=()=>e.check(Qt((e=>e.toLowerCase()))),e.toUpperCase=()=>e.check(Qt((e=>e.toUpperCase())))})),hr=a("ZodString",((e,t)=>{Me.init(e,t),pr.init(e,t),e.email=t=>e.check(function(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...S(t)})}(mr,t)),e.url=t=>e.check(function(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...S(t)})}(yr,t)),e.jwt=t=>e.check(function(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...S(t)})}(zr,t)),e.emoji=t=>e.check(function(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...S(t)})}(br,t)),e.guid=t=>e.check(Bt(gr,t)),e.uuid=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...S(t)})}(vr,t)),e.uuidv4=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...S(t)})}(vr,t)),e.uuidv6=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...S(t)})}(vr,t)),e.uuidv7=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...S(t)})}(vr,t)),e.nanoid=t=>e.check(function(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...S(t)})}(_r,t)),e.guid=t=>e.check(Bt(gr,t)),e.cuid=t=>e.check(function(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...S(t)})}(xr,t)),e.cuid2=t=>e.check(function(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...S(t)})}(kr,t)),e.ulid=t=>e.check(function(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...S(t)})}(wr,t)),e.base64=t=>e.check(function(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...S(t)})}(Cr,t)),e.base64url=t=>e.check(function(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...S(t)})}(Tr,t)),e.xid=t=>e.check(function(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...S(t)})}(Sr,t)),e.ksuid=t=>e.check(function(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...S(t)})}(Ir,t)),e.ipv4=t=>e.check(function(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...S(t)})}(Pr,t)),e.ipv6=t=>e.check(function(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...S(t)})}($r,t)),e.cidrv4=t=>e.check(function(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...S(t)})}(Er,t)),e.cidrv6=t=>e.check(function(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...S(t)})}(Ar,t)),e.e164=t=>e.check(function(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...S(t)})}(Dr,t)),e.datetime=t=>e.check(tr(t)),e.date=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"date",check:"string_format",...S(t)})}(rr,e)}(t)),e.time=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...S(t)})}(nr,e)}(t)),e.duration=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"duration",check:"string_format",...S(t)})}(ir,e)}(t))}));function dr(e){return function(e,t){return new e({type:"string",...S(t)})}(hr,e)}const fr=a("ZodStringFormat",((e,t)=>{Oe.init(e,t),pr.init(e,t)})),mr=a("ZodEmail",((e,t)=>{Ne.init(e,t),fr.init(e,t)})),gr=a("ZodGUID",((e,t)=>{je.init(e,t),fr.init(e,t)})),vr=a("ZodUUID",((e,t)=>{Fe.init(e,t),fr.init(e,t)})),yr=a("ZodURL",((e,t)=>{Re.init(e,t),fr.init(e,t)})),br=a("ZodEmoji",((e,t)=>{Ue.init(e,t),fr.init(e,t)})),_r=a("ZodNanoID",((e,t)=>{Le.init(e,t),fr.init(e,t)})),xr=a("ZodCUID",((e,t)=>{Ze.init(e,t),fr.init(e,t)})),kr=a("ZodCUID2",((e,t)=>{Ve.init(e,t),fr.init(e,t)})),wr=a("ZodULID",((e,t)=>{Be.init(e,t),fr.init(e,t)})),Sr=a("ZodXID",((e,t)=>{Ge.init(e,t),fr.init(e,t)})),Ir=a("ZodKSUID",((e,t)=>{qe.init(e,t),fr.init(e,t)})),Pr=a("ZodIPv4",((e,t)=>{Xe.init(e,t),fr.init(e,t)})),$r=a("ZodIPv6",((e,t)=>{Ye.init(e,t),fr.init(e,t)})),Er=a("ZodCIDRv4",((e,t)=>{Qe.init(e,t),fr.init(e,t)})),Ar=a("ZodCIDRv6",((e,t)=>{et.init(e,t),fr.init(e,t)})),Cr=a("ZodBase64",((e,t)=>{rt.init(e,t),fr.init(e,t)})),Tr=a("ZodBase64URL",((e,t)=>{nt.init(e,t),fr.init(e,t)})),Dr=a("ZodE164",((e,t)=>{it.init(e,t),fr.init(e,t)})),zr=a("ZodJWT",((e,t)=>{at.init(e,t),fr.init(e,t)})),Mr=a("ZodNumber",((e,t)=>{ot.init(e,t),cr.init(e,t),e.gt=(t,r)=>e.check(Ht(t,r)),e.gte=(t,r)=>e.check(Wt(t,r)),e.min=(t,r)=>e.check(Wt(t,r)),e.lt=(t,r)=>e.check(Gt(t,r)),e.lte=(t,r)=>e.check(qt(t,r)),e.max=(t,r)=>e.check(qt(t,r)),e.int=t=>e.check(Fr(t)),e.safe=t=>e.check(Fr(t)),e.positive=t=>e.check(Ht(0,t)),e.nonnegative=t=>e.check(Wt(0,t)),e.negative=t=>e.check(Gt(0,t)),e.nonpositive=t=>e.check(qt(0,t)),e.multipleOf=(t,r)=>e.check(Jt(t,r)),e.step=(t,r)=>e.check(Jt(t,r)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null}));function Or(e){return function(e,t){return new e({type:"number",checks:[],...S(t)})}(Mr,e)}const jr=a("ZodNumberFormat",((e,t)=>{st.init(e,t),Mr.init(e,t)}));function Fr(e){return function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...S(t)})}(jr,e)}const Nr=a("ZodBoolean",((e,t)=>{lt.init(e,t),cr.init(e,t)}));function Rr(e){return function(e,t){return new e({type:"boolean",...S(t)})}(Nr,e)}const Ur=a("ZodNull",((e,t)=>{ut.init(e,t),cr.init(e,t)}));function Lr(e){return function(e,t){return new e({type:"null",...S(t)})}(Ur,e)}const Zr=a("ZodUnknown",((e,t)=>{ct.init(e,t),cr.init(e,t)}));function Vr(){return new Zr({type:"unknown"})}const Br=a("ZodNever",((e,t)=>{pt.init(e,t),cr.init(e,t)}));function Gr(e){return function(e,t){return new e({type:"never",...S(t)})}(Br,e)}const qr=a("ZodArray",((e,t)=>{dt.init(e,t),cr.init(e,t),e.element=t.element,e.min=(t,r)=>e.check(Xt(t,r)),e.nonempty=t=>e.check(Xt(1,t)),e.max=(t,r)=>e.check(Kt(t,r)),e.length=(t,r)=>e.check(Yt(t,r)),e.unwrap=()=>e.element}));function Hr(e,t){return function(e,t,r){return new e({type:"array",element:t,...S(r)})}(qr,e,t)}const Wr=a("ZodObject",((e,t)=>{gt.init(e,t),cr.init(e,t),d(e,"shape",(()=>t.shape)),e.keyof=()=>sn(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Vr()}),e.loose=()=>e.clone({...e._zod.def,catchall:Vr()}),e.strict=()=>e.clone({...e._zod.def,catchall:Gr()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>function(e,t){const r={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return f(this,"shape",r),r},checks:[]};return w(e,r)}(e,t),e.merge=t=>function(e,t){return w(e,{...e._zod.def,get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return f(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})}(e,t),e.pick=t=>function(e,t){const r={},n=e._zod.def;for(const e in t){if(!(e in n.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&(r[e]=n.shape[e])}return w(e,{...e._zod.def,shape:r,checks:[]})}(e,t),e.omit=t=>function(e,t){const r={...e._zod.def.shape},n=e._zod.def;for(const e in t){if(!(e in n.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return w(e,{...e._zod.def,shape:r,checks:[]})}(e,t),e.partial=(...t)=>function(e,t,r){const n=t._zod.def.shape,i={...n};if(r)for(const t in r){if(!(t in n))throw new Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(const t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return w(t,{...t._zod.def,shape:i,checks:[]})}(hn,e,t[0]),e.required=(...t)=>function(e,t,r){const n=t._zod.def.shape,i={...n};if(r)for(const t in r){if(!(t in i))throw new Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(const t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return w(t,{...t._zod.def,shape:i,checks:[]})}(yn,e,t[0])}));function Jr(e,t){const r={type:"object",get shape(){return f(this,"shape",{...e}),this.shape},...S(t)};return new Wr(r)}function Kr(e,t){return new Wr({type:"object",get shape(){return f(this,"shape",{...e}),this.shape},catchall:Vr(),...S(t)})}const Xr=a("ZodUnion",((e,t)=>{yt.init(e,t),cr.init(e,t),e.options=t.options}));function Yr(e,t){return new Xr({type:"union",options:e,...S(t)})}const Qr=a("ZodDiscriminatedUnion",((e,t)=>{Xr.init(e,t),bt.init(e,t)}));function en(e,t,r){return new Qr({type:"union",options:t,discriminator:e,...S(r)})}const tn=a("ZodIntersection",((e,t)=>{_t.init(e,t),cr.init(e,t)}));function rn(e,t){return new tn({type:"intersection",left:e,right:t})}const nn=a("ZodRecord",((e,t)=>{wt.init(e,t),cr.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType}));function an(e,t,r){return new nn({type:"record",keyType:e,valueType:t,...S(r)})}const on=a("ZodEnum",((e,t)=>{St.init(e,t),cr.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{const i={};for(const n of e){if(!r.has(n))throw new Error(`Key ${n} not found in enum`);i[n]=t.entries[n]}return new on({...t,checks:[],...S(n),entries:i})},e.exclude=(e,n)=>{const i={...t.entries};for(const t of e){if(!r.has(t))throw new Error(`Key ${t} not found in enum`);delete i[t]}return new on({...t,checks:[],...S(n),entries:i})}}));function sn(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map((e=>[e,e]))):e;return new on({type:"enum",entries:r,...S(t)})}const ln=a("ZodLiteral",((e,t)=>{It.init(e,t),cr.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}));function un(e,t){return new ln({type:"literal",values:Array.isArray(e)?e:[e],...S(t)})}const cn=a("ZodTransform",((e,t)=>{Pt.init(e,t),cr.init(e,t),e._zod.parse=(r,n)=>{r.addIssue=n=>{if("string"==typeof n)r.issues.push(T(n,r.value,t));else{const t=n;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=r.value),t.inst??(t.inst=e),t.continue??(t.continue=!0),r.issues.push(T(t))}};const i=t.transform(r.value,r);return i instanceof Promise?i.then((e=>(r.value=e,r))):(r.value=i,r)}}));function pn(e){return new cn({type:"transform",transform:e})}const hn=a("ZodOptional",((e,t)=>{$t.init(e,t),cr.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function dn(e){return new hn({type:"optional",innerType:e})}const fn=a("ZodNullable",((e,t)=>{Et.init(e,t),cr.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function mn(e){return new fn({type:"nullable",innerType:e})}const gn=a("ZodDefault",((e,t)=>{At.init(e,t),cr.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap})),vn=a("ZodPrefault",((e,t)=>{Tt.init(e,t),cr.init(e,t),e.unwrap=()=>e._zod.def.innerType})),yn=a("ZodNonOptional",((e,t)=>{Dt.init(e,t),cr.init(e,t),e.unwrap=()=>e._zod.def.innerType})),bn=a("ZodCatch",((e,t)=>{Mt.init(e,t),cr.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap})),_n=a("ZodPipe",((e,t)=>{Ot.init(e,t),cr.init(e,t),e.in=t.in,e.out=t.out}));function xn(e,t){return new _n({type:"pipe",in:e,out:t})}const kn=a("ZodReadonly",((e,t)=>{Ft.init(e,t),cr.init(e,t)})),wn=a("ZodCustom",((e,t)=>{Rt.init(e,t),cr.init(e,t)}));function Sn(e,t){return xn(pn(e),t)}const In="io.modelcontextprotocol/related-task",Pn="2.0",$n=function(e,t,r){const n=S(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:(e=>null!==e&&("object"==typeof e||"function"==typeof e))??(()=>!0),...n})}(wn,0,undefined),En=Yr([dr(),Or().int()]),An=dr();Kr({ttl:Yr([Or(),Lr()]).optional(),pollInterval:Or().optional()});const Cn=Jr({ttl:Or().optional()}),Tn=Jr({taskId:dr()}),Dn=Kr({progressToken:En.optional(),[In]:Tn.optional()}),zn=Jr({_meta:Dn.optional()}),Mn=zn.extend({task:Cn.optional()}),On=Jr({method:dr(),params:zn.loose().optional()}),jn=Jr({_meta:Dn.optional()}),Fn=Jr({method:dr(),params:jn.loose().optional()}),Nn=Kr({_meta:Dn.optional()}),Rn=Yr([dr(),Or().int()]),Un=Jr({jsonrpc:un(Pn),id:Rn,...On.shape}).strict(),Ln=Jr({jsonrpc:un(Pn),...Fn.shape}).strict(),Zn=Jr({jsonrpc:un(Pn),id:Rn,result:Nn}).strict();var Vn,Bn;(Bn=Vn||(Vn={}))[Bn.ConnectionClosed=-32e3]="ConnectionClosed",Bn[Bn.RequestTimeout=-32001]="RequestTimeout",Bn[Bn.ParseError=-32700]="ParseError",Bn[Bn.InvalidRequest=-32600]="InvalidRequest",Bn[Bn.MethodNotFound=-32601]="MethodNotFound",Bn[Bn.InvalidParams=-32602]="InvalidParams",Bn[Bn.InternalError=-32603]="InternalError",Bn[Bn.UrlElicitationRequired=-32042]="UrlElicitationRequired";const Gn=Jr({jsonrpc:un(Pn),id:Rn.optional(),error:Jr({code:Or().int(),message:dr(),data:Vr().optional()})}).strict();Yr([Un,Ln,Zn,Gn]),Yr([Zn,Gn]);const qn=Nn.strict(),Hn=jn.extend({requestId:Rn.optional(),reason:dr().optional()}),Wn=Fn.extend({method:un("notifications/cancelled"),params:Hn}),Jn=Jr({src:dr(),mimeType:dr().optional(),sizes:Hr(dr()).optional(),theme:sn(["light","dark"]).optional()}),Kn=Jr({icons:Hr(Jn).optional()}),Xn=Jr({name:dr(),title:dr().optional()}),Yn=Xn.extend({...Xn.shape,...Kn.shape,version:dr(),websiteUrl:dr().optional(),description:dr().optional()}),Qn=rn(Jr({applyDefaults:Rr().optional()}),an(dr(),Vr())),ei=Sn((e=>e&&"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length?{form:{}}:e),rn(Jr({form:Qn.optional(),url:$n.optional()}),an(dr(),Vr()).optional())),ti=Kr({list:$n.optional(),cancel:$n.optional(),requests:Kr({sampling:Kr({createMessage:$n.optional()}).optional(),elicitation:Kr({create:$n.optional()}).optional()}).optional()}),ri=Kr({list:$n.optional(),cancel:$n.optional(),requests:Kr({tools:Kr({call:$n.optional()}).optional()}).optional()}),ni=Jr({experimental:an(dr(),$n).optional(),sampling:Jr({context:$n.optional(),tools:$n.optional()}).optional(),elicitation:ei.optional(),roots:Jr({listChanged:Rr().optional()}).optional(),tasks:ti.optional()}),ii=zn.extend({protocolVersion:dr(),capabilities:ni,clientInfo:Yn}),ai=On.extend({method:un("initialize"),params:ii}),oi=Jr({experimental:an(dr(),$n).optional(),logging:$n.optional(),completions:$n.optional(),prompts:Jr({listChanged:Rr().optional()}).optional(),resources:Jr({subscribe:Rr().optional(),listChanged:Rr().optional()}).optional(),tools:Jr({listChanged:Rr().optional()}).optional(),tasks:ri.optional()}),si=Nn.extend({protocolVersion:dr(),capabilities:oi,serverInfo:Yn,instructions:dr().optional()}),li=Fn.extend({method:un("notifications/initialized"),params:jn.optional()}),ui=On.extend({method:un("ping"),params:zn.optional()}),ci=Jr({progress:Or(),total:dn(Or()),message:dn(dr())}),pi=Jr({...jn.shape,...ci.shape,progressToken:En}),hi=Fn.extend({method:un("notifications/progress"),params:pi}),di=zn.extend({cursor:An.optional()}),fi=On.extend({params:di.optional()}),mi=Nn.extend({nextCursor:An.optional()}),gi=sn(["working","input_required","completed","failed","cancelled"]),vi=Jr({taskId:dr(),status:gi,ttl:Yr([Or(),Lr()]),createdAt:dr(),lastUpdatedAt:dr(),pollInterval:dn(Or()),statusMessage:dn(dr())}),yi=Nn.extend({task:vi}),bi=jn.merge(vi),_i=Fn.extend({method:un("notifications/tasks/status"),params:bi}),xi=On.extend({method:un("tasks/get"),params:zn.extend({taskId:dr()})}),ki=Nn.merge(vi),wi=On.extend({method:un("tasks/result"),params:zn.extend({taskId:dr()})});Nn.loose();const Si=fi.extend({method:un("tasks/list")}),Ii=mi.extend({tasks:Hr(vi)}),Pi=On.extend({method:un("tasks/cancel"),params:zn.extend({taskId:dr()})});Nn.merge(vi);const $i=Jr({uri:dr(),mimeType:dn(dr()),_meta:an(dr(),Vr()).optional()}),Ei=$i.extend({text:dr()}),Ai=dr().refine((e=>{try{return atob(e),!0}catch{return!1}}),{message:"Invalid Base64 string"}),Ci=$i.extend({blob:Ai}),Ti=sn(["user","assistant"]),Di=Jr({audience:Hr(Ti).optional(),priority:Or().min(0).max(1).optional(),lastModified:tr({offset:!0}).optional()}),zi=Jr({...Xn.shape,...Kn.shape,uri:dr(),description:dn(dr()),mimeType:dn(dr()),annotations:Di.optional(),_meta:dn(Kr({}))}),Mi=Jr({...Xn.shape,...Kn.shape,uriTemplate:dr(),description:dn(dr()),mimeType:dn(dr()),annotations:Di.optional(),_meta:dn(Kr({}))}),Oi=fi.extend({method:un("resources/list")}),ji=mi.extend({resources:Hr(zi)}),Fi=fi.extend({method:un("resources/templates/list")}),Ni=mi.extend({resourceTemplates:Hr(Mi)}),Ri=zn.extend({uri:dr()}),Ui=Ri,Li=On.extend({method:un("resources/read"),params:Ui}),Zi=Nn.extend({contents:Hr(Yr([Ei,Ci]))}),Vi=Fn.extend({method:un("notifications/resources/list_changed"),params:jn.optional()}),Bi=Ri,Gi=On.extend({method:un("resources/subscribe"),params:Bi}),qi=Ri,Hi=On.extend({method:un("resources/unsubscribe"),params:qi}),Wi=jn.extend({uri:dr()}),Ji=Fn.extend({method:un("notifications/resources/updated"),params:Wi}),Ki=Jr({name:dr(),description:dn(dr()),required:dn(Rr())}),Xi=Jr({...Xn.shape,...Kn.shape,description:dn(dr()),arguments:dn(Hr(Ki)),_meta:dn(Kr({}))}),Yi=fi.extend({method:un("prompts/list")}),Qi=mi.extend({prompts:Hr(Xi)}),ea=zn.extend({name:dr(),arguments:an(dr(),dr()).optional()}),ta=On.extend({method:un("prompts/get"),params:ea}),ra=Jr({type:un("text"),text:dr(),annotations:Di.optional(),_meta:an(dr(),Vr()).optional()}),na=Jr({type:un("image"),data:Ai,mimeType:dr(),annotations:Di.optional(),_meta:an(dr(),Vr()).optional()}),ia=Jr({type:un("audio"),data:Ai,mimeType:dr(),annotations:Di.optional(),_meta:an(dr(),Vr()).optional()}),aa=Jr({type:un("tool_use"),name:dr(),id:dr(),input:an(dr(),Vr()),_meta:an(dr(),Vr()).optional()}),oa=Jr({type:un("resource"),resource:Yr([Ei,Ci]),annotations:Di.optional(),_meta:an(dr(),Vr()).optional()}),sa=Yr([ra,na,ia,zi.extend({type:un("resource_link")}),oa]),la=Jr({role:Ti,content:sa}),ua=Nn.extend({description:dr().optional(),messages:Hr(la)}),ca=Fn.extend({method:un("notifications/prompts/list_changed"),params:jn.optional()}),pa=Jr({title:dr().optional(),readOnlyHint:Rr().optional(),destructiveHint:Rr().optional(),idempotentHint:Rr().optional(),openWorldHint:Rr().optional()}),ha=Jr({taskSupport:sn(["required","optional","forbidden"]).optional()}),da=Jr({...Xn.shape,...Kn.shape,description:dr().optional(),inputSchema:Jr({type:un("object"),properties:an(dr(),$n).optional(),required:Hr(dr()).optional()}).catchall(Vr()),outputSchema:Jr({type:un("object"),properties:an(dr(),$n).optional(),required:Hr(dr()).optional()}).catchall(Vr()).optional(),annotations:pa.optional(),execution:ha.optional(),_meta:an(dr(),Vr()).optional()}),fa=fi.extend({method:un("tools/list")}),ma=mi.extend({tools:Hr(da)}),ga=Nn.extend({content:Hr(sa).default([]),structuredContent:an(dr(),Vr()).optional(),isError:Rr().optional()});ga.or(Nn.extend({toolResult:Vr()}));const va=Mn.extend({name:dr(),arguments:an(dr(),Vr()).optional()}),ya=On.extend({method:un("tools/call"),params:va}),ba=Fn.extend({method:un("notifications/tools/list_changed"),params:jn.optional()});Jr({autoRefresh:Rr().default(!0),debounceMs:Or().int().nonnegative().default(300)});const _a=sn(["debug","info","notice","warning","error","critical","alert","emergency"]),xa=zn.extend({level:_a}),ka=On.extend({method:un("logging/setLevel"),params:xa}),wa=jn.extend({level:_a,logger:dr().optional(),data:Vr()}),Sa=Fn.extend({method:un("notifications/message"),params:wa}),Ia=Jr({name:dr().optional()}),Pa=Jr({hints:Hr(Ia).optional(),costPriority:Or().min(0).max(1).optional(),speedPriority:Or().min(0).max(1).optional(),intelligencePriority:Or().min(0).max(1).optional()}),$a=Jr({mode:sn(["auto","required","none"]).optional()}),Ea=Jr({type:un("tool_result"),toolUseId:dr().describe("The unique identifier for the corresponding tool call."),content:Hr(sa).default([]),structuredContent:Jr({}).loose().optional(),isError:Rr().optional(),_meta:an(dr(),Vr()).optional()}),Aa=en("type",[ra,na,ia]),Ca=en("type",[ra,na,ia,aa,Ea]),Ta=Jr({role:Ti,content:Yr([Ca,Hr(Ca)]),_meta:an(dr(),Vr()).optional()}),Da=Mn.extend({messages:Hr(Ta),modelPreferences:Pa.optional(),systemPrompt:dr().optional(),includeContext:sn(["none","thisServer","allServers"]).optional(),temperature:Or().optional(),maxTokens:Or().int(),stopSequences:Hr(dr()).optional(),metadata:$n.optional(),tools:Hr(da).optional(),toolChoice:$a.optional()}),za=On.extend({method:un("sampling/createMessage"),params:Da}),Ma=Nn.extend({model:dr(),stopReason:dn(sn(["endTurn","stopSequence","maxTokens"]).or(dr())),role:Ti,content:Aa}),Oa=Nn.extend({model:dr(),stopReason:dn(sn(["endTurn","stopSequence","maxTokens","toolUse"]).or(dr())),role:Ti,content:Yr([Ca,Hr(Ca)])}),ja=Jr({type:un("boolean"),title:dr().optional(),description:dr().optional(),default:Rr().optional()}),Fa=Jr({type:un("string"),title:dr().optional(),description:dr().optional(),minLength:Or().optional(),maxLength:Or().optional(),format:sn(["email","uri","date","date-time"]).optional(),default:dr().optional()}),Na=Jr({type:sn(["number","integer"]),title:dr().optional(),description:dr().optional(),minimum:Or().optional(),maximum:Or().optional(),default:Or().optional()}),Ra=Jr({type:un("string"),title:dr().optional(),description:dr().optional(),enum:Hr(dr()),default:dr().optional()}),Ua=Jr({type:un("string"),title:dr().optional(),description:dr().optional(),oneOf:Hr(Jr({const:dr(),title:dr()})),default:dr().optional()}),La=Jr({type:un("string"),title:dr().optional(),description:dr().optional(),enum:Hr(dr()),enumNames:Hr(dr()).optional(),default:dr().optional()}),Za=Yr([Ra,Ua]),Va=Yr([Jr({type:un("array"),title:dr().optional(),description:dr().optional(),minItems:Or().optional(),maxItems:Or().optional(),items:Jr({type:un("string"),enum:Hr(dr())}),default:Hr(dr()).optional()}),Jr({type:un("array"),title:dr().optional(),description:dr().optional(),minItems:Or().optional(),maxItems:Or().optional(),items:Jr({anyOf:Hr(Jr({const:dr(),title:dr()}))}),default:Hr(dr()).optional()})]),Ba=Yr([La,Za,Va]),Ga=Yr([Ba,ja,Fa,Na]),qa=Yr([Mn.extend({mode:un("form").optional(),message:dr(),requestedSchema:Jr({type:un("object"),properties:an(dr(),Ga),required:Hr(dr()).optional()})}),Mn.extend({mode:un("url"),message:dr(),elicitationId:dr(),url:dr().url()})]),Ha=On.extend({method:un("elicitation/create"),params:qa}),Wa=jn.extend({elicitationId:dr()}),Ja=Fn.extend({method:un("notifications/elicitation/complete"),params:Wa}),Ka=Nn.extend({action:sn(["accept","decline","cancel"]),content:Sn((e=>null===e?void 0:e),an(dr(),Yr([dr(),Or(),Rr(),Hr(dr())])).optional())}),Xa=Jr({type:un("ref/resource"),uri:dr()}),Ya=Jr({type:un("ref/prompt"),name:dr()}),Qa=zn.extend({ref:Yr([Ya,Xa]),argument:Jr({name:dr(),value:dr()}),context:Jr({arguments:an(dr(),dr()).optional()}).optional()}),eo=On.extend({method:un("completion/complete"),params:Qa}),to=Nn.extend({completion:Kr({values:Hr(dr()).max(100),total:dn(Or().int()),hasMore:dn(Rr())})}),ro=Jr({uri:dr().startsWith("file://"),name:dr().optional(),_meta:an(dr(),Vr()).optional()}),no=On.extend({method:un("roots/list"),params:zn.optional()}),io=Nn.extend({roots:Hr(ro)}),ao=Fn.extend({method:un("notifications/roots/list_changed"),params:jn.optional()});Yr([ui,ai,eo,ka,ta,Yi,Oi,Fi,Li,Gi,Hi,ya,fa,xi,wi,Si,Pi]),Yr([Wn,hi,li,ao,_i]),Yr([qn,Ma,Oa,Ka,io,ki,Ii,yi]),Yr([ui,za,Ha,no,xi,wi,Si,Pi]),Yr([Wn,hi,Sa,Ji,Vi,ba,ca,_i,Ja]),Yr([qn,si,to,ua,Qi,ji,Ni,Zi,ga,ma,ki,Ii,yi]),new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var oo=Object.defineProperty,so=(e,t)=>{for(var r in t)oo(e,r,{get:t[r],enumerable:!0,configurable:!0,set:e=>t[r]=()=>e})},lo={};so(lo,{xor:()=>Ry,xid:()=>Pv,void:()=>Py,uuidv7:()=>pv,uuidv6:()=>cv,uuidv4:()=>uv,uuid:()=>lv,util:()=>yo,url:()=>dv,uppercase:()=>Uf,unknown:()=>ky,union:()=>Fy,undefined:()=>gy,ulid:()=>Sv,uint64:()=>hy,uint32:()=>ay,tuple:()=>Gy,trim:()=>Wf,treeifyError:()=>Ds,transform:()=>lb,toUpperCase:()=>Kf,toLowerCase:()=>Jf,toJSONSchema:()=>wg,templateLiteral:()=>zb,symbol:()=>fy,superRefine:()=>Bb,success:()=>xb,stringbool:()=>Wb,stringFormat:()=>Wv,string:()=>tv,strictObject:()=>My,startsWith:()=>Zf,slugify:()=>Xf,size:()=>Mf,setErrorMap:()=>Qb,set:()=>Qy,safeParseAsync:()=>Vg,safeParse:()=>Zg,safeEncodeAsync:()=>Kg,safeEncode:()=>Wg,safeDecodeAsync:()=>Xg,safeDecode:()=>Jg,registry:()=>xd,regexes:()=>al,regex:()=>Nf,refine:()=>Vb,record:()=>Hy,readonly:()=>Tb,property:()=>Bf,promise:()=>Fb,prettifyError:()=>Ms,preprocess:()=>Kb,prefault:()=>vb,positive:()=>$f,pipe:()=>$b,partialRecord:()=>Wy,parseAsync:()=>Lg,parse:()=>Ug,overwrite:()=>qf,optional:()=>cb,object:()=>zy,number:()=>Qv,nullish:()=>db,nullable:()=>hb,null:()=>yy,normalize:()=>Hf,nonpositive:()=>Af,nonoptional:()=>bb,nonnegative:()=>Cf,never:()=>Sy,negative:()=>Ef,nativeEnum:()=>rb,nanoid:()=>yv,nan:()=>Ib,multipleOf:()=>Tf,minSize:()=>zf,minLength:()=>jf,mime:()=>Gf,meta:()=>qb,maxSize:()=>Df,maxLength:()=>Of,map:()=>Xy,mac:()=>Dv,lte:()=>Sf,lt:()=>wf,lowercase:()=>Rf,looseRecord:()=>Jy,looseObject:()=>Oy,locales:()=>$p,literal:()=>ib,length:()=>Ff,lazy:()=>Ob,ksuid:()=>Ev,keyof:()=>Ty,jwt:()=>qv,json:()=>Jb,iso:()=>Eg,ipv6:()=>Mv,ipv4:()=>Cv,intersection:()=>Vy,int64:()=>py,int32:()=>iy,int:()=>ty,instanceof:()=>Hb,includes:()=>Lf,httpUrl:()=>fv,hostname:()=>Jv,hex:()=>Kv,hash:()=>Xv,guid:()=>ov,gte:()=>Pf,gt:()=>If,globalRegistry:()=>kd,getErrorMap:()=>e_,function:()=>Rb,fromJSONSchema:()=>i_,formatError:()=>Ts,float64:()=>ny,float32:()=>ry,flattenError:()=>Cs,file:()=>ob,enum:()=>tb,endsWith:()=>Vf,encodeAsync:()=>qg,encode:()=>Bg,emoji:()=>gv,email:()=>iv,e164:()=>Bv,discriminatedUnion:()=>Ly,describe:()=>Gb,decodeAsync:()=>Hg,decode:()=>Gg,date:()=>Ey,custom:()=>Zb,cuid2:()=>kv,cuid:()=>_v,core:()=>uo,config:()=>vo,coerce:()=>a_,codec:()=>Ab,clone:()=>Yo,cidrv6:()=>Nv,cidrv4:()=>jv,check:()=>Lb,catch:()=>wb,boolean:()=>sy,bigint:()=>uy,base64url:()=>Zv,base64:()=>Uv,array:()=>Cy,any:()=>_y,_function:()=>Rb,_default:()=>mb,_ZodString:()=>Qg,ZodXor:()=>Ny,ZodXID:()=>Iv,ZodVoid:()=>Iy,ZodUnknown:()=>xy,ZodUnion:()=>jy,ZodUndefined:()=>my,ZodUUID:()=>sv,ZodURL:()=>hv,ZodULID:()=>wv,ZodType:()=>Yg,ZodTuple:()=>By,ZodTransform:()=>sb,ZodTemplateLiteral:()=>Db,ZodSymbol:()=>dy,ZodSuccess:()=>_b,ZodStringFormat:()=>rv,ZodString:()=>ev,ZodSet:()=>Yy,ZodRecord:()=>qy,ZodRealError:()=>Rg,ZodReadonly:()=>Cb,ZodPromise:()=>jb,ZodPrefault:()=>gb,ZodPipe:()=>Pb,ZodOptional:()=>ub,ZodObject:()=>Dy,ZodNumberFormat:()=>ey,ZodNumber:()=>Yv,ZodNullable:()=>pb,ZodNull:()=>vy,ZodNonOptional:()=>yb,ZodNever:()=>wy,ZodNanoID:()=>vv,ZodNaN:()=>Sb,ZodMap:()=>Ky,ZodMAC:()=>Tv,ZodLiteral:()=>nb,ZodLazy:()=>Mb,ZodKSUID:()=>$v,ZodJWT:()=>Gv,ZodIssueCode:()=>Yb,ZodIntersection:()=>Zy,ZodISOTime:()=>zg,ZodISODuration:()=>Og,ZodISODateTime:()=>Ag,ZodISODate:()=>Tg,ZodIPv6:()=>zv,ZodIPv4:()=>Av,ZodGUID:()=>av,ZodFunction:()=>Nb,ZodFirstPartyTypeKind:()=>Xb,ZodFile:()=>ab,ZodError:()=>Ng,ZodEnum:()=>eb,ZodEmoji:()=>mv,ZodEmail:()=>nv,ZodE164:()=>Vv,ZodDiscriminatedUnion:()=>Uy,ZodDefault:()=>fb,ZodDate:()=>$y,ZodCustomStringFormat:()=>Hv,ZodCustom:()=>Ub,ZodCodec:()=>Eb,ZodCatch:()=>kb,ZodCUID2:()=>xv,ZodCUID:()=>bv,ZodCIDRv6:()=>Fv,ZodCIDRv4:()=>Ov,ZodBoolean:()=>oy,ZodBigIntFormat:()=>cy,ZodBigInt:()=>ly,ZodBase64URL:()=>Lv,ZodBase64:()=>Rv,ZodArray:()=>Ay,ZodAny:()=>by,TimePrecision:()=>Wd,NEVER:()=>co,$output:()=>yd,$input:()=>bd,$brand:()=>ho});var uo={};so(uo,{version:()=>Uu,util:()=>yo,treeifyError:()=>Ds,toJSONSchema:()=>wg,toDotPath:()=>zs,safeParseAsync:()=>Zs,safeParse:()=>Us,safeEncodeAsync:()=>rl,safeEncode:()=>Ys,safeDecodeAsync:()=>il,safeDecode:()=>el,registry:()=>xd,regexes:()=>al,process:()=>Dm,prettifyError:()=>Ms,parseAsync:()=>Ns,parse:()=>js,meta:()=>Em,locales:()=>$p,isValidJWT:()=>mc,isValidBase64URL:()=>hc,isValidBase64:()=>cc,initializeContext:()=>Tm,globalRegistry:()=>kd,globalConfig:()=>go,formatError:()=>Ts,flattenError:()=>Cs,finalize:()=>Mm,extractDefs:()=>zm,encodeAsync:()=>Ws,encode:()=>Bs,describe:()=>$m,decodeAsync:()=>Ks,decode:()=>qs,createToJSONSchemaMethod:()=>jm,createStandardJSONSchemaMethod:()=>Fm,config:()=>vo,clone:()=>Yo,_xor:()=>em,_xid:()=>Fd,_void:()=>bf,_uuidv7:()=>Cd,_uuidv6:()=>Ad,_uuidv4:()=>Ed,_uuid:()=>$d,_url:()=>Td,_uppercase:()=>Uf,_unknown:()=>vf,_union:()=>Qf,_undefined:()=>ff,_ulid:()=>jd,_uint64:()=>hf,_uint32:()=>of,_tuple:()=>nm,_trim:()=>Wf,_transform:()=>pm,_toUpperCase:()=>Kf,_toLowerCase:()=>Jf,_templateLiteral:()=>_m,_symbol:()=>df,_superRefine:()=>Im,_success:()=>gm,_stringbool:()=>Am,_stringFormat:()=>Cm,_string:()=>wd,_startsWith:()=>Zf,_slugify:()=>Xf,_size:()=>Mf,_set:()=>om,_safeParseAsync:()=>Ls,_safeParse:()=>Rs,_safeEncodeAsync:()=>tl,_safeEncode:()=>Xs,_safeDecodeAsync:()=>nl,_safeDecode:()=>Qs,_regex:()=>Nf,_refine:()=>Sm,_record:()=>im,_readonly:()=>bm,_property:()=>Bf,_promise:()=>km,_positive:()=>$f,_pipe:()=>ym,_parseAsync:()=>Fs,_parse:()=>Os,_overwrite:()=>qf,_optional:()=>hm,_number:()=>Qd,_nullable:()=>dm,_null:()=>mf,_normalize:()=>Hf,_nonpositive:()=>Af,_nonoptional:()=>mm,_nonnegative:()=>Cf,_never:()=>yf,_negative:()=>Ef,_nativeEnum:()=>lm,_nanoid:()=>zd,_nan:()=>kf,_multipleOf:()=>Tf,_minSize:()=>zf,_minLength:()=>jf,_min:()=>Pf,_mime:()=>Gf,_maxSize:()=>Df,_maxLength:()=>Of,_max:()=>Sf,_map:()=>am,_mac:()=>Ld,_lte:()=>Sf,_lt:()=>wf,_lowercase:()=>Rf,_literal:()=>um,_length:()=>Ff,_lazy:()=>xm,_ksuid:()=>Nd,_jwt:()=>Hd,_isoTime:()=>Xd,_isoDuration:()=>Yd,_isoDateTime:()=>Jd,_isoDate:()=>Kd,_ipv6:()=>Ud,_ipv4:()=>Rd,_intersection:()=>rm,_int64:()=>pf,_int32:()=>af,_int:()=>tf,_includes:()=>Lf,_guid:()=>Pd,_gte:()=>Pf,_gt:()=>If,_float64:()=>nf,_float32:()=>rf,_file:()=>cm,_enum:()=>sm,_endsWith:()=>Vf,_encodeAsync:()=>Hs,_encode:()=>Vs,_emoji:()=>Dd,_email:()=>Id,_e164:()=>qd,_discriminatedUnion:()=>tm,_default:()=>fm,_decodeAsync:()=>Js,_decode:()=>Gs,_date:()=>_f,_custom:()=>wm,_cuid2:()=>Od,_cuid:()=>Md,_coercedString:()=>Sd,_coercedNumber:()=>ef,_coercedDate:()=>xf,_coercedBoolean:()=>lf,_coercedBigint:()=>cf,_cidrv6:()=>Vd,_cidrv4:()=>Zd,_check:()=>Pm,_catch:()=>vm,_boolean:()=>sf,_bigint:()=>uf,_base64url:()=>Gd,_base64:()=>Bd,_array:()=>Yf,_any:()=>gf,TimePrecision:()=>Wd,NEVER:()=>co,JSONSchemaGenerator:()=>Sg,JSONSchema:()=>Ig,Doc:()=>Ru,$output:()=>yd,$input:()=>bd,$constructor:()=>po,$brand:()=>ho,$ZodXor:()=>Lc,$ZodXID:()=>Qu,$ZodVoid:()=>Ac,$ZodUnknown:()=>$c,$ZodUnion:()=>Rc,$ZodUndefined:()=>Sc,$ZodUUID:()=>Gu,$ZodURL:()=>Hu,$ZodULID:()=>Yu,$ZodType:()=>Lu,$ZodTuple:()=>qc,$ZodTransform:()=>rp,$ZodTemplateLiteral:()=>xp,$ZodSymbol:()=>wc,$ZodSuccess:()=>pp,$ZodStringFormat:()=>Vu,$ZodString:()=>Zu,$ZodSet:()=>Xc,$ZodRegistry:()=>_d,$ZodRecord:()=>Wc,$ZodRealError:()=>As,$ZodReadonly:()=>bp,$ZodPromise:()=>wp,$ZodPrefault:()=>lp,$ZodPipe:()=>fp,$ZodOptional:()=>ip,$ZodObjectJIT:()=>Fc,$ZodObject:()=>jc,$ZodNumberFormat:()=>bc,$ZodNumber:()=>yc,$ZodNullable:()=>ap,$ZodNull:()=>Ic,$ZodNonOptional:()=>up,$ZodNever:()=>Ec,$ZodNanoID:()=>Ju,$ZodNaN:()=>dp,$ZodMap:()=>Jc,$ZodMAC:()=>sc,$ZodLiteral:()=>ep,$ZodLazy:()=>Sp,$ZodKSUID:()=>ec,$ZodJWT:()=>gc,$ZodIntersection:()=>Vc,$ZodISOTime:()=>nc,$ZodISODuration:()=>ic,$ZodISODateTime:()=>tc,$ZodISODate:()=>rc,$ZodIPv6:()=>oc,$ZodIPv4:()=>ac,$ZodGUID:()=>Bu,$ZodFunction:()=>kp,$ZodFile:()=>tp,$ZodError:()=>Es,$ZodEnum:()=>Qc,$ZodEncodeError:()=>mo,$ZodEmoji:()=>Wu,$ZodEmail:()=>qu,$ZodE164:()=>fc,$ZodDiscriminatedUnion:()=>Zc,$ZodDefault:()=>op,$ZodDate:()=>Cc,$ZodCustomStringFormat:()=>vc,$ZodCustom:()=>Ip,$ZodCodec:()=>gp,$ZodCheckUpperCase:()=>Tu,$ZodCheckStringFormat:()=>Eu,$ZodCheckStartsWith:()=>zu,$ZodCheckSizeEquals:()=>Su,$ZodCheckRegex:()=>Au,$ZodCheckProperty:()=>ju,$ZodCheckOverwrite:()=>Nu,$ZodCheckNumberFormat:()=>_u,$ZodCheckMultipleOf:()=>bu,$ZodCheckMinSize:()=>wu,$ZodCheckMinLength:()=>Pu,$ZodCheckMimeType:()=>Fu,$ZodCheckMaxSize:()=>ku,$ZodCheckMaxLength:()=>Iu,$ZodCheckLowerCase:()=>Cu,$ZodCheckLessThan:()=>vu,$ZodCheckLengthEquals:()=>$u,$ZodCheckIncludes:()=>Du,$ZodCheckGreaterThan:()=>yu,$ZodCheckEndsWith:()=>Mu,$ZodCheckBigIntFormat:()=>xu,$ZodCheck:()=>mu,$ZodCatch:()=>hp,$ZodCUID2:()=>Xu,$ZodCUID:()=>Ku,$ZodCIDRv6:()=>uc,$ZodCIDRv4:()=>lc,$ZodBoolean:()=>_c,$ZodBigIntFormat:()=>kc,$ZodBigInt:()=>xc,$ZodBase64URL:()=>dc,$ZodBase64:()=>pc,$ZodAsyncError:()=>fo,$ZodArray:()=>Dc,$ZodAny:()=>Pc});var co=Object.freeze({status:"aborted"});function po(e,t,r){function n(r,n){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:n,constr:o,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,n);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in r||(r[t]=i[t].bind(r))}}let i=r?.Parent??Object;class a extends i{}function o(e){var t;let i=r?.Parent?new a:this;n(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!(r?.Parent&&t instanceof r.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var ho=Symbol("zod_brand");class fo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class mo extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}var go={};function vo(e){return e&&Object.assign(go,e),go}var yo={};function bo(e){return e}function _o(e){return e}function xo(e){}function ko(e){throw Error("Unexpected value in exhaustive check")}function wo(e){}function So(e){let t=Object.values(e).filter((e=>"number"==typeof e));return Object.entries(e).filter((([e,r])=>-1===t.indexOf(+e))).map((([e,t])=>t))}function Io(e,t="|"){return e.map((e=>ts(e))).join(t)}function Po(e,t){return"bigint"==typeof t?t.toString():t}function $o(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Eo(e){return null==e}function Ao(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Co(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),i=(n.split(".")[1]||"").length;if(0===i&&/\d?e-\d?/.test(n)){let e=n.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=r>i?r:i;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}so(yo,{unwrapMessage:()=>fs,uint8ArrayToHex:()=>Is,uint8ArrayToBase64url:()=>ws,uint8ArrayToBase64:()=>xs,stringifyPrimitive:()=>ts,slugify:()=>Lo,shallowClone:()=>qo,safeExtend:()=>ls,required:()=>ps,randomString:()=>Ro,propertyKeyTypes:()=>Jo,promiseAllObject:()=>No,primitiveTypes:()=>Ko,prefixIssues:()=>ds,pick:()=>as,partial:()=>cs,optionalKeys:()=>rs,omit:()=>os,objectClone:()=>zo,numKeys:()=>Ho,nullish:()=>Eo,normalizeParams:()=>Qo,mergeDefs:()=>Oo,merge:()=>us,jsonStringifyReplacer:()=>Po,joinValues:()=>Io,issue:()=>ys,isPlainObject:()=>Go,isObject:()=>Vo,hexToUint8Array:()=>Ss,getSizableOrigin:()=>gs,getParsedType:()=>Wo,getLengthableOrigin:()=>vs,getEnumValues:()=>So,getElementAtPath:()=>Fo,floatSafeRemainder:()=>Co,finalizeIssue:()=>ms,extend:()=>ss,escapeRegex:()=>Xo,esc:()=>Uo,defineLazy:()=>Do,createTransparentProxy:()=>es,cloneDef:()=>jo,clone:()=>Yo,cleanRegex:()=>Ao,cleanEnum:()=>bs,captureStackTrace:()=>Zo,cached:()=>$o,base64urlToUint8Array:()=>ks,base64ToUint8Array:()=>_s,assignProp:()=>Mo,assertNotEqual:()=>_o,assertNever:()=>ko,assertIs:()=>xo,assertEqual:()=>bo,assert:()=>wo,allowsEval:()=>Bo,aborted:()=>hs,NUMBER_FORMAT_RANGES:()=>ns,Class:()=>Ps,BIGINT_FORMAT_RANGES:()=>is});var To=Symbol("evaluating");function Do(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==To)return void 0===n&&(n=To,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function zo(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Mo(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Oo(...e){let t={};for(let r of e){let e=Object.getOwnPropertyDescriptors(r);Object.assign(t,e)}return Object.defineProperties({},t)}function jo(e){return Oo(e._zod.def)}function Fo(e,t){return t?t.reduce(((e,t)=>e?.[t]),e):e}function No(e){let t=Object.keys(e),r=t.map((t=>e[t]));return Promise.all(r).then((e=>{let r={};for(let n=0;n<t.length;n++)r[t[n]]=e[n];return r}))}function Ro(e=10){let t="";for(let r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyz"[Math.floor(26*Math.random())];return t}function Uo(e){return JSON.stringify(e)}function Lo(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Zo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Vo(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}var Bo=$o((()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}}));function Go(e){if(!1===Vo(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!(!1===Vo(r)||!1===Object.prototype.hasOwnProperty.call(r,"isPrototypeOf"))}function qo(e){return Go(e)?{...e}:Array.isArray(e)?[...e]:e}function Ho(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var Wo=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":null===e?"null":e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw Error(`Unknown data type: ${t}`)}},Jo=new Set(["string","number","symbol"]),Ko=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Xo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yo(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function Qo(e){let t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function es(e){let t;return new Proxy({},{get:(r,n,i)=>(t??(t=e()),Reflect.get(t,n,i)),set:(r,n,i,a)=>(t??(t=e()),Reflect.set(t,n,i,a)),has:(r,n)=>(t??(t=e()),Reflect.has(t,n)),deleteProperty:(r,n)=>(t??(t=e()),Reflect.deleteProperty(t,n)),ownKeys:r=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(r,n)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)),defineProperty:(r,n,i)=>(t??(t=e()),Reflect.defineProperty(t,n,i))})}function ts(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function rs(e){return Object.keys(e).filter((t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout))}var ns={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},is={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function as(e,t){let r=e._zod.def;return Yo(e,Oo(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=r.shape[n])}return Mo(this,"shape",e),e},checks:[]}))}function os(e,t){let r=e._zod.def,n=Oo(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return Mo(this,"shape",n),n},checks:[]});return Yo(e,n)}function ss(e,t){if(!Go(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let n=Oo(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return Mo(this,"shape",r),r},checks:[]});return Yo(e,n)}function ls(e,t){if(!Go(t))throw Error("Invalid input to safeExtend: expected a plain object");let r={...e._zod.def,get shape(){let r={...e._zod.def.shape,...t};return Mo(this,"shape",r),r},checks:e._zod.def.checks};return Yo(e,r)}function us(e,t){let r=Oo(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return Mo(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Yo(e,r)}function cs(e,t,r){let n=Oo(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return Mo(this,"shape",i),i},checks:[]});return Yo(t,n)}function ps(e,t,r){let n=Oo(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return Mo(this,"shape",i),i},checks:[]});return Yo(t,n)}function hs(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(!0!==e.issues[r]?.continue)return!0;return!1}function ds(e,t){return t.map((t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t}))}function fs(e){return"string"==typeof e?e:e?.message}function ms(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let i=fs(e.inst?._zod.def?.error?.(e))??fs(t?.error?.(e))??fs(r.customError?.(e))??fs(r.localeError?.(e))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,!t?.reportInput&&delete n.input,n}function gs(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function vs(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ys(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}function bs(e){return Object.entries(e).filter((([e,t])=>Number.isNaN(Number.parseInt(e,10)))).map((e=>e[1]))}function _s(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function xs(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function ks(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");return _s(t+"=".repeat((4-t.length%4)%4))}function ws(e){return xs(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Ss(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e/2]=Number.parseInt(t.slice(e,e+2),16);return r}function Is(e){return Array.from(e).map((e=>e.toString(16).padStart(2,"0"))).join("")}class Ps{constructor(...e){}}var $s=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Po,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Es=po("$ZodError",$s),As=po("$ZodError",$s,{Parent:Error});function Cs(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function Ts(e,t=e=>e.message){let r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map((e=>n({issues:e})));else if("invalid_key"===i.code)n({issues:i.issues});else if("invalid_element"===i.code)n({issues:i.issues});else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n!==i.path.length-1?e[r]=e[r]||{_errors:[]}:(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))),e=e[r],n++}}};return n(e),r}function Ds(e,t=e=>e.message){let r={errors:[]},n=(e,i=[])=>{var a,o;for(let s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map((e=>n({issues:e},s.path)));else if("invalid_key"===s.code)n({issues:s.issues},s.path);else if("invalid_element"===s.code)n({issues:s.issues},s.path);else{let e=[...i,...s.path];if(0===e.length){r.errors.push(t(s));continue}let n=r,l=0;for(;l<e.length;){let r=e[l],i=l===e.length-1;"string"==typeof r?(n.properties??(n.properties={}),(a=n.properties)[r]??(a[r]={errors:[]}),n=n.properties[r]):(n.items??(n.items=[]),(o=n.items)[r]??(o[r]={errors:[]}),n=n.items[r]),i&&n.errors.push(t(s)),l++}}};return n(e),r}function zs(e){let t=[],r=e.map((e=>"object"==typeof e?e.key:e));for(let e of r)"number"==typeof e?t.push(`[${e}]`):"symbol"==typeof e?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push("."),t.push(e));return t.join("")}function Ms(e){let t=[],r=[...e.issues].sort(((e,t)=>(e.path??[]).length-(t.path??[]).length));for(let e of r)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${zs(e.path)}`);return t.join("\n")}var Os=e=>(t,r,n,i)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new fo;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map((e=>ms(e,a,vo()))));throw Zo(t,i?.callee),t}return o.value},js=Os(As),Fs=e=>async(t,r,n,i)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map((e=>ms(e,a,vo()))));throw Zo(t,i?.callee),t}return o.value},Ns=Fs(As),Rs=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new fo;return a.issues.length?{success:!1,error:new(e??Es)(a.issues.map((e=>ms(e,i,vo()))))}:{success:!0,data:a.value}},Us=Rs(As),Ls=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map((e=>ms(e,i,vo()))))}:{success:!0,data:a.value}},Zs=Ls(As),Vs=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Os(e)(t,r,i)},Bs=Vs(As),Gs=e=>(t,r,n)=>Os(e)(t,r,n),qs=Gs(As),Hs=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Fs(e)(t,r,i)},Ws=Hs(As),Js=e=>async(t,r,n)=>Fs(e)(t,r,n),Ks=Js(As),Xs=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Rs(e)(t,r,i)},Ys=Xs(As),Qs=e=>(t,r,n)=>Rs(e)(t,r,n),el=Qs(As),tl=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ls(e)(t,r,i)},rl=tl(As),nl=e=>async(t,r,n)=>Ls(e)(t,r,n),il=nl(As),al={};so(al,{xid:()=>ul,uuid7:()=>yl,uuid6:()=>vl,uuid4:()=>gl,uuid:()=>ml,uppercase:()=>Kl,unicodeEmail:()=>kl,undefined:()=>Wl,ulid:()=>ll,time:()=>Ul,string:()=>Zl,sha512_hex:()=>hu,sha512_base64url:()=>fu,sha512_base64:()=>du,sha384_hex:()=>uu,sha384_base64url:()=>pu,sha384_base64:()=>cu,sha256_hex:()=>ou,sha256_base64url:()=>lu,sha256_base64:()=>su,sha1_hex:()=>nu,sha1_base64url:()=>au,sha1_base64:()=>iu,rfc5322Email:()=>xl,number:()=>Gl,null:()=>Hl,nanoid:()=>pl,md5_hex:()=>eu,md5_base64url:()=>ru,md5_base64:()=>tu,mac:()=>Al,lowercase:()=>Jl,ksuid:()=>cl,ipv6:()=>El,ipv4:()=>$l,integer:()=>Bl,idnEmail:()=>wl,html5Email:()=>_l,hostname:()=>Ml,hex:()=>Xl,guid:()=>fl,extendedDuration:()=>dl,emoji:()=>Pl,email:()=>bl,e164:()=>jl,duration:()=>hl,domain:()=>Ol,datetime:()=>Ll,date:()=>Nl,cuid2:()=>sl,cuid:()=>ol,cidrv6:()=>Tl,cidrv4:()=>Cl,browserEmail:()=>Sl,boolean:()=>ql,bigint:()=>Vl,base64url:()=>zl,base64:()=>Dl});var ol=/^[cC][^\s-]{8,}$/,sl=/^[0-9a-z]+$/,ll=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ul=/^[0-9a-vA-V]{20}$/,cl=/^[A-Za-z0-9]{27}$/,pl=/^[a-zA-Z0-9_-]{21}$/,hl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,dl=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,fl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ml=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,gl=ml(4),vl=ml(6),yl=ml(7),bl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_l=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xl=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,kl=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,wl=kl,Sl=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Il="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Pl(){return new RegExp(Il,"u")}var $l=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,El=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Al=e=>{let t=Xo(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Cl=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Tl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Dl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zl=/^[A-Za-z0-9_-]*$/,Ml=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Ol=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,jl=/^\+(?:[0-9]){6,14}[0-9]$/,Fl="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Nl=new RegExp(`^${Fl}$`);function Rl(e){return"number"==typeof e.precision?-1===e.precision?"(?:[01]\\d|2[0-3]):[0-5]\\d":0===e.precision?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function Ul(e){return new RegExp(`^${Rl(e)}$`)}function Ll(e){let t=Rl({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Fl}T(?:${n})$`)}var Zl=e=>new RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`),Vl=/^-?\d+n?$/,Bl=/^-?\d+$/,Gl=/^-?\d+(?:\.\d+)?/,ql=/^(?:true|false)$/i,Hl=/^null$/i,Wl=/^undefined$/i,Jl=/^[^A-Z]*$/,Kl=/^[^a-z]*$/,Xl=/^[0-9a-fA-F]*$/;function Yl(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ql(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var eu=/^[0-9a-fA-F]{32}$/,tu=Yl(22,"=="),ru=Ql(22),nu=/^[0-9a-fA-F]{40}$/,iu=Yl(27,"="),au=Ql(27),ou=/^[0-9a-fA-F]{64}$/,su=Yl(43,"="),lu=Ql(43),uu=/^[0-9a-fA-F]{96}$/,cu=Yl(64,""),pu=Ql(64),hu=/^[0-9a-fA-F]{128}$/,du=Yl(86,"=="),fu=Ql(86),mu=po("$ZodCheck",((e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])})),gu={number:"number",bigint:"bigint",object:"date"},vu=po("$ZodCheckLessThan",((e,t)=>{mu.init(e,t);let r=gu[typeof t.value];e._zod.onattach.push((e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)})),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}})),yu=po("$ZodCheckGreaterThan",((e,t)=>{mu.init(e,t);let r=gu[typeof t.value];e._zod.onattach.push((e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)})),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}})),bu=po("$ZodCheckMultipleOf",((e,t)=>{mu.init(e,t),e._zod.onattach.push((e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)})),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===Co(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}})),_u=po("$ZodCheckNumberFormat",((e,t)=>{mu.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,a]=ns[t.format];e._zod.onattach.push((e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=a,r&&(n.pattern=Bl)})),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s))return void o.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}))}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inst:e})}})),xu=po("$ZodCheckBigIntFormat",((e,t)=>{mu.init(e,t);let[r,n]=is[t.format];e._zod.onattach.push((e=>{let i=e._zod.bag;i.format=t.format,i.minimum=r,i.maximum=n})),e._zod.check=i=>{let a=i.value;a<r&&i.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>n&&i.issues.push({origin:"bigint",input:a,code:"too_big",maximum:n,inst:e})}})),ku=po("$ZodCheckMaxSize",((e,t)=>{var r;mu.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!Eo(t)&&void 0!==t.size}),e._zod.onattach.push((e=>{let r=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(e._zod.bag.maximum=t.maximum)})),e._zod.check=r=>{let n=r.value;n.size<=t.maximum||r.issues.push({origin:gs(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}})),wu=po("$ZodCheckMinSize",((e,t)=>{var r;mu.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!Eo(t)&&void 0!==t.size}),e._zod.onattach.push((e=>{let r=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(e._zod.bag.minimum=t.minimum)})),e._zod.check=r=>{let n=r.value;n.size>=t.minimum||r.issues.push({origin:gs(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}})),Su=po("$ZodCheckSizeEquals",((e,t)=>{var r;mu.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!Eo(t)&&void 0!==t.size}),e._zod.onattach.push((e=>{let r=e._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size})),e._zod.check=r=>{let n=r.value,i=n.size;if(i===t.size)return;let a=i>t.size;r.issues.push({origin:gs(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}})),Iu=po("$ZodCheckMaxLength",((e,t)=>{var r;mu.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!Eo(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{let r=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(e._zod.bag.maximum=t.maximum)})),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=vs(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}})),Pu=po("$ZodCheckMinLength",((e,t)=>{var r;mu.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!Eo(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{let r=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(e._zod.bag.minimum=t.minimum)})),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=vs(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}})),$u=po("$ZodCheckLengthEquals",((e,t)=>{var r;mu.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!Eo(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length})),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let a=vs(n),o=i>t.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}})),Eu=po("$ZodCheckStringFormat",((e,t)=>{var r,n;mu.init(e,t),e._zod.onattach.push((e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))})),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})})),Au=po("$ZodCheckRegex",((e,t)=>{Eu.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}})),Cu=po("$ZodCheckLowerCase",((e,t)=>{t.pattern??(t.pattern=Jl),Eu.init(e,t)})),Tu=po("$ZodCheckUpperCase",((e,t)=>{t.pattern??(t.pattern=Kl),Eu.init(e,t)})),Du=po("$ZodCheckIncludes",((e,t)=>{mu.init(e,t);let r=Xo(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push((e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)})),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}})),zu=po("$ZodCheckStartsWith",((e,t)=>{mu.init(e,t);let r=new RegExp(`^${Xo(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push((e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)})),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}})),Mu=po("$ZodCheckEndsWith",((e,t)=>{mu.init(e,t);let r=new RegExp(`.*${Xo(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push((e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)})),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}));function Ou(e,t,r){e.issues.length&&t.issues.push(...ds(r,e.issues))}var ju=po("$ZodCheckProperty",((e,t)=>{mu.init(e,t),e._zod.check=e=>{let r=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then((r=>Ou(r,e,t.property)));Ou(r,e,t.property)}})),Fu=po("$ZodCheckMimeType",((e,t)=>{mu.init(e,t);let r=new Set(t.mime);e._zod.onattach.push((e=>{e._zod.bag.mime=t.mime})),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}})),Nu=po("$ZodCheckOverwrite",((e,t)=>{mu.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}));class Ru{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});let t=e.split("\n").filter((e=>e)),r=Math.min(...t.map((e=>e.length-e.trimStart().length))),n=t.map((e=>e.slice(r))).map((e=>" ".repeat(2*this.indent)+e));for(let e of n)this.content.push(e)}compile(){let e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map((e=>` ${e}`))].join("\n"))}}var Uu={major:4,minor:2,patch:1},Lu=po("$ZodType",((e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Uu;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let t of n)for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push((()=>{e._zod.run=e._zod.parse}));else{let t=(e,t,r)=>{let n,i=hs(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&!1===r?.async)throw new fo;if(n||o instanceof Promise)n=(n??Promise.resolve()).then((async()=>{await o,e.issues.length!==t&&(i||(i=hs(e,t)))}));else{if(e.issues.length===t)continue;i||(i=hs(e,t))}}return n?n.then((()=>e)):e},r=(r,i,a)=>{if(hs(r))return r.aborted=!0,r;let o=t(i,n,a);if(o instanceof Promise){if(!1===a.async)throw new fo;return o.then((t=>e._zod.parse(t,a)))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if("backward"===a.direction){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then((e=>r(e,i,a))):r(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(!1===a.async)throw new fo;return o.then((e=>t(e,n,a)))}return t(o,n,a)}}e["~standard"]={validate:t=>{try{let r=Us(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return Zs(e,t).then((e=>e.success?{value:e.data}:{issues:e.error?.issues}))}},vendor:"zod",version:1}})),Zu=po("$ZodString",((e,t)=>{Lu.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Zl(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}})),Vu=po("$ZodStringFormat",((e,t)=>{Eu.init(e,t),Zu.init(e,t)})),Bu=po("$ZodGUID",((e,t)=>{t.pattern??(t.pattern=fl),Vu.init(e,t)})),Gu=po("$ZodUUID",((e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ml(e))}else t.pattern??(t.pattern=ml());Vu.init(e,t)})),qu=po("$ZodEmail",((e,t)=>{t.pattern??(t.pattern=bl),Vu.init(e,t)})),Hu=po("$ZodURL",((e,t)=>{Vu.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),a=new n(i);return t.hostname&&(t.hostname.lastIndex=0,!t.hostname.test(a.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,!t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),void(t.normalize?r.value=a.href:r.value=i)}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}})),Wu=po("$ZodEmoji",((e,t)=>{t.pattern??(t.pattern=Pl()),Vu.init(e,t)})),Ju=po("$ZodNanoID",((e,t)=>{t.pattern??(t.pattern=pl),Vu.init(e,t)})),Ku=po("$ZodCUID",((e,t)=>{t.pattern??(t.pattern=ol),Vu.init(e,t)})),Xu=po("$ZodCUID2",((e,t)=>{t.pattern??(t.pattern=sl),Vu.init(e,t)})),Yu=po("$ZodULID",((e,t)=>{t.pattern??(t.pattern=ll),Vu.init(e,t)})),Qu=po("$ZodXID",((e,t)=>{t.pattern??(t.pattern=ul),Vu.init(e,t)})),ec=po("$ZodKSUID",((e,t)=>{t.pattern??(t.pattern=cl),Vu.init(e,t)})),tc=po("$ZodISODateTime",((e,t)=>{t.pattern??(t.pattern=Ll(t)),Vu.init(e,t)})),rc=po("$ZodISODate",((e,t)=>{t.pattern??(t.pattern=Nl),Vu.init(e,t)})),nc=po("$ZodISOTime",((e,t)=>{t.pattern??(t.pattern=Ul(t)),Vu.init(e,t)})),ic=po("$ZodISODuration",((e,t)=>{t.pattern??(t.pattern=hl),Vu.init(e,t)})),ac=po("$ZodIPv4",((e,t)=>{t.pattern??(t.pattern=$l),Vu.init(e,t),e._zod.bag.format="ipv4"})),oc=po("$ZodIPv6",((e,t)=>{t.pattern??(t.pattern=El),Vu.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new n(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}})),sc=po("$ZodMAC",((e,t)=>{t.pattern??(t.pattern=Al(t.delimiter)),Vu.init(e,t),e._zod.bag.format="mac"})),lc=po("$ZodCIDRv4",((e,t)=>{t.pattern??(t.pattern=Cl),Vu.init(e,t)})),uc=po("$ZodCIDRv6",((e,t)=>{t.pattern??(t.pattern=Tl),Vu.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(2!==i.length)throw Error();let[e,t]=i;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new n(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}}));function cc(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var pc=po("$ZodBase64",((e,t)=>{t.pattern??(t.pattern=Dl),Vu.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{cc(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}));function hc(e){if(!zl.test(e))return!1;let t=e.replace(/[-_]/g,(e=>"-"===e?"+":"/"));return cc(t.padEnd(4*Math.ceil(t.length/4),"="))}var dc=po("$ZodBase64URL",((e,t)=>{t.pattern??(t.pattern=zl),Vu.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{hc(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}})),fc=po("$ZodE164",((e,t)=>{t.pattern??(t.pattern=jl),Vu.init(e,t)}));function mc(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));return!("typ"in i&&"JWT"!==i?.typ||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var gc=po("$ZodJWT",((e,t)=>{Vu.init(e,t),e._zod.check=r=>{mc(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}})),vc=po("$ZodCustomStringFormat",((e,t)=>{Vu.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}})),yc=po("$ZodNumber",((e,t)=>{Lu.init(e,t),e._zod.pattern=e._zod.bag.pattern??Gl,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}})),bc=po("$ZodNumberFormat",((e,t)=>{_u.init(e,t),yc.init(e,t)})),_c=po("$ZodBoolean",((e,t)=>{Lu.init(e,t),e._zod.pattern=ql,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}})),xc=po("$ZodBigInt",((e,t)=>{Lu.init(e,t),e._zod.pattern=Vl,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return"bigint"==typeof r.value||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}})),kc=po("$ZodBigIntFormat",((e,t)=>{xu.init(e,t),xc.init(e,t)})),wc=po("$ZodSymbol",((e,t)=>{Lu.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return"symbol"==typeof n||t.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),t}})),Sc=po("$ZodUndefined",((e,t)=>{Lu.init(e,t),e._zod.pattern=Wl,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{let n=t.value;return typeof n>"u"||t.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),t}})),Ic=po("$ZodNull",((e,t)=>{Lu.init(e,t),e._zod.pattern=Hl,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}})),Pc=po("$ZodAny",((e,t)=>{Lu.init(e,t),e._zod.parse=e=>e})),$c=po("$ZodUnknown",((e,t)=>{Lu.init(e,t),e._zod.parse=e=>e})),Ec=po("$ZodNever",((e,t)=>{Lu.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)})),Ac=po("$ZodVoid",((e,t)=>{Lu.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return typeof n>"u"||t.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),t}})),Cc=po("$ZodDate",((e,t)=>{Lu.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...a?{received:"Invalid Date"}:{},inst:e}),r}}));function Tc(e,t,r){e.issues.length&&t.issues.push(...ds(r,e.issues)),t.value[r]=e.value}var Dc=po("$ZodArray",((e,t)=>{Lu.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},n);s instanceof Promise?a.push(s.then((t=>Tc(t,r,e)))):Tc(s,r,e)}return a.length?Promise.all(a).then((()=>r)):r}}));function zc(e,t,r,n){e.issues.length&&t.issues.push(...ds(r,e.issues)),void 0===e.value?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function Mc(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=rs(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Oc(e,t,r,n,i,a){let o=[],s=i.keySet,l=i.catchall._zod,u=l.def.type;for(let i in t){if(s.has(i))continue;if("never"===u){o.push(i);continue}let a=l.run({value:t[i],issues:[]},n);a instanceof Promise?e.push(a.then((e=>zc(e,r,i,t)))):zc(a,r,i,t)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then((()=>r)):r}var jc=po("$ZodObject",((e,t)=>{if(Lu.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let r=$o((()=>Mc(t)));Do(e._zod,"propValues",(()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values){r[t]??(r[t]=new Set);for(let e of n.values)r[t].add(e)}}return r}));let n,i=Vo,a=t.catchall;e._zod.parse=(t,o)=>{n??(n=r.value);let s=t.value;if(!i(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let l=[],u=n.shape;for(let e of n.keys){let r=u[e]._zod.run({value:s[e],issues:[]},o);r instanceof Promise?l.push(r.then((r=>zc(r,t,e,s)))):zc(r,t,e,s)}return a?Oc(l,s,t,o,r.value,e):l.length?Promise.all(l).then((()=>t)):t}})),Fc=po("$ZodObjectJIT",((e,t)=>{jc.init(e,t);let r,n,i=e._zod.parse,a=$o((()=>Mc(t))),o=Vo,s=!go.jitless,l=s&&Bo.value,u=t.catchall;e._zod.parse=(c,p)=>{n??(n=a.value);let h=c.value;return o(h)?s&&l&&!1===p?.async&&!0!==p.jitless?(r||(r=(e=>{let t=new Ru(["shape","payload","ctx"]),r=a.value,n=e=>{let t=Uo(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),o=0;for(let e of r.keys)i[e]="key_"+o++;t.write("const newResult = {};");for(let e of r.keys){let r=i[e],a=Uo(e);t.write(`const ${r} = ${n(e)};`),t.write(`\n if (${r}.issues.length) {\n payload.issues = payload.issues.concat(${r}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${a}, ...iss.path] : [${a}]\n })));\n }\n \n \n if (${r}.value === undefined) {\n if (${a} in input) {\n newResult[${a}] = undefined;\n }\n } else {\n newResult[${a}] = ${r}.value;\n }\n \n `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),c=r(c,p),u?Oc([],h,c,p,n,e):c):i(c,p):(c.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),c)}}));function Nc(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let i=e.filter((e=>!hs(e)));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map((e=>e.issues.map((e=>ms(e,n,vo())))))}),t)}var Rc=po("$ZodUnion",((e,t)=>{Lu.init(e,t),Do(e._zod,"optin",(()=>t.options.some((e=>"optional"===e._zod.optin))?"optional":void 0)),Do(e._zod,"optout",(()=>t.options.some((e=>"optional"===e._zod.optout))?"optional":void 0)),Do(e._zod,"values",(()=>{if(t.options.every((e=>e._zod.values)))return new Set(t.options.flatMap((e=>Array.from(e._zod.values))))})),Do(e._zod,"pattern",(()=>{if(t.options.every((e=>e._zod.pattern))){let e=t.options.map((e=>e._zod.pattern));return new RegExp(`^(${e.map((e=>Ao(e.source))).join("|")})$`)}}));let r=1===t.options.length,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(0===t.issues.length)return t;s.push(t)}}return o?Promise.all(s).then((t=>Nc(t,i,e,a))):Nc(s,i,e,a)}}));function Uc(e,t,r,n){let i=e.filter((e=>0===e.issues.length));return 1===i.length?(t.value=i[0].value,t):(0===i.length?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map((e=>e.issues.map((e=>ms(e,n,vo())))))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Lc=po("$ZodXor",((e,t)=>{Rc.init(e,t),t.inclusive=!1;let r=1===t.options.length,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);t instanceof Promise?(s.push(t),o=!0):s.push(t)}return o?Promise.all(s).then((t=>Uc(t,i,e,a))):Uc(s,i,e,a)}})),Zc=po("$ZodDiscriminatedUnion",((e,t)=>{t.inclusive=!1,Rc.init(e,t);let r=e._zod.parse;Do(e._zod,"propValues",(()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n)){e[t]||(e[t]=new Set);for(let n of r)e[t].add(n)}}return e}));let n=$o((()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r}));e._zod.parse=(i,a)=>{let o=i.value;if(!Vo(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;let s=n.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}})),Vc=po("$ZodIntersection",((e,t)=>{Lu.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),a=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then((([t,r])=>Gc(e,t,r))):Gc(e,i,a)}}));function Bc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Go(e)&&Go(t)){let r=Object.keys(t),n=Object.keys(e).filter((e=>-1!==r.indexOf(e))),i={...e,...t};for(let r of n){let n=Bc(e[r],t[r]);if(!n.valid)return{valid:!1,mergeErrorPath:[r,...n.mergeErrorPath]};i[r]=n.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let i=Bc(e[n],t[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Gc(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),hs(e))return e;let n=Bc(t.value,r.value);if(!n.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var qc=po("$ZodTuple",((e,t)=>{Lu.init(e,t);let r=t.items;e._zod.parse=(n,i)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let o=[],s=[...r].reverse().findIndex((e=>"optional"!==e._zod.optin)),l=-1===s?0:r.length-s;if(!t.rest){let t=a.length>r.length,i=a.length<l-1;if(t||i)return n.issues.push({...t?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:a,inst:e,origin:"array"}),n}let u=-1;for(let e of r){if(u++,u>=a.length&&u>=l)continue;let t=e._zod.run({value:a[u],issues:[]},i);t instanceof Promise?o.push(t.then((e=>Hc(e,n,u)))):Hc(t,n,u)}if(t.rest){let e=a.slice(r.length);for(let r of e){u++;let e=t.rest._zod.run({value:r,issues:[]},i);e instanceof Promise?o.push(e.then((e=>Hc(e,n,u)))):Hc(e,n,u)}}return o.length?Promise.all(o).then((()=>n)):n}}));function Hc(e,t,r){e.issues.length&&t.issues.push(...ds(r,e.issues)),t.value[r]=e.value}var Wc=po("$ZodRecord",((e,t)=>{Lu.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Go(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[],o=t.keyType._zod.values;if(o){r.value={};let s,l=new Set;for(let e of o)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){l.add("number"==typeof e?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},n);o instanceof Promise?a.push(o.then((t=>{t.issues.length&&r.issues.push(...ds(e,t.issues)),r.value[e]=t.value}))):(o.issues.length&&r.issues.push(...ds(e,o.issues)),r.value[e]=o.value)}for(let e in i)l.has(e)||(s=s??[],s.push(e));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else{r.value={};for(let o of Reflect.ownKeys(i)){if("__proto__"===o)continue;let s=t.keyType._zod.run({value:o,issues:[]},n);if(s instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(s.issues.length){"loose"===t.mode?r.value[o]=i[o]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map((e=>ms(e,n,vo()))),input:o,path:[o],inst:e});continue}let l=t.valueType._zod.run({value:i[o],issues:[]},n);l instanceof Promise?a.push(l.then((e=>{e.issues.length&&r.issues.push(...ds(o,e.issues)),r.value[s.value]=e.value}))):(l.issues.length&&r.issues.push(...ds(o,l.issues)),r.value[s.value]=l.value)}}return a.length?Promise.all(a).then((()=>r)):r}})),Jc=po("$ZodMap",((e,t)=>{Lu.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let a=[];r.value=new Map;for(let[o,s]of i){let l=t.keyType._zod.run({value:o,issues:[]},n),u=t.valueType._zod.run({value:s,issues:[]},n);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then((([t,a])=>{Kc(t,a,r,o,i,e,n)}))):Kc(l,u,r,o,i,e,n)}return a.length?Promise.all(a).then((()=>r)):r}}));function Kc(e,t,r,n,i,a,o){e.issues.length&&(Jo.has(typeof n)?r.issues.push(...ds(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:a,issues:e.issues.map((e=>ms(e,o,vo())))})),t.issues.length&&(Jo.has(typeof n)?r.issues.push(...ds(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:n,issues:t.issues.map((e=>ms(e,o,vo())))})),r.value.set(e.value,t.value)}var Xc=po("$ZodSet",((e,t)=>{Lu.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];r.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},n);i instanceof Promise?a.push(i.then((e=>Yc(e,r)))):Yc(i,r)}return a.length?Promise.all(a).then((()=>r)):r}}));function Yc(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Qc=po("$ZodEnum",((e,t)=>{Lu.init(e,t);let r=So(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter((e=>Jo.has(typeof e))).map((e=>"string"==typeof e?Xo(e):e.toString())).join("|")})$`),e._zod.parse=(t,i)=>{let a=t.value;return n.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}})),ep=po("$ZodLiteral",((e,t)=>{if(Lu.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map((e=>"string"==typeof e?Xo(e):e?Xo(e.toString()):String(e))).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}})),tp=po("$ZodFile",((e,t)=>{Lu.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return n instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),t}})),rp=po("$ZodTransform",((e,t)=>{Lu.init(e,t),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new mo(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then((e=>(r.value=e,r)));if(i instanceof Promise)throw new fo;return r.value=i,r}}));function np(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}var ip=po("$ZodOptional",((e,t)=>{Lu.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Do(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0)),Do(e._zod,"pattern",(()=>{let e=t.innerType._zod.pattern;return e?new RegExp(`^(${Ao(e.source)})?$`):void 0})),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then((t=>np(t,e.value))):np(n,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,r)}})),ap=po("$ZodNullable",((e,t)=>{Lu.init(e,t),Do(e._zod,"optin",(()=>t.innerType._zod.optin)),Do(e._zod,"optout",(()=>t.innerType._zod.optout)),Do(e._zod,"pattern",(()=>{let e=t.innerType._zod.pattern;return e?new RegExp(`^(${Ao(e.source)}|null)$`):void 0})),Do(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0)),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)})),op=po("$ZodDefault",((e,t)=>{Lu.init(e,t),e._zod.optin="optional",Do(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then((e=>sp(e,t))):sp(n,t)}}));function sp(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}var lp=po("$ZodPrefault",((e,t)=>{Lu.init(e,t),e._zod.optin="optional",Do(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))})),up=po("$ZodNonOptional",((e,t)=>{Lu.init(e,t),Do(e._zod,"values",(()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter((e=>void 0!==e))):void 0})),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then((t=>cp(t,e))):cp(i,e)}}));function cp(e,t){return!e.issues.length&&void 0===e.value&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var pp=po("$ZodSuccess",((e,t)=>{Lu.init(e,t),e._zod.parse=(e,r)=>{if("backward"===r.direction)throw new mo("ZodSuccess");let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then((t=>(e.value=0===t.issues.length,e))):(e.value=0===n.issues.length,e)}})),hp=po("$ZodCatch",((e,t)=>{Lu.init(e,t),Do(e._zod,"optin",(()=>t.innerType._zod.optin)),Do(e._zod,"optout",(()=>t.innerType._zod.optout)),Do(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then((n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map((e=>ms(e,r,vo())))},input:e.value}),e.issues=[]),e))):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map((e=>ms(e,r,vo())))},input:e.value}),e.issues=[]),e)}})),dp=po("$ZodNaN",((e,t)=>{Lu.init(e,t),e._zod.parse=(t,r)=>(("number"!=typeof t.value||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)})),fp=po("$ZodPipe",((e,t)=>{Lu.init(e,t),Do(e._zod,"values",(()=>t.in._zod.values)),Do(e._zod,"optin",(()=>t.in._zod.optin)),Do(e._zod,"optout",(()=>t.out._zod.optout)),Do(e._zod,"propValues",(()=>t.in._zod.propValues)),e._zod.parse=(e,r)=>{if("backward"===r.direction){let n=t.out._zod.run(e,r);return n instanceof Promise?n.then((e=>mp(e,t.in,r))):mp(n,t.in,r)}let n=t.in._zod.run(e,r);return n instanceof Promise?n.then((e=>mp(e,t.out,r))):mp(n,t.out,r)}}));function mp(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var gp=po("$ZodCodec",((e,t)=>{Lu.init(e,t),Do(e._zod,"values",(()=>t.in._zod.values)),Do(e._zod,"optin",(()=>t.in._zod.optin)),Do(e._zod,"optout",(()=>t.out._zod.optout)),Do(e._zod,"propValues",(()=>t.in._zod.propValues)),e._zod.parse=(e,r)=>{if("forward"===(r.direction||"forward")){let n=t.in._zod.run(e,r);return n instanceof Promise?n.then((e=>vp(e,t,r))):vp(n,t,r)}{let n=t.out._zod.run(e,r);return n instanceof Promise?n.then((e=>vp(e,t,r))):vp(n,t,r)}}}));function vp(e,t,r){if(e.issues.length)return e.aborted=!0,e;if("forward"===(r.direction||"forward")){let n=t.transform(e.value,e);return n instanceof Promise?n.then((n=>yp(e,n,t.out,r))):yp(e,n,t.out,r)}{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then((n=>yp(e,n,t.in,r))):yp(e,n,t.in,r)}}function yp(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}var bp=po("$ZodReadonly",((e,t)=>{Lu.init(e,t),Do(e._zod,"propValues",(()=>t.innerType._zod.propValues)),Do(e._zod,"values",(()=>t.innerType._zod.values)),Do(e._zod,"optin",(()=>t.innerType?._zod?.optin)),Do(e._zod,"optout",(()=>t.innerType?._zod?.optout)),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(_p):_p(n)}}));function _p(e){return e.value=Object.freeze(e.value),e}var xp=po("$ZodTemplateLiteral",((e,t)=>{Lu.init(e,t);let r=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let n=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(n,i))}else{if(null!==e&&!Ko.has(typeof e))throw Error(`Invalid template literal part: ${e}`);r.push(Xo(`${e}`))}e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(r,n)=>"string"!=typeof r.value?(r.issues.push({input:r.value,inst:e,expected:"template_literal",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)})),kp=po("$ZodFunction",((e,t)=>(Lu.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...r){let n=e._def.input?js(e._def.input,r):r,i=Reflect.apply(t,this,n);return e._def.output?js(e._def.output,i):i}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...r){let n=e._def.input?await Ns(e._def.input,r):r,i=await Reflect.apply(t,this,n);return e._def.output?await Ns(e._def.output,i):i}},e._zod.parse=(t,r)=>"function"!=typeof t.value?(t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}),t):(e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let r=e.constructor;return Array.isArray(t[0])?new r({type:"function",input:new qc({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}):new r({type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e))),wp=po("$ZodPromise",((e,t)=>{Lu.init(e,t),e._zod.parse=(e,r)=>Promise.resolve(e.value).then((e=>t.innerType._zod.run({value:e,issues:[]},r)))})),Sp=po("$ZodLazy",((e,t)=>{Lu.init(e,t),Do(e._zod,"innerType",(()=>t.getter())),Do(e._zod,"pattern",(()=>e._zod.innerType?._zod?.pattern)),Do(e._zod,"propValues",(()=>e._zod.innerType?._zod?.propValues)),Do(e._zod,"optin",(()=>e._zod.innerType?._zod?.optin??void 0)),Do(e._zod,"optout",(()=>e._zod.innerType?._zod?.optout??void 0)),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)})),Ip=po("$ZodCustom",((e,t)=>{mu.init(e,t),Lu.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then((t=>Pp(t,r,n,e)));Pp(i,r,n,e)}}));function Pp(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(ys(e))}}var $p={};so($p,{zhTW:()=>fd,zhCN:()=>hd,yo:()=>gd,vi:()=>cd,ur:()=>ld,uk:()=>ad,ua:()=>od,tr:()=>nd,th:()=>td,ta:()=>Qh,sv:()=>Xh,sl:()=>Jh,ru:()=>Hh,pt:()=>Bh,ps:()=>Uh,pl:()=>Zh,ota:()=>Nh,no:()=>jh,nl:()=>Mh,ms:()=>Dh,mk:()=>Ch,lt:()=>Eh,ko:()=>wh,km:()=>_h,kh:()=>xh,ka:()=>yh,ja:()=>gh,it:()=>fh,is:()=>hh,id:()=>ch,hu:()=>lh,he:()=>oh,frCA:()=>ih,fr:()=>rh,fi:()=>eh,fa:()=>Yp,es:()=>Kp,eo:()=>Wp,en:()=>qp,de:()=>Bp,da:()=>Zp,cs:()=>Up,ca:()=>Np,bg:()=>jp,be:()=>Mp,az:()=>Tp,ar:()=>Ap});var Ep=()=>{let e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(t){return e[t]??null}let r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return e=>{switch(e.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${e.expected}، ولكن تم إدخال ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`مدخلات غير مقبولة: يفترض إدخال ${ts(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?` أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${r} ${e.maximum.toString()} ${n.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${r} ${e.minimum.toString()} ${n.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:"ends_with"===t.format?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:"includes"===t.format?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:"regex"===t.format?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${r[t.format]??e.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case"unrecognized_keys":return`معرف${e.keys.length>1?"ات":""} غريب${e.keys.length>1?"ة":""}: ${Io(e.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${e.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${e.origin}`}}};function Ap(){return{localeError:Ep()}}var Cp=()=>{let e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(t){return e[t]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${e.expected}, daxil olan ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Yanlış dəyər: gözlənilən ${ts(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${r}${e.maximum.toString()} ${n.unit??"element"}`:`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Çox kiçik: gözlənilən ${e.origin} ${r}${e.minimum.toString()} ${n.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:"ends_with"===t.format?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:"includes"===t.format?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:"regex"===t.format?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[t.format]??e.format}`}case"not_multiple_of":return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${e.keys.length>1?"lar":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilində yanlış açar`;case"invalid_union":default:return"Yanlış dəyər";case"invalid_element":return`${e.origin} daxilində yanlış dəyər`}}};function Tp(){return{localeError:Cp()}}function Dp(e,t,r,n){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?n:1===a?t:a>=2&&a<=4?r:n}var zp=()=>{let e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(t){return e[t]??null}let r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return e=>{switch(e.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${e.expected}, атрымана ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"лік";case"object":if(Array.isArray(e))return"масіў";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Няправільны ўвод: чакалася ${ts(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);if(n){let t=Dp(Number(e.maximum),n.unit.one,n.unit.few,n.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна ${n.verb} ${r}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна быць ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);if(n){let t=Dp(Number(e.minimum),n.unit.one,n.unit.few,n.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${n.verb} ${r}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:"ends_with"===t.format?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:"includes"===t.format?`Няправільны радок: павінен змяшчаць "${t.includes}"`:"regex"===t.format?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${r[t.format]??e.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${e.keys.length>1?"ключы":"ключ"}: ${Io(e.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${e.origin}`;case"invalid_union":default:return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${e.origin}`}}};function Mp(){return{localeError:zp()}}var Op=()=>{let e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(t){return e[t]??null}let r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"};return e=>{switch(e.code){case"invalid_type":return`Невалиден вход: очакван ${e.expected}, получен ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":if(Array.isArray(e))return"масив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Невалиден вход: очакван ${ts(e.values[0])}`:`Невалидна опция: очаквано едно от ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Твърде голямо: очаква се ${e.origin??"стойност"} да съдържа ${r}${e.maximum.toString()} ${n.unit??"елемента"}`:`Твърде голямо: очаква се ${e.origin??"стойност"} да бъде ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Твърде малко: очаква се ${e.origin} да съдържа ${r}${e.minimum.toString()} ${n.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if("ends_with"===t.format)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if("includes"===t.format)return`Невалиден низ: трябва да включва "${t.includes}"`;if("regex"===t.format)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let n="Невалиден";return"emoji"===t.format&&(n="Невалидно"),"datetime"===t.format&&(n="Невалидно"),"date"===t.format&&(n="Невалидна"),"time"===t.format&&(n="Невалидно"),"duration"===t.format&&(n="Невалидна"),`${n} ${r[t.format]??e.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case"unrecognized_keys":return`Неразпознат${e.keys.length>1?"и":""} ключ${e.keys.length>1?"ове":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${e.origin}`;case"invalid_union":default:return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${e.origin}`}}};function jp(){return{localeError:Op()}}var Fp=()=>{let e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(t){return e[t]??null}let r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return e=>{switch(e.code){case"invalid_type":return`Tipus invàlid: s'esperava ${e.expected}, s'ha rebut ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Valor invàlid: s'esperava ${ts(e.values[0])}`:`Opció invàlida: s'esperava una de ${Io(e.values," o ")}`;case"too_big":{let r=e.inclusive?"com a màxim":"menys de",n=t(e.origin);return n?`Massa gran: s'esperava que ${e.origin??"el valor"} contingués ${r} ${e.maximum.toString()} ${n.unit??"elements"}`:`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?"com a mínim":"més de",n=t(e.origin);return n?`Massa petit: s'esperava que ${e.origin} contingués ${r} ${e.minimum.toString()} ${n.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Format invàlid: ha de començar amb "${t.prefix}"`:"ends_with"===t.format?`Format invàlid: ha d'acabar amb "${t.suffix}"`:"includes"===t.format?`Format invàlid: ha d'incloure "${t.includes}"`:"regex"===t.format?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${r[t.format]??e.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${e.origin}`;case"invalid_union":default:return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${e.origin}`}}};function Np(){return{localeError:Fp()}}var Rp=()=>{let e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(t){return e[t]??null}let r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return e=>{switch(e.code){case"invalid_type":return`Neplatný vstup: očekáváno ${e.expected}, obdrženo ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":if(Array.isArray(e))return"pole";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Neplatný vstup: očekáváno ${ts(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Hodnota je příliš velká: ${e.origin??"hodnota"} musí mít ${r}${e.maximum.toString()} ${n.unit??"prvků"}`:`Hodnota je příliš velká: ${e.origin??"hodnota"} musí být ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Hodnota je příliš malá: ${e.origin??"hodnota"} musí mít ${r}${e.minimum.toString()} ${n.unit??"prvků"}`:`Hodnota je příliš malá: ${e.origin??"hodnota"} musí být ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Neplatný řetězec: musí začínat na "${t.prefix}"`:"ends_with"===t.format?`Neplatný řetězec: musí končit na "${t.suffix}"`:"includes"===t.format?`Neplatný řetězec: musí obsahovat "${t.includes}"`:"regex"===t.format?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${r[t.format]??e.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${e.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${Io(e.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${e.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${e.origin}`}}};function Up(){return{localeError:Rp()}}var Lp=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function r(t){return e[t]??null}function n(e){return t[e]??e}let i={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Ugyldigt input: forventede ${n(e.expected)}, fik ${n((e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"tal";case"object":return Array.isArray(e)?"liste":null===e?"null":Object.getPrototypeOf(e)!==Object.prototype&&e.constructor?e.constructor.name:"objekt"}return t})(e.input))}`;case"invalid_value":return 1===e.values.length?`Ugyldig værdi: forventede ${ts(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${Io(e.values,"|")}`;case"too_big":{let t=e.inclusive?"<=":"<",i=r(e.origin),a=n(e.origin);return i?`For stor: forventede ${a??"value"} ${i.verb} ${t} ${e.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${t} ${e.maximum.toString()}`}case"too_small":{let t=e.inclusive?">=":">",i=r(e.origin),a=n(e.origin);return i?`For lille: forventede ${a} ${i.verb} ${t} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${t} ${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Ugyldig streng: skal starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: skal ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: skal indeholde "${t.includes}"`:"regex"===t.format?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${i[t.format]??e.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${Io(e.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${e.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${e.origin}`;default:return"Ugyldigt input"}}};function Zp(){return{localeError:Lp()}}var Vp=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(t){return e[t]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return e=>{switch(e.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${e.expected}, erhalten ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"Zahl";case"object":if(Array.isArray(e))return"Array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ungültige Eingabe: erwartet ${ts(e.values[0])}`:`Ungültige Option: erwartet eine von ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Zu groß: erwartet, dass ${e.origin??"Wert"} ${r}${e.maximum.toString()} ${n.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${e.origin??"Wert"} ${r}${e.maximum.toString()} ist`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Zu klein: erwartet, dass ${e.origin} ${r}${e.minimum.toString()} ${n.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${r}${e.minimum.toString()} ist`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Ungültiger String: muss mit "${t.prefix}" beginnen`:"ends_with"===t.format?`Ungültiger String: muss mit "${t.suffix}" enden`:"includes"===t.format?`Ungültiger String: muss "${t.includes}" enthalten`:"regex"===t.format?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${r[t.format]??e.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${Io(e.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${e.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${e.origin}`}}};function Bp(){return{localeError:Vp()}}var Gp=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(t){return e[t]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Invalid input: expected ${e.expected}, received ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Invalid input: expected ${ts(e.values[0])}`:`Invalid option: expected one of ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Too big: expected ${e.origin??"value"} to have ${r}${e.maximum.toString()} ${n.unit??"elements"}`:`Too big: expected ${e.origin??"value"} to be ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Too small: expected ${e.origin} to have ${r}${e.minimum.toString()} ${n.unit}`:`Too small: expected ${e.origin} to be ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Invalid string: must start with "${t.prefix}"`:"ends_with"===t.format?`Invalid string: must end with "${t.suffix}"`:"includes"===t.format?`Invalid string: must include "${t.includes}"`:"regex"===t.format?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}}};function qp(){return{localeError:Gp()}}var Hp=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(t){return e[t]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return e=>{switch(e.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${e.expected}, riceviĝis ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":if(Array.isArray(e))return"tabelo";if(null===e)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Nevalida enigo: atendiĝis ${ts(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${r}${e.maximum.toString()} ${n.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Tro malgranda: atendiĝis ke ${e.origin} havu ${r}${e.minimum.toString()} ${n.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:"ends_with"===t.format?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:"includes"===t.format?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:"regex"===t.format?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${r[t.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} ŝlosilo${e.keys.length>1?"j":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${e.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`}}};function Wp(){return{localeError:Hp()}}var Jp=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function r(t){return e[t]??null}function n(e){return t[e]??e}let i={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return e=>{switch(e.code){case"invalid_type":return`Entrada inválida: se esperaba ${n(e.expected)}, recibido ${n((e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":return Array.isArray(e)?"array":null===e?"null":Object.getPrototypeOf(e)!==Object.prototype?e.constructor.name:"object"}return t})(e.input))}`;case"invalid_value":return 1===e.values.length?`Entrada inválida: se esperaba ${ts(e.values[0])}`:`Opción inválida: se esperaba una de ${Io(e.values,"|")}`;case"too_big":{let t=e.inclusive?"<=":"<",i=r(e.origin),a=n(e.origin);return i?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${t}${e.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${t}${e.maximum.toString()}`}case"too_small":{let t=e.inclusive?">=":">",i=r(e.origin),a=n(e.origin);return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${t}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${t}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Cadena inválida: debe comenzar con "${t.prefix}"`:"ends_with"===t.format?`Cadena inválida: debe terminar en "${t.suffix}"`:"includes"===t.format?`Cadena inválida: debe incluir "${t.includes}"`:"regex"===t.format?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${i[t.format]??e.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Llave inválida en ${n(e.origin)}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inválido en ${n(e.origin)}`}}};function Kp(){return{localeError:Jp()}}var Xp=()=>{let e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(t){return e[t]??null}let r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return e=>{switch(e.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${e.expected} میبود، ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"آرایه";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} دریافت شد`;case"invalid_value":return 1===e.values.length?`ورودی نامعتبر: میبایست ${ts(e.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${Io(e.values,"|")} میبود`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`خیلی بزرگ: ${e.origin??"مقدار"} باید ${r}${e.maximum.toString()} ${n.unit??"عنصر"} باشد`:`خیلی بزرگ: ${e.origin??"مقدار"} باید ${r}${e.maximum.toString()} باشد`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`خیلی کوچک: ${e.origin} باید ${r}${e.minimum.toString()} ${n.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${r}${e.minimum.toString()} باشد`}case"invalid_format":{let t=e;return"starts_with"===t.format?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:"ends_with"===t.format?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:"includes"===t.format?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:"regex"===t.format?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${r[t.format]??e.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case"unrecognized_keys":return`کلید${e.keys.length>1?"های":""} ناشناس: ${Io(e.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${e.origin}`;case"invalid_union":default:return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${e.origin}`}}};function Yp(){return{localeError:Xp()}}var Qp=()=>{let e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(t){return e[t]??null}let r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return e=>{switch(e.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${e.expected}, oli ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Virheellinen syöte: täytyy olla ${ts(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Liian suuri: ${n.subject} täytyy olla ${r}${e.maximum.toString()} ${n.unit}`.trim():`Liian suuri: arvon täytyy olla ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Liian pieni: ${n.subject} täytyy olla ${r}${e.minimum.toString()} ${n.unit}`.trim():`Liian pieni: arvon täytyy olla ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:"ends_with"===t.format?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:"includes"===t.format?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:"regex"===t.format?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${r[t.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${Io(e.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function eh(){return{localeError:Qp()}}var th=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}let r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return e=>{switch(e.code){case"invalid_type":return`Entrée invalide : ${e.expected} attendu, ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombre";case"object":if(Array.isArray(e))return"tableau";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} reçu`;case"invalid_value":return 1===e.values.length?`Entrée invalide : ${ts(e.values[0])} attendu`:`Option invalide : une valeur parmi ${Io(e.values,"|")} attendue`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Trop grand : ${e.origin??"valeur"} doit ${n.verb} ${r}${e.maximum.toString()} ${n.unit??"élément(s)"}`:`Trop grand : ${e.origin??"valeur"} doit être ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Trop petit : ${e.origin} doit ${n.verb} ${r}${e.minimum.toString()} ${n.unit}`:`Trop petit : ${e.origin} doit être ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${r[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${Io(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};function rh(){return{localeError:th()}}var nh=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}let r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return e=>{switch(e.code){case"invalid_type":return`Entrée invalide : attendu ${e.expected}, reçu ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Entrée invalide : attendu ${ts(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"≤":"<",n=t(e.origin);return n?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${r}${e.maximum.toString()} ${n.unit}`:`Trop grand : attendu que ${e.origin??"la valeur"} soit ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?"≥":">",n=t(e.origin);return n?`Trop petit : attendu que ${e.origin} ait ${r}${e.minimum.toString()} ${n.unit}`:`Trop petit : attendu que ${e.origin} soit ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${r[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${Io(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};function ih(){return{localeError:nh()}}var ah=()=>{let e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=t=>t?e[t]:void 0,n=t=>{let n=r(t);return n?n.label:t??e.unknown.label},i=e=>`ה${n(e)}`,a=e=>"f"===(r(e)?.gender??"m")?"צריכה להיות":"צריך להיות",o=e=>e?t[e]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}};return t=>{switch(t.code){case"invalid_type":{let r=t.expected,i=n(r),a=(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":return Array.isArray(e)?"array":null===e?"null":Object.getPrototypeOf(e)!==Object.prototype&&e.constructor?e.constructor.name:"object";default:return t}})(t.input);return`קלט לא תקין: צריך להיות ${i}, התקבל ${e[a]?.label??a}`}case"invalid_value":{if(1===t.values.length)return`ערך לא תקין: הערך חייב להיות ${ts(t.values[0])}`;let e=t.values.map((e=>ts(e)));if(2===t.values.length)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let r=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(", ")} או ${r}`}case"too_big":{let e=o(t.origin),r=i(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"ארוך"} מדי: ${r} צריכה להכיל ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"או פחות":"לכל היותר"}`.trim();if("number"===t.origin)return`גדול מדי: ${r} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if("array"===t.origin||"set"===t.origin)return`גדול מדי: ${r} ${"set"===t.origin?"צריכה":"צריך"} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??""} או פחות`:`פחות מ-${t.maximum} ${e?.unit??""}`}`.trim();let n=t.inclusive?"<=":"<",s=a(t.origin??"value");return e?.unit?`${e.longLabel} מדי: ${r} ${s} ${n}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??"גדול"} מדי: ${r} ${s} ${n}${t.maximum.toString()}`}case"too_small":{let e=o(t.origin),r=i(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} מדי: ${r} צריכה להכיל ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"או יותר":"לפחות"}`.trim();if("number"===t.origin)return`קטן מדי: ${r} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if("array"===t.origin||"set"===t.origin){let n="set"===t.origin?"צריכה":"צריך";return 1===t.minimum&&t.inclusive?`קטן מדי: ${r} ${n} להכיל ${t.origin,"לפחות פריט אחד"}`:`קטן מדי: ${r} ${n} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??""} או יותר`:`יותר מ-${t.minimum} ${e?.unit??""}`}`.trim()}let n=t.inclusive?">=":">",s=a(t.origin??"value");return e?.unit?`${e.shortLabel} מדי: ${r} ${s} ${n}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??"קטן"} מדי: ${r} ${s} ${n}${t.minimum.toString()}`}case"invalid_format":{let e=t;if("starts_with"===e.format)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if("ends_with"===e.format)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if("includes"===e.format)return`המחרוזת חייבת לכלול "${e.includes}"`;if("regex"===e.format)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let r=s[e.format];return`${r?.label??e.format} לא ${"f"===(r?.gender??"m")?"תקינה":"תקין"}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${Io(t.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":default:return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${i(t.origin??"array")}`}}};function oh(){return{localeError:ah()}}var sh=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(t){return e[t]??null}let r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return e=>{switch(e.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${e.expected}, a kapott érték ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"szám";case"object":if(Array.isArray(e))return"tömb";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Érvénytelen bemenet: a várt érték ${ts(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Túl nagy: ${e.origin??"érték"} mérete túl nagy ${r}${e.maximum.toString()} ${n.unit??"elem"}`:`Túl nagy: a bemeneti érték ${e.origin??"érték"} túl nagy: ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${r}${e.minimum.toString()} ${n.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:"ends_with"===t.format?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:"includes"===t.format?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:"regex"===t.format?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[t.format]??e.format}`}case"not_multiple_of":return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${e.origin}`;case"invalid_union":default:return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${e.origin}`}}};function lh(){return{localeError:sh()}}var uh=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(t){return e[t]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Input tidak valid: diharapkan ${e.expected}, diterima ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Input tidak valid: diharapkan ${ts(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${r}${e.maximum.toString()} ${n.unit??"elemen"}`:`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Terlalu kecil: diharapkan ${e.origin} memiliki ${r}${e.minimum.toString()} ${n.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`String tidak valid: harus dimulai dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak valid: harus berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak valid: harus menyertakan "${t.includes}"`:"regex"===t.format?`String tidak valid: harus sesuai pola ${t.pattern}`:`${r[t.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`}}};function ch(){return{localeError:uh()}}var ph=()=>{let e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(t){return e[t]??null}let r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"};return e=>{switch(e.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":if(Array.isArray(e))return"fylki";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} þar sem á að vera ${e.expected}`;case"invalid_value":return 1===e.values.length?`Rangt gildi: gert ráð fyrir ${ts(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} hafi ${r}${e.maximum.toString()} ${n.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} sé ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${r}${e.minimum.toString()} ${n.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Ógildur strengur: verður að byrja á "${t.prefix}"`:"ends_with"===t.format?`Ógildur strengur: verður að enda á "${t.suffix}"`:"includes"===t.format?`Ógildur strengur: verður að innihalda "${t.includes}"`:"regex"===t.format?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${r[t.format]??e.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case"unrecognized_keys":return`Óþekkt ${e.keys.length>1?"ir lyklar":"ur lykill"}: ${Io(e.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${e.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${e.origin}`}}};function hh(){return{localeError:ph()}}var dh=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(t){return e[t]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Input non valido: atteso ${e.expected}, ricevuto ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numero";case"object":if(Array.isArray(e))return"vettore";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Input non valido: atteso ${ts(e.values[0])}`:`Opzione non valida: atteso uno tra ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Troppo grande: ${e.origin??"valore"} deve avere ${r}${e.maximum.toString()} ${n.unit??"elementi"}`:`Troppo grande: ${e.origin??"valore"} deve essere ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Troppo piccolo: ${e.origin} deve avere ${r}${e.minimum.toString()} ${n.unit}`:`Troppo piccolo: ${e.origin} deve essere ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Stringa non valida: deve iniziare con "${t.prefix}"`:"ends_with"===t.format?`Stringa non valida: deve terminare con "${t.suffix}"`:"includes"===t.format?`Stringa non valida: deve includere "${t.includes}"`:"regex"===t.format?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${Io(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`}}};function fh(){return{localeError:dh()}}var mh=()=>{let e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(t){return e[t]??null}let r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return e=>{switch(e.code){case"invalid_type":return`無効な入力: ${e.expected}が期待されましたが、${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"数値";case"object":if(Array.isArray(e))return"配列";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}が入力されました`;case"invalid_value":return 1===e.values.length?`無効な入力: ${ts(e.values[0])}が期待されました`:`無効な選択: ${Io(e.values,"、")}のいずれかである必要があります`;case"too_big":{let r=e.inclusive?"以下である":"より小さい",n=t(e.origin);return n?`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${n.unit??"要素"}${r}必要があります`:`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${r}必要があります`}case"too_small":{let r=e.inclusive?"以上である":"より大きい",n=t(e.origin);return n?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n.unit}${r}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r}必要があります`}case"invalid_format":{let t=e;return"starts_with"===t.format?`無効な文字列: "${t.prefix}"で始まる必要があります`:"ends_with"===t.format?`無効な文字列: "${t.suffix}"で終わる必要があります`:"includes"===t.format?`無効な文字列: "${t.includes}"を含む必要があります`:"regex"===t.format?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${r[t.format]??e.format}`}case"not_multiple_of":return`無効な数値: ${e.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${e.keys.length>1?"群":""}: ${Io(e.keys,"、")}`;case"invalid_key":return`${e.origin}内の無効なキー`;case"invalid_union":default:return"無効な入力";case"invalid_element":return`${e.origin}内の無効な値`}}};function gh(){return{localeError:mh()}}var vh=()=>{let e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(t){return e[t]??null}let r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return e=>{switch(e.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${e.expected}, მიღებული ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":if(Array.isArray(e))return"მასივი";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[t]??t})(e.input)}`;case"invalid_value":return 1===e.values.length?`არასწორი შეყვანა: მოსალოდნელი ${ts(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${Io(e.values,"|")}-დან`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} ${n.verb} ${r}${e.maximum.toString()} ${n.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} იყოს ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${n.verb} ${r}${e.minimum.toString()} ${n.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:"ends_with"===t.format?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:"includes"===t.format?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:"regex"===t.format?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${r[t.format]??e.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${e.keys.length>1?"ები":"ი"}: ${Io(e.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${e.origin}-ში`;case"invalid_union":default:return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${e.origin}-ში`}}};function yh(){return{localeError:vh()}}var bh=()=>{let e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(t){return e[t]??null}let r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return e=>{switch(e.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${e.expected} ប៉ុន្តែទទួលបាន ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":if(Array.isArray(e))return"អារេ (Array)";if(null===e)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${ts(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${r} ${e.maximum.toString()} ${n.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`តូចពេក៖ ត្រូវការ ${e.origin} ${r} ${e.minimum.toString()} ${n.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:"ends_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:"includes"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:"regex"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[t.format]??e.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${Io(e.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`}}};function _h(){return{localeError:bh()}}function xh(){return _h()}var kh=()=>{let e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(t){return e[t]??null}let r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return e=>{switch(e.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${e.expected}, 받은 타입은 ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}입니다`;case"invalid_value":return 1===e.values.length?`잘못된 입력: 값은 ${ts(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${Io(e.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let r=e.inclusive?"이하":"미만",n="미만"===r?"이어야 합니다":"여야 합니다",i=t(e.origin),a=i?.unit??"요소";return i?`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()}${a} ${r}${n}`:`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()} ${r}${n}`}case"too_small":{let r=e.inclusive?"이상":"초과",n="이상"===r?"이어야 합니다":"여야 합니다",i=t(e.origin),a=i?.unit??"요소";return i?`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()}${a} ${r}${n}`:`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()} ${r}${n}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:"ends_with"===t.format?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:"includes"===t.format?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:"regex"===t.format?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[t.format]??e.format}`}case"not_multiple_of":return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${Io(e.keys,", ")}`;case"invalid_key":return`잘못된 키: ${e.origin}`;case"invalid_union":default:return"잘못된 입력";case"invalid_element":return`잘못된 값: ${e.origin}`}}};function wh(){return{localeError:kh()}}var Sh=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return void 0===t?"nežinomas objektas":null===t?"nulinė reikšmė":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Ih=e=>e.charAt(0).toUpperCase()+e.slice(1);function Ph(e){let t=Math.abs(e),r=t%10,n=t%100;return n>=11&&n<=19||0===r?"many":1===r?"one":"few"}var $h=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(t,r,n,i){let a=e[t]??null;return null===a?a:{unit:a.unit[r],verb:a.verb[i][n?"inclusive":"notInclusive"]}}let r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return e=>{switch(e.code){case"invalid_type":return`Gautas tipas ${(e=>Sh(typeof e,e))(e.input)}, o tikėtasi - ${Sh(e.expected)}`;case"invalid_value":return 1===e.values.length?`Privalo būti ${ts(e.values[0])}`:`Privalo būti vienas iš ${Io(e.values,"|")} pasirinkimų`;case"too_big":{let r=Sh(e.origin),n=t(e.origin,Ph(Number(e.maximum)),e.inclusive??!1,"smaller");if(n?.verb)return`${Ih(r??e.origin??"reikšmė")} ${n.verb} ${e.maximum.toString()} ${n.unit??"elementų"}`;let i=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Ih(r??e.origin??"reikšmė")} turi būti ${i} ${e.maximum.toString()} ${n?.unit}`}case"too_small":{let r=Sh(e.origin),n=t(e.origin,Ph(Number(e.minimum)),e.inclusive??!1,"bigger");if(n?.verb)return`${Ih(r??e.origin??"reikšmė")} ${n.verb} ${e.minimum.toString()} ${n.unit??"elementų"}`;let i=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Ih(r??e.origin??"reikšmė")} turi būti ${i} ${e.minimum.toString()} ${n?.unit}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Eilutė privalo prasidėti "${t.prefix}"`:"ends_with"===t.format?`Eilutė privalo pasibaigti "${t.suffix}"`:"includes"===t.format?`Eilutė privalo įtraukti "${t.includes}"`:"regex"===t.format?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${r[t.format]??e.format}`}case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${Io(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{let t=Sh(e.origin);return`${Ih(t??e.origin??"reikšmė")} turi klaidingą įvestį`}}}};function Eh(){return{localeError:$h()}}var Ah=()=>{let e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(t){return e[t]??null}let r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return e=>{switch(e.code){case"invalid_type":return`Грешен внес: се очекува ${e.expected}, примено ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"број";case"object":if(Array.isArray(e))return"низа";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Invalid input: expected ${ts(e.values[0])}`:`Грешана опција: се очекува една ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Премногу голем: се очекува ${e.origin??"вредноста"} да има ${r}${e.maximum.toString()} ${n.unit??"елементи"}`:`Премногу голем: се очекува ${e.origin??"вредноста"} да биде ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Премногу мал: се очекува ${e.origin} да има ${r}${e.minimum.toString()} ${n.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Неважечка низа: мора да започнува со "${t.prefix}"`:"ends_with"===t.format?`Неважечка низа: мора да завршува со "${t.suffix}"`:"includes"===t.format?`Неважечка низа: мора да вклучува "${t.includes}"`:"regex"===t.format?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${Io(e.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${e.origin}`;case"invalid_union":default:return"Грешен внес";case"invalid_element":return`Грешна вредност во ${e.origin}`}}};function Ch(){return{localeError:Ah()}}var Th=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(t){return e[t]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Input tidak sah: dijangka ${e.expected}, diterima ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombor";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Input tidak sah: dijangka ${ts(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Terlalu besar: dijangka ${e.origin??"nilai"} ${n.verb} ${r}${e.maximum.toString()} ${n.unit??"elemen"}`:`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Terlalu kecil: dijangka ${e.origin} ${n.verb} ${r}${e.minimum.toString()} ${n.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`String tidak sah: mesti bermula dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak sah: mesti mengandungi "${t.includes}"`:"regex"===t.format?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${r[t.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${Io(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`}}};function Dh(){return{localeError:Th()}}var zh=()=>{let e={string:{unit:"tekens",verb:"te hebben"},file:{unit:"bytes",verb:"te hebben"},array:{unit:"elementen",verb:"te hebben"},set:{unit:"elementen",verb:"te hebben"}};function t(t){return e[t]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return e=>{switch(e.code){case"invalid_type":return`Ongeldige invoer: verwacht ${e.expected}, ontving ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"getal";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ongeldige invoer: verwacht ${ts(e.values[0])}`:`Ongeldige optie: verwacht één van ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Te groot: verwacht dat ${e.origin??"waarde"} ${n.verb} ${r}${e.maximum.toString()} ${n.unit??"elementen"}`:`Te groot: verwacht dat ${e.origin??"waarde"} ${r}${e.maximum.toString()} is`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Te klein: verwacht dat ${e.origin} ${n.verb} ${r}${e.minimum.toString()} ${n.unit}`:`Te klein: verwacht dat ${e.origin} ${r}${e.minimum.toString()} is`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:"ends_with"===t.format?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:"includes"===t.format?`Ongeldige tekst: moet "${t.includes}" bevatten`:"regex"===t.format?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${r[t.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`}}};function Mh(){return{localeError:zh()}}var Oh=()=>{let e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(t){return e[t]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Ugyldig input: forventet ${e.expected}, fikk ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"tall";case"object":if(Array.isArray(e))return"liste";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ugyldig verdi: forventet ${ts(e.values[0])}`:`Ugyldig valg: forventet en av ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`For stor(t): forventet ${e.origin??"value"} til å ha ${r}${e.maximum.toString()} ${n.unit??"elementer"}`:`For stor(t): forventet ${e.origin??"value"} til å ha ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`For lite(n): forventet ${e.origin} til å ha ${r}${e.minimum.toString()} ${n.unit}`:`For lite(n): forventet ${e.origin} til å ha ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Ugyldig streng: må starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: må ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: må inneholde "${t.includes}"`:"regex"===t.format?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${r[t.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${Io(e.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${e.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`}}};function jh(){return{localeError:Oh()}}var Fh=()=>{let e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(t){return e[t]??null}let r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return e=>{switch(e.code){case"invalid_type":return`Fâsit giren: umulan ${e.expected}, alınan ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numara";case"object":if(Array.isArray(e))return"saf";if(null===e)return"gayb";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Fâsit giren: umulan ${ts(e.values[0])}`:`Fâsit tercih: mûteberler ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Fazla büyük: ${e.origin??"value"}, ${r}${e.maximum.toString()} ${n.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${e.origin??"value"}, ${r}${e.maximum.toString()} olmalıydı.`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Fazla küçük: ${e.origin}, ${r}${e.minimum.toString()} ${n.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${r}${e.minimum.toString()} olmalıydı.`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Fâsit metin: "${t.prefix}" ile başlamalı.`:"ends_with"===t.format?`Fâsit metin: "${t.suffix}" ile bitmeli.`:"includes"===t.format?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:"regex"===t.format?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${r[t.format]??e.format}`}case"not_multiple_of":return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${e.keys.length>1?"s":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`${e.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${e.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function Nh(){return{localeError:Fh()}}var Rh=()=>{let e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(t){return e[t]??null}let r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return e=>{switch(e.code){case"invalid_type":return`ناسم ورودي: باید ${e.expected} وای, مګر ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"ارې";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} ترلاسه شو`;case"invalid_value":return 1===e.values.length?`ناسم ورودي: باید ${ts(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${Io(e.values,"|")} څخه وای`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`ډیر لوی: ${e.origin??"ارزښت"} باید ${r}${e.maximum.toString()} ${n.unit??"عنصرونه"} ولري`:`ډیر لوی: ${e.origin??"ارزښت"} باید ${r}${e.maximum.toString()} وي`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`ډیر کوچنی: ${e.origin} باید ${r}${e.minimum.toString()} ${n.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${r}${e.minimum.toString()} وي`}case"invalid_format":{let t=e;return"starts_with"===t.format?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:"ends_with"===t.format?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:"includes"===t.format?`ناسم متن: باید "${t.includes}" ولري`:"regex"===t.format?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${r[t.format]??e.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${e.keys.length>1?"کلیډونه":"کلیډ"}: ${Io(e.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${e.origin} کې`;case"invalid_union":default:return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${e.origin} کې`}}};function Uh(){return{localeError:Rh()}}var Lh=()=>{let e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(t){return e[t]??null}let r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return e=>{switch(e.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${e.expected}, otrzymano ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"liczba";case"object":if(Array.isArray(e))return"tablica";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Nieprawidłowe dane wejściowe: oczekiwano ${ts(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Za duża wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${r}${e.maximum.toString()} ${n.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Za mała wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${r}${e.minimum.toString()} ${n.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:"ends_with"===t.format?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:"includes"===t.format?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:"regex"===t.format?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${r[t.format]??e.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${e.origin}`;case"invalid_union":default:return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${e.origin}`}}};function Zh(){return{localeError:Lh()}}var Vh=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(t){return e[t]??null}let r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return e=>{switch(e.code){case"invalid_type":return`Tipo inválido: esperado ${e.expected}, recebido ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"número";case"object":if(Array.isArray(e))return"array";if(null===e)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Entrada inválida: esperado ${ts(e.values[0])}`:`Opção inválida: esperada uma das ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${r}${e.maximum.toString()} ${n.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Muito pequeno: esperado que ${e.origin} tivesse ${r}${e.minimum.toString()} ${n.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Texto inválido: deve começar com "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar com "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${r[t.format]??e.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Chave inválida em ${e.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${e.origin}`;default:return"Campo inválido"}}};function Bh(){return{localeError:Vh()}}function Gh(e,t,r,n){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?n:1===a?t:a>=2&&a<=4?r:n}var qh=()=>{let e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(t){return e[t]??null}let r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return e=>{switch(e.code){case"invalid_type":return`Неверный ввод: ожидалось ${e.expected}, получено ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":if(Array.isArray(e))return"массив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Неверный ввод: ожидалось ${ts(e.values[0])}`:`Неверный вариант: ожидалось одно из ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);if(n){let t=Gh(Number(e.maximum),n.unit.one,n.unit.few,n.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет иметь ${r}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);if(n){let t=Gh(Number(e.minimum),n.unit.one,n.unit.few,n.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${r}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Неверная строка: должна начинаться с "${t.prefix}"`:"ends_with"===t.format?`Неверная строка: должна заканчиваться на "${t.suffix}"`:"includes"===t.format?`Неверная строка: должна содержать "${t.includes}"`:"regex"===t.format?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${r[t.format]??e.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспознанн${e.keys.length>1?"ые":"ый"} ключ${e.keys.length>1?"и":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${e.origin}`;case"invalid_union":default:return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${e.origin}`}}};function Hh(){return{localeError:qh()}}var Wh=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(t){return e[t]??null}let r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return e=>{switch(e.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${e.expected}, prejeto ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"število";case"object":if(Array.isArray(e))return"tabela";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Neveljaven vnos: pričakovano ${ts(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} imelo ${r}${e.maximum.toString()} ${n.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Premajhno: pričakovano, da bo ${e.origin} imelo ${r}${e.minimum.toString()} ${n.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Neveljaven niz: mora se začeti z "${t.prefix}"`:"ends_with"===t.format?`Neveljaven niz: mora se končati z "${t.suffix}"`:"includes"===t.format?`Neveljaven niz: mora vsebovati "${t.includes}"`:"regex"===t.format?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${r[t.format]??e.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i ključi":" ključ"}: ${Io(e.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${e.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`}}};function Jh(){return{localeError:Wh()}}var Kh=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(t){return e[t]??null}let r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return e=>{switch(e.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${e.expected}, fick ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"antal";case"object":if(Array.isArray(e))return"lista";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ogiltig inmatning: förväntat ${ts(e.values[0])}`:`Ogiltigt val: förväntade en av ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`För stor(t): förväntade ${e.origin??"värdet"} att ha ${r}${e.maximum.toString()} ${n.unit??"element"}`:`För stor(t): förväntat ${e.origin??"värdet"} att ha ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`För lite(t): förväntade ${e.origin??"värdet"} att ha ${r}${e.minimum.toString()} ${n.unit}`:`För lite(t): förväntade ${e.origin??"värdet"} att ha ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Ogiltig sträng: måste börja med "${t.prefix}"`:"ends_with"===t.format?`Ogiltig sträng: måste sluta med "${t.suffix}"`:"includes"===t.format?`Ogiltig sträng: måste innehålla "${t.includes}"`:"regex"===t.format?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${r[t.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${Io(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${e.origin??"värdet"}`}}};function Xh(){return{localeError:Kh()}}var Yh=()=>{let e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(t){return e[t]??null}let r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${e.expected}, பெறப்பட்டது ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"எண் அல்லாதது":"எண்";case"object":if(Array.isArray(e))return"அணி";if(null===e)return"வெறுமை";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${ts(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${Io(e.values,"|")} இல் ஒன்று`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${r}${e.maximum.toString()} ${n.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${r}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${r}${e.minimum.toString()} ${n.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${r}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let t=e;return"starts_with"===t.format?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:"ends_with"===t.format?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:"includes"===t.format?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:"regex"===t.format?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[t.format]??e.format}`}case"not_multiple_of":return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${e.keys.length>1?"கள்":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`${e.origin} இல் தவறான விசை`;case"invalid_union":default:return"தவறான உள்ளீடு";case"invalid_element":return`${e.origin} இல் தவறான மதிப்பு`}}};function Qh(){return{localeError:Yh()}}var ed=()=>{let e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(t){return e[t]??null}let r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return e=>{switch(e.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${e.expected} แต่ได้รับ ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":if(Array.isArray(e))return"อาร์เรย์ (Array)";if(null===e)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`ค่าไม่ถูกต้อง: ควรเป็น ${ts(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"ไม่เกิน":"น้อยกว่า",n=t(e.origin);return n?`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${r} ${e.maximum.toString()} ${n.unit??"รายการ"}`:`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?"อย่างน้อย":"มากกว่า",n=t(e.origin);return n?`น้อยกว่ากำหนด: ${e.origin} ควรมี${r} ${e.minimum.toString()} ${n.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:"ends_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:"includes"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:"regex"===t.format?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[t.format]??e.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${Io(e.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${e.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function td(){return{localeError:ed()}}var rd=()=>{let e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(t){return e[t]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return e=>{switch(e.code){case"invalid_type":return`Geçersiz değer: beklenen ${e.expected}, alınan ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Geçersiz değer: beklenen ${ts(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Çok büyük: beklenen ${e.origin??"değer"} ${r}${e.maximum.toString()} ${n.unit??"öğe"}`:`Çok büyük: beklenen ${e.origin??"değer"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Çok küçük: beklenen ${e.origin} ${r}${e.minimum.toString()} ${n.unit}`:`Çok küçük: beklenen ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Geçersiz metin: "${t.prefix}" ile başlamalı`:"ends_with"===t.format?`Geçersiz metin: "${t.suffix}" ile bitmeli`:"includes"===t.format?`Geçersiz metin: "${t.includes}" içermeli`:"regex"===t.format?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${r[t.format]??e.format}`}case"not_multiple_of":return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${e.keys.length>1?"lar":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`${e.origin} içinde geçersiz anahtar`;case"invalid_union":default:return"Geçersiz değer";case"invalid_element":return`${e.origin} içinde geçersiz değer`}}};function nd(){return{localeError:rd()}}var id=()=>{let e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(t){return e[t]??null}let r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return e=>{switch(e.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${e.expected}, отримано ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":if(Array.isArray(e))return"масив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Неправильні вхідні дані: очікується ${ts(e.values[0])}`:`Неправильна опція: очікується одне з ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Занадто велике: очікується, що ${e.origin??"значення"} ${n.verb} ${r}${e.maximum.toString()} ${n.unit??"елементів"}`:`Занадто велике: очікується, що ${e.origin??"значення"} буде ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Занадто мале: очікується, що ${e.origin} ${n.verb} ${r}${e.minimum.toString()} ${n.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Неправильний рядок: повинен починатися з "${t.prefix}"`:"ends_with"===t.format?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:"includes"===t.format?`Неправильний рядок: повинен містити "${t.includes}"`:"regex"===t.format?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${r[t.format]??e.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${e.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${e.keys.length>1?"і":""}: ${Io(e.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${e.origin}`;case"invalid_union":default:return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${e.origin}`}}};function ad(){return{localeError:id()}}function od(){return ad()}var sd=()=>{let e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(t){return e[t]??null}let r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return e=>{switch(e.code){case"invalid_type":return`غلط ان پٹ: ${e.expected} متوقع تھا، ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"نمبر";case"object":if(Array.isArray(e))return"آرے";if(null===e)return"نل";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} موصول ہوا`;case"invalid_value":return 1===e.values.length?`غلط ان پٹ: ${ts(e.values[0])} متوقع تھا`:`غلط آپشن: ${Io(e.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`بہت بڑا: ${e.origin??"ویلیو"} کے ${r}${e.maximum.toString()} ${n.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??"ویلیو"} کا ${r}${e.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`بہت چھوٹا: ${e.origin} کے ${r}${e.minimum.toString()} ${n.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${r}${e.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let t=e;return"starts_with"===t.format?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:"ends_with"===t.format?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:"includes"===t.format?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:"regex"===t.format?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${r[t.format]??e.format}`}case"not_multiple_of":return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${e.keys.length>1?"ز":""}: ${Io(e.keys,"، ")}`;case"invalid_key":return`${e.origin} میں غلط کی`;case"invalid_union":default:return"غلط ان پٹ";case"invalid_element":return`${e.origin} میں غلط ویلیو`}}};function ld(){return{localeError:sd()}}var ud=()=>{let e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(t){return e[t]??null}let r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return e=>{switch(e.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${e.expected}, nhận được ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"số";case"object":if(Array.isArray(e))return"mảng";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Đầu vào không hợp lệ: mong đợi ${ts(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Quá lớn: mong đợi ${e.origin??"giá trị"} ${n.verb} ${r}${e.maximum.toString()} ${n.unit??"phần tử"}`:`Quá lớn: mong đợi ${e.origin??"giá trị"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Quá nhỏ: mong đợi ${e.origin} ${n.verb} ${r}${e.minimum.toString()} ${n.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:"ends_with"===t.format?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:"includes"===t.format?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:"regex"===t.format?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${r[t.format]??e.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${Io(e.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${e.origin}`;case"invalid_union":default:return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${e.origin}`}}};function cd(){return{localeError:ud()}}var pd=()=>{let e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(t){return e[t]??null}let r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return e=>{switch(e.code){case"invalid_type":return`无效输入:期望 ${e.expected},实际接收 ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"非数字(NaN)":"数字";case"object":if(Array.isArray(e))return"数组";if(null===e)return"空值(null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`无效输入:期望 ${ts(e.values[0])}`:`无效选项:期望以下之一 ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`数值过大:期望 ${e.origin??"值"} ${r}${e.maximum.toString()} ${n.unit??"个元素"}`:`数值过大:期望 ${e.origin??"值"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`数值过小:期望 ${e.origin} ${r}${e.minimum.toString()} ${n.unit}`:`数值过小:期望 ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`无效字符串:必须以 "${t.prefix}" 开头`:"ends_with"===t.format?`无效字符串:必须以 "${t.suffix}" 结尾`:"includes"===t.format?`无效字符串:必须包含 "${t.includes}"`:"regex"===t.format?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${r[t.format]??e.format}`}case"not_multiple_of":return`无效数字:必须是 ${e.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${Io(e.keys,", ")}`;case"invalid_key":return`${e.origin} 中的键(key)无效`;case"invalid_union":default:return"无效输入";case"invalid_element":return`${e.origin} 中包含无效值(value)`}}};function hd(){return{localeError:pd()}}var dd=()=>{let e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(t){return e[t]??null}let r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return e=>{switch(e.code){case"invalid_type":return`無效的輸入值:預期為 ${e.expected},但收到 ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`無效的輸入值:預期為 ${ts(e.values[0])}`:`無效的選項:預期為以下其中之一 ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`數值過大:預期 ${e.origin??"值"} 應為 ${r}${e.maximum.toString()} ${n.unit??"個元素"}`:`數值過大:預期 ${e.origin??"值"} 應為 ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`數值過小:預期 ${e.origin} 應為 ${r}${e.minimum.toString()} ${n.unit}`:`數值過小:預期 ${e.origin} 應為 ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`無效的字串:必須以 "${t.prefix}" 開頭`:"ends_with"===t.format?`無效的字串:必須以 "${t.suffix}" 結尾`:"includes"===t.format?`無效的字串:必須包含 "${t.includes}"`:"regex"===t.format?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${r[t.format]??e.format}`}case"not_multiple_of":return`無效的數字:必須為 ${e.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${e.keys.length>1?"們":""}:${Io(e.keys,"、")}`;case"invalid_key":return`${e.origin} 中有無效的鍵值`;case"invalid_union":default:return"無效的輸入值";case"invalid_element":return`${e.origin} 中有無效的值`}}};function fd(){return{localeError:dd()}}var md=()=>{let e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(t){return e[t]??null}let r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return e=>{switch(e.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${e.expected}, àmọ̀ a rí ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nọ́mbà";case"object":if(Array.isArray(e))return"akopọ";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ìbáwọlé aṣìṣe: a ní láti fi ${ts(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${Io(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin);return n?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??"iye"} ${n.verb} ${r}${e.maximum} ${n.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${r}${e.maximum}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin);return n?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${n.verb} ${r}${e.minimum} ${n.unit}`:`Kéré ju: a ní láti jẹ́ ${r}${e.minimum}`}case"invalid_format":{let t=e;return"starts_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:"ends_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:"includes"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:"regex"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${r[t.format]??e.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${Io(e.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${e.origin}`;case"invalid_union":default:return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${e.origin}`}}};function gd(){return{localeError:md()}}var vd,yd=Symbol("ZodOutput"),bd=Symbol("ZodInput");class _d{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];if(this._map.set(e,r),r&&"object"==typeof r&&"id"in r){if(this._idmap.has(r.id))throw Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function xd(){return new _d}(vd=globalThis).__zod_globalRegistry??(vd.__zod_globalRegistry=xd());var kd=globalThis.__zod_globalRegistry;function wd(e,t){return new e({type:"string",...Qo(t)})}function Sd(e,t){return new e({type:"string",coerce:!0,...Qo(t)})}function Id(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Qo(t)})}function Pd(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Qo(t)})}function $d(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Qo(t)})}function Ed(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Qo(t)})}function Ad(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Qo(t)})}function Cd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Qo(t)})}function Td(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Qo(t)})}function Dd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Qo(t)})}function zd(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Qo(t)})}function Md(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Qo(t)})}function Od(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Qo(t)})}function jd(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Qo(t)})}function Fd(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Qo(t)})}function Nd(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Qo(t)})}function Rd(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Qo(t)})}function Ud(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Qo(t)})}function Ld(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...Qo(t)})}function Zd(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Qo(t)})}function Vd(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Qo(t)})}function Bd(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Qo(t)})}function Gd(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Qo(t)})}function qd(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Qo(t)})}function Hd(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Qo(t)})}var Wd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Jd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Qo(t)})}function Kd(e,t){return new e({type:"string",format:"date",check:"string_format",...Qo(t)})}function Xd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Qo(t)})}function Yd(e,t){return new e({type:"string",format:"duration",check:"string_format",...Qo(t)})}function Qd(e,t){return new e({type:"number",checks:[],...Qo(t)})}function ef(e,t){return new e({type:"number",coerce:!0,checks:[],...Qo(t)})}function tf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Qo(t)})}function rf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Qo(t)})}function nf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Qo(t)})}function af(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Qo(t)})}function of(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Qo(t)})}function sf(e,t){return new e({type:"boolean",...Qo(t)})}function lf(e,t){return new e({type:"boolean",coerce:!0,...Qo(t)})}function uf(e,t){return new e({type:"bigint",...Qo(t)})}function cf(e,t){return new e({type:"bigint",coerce:!0,...Qo(t)})}function pf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Qo(t)})}function hf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Qo(t)})}function df(e,t){return new e({type:"symbol",...Qo(t)})}function ff(e,t){return new e({type:"undefined",...Qo(t)})}function mf(e,t){return new e({type:"null",...Qo(t)})}function gf(e){return new e({type:"any"})}function vf(e){return new e({type:"unknown"})}function yf(e,t){return new e({type:"never",...Qo(t)})}function bf(e,t){return new e({type:"void",...Qo(t)})}function _f(e,t){return new e({type:"date",...Qo(t)})}function xf(e,t){return new e({type:"date",coerce:!0,...Qo(t)})}function kf(e,t){return new e({type:"nan",...Qo(t)})}function wf(e,t){return new vu({check:"less_than",...Qo(t),value:e,inclusive:!1})}function Sf(e,t){return new vu({check:"less_than",...Qo(t),value:e,inclusive:!0})}function If(e,t){return new yu({check:"greater_than",...Qo(t),value:e,inclusive:!1})}function Pf(e,t){return new yu({check:"greater_than",...Qo(t),value:e,inclusive:!0})}function $f(e){return If(0,e)}function Ef(e){return wf(0,e)}function Af(e){return Sf(0,e)}function Cf(e){return Pf(0,e)}function Tf(e,t){return new bu({check:"multiple_of",...Qo(t),value:e})}function Df(e,t){return new ku({check:"max_size",...Qo(t),maximum:e})}function zf(e,t){return new wu({check:"min_size",...Qo(t),minimum:e})}function Mf(e,t){return new Su({check:"size_equals",...Qo(t),size:e})}function Of(e,t){return new Iu({check:"max_length",...Qo(t),maximum:e})}function jf(e,t){return new Pu({check:"min_length",...Qo(t),minimum:e})}function Ff(e,t){return new $u({check:"length_equals",...Qo(t),length:e})}function Nf(e,t){return new Au({check:"string_format",format:"regex",...Qo(t),pattern:e})}function Rf(e){return new Cu({check:"string_format",format:"lowercase",...Qo(e)})}function Uf(e){return new Tu({check:"string_format",format:"uppercase",...Qo(e)})}function Lf(e,t){return new Du({check:"string_format",format:"includes",...Qo(t),includes:e})}function Zf(e,t){return new zu({check:"string_format",format:"starts_with",...Qo(t),prefix:e})}function Vf(e,t){return new Mu({check:"string_format",format:"ends_with",...Qo(t),suffix:e})}function Bf(e,t,r){return new ju({check:"property",property:e,schema:t,...Qo(r)})}function Gf(e,t){return new Fu({check:"mime_type",mime:e,...Qo(t)})}function qf(e){return new Nu({check:"overwrite",tx:e})}function Hf(e){return qf((t=>t.normalize(e)))}function Wf(){return qf((e=>e.trim()))}function Jf(){return qf((e=>e.toLowerCase()))}function Kf(){return qf((e=>e.toUpperCase()))}function Xf(){return qf((e=>Lo(e)))}function Yf(e,t,r){return new e({type:"array",element:t,...Qo(r)})}function Qf(e,t,r){return new e({type:"union",options:t,...Qo(r)})}function em(e,t,r){return new e({type:"union",options:t,inclusive:!1,...Qo(r)})}function tm(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...Qo(n)})}function rm(e,t,r){return new e({type:"intersection",left:t,right:r})}function nm(e,t,r,n){let i=r instanceof Lu;return new e({type:"tuple",items:t,rest:i?r:null,...Qo(i?n:r)})}function im(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...Qo(n)})}function am(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...Qo(n)})}function om(e,t,r){return new e({type:"set",valueType:t,...Qo(r)})}function sm(e,t,r){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map((e=>[e,e]))):t,...Qo(r)})}function lm(e,t,r){return new e({type:"enum",entries:t,...Qo(r)})}function um(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...Qo(r)})}function cm(e,t){return new e({type:"file",...Qo(t)})}function pm(e,t){return new e({type:"transform",transform:t})}function hm(e,t){return new e({type:"optional",innerType:t})}function dm(e,t){return new e({type:"nullable",innerType:t})}function fm(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():qo(r)}})}function mm(e,t,r){return new e({type:"nonoptional",innerType:t,...Qo(r)})}function gm(e,t){return new e({type:"success",innerType:t})}function vm(e,t,r){return new e({type:"catch",innerType:t,catchValue:"function"==typeof r?r:()=>r})}function ym(e,t,r){return new e({type:"pipe",in:t,out:r})}function bm(e,t){return new e({type:"readonly",innerType:t})}function _m(e,t,r){return new e({type:"template_literal",parts:t,...Qo(r)})}function xm(e,t){return new e({type:"lazy",getter:t})}function km(e,t){return new e({type:"promise",innerType:t})}function wm(e,t,r){let n=Qo(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function Sm(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Qo(r)})}function Im(e){let t=Pm((r=>(r.addIssue=e=>{if("string"==typeof e)r.issues.push(ys(e,r.value,t._zod.def));else{let n=e;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(ys(n))}},e(r.value,r))));return t}function Pm(e,t){let r=new mu({check:"custom",...Qo(t)});return r._zod.check=e,r}function $m(e){let t=new mu({check:"describe"});return t._zod.onattach=[t=>{let r=kd.get(t)??{};kd.add(t,{...r,description:e})}],t._zod.check=()=>{},t}function Em(e){let t=new mu({check:"meta"});return t._zod.onattach=[t=>{let r=kd.get(t)??{};kd.add(t,{...r,...e})}],t._zod.check=()=>{},t}function Am(e,t){let r=Qo(t),n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];"sensitive"!==r.case&&(n=n.map((e=>"string"==typeof e?e.toLowerCase():e)),i=i.map((e=>"string"==typeof e?e.toLowerCase():e)));let a=new Set(n),o=new Set(i),s=e.Codec??gp,l=e.Boolean??_c,u=new s({type:"pipe",in:new(e.String??Zu)({type:"string",error:r.error}),out:new l({type:"boolean",error:r.error}),transform:(e,t)=>{let n=e;return"sensitive"!==r.case&&(n=n.toLowerCase()),!!a.has(n)||!o.has(n)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:t.value,inst:u,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?n[0]||"true":i[0]||"false",error:r.error});return u}function Cm(e,t,r,n={}){let i=Qo(n),a={...Qo(n),check:"string_format",type:"string",format:t,fn:"function"==typeof r?r:e=>r.test(e),...i};return r instanceof RegExp&&(a.pattern=r),new e(a)}function Tm(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??kd,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Dm(e,t,r={path:[],schemaPath:[]}){var n;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let n={...r,schemaPath:[...r.schemaPath,e],path:r.path},a=e._zod.parent;if(a)o.ref=a,Dm(a,t,n),t.seen.get(a).isParent=!0;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,n);else{let r=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,r,n)}}let l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),"input"===t.io&&Om(e)&&(delete o.schema.examples,delete o.schema.default),"input"===t.io&&o.schema._prefault&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function zm(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{if(t[1].schema.$ref)return;let n=t[1],{ref:i,defId:a}=(t=>{let n="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(r)return{ref:i(r)};let a=t[1].defId??t[1].schema.id??"schema"+e.counter++;return t[1].defId=a,{defId:a,ref:`${i("__shared")}#/${n}/${a}`}}if(t[1]===r)return{ref:"#"};let i=`#/${n}/`,a=t[1].schema.id??"__schema"+e.counter++;return{defId:a,ref:i+a}})(t);n.def={...n.schema},a&&(n.defId=a);let o=n.schema;for(let e in o)delete o[e];o.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let i=r[1];if(t!==r[0]){if(e.external){let i=e.external.registry.get(r[0])?.id;if(t!==r[0]&&i){n(r);continue}}(e.metadataRegistry.get(r[0])?.id||i.cycle||i.count>1&&"ref"===e.reused)&&n(r)}else n(r)}}function Mm(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{let r=e.seen.get(t),i=r.def??r.schema,a={...i};if(null===r.ref)return;let o=r.ref;if(r.ref=null,o){n(o);let t=e.seen.get(o).schema;!t.$ref||"draft-07"!==e.target&&"draft-04"!==e.target&&"openapi-3.0"!==e.target?(Object.assign(i,t),Object.assign(i,a)):(i.allOf=i.allOf??[],i.allOf.push(t))}r.isParent||e.override({zodSchema:t,jsonSchema:i,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())n(t[0]);let i={};if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(r)}Object.assign(i,r.def??r.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?i.$defs=a:i.definitions=a);try{let e=JSON.parse(JSON.stringify(i));return Object.defineProperty(e,"~standard",{value:{...t["~standard"],jsonSchema:{input:Fm(t,"input"),output:Fm(t,"output")}},enumerable:!1,writable:!1}),e}catch{throw Error("Error converting schema to JSON.")}}function Om(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if("transform"===n.type)return!0;if("array"===n.type)return Om(n.element,r);if("set"===n.type)return Om(n.valueType,r);if("lazy"===n.type)return Om(n.getter(),r);if("promise"===n.type||"optional"===n.type||"nonoptional"===n.type||"nullable"===n.type||"readonly"===n.type||"default"===n.type||"prefault"===n.type)return Om(n.innerType,r);if("intersection"===n.type)return Om(n.left,r)||Om(n.right,r);if("record"===n.type||"map"===n.type)return Om(n.keyType,r)||Om(n.valueType,r);if("pipe"===n.type)return Om(n.in,r)||Om(n.out,r);if("object"===n.type){for(let e in n.shape)if(Om(n.shape[e],r))return!0;return!1}if("union"===n.type){for(let e of n.options)if(Om(e,r))return!0;return!1}if("tuple"===n.type){for(let e of n.items)if(Om(e,r))return!0;return!(!n.rest||!Om(n.rest,r))}return!1}var jm=(e,t={})=>r=>{let n=Tm({...r,processors:t});return Dm(e,n),zm(n,e),Mm(n,e)},Fm=(e,t)=>r=>{let{libraryOptions:n,target:i}=r??{},a=Tm({...n??{},target:i,io:t,processors:{}});return Dm(e,a),zm(a,e),Mm(a,e)},Nm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Rm=(e,t,r,n)=>{let i=r;i.type="string";let{minimum:a,maximum:o,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if("number"==typeof a&&(i.minLength=a),"number"==typeof o&&(i.maxLength=o),s&&(i.format=Nm[s]??s,""===i.format&&delete i.format),u&&(i.contentEncoding=u),l&&l.size>0){let e=[...l];1===e.length?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map((e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source})))])}},Um=(e,t,r,n)=>{let i=r,{minimum:a,maximum:o,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;"string"==typeof s&&s.includes("int")?i.type="integer":i.type="number","number"==typeof c&&("draft-04"===t.target||"openapi-3.0"===t.target?(i.minimum=c,i.exclusiveMinimum=!0):i.exclusiveMinimum=c),"number"==typeof a&&(i.minimum=a,"number"==typeof c&&"draft-04"!==t.target&&(c>=a?delete i.minimum:delete i.exclusiveMinimum)),"number"==typeof u&&("draft-04"===t.target||"openapi-3.0"===t.target?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),"number"==typeof o&&(i.maximum=o,"number"==typeof u&&"draft-04"!==t.target&&(u<=o?delete i.maximum:delete i.exclusiveMaximum)),"number"==typeof l&&(i.multipleOf=l)},Lm=(e,t,r,n)=>{r.type="boolean"},Zm=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},Vm=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},Bm=(e,t,r,n)=>{"openapi-3.0"===t.target?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Gm=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},qm=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},Hm=(e,t,r,n)=>{r.not={}},Wm=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},Jm=(e,t,r,n)=>{let i=So(e._zod.def.entries);i.every((e=>"number"==typeof e))&&(r.type="number"),i.every((e=>"string"==typeof e))&&(r.type="string"),r.enum=i},Km=(e,t,r,n)=>{let i=e._zod.def,a=[];for(let e of i.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e){if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(e))}else a.push(e);if(0!==a.length)if(1===a.length){let e=a[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else a.every((e=>"number"==typeof e))&&(r.type="number"),a.every((e=>"string"==typeof e))&&(r.type="string"),a.every((e=>"boolean"==typeof e))&&(r.type="boolean"),a.every((e=>null===e))&&(r.type="null"),r.enum=a},Xm=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},Ym=(e,t,r,n)=>{let i=r,a=e._zod.pattern;if(!a)throw Error("Pattern not found in template literal");i.type="string",i.pattern=a.source},Qm=(e,t,r,n)=>{let i=r,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:l}=e._zod.bag;void 0!==o&&(a.minLength=o),void 0!==s&&(a.maxLength=s),l?1===l.length?(a.contentMediaType=l[0],Object.assign(i,a)):i.anyOf=l.map((e=>({...a,contentMediaType:e}))):Object.assign(i,a)},eg=(e,t,r,n)=>{r.type="boolean"},tg=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},rg=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},ng=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},ig=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},ag=(e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},og=(e,t,r,n)=>{let i=r,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;"number"==typeof o&&(i.minItems=o),"number"==typeof s&&(i.maxItems=s),i.type="array",i.items=Dm(a.element,t,{...n,path:[...n.path,"items"]})},sg=(e,t,r,n)=>{let i=r,a=e._zod.def;i.type="object",i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Dm(o[e],t,{...n,path:[...n.path,"properties",e]});let s=new Set(Object.keys(o)),l=new Set([...s].filter((e=>{let r=a.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout})));l.size>0&&(i.required=Array.from(l)),"never"===a.catchall?._zod.def.type?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Dm(a.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(i.additionalProperties=!1)},lg=(e,t,r,n)=>{let i=e._zod.def,a=!1===i.inclusive,o=i.options.map(((e,r)=>Dm(e,t,{...n,path:[...n.path,a?"oneOf":"anyOf",r]})));a?r.oneOf=o:r.anyOf=o},ug=(e,t,r,n)=>{let i=e._zod.def,a=Dm(i.left,t,{...n,path:[...n.path,"allOf",0]}),o=Dm(i.right,t,{...n,path:[...n.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length,l=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];r.allOf=l},cg=(e,t,r,n)=>{let i=r,a=e._zod.def;i.type="array";let o="draft-2020-12"===t.target?"prefixItems":"items",s="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",l=a.items.map(((e,r)=>Dm(e,t,{...n,path:[...n.path,o,r]}))),u=a.rest?Dm(a.rest,t,{...n,path:[...n.path,s,..."openapi-3.0"===t.target?[a.items.length]:[]]}):null;"draft-2020-12"===t.target?(i.prefixItems=l,u&&(i.items=u)):"openapi-3.0"===t.target?(i.items={anyOf:l},u&&i.items.anyOf.push(u),i.minItems=l.length,!u&&(i.maxItems=l.length)):(i.items=l,u&&(i.additionalItems=u));let{minimum:c,maximum:p}=e._zod.bag;"number"==typeof c&&(i.minItems=c),"number"==typeof p&&(i.maxItems=p)},pg=(e,t,r,n)=>{let i=r,a=e._zod.def;i.type="object",("draft-07"===t.target||"draft-2020-12"===t.target)&&(i.propertyNames=Dm(a.keyType,t,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=Dm(a.valueType,t,{...n,path:[...n.path,"additionalProperties"]})},hg=(e,t,r,n)=>{let i=e._zod.def,a=Dm(i.innerType,t,n),o=t.seen.get(e);"openapi-3.0"===t.target?(o.ref=i.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},dg=(e,t,r,n)=>{let i=e._zod.def;Dm(i.innerType,t,n),t.seen.get(e).ref=i.innerType},fg=(e,t,r,n)=>{let i=e._zod.def;Dm(i.innerType,t,n),t.seen.get(e).ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},mg=(e,t,r,n)=>{let i=e._zod.def;Dm(i.innerType,t,n),t.seen.get(e).ref=i.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},gg=(e,t,r,n)=>{let i,a=e._zod.def;Dm(a.innerType,t,n),t.seen.get(e).ref=a.innerType;try{i=a.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},vg=(e,t,r,n)=>{let i=e._zod.def,a="input"===t.io?"transform"===i.in._zod.def.type?i.out:i.in:i.out;Dm(a,t,n),t.seen.get(e).ref=a},yg=(e,t,r,n)=>{let i=e._zod.def;Dm(i.innerType,t,n),t.seen.get(e).ref=i.innerType,r.readOnly=!0},bg=(e,t,r,n)=>{let i=e._zod.def;Dm(i.innerType,t,n),t.seen.get(e).ref=i.innerType},_g=(e,t,r,n)=>{let i=e._zod.def;Dm(i.innerType,t,n),t.seen.get(e).ref=i.innerType},xg=(e,t,r,n)=>{let i=e._zod.innerType;Dm(i,t,n),t.seen.get(e).ref=i},kg={string:Rm,number:Um,boolean:Lm,bigint:Zm,symbol:Vm,null:Bm,undefined:Gm,void:qm,never:Hm,any:(e,t,r,n)=>{},unknown:(e,t,r,n)=>{},date:Wm,enum:Jm,literal:Km,nan:Xm,template_literal:Ym,file:Qm,success:eg,custom:tg,function:rg,transform:ng,map:ig,set:ag,array:og,object:sg,union:lg,intersection:ug,tuple:cg,record:pg,nullable:hg,nonoptional:dg,default:fg,prefault:mg,catch:gg,pipe:vg,readonly:yg,promise:bg,optional:_g,lazy:xg};function wg(e,t){if("_idmap"in e){let r=e,n=Tm({...t,processors:kg}),i={};for(let e of r._idmap.entries()){let[t,r]=e;Dm(r,n)}let a={},o={registry:r,uri:t?.uri,defs:i};n.external=o;for(let e of r._idmap.entries()){let[t,r]=e;zm(n,r),a[t]=Mm(n,r)}if(Object.keys(i).length>0){let e="draft-2020-12"===n.target?"$defs":"definitions";a.__shared={[e]:i}}return{schemas:a}}let r=Tm({...t,processors:kg});return Dm(e,r),zm(r,e),Mm(r,e)}class Sg{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=Tm({processors:kg,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return Dm(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),zm(this.ctx,e);let r=Mm(this.ctx,e),{"~standard":n,...i}=r;return i}}var Ig={},Pg={};so(Pg,{xor:()=>Ry,xid:()=>Pv,void:()=>Py,uuidv7:()=>pv,uuidv6:()=>cv,uuidv4:()=>uv,uuid:()=>lv,url:()=>dv,unknown:()=>ky,union:()=>Fy,undefined:()=>gy,ulid:()=>Sv,uint64:()=>hy,uint32:()=>ay,tuple:()=>Gy,transform:()=>lb,templateLiteral:()=>zb,symbol:()=>fy,superRefine:()=>Bb,success:()=>xb,stringbool:()=>Wb,stringFormat:()=>Wv,string:()=>tv,strictObject:()=>My,set:()=>Qy,refine:()=>Vb,record:()=>Hy,readonly:()=>Tb,promise:()=>Fb,preprocess:()=>Kb,prefault:()=>vb,pipe:()=>$b,partialRecord:()=>Wy,optional:()=>cb,object:()=>zy,number:()=>Qv,nullish:()=>db,nullable:()=>hb,null:()=>yy,nonoptional:()=>bb,never:()=>Sy,nativeEnum:()=>rb,nanoid:()=>yv,nan:()=>Ib,meta:()=>qb,map:()=>Xy,mac:()=>Dv,looseRecord:()=>Jy,looseObject:()=>Oy,literal:()=>ib,lazy:()=>Ob,ksuid:()=>Ev,keyof:()=>Ty,jwt:()=>qv,json:()=>Jb,ipv6:()=>Mv,ipv4:()=>Cv,intersection:()=>Vy,int64:()=>py,int32:()=>iy,int:()=>ty,instanceof:()=>Hb,httpUrl:()=>fv,hostname:()=>Jv,hex:()=>Kv,hash:()=>Xv,guid:()=>ov,function:()=>Rb,float64:()=>ny,float32:()=>ry,file:()=>ob,enum:()=>tb,emoji:()=>gv,email:()=>iv,e164:()=>Bv,discriminatedUnion:()=>Ly,describe:()=>Gb,date:()=>Ey,custom:()=>Zb,cuid2:()=>kv,cuid:()=>_v,codec:()=>Ab,cidrv6:()=>Nv,cidrv4:()=>jv,check:()=>Lb,catch:()=>wb,boolean:()=>sy,bigint:()=>uy,base64url:()=>Zv,base64:()=>Uv,array:()=>Cy,any:()=>_y,_function:()=>Rb,_default:()=>mb,_ZodString:()=>Qg,ZodXor:()=>Ny,ZodXID:()=>Iv,ZodVoid:()=>Iy,ZodUnknown:()=>xy,ZodUnion:()=>jy,ZodUndefined:()=>my,ZodUUID:()=>sv,ZodURL:()=>hv,ZodULID:()=>wv,ZodType:()=>Yg,ZodTuple:()=>By,ZodTransform:()=>sb,ZodTemplateLiteral:()=>Db,ZodSymbol:()=>dy,ZodSuccess:()=>_b,ZodStringFormat:()=>rv,ZodString:()=>ev,ZodSet:()=>Yy,ZodRecord:()=>qy,ZodReadonly:()=>Cb,ZodPromise:()=>jb,ZodPrefault:()=>gb,ZodPipe:()=>Pb,ZodOptional:()=>ub,ZodObject:()=>Dy,ZodNumberFormat:()=>ey,ZodNumber:()=>Yv,ZodNullable:()=>pb,ZodNull:()=>vy,ZodNonOptional:()=>yb,ZodNever:()=>wy,ZodNanoID:()=>vv,ZodNaN:()=>Sb,ZodMap:()=>Ky,ZodMAC:()=>Tv,ZodLiteral:()=>nb,ZodLazy:()=>Mb,ZodKSUID:()=>$v,ZodJWT:()=>Gv,ZodIntersection:()=>Zy,ZodIPv6:()=>zv,ZodIPv4:()=>Av,ZodGUID:()=>av,ZodFunction:()=>Nb,ZodFile:()=>ab,ZodEnum:()=>eb,ZodEmoji:()=>mv,ZodEmail:()=>nv,ZodE164:()=>Vv,ZodDiscriminatedUnion:()=>Uy,ZodDefault:()=>fb,ZodDate:()=>$y,ZodCustomStringFormat:()=>Hv,ZodCustom:()=>Ub,ZodCodec:()=>Eb,ZodCatch:()=>kb,ZodCUID2:()=>xv,ZodCUID:()=>bv,ZodCIDRv6:()=>Fv,ZodCIDRv4:()=>Ov,ZodBoolean:()=>oy,ZodBigIntFormat:()=>cy,ZodBigInt:()=>ly,ZodBase64URL:()=>Lv,ZodBase64:()=>Rv,ZodArray:()=>Ay,ZodAny:()=>by});var $g={};so($g,{uppercase:()=>Uf,trim:()=>Wf,toUpperCase:()=>Kf,toLowerCase:()=>Jf,startsWith:()=>Zf,slugify:()=>Xf,size:()=>Mf,regex:()=>Nf,property:()=>Bf,positive:()=>$f,overwrite:()=>qf,normalize:()=>Hf,nonpositive:()=>Af,nonnegative:()=>Cf,negative:()=>Ef,multipleOf:()=>Tf,minSize:()=>zf,minLength:()=>jf,mime:()=>Gf,maxSize:()=>Df,maxLength:()=>Of,lte:()=>Sf,lt:()=>wf,lowercase:()=>Rf,length:()=>Ff,includes:()=>Lf,gte:()=>Pf,gt:()=>If,endsWith:()=>Vf});var Eg={};so(Eg,{time:()=>Mg,duration:()=>jg,datetime:()=>Cg,date:()=>Dg,ZodISOTime:()=>zg,ZodISODuration:()=>Og,ZodISODateTime:()=>Ag,ZodISODate:()=>Tg});var Ag=po("ZodISODateTime",((e,t)=>{tc.init(e,t),rv.init(e,t)}));function Cg(e){return Jd(Ag,e)}var Tg=po("ZodISODate",((e,t)=>{rc.init(e,t),rv.init(e,t)}));function Dg(e){return Kd(Tg,e)}var zg=po("ZodISOTime",((e,t)=>{nc.init(e,t),rv.init(e,t)}));function Mg(e){return Xd(zg,e)}var Og=po("ZodISODuration",((e,t)=>{ic.init(e,t),rv.init(e,t)}));function jg(e){return Yd(Og,e)}var Fg=(e,t)=>{Es.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>Ts(e,t)},flatten:{value:t=>Cs(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Po,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Po,2)}},isEmpty:{get:()=>0===e.issues.length}})},Ng=po("ZodError",Fg),Rg=po("ZodError",Fg,{Parent:Error}),Ug=Os(Rg),Lg=Fs(Rg),Zg=Rs(Rg),Vg=Ls(Rg),Bg=Vs(Rg),Gg=Gs(Rg),qg=Hs(Rg),Hg=Js(Rg),Wg=Xs(Rg),Jg=Qs(Rg),Kg=tl(Rg),Xg=nl(Rg),Yg=po("ZodType",((e,t)=>(Lu.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Fm(e,"input"),output:Fm(e,"output")}}),e.toJSONSchema=jm(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(yo.mergeDefs(t,{checks:[...t.checks??[],...r.map((e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e))]})),e.clone=(t,r)=>Yo(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>Ug(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>Zg(e,t,r),e.parseAsync=async(t,r)=>Lg(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>Vg(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>Bg(e,t,r),e.decode=(t,r)=>Gg(e,t,r),e.encodeAsync=async(t,r)=>qg(e,t,r),e.decodeAsync=async(t,r)=>Hg(e,t,r),e.safeEncode=(t,r)=>Wg(e,t,r),e.safeDecode=(t,r)=>Jg(e,t,r),e.safeEncodeAsync=async(t,r)=>Kg(e,t,r),e.safeDecodeAsync=async(t,r)=>Xg(e,t,r),e.refine=(t,r)=>e.check(Vb(t,r)),e.superRefine=t=>e.check(Bb(t)),e.overwrite=t=>e.check(qf(t)),e.optional=()=>cb(e),e.nullable=()=>hb(e),e.nullish=()=>cb(hb(e)),e.nonoptional=t=>bb(e,t),e.array=()=>Cy(e),e.or=t=>Fy([e,t]),e.and=t=>Vy(e,t),e.transform=t=>$b(e,lb(t)),e.default=t=>mb(e,t),e.prefault=t=>vb(e,t),e.catch=t=>wb(e,t),e.pipe=t=>$b(e,t),e.readonly=()=>Tb(e),e.describe=t=>{let r=e.clone();return kd.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>kd.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return kd.get(e);let r=e.clone();return kd.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e))),Qg=po("_ZodString",((e,t)=>{Zu.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>Rm(e,t,r);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(Nf(...t)),e.includes=(...t)=>e.check(Lf(...t)),e.startsWith=(...t)=>e.check(Zf(...t)),e.endsWith=(...t)=>e.check(Vf(...t)),e.min=(...t)=>e.check(jf(...t)),e.max=(...t)=>e.check(Of(...t)),e.length=(...t)=>e.check(Ff(...t)),e.nonempty=(...t)=>e.check(jf(1,...t)),e.lowercase=t=>e.check(Rf(t)),e.uppercase=t=>e.check(Uf(t)),e.trim=()=>e.check(Wf()),e.normalize=(...t)=>e.check(Hf(...t)),e.toLowerCase=()=>e.check(Jf()),e.toUpperCase=()=>e.check(Kf()),e.slugify=()=>e.check(Xf())})),ev=po("ZodString",((e,t)=>{Zu.init(e,t),Qg.init(e,t),e.email=t=>e.check(Id(nv,t)),e.url=t=>e.check(Td(hv,t)),e.jwt=t=>e.check(Hd(Gv,t)),e.emoji=t=>e.check(Dd(mv,t)),e.guid=t=>e.check(Pd(av,t)),e.uuid=t=>e.check($d(sv,t)),e.uuidv4=t=>e.check(Ed(sv,t)),e.uuidv6=t=>e.check(Ad(sv,t)),e.uuidv7=t=>e.check(Cd(sv,t)),e.nanoid=t=>e.check(zd(vv,t)),e.guid=t=>e.check(Pd(av,t)),e.cuid=t=>e.check(Md(bv,t)),e.cuid2=t=>e.check(Od(xv,t)),e.ulid=t=>e.check(jd(wv,t)),e.base64=t=>e.check(Bd(Rv,t)),e.base64url=t=>e.check(Gd(Lv,t)),e.xid=t=>e.check(Fd(Iv,t)),e.ksuid=t=>e.check(Nd($v,t)),e.ipv4=t=>e.check(Rd(Av,t)),e.ipv6=t=>e.check(Ud(zv,t)),e.cidrv4=t=>e.check(Zd(Ov,t)),e.cidrv6=t=>e.check(Vd(Fv,t)),e.e164=t=>e.check(qd(Vv,t)),e.datetime=t=>e.check(Cg(t)),e.date=t=>e.check(Dg(t)),e.time=t=>e.check(Mg(t)),e.duration=t=>e.check(jg(t))}));function tv(e){return wd(ev,e)}var rv=po("ZodStringFormat",((e,t)=>{Vu.init(e,t),Qg.init(e,t)})),nv=po("ZodEmail",((e,t)=>{qu.init(e,t),rv.init(e,t)}));function iv(e){return Id(nv,e)}var av=po("ZodGUID",((e,t)=>{Bu.init(e,t),rv.init(e,t)}));function ov(e){return Pd(av,e)}var sv=po("ZodUUID",((e,t)=>{Gu.init(e,t),rv.init(e,t)}));function lv(e){return $d(sv,e)}function uv(e){return Ed(sv,e)}function cv(e){return Ad(sv,e)}function pv(e){return Cd(sv,e)}var hv=po("ZodURL",((e,t)=>{Hu.init(e,t),rv.init(e,t)}));function dv(e){return Td(hv,e)}function fv(e){return Td(hv,{protocol:/^https?$/,hostname:al.domain,...yo.normalizeParams(e)})}var mv=po("ZodEmoji",((e,t)=>{Wu.init(e,t),rv.init(e,t)}));function gv(e){return Dd(mv,e)}var vv=po("ZodNanoID",((e,t)=>{Ju.init(e,t),rv.init(e,t)}));function yv(e){return zd(vv,e)}var bv=po("ZodCUID",((e,t)=>{Ku.init(e,t),rv.init(e,t)}));function _v(e){return Md(bv,e)}var xv=po("ZodCUID2",((e,t)=>{Xu.init(e,t),rv.init(e,t)}));function kv(e){return Od(xv,e)}var wv=po("ZodULID",((e,t)=>{Yu.init(e,t),rv.init(e,t)}));function Sv(e){return jd(wv,e)}var Iv=po("ZodXID",((e,t)=>{Qu.init(e,t),rv.init(e,t)}));function Pv(e){return Fd(Iv,e)}var $v=po("ZodKSUID",((e,t)=>{ec.init(e,t),rv.init(e,t)}));function Ev(e){return Nd($v,e)}var Av=po("ZodIPv4",((e,t)=>{ac.init(e,t),rv.init(e,t)}));function Cv(e){return Rd(Av,e)}var Tv=po("ZodMAC",((e,t)=>{sc.init(e,t),rv.init(e,t)}));function Dv(e){return Ld(Tv,e)}var zv=po("ZodIPv6",((e,t)=>{oc.init(e,t),rv.init(e,t)}));function Mv(e){return Ud(zv,e)}var Ov=po("ZodCIDRv4",((e,t)=>{lc.init(e,t),rv.init(e,t)}));function jv(e){return Zd(Ov,e)}var Fv=po("ZodCIDRv6",((e,t)=>{uc.init(e,t),rv.init(e,t)}));function Nv(e){return Vd(Fv,e)}var Rv=po("ZodBase64",((e,t)=>{pc.init(e,t),rv.init(e,t)}));function Uv(e){return Bd(Rv,e)}var Lv=po("ZodBase64URL",((e,t)=>{dc.init(e,t),rv.init(e,t)}));function Zv(e){return Gd(Lv,e)}var Vv=po("ZodE164",((e,t)=>{fc.init(e,t),rv.init(e,t)}));function Bv(e){return qd(Vv,e)}var Gv=po("ZodJWT",((e,t)=>{gc.init(e,t),rv.init(e,t)}));function qv(e){return Hd(Gv,e)}var Hv=po("ZodCustomStringFormat",((e,t)=>{vc.init(e,t),rv.init(e,t)}));function Wv(e,t,r={}){return Cm(Hv,e,t,r)}function Jv(e){return Cm(Hv,"hostname",al.hostname,e)}function Kv(e){return Cm(Hv,"hex",al.hex,e)}function Xv(e,t){let r=`${e}_${t?.enc??"hex"}`,n=al[r];if(!n)throw Error(`Unrecognized hash format: ${r}`);return Cm(Hv,r,n,t)}var Yv=po("ZodNumber",((e,t)=>{yc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>Um(e,t,r),e.gt=(t,r)=>e.check(If(t,r)),e.gte=(t,r)=>e.check(Pf(t,r)),e.min=(t,r)=>e.check(Pf(t,r)),e.lt=(t,r)=>e.check(wf(t,r)),e.lte=(t,r)=>e.check(Sf(t,r)),e.max=(t,r)=>e.check(Sf(t,r)),e.int=t=>e.check(ty(t)),e.safe=t=>e.check(ty(t)),e.positive=t=>e.check(If(0,t)),e.nonnegative=t=>e.check(Pf(0,t)),e.negative=t=>e.check(wf(0,t)),e.nonpositive=t=>e.check(Sf(0,t)),e.multipleOf=(t,r)=>e.check(Tf(t,r)),e.step=(t,r)=>e.check(Tf(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null}));function Qv(e){return Qd(Yv,e)}var ey=po("ZodNumberFormat",((e,t)=>{bc.init(e,t),Yv.init(e,t)}));function ty(e){return tf(ey,e)}function ry(e){return rf(ey,e)}function ny(e){return nf(ey,e)}function iy(e){return af(ey,e)}function ay(e){return of(ey,e)}var oy=po("ZodBoolean",((e,t)=>{_c.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>Lm(0,0,t)}));function sy(e){return sf(oy,e)}var ly=po("ZodBigInt",((e,t)=>{xc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>Zm(0,e),e.gte=(t,r)=>e.check(Pf(t,r)),e.min=(t,r)=>e.check(Pf(t,r)),e.gt=(t,r)=>e.check(If(t,r)),e.gte=(t,r)=>e.check(Pf(t,r)),e.min=(t,r)=>e.check(Pf(t,r)),e.lt=(t,r)=>e.check(wf(t,r)),e.lte=(t,r)=>e.check(Sf(t,r)),e.max=(t,r)=>e.check(Sf(t,r)),e.positive=t=>e.check(If(BigInt(0),t)),e.negative=t=>e.check(wf(BigInt(0),t)),e.nonpositive=t=>e.check(Sf(BigInt(0),t)),e.nonnegative=t=>e.check(Pf(BigInt(0),t)),e.multipleOf=(t,r)=>e.check(Tf(t,r));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null}));function uy(e){return uf(ly,e)}var cy=po("ZodBigIntFormat",((e,t)=>{kc.init(e,t),ly.init(e,t)}));function py(e){return pf(cy,e)}function hy(e){return hf(cy,e)}var dy=po("ZodSymbol",((e,t)=>{wc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>Vm(0,e)}));function fy(e){return df(dy,e)}var my=po("ZodUndefined",((e,t)=>{Sc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>Gm(0,e)}));function gy(e){return ff(my,e)}var vy=po("ZodNull",((e,t)=>{Ic.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>Bm(0,e,t)}));function yy(e){return mf(vy,e)}var by=po("ZodAny",((e,t)=>{Pc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}}));function _y(){return gf(by)}var xy=po("ZodUnknown",((e,t)=>{$c.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}}));function ky(){return vf(xy)}var wy=po("ZodNever",((e,t)=>{Ec.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>Hm(0,0,t)}));function Sy(e){return yf(wy,e)}var Iy=po("ZodVoid",((e,t)=>{Ac.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>qm(0,e)}));function Py(e){return bf(Iy,e)}var $y=po("ZodDate",((e,t)=>{Cc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>Wm(0,e),e.min=(t,r)=>e.check(Pf(t,r)),e.max=(t,r)=>e.check(Sf(t,r));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null}));function Ey(e){return _f($y,e)}var Ay=po("ZodArray",((e,t)=>{Dc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>og(e,t,r,n),e.element=t.element,e.min=(t,r)=>e.check(jf(t,r)),e.nonempty=t=>e.check(jf(1,t)),e.max=(t,r)=>e.check(Of(t,r)),e.length=(t,r)=>e.check(Ff(t,r)),e.unwrap=()=>e.element}));function Cy(e,t){return Yf(Ay,e,t)}function Ty(e){let t=e._zod.def.shape;return tb(Object.keys(t))}var Dy=po("ZodObject",((e,t)=>{Fc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>sg(e,t,r,n),yo.defineLazy(e,"shape",(()=>t.shape)),e.keyof=()=>tb(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ky()}),e.loose=()=>e.clone({...e._zod.def,catchall:ky()}),e.strict=()=>e.clone({...e._zod.def,catchall:Sy()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>yo.extend(e,t),e.safeExtend=t=>yo.safeExtend(e,t),e.merge=t=>yo.merge(e,t),e.pick=t=>yo.pick(e,t),e.omit=t=>yo.omit(e,t),e.partial=(...t)=>yo.partial(ub,e,t[0]),e.required=(...t)=>yo.required(yb,e,t[0])}));function zy(e,t){let r={type:"object",shape:e??{},...yo.normalizeParams(t)};return new Dy(r)}function My(e,t){return new Dy({type:"object",shape:e,catchall:Sy(),...yo.normalizeParams(t)})}function Oy(e,t){return new Dy({type:"object",shape:e,catchall:ky(),...yo.normalizeParams(t)})}var jy=po("ZodUnion",((e,t)=>{Rc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>lg(e,t,r,n),e.options=t.options}));function Fy(e,t){return new jy({type:"union",options:e,...yo.normalizeParams(t)})}var Ny=po("ZodXor",((e,t)=>{jy.init(e,t),Lc.init(e,t),e._zod.processJSONSchema=(t,r,n)=>lg(e,t,r,n),e.options=t.options}));function Ry(e,t){return new Ny({type:"union",options:e,inclusive:!1,...yo.normalizeParams(t)})}var Uy=po("ZodDiscriminatedUnion",((e,t)=>{jy.init(e,t),Zc.init(e,t)}));function Ly(e,t,r){return new Uy({type:"union",options:t,discriminator:e,...yo.normalizeParams(r)})}var Zy=po("ZodIntersection",((e,t)=>{Vc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>ug(e,t,r,n)}));function Vy(e,t){return new Zy({type:"intersection",left:e,right:t})}var By=po("ZodTuple",((e,t)=>{qc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>cg(e,t,r,n),e.rest=t=>e.clone({...e._zod.def,rest:t})}));function Gy(e,t,r){let n=t instanceof Lu,i=n?r:t;return new By({type:"tuple",items:e,rest:n?t:null,...yo.normalizeParams(i)})}var qy=po("ZodRecord",((e,t)=>{Wc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>pg(e,t,r,n),e.keyType=t.keyType,e.valueType=t.valueType}));function Hy(e,t,r){return new qy({type:"record",keyType:e,valueType:t,...yo.normalizeParams(r)})}function Wy(e,t,r){let n=Yo(e);return n._zod.values=void 0,new qy({type:"record",keyType:n,valueType:t,...yo.normalizeParams(r)})}function Jy(e,t,r){return new qy({type:"record",keyType:e,valueType:t,mode:"loose",...yo.normalizeParams(r)})}var Ky=po("ZodMap",((e,t)=>{Jc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>ig(0,e),e.keyType=t.keyType,e.valueType=t.valueType}));function Xy(e,t,r){return new Ky({type:"map",keyType:e,valueType:t,...yo.normalizeParams(r)})}var Yy=po("ZodSet",((e,t)=>{Xc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>ag(0,e),e.min=(...t)=>e.check(zf(...t)),e.nonempty=t=>e.check(zf(1,t)),e.max=(...t)=>e.check(Df(...t)),e.size=(...t)=>e.check(Mf(...t))}));function Qy(e,t){return new Yy({type:"set",valueType:e,...yo.normalizeParams(t)})}var eb=po("ZodEnum",((e,t)=>{Qc.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>Jm(e,0,r),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e){if(!r.has(n))throw Error(`Key ${n} not found in enum`);i[n]=t.entries[n]}return new eb({...t,checks:[],...yo.normalizeParams(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e){if(!r.has(t))throw Error(`Key ${t} not found in enum`);delete i[t]}return new eb({...t,checks:[],...yo.normalizeParams(n),entries:i})}}));function tb(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map((e=>[e,e]))):e;return new eb({type:"enum",entries:r,...yo.normalizeParams(t)})}function rb(e,t){return new eb({type:"enum",entries:e,...yo.normalizeParams(t)})}var nb=po("ZodLiteral",((e,t)=>{ep.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>Km(e,t,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}));function ib(e,t){return new nb({type:"literal",values:Array.isArray(e)?e:[e],...yo.normalizeParams(t)})}var ab=po("ZodFile",((e,t)=>{tp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>Qm(e,0,r),e.min=(t,r)=>e.check(zf(t,r)),e.max=(t,r)=>e.check(Df(t,r)),e.mime=(t,r)=>e.check(Gf(Array.isArray(t)?t:[t],r))}));function ob(e){return cm(ab,e)}var sb=po("ZodTransform",((e,t)=>{rp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>ng(0,e),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new mo(e.constructor.name);r.addIssue=n=>{if("string"==typeof n)r.issues.push(yo.issue(n,r.value,t));else{let t=n;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=r.value),t.inst??(t.inst=e),r.issues.push(yo.issue(t))}};let i=t.transform(r.value,r);return i instanceof Promise?i.then((e=>(r.value=e,r))):(r.value=i,r)}}));function lb(e){return new sb({type:"transform",transform:e})}var ub=po("ZodOptional",((e,t)=>{ip.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>_g(e,t,0,n),e.unwrap=()=>e._zod.def.innerType}));function cb(e){return new ub({type:"optional",innerType:e})}var pb=po("ZodNullable",((e,t)=>{ap.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>hg(e,t,r,n),e.unwrap=()=>e._zod.def.innerType}));function hb(e){return new pb({type:"nullable",innerType:e})}function db(e){return cb(hb(e))}var fb=po("ZodDefault",((e,t)=>{op.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>fg(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}));function mb(e,t){return new fb({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():yo.shallowClone(t)}})}var gb=po("ZodPrefault",((e,t)=>{lp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>mg(e,t,r,n),e.unwrap=()=>e._zod.def.innerType}));function vb(e,t){return new gb({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():yo.shallowClone(t)}})}var yb=po("ZodNonOptional",((e,t)=>{up.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>dg(e,t,0,n),e.unwrap=()=>e._zod.def.innerType}));function bb(e,t){return new yb({type:"nonoptional",innerType:e,...yo.normalizeParams(t)})}var _b=po("ZodSuccess",((e,t)=>{pp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>eg(0,0,t),e.unwrap=()=>e._zod.def.innerType}));function xb(e){return new _b({type:"success",innerType:e})}var kb=po("ZodCatch",((e,t)=>{hp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>gg(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}));function wb(e,t){return new kb({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}var Sb=po("ZodNaN",((e,t)=>{dp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>Xm(0,e)}));function Ib(e){return kf(Sb,e)}var Pb=po("ZodPipe",((e,t)=>{fp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>vg(e,t,0,n),e.in=t.in,e.out=t.out}));function $b(e,t){return new Pb({type:"pipe",in:e,out:t})}var Eb=po("ZodCodec",((e,t)=>{Pb.init(e,t),gp.init(e,t)}));function Ab(e,t,r){return new Eb({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var Cb=po("ZodReadonly",((e,t)=>{bp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>yg(e,t,r,n),e.unwrap=()=>e._zod.def.innerType}));function Tb(e){return new Cb({type:"readonly",innerType:e})}var Db=po("ZodTemplateLiteral",((e,t)=>{xp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>Ym(e,0,r)}));function zb(e,t){return new Db({type:"template_literal",parts:e,...yo.normalizeParams(t)})}var Mb=po("ZodLazy",((e,t)=>{Sp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>xg(e,t,0,n),e.unwrap=()=>e._zod.def.getter()}));function Ob(e){return new Mb({type:"lazy",getter:e})}var jb=po("ZodPromise",((e,t)=>{wp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(t,r,n)=>bg(e,t,0,n),e.unwrap=()=>e._zod.def.innerType}));function Fb(e){return new jb({type:"promise",innerType:e})}var Nb=po("ZodFunction",((e,t)=>{kp.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>rg(0,e)}));function Rb(e){return new Nb({type:"function",input:Array.isArray(e?.input)?Gy(e?.input):e?.input??Cy(ky()),output:e?.output??ky()})}var Ub=po("ZodCustom",((e,t)=>{Ip.init(e,t),Yg.init(e,t),e._zod.processJSONSchema=(e,t,r)=>tg(0,e)}));function Lb(e){let t=new mu({check:"custom"});return t._zod.check=e,t}function Zb(e,t){return wm(Ub,e??(()=>!0),t)}function Vb(e,t={}){return Sm(Ub,e,t)}function Bb(e){return Im(e)}var Gb=$m,qb=Em;function Hb(e,t={error:`Input not instance of ${e.name}`}){let r=new Ub({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...yo.normalizeParams(t)});return r._zod.bag.Class=e,r}var Wb=(...e)=>Am({Codec:Eb,Boolean:oy,String:ev},...e);function Jb(e){let t=Ob((()=>Fy([tv(e),Qv(),sy(),yy(),Cy(t),Hy(tv(),t)])));return t}function Kb(e,t){return $b(lb(e),t)}var Xb,Yb={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Qb(e){vo({customError:e})}function e_(){return vo().customError}Xb||(Xb={});var t_={...Pg,...$g,iso:Eg};function r_(e,t){if(void 0!==e.not){if("object"==typeof e.not&&0===Object.keys(e.not).length)return t_.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==e.unevaluatedItems)throw Error("unevaluatedItems is not supported");if(void 0!==e.unevaluatedProperties)throw Error("unevaluatedProperties is not supported");if(void 0!==e.if||void 0!==e.then||void 0!==e.else)throw Error("Conditional schemas (if/then/else) are not supported");if(void 0!==e.dependentSchemas||void 0!==e.dependentRequired)throw Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return t_.lazy((()=>{if(!t.refs.has(r))throw Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)}));t.processing.add(r);let n=function(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(0===r.length)return t.rootSchema;let n="draft-2020-12"===t.version?"$defs":"definitions";if(r[0]===n){let n=r[1];if(!n||!t.defs[n])throw Error(`Reference not found: ${e}`);return t.defs[n]}throw Error(`Reference not found: ${e}`)}(r,t),i=n_(n,t);return t.refs.set(r,i),t.processing.delete(r),i}if(void 0!==e.enum){let r=e.enum;if("openapi-3.0"===t.version&&!0===e.nullable&&1===r.length&&null===r[0])return t_.null();if(0===r.length)return t_.never();if(1===r.length)return t_.literal(r[0]);if(r.every((e=>"string"==typeof e)))return t_.enum(r);let n=r.map((e=>t_.literal(e)));return n.length<2?n[0]:t_.union([n[0],n[1],...n.slice(2)])}if(void 0!==e.const)return t_.literal(e.const);let r,n=e.type;if(Array.isArray(n)){let r=n.map((r=>r_({...e,type:r},t)));return 0===r.length?t_.never():1===r.length?r[0]:t_.union(r)}if(!n)return t_.any();switch(n){case"string":{let t=t_.string();if(e.format){let r=e.format;"email"===r?t=t.check(t_.email()):"uri"===r||"uri-reference"===r?t=t.check(t_.url()):"uuid"===r||"guid"===r?t=t.check(t_.uuid()):"date-time"===r?t=t.check(t_.iso.datetime()):"date"===r?t=t.check(t_.iso.date()):"time"===r?t=t.check(t_.iso.time()):"duration"===r?t=t.check(t_.iso.duration()):"ipv4"===r?t=t.check(t_.ipv4()):"ipv6"===r?t=t.check(t_.ipv6()):"mac"===r?t=t.check(t_.mac()):"cidr"===r?t=t.check(t_.cidrv4()):"cidr-v6"===r?t=t.check(t_.cidrv6()):"base64"===r?t=t.check(t_.base64()):"base64url"===r?t=t.check(t_.base64url()):"e164"===r?t=t.check(t_.e164()):"jwt"===r?t=t.check(t_.jwt()):"emoji"===r?t=t.check(t_.emoji()):"nanoid"===r?t=t.check(t_.nanoid()):"cuid"===r?t=t.check(t_.cuid()):"cuid2"===r?t=t.check(t_.cuid2()):"ulid"===r?t=t.check(t_.ulid()):"xid"===r?t=t.check(t_.xid()):"ksuid"===r&&(t=t.check(t_.ksuid()))}"number"==typeof e.minLength&&(t=t.min(e.minLength)),"number"==typeof e.maxLength&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case"number":case"integer":{let t="integer"===n?t_.number().int():t_.number();"number"==typeof e.minimum&&(t=t.min(e.minimum)),"number"==typeof e.maximum&&(t=t.max(e.maximum)),"number"==typeof e.exclusiveMinimum?t=t.gt(e.exclusiveMinimum):!0===e.exclusiveMinimum&&"number"==typeof e.minimum&&(t=t.gt(e.minimum)),"number"==typeof e.exclusiveMaximum?t=t.lt(e.exclusiveMaximum):!0===e.exclusiveMaximum&&"number"==typeof e.maximum&&(t=t.lt(e.maximum)),"number"==typeof e.multipleOf&&(t=t.multipleOf(e.multipleOf)),r=t;break}case"boolean":r=t_.boolean();break;case"null":r=t_.null();break;case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=n_(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=n_(e.propertyNames,t),a=e.additionalProperties&&"object"==typeof e.additionalProperties?n_(e.additionalProperties,t):t_.any();if(0===Object.keys(n).length){r=t_.record(i,a);break}let o=t_.object(n).passthrough(),s=t_.looseRecord(i,a);r=t_.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let r=n_(i[e],t),n=t_.string().regex(new RegExp(e));o.push(t_.looseRecord(n,r))}let s=[];if(Object.keys(n).length>0&&s.push(t_.object(n).passthrough()),s.push(...o),0===s.length)r=t_.object({}).passthrough();else if(1===s.length)r=s[0];else{let e=t_.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=t_.intersection(e,s[t]);r=e}break}let o=t_.object(n);r=!1===e.additionalProperties?o.strict():"object"==typeof e.additionalProperties?o.catchall(n_(e.additionalProperties,t)):o.passthrough();break}case"array":{let{prefixItems:n,items:i}=e;if(n&&Array.isArray(n)){let a=n.map((e=>n_(e,t))),o=i&&"object"==typeof i&&!Array.isArray(i)?n_(i,t):void 0;r=o?t_.tuple(a).rest(o):t_.tuple(a),"number"==typeof e.minItems&&(r=r.check(t_.minLength(e.minItems))),"number"==typeof e.maxItems&&(r=r.check(t_.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map((e=>n_(e,t))),a=e.additionalItems&&"object"==typeof e.additionalItems?n_(e.additionalItems,t):void 0;r=a?t_.tuple(n).rest(a):t_.tuple(n),"number"==typeof e.minItems&&(r=r.check(t_.minLength(e.minItems))),"number"==typeof e.maxItems&&(r=r.check(t_.maxLength(e.maxItems)))}else if(void 0!==i){let n=n_(i,t),a=t_.array(n);"number"==typeof e.minItems&&(a=a.min(e.minItems)),"number"==typeof e.maxItems&&(a=a.max(e.maxItems)),r=a}else r=t_.array(t_.any());break}default:throw Error(`Unsupported type: ${n}`)}return e.description&&(r=r.describe(e.description)),void 0!==e.default&&(r=r.default(e.default)),r}function n_(e,t){if("boolean"==typeof e)return e?t_.any():t_.never();let r=r_(e,t),n=e.type||void 0!==e.enum||void 0!==e.const;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map((e=>n_(e,t))),a=t_.union(i);r=n?t_.intersection(r,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map((e=>n_(e,t))),a=t_.xor(i);r=n?t_.intersection(r,a):a}if(e.allOf&&Array.isArray(e.allOf))if(0===e.allOf.length)r=n?r:t_.any();else{let i=n?r:n_(e.allOf[0],t);for(let r=n?0:1;r<e.allOf.length;r++)i=t_.intersection(i,n_(e.allOf[r],t));r=i}return!0===e.nullable&&"openapi-3.0"===t.version&&(r=t_.nullable(r)),!0===e.readOnly&&(r=t_.readonly(r)),r}function i_(e,t){if("boolean"==typeof e)return e?t_.any():t_.never();let r=function(e,t){let r=e.$schema;return"https://json-schema.org/draft/2020-12/schema"===r?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===r?"draft-7":"http://json-schema.org/draft-04/schema#"===r?"draft-4":t??"draft-2020-12"}(e,t?.defaultTarget);return n_(e,{version:r,defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e})}var a_={};function o_(e){return Sd(ev,e)}function s_(e){return ef(Yv,e)}function l_(e){return lf(oy,e)}function u_(e){return cf(ly,e)}function c_(e){return xf($y,e)}so(a_,{string:()=>o_,number:()=>s_,date:()=>c_,boolean:()=>l_,bigint:()=>u_}),vo(qp());var p_=lo.union([lo.literal("light"),lo.literal("dark")]).describe("Color theme preference for the host environment."),h_=lo.union([lo.literal("inline"),lo.literal("fullscreen"),lo.literal("pip")]).describe("Display mode for UI presentation."),d_=lo.union([lo.literal("--color-background-primary"),lo.literal("--color-background-secondary"),lo.literal("--color-background-tertiary"),lo.literal("--color-background-inverse"),lo.literal("--color-background-ghost"),lo.literal("--color-background-info"),lo.literal("--color-background-danger"),lo.literal("--color-background-success"),lo.literal("--color-background-warning"),lo.literal("--color-background-disabled"),lo.literal("--color-text-primary"),lo.literal("--color-text-secondary"),lo.literal("--color-text-tertiary"),lo.literal("--color-text-inverse"),lo.literal("--color-text-info"),lo.literal("--color-text-danger"),lo.literal("--color-text-success"),lo.literal("--color-text-warning"),lo.literal("--color-text-disabled"),lo.literal("--color-text-ghost"),lo.literal("--color-border-primary"),lo.literal("--color-border-secondary"),lo.literal("--color-border-tertiary"),lo.literal("--color-border-inverse"),lo.literal("--color-border-ghost"),lo.literal("--color-border-info"),lo.literal("--color-border-danger"),lo.literal("--color-border-success"),lo.literal("--color-border-warning"),lo.literal("--color-border-disabled"),lo.literal("--color-ring-primary"),lo.literal("--color-ring-secondary"),lo.literal("--color-ring-inverse"),lo.literal("--color-ring-info"),lo.literal("--color-ring-danger"),lo.literal("--color-ring-success"),lo.literal("--color-ring-warning"),lo.literal("--font-sans"),lo.literal("--font-mono"),lo.literal("--font-weight-normal"),lo.literal("--font-weight-medium"),lo.literal("--font-weight-semibold"),lo.literal("--font-weight-bold"),lo.literal("--font-text-xs-size"),lo.literal("--font-text-sm-size"),lo.literal("--font-text-md-size"),lo.literal("--font-text-lg-size"),lo.literal("--font-heading-xs-size"),lo.literal("--font-heading-sm-size"),lo.literal("--font-heading-md-size"),lo.literal("--font-heading-lg-size"),lo.literal("--font-heading-xl-size"),lo.literal("--font-heading-2xl-size"),lo.literal("--font-heading-3xl-size"),lo.literal("--font-text-xs-line-height"),lo.literal("--font-text-sm-line-height"),lo.literal("--font-text-md-line-height"),lo.literal("--font-text-lg-line-height"),lo.literal("--font-heading-xs-line-height"),lo.literal("--font-heading-sm-line-height"),lo.literal("--font-heading-md-line-height"),lo.literal("--font-heading-lg-line-height"),lo.literal("--font-heading-xl-line-height"),lo.literal("--font-heading-2xl-line-height"),lo.literal("--font-heading-3xl-line-height"),lo.literal("--border-radius-xs"),lo.literal("--border-radius-sm"),lo.literal("--border-radius-md"),lo.literal("--border-radius-lg"),lo.literal("--border-radius-xl"),lo.literal("--border-radius-full"),lo.literal("--border-width-regular"),lo.literal("--shadow-hairline"),lo.literal("--shadow-sm"),lo.literal("--shadow-md"),lo.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),f_=lo.record(d_.describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation."),lo.union([lo.string(),lo.undefined()]).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.")).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.");lo.object({method:lo.literal("ui/open-link"),params:lo.object({url:lo.string().describe("URL to open in the host's browser")})}),lo.object({isError:lo.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),lo.object({isError:lo.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough(),lo.object({method:lo.literal("ui/notifications/sandbox-proxy-ready"),params:lo.object({})}),lo.object({method:lo.literal("ui/notifications/sandbox-resource-ready"),params:lo.object({html:lo.string().describe("HTML content to load into the inner iframe."),sandbox:lo.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:lo.object({connectDomains:lo.array(lo.string()).optional().describe("Origins for network requests (fetch/XHR/WebSocket)."),resourceDomains:lo.array(lo.string()).optional().describe("Origins for static resources (scripts, images, styles, fonts).")}).optional().describe("CSP configuration from resource metadata.")})}),lo.object({method:lo.literal("ui/notifications/size-changed"),params:lo.object({width:lo.number().optional().describe("New width in pixels."),height:lo.number().optional().describe("New height in pixels.")})}),lo.object({method:lo.literal("ui/notifications/tool-input"),params:lo.object({arguments:lo.record(lo.string(),lo.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),lo.object({method:lo.literal("ui/notifications/tool-input-partial"),params:lo.object({arguments:lo.record(lo.string(),lo.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),lo.object({method:lo.literal("ui/notifications/tool-cancelled"),params:lo.object({reason:lo.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})});var m_=lo.object({fonts:lo.string().optional().describe("CSS for font loading (@font-face rules or")}),g_=lo.object({variables:f_.optional().describe("CSS variables for theming the app."),css:m_.optional().describe("CSS blocks that apps can inject.")});lo.object({method:lo.literal("ui/resource-teardown"),params:lo.object({})}),lo.record(lo.string(),lo.unknown());var v_=lo.object({experimental:lo.object({}).optional().describe("Experimental features (structure TBD)."),openLinks:lo.object({}).optional().describe("Host supports opening external URLs."),serverTools:lo.object({listChanged:lo.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:lo.object({listChanged:lo.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:lo.object({}).optional().describe("Host accepts log messages.")}),y_=lo.object({experimental:lo.object({}).optional().describe("Experimental features (structure TBD)."),tools:lo.object({listChanged:lo.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call.")});lo.object({method:lo.literal("ui/notifications/initialized"),params:lo.object({}).optional()});var b_=lo.object({connectDomains:lo.array(lo.string()).optional().describe("Origins for network requests (fetch/XHR/WebSocket)."),resourceDomains:lo.array(lo.string()).optional().describe("Origins for static resources (scripts, images, styles, fonts).")});lo.object({csp:b_.optional().describe("Content Security Policy configuration."),domain:lo.string().optional().describe("Dedicated origin for widget sandbox."),prefersBorder:lo.boolean().optional().describe("Visual boundary preference - true if UI prefers a visible border.")}),lo.object({method:lo.literal("ui/request-display-mode"),params:lo.object({mode:h_.describe("The display mode being requested.")})}),lo.object({mode:h_.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough();var __=lo.union([lo.literal("model"),lo.literal("app")]).describe("Tool visibility scope - who can access the tool.");lo.object({resourceUri:lo.string(),visibility:lo.array(__).optional().describe('Who can access this tool. Default: ["model", "app"]\n- "model": Tool visible to and callable by the agent\n- "app": Tool callable by the app from this server only')}),lo.object({method:lo.literal("ui/message"),params:lo.object({role:lo.literal("user").describe('Message role, currently only "user" is supported.'),content:lo.array(sa).describe("Message content blocks (text, image, etc.).")})}),lo.object({method:lo.literal("ui/notifications/tool-result"),params:ga.describe("Standard MCP tool execution result.")});var x_=lo.object({toolInfo:lo.object({id:Rn.describe("JSON-RPC id of the tools/call request."),tool:da.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:p_.optional().describe("Current color theme preference."),styles:g_.optional().describe("Style configuration for theming the app."),displayMode:h_.optional().describe("How the UI is currently displayed."),availableDisplayModes:lo.array(lo.string()).optional().describe("Display modes the host supports."),viewport:lo.object({width:lo.number().describe("Current viewport width in pixels."),height:lo.number().describe("Current viewport height in pixels."),maxHeight:lo.number().optional().describe("Maximum available height in pixels (if constrained)."),maxWidth:lo.number().optional().describe("Maximum available width in pixels (if constrained).")}).optional().describe("Current and maximum dimensions available to the UI."),locale:lo.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:lo.string().optional().describe("User's timezone in IANA format."),userAgent:lo.string().optional().describe("Host application identifier."),platform:lo.union([lo.literal("web"),lo.literal("desktop"),lo.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:lo.object({touch:lo.boolean().optional().describe("Whether the device supports touch input."),hover:lo.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:lo.object({top:lo.number().describe("Top safe area inset in pixels."),right:lo.number().describe("Right safe area inset in pixels."),bottom:lo.number().describe("Bottom safe area inset in pixels."),left:lo.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();lo.object({method:lo.literal("ui/notifications/host-context-changed"),params:x_.describe("Partial context update containing only changed fields.")}),lo.object({method:lo.literal("ui/initialize"),params:lo.object({appInfo:Yn.describe("App identification (name and version)."),appCapabilities:y_.describe("Features and capabilities this app provides."),protocolVersion:lo.string().describe("Protocol version this app supports.")})}),lo.object({protocolVersion:lo.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Yn.describe("Host application identification and version."),hostCapabilities:v_.describe("Features and capabilities provided by the host."),hostContext:x_.describe("Rich context about the host environment.")}).passthrough();var k_="text/html;profile=mcp-app";const w_="mcpui.dev/ui-",S_='var __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);\n return value;\n};\nclass MCPUIAppsSdkAdapter {\n constructor(config = {}) {\n __publicField(this, "config");\n __publicField(this, "pendingRequests", /* @__PURE__ */ new Map());\n __publicField(this, "messageIdCounter", 0);\n __publicField(this, "originalPostMessage", null);\n this.config = {\n logger: config.logger || console,\n hostOrigin: config.hostOrigin || window.location.origin,\n timeout: config.timeout || 3e4,\n intentHandling: config.intentHandling || "prompt"\n };\n }\n /**\n * Initialize the adapter and monkey-patch postMessage if Apps SDK is present\n */\n install() {\n if (!window.openai) {\n this.config.logger.warn("[MCPUI-Apps SDK Adapter] window.openai not detected. Adapter will not activate.");\n return false;\n }\n this.config.logger.log("[MCPUI-Apps SDK Adapter] Initializing adapter...");\n this.patchPostMessage();\n this.setupAppsSdkEventListeners();\n this.sendRenderData();\n this.config.logger.log("[MCPUI-Apps SDK Adapter] Adapter initialized successfully");\n return true;\n }\n /**\n * Clean up pending requests and restore original postMessage\n */\n uninstall() {\n for (const request of this.pendingRequests.values()) {\n clearTimeout(request.timeoutId);\n request.reject(new Error("Adapter uninstalled"));\n }\n this.pendingRequests.clear();\n if (this.originalPostMessage) {\n try {\n const parentWindow = window.parent ?? null;\n if (parentWindow) {\n parentWindow.postMessage = this.originalPostMessage;\n }\n this.config.logger.log("[MCPUI-Apps SDK Adapter] Restored original parent.postMessage");\n } catch (error) {\n this.config.logger.error("[MCPUI-Apps SDK Adapter] Failed to restore original postMessage:", error);\n }\n }\n this.config.logger.log("[MCPUI-Apps SDK Adapter] Adapter uninstalled");\n }\n /**\n * Monkey-patch parent.postMessage to intercept MCP-UI messages\n * and forward non-MCP-UI messages to the original postMessage\n */\n patchPostMessage() {\n const parentWindow = window.parent ?? null;\n this.originalPostMessage = parentWindow?.postMessage?.bind(parentWindow) ?? null;\n if (!this.originalPostMessage) {\n this.config.logger.debug("[MCPUI-Apps SDK Adapter] parent.postMessage does not exist, installing shim only");\n } else {\n this.config.logger.debug("[MCPUI-Apps SDK Adapter] Monkey-patching parent.postMessage to intercept MCP-UI messages");\n }\n const postMessageInterceptor = (message, targetOriginOrOptions, transfer) => {\n if (this.isMCPUIMessage(message)) {\n const mcpMessage = message;\n this.config.logger.debug("[MCPUI-Apps SDK Adapter] Intercepted MCP-UI message:", mcpMessage.type);\n this.handleMCPUIMessage(mcpMessage);\n } else {\n if (this.originalPostMessage) {\n this.config.logger.debug("[MCPUI-Apps SDK Adapter] Forwarding non-MCP-UI message to original postMessage");\n if (typeof targetOriginOrOptions === "string" || targetOriginOrOptions === void 0) {\n const targetOrigin = targetOriginOrOptions ?? "*";\n this.originalPostMessage(message, targetOrigin, transfer);\n } else {\n this.originalPostMessage(message, targetOriginOrOptions);\n }\n } else {\n this.config.logger.warn("[MCPUI-Apps SDK Adapter] No original postMessage to forward to, ignoring message:", message);\n }\n }\n };\n try {\n if (parentWindow) {\n parentWindow.postMessage = postMessageInterceptor;\n }\n } catch (error) {\n this.config.logger.error("[MCPUI-Apps SDK Adapter] Failed to monkey-patch parent.postMessage:", error);\n }\n }\n /**\n * Check if a message is an MCP-UI protocol message\n */\n isMCPUIMessage(message) {\n if (!message || typeof message !== "object") {\n return false;\n }\n const msg = message;\n return typeof msg.type === "string" && (msg.type.startsWith("ui-") || ["tool", "prompt", "intent", "notify", "link"].includes(msg.type));\n }\n /**\n * Handle incoming MCP-UI messages and translate to Apps SDK actions\n */\n async handleMCPUIMessage(message) {\n this.config.logger.debug("[MCPUI-Apps SDK Adapter] Received MCPUI message:", message.type);\n try {\n switch (message.type) {\n case "tool":\n await this.handleToolMessage(message);\n break;\n case "prompt":\n await this.handlePromptMessage(message);\n break;\n case "intent":\n await this.handleIntentMessage(message);\n break;\n case "notify":\n await this.handleNotifyMessage(message);\n break;\n case "link":\n await this.handleLinkMessage(message);\n break;\n case "ui-lifecycle-iframe-ready":\n this.sendRenderData();\n break;\n case "ui-request-render-data":\n this.sendRenderData(message.messageId);\n break;\n case "ui-size-change":\n this.handleSizeChange(message);\n break;\n case "ui-request-data":\n this.handleRequestData(message);\n break;\n default:\n this.config.logger.warn("[MCPUI-Apps SDK Adapter] Unknown message type:", message.type);\n }\n } catch (error) {\n this.config.logger.error("[MCPUI-Apps SDK Adapter] Error handling message:", error);\n if (message.messageId) {\n this.sendErrorResponse(message.messageId, error);\n }\n }\n }\n /**\n * Handle \'tool\' message - call Apps SDK tool\n */\n async handleToolMessage(message) {\n if (message.type !== "tool")\n return;\n const { toolName, params } = message.payload;\n const messageId = message.messageId || this.generateMessageId();\n this.sendAcknowledgment(messageId);\n try {\n if (!window.openai?.callTool) {\n throw new Error("Tool calling is not supported in this environment");\n }\n const result = await this.withTimeout(\n window.openai.callTool(toolName, params),\n messageId\n );\n this.sendSuccessResponse(messageId, result);\n } catch (error) {\n this.sendErrorResponse(messageId, error);\n }\n }\n /**\n * Handle \'prompt\' message - send followup turn\n */\n async handlePromptMessage(message) {\n if (message.type !== "prompt")\n return;\n const prompt = message.payload.prompt;\n const messageId = message.messageId || this.generateMessageId();\n this.sendAcknowledgment(messageId);\n try {\n if (!window.openai?.sendFollowUpMessage) {\n throw new Error("Followup turns are not supported in this environment");\n }\n await this.withTimeout(\n window.openai.sendFollowUpMessage({ prompt }),\n messageId\n );\n this.sendSuccessResponse(messageId, { success: true });\n } catch (error) {\n this.sendErrorResponse(messageId, error);\n }\n }\n /**\n * Handle \'intent\' message - convert to prompt or ignore based on config\n */\n async handleIntentMessage(message) {\n if (message.type !== "intent")\n return;\n const messageId = message.messageId || this.generateMessageId();\n this.sendAcknowledgment(messageId);\n if (this.config.intentHandling === "ignore") {\n this.config.logger.log("[MCPUI-Apps SDK Adapter] Intent ignored:", message.payload.intent);\n this.sendSuccessResponse(messageId, { ignored: true });\n return;\n }\n const { intent, params } = message.payload;\n const prompt = `${intent}${params ? `: ${JSON.stringify(params)}` : ""}`;\n try {\n if (!window.openai?.sendFollowUpMessage) {\n throw new Error("Followup turns are not supported in this environment");\n }\n await this.withTimeout(\n window.openai.sendFollowUpMessage({ prompt }),\n messageId\n );\n this.sendSuccessResponse(messageId, { success: true });\n } catch (error) {\n this.sendErrorResponse(messageId, error);\n }\n }\n /**\n * Handle \'notify\' message - log only\n */\n async handleNotifyMessage(message) {\n if (message.type !== "notify")\n return;\n const messageId = message.messageId || this.generateMessageId();\n this.config.logger.log("[MCPUI-Apps SDK Adapter] Notification:", message.payload.message);\n this.sendAcknowledgment(messageId);\n this.sendSuccessResponse(messageId, { acknowledged: true });\n }\n /**\n * Handle \'link\' message - not supported in Apps SDK environments\n */\n async handleLinkMessage(message) {\n if (message.type !== "link")\n return;\n const messageId = message.messageId || this.generateMessageId();\n this.sendAcknowledgment(messageId);\n this.sendErrorResponse(messageId, new Error("Navigation is not supported in Apps SDK environment"));\n }\n /**\n * Handle size change - no-op in Apps SDK environment\n */\n handleSizeChange(message) {\n this.config.logger.debug("[MCPUI-Apps SDK Adapter] Size change requested (no-op in Apps SDK):", message.payload);\n }\n /**\n * Handle generic data request\n */\n handleRequestData(message) {\n const messageId = message.messageId || this.generateMessageId();\n this.sendAcknowledgment(messageId);\n this.sendErrorResponse(messageId, new Error("Generic data requests not yet implemented"));\n }\n /**\n * Setup listeners for Apps SDK events\n */\n setupAppsSdkEventListeners() {\n window.addEventListener("openai:set_globals", () => {\n this.config.logger.debug("[MCPUI-Apps SDK Adapter] Globals updated");\n this.sendRenderData();\n });\n }\n /**\n * Gather render data from Apps SDK and send to widget\n */\n sendRenderData(requestMessageId) {\n if (!window.openai)\n return;\n const renderData = {\n toolInput: window.openai.toolInput,\n toolOutput: window.openai.toolOutput,\n widgetState: window.openai.widgetState,\n locale: window.openai.locale || "en-US",\n theme: window.openai.theme || "light",\n displayMode: window.openai.displayMode || "inline",\n maxHeight: window.openai.maxHeight\n };\n this.dispatchMessageToIframe({\n type: "ui-lifecycle-iframe-render-data",\n messageId: requestMessageId,\n payload: { renderData }\n });\n }\n /**\n * Send acknowledgment for a message\n */\n sendAcknowledgment(messageId) {\n this.dispatchMessageToIframe({\n type: "ui-message-received",\n payload: { messageId }\n });\n }\n /**\n * Send success response\n */\n sendSuccessResponse(messageId, response) {\n this.dispatchMessageToIframe({\n type: "ui-message-response",\n payload: { messageId, response }\n });\n }\n /**\n * Send error response\n */\n sendErrorResponse(messageId, error) {\n const errorObj = error instanceof Error ? { message: error.message, name: error.name } : { message: String(error) };\n this.dispatchMessageToIframe({\n type: "ui-message-response",\n payload: { messageId, error: errorObj }\n });\n }\n /**\n * Dispatch a MessageEvent to the iframe (widget)\n * Simulates messages that would normally come from the parent/host\n */\n dispatchMessageToIframe(data) {\n const event = new MessageEvent("message", {\n data,\n origin: this.config.hostOrigin,\n source: null\n });\n window.dispatchEvent(event);\n }\n /**\n * Wrap a promise with timeout\n */\n async withTimeout(promise, requestId) {\n return new Promise((resolve, reject) => {\n const timeoutId = setTimeout(() => {\n this.pendingRequests.delete(requestId);\n reject(new Error(`Request timed out after ${this.config.timeout}ms`));\n }, this.config.timeout);\n this.pendingRequests.set(requestId, {\n messageId: requestId,\n type: "generic",\n resolve,\n reject,\n timeoutId\n });\n promise.then((result) => {\n clearTimeout(timeoutId);\n this.pendingRequests.delete(requestId);\n resolve(result);\n }).catch((error) => {\n clearTimeout(timeoutId);\n this.pendingRequests.delete(requestId);\n reject(error);\n });\n });\n }\n /**\n * Generate a unique message ID\n */\n generateMessageId() {\n return `adapter-${Date.now()}-${++this.messageIdCounter}`;\n }\n}\nlet adapterInstance = null;\nfunction initAdapter(config) {\n if (adapterInstance) {\n console.warn("[MCPUI-Apps SDK Adapter] Adapter already initialized");\n return true;\n }\n adapterInstance = new MCPUIAppsSdkAdapter(config);\n return adapterInstance.install();\n}\nfunction uninstallAdapter() {\n if (adapterInstance) {\n adapterInstance.uninstall();\n adapterInstance = null;\n }\n}\n',I_='var __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);\n return value;\n};\nconst LATEST_PROTOCOL_VERSION = "2025-11-21";\nconst METHODS = {\n // Lifecycle\n INITIALIZE: "ui/initialize",\n INITIALIZED: "ui/notifications/initialized",\n // Tool data (Host -> Guest)\n TOOL_INPUT: "ui/notifications/tool-input",\n TOOL_INPUT_PARTIAL: "ui/notifications/tool-input-partial",\n TOOL_RESULT: "ui/notifications/tool-result",\n TOOL_CANCELLED: "ui/notifications/tool-cancelled",\n // Context & UI\n HOST_CONTEXT_CHANGED: "ui/notifications/host-context-changed",\n SIZE_CHANGED: "ui/notifications/size-changed",\n RESOURCE_TEARDOWN: "ui/resource-teardown",\n // Standard MCP methods\n TOOLS_CALL: "tools/call",\n NOTIFICATIONS_MESSAGE: "notifications/message",\n OPEN_LINK: "ui/open-link",\n MESSAGE: "ui/message"\n};\nclass McpAppsAdapter {\n constructor(config = {}) {\n __publicField(this, "config");\n __publicField(this, "pendingRequests", /* @__PURE__ */ new Map());\n __publicField(this, "messageIdCounter", 0);\n __publicField(this, "originalPostMessage", null);\n __publicField(this, "parentWindow", null);\n __publicField(this, "hostCapabilities", null);\n __publicField(this, "hostContext", null);\n __publicField(this, "initialized", false);\n // Current render data state (similar to window.openai in Apps SDK)\n __publicField(this, "currentRenderData", {});\n this.config = {\n logger: config.logger || console,\n timeout: config.timeout || 3e4\n };\n }\n install() {\n this.parentWindow = window.parent;\n this.config.logger.log("[MCP Apps Adapter] Checking parent window...");\n this.config.logger.log("[MCP Apps Adapter] window.parent exists:", !!this.parentWindow);\n this.config.logger.log("[MCP Apps Adapter] window.parent === window:", this.parentWindow === window);\n if (!this.parentWindow || this.parentWindow === window) {\n this.config.logger.warn("[MCP Apps Adapter] No parent window detected. Adapter will not activate.");\n return false;\n }\n this.config.logger.log("[MCP Apps Adapter] Initializing adapter...");\n this.patchPostMessage();\n window.addEventListener("message", this.handleHostMessage.bind(this));\n this.performInitialization();\n this.config.logger.log("[MCP Apps Adapter] Adapter initialized successfully");\n return true;\n }\n /**\n * Performs the MCP Apps SEP initialization handshake:\n * 1. Send ui/initialize request with adapter info\n * 2. Receive host capabilities and context\n * 3. Send ui/notifications/initialized notification\n * 4. Dispatch ready event to MCP-UI app\n */\n async performInitialization() {\n const jsonRpcId = this.generateJsonRpcId();\n const initPromise = new Promise((resolve, reject) => {\n this.pendingRequests.set(String(jsonRpcId), {\n messageId: "init",\n type: "init",\n resolve: (result) => {\n const res = result;\n this.hostCapabilities = res?.hostCapabilities ?? null;\n this.hostContext = res?.hostContext ?? null;\n this.initialized = true;\n this.sendJsonRpcNotification(METHODS.INITIALIZED, {});\n if (this.hostContext) {\n if (this.hostContext.theme)\n this.currentRenderData.theme = this.hostContext.theme;\n if (this.hostContext.displayMode)\n this.currentRenderData.displayMode = this.hostContext.displayMode;\n if (this.hostContext.locale)\n this.currentRenderData.locale = this.hostContext.locale;\n if (this.hostContext.viewport?.maxHeight)\n this.currentRenderData.maxHeight = this.hostContext.viewport.maxHeight;\n }\n this.sendRenderData();\n this.dispatchMessageToIframe({\n type: "ui-lifecycle-iframe-ready"\n });\n resolve();\n },\n reject: (error) => {\n this.config.logger.error("[MCP Apps Adapter] Initialization failed:", error);\n reject(error);\n },\n timeoutId: setTimeout(() => {\n this.pendingRequests.delete(String(jsonRpcId));\n this.config.logger.warn("[MCP Apps Adapter] Initialization timed out, proceeding anyway");\n this.dispatchMessageToIframe({\n type: "ui-lifecycle-iframe-ready"\n });\n resolve();\n }, this.config.timeout)\n });\n });\n this.config.logger.log("[MCP Apps Adapter] Sending ui/initialize request with id:", jsonRpcId);\n this.sendJsonRpcRequest(jsonRpcId, METHODS.INITIALIZE, {\n appInfo: {\n name: "mcp-ui-adapter",\n version: "1.0.0"\n },\n appCapabilities: {},\n protocolVersion: LATEST_PROTOCOL_VERSION\n });\n this.config.logger.log("[MCP Apps Adapter] ui/initialize request sent");\n try {\n await initPromise;\n } catch (_error) {\n this.config.logger.warn("[MCP Apps Adapter] Continuing despite initialization error");\n }\n }\n uninstall() {\n for (const request of this.pendingRequests.values()) {\n clearTimeout(request.timeoutId);\n request.reject(new Error("Adapter uninstalled"));\n }\n this.pendingRequests.clear();\n if (this.originalPostMessage && this.parentWindow) {\n try {\n this.parentWindow.postMessage = this.originalPostMessage;\n this.config.logger.log("[MCP Apps Adapter] Restored original parent.postMessage");\n } catch (error) {\n this.config.logger.error("[MCP Apps Adapter] Failed to restore original postMessage:", error);\n }\n }\n window.removeEventListener("message", this.handleHostMessage.bind(this));\n this.config.logger.log("[MCP Apps Adapter] Adapter uninstalled");\n }\n patchPostMessage() {\n this.originalPostMessage = this.parentWindow?.postMessage.bind(this.parentWindow) ?? null;\n const postMessageInterceptor = (message, targetOriginOrOptions, transfer) => {\n if (this.isMCPUIMessage(message)) {\n const mcpMessage = message;\n this.config.logger.debug("[MCP Apps Adapter] Intercepted MCP-UI message:", mcpMessage.type);\n this.handleMCPUIMessage(mcpMessage);\n } else {\n if (this.originalPostMessage) {\n if (typeof targetOriginOrOptions === "string" || targetOriginOrOptions === void 0) {\n const targetOrigin = targetOriginOrOptions ?? "*";\n this.originalPostMessage(message, targetOrigin, transfer);\n } else {\n this.originalPostMessage(message, targetOriginOrOptions);\n }\n }\n }\n };\n try {\n if (this.parentWindow) {\n this.parentWindow.postMessage = postMessageInterceptor;\n }\n } catch (error) {\n this.config.logger.error("[MCP Apps Adapter] Failed to monkey-patch parent.postMessage:", error);\n }\n }\n isMCPUIMessage(message) {\n if (!message || typeof message !== "object") {\n return false;\n }\n const msg = message;\n return typeof msg.type === "string" && (msg.type.startsWith("ui-") || ["tool", "prompt", "intent", "notify", "link"].includes(msg.type));\n }\n /**\n * Handles messages coming from the Host (JSON-RPC) and translates them to MCP-UI messages\n * \n * MCP Apps SEP protocol methods (from @modelcontextprotocol/ext-apps):\n * - ui/notifications/tool-input: Complete tool arguments\n * - ui/notifications/tool-input-partial: Streaming partial tool arguments\n * - ui/notifications/tool-result: Tool execution results\n * - ui/notifications/host-context-changed: Theme, viewport, locale changes\n * - ui/notifications/size-changed: Size change notifications (bidirectional)\n * - ui/notifications/tool-cancelled: Tool execution was cancelled\n * - ui/resource-teardown: Host notifies UI before teardown (request)\n */\n handleHostMessage(event) {\n const data = event.data;\n if (!data || typeof data !== "object" || !data.jsonrpc) {\n return;\n }\n this.config.logger.debug("[MCP Apps Adapter] Received JSON-RPC message:", data);\n if (data.method) {\n switch (data.method) {\n case METHODS.TOOL_INPUT:\n this.currentRenderData.toolInput = data.params?.arguments;\n this.sendRenderData();\n break;\n case METHODS.TOOL_INPUT_PARTIAL:\n this.currentRenderData.toolInput = data.params?.arguments;\n this.sendRenderData();\n break;\n case METHODS.TOOL_RESULT:\n this.currentRenderData.toolOutput = data.params;\n this.sendRenderData();\n break;\n case METHODS.HOST_CONTEXT_CHANGED:\n if (data.params?.theme)\n this.currentRenderData.theme = data.params.theme;\n if (data.params?.displayMode)\n this.currentRenderData.displayMode = data.params.displayMode;\n if (data.params?.locale)\n this.currentRenderData.locale = data.params.locale;\n if (data.params?.viewport?.maxHeight)\n this.currentRenderData.maxHeight = data.params.viewport.maxHeight;\n this.sendRenderData();\n break;\n case METHODS.SIZE_CHANGED:\n if (data.params?.height)\n this.currentRenderData.maxHeight = data.params.height;\n this.sendRenderData();\n break;\n case METHODS.TOOL_CANCELLED:\n this.dispatchMessageToIframe({\n type: "ui-lifecycle-tool-cancelled",\n payload: {\n reason: data.params?.reason\n }\n });\n break;\n case METHODS.RESOURCE_TEARDOWN:\n this.dispatchMessageToIframe({\n type: "ui-lifecycle-teardown",\n payload: {\n reason: data.params?.reason\n }\n });\n if (data.id) {\n this.sendJsonRpcResponse(data.id, {});\n }\n break;\n }\n } else if (data.id) {\n const pendingRequest = this.pendingRequests.get(String(data.id));\n if (pendingRequest) {\n if (data.error) {\n pendingRequest.reject(new Error(data.error.message));\n } else {\n pendingRequest.resolve(data.result);\n }\n this.pendingRequests.delete(String(data.id));\n clearTimeout(pendingRequest.timeoutId);\n this.dispatchMessageToIframe({\n type: "ui-message-response",\n messageId: pendingRequest.messageId,\n // The original message ID from the App\n payload: {\n messageId: pendingRequest.messageId,\n response: data.result,\n error: data.error\n }\n });\n }\n }\n }\n /**\n * Handles messages coming from the App (MCP-UI) and translates them to Host (JSON-RPC)\n * \n * MCP-UI message types translated to MCP Apps SEP:\n * - \'tool\' -> tools/call request\n * - \'ui-size-change\' -> ui/notifications/size-changed notification\n * - \'notify\' -> notifications/message notification (logging)\n * - \'link\' -> ui/open-link request\n * - \'prompt\' -> ui/message request\n * - \'ui-lifecycle-iframe-ready\' -> ui/notifications/initialized notification\n */\n async handleMCPUIMessage(message) {\n const messageId = message.messageId || this.generateMessageId();\n this.dispatchMessageToIframe({\n type: "ui-message-received",\n payload: { messageId }\n });\n try {\n switch (message.type) {\n case "tool": {\n const { toolName, params } = message.payload;\n const jsonRpcId = this.generateJsonRpcId();\n this.pendingRequests.set(String(jsonRpcId), {\n messageId,\n type: "tool",\n resolve: () => {\n },\n // Handled in handleHostMessage\n reject: () => {\n },\n timeoutId: setTimeout(() => {\n this.pendingRequests.delete(String(jsonRpcId));\n this.dispatchMessageToIframe({\n type: "ui-message-response",\n messageId,\n payload: { messageId, error: "Timeout" }\n });\n }, this.config.timeout)\n });\n this.sendJsonRpcRequest(jsonRpcId, METHODS.TOOLS_CALL, {\n name: toolName,\n arguments: params\n });\n break;\n }\n case "ui-size-change": {\n const { width, height } = message.payload;\n this.sendJsonRpcNotification(METHODS.SIZE_CHANGED, { width, height });\n break;\n }\n case "notify": {\n const { message: msg } = message.payload;\n this.sendJsonRpcNotification(METHODS.NOTIFICATIONS_MESSAGE, {\n level: "info",\n data: msg\n });\n break;\n }\n case "link": {\n const { url } = message.payload;\n const jsonRpcId = this.generateJsonRpcId();\n this.pendingRequests.set(String(jsonRpcId), {\n messageId,\n type: "link",\n resolve: () => {\n },\n reject: () => {\n },\n timeoutId: setTimeout(() => {\n this.pendingRequests.delete(String(jsonRpcId));\n this.dispatchMessageToIframe({\n type: "ui-message-response",\n messageId,\n payload: { messageId, error: "Timeout" }\n });\n }, this.config.timeout)\n });\n this.sendJsonRpcRequest(jsonRpcId, METHODS.OPEN_LINK, { url });\n break;\n }\n case "prompt": {\n const { prompt } = message.payload;\n const jsonRpcId = this.generateJsonRpcId();\n this.pendingRequests.set(String(jsonRpcId), {\n messageId,\n type: "prompt",\n resolve: () => {\n },\n reject: () => {\n },\n timeoutId: setTimeout(() => {\n this.pendingRequests.delete(String(jsonRpcId));\n this.dispatchMessageToIframe({\n type: "ui-message-response",\n messageId,\n payload: { messageId, error: "Timeout" }\n });\n }, this.config.timeout)\n });\n this.sendJsonRpcRequest(jsonRpcId, METHODS.MESSAGE, {\n role: "user",\n content: [{ type: "text", text: prompt }]\n });\n break;\n }\n case "ui-lifecycle-iframe-ready": {\n this.sendJsonRpcNotification(METHODS.INITIALIZED, {});\n this.sendRenderData();\n break;\n }\n case "ui-request-render-data": {\n this.sendRenderData(messageId);\n break;\n }\n case "intent": {\n const { intent, params } = message.payload;\n const jsonRpcId = this.generateJsonRpcId();\n this.pendingRequests.set(String(jsonRpcId), {\n messageId,\n type: "intent",\n resolve: () => {\n },\n reject: () => {\n },\n timeoutId: setTimeout(() => {\n this.pendingRequests.delete(String(jsonRpcId));\n this.dispatchMessageToIframe({\n type: "ui-message-response",\n messageId,\n payload: { messageId, error: "Timeout" }\n });\n }, this.config.timeout)\n });\n this.sendJsonRpcRequest(jsonRpcId, METHODS.MESSAGE, {\n role: "user",\n content: [{ type: "text", text: `Intent: ${intent}. Parameters: ${JSON.stringify(params)}` }]\n });\n break;\n }\n }\n } catch (error) {\n this.config.logger.error("[MCP Apps Adapter] Error handling message:", error);\n this.dispatchMessageToIframe({\n type: "ui-message-response",\n messageId,\n payload: { messageId, error }\n });\n }\n }\n /**\n * Send current render data to the MCP-UI app\n * This mirrors the Apps SDK adapter\'s sendRenderData method\n */\n sendRenderData(requestMessageId) {\n this.dispatchMessageToIframe({\n type: "ui-lifecycle-iframe-render-data",\n messageId: requestMessageId,\n payload: {\n renderData: {\n toolInput: this.currentRenderData.toolInput,\n toolOutput: this.currentRenderData.toolOutput,\n widgetState: this.currentRenderData.widgetState,\n locale: this.currentRenderData.locale,\n theme: this.currentRenderData.theme,\n displayMode: this.currentRenderData.displayMode,\n maxHeight: this.currentRenderData.maxHeight\n }\n }\n });\n }\n sendJsonRpcRequest(id, method, params) {\n this.originalPostMessage?.({\n jsonrpc: "2.0",\n id,\n method,\n params\n }, "*");\n }\n sendJsonRpcResponse(id, result) {\n this.originalPostMessage?.({\n jsonrpc: "2.0",\n id,\n result\n }, "*");\n }\n sendJsonRpcNotification(method, params) {\n this.originalPostMessage?.({\n jsonrpc: "2.0",\n method,\n params\n }, "*");\n }\n dispatchMessageToIframe(data) {\n const event = new MessageEvent("message", {\n data,\n origin: window.location.origin,\n // Same origin since we are inside the iframe\n source: window\n });\n window.dispatchEvent(event);\n }\n generateMessageId() {\n return `adapter-${Date.now()}-${++this.messageIdCounter}`;\n }\n generateJsonRpcId() {\n return ++this.messageIdCounter;\n }\n}\nlet adapterInstance = null;\nfunction initAdapter(config) {\n if (adapterInstance) {\n console.warn("[MCP Apps Adapter] Adapter already initialized");\n return true;\n }\n adapterInstance = new McpAppsAdapter(config);\n return adapterInstance.install();\n}\nfunction uninstallAdapter() {\n if (adapterInstance) {\n adapterInstance.uninstall();\n adapterInstance = null;\n }\n}\n';function P_(e){const t={...e.resourceProps??{}};if(e.uiMetadata||e.metadata){const r=Object.fromEntries(Object.entries(e.uiMetadata??{}).map((([e,t])=>[`${w_}${e}`,t])));t._meta={...r,...e.metadata??{},...t._meta??{}}}return t}function $_(e){if(typeof i<"u")return i.from(e,"utf-8").toString("base64");if(typeof TextEncoder<"u"&&typeof btoa<"u"){const t=(new TextEncoder).encode(e);let r="";const n=8192;for(let e=0;e<t.length;e+=n)r+=String.fromCharCode(...t.slice(e,e+n));return btoa(r)}console.warn("MCP-UI SDK: Buffer API and TextEncoder/btoa not available. Base64 encoding might not be UTF-8 safe.");try{return btoa(e)}catch{throw new Error("MCP-UI SDK: Suitable UTF-8 to Base64 encoding method not found, and fallback btoa failed.")}}function E_(e){let t,r,n;if("rawHtml"===e.content.type){if(!e.uri.startsWith("ui://"))throw new Error("MCP-UI SDK: URI must start with 'ui://' when content.type is 'rawHtml'.");if(t=e.content.htmlString,"string"!=typeof t)throw new Error("MCP-UI SDK: content.htmlString must be provided as a string when content.type is 'rawHtml'.");e.adapters?(t=function(e,t){if(!t)return e;const r=[];if(t.appsSdk?.enabled){const e=function(e){const t=e?JSON.stringify(e):"{}";return`\n<script>\n(function() {\n 'use strict';\n \n ${S_}\n \n // Override auto-init from runtime and initialize with provided config\n if (typeof window !== 'undefined') {\n // If the functions are not defined, just return, we can't do anything.\n if (typeof initAdapter !== 'function' || typeof uninstallAdapter !== 'function') {\n console.warn('[MCPUI-Apps SDK Adapter] Adapter runtime not found with the correct methods. Adapter will not activate.') \n return;\n }\n \n // If auto-init is enabled, initialize with config from server \n if (!window.MCP_APPSSDK_ADAPTER_NO_AUTO_INSTALL) {\n initAdapter(${t});\n }\n \n // Expose functions globally\n if (typeof window.MCPUIAppsSdkAdapter === 'undefined') {\n window.MCPUIAppsSdkAdapter = {\n init: initAdapter,\n initWithConfig: () => initAdapter(${t}),\n uninstall: uninstallAdapter,\n };\n }\n }\n})();\n<\/script>\n`.trim()}(t.appsSdk.config);r.push(e)}if(t.mcpApps?.enabled){const e=function(e){const t=e?{timeout:e.timeout}:{},r=JSON.stringify(t);return`\n<script>\n(function() {\n 'use strict';\n \n ${I_}\n \n if (typeof window !== 'undefined') {\n if (typeof initAdapter !== 'function' || typeof uninstallAdapter !== 'function') {\n console.warn('[MCP Apps Adapter] Adapter runtime not found. Adapter will not activate.');\n return;\n }\n \n if (!window.MCP_APPS_ADAPTER_NO_AUTO_INSTALL) {\n initAdapter(${r});\n }\n \n window.McpAppsAdapter = {\n init: initAdapter,\n initWithConfig: () => initAdapter(${r}),\n uninstall: uninstallAdapter,\n };\n }\n})();\n<\/script>\n`.trim()}(t.mcpApps.config);r.push(e)}if(0===r.length)return e;const n=r.join("\n");let i;return i=e.includes("<head>")?e.replace("<head>",`<head>\n${n}`):e.includes("<html>")?e.replace("<html>",`<html>\n<head>\n${n}\n</head>`):`${n}\n${e}`,i}(t,e.adapters),r=function(e){if(e){if(e.appsSdk?.enabled)return e.appsSdk.mimeType??"text/html+skybridge";if(e.mcpApps?.enabled)return k_}}(e.adapters)??"text/html"):r="text/html"}else if("externalUrl"===e.content.type){if(!e.uri.startsWith("ui://"))throw new Error("MCP-UI SDK: URI must start with 'ui://' when content.type is 'externalUrl'.");const n=e.content.iframeUrl;if("string"!=typeof n)throw new Error("MCP-UI SDK: content.iframeUrl must be provided as a string when content.type is 'externalUrl'.");t=n,r="text/uri-list"}else{if("remoteDom"!==e.content.type){const t=e.content;throw new Error(`MCP-UI SDK: Invalid content.type specified: ${t}`)}if(!e.uri.startsWith("ui://"))throw new Error("MCP-UI SDK: URI must start with 'ui://' when content.type is 'remoteDom'.");if(t=e.content.script,"string"!=typeof t)throw new Error("MCP-UI SDK: content.script must be provided as a string when content.type is 'remoteDom'.");r=`application/vnd.mcp-ui.remote-dom+javascript; framework=${e.content.framework}`}switch(e.encoding){case"text":n={uri:e.uri,mimeType:r,text:t,...P_(e)};break;case"blob":n={uri:e.uri,mimeType:r,blob:$_(t),...P_(e)};break;default:{const t=e.encoding;throw new Error(`MCP-UI SDK: Invalid encoding type: ${t}`)}}return{type:"resource",resource:n,...e.embeddedResourceProps??{}}}},36802:e=>{var t=Array.isArray;e.exports=t},36864:e=>{e.exports=function(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===r(a[l],l,a))break}return t}}},37512:e=>{e.exports=function(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}},37648:(e,t,r)=>{var n=r(7079),i=r(67828),a=r(85718);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(i(e))}},38245:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},38275:(e,t,r)=>{var n=r(19875),i=r(94143);e.exports=function(e,t){return null!=e&&i(e,t,n)}},38538:e=>{e.exports=function(e){return this.__data__.has(e)}},39178:(e,t,r)=>{var n=r(55304),i=r(35264),a=r(67624),o=r(59196),s=r(23124),l=r(48536);e.exports=function(e,t,r){var u=-1,c=i,p=e.length,h=!0,d=[],f=d;if(r)h=!1,c=a;else if(p>=200){var m=t?null:s(e);if(m)return l(m);h=!1,c=o,f=new n}else f=t?[]:d;e:for(;++u<p;){var g=e[u],v=t?t(g):g;if(g=r||0!==g?g:0,h&&v==v){for(var y=f.length;y--;)if(f[y]===v)continue e;t&&f.push(v),d.push(g)}else c(f,v,r)||(f!==d&&f.push(v),d.push(g))}return d}},40502:e=>{e.exports=function(e){return e.placeholder}},40566:(e,t,r)=>{var n=r(81507);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},40898:e=>{e.exports=function(e){return null===e}},41221:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},42332:(e,t,r)=>{var n=r(2007),i=r(67828),a=r(71039),o=Function.prototype,s=Object.prototype,l=o.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==c}},42472:(e,t,r)=>{var n=r(34856),i=r(80119);e.exports=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=i(r))==r?r:0),void 0!==t&&(t=(t=i(t))==t?t:0),n(i(e),t,r)}},42680:e=>{e.exports={}},43434:(e,t,r)=>{var n=r(90090),i=r(55963),a=r(78497),o=r(36802),s=r(70206);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):n(e):s(e)}},43501:(e,t,r)=>{var n=r(85773),i=r(1462);e.exports=function e(t,r,a,o,s){var l=-1,u=t.length;for(a||(a=i),s||(s=[]);++l<u;){var c=t[l];r>0&&a(c)?r>1?e(c,r-1,a,o,s):n(s,c):o||(s[s.length]=c)}return s}},43695:(e,t,r)=>{var n=r(79845),i=r(15286),a=r(43434);e.exports=function(e,t){var r={};return t=a(t,3),i(e,(function(e,i,a){n(r,i,t(e,i,a))})),r}},43772:(e,t,r)=>{var n=r(13919);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},44250:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},44345:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},44767:(e,t,r)=>{var n=r(41221),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},45224:(e,t,r)=>{var n=r(66143),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},45457:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,r){var n=r.length;if(!n)return e;var i=n-1;return r[i]=(n>1?"& ":"")+r[i],r=r.join(n>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+r+"] */\n")}},45471:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},45815:(e,t,r)=>{e=r.nmd(e);var n=r(77450),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},46372:(e,t,r)=>{var n=r(71077),i=r(84752),a=r(28693),o=r(9693);e.exports=function(e){var t=a(e),r=o[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var s=i(r);return!!s&&e===s[0]}},46380:(e,t,r)=>{var n=r(66143)(r(77450),"Set");e.exports=n},46406:(e,t,r)=>{var n=r(2007),i=r(36802),a=r(71039);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==n(e)}},46925:e=>{e.exports=Math.floor},46971:(e,t,r)=>{var n=r(2007),i=r(54200);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},46977:(e,t,r)=>{e=r.nmd(e);var n=r(77450),i=r(88968),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},47142:(e,t,r)=>{var n=r(52733);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&!1!==i(s[o],o,s););return r}}},48536:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},48630:(e,t,r)=>{var n=r(2007),i=r(11095),a=r(71039),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[n(e)]}},49500:(e,t,r)=>{var n=r(60359),i=r(77797),a=r(20846),o=RegExp("['’]","g");e.exports=function(e){return function(t){return n(a(i(t).replace(o,"")),e,"")}}},50125:(e,t,r)=>{var n=r(43501);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},51253:(e,t,r)=>{var n=r(18916),i=r(35264),a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(a,(function(r){var n="_."+r[0];t&r[1]&&!i(e,n)&&e.push(n)})),e.sort()}},52242:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,i,a){for(var o=-1,s=r(t((n-e)/(i||1)),0),l=Array(s);s--;)l[a?s:++o]=e,e+=i;return l}},52261:(e,t,r)=>{var n=r(28293),i=r(60872),a=r(11214),o=a&&a.isMap,s=o?i(o):n;e.exports=s},52577:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}},52615:e=>{var t=Math.max;e.exports=function(e,r,n,i){for(var a=-1,o=e.length,s=-1,l=n.length,u=-1,c=r.length,p=t(o-l,0),h=Array(p+c),d=!i;++a<p;)h[a]=e[a];for(var f=a;++u<c;)h[f+u]=r[u];for(;++s<l;)(d||a<o)&&(h[f+n[s]]=e[a++]);return h}},52733:(e,t,r)=>{var n=r(46971),i=r(11095);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},52742:e=>{e.exports=function(e){return this.__data__.get(e)}},52960:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),a=16-(i-n);if(n=i,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},53292:(e,t,r)=>{var n=r(54200),i=r(85718),a=r(65174),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&r.push(s);return r}},54200:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},54586:(e,t,r)=>{var n=r(8736),i=r(18916),a=r(4106),o=r(31654),s=r(30865),l=r(45815),u=r(12310),c=r(58518),p=r(60609),h=r(78957),d=r(97662),f=r(27458),m=r(44250),g=r(67388),v=r(37648),y=r(36802),b=r(46977),_=r(52261),x=r(54200),k=r(33843),w=r(63655),S=r(14956),I="[object Arguments]",P="[object Function]",$="[object Object]",E={};E[I]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[$]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[P]=E["[object WeakMap]"]=!1,e.exports=function e(t,r,A,C,T,D){var z,M=1&r,O=2&r,j=4&r;if(A&&(z=T?A(t,C,T,D):A(t)),void 0!==z)return z;if(!x(t))return t;var F=y(t);if(F){if(z=m(t),!M)return u(t,z)}else{var N=f(t),R=N==P||"[object GeneratorFunction]"==N;if(b(t))return l(t,M);if(N==$||N==I||R&&!T){if(z=O||R?{}:v(t),!M)return O?p(t,s(z,t)):c(t,o(z,t))}else{if(!E[N])return T?t:{};z=g(t,N,M)}}D||(D=new n);var U=D.get(t);if(U)return U;D.set(t,z),k(t)?t.forEach((function(n){z.add(e(n,r,A,n,t,D))})):_(t)&&t.forEach((function(n,i){z.set(i,e(n,r,A,i,t,D))}));var L=F?void 0:(j?O?d:h:O?S:w)(t);return i(L||t,(function(n,i){L&&(n=t[i=n]),a(z,i,e(n,r,A,i,t,D))})),z}},54711:(e,t,r)=>{var n=r(46925);e.exports=function(e,t){var r=e%t;return n(r>=0?r:r+t)}},55304:(e,t,r)=>{var n=r(25278),i=r(17865),a=r(38538);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},55788:(e,t,r)=>{var n=r(69279);e.exports=function(e){return function(t){return n(t,e)}}},55963:(e,t,r)=>{var n=r(63627),i=r(87679),a=r(97456),o=r(16231),s=r(10439),l=r(4436),u=r(43772);e.exports=function(e,t){return o(e)&&s(t)?l(u(e),t):function(r){var o=i(r,e);return void 0===o&&o===t?a(r,e):n(t,o,3)}}},55970:(e,t,r)=>{var n=r(77450)["__core-js_shared__"];e.exports=n},56287:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},56392:(e,t,r)=>{var n=r(7079),i=r(54200);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),a=e.apply(r,t);return i(a)?a:r}}},56418:(e,t,r)=>{var n=r(65379),i=r(62485),a=r(72695),o=r(84980),s=r(18329),l=r(84752),u=r(71504),c=r(67508),p=r(30928),h=r(26334),d=Math.max;e.exports=function(e,t,r,f,m,g,v,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var _=f?f.length:0;if(_||(t&=-97,f=m=void 0),v=void 0===v?v:d(h(v),0),y=void 0===y?y:h(y),_-=m?m.length:0,64&t){var x=f,k=m;f=m=void 0}var w=b?void 0:l(e),S=[e,t,r,f,m,x,k,g,v,y];if(w&&u(S,w),e=S[0],t=S[1],r=S[2],f=S[3],m=S[4],!(y=S[9]=void 0===S[9]?b?0:e.length:d(S[9]-_,0))&&24&t&&(t&=-25),t&&1!=t)I=8==t||16==t?a(e,t,y):32!=t&&33!=t||m.length?o.apply(void 0,S):s(e,t,r,f);else var I=i(e,t,r);return p((w?n:c)(I,S),e,t)}},58462:(e,t,r)=>{var n=r(15286),i=r(47142)(n);e.exports=i},58518:(e,t,r)=>{var n=r(75564),i=r(88383);e.exports=function(e,t){return n(e,i(e),t)}},58599:(e,t,r)=>{var n=r(99207);e.exports=function(e){return null==e?"":n(e)}},58867:(e,t,r)=>{var n=r(32484),i=r(78837),a=r(72023),o=r(90807),s=i((function(e){return e.push(void 0,a),n(o,void 0,e)}));e.exports=s},59196:e=>{e.exports=function(e,t){return e.has(t)}},59445:(e,t,r)=>{var n=r(85453);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},59578:(e,t,r)=>{var n=r(93190),i=r(14114),a=r(11310);e.exports=function(e,t,r){return t==t?a(e,t,r):n(e,i,r)}},59830:(e,t,r)=>{var n=r(8204);e.exports=function(e){return n(2,e)}},59981:(e,t,r)=>{var n=r(79603);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},60359:e=>{e.exports=function(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}},60577:(e,t,r)=>{var n=r(94155),i=r(46925),a=r(85330),o=r(98696);e.exports=function(e){if("number"!=typeof e||a(e)||!o(e))return!1;var t=n(e);return i(t)===t}},60598:(e,t,r)=>{var n=r(15286),i=r(91529);e.exports=function(e,t){return e&&n(e,i(t))}},60609:(e,t,r)=>{var n=r(75564),i=r(77316);e.exports=function(e,t){return n(e,i(e),t)}},60854:e=>{var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="["+a+"]",s="\\d+",l="["+r+"]",u="["+n+"]",c="[^"+t+a+s+r+n+i+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="["+i+"]",f="(?:"+u+"|"+c+")",m="(?:"+d+"|"+c+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",_=b+y+"(?:\\u200d(?:"+["[^"+t+"]",p,h].join("|")+")"+b+y+")*",x="(?:"+[l,p,h].join("|")+")"+_,k=RegExp([d+"?"+u+"+"+g+"(?="+[o,d,"$"].join("|")+")",m+"+"+v+"(?="+[o,d+f,"$"].join("|")+")",d+"?"+f+"+"+g,d+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,x].join("|"),"g");e.exports=function(e){return e.match(k)||[]}},60872:e=>{e.exports=function(e){return function(t){return e(t)}}},61234:(e,t,r)=>{var n=r(70158),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=o.call(e);return n&&(t?e[s]=r:delete e[s]),i}},61595:(e,t,r)=>{var n=r(50125),i=r(80142),a=r(79904);e.exports=function(e){return a(i(e,void 0,n),e+"")}},62229:(e,t,r)=>{var n=r(8736),i=r(28642),a=r(9625),o=r(87618),s=r(27458),l=r(36802),u=r(46977),c=r(73974),p="[object Arguments]",h="[object Array]",d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,v){var y=l(e),b=l(t),_=y?h:s(e),x=b?h:s(t),k=(_=_==p?d:_)==d,w=(x=x==p?d:x)==d,S=_==x;if(S&&u(e)){if(!u(t))return!1;y=!0,k=!1}if(S&&!k)return v||(v=new n),y||c(e)?i(e,t,r,m,g,v):a(e,t,_,r,m,g,v);if(!(1&r)){var I=k&&f.call(e,"__wrapped__"),P=w&&f.call(t,"__wrapped__");if(I||P){var $=I?e.value():e,E=P?t.value():t;return v||(v=new n),g($,E,r,m,v)}}return!!S&&(v||(v=new n),o(e,t,r,m,g,v))}},62362:(e,t,r)=>{var n=r(52577),i=r(65811),a=r(26334),o=Math.ceil,s=Math.max;e.exports=function(e,t,r){t=(r?i(e,t,r):void 0===t)?1:s(a(t),0);var l=null==e?0:e.length;if(!l||t<1)return[];for(var u=0,c=0,p=Array(o(l/t));u<l;)p[c++]=n(e,u,u+=t);return p}},62430:(e,t,r)=>{var n=r(58462);e.exports=function(e,t,r,i){return n(e,(function(e,n,a){t(i,e,r(e),a)})),i}},62485:(e,t,r)=>{var n=r(56392),i=r(77450);e.exports=function(e,t,r){var a=1&t,o=n(e);return function t(){return(this&&this!==i&&this instanceof t?o:e).apply(a?r:this,arguments)}}},63056:function(module,exports,__webpack_require__){var URL=__webpack_require__(9606).URL,factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,i=e.length;for(r=0;r<i;r+=1)for(var a in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,a)&&(t.prototype[a]=n[a])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,i,a,o,s,l,u,c;switch(l=r*(1-t),u=r*(1-(s=6*e-(o=Math.floor(6*e)))*t),c=r*(1-(1-s)*t),o%6){case 0:n=r,i=c,a=l;break;case 1:n=u,i=r,a=l;break;case 2:n=l,i=r,a=c;break;case 3:n=l,i=u,a=r;break;case 4:n=c,i=l,a=r;break;case 5:n=r,i=l,a=u}return[n,i,a]}function RGBtoHSV(e,t,r){var n,i=Math.max(e,t,r),a=Math.min(e,t,r),o=i-a,s=0===i?0:o/i,l=i/255;switch(i){case a:n=0;break;case e:n=t-r+o*(t<r?6:0),n/=6*o;break;case t:n=r-e+2*o,n/=6*o;break;case r:n=e-t+4*o,n/=6*o}return[n,s,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,n=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){i.onmessage({data:e})}};function o(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return e=t,i}((function(e){if(a.dataManager||(a.dataManager=function(){function e(i,a){var o,s,l,u,c,p,h,d=i.length;for(s=0;s<d;s+=1)if("ks"in(o=i[s])&&!o.completed){if(o.completed=!0,o.hasMask){var f=o.masksProperties;for(u=f.length,l=0;l<u;l+=1)if(f[l].pt.k.i)n(f[l].pt.k);else for(p=f[l].pt.k.length,c=0;c<p;c+=1)f[l].pt.k[c].s&&n(f[l].pt.k[c].s[0]),f[l].pt.k[c].e&&n(f[l].pt.k[c].e[0])}0===o.ty?(o.layers=t(o.refId,a),e(o.layers,a)):4===o.ty?r(o.shapes):5===o.ty&&(0===(h=o).t.a.length&&h.t.p)}}function t(e,t){var r=function(e,t){for(var r=0,n=t.length;r<n;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,a;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)n(e[t].ks.k);else for(a=e[t].ks.k.length,i=0;i<a;i+=1)e[t].ks.k[i].s&&n(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&n(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function n(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var a,o=function(){var e=[4,4,14];function t(e){var t,r,n,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(void 0,n=(r=e[t]).t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,a=r.assets.length;for(n=0;n<a;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),s=(a=[4,7,99],function(e){if(e.chars&&!i(a,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var o=e.chars[t];o.data&&o.data.shapes&&(r(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,r,n=e.length;for(t=0;t<n;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,a=r.assets.length;for(n=0;n<a;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),u=function(){var e=[4,1,9];function t(e){var r,n,i,a=e.length;for(r=0;r<a;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,n=0;n<i;n+=1)e[r].c.k[n].s&&(e[r].c.k[n].s[0]/=255,e[r].c.k[n].s[1]/=255,e[r].c.k[n].s[2]/=255,e[r].c.k[n].s[3]/=255),e[r].c.k[n].e&&(e[r].c.k[n].e[0]/=255,e[r].c.k[n].e[1]/=255,e[r].c.k[n].e[2]/=255,e[r].c.k[n].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,a=t.assets.length;for(n=0;n<a;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var r,n,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,n=0;n<i;n+=1)e[r].ks.k[n].s&&(e[r].ks.k[n].s[0].c=e[r].closed),e[r].ks.k[n].e&&(e[r].ks.k[n].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,n,i,a,o,s,l=e.length;for(n=0;n<l;n+=1){if((r=e[n]).hasMask){var u=r.masksProperties;for(a=u.length,i=0;i<a;i+=1)if(u[i].pt.k.i)u[i].pt.k.c=u[i].cl;else for(s=u[i].pt.k.length,o=0;o<s;o+=1)u[i].pt.k[o].s&&(u[i].pt.k[o].s[0].c=u[i].cl),u[i].pt.k[o].e&&(u[i].pt.k[o].e[0].c=u[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,a=t.assets.length;for(n=0;n<a;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}();var p={completeData:function(r){r.__complete||(u(r),o(r),s(r),l(r),c(r),e(r.layers,r.assets),function(r,n){if(r){var i=0,a=r.length;for(i=0;i<a;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,n),e(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return p.checkColors=u,p.checkChars=s,p.checkPathProperties=l,p.checkShapes=c,p.completeLayers=e,p}()),a.assetLoader||(a.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,n,i){var a,o=new XMLHttpRequest;try{o.responseType="json"}catch(e){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)a=e(o),n(a);else try{a=e(o),n(a)}catch(e){i&&i(e)}};try{o.open(["G","E","T"].join(""),t,!0)}catch(e){o.open(["G","E","T"].join(""),r+"/"+t,!0)}o.send()}}}()),"loadAnimation"===e.data.type)a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=n[r];n[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(r+=1);return n[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,n){o();var i=s(r,n);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,n){o();var i=s(r,n);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,n){o();var i=s(r,n);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(e,t,r){var n="";if(e.e)n=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=t+i}else n=r,n+=e.u?e.u:"",n+=e.p;return n}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function a(e){var t={assetData:e},r=n(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function o(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var n=e.length;for(r=0;r<n;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=n(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var a={img:i,assetData:t};return a},createImageData:function(t){var r=n(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var a={img:i,assetData:t};return a},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),n={},i=0,a=0;a<r.length;a+=1)2===(t=r[a].split(":")).length&&(n[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var i=t[n],a={time:i.tm,duration:i.dr};try{a.payload=JSON.parse(t[n].cm)}catch(r){try{a.payload=e(t[n].cm)}catch(e){a.payload={name:t[n].cm}}}r.push(a)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var a=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==a,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,i=n.length,a=e.layers,o=a.length;for(r=0;r<o;r+=1)for(t=0;t<i;){if(n[t].id===a[r].id){n[t]=a[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,n="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,n=0,i=0,a=!0,o=!1;function s(e){for(var r=0,i=e.target;r<n;)t[r].animation===i&&(t.splice(r,1),r-=1,n-=1,i.isPaused||c()),r+=1}function l(e,r){if(!e)return null;for(var i=0;i<n;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var a=new AnimationItem;return p(a,e),a.setData(e,r),a}function u(){i+=1,f()}function c(){i-=1}function p(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",u),e.addEventListener("_idle",c),t.push({elem:r,animation:e}),n+=1}function h(e){var s,l=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(l);r=e,i&&!o?window.requestAnimationFrame(h):a=!0}function d(e){r=e,window.requestAnimationFrame(h)}function f(){!o&&i&&a&&(window.requestAnimationFrame(d),a=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return p(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=i.length;for(n=0;n<a;n+=1)r&&i[n].setAttribute("data-bm-type",r),l(i[n],e);if(t&&0===a){r||(r="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),o.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<n;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var a;for(a=0;a<n;a+=1)t[a].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=n-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){o=!0},e.unfreeze=function(){o=!1,f()},e.setVolume=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n.push(t[e].animation);return n},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,n,i,a){var o=a||("bez_"+e+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(t[o])return t[o];var s=new c([e,r,n,i]);return t[o]=s,s}},t={},r=11,n=1/(r-1),i="function"==typeof Float32Array;function a(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((a(t,r)*e+o(t,r))*e+s(t))*e}function u(e,t,r){return 3*a(t,r)*e*e+2*o(t,r)*e+s(t)}function c(e){this._p=e,this._mSampleValues=i?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(e){var t=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&n===i?e:0===e?0:1===e?1:l(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,e===t&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],i=0;i<r;++i)this._mSampleValues[i]=l(i*n,e,t)},_getTForX:function(e){for(var t=this._p[0],i=this._p[2],a=this._mSampleValues,o=0,s=1,c=r-1;s!==c&&a[s]<=e;++s)o+=n;var p=o+(e-a[--s])/(a[s+1]-a[s])*n,h=u(p,t,i);return h>=.001?function(e,t,r,n){for(var i=0;i<4;++i){var a=u(t,r,n);if(0===a)return t;t-=(l(t,r,n)-e)/a}return t}(e,p,t,i):0===h?p:function(e,t,r,n,i){var a,o,s=0;do{(a=l(o=t+(r-t)/2,n,i)-e)>0?r=o:t=o}while(Math.abs(a)>1e-7&&++s<10);return o}(e,o,o+n,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,i=e,a=createSizedArray(i);return{newElement:function(){return n?a[n-=1]:t()},release:function(e){n===i&&(a=pooling.double(a),i*=2),r&&r(e),a[n]=e,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,n,i,a){var o=e*n+t*i+r*a-i*n-a*e-r*t;return o>-.001&&o<.001}var r=function(e,t,r,n){var i,a,o,s,l,u,c=getDefaultCurveSegments(),p=0,h=[],d=[],f=bezierLengthPool.newElement();for(o=r.length,i=0;i<c;i+=1){for(l=i/(c-1),u=0,a=0;a<o;a+=1)s=bmPow(1-l,3)*e[a]+3*bmPow(1-l,2)*l*r[a]+3*(1-l)*bmPow(l,2)*n[a]+bmPow(l,3)*t[a],h[a]=s,null!==d[a]&&(u+=bmPow(h[a]-d[a],2)),d[a]=h[a];u&&(p+=u=bmSqrt(u)),f.percents[i]=l,f.lengths[i]=p}return f.addedLength=p,f};function n(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var a,o=(a={},function(e,r,o,s){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!a[l]){var u,c,p,h,d,f,m,g=getDefaultCurveSegments(),v=0,y=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+o[0],e[1]+o[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var b=new n(g);for(p=o.length,u=0;u<g;u+=1){for(m=createSizedArray(p),d=u/(g-1),f=0,c=0;c<p;c+=1)h=bmPow(1-d,3)*e[c]+3*bmPow(1-d,2)*d*(e[c]+o[c])+3*(1-d)*bmPow(d,2)*(r[c]+s[c])+bmPow(d,3)*r[c],m[c]=h,null!==y&&(f+=bmPow(m[c]-y[c],2));v+=f=bmSqrt(f),b.points[u]=new i(f,m),y=m}b.segmentLength=v,a[l]=b}return a[l]});function s(e,t){var r=t.percents,n=t.lengths,i=r.length,a=bmFloor((i-1)*e),o=e*t.addedLength,s=0;if(a===i-1||0===a||o===n[a])return r[a];for(var l=n[a]>o?-1:1,u=!0;u;)if(n[a]<=o&&n[a+1]>o?(s=(o-n[a])/(n[a+1]-n[a]),u=!1):a+=l,a<0||a>=i-1){if(a===i-1)return r[a];u=!1}return r[a]+(r[a+1]-r[a])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,n=segmentsLengthPool.newElement(),i=e.c,a=e.v,o=e.o,s=e.i,l=e._length,u=n.lengths,c=0;for(t=0;t<l-1;t+=1)u[t]=r(a[t],a[t+1],o[t],s[t+1]),c+=u[t].addedLength;return i&&l&&(u[t]=r(a[t],a[0],o[t],s[0]),c+=u[t].addedLength),n.totalLength=c,n},getNewSegment:function(t,r,n,i,a,o,u){a<0?a=0:a>1&&(a=1);var c,p=s(a,u),h=s(o=o>1?1:o,u),d=t.length,f=1-p,m=1-h,g=f*f*f,v=p*f*f*3,y=p*p*f*3,b=p*p*p,_=f*f*m,x=p*f*m+f*p*m+f*f*h,k=p*p*m+f*p*h+p*f*h,w=p*p*h,S=f*m*m,I=p*m*m+f*h*m+f*m*h,P=p*h*m+f*h*h+p*m*h,$=p*h*h,E=m*m*m,A=h*m*m+m*h*m+m*m*h,C=h*h*m+m*h*h+h*m*h,T=h*h*h;for(c=0;c<d;c+=1)l[4*c]=e.round(1e3*(g*t[c]+v*n[c]+y*i[c]+b*r[c]))/1e3,l[4*c+1]=e.round(1e3*(_*t[c]+x*n[c]+k*i[c]+w*r[c]))/1e3,l[4*c+2]=e.round(1e3*(S*t[c]+I*n[c]+P*i[c]+$*r[c]))/1e3,l[4*c+3]=e.round(1e3*(E*t[c]+A*n[c]+C*i[c]+T*r[c]))/1e3;return l},getPointInSegment:function(t,r,n,i,a,o){var l=s(a,o),u=1-l;return[e.round(1e3*(u*u*u*t[0]+(l*u*u+u*l*u+u*u*l)*n[0]+(l*l*u+u*l*l+l*u*l)*i[0]+l*l*l*r[0]))/1e3,e.round(1e3*(u*u*u*t[1]+(l*u*u+u*l*u+u*u*l)*n[1]+(l*l*u+u*l*l+l*u*l)*i[1]+l*l*l*r[1]))/1e3]},buildBezierData:o,pointOnLine2D:t,pointOnLine3D:function(r,n,i,a,o,s,l,u,c){if(0===i&&0===s&&0===c)return t(r,n,a,o,l,u);var p,h=e.sqrt(e.pow(a-r,2)+e.pow(o-n,2)+e.pow(s-i,2)),d=e.sqrt(e.pow(l-r,2)+e.pow(u-n,2)+e.pow(c-i,2)),f=e.sqrt(e.pow(l-a,2)+e.pow(u-o,2)+e.pow(c-s,2));return(p=h>d?h>f?h-d-f:f-d-h:f>d?f-d-h:d-h-f)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var i,a,o,s,l,u,c,p,h,d=t.lastIndex,f=d,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[f],a=this.keyframes[f+1],f===m-1&&e>=a.t-n){i.h&&(i=a),d=0;break}if(a.t-n>e){d=f;break}f<m-1?f+=1:(d=0,g=!1)}o=this.keyframesMetadata[f]||{};var v,y=a.t-n,b=i.t-n;if(i.to){o.bezierData||(o.bezierData=bez.buildBezierData(i.s,a.s||i.e,i.to,i.ti));var _=o.bezierData;if(e>=y||e<b){var x=e>=y?_.points.length-1:0;for(l=_.points[x].point.length,s=0;s<l;s+=1)r[s]=_.points[x].point[s]}else{o.__fnct?h=o.__fnct:(h=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,o.__fnct=h),u=h((e-b)/(y-b));var k,w=_.segmentLength*u,S=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,c=_.points.length;g;){if(S+=_.points[p].partialLength,0===w||0===u||p===_.points.length-1){for(l=_.points[p].point.length,s=0;s<l;s+=1)r[s]=_.points[p].point[s];break}if(w>=S&&w<S+_.points[p+1].partialLength){for(k=(w-S)/_.points[p+1].partialLength,l=_.points[p].point.length,s=0;s<l;s+=1)r[s]=_.points[p].point[s]+(_.points[p+1].point[s]-_.points[p].point[s])*k;break}p<c-1?p+=1:g=!1}t._lastPoint=p,t._lastAddedLength=S-_.points[p].partialLength,t._lastKeyframeIndex=f}}else{var I,P,$,E,A;if(m=i.s.length,v=a.s||i.e,this.sh&&1!==i.h)e>=y?(r[0]=v[0],r[1]=v[1],r[2]=v[2]):e<=b?(r[0]=i.s[0],r[1]=i.s[1],r[2]=i.s[2]):quaternionToEuler(r,slerp(createQuaternion(i.s),createQuaternion(v),(e-b)/(y-b)));else for(f=0;f<m;f+=1)1!==i.h&&(e>=y?u=1:e<b?u=0:(i.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?h=o.__fnct[f]:(I=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],P=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],$=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],E=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],h=BezierFactory.getBezierEasing(I,P,$,E).get,o.__fnct[f]=h)):o.__fnct?h=o.__fnct:(I=i.o.x,P=i.o.y,$=i.i.x,E=i.i.y,h=BezierFactory.getBezierEasing(I,P,$,E).get,i.keyframeMetadata=h),u=h((e-b)/(y-b)))),v=a.s||i.e,A=1===i.h?i.s[f]:i.s[f]+(v[f]-i.s[f])*u,"multidimensional"===this.propType?r[f]=A:r=A}return t.lastIndex=d,r}function slerp(e,t,r){var n,i,a,o,s,l=[],u=e[0],c=e[1],p=e[2],h=e[3],d=t[0],f=t[1],m=t[2],g=t[3];return(i=u*d+c*f+p*m+h*g)<0&&(i=-i,d=-d,f=-f,m=-m,g=-g),1-i>1e-6?(n=Math.acos(i),a=Math.sin(n),o=Math.sin((1-r)*n)/a,s=Math.sin(r*n)/a):(o=1-r,s=r),l[0]=o*u+s*d,l[1]=o*c+s*f,l[2]=o*p+s*m,l[3]=o*h+s*g,l}function quaternionToEuler(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=Math.atan2(2*n*a-2*r*i,1-2*n*n-2*i*i),s=Math.asin(2*r*n+2*i*a),l=Math.atan2(2*r*a-2*n*i,1-2*r*r-2*i*i);e[0]=o/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,i=Math.cos(t/2),a=Math.cos(r/2),o=Math.cos(n/2),s=Math.sin(t/2),l=Math.sin(r/2),u=Math.sin(n/2);return[s*l*o+i*a*u,s*a*o+i*l*u,i*l*o-s*a*u,i*a*o-s*l*u]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),i=0;i<a;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var i;this.propType="multidimensional";var a,o,s,l,u=t.k.length;for(i=0;i<u-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(a=t.k[i].s,o=t.k[i+1].s,s=t.k[i].to,l=t.k[i].ti,(2===a.length&&(a[0]!==o[0]||a[1]!==o[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],a[0]+s[0],a[1]+s[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===a.length&&(a[0]!==o[0]||a[1]!==o[1]||a[2]!==o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],a[0]+s[0],a[1]+s[1],a[2]+s[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),a[0]===o[0]&&a[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===a.length||a[2]===o[2]&&0===s[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=t.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),i=0;i<c;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,r,n,i){var a;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])a=new MultiDimensionalProperty(e,t,n,i);else switch(r){case 0:a=new KeyframedValueProperty(e,t,n,i);break;case 1:a=new KeyframedMultidimensionalProperty(e,t,n,i)}else a=new ValueProperty(e,t,n,i);return a.effectsSequence.length&&i.addDynamicProperty(a),a}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,i){var a;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[n]||a[n]&&!i)&&(a[n]=pointPool.newElement()),a[n][0]=e,a[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,i,a,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(r,n,"o",o,s),this.setXYAt(i,a,"i",o,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var a,o=this._length-1,s=this._length;for(a=i;a<s;a+=1)e.setTripleAt(t[o][0],t[o][1],n[o][0],n[o][1],r[o][0],r[o][1],a,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),n=void 0===e._length?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var n,i,a,o,s,l,u,c,p,h=r.lastIndex,d=this.keyframes;if(e<d[0].t-this.offsetTime)n=d[0].s[0],a=!0,h=0;else if(e>=d[d.length-1].t-this.offsetTime)n=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],a=!0;else{for(var f,m,g,v=h,y=d.length-1,b=!0;b&&(f=d[v],!((m=d[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},h=v,!(a=1===f.h)){if(e>=m.t-this.offsetTime)c=1;else if(e<f.t-this.offsetTime)c=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=_),c=_((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}n=f.s[0]}for(l=t._length,u=n.i[0].length,r.lastIndex=h,o=0;o<l;o+=1)for(s=0;s<u;s+=1)p=a?n.i[o][s]:n.i[o][s]+(i.i[o][s]-n.i[o][s])*c,t.i[o][s]=p,p=a?n.o[o][s]:n.o[o][s]+(i.o[o][s]-n.o[o][s])*c,t.o[o][s]=p,p=a?n.v[o][s]:n.v[o][s]+(i.v[o][s]-n.v[o][s])*c,t.v[o][s]=p}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>n&&t>n)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,n=e._length;for(r=0;r<n;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,a){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===a?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}o.prototype.interpolateShape=t,o.prototype.getValue=a,o.prototype.setVValue=i,o.prototype.addEffect=s,l.prototype.getValue=a,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=s;var u=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=r-i,o.v[1][0]=a?t+n:t-n,o.v[1][1]=r,o.v[2][0]=t,o.v[2][1]=r+i,o.v[3][0]=a?t-n:t+n,o.v[3][1]=r,o.i[0][0]=a?t-n*e:t+n*e,o.i[0][1]=r-i,o.i[1][0]=a?t+n:t-n,o.i[1][1]=r-i*e,o.i[2][0]=a?t+n*e:t-n*e,o.i[2][1]=r+i,o.i[3][0]=a?t-n:t+n,o.i[3][1]=r+i*e,o.o[0][0]=a?t+n*e:t-n*e,o.o[0][1]=r-i,o.o[1][0]=a?t+n:t-n,o.o[1][1]=r+i*e,o.o[2][0]=a?t-n*e:t+n*e,o.o[2][1]=r+i,o.o[3][0]=a?t-n:t+n,o.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,n,i=2*Math.floor(this.pt.v),a=2*Math.PI/i,o=!0,s=this.or.v,l=this.ir.v,u=this.os.v,c=this.is.v,p=2*Math.PI*s/(2*i),h=2*Math.PI*l/(2*i),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=o?u:c,n=o?p:h;var m=(t=o?s:l)*Math.cos(d),g=t*Math.sin(d),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*n*r*f,g-y*n*r*f,m+v*n*r*f,g+y*n*r*f,e,!0),o=!o,d+=a*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,n=this.or.v,i=this.os.v,a=2*Math.PI*n/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=n*Math.cos(o),u=n*Math.sin(o),c=0===l&&0===u?0:u/Math.sqrt(l*l+u*u),p=0===l&&0===u?0:-l/Math.sqrt(l*l+u*u);l+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(l,u,l-c*a*i*s,u-p*a*i*s,l+c*a*i*s,u+p*a*i*s,e,!0),o+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),a=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+i,e+r,t-n+a,0,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-a,e+r,t+n-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+n,e+r-i,t+n,e+r-a,t+n,2,!0),this.v.setTripleAt(e-r+i,t+n,e-r+a,t+n,e-r+i,t+n,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-i,e-r,t+n-a,4,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+a,e-r,t-n+i,5,!0),this.v.setTripleAt(e-r+i,t-n,e-r+i,t-n,e-r+a,t-n,6,!0),this.v.setTripleAt(e+r-i,t-n,e+r-a,t-n,e+r-i,t-n,7,!0)):(this.v.setTripleAt(e-r,t+n,e-r+a,t+n,e-r,t+n,2),this.v.setTripleAt(e-r,t-n,e-r,t-n+a,e-r,t-n,3))):(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+a,e+r,t-n+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-n,e+r-i,t-n,e+r-a,t-n,1,!0),this.v.setTripleAt(e-r+i,t-n,e-r+a,t-n,e-r+i,t-n,2,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+i,e-r,t-n+a,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-a,e-r,t+n-i,4,!0),this.v.setTripleAt(e-r+i,t+n,e-r+i,t+n,e-r+a,t+n,5,!0),this.v.setTripleAt(e+r-i,t+n,e+r-a,t+n,e+r-i,t+n,6,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-i,e+r,t+n-a,7,!0)):(this.v.setTripleAt(e-r,t-n,e-r+a,t-n,e-r,t-n,1,!0),this.v.setTripleAt(e-r,t+n,e-r,t+n-a,e-r,t+n,2,!0),this.v.setTripleAt(e+r,t+n,e+r-a,t+n,e+r,t+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}();return{getShapeProp:function(e,t,r){var n;return 3===r||4===r?n=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new o(e,t,r):5===r?n=new p(e,t):6===r?n=new u(e,t):7===r&&(n=new c(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}}}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function o(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function l(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function c(e,t){return this.shear(r(e),r(t))}function p(n,i){var a=e(i),o=t(i);return this._t(a,o,0,0,-o,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(a,-o,0,0,o,a,0,0,0,0,1,0,0,0,0,1)}function h(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function d(e,t,r,n,i,a,o,s,l,u,c,p,h,d,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=u,this.props[10]=c,this.props[11]=p,this.props[12]=h,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function f(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,n,i,a,o,s,l,u,c,p,h,d,f,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===a&&0===o&&0===s&&0===l&&0===u&&1===c&&0===p)return g[12]=g[12]*e+g[15]*h,g[13]=g[13]*a+g[15]*d,g[14]=g[14]*c+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],_=g[3],x=g[4],k=g[5],w=g[6],S=g[7],I=g[8],P=g[9],$=g[10],E=g[11],A=g[12],C=g[13],T=g[14],D=g[15];return g[0]=v*e+y*i+b*l+_*h,g[1]=v*t+y*a+b*u+_*d,g[2]=v*r+y*o+b*c+_*f,g[3]=v*n+y*s+b*p+_*m,g[4]=x*e+k*i+w*l+S*h,g[5]=x*t+k*a+w*u+S*d,g[6]=x*r+k*o+w*c+S*f,g[7]=x*n+k*s+w*p+S*m,g[8]=I*e+P*i+$*l+E*h,g[9]=I*t+P*a+$*u+E*d,g[10]=I*r+P*o+$*c+E*f,g[11]=I*n+P*s+$*p+E*m,g[12]=A*e+C*i+T*l+D*h,g[13]=A*t+C*a+T*u+D*d,g[14]=A*r+C*o+T*c+D*f,g[15]=A*n+C*s+T*p+D*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function x(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function k(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function w(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function S(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function I(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,n=-this.props[4]/e,i=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=a,s.props[13]=o,s}function P(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function $(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=P(e[t]);return n}function E(e,t,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=e[0],n[1]=e[1],n[2]=t[0],n[3]=t[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],u=this.props[13];n[0]=e[0]*i+e[1]*o+l,n[1]=e[0]*a+e[1]*s+u,n[2]=t[0]*i+t[1]*o+l,n[3]=t[0]*a+t[1]*s+u,n[4]=r[0]*i+r[1]*o+l,n[5]=r[0]*a+r[1]*s+u}return n}function A(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function C(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function T(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=n(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function D(e){return e<1e-6&&e>0||e>-1e-6&&e<0?n(1e4*e)/1e4:e}function z(){var e=this.props;return"matrix("+D(e[0])+","+D(e[1])+","+D(e[4])+","+D(e[5])+","+D(e[12])+","+D(e[13])+")"}return function(){this.reset=i,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=p,this.shear=u,this.scale=h,this.setTransform=d,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=x,this.applyToX=k,this.applyToY=w,this.applyToZ=S,this.applyToPointArray=A,this.applyToTriplePoints=E,this.applyToPointStringified=C,this.toCSS=T,this.to2dCSS=z,this.clone=b,this.cloneFromProps=_,this.equals=y,this.inversePoints=$,this.inversePoint=P,this.getInverseMatrix=I,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,n){return new t[e](r,n)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,i){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o,s,l=[],u=a.length;for(o=0;o<u;o+=1){var c,p;(s=a[o]).e*i<n||s.s*i>n+r||(c=s.s*i<=n?0:(s.s*i-n)/r,p=s.e*i>=n+r?1:(s.e*i-n)/r,l.push([c,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,n,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),(t=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(r=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var o=t;t=r,r=o}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,l,u,c,p,h=this.shapes.length,d=0;if(r===t)for(i=0;i<h;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<h;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<h;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(n=f.shape.paths)._length,p=0,!f.shape._mdf&&f.pathsData.length)p=f.totalShapeLength;else{for(u=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)c=bez.getSegmentsLength(n.shapes[s]),u.push(c),p+=c.totalLength;f.totalShapeLength=p,f.pathsData=u}d+=p,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=t,b=r,_=0;for(i=h-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&h>1?(v=this.calculateShapeEdges(t,r,f.totalShapeLength,_,d),_+=f.totalShapeLength):v=[[y,b]],l=v.length,s=0;s<l;s+=1){y=v[s][0],b=v[s][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var x=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=x.pop();this.addPaths(x,m),x=this.addShapes(f,g[1],k)}else this.addPaths(x,m),x=this.addShapes(f,g[1]);this.addPaths(x,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,i,a,o){i.setXYAt(t[0],t[1],"o",a),i.setXYAt(r[0],r[1],"i",a+1),o&&i.setXYAt(e[0],e[1],"v",a),i.setXYAt(n[0],n[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n,i,a,o,s,l,u,c,p=e.pathsData,h=e.shape.paths.shapes,d=e.shape.paths._length,f=0,m=[],g=!0;for(r?(s=r._length,c=r._length):(r=shapePool.newElement(),s=0,c=0),m.push(r),n=0;n<d;n+=1){for(l=p[n].lengths,r.c=h[n].c,a=h[n].c?l.length:l.length+1,i=1;i<a;i+=1)if(f+(o=l[i-1]).addedLength<t.s)f+=o.addedLength,r.c=!1;else{if(f>t.e){r.c=!1;break}t.s<=f&&t.e>=f+o.addedLength?(this.addSegment(h[n].v[i-1],h[n].o[i-1],h[n].i[i],h[n].v[i],r,s,g),g=!1):(u=bez.getNewSegment(h[n].v[i-1],h[n].v[i],h[n].o[i-1],h[n].i[i],(t.s-f)/o.addedLength,(t.e-f)/o.addedLength,l[i-1]),this.addSegmentFromArray(u,r,s,g),g=!1,r.c=!1),f+=o.addedLength,s+=1}if(h[n].c&&l.length){if(o=l[i-1],f<=t.e){var v=l[i-1].addedLength;t.s<=f&&t.e>=f+v?(this.addSegment(h[n].v[i-1],h[n].o[i-1],h[n].i[0],h[n].v[0],r,s,g),g=!1):(u=bez.getNewSegment(h[n].v[i-1],h[n].v[0],h[n].o[i-1],h[n].i[0],(t.s-f)/v,(t.e-f)/v,l[i-1]),this.addSegmentFromArray(u,r,s,g),g=!1,r.c=!1)}else r.c=!1;f+=o.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>t.e)break;n<d-1&&(r=shapePool.newElement(),g=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],i=e._length,a=0;for(a=0;a<i;a+=1)n[0]+=e.v[a][0],n[1]+=e.v[a][1];n[0]/=i,n[1]/=i;var o,s,l,u,c,p,h=shapePool.newElement();for(h.c=e.c,a=0;a<i;a+=1)o=e.v[a][0]+(n[0]-e.v[a][0])*r,s=e.v[a][1]+(n[1]-e.v[a][1])*r,l=e.o[a][0]+(n[0]-e.o[a][0])*-r,u=e.o[a][1]+(n[1]-e.o[a][1])*-r,c=e.i[a][0]+(n[0]-e.i[a][0])*-r,p=e.i[a][1]+(n[1]-e.i[a][1])*-r,h.setTripleAt(o,s,l,u,c,p,a);return h},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,i,a,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,n=0;n<i;n+=1)o.addShape(this.processPath(t[n],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var n,i=t.or.k.length;for(n=0;n<i;n+=1)t.or.k[n].to=null,t.or.k[n].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(n[0]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[1]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),i[0]=a.getValueAtTime(a.keyframes[0].t/r,0),i[1]=o.getValueAtTime(o.keyframes[0].t/r,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(n[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0),i[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0)):(n=[a.pv,o.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime),i[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime))}else n=i=e;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,n){return new t(e,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var i=-t/(2*e);if(0===n)return[i];var a=Math.sqrt(n)/(2*e);return[i-a,i+a]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var a=polynomialCoefficients(e[0],t[0],r[0],n[0]),o=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var i=n;n=r,r=i}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var s=e.point(a[o])[t];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,i,a){if(boxIntersect(e,t))if(r>=a||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)i.push([e.t,t.t]);else{var o=splitData(e),s=splitData(t);intersectsImpl(o[0],s[0],r+1,n,i,a),intersectsImpl(o[0],s[1],r+1,n,i,a),intersectsImpl(o[1],s[0],r+1,n,i,a),intersectsImpl(o[1],s[1],r+1,n,i,a)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var i=[e[0],e[1],1],a=[t[0],t[1],1],o=[r[0],r[1],1],s=[n[0],n[1],1],l=crossProduct(crossProduct(i,a),crossProduct(o,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,i,a,o){var s=r-Math.PI/2,l=r+Math.PI/2,u=t[0]+Math.cos(r)*n*i,c=t[1]-Math.sin(r)*n*i;e.setTripleAt(u,c,u+Math.cos(s)*a,c-Math.sin(s)*a,u+Math.cos(l)*o,c-Math.sin(l)*o,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),i=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,n,i,a,o){var s=getProjectingAngle(t,r),l=t.v[r%t._length],u=t.v[0===r?t._length-1:r-1],c=t.v[(r+1)%t._length],p=2===a?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,h=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(e,t.v[r%t._length],s,o,n,h/(2*(i+1)),p/(2*(i+1)),a)}function zigZagSegment(e,t,r,n,i,a){for(var o=0;o<n;o+=1){var s=(o+1)/(n+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(s);setPoint(e,t.point(s),u,a,r,l/(2*(n+1)),l/(2*(n+1)),i),a=-a}return a}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,i,a,o,s,l;r=(l=linearOffset(e.points[0],e.points[1],t))[0],n=l[1],i=(l=linearOffset(e.points[1],e.points[2],t))[0],a=l[1],o=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var u=lineIntersection(r,n,i,a);null===u&&(u=n);var c=lineIntersection(o,s,i,a);return null===c&&(c=o),new PolynomialBezier(r,u,c,s)}function joinLines(e,t,r,n,i){var a=t.points[3],o=r.points[0];if(3===n)return a;if(pointEqual(a,o))return a;if(2===n){var s=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,u=lineIntersection(a,polarOffset(a,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),c=u?pointDistance(u,a):pointDistance(a,o)/2,p=polarOffset(a,s,2*c*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(o,l,2*c*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],p[0],p[1],e.length()),o}var h=lineIntersection(pointEqual(a,t.points[2])?t.points[0]:t.points[2],a,o,pointEqual(o,r.points[1])?r.points[3]:r.points[1]);return h&&pointDistance(h,a)<i?(e.setTripleAt(h[0],h[1],h[0],h[1],h[0],h[1],e.length()),h):a}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(r[e.length-1]=e[e.length-1].split(i[0])[0],n[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,i,a,o=e.inflectionPoints();if(0===o.length)return[offsetSegment(e,t)];if(1===o.length||floatEqual(o[1],1))return r=(i=e.split(o[0]))[0],n=i[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(i=e.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return a=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,t),offsetSegment(a,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",i=t.length,a=0;a<i;a+=1)switch(t[a].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,i,a){var o=a?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),l=n.s.v[1]+(1-n.s.v[1])*(1-i);e.translate(n.p.v[0]*o*i,n.p.v[1]*o*i,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*o*i),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(a?1/s:s,a?1/l:l),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,i,a,o=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(a=0,n=0;n<=this._groups.length-1;n+=1){if(s=a<l,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var c=this.elemsData[n].it,p=c[c.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}a+=1}this._currentCopies=l;var h=this.o.v,d=h%1,f=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,_=0;if(h>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),_+=d)}else if(h<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),_-=d)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==_){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)r[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)r[y]=this.matrix.props[y];_+=1,a-=1,n+=i}}else for(a=this._currentCopies,n=0,i=1;a;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,n+=i;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,n=shapePool.newElement();n.c=e.c;var i,a,o,s,l,u,c,p,h,d,f,m,g=e._length,v=0;for(r=0;r<g;r+=1)i=e.v[r],o=e.o[r],a=e.i[r],i[0]===o[0]&&i[1]===o[1]&&i[0]===a[0]&&i[1]===a[1]?0!==r&&r!==g-1||e.c?(s=0===r?e.v[g-1]:e.v[r-1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=f=i[0]+(s[0]-i[0])*u,p=m=i[1]-(i[1]-s[1])*u,h=c-(c-i[0])*roundCorner,d=p-(p-i[1])*roundCorner,n.setTripleAt(c,p,h,d,f,m,v),v+=1,s=r===g-1?e.v[0]:e.v[r+1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=h=i[0]+(s[0]-i[0])*u,p=d=i[1]+(s[1]-i[1])*u,f=c-(c-i[0])*roundCorner,m=p-(p-i[1])*roundCorner,n.setTripleAt(c,p,h,d,f,m,v),v+=1):(n.setTripleAt(i[0],i[1],o[0],o[1],a[0],a[1],v),v+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],v),v+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,i,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,n=0;n<i;n+=1)o.addShape(this.processPath(t[n],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,r,e),a=lerpPoint(r,n,e),o=lerpPoint(i,a,e);return[new PolynomialBezier(this.points[0],t,i,o,!0),new PolynomialBezier(o,a,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var i=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(i-=1),0===i)return a;var o=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,r,n,o);for(var l=0;l<i;l+=1)o=zigZagSegment(a,s,t,r,n,-o),s=l!==i-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%i):null,zigZagCorner(a,e,l+1,t,r,n,o);return a},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,i,a,o,s=this.shapes.length,l=this.amplitude.v,u=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,n=0;n<i;n+=1)o.addShape(this.processPath(t[n],l,u,c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var i=shapePool.newElement();i.c=e.c;var a,o,s,l=e.length();e.c||(l-=1);var u=[];for(a=0;a<l;a+=1)s=PolynomialBezier.shapeSegment(e,a),u.push(offsetSegmentSplit(s,t));if(!e.c)for(a=l-1;a>=0;a-=1)s=PolynomialBezier.shapeSegmentInverted(e,a),u.push(offsetSegmentSplit(s,t));u=pruneIntersections(u);var c=null,p=null;for(a=0;a<u.length;a+=1){var h=u[a];for(p&&(c=joinLines(i,p,h[0],r,n)),p=h[h.length-1],o=0;o<h.length;o+=1)s=h[o],c&&pointEqual(s.points[0],c)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),c=s.points[3]}return u.length&&joinLines(i,p,u[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,i,a,o,s=this.shapes.length,l=this.amount.v,u=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,n=0;n<i;n+=1)o.addShape(this.processPath(t[n],l,c,u));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(e){var t,r=e.split(","),n=r.length,i=[];for(t=0;t<n;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:n,w:i,parent:r}}function a(e,t){var r,n=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===n){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",e.fFamily),a.setAttribute("font-style",i.style),a.setAttribute("font-weight",i.weight),a.textContent="1",e.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",e.fClass)):a.style.fontFamily=e.fFamily,t.appendChild(a),r=a}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=o}return{measureText:function(e){return"svg"===n?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function o(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=1024*(r-55296)+n-56320+65536)}return t}function s(e){var t=o(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var n=o(e.substr(t,2));if(n!==r)return!1;var i=0;for(t+=2;i<5;){if((n=o(e.substr(t,2)))<917601||n>917626)return!1;i+=1,t+=2}return 917631===o(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=r;var u={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,n,i=e.length,a=this.chars.length;for(t=0;t<i;t+=1){for(r=0,n=!1;r<a;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(n=!0),r+=1;n||(this.chars.push(e[t]),a+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=a(e),e.cache={}})),void(this.fonts=e.list);var r,n=e.list,o=n.length,s=o;for(r=0;r<o;r+=1){var l,u,c=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(c=!1),c){var p=createTag("style");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.setAttribute("f-family",n[r].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(p)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;u<l.length;u+=1)-1!==l[u].href.indexOf(n[r].fPath)&&(c=!1);if(c){var h=createTag("link");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.type="text/css",h.rel="stylesheet",h.href=n[r].fPath,document.body.appendChild(h)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),u=0;u<l.length;u+=1)n[r].fPath===l[u].src&&(c=!1);if(c){var d=createTag("link");d.setAttribute("f-forigin",n[r].fOrigin),d.setAttribute("f-origin",n[r].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",n[r].fPath),t.appendChild(d)}}}else n[r].loaded=!0,s-=1;n[r].helper=a(n[r],t),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,n){for(var i=0,a=this.chars.length;i<a;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,n)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var n=this.getFontByName(t),i=e;if(!n.cache[i]){var a=n.helper;if(" "===e){var o=a.measureText("|"+e+"|"),s=a.measureText("||");n.cache[i]=(o-s)/100}else n.cache[i]=a.measureText(e)/100}return n.cache[i]*r},checkLoadedFonts:function(){var e,t,r,n=this.fonts.length,i=n;for(e=0;e<n;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=u,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,n=e.ef||[];this.effectElements=[];var i,a=n.length;for(r=0;r<a;r+=1)i=new GroupEffect(n[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,a=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,a[r].ty){case 0:n=new SliderEffect(a[r],t,this);break;case 1:n=new AngleEffect(a[r],t,this);break;case 2:n=new ColorEffect(a[r],t,this);break;case 3:n=new PointEffect(a[r],t,this);break;case 4:case 7:n=new CheckboxEffect(a[r],t,this);break;case 10:n=new LayerIndexEffect(a[r],t,this);break;case 11:n=new MaskIndexEffect(a[r],t,this);break;case 5:n=new EffectsManager(a[r],t,this);break;default:n=new NoValueEffect(a[r],t,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),i=e("text"),a=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,n=e.length,i=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,i=this.layers,a=0,o=i.length;a<o;)i[a].ind==t&&(n[a]&&!0!==n[a]?(r.push(n[a]),n[a].setAsParent(),void 0!==i[a].parent?this.buildElementParenting(e,i[a].parent,r):e.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(e))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,u,c,p,h,d=this.masksProperties,f=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(n=0;n<o;n+=1)if(("a"!==d[n].mode&&"n"!==d[n].mode||d[n].inv||100!==d[n].o.k||d[n].o.x)&&(v="mask",y="mask"),"s"!==d[n].mode&&"i"!==d[n].mode||0!==f?u=null:((u=createNS("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),m.push(u)),i=createNS("path"),"n"===d[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,d[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[n],3),elem:i,lastPath:""},a.appendChild(i);else{var b;if(f+=1,i.setAttribute("fill","s"===d[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==d[n].x.k?(v="mask",y="mask",h=PropertyFactory.getProp(this.element,d[n].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),c.appendChild(p),a.appendChild(c),i.setAttribute("stroke","s"===d[n].mode?"#000000":"#ffffff")):(p=null,h=null),this.storedData[n]={elem:i,x:h,expan:p,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===d[n].mode){l=m.length;var _=createNS("g");for(s=0;s<l;s+=1)_.appendChild(m[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",g+"_"+f),x.appendChild(i),a.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(_)}else m.push(i);d[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,d[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[n],3),invRect:u},this.viewData[n].prop.k||this.drawPath(d[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(v),o=m.length,n=0;n<o;n+=1)this.maskElement.appendChild(m[n]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):n=!1;var a,o=t.length;for(r=0;r<o;r+=1)a=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-a[0],e[1]-a[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(t=0;t<n;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,(e+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var n,i,a=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,n=1;n<i;n+=1)a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&i>1&&(a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==a){var o="";r.elem&&(t.c&&(o=e.inv?this.solidPath+a:a),r.elem.setAttribute("d",o)),r.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}},featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(o,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),a.appendChild(this.layerElement),this.transformedElement=a,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,i,a=this.layerId+"_"+e;if(1===e||3===e){var o=createNS("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===e?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(n),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==e||(o.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),o.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",a),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),r=filtersFactory.createFilter(t);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),r.appendChild(u);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),u.appendChild(c),this.globalData.defs.appendChild(r);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(p),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(p),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=a}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,i=e.length;n<i;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,n){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var a,o=t.length||0;for(i=0;i<o;i+=1)a=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=a.k||this.k,this.dataProps[i]={n:t[i].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var n=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,n,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(1===t.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,a,o,s=[];for(o=4*t.g.p,a=0;a<o;a+=4)i=createNS("stop"),n.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,a=createNS("mask"),o=createNS("path");a.appendChild(o);var s=createElementID(),l=createElementID();a.setAttribute("id",l);var u=createNS(1===e.t?"linearGradient":"radialGradient");u.setAttribute("id",s),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var c=this.stops;for(n=4*e.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(r),c.push(r);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=a,this.ost=c,this.maskId=l,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(0===t)return"";var i,a=e.o,o=e.i,s=e.v,l=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+n.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+n.applyToPointStringified(o[i][0],o[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&t&&(l+=" C"+n.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+n.applyToPointStringified(o[0][0],o[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var a,o,s,l,u,c,p,h,d,f,m=n.styles.length,g=n.lvl;for(c=0;c<m;c+=1){if(l=n.sh._mdf||i,n.styles[c].lvl<g){for(h=t.reset(),d=g-n.styles[c].lvl,f=n.transformers.length-1;!l&&d>0;)l=n.transformers[f].mProps._mdf||l,d-=1,f-=1;if(l)for(d=g-n.styles[c].lvl,f=n.transformers.length-1;d>0;)h.multiply(n.transformers[f].mProps.v),d-=1,f-=1}else h=e;if(o=(p=n.sh.paths)._length,l){for(s="",a=0;a<o;a+=1)(u=p.shapes[a])&&u._length&&(s+=buildShapeString(u,u._length,u.c,h));n.caches[c]=s}else s=n.caches[c];n.styles[c].d+=!0===r.hd?"":s,n.styles[c]._mdf=l||n.styles[c]._mdf}}function a(e,t,r){var n=t.style;(t.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",t.o.v)}function o(e,t,r){s(e,t,r),l(0,t,r)}function s(e,t,r){var n,i,a,o,s,l=t.gf,u=t.g._hasOpacity,c=t.s.v,p=t.e.v;if(t.o._mdf||r){var h="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(h,t.o.v)}if(t.s._mdf||r){var d=1===e.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,c[0]),l.setAttribute(f,c[1]),u&&!t.g._collapsable&&(t.of.setAttribute(d,c[0]),t.of.setAttribute(f,c[1]))}if(t.g._cmdf||r){n=t.cst;var m=t.g.c;for(a=n.length,i=0;i<a;i+=1)(o=n[i]).setAttribute("offset",m[4*i]+"%"),o.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(u&&(t.g._omdf||r)){var g=t.g.o;for(a=(n=t.g._collapsable?t.cst:t.ost).length,i=0;i<a;i+=1)o=n[i],t.g._collapsable||o.setAttribute("offset",g[2*i]+"%"),o.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),u&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)),l.setAttribute("r",s),u&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)));var v=Math.atan2(p[1]-c[1],p[0]-c[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,_=Math.cos(v+t.a.v)*b+c[0],x=Math.sin(v+t.a.v)*b+c[1];l.setAttribute("fx",_),l.setAttribute("fy",x),u&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",x))}}function l(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return s;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,i,a){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=i,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,i=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(r=0;r<a;r+=1){for(n=this.stylesList[r],s=!1,o.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(n)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),i=n.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,n):"fl"===e.ty?r=new SVGFillStyleData(this,e,n):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,n)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,n=this.stylesList.length;for(t=0;t<n;t+=1)-1!==r.indexOf(this.stylesList[t])||this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,i,a,o){var s,l,u,c,p,h,d=[].concat(a),f=e.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((h=this.searchProcessedElement(e[s]))?t[s]=r[h-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)h?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==n&&n.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(h)for(u=t[s].it.length,l=0;l<u;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,d,o),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(h||(t[s]=this.createTransformElement(e[s],n)),c=t[s].transform,d.push(c)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(h||(t[s]=this.createShapeElement(e[s],d,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(h?(p=t[s]).closed=!1:((p=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=p,this.shapeModifiers.push(p)),g.push(p)):"rp"===e[s].ty&&(h?(p=t[s]).closed=!0:(p=ShapeModifiers.getModifier(e[s].ty),t[s]=p,p.init(this,e,s,t),this.shapeModifiers.push(p),o=!1),g.push(p));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,n,i,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,o=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,o=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,o=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)a=r!==this.keysIndex?this.effectsSequence[n](a,a.t):this.effectsSequence[n](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],i=0,a=e.length,o=!1,s=!1,l="";i<a;)o=s,s=!1,t=e.charCodeAt(i),l=e.charAt(i),FontManager.isCombinedCharacter(t)?o=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(r=e.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(i,2),o=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(r=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(o=!0)):FontManager.isZeroWidthJoiner(t)&&(o=!0,s=!0),o?(n[n.length-1]+=l,o=!1):n.push(l),i+=l.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,i,a,o,s,l=this.elem.globalData.fontManager,u=this.data,c=[],p=0,h=u.m.g,d=0,f=0,m=0,g=[],v=0,y=0,b=l.getFontByName(e.f),_=0,x=getFontProperties(b);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var k,w=e.tr/1e3*e.finalSize;if(e.sz)for(var S,I,P=!0,$=e.sz[0],E=e.sz[1];P;){S=0,v=0,r=(I=this.buildFinalText(e.t)).length,w=e.tr/1e3*e.finalSize;var A=-1;for(t=0;t<r;t+=1)k=I[t].charCodeAt(0),n=!1," "===I[t]?A=t:13!==k&&3!==k||(v=0,n=!0,S+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(I[t],b.fStyle,b.fFamily),_=n?0:s.w*e.finalSize/100):_=l.measureText(I[t],e.f,e.finalSize),v+_>$&&" "!==I[t]?(-1===A?r+=1:t=A,S+=e.finalLineHeight||1.2*e.finalSize,I.splice(t,A===t?1:0,"\r"),A=-1,v=0):(v+=_,v+=w);S+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&E<S?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=I,r=e.finalText.length,P=!1)}v=-w,_=0;var C,T=0;for(t=0;t<r;t+=1)if(n=!1,13===(k=(C=e.finalText[t]).charCodeAt(0))||3===k?(T=0,g.push(v),y=v>y?v:y,v=-2*w,i="",n=!0,m+=1):i=C,l.chars?(s=l.getCharData(C,b.fStyle,l.getFontByName(e.f).fFamily),_=n?0:s.w*e.finalSize/100):_=l.measureText(i,e.f,e.finalSize)," "===C?T+=_+w:(v+=_+w+T,T=0),c.push({l:_,an:_,add:d,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==h){if(d+=_,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(d-=_);f<=t;)c[f].an=d,c[f].ind=p,c[f].extra=_,f+=1;p+=1,d=0}}else if(3==h){if(d+=_,""===i||t===r-1){for(""===i&&(d-=_);f<=t;)c[f].an=d,c[f].ind=p,c[f].extra=_,f+=1;d=0,p+=1}}else c[p].ind=p,c[p].extra=0,p+=1;if(e.l=c,y=v>y?v:y,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var D,z,M,O,j=u.a;o=j.length;var F=[];for(a=0;a<o;a+=1){for((D=j[a]).a.sc&&(e.strokeColorAnim=!0),D.a.sw&&(e.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(e.fillColorAnim=!0),O=0,M=D.s.b,t=0;t<r;t+=1)(z=c[t]).anIndexes[a]=O,(1==M&&""!==z.val||2==M&&""!==z.val&&" "!==z.val||3==M&&(z.n||" "==z.val||t==r-1)||4==M&&(z.n||t==r-1))&&(1===D.s.rn&&F.push(O),O+=1);u.a[a].s.totalChars=O;var N,R=-1;if(1===D.s.rn)for(t=0;t<r;t+=1)R!=(z=c[t]).anIndexes[a]&&(R=z.anIndexes[a],N=F.splice(Math.floor(Math.random()*F.length),1)[0]),z.anIndexes[a]=N}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,a=0,o=1,s=1;this.ne.v>0?i=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,a,o,s).get,u=0,c=this.finalS,p=this.finalE,h=this.data.sh;if(2===h)u=l(u=p===c?n>=p?1:0:e(0,t(.5/(p-c)+(n-c)/(p-c),1)));else if(3===h)u=l(u=p===c?n>=p?0:1:1-e(0,t(.5/(p-c)+(n-c)/(p-c),1)));else if(4===h)p===c?u=0:(u=e(0,t(.5/(p-c)+(n-c)/(p-c),1)))<.5?u*=2:u=1-2*(u-.5),u=l(u);else if(5===h){if(p===c)u=0;else{var d=p-c,f=-d/2+(n=t(e(0,n+.5-c),p-c)),m=d/2;u=Math.sqrt(1-f*f/(m*m))}u=l(u)}else 6===h?(p===c?u=0:(n=t(e(0,n+.5-c),p-c),u=(1+Math.cos(Math.PI+2*Math.PI*n/(p-c)))/2),u=l(u)):(n>=r(c)&&(u=e(0,t(n-c<0?t(p,1)-(c-n):p-n,1))),u=l(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;u<v?u=0:(u=(u-v)/g)>1&&(u=1)}return u*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,n=this.s.v/t+r,i=this.e.v/t+r;if(n>i){var a=n;n=i,i=a}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t,r)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},i=PropertyFactory.getProp,a=t.a;this.a={r:a.r?i(e,a.r,0,degToRads,r):n,rx:a.rx?i(e,a.rx,0,degToRads,r):n,ry:a.ry?i(e,a.ry,0,degToRads,r):n,sk:a.sk?i(e,a.sk,0,degToRads,r):n,sa:a.sa?i(e,a.sa,0,degToRads,r):n,s:a.s?i(e,a.s,1,.01,r):n,a:a.a?i(e,a.a,1,0,r):n,o:a.o?i(e,a.o,0,.01,r):n,p:a.p?i(e,a.p,1,0,r):n,sw:a.sw?i(e,a.sw,0,0,r):n,sc:a.sc?i(e,a.sc,1,0,r):n,fc:a.fc?i(e,a.fc,1,0,r):n,fh:a.fh?i(e,a.fh,0,0,r):n,fs:a.fs?i(e,a.fs,0,.01,r):n,fb:a.fb?i(e,a.fb,0,.01,r):n,t:a.t?i(e,a.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,a,o,s,l,u,c,p,h,d,f,m,g,v,y,b,_,x=this._moreOptions.alignment.v,k=this._animatorsData,w=this._textData,S=this.mHelper,I=this._renderType,P=this.renderedLetters.length,$=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var E,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),o={tLength:0,segments:[]},a=A._length-1,v=0,i=0;i<a;i+=1)E=bez.buildBezierData(A.v[i],A.v[i+1],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[i+1][0]-A.v[i+1][0],A.i[i+1][1]-A.v[i+1][1]]),o.tLength+=E.segmentLength,o.segments.push(E),v+=E.segmentLength;i=a,_.v.c&&(E=bez.buildBezierData(A.v[i],A.v[0],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),o.tLength+=E.segmentLength,o.segments.push(E),v+=E.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,h=0,p=1,u=0,c=!0,m=o.segments,s<0&&_.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),p=(f=m[h=m.length-1].points).length-1;s<0;)s+=f[p].partialLength,(p-=1)<0&&(p=(f=m[h-=1].points).length-1);d=(f=m[h].points)[p-1],g=(l=f[p]).partialLength}a=$.length,r=0,n=0;var C,T,D,z,M,O=1.2*e.finalSize*.714,j=!0;D=k.length;var F,N,R,U,L,Z,V,B,G,q,H,W,J=-1,K=s,X=h,Y=p,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ne=0,ie=2===e.j?-.5:-1,ae=0,oe=!0;for(i=0;i<a;i+=1)if($[i].n){for(re&&(re+=ne);ae<i;)$[ae].animatorJustifyOffset=re,ae+=1;re=0,oe=!0}else{for(T=0;T<D;T+=1)(C=k[T].a).t.propType&&(oe&&2===e.j&&(ne+=C.t.v*ie),(M=k[T].s.getMult($[i].anIndexes[T],w.a[T].s.totalChars)).length?re+=C.t.v*M[0]*ie:re+=C.t.v*M*ie);oe=!1}for(re&&(re+=ne);ae<i;)$[ae].animatorJustifyOffset=re,ae+=1}for(i=0;i<a;i+=1){if(S.reset(),U=1,$[i].n)r=0,n+=e.yOffset,n+=j?1:0,s=K,j=!1,this._hasMaskedPath&&(p=Y,d=(f=m[h=X].points)[p-1],g=(l=f[p]).partialLength,u=0),ee="",H="",G="",W="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==$[i].line){switch(e.j){case 1:s+=v-e.lineWidths[$[i].line];break;case 2:s+=(v-e.lineWidths[$[i].line])/2}Q=$[i].line}J!==$[i].ind&&($[J]&&(s+=$[J].extra),s+=$[i].an/2,J=$[i].ind),s+=x[0]*$[i].an*.005;var se=0;for(T=0;T<D;T+=1)(C=k[T].a).p.propType&&((M=k[T].s.getMult($[i].anIndexes[T],w.a[T].s.totalChars)).length?se+=C.p.v[0]*M[0]:se+=C.p.v[0]*M),C.a.propType&&((M=k[T].s.getMult($[i].anIndexes[T],w.a[T].s.totalChars)).length?se+=C.a.v[0]*M[0]:se+=C.a.v[0]*M);for(c=!0,this._pathData.a.v&&(s=.5*$[0].an+(v-this._pathData.f.v-.5*$[0].an-.5*$[$.length-1].an)*J/(a-1),s+=this._pathData.f.v);c;)u+g>=s+se||!f?(y=(s+se-u)/l.partialLength,N=d.point[0]+(l.point[0]-d.point[0])*y,R=d.point[1]+(l.point[1]-d.point[1])*y,S.translate(-x[0]*$[i].an*.005,-x[1]*O*.01),c=!1):f&&(u+=l.partialLength,(p+=1)>=f.length&&(p=0,m[h+=1]?f=m[h].points:_.v.c?(p=0,f=m[h=0].points):(u-=l.partialLength,f=null)),f&&(d=l,g=(l=f[p]).partialLength));F=$[i].an/2-$[i].add,S.translate(-F,0,0)}else F=$[i].an/2-$[i].add,S.translate(-F,0,0),S.translate(-x[0]*$[i].an*.005,-x[1]*O*.01,0);for(T=0;T<D;T+=1)(C=k[T].a).t.propType&&(M=k[T].s.getMult($[i].anIndexes[T],w.a[T].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?M.length?s+=C.t.v*M[0]:s+=C.t.v*M:M.length?r+=C.t.v*M[0]:r+=C.t.v*M));for(e.strokeWidthAnim&&(Z=e.sw||0),e.strokeColorAnim&&(L=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(V=[e.fc[0],e.fc[1],e.fc[2]]),T=0;T<D;T+=1)(C=k[T].a).a.propType&&((M=k[T].s.getMult($[i].anIndexes[T],w.a[T].s.totalChars)).length?S.translate(-C.a.v[0]*M[0],-C.a.v[1]*M[1],C.a.v[2]*M[2]):S.translate(-C.a.v[0]*M,-C.a.v[1]*M,C.a.v[2]*M));for(T=0;T<D;T+=1)(C=k[T].a).s.propType&&((M=k[T].s.getMult($[i].anIndexes[T],w.a[T].s.totalChars)).length?S.scale(1+(C.s.v[0]-1)*M[0],1+(C.s.v[1]-1)*M[1],1):S.scale(1+(C.s.v[0]-1)*M,1+(C.s.v[1]-1)*M,1));for(T=0;T<D;T+=1){if(C=k[T].a,M=k[T].s.getMult($[i].anIndexes[T],w.a[T].s.totalChars),C.sk.propType&&(M.length?S.skewFromAxis(-C.sk.v*M[0],C.sa.v*M[1]):S.skewFromAxis(-C.sk.v*M,C.sa.v*M)),C.r.propType&&(M.length?S.rotateZ(-C.r.v*M[2]):S.rotateZ(-C.r.v*M)),C.ry.propType&&(M.length?S.rotateY(C.ry.v*M[1]):S.rotateY(C.ry.v*M)),C.rx.propType&&(M.length?S.rotateX(C.rx.v*M[0]):S.rotateX(C.rx.v*M)),C.o.propType&&(M.length?U+=(C.o.v*M[0]-U)*M[0]:U+=(C.o.v*M-U)*M),e.strokeWidthAnim&&C.sw.propType&&(M.length?Z+=C.sw.v*M[0]:Z+=C.sw.v*M),e.strokeColorAnim&&C.sc.propType)for(B=0;B<3;B+=1)M.length?L[B]+=(C.sc.v[B]-L[B])*M[0]:L[B]+=(C.sc.v[B]-L[B])*M;if(e.fillColorAnim&&e.fc){if(C.fc.propType)for(B=0;B<3;B+=1)M.length?V[B]+=(C.fc.v[B]-V[B])*M[0]:V[B]+=(C.fc.v[B]-V[B])*M;C.fh.propType&&(V=M.length?addHueToRGB(V,C.fh.v*M[0]):addHueToRGB(V,C.fh.v*M)),C.fs.propType&&(V=M.length?addSaturationToRGB(V,C.fs.v*M[0]):addSaturationToRGB(V,C.fs.v*M)),C.fb.propType&&(V=M.length?addBrightnessToRGB(V,C.fb.v*M[0]):addBrightnessToRGB(V,C.fb.v*M))}}for(T=0;T<D;T+=1)(C=k[T].a).p.propType&&(M=k[T].s.getMult($[i].anIndexes[T],w.a[T].s.totalChars),this._hasMaskedPath?M.length?S.translate(0,C.p.v[1]*M[0],-C.p.v[2]*M[1]):S.translate(0,C.p.v[1]*M,-C.p.v[2]*M):M.length?S.translate(C.p.v[0]*M[0],C.p.v[1]*M[1],-C.p.v[2]*M[2]):S.translate(C.p.v[0]*M,C.p.v[1]*M,-C.p.v[2]*M));if(e.strokeWidthAnim&&(G=Z<0?0:Z),e.strokeColorAnim&&(q="rgb("+Math.round(255*L[0])+","+Math.round(255*L[1])+","+Math.round(255*L[2])+")"),e.fillColorAnim&&e.fc&&(H="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),this._hasMaskedPath){if(S.translate(0,-e.ls),S.translate(0,x[1]*O*.01+n,0),this._pathData.p.v){b=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<d.point[0]&&(le+=180),S.rotate(-le*Math.PI/180)}S.translate(N,R,0),s-=x[0]*$[i].an*.005,$[i+1]&&J!==$[i+1].ind&&(s+=$[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(S.translate(r,n,0),e.ps&&S.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:S.translate($[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[$[i].line]),0,0);break;case 2:S.translate($[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[$[i].line])/2,0,0)}S.translate(0,-e.ls),S.translate(F,0,0),S.translate(x[0]*$[i].an*.005,x[1]*O*.01,0),r+=$[i].l+.001*e.tr*e.finalSize}"html"===I?ee=S.toCSS():"svg"===I?ee=S.to2dCSS():te=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],W=U}P<=i?(z=new LetterProps(W,G,q,H,ee,te),this.renderedLetters.push(z),P+=1,this.lettersChangedFlag=!0):(z=this.renderedLetters[i],this.lettersChangedFlag=z.update(W,G,q,H,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n,i=t.length,a="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(n=t[r].ks.k,a+=buildShapeString(n,n.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(n,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=t.title,this.svgElement.appendChild(n),r+=i}if(t&&t.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(i),i=""):i+=e[t],t+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var o,s=r.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var u=this.mHelper,c=this.data.singleShape,p=0,h=0,d=!0,f=.001*r.tr*r.finalSize;if(!c||l||r.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!c||0===e){if(o=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var v=createNS("g");o.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(u.reset(),c&&(s[e].n&&(p=-f,h+=r.yOffset,h+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(r,u,s[e].line,p,h),p+=s[e].l||0,p+=f),l){var y;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else c&&o.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&o&&o.setAttribute("d","")}else{var x=this.textContainer,k="start";switch(r.j){case 1:k="end";break;case 2:k="middle";break;default:k="start"}x.setAttribute("text-anchor",k),x.setAttribute("letter-spacing",f);var w=this.buildTextContents(r.finalText);for(t=w.length,h=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||createNS("tspan")).textContent=w[e],o.setAttribute("x",0),o.setAttribute("y",h),o.style.display="inherit",x.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,h+=r.finalLineHeight;this.layerElement.appendChild(x)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,n,i,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(r=a[e],n=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=t[n].getMatte(this.layers[e].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r=0,n=e.transforms.length,i=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function i(){var i,a,o;t||(i=createNS("svg"),a=createNS("filter"),o=createNS("feColorMatrix"),a.setAttribute("id",e),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),a.appendChild(o),i.appendChild(a),i.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return t||i(),t.width=n.width,t.height=n.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(r=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,i=this.element.finalTransform.mat,a=this.element.canvasContext,o=this.masksProperties.length;for(a.beginPath(),e=0;e<o;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),n=this.viewData[e].v,t=i.applyToPointArray(n.v[0][0],n.v[0][1],0),a.moveTo(t[0],t[1]);var l=n._length;for(s=1;s<l;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,a=4;"rc"===t.ty?a=5:"el"===t.ty?a=6:"sr"===t.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,a,e);var o,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(o={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(o),r[i].elements.push(o))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,a=e.ks.or.k.length;for(i=0;i<a;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,i){var a,o,s,l,u,c,p=e.length-1,h=[],d=[],f=[].concat(i);for(a=p;a>=0;a-=1){if((l=this.searchProcessedElement(e[a]))?t[a]=r[l-1]:e[a]._shouldRender=n,"fl"===e[a].ty||"st"===e[a].ty||"gf"===e[a].ty||"gs"===e[a].ty)l?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],f),h.push(t[a].style);else if("gr"===e[a].ty){if(l)for(s=t[a].it.length,o=0;o<s;o+=1)t[a].prevViewData[o]=t[a].it[o];else t[a]=this.createGroupElement(e[a]);this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,n,f)}else"tr"===e[a].ty?(l||(c=this.createTransformElement(e[a]),t[a]=c),f.push(t[a]),this.addTransformToStyleList(t[a])):"sh"===e[a].ty||"rc"===e[a].ty||"el"===e[a].ty||"sr"===e[a].ty?l||(t[a]=this.createShapeElement(e[a])):"tm"===e[a].ty||"rd"===e[a].ty||"pb"===e[a].ty||"zz"===e[a].ty||"op"===e[a].ty?(l?(u=t[a]).closed=!1:((u=ShapeModifiers.getModifier(e[a].ty)).init(this,e[a]),t[a]=u,this.shapeModifiers.push(u)),d.push(u)):"rp"===e[a].ty&&(l?(u=t[a]).closed=!0:(u=ShapeModifiers.getModifier(e[a].ty),t[a]=u,u.init(this,e,a,t),this.shapeModifiers.push(u),n=!1),d.push(u));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(h),p=d.length,a=0;a<p;a+=1)d[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,n,i,a,o,s,l,u=this.stylesList.length,c=this.globalData.renderer,p=this.globalData.canvasContext;for(e=0;e<u;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),a=l.elements,"st"===s||"gs"===s?(c.ctxStrokeStyle("st"===s?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===s?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&p.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),r=a.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),i=(o=a[t].trNodes).length,n=0;n<i;n+=1)"m"===o[n].t?p.moveTo(o[n].p[0],o[n].p[1]):"c"===o[n].t?p.bezierCurveTo(o[n].pts[0],o[n].pts[1],o[n].pts[2],o[n].pts[3],o[n].pts[4],o[n].pts[5]):p.closePath();"st"!==s&&"gs"!==s||(c.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var i,a;for(a=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(a=r[i].transform,this.renderShapeTransform(e,a)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],a):"st"===t[i].ty?this.renderStroke(t[i],r[i],a):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],a):"gr"===t[i].ty?this.renderShape(a,t[i].it,r[i].it):t[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,i,a=e.trNodes,o=t.paths,s=o._length;a.length=0;var l=e.transforms.finalTransform;for(i=0;i<s;i+=1){var u=o.shapes[i];if(u&&u.v){for(n=u._length,r=1;r<n;r+=1)1===r&&a.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),a.push({t:"c",pts:l.applyToTriplePoints(u.o[r-1],u.i[r],u.v[r])});1===n&&a.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&n&&(a.push({t:"c",pts:l.applyToTriplePoints(u.o[r-1],u.i[0],u.v[0])}),a.push({t:"z"}))}}e.trNodes=a}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var a,o=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)n=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var u=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),c=Math.atan2(l[1]-s[1],l[0]-s[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var h=u*p,d=Math.cos(c+t.a.v)*h+s[0],f=Math.sin(c+t.a.v)*h+s[1];n=o.createRadialGradient(d,f,0,s[0],s[1],u)}var m=e.g.p,g=t.g.c,v=1;for(a=0;a<m;a+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*a+1]),n.addColorStop(g[4*a]/100,"rgba("+g[4*a+1]+","+g[4*a+2]+","+g[4*a+3]+","+v+")");i.grd=n}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n,i,a,o,s,l,u,c,p,h,d,f,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,v=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var y=this.data.singleShape,b=.001*e.tr*e.finalSize,_=0,x=0,k=!0,w=0;for(n=0;n<i;n+=1){o=(a=this.globalData.fontManager.getCharData(e.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&a.data||{},v.reset(),y&&g[n].n&&(_=-b,x+=e.yOffset,x+=k?1:0,k=!1),p=(u=o.shapes?o.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,v,g[n].line,_,x),d=createSizedArray(p-1);var S=0;for(c=0;c<p;c+=1)if("sh"===u[c].ty){for(l=u[c].ks.k.i.length,h=u[c].ks.k,f=[],s=1;s<l;s+=1)1===s&&f.push(v.applyToX(h.v[0][0],h.v[0][1],0),v.applyToY(h.v[0][0],h.v[0][1],0)),f.push(v.applyToX(h.o[s-1][0],h.o[s-1][1],0),v.applyToY(h.o[s-1][0],h.o[s-1][1],0),v.applyToX(h.i[s][0],h.i[s][1],0),v.applyToY(h.i[s][0],h.i[s][1],0),v.applyToX(h.v[s][0],h.v[s][1],0),v.applyToY(h.v[s][0],h.v[s][1],0));f.push(v.applyToX(h.o[s-1][0],h.o[s-1][1],0),v.applyToY(h.o[s-1][0],h.o[s-1][1],0),v.applyToX(h.i[0][0],h.i[0][1],0),v.applyToY(h.i[0][0],h.i[0][1],0),v.applyToX(h.v[0][0],h.v[0][1],0),v.applyToY(h.v[0][0],h.v[0][1],0)),d[S]=f,S+=1}y&&(_+=g[n].l,_+=b),this.textSpans[w]?this.textSpans[w].elem=d:this.textSpans[w]={elem:d},w+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,i,a;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var u,c,p=null,h=null,d=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((o=s[e])&&(f.save(),f.ctxTransform(o.p),f.ctxOpacity(o.o)),this.fill){for(o&&o.fc?p!==o.fc&&(f.ctxFillStyle(o.fc),p=o.fc):p!==this.values.fill&&(p=this.values.fill,f.ctxFillStyle(this.values.fill)),n=(u=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(a=(c=u[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<a;i+=6)this.globalData.canvasContext.bezierCurveTo(c[i],c[i+1],c[i+2],c[i+3],c[i+4],c[i+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(o&&o.sw?d!==o.sw&&(d=o.sw,f.ctxLineWidth(o.sw)):d!==this.values.sWidth&&(d=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),o&&o.sc?h!==o.sc&&(h=o.sc,f.ctxStrokeStyle(o.sc)):h!==this.values.stroke&&(h=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),n=(u=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(a=(c=u[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<a;i+=6)this.globalData.canvasContext.bezierCurveTo(c[i],c[i+1],c[i+2],c[i+3],c[i+4],c[i+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),i=this.img.width,a=this.img.height,o=i/a,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?t=(r=a)*s:r=(t=i)/s,n.drawImage(this.img,(i-t)/2,(a-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,i,a;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),s=o[1]||"meet",l=o[0]||"xMidYMid",u=l.substr(0,4),c=l.substr(4);i=r/n,(a=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||a<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===u&&(a<i&&"meet"===s||a>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===u&&(a<i&&"meet"===s||a>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(a>i&&"meet"===s||a<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(a>i&&"meet"===s||a<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=n[t];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,i,a,o,s=e.sh.v,l=e.transformers,u=s._length;if(!(u<=1)){for(r=0;r<u-1;r+=1)n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),a=this.getTransformedPoint(l,s.i[r+1]),o=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(n,i,a,o,t);s.c&&(n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),a=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(n,i,a,o,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,i){this.getBoundsOfCurve(e,t,r,n);var a=this.shapeBoundingBox;i.x=bmMin(a.left,i.x),i.xMax=bmMax(a.right,i.xMax),i.y=bmMin(a.top,i.y),i.yMax=bmMax(a.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var i,a,o,s,l,u,c,p=[[e[0],n[0]],[e[1],n[1]]],h=0;h<2;++h)a=6*e[h]-12*t[h]+6*r[h],i=-3*e[h]+9*t[h]-9*r[h]+3*n[h],o=3*t[h]-3*e[h],a|=0,o|=0,0==(i|=0)&&0===a||(0===i?(s=-o/a)>0&&s<1&&p[h].push(this.calculateF(s,e,t,r,n,h)):(l=a*a-4*o*i)>=0&&((u=(-a+bmSqrt(l))/(2*i))>0&&u<1&&p[h].push(this.calculateF(u,e,t,r,n,h)),(c=(-a-bmSqrt(l))/(2*i))>0&&c<1&&p[h].push(this.calculateF(c,e,t,r,n,h))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,i,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*r[a]+3*(1-e)*bmPow(e,2)*n[a]+bmPow(e,3)*i[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var i=e.keyframes[n].s;i>r&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n,i,a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{t.fontFamily=a.fFamily;var o=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=o}var l,u,c,p=e.l;i=p.length;var h,d=this.mHelper,f="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?c=(u=this.textSpans[m]).children[0]:((u=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(u)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(u=this.textSpans[m],l=this.textPaths[m]):(styleDiv(u=createTag("span")),styleDiv(l=createTag("span")),u.appendChild(l)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(e.finalText[n],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,d.reset(),g&&g.shapes&&g.shapes.length&&(h=g.shapes[0].it,d.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(d,h),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(u),g&&g.shapes){document.body.appendChild(c);var y=c.getBBox();c.setAttribute("width",y.width+2),c.setAttribute("height",y.height+2),c.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=c.style,_="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=_,b.webkitTransform=_,p[n].yOffset=y.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);u.appendChild(c)}}else if(l.textContent=p[n].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(u);var x=l.style,k="translate3d(0,"+-e.finalSize/1.2+"px,0)";x.transform=k,x.webkitTransform=k}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=u,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,a,o,s=0,l=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;for(n=u.length,r=0;r<n;r+=1)u[r].n?s+=1:(a=this.textSpans[r],o=this.textPaths[r],i=l[s],s+=1,i._mdf.m&&(this.isMasked?a.setAttribute("transform",i.m):(a.style.webkitTransform=i.m,a.style.transform=i.m)),a.style.opacity=i.o,i.sw&&i._mdf.sw&&o.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&o.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(o.setAttribute("fill",i.fc),o.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,n=t.container.style;var a=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=a,r.webkitPerspective=a,n.transformOrigin=o,n.mozTransformOrigin=o,n.webkitTransformOrigin=o,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),o=[i[0]/a,i[1]/a,i[2]/a],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),u=Math.atan2(o[0],-o[2]);this.mat.rotateY(u).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var p,h,d;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(p=this.comp.threeDElements[e]).type){if(c){var f=this.mat.toCSS();(d=p.container.style).transform=f,d.webkitTransform=f}this.pe._mdf&&((h=p.perspectiveElem.style).perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,a,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(a=this.elements[o],i=(this.layers[o].ddd?this.getThreeDContainerByPos(o):a.getBaseElement())||i),o+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,i=createTag("div");styleDiv(i);var a=createTag("div");if(styleDiv(a),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var o="50% 50%";r.webkitTransformOrigin=o,r.mozTransformOrigin=o,r.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=a.style).transform=s,n.webkitTransform=s}i.appendChild(a);var l={container:a,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==n&&(n="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var i,a=this.threeDElements[r].startPos;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a].getBaseElement()),a+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var a=createNS("defs");i.appendChild(a),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,i=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,o=i/a;this.globalData.compSize.w/this.globalData.compSize.h>o?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,n=(a-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=a/this.globalData.compSize.h,t=a/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e<n;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,n=e.layers.length;r<n;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}function seedRandom(e,t){var r,n=this,i=256,a="random",o=t.pow(i,6),s=t.pow(2,52),l=2*s,u=255;function c(e){var t,r=e.length,n=this,a=0,o=n.i=n.j=0,s=n.S=[];for(r||(e=[r++]);a<i;)s[a]=a++;for(a=0;a<i;a++)s[a]=s[o=u&o+e[a%r]+(t=s[a])],s[o]=t;n.g=function(e){for(var t,r=0,a=n.i,o=n.j,s=n.S;e--;)t=s[a=u&a+1],r=r*i+s[u&(s[a]=s[o=u&o+t])+(s[o]=t)];return n.i=a,n.j=o,r}}function p(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function h(e,t){var r,n=[],i=_typeof$2(e);if(t&&"object"==i)for(r in e)try{n.push(h(e[r],t-1))}catch(e){}return n.length?n:"string"==i?e:e+"\0"}function d(e,t){for(var r,n=e+"",i=0;i<n.length;)t[u&i]=u&(r^=19*t[u&i])+n.charCodeAt(i++);return f(t)}function f(e){return String.fromCharCode.apply(0,e)}t["seed"+a]=function(u,m,g){var v=[],y=d(h((m=!0===m?{entropy:!0}:m||{}).entropy?[u,f(e)]:null===u?function(){try{r;var t=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(t),f(t)}catch(t){var a=n.navigator,o=a&&a.plugins;return[+new Date,n,o,n.screen,f(e)]}}():u,3),v),b=new c(v),_=function(){for(var e=b.g(6),t=o,r=0;e<s;)e=(e+r)*i,t*=i,r=b.g(1);for(;e>=l;)e/=2,t/=2,r>>>=1;return(e+r)/t};return _.int32=function(){return 0|b.g(4)},_.quick=function(){return b.g(4)/4294967296},_.double=_,d(f(b.S),e),(m.pass||g||function(e,r,n,i){return i&&(i.S&&p(i,b),e.state=function(){return p(b,{})}),n?(t[a]=e,r):e})(_,y,"global"in m?m.global:this==t,m.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||"string"===r||"string"===n)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,o=t.length,s=[];i<a||i<o;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return"string"===r&&(e=parseInt(e,10)),"string"===n&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,o=t.length,s=[];i<a||i<o;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var r,n,i,a=_typeof$1(e),o=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(o,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]*t;return r}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,i,a=_typeof$1(e),o=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(o,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]/t;return r}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e/t[n];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var n=Math.min(e.length,t.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,n=e[0],i=e[1],a=e[2],o=Math.max(n,i,a),s=Math.min(n,i,a),l=(o+s)/2;if(o===s)t=0,r=0;else{var u=o-s;switch(r=l>.5?u/(2-o-s):u/(o+s),o){case n:t=(i-a)/u+(i<a?6:0);break;case i:t=(a-n)/u+2;break;case a:t=(n-i)/u+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,i=e[0],a=e[1],o=e[2];if(0===a)t=o,n=o,r=o;else{var s=o<.5?o*(1+a):o+a-o*a,l=2*o-s;t=hue2rgb(l,s,i+1/3),r=hue2rgb(l,s,i),n=hue2rgb(l,s,i-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,i){if(void 0!==n&&void 0!==i||(n=t,i=r,t=0,r=1),r<t){var a=r;r=t,t=a}if(e<=t)return n;if(e>=r)return i;var o,s=r===t?0:(e-t)/(r-t);if(!n.length)return n+(i-n)*s;var l=n.length,u=createTypedArray("float32",l);for(o=0;o<l;o+=1)u[o]=n[o]+(i[o]-n[o])*s;return u}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var i=createTypedArray("float32",n),a=BMMath.random();for(r=0;r<n;r+=1)i[r]=e[r]+a*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var i,a=e.length,o=shapePool.newElement();o.setPathData(!!n,a);var s,l,u=[0,0];for(i=0;i<a;i+=1)s=t&&t[i]?t[i]:u,l=r&&r[i]?r[i]:u,o.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,n,i=this.pv.length?this.pv.length:1,a=createTypedArray("float32",i),o=Math.floor(5*time);for(r=0,n=0;r<o;){for(n=0;n<i;n+=1)a[n]+=-t+2*t*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),u=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)u[n]=this.pv[n]+a[n]+(-t+2*t*BMMath.random())*l;return u}return this.pv+a[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,i){return applyEase(easeOutBez,e,t,r,n,i)}function easeIn(e,t,r,n,i){return applyEase(easeInBez,e,t,r,n,i)}function ease(e,t,r,n,i){return applyEase(easeInOutBez,e,t,r,n,i)}function applyEase(e,t,r,n,i,a){void 0===i?(i=r,a=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(i)){var s,l=i.length,u=createTypedArray("float32",l);for(s=0;s<l;s+=1)u[s]=(a[s]-i[s])*o+i[s];return u}return(a-i)*o+i}function nearestKey(e){var t,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,n=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var a={};return a.index=r,a.time=n/elem.comp.globalData.frameRate,a}function key(e){var t,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=i.length,r=0;r<n;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,n=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(n){if(!e.numKeys)return 0;var i;i="s"in t.keyframes[n-1]?t.keyframes[n-1].s:"e"in t.keyframes[n-2]?t.keyframes[n-2].e:t.keyframes[n-2].s;var a="unidimensional"===r?new Number(i):Object.assign({},i);return a.time=t.keyframes[n-1].t/t.elem.comp.globalData.frameRate,a.value="unidimensional"===r?i[0]:i,a},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function n(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.pv*n,a=new Number(i);return a.value=i,r(a,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*n,a.value!==i&&((a=new Number(i)).value=i,a[0]=i,r(a,t,"unidimensional")),a}}(i):function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.data&&e.data.l||e.pv.length,a=createTypedArray("float32",i),o=createTypedArray("float32",i);return a.value=o,r(a,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)o[t]=e.v[t]*n,a[t]=o[t];return a}}(i):n}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,n,i,a;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?a=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[r(),n(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(u){var c;function p(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=e,p.invertPoint=o,p.applyPoint=a,p.toWorld=r,p.toWorldVec=t,p.fromWorld=i,p.fromWorldVec=n,p.toComp=r,p.fromComp=s,p.sampleImage=l,p.sourceRectAtTime=u.sourceRectAtTime.bind(u),p._elem=u;var h=getDescriptor(c=TransformExpressionInterface(u.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:h,anchor_point:h,transform:{get:function(){return c}},active:{get:function(){return u.isInRange}}}),p.startTime=u.data.st,p.index=u.data.ind,p.source=u.data.refId,p.height=0===u.data.ty?u.data.h:100,p.width=0===u.data.ty?u.data.w:100,p.inPoint=u.data.ip/u.comp.globalData.frameRate,p.outPoint=u.data.op/u.comp.globalData.frameRate,p._name=u.data.nm,p.registerMaskInterface=function(e){p.mask=new MaskManagerInterface(e,u)},p.registerEffectsInterface=function(e){p.effect=e},p}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,n,i,a){function o(e){for(var t=r.ef,n=0,i=t.length;n<i;){if(e===t[n].nm||e===t[n].mn||e===t[n].ix)return 5===t[n].ty?u[n]:u[n]();n+=1}throw new Error}var s,l=propertyGroupFactory(o,i),u=[],c=r.ef.length;for(s=0;s<c;s+=1)5===r.ef[s].ty?u.push(e(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,a)):u.push(t(n.effectElements[s],r.ef[s].ty,a,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(o,"color",{get:function(){return u[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),o.enabled=0!==r.en,o.active=o.enabled,o}function t(e,t,r,n){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var n,i=[],a=t.data.ef,o=t.effectsManager.effectElements.length;for(n=0;n<o;n+=1)i.push(e(a[n],t.effectsManager.effectElements[n],r,t));var s=t.data.ef||[],l=function(e){for(n=0,o=s.length;n<o;){if(e===s[n].nm||e===s[n].mn||e===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(e,t,r){var n=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var a=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,o,h){var d,f=[],m=e?e.length:0;for(d=0;d<m;d+=1)"gr"===e[d].ty?f.push(t(e[d],o[d],h)):"fl"===e[d].ty?f.push(r(e[d],o[d],h)):"st"===e[d].ty?f.push(i(e[d],o[d],h)):"tm"===e[d].ty?f.push(a(e[d],o[d],h)):"tr"===e[d].ty||("el"===e[d].ty?f.push(s(e[d],o[d],h)):"sr"===e[d].ty?f.push(l(e[d],o[d],h)):"sh"===e[d].ty?f.push(ShapePathInterface(e[d],o[d],h)):"rc"===e[d].ty?f.push(u(e[d],o[d],h)):"rd"===e[d].ty?f.push(c(e[d],o[d],h)):"rp"===e[d].ty?f.push(p(e[d],o[d],h)):"gf"===e[d].ty?f.push(n(e[d],o[d],h)):f.push((e[d],o[d],function(){return null})));return f}function t(t,r,n){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var a=function(t,r,n){var i,a=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};a.propertyGroup=propertyGroupFactory(a,n),i=e(t.it,r.it,a.propertyGroup),a.numProperties=i.length;var s=o(t.it[t.it.length-1],r.it[r.it.length-1],a.propertyGroup);return a.transform=s,a.propertyIndex=t.cix,a._name=t.nm,a}(t,r,i.propertyGroup),s=o(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=a,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function n(e){return"Color"===e||"color"===e?n.color:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(e,t,r){function n(e){return"Start Point"===e||"start point"===e?n.startPoint:"End Point"===e||"end point"===e?n.endPoint:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(e,t,r){var n,i=propertyGroupFactory(u,r),a=propertyGroupFactory(l,i);function o(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,l={};for(n=0;n<s;n+=1)o(n),t.d.dataProps[n].p.setGroupProperty(a);function u(e){return"Color"===e||"color"===e?u.color:"Opacity"===e||"opacity"===e?u.opacity:"Stroke Width"===e||"stroke width"===e?u.strokeWidth:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),u}function a(e,t,r){function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function o(e,t,r){function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:null}var i=propertyGroupFactory(n,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}function s(e,t,r){function n(t){return e.p.ix===t?n.position:e.s.ix===t?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=e.ix;var a="tm"===t.sh.ty?t.sh.prop:t.sh;return a.s.setGroupProperty(PropertyInterface("Size",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:e.nm}}),n.mn=e.mn,n}function l(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.rotation:e.pt.ix===t?n.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?n.outerRadius:e.os.ix===t?n.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),a="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",i)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),a.pt.setGroupProperty(PropertyInterface("Points",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:e.nm}}),n.mn=e.mn,n}function u(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?n.size:null}var i=propertyGroupFactory(n,r),a="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,a.p.setGroupProperty(PropertyInterface("Position",i)),a.s.setGroupProperty(PropertyInterface("Size",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:e.nm}}),n.mn=e.mn,n}function c(e,t,r){function n(t){return e.r.ix===t||"Round Corners 1"===t?n.radius:null}var i=propertyGroupFactory(n,r),a=t;return n.propertyIndex=e.ix,a.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function p(e,t,r){function n(t){return e.c.ix===t||"Copies"===t?n.copies:e.o.ix===t||"Offset"===t?n.offset:null}var i=propertyGroupFactory(n,r),a=t;return n.propertyIndex=e.ix,a.c.setGroupProperty(PropertyInterface("Copies",i)),a.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:e.nm}}),n.mn=e.mn,n}return function(t,r,n){var i;function a(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?n:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return a.propertyGroup=propertyGroupFactory(a,(function(){return n})),i=e(t,r,a.propertyGroup),a.numProperties=i.length,a._name="Contents",a}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function n(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?n:r;var i=e.indexOf(t);if(-1!==i){var a=parseInt(e.substr(i+t.length),10);return"object"===_typeof(r=r[a])?n:r}return""}return function(){return t="",r=e.getFootageData(),n}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),n=0;if(t.length){var i;for(i=0;i<t.length;i+=1)n+=Math.pow(r[i]-t[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,n=-.001,i=this.getValueAtTime(e),a=this.getValueAtTime(e+n);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(a[r]-i[r])/n;else t=(a-i)/n;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var n,i,a,o,s,l=this.comp.renderedFrame,u=this.keyframes,c=u[u.length-1].t;if(l<=c)return this.pv;if(r?i=c-(n=t?Math.abs(c-this.elem.comp.globalData.frameRate*t):Math.max(0,c-this.elem.data.ip)):((!t||t>u.length-1)&&(t=u.length-1),n=c-(i=u[u.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/n)%2!=0)return this.getValueAtTime((n-(l-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),h=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0),f=Math.floor((l-i)/n);if(this.pv.length){for(o=(s=new Array(p.length)).length,a=0;a<o;a+=1)s[a]=(h[a]-p[a])*f+d[a];return s}return(h-p)*f+d}if("continue"===e){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*((l-c)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-c)/.001*(m-g)}}return this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var n,i,a,o,s,l=this.comp.renderedFrame,u=this.keyframes,c=u[0].t;if(l>=c)return this.pv;if(r?i=c+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-c)):((!t||t>u.length-1)&&(t=u.length-1),n=(i=u[t].t)-c),"pingpong"===e){if(Math.floor((c-l)/n)%2==0)return this.getValueAtTime(((c-l)%n+c)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime((n-(c-l)%n+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-l)/n)+1;if(this.pv.length){for(o=(s=new Array(p.length)).length,a=0;a<o;a+=1)s[a]=d[a]-(h[a]-p[a])*f;return s}return d-(h-p)*f}if("continue"===e){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*(c-l)/.001;return s}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((n-((c-l)%n+c))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,a=i-e,o=t>1?(i+e-a)/(t-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(n=this.getValueAtTime(a+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=n[l];else r+=n;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function n(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(e);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),a=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(e);t.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),u=this.rx.getValueAtTime(e),c=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(u*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),h=this.py.getValueAtTime(e);if(this.data.p.z){var d=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,h*this.py.mult,-d*this.pz.mult)}else t.translate(p*this.px.mult,h*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var o=a(e,t,r);return o.dynamicProperties.length?o.getValueAtTime=n.bind(o):o.getValueAtTime=i.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,a,s,l){var u=o(n,i,a,s,l);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=e,u.loopIn=t,u.smooth=r,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=1===i.a?i.k.length:0,u.propertyIndex=i.ix;var c=0;return 0!==a&&(c=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(n,i,u),u.k&&l.addDynamicProperty(u),u};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(e,t){this.k&&this.getValue();var r,n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0));var i=n._length,a=n[e],o=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===e||"o"===e?[a[r][0]-o[r][0],a[r][1]-o[r][1]]:[a[r][0],a[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,a=i.lengths,o=i.totalLength*e,s=0,l=a.length,u=0;s<l;){if(u+a[s].addedLength>o){var c=s,p=r.c&&s===l-1?0:s+1,h=(o-u)/a[s].addedLength;n=bez.getPointInSegment(r.v[c],r.v[p],r.o[c],r.i[p],h,a[s]);break}u+=a[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),a=i[0]-n[0],o=i[1]-n[1],s=Math.sqrt(Math.pow(a,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===r?[a/s,o/s]:[-o/s,a/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],s),extendPrototype([u],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var a=c(e,t,r,n,i);return a.propertyIndex=t.ix,a.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,a):4===r&&expressionHelpers.searchExpressions(e,t.ks,a),a.k&&e.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,i=createNS("feMerge");for(i.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,i){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",n+"_tint_1"),e.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",n+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);e.appendChild(o)}function SVGFillFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),a.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,e.appendChild(a)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var i=this.filterManager.effectElements,a=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(e,t,r,n,i){var a=t.container.globalData.renderConfig.filterSize,o=t.data.fs||a;e.setAttribute("x",o.x||a.x),e.setAttribute("y",o.y||a.y),e.setAttribute("width",o.width||a.width),e.setAttribute("height",o.height||a.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",n+"_drop_shadow_1"),l.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var c=createNS("feComposite");c.setAttribute("in",n+"_drop_shadow_3"),c.setAttribute("in2",n+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(c);var p=this.createMergeNode(n,[n+"_drop_shadow_4",i]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(t),this.elem.globalData.defs.appendChild(a);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=a,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,n,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=n.getTotalLength();a="0 0 0 "+l*o+" ";var u,c=l*(s-o),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,h=Math.floor(c/p);for(u=0;u<h;u+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*d[0])+","+bmFloor(255*d[1])+","+bmFloor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+t[0],a=n[1]+" "+r[1]+" "+t[1],o=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,i){for(var a,o,s=0,l=Math.min(e,t),u=Math.max(e,t),c=Array.call(null,{length:256}),p=0,h=i-n,d=t-e;s<=256;)o=(a=s/256)<=l?d<0?i:n:a>=u?d<0?n:i:n+h*Math.pow((a-e)/d,1/r),c[p]=o,p+=1,s+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),a=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",n),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n,i=r.children,a=0,o=i.length;a<o&&i[a]!==e.layerElement;)a+=1;a<=o-2&&(n=i[a+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(n);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(t,r),a.appendChild(t.layerElement),i.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+r),n.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,i=1===t[2].p.v,a=t[3].p.v,o=i?a:t[4].p.v,s=t[5].p.v,l=t[6].p.v,u=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*o,.01*a,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},63164:(e,t,r)=>{var n=r(19792);e.exports=function(e){return n(this,e).get(e)}},63627:(e,t,r)=>{var n=r(62229),i=r(71039);e.exports=function e(t,r,a,o,s){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!=t&&r!=r:n(t,r,a,o,e,s))}},63655:(e,t,r)=>{var n=r(25098),i=r(25159),a=r(52733);e.exports=function(e){return a(e)?n(e):i(e)}},63688:(e,t,r)=>{var n=r(85453);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},64006:(e,t,r)=>{var n=r(71077),i=r(804),a=r(12310);e.exports=function(e){if(e instanceof n)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},64271:(e,t,r)=>{var n=r(65583),i=r(71039),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},64398:(e,t,r)=>{var n=r(23674),i=r(46971),a=r(43772);e.exports=function(e,t,r){var o=-1,s=(t=n(t,e)).length;for(s||(s=1,e=void 0);++o<s;){var l=null==e?void 0:e[a(t[o])];void 0===l&&(o=s,l=r),e=i(l)?l.call(e):l}return e}},65076:(e,t,r)=>{var n=r(46971),i=r(83795),a=r(54200),o=r(79966),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,h=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(n(e)?h:s).test(o(e))}},65174:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},65379:(e,t,r)=>{var n=r(78497),i=r(2189),a=i?function(e,t){return i.set(e,t),e}:n;e.exports=a},65583:(e,t,r)=>{var n=r(2007),i=r(71039);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},65811:(e,t,r)=>{var n=r(27241),i=r(52733),a=r(67588),o=r(54200);e.exports=function(e,t,r){if(!o(r))return!1;var s=typeof t;return!!("number"==s?i(r)&&a(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},65879:(e,t,r)=>{var n=r(25278);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},65897:(e,t,r)=>{var n=r(66143)(r(77450),"Promise");e.exports=n},66143:(e,t,r)=>{var n=r(65076),i=r(75399);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},66446:(e,t,r)=>{var n=r(10675),i=r(97456);e.exports=function(e,t){return n(e,t,(function(t,r){return i(e,r)}))}},67388:(e,t,r)=>{var n=r(40566),i=r(93764),a=r(8280),o=r(69625),s=r(13692);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return o(e)}}},67508:(e,t,r)=>{var n=r(65379),i=r(52960)(n);e.exports=i},67588:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},67624:e=>{e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},67828:(e,t,r)=>{var n=r(78882)(Object.getPrototypeOf,Object);e.exports=n},68295:(e,t,r)=>{var n=r(79716),i=r(54200);e.exports=function(e,t,r){var a=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(r)&&(a="leading"in r?!!r.leading:a,o="trailing"in r?!!r.trailing:o),n(e,t,{leading:a,maxWait:t,trailing:o})}},68588:(e,t,r)=>{var n=r(78837),i=r(65811);e.exports=function(e){return n((function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(r[0],r[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,o)}return t}))}},68931:(e,t,r)=>{var n=r(77450);e.exports=function(){return n.Date.now()}},69140:(e,t,r)=>{var n=r(90700),i=r(58599),a=/[&<>"']/g,o=RegExp(a.source);e.exports=function(e){return(e=i(e))&&o.test(e)?e.replace(a,n):e}},69279:(e,t,r)=>{var n=r(23674),i=r(43772);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r<a;)e=e[i(t[r++])];return r&&r==a?e:void 0}},69299:e=>{e.exports=Math.round},69625:(e,t,r)=>{var n=r(70158),i=n?n.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},70158:(e,t,r)=>{var n=r(77450).Symbol;e.exports=n},70206:(e,t,r)=>{var n=r(10814),i=r(55788),a=r(16231),o=r(43772);e.exports=function(e){return a(e)?n(o(e)):i(e)}},70251:(e,t,r)=>{var n=r(63627);e.exports=function(e,t){return n(e,t)}},71039:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},71077:(e,t,r)=>{var n=r(7079),i=r(75678);function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=n(i.prototype),a.prototype.constructor=a,e.exports=a},71504:(e,t,r)=>{var n=r(72085),i=r(52615),a=r(35337),o="__lodash_placeholder__",s=Math.min;e.exports=function(e,t){var r=e[1],l=t[1],u=r|l,c=u<131,p=128==l&&8==r||128==l&&256==r&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==r;if(!c&&!p)return e;1&l&&(e[2]=t[2],u|=1&r?0:4);var h=t[3];if(h){var d=e[3];e[3]=d?n(d,h,t[4]):h,e[4]=d?a(e[3],o):t[4]}return(h=t[5])&&(d=e[5],e[5]=d?i(d,h,t[6]):h,e[6]=d?a(e[5],o):t[6]),(h=t[7])&&(e[7]=h),128&l&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}},72023:(e,t,r)=>{var n=r(26015),i=r(54200);e.exports=function e(t,r,a,o,s,l){return i(t)&&i(r)&&(l.set(r,t),n(t,r,void 0,e,l),l.delete(r)),t}},72085:e=>{var t=Math.max;e.exports=function(e,r,n,i){for(var a=-1,o=e.length,s=n.length,l=-1,u=r.length,c=t(o-s,0),p=Array(u+c),h=!i;++l<u;)p[l]=r[l];for(;++a<s;)(h||a<o)&&(p[n[a]]=e[a]);for(;c--;)p[l++]=e[a++];return p}},72142:(e,t,r)=>{var n=r(59445),i=r(38245),a=r(10028),o=r(90536),s=r(63688);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},72639:(e,t,r)=>{var n=r(27327),i=r(60872),a=r(11214),o=a&&a.isDate,s=o?i(o):n;e.exports=s},72695:(e,t,r)=>{var n=r(32484),i=r(56392),a=r(84980),o=r(30508),s=r(40502),l=r(35337),u=r(77450);e.exports=function(e,t,r){var c=i(e);return function i(){for(var p=arguments.length,h=Array(p),d=p,f=s(i);d--;)h[d]=arguments[d];var m=p<3&&h[0]!==f&&h[p-1]!==f?[]:l(h,f);return(p-=m.length)<r?o(e,t,a,i.placeholder,void 0,h,m,void 0,void 0,r-p):n(this&&this!==u&&this instanceof i?c:e,this,h)}}},73357:(e,t,r)=>{var n=r(58599),i=/[\\^$.*+?()[\]{}|]/g,a=RegExp(i.source);e.exports=function(e){return(e=n(e))&&a.test(e)?e.replace(i,"\\$&"):e}},73402:(e,t,r)=>{var n=r(49500)((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));e.exports=n},73974:(e,t,r)=>{var n=r(48630),i=r(60872),a=r(11214),o=a&&a.isTypedArray,s=o?i(o):n;e.exports=s},74233:(e,t,r)=>{var n=r(79845),i=r(8591)((function(e,t,r){n(e,r,t)}));e.exports=i},75182:(e,t,r)=>{var n=r(11989),i=r(89477),a=r(82188),o=r(1832),s=r(3944);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},75399:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},75564:(e,t,r)=>{var n=r(4106),i=r(79845);e.exports=function(e,t,r,a){var o=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=a?a(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?i(r,u,c):n(r,u,c)}return r}},75678:e=>{e.exports=function(){}},75827:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}},76210:(e,t,r)=>{var n=r(8881)();e.exports=n},76966:(e,t,r)=>{var n=r(4106),i=r(75564),a=r(68588),o=r(52733),s=r(85718),l=r(63655),u=Object.prototype.hasOwnProperty,c=a((function(e,t){if(s(t)||o(t))i(t,l(t),e);else for(var r in t)u.call(t,r)&&n(e,r,t[r])}));e.exports=c},77316:(e,t,r)=>{var n=r(85773),i=r(67828),a=r(88383),o=r(34150),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=i(e);return t}:o;e.exports=s},77450:(e,t,r)=>{var n=r(90627),i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")();e.exports=a},77504:(e,t,r)=>{var n=r(43501),i=r(78837),a=r(39178),o=r(7506),s=i((function(e){return a(n(e,1,o,!0))}));e.exports=s},77797:(e,t,r)=>{var n=r(10740),i=r(58599),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(a,n).replace(o,"")}},78434:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},78497:e=>{e.exports=function(e){return e}},78554:(e,t,r)=>{var n=r(54586);e.exports=function(e){return n(e,4)}},78837:(e,t,r)=>{var n=r(78497),i=r(80142),a=r(79904);e.exports=function(e,t){return a(i(e,t,n),e+"")}},78882:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},78957:(e,t,r)=>{var n=r(89731),i=r(88383),a=r(63655);e.exports=function(e){return n(e,a,i)}},79034:(e,t,r)=>{var n=r(75182),i=r(96142),a=r(25278);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(o)}return r.set(e,t),this.size=r.size,this}},79603:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},79682:(e,t,r)=>{var n=r(59578),i=r(52733),a=r(46406),o=r(26334),s=r(21645),l=Math.max;e.exports=function(e,t,r,u){e=i(e)?e:s(e),r=r&&!u?o(r):0;var c=e.length;return r<0&&(r=l(c+r,0)),a(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&n(e,t,r)>-1}},79716:(e,t,r)=>{var n=r(54200),i=r(68931),a=r(80119),o=Math.max,s=Math.min;e.exports=function(e,t,r){var l,u,c,p,h,d,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,n=u;return l=u=void 0,f=t,p=e.apply(n,r)}function b(e){var r=e-d;return void 0===d||r>=t||r<0||g&&e-f>=c}function _(){var e=i();if(b(e))return x(e);h=setTimeout(_,function(e){var r=t-(e-d);return g?s(r,c-(e-f)):r}(e))}function x(e){return h=void 0,v&&l?y(e):(l=u=void 0,p)}function k(){var e=i(),r=b(e);if(l=arguments,u=this,d=e,r){if(void 0===h)return function(e){return f=e,h=setTimeout(_,t),m?y(e):p}(d);if(g)return clearTimeout(h),h=setTimeout(_,t),y(d)}return void 0===h&&(h=setTimeout(_,t)),p}return t=a(t)||0,n(r)&&(m=!!r.leading,c=(g="maxWait"in r)?o(a(r.maxWait)||0,t):c,v="trailing"in r?!!r.trailing:v),k.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=d=u=h=void 0},k.flush=function(){return void 0===h?p:x(i())},k}},79722:(e,t,r)=>{r.d(t,{A:()=>rt});const n=function(e,t){return e===t||e!=e&&t!=t},i=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1};var a=Array.prototype.splice;function o(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}o.prototype.clear=function(){this.__data__=[],this.size=0},o.prototype.delete=function(e){var t=this.__data__,r=i(t,e);return!(r<0||(r==t.length-1?t.pop():a.call(t,r,1),--this.size,0))},o.prototype.get=function(e){var t=this.__data__,r=i(t,e);return r<0?void 0:t[r][1]},o.prototype.has=function(e){return i(this.__data__,e)>-1},o.prototype.set=function(e,t){var r=this.__data__,n=i(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};const s=o,l="object"==typeof global&&global&&global.Object===Object&&global;var u="object"==typeof self&&self&&self.Object===Object&&self;const c=l||u||Function("return this")(),p=c.Symbol;var h=Object.prototype,d=h.hasOwnProperty,f=h.toString,m=p?p.toStringTag:void 0;var g=Object.prototype.toString;var v=p?p.toStringTag:void 0;const y=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?function(e){var t=d.call(e,m),r=e[m];try{e[m]=void 0;var n=!0}catch(e){}var i=f.call(e);return n&&(t?e[m]=r:delete e[m]),i}(e):function(e){return g.call(e)}(e)},b=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},_=function(e){if(!b(e))return!1;var t=y(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},x=c["__core-js_shared__"];var k,w=(k=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"";var S=Function.prototype.toString;const I=function(e){if(null!=e){try{return S.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var P=/^\[object .+?Constructor\]$/,$=Function.prototype,E=Object.prototype,A=$.toString,C=E.hasOwnProperty,T=RegExp("^"+A.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const D=function(e){return!(!b(e)||(t=e,w&&w in t))&&(_(e)?T:P).test(I(e));var t},z=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return D(r)?r:void 0},M=z(c,"Map"),O=z(Object,"create");var j=Object.prototype.hasOwnProperty;var F=Object.prototype.hasOwnProperty;function N(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}N.prototype.clear=function(){this.__data__=O?O(null):{},this.size=0},N.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},N.prototype.get=function(e){var t=this.__data__;if(O){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return j.call(t,e)?t[e]:void 0},N.prototype.has=function(e){var t=this.__data__;return O?void 0!==t[e]:F.call(t,e)},N.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=O&&void 0===t?"__lodash_hash_undefined__":t,this};const R=N,U=function(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map};function L(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}L.prototype.clear=function(){this.size=0,this.__data__={hash:new R,map:new(M||s),string:new R}},L.prototype.delete=function(e){var t=U(this,e).delete(e);return this.size-=t?1:0,t},L.prototype.get=function(e){return U(this,e).get(e)},L.prototype.has=function(e){return U(this,e).has(e)},L.prototype.set=function(e,t){var r=U(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};const Z=L;function V(e){var t=this.__data__=new s(e);this.size=t.size}V.prototype.clear=function(){this.__data__=new s,this.size=0},V.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},V.prototype.get=function(e){return this.__data__.get(e)},V.prototype.has=function(e){return this.__data__.has(e)},V.prototype.set=function(e,t){var r=this.__data__;if(r instanceof s){var n=r.__data__;if(!M||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Z(n)}return r.set(e,t),this.size=r.size,this};const B=V;function G(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Z;++t<r;)this.add(e[t])}G.prototype.add=G.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},G.prototype.has=function(e){return this.__data__.has(e)};const q=G,H=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},W=function(e,t,r,n,i,a){var o=1&r,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var p=-1,h=!0,d=2&r?new q:void 0;for(a.set(e,t),a.set(t,e);++p<s;){var f=e[p],m=t[p];if(n)var g=o?n(m,f,p,t,e,a):n(f,m,p,e,t,a);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!H(t,(function(e,t){if(o=t,!d.has(o)&&(f===e||i(f,e,r,n,a)))return d.push(t);var o}))){h=!1;break}}else if(f!==m&&!i(f,m,r,n,a)){h=!1;break}}return a.delete(e),a.delete(t),h},J=c.Uint8Array,K=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},X=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r};var Y=p?p.prototype:void 0,Q=Y?Y.valueOf:void 0;const ee=Array.isArray;var te=Object.prototype.propertyIsEnumerable,re=Object.getOwnPropertySymbols;const ne=re?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}(re(e),(function(t){return te.call(e,t)})))}:function(){return[]},ie=function(e){return null!=e&&"object"==typeof e},ae=function(e){return ie(e)&&"[object Arguments]"==y(e)};var oe=Object.prototype,se=oe.hasOwnProperty,le=oe.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(e){return ie(e)&&se.call(e,"callee")&&!le.call(e,"callee")};var ce="object"==typeof exports&&exports&&!exports.nodeType&&exports,pe=ce&&"object"==typeof module&&module&&!module.nodeType&&module,he=pe&&pe.exports===ce?c.Buffer:void 0;const de=(he?he.isBuffer:void 0)||function(){return!1};var fe=/^(?:0|[1-9]\d*)$/;const me=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&fe.test(e))&&e>-1&&e%1==0&&e<t},ge=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ve={};ve["[object Float32Array]"]=ve["[object Float64Array]"]=ve["[object Int8Array]"]=ve["[object Int16Array]"]=ve["[object Int32Array]"]=ve["[object Uint8Array]"]=ve["[object Uint8ClampedArray]"]=ve["[object Uint16Array]"]=ve["[object Uint32Array]"]=!0,ve["[object Arguments]"]=ve["[object Array]"]=ve["[object ArrayBuffer]"]=ve["[object Boolean]"]=ve["[object DataView]"]=ve["[object Date]"]=ve["[object Error]"]=ve["[object Function]"]=ve["[object Map]"]=ve["[object Number]"]=ve["[object Object]"]=ve["[object RegExp]"]=ve["[object Set]"]=ve["[object String]"]=ve["[object WeakMap]"]=!1;var ye="object"==typeof exports&&exports&&!exports.nodeType&&exports,be=ye&&"object"==typeof module&&module&&!module.nodeType&&module,_e=be&&be.exports===ye&&l.process,xe=function(){try{return be&&be.require&&be.require("util").types||_e&&_e.binding&&_e.binding("util")}catch(e){}}(),ke=xe&&xe.isTypedArray;const we=ke?(Se=ke,function(e){return Se(e)}):function(e){return ie(e)&&ge(e.length)&&!!ve[y(e)]};var Se,Ie=Object.prototype.hasOwnProperty;const Pe=function(e,t){var r=ee(e),n=!r&&ue(e),i=!r&&!n&&de(e),a=!r&&!n&&!i&&we(e),o=r||n||i||a,s=o?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var u in e)!t&&!Ie.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||me(u,l))||s.push(u);return s};var $e=Object.prototype;const Ee=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object);var Ae=Object.prototype.hasOwnProperty;const Ce=function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||$e))return Ee(e);var t,r,n=[];for(var i in Object(e))Ae.call(e,i)&&"constructor"!=i&&n.push(i);return n},Te=function(e){return null!=(t=e)&&ge(t.length)&&!_(t)?Pe(e):Ce(e);var t},De=function(e){return function(e,t,r){var n=t(e);return ee(e)?n:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(n,r(e))}(e,Te,ne)};var ze=Object.prototype.hasOwnProperty;const Me=z(c,"DataView"),Oe=z(c,"Promise"),je=z(c,"Set"),Fe=z(c,"WeakMap");var Ne="[object Map]",Re="[object Promise]",Ue="[object Set]",Le="[object WeakMap]",Ze="[object DataView]",Ve=I(Me),Be=I(M),Ge=I(Oe),qe=I(je),He=I(Fe),We=y;(Me&&We(new Me(new ArrayBuffer(1)))!=Ze||M&&We(new M)!=Ne||Oe&&We(Oe.resolve())!=Re||je&&We(new je)!=Ue||Fe&&We(new Fe)!=Le)&&(We=function(e){var t=y(e),r="[object Object]"==t?e.constructor:void 0,n=r?I(r):"";if(n)switch(n){case Ve:return Ze;case Be:return Ne;case Ge:return Re;case qe:return Ue;case He:return Le}return t});const Je=We;var Ke="[object Arguments]",Xe="[object Array]",Ye="[object Object]",Qe=Object.prototype.hasOwnProperty;const et=function(e,t,r,i,a,o){var s=ee(e),l=ee(t),u=s?Xe:Je(e),c=l?Xe:Je(t),p=(u=u==Ke?Ye:u)==Ye,h=(c=c==Ke?Ye:c)==Ye,d=u==c;if(d&&de(e)){if(!de(t))return!1;s=!0,p=!1}if(d&&!p)return o||(o=new B),s||we(e)?W(e,t,r,i,a,o):function(e,t,r,i,a,o,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new J(e),new J(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=K;case"[object Set]":var u=1&i;if(l||(l=X),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;i|=2,s.set(e,t);var p=W(l(e),l(t),i,a,o,s);return s.delete(e),p;case"[object Symbol]":if(Q)return Q.call(e)==Q.call(t)}return!1}(e,t,u,r,i,a,o);if(!(1&r)){var f=p&&Qe.call(e,"__wrapped__"),m=h&&Qe.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,v=m?t.value():t;return o||(o=new B),a(g,v,r,i,o)}}return!!d&&(o||(o=new B),function(e,t,r,n,i,a){var o=1&r,s=De(e),l=s.length;if(l!=De(t).length&&!o)return!1;for(var u=l;u--;){var c=s[u];if(!(o?c in t:ze.call(t,c)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var d=!0;a.set(e,t),a.set(t,e);for(var f=o;++u<l;){var m=e[c=s[u]],g=t[c];if(n)var v=o?n(g,m,c,t,e,a):n(m,g,c,e,t,a);if(!(void 0===v?m===g||i(m,g,r,n,a):v)){d=!1;break}f||(f="constructor"==c)}if(d&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,r,i,a,o))},tt=function e(t,r,n,i,a){return t===r||(null==t||null==r||!ie(t)&&!ie(r)?t!=t&&r!=r:et(t,r,n,i,e,a))},rt=function(e,t){return tt(e,t)}},79845:(e,t,r)=>{var n=r(45224);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},79904:(e,t,r)=>{var n=r(88887),i=r(52960)(n);e.exports=i},79966:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},80119:(e,t,r)=>{var n=r(44767),i=r(54200),a=r(13919),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):o.test(e)?NaN:+e}},80142:(e,t,r)=>{var n=r(32484),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),l=Array(s);++o<s;)l[o]=a[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=a[o];return u[t]=r(l),n(e,this,u)}}},80712:(e,t,r)=>{var n=r(36864)();e.exports=n},80922:(e,t,r)=>{var n=r(79603),i=r(54586),a=r(31398),o=r(23674),s=r(75564),l=r(28095),u=r(61595),c=r(97662),p=u((function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,(function(t){return t=o(t,e),u||(u=t.length>1),t})),s(e,c(e),r),u&&(r=i(r,7,l));for(var p=t.length;p--;)a(r,t[p]);return r}));e.exports=p},81507:(e,t,r)=>{var n=r(77450).Uint8Array;e.exports=n},81971:(e,t,r)=>{var n=r(75564),i=r(14956);e.exports=function(e){return n(e,i(e))}},82188:(e,t,r)=>{var n=r(24878);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},83795:(e,t,r)=>{var n,i=r(55970),a=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},84752:(e,t,r)=>{var n=r(2189),i=r(9739),a=n?function(e){return n.get(e)}:i;e.exports=a},84980:(e,t,r)=>{var n=r(72085),i=r(52615),a=r(19564),o=r(56392),s=r(30508),l=r(40502),u=r(21755),c=r(35337),p=r(77450);e.exports=function e(t,r,h,d,f,m,g,v,y,b){var _=128&r,x=1&r,k=2&r,w=24&r,S=512&r,I=k?void 0:o(t);return function P(){for(var $=arguments.length,E=Array($),A=$;A--;)E[A]=arguments[A];if(w)var C=l(P),T=a(E,C);if(d&&(E=n(E,d,f,w)),m&&(E=i(E,m,g,w)),$-=T,w&&$<b){var D=c(E,C);return s(t,r,e,P.placeholder,h,E,D,v,y,b-$)}var z=x?h:this,M=k?z[t]:t;return $=E.length,v?E=u(E,v):S&&$>1&&E.reverse(),_&&y<$&&(E.length=y),this&&this!==p&&this instanceof P&&(M=I||o(M)),M.apply(z,E)}}},85330:e=>{e.exports=Number.isNaN||function(e){return e!=e}},85453:(e,t,r)=>{var n=r(66143)(Object,"create");e.exports=n},85718:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},85773:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},85877:(e,t,r)=>{var n=r(19792);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},86305:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},86498:e=>{e.exports=function(e){return this.__data__.has(e)}},86501:e=>{e.exports=Math.pow},87618:(e,t,r)=>{var n=r(78957),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,o,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var p=c;p--;){var h=u[p];if(!(l?h in t:i.call(t,h)))return!1}var d=s.get(e),f=s.get(t);if(d&&f)return d==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++p<c;){var v=e[h=u[p]],y=t[h];if(a)var b=l?a(y,v,h,t,e,s):a(v,y,h,e,t,s);if(!(void 0===b?v===y||o(v,y,r,a,s):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},87679:(e,t,r)=>{var n=r(69279);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},87991:e=>{e.exports=function(e){return function(){return e}}},88141:(e,t,r)=>{var n=r(18916),i=r(58462),a=r(91529),o=r(36802);e.exports=function(e,t){return(o(e)?n:i)(e,a(t))}},88383:(e,t,r)=>{var n=r(75827),i=r(34150),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},88887:(e,t,r)=>{var n=r(87991),i=r(45224),a=r(78497),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;e.exports=o},88968:e=>{e.exports=function(){return!1}},89477:(e,t,r)=>{var n=r(24878),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():i.call(t,r,1),--this.size,0))}},89731:(e,t,r)=>{var n=r(85773),i=r(36802);e.exports=function(e,t,r){var a=t(e);return i(e)?a:n(a,r(e))}},89840:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},90090:(e,t,r)=>{var n=r(2318),i=r(20235),a=r(4436);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},90159:e=>{e.exports=Math.min},90536:(e,t,r)=>{var n=r(85453),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},90627:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},90700:(e,t,r)=>{var n=r(45471)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=n},90807:(e,t,r)=>{var n=r(26015),i=r(68588)((function(e,t,r,i){n(e,t,r,i)}));e.exports=i},90929:(e,t,r)=>{var n=r(11385),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,r,n,i){t.push(n?i.replace(a,"$1"):r||e)})),t}));e.exports=o},91529:(e,t,r)=>{var n=r(78497);e.exports=function(e){return"function"==typeof e?e:n}},91706:(e,t,r)=>{var n=r(66143)(r(77450),"WeakMap");e.exports=n},93190:e=>{e.exports=function(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}},93764:(e,t,r)=>{var n=r(40566);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},94143:(e,t,r)=>{var n=r(23674),i=r(64271),a=r(36802),o=r(67588),s=r(11095),l=r(43772);e.exports=function(e,t,r){for(var u=-1,c=(t=n(t,e)).length,p=!1;++u<c;){var h=l(t[u]);if(!(p=null!=e&&r(e,h)))break;e=e[h]}return p||++u!=c?p:!!(c=null==e?0:e.length)&&s(c)&&o(h,c)&&(a(e)||i(e))}},94155:e=>{e.exports=Math.abs},94469:e=>{e.exports=Math.max},96142:(e,t,r)=>{var n=r(66143)(r(77450),"Map");e.exports=n},96325:(e,t,r)=>{var n=r(78882)(Object.keys,Object);e.exports=n},96830:(e,t,r)=>{var n=r(25159),i=r(27458),a=r(64271),o=r(36802),s=r(52733),l=r(46977),u=r(85718),c=r(73974),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||a(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(p.call(e,r))return!1;return!0}},96926:(e,t,r)=>{var n=r(79845),i=r(27241);e.exports=function(e,t,r){(void 0!==r&&!i(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},97110:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},97456:(e,t,r)=>{var n=r(89840),i=r(94143);e.exports=function(e,t){return null!=e&&i(e,t,n)}},97662:(e,t,r)=>{var n=r(89731),i=r(77316),a=r(14956);e.exports=function(e){return n(e,a,i)}},98696:(e,t,r)=>{var n=r(85330);e.exports=function(e){return("number"==typeof e||"bigint"==typeof e)&&!n(e)&&e!==1/0&&e!==-1/0}},99207:(e,t,r)=>{var n=r(70158),i=r(79603),a=r(36802),o=r(13919),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},99864:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var n=e.match(t);return n?n[1].split(r):[]}}};
|